@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.
- package/deep-merge.js +8 -0
- package/deep-merge.mjs +25 -0
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/hooks/use-immediate-inherit-state.js +9 -0
- package/hooks/use-immediate-inherit-state.mjs +25 -0
- package/index.d.mts +24 -0
- package/index.d.ts +24 -0
- package/index.js +1 -1
- package/index.mjs +196 -189
- package/package.json +2 -2
- package/validate-package.js +3 -3
- package/validate-package.mjs +19 -18
package/validate-package.mjs
CHANGED
|
@@ -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
|
|
10
|
-
const
|
|
11
|
-
const
|
|
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
|
-
${
|
|
15
|
+
${s}
|
|
16
16
|
See the full list of free and premium components here: ${p}`
|
|
17
|
-
), console.groupEnd(),
|
|
18
|
-
},
|
|
19
|
-
const
|
|
20
|
-
(
|
|
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(
|
|
22
|
+
return (n = globalThis.document) == null ? void 0 : n.location.hostname.endsWith(c);
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
|
-
if (!
|
|
26
|
-
if (
|
|
27
|
-
const
|
|
28
|
-
|
|
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
|
-
|
|
31
|
-
return
|
|
32
|
-
};
|
|
30
|
+
t.set(e.component, e.features || []);
|
|
31
|
+
return o || r;
|
|
32
|
+
}, k = (s) => m(s).isLicenseValid;
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
k as hasValidLicense,
|
|
35
|
+
d as validatePackage
|
|
35
36
|
};
|