@shelf/global-renderer 2.1.3 → 2.3.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/README.md +3 -3
- package/lib/DecisionTreeContent/DecisionTreeContent.d.ts +3 -0
- package/lib/DecisionTreeContent/DecisionTreeContent.styled.d.ts +48 -0
- package/lib/DecisionTreeContent/components/Condition.d.ts +7 -0
- package/lib/DecisionTreeContent/components/ContentTable.d.ts +5 -0
- package/lib/DecisionTreeContent/components/ExportedMeta.d.ts +6 -0
- package/lib/DecisionTreeContent/components/Link.d.ts +5 -0
- package/lib/DecisionTreeContent/components/Question.d.ts +7 -0
- package/lib/DecisionTreeContent/components/Solution.d.ts +5 -0
- package/lib/DecisionTreeContent/components/StepHeader.d.ts +5 -0
- package/lib/DecisionTreeContent/components/StepTypeIcon.d.ts +7 -0
- package/lib/DecisionTreeContent/helpers.d.ts +44 -0
- package/lib/DecisionTreeContent/mocks.d.ts +116 -0
- package/lib/DecisionTreeContent/renderDTContent.d.ts +2 -0
- package/lib/DecisionTreeContent/types.d.ts +61 -0
- package/lib/DecisionTreeDiagram/StaticTreeContainer.d.ts +6 -0
- package/lib/DecisionTreeDiagram/renderStaticDTDiagram.d.ts +8 -0
- package/lib/i18next/index.d.ts +3 -0
- package/lib/index.d.ts +1 -0
- package/lib/renderDTContent.js +38 -0
- package/lib/renderDTContent.js.LICENSE.txt +49 -0
- package/lib/renderStaticDTDiagram.js +3951 -0
- package/lib/renderStaticDTDiagram.js.LICENSE.txt +148 -0
- package/package.json +68 -48
|
@@ -0,0 +1,148 @@
|
|
|
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
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @license
|
|
55
|
+
* Lodash <https://lodash.com/>
|
|
56
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
57
|
+
* Released under MIT license <https://lodash.com/license>
|
|
58
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
59
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @license React
|
|
64
|
+
* react-dom-client.production.js
|
|
65
|
+
*
|
|
66
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the MIT license found in the
|
|
69
|
+
* LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @license React
|
|
74
|
+
* react-dom.production.js
|
|
75
|
+
*
|
|
76
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the MIT license found in the
|
|
79
|
+
* LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @license React
|
|
84
|
+
* react-is.production.min.js
|
|
85
|
+
*
|
|
86
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the MIT license found in the
|
|
89
|
+
* LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @license React
|
|
94
|
+
* react-jsx-runtime.production.js
|
|
95
|
+
*
|
|
96
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the MIT license found in the
|
|
99
|
+
* LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @license React
|
|
104
|
+
* react.production.js
|
|
105
|
+
*
|
|
106
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the MIT license found in the
|
|
109
|
+
* LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @license React
|
|
114
|
+
* scheduler.production.js
|
|
115
|
+
*
|
|
116
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the MIT license found in the
|
|
119
|
+
* LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* natural-orderby v3.0.2
|
|
124
|
+
*
|
|
125
|
+
* Copyright (c) Olaf Ennen
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the MIT license found in the
|
|
128
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
129
|
+
*
|
|
130
|
+
* @license MIT
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @license nested-property https://github.com/cosmosio/nested-property
|
|
135
|
+
*
|
|
136
|
+
* The MIT License (MIT)
|
|
137
|
+
*
|
|
138
|
+
* Copyright (c) 2014-2015 Olivier Scherrer <pode.fr@gmail.com>
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
/** @license React v16.13.1
|
|
142
|
+
* react-is.production.min.js
|
|
143
|
+
*
|
|
144
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the MIT license found in the
|
|
147
|
+
* LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shelf/global-renderer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "The package exposes entrypoints with window's function(-s) to render React component",
|
|
5
5
|
"main": "lib",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/shelfio/libs-frontend.git",
|
|
11
|
-
"directory": "packages/global-renderer"
|
|
12
|
-
},
|
|
13
8
|
"license": "UNLICENSED",
|
|
14
9
|
"author": {
|
|
15
10
|
"name": "Yurii Levantovych",
|
|
@@ -20,53 +15,78 @@
|
|
|
20
15
|
"lib",
|
|
21
16
|
"CHANGELOG.md"
|
|
22
17
|
],
|
|
23
|
-
"
|
|
24
|
-
"build": "rm -rf lib/ && NODE_ENV=production webpack && yarn build:types",
|
|
25
|
-
"build:types": "tsc --emitDeclarationOnly --noEmit false",
|
|
26
|
-
"coverage": "yarn test --coverage",
|
|
27
|
-
"test": "jest",
|
|
28
|
-
"type-check": "tsc --noEmit"
|
|
29
|
-
},
|
|
18
|
+
"prettier": "@shelf/prettier-config",
|
|
30
19
|
"dependencies": {
|
|
31
|
-
"@shelf/basic-components": "
|
|
32
|
-
"@shelf/bem": "
|
|
33
|
-
"@shelf/color-picker": "
|
|
34
|
-
"@shelf/
|
|
35
|
-
"@shelf/
|
|
36
|
-
"@shelf/
|
|
37
|
-
"@shelf/
|
|
38
|
-
"@shelf/
|
|
39
|
-
"@shelf/
|
|
40
|
-
"@shelf/
|
|
41
|
-
"@shelf/
|
|
42
|
-
"@shelf/
|
|
43
|
-
"@shelf/
|
|
44
|
-
"@shelf/
|
|
45
|
-
"@shelf/
|
|
46
|
-
"@shelf/
|
|
47
|
-
"@shelf/wiki-text-sanitize": "
|
|
48
|
-
"react": "
|
|
49
|
-
"react-color": "
|
|
50
|
-
"react-dom": "
|
|
51
|
-
"react-i18next": "15.
|
|
20
|
+
"@shelf/basic-components": "21.22.0",
|
|
21
|
+
"@shelf/bem": "5.0.0",
|
|
22
|
+
"@shelf/color-picker": "7.0.163",
|
|
23
|
+
"@shelf/colors": "4.0.5",
|
|
24
|
+
"@shelf/content-view": "0.9.5",
|
|
25
|
+
"@shelf/datetime": "2.0.0",
|
|
26
|
+
"@shelf/decision-tree-editor-components": "4.0.5",
|
|
27
|
+
"@shelf/gem-components": "17.0.5",
|
|
28
|
+
"@shelf/i18n": "18.5.4",
|
|
29
|
+
"@shelf/icons": "11.6.53",
|
|
30
|
+
"@shelf/location-selector": "10.1.109",
|
|
31
|
+
"@shelf/ratings-components": "11.0.163",
|
|
32
|
+
"@shelf/rich-text-editor": "7.0.63",
|
|
33
|
+
"@shelf/search-components": "16.0.157",
|
|
34
|
+
"@shelf/sweet-alert": "1.3.180",
|
|
35
|
+
"@shelf/toc": "1.0.19",
|
|
36
|
+
"@shelf/wiki-text-sanitize": "0.18.24",
|
|
37
|
+
"react": "19.0.0",
|
|
38
|
+
"react-color": "2.19.3",
|
|
39
|
+
"react-dom": "19.0.0",
|
|
40
|
+
"react-i18next": "15.6.1"
|
|
52
41
|
},
|
|
53
42
|
"devDependencies": {
|
|
54
|
-
"@babel/core": "
|
|
55
|
-
"@shelf/babel-config": "
|
|
56
|
-
"@shelf/
|
|
57
|
-
"@shelf/
|
|
58
|
-
"@shelf/
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
43
|
+
"@babel/core": "7.24.6",
|
|
44
|
+
"@shelf/babel-config": "3.0.0",
|
|
45
|
+
"@shelf/eslint-config": "5.4.0",
|
|
46
|
+
"@shelf/prettier-config": "1.0.0",
|
|
47
|
+
"@shelf/tsconfig": "0.1.0",
|
|
48
|
+
"@shelf/types": "70.0.0",
|
|
49
|
+
"@shelf/types-ddb": "48.0.0",
|
|
50
|
+
"@swc/core": "1.11.29",
|
|
51
|
+
"@swc/jest": "0.2.38",
|
|
52
|
+
"@testing-library/dom": "10.4.0",
|
|
53
|
+
"@testing-library/jest-dom": "6.4.5",
|
|
54
|
+
"@testing-library/react": "16.0.0",
|
|
55
|
+
"@types/jest": "29.5.12",
|
|
56
|
+
"@types/lodash-es": "4.17.4",
|
|
57
|
+
"@types/node": "22",
|
|
58
|
+
"@types/react": "19.1.6",
|
|
63
59
|
"@types/react-dom": "19.1.2",
|
|
64
60
|
"babel-loader": "10.0.0",
|
|
61
|
+
"eslint": "9.39.2",
|
|
62
|
+
"husky": "9.1.7",
|
|
65
63
|
"i18next": "24.2.3",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
64
|
+
"jest": "29.7.0",
|
|
65
|
+
"jest-environment-jsdom": "29.7.0",
|
|
66
|
+
"lint-staged": "16.1.0",
|
|
67
|
+
"lodash-es": "4.17.21",
|
|
68
|
+
"path-browserify": "1.0.1",
|
|
69
|
+
"prettier": "3.7.4",
|
|
70
|
+
"styled-components": "6.1.11",
|
|
71
|
+
"ts-node": "10.9.2",
|
|
72
|
+
"typescript": "5.9.3",
|
|
73
|
+
"webpack": "5.103.0",
|
|
70
74
|
"webpack-cli": "6.0.1"
|
|
75
|
+
},
|
|
76
|
+
"engines": {
|
|
77
|
+
"node": ">=22",
|
|
78
|
+
"pnpm": ">=10.17.0"
|
|
79
|
+
},
|
|
80
|
+
"lint-staged": {
|
|
81
|
+
"*.{ts,tsx,jsx}": "eslint --fix"
|
|
82
|
+
},
|
|
83
|
+
"scripts": {
|
|
84
|
+
"build": "rm -rf lib/ && NODE_ENV=production NODE_OPTIONS=--openssl-legacy-provider webpack && pnpm build:types",
|
|
85
|
+
"build:types": "tsc --emitDeclarationOnly --noEmit false",
|
|
86
|
+
"coverage": "pnpm test --coverage",
|
|
87
|
+
"test": "jest",
|
|
88
|
+
"lint": "pnpm lint:ci --fix",
|
|
89
|
+
"lint:ci": "eslint . --ext .ts,.tsx",
|
|
90
|
+
"type-check": "tsc --noEmit"
|
|
71
91
|
}
|
|
72
|
-
}
|
|
92
|
+
}
|