@picked/client 0.0.1-dev.1777938796953 → 0.0.1-dev.1778120127377

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.
Files changed (93) hide show
  1. package/README.md +0 -8
  2. package/dist/{api-GE6C0lxp.cjs → api-BM3zWj3k.cjs} +1 -1
  3. package/dist/{api-Bn4z854o.js → api-zfqEYPyX.js} +1 -1
  4. package/dist/cjs/form/index.js +1 -1
  5. package/dist/cjs/index.js +4 -4
  6. package/dist/cjs/plugins/dynamic-experiences/index.js +1 -1
  7. package/dist/cjs/plugins/experience-browser-storage/index.js +1 -1
  8. package/dist/cjs/plugins/history-browser-storage/index.js +1 -1
  9. package/dist/cjs/plugins/single-page-app/index.js +1 -1
  10. package/dist/cjs/plugins/web-components/index.js +1 -1
  11. package/dist/cjs/server/index.js +1 -1
  12. package/dist/docs/actions.mdx +0 -1
  13. package/dist/docs/index.md +0 -2
  14. package/dist/docs/pickedql/dimensions.md +2 -0
  15. package/dist/docs/pickedql/virtual-functions.md +27 -0
  16. package/dist/docs/sdk/actions.md +0 -1
  17. package/dist/docs/sdk/features.md +0 -1
  18. package/dist/docs/sdk/index.md +0 -1
  19. package/dist/docs/sdk/plugins/create-experience.md +0 -1
  20. package/dist/docs/sdk/plugins/dynamic-experiences.md +0 -1
  21. package/dist/docs/sdk/plugins/window-object.md +0 -1
  22. package/dist/docs/sdk/predicates.md +0 -1
  23. package/dist/esm/form/index.js +1 -1
  24. package/dist/esm/index.js +971 -539
  25. package/dist/esm/plugins/dynamic-experiences/index.js +51 -49
  26. package/dist/esm/plugins/experience-browser-storage/index.js +8 -5
  27. package/dist/esm/plugins/history-browser-storage/index.js +3 -3
  28. package/dist/esm/plugins/single-page-app/index.js +1 -1
  29. package/dist/esm/plugins/web-components/index.js +1 -1
  30. package/dist/esm/server/index.js +23 -13
  31. package/dist/{experience-instance-CWYRLfFM.js → experience-instance-BrLWgVAN.js} +135 -127
  32. package/dist/experience-instance-Ct3ogC7n.cjs +1 -0
  33. package/dist/rules-logic-D_CVBuv7.js +13 -0
  34. package/dist/rules-logic-H6P8xwHF.cjs +1 -0
  35. package/dist/types/client.d.ts +2 -2
  36. package/dist/types/entities/action/action.d.ts +6 -3
  37. package/dist/types/entities/action/action.d.ts.map +1 -1
  38. package/dist/types/entities/component/component.d.ts +39 -2
  39. package/dist/types/entities/component/component.d.ts.map +1 -1
  40. package/dist/types/entities/experience/experience.d.ts +49 -113
  41. package/dist/types/entities/experience/experience.d.ts.map +1 -1
  42. package/dist/types/entities/experience-instance/experience-instance.d.ts +17 -2
  43. package/dist/types/entities/experience-instance/experience-instance.d.ts.map +1 -1
  44. package/dist/types/entities/feature/feature.d.ts +26 -2
  45. package/dist/types/entities/feature/feature.d.ts.map +1 -1
  46. package/dist/types/entities/field/field.d.ts.map +1 -1
  47. package/dist/types/entities/framework/framework.d.ts +24 -3
  48. package/dist/types/entities/framework/framework.d.ts.map +1 -1
  49. package/dist/types/entities/history/history.d.ts +15 -27
  50. package/dist/types/entities/history/history.d.ts.map +1 -1
  51. package/dist/types/entities/plugin/plugin.d.ts +32 -1
  52. package/dist/types/entities/plugin/plugin.d.ts.map +1 -1
  53. package/dist/types/entities/predicate/predicate.d.ts +24 -3
  54. package/dist/types/entities/predicate/predicate.d.ts.map +1 -1
  55. package/dist/types/entities/session/session.d.ts +45 -0
  56. package/dist/types/entities/session/session.d.ts.map +1 -0
  57. package/dist/types/exports.d.ts +9 -3
  58. package/dist/types/exports.d.ts.map +1 -1
  59. package/dist/types/index.d.ts +1 -1
  60. package/dist/types/index.d.ts.map +1 -1
  61. package/dist/types/lifecycle/lifecycle.d.ts +47 -0
  62. package/dist/types/lifecycle/lifecycle.d.ts.map +1 -0
  63. package/dist/types/lifecycle/rules-logic.d.ts +24 -0
  64. package/dist/types/lifecycle/rules-logic.d.ts.map +1 -0
  65. package/dist/types/lifecycle/state-snapshot.d.ts +37 -0
  66. package/dist/types/lifecycle/state-snapshot.d.ts.map +1 -0
  67. package/dist/types/logic-engine.d.ts +1 -1
  68. package/dist/types/logic-engine.d.ts.map +1 -1
  69. package/dist/types/picked.d.ts +111 -190
  70. package/dist/types/picked.d.ts.map +1 -1
  71. package/dist/types/plugins/dynamic-experiences/plugin.d.ts.map +1 -1
  72. package/dist/types/plugins/experience-browser-storage/plugin.d.ts.map +1 -1
  73. package/dist/types/plugins/history-browser-storage/plugin.d.ts +0 -14
  74. package/dist/types/plugins/history-browser-storage/plugin.d.ts.map +1 -1
  75. package/dist/types/plugins/web-components/plugin.d.ts.map +1 -1
  76. package/dist/types/server/index.d.ts +7 -0
  77. package/dist/types/server/index.d.ts.map +1 -1
  78. package/dist/types/utils/events.d.ts +1 -1
  79. package/dist/types/utils/events.d.ts.map +1 -1
  80. package/dist/types/utils/picked-config.d.ts +12 -4
  81. package/dist/types/utils/picked-config.d.ts.map +1 -1
  82. package/dist/types/utils/rules-logic.d.ts +4 -9
  83. package/dist/types/utils/rules-logic.d.ts.map +1 -1
  84. package/package.json +2 -2
  85. package/dist/experience-instance-BDTNGT8a.cjs +0 -1
  86. package/dist/rules-logic-BTIxfrJJ.js +0 -240
  87. package/dist/rules-logic-DNLOv90w.cjs +0 -1
  88. package/dist/types/utils/state-snaphot.d.ts +0 -26
  89. package/dist/types/utils/state-snaphot.d.ts.map +0 -1
  90. package/dist/types/utils/user-session.d.ts +0 -12
  91. package/dist/types/utils/user-session.d.ts.map +0 -1
  92. /package/dist/{object-C82v79xc.js → object-DvUDOytC.js} +0 -0
  93. /package/dist/{object-CUJOjanb.cjs → object-ThO1DEyl.cjs} +0 -0
@@ -1,9 +1,12 @@
1
+ import { Effect, EventCallable, Store, StoreWritable } from 'effector';
1
2
  import { Experience, LaunchExperienceOptions } from './entities/experience/experience';
2
3
  import { Plugin, PluginConfigIndex } from './entities/plugin/plugin';
3
4
  import { CreateClientOptions } from './client';
4
5
  import { AdaptedComponent } from './entities/component/component';
5
6
  import { Framework } from './entities/framework/framework';
6
- import { StateSnapshot } from './utils/state-snaphot';
7
+ import { StateSnapshot } from './lifecycle/state-snapshot';
8
+ import { EvaluateRuleLogicParams } from './lifecycle/rules-logic';
9
+ import { LifecycleStage } from './lifecycle/lifecycle';
7
10
  import { Predicate } from './entities/predicate/predicate';
8
11
  import { Feature } from './entities/feature/feature';
9
12
  import { EventBusPayload, EventHistoryStore } from './utils/events';
@@ -11,199 +14,133 @@ import { Field } from './entities/field/field';
11
14
  import { ExperienceStep } from './entities/step/step';
12
15
  import { Action } from './entities/action/action';
13
16
  import { Condition } from './entities/condition/condition';
14
- import { SessionStore } from './utils/user-session';
15
- import { LogicRule } from './logic-engine';
17
+ import { SessionEntity } from './entities/session/session';
16
18
  export declare class Picked {
17
19
  static readonly logger: (level: "log" | "warn" | "info" | "error", ...args: Parameters<Console["log"]>) => void;
18
20
  private readonly options;
19
- isReady: boolean;
20
21
  private readonly plugins;
21
- private readonly pluginStartHooks;
22
- readonly eventBus: import('effector').EventCallable<EventBusPayload>;
22
+ readonly eventBus: EventCallable<EventBusPayload>;
23
23
  readonly events: EventHistoryStore;
24
- readonly organizationId: string;
25
24
  readonly projectId: string;
26
25
  readonly apiUrl: string;
27
26
  readonly dashboardUrl: string;
28
27
  readonly documentationSiteUrl: string;
29
- readonly session?: SessionStore | null;
30
- readonly precondition?: LogicRule | boolean;
31
- readonly condition?: LogicRule | boolean;
32
- preconditionPassed?: boolean;
28
+ readonly session: SessionEntity;
33
29
  readonly searchParams: import('.').PickedSearchParams;
34
30
  readonly history: {
35
- push: import('effector').EventCallable<import('.').InstanceNodeIntent>;
36
- replace: import('effector').EventCallable<import('.').InstanceNodeIntent>;
37
- back: import('effector').EventCallable<Pick<import('.').InstanceScope, "instanceId">>;
38
- restoreSnapshots: import('effector').EventCallable<{
39
- snapshots: Record<string, import('.').HistoryEntry[]>;
31
+ push: EventCallable<{
32
+ experienceId: string;
33
+ node: import('.').ExperienceNode;
40
34
  }>;
41
- seedInstanceFromSnapshot: import('effector').EventCallable<import('.').InstanceScope>;
42
- entriesStore: import('effector').Store<import('.').HistoryEntry[]>;
43
- snapshotStore: import('effector').Store<Record<string, import('.').HistoryEntry[]>>;
35
+ replace: EventCallable<{
36
+ experienceId: string;
37
+ node: import('.').ExperienceNode;
38
+ }>;
39
+ back: EventCallable<{
40
+ experienceId?: string;
41
+ }>;
42
+ restore: EventCallable<{
43
+ entries: import('.').HistoryEntry[];
44
+ }>;
45
+ entriesStore: Store<import('.').HistoryEntry[]>;
44
46
  };
45
47
  readonly components: {
46
- register: (name: string, component: AdaptedComponent) => void;
47
- getByName: (name: string) => import('effector').Store<{
48
+ register: EventCallable<{
49
+ name: string;
50
+ component: AdaptedComponent;
51
+ }>;
52
+ getByName: (name: string) => Store<{
48
53
  name: string;
49
54
  component: AdaptedComponent;
50
55
  } | undefined>;
51
- listStore: import('effector').Store<{
56
+ listStore: Store<{
52
57
  name: string;
53
58
  component: AdaptedComponent<string, unknown>;
54
- frameworkStore: import('effector').Store<Framework | undefined>;
59
+ frameworkStore: Store<Framework | undefined>;
55
60
  }[]>;
56
61
  };
57
62
  readonly experienceInstances: {
58
63
  spawn: (experience: import('.').ExperienceStore, target: HTMLElement, options?: LaunchExperienceOptions) => void;
59
- getByExperienceKey: (key: Experience["key"]) => import('effector').Store<import('.').ExperienceInstance[]>;
60
- getByExperienceId: (id: Experience["id"]) => import('effector').Store<import('.').ExperienceInstance[]>;
61
- listStore: import('effector').Store<import('.').ExperienceInstance[]>;
64
+ getByExperienceKey: (key: Experience["key"]) => Store<import('.').ExperienceInstance[]>;
65
+ getByExperienceId: (id: Experience["id"]) => Store<import('.').ExperienceInstance[]>;
66
+ listStore: Store<import('.').ExperienceInstance[]>;
62
67
  };
63
68
  readonly experiences: {
64
- register: (experience: Experience) => void;
65
- get: (id: Experience["id"]) => import('effector').Store<{
66
- id: string;
67
- key: string;
68
- name: string;
69
- configStore: import('effector').Store<{
70
- name: string;
71
- decisionLogic: import('./logic-engine').LogicValue | LogicRule;
72
- targetSelectors: import('.').ExperienceTarget[];
73
- initializeOpenLogic: import('./logic-engine').LogicValue | LogicRule;
74
- }>;
75
- treeStore: import('effector').Store<{
76
- steps: ExperienceStep[];
77
- nodes: import('.').ExperienceNode[];
78
- edges: import('.').ExperienceEdge[];
79
- conditions: Condition[];
80
- }>;
81
- componentStore: import('effector').Store<{
82
- name: string;
83
- component: AdaptedComponent<string, unknown>;
84
- frameworkStore: import('effector').Store<Framework | undefined>;
85
- } | undefined>;
86
- actions: import('.').ExperienceAction[];
87
- merge: import('effector').EventCallable<{
88
- experience: Partial<Experience>;
89
- strategy: "override";
90
- }>;
91
- } | undefined>;
92
- getById: (id: Experience["id"]) => import('effector').Store<{
93
- id: string;
94
- key: string;
95
- name: string;
96
- configStore: import('effector').Store<{
97
- name: string;
98
- decisionLogic: import('./logic-engine').LogicValue | LogicRule;
99
- targetSelectors: import('.').ExperienceTarget[];
100
- initializeOpenLogic: import('./logic-engine').LogicValue | LogicRule;
101
- }>;
102
- treeStore: import('effector').Store<{
103
- steps: ExperienceStep[];
104
- nodes: import('.').ExperienceNode[];
105
- edges: import('.').ExperienceEdge[];
106
- conditions: Condition[];
107
- }>;
108
- componentStore: import('effector').Store<{
109
- name: string;
110
- component: AdaptedComponent<string, unknown>;
111
- frameworkStore: import('effector').Store<Framework | undefined>;
112
- } | undefined>;
113
- actions: import('.').ExperienceAction[];
114
- merge: import('effector').EventCallable<{
115
- experience: Partial<Experience>;
116
- strategy: "override";
117
- }>;
118
- } | undefined>;
119
- getByKey: (key: Experience["key"]) => import('effector').Store<import('.').ExperienceStore | undefined>;
120
- launch: import('effector').Effect<{
69
+ register: EventCallable<Experience>;
70
+ get: (id: Experience["id"]) => Store<import('.').ExperienceStore | undefined>;
71
+ getById: (id: Experience["id"]) => Store<import('.').ExperienceStore | undefined>;
72
+ getByKey: (key: Experience["key"]) => Store<import('.').ExperienceStore | undefined>;
73
+ launch: Effect<{
121
74
  key: string;
122
75
  options?: LaunchExperienceOptions;
123
76
  } | {
124
77
  id: string;
125
78
  options?: LaunchExperienceOptions;
126
79
  }, void, Error>;
127
- open: import('effector').Effect<{
80
+ open: Effect<{
128
81
  key: string;
129
82
  options?: import('./exports').OpenExperienceOptions;
130
83
  } | {
131
84
  id: string;
132
85
  options?: import('./exports').OpenExperienceOptions;
133
86
  }, void, Error>;
134
- listStore: import('effector').Store<{
135
- id: string;
136
- key: string;
137
- name: string;
138
- configStore: import('effector').Store<{
139
- name: string;
140
- decisionLogic: import('./logic-engine').LogicValue | LogicRule;
141
- targetSelectors: import('.').ExperienceTarget[];
142
- initializeOpenLogic: import('./logic-engine').LogicValue | LogicRule;
143
- }>;
144
- treeStore: import('effector').Store<{
145
- steps: ExperienceStep[];
146
- nodes: import('.').ExperienceNode[];
147
- edges: import('.').ExperienceEdge[];
148
- conditions: Condition[];
149
- }>;
150
- componentStore: import('effector').Store<{
151
- name: string;
152
- component: AdaptedComponent<string, unknown>;
153
- frameworkStore: import('effector').Store<Framework | undefined>;
154
- } | undefined>;
155
- actions: import('.').ExperienceAction[];
156
- merge: import('effector').EventCallable<{
157
- experience: Partial<Experience>;
158
- strategy: "override";
159
- }>;
160
- }[]>;
87
+ listStore: Store<import('.').ExperienceStore[]>;
88
+ initialiseExperiencesFx: Effect<void, void, Error>;
161
89
  };
162
90
  readonly frameworks: {
163
- register: (name: string, framework: Framework) => void;
164
- getByName: (name: string) => import('effector').Store<Framework | undefined>;
165
- listStore: import('effector').Store<Framework[]>;
91
+ register: EventCallable<{
92
+ name: string;
93
+ framework: Framework;
94
+ }>;
95
+ getByName: (name: string) => Store<Framework | undefined>;
96
+ listStore: Store<Framework[]>;
166
97
  };
167
98
  readonly predicates: {
168
- register: (name: string, predicate: Predicate) => void;
169
- getByName: (name: string) => import('effector').Store<Predicate | undefined>;
170
- listStore: import('effector').Store<{
99
+ register: EventCallable<{
100
+ name: string;
101
+ predicate: Predicate;
102
+ }>;
103
+ getByName: (name: string) => Store<Predicate | undefined>;
104
+ listStore: Store<{
171
105
  name: string;
172
106
  predicate: Predicate;
173
107
  }[]>;
174
- getEvokablePredicate: (predicateName: string) => import('effector').Store<() => ReturnType<Predicate>>;
108
+ getEvokablePredicate: (predicateName: string) => Store<() => ReturnType<Predicate>>;
175
109
  };
176
110
  readonly features: {
177
- register: (id: string, feature: Feature) => void;
178
- getById: (id: string) => import('effector').Store<import('.').FeatureBucket | undefined>;
179
- getByName: (name: string) => import('effector').Store<import('.').FeatureIndexItem | undefined>;
180
- listStore: import('effector').Store<import('.').FeatureBucket[]>;
181
- getEvokableFeature: (featureName: string) => import('effector').Store<() => Promise<boolean | string | undefined>>;
111
+ register: EventCallable<{
112
+ id: string;
113
+ feature: Feature;
114
+ }>;
115
+ getById: (id: string) => Store<import('.').FeatureBucket | undefined>;
116
+ getByName: (name: string) => Store<import('.').FeatureIndexItem | undefined>;
117
+ listStore: Store<import('.').FeatureBucket[]>;
118
+ getEvokableFeature: (featureName: string) => Store<() => Promise<boolean | string | undefined>>;
182
119
  };
183
120
  readonly conditions: {
184
121
  register: (condition: Condition) => void;
185
- getById: (id: Condition["id"]) => import('effector').Store<Condition | null>;
186
- getByKey: (key: Condition["key"]) => import('effector').Store<Condition | null>;
187
- listStore: import('effector').Store<Condition[]>;
188
- indexStore: import('effector').StoreWritable<{
122
+ getById: (id: Condition["id"]) => Store<Condition | null>;
123
+ getByKey: (key: Condition["key"]) => Store<Condition | null>;
124
+ listStore: Store<Condition[]>;
125
+ indexStore: StoreWritable<{
189
126
  [id: string]: Condition;
190
127
  }>;
191
128
  };
192
129
  readonly fields: {
193
130
  register: (field: Field) => void;
194
131
  update: (key: import('.').FieldBase["key"], updates: Partial<Field>) => void;
195
- getById: (id: import('.').FieldBase["id"]) => import('effector').Store<Field | null>;
196
- getByKey: (key: import('.').FieldBase["key"]) => import('effector').Store<Field | null>;
197
- listStore: import('effector').Store<Field[]>;
198
- getByName: (name: import('.').FieldBase["name"]) => import('effector').Store<Field | null>;
132
+ getById: (id: import('.').FieldBase["id"]) => Store<Field | null>;
133
+ getByKey: (key: import('.').FieldBase["key"]) => Store<Field | null>;
134
+ listStore: Store<Field[]>;
135
+ getByName: (name: import('.').FieldBase["name"]) => Store<Field | null>;
199
136
  };
200
137
  readonly responses: {
201
138
  register: {
202
139
  (fieldKey: Field["key"], response: import('.').Response): void;
203
140
  (payload: Record<Field["key"], import('.').Response>, response?: never): void;
204
141
  };
205
- clearAll: import('effector').EventCallable<void>;
206
- clear: import('effector').EventCallable<string>;
142
+ clearAll: EventCallable<void>;
143
+ clear: EventCallable<string>;
207
144
  commit: (responsesToCommit: import('.').CommitResponses) => Promise<{
208
145
  errors: import('.').ValidationError[];
209
146
  }>;
@@ -211,36 +148,63 @@ export declare class Picked {
211
148
  responsesToCommit: import('.').CommitResponses;
212
149
  validationErrors: import('.').ValidationError[];
213
150
  }>;
214
- listStore: import('effector').Store<{
151
+ listStore: Store<{
215
152
  fieldKey: string;
216
153
  value: import('.').FieldValue;
217
154
  }[]>;
218
- getAllStore: import('effector').Store<{
155
+ getAllStore: Store<{
219
156
  [fieldKey: string]: import('.').FieldValue;
220
157
  }>;
221
- getByFieldId: (id: Field["id"]) => import('effector').Store<import('.').FieldValue>;
222
- getByFieldKey: (key: Field["key"]) => import('effector').Store<import('.').FieldValue>;
223
- getByFieldName: (fieldName: Field["name"]) => import('effector').Store<import('.').FieldValue>;
158
+ getByFieldId: (id: Field["id"]) => Store<import('.').FieldValue>;
159
+ getByFieldKey: (key: Field["key"]) => Store<import('.').FieldValue>;
160
+ getByFieldName: (fieldName: Field["name"]) => Store<import('.').FieldValue>;
224
161
  };
225
162
  readonly steps: {
226
163
  register: (step: ExperienceStep) => void;
227
- getById: (id: ExperienceStep["id"]) => import('effector').Store<ExperienceStep | null>;
228
- getByKey: (key: ExperienceStep["key"]) => import('effector').Store<ExperienceStep | null>;
229
- listStore: import('effector').Store<ExperienceStep[]>;
230
- indexStore: import('effector').StoreWritable<{
164
+ getById: (id: ExperienceStep["id"]) => Store<ExperienceStep | null>;
165
+ getByKey: (key: ExperienceStep["key"]) => Store<ExperienceStep | null>;
166
+ listStore: Store<ExperienceStep[]>;
167
+ indexStore: StoreWritable<{
231
168
  [id: string]: ExperienceStep;
232
169
  }>;
233
170
  };
234
171
  readonly actions: {
235
- register: (key: string, action: Action) => void;
236
- getByKey: (key: string) => import('effector').Store<Action | undefined>;
237
- listStore: import('effector').Store<import('.').ActionIndexItem[]>;
172
+ register: EventCallable<{
173
+ key: string;
174
+ action: Action;
175
+ }>;
176
+ getByKey: (key: string) => Store<Action | undefined>;
177
+ listStore: Store<import('.').ActionIndexItem[]>;
238
178
  getEvokableAction: (actionKey: string, options?: {
239
179
  experience: import('.').ExperienceInstance;
240
- }) => import('effector').Store<() => ReturnType<Action>>;
180
+ }) => Store<() => ReturnType<Action>>;
241
181
  };
182
+ readonly stateSnapshotStore: Store<StateSnapshot>;
183
+ readonly evaluateRuleLogicFx: Effect<EvaluateRuleLogicParams, unknown, Error>;
184
+ /** Public trigger — fires the start chain. `await allSettled(client.start, { scope })` resolves once the chain has fully settled. */
185
+ readonly start: EventCallable<void>;
186
+ /** Reactive store of the readiness flag. */
187
+ readonly readyStore: StoreWritable<boolean>;
188
+ /** Reactive store of the precondition-gate result (`undefined` until `start` is fired). */
189
+ readonly preconditionPassedStore: StoreWritable<boolean | undefined>;
190
+ /** Reactive store of the condition-gate result (`undefined` until `start` is fired). */
191
+ readonly conditionPassedStore: StoreWritable<boolean | undefined>;
192
+ /** Reactive store of the current lifecycle stage. */
193
+ readonly lifecycleStageStore: StoreWritable<LifecycleStage>;
194
+ private readonly lifecycle;
195
+ /**
196
+ * Effect that interpolates a template string against the latest responses plus a caller-supplied context. Source is `responses.listStore` so renders are scope-aware and pick up the latest committed responses without `.getState()`.
197
+ *
198
+ * @example
199
+ * ```typescript
200
+ * const greeting = await client.renderStringFx({ template: 'Hi {{name}}', context: { name: 'Mae' } })
201
+ * ```
202
+ */
203
+ readonly renderStringFx: Effect<{
204
+ template: string;
205
+ context?: Record<string, unknown>;
206
+ }, string, Error>;
242
207
  constructor(options: CreateClientOptions);
243
- start: () => void;
244
208
  registerFramework: (framework: Framework) => void;
245
209
  registerComponent: (name: string, component: AdaptedComponent) => void;
246
210
  registerPlugin: (plugin: Plugin) => void;
@@ -251,7 +215,6 @@ export declare class Picked {
251
215
  registerStep: (step: ExperienceStep) => void;
252
216
  registerAction: (key: string, action: Action) => void;
253
217
  registerExperience: (experience: Experience) => void;
254
- getStateSnapshot: () => StateSnapshot;
255
218
  /**
256
219
  * Launches an experience by ID.
257
220
  *
@@ -294,53 +257,11 @@ export declare class Picked {
294
257
  * ```
295
258
  */
296
259
  openExperienceByKey: (experienceKey: string) => Promise<void>;
297
- private runPluginStartHooks;
298
- private evaluateGate;
299
260
  private setupPlugins;
300
261
  private setupFeatures;
301
262
  private setupPredicates;
302
263
  private setupActions;
303
264
  private setupComponents;
304
265
  getPluginConfig: (pluginName: string) => PluginConfigIndex[string] | Record<string, unknown>;
305
- /**
306
- * Interpolates a template string using values from the client's response store and/or a provided context.
307
- * Supports dot-notation, modifiers, and executing functions found in the context.
308
- *
309
- * Sources:
310
- * - responses.*: Loaded automatically from the client's internal response store by fieldId (e.g. {{ responses.email }}).
311
- * - Context: Any non-responses.* key must be supplied in the context; nested dot-notation is supported.
312
- * - Functions: If a context value is a function, it is invoked and its result is rendered.
313
- *
314
- * Placeholders:
315
- * - {{ key | modifier: arg | modifier2: arg2 }} with modifiers applied left-to-right.
316
- *
317
- * Modifiers:
318
- * - default: Use the argument when the value is null, undefined, NaN, or empty string; otherwise return the value as a string.
319
- * - append: Append the argument (space-separated) when the value is non-empty.
320
- * - prepend: Prepend the argument (space-separated) when the value is non-empty.
321
- * - upper: Uppercase string values.
322
- * - lower: Lowercase string values.
323
- * - capitalize: Capitalize the first letter of string values.
324
- * - list: Format Arrays, Maps, and Sets via Intl.ListFormat (Maps render as key: value pairs).
325
- *
326
- * Behavior:
327
- * - Empty values (null, undefined, empty string, NaN) render as empty. Numeric 0 renders as "0", boolean false renders as "false", and boolean true renders as "true".
328
- * - Objects and arrays are JSON-stringified; Maps/Sets serialize to {} unless the list modifier is used.
329
- * - Unknown modifiers are ignored.
330
- *
331
- * @param template Template containing placeholders.
332
- * @param context Optional data for interpolation. Non-responses.* keys belong here; function values are executed.
333
- * @returns Interpolated string.
334
- * @example
335
- * renderString("Hello {{ name | default: 'Guest' | capitalize }}! Email: {{ responses.email | lower }}.", { name: "ALICE" })
336
- * // => "Hello Alice! Email: alice@example.com."
337
- * @example
338
- * renderString("User: {{ getName | capitalize }}", { getName: () => "alice" })
339
- * // => "User: Alice"
340
- * @example
341
- * renderString("Fruits: {{ fruits | list }}", { fruits: ["apple", "banana", "cherry"] })
342
- * // => "Fruits: apple, banana, and cherry"
343
- */
344
- renderString: (template: string, context?: Record<string, unknown>) => string;
345
266
  }
346
267
  //# sourceMappingURL=picked.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"picked.d.ts","sourceRoot":"","sources":["../../src/picked.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,UAAU,EAEf,KAAK,uBAAuB,EAC7B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,iBAAiB,EAAe,MAAM,0BAA0B,CAAA;AAC3F,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAEL,KAAK,SAAS,EAEf,MAAM,gCAAgC,CAAA;AAGvC,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAE/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,OAAO,EAAsB,KAAK,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACjG,OAAO,KAAK,EAAE,KA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AY,MAAM,KAAG,iBAAiB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE1F;CACF"}
@@ -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;AA4VhB;;;;;;;;;;;;;;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
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/dynamic-experiences/plugin.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAK1D,OAAO,KAAK,EACV,+BAA+B,EAC/B,mBAAmB,EACnB,aAAa,EAGd,MAAM,SAAS,CAAA;AA2VhB;;;;;;;;;;;;;;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,CAmD1F"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/experience-browser-storage/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,UAAU,8BAA8B;IACtC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,8BAA8B,GAAI,eAE5C,8BAAmC,KAAG,MA+CxC,CAAA"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/experience-browser-storage/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,UAAU,8BAA8B;IACtC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,8BAA8B,GAAI,eAE5C,8BAAmC,KAAG,MAmDxC,CAAA"}
@@ -3,19 +3,5 @@ import { Plugin } from '../../entities/plugin/plugin';
3
3
  export interface HistoryBrowserStoragePlugin {
4
4
  storage?: 'local' | 'session';
5
5
  }
6
- /**
7
- * Picked plugin that persists per-experience history snapshots into
8
- * `localStorage` (default) or `sessionStorage` and restores them on the
9
- * client `load` event. Snapshots are keyed by `experienceId`; when a fresh
10
- * `ExperienceInstance` spawns it reads its experience's snapshot via the
11
- * history entity's `seedInstanceFromSnapshot` event and resumes from the
12
- * last step (trailing action/condition terminals are dropped at seed time).
13
- *
14
- * @param {HistoryBrowserStoragePlugin} [options] - Plugin options.
15
- * @param {'local' | 'session'} [options.storage] - Backing store.
16
- * @returns {Plugin} A Picked client plugin.
17
- * @example
18
- * client.use(historyBrowserStoragePlugin({ storage: 'session' }))
19
- */
20
6
  export declare const historyBrowserStoragePlugin: ({ storage, }?: HistoryBrowserStoragePlugin) => Plugin;
21
7
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/history-browser-storage/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,cAAc;AACd,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,2BAA2B,GAAI,eAEzC,2BAAgC,KAAG,MA+BrC,CAAA"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/history-browser-storage/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,cAAc;AACd,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,2BAA2B,GAAI,eAEzC,2BAAgC,KAAG,MA8BrC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/web-components/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAG1D,eAAO,MAAM,mBAAmB,QAAO,MA4BtC,CAAA"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/web-components/plugin.ts"],"names":[],"mappings":"AAAA,kJAAkJ;AAClJ,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAG1D,eAAO,MAAM,mBAAmB,QAAO,MA2BtC,CAAA"}
@@ -8,5 +8,12 @@ export interface Renderer<T = AdaptedComponent<string, unknown>> {
8
8
  body: string;
9
9
  }>;
10
10
  }
11
+ /**
12
+ * Renders all experiences in sequence using the provided renderers.
13
+ *
14
+ * @param {Picked} client - The Picked client instance.
15
+ * @param {Renderer[]} renderers - Array of available renderers to use.
16
+ * @returns {Promise<string[]>} A promise resolving to rendered experience HTML strings.
17
+ */
11
18
  export declare function render(client: Picked, renderers: Renderer[]): Promise<string[]>;
12
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAA;AAE7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAkBvE,MAAM,WAAW,QAAQ,CAAC,CAAC,GAAG,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC;IAC7D,gBAAgB,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAA;IAC3E,MAAM,EAAE,CACN,SAAS,EAAE,CAAC,EACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,kBAAkB,KAC3B,OAAO,CAAC;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;KACb,CAAC,CAAA;CACH;AAmBD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CA6H/E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAA;AAE7F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAwBvE,MAAM,WAAW,QAAQ,CAAC,CAAC,GAAG,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC;IAC7D,gBAAgB,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAA;IAC3E,MAAM,EAAE,CACN,SAAS,EAAE,CAAC,EACZ,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,kBAAkB,KAC3B,OAAO,CAAC;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;KACb,CAAC,CAAA;CACH;AAmBD;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAkJ/E"}
@@ -3,7 +3,7 @@ import { ValidationError } from '../entities/response/response';
3
3
  import { ExperienceStep } from '../entities/step/step';
4
4
  import { ExperienceInstance } from '../entities/experience-instance/experience-instance';
5
5
  import { ResolvedFeature } from '../entities/feature/feature';
6
- import { Session } from './user-session';
6
+ import { Session } from '../entities/session/session';
7
7
  export interface FormPayload {
8
8
  id: string;
9
9
  title: string;
@@ -1 +1 @@
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,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAA;AAC7F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,KAAK,CAAA;IACZ,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;IACzB,UAAU,EAAE,KAAK,CAAA;IACjB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M,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAA;AAgB1D,eAAO,MAAM,kBAAkB,GAC7B,UAAU,UAAU,CAAC,OAAO,WAAW,CAAC,eAAe,CAAC,CAAC,KACxD,iBAgBF,CAAA"}
@@ -5,8 +5,16 @@ declare global {
5
5
  }
6
6
  }
7
7
  export declare function getPickedConfig<ExtendedPickedConfig extends Record<string, unknown> | undefined>(): Readonly<Partial<CreateClientOptions> & ExtendedPickedConfig> | undefined;
8
- export declare function getCreateClientIds(options: CreateClientOptions): {
9
- organizationId: string;
10
- projectId: string;
11
- };
8
+ /**
9
+ * Resolves the Picked project id from the supplied options, falling back to
10
+ * `window.pickedConfig.projectId` and then to a `data-projectid` (or
11
+ * `project-id`) attribute on a `picked_script`/`picked`/`cvly` script tag.
12
+ *
13
+ * @param {CreateClientOptions} options - Options passed to `createClient`.
14
+ * @returns {string} The resolved project id.
15
+ * @throws {Error} If no project id can be resolved from any source.
16
+ * @example
17
+ * getCreateClientProjectId({ projectId: 'proj-abc' })
18
+ */
19
+ export declare function getCreateClientProjectId(options: CreateClientOptions): string;
12
20
  //# sourceMappingURL=picked-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"picked-config.d.ts","sourceRoot":"","sources":["../../../src/utils/picked-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAGpD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;KAC5C;CACF;AAED,wBAAgB,eAAe,CAC7B,oBAAoB,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,+EAUjE;AAoCD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG;IAChE,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;CAClB,CAuBA"}
1
+ {"version":3,"file":"picked-config.d.ts","sourceRoot":"","sources":["../../../src/utils/picked-config.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAC/G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAGpD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;KAC5C;CACF;AAED,wBAAgB,eAAe,CAC7B,oBAAoB,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,+EAUjE;AA4BD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAqB7E"}
@@ -14,16 +14,11 @@ import { Picked } from '../picked';
14
14
  */
15
15
  export declare function isRulesLogic(rules: unknown): rules is LogicRule;
16
16
  /**
17
- * Evaluates a json-logic condition against the current client state.
17
+ * Evaluates a json-logic condition against the current client state by delegating to `client.evaluateRuleLogicFx`.
18
18
  *
19
- * Builds a {@link LogicContext} from committed responses, location, predicates,
20
- * and features, then applies the caller-supplied `context` on top so that
21
- * callers such as the field evaluator can override defaults like `responses`
22
- * with staged/in-session values.
23
- *
24
- * @param {Picked} client - The Picked client instance providing state snapshots.
19
+ * @param {Picked} client - The Picked client instance providing reactive state stores.
25
20
  * @param {LogicRule} condition - The json-logic rule to evaluate.
26
- * @param {LogicObject} [context] - Optional overrides merged on top of the default context.
21
+ * @param {LogicObject} [context] - Optional overrides merged on top of the default context (e.g., staged form values).
27
22
  * @returns {Promise<unknown>} The result of applying the logic rule.
28
23
  * @example
29
24
  * ```ts
@@ -32,5 +27,5 @@ export declare function isRulesLogic(rules: unknown): rules is LogicRule;
32
27
  * })
33
28
  * ```
34
29
  */
35
- export declare function evaluateRuleLogic(client: Picked, condition: LogicRule, context?: LogicObject): Promise<import('../logic-engine').SyncLogicValue | (() => import('../logic-engine').LogicValue) | (() => Promise<import('../logic-engine').SyncLogicValue>)>;
30
+ export declare function evaluateRuleLogic(client: Picked, condition: LogicRule, context?: LogicObject): Promise<unknown>;
36
31
  //# sourceMappingURL=rules-logic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rules-logic.d.ts","sourceRoot":"","sources":["../../../src/utils/rules-logic.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAgB,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAGvC;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE/D;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,OAAO,CAAC,EAAE,WAAW,gKAmDtB"}
1
+ {"version":3,"file":"rules-logic.d.ts","sourceRoot":"","sources":["../../../src/utils/rules-logic.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAGvC;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE/D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,OAAO,CAAC,CAElB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picked/client",
3
- "version": "0.0.1-dev.1777938796953",
3
+ "version": "0.0.1-dev.1778120127377",
4
4
  "dependencies": {
5
5
  "@withease/factories": "^1.0.5"
6
6
  },
@@ -160,7 +160,7 @@
160
160
  "size-limit": [
161
161
  {
162
162
  "path": "dist/esm/index.js",
163
- "limit": "12.5 kB"
163
+ "limit": "13.5 kB"
164
164
  },
165
165
  {
166
166
  "path": "dist/esm/server/index.js",