@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.
@@ -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=_;
@@ -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
- };
@@ -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;