@progress/kendo-react-common 11.0.0-develop.8 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,31 +5,32 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { validatePackage as m } from "@progress/kendo-licensing";
9
- import { canUseDOM as a } from "./canUseDOM.mjs";
10
- const i = ["telerik.com", "progress.com", "stackblitz.io", "csb.app"], p = "https://www.telerik.com/kendo-react-ui/components/free?utm_medium=product&utm_source=console&utm_campaign=dt_kendoreact_freemium", o = /* @__PURE__ */ new Map(), u = () => {
11
- const c = Array.from(o, ([e, t]) => `- ${e}: ${Array.from(t).join(", ") || "all"}`).join(`
8
+ import { validatePackage as a, getLicenseStatus as m } from "@progress/kendo-licensing";
9
+ import { canUseDOM as i } from "./canUseDOM.mjs";
10
+ const u = ["telerik.com", "progress.com", "stackblitz.io", "csb.app"], p = "https://www.telerik.com/kendo-react-ui/components/free?utm_medium=product&utm_source=console&utm_campaign=dt_kendoreact_freemium", t = /* @__PURE__ */ new Map(), l = () => {
11
+ const s = Array.from(t, ([e, o]) => `- ${e}: ${Array.from(o).join(", ") || "all"}`).join(`
12
12
  `);
13
13
  console.group("[WARN][Telerik and Kendo UI Licensing] KendoReact"), console.warn(
14
14
  `License check was triggered by these premium KendoReact components/features
15
- ${c}
15
+ ${s}
16
16
  See the full list of free and premium components here: ${p}`
17
- ), console.groupEnd(), o.clear();
18
- }, h = (c, e) => {
19
- const t = m(c), r = i.some(
20
- (s) => {
17
+ ), console.groupEnd(), t.clear();
18
+ }, d = (s, e) => {
19
+ const o = a(s), r = u.some(
20
+ (c) => {
21
21
  var n;
22
- return (n = globalThis.document) == null ? void 0 : n.location.hostname.endsWith(s);
22
+ return (n = globalThis.document) == null ? void 0 : n.location.hostname.endsWith(c);
23
23
  }
24
24
  );
25
- if (!t && a && e)
26
- if (o.size === 0 && setTimeout(u, 1e3), o.has(e.component)) {
27
- const s = o.get(e.component) || [];
28
- o.set(e.component, /* @__PURE__ */ new Set([...e.features || [], ...s]));
25
+ if (!o && i && e)
26
+ if (t.size === 0 && setTimeout(l, 1e3), t.has(e.component)) {
27
+ const c = t.get(e.component) || [];
28
+ t.set(e.component, /* @__PURE__ */ new Set([...e.features || [], ...c]));
29
29
  } else
30
- o.set(e.component, e.features || []);
31
- return t || r;
32
- };
30
+ t.set(e.component, e.features || []);
31
+ return o || r;
32
+ }, k = (s) => m(s).isLicenseValid;
33
33
  export {
34
- h as validatePackage
34
+ k as hasValidLicense,
35
+ d as validatePackage
35
36
  };