@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.52 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@progress/kendo-licensing"),i=require("./canUseDOM.js"),m=["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 s=Array.from(t,([e,n])=>`- ${e}: ${Array.from(n).join(", ")||"all"}`).join(`
`);console.group("[WARN][Telerik and Kendo UI Licensing] KendoReact"),console.warn(`License check was triggered by these premium KendoReact components/features
${s}
See the full list of free and premium components here: ${u}`),console.groupEnd(),t.clear()},p=(s,e)=>{const n=r.validatePackage(s),a=m.some(c=>{var o;return(o=globalThis.document)==null?void 0:o.location.hostname.endsWith(c)});if(!n&&i.canUseDOM&&e)if(t.size===0&&setTimeout(l,1e3),t.has(e.component)){const c=t.get(e.component)||[];t.set(e.component,new Set([...e.features||[],...c]))}else t.set(e.component,e.features||[]);return n||a},g=s=>r.getLicenseStatus(s).isLicenseValid;exports.hasValidLicense=g;exports.validatePackage=p;