@picked/client 0.0.50 → 0.0.51-next.10
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/dist/api-CHy9HcU7.cjs +1 -0
- package/dist/{api-DWBcrf98.js → api-mlYS-lDj.js} +1 -1
- package/dist/cjs/form/index.js +1 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/plugins/create-experience/index.js +1 -1
- package/dist/cjs/plugins/dynamic-experiences/index.js +1 -1
- package/dist/cjs/plugins/experience-browser-storage/index.js +1 -1
- package/dist/cjs/plugins/history-browser-storage/index.js +1 -1
- package/dist/cjs/plugins/responses-browser-storage/index.js +1 -1
- package/dist/cjs/plugins/responses-indexeddb/index.js +1 -1
- package/dist/cjs/plugins/single-page-app/index.js +1 -1
- package/dist/cjs/server/index.js +1 -1
- package/dist/esm/form/index.js +472 -0
- package/dist/esm/index.js +473 -383
- package/dist/esm/plugins/create-experience/index.js +198 -165
- package/dist/esm/plugins/dynamic-experiences/index.js +52 -30
- package/dist/esm/plugins/experience-browser-storage/index.js +1 -1
- package/dist/esm/plugins/history-browser-storage/index.js +1 -1
- package/dist/esm/plugins/responses-browser-storage/index.js +7 -9
- package/dist/esm/plugins/responses-indexeddb/index.js +11 -11
- package/dist/esm/plugins/single-page-app/index.js +4 -4
- package/dist/esm/server/index.js +1 -1
- package/dist/experience-instance-DOcd8XI1.cjs +1 -0
- package/dist/experience-instance-NHU1moID.js +486 -0
- package/dist/{object-Clj5zVr1.js → object-C82v79xc.js} +2 -1
- package/dist/object-CUJOjanb.cjs +1 -0
- package/dist/rules-logic-CnVktz2l.js +240 -0
- package/dist/rules-logic-nMHNVLn7.cjs +1 -0
- package/dist/{storage-DyxpJ0pg.js → storage-6Xk0uAxB.js} +3 -1
- package/dist/storage-B6lQtc4-.cjs +1 -0
- package/dist/types/client.d.ts +47 -43
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/entities/action/action.d.ts +37 -5
- package/dist/types/entities/action/action.d.ts.map +1 -1
- package/dist/types/entities/condition/condition.d.ts +20 -0
- package/dist/types/entities/condition/condition.d.ts.map +1 -0
- package/dist/types/entities/experience/experience.d.ts +67 -51
- package/dist/types/entities/experience/experience.d.ts.map +1 -1
- package/dist/types/entities/experience-instance/experience-instance.d.ts +22 -2
- package/dist/types/entities/experience-instance/experience-instance.d.ts.map +1 -1
- package/dist/types/entities/feature/feature.d.ts.map +1 -1
- package/dist/types/entities/field/field.d.ts +24 -10
- package/dist/types/entities/field/field.d.ts.map +1 -1
- package/dist/types/entities/history/history.d.ts.map +1 -1
- package/dist/types/entities/response/response-validation.d.ts +74 -0
- package/dist/types/entities/response/response-validation.d.ts.map +1 -0
- package/dist/types/entities/response/response.d.ts +24 -20
- package/dist/types/entities/response/response.d.ts.map +1 -1
- package/dist/types/entities/step/step.d.ts +42 -0
- package/dist/types/entities/step/step.d.ts.map +1 -0
- package/dist/types/exports.d.ts +0 -1
- package/dist/types/exports.d.ts.map +1 -1
- package/dist/types/form/build-responses.d.ts +17 -0
- package/dist/types/form/build-responses.d.ts.map +1 -0
- package/dist/types/form/create-field-evaluator.d.ts +27 -0
- package/dist/types/form/create-field-evaluator.d.ts.map +1 -0
- package/dist/types/form/create-field-validation.d.ts +59 -0
- package/dist/types/form/create-field-validation.d.ts.map +1 -0
- package/dist/types/form/create-form.d.ts +97 -0
- package/dist/types/form/create-form.d.ts.map +1 -0
- package/dist/types/form/create-submit-pipeline.d.ts +70 -0
- package/dist/types/form/create-submit-pipeline.d.ts.map +1 -0
- package/dist/types/form/get-step-fields.d.ts +18 -0
- package/dist/types/form/get-step-fields.d.ts.map +1 -0
- package/dist/types/form/index.d.ts +10 -0
- package/dist/types/form/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/logic-engine.d.ts +12 -10
- package/dist/types/logic-engine.d.ts.map +1 -1
- package/dist/types/picked.d.ts +99 -33
- package/dist/types/picked.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/create-experience.d.ts +53 -31
- package/dist/types/plugins/create-experience/create-experience.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/index.d.ts +2 -2
- package/dist/types/plugins/create-experience/index.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/plugin.d.ts.map +1 -1
- package/dist/types/plugins/dynamic-experiences/plugin.d.ts +21 -4
- package/dist/types/plugins/dynamic-experiences/plugin.d.ts.map +1 -1
- package/dist/types/plugins/dynamic-experiences/types.d.ts +45 -0
- package/dist/types/plugins/dynamic-experiences/types.d.ts.map +1 -1
- package/dist/types/plugins/experience-browser-storage/plugin.d.ts +2 -1
- package/dist/types/plugins/experience-browser-storage/plugin.d.ts.map +1 -1
- package/dist/types/plugins/history-browser-storage/plugin.d.ts +1 -0
- package/dist/types/plugins/history-browser-storage/plugin.d.ts.map +1 -1
- package/dist/types/plugins/responses-browser-storage/plugin.d.ts +2 -1
- package/dist/types/plugins/responses-browser-storage/plugin.d.ts.map +1 -1
- package/dist/types/plugins/responses-indexeddb/plugin.d.ts.map +1 -1
- package/dist/types/plugins/single-page-app/plugin.d.ts +1 -1
- package/dist/types/plugins/single-page-app/plugin.d.ts.map +1 -1
- package/dist/types/utils/dom.d.ts +0 -3
- package/dist/types/utils/dom.d.ts.map +1 -1
- package/dist/types/utils/events.d.ts +2 -2
- package/dist/types/utils/events.d.ts.map +1 -1
- package/dist/types/utils/global-obj.d.ts +0 -1
- package/dist/types/utils/global-obj.d.ts.map +1 -1
- package/dist/types/utils/indexed-db.d.ts +2 -1
- package/dist/types/utils/indexed-db.d.ts.map +1 -1
- package/dist/types/utils/logger.d.ts.map +1 -1
- package/dist/types/utils/node-tree/get-next-node-from-condition.d.ts +16 -0
- package/dist/types/utils/node-tree/get-next-node-from-condition.d.ts.map +1 -0
- package/dist/types/utils/node-tree/min-max-steps-to-leaf.d.ts.map +1 -1
- package/dist/types/utils/node-tree/min-max-steps-to-origin.d.ts.map +1 -1
- package/dist/types/utils/node-tree/next-reachable-step-nodes.d.ts.map +1 -1
- package/dist/types/utils/nodes.d.ts +2 -2
- package/dist/types/utils/nodes.d.ts.map +1 -1
- package/dist/types/utils/object.d.ts +0 -8
- package/dist/types/utils/object.d.ts.map +1 -1
- package/dist/types/utils/picked-config.d.ts +1 -1
- package/dist/types/utils/picked-config.d.ts.map +1 -1
- package/dist/types/utils/rules-logic.d.ts +31 -0
- package/dist/types/utils/rules-logic.d.ts.map +1 -1
- package/dist/types/utils/search-params.d.ts.map +1 -1
- package/dist/types/utils/state-snaphot.d.ts +11 -1
- package/dist/types/utils/state-snaphot.d.ts.map +1 -1
- package/dist/types/utils/storage.d.ts.map +1 -1
- package/package.json +43 -7
- package/dist/api-BwTaomem.cjs +0 -1
- package/dist/experience-instance-BRpI9I4s.js +0 -710
- package/dist/experience-instance-BUTnwbSJ.cjs +0 -1
- package/dist/object-BReQiaSS.cjs +0 -1
- package/dist/storage-BFjb8azI.cjs +0 -1
- package/dist/types/entities/project/project.d.ts +0 -9
- package/dist/types/entities/project/project.d.ts.map +0 -1
- package/dist/types/utils/get-step-fields.d.ts +0 -4
- package/dist/types/utils/get-step-fields.d.ts.map +0 -1
- package/dist/types/utils/node-tree/get-next-node-from-conditional.d.ts +0 -3
- package/dist/types/utils/node-tree/get-next-node-from-conditional.d.ts.map +0 -1
- /package/dist/{id-CIbS4P60.cjs → id-Bv44ilEo.cjs} +0 -0
- /package/dist/{id-BniPxOdF.js → id-CRqy981z.js} +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Store } from 'effector';
|
|
1
2
|
import { AdaptedComponent } from '../component/component';
|
|
3
|
+
import { Condition } from '../condition/condition';
|
|
4
|
+
import { ExperienceStep } from '../step/step';
|
|
2
5
|
import { Picked } from '../../picked';
|
|
3
6
|
import { LogicRule, LogicValue } from '../../logic-engine';
|
|
4
|
-
import { Field } from '../field/field';
|
|
5
7
|
export type ExperiencesListStore = ReturnType<typeof createExperienceIndex>;
|
|
6
8
|
export type ExperienceStore = ReturnType<typeof createExperience>;
|
|
7
9
|
declare const createExperienceFactory: ({ client, experience }: {
|
|
@@ -9,23 +11,24 @@ declare const createExperienceFactory: ({ client, experience }: {
|
|
|
9
11
|
experience: Experience;
|
|
10
12
|
}) => {
|
|
11
13
|
id: string;
|
|
12
|
-
|
|
14
|
+
key: string;
|
|
15
|
+
name: string;
|
|
16
|
+
configStore: Store<{
|
|
13
17
|
name: string;
|
|
14
18
|
decisionLogic: LogicValue | LogicRule;
|
|
15
19
|
targetSelectors: ExperienceTarget[];
|
|
16
20
|
initializeOpenLogic: LogicValue | LogicRule;
|
|
17
21
|
}>;
|
|
18
|
-
treeStore:
|
|
22
|
+
treeStore: Store<{
|
|
19
23
|
steps: ExperienceStep[];
|
|
20
24
|
nodes: ExperienceNode[];
|
|
21
25
|
edges: ExperienceEdge[];
|
|
22
|
-
|
|
26
|
+
conditions: Condition[];
|
|
23
27
|
}>;
|
|
24
|
-
|
|
25
|
-
componentStore: import('effector').Store<{
|
|
28
|
+
componentStore: Store<{
|
|
26
29
|
name: string;
|
|
27
30
|
component: AdaptedComponent<string, unknown>;
|
|
28
|
-
frameworkStore:
|
|
31
|
+
frameworkStore: Store<import('../..').Framework | undefined>;
|
|
29
32
|
} | undefined>;
|
|
30
33
|
actions: ExperienceAction[];
|
|
31
34
|
merge: import('effector').EventCallable<{
|
|
@@ -35,6 +38,7 @@ declare const createExperienceFactory: ({ client, experience }: {
|
|
|
35
38
|
};
|
|
36
39
|
/**
|
|
37
40
|
* Creates an Effector store for a single experience.
|
|
41
|
+
*
|
|
38
42
|
* @param params - The client instance and experience data.
|
|
39
43
|
* @returns An experience store with config, tree, fields, and component sub-stores.
|
|
40
44
|
* @example
|
|
@@ -58,25 +62,26 @@ declare const createExperienceIndexFactory: ({ client }: {
|
|
|
58
62
|
/** Registers an experience in the index. If an experience with the same ID already exists, it is merged. */
|
|
59
63
|
register: (experience: Experience) => void;
|
|
60
64
|
/** Returns a derived store for an experience by its ID. The store value is `undefined` when no match exists. */
|
|
61
|
-
get: (id: Experience["id"]) =>
|
|
65
|
+
get: (id: Experience["id"]) => Store<{
|
|
62
66
|
id: string;
|
|
63
|
-
|
|
67
|
+
key: string;
|
|
68
|
+
name: string;
|
|
69
|
+
configStore: Store<{
|
|
64
70
|
name: string;
|
|
65
71
|
decisionLogic: LogicValue | LogicRule;
|
|
66
72
|
targetSelectors: ExperienceTarget[];
|
|
67
73
|
initializeOpenLogic: LogicValue | LogicRule;
|
|
68
74
|
}>;
|
|
69
|
-
treeStore:
|
|
75
|
+
treeStore: Store<{
|
|
70
76
|
steps: ExperienceStep[];
|
|
71
77
|
nodes: ExperienceNode[];
|
|
72
78
|
edges: ExperienceEdge[];
|
|
73
|
-
|
|
79
|
+
conditions: Condition[];
|
|
74
80
|
}>;
|
|
75
|
-
|
|
76
|
-
componentStore: import('effector').Store<{
|
|
81
|
+
componentStore: Store<{
|
|
77
82
|
name: string;
|
|
78
83
|
component: AdaptedComponent<string, unknown>;
|
|
79
|
-
frameworkStore:
|
|
84
|
+
frameworkStore: Store<import('../..').Framework | undefined>;
|
|
80
85
|
} | undefined>;
|
|
81
86
|
actions: ExperienceAction[];
|
|
82
87
|
merge: import('effector').EventCallable<{
|
|
@@ -85,25 +90,26 @@ declare const createExperienceIndexFactory: ({ client }: {
|
|
|
85
90
|
}>;
|
|
86
91
|
} | undefined>;
|
|
87
92
|
/** @deprecated Use `experiences.get(id)` instead. */
|
|
88
|
-
getById: (id: Experience["id"]) =>
|
|
93
|
+
getById: (id: Experience["id"]) => Store<{
|
|
89
94
|
id: string;
|
|
90
|
-
|
|
95
|
+
key: string;
|
|
96
|
+
name: string;
|
|
97
|
+
configStore: Store<{
|
|
91
98
|
name: string;
|
|
92
99
|
decisionLogic: LogicValue | LogicRule;
|
|
93
100
|
targetSelectors: ExperienceTarget[];
|
|
94
101
|
initializeOpenLogic: LogicValue | LogicRule;
|
|
95
102
|
}>;
|
|
96
|
-
treeStore:
|
|
103
|
+
treeStore: Store<{
|
|
97
104
|
steps: ExperienceStep[];
|
|
98
105
|
nodes: ExperienceNode[];
|
|
99
106
|
edges: ExperienceEdge[];
|
|
100
|
-
|
|
107
|
+
conditions: Condition[];
|
|
101
108
|
}>;
|
|
102
|
-
|
|
103
|
-
componentStore: import('effector').Store<{
|
|
109
|
+
componentStore: Store<{
|
|
104
110
|
name: string;
|
|
105
111
|
component: AdaptedComponent<string, unknown>;
|
|
106
|
-
frameworkStore:
|
|
112
|
+
frameworkStore: Store<import('../..').Framework | undefined>;
|
|
107
113
|
} | undefined>;
|
|
108
114
|
actions: ExperienceAction[];
|
|
109
115
|
merge: import('effector').EventCallable<{
|
|
@@ -111,36 +117,45 @@ declare const createExperienceIndexFactory: ({ client }: {
|
|
|
111
117
|
strategy: "override";
|
|
112
118
|
}>;
|
|
113
119
|
} | undefined>;
|
|
114
|
-
/**
|
|
120
|
+
/** Returns a derived store for an experience by its key. The store value is `undefined` when no match exists. */
|
|
121
|
+
getByKey: (key: Experience["key"]) => Store<ExperienceStore | undefined>;
|
|
122
|
+
/** Effector effect that launches an experience by its key. */
|
|
115
123
|
launch: import('effector').Effect<{
|
|
124
|
+
key: string;
|
|
125
|
+
options?: LaunchExperienceOptions;
|
|
126
|
+
} | {
|
|
116
127
|
id: string;
|
|
117
128
|
options?: LaunchExperienceOptions;
|
|
118
129
|
}, void, Error>;
|
|
119
130
|
/** Effector effect that opens an experience's existing instances, or launches it with `initialiseOpen` if none exist. */
|
|
120
131
|
open: import('effector').Effect<{
|
|
132
|
+
key: string;
|
|
133
|
+
options?: OpenExperienceOptions;
|
|
134
|
+
} | {
|
|
121
135
|
id: string;
|
|
122
136
|
options?: OpenExperienceOptions;
|
|
123
137
|
}, void, Error>;
|
|
124
138
|
/** Derived store containing all registered experiences as an array. */
|
|
125
|
-
listStore:
|
|
139
|
+
listStore: Store<{
|
|
126
140
|
id: string;
|
|
127
|
-
|
|
141
|
+
key: string;
|
|
142
|
+
name: string;
|
|
143
|
+
configStore: Store<{
|
|
128
144
|
name: string;
|
|
129
145
|
decisionLogic: LogicValue | LogicRule;
|
|
130
146
|
targetSelectors: ExperienceTarget[];
|
|
131
147
|
initializeOpenLogic: LogicValue | LogicRule;
|
|
132
148
|
}>;
|
|
133
|
-
treeStore:
|
|
149
|
+
treeStore: Store<{
|
|
134
150
|
steps: ExperienceStep[];
|
|
135
151
|
nodes: ExperienceNode[];
|
|
136
152
|
edges: ExperienceEdge[];
|
|
137
|
-
|
|
153
|
+
conditions: Condition[];
|
|
138
154
|
}>;
|
|
139
|
-
|
|
140
|
-
componentStore: import('effector').Store<{
|
|
155
|
+
componentStore: Store<{
|
|
141
156
|
name: string;
|
|
142
157
|
component: AdaptedComponent<string, unknown>;
|
|
143
|
-
frameworkStore:
|
|
158
|
+
frameworkStore: Store<import('../..').Framework | undefined>;
|
|
144
159
|
} | undefined>;
|
|
145
160
|
actions: ExperienceAction[];
|
|
146
161
|
merge: import('effector').EventCallable<{
|
|
@@ -151,27 +166,24 @@ declare const createExperienceIndexFactory: ({ client }: {
|
|
|
151
166
|
};
|
|
152
167
|
/**
|
|
153
168
|
* Creates an Effector-based index for registering and retrieving experiences.
|
|
169
|
+
*
|
|
154
170
|
* @param params - The client instance.
|
|
155
|
-
* @returns An experience index with register,
|
|
171
|
+
* @returns An experience index with register, getById, getByKey, launch, and open methods.
|
|
156
172
|
* @example
|
|
157
173
|
* ```typescript
|
|
158
174
|
* const index = createExperienceIndex({ client })
|
|
159
175
|
* ```
|
|
160
176
|
*/
|
|
161
177
|
export declare function createExperienceIndex<T extends Parameters<typeof createExperienceIndexFactory>[0]>(params: T): ReturnType<typeof createExperienceIndexFactory>;
|
|
162
|
-
export
|
|
163
|
-
id: string;
|
|
164
|
-
label: string;
|
|
165
|
-
fieldIds: string[];
|
|
166
|
-
}
|
|
167
|
-
export type ExperienceNode = StepNode | ConditionalNode | LaunchExperienceNode | OriginNode | ActionNode;
|
|
178
|
+
export type ExperienceNode = StepNode | ConditionNode | LaunchExperienceNode | OriginNode | ActionNode;
|
|
168
179
|
export interface ExperienceAction {
|
|
169
180
|
id: string;
|
|
170
181
|
action: string;
|
|
171
182
|
}
|
|
172
183
|
export interface ActionNode extends BaseNode {
|
|
173
184
|
type: 'action';
|
|
174
|
-
|
|
185
|
+
actionId?: string;
|
|
186
|
+
actionKey?: string;
|
|
175
187
|
}
|
|
176
188
|
export interface BaseNode {
|
|
177
189
|
id: string;
|
|
@@ -180,15 +192,20 @@ export interface BaseNode {
|
|
|
180
192
|
export interface StepNode extends BaseNode {
|
|
181
193
|
type: 'step';
|
|
182
194
|
stepId: string;
|
|
183
|
-
|
|
195
|
+
stepKey?: string;
|
|
196
|
+
name?: string;
|
|
197
|
+
/** @deprecated Use `name` instead. */
|
|
198
|
+
label?: string;
|
|
184
199
|
}
|
|
185
|
-
export interface
|
|
186
|
-
type: '
|
|
187
|
-
|
|
200
|
+
export interface ConditionNode extends BaseNode {
|
|
201
|
+
type: 'condition';
|
|
202
|
+
conditionId: string;
|
|
203
|
+
conditionKey?: string;
|
|
188
204
|
}
|
|
189
205
|
export interface LaunchExperienceNode extends BaseNode {
|
|
190
206
|
type: 'experience';
|
|
191
207
|
experienceId: string;
|
|
208
|
+
experienceKey: string;
|
|
192
209
|
}
|
|
193
210
|
export interface OriginNode extends BaseNode {
|
|
194
211
|
type: 'origin';
|
|
@@ -197,12 +214,7 @@ export interface ExperienceEdge {
|
|
|
197
214
|
id: string;
|
|
198
215
|
sourceNodeId: string;
|
|
199
216
|
destinationNodeId: string;
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
export interface ExperienceConditional {
|
|
203
|
-
id: string;
|
|
204
|
-
label?: string;
|
|
205
|
-
condition: LogicRule;
|
|
217
|
+
sourceHandle?: string;
|
|
206
218
|
}
|
|
207
219
|
export interface ExperienceTarget {
|
|
208
220
|
selector: string;
|
|
@@ -210,29 +222,33 @@ export interface ExperienceTarget {
|
|
|
210
222
|
}
|
|
211
223
|
export interface Experience {
|
|
212
224
|
id: string;
|
|
225
|
+
key: string;
|
|
213
226
|
name: string;
|
|
214
227
|
componentName?: string;
|
|
215
228
|
component?: AdaptedComponent;
|
|
216
|
-
conditionals: ExperienceConditional[];
|
|
217
229
|
initializeOpen?: LogicRule | LogicValue;
|
|
218
230
|
actions?: ExperienceAction[];
|
|
231
|
+
/** Decision logic that controls whether this experience is initialised. */
|
|
219
232
|
condition?: LogicRule | LogicValue;
|
|
220
233
|
edges: ExperienceEdge[];
|
|
221
234
|
nodes: ExperienceNode[];
|
|
222
|
-
fields: Field[];
|
|
223
|
-
steps: ExperienceStep[];
|
|
224
235
|
targets: ExperienceTarget[];
|
|
225
236
|
}
|
|
226
|
-
export declare const setupExperience: (experience: Experience, experienceStore: ExperiencesListStore) => void;
|
|
227
237
|
/**
|
|
228
238
|
* Initializes an experience for each target that exists in the DOM.
|
|
239
|
+
*
|
|
229
240
|
* @param client - The Picked client instance.
|
|
230
241
|
* @param experience - The experience store to initialise.
|
|
231
242
|
*/
|
|
232
243
|
export declare const initialiseExperience: (client: Picked, experience: ExperienceStore, options?: LaunchExperienceOptions) => void;
|
|
233
244
|
/**
|
|
234
245
|
* Conditionally initializes experiences.
|
|
246
|
+
*
|
|
235
247
|
* @param client - The Picked client instance.
|
|
248
|
+
* @example
|
|
249
|
+
* ```typescript
|
|
250
|
+
* await initialiseExperiences(client)
|
|
251
|
+
* ```
|
|
236
252
|
*/
|
|
237
253
|
export declare const initialiseExperiences: (client: Picked) => Promise<void>;
|
|
238
254
|
export declare const shouldInitialiseExperience: (client: Picked, experience: ExperienceStore) => Promise<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experience.d.ts","sourceRoot":"","sources":["../../../../src/entities/experience/experience.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"experience.d.ts","sourceRoot":"","sources":["../../../../src/entities/experience/experience.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,OAAO,EAA4C,KAAK,KAAK,EAAE,MAAM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EAAE,CAAA;CAC5B;AAED;;;;;GAKG;AAEH,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,MAAM,EACd,YAAY,eAAe,EAC3B,UAAU,uBAAuB,SAkBlC,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAAU,QAAQ,MAAM,kBASzD,CAAA;AAmBD,eAAO,MAAM,0BAA0B,GACrC,QAAQ,MAAM,EACd,YAAY,eAAe,KAC1B,OAAO,CAAC,OAAO,CAiCjB,CAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EventCallable, Store } from 'effector';
|
|
2
|
-
import { Experience, ExperienceNode,
|
|
2
|
+
import { Experience, ExperienceNode, ExperienceStore, ExperienceTarget, LaunchExperienceOptions } from '../experience/experience';
|
|
3
|
+
import { ExperienceStep } from '../step/step';
|
|
3
4
|
import { Picked } from '../../picked';
|
|
4
5
|
import { HistoryEntry } from '../history/history';
|
|
5
6
|
export interface ExperienceInstance {
|
|
6
7
|
id: string;
|
|
8
|
+
experienceKey: Experience['key'];
|
|
7
9
|
experienceId: Experience['id'];
|
|
8
10
|
configStore: ExperienceStore['configStore'];
|
|
9
11
|
target: HTMLElement | undefined;
|
|
@@ -15,7 +17,6 @@ export interface ExperienceInstance {
|
|
|
15
17
|
toggleOpen: EventCallable<void>;
|
|
16
18
|
setOpen: EventCallable<boolean>;
|
|
17
19
|
treeStore: ExperienceStore['treeStore'];
|
|
18
|
-
fieldsStore: ExperienceStore['fieldsStore'];
|
|
19
20
|
currentNodeStore: Store<ExperienceNode | null>;
|
|
20
21
|
currentStepStore: Store<ExperienceStep | null>;
|
|
21
22
|
previousStepStore: Store<ExperienceStep | null>;
|
|
@@ -38,14 +39,33 @@ declare const createExperienceInstanceFactory: ({ client, experience, target, op
|
|
|
38
39
|
target?: HTMLElement;
|
|
39
40
|
options?: LaunchExperienceOptions;
|
|
40
41
|
}) => Readonly<ExperienceInstance>;
|
|
42
|
+
/**
|
|
43
|
+
* Creates an experience instance with lifecycle stores and navigation logic.
|
|
44
|
+
*
|
|
45
|
+
* @param params - Factory parameters including the client and experience store.
|
|
46
|
+
* @example
|
|
47
|
+
* ```typescript
|
|
48
|
+
* const instance = createExperienceInstance({ client, experience })
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
41
51
|
export declare function createExperienceInstance<T extends Parameters<typeof createExperienceInstanceFactory>[0]>(params: T): ReturnType<typeof createExperienceInstanceFactory>;
|
|
42
52
|
declare const createExperienceInstanceIndexFactory: ({ client }: {
|
|
43
53
|
client: Picked;
|
|
44
54
|
}) => {
|
|
45
55
|
spawn: (experience: ExperienceStore, target: HTMLElement, options?: LaunchExperienceOptions) => void;
|
|
56
|
+
getByExperienceKey: (key: Experience["key"]) => Store<ExperienceInstance[]>;
|
|
46
57
|
getByExperienceId: (id: Experience["id"]) => Store<ExperienceInstance[]>;
|
|
47
58
|
listStore: Store<ExperienceInstance[]>;
|
|
48
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* Creates an index that tracks all experience instances keyed by experience ID.
|
|
62
|
+
*
|
|
63
|
+
* @param params - Factory parameters including the client.
|
|
64
|
+
* @example
|
|
65
|
+
* ```typescript
|
|
66
|
+
* const index = createExperienceInstanceIndex({ client })
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
49
69
|
export declare function createExperienceInstanceIndex<T extends Parameters<typeof createExperienceInstanceIndexFactory>[0]>(params: T): ReturnType<typeof createExperienceInstanceIndexFactory>;
|
|
50
70
|
export {};
|
|
51
71
|
//# sourceMappingURL=experience-instance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experience-instance.d.ts","sourceRoot":"","sources":["../../../../src/entities/experience-instance/experience-instance.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,aAAa,EAGlB,KAAK,KAAK,EACX,MAAM,UAAU,CAAA;AAEjB,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"experience-instance.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
|
2
2
|
import { LogicRule } from '../../logic-engine';
|
|
3
3
|
export type FieldsStore = ReturnType<typeof createFieldIndex>;
|
|
4
4
|
export type PrimitiveFieldValue = string | number | boolean | null;
|
|
5
|
+
export type FieldOptionValue = string | number | boolean;
|
|
6
|
+
export interface FieldOption<T = FieldOptionValue> {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
value: T;
|
|
11
|
+
condition?: LogicRule;
|
|
12
|
+
}
|
|
13
|
+
export type FieldOptionArray<T = FieldOptionValue> = FieldOption<T>[];
|
|
5
14
|
/**
|
|
6
15
|
* JSON-serializable value type for object fields.
|
|
7
16
|
* Recursively defines all valid JSON-serializable structures.
|
|
@@ -10,8 +19,10 @@ export type JsonValue = string | number | boolean | null | {
|
|
|
10
19
|
[key: string]: JsonValue;
|
|
11
20
|
} | JsonValue[];
|
|
12
21
|
export type FieldValue = PrimitiveFieldValue | PrimitiveFieldValue[] | JsonValue | JsonValue[];
|
|
13
|
-
export interface FieldBase<TOptionValue =
|
|
22
|
+
export interface FieldBase<TOptionValue = JsonValue> {
|
|
14
23
|
id: string;
|
|
24
|
+
/** Stable identifier used for lookups across API versions. */
|
|
25
|
+
key: string;
|
|
15
26
|
name: string;
|
|
16
27
|
label: string;
|
|
17
28
|
type: 'text' | 'number' | 'object' | 'boolean';
|
|
@@ -27,13 +38,7 @@ export interface FieldBase<TOptionValue = PrimitiveFieldValue> {
|
|
|
27
38
|
doNotTrackValue?: boolean;
|
|
28
39
|
doNotStoreValue?: boolean;
|
|
29
40
|
};
|
|
30
|
-
options?:
|
|
31
|
-
id: string;
|
|
32
|
-
label: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
value: TOptionValue;
|
|
35
|
-
condition?: LogicRule;
|
|
36
|
-
}[] | null;
|
|
41
|
+
options?: FieldOptionArray<TOptionValue> | null;
|
|
37
42
|
}
|
|
38
43
|
export interface FieldTextSingular extends FieldBase<string> {
|
|
39
44
|
type: 'text';
|
|
@@ -78,12 +83,21 @@ export interface FieldBooleanMultiple extends FieldBase<boolean> {
|
|
|
78
83
|
export type Field = FieldTextSingular | FieldTextMultiple | FieldNumberSingular | FieldNumberMultiple | FieldObjectSingular | FieldObjectMultiple | FieldBooleanSingular | FieldBooleanMultiple;
|
|
79
84
|
declare const createFieldIndexFactory: () => {
|
|
80
85
|
register: (field: Field) => void;
|
|
81
|
-
update: (
|
|
86
|
+
update: (key: FieldBase["key"], updates: Partial<Field>) => void;
|
|
82
87
|
getById: (id: FieldBase["id"]) => Store<Field | null>;
|
|
88
|
+
getByKey: (key: FieldBase["key"]) => Store<Field | null>;
|
|
83
89
|
listStore: Store<Field[]>;
|
|
84
90
|
getByName: (name: FieldBase["name"]) => Store<Field | null>;
|
|
85
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* Creates an Effector-based index for registering and retrieving fields.
|
|
94
|
+
*
|
|
95
|
+
* @returns {FieldsStore} A field index with register, update, getById, getByKey, and list methods.
|
|
96
|
+
* @example
|
|
97
|
+
* ```typescript
|
|
98
|
+
* const fields = createFieldIndex()
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
86
101
|
export declare function createFieldIndex(): ReturnType<typeof createFieldIndexFactory>;
|
|
87
|
-
export declare const setupField: (field: Field, fields: FieldsStore) => void;
|
|
88
102
|
export {};
|
|
89
103
|
//# sourceMappingURL=field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/entities/field/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,KAAK,EAAE,MAAM,UAAU,CAAA;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEnD,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAI7D,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;AA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K,CAAC,KAAG,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;;sBAgBpC,SAAS,CAAC,MAAM,CAAC,KAAG,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;CAiBhE,CAAA;AAEF;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,IAAI,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAE7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../src/entities/history/history.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAM9D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,cAAc,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,CAAA;CACrB;
|
|
1
|
+
{"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../../src/entities/history/history.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAM9D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,cAAc,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,CAAA;CACrB;AA4FD,wBAAgB,aAAa;;sBA3EsB,MAAM;cAAQ,cAAc;;;sBACzB,MAAM;cAAQ,cAAc;;;uBAC9B,MAAM;;;iBACT,YAAY,EAAE;;;EA0E9D"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Field, FieldValue } from '../field/field';
|
|
2
|
+
import { LogicObject, LogicRule } from '../../logic-engine';
|
|
3
|
+
export interface ValidationError {
|
|
4
|
+
fieldKey: Field['key'];
|
|
5
|
+
userMessage: string;
|
|
6
|
+
systemMessage: string;
|
|
7
|
+
value: FieldValue;
|
|
8
|
+
}
|
|
9
|
+
/** Callback signature for evaluating rule-based validation logic. */
|
|
10
|
+
type RuleEvaluator = (logic: LogicRule, context?: LogicObject) => Promise<unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* Resolves a field from an array by id or key.
|
|
13
|
+
*
|
|
14
|
+
* @param inputKey - The field id or key to look up.
|
|
15
|
+
* @param allFields - All registered fields.
|
|
16
|
+
* @returns The matching field, or null if not found.
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* resolveField('email', allFields) // Field | null
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolveField(inputKey: string, allFields: Field[]): Field | null;
|
|
23
|
+
/**
|
|
24
|
+
* Coerces a scalar value into a single-element array when the field expects multiple values.
|
|
25
|
+
*
|
|
26
|
+
* @param field - The field definition.
|
|
27
|
+
* @param value - The response value to coerce.
|
|
28
|
+
* @returns The original or coerced value.
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* coerceToArray(multipleField, 'hello') // ['hello']
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function coerceToArray(field: Field, value: FieldValue): FieldValue;
|
|
35
|
+
/**
|
|
36
|
+
* Validates that an object field value has the correct shape and is JSON-serializable.
|
|
37
|
+
*
|
|
38
|
+
* @param field - The field definition.
|
|
39
|
+
* @param value - The response value to validate.
|
|
40
|
+
* @returns A validation error if the value is invalid, or null if valid.
|
|
41
|
+
* @example
|
|
42
|
+
* ```typescript
|
|
43
|
+
* getObjectValueError(objectField, { key: 'val' }) // null
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function getObjectValueError(field: Field, value: FieldValue): ValidationError | null;
|
|
47
|
+
/**
|
|
48
|
+
* Validates that a response value matches one of the field's allowed options.
|
|
49
|
+
*
|
|
50
|
+
* @param field - The field definition with options.
|
|
51
|
+
* @param value - The response value to validate.
|
|
52
|
+
* @returns A validation error if the value is not a valid option, or null if valid.
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* getOptionsError(fieldWithOptions, 'valid-option') // null
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare function getOptionsError(field: Field, value: FieldValue): ValidationError | null;
|
|
59
|
+
/**
|
|
60
|
+
* Runs field-level validation including rule-based validation, required checks, and multiplicity checks.
|
|
61
|
+
*
|
|
62
|
+
* @param evaluateRule - Callback to evaluate rule-based validation logic.
|
|
63
|
+
* @param field - The field definition.
|
|
64
|
+
* @param value - The response value to validate.
|
|
65
|
+
* @param responses - All current responses for cross-field validation.
|
|
66
|
+
* @returns A validation error if the field fails validation, or null if valid.
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* await getFieldValidationError(evaluate, field, 'hello') // null
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export declare function getFieldValidationError(evaluateRule: RuleEvaluator, field: Field, value: FieldValue, responses?: Record<string, FieldValue>): Promise<ValidationError | null>;
|
|
73
|
+
export {};
|
|
74
|
+
//# sourceMappingURL=response-validation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-validation.d.ts","sourceRoot":"","sources":["../../../../src/entities/response/response-validation.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAuB,MAAM,gBAAgB,CAAA;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAGhE,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,UAAU,CAAA;CAClB;AAED,qEAAqE;AACrE,KAAK,aAAa,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;AAmFlF;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,IAAI,CAE/E;AAED;;;;;;;;;;GAUG;AAEH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAG,UAAU,CASzE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAG,eAAe,GAAG,IAAI,CAgE3F;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,GAAG,eAAe,GAAG,IAAI,CAsCvF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,aAAa,EAC3B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,UAAU,EACjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GACrC,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAsCjC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { Store } from 'effector';
|
|
2
2
|
import { Picked } from '../../picked';
|
|
3
|
-
import { Field, FieldValue
|
|
3
|
+
import { Field, FieldValue } from '../field/field';
|
|
4
|
+
import { ValidationError } from './response-validation';
|
|
5
|
+
export type { ValidationError } from './response-validation';
|
|
4
6
|
export type ResponsesStore = ReturnType<typeof createResponseIndex>;
|
|
5
7
|
export type Response = FieldValue;
|
|
6
8
|
export interface ResponseListItem {
|
|
7
|
-
|
|
8
|
-
value: Response
|
|
9
|
+
fieldKey: string;
|
|
10
|
+
value: Response;
|
|
9
11
|
}
|
|
10
12
|
declare const createResponseIndexFactory: ({ client }: {
|
|
11
13
|
client: Picked;
|
|
12
14
|
}) => {
|
|
13
15
|
register: {
|
|
14
|
-
(
|
|
15
|
-
(payload: Record<Field["
|
|
16
|
+
(fieldKey: Field["key"], response: Response): void;
|
|
17
|
+
(payload: Record<Field["key"], Response>, response?: never): void;
|
|
16
18
|
};
|
|
17
19
|
clearAll: import('effector').EventCallable<void>;
|
|
18
20
|
clear: import('effector').EventCallable<string>;
|
|
@@ -24,25 +26,27 @@ declare const createResponseIndexFactory: ({ client }: {
|
|
|
24
26
|
validationErrors: ValidationError[];
|
|
25
27
|
}>;
|
|
26
28
|
listStore: Store<{
|
|
27
|
-
|
|
28
|
-
value: FieldValue
|
|
29
|
+
fieldKey: string;
|
|
30
|
+
value: FieldValue;
|
|
29
31
|
}[]>;
|
|
30
32
|
getAllStore: Store<{
|
|
31
|
-
[
|
|
33
|
+
[fieldKey: string]: FieldValue;
|
|
32
34
|
}>;
|
|
33
|
-
getByFieldId:
|
|
34
|
-
|
|
35
|
-
<T extends JsonValue>(fieldId: Field["id"]): Store<T | null>;
|
|
36
|
-
};
|
|
35
|
+
getByFieldId: (id: Field["id"]) => Store<FieldValue>;
|
|
36
|
+
getByFieldKey: (key: Field["key"]) => Store<FieldValue>;
|
|
37
37
|
getByFieldName: (fieldName: Field["name"]) => Store<FieldValue>;
|
|
38
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Creates a response index instance bound to the given client.
|
|
41
|
+
*
|
|
42
|
+
* @param params - Configuration including the Picked client instance.
|
|
43
|
+
* @returns The response index with register, commit, and lookup methods.
|
|
44
|
+
* @example
|
|
45
|
+
* ```typescript
|
|
46
|
+
* const responses = createResponseIndex({ client })
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
39
49
|
export declare function createResponseIndex<T extends Parameters<typeof createResponseIndexFactory>[0]>(params: T): ReturnType<typeof createResponseIndexFactory>;
|
|
40
|
-
|
|
41
|
-
export
|
|
42
|
-
fieldId: Field['id'];
|
|
43
|
-
userMessage: string;
|
|
44
|
-
systemMessage: string;
|
|
45
|
-
value: FieldValue;
|
|
46
|
-
}
|
|
47
|
-
export {};
|
|
50
|
+
/** Record keyed by field `key`. */
|
|
51
|
+
export type CommitResponses = Record<string, FieldValue>;
|
|
48
52
|
//# sourceMappingURL=response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../../src/entities/response/response.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../../src/entities/response/response.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,EAAiE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAA;AAEpG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAGvD,OAAO,EAML,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAA;AAE9B,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAInE,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAA;AAGjC,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,QAAQ,CAAA;CAChB;AAED,QAAA,MAAM,0BAA0B,eAA8B;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;mBA6BlD,KAAK,CAAC,KAAK,CAAC,YAAY,QAAQ,GAAG,IAAI;kBACxC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,aAAa,KAAK,GAAG,IAAI;;;;gCAwK7D,eAAe,KACjC,OAAO,CAAC;QAAE,MAAM,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC;8CAtCpB,eAAe,KACjC,OAAO,CAAC;QAAE,iBAAiB,EAAE,eAAe,CAAC;QAAC,gBAAgB,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC;;;;;;;;uBA8E7D,KAAK,CA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