@telia-ace/widget-types-grid 1.0.25-next.8 → 1.0.25

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.
@@ -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,61 @@
1
1
  {
2
- "name": "@telia-ace/widget-types-grid",
3
- "version": "1.0.25-next.8",
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.8",
31
- "@telia-ace/widget-forms": "^1.0.23-next.8",
32
- "@telia-ace/widget-routing": "^1.0.17-next.8",
33
- "@telia-ace/widget-services": "^1.0.16-next.8",
34
- "@telia-ace/widget-ui": "^1.0.23-next.8",
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": "f21dbbad8621028b50875183284ce82c5938e536"
60
- }
2
+ "name": "@telia-ace/widget-types-grid",
3
+ "version": "1.0.25",
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.16",
25
+ "@telia-ace/widget-forms": "^1.0.23",
26
+ "@telia-ace/widget-routing": "^1.0.17",
27
+ "@telia-ace/widget-services": "^1.0.16",
28
+ "@telia-ace/widget-ui": "^1.0.23",
29
+ "@telia-ace/widget-utilities": "^1.0.5",
30
+ "@webprovisions/bootstrapping": "^1.0.12",
31
+ "@webprovisions/platform": "^1.1.2"
32
+ },
33
+ "peerDependencies": {
34
+ "@emotion/react": "^11.10.4",
35
+ "@emotion/styled": "^11.10.4",
36
+ "react": "^18.2.0",
37
+ "react-dom": "^18.2.0",
38
+ "react-router": "^5.3.4",
39
+ "react-router-dom": "^5.3.4",
40
+ "react-transition-group": "^4.4.5"
41
+ },
42
+ "devDependencies": {
43
+ "@emotion/react": "^11.10.5",
44
+ "@emotion/styled": "^11.10.5",
45
+ "@telia-ace/widget-developer-tools": "^1.0.11",
46
+ "@types/react": "^18.0.24",
47
+ "@types/react-dom": "^18.0.8",
48
+ "@types/react-router": "^5.1.19",
49
+ "@types/react-router-dom": "^5.3.3",
50
+ "@types/react-transition-group": "^4.4.5",
51
+ "react": "^18.2.0",
52
+ "react-dom": "^18.2.0",
53
+ "react-router": "^5.3.4",
54
+ "react-router-dom": "^5.3.4",
55
+ "react-transition-group": "^4.4.5"
56
+ },
57
+ "scripts": {
58
+ "clean": "rimraf ./dist",
59
+ "build": "rimraf ./dist && tsc -emitDeclarationOnly && vite build"
60
+ }
61
+ }
@@ -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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AAAI,GAAA;AAAA,IAAU,IAAIR;AAAA,IAAO,QAAO;AAAA,EAAA,CAAU,CAC3C,CACJ,CACJ;AAER,GAEAS,IAAeZ,GCjDfa,IAAe,CAACpB,GAAsBqB,MAAyB;AAE3D,EADa1B,EAAW0B,CAAO,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);