@telia-ace/knowledge-widget-types-grid 1.0.54 → 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/create-params-13c11e30.js +1 -0
- package/create-params-4e652cc7.mjs +24 -0
- package/index-373df3a5.js +6 -0
- package/index-37d41a7c.js +1 -0
- package/index-4000749f.mjs +18 -0
- package/index-4a7683d6.mjs +7686 -0
- package/index-53f86cb1.mjs +80 -0
- package/index-5c9c2abf.mjs +883 -0
- package/index-6573c0b0.js +1258 -0
- package/index-83935001.js +1 -0
- package/index-89e0c636.js +1 -0
- package/index-8ea3d174.mjs +81 -0
- package/index-a20f39e4.mjs +1709 -0
- package/index-a53df8cf.js +642 -0
- package/index-da27700c.js +9 -0
- package/index-f2febaed.mjs +792 -0
- package/index.js +1 -0
- package/index.mjs +23 -0
- package/package.json +14 -25
- package/render-6b17449a.js +1 -0
- package/render-e363a527.mjs +57 -0
- package/unmount-063d8ea3.mjs +5 -0
- package/unmount-7ebc3b77.js +1 -0
- package/{dist/widget → widget}/services.d.ts +1 -1
- package/LICENSE.txt +0 -6
- package/README.md +0 -4
- package/dist/index.js +0 -20
- package/dist/index.js.map +0 -1
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/widget → widget}/extended-widget.d.ts +0 -0
- /package/{dist/widget → widget}/index.d.ts +0 -0
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-6573c0b0.js");require("react/jsx-runtime");require("@emotion/styled");require("@emotion/react");require("react");require("react-transition-group");require("react-dom");require("react-router-dom");require("react-router");exports.Component=e.Component;exports.DataClient=e.DataClient;exports.DataType=e.DataType;exports.DetachedComponent=e.DetachedComponent;exports.FeedbackType=e.FeedbackType;exports.GridWidget=e.ExtendedWidget;exports.NotFound=e.NotFound;exports.ServiceClientQueryType=e.ServiceClientQueryType;exports.SortingType=e.SortingType;exports.determineServiceClientQueryType=e.determineServiceClientQueryType;exports.formatLegacyData=e.formatLegacyData;exports.genericComponentStyling=e.styling;
|
package/index.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { E as y, D as d, a as C, aA as c, F as D, aD as g, aC as S, S as T, b as l, d as f, f as u, aB as F } from "./index-4a7683d6.mjs";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "@emotion/styled";
|
|
4
|
+
import "@emotion/react";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-transition-group";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
import "react-router-dom";
|
|
9
|
+
import "react-router";
|
|
10
|
+
export {
|
|
11
|
+
y as Component,
|
|
12
|
+
d as DataClient,
|
|
13
|
+
C as DataType,
|
|
14
|
+
c as DetachedComponent,
|
|
15
|
+
D as FeedbackType,
|
|
16
|
+
g as GridWidget,
|
|
17
|
+
S as NotFound,
|
|
18
|
+
T as ServiceClientQueryType,
|
|
19
|
+
l as SortingType,
|
|
20
|
+
f as determineServiceClientQueryType,
|
|
21
|
+
u as formatLegacyData,
|
|
22
|
+
F as genericComponentStyling
|
|
23
|
+
};
|
package/package.json
CHANGED
|
@@ -1,33 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-types-grid",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"sourceMain": "src/index.ts",
|
|
12
|
-
"type": "module",
|
|
13
|
-
"types": "dist/index.d.ts",
|
|
14
|
-
"files": [
|
|
15
|
-
"LICENSE.txt",
|
|
16
|
-
"README.md",
|
|
17
|
-
"dist/"
|
|
18
|
-
],
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
3
|
+
"version": "1.1.1-rc.2",
|
|
4
|
+
"main": "./index.js",
|
|
5
|
+
"types": "./index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./index.mjs",
|
|
9
|
+
"require": "./index.js"
|
|
10
|
+
}
|
|
21
11
|
},
|
|
22
|
-
"sideEffects": false,
|
|
23
12
|
"dependencies": {
|
|
24
|
-
"@telia-ace/knowledge-
|
|
25
|
-
"@telia-ace/knowledge-
|
|
26
|
-
"@telia-ace/widget-types-grid": "^1.
|
|
13
|
+
"@telia-ace/knowledge-widget-core": "^1.1.1-rc.2",
|
|
14
|
+
"@telia-ace/knowledge-data-client": "^1.1.1-rc.2",
|
|
15
|
+
"@telia-ace/widget-types-grid": "^1.1.1-rc.2",
|
|
16
|
+
"@telia-ace/knowledge-widget-adapters": "^1.1.1-rc.2",
|
|
27
17
|
"@webprovisions/platform": "^1.1.4"
|
|
28
18
|
},
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"build": "rimraf ./dist && tsc -emitDeclarationOnly && vite build"
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"@emotion/react": "11.11.1"
|
|
32
21
|
}
|
|
33
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react-dom"),o=e=>t.unmountComponentAtNode(e);exports.default=o;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Container } from '@webprovisions/platform';
|
|
2
|
-
export declare const createContactMethodPlatform: (container: Container) => Promise<import("
|
|
2
|
+
export declare const createContactMethodPlatform: (container: Container) => Promise<import("libs/knowledge/adapters/src/contact-methods/platform").default>;
|
|
3
3
|
export declare const createDataClient: (container: Container) => Promise<import("@telia-ace/knowledge-data-client").DataClient>;
|
package/LICENSE.txt
DELETED
package/README.md
DELETED
package/dist/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from "@telia-ace/knowledge-data-client";
|
|
2
|
-
import { Widget as r } from "@telia-ace/widget-types-grid";
|
|
3
|
-
import { Component as m, DetachedComponent as p, NotFound as h, genericComponentStyling as g } from "@telia-ace/widget-types-grid";
|
|
4
|
-
const n = (e) => import("@telia-ace/knowledge-widget-adapters").then(({ ContactMethodPlatform: t }) => t.create(e)), o = (e) => import("@telia-ace/knowledge-data-client").then(({ DataClient: t }) => t.create(e));
|
|
5
|
-
class c extends r {
|
|
6
|
-
constructor(t) {
|
|
7
|
-
super(t), this.container.registerAsync(
|
|
8
|
-
"contactMethods",
|
|
9
|
-
() => n(this.container)
|
|
10
|
-
), this.container.registerAsync("dataClient", () => o(this.container));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
m as Component,
|
|
15
|
-
p as DetachedComponent,
|
|
16
|
-
c as GridWidget,
|
|
17
|
-
h as NotFound,
|
|
18
|
-
g as genericComponentStyling
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/widget/services.ts","../src/widget/extended-widget.ts"],"sourcesContent":["import { Container } from '@webprovisions/platform';\n\nexport const createContactMethodPlatform = (container: Container) => {\n return import('@telia-ace/knowledge-widget-adapters').then(({ ContactMethodPlatform }) => {\n return ContactMethodPlatform.create(container);\n });\n};\n\nexport const createDataClient = (container: Container) => {\n return import('@telia-ace/knowledge-data-client').then(({ DataClient }) => {\n return DataClient.create(container);\n });\n};\n","import { Widget } from '@telia-ace/widget-types-grid';\nimport { Container } from '@webprovisions/platform';\nimport { createContactMethodPlatform, createDataClient } from './services';\n\nexport default class ExtendedWidget extends Widget {\n constructor(container: Container) {\n super(container);\n\n this.container.registerAsync('contactMethods', () =>\n createContactMethodPlatform(this.container)\n );\n this.container.registerAsync('dataClient', () => createDataClient(this.container));\n }\n}\n"],"names":["createContactMethodPlatform","container","ContactMethodPlatform","createDataClient","DataClient","ExtendedWidget","Widget"],"mappings":";;;AAEa,MAAAA,IAA8B,CAACC,MACjC,OAAO,wCAAwC,KAAK,CAAC,EAAE,uBAAAC,QACnDA,EAAsB,OAAOD,CAAS,CAChD,GAGQE,IAAmB,CAACF,MACtB,OAAO,oCAAoC,KAAK,CAAC,EAAE,YAAAG,QAC/CA,EAAW,OAAOH,CAAS,CACrC;ACPL,MAAqBI,UAAuBC,EAAO;AAAA,EAC/C,YAAYL,GAAsB;AAC9B,UAAMA,CAAS,GAEf,KAAK,UAAU;AAAA,MAAc;AAAA,MAAkB,MAC3CD,EAA4B,KAAK,SAAS;AAAA,IAAA,GAE9C,KAAK,UAAU,cAAc,cAAc,MAAMG,EAAiB,KAAK,SAAS,CAAC;AAAA,EACrF;AACJ;"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|