@shelf/global-renderer 1.0.0-beta.0 → 1.0.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 (57) hide show
  1. package/CHANGELOG.md +45 -2367
  2. package/lib/DecisionTreeContent/DecisionTreeContent.d.ts +2 -2
  3. package/lib/DecisionTreeContent/DecisionTreeContent.styled.d.ts +11483 -47
  4. package/lib/DecisionTreeContent/components/Condition.d.ts +2 -2
  5. package/lib/DecisionTreeContent/components/ContentTable.d.ts +2 -2
  6. package/lib/DecisionTreeContent/components/ExportedMeta.d.ts +3 -3
  7. package/lib/DecisionTreeContent/components/Link.d.ts +2 -2
  8. package/lib/DecisionTreeContent/components/Question.d.ts +2 -2
  9. package/lib/DecisionTreeContent/components/Solution.d.ts +2 -2
  10. package/lib/DecisionTreeContent/components/StepHeader.d.ts +2 -2
  11. package/lib/DecisionTreeContent/helpers.d.ts +4 -4
  12. package/lib/DecisionTreeContent/types.d.ts +1 -1
  13. package/lib/DecisionTreeDiagram/StaticTreeContainer.d.ts +2 -2
  14. package/lib/index.js +20383 -4
  15. package/package.json +19 -16
  16. package/lib/DecisionTreeContent/DecisionTreeContent.js +0 -84
  17. package/lib/DecisionTreeContent/DecisionTreeContent.styled.js +0 -225
  18. package/lib/DecisionTreeContent/components/Condition.js +0 -73
  19. package/lib/DecisionTreeContent/components/ContentTable.js +0 -26
  20. package/lib/DecisionTreeContent/components/ExportedMeta.js +0 -29
  21. package/lib/DecisionTreeContent/components/Link.js +0 -18
  22. package/lib/DecisionTreeContent/components/Question.js +0 -55
  23. package/lib/DecisionTreeContent/components/Solution.js +0 -20
  24. package/lib/DecisionTreeContent/components/StepHeader.js +0 -46
  25. package/lib/DecisionTreeContent/components/StepTypeIcon.js +0 -30
  26. package/lib/DecisionTreeContent/helpers.js +0 -56
  27. package/lib/DecisionTreeContent/renderDTContent.js +0 -12
  28. package/lib/DecisionTreeDiagram/StaticTreeContainer.js +0 -27
  29. package/lib/DecisionTreeDiagram/renderStaticDTDiagram.js +0 -26
  30. package/lib/_virtual/_commonjsHelpers.js +0 -4
  31. package/lib/_virtual/advancedFormat.js +0 -4
  32. package/lib/_virtual/client.js +0 -4
  33. package/lib/_virtual/dayjs.min.js +0 -4
  34. package/lib/_virtual/index.js +0 -4
  35. package/lib/_virtual/index2.js +0 -4
  36. package/lib/_virtual/localeData.js +0 -4
  37. package/lib/_virtual/localizedFormat.js +0 -4
  38. package/lib/_virtual/react-dom.development.js +0 -4
  39. package/lib/_virtual/react-dom.production.min.js +0 -4
  40. package/lib/_virtual/scheduler.development.js +0 -4
  41. package/lib/_virtual/scheduler.production.min.js +0 -4
  42. package/lib/i18next/index.js +0 -18
  43. package/lib/node_modules/@shelf/datetime/lib/getDateFormatTemplates.js +0 -15
  44. package/lib/node_modules/@shelf/datetime/lib/getDateWithCustomFormat.js +0 -10
  45. package/lib/node_modules/@shelf/datetime/lib/getTimeFormatTemplates.js +0 -17
  46. package/lib/node_modules/@shelf/datetime/lib/isDate.js +0 -4
  47. package/lib/node_modules/@shelf/datetime/node_modules/dayjs/dayjs.min.js +0 -295
  48. package/lib/node_modules/@shelf/datetime/node_modules/dayjs/plugin/advancedFormat.js +0 -54
  49. package/lib/node_modules/@shelf/datetime/node_modules/dayjs/plugin/localeData.js +0 -82
  50. package/lib/node_modules/@shelf/datetime/node_modules/dayjs/plugin/localizedFormat.js +0 -28
  51. package/lib/node_modules/react-dom/cjs/react-dom.development.js +0 -12880
  52. package/lib/node_modules/react-dom/cjs/react-dom.production.min.js +0 -5643
  53. package/lib/node_modules/react-dom/client.js +0 -28
  54. package/lib/node_modules/react-dom/index.js +0 -17
  55. package/lib/node_modules/scheduler/cjs/scheduler.development.js +0 -278
  56. package/lib/node_modules/scheduler/cjs/scheduler.production.min.js +0 -231
  57. package/lib/node_modules/scheduler/index.js +0 -12
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { DecisionTree } from '@shelf/types-ddb';
3
3
  import { DTStep } from '../types';
4
4
  declare const _default: ({ step, variables, }: {
5
5
  step: DTStep;
6
6
  variables: Pick<DecisionTree.ContextualVariableDefaults, 'name' | 'id' | 'isDeleted'>[];
7
- }) => JSX.Element;
7
+ }) => React.JSX.Element;
8
8
  export default _default;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { DTStep } from '../types';
3
3
  declare const _default: ({ tree }: {
4
4
  tree: DTStep[];
5
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
6
6
  export default _default;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare const _default: ({ exportedAt, exportedBy, createdBy, }: {
3
- exportedAt: Date;
3
+ exportedAt: string;
4
4
  exportedBy: string;
5
5
  createdBy: string;
6
- }) => JSX.Element;
6
+ }) => React.JSX.Element;
7
7
  export default _default;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { DTStep } from '../types';
3
3
  declare const _default: ({ step }: {
4
4
  step: DTStep;
5
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
6
6
  export default _default;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { DecisionTree } from '@shelf/types-ddb';
3
3
  import { DTStep } from '../types';
4
4
  declare const _default: ({ step, variables, }: {
5
5
  step: DTStep;
6
6
  variables: Pick<DecisionTree.ContextualVariableDefaults, 'name' | 'id' | 'isDeleted'>[];
7
- }) => JSX.Element;
7
+ }) => React.JSX.Element;
8
8
  export default _default;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { DTStep } from '../types';
3
3
  declare const _default: ({ step }: {
4
4
  step: DTStep;
5
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
6
6
  export default _default;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { DTStep } from '../types';
3
3
  declare const _default: ({ step }: {
4
4
  step: DTStep;
5
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
6
6
  export default _default;
@@ -6,10 +6,10 @@ export declare const getTreeWithParentSteps: (tree: Omit<DTStep, 'parentSteps'>[
6
6
  number: number;
7
7
  }[];
8
8
  number: number;
9
+ type: import("@shelf/types-ddb/lib/decision-tree").StepType;
9
10
  title?: string | undefined;
10
- url?: string | undefined;
11
11
  id: string;
12
- type?: import("@shelf/types-ddb/lib/decision-tree").StepType | undefined;
12
+ content?: string | undefined;
13
13
  question: {
14
14
  id: string;
15
15
  title?: string | undefined;
@@ -25,6 +25,7 @@ export declare const getTreeWithParentSteps: (tree: Omit<DTStep, 'parentSteps'>[
25
25
  }[];
26
26
  };
27
27
  textS3Key?: string | undefined;
28
+ url?: string | undefined;
28
29
  settings?: import("@shelf/types-ddb/lib/decision-tree").StepSettings | undefined;
29
30
  defaultNextStep?: ({
30
31
  id: string;
@@ -33,7 +34,6 @@ export declare const getTreeWithParentSteps: (tree: Omit<DTStep, 'parentSteps'>[
33
34
  number?: string | undefined;
34
35
  }) | undefined;
35
36
  conditions?: (import("@shelf/types-ddb/lib/decision-tree").Condition[] & import("./types").ConditionType[]) | undefined;
36
- content?: string | undefined;
37
37
  isFirstStep?: boolean | undefined;
38
38
  linkedSteps?: {
39
39
  id?: string | undefined;
@@ -41,4 +41,4 @@ export declare const getTreeWithParentSteps: (tree: Omit<DTStep, 'parentSteps'>[
41
41
  }[] | undefined;
42
42
  }[];
43
43
  export declare const convertStepToRenderFormat: (tree: DTStepFromApi[]) => DTStep[];
44
- export declare const getDateAndTime: (date: Date) => string;
44
+ export declare const getDateAndTime: (date: string) => string;
@@ -9,7 +9,7 @@ export type RenderDTContentData = {
9
9
  title: string;
10
10
  description: string;
11
11
  language: L10n.LanguageCode;
12
- exportedAt: Date;
12
+ exportedAt: string;
13
13
  exportedBy: string;
14
14
  createdBy: string;
15
15
  fields?: {
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { DecisionTree } from '@shelf/types-ddb';
3
3
  declare const StaticTreeContainer: ({ tree, variables, }: {
4
4
  tree: DecisionTree.Step[];
5
5
  variables: DecisionTree.ContextualVariableDefaults[];
6
- }) => JSX.Element;
6
+ }) => React.JSX.Element;
7
7
  export default StaticTreeContainer;