@telia-ace/widget-types-grid 1.0.37 → 1.1.1-rc.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.
Files changed (44) hide show
  1. package/index-008a4ecb.js +1 -0
  2. package/index-1489b1e4.mjs +75 -0
  3. package/index-31330b2a.mjs +9945 -0
  4. package/index-48ee95ae.js +1 -0
  5. package/index-61eaf406.js +703 -0
  6. package/index-dc8062c1.js +9 -0
  7. package/index-ebd3abf1.mjs +76 -0
  8. package/index-fa7051e6.mjs +816 -0
  9. package/index.js +1 -0
  10. package/index.mjs +12 -0
  11. package/package.json +21 -53
  12. package/render-37a76217.mjs +51 -0
  13. package/render-5f9647e7.js +1 -0
  14. package/{dist/unmount-063d8ea3.js → unmount-063d8ea3.mjs} +0 -1
  15. package/unmount-481ce5a7.js +1 -0
  16. package/LICENSE.txt +0 -6
  17. package/README.md +0 -3
  18. package/dist/index.js +0 -950
  19. package/dist/index.js.map +0 -1
  20. package/dist/render-668e4aa4.js +0 -64
  21. package/dist/render-668e4aa4.js.map +0 -1
  22. package/dist/ui/index.d.ts +0 -6
  23. package/dist/unmount-063d8ea3.js.map +0 -1
  24. /package/{dist/component-platform-factory.d.ts → component-platform-factory.d.ts} +0 -0
  25. /package/{dist/index.d.ts → index.d.ts} +0 -0
  26. /package/{dist/services.d.ts → services.d.ts} +0 -0
  27. /package/{dist/ui → ui}/animated-view.d.ts +0 -0
  28. /package/{dist/ui → ui}/component.d.ts +0 -0
  29. /package/{dist/ui → ui}/detached-component.d.ts +0 -0
  30. /package/{dist/ui → ui}/determine-slide-direction.d.ts +0 -0
  31. /package/{dist/ui → ui}/html-element-handlers.d.ts +0 -0
  32. /package/{dist/ui → ui}/not-found.d.ts +0 -0
  33. /package/{dist/ui → ui}/prepare-dom.d.ts +0 -0
  34. /package/{dist/ui → ui}/render.d.ts +0 -0
  35. /package/{dist/ui → ui}/resolvable-component.d.ts +0 -0
  36. /package/{dist/ui → ui}/styles.d.ts +0 -0
  37. /package/{dist/ui → ui}/switch.d.ts +0 -0
  38. /package/{dist/ui → ui}/unmount.d.ts +0 -0
  39. /package/{dist/ui → ui}/use-component-node-properties.d.ts +0 -0
  40. /package/{dist/ui → ui}/use-router.d.ts +0 -0
  41. /package/{dist/ui → ui}/view-outlet.d.ts +0 -0
  42. /package/{dist/ui → ui}/view.d.ts +0 -0
  43. /package/{dist/ui → ui}/wrapper.d.ts +0 -0
  44. /package/{dist/widget.d.ts → widget.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-61eaf406.js");require("react/jsx-runtime");require("react");require("react-dom");exports.Component=e.Component;exports.DetachedComponent=e.DetachedComponent;exports.GridWidget=e.Widget;exports.NotFound=e.NotFound;exports.Widget=e.Widget;exports.genericComponentStyling=e.styling;
package/index.mjs ADDED
@@ -0,0 +1,12 @@
1
+ import { e as i, a4 as m, a7 as p, a5 as r, a7 as s, a6 as d } from "./index-31330b2a.mjs";
2
+ import "react/jsx-runtime";
3
+ import "react";
4
+ import "react-dom";
5
+ export {
6
+ i as Component,
7
+ m as DetachedComponent,
8
+ p as GridWidget,
9
+ r as NotFound,
10
+ s as Widget,
11
+ d as genericComponentStyling
12
+ };
package/package.json CHANGED
@@ -1,63 +1,31 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-types-grid",
3
- "version": "1.0.37",
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"
3
+ "version": "1.1.1-rc.0",
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/widget-core": "1.0.28",
25
- "@telia-ace/widget-forms": "1.0.35",
26
- "@telia-ace/widget-routing": "1.0.29",
27
- "@telia-ace/widget-services": "1.0.28",
28
- "@telia-ace/widget-ui": "1.0.35",
29
- "@telia-ace/widget-utilities": "1.0.17",
30
- "@webprovisions/bootstrapping": "^1.0.13",
31
- "@webprovisions/platform": "^1.1.3"
13
+ "@telia-ace/widget-core": "^1.1.1-rc.0",
14
+ "@telia-ace/widget-routing": "^1.1.1-rc.0",
15
+ "@telia-ace/widget-services": "^1.1.1-rc.0",
16
+ "@telia-ace/widget-ui": "^1.1.1-rc.0",
17
+ "@telia-ace/widget-utilities": "^1.1.1-rc.0",
18
+ "@webprovisions/bootstrapping": "^1.0.14",
19
+ "@webprovisions/platform": "^1.1.4"
32
20
  },
33
21
  "peerDependencies": {
34
- "@emotion/cache": "^11.10.5",
35
- "@emotion/react": "^11.10.5",
36
- "@emotion/styled": "^11.10.5",
37
- "react": "^18.2.0",
38
- "react-dom": "^18.2.0",
22
+ "react": "18.2.0",
23
+ "react-transition-group": "4.4.5",
24
+ "react-dom": "18.2.0",
39
25
  "react-router": "^5.3.4",
40
- "react-router-dom": "^5.3.4",
41
- "react-transition-group": "^4.4.5"
42
- },
43
- "devDependencies": {
44
26
  "@emotion/cache": "^11.10.5",
45
- "@emotion/react": "^11.10.5",
46
- "@emotion/styled": "^11.10.5",
47
- "@telia-ace/widget-developer-tools": "1.0.23",
48
- "@types/react": "^18.0.27",
49
- "@types/react-dom": "^18.0.10",
50
- "@types/react-router": "^5.1.20",
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"
27
+ "@emotion/react": "11.11.1",
28
+ "@emotion/styled": "11.11.0",
29
+ "react-router-dom": "5.3.4"
62
30
  }
63
31
  }
@@ -0,0 +1,51 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import h from "react-dom";
3
+ import { u as v, c as m, a as y, C as R, R as E, b as _, d as C, e as b } from "./index-31330b2a.mjs";
4
+ import { useState as d, useEffect as p } from "react";
5
+ var i, u = h;
6
+ if (process.env.NODE_ENV === "production")
7
+ i = u.createRoot, u.hydrateRoot;
8
+ else {
9
+ var a = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
10
+ i = function(r, e) {
11
+ a.usingClientEntryPoint = !0;
12
+ try {
13
+ return u.createRoot(r, e);
14
+ } finally {
15
+ a.usingClientEntryPoint = !1;
16
+ }
17
+ };
18
+ }
19
+ const P = (r) => {
20
+ const [e, t] = d(null), o = v();
21
+ return p(() => {
22
+ r.getAsync("router").then((s) => {
23
+ o.current && t(s);
24
+ });
25
+ }, [r, o]), e;
26
+ };
27
+ var l;
28
+ const N = m({
29
+ key: "css",
30
+ prepend: !0,
31
+ nonce: ((l = window.webprovisionsEnvironmentVariables) == null ? void 0 : l.cspNonce) || void 0
32
+ }), O = ({ container: r }) => {
33
+ const e = y(r), t = P(r), [o, s] = d(null);
34
+ return p(() => {
35
+ if (e)
36
+ return s(e.nodes.root.children.default[0].id || null), e.events.subscribe(
37
+ "components:root-children-changed",
38
+ (D, { node: c }) => {
39
+ if (c.parent && c.parent.type === "root") {
40
+ const f = c.parent.children.default[0].id;
41
+ s(f);
42
+ }
43
+ }
44
+ );
45
+ }, [e]), !t || !t.history || !e || !o ? null : /* @__PURE__ */ n(R, { value: N, children: /* @__PURE__ */ n(E, { history: t.history, children: /* @__PURE__ */ n(_.Provider, { value: r, children: /* @__PURE__ */ n(C.Provider, { value: t, children: /* @__PURE__ */ n(b, { id: o, branch: "default" }) }) }) }) });
46
+ }, g = O, M = (r, e) => {
47
+ i(e).render(/* @__PURE__ */ n(g, { container: r }));
48
+ };
49
+ export {
50
+ M as default
51
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),h=require("react-dom"),r=require("./index-61eaf406.js"),i=require("react");var a,c=h;if(process.env.NODE_ENV==="production")a=c.createRoot,c.hydrateRoot;else{var d=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;a=function(t,e){d.usingClientEntryPoint=!0;try{return c.createRoot(t,e)}finally{d.usingClientEntryPoint=!1}}}const v=t=>{const[e,n]=i.useState(null),s=r.useIsMounted();return i.useEffect(()=>{t.getAsync("router").then(u=>{s.current&&n(u)})},[t,s]),e};var f;const y=r.createCache({key:"css",prepend:!0,nonce:((f=window.webprovisionsEnvironmentVariables)==null?void 0:f.cspNonce)||void 0}),R=({container:t})=>{const e=r.useComponentPlatform(t),n=v(t),[s,u]=i.useState(null);return i.useEffect(()=>{if(e)return u(e.nodes.root.children.default[0].id||null),e.events.subscribe("components:root-children-changed",(x,{node:l})=>{if(l.parent&&l.parent.type==="root"){const p=l.parent.children.default[0].id;u(p)}})},[e]),!n||!n.history||!e||!s?null:o.jsx(r.CacheProvider,{value:y,children:o.jsx(r.Router,{history:n.history,children:o.jsx(r.ContainerContext.Provider,{value:t,children:o.jsx(r.RoutingContext.Provider,{value:n,children:o.jsx(r.Component,{id:s,branch:"default"})})})})})},E=R,_=(t,e)=>{a(e).render(o.jsx(E,{container:t}))};exports.default=_;
@@ -3,4 +3,3 @@ const m = (o) => t(o);
3
3
  export {
4
4
  m as default
5
5
  };
6
- //# sourceMappingURL=unmount-063d8ea3.js.map
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react-dom"),o=t=>e.unmountComponentAtNode(t);exports.default=o;
package/LICENSE.txt DELETED
@@ -1,6 +0,0 @@
1
- Copyright © 2021, Telia Company AB. All rights reserved.
2
-
3
- THIS PACKAGE AND CONTAINING SOFTWARE IS PART OF
4
- THE HUMANY SERVICE. BY USING THIS SOFTWARE YOU
5
- AGREE TO THE FOLLOWING TERMS AND CONDITIONS:
6
- http://www.humany.com/legal
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # `@telia-ace/widget-types-grid`
2
-
3
- The type definition for ACE One Widget (exported as `GridWidget`).