@shelf/global-renderer 0.29.34 → 0.30.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
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.30.0](https://github.com/shelfio/libs-frontend/compare/@shelf/global-renderer@0.29.34...@shelf/global-renderer@0.30.0) (2023-09-08)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
- REACT-523 switch global-renderer and decisiontree components to use isFirstStep prop of step
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- REACT-523 switch global-renderer and decisiontree components to use isFirstStep prop of step ([ffca310](https://github.com/shelfio/libs-frontend/commit/ffca310bafdacd21b645c0d0a102c3f56448a6fb))
|
|
15
|
+
|
|
6
16
|
### [0.29.34](https://github.com/shelfio/libs-frontend/compare/@shelf/global-renderer@0.29.33...@shelf/global-renderer@0.29.34) (2023-09-08)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @shelf/global-renderer
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DTStep, DTStepFromApi } from './types';
|
|
2
|
-
export declare const FIRST_STEP_ID = "Step#1";
|
|
3
2
|
export declare const TYPES_TO_LINK: string[];
|
|
4
3
|
export declare const getTreeWithParentSteps: (tree: Omit<DTStep, 'parentSteps'>[]) => {
|
|
5
4
|
parentSteps: {
|
|
@@ -35,6 +34,7 @@ export declare const getTreeWithParentSteps: (tree: Omit<DTStep, 'parentSteps'>[
|
|
|
35
34
|
}) | undefined;
|
|
36
35
|
conditions?: (import("@shelf/types-ddb/lib/decision-tree").Condition[] & import("./types").ConditionType[]) | undefined;
|
|
37
36
|
content?: string | undefined;
|
|
37
|
+
isFirstStep?: boolean | undefined;
|
|
38
38
|
linkedSteps?: {
|
|
39
39
|
id?: string | undefined;
|
|
40
40
|
number?: number | undefined;
|
|
@@ -53,6 +53,7 @@ export declare const dtData: {
|
|
|
53
53
|
content?: undefined;
|
|
54
54
|
url?: undefined;
|
|
55
55
|
question?: undefined;
|
|
56
|
+
isFirstStep?: undefined;
|
|
56
57
|
} | {
|
|
57
58
|
id: string;
|
|
58
59
|
title: string;
|
|
@@ -91,6 +92,7 @@ export declare const dtData: {
|
|
|
91
92
|
};
|
|
92
93
|
defaultNextStep?: undefined;
|
|
93
94
|
conditions?: undefined;
|
|
95
|
+
isFirstStep?: undefined;
|
|
94
96
|
} | {
|
|
95
97
|
id: string;
|
|
96
98
|
title: string;
|
|
@@ -107,8 +109,10 @@ export declare const dtData: {
|
|
|
107
109
|
defaultNextStep?: undefined;
|
|
108
110
|
conditions?: undefined;
|
|
109
111
|
content?: undefined;
|
|
112
|
+
isFirstStep?: undefined;
|
|
110
113
|
} | {
|
|
111
114
|
id: string;
|
|
115
|
+
isFirstStep: boolean;
|
|
112
116
|
title: string;
|
|
113
117
|
type: string;
|
|
114
118
|
url: null;
|
|
@@ -174,6 +178,7 @@ export declare const dtData: {
|
|
|
174
178
|
};
|
|
175
179
|
defaultNextStep?: undefined;
|
|
176
180
|
conditions?: undefined;
|
|
181
|
+
isFirstStep?: undefined;
|
|
177
182
|
} | {
|
|
178
183
|
id: string;
|
|
179
184
|
title: string;
|
|
@@ -190,6 +195,7 @@ export declare const dtData: {
|
|
|
190
195
|
question: null;
|
|
191
196
|
defaultNextStep?: undefined;
|
|
192
197
|
conditions?: undefined;
|
|
198
|
+
isFirstStep?: undefined;
|
|
193
199
|
})[];
|
|
194
200
|
};
|
|
195
201
|
export declare const initialTree: ({
|
|
@@ -208,11 +214,13 @@ export declare const initialTree: ({
|
|
|
208
214
|
};
|
|
209
215
|
}[];
|
|
210
216
|
};
|
|
217
|
+
isFirstStep?: undefined;
|
|
211
218
|
url?: undefined;
|
|
212
219
|
} | {
|
|
213
220
|
id: string;
|
|
214
221
|
title: string;
|
|
215
222
|
type: string;
|
|
223
|
+
isFirstStep: boolean;
|
|
216
224
|
url: null;
|
|
217
225
|
question: {
|
|
218
226
|
id: string;
|
|
@@ -232,12 +240,14 @@ export declare const initialTree: ({
|
|
|
232
240
|
type: string;
|
|
233
241
|
url: null;
|
|
234
242
|
question: null;
|
|
243
|
+
isFirstStep?: undefined;
|
|
235
244
|
} | {
|
|
236
245
|
id: string;
|
|
237
246
|
title: string;
|
|
238
247
|
type: string;
|
|
239
248
|
url: string;
|
|
240
249
|
question: null;
|
|
250
|
+
isFirstStep?: undefined;
|
|
241
251
|
})[];
|
|
242
252
|
export declare const treeWithLinkedSteps: ({
|
|
243
253
|
id: string;
|
|
@@ -2,6 +2,7 @@ import type { DecisionTree } from '@shelf/types-ddb';
|
|
|
2
2
|
import type { L10n } from '@shelf/types';
|
|
3
3
|
export type DTStepFromApi = DecisionTree.Step & {
|
|
4
4
|
content?: string;
|
|
5
|
+
isFirstStep?: boolean;
|
|
5
6
|
};
|
|
6
7
|
export type RenderDTContentData = {
|
|
7
8
|
tree: DTStepFromApi[];
|
|
@@ -37,6 +38,7 @@ export type ConditionType = {
|
|
|
37
38
|
export type DTStep = Omit<DecisionTree.Step, 'question'> & {
|
|
38
39
|
number: number;
|
|
39
40
|
content?: string;
|
|
41
|
+
isFirstStep?: boolean;
|
|
40
42
|
question: {
|
|
41
43
|
id: string;
|
|
42
44
|
title?: string;
|