@telia-ace/widget-types-grid 1.0.25-next.9 → 1.0.26-next.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.
@@ -0,0 +1,74 @@
1
+ import o, { useState as m, useEffect as l } from "react";
2
+ import f from "react-dom";
3
+ import d from "@emotion/cache";
4
+ import { CacheProvider as E } from "@emotion/react";
5
+ import { useIsMounted as y, useComponentPlatform as h, ContainerContext as v, RoutingContext as R } from "@telia-ace/widget-ui";
6
+ import { Router as _ } from "react-router-dom";
7
+ import { Component as C } from "./index.js";
8
+ import "@telia-ace/widget-core";
9
+ import "@emotion/styled";
10
+ import "@telia-ace/widget-utilities";
11
+ import "react-transition-group";
12
+ import "react-router";
13
+ import "@telia-ace/widget-routing";
14
+ import "@telia-ace/widget-services";
15
+ import "@webprovisions/bootstrapping";
16
+ import "@webprovisions/platform";
17
+ var c, s = f;
18
+ if (process.env.NODE_ENV === "production")
19
+ c = s.createRoot, s.hydrateRoot;
20
+ else {
21
+ var a = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
22
+ c = function(t, e) {
23
+ a.usingClientEntryPoint = !0;
24
+ try {
25
+ return s.createRoot(t, e);
26
+ } finally {
27
+ a.usingClientEntryPoint = !1;
28
+ }
29
+ };
30
+ }
31
+ const b = (t) => {
32
+ const [e, r] = m(null), n = y();
33
+ return l(() => {
34
+ t.getAsync("router").then((i) => {
35
+ n.current && r(i);
36
+ });
37
+ }, [t, n]), e;
38
+ }, P = d({
39
+ key: "css",
40
+ prepend: !0
41
+ }), g = ({ container: t }) => {
42
+ const e = h(t), r = b(t), [n, i] = m(null);
43
+ return l(() => {
44
+ if (e)
45
+ return i(e.nodes.root.children.default[0].id || null), e.events.subscribe(
46
+ "components:root-children-changed",
47
+ (I, { node: u }) => {
48
+ if (u.parent && u.parent.type === "root") {
49
+ const p = u.parent.children.default[0].id;
50
+ i(p);
51
+ }
52
+ }
53
+ );
54
+ }, [e]), !r || !r.history || !e || !n ? null : /* @__PURE__ */ o.createElement(E, {
55
+ value: P
56
+ }, /* @__PURE__ */ o.createElement(_, {
57
+ history: r.history
58
+ }, /* @__PURE__ */ o.createElement(v.Provider, {
59
+ value: t
60
+ }, /* @__PURE__ */ o.createElement(R.Provider, {
61
+ value: r
62
+ }, /* @__PURE__ */ o.createElement(C, {
63
+ id: n,
64
+ branch: "default"
65
+ })))));
66
+ }, N = g, j = (t, e) => {
67
+ c(e).render(/* @__PURE__ */ o.createElement(N, {
68
+ container: t
69
+ }));
70
+ };
71
+ export {
72
+ j as default
73
+ };
74
+ //# sourceMappingURL=render.e827eb22.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.e827eb22.js","sources":["../../../node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/client.js","../src/ui/use-router.ts","../src/ui/wrapper.tsx","../src/ui/render.tsx"],"sourcesContent":["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","import { RoutingService } from '@telia-ace/widget-routing';\nimport { useIsMounted } from '@telia-ace/widget-ui';\nimport { Container } from '@webprovisions/platform';\nimport { useEffect, useState } from 'react';\n\nexport default (container: Container): RoutingService | null => {\n const [router, setRouter] = useState<RoutingService | null>(null);\n const isMounted = useIsMounted();\n\n useEffect(() => {\n container.getAsync('router').then((router: RoutingService) => {\n if (isMounted.current) {\n setRouter(router);\n }\n });\n }, [container, isMounted]);\n\n return router;\n};\n","\nimport createCache from '@emotion/cache';\nimport { CacheProvider } from '@emotion/react';\nimport { ContainerContext, RoutingContext, useComponentPlatform } from '@telia-ace/widget-ui';\nimport { Container } from '@webprovisions/platform';\nimport React, { useEffect, useState } from 'react';\nimport { Router } from 'react-router-dom';\nimport Component from './component';\nimport useRouter from './use-router';\n\nconst keyNavigationKeys = ['Tab', 'ArrowDown', 'ArrowUp', 'ArrowRight', 'ArrowLeft'];\n\ntype Props = {\n container: Container;\n};\n\nconst cacheProvider = createCache({\n key: 'css',\n prepend: true,\n});\n\nconst Wrapper: React.FC<Props> = ({ container }) => {\n const components = useComponentPlatform(container);\n const router = useRouter(container);\n const [entry, setEntry] = useState<string | null>(null);\n\n useEffect(() => {\n if (components) {\n setEntry(components.nodes.root.children.default[0].id || null);\n const unsubscribe = components.events.subscribe(\n 'components:root-children-changed',\n (event, { node }) => {\n if (node.parent && node.parent.type === 'root') {\n const entry = node.parent.children.default[0].id;\n setEntry(entry);\n }\n }\n );\n\n return unsubscribe;\n }\n }, [components]);\n\n if (!router || !router.history || !components) {\n return null;\n }\n\n if (!entry) {\n return null;\n }\n\n return (\n <CacheProvider value={cacheProvider}>\n <Router history={router.history}>\n <ContainerContext.Provider value={container}>\n <RoutingContext.Provider value={router}>\n <Component id={entry} branch=\"default\" />\n </RoutingContext.Provider>\n </ContainerContext.Provider>\n </Router>\n </CacheProvider>\n );\n};\n\nexport default Wrapper;\n","import { Container } from '@webprovisions/platform';\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport Wrapper from './wrapper';\n\nexport default (container: Container, element: HTMLElement) => {\n const root = createRoot(element);\n root.render(<Wrapper container={container} />);\n};\n"],"names":["m","require$$0","createRoot","i","c","o","useRouter","container","router","setRouter","useState","isMounted","useIsMounted","useEffect","cacheProvider","createCache","Wrapper","components","useComponentPlatform","entry","setEntry","event","node","React","CacheProvider","Router","ContainerContext","RoutingContext","Component","Wrapper$1","render","element"],"mappings":";;;;;;;;;;;;;;;;OA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CAACA,EAAO,WAAW,CAACS,KAI/B,CAACE,IACM,OAIN,gBAAAI,EAAA,cAAAC,GAAA;AAAA,IAAc,OAAOV;AAAA,EAAA,GACjB,gBAAAS,EAAA,cAAAE,GAAA;AAAA,IAAO,SAASjB,EAAO;AAAA,EACpB,GAAA,gBAAAe,EAAA,cAACG,EAAiB,UAAjB;AAAA,IAA0B,OAAOnB;AAAA,EAC9B,GAAA,gBAAAgB,EAAA,cAACI,EAAe,UAAf;AAAA,IAAwB,OAAOnB;AAAA,EAAA,GAC3B,gBAAAe,EAAA,cAAAK,GAAA;AAAA,IAAU,IAAIT;AAAA,IAAO,QAAO;AAAA,EAAA,CAAU,CAC3C,CACJ,CACJ,CACJ;AAER,GAEAU,IAAeb,GC3Dfc,IAAe,CAACvB,GAAsBwB,MAAyB;AAE3D,EADa7B,EAAW6B,CAAO,EAC1B,OAAQ,gBAAAR,EAAA,cAAAP,GAAA;AAAA,IAAQ,WAAAT;AAAA,EAAsB,CAAA,CAAE;AACjD;"}
@@ -1,7 +1,6 @@
1
1
  import { Container } from '@webprovisions/platform';
2
2
  export declare const createRoutingService: (container: Container) => Promise<any>;
3
3
  export declare const createStorageService: (container: Container) => Promise<import("@telia-ace/widget-services").StorageProvider>;
4
- export declare const createServiceClient: (container: Container) => Promise<any>;
5
4
  export declare const createActionResolver: (container: Container) => Promise<import("@telia-ace/widget-core").ActionResolver>;
6
5
  export declare const createComponentResolver: (container: Container) => Promise<import("@telia-ace/widget-core").ComponentResolver>;
7
6
  export declare const createComponentPlatform: (container: Container) => Promise<import("@telia-ace/widget-core").ComponentPlatform>;
@@ -3,7 +3,7 @@ export declare const styling: (p: {
3
3
  'data-width'?: number;
4
4
  'data-indent'?: number;
5
5
  theme: Theme;
6
- }) => import("@emotion/utils").SerializedStyles;
6
+ }) => import("@emotion/react").SerializedStyles;
7
7
  export declare const StyledView: import("@emotion/styled").StyledComponent<{
8
8
  className?: string | undefined;
9
9
  } & {
package/package.json CHANGED
@@ -1,60 +1,63 @@
1
1
  {
2
- "name": "@telia-ace/widget-types-grid",
3
- "version": "1.0.25-next.9",
4
- "description": "Type definition for Grid widget.",
5
- "license": "SEE LICENSE IN LICENSE.txt",
6
- "author": "Telia Company AB",
7
- "keywords": [
8
- "telia"
9
- ],
10
- "main": "dist/index.js",
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"
21
- },
22
- "scripts": {
23
- "clean": "rimraf ./dist",
24
- "precompile": "tsc -emitDeclarationOnly",
25
- "compile": "vite build"
26
- },
27
- "sideEffects": false,
28
- "dependencies": {
29
- "@telia-ace/knowledge-serviceclient": "next",
30
- "@telia-ace/widget-core": "^1.0.16-next.9",
31
- "@telia-ace/widget-forms": "^1.0.23-next.9",
32
- "@telia-ace/widget-routing": "^1.0.17-next.9",
33
- "@telia-ace/widget-services": "^1.0.16-next.9",
34
- "@telia-ace/widget-ui": "^1.0.23-next.9",
35
- "@telia-ace/widget-utilities": "next",
36
- "@webprovisions/bootstrapping": "^1.0.12",
37
- "@webprovisions/platform": "^1.1.2"
38
- },
39
- "peerDependencies": {
40
- "@emotion/react": "^11.10.4",
41
- "@emotion/styled": "^11.10.4",
42
- "react": "^18.2.0",
43
- "react-dom": "^18.2.0",
44
- "react-router": "^5.3.4",
45
- "react-router-dom": "^5.3.4",
46
- "react-transition-group": "^4.4.5"
47
- },
48
- "devDependencies": {
49
- "@emotion/react": "^11.10.4",
50
- "@emotion/styled": "^11.10.4",
51
- "@types/react-router-dom": "^5.1.0",
52
- "@types/react-transition-group": "^4.4.5",
53
- "react": "^18.2.0",
54
- "react-dom": "^18.2.0",
55
- "react-router": "^5.3.4",
56
- "react-router-dom": "^5.3.4",
57
- "react-transition-group": "^4.4.5"
58
- },
59
- "gitHead": "ddc5219d9b946f1132669d3a39ba5ef58c3ff044"
60
- }
2
+ "name": "@telia-ace/widget-types-grid",
3
+ "version": "1.0.26-next.0",
4
+ "description": "Type definition for Grid widget.",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "author": "Telia Company AB",
7
+ "keywords": [
8
+ "telia"
9
+ ],
10
+ "main": "dist/index.js",
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"
21
+ },
22
+ "sideEffects": false,
23
+ "dependencies": {
24
+ "@telia-ace/widget-core": "^1.0.17-next.0",
25
+ "@telia-ace/widget-forms": "^1.0.24-next.0",
26
+ "@telia-ace/widget-routing": "^1.0.18-next.0",
27
+ "@telia-ace/widget-services": "^1.0.17-next.0",
28
+ "@telia-ace/widget-ui": "^1.0.24-next.0",
29
+ "@telia-ace/widget-utilities": "^1.0.6-next.0",
30
+ "@webprovisions/bootstrapping": "^1.0.12",
31
+ "@webprovisions/platform": "^1.1.2"
32
+ },
33
+ "peerDependencies": {
34
+ "@emotion/cache": "^11.10.4",
35
+ "@emotion/react": "^11.10.4",
36
+ "@emotion/styled": "^11.10.4",
37
+ "react": "^18.2.0",
38
+ "react-dom": "^18.2.0",
39
+ "react-router": "^5.3.4",
40
+ "react-router-dom": "^5.3.4",
41
+ "react-transition-group": "^4.4.5"
42
+ },
43
+ "devDependencies": {
44
+ "@emotion/cache": "^11.10.4",
45
+ "@emotion/react": "^11.10.5",
46
+ "@emotion/styled": "^11.10.5",
47
+ "@telia-ace/widget-developer-tools": "^1.0.12-next.0",
48
+ "@types/react": "^18.0.24",
49
+ "@types/react-dom": "^18.0.8",
50
+ "@types/react-router": "^5.1.19",
51
+ "@types/react-router-dom": "^5.3.3",
52
+ "@types/react-transition-group": "^4.4.5",
53
+ "react": "^18.2.0",
54
+ "react-dom": "^18.2.0",
55
+ "react-router": "^5.3.4",
56
+ "react-router-dom": "^5.3.4",
57
+ "react-transition-group": "^4.4.5"
58
+ },
59
+ "scripts": {
60
+ "clean": "rimraf ./dist",
61
+ "build": "rimraf ./dist && tsc -emitDeclarationOnly && vite build"
62
+ }
63
+ }
@@ -1,68 +0,0 @@
1
- import n, { useState as m, useEffect as p } from "react";
2
- import f from "react-dom";
3
- import { useIsMounted as d, useComponentPlatform as E, ContainerContext as y, RoutingContext as R } from "@telia-ace/widget-ui";
4
- import { Router as _ } from "react-router-dom";
5
- import { Component as h } from "./index.js";
6
- import "@emotion/react";
7
- import "@telia-ace/widget-core";
8
- import "@emotion/styled";
9
- import "@telia-ace/widget-utilities";
10
- import "react-transition-group";
11
- import "react-router";
12
- import "@telia-ace/widget-routing";
13
- import "@telia-ace/widget-services";
14
- import "@webprovisions/bootstrapping";
15
- import "@webprovisions/platform";
16
- var c, u = f;
17
- if (process.env.NODE_ENV === "production")
18
- c = u.createRoot, u.hydrateRoot;
19
- else {
20
- var l = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
21
- c = function(e, t) {
22
- l.usingClientEntryPoint = !0;
23
- try {
24
- return u.createRoot(e, t);
25
- } finally {
26
- l.usingClientEntryPoint = !1;
27
- }
28
- };
29
- }
30
- const v = (e) => {
31
- const [t, r] = m(null), o = d();
32
- return p(() => {
33
- e.getAsync("router").then((i) => {
34
- o.current && r(i);
35
- });
36
- }, [e, o]), t;
37
- }, C = ({ container: e }) => {
38
- const t = E(e), r = v(e), [o, i] = m(null);
39
- return p(() => {
40
- if (t)
41
- return i(t.nodes.root.children.default[0].id || null), t.events.subscribe(
42
- "components:root-children-changed",
43
- (N, { node: s }) => {
44
- if (s.parent && s.parent.type === "root") {
45
- const a = s.parent.children.default[0].id;
46
- i(a);
47
- }
48
- }
49
- );
50
- }, [t]), !r || !r.history || !t || !o ? null : /* @__PURE__ */ n.createElement(_, {
51
- history: r.history
52
- }, /* @__PURE__ */ n.createElement(y.Provider, {
53
- value: e
54
- }, /* @__PURE__ */ n.createElement(R.Provider, {
55
- value: r
56
- }, /* @__PURE__ */ n.createElement(h, {
57
- id: o,
58
- branch: "default"
59
- }))));
60
- }, b = C, F = (e, t) => {
61
- c(t).render(/* @__PURE__ */ n.createElement(b, {
62
- container: e
63
- }));
64
- };
65
- export {
66
- F as default
67
- };
68
- //# sourceMappingURL=render.f2d6da89.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render.f2d6da89.js","sources":["../../../node_modules/react-dom/client.js","../src/ui/use-router.ts","../src/ui/wrapper.tsx","../src/ui/render.tsx"],"sourcesContent":["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","import { RoutingService } from '@telia-ace/widget-routing';\nimport { useIsMounted } from '@telia-ace/widget-ui';\nimport { Container } from '@webprovisions/platform';\nimport { useEffect, useState } from 'react';\n\nexport default (container: Container): RoutingService | null => {\n const [router, setRouter] = useState<RoutingService | null>(null);\n const isMounted = useIsMounted();\n\n useEffect(() => {\n container.getAsync('router').then((router: RoutingService) => {\n if (isMounted.current) {\n setRouter(router);\n }\n });\n }, [container, isMounted]);\n\n return router;\n};\n","import { ContainerContext, RoutingContext, useComponentPlatform } from '@telia-ace/widget-ui';\nimport { Container } from '@webprovisions/platform';\nimport React, { useEffect, useState } from 'react';\nimport { Router } from 'react-router-dom';\nimport Component from './component';\nimport useRouter from './use-router';\n\nconst keyNavigationKeys = ['Tab', 'ArrowDown', 'ArrowUp', 'ArrowRight', 'ArrowLeft'];\n\ntype Props = {\n container: Container;\n};\n\nconst Wrapper: React.FC<Props> = ({ container }) => {\n const components = useComponentPlatform(container);\n const router = useRouter(container);\n const [entry, setEntry] = useState<string | null>(null);\n\n useEffect(() => {\n if (components) {\n setEntry(components.nodes.root.children.default[0].id || null);\n const unsubscribe = components.events.subscribe(\n 'components:root-children-changed',\n (event, { node }) => {\n if (node.parent && node.parent.type === 'root') {\n const entry = node.parent.children.default[0].id;\n setEntry(entry);\n }\n }\n );\n\n return unsubscribe;\n }\n }, [components]);\n\n if (!router || !router.history || !components) {\n return null;\n }\n\n if (!entry) {\n return null;\n }\n\n return (\n <Router history={router.history}>\n <ContainerContext.Provider value={container}>\n <RoutingContext.Provider value={router}>\n <Component id={entry} branch=\"default\" />\n </RoutingContext.Provider>\n </ContainerContext.Provider>\n </Router>\n );\n};\n\nexport default Wrapper;\n","import { Container } from '@webprovisions/platform';\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport Wrapper from './wrapper';\n\nexport default (container: Container, element: HTMLElement) => {\n const root = createRoot(element);\n root.render(<Wrapper container={container} />);\n};\n"],"names":["m","require$$0","createRoot","i","c","o","useRouter","container","router","setRouter","useState","isMounted","useIsMounted","useEffect","Wrapper","components","useComponentPlatform","entry","setEntry","event","node","React","Router","ContainerContext","RoutingContext","Component","Wrapper$1","render","element"],"mappings":";;;;;;;;;;;;;;;OAEIA,IAAIC;AACR,IAAI,QAAQ,IAAI,aAAa;AAC3B,EAAAC,IAAqBF,EAAE,YACDA,EAAE;AAAA,KACnB;AACL,MAAIG,IAAIH,EAAE;AACV,EAAAE,IAAqB,SAASE,GAAGC,GAAG;AAClC,IAAAF,EAAE,wBAAwB;AAC1B,QAAI;AACF,aAAOH,EAAE,WAAWI,GAAGC,CAAC;AAAA,IAC9B,UAAc;AACR,MAAAF,EAAE,wBAAwB;AAAA,IAC3B;AAAA,EACL;AASA;ACnBA,MAAeG,IAAA,CAACC,MAAgD;AAC5D,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAg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EAC1B,OAAQ,gBAAAP,EAAA,cAAAP,GAAA;AAAA,IAAQ,WAAAP;AAAA,EAAsB,CAAA,CAAE;AACjD;"}
@@ -1,5 +0,0 @@
1
- export declare type SiteLocation = {
2
- host: string;
3
- pathname: string;
4
- };
5
- export declare const createSiteProvider: (site: 'current' | 'referrer', forceHttps: boolean) => (() => string);