UNPKG

@progress/kendo-react-common

Version:

React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package

12 lines (11 loc) 1.45 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@progress/kendo-licensing"),m=require("./canUseDOM.js"),i=["telerik.com","progress.com","stackblitz.io","csb.app"],u="https://www.telerik.com/kendo-react-ui/components/free?utm_medium=product&utm_source=console&utm_campaign=dt_kendoreact_freemium",t=new Map,l=()=>{const c=Array.from(t,([e,o])=>`- ${e}: ${Array.from(o).join(", ")||"all"}`).join(` `);console.group("[WARN][Telerik and Kendo UI Licensing] KendoReact"),console.warn(`License check was triggered by these premium KendoReact components/features ${c} See the full list of free and premium components here: ${u}`),console.groupEnd(),t.clear()},p=(c,e)=>{const o=a.validatePackage(c),r=i.some(n=>{var s;return(s=globalThis.document)==null?void 0:s.location.hostname.endsWith(n)});if(!o&&m.canUseDOM&&e)if(t.size===0&&setTimeout(l,1e3),t.has(e.component)){const n=t.get(e.component)||[];t.set(e.component,new Set([...e.features||[],...n]))}else t.set(e.component,e.features||[]);return o||r};exports.validatePackage=p;