@telia-ace/knowledge-widget-types-grid 1.1.1-rc.2 → 1.1.1-rc.4

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 n=require("react/jsx-runtime"),h=require("react-dom"),v=require("@emotion/cache"),y=require("@emotion/react"),s=require("./index-6573c0b0.js"),c=require("react");require("react-transition-group");const R=require("react-router-dom");require("@emotion/styled");require("react-router");var l,i=h;if(process.env.NODE_ENV==="production")l=i.createRoot,i.hydrateRoot;else{var d=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;l=function(r,e){d.usingClientEntryPoint=!0;try{return i.createRoot(r,e)}finally{d.usingClientEntryPoint=!1}}}const E=r=>{const[e,t]=c.useState(null),o=s.useIsMounted();return c.useEffect(()=>{r.getAsync("router").then(u=>{o.current&&t(u)})},[r,o]),e};var f;const _=v({key:"css",prepend:!0,nonce:((f=window.webprovisionsEnvironmentVariables)==null?void 0:f.cspNonce)||void 0}),b=({container:r})=>{const e=s.useComponentPlatform(r),t=E(r),[o,u]=c.useState(null);return c.useEffect(()=>{if(e)return u(e.nodes.root.children.default[0].id||null),e.events.subscribe("components:root-children-changed",(C,{node:a})=>{if(a.parent&&a.parent.type==="root"){const p=a.parent.children.default[0].id;u(p)}})},[e]),!t||!t.history||!e||!o?null:n.jsx(y.CacheProvider,{value:_,children:n.jsx(R.Router,{history:t.history,children:n.jsx(s.ContainerContext.Provider,{value:r,children:n.jsx(s.RoutingContext.Provider,{value:t,children:n.jsx(s.Component,{id:o,branch:"default"})})})})})},q=b,m=(r,e)=>{l(e).render(n.jsx(q,{container:r}))};exports.default=m;
@@ -1,57 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import f from "react-dom";
3
- import h from "@emotion/cache";
4
- import { CacheProvider as v } from "@emotion/react";
5
- import { y, z as E, B as R, R as _, E as C } from "./index-4a7683d6.mjs";
6
- import { useState as p, useEffect as d } from "react";
7
- import "react-transition-group";
8
- import { Router as b } from "react-router-dom";
9
- import "@emotion/styled";
10
- import "react-router";
11
- var c, i = f;
12
- if (process.env.NODE_ENV === "production")
13
- c = i.createRoot, i.hydrateRoot;
14
- else {
15
- var a = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
16
- c = function(e, r) {
17
- a.usingClientEntryPoint = !0;
18
- try {
19
- return i.createRoot(e, r);
20
- } finally {
21
- a.usingClientEntryPoint = !1;
22
- }
23
- };
24
- }
25
- const P = (e) => {
26
- const [r, t] = p(null), n = y();
27
- return d(() => {
28
- e.getAsync("router").then((s) => {
29
- n.current && t(s);
30
- });
31
- }, [e, n]), r;
32
- };
33
- var l;
34
- const N = h({
35
- key: "css",
36
- prepend: !0,
37
- nonce: ((l = window.webprovisionsEnvironmentVariables) == null ? void 0 : l.cspNonce) || void 0
38
- }), g = ({ container: e }) => {
39
- const r = E(e), t = P(e), [n, s] = p(null);
40
- return d(() => {
41
- if (r)
42
- return s(r.nodes.root.children.default[0].id || null), r.events.subscribe(
43
- "components:root-children-changed",
44
- (I, { node: u }) => {
45
- if (u.parent && u.parent.type === "root") {
46
- const m = u.parent.children.default[0].id;
47
- s(m);
48
- }
49
- }
50
- );
51
- }, [r]), !t || !t.history || !r || !n ? null : /* @__PURE__ */ o(v, { value: N, children: /* @__PURE__ */ o(b, { history: t.history, children: /* @__PURE__ */ o(R.Provider, { value: e, children: /* @__PURE__ */ o(_.Provider, { value: t, children: /* @__PURE__ */ o(C, { id: n, branch: "default" }) }) }) }) });
52
- }, O = g, U = (e, r) => {
53
- c(r).render(/* @__PURE__ */ o(O, { container: e }));
54
- };
55
- export {
56
- U as default
57
- };
@@ -1,5 +0,0 @@
1
- import { unmountComponentAtNode as t } from "react-dom";
2
- const m = (o) => t(o);
3
- export {
4
- m as default
5
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react-dom"),o=e=>t.unmountComponentAtNode(e);exports.default=o;