@shelf/global-renderer 1.7.5 → 1.8.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.
- package/CHANGELOG.md +15 -0
- package/lib/renderDTContent.js +38 -0
- package/lib/renderDTContent.js.LICENSE.txt +48 -0
- package/lib/renderStaticDTDiagram.js +3847 -0
- package/lib/renderStaticDTDiagram.js.LICENSE.txt +136 -0
- package/package.json +13 -18
- package/lib/DecisionTreeContent/DecisionTreeContent.d.ts +0 -4
- package/lib/DecisionTreeContent/DecisionTreeContent.styled.d.ts +0 -49
- package/lib/DecisionTreeContent/components/Condition.d.ts +0 -8
- package/lib/DecisionTreeContent/components/ContentTable.d.ts +0 -6
- package/lib/DecisionTreeContent/components/ExportedMeta.d.ts +0 -7
- package/lib/DecisionTreeContent/components/Link.d.ts +0 -6
- package/lib/DecisionTreeContent/components/Question.d.ts +0 -8
- package/lib/DecisionTreeContent/components/Solution.d.ts +0 -6
- package/lib/DecisionTreeContent/components/StepHeader.d.ts +0 -6
- package/lib/DecisionTreeContent/components/StepTypeIcon.d.ts +0 -7
- package/lib/DecisionTreeContent/helpers.d.ts +0 -44
- package/lib/DecisionTreeContent/mocks.d.ts +0 -314
- package/lib/DecisionTreeContent/renderDTContent.d.ts +0 -2
- package/lib/DecisionTreeContent/types.d.ts +0 -61
- package/lib/DecisionTreeDiagram/StaticTreeContainer.d.ts +0 -7
- package/lib/DecisionTreeDiagram/renderStaticDTDiagram.d.ts +0 -8
- package/lib/i18next/index.d.ts +0 -3
- package/lib/index.d.ts +0 -3
- package/lib/index.es.js +0 -14261
- package/lib/index.umd.js +0 -275
- package/lib/types.d.ts +0 -1
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*!
|
|
8
|
+
* Sizzle CSS Selector Engine v2.3.10
|
|
9
|
+
* https://sizzlejs.com/
|
|
10
|
+
*
|
|
11
|
+
* Copyright JS Foundation and other contributors
|
|
12
|
+
* Released under the MIT license
|
|
13
|
+
* https://js.foundation/
|
|
14
|
+
*
|
|
15
|
+
* Date: 2023-02-14
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/*!
|
|
19
|
+
Copyright (c) 2017 Jed Watson.
|
|
20
|
+
Licensed under the MIT License (MIT), see
|
|
21
|
+
http://jedwatson.github.io/classnames
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/*!
|
|
25
|
+
* froala_editor v4.1.4 (https://www.froala.com/wysiwyg-editor)
|
|
26
|
+
* License https://froala.com/wysiwyg-editor/terms/
|
|
27
|
+
* Copyright 2014-2023 Froala Labs
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/*!
|
|
31
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
34
|
+
* Released under the MIT License.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/*!
|
|
38
|
+
* jQuery JavaScript Library v3.6.4
|
|
39
|
+
* https://jquery.com/
|
|
40
|
+
*
|
|
41
|
+
* Includes Sizzle.js
|
|
42
|
+
* https://sizzlejs.com/
|
|
43
|
+
*
|
|
44
|
+
* Copyright OpenJS Foundation and other contributors
|
|
45
|
+
* Released under the MIT license
|
|
46
|
+
* https://jquery.org/license
|
|
47
|
+
*
|
|
48
|
+
* Date: 2023-03-08T15:28Z
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @license
|
|
53
|
+
* Lodash <https://lodash.com/>
|
|
54
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
55
|
+
* Released under MIT license <https://lodash.com/license>
|
|
56
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
57
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @license React
|
|
62
|
+
* react-dom.production.min.js
|
|
63
|
+
*
|
|
64
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the MIT license found in the
|
|
67
|
+
* LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @license React
|
|
72
|
+
* react-is.production.min.js
|
|
73
|
+
*
|
|
74
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the MIT license found in the
|
|
77
|
+
* LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @license React
|
|
82
|
+
* react-jsx-runtime.production.min.js
|
|
83
|
+
*
|
|
84
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the MIT license found in the
|
|
87
|
+
* LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @license React
|
|
92
|
+
* react.production.min.js
|
|
93
|
+
*
|
|
94
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the MIT license found in the
|
|
97
|
+
* LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @license React
|
|
102
|
+
* scheduler.production.min.js
|
|
103
|
+
*
|
|
104
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the MIT license found in the
|
|
107
|
+
* LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* natural-orderby v3.0.2
|
|
112
|
+
*
|
|
113
|
+
* Copyright (c) Olaf Ennen
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the MIT license found in the
|
|
116
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
117
|
+
*
|
|
118
|
+
* @license MIT
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @license nested-property https://github.com/cosmosio/nested-property
|
|
123
|
+
*
|
|
124
|
+
* The MIT License (MIT)
|
|
125
|
+
*
|
|
126
|
+
* Copyright (c) 2014-2015 Olivier Scherrer <pode.fr@gmail.com>
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
/** @license React v16.13.1
|
|
130
|
+
* react-is.production.min.js
|
|
131
|
+
*
|
|
132
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the MIT license found in the
|
|
135
|
+
* LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shelf/global-renderer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "The package exposes entrypoints with window's function(-s) to render React component",
|
|
5
|
-
"
|
|
6
|
-
"type": "module",
|
|
7
|
-
"module": "lib/index.js",
|
|
5
|
+
"main": "lib",
|
|
8
6
|
"types": "lib/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./lib/index.es.js",
|
|
12
|
-
"require": "./lib/index.umd.js",
|
|
13
|
-
"types": "./lib/index.d.ts"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
7
|
"repository": {
|
|
17
8
|
"type": "git",
|
|
18
9
|
"url": "https://github.com/shelfio/libs-frontend.git",
|
|
@@ -29,7 +20,7 @@
|
|
|
29
20
|
"CHANGELOG.md"
|
|
30
21
|
],
|
|
31
22
|
"scripts": {
|
|
32
|
-
"build": "
|
|
23
|
+
"build": "rm -rf lib/ && NODE_ENV=production webpack ",
|
|
33
24
|
"build:types": "tsc --emitDeclarationOnly --noEmit false",
|
|
34
25
|
"coverage": "yarn test --coverage",
|
|
35
26
|
"start": "storybook dev -p 3001",
|
|
@@ -39,24 +30,28 @@
|
|
|
39
30
|
"dependencies": {
|
|
40
31
|
"@shelf/datetime": "^2.0.0",
|
|
41
32
|
"@shelf/i18n": "13.7.3",
|
|
42
|
-
"@shelf/icons": "^11.6.
|
|
33
|
+
"@shelf/icons": "^11.6.53",
|
|
43
34
|
"react-i18next": "11.8.15"
|
|
44
35
|
},
|
|
45
36
|
"devDependencies": {
|
|
46
|
-
"@shelf/
|
|
37
|
+
"@shelf/babel-config": "^3.0.0",
|
|
38
|
+
"@shelf/decision-tree-editor-components": "^3.0.50",
|
|
47
39
|
"@shelf/types": "^51.40.1",
|
|
48
|
-
"@types/react-dom": "18.0.6"
|
|
40
|
+
"@types/react-dom": "18.0.6",
|
|
41
|
+
"babel-loader": "8.2.3",
|
|
42
|
+
"i18next": "21.6.3",
|
|
43
|
+
"path-browserify": "^1.0.1",
|
|
44
|
+
"webpack": "^5.40.0",
|
|
45
|
+
"webpack-cli": "4.7.2"
|
|
49
46
|
},
|
|
50
47
|
"peerDependencies": {
|
|
51
48
|
"@shelf/client-helpers": "^5.0.18",
|
|
52
49
|
"@shelf/decision-tree-editor-components": "^1.2.14",
|
|
53
50
|
"@shelf/rich-text-editor": "^5.2.14",
|
|
54
51
|
"@shelf/types": "^50.0.6",
|
|
55
|
-
"i18next": "21.6.3",
|
|
56
52
|
"lodash": "4.17.x",
|
|
57
53
|
"react": "18.x.x",
|
|
58
|
-
"react-dom": "18.x.x",
|
|
59
54
|
"styled-components": "^5 || ^6"
|
|
60
55
|
},
|
|
61
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "4807af519356fe0a25b17e3244a3872b62480426"
|
|
62
57
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RenderDTContentData } from './types';
|
|
3
|
-
declare const DecisionTreeContent: ({ title, description, tree, exportedBy, exportedAt, createdBy, fields, variables, }: RenderDTContentData) => React.JSX.Element;
|
|
4
|
-
export default DecisionTreeContent;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const DTContentContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
3
|
-
export declare const DTMeta: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
4
|
-
export declare const DTIcon: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
5
|
-
export declare const DTInternalMeta: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
6
|
-
export declare const DTTitle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
7
|
-
export declare const DTDescription: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
8
|
-
export declare const DTContent: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
9
|
-
export declare const StepContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
10
|
-
export declare const StepNumber: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
11
|
-
export declare const StepTypeContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
12
|
-
export declare const StepHeaderBlock: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
13
|
-
export declare const StepHeader: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
14
|
-
export declare const StepType: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
15
|
-
$color?: string | undefined;
|
|
16
|
-
}>>;
|
|
17
|
-
export declare const StepTypeTitle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
18
|
-
export declare const ContentTitle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
19
|
-
export declare const Content: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
20
|
-
export declare const Question: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
21
|
-
export declare const QuestionTitle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
22
|
-
export declare const QuestionDescription: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
23
|
-
export declare const Answer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
24
|
-
export declare const AnswerWithAssignments: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
25
|
-
export declare const AnswerNumber: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
26
|
-
export declare const AssignmentIconBlock: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
27
|
-
export declare const AssignmentIcon: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>>;
|
|
28
|
-
export declare const AnswerTitle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>>;
|
|
29
|
-
export declare const AnswerVariable: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
30
|
-
isDeleted?: boolean | undefined;
|
|
31
|
-
}>>;
|
|
32
|
-
export declare const Condition: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
33
|
-
export declare const Rule: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
34
|
-
export declare const StepLink: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>>;
|
|
35
|
-
export declare const StepParents: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
36
|
-
export declare const ParentLink: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>>;
|
|
37
|
-
export declare const LinkUrl: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>>;
|
|
38
|
-
export declare const NoLinks: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
39
|
-
export declare const ContentList: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
40
|
-
export declare const ContentListItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
41
|
-
export declare const ContentListLink: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>>;
|
|
42
|
-
export declare const ContentListNumber: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
43
|
-
export declare const ContentListIcon: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
44
|
-
export declare const MetaBlock: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
45
|
-
export declare const MataInfo: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
46
|
-
export declare const CustomFields: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
47
|
-
export declare const CustomField: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
48
|
-
export declare const FieldName: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
49
|
-
export declare const FieldValue: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DecisionTree } from '@shelf/types-ddb';
|
|
3
|
-
import { DTStep } from '../types';
|
|
4
|
-
declare const _default: ({ step, variables, }: {
|
|
5
|
-
step: DTStep;
|
|
6
|
-
variables: Pick<DecisionTree.ContextualVariableDefaults, 'name' | 'id' | 'isDeleted'>[];
|
|
7
|
-
}) => React.JSX.Element;
|
|
8
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { DecisionTree } from '@shelf/types-ddb';
|
|
3
|
-
import { DTStep } from '../types';
|
|
4
|
-
declare const _default: ({ step, variables, }: {
|
|
5
|
-
step: DTStep;
|
|
6
|
-
variables: Pick<DecisionTree.ContextualVariableDefaults, 'name' | 'id' | 'isDeleted'>[];
|
|
7
|
-
}) => React.JSX.Element;
|
|
8
|
-
export default _default;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { DTStep, DTStepFromApi } from './types';
|
|
2
|
-
export declare const TYPES_TO_LINK: string[];
|
|
3
|
-
export declare const getTreeWithParentSteps: (tree: Omit<DTStep, 'parentSteps'>[]) => {
|
|
4
|
-
parentSteps: {
|
|
5
|
-
id: string;
|
|
6
|
-
number: number;
|
|
7
|
-
}[];
|
|
8
|
-
number: number;
|
|
9
|
-
type: import("@shelf/types-ddb/lib/decision-tree").StepType;
|
|
10
|
-
title?: string | undefined;
|
|
11
|
-
id: string;
|
|
12
|
-
content?: string | undefined;
|
|
13
|
-
question: {
|
|
14
|
-
id: string;
|
|
15
|
-
title?: string | undefined;
|
|
16
|
-
description?: string | undefined;
|
|
17
|
-
answers: {
|
|
18
|
-
id: string;
|
|
19
|
-
title?: string | undefined;
|
|
20
|
-
nextStep?: {
|
|
21
|
-
id?: string | undefined;
|
|
22
|
-
number?: number | undefined;
|
|
23
|
-
} | undefined;
|
|
24
|
-
assignments?: import("@shelf/types-ddb/lib/decision-tree").Assignment[] | undefined;
|
|
25
|
-
}[];
|
|
26
|
-
};
|
|
27
|
-
textS3Key?: string | undefined;
|
|
28
|
-
url?: string | undefined;
|
|
29
|
-
settings?: import("@shelf/types-ddb/lib/decision-tree").StepSettings | undefined;
|
|
30
|
-
defaultNextStep?: ({
|
|
31
|
-
id: string;
|
|
32
|
-
} & {
|
|
33
|
-
id: string;
|
|
34
|
-
number?: string | undefined;
|
|
35
|
-
}) | undefined;
|
|
36
|
-
conditions?: (import("@shelf/types-ddb/lib/decision-tree").Condition[] & import("./types").ConditionType[]) | undefined;
|
|
37
|
-
isFirstStep?: boolean | undefined;
|
|
38
|
-
linkedSteps?: {
|
|
39
|
-
id?: string | undefined;
|
|
40
|
-
number?: number | undefined;
|
|
41
|
-
}[] | undefined;
|
|
42
|
-
}[];
|
|
43
|
-
export declare const convertStepToRenderFormat: (tree: DTStepFromApi[]) => DTStep[];
|
|
44
|
-
export declare const getDateAndTime: (date: string) => string;
|