@shelf/global-renderer 1.0.4-beta.44 → 1.0.4-beta.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/CHANGELOG.md +2413 -44
- package/lib/DecisionTreeContent/DecisionTreeContent.d.ts +2 -2
- package/lib/DecisionTreeContent/DecisionTreeContent.styled.d.ts +47 -11483
- package/lib/DecisionTreeContent/components/Condition.d.ts +2 -2
- package/lib/DecisionTreeContent/components/ContentTable.d.ts +2 -2
- package/lib/DecisionTreeContent/components/ExportedMeta.d.ts +3 -3
- package/lib/DecisionTreeContent/components/Link.d.ts +2 -2
- package/lib/DecisionTreeContent/components/Question.d.ts +2 -2
- package/lib/DecisionTreeContent/components/Solution.d.ts +2 -2
- package/lib/DecisionTreeContent/components/StepHeader.d.ts +2 -2
- package/lib/DecisionTreeContent/helpers.d.ts +4 -4
- package/lib/DecisionTreeContent/types.d.ts +1 -1
- package/lib/DecisionTreeDiagram/StaticTreeContainer.d.ts +2 -2
- package/lib/index.d.ts +0 -3
- package/lib/renderDTContent.js +2 -0
- package/lib/renderDTContent.js.LICENSE.txt +57 -0
- package/lib/renderStaticDTDiagram.js +2 -0
- package/lib/renderStaticDTDiagram.js.LICENSE.txt +63 -0
- package/package.json +9 -9
- package/lib/index.js +0 -20385
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="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
|
-
}) =>
|
|
7
|
+
}) => JSX.Element;
|
|
8
8
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
declare const _default: ({ exportedAt, exportedBy, createdBy, }: {
|
|
3
|
-
exportedAt:
|
|
3
|
+
exportedAt: Date;
|
|
4
4
|
exportedBy: string;
|
|
5
5
|
createdBy: string;
|
|
6
|
-
}) =>
|
|
6
|
+
}) => JSX.Element;
|
|
7
7
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="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
|
-
}) =>
|
|
7
|
+
}) => JSX.Element;
|
|
8
8
|
export default _default;
|
|
@@ -6,10 +6,7 @@ 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;
|
|
10
|
-
title?: string | undefined;
|
|
11
9
|
id: string;
|
|
12
|
-
content?: string | undefined;
|
|
13
10
|
question: {
|
|
14
11
|
id: string;
|
|
15
12
|
title?: string | undefined;
|
|
@@ -24,6 +21,8 @@ export declare const getTreeWithParentSteps: (tree: Omit<DTStep, 'parentSteps'>[
|
|
|
24
21
|
assignments?: import("@shelf/types-ddb/lib/decision-tree").Assignment[] | undefined;
|
|
25
22
|
}[];
|
|
26
23
|
};
|
|
24
|
+
title?: string | undefined;
|
|
25
|
+
type?: import("@shelf/types-ddb/lib/decision-tree").StepType | undefined;
|
|
27
26
|
textS3Key?: string | undefined;
|
|
28
27
|
url?: string | undefined;
|
|
29
28
|
settings?: import("@shelf/types-ddb/lib/decision-tree").StepSettings | undefined;
|
|
@@ -34,6 +33,7 @@ export declare const getTreeWithParentSteps: (tree: Omit<DTStep, 'parentSteps'>[
|
|
|
34
33
|
number?: string | undefined;
|
|
35
34
|
}) | undefined;
|
|
36
35
|
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:
|
|
44
|
+
export declare const getDateAndTime: (date: Date) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="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
|
-
}) =>
|
|
6
|
+
}) => JSX.Element;
|
|
7
7
|
export default StaticTreeContainer;
|
package/lib/index.d.ts
CHANGED