@telia-ace/knowledge-widget-types-grid 1.1.1-rc.1 → 1.1.1-rc.2
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/index-37d41a7c.js +1 -0
- package/index-4000749f.mjs +18 -0
- package/index-4a7683d6.mjs +7686 -0
- package/{index-2a0d3b27.mjs → index-53f86cb1.mjs} +15 -10
- package/index-6573c0b0.js +1258 -0
- package/index-83935001.js +1 -0
- package/index-89e0c636.js +1 -0
- package/{index-ef4f44cd.mjs → index-8ea3d174.mjs} +34 -29
- package/{index-e3bba2b0.mjs → index-a20f39e4.mjs} +157 -152
- package/index-a53df8cf.js +642 -0
- package/{index-6cc56345.js → index-da27700c.js} +1 -1
- package/{index-2a67ee55.mjs → index-f2febaed.mjs} +71 -66
- package/index.js +1 -1
- package/index.mjs +18 -13
- package/package.json +5 -5
- package/render-6b17449a.js +1 -0
- package/render-e363a527.mjs +57 -0
- package/unmount-7ebc3b77.js +1 -0
- package/index-0d4037dc.js +0 -1
- package/index-48abc5fd.js +0 -1
- package/index-6e1f4d54.js +0 -1291
- package/index-a87d669f.js +0 -642
- package/index-ddecdfc6.mjs +0 -13
- package/index-f35c9d50.js +0 -1
- package/index-f6d7c0ea.mjs +0 -11776
- package/render-8a105395.js +0 -1
- package/render-e917ce7f.mjs +0 -51
- package/unmount-481ce5a7.js +0 -1
package/render-8a105395.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),h=require("react-dom"),r=require("./index-6e1f4d54.js"),i=require("react");var a,c=h;if(process.env.NODE_ENV==="production")a=c.createRoot,c.hydrateRoot;else{var d=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;a=function(t,e){d.usingClientEntryPoint=!0;try{return c.createRoot(t,e)}finally{d.usingClientEntryPoint=!1}}}const v=t=>{const[e,n]=i.useState(null),s=r.useIsMounted();return i.useEffect(()=>{t.getAsync("router").then(u=>{s.current&&n(u)})},[t,s]),e};var f;const y=r.createCache({key:"css",prepend:!0,nonce:((f=window.webprovisionsEnvironmentVariables)==null?void 0:f.cspNonce)||void 0}),R=({container:t})=>{const e=r.useComponentPlatform(t),n=v(t),[s,u]=i.useState(null);return i.useEffect(()=>{if(e)return u(e.nodes.root.children.default[0].id||null),e.events.subscribe("components:root-children-changed",(x,{node:l})=>{if(l.parent&&l.parent.type==="root"){const p=l.parent.children.default[0].id;u(p)}})},[e]),!n||!n.history||!e||!s?null:o.jsx(r.CacheProvider,{value:y,children:o.jsx(r.Router,{history:n.history,children:o.jsx(r.ContainerContext.Provider,{value:t,children:o.jsx(r.RoutingContext.Provider,{value:n,children:o.jsx(r.Component,{id:s,branch:"default"})})})})})},E=R,_=(t,e)=>{a(e).render(o.jsx(E,{container:t}))};exports.default=_;
|
package/render-e917ce7f.mjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import h from "react-dom";
|
|
3
|
-
import { y as v, z as m, B as y, E, R, G as _, H as C, I as b } from "./index-f6d7c0ea.mjs";
|
|
4
|
-
import { useState as d, useEffect as p } from "react";
|
|
5
|
-
var c, i = h;
|
|
6
|
-
if (process.env.NODE_ENV === "production")
|
|
7
|
-
c = i.createRoot, i.hydrateRoot;
|
|
8
|
-
else {
|
|
9
|
-
var a = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
10
|
-
c = function(r, e) {
|
|
11
|
-
a.usingClientEntryPoint = !0;
|
|
12
|
-
try {
|
|
13
|
-
return i.createRoot(r, e);
|
|
14
|
-
} finally {
|
|
15
|
-
a.usingClientEntryPoint = !1;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
const P = (r) => {
|
|
20
|
-
const [e, t] = d(null), o = v();
|
|
21
|
-
return p(() => {
|
|
22
|
-
r.getAsync("router").then((s) => {
|
|
23
|
-
o.current && t(s);
|
|
24
|
-
});
|
|
25
|
-
}, [r, o]), e;
|
|
26
|
-
};
|
|
27
|
-
var l;
|
|
28
|
-
const N = m({
|
|
29
|
-
key: "css",
|
|
30
|
-
prepend: !0,
|
|
31
|
-
nonce: ((l = window.webprovisionsEnvironmentVariables) == null ? void 0 : l.cspNonce) || void 0
|
|
32
|
-
}), O = ({ container: r }) => {
|
|
33
|
-
const e = y(r), t = P(r), [o, s] = d(null);
|
|
34
|
-
return p(() => {
|
|
35
|
-
if (e)
|
|
36
|
-
return s(e.nodes.root.children.default[0].id || null), e.events.subscribe(
|
|
37
|
-
"components:root-children-changed",
|
|
38
|
-
(x, { node: u }) => {
|
|
39
|
-
if (u.parent && u.parent.type === "root") {
|
|
40
|
-
const f = u.parent.children.default[0].id;
|
|
41
|
-
s(f);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
}, [e]), !t || !t.history || !e || !o ? null : /* @__PURE__ */ n(E, { value: N, children: /* @__PURE__ */ n(R, { history: t.history, children: /* @__PURE__ */ n(_.Provider, { value: r, children: /* @__PURE__ */ n(C.Provider, { value: t, children: /* @__PURE__ */ n(b, { id: o, branch: "default" }) }) }) }) });
|
|
46
|
-
}, g = O, M = (r, e) => {
|
|
47
|
-
c(e).render(/* @__PURE__ */ n(g, { container: r }));
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
M as default
|
|
51
|
-
};
|
package/unmount-481ce5a7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react-dom"),o=t=>e.unmountComponentAtNode(t);exports.default=o;
|