@telia-ace/widget-types-grid 1.0.35-next.4 → 1.0.35-next.6
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/dist/index.js +451 -454
- package/dist/index.js.map +1 -1
- package/dist/{render.f4c19b77.js → render-668e4aa4.js} +1 -1
- package/dist/{render.f4c19b77.js.map → render-668e4aa4.js.map} +1 -1
- package/dist/{unmount.b0816844.js → unmount-063d8ea3.js} +1 -1
- package/dist/{unmount.b0816844.js.map → unmount-063d8ea3.js.map} +1 -1
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.
|
|
1
|
+
{"version":3,"file":"render-668e4aa4.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","import 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 nonce: (window as any).webprovisionsEnvironmentVariables?.cspNonce || undefined,\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","_a","Wrapper","components","useComponentPlatform","entry","setEntry","event","node","React","CacheProvider","Router","ContainerContext","RoutingContext","Component","Wrapper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EAAE;AAC9C,YAAAF,EAASD,CAAK;AAAA;AAAA,QAEtB;AAAA,MAAA;AAAA,EAIR,GACD,CAACF,CAAU,CAAC,GAEX,CAACV,KAAU,CAACA,EAAO,WAAW,CAACU,KAI/B,CAACE,IACM,OAIN,gBAAAI,EAAA,cAAAC,GAAA,EAAc,OAAOX,EAAA,GACjB,gBAAAU,EAAA,cAAAE,GAAA,EAAO,SAASlB,EAAO,QACpB,GAAA,gBAAAgB,EAAA,cAACG,EAAiB,UAAjB,EAA0B,OAAOpB,KAC7B,gBAAAiB,EAAA,cAAAI,EAAe,UAAf,EAAwB,OAAOpB,EAAA,GAC3B,gBAAAgB,EAAA,cAAAK,GAAA,EAAU,IAAIT,GAAO,QAAO,WAAU,CAC3C,CACJ,CACJ,CACJ;AAER,GAEAU,IAAeb,GC3Dfc,IAAe,CAACxB,GAAsByB,MAAyB;AAE3D,EADa9B,EAAW8B,CAAO,EAC1B,OAAO,gBAAAR,EAAA,cAACP,GAAQ,EAAA,WAAAV,EAAsB,CAAA,CAAE;AACjD;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unmount.
|
|
1
|
+
{"version":3,"file":"unmount-063d8ea3.js","sources":["../src/ui/unmount.tsx"],"sourcesContent":["import { unmountComponentAtNode } from 'react-dom';\n\nexport default (element: HTMLElement) => unmountComponentAtNode(element);\n"],"names":["unmount","element","unmountComponentAtNode"],"mappings":";AAEA,MAAAA,IAAe,CAACC,MAAyBC,EAAuBD,CAAO;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-types-grid",
|
|
3
|
-
"version": "1.0.35-next.
|
|
3
|
+
"version": "1.0.35-next.6",
|
|
4
4
|
"description": "Type definition for Grid widget.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@telia-ace/widget-core": "1.0.26-next.
|
|
25
|
-
"@telia-ace/widget-forms": "1.0.33-next.
|
|
26
|
-
"@telia-ace/widget-routing": "1.0.27-next.
|
|
27
|
-
"@telia-ace/widget-services": "1.0.26-next.
|
|
28
|
-
"@telia-ace/widget-ui": "1.0.33-next.
|
|
29
|
-
"@telia-ace/widget-utilities": "1.0.15-next.
|
|
30
|
-
"@webprovisions/bootstrapping": "^1.0.
|
|
31
|
-
"@webprovisions/platform": "^1.1.
|
|
24
|
+
"@telia-ace/widget-core": "1.0.26-next.6",
|
|
25
|
+
"@telia-ace/widget-forms": "1.0.33-next.6",
|
|
26
|
+
"@telia-ace/widget-routing": "1.0.27-next.6",
|
|
27
|
+
"@telia-ace/widget-services": "1.0.26-next.6",
|
|
28
|
+
"@telia-ace/widget-ui": "1.0.33-next.6",
|
|
29
|
+
"@telia-ace/widget-utilities": "1.0.15-next.6",
|
|
30
|
+
"@webprovisions/bootstrapping": "^1.0.13-rc.4",
|
|
31
|
+
"@webprovisions/platform": "^1.1.3-rc.3"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@emotion/cache": "^11.10.5",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@emotion/cache": "^11.10.5",
|
|
45
45
|
"@emotion/react": "^11.10.5",
|
|
46
46
|
"@emotion/styled": "^11.10.5",
|
|
47
|
-
"@telia-ace/widget-developer-tools": "1.0.21-next.
|
|
47
|
+
"@telia-ace/widget-developer-tools": "1.0.21-next.6",
|
|
48
48
|
"@types/react": "^18.0.27",
|
|
49
49
|
"@types/react-dom": "^18.0.10",
|
|
50
50
|
"@types/react-router": "^5.1.20",
|