@shelf/global-renderer 1.0.3-beta.0 → 1.0.4-beta.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 (50) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/lib/DecisionTreeContent/DecisionTreeContent.d.ts +2 -2
  3. package/lib/DecisionTreeContent/DecisionTreeContent.js +68 -63
  4. package/lib/DecisionTreeContent/DecisionTreeContent.styled.js +101 -101
  5. package/lib/DecisionTreeContent/components/Condition.d.ts +2 -2
  6. package/lib/DecisionTreeContent/components/Condition.js +43 -39
  7. package/lib/DecisionTreeContent/components/ContentTable.d.ts +2 -2
  8. package/lib/DecisionTreeContent/components/ContentTable.js +29 -24
  9. package/lib/DecisionTreeContent/components/ExportedMeta.d.ts +3 -3
  10. package/lib/DecisionTreeContent/components/ExportedMeta.js +27 -23
  11. package/lib/DecisionTreeContent/components/Link.d.ts +2 -2
  12. package/lib/DecisionTreeContent/components/Question.d.ts +2 -2
  13. package/lib/DecisionTreeContent/components/Question.js +14 -12
  14. package/lib/DecisionTreeContent/components/Solution.d.ts +2 -2
  15. package/lib/DecisionTreeContent/components/StepHeader.d.ts +2 -2
  16. package/lib/DecisionTreeContent/components/StepHeader.js +50 -38
  17. package/lib/DecisionTreeContent/components/StepTypeIcon.js +17 -14
  18. package/lib/DecisionTreeContent/helpers.d.ts +4 -4
  19. package/lib/DecisionTreeContent/helpers.js +17 -17
  20. package/lib/DecisionTreeContent/types.d.ts +1 -1
  21. package/lib/DecisionTreeDiagram/StaticTreeContainer.d.ts +2 -2
  22. package/lib/DecisionTreeDiagram/StaticTreeContainer.js +10 -7
  23. package/lib/_virtual/index.js +2 -2
  24. package/lib/_virtual/index2.js +1 -1
  25. package/lib/i18next/index.js +6 -6
  26. package/lib/node_modules/@shelf/i18n/lib/bundles/pdf-viewer/index.js +25 -0
  27. package/lib/node_modules/@shelf/i18n/lib/bundles/pdf-viewer/translations/de.js +7 -0
  28. package/lib/node_modules/@shelf/i18n/lib/bundles/pdf-viewer/translations/en.js +7 -0
  29. package/lib/node_modules/@shelf/i18n/lib/bundles/pdf-viewer/translations/es.js +7 -0
  30. package/lib/node_modules/@shelf/i18n/lib/bundles/pdf-viewer/translations/pl.js +7 -0
  31. package/lib/node_modules/@shelf/i18n/lib/bundles/pdf-viewer/translations/uk.js +7 -0
  32. package/lib/node_modules/@shelf/i18n/lib/helpers.js +19 -0
  33. package/lib/node_modules/@shelf/i18n/lib/resources/de/pdf-viewer/index.json.js +50 -0
  34. package/lib/node_modules/@shelf/i18n/lib/resources/en/pdf-viewer/index.json.js +50 -0
  35. package/lib/node_modules/@shelf/i18n/lib/resources/es/pdf-viewer/index.json.js +50 -0
  36. package/lib/node_modules/@shelf/i18n/lib/resources/pl/pdf-viewer/index.json.js +50 -0
  37. package/lib/node_modules/@shelf/i18n/lib/resources/uk/pdf-viewer/index.json.js +50 -0
  38. package/lib/node_modules/react-dom/cjs/react-dom.development.js +583 -69
  39. package/lib/node_modules/react-dom/cjs/react-dom.production.min.js +81 -83
  40. package/lib/node_modules/react-dom/client.js +3 -5
  41. package/lib/node_modules/react-dom/index.js +17 -15
  42. package/lib/node_modules/scheduler/index.js +6 -8
  43. package/lib/packages/colors/lib/colors.js +12 -0
  44. package/lib/packages/icons/lib/Containers/IconContainer/IconContainer.js +31 -0
  45. package/lib/packages/icons/lib/Icons/Condition.js +14 -0
  46. package/lib/packages/icons/lib/Icons/DecisionTree.js +18 -0
  47. package/lib/packages/icons/lib/Icons/Link.js +13 -0
  48. package/lib/packages/icons/lib/Icons/Question.js +18 -0
  49. package/lib/packages/icons/lib/Icons/Solution.js +14 -0
  50. package/package.json +13 -8
@@ -1,17 +1,19 @@
1
- import { r as o } from "../../_virtual/index.js";
2
- import { __require as t } from "./cjs/react-dom.production.min.js";
3
- import { __require as c } from "./cjs/react-dom.development.js";
4
- (function(r) {
5
- function e() {
6
- if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
7
- if (process.env.NODE_ENV !== "production")
8
- throw new Error("^_^");
9
- try {
10
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);
11
- } catch (_) {
12
- console.error(_);
13
- }
1
+ import { __module as r } from "../../_virtual/index.js";
2
+ import { __require as _ } from "./cjs/react-dom.production.min.js";
3
+ import { __require as t } from "./cjs/react-dom.development.js";
4
+ function e() {
5
+ if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
6
+ if (process.env.NODE_ENV !== "production")
7
+ throw new Error("^_^");
8
+ try {
9
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);
10
+ } catch (o) {
11
+ console.error(o);
14
12
  }
15
13
  }
16
- process.env.NODE_ENV === "production" ? (e(), r.exports = t()) : r.exports = c();
17
- })(o);
14
+ }
15
+ process.env.NODE_ENV === "production" ? (e(), r.exports = _()) : r.exports = t();
16
+ var n = r.exports;
17
+ export {
18
+ n as r
19
+ };
@@ -1,12 +1,10 @@
1
- import { s as e } from "../../_virtual/index2.js";
2
- import { __require as i } from "./cjs/scheduler.production.min.js";
1
+ import { __module as e } from "../../_virtual/index2.js";
2
+ import { __require as o } from "./cjs/scheduler.production.min.js";
3
3
  import { __require as u } from "./cjs/scheduler.development.js";
4
- var o;
5
- function n() {
6
- return o ? e.exports : (o = 1, function(r) {
7
- process.env.NODE_ENV === "production" ? r.exports = i() : r.exports = u();
8
- }(e), e.exports);
4
+ var r;
5
+ function p() {
6
+ return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = u(), e.exports);
9
7
  }
10
8
  export {
11
- n as __require
9
+ p as __require
12
10
  };
@@ -0,0 +1,12 @@
1
+ const e = "#fe9b00", c = "#00a5ff", o = "#2b5797", f = "#f3f6f9", t = "#2a303b", n = "#4eaf52", s = "#ffffff", $ = "#939393", r = "#7358a2";
2
+ export {
3
+ c as $catchyBlue,
4
+ r as $colorDecisionTree,
5
+ t as $dark,
6
+ o as $deepBlue,
7
+ n as $greenCheck,
8
+ f as $greyBlue,
9
+ $ as $greyThemeText,
10
+ s as $white,
11
+ e as $yellow
12
+ };
@@ -0,0 +1,31 @@
1
+ import r from "styled-components";
2
+ import { jsxs as l, jsx as s } from "react/jsx-runtime";
3
+ const c = (i) => typeof i == "number" ? `${i}px` : i, m = r.svg`
4
+ display: inline-block;
5
+ fill: currentColor;
6
+ width: 1em;
7
+ height: 1em;
8
+ color: ${(i) => i.color || "inherit"};
9
+ font-size: ${(i) => c(i.iconSize)};
10
+ transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
11
+ `, h = (i) => {
12
+ const {
13
+ children: o,
14
+ testId: t = `icon-${i.iconName}`,
15
+ title: e,
16
+ ...n
17
+ } = i;
18
+ return /* @__PURE__ */ l(m, {
19
+ className: "Icon",
20
+ xmlns: "http://www.w3.org/2000/svg",
21
+ "data-testid": t,
22
+ ...n,
23
+ children: [e && /* @__PURE__ */ s("title", {
24
+ children: e
25
+ }), o]
26
+ });
27
+ };
28
+ export {
29
+ h as IconContainer,
30
+ m as SVG
31
+ };
@@ -0,0 +1,14 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { IconContainer as e } from "../Containers/IconContainer/IconContainer.js";
3
+ const i = (n) => /* @__PURE__ */ o(e, {
4
+ viewBox: "0 0 18 18",
5
+ iconName: "condition",
6
+ ...n,
7
+ children: /* @__PURE__ */ o("path", {
8
+ fillRule: "nonzero",
9
+ d: "M4.209 16.636 3 15.44l4.14-4.098A3.38 3.38 0 0 0 8.143 8.94V4.613L6.78 5.953 5.571 4.759 9 1.364l3.429 3.394-1.209 1.196-1.363-1.34V8.94c0 .899.36 1.764 1.003 2.4l4.14 4.1-1.209 1.196L9 11.893l-4.791 4.743z"
10
+ })
11
+ }), r = i;
12
+ export {
13
+ r as default
14
+ };
@@ -0,0 +1,18 @@
1
+ import { jsx as c, jsxs as o } from "react/jsx-runtime";
2
+ import { IconContainer as e } from "../Containers/IconContainer/IconContainer.js";
3
+ const h = (a) => /* @__PURE__ */ c(e, {
4
+ viewBox: "0 0 32 32",
5
+ iconName: "decision-tree",
6
+ ...a,
7
+ children: /* @__PURE__ */ o("g", {
8
+ fillRule: "nonzero",
9
+ children: [/* @__PURE__ */ c("path", {
10
+ d: "M22.818 14.766c2.34 0 4.237 1.986 4.217 4.414v5.32h-2.133v-5.32c0-1.238-.944-2.231-2.104-2.231H8.661c-1.16 0-2.104.993-2.104 2.231v5.32H4.424v-5.32c0-2.418 1.897-4.414 4.237-4.414h6.007V5.407H16.8v9.36h6.017l.001-.001Z"
11
+ }), /* @__PURE__ */ c("path", {
12
+ d: "M1.966 19.662h7.865c1.081 0 1.966.885 1.966 1.966v7.865a1.972 1.972 0 0 1-1.966 1.966H1.966A1.972 1.972 0 0 1 0 29.493v-7.865c0-1.081.885-1.966 1.966-1.966Zm19.662 0h7.865c1.082 0 1.966.885 1.966 1.966v7.865a1.972 1.972 0 0 1-1.966 1.966h-7.865a1.972 1.972 0 0 1-1.966-1.966v-7.865c0-1.081.885-1.966 1.966-1.966ZM11.797 0h7.865c1.081 0 1.966.885 1.966 1.966v7.865a1.972 1.972 0 0 1-1.966 1.966h-7.865a1.972 1.972 0 0 1-1.966-1.966V1.966C9.831.885 10.716 0 11.797 0Z"
13
+ })]
14
+ })
15
+ }), i = h;
16
+ export {
17
+ i as default
18
+ };
@@ -0,0 +1,13 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { IconContainer as s } from "../Containers/IconContainer/IconContainer.js";
3
+ const o = (l) => /* @__PURE__ */ c(s, {
4
+ viewBox: "0 0 16 16",
5
+ iconName: "link",
6
+ ...l,
7
+ children: /* @__PURE__ */ c("path", {
8
+ d: "M8.4 1.1C9.1.4 10 0 11.1 0c1 0 1.9.4 2.7 1.1l1.1 1.1c.7.7 1.1 1.6 1.1 2.7s-.4 1.9-1.1 2.7l-3.6 3.6c-1.1 1.1-2.5 1.4-3.9.8-.5-.2-1-.5-1.3-.8L4.9 10l1.6-1.6 1.1 1.1c.3.3.7.5 1.1.5s.8-.2 1.1-.5l3.6-3.6c.3-.3.5-.7.5-1.1s-.2-.8-.5-1.1l-1.1-1.1c-.3-.3-.7-.5-1.1-.5-.4 0-.8.2-1.1.5l-.5.5c-.4-.2-.8-.4-1.2-.5s-.8-.1-1.1-.1H7l1.4-1.4zm.4 2.8c.5.2.9.5 1.3.9l1.1 1.1-1.6 1.6-1.1-1.1c-.3-.3-.7-.5-1.1-.5s-.8.2-1.1.5L2.7 10c-.3.3-.5.7-.5 1.1s.2.8.5 1.1l1.1 1.1c.3.3.7.5 1.1.5s.8-.2 1.1-.5l.5-.5c.4.2.8.4 1.2.5s.8.1 1.1.1h.4L7.6 15c-.7.6-1.6 1-2.7 1s-1.9-.4-2.7-1.1l-1.1-1.1C.4 13.1 0 12.2 0 11.1s.4-1.9 1.1-2.7l3.6-3.6c.5-.5 1.2-.9 1.9-1 .9-.3 1.5-.2 2.2.1z"
9
+ })
10
+ }), i = o;
11
+ export {
12
+ i as default
13
+ };
@@ -0,0 +1,18 @@
1
+ import { jsx as o, jsxs as e } from "react/jsx-runtime";
2
+ import { IconContainer as n } from "../Containers/IconContainer/IconContainer.js";
3
+ const r = (c) => /* @__PURE__ */ o(n, {
4
+ viewBox: "0 0 50 50",
5
+ iconName: "question",
6
+ ...c,
7
+ children: /* @__PURE__ */ e("g", {
8
+ fillRule: "nonzero",
9
+ children: [/* @__PURE__ */ o("path", {
10
+ d: "M25 0C11.215 0 0 11.215 0 25s11.215 25 25 25 25-11.215 25-25S38.785 0 25 0Zm0 45.455C13.721 45.455 4.545 36.279 4.545 25 4.545 13.722 13.721 4.545 25 4.545c11.279 0 20.455 9.177 20.455 20.455 0 11.279-9.176 20.455-20.455 20.455Z"
11
+ }), /* @__PURE__ */ o("path", {
12
+ d: "M26.975 35.296c.066-.856-.18-1.58-.74-2.173-.56-.592-1.268-.888-2.124-.888-.79 0-1.481.263-2.074.79-.593.526-.889 1.218-.889 2.074 0 .856.264 1.564.79 2.123.527.56 1.185.84 1.976.84.856 0 1.58-.247 2.172-.741.593-.494.89-1.169.89-2.025h-.001Zm4.84-12.642C32.605 21.535 33 20.35 33 19.1c0-2.173-.823-3.885-2.47-5.136-1.58-1.185-3.62-1.778-6.123-1.778-1.843 0-3.39.428-4.642 1.284C17.922 14.72 17 16.96 17 20.185h4.84c0-1.383.131-2.271.395-2.666.592-.988 1.448-1.482 2.567-1.482 1.12 0 1.943.362 2.47 1.086.526.725.79 1.482.79 2.272 0 .527-.264 1.185-.79 1.975-.132.264-.461.593-.988.988-1.712.988-2.864 1.975-3.457 2.963-.527.856-.856 2.206-.987 4.05 0 .263.131.394.395.394h3.851c.33 0 .494-.131.494-.395 0-.724.066-1.35.198-1.876.197-.593.592-1.152 1.185-1.68l1.383-.888c1.25-.922 2.074-1.68 2.469-2.272Z"
13
+ })]
14
+ })
15
+ }), a = r;
16
+ export {
17
+ a as default
18
+ };
@@ -0,0 +1,14 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { IconContainer as e } from "../Containers/IconContainer/IconContainer.js";
3
+ const i = (a) => /* @__PURE__ */ o(e, {
4
+ viewBox: "0 0 14 14",
5
+ iconName: "solution",
6
+ ...a,
7
+ children: /* @__PURE__ */ o("path", {
8
+ fillRule: "evenodd",
9
+ d: "M7 0c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.14-7-7 3.14-7 7-7zm0 1.273A5.734 5.734 0 0 0 1.273 7 5.734 5.734 0 0 0 7 12.727 5.734 5.734 0 0 0 12.727 7 5.734 5.734 0 0 0 7 1.273zm2.748 3.111a.61.61 0 1 1 .862.863L6.244 9.613a.61.61 0 0 1-.863 0L3.387 7.62a.61.61 0 1 1 .863-.862L5.813 8.32z"
10
+ })
11
+ }), l = i;
12
+ export {
13
+ l as default
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shelf/global-renderer",
3
- "version": "1.0.3-beta.0",
3
+ "version": "1.0.4-beta.0",
4
4
  "description": "The package exposes entrypoints with window's function(-s) to render React component",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,23 +29,28 @@
29
29
  "coverage": "yarn test --coverage",
30
30
  "start": "storybook dev -p 3001"
31
31
  },
32
- "devDependencies": {
33
- "@shelf/decision-tree-editor-components": "^1.0.3-beta.0",
32
+ "dependencies": {
34
33
  "@shelf/i18n": "12.0.0",
34
+ "@shelf/icons": "^8.0.2-beta.0",
35
+ "react-i18next": "11.8.15"
36
+ },
37
+ "devDependencies": {
38
+ "@shelf/decision-tree-editor-components": "^1.0.4-beta.0",
35
39
  "@shelf/types": "^50.0.6",
36
40
  "@types/react-dom": "18.0.6",
37
- "i18next": "20.2.2",
41
+ "i18next": "21.6.3",
38
42
  "react-i18next": "11.8.15",
39
43
  "styled-components": "5.3.5"
40
44
  },
41
45
  "peerDependencies": {
42
46
  "@shelf/client-helpers": "4.x.x",
43
47
  "@shelf/datetime": "^2.0.0",
44
- "@shelf/icons": "^7.14.10",
48
+ "@shelf/decision-tree-editor-components": "^1.0.4-beta.0",
45
49
  "@shelf/rich-text-editor": "4.x.x",
46
- "@shelf/types": "^44.82.1",
50
+ "@shelf/types": "^50.0.6",
47
51
  "lodash": "4.17.x",
48
- "react": "18.x.x"
52
+ "react": "18.x.x",
53
+ "styled-components": "5.3.5"
49
54
  },
50
- "gitHead": "20336fdd538a7208cf3600126999e1758ee31f03"
55
+ "gitHead": "abe0e89178ee0b9ba45a77d706b0381a90236dcd"
51
56
  }