@picked/client 0.0.1-dev.1774244905386 → 0.0.1-dev.1774912386475
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-dkMxUUe0.cjs → api-B-wGEgt8.cjs} +1 -1
- package/dist/{api-ENA5t36y.js → api-DwERBrAZ.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 +351 -369
- package/dist/esm/plugins/create-experience/index.js +218 -221
- package/dist/esm/plugins/dynamic-experiences/index.js +6 -7
- 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 +48 -21
- package/dist/esm/plugins/responses-indexeddb/index.js +5 -9
- package/dist/esm/plugins/single-page-app/index.js +4 -4
- package/dist/esm/server/index.js +1 -1
- package/dist/experience-instance-CwwrKUI8.js +485 -0
- package/dist/experience-instance-DdFUcVRd.cjs +1 -0
- package/dist/{object-Clj5zVr1.js → object-C82v79xc.js} +2 -1
- package/dist/object-CUJOjanb.cjs +1 -0
- package/dist/rules-logic-BIkBWZmf.js +233 -0
- package/dist/rules-logic-DDxCiq4P.cjs +1 -0
- package/dist/{storage-DyxpJ0pg.js → storage-6Xk0uAxB.js} +3 -1
- package/dist/storage-B6lQtc4-.cjs +1 -0
- package/dist/types/entities/action/action.d.ts.map +1 -1
- package/dist/types/entities/experience/experience.d.ts +33 -5
- package/dist/types/entities/experience/experience.d.ts.map +1 -1
- package/dist/types/entities/experience-instance/experience-instance.d.ts +19 -0
- 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 +19 -13
- 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 +76 -0
- package/dist/types/entities/response/response-validation.d.ts.map +1 -0
- package/dist/types/entities/response/response.d.ts +17 -13
- package/dist/types/entities/response/response.d.ts.map +1 -1
- package/dist/types/entities/step/step.d.ts +1 -3
- package/dist/types/entities/step/step.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 +1 -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 +38 -11
- package/dist/types/picked.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/create-experience.d.ts +22 -32
- package/dist/types/plugins/create-experience/create-experience.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/plugin.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/serialization.d.ts +7 -0
- package/dist/types/plugins/create-experience/serialization.d.ts.map +1 -0
- package/dist/types/plugins/dynamic-experiences/plugin.d.ts.map +1 -1
- package/dist/types/plugins/dynamic-experiences/types.d.ts +11 -17
- 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 +1 -1
- 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 +3 -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 +8 -4
- package/dist/types/utils/node-tree/next-reachable-step-nodes.d.ts.map +1 -1
- package/dist/types/utils/nodes.d.ts +58 -9
- 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/storage.d.ts.map +1 -1
- package/package.json +42 -6
- package/dist/experience-instance-BODAwa-_.js +0 -713
- package/dist/experience-instance-DImQh64e.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/key.d.ts +0 -12
- package/dist/types/utils/key.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,15 @@
|
|
|
1
|
-
import { ExperienceTarget } from '../../entities/experience/experience';
|
|
1
|
+
import { ActionNode, Experience, ExperienceEdge, ExperienceNode, ExperienceTarget } from '../../entities/experience/experience';
|
|
2
|
+
import { ExperienceStep } from '../../entities/step/step';
|
|
3
|
+
import { Condition } from '../../entities/condition/condition';
|
|
2
4
|
import { AdaptedComponent } from '../../entities/component/component';
|
|
3
5
|
import { LogicRule, LogicValue } from '../../logic-engine';
|
|
4
6
|
import { Field, FieldBooleanMultiple, FieldBooleanSingular, FieldNumberMultiple, FieldNumberSingular, FieldObjectMultiple, FieldObjectSingular, FieldTextMultiple, FieldTextSingular, JsonValue } from '../../entities/field/field';
|
|
7
|
+
import { Serialized } from './serialization';
|
|
8
|
+
export interface SerializedExperience extends Experience {
|
|
9
|
+
steps: ExperienceStep[];
|
|
10
|
+
conditions: Condition[];
|
|
11
|
+
fields: Field[];
|
|
12
|
+
}
|
|
5
13
|
export interface Nodeable {
|
|
6
14
|
node: SerializableNode | null;
|
|
7
15
|
}
|
|
@@ -9,7 +17,6 @@ export interface SerializableStep extends Nodeable {
|
|
|
9
17
|
id: string;
|
|
10
18
|
name: string;
|
|
11
19
|
key: string;
|
|
12
|
-
/** @deprecated Use `name` instead. */
|
|
13
20
|
label: string;
|
|
14
21
|
fields: SerializableField[];
|
|
15
22
|
experience: SerializableExperience;
|
|
@@ -19,14 +26,12 @@ export interface SerializableStep extends Nodeable {
|
|
|
19
26
|
nextConditional: (conditionOptions: CreateConditionOptions | SerializableCondition) => SerializableCondition;
|
|
20
27
|
addNextExperience: (experience: SerializableExperience) => SerializableExperience;
|
|
21
28
|
addField: (fieldOptions: CreateFieldOptions | SerializableField) => SerializableField;
|
|
22
|
-
serialize: () =>
|
|
29
|
+
serialize: () => Serialized<ExperienceStep>;
|
|
23
30
|
}
|
|
24
31
|
export interface CreateStepOptions {
|
|
25
32
|
id?: string;
|
|
26
|
-
name?: string;
|
|
27
33
|
key?: string;
|
|
28
|
-
|
|
29
|
-
label?: string;
|
|
34
|
+
name: string;
|
|
30
35
|
fields?: SerializableField[];
|
|
31
36
|
}
|
|
32
37
|
export type SerializableNode = SerializableStepNode | SerializableConditionNode | SerializableLaunchExperienceNode | SerializableOriginNode | SerializableActionNode;
|
|
@@ -36,7 +41,7 @@ export interface SerializableActionNode extends SerializableBaseNode {
|
|
|
36
41
|
addNext: (nodeable: Nodeable) => undefined;
|
|
37
42
|
onSuccess: (nodeable: Nodeable) => undefined;
|
|
38
43
|
onFail: (nodeable: Nodeable) => undefined;
|
|
39
|
-
serialize: () =>
|
|
44
|
+
serialize: () => Serialized<ActionNode>;
|
|
40
45
|
}
|
|
41
46
|
export interface CreateActionOptions {
|
|
42
47
|
action: string;
|
|
@@ -45,7 +50,7 @@ export declare const createAction: (actionOptions: CreateActionOptions, experien
|
|
|
45
50
|
export interface SerializableBaseNode {
|
|
46
51
|
id: string;
|
|
47
52
|
experience: SerializableExperience;
|
|
48
|
-
serialize: () =>
|
|
53
|
+
serialize: () => Serialized<ExperienceNode>;
|
|
49
54
|
}
|
|
50
55
|
export interface SerializableStepNode extends SerializableBaseNode {
|
|
51
56
|
type: 'step';
|
|
@@ -83,7 +88,7 @@ export interface SerializableEdge {
|
|
|
83
88
|
sourceNodeHandle: 'true' | 'false' | null;
|
|
84
89
|
destinationNode: SerializableNode;
|
|
85
90
|
experience: SerializableExperience;
|
|
86
|
-
serialize: () =>
|
|
91
|
+
serialize: () => Serialized<ExperienceEdge>;
|
|
87
92
|
}
|
|
88
93
|
export interface CreateEdgeOptions {
|
|
89
94
|
sourceNode: SerializableNode;
|
|
@@ -94,28 +99,20 @@ export interface SerializableCondition extends Nodeable {
|
|
|
94
99
|
id: string;
|
|
95
100
|
key: string;
|
|
96
101
|
name: string;
|
|
97
|
-
/** @deprecated Use `name` instead. */
|
|
98
102
|
label?: string;
|
|
99
103
|
logic: LogicRule;
|
|
100
104
|
experience: SerializableExperience;
|
|
101
105
|
addTrue: (nodeable: Nodeable) => undefined;
|
|
102
106
|
addFalse: (nodeable: Nodeable) => undefined;
|
|
103
|
-
serialize: () =>
|
|
107
|
+
serialize: () => Serialized<Condition>;
|
|
104
108
|
}
|
|
105
109
|
export interface CreateConditionOptions {
|
|
106
|
-
/** @deprecated The `id` is auto-generated. This property is accepted but ignored. */
|
|
107
|
-
id?: string;
|
|
108
110
|
condition: LogicRule;
|
|
109
111
|
name?: string;
|
|
110
112
|
key?: string;
|
|
111
|
-
/** @deprecated Use `name` instead. */
|
|
112
113
|
label?: string;
|
|
113
114
|
}
|
|
114
115
|
export type CreateFieldOptions = Omit<Field, 'id' | 'key' | 'options' | 'placeholder' | 'description' | 'helpText' | 'validation' | 'policies' | 'defaultValue'> & {
|
|
115
|
-
/**
|
|
116
|
-
* @deprecated Provide `key` instead. If omitted, a stable key is auto-generated from `name`.
|
|
117
|
-
* The internal `id` is derived from `key` when not explicitly set.
|
|
118
|
-
*/
|
|
119
116
|
id?: string;
|
|
120
117
|
key?: string;
|
|
121
118
|
defaultValue?: string | number | boolean | object | null | string[] | number[] | boolean[] | object[];
|
|
@@ -154,22 +151,14 @@ export type SerializableField<T extends JsonValue = JsonValue> = {
|
|
|
154
151
|
value: JsonValue;
|
|
155
152
|
condition?: LogicRule;
|
|
156
153
|
}[] | null;
|
|
157
|
-
/**
|
|
158
|
-
* Phantom type property for TypeScript type inference.
|
|
159
|
-
* This property never exists at runtime but enables type-safe field value access.
|
|
160
|
-
*
|
|
161
|
-
* @internal
|
|
162
|
-
*/
|
|
163
|
-
__fieldType?: T;
|
|
164
154
|
} & {
|
|
165
|
-
serialize: () =>
|
|
155
|
+
serialize: () => Serialized<Field>;
|
|
166
156
|
};
|
|
167
157
|
export interface SerializableExperience {
|
|
168
158
|
id: string;
|
|
169
159
|
key: string;
|
|
170
160
|
component?: AdaptedComponent;
|
|
171
161
|
name: string;
|
|
172
|
-
/** Decision logic that controls whether this experience is initialised. */
|
|
173
162
|
condition?: LogicRule | LogicValue;
|
|
174
163
|
initializeOpen?: LogicRule | LogicValue;
|
|
175
164
|
targets: ExperienceTarget[];
|
|
@@ -195,13 +184,12 @@ export interface SerializableExperience {
|
|
|
195
184
|
addAction: (actionOptions: CreateActionOptions | SerializableActionNode, after?: {
|
|
196
185
|
node: SerializableNode | null;
|
|
197
186
|
}) => SerializableActionNode;
|
|
198
|
-
serialize: () =>
|
|
187
|
+
serialize: () => Serialized<SerializedExperience>;
|
|
199
188
|
}
|
|
200
189
|
export interface CreateExperienceOptions {
|
|
201
190
|
id: string;
|
|
202
|
-
key
|
|
191
|
+
key: string;
|
|
203
192
|
name: string;
|
|
204
|
-
/** Decision logic that controls whether this experience is initialised. */
|
|
205
193
|
condition?: LogicRule | LogicValue;
|
|
206
194
|
initializeOpen?: LogicRule | LogicValue;
|
|
207
195
|
targets: ExperienceTarget[];
|
|
@@ -215,12 +203,14 @@ export declare const bindExperienceStep: (stepOptions: CreateStepOptions | Orpha
|
|
|
215
203
|
export declare const createNode: (nodeOptions: CreateNodeOptions, experience: SerializableExperience) => SerializableNode;
|
|
216
204
|
export declare const createEdge: (edgeOptions: CreateEdgeOptions, experience: SerializableExperience) => SerializableEdge;
|
|
217
205
|
export declare const createCondition: (conditionOptions: CreateConditionOptions, experience: SerializableExperience) => SerializableCondition;
|
|
206
|
+
/** @deprecated Use `createCondition` instead. */
|
|
207
|
+
export declare const createConditional: (conditionOptions: CreateConditionOptions, experience: SerializableExperience) => SerializableCondition;
|
|
218
208
|
/**
|
|
219
209
|
* Creates a field with optional generic type parameter for object field type safety.
|
|
220
210
|
*
|
|
221
211
|
* @template T - The type of the object field value (only applicable for type: 'object').
|
|
222
|
-
* @param fieldOptions - The field configuration options.
|
|
223
|
-
* @returns A serializable field with type information.
|
|
212
|
+
* @param {CreateFieldOptions} fieldOptions - The field configuration options.
|
|
213
|
+
* @returns {SerializableField<T>} A serializable field with type information.
|
|
224
214
|
* @example
|
|
225
215
|
* ```typescript
|
|
226
216
|
* // Without type parameter (default JsonValue)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-experience.d.ts","sourceRoot":"","sources":["../../../../src/plugins/create-experience/create-experience.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"create-experience.d.ts","sourceRoot":"","sources":["../../../../src/plugins/create-experience/create-experience.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,OAAO,KAAK,EACV,UAAU,EAEV,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAGjB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAA;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/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BAAsB,KACjC,qBAmDF,CAAA;AAED,iDAAiD;AACjD,eAAO,MAAM,iBAAiB,qBAxDV,sBAAsB,cAC5B,sBAAsB,KACjC,qBAsD6C,CAAA;AAEhD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,SAAS,GAAG,SAAS,EACzD,cAAc,kBAAkB,KAC/B,iBAAiB,CAAC,CAAC,CAsOrB,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,YAAY,uBAAuB,KAAG,sBA4LtE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/create-experience/plugin.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/create-experience/plugin.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAE1D,OAAO,KAAK,EAAwB,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAGvF,UAAU,6BAA6B;IACrC,WAAW,EAAE,sBAAsB,EAAE,CAAA;CACtC;AAED,eAAO,MAAM,sBAAsB,GAAI,SAAS,6BAA6B,KAAG,MA0B/E,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** @file Thin serialization helpers used by the create-experience builder API. */
|
|
2
|
+
export type Serialized<T> = string;
|
|
3
|
+
export declare const serialization: {
|
|
4
|
+
serialize<T>(obj: T): Serialized<T>;
|
|
5
|
+
deserialize<T>(str: Serialized<T>): T;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=serialization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../../../src/plugins/create-experience/serialization.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAGlF,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,MAAM,CAAA;AAElC,eAAO,MAAM,aAAa;cACd,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAGvB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC;CAGtC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/dynamic-experiences/plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAK1D,OAAO,KAAK,EACV,+BAA+B,EAC/B,mBAAmB,EACnB,aAAa,EAGd,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/dynamic-experiences/plugin.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAK1D,OAAO,KAAK,EACV,+BAA+B,EAC/B,mBAAmB,EACnB,aAAa,EAGd,MAAM,SAAS,CAAA;AA2ThB;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAmC/B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE,+BAA+B,GAAG,MAAM,CAgD1F"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExperienceStep } from '../../entities/step/step';
|
|
2
2
|
import { Field } from '../../entities/field/field';
|
|
3
|
-
import { ExperienceEdge, ExperienceNode,
|
|
3
|
+
import { ExperienceEdge, ExperienceNode, ExperienceTarget } from '../../entities/experience/experience';
|
|
4
4
|
import { Condition } from '../../entities/condition/condition';
|
|
5
5
|
import { LogicRule, LogicValue } from '../../logic-engine';
|
|
6
6
|
export interface ProjectConfigFeature {
|
|
@@ -22,38 +22,32 @@ export interface ProjectConfigExperience {
|
|
|
22
22
|
id: string;
|
|
23
23
|
key: string;
|
|
24
24
|
name: string;
|
|
25
|
-
|
|
26
|
-
componentName?: string;
|
|
27
|
-
/** IDs of features that gate this experience. */
|
|
28
|
-
featureIds?: string[];
|
|
25
|
+
componentName: string;
|
|
29
26
|
nodes: ProjectConfigNode[];
|
|
30
27
|
edges: ExperienceEdge[];
|
|
31
|
-
actions?: ExperienceAction[];
|
|
32
28
|
/** Decision logic that controls whether this experience is initialised. */
|
|
33
|
-
condition
|
|
29
|
+
condition: LogicRule | LogicValue;
|
|
34
30
|
/** Logic that controls the initial open state of the experience. */
|
|
35
|
-
initializeOpen
|
|
31
|
+
initializeOpen: LogicRule | LogicValue;
|
|
36
32
|
/** DOM targets this experience mounts into. */
|
|
37
|
-
targets
|
|
33
|
+
targets: ExperienceTarget[];
|
|
38
34
|
}
|
|
39
35
|
export interface ProjectConfig {
|
|
40
36
|
id: string;
|
|
41
|
-
key: string;
|
|
42
37
|
name: string;
|
|
43
38
|
status: string;
|
|
44
|
-
versionId: string
|
|
39
|
+
versionId: string;
|
|
45
40
|
workspaceId: string;
|
|
46
41
|
features: ProjectConfigFeature[];
|
|
47
42
|
/** Experience definitions with steps and conditions referenced by ID. */
|
|
48
|
-
experiences
|
|
43
|
+
experiences: ProjectConfigExperience[];
|
|
49
44
|
/** Global step definitions shared across experiences. */
|
|
50
|
-
steps
|
|
45
|
+
steps: ExperienceStep[];
|
|
51
46
|
/** Global field definitions shared across steps. */
|
|
52
|
-
fields
|
|
47
|
+
fields: Field[];
|
|
53
48
|
/** Global condition definitions referenced by experience flow nodes. */
|
|
54
|
-
conditions
|
|
55
|
-
|
|
56
|
-
actions?: unknown[];
|
|
49
|
+
conditions: Condition[];
|
|
50
|
+
actions: unknown[];
|
|
57
51
|
}
|
|
58
52
|
export interface DynamicExperiencesPluginOptions {
|
|
59
53
|
apiUrl?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/plugins/dynamic-experiences/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/plugins/dynamic-experiences/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EACjB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE/D,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAA;AAE9C;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,iBAAiB,EAAE,CAAA;IAC1B,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,2EAA2E;IAC3E,SAAS,EAAE,SAAS,GAAG,UAAU,CAAA;IACjC,oEAAoE;IACpE,cAAc,EAAE,SAAS,GAAG,UAAU,CAAA;IACtC,+CAA+C;IAC/C,OAAO,EAAE,gBAAgB,EAAE,CAAA;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,oBAAoB,EAAE,CAAA;IAChC,yEAAyE;IACzE,WAAW,EAAE,uBAAuB,EAAE,CAAA;IACtC,yDAAyD;IACzD,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,oDAAoD;IACpD,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,wEAAwE;IACxE,UAAU,EAAE,SAAS,EAAE,CAAA;IACvB,OAAO,EAAE,OAAO,EAAE,CAAA;CACnB;AAED,MAAM,WAAW,+BAA+B;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,aAAa,CAAA;CAC9B;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Plugin } from '../../entities/plugin/plugin';
|
|
2
|
-
|
|
2
|
+
interface ExperienceBrowserStoragePlugin {
|
|
3
3
|
storage?: 'local' | 'session';
|
|
4
4
|
}
|
|
5
5
|
export declare const experienceBrowserStoragePlugin: ({ storage, }?: ExperienceBrowserStoragePlugin) => Plugin;
|
|
6
|
+
export {};
|
|
6
7
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/experience-browser-storage/plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAK1D,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/experience-browser-storage/plugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAK1D,UAAU,8BAA8B;IACtC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,8BAA8B,GAAI,eAE5C,8BAAmC,KAAG,MA6CxC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/history-browser-storage/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAK1D,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,2BAA2B,GAAI,eAEzC,2BAAgC,KAAG,MA4BrC,CAAA"}
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/history-browser-storage/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAK1D,cAAc;AACd,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,2BAA2B,GAAI,eAEzC,2BAAgC,KAAG,MA4BrC,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Plugin } from '../../entities/plugin/plugin';
|
|
2
|
-
|
|
2
|
+
interface ResponsesBrowserStoragePlugin {
|
|
3
3
|
storage?: 'local' | 'session';
|
|
4
4
|
}
|
|
5
5
|
export declare const responsesBrowserStoragePlugin: ({ storage, }?: ResponsesBrowserStoragePlugin) => Plugin;
|
|
6
|
+
export {};
|
|
6
7
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/responses-browser-storage/plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/responses-browser-storage/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAK1D,UAAU,6BAA6B;IACrC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAoDD,eAAO,MAAM,6BAA6B,GAAI,eAE3C,6BAAkC,KAAG,MA6FvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/responses-indexeddb/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,eAAO,MAAM,wBAAwB,QAAO,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/responses-indexeddb/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,eAAO,MAAM,wBAAwB,QAAO,MAuE3C,CAAA"}
|
|
@@ -26,7 +26,7 @@ interface SinglePageAppPluginOptions {
|
|
|
26
26
|
* })
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
export declare const singlePageAppPlugin: (
|
|
29
|
+
export declare const singlePageAppPlugin: (_options: SinglePageAppPluginOptions) => Plugin;
|
|
30
30
|
export declare function instrumentHistory(callback: () => void): void;
|
|
31
31
|
export {};
|
|
32
32
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/single-page-app/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,UAAU,0BAA0B;IAClC;;;;OAIG;IACH,iBAAiB,EAAE,IAAI,CAAA;CACxB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,GAAI,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/single-page-app/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,UAAU,0BAA0B;IAClC;;;;OAIG;IACH,iBAAiB,EAAE,IAAI,CAAA;CACxB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,0BAA0B,KAAG,MAa1E,CAAA;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAwC5D"}
|
|
@@ -14,9 +14,6 @@ export declare function createAppHosts(targets: (ExperienceTarget & {
|
|
|
14
14
|
elements: HTMLElement[];
|
|
15
15
|
})[], experienceId: string): HTMLElement[];
|
|
16
16
|
export declare function tagTargetElement(element: HTMLElement, experienceId: string): void;
|
|
17
|
-
export declare function isTaggedTarget(element: HTMLElement, experienceId?: string): boolean;
|
|
18
17
|
export declare function isPickedRoot(element: HTMLElement, experienceId?: string): boolean;
|
|
19
|
-
export declare function createPickedRoot(experienceId: string): HTMLDivElement;
|
|
20
|
-
export declare function createHostElement(target: HTMLElement | Document, placement: Placement, experienceId: string): HTMLElement;
|
|
21
18
|
export {};
|
|
22
19
|
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../src/utils/dom.ts"],"names":[],"mappings":"AAAA,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CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,IAAI,QAS1E;AAED,KAAK,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAA;AAOtE,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAAE,EAAE,EACrD,YAAY,EAAE,MAAM,GACnB,CAAC,gBAAgB,GAAG;IAAE,QAAQ,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,EAAE,CAqBpD;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,CAAC,gBAAgB,GAAG;IAAE,QAAQ,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC,EAAE,EAC3D,YAAY,EAAE,MAAM,iBAOrB;AAGD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,QAG1E;AAUD,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,YAAY,CAAC,EAAE,MAAM,WAMvE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Store, createEvent } from 'effector';
|
|
2
2
|
import { ValidationError } from '../entities/response/response';
|
|
3
3
|
import { ExperienceStep } from '../entities/step/step';
|
|
4
4
|
import { ExperienceInstance } from '../entities/experience-instance/experience-instance';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/utils/events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/utils/events.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBA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,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAA;AAgB1D,eAAO,MAAM,kBAAkB,GAC7B,UAAU,UAAU,CAAC,OAAO,WAAW,CAAC,eAAe,CAAC,CAAC,KACxD,iBAoBF,CAAA"}
|
|
@@ -6,6 +6,5 @@ interface InternalGlobal {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const GLOBAL_OBJ: typeof globalThis & InternalGlobal;
|
|
8
8
|
export declare const bindClient: (client: Picked) => void;
|
|
9
|
-
export declare const getBoundClient: () => Picked;
|
|
10
9
|
export {};
|
|
11
10
|
//# sourceMappingURL=global-obj.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-obj.d.ts","sourceRoot":"","sources":["../../../src/utils/global-obj.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC,QAAA,MAAM,YAAY,eAAmB,CAAA;AAErC,UAAU,cAAc;IACtB,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAGD,eAAO,MAAM,UAAU,EAAiB,OAAO,UAAU,GAAG,cAAc,CAAA;AAE1E,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,SAExC,CAAA
|
|
1
|
+
{"version":3,"file":"global-obj.d.ts","sourceRoot":"","sources":["../../../src/utils/global-obj.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC,QAAA,MAAM,YAAY,eAAmB,CAAA;AAErC,UAAU,cAAc;IACtB,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAGD,eAAO,MAAM,UAAU,EAAiB,OAAO,UAAU,GAAG,cAAc,CAAA;AAE1E,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,SAExC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface IndexedDBConfig {
|
|
2
2
|
storeName: string;
|
|
3
3
|
version?: number;
|
|
4
4
|
keyPath?: string | null;
|
|
@@ -8,4 +8,5 @@ export declare function getAllItems<T>(db: IDBDatabase, storeName: string): Prom
|
|
|
8
8
|
export declare function setItem<T>(db: IDBDatabase, storeName: string, value: T): Promise<void>;
|
|
9
9
|
export declare function clearItem(db: IDBDatabase, storeName: string, key: string): Promise<void>;
|
|
10
10
|
export declare function clearAllItems(db: IDBDatabase, storeName: string): Promise<void>;
|
|
11
|
+
export {};
|
|
11
12
|
//# sourceMappingURL=indexed-db.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexed-db.d.ts","sourceRoot":"","sources":["../../../src/utils/indexed-db.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"indexed-db.d.ts","sourceRoot":"","sources":["../../../src/utils/indexed-db.ts"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAID,wBAAsB,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAgB1E;AAED,wBAAsB,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAQrF;AAED,wBAAsB,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ5F;AAED,wBAAsB,SAAS,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ9F;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAQrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,GACjB,OAAO,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,EACxC,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAClC,IAOF,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
|
|
2
|
+
export declare function getNextNodeFromCondition(conditionResult: boolean, conditionNodeId: string, nodes: ExperienceNode[], edges: ExperienceEdge[]): Promise<ExperienceNode | undefined>;
|
|
3
|
+
//# sourceMappingURL=get-next-node-from-condition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-next-node-from-condition.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/get-next-node-from-condition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAE1F,wBAAsB,wBAAwB,CAC5C,eAAe,EAAE,OAAO,EACxB,eAAe,EAAE,MAAM,EACvB,KAAK,EAAE,cAAc,EAAE,EACvB,KAAK,EAAE,cAAc,EAAE,uCAQxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"min-max-steps-to-leaf.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/min-max-steps-to-leaf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;
|
|
1
|
+
{"version":3,"file":"min-max-steps-to-leaf.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/min-max-steps-to-leaf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AA4D1F;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,cAAc,EAAE,EACvB,OAAO,cAAc,EAAE,EACvB,aAAa,cAAc,KAC1B,CAAC,MAAM,EAAE,MAAM,CAEjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"min-max-steps-to-origin.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/min-max-steps-to-origin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;
|
|
1
|
+
{"version":3,"file":"min-max-steps-to-origin.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/min-max-steps-to-origin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AA6D1F;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,cAAc,EAAE,EACvB,OAAO,cAAc,EAAE,EACvB,aAAa,cAAc,KAC1B,CAAC,MAAM,EAAE,MAAM,CAEjB,CAAA"}
|
|
@@ -4,10 +4,14 @@ import { ExperienceEdge, ExperienceNode } from '../../entities/experience/experi
|
|
|
4
4
|
* of the tree until encountering nodes with stepKey properties.
|
|
5
5
|
* Does not progress past a node with a stepKey.
|
|
6
6
|
*
|
|
7
|
-
* @param nodes - Array of all nodes in the tree
|
|
8
|
-
* @param edges - Array of all edges connecting the nodes
|
|
9
|
-
* @param currentNode - The starting node for traversal
|
|
10
|
-
* @returns Array of nodes with
|
|
7
|
+
* @param nodes - Array of all nodes in the tree.
|
|
8
|
+
* @param edges - Array of all edges connecting the nodes.
|
|
9
|
+
* @param currentNode - The starting node for traversal.
|
|
10
|
+
* @returns Array of nodes with stepId properties that are descendants of the current node.
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* nextReachableStepNodes(nodes, edges, currentNode)
|
|
14
|
+
* ```
|
|
11
15
|
*/
|
|
12
16
|
export declare const nextReachableStepNodes: (nodes: ExperienceNode[], edges: ExperienceEdge[], currentNode: ExperienceNode) => ExperienceNode[];
|
|
13
17
|
//# sourceMappingURL=next-reachable-step-nodes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-reachable-step-nodes.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/next-reachable-step-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;
|
|
1
|
+
{"version":3,"file":"next-reachable-step-nodes.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/next-reachable-step-nodes.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AA2C1F;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,cAAc,EAAE,EACvB,OAAO,cAAc,EAAE,EACvB,aAAa,cAAc,KAC1B,cAAc,EAEhB,CAAA"}
|
|
@@ -1,30 +1,79 @@
|
|
|
1
1
|
import { ConditionNode, ExperienceNode, LaunchExperienceNode, OriginNode, StepNode, ActionNode } from '../entities/experience/experience';
|
|
2
|
+
/**
|
|
3
|
+
* Narrows an {@link ExperienceNode} to a {@link ConditionNode}.
|
|
4
|
+
*
|
|
5
|
+
* @param {ExperienceNode} node - The node to check.
|
|
6
|
+
* @returns {boolean} `true` when the node is a condition node.
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* isConditionNode({ id: 'n1', type: 'condition', conditionId: 'c1' }) // true
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
2
12
|
export declare function isConditionNode(node: ExperienceNode): node is ConditionNode;
|
|
13
|
+
/**
|
|
14
|
+
* Narrows an {@link ExperienceNode} to a {@link StepNode}.
|
|
15
|
+
*
|
|
16
|
+
* @param {ExperienceNode} node - The node to check.
|
|
17
|
+
* @returns {boolean} `true` when the node is a step node.
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* isStepNode({ id: 'n1', type: 'step', stepId: 's1' }) // true
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
3
23
|
export declare function isStepNode(node: ExperienceNode): node is StepNode;
|
|
24
|
+
/**
|
|
25
|
+
* Narrows an {@link ExperienceNode} to a {@link LaunchExperienceNode}.
|
|
26
|
+
*
|
|
27
|
+
* @param {ExperienceNode} node - The node to check.
|
|
28
|
+
* @returns {boolean} `true` when the node is an experience launch node.
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* isLaunchExperienceNode({ id: 'n1', type: 'experience', experienceId: 'e1' }) // true
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
4
34
|
export declare function isLaunchExperienceNode(node: ExperienceNode): node is LaunchExperienceNode;
|
|
35
|
+
/**
|
|
36
|
+
* Narrows an {@link ExperienceNode} to an {@link OriginNode}.
|
|
37
|
+
*
|
|
38
|
+
* @param {ExperienceNode} node - The node to check.
|
|
39
|
+
* @returns {boolean} `true` when the node is an origin node.
|
|
40
|
+
* @example
|
|
41
|
+
* ```typescript
|
|
42
|
+
* isOriginNode({ id: 'n1', type: 'origin' }) // true
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
5
45
|
export declare function isOriginNode(node: ExperienceNode): node is OriginNode;
|
|
6
|
-
export declare function isActionNode(node: ExperienceNode): node is ActionNode;
|
|
7
46
|
/**
|
|
8
|
-
*
|
|
9
|
-
* for backwards compatibility with production projects that have not migrated yet.
|
|
47
|
+
* Narrows an {@link ExperienceNode} to an {@link ActionNode}.
|
|
10
48
|
*
|
|
11
|
-
* @param node - The
|
|
12
|
-
* @returns
|
|
49
|
+
* @param {ExperienceNode} node - The node to check.
|
|
50
|
+
* @returns {boolean} `true` when the node is an action node.
|
|
13
51
|
* @example
|
|
14
52
|
* ```typescript
|
|
15
|
-
*
|
|
53
|
+
* isActionNode({ id: 'n1', type: 'action', action: 'submit' }) // true
|
|
16
54
|
* ```
|
|
17
55
|
*/
|
|
18
|
-
export declare function
|
|
56
|
+
export declare function isActionNode(node: ExperienceNode): node is ActionNode;
|
|
19
57
|
/**
|
|
20
58
|
* Resolves the condition ID from a ConditionNode.
|
|
21
59
|
*
|
|
22
|
-
* @param node - The condition node to resolve the ID from.
|
|
23
|
-
* @returns The condition ID string.
|
|
60
|
+
* @param {ConditionNode} node - The condition node to resolve the ID from.
|
|
61
|
+
* @returns {string} The condition ID string.
|
|
24
62
|
* @example
|
|
25
63
|
* ```typescript
|
|
26
64
|
* resolveConditionId({ id: 'n1', type: 'condition', conditionId: 'cond-1' }) // 'cond-1'
|
|
27
65
|
* ```
|
|
28
66
|
*/
|
|
29
67
|
export declare function resolveConditionId(node: ConditionNode): string;
|
|
68
|
+
/**
|
|
69
|
+
* Resolves the step key from a StepNode.
|
|
70
|
+
*
|
|
71
|
+
* @param {StepNode} node - The step node to resolve the key from.
|
|
72
|
+
* @returns {string} The step key string.
|
|
73
|
+
* @example
|
|
74
|
+
* ```typescript
|
|
75
|
+
* resolveStepKey({ id: 'n1', type: 'step', stepId: 'step-1' }) // 'step-1'
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
export declare function resolveStepKey(node: StepNode): string;
|
|
30
79
|
//# sourceMappingURL=nodes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,oBAAo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GASG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAErD"}
|
|
@@ -34,14 +34,6 @@ export declare function addNonEnumerableProperty(obj: object, name: string, valu
|
|
|
34
34
|
*/
|
|
35
35
|
export declare function wrapFunction<F extends Function>(wrapped: F, original: F): void;
|
|
36
36
|
export declare function isWrappedFunction(fn: unknown): fn is WrappedFunction;
|
|
37
|
-
/**
|
|
38
|
-
* Gets a property from an object using a dot-separated path.
|
|
39
|
-
*
|
|
40
|
-
* @param obj the object to get the property from
|
|
41
|
-
* @param path the path to the property
|
|
42
|
-
* @param defaultValue the default value to return if the property is not found
|
|
43
|
-
*/
|
|
44
|
-
export declare function get<T = any, D = any>(obj: Record<string, any> | undefined, path: string, defaultValue?: D): T | D;
|
|
45
37
|
/**
|
|
46
38
|
* Checks if an object is empty (has no own enumerable properties).
|
|
47
39
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../src/utils/object.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI,CAAC,GAAG;IAC/D,iBAAiB,EAAE,CAAC,CAAA;CACrB,CAAA;AAED;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../src/utils/object.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAAI,CAAC,GAAG;IAC/D,iBAAiB,EAAE,CAAC,CAAA;CACrB,CAAA;AAED;;;;;;;;;;;;GAYG;AAEH,wBAAgB,WAAW,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,CAAC,SAAS,MAAM,CAAC,EAC7E,MAAM,EAAE,CAAC,EACT,IAAI,EAAE,CAAC,EACP,kBAAkB,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAC5C,IAAI,CAiBN;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAOxF;AAED;;;;;;GAMG;AAEH,wBAAgB,YAAY,CAAC,CAAC,SAAS,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,CAK9E;AAED,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,eAAe,CAEpE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQpE"}
|
|
@@ -4,7 +4,7 @@ declare global {
|
|
|
4
4
|
pickedConfig?: Partial<CreateClientOptions>;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
export declare function getPickedConfig<ExtendedPickedConfig extends Record<string,
|
|
7
|
+
export declare function getPickedConfig<ExtendedPickedConfig extends Record<string, unknown> | undefined>(): Readonly<Partial<CreateClientOptions> & ExtendedPickedConfig> | undefined;
|
|
8
8
|
export declare function getCreateClientIds(options: CreateClientOptions): {
|
|
9
9
|
organizationId: string;
|
|
10
10
|
projectId: string;
|