@picked/client 0.0.1-dev.1774995194828 → 0.0.1-dev.1775010167310
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-DKdPkjZ7.js → api-CdDIclD7.js} +1 -1
- package/dist/{api-DzKTxrba.cjs → api-mBsio6Uq.cjs} +1 -1
- package/dist/cjs/form/index.js +1 -1
- 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/responses-indexeddb/index.js +1 -1
- package/dist/cjs/plugins/web-components/index.js +1 -1
- package/dist/cjs/server/index.js +1 -1
- package/dist/esm/form/index.js +1 -1
- package/dist/esm/index.js +147 -131
- package/dist/esm/plugins/create-experience/index.js +11 -11
- package/dist/esm/plugins/dynamic-experiences/index.js +1 -1
- package/dist/esm/plugins/responses-indexeddb/index.js +1 -1
- package/dist/esm/plugins/web-components/index.js +1 -1
- package/dist/esm/server/index.js +1 -1
- package/dist/{experience-instance-C35Ocv25.js → experience-instance-BPwTGdYw.js} +25 -25
- package/dist/experience-instance-XXqzrfa-.cjs +1 -0
- package/dist/types/entities/condition/condition.d.ts +5 -1
- package/dist/types/entities/condition/condition.d.ts.map +1 -1
- package/dist/types/entities/experience/experience.d.ts +60 -6
- package/dist/types/entities/experience/experience.d.ts.map +1 -1
- package/dist/types/entities/experience-instance/experience-instance.d.ts +1 -2
- package/dist/types/entities/experience-instance/experience-instance.d.ts.map +1 -1
- package/dist/types/entities/field/field.d.ts +3 -3
- package/dist/types/entities/field/field.d.ts.map +1 -1
- package/dist/types/entities/response/response.d.ts.map +1 -1
- package/dist/types/entities/step/step.d.ts +5 -2
- package/dist/types/entities/step/step.d.ts.map +1 -1
- package/dist/types/form/create-field-evaluator.d.ts +1 -1
- package/dist/types/form/create-field-evaluator.d.ts.map +1 -1
- package/dist/types/picked.d.ts +90 -11
- package/dist/types/picked.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/create-experience.d.ts +2 -2
- package/dist/types/plugins/create-experience/create-experience.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/serialization.d.ts +0 -1
- package/dist/types/plugins/create-experience/serialization.d.ts.map +1 -1
- package/dist/types/utils/indexed-db.d.ts +0 -52
- package/dist/types/utils/indexed-db.d.ts.map +1 -1
- package/dist/types/utils/node-tree/get-next-node-from-condition.d.ts +13 -0
- package/dist/types/utils/node-tree/get-next-node-from-condition.d.ts.map +1 -1
- package/dist/types/utils/node-tree/next-reachable-step-nodes.d.ts +6 -10
- package/dist/types/utils/node-tree/next-reachable-step-nodes.d.ts.map +1 -1
- package/dist/types/utils/nodes.d.ts +0 -50
- package/dist/types/utils/nodes.d.ts.map +1 -1
- package/dist/types/utils/state-snaphot.d.ts +1 -1
- package/dist/types/utils/state-snaphot.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/experience-instance-WjxPNSjH.cjs +0 -1
|
@@ -33,7 +33,7 @@ var t = {
|
|
|
33
33
|
let t = s({
|
|
34
34
|
sourceNode: this,
|
|
35
35
|
destinationNode: e.node,
|
|
36
|
-
|
|
36
|
+
sourceHandle: null
|
|
37
37
|
}, r);
|
|
38
38
|
r.edges.push(t);
|
|
39
39
|
},
|
|
@@ -42,7 +42,7 @@ var t = {
|
|
|
42
42
|
let t = s({
|
|
43
43
|
sourceNode: this,
|
|
44
44
|
destinationNode: e.node,
|
|
45
|
-
|
|
45
|
+
sourceHandle: "true"
|
|
46
46
|
}, r);
|
|
47
47
|
r.edges.push(t);
|
|
48
48
|
},
|
|
@@ -51,7 +51,7 @@ var t = {
|
|
|
51
51
|
let t = s({
|
|
52
52
|
sourceNode: this,
|
|
53
53
|
destinationNode: e.node,
|
|
54
|
-
|
|
54
|
+
sourceHandle: "false"
|
|
55
55
|
}, r);
|
|
56
56
|
r.edges.push(t);
|
|
57
57
|
},
|
|
@@ -175,13 +175,13 @@ var t = {
|
|
|
175
175
|
}, s = (n, r) => ({
|
|
176
176
|
id: e("edge"),
|
|
177
177
|
sourceNode: n.sourceNode,
|
|
178
|
-
|
|
178
|
+
sourceHandle: n.sourceHandle,
|
|
179
179
|
destinationNode: n.destinationNode,
|
|
180
180
|
experience: r,
|
|
181
181
|
serialize() {
|
|
182
182
|
return t.serialize({
|
|
183
183
|
id: this.id,
|
|
184
|
-
|
|
184
|
+
sourceHandle: this.sourceHandle ?? void 0,
|
|
185
185
|
sourceNodeId: this.sourceNode.id,
|
|
186
186
|
destinationNodeId: this.destinationNode.id
|
|
187
187
|
});
|
|
@@ -200,7 +200,7 @@ var t = {
|
|
|
200
200
|
let t = s({
|
|
201
201
|
sourceNode: this.node,
|
|
202
202
|
destinationNode: e.node,
|
|
203
|
-
|
|
203
|
+
sourceHandle: "true"
|
|
204
204
|
}, this.experience);
|
|
205
205
|
this.experience.edges.push(t);
|
|
206
206
|
},
|
|
@@ -209,7 +209,7 @@ var t = {
|
|
|
209
209
|
let t = s({
|
|
210
210
|
sourceNode: this.node,
|
|
211
211
|
destinationNode: e.node,
|
|
212
|
-
|
|
212
|
+
sourceHandle: "false"
|
|
213
213
|
}, this.experience);
|
|
214
214
|
this.experience.edges.push(t);
|
|
215
215
|
},
|
|
@@ -412,7 +412,7 @@ var t = {
|
|
|
412
412
|
let e = s({
|
|
413
413
|
sourceNode: n,
|
|
414
414
|
destinationNode: r.node,
|
|
415
|
-
|
|
415
|
+
sourceHandle: null
|
|
416
416
|
}, this);
|
|
417
417
|
this.edges.push(e);
|
|
418
418
|
}
|
|
@@ -428,7 +428,7 @@ var t = {
|
|
|
428
428
|
let e = s({
|
|
429
429
|
sourceNode: n,
|
|
430
430
|
destinationNode: i,
|
|
431
|
-
|
|
431
|
+
sourceHandle: null
|
|
432
432
|
}, this);
|
|
433
433
|
this.edges.push(e);
|
|
434
434
|
}
|
|
@@ -443,7 +443,7 @@ var t = {
|
|
|
443
443
|
let e = s({
|
|
444
444
|
sourceNode: n,
|
|
445
445
|
destinationNode: r.node,
|
|
446
|
-
|
|
446
|
+
sourceHandle: null
|
|
447
447
|
}, this);
|
|
448
448
|
this.edges.push(e);
|
|
449
449
|
}
|
|
@@ -463,7 +463,7 @@ var t = {
|
|
|
463
463
|
let e = s({
|
|
464
464
|
sourceNode: n,
|
|
465
465
|
destinationNode: r,
|
|
466
|
-
|
|
466
|
+
sourceHandle: null
|
|
467
467
|
}, this);
|
|
468
468
|
this.edges.push(e);
|
|
469
469
|
}
|
|
@@ -7,7 +7,7 @@ async function r(e) {
|
|
|
7
7
|
let o = indexedDB.open(n, r);
|
|
8
8
|
o.onupgradeneeded = () => {
|
|
9
9
|
let e = o.result;
|
|
10
|
-
e.objectStoreNames.contains(t)
|
|
10
|
+
e.objectStoreNames.contains(t) || e.createObjectStore(t, i ? { keyPath: i } : void 0);
|
|
11
11
|
}, o.onsuccess = () => e(o.result), o.onerror = () => a(Error(o.error?.message));
|
|
12
12
|
});
|
|
13
13
|
}
|
|
@@ -9,7 +9,7 @@ var n = () => ({
|
|
|
9
9
|
class i extends HTMLElement {
|
|
10
10
|
connectedCallback() {
|
|
11
11
|
let e = this.getAttribute("experience-id");
|
|
12
|
-
n.isReady && e && n.experiences.launch({
|
|
12
|
+
n.isReady && e && n.experiences.launch({ id: e });
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
window.customElements.define(r, i);
|
package/dist/esm/server/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../experience-instance-
|
|
1
|
+
import { t as e } from "../../experience-instance-BPwTGdYw.js";
|
|
2
2
|
import { attach as t, createEffect as n, createEvent as r, createStore as i, sample as a } from "effector";
|
|
3
3
|
//#region src/server/index.ts
|
|
4
4
|
function o() {
|
|
@@ -140,7 +140,7 @@ var F = (e, t, n, r, i = /* @__PURE__ */ new Set()) => i.has(n.id) ? [] : (i.add
|
|
|
140
140
|
//#endregion
|
|
141
141
|
//#region src/utils/node-tree/get-next-node-from-condition.ts
|
|
142
142
|
async function V(e, t, n, r) {
|
|
143
|
-
let i = e ? "true" : "false", a = r.find((e) => e.
|
|
143
|
+
let i = e ? "true" : "false", a = r.find((e) => e.sourceHandle === i && e.sourceNodeId === t);
|
|
144
144
|
return n.find((e) => e.id === a?.destinationNodeId);
|
|
145
145
|
}
|
|
146
146
|
//#endregion
|
|
@@ -197,23 +197,23 @@ var H = c("experience-instance"), U = p(({ client: n, experience: r, target: i,
|
|
|
197
197
|
let a = n.actions.getByName(i).getState();
|
|
198
198
|
if (!a) {
|
|
199
199
|
`${i}`;
|
|
200
|
-
let n = t.find((e) => e.sourceNodeId === r.id && e.
|
|
200
|
+
let n = t.find((e) => e.sourceNodeId === r.id && e.sourceHandle === "false");
|
|
201
201
|
return n ? e.find((e) => e.id === n.destinationNodeId) : null;
|
|
202
202
|
}
|
|
203
203
|
if (typeof a.action != "function") {
|
|
204
204
|
`${i}`;
|
|
205
|
-
let n = t.find((e) => e.sourceNodeId === r.id && e.
|
|
205
|
+
let n = t.find((e) => e.sourceNodeId === r.id && e.sourceHandle === "false");
|
|
206
206
|
return n ? e.find((e) => e.id === n.destinationNodeId) : null;
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
209
|
`${i}`, await a.action(i);
|
|
210
|
-
let n = t.find((e) => e.sourceNodeId === r.id && e.
|
|
210
|
+
let n = t.find((e) => e.sourceNodeId === r.id && e.sourceHandle === "true");
|
|
211
211
|
if (!n) return `${r.id}`, null;
|
|
212
212
|
let o = e.find((e) => e.id === n.destinationNodeId);
|
|
213
213
|
return `${i}${o?.id}`, o || null;
|
|
214
214
|
} catch {
|
|
215
215
|
`${i}`;
|
|
216
|
-
let n = t.find((e) => e.sourceNodeId === r.id && e.
|
|
216
|
+
let n = t.find((e) => e.sourceNodeId === r.id && e.sourceHandle === "false");
|
|
217
217
|
if (!n) return `${r.id}`, null;
|
|
218
218
|
let a = e.find((e) => e.id === n.destinationNodeId);
|
|
219
219
|
return `${i}${a?.id}`, a || null;
|
|
@@ -401,20 +401,20 @@ var G = p(({ client: e }) => {
|
|
|
401
401
|
[n]: r ?? []
|
|
402
402
|
};
|
|
403
403
|
}
|
|
404
|
-
}),
|
|
404
|
+
}), o = l(({ experience: t, target: n, options: r }) => W({
|
|
405
405
|
client: e,
|
|
406
406
|
experience: t,
|
|
407
407
|
target: n,
|
|
408
408
|
options: r
|
|
409
|
-
})),
|
|
409
|
+
})), c = l((e) => {
|
|
410
410
|
a.register(e);
|
|
411
|
-
}),
|
|
411
|
+
}), f = l((e) => {
|
|
412
412
|
e.target && y(e.target, () => {
|
|
413
413
|
i(e);
|
|
414
414
|
});
|
|
415
|
-
}),
|
|
415
|
+
}), p = l((e) => {
|
|
416
416
|
a.unregister(e);
|
|
417
|
-
}),
|
|
417
|
+
}), m = l((t) => {
|
|
418
418
|
let n = t.componentStore.getState();
|
|
419
419
|
if (!n) return;
|
|
420
420
|
let r = n.frameworkStore.getState();
|
|
@@ -434,46 +434,46 @@ var G = p(({ client: e }) => {
|
|
|
434
434
|
});
|
|
435
435
|
d({
|
|
436
436
|
clock: n,
|
|
437
|
-
target:
|
|
437
|
+
target: o
|
|
438
438
|
}), d({
|
|
439
439
|
clock: i,
|
|
440
|
-
target:
|
|
440
|
+
target: p
|
|
441
441
|
}), d({
|
|
442
|
-
clock:
|
|
442
|
+
clock: o.doneData,
|
|
443
443
|
target: [
|
|
444
|
+
c,
|
|
444
445
|
f,
|
|
445
|
-
p,
|
|
446
446
|
r
|
|
447
447
|
]
|
|
448
448
|
}), d({
|
|
449
|
-
clock:
|
|
449
|
+
clock: o.doneData,
|
|
450
450
|
target: e.eventBus.prepend((e) => ({
|
|
451
451
|
type: "experience_initialize",
|
|
452
452
|
experience: e
|
|
453
453
|
}))
|
|
454
454
|
}), d({
|
|
455
455
|
clock: r,
|
|
456
|
-
target:
|
|
456
|
+
target: m
|
|
457
457
|
});
|
|
458
|
-
function
|
|
458
|
+
function h(e, t, r) {
|
|
459
459
|
n({
|
|
460
460
|
experience: e,
|
|
461
461
|
target: t,
|
|
462
462
|
options: r
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
let
|
|
466
|
-
function
|
|
467
|
-
return
|
|
465
|
+
let g = t.map((e) => Object.values(e).flat());
|
|
466
|
+
function v(e) {
|
|
467
|
+
return g.map((t) => t.filter((t) => t.experienceKey === e), { skipVoid: !1 });
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function b(e) {
|
|
470
470
|
return t.map((t) => t[e] || [], { skipVoid: !1 });
|
|
471
471
|
}
|
|
472
472
|
return {
|
|
473
|
-
spawn:
|
|
474
|
-
|
|
475
|
-
getByExperienceId:
|
|
476
|
-
listStore:
|
|
473
|
+
spawn: h,
|
|
474
|
+
getByExperienceKey: v,
|
|
475
|
+
getByExperienceId: b,
|
|
476
|
+
listStore: g
|
|
477
477
|
};
|
|
478
478
|
});
|
|
479
479
|
function K(e) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./rules-logic-DDxCiq4P.cjs`);require(`./logger-fbvQC40v.cjs`);const t=require(`./supports-Dsjg-82e.cjs`);let n=require(`effector`),r=require(`@withease/factories`);function i(e){return!t.d()||!t.r()?[]:Array.from(window.document.querySelectorAll(e)).filter(e=>e instanceof HTMLElement)}var a=`open`;function o(e){if(!t.l())throw Error(`Shadow DOM is not supported in this environment`);return e.attachShadow({mode:a})}function s(){return new Promise((e,n)=>{if(!t.r()){n();return}document.readyState===`loading`?document.addEventListener(`readystatechange`,()=>e(),{once:!0}):e()})}function c(e,t){let n=new MutationObserver(r=>{document.contains(e)||(n.disconnect(),t())});n.observe(document.body,{childList:!0,subtree:!0})}var l=`picked-root`,u=`picked-target`,d=`picked-root`;function f(e,t){return[...e,{selector:`${d}[experience-id="${t}"]`,placement:`replace`}].flatMap(e=>{let n=i(e.selector).filter(e=>!h(e,t)&&!g(e,t));return{...e,elements:n}})}function p(e,t){return e.flatMap(e=>e.elements.map(n=>v(n,e.placement,t)))}function m(e,t){e.classList.add(u),e.classList.add(`${u}-${t}`)}function h(e,t){return t?e.classList.contains(`${u}-${t}`):e.classList.contains(`${u}`)}function g(e,t){return t?e.classList.contains(`${l}-${t}`):e.classList.contains(l)}function _(e){let t=document.createElement(`div`);return t.style.display=`block`,t.classList.add(l),t.classList.add(`${l}-${e}`),t}function v(e,t,n){let r,i=_(n);if(e instanceof Document)r=e.body.appendChild(i);else{switch(t){case`replace`:e.replaceWith(i);break;case`before`:e.before(i);break;case`after`:e.after(i);break;case`prepend`:e.prepend(i);break;case`append`:e.append(i);break}r=i}return r}function y(e){return e.type===`condition`}function b(e){return e.type===`step`}function x(e){return e.type===`experience`}function S(e){return e.type===`origin`}function C(e){return e.type===`action`}var w=(e,t,n,r,i=new Set)=>i.has(n.id)?[]:(i.add(n.id),b(n)&&!r?[n]:t.filter(e=>e.sourceNodeId===n.id).flatMap(n=>{let r=e.find(e=>e.id===n.destinationNodeId);return r?w(e,t,r,!1,i):[]})),T=(e,t,n)=>w(e,t,n,!0,new Set),E=(e,t,n,r,i=new Set)=>{if(i.has(n.id))return[-1,-1];i.add(n.id);let a=t.filter(e=>e.sourceNodeId===n.id);if(a.length===0)return[0,0];let o=1/0,s=-1/0;for(let n of a){let r=e.find(e=>e.id===n.destinationNodeId);if(!r)continue;let[a,c]=E(e,t,r,!1,new Set(i));a!==-1&&(o=Math.min(o,a+1),s=Math.max(s,c+1))}return o===1/0?[-1,-1]:[o,s]},D=(e,t,n)=>E(e,t,n,!0,new Set),O=(e,t,n,r=new Set)=>{if(r.has(n.id))return[-1,-1];if(r.add(n.id),n.type===`origin`)return[0,0];let i=t.filter(e=>e.destinationNodeId===n.id);if(i.length===0)return[-1,-1];let a=1/0,o=-1/0;for(let n of i){let i=e.find(e=>e.id===n.sourceNodeId);if(!i)continue;let[s,c]=O(e,t,i,new Set(r));s!==-1&&(a=Math.min(a,s+1),o=Math.max(o,c+1))}return a===1/0?[-1,-1]:[a,o]},k=(e,t,n)=>O(e,t,n,new Set),A=e=>e.find(e=>e.type===`origin`)||null,j=(e,t,n)=>{if(!e)return A(t);let r=n.find(t=>t.sourceNodeId===e.id);return r&&t.find(e=>e.id===r.destinationNodeId)||null};async function M(e,t,n,r){let i=e?`true`:`false`,a=r.find(e=>e.sourceHandle===i&&e.sourceNodeId===t);return n.find(e=>e.id===a?.destinationNodeId)}var N=(0,n.createDomain)(`experience-instance`),P=(0,r.createFactory)(({client:t,experience:r,target:i,options:a})=>{let o=(0,n.createEvent)(),s=(0,n.createEvent)(),c=(0,n.createEvent)(),l=(0,n.createEvent)(),u=(0,n.createEvent)(),d=(0,n.createEvent)(),f=r.componentStore,p=N.store(`transitioning`),m=t.history.entriesStore.map(e=>e.filter(e=>e.experienceId===r.id)),h=m.map(e=>e.filter(e=>b(e.node))),g=m.map(e=>e.at(-1)?.node||null),_=(0,n.combine)(t.steps.listStore,g,(e,t)=>e.find(e=>t&&b(t)&&e.id===t.stepId)||null),v=(0,n.combine)(t.steps.listStore,h,(e,t)=>{let n=t.at(-2);if(!n||!b(n.node))return null;let r=n.node;return e.find(e=>e.id===r.stepId)||null}),w=(0,n.combine)(r.treeStore,g,({nodes:e,edges:t},n)=>n?T(e,t,n):[]),E=(0,n.combine)(r.treeStore,g,({nodes:e,edges:t},n)=>n?k(e,t,n):[-1,-1]),O=(0,n.combine)(r.treeStore,g,({nodes:e,edges:t},n)=>n?D(e,t,n):[-1,-1]),P=N.store(!1),F=(0,n.createApi)(P,{open:()=>!0,close:()=>!1,toggle:e=>!e,set:(e,t)=>t}),I=(0,n.createEffect)(async()=>{t.history.back({experienceId:r.id})}),L=(0,n.attach)({source:r.treeStore,effect:async(e,n)=>{let i=e.nodes.find(e=>b(e)&&e.stepId===n);i&&t.history.push({experienceId:r.id,node:i})}}),R=(0,n.attach)({source:g,effect:e=>{}}),z=(0,n.attach)({source:r.treeStore,effect:async({nodes:e})=>A(e)}),B=(0,n.attach)({source:r.treeStore,effect:async({nodes:e,edges:t},n)=>{if(S(n))return j(n,e,t)}}),V=(0,n.attach)({source:r.treeStore,effect:async({nodes:n,edges:r,conditions:i},a)=>{if(!y(a))return;let o=i.find(e=>e.id===a.conditionId)?.logic;return o?M(!!await e.t(t,o),a.id,n,r):void 0}}),H=(0,n.attach)({source:r.treeStore,effect:async({nodes:e,edges:n},r)=>{if(!C(r))return;let i=r.action;if(!i){`${r.id}`;return}let a=t.actions.getByName(i).getState();if(!a){`${i}`;let t=n.find(e=>e.sourceNodeId===r.id&&e.sourceHandle===`false`);return t?e.find(e=>e.id===t.destinationNodeId):null}if(typeof a.action!=`function`){`${i}`;let t=n.find(e=>e.sourceNodeId===r.id&&e.sourceHandle===`false`);return t?e.find(e=>e.id===t.destinationNodeId):null}try{`${i}`,await a.action(i);let t=n.find(e=>e.sourceNodeId===r.id&&e.sourceHandle===`true`);if(!t)return`${r.id}`,null;let o=e.find(e=>e.id===t.destinationNodeId);return`${i}${o?.id}`,o||null}catch{`${i}`;let t=n.find(e=>e.sourceNodeId===r.id&&e.sourceHandle===`false`);if(!t)return`${r.id}`,null;let a=e.find(e=>e.id===t.destinationNodeId);return`${i}${a?.id}`,a||null}}}),U=(0,n.createEffect)(e=>{x(e)&&t.experiences.launch({key:e.experienceKey})}),W=(0,n.attach)({source:[g,r.treeStore],effect:async([e,{nodes:t,edges:n}])=>j(e,t,n)}),G=(0,n.attach)({source:[g,r.treeStore],effect:async([e,{nodes:t,edges:n}])=>j(e,t,n)}),K=(0,n.createEffect)(e=>{t.history.push({experienceId:r.id,node:e})}),q=(0,n.attach)({source:r.configStore,effect:async({initializeOpenLogic:n})=>a?.initialiseOpen===void 0?e.n(n)?!!await e.t(t,n):n??!1:a.initialiseOpen}),J=Object.freeze({id:Math.random().toString(36).substring(7),experienceKey:r.key,experienceId:r.id,configStore:r.configStore,target:i,componentStore:f,stateStore:p,isOpenStore:P,open:F.open,close:F.close,toggleOpen:F.toggle,setOpen:F.set,treeStore:r.treeStore,currentNodeStore:g,currentStepStore:_,previousStepStore:v,nextReachableStepNodesStore:w,stepsToOriginStore:E,stepsToLeafStore:O,goToNextStep:s,goToPreviousStep:c,goToStepById:l,stepsHistoryStore:h}),Y=(0,n.createEvent)(),X=(0,n.createEvent)();return(0,n.sample)({source:g,target:Y}),(0,n.sample)({clock:Y,filter:e=>e===null,target:z}),(0,n.sample)({clock:Y,filter:e=>e!==null,target:X}),(0,n.split)({source:X,match:e=>y(e)?`condition`:b(e)?`step`:x(e)?`launchExperience`:S(e)?`origin`:C(e)?`action`:`other`,cases:{origin:B,condition:V,step:R,launchExperience:U,action:H,__:(0,n.createEvent)()}}),(0,n.sample)({clock:[V.doneData,B.doneData,z.doneData,G.doneData,W.doneData,H.doneData],filter:Boolean,target:K}),(0,n.sample)({clock:s,target:G}),(0,n.sample)({clock:s,source:_,filter:Boolean,target:t.eventBus.prepend(e=>({type:`step_submit`,step:e,experience:J}))}),(0,n.sample)({clock:G.done,source:_,filter:Boolean,target:t.eventBus.prepend(e=>({type:`step_submit_success`,step:e,experience:J}))}),(0,n.sample)({clock:G.fail,source:_,filter:Boolean,target:t.eventBus.prepend(e=>({type:`step_submit_error`,step:e,experience:J}))}),(0,n.sample)({clock:c,target:I}),(0,n.sample)({clock:l,target:L}),(0,n.sample)({source:(0,n.combine)([V.pending,B.pending,z.pending,G.pending]),fn:e=>e.some(Boolean)?`transitioning`:`ready`,target:p}),(0,n.sample)({clock:R.doneData,source:_,filter:Boolean,target:t.eventBus.prepend(e=>({type:`step_enter`,step:e,experience:J}))}),(0,n.sample)({clock:d,target:q}),(0,n.sample)({source:q.doneData,fn:Boolean,target:P}),(0,n.sample)({source:g,clock:o,filter:e=>e?S(e):!0,target:W}),(0,n.sample)({source:P,filter:Boolean,target:o}),(0,n.sample)({source:P,filter:Boolean,target:t.eventBus.prepend(()=>({type:`experience_open`,experience:J}))}),(0,n.sample)({source:P,filter:e=>!e,target:t.eventBus.prepend(()=>({type:`experience_close`,experience:J}))}),(0,n.sample)({clock:u,target:[d]}),u(),J});function F(e){return(0,r.invoke)(P,e)}var I=(0,r.createFactory)(({client:e})=>{let t=N.store({}),r=(0,n.createEvent)(),i=(0,n.createEvent)(),a=(0,n.createEvent)(),s=(0,n.createApi)(t,{register(e,t){let n=[...e[t.experienceId]??[]];return n.push(t),{...e,[t.experienceId]:n}},unregister(e,t){let n=t.experienceId,r=e[n]?.filter(e=>e!==t);return{...e,[n]:r??[]}}}),l=(0,n.createEffect)(({experience:t,target:n,options:r})=>F({client:e,experience:t,target:n,options:r})),u=(0,n.createEffect)(e=>{s.register(e)}),d=(0,n.createEffect)(e=>{e.target&&c(e.target,()=>{a(e)})}),f=(0,n.createEffect)(e=>{s.unregister(e)}),p=(0,n.createEffect)(t=>{let n=t.componentStore.getState();if(!n)return;let r=n.frameworkStore.getState();if(!r){`${n.name}`;return}let i=t.target;if(!i){`${t.experienceId}`;return}let a=o(i);try{r.render(a,n.component,e,t)}catch{}});(0,n.sample)({clock:r,target:l}),(0,n.sample)({clock:a,target:f}),(0,n.sample)({clock:l.doneData,target:[u,d,i]}),(0,n.sample)({clock:l.doneData,target:e.eventBus.prepend(e=>({type:`experience_initialize`,experience:e}))}),(0,n.sample)({clock:i,target:p});function m(e,t,n){r({experience:e,target:t,options:n})}let h=t.map(e=>Object.values(e).flat());function g(e){return h.map(t=>t.filter(t=>t.experienceKey===e),{skipVoid:!1})}function _(e){return t.map(t=>t[e]||[],{skipVoid:!1})}return{spawn:m,getByExperienceKey:g,getByExperienceId:_,listStore:h}});function L(e){return(0,r.invoke)(I,e)}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return F}});
|
|
@@ -8,8 +8,12 @@ export interface Condition {
|
|
|
8
8
|
}
|
|
9
9
|
declare const createConditionIndexFactory: () => {
|
|
10
10
|
register: (condition: Condition) => void;
|
|
11
|
-
|
|
11
|
+
getById: (id: Condition["id"]) => import('effector').Store<Condition | null>;
|
|
12
|
+
getByKey: (key: Condition["key"]) => import('effector').Store<Condition | null>;
|
|
12
13
|
listStore: import('effector').Store<Condition[]>;
|
|
14
|
+
indexStore: import('effector').StoreWritable<{
|
|
15
|
+
[id: string]: Condition;
|
|
16
|
+
}>;
|
|
13
17
|
};
|
|
14
18
|
export declare function createConditionIndex(): ReturnType<typeof createConditionIndexFactory>;
|
|
15
19
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../../src/entities/condition/condition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../../src/entities/condition/condition.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEnD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAIrE,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,SAAS,CAAA;CACjB;AAGD,QAAA,MAAM,2BAA2B;0BAcF,SAAS,KAAG,IAAI;kBAcxB,SAAS,CAAC,IAAI,CAAC;oBAUb,SAAS,CAAC,KAAK,CAAC;;;;;CAgBvC,CAAA;AAEF,wBAAgB,oBAAoB,IAAI,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAErF"}
|
|
@@ -61,10 +61,64 @@ declare const createExperienceIndexFactory: ({ client }: {
|
|
|
61
61
|
}) => {
|
|
62
62
|
/** Registers an experience in the index. If an experience with the same ID already exists, it is merged. */
|
|
63
63
|
register: (experience: Experience) => void;
|
|
64
|
+
/** Returns a derived store for an experience by its ID. The store value is `undefined` when no match exists. */
|
|
65
|
+
get: (id: Experience["id"]) => Store<{
|
|
66
|
+
id: string;
|
|
67
|
+
key: string;
|
|
68
|
+
name: string;
|
|
69
|
+
configStore: Store<{
|
|
70
|
+
name: string;
|
|
71
|
+
decisionLogic: LogicValue | LogicRule;
|
|
72
|
+
targetSelectors: ExperienceTarget[];
|
|
73
|
+
initializeOpenLogic: LogicValue | LogicRule;
|
|
74
|
+
}>;
|
|
75
|
+
treeStore: Store<{
|
|
76
|
+
steps: ExperienceStep[];
|
|
77
|
+
nodes: ExperienceNode[];
|
|
78
|
+
edges: ExperienceEdge[];
|
|
79
|
+
conditions: Condition[];
|
|
80
|
+
}>;
|
|
81
|
+
componentStore: Store<{
|
|
82
|
+
name: string;
|
|
83
|
+
component: AdaptedComponent<string, unknown>;
|
|
84
|
+
frameworkStore: Store<import('../..').Framework | undefined>;
|
|
85
|
+
} | undefined>;
|
|
86
|
+
actions: ExperienceAction[];
|
|
87
|
+
merge: import('effector').EventCallable<{
|
|
88
|
+
experience: Partial<Experience>;
|
|
89
|
+
strategy: "override";
|
|
90
|
+
}>;
|
|
91
|
+
} | undefined>;
|
|
92
|
+
/** @deprecated Use `experiences.get(id)` instead. */
|
|
93
|
+
getById: (id: Experience["id"]) => Store<{
|
|
94
|
+
id: string;
|
|
95
|
+
key: string;
|
|
96
|
+
name: string;
|
|
97
|
+
configStore: Store<{
|
|
98
|
+
name: string;
|
|
99
|
+
decisionLogic: LogicValue | LogicRule;
|
|
100
|
+
targetSelectors: ExperienceTarget[];
|
|
101
|
+
initializeOpenLogic: LogicValue | LogicRule;
|
|
102
|
+
}>;
|
|
103
|
+
treeStore: Store<{
|
|
104
|
+
steps: ExperienceStep[];
|
|
105
|
+
nodes: ExperienceNode[];
|
|
106
|
+
edges: ExperienceEdge[];
|
|
107
|
+
conditions: Condition[];
|
|
108
|
+
}>;
|
|
109
|
+
componentStore: Store<{
|
|
110
|
+
name: string;
|
|
111
|
+
component: AdaptedComponent<string, unknown>;
|
|
112
|
+
frameworkStore: Store<import('../..').Framework | undefined>;
|
|
113
|
+
} | undefined>;
|
|
114
|
+
actions: ExperienceAction[];
|
|
115
|
+
merge: import('effector').EventCallable<{
|
|
116
|
+
experience: Partial<Experience>;
|
|
117
|
+
strategy: "override";
|
|
118
|
+
}>;
|
|
119
|
+
} | undefined>;
|
|
64
120
|
/** Returns a derived store for an experience by its key. The store value is `undefined` when no match exists. */
|
|
65
|
-
|
|
66
|
-
/** @deprecated Use `experiences.get(key)` instead. */
|
|
67
|
-
getById: (key: Experience["key"]) => Store<ExperienceStore | undefined>;
|
|
121
|
+
getByKey: (key: Experience["key"]) => Store<ExperienceStore | undefined>;
|
|
68
122
|
/** Effector effect that launches an experience by its key. */
|
|
69
123
|
launch: import('effector').Effect<{
|
|
70
124
|
key: string;
|
|
@@ -114,7 +168,7 @@ declare const createExperienceIndexFactory: ({ client }: {
|
|
|
114
168
|
* Creates an Effector-based index for registering and retrieving experiences.
|
|
115
169
|
*
|
|
116
170
|
* @param params - The client instance.
|
|
117
|
-
* @returns An experience index with register,
|
|
171
|
+
* @returns An experience index with register, getById, getByKey, launch, and open methods.
|
|
118
172
|
* @example
|
|
119
173
|
* ```typescript
|
|
120
174
|
* const index = createExperienceIndex({ client })
|
|
@@ -138,7 +192,7 @@ export interface StepNode extends BaseNode {
|
|
|
138
192
|
type: 'step';
|
|
139
193
|
stepId: string;
|
|
140
194
|
name?: string;
|
|
141
|
-
/** @deprecated Use `name` instead.
|
|
195
|
+
/** @deprecated Use `name` instead. */
|
|
142
196
|
label?: string;
|
|
143
197
|
}
|
|
144
198
|
export interface ConditionNode extends BaseNode {
|
|
@@ -157,7 +211,7 @@ export interface ExperienceEdge {
|
|
|
157
211
|
id: string;
|
|
158
212
|
sourceNodeId: string;
|
|
159
213
|
destinationNodeId: string;
|
|
160
|
-
|
|
214
|
+
sourceHandle?: string;
|
|
161
215
|
}
|
|
162
216
|
export interface ExperienceTarget {
|
|
163
217
|
selector: string;
|
|
@@ -1 +1 @@
|
|
|
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,UAAU,CAAA;AAE/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAG1C,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAI/D,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAC3E,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAIjE,QAAA,MAAM,uBAAuB,2BACF;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,UAAU,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;oBAIjB,OAAO,CAAC,UAAU,CAAC;kBAAY,UAAU;;
|
|
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,UAAU,CAAA;AAE/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,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"}
|
|
@@ -53,8 +53,7 @@ declare const createExperienceInstanceIndexFactory: ({ client }: {
|
|
|
53
53
|
client: Picked;
|
|
54
54
|
}) => {
|
|
55
55
|
spawn: (experience: ExperienceStore, target: HTMLElement, options?: LaunchExperienceOptions) => void;
|
|
56
|
-
|
|
57
|
-
/** @deprecated Use `experienceInstances.get(key)` instead. */
|
|
56
|
+
getByExperienceKey: (key: Experience["key"]) => Store<ExperienceInstance[]>;
|
|
58
57
|
getByExperienceId: (id: Experience["id"]) => Store<ExperienceInstance[]>;
|
|
59
58
|
listStore: Store<ExperienceInstance[]>;
|
|
60
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experience-instance.d.ts","sourceRoot":"","sources":["../../../../src/entities/experience-instance/experience-instance.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,OAAO,EAOL,KAAK,aAAa,EAGlB,KAAK,KAAK,EACX,MAAM,UAAU,CAAA;AAEjB,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAiB1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAItD,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,CAAA;IAChC,YAAY,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;IAC9B,WAAW,EAAE,eAAe,CAAC,aAAa,CAAC,CAAA;IAC3C,MAAM,EAAE,WAAW,GAAG,SAAS,CAAA;IAC/B,cAAc,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAA;IACjD,UAAU,EAAE,KAAK,CAAC,eAAe,GAAG,OAAO,CAAC,CAAA;IAC5C,WAAW,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ED;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACtC,CAAC,SAAS,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC,CAAC,CAAC,EAC/D,MAAM,EAAE,CAAC,GAAG,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAE/D;AAED,QAAA,MAAM,oCAAoC,eAA8B;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;wBA0J1E,eAAe,UACnB,WAAW,YACT,uBAAuB;
|
|
1
|
+
{"version":3,"file":"experience-instance.d.ts","sourceRoot":"","sources":["../../../../src/entities/experience-instance/experience-instance.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,OAAO,EAOL,KAAK,aAAa,EAGlB,KAAK,KAAK,EACX,MAAM,UAAU,CAAA;AAEjB,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAiB1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAItD,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,UAAU,CAAC,KAAK,CAAC,CAAA;IAChC,YAAY,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;IAC9B,WAAW,EAAE,eAAe,CAAC,aAAa,CAAC,CAAA;IAC3C,MAAM,EAAE,WAAW,GAAG,SAAS,CAAA;IAC/B,cAAc,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAA;IACjD,UAAU,EAAE,KAAK,CAAC,eAAe,GAAG,OAAO,CAAC,CAAA;IAC5C,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IAC3B,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,CAAA;IACzB,KAAK,EAAE,aAAa,CAAC,IA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M,EAAE,CAAC,GAAG,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAE/D;AAED,QAAA,MAAM,oCAAoC,eAA8B;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;wBA0J1E,eAAe,UACnB,WAAW,YACT,uBAAuB;8BAkBF,UAAU,CAAC,KAAK,CAAC;4BAgBnB,UAAU,CAAC,IAAI,CAAC;;CAU/C,CAAA;AAEF;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,CAAC,SAAS,UAAU,CAAC,OAAO,oCAAoC,CAAC,CAAC,CAAC,CAAC,EACpE,MAAM,EAAE,CAAC,GAAG,UAAU,CAAC,OAAO,oCAAoC,CAAC,CAEpE"}
|
|
@@ -84,15 +84,15 @@ export type Field = FieldTextSingular | FieldTextMultiple | FieldNumberSingular
|
|
|
84
84
|
declare const createFieldIndexFactory: () => {
|
|
85
85
|
register: (field: Field) => void;
|
|
86
86
|
update: (key: FieldBase["key"], updates: Partial<Field>) => void;
|
|
87
|
-
getById: (
|
|
88
|
-
|
|
87
|
+
getById: (id: FieldBase["id"]) => Store<Field | null>;
|
|
88
|
+
getByKey: (key: FieldBase["key"]) => Store<Field | null>;
|
|
89
89
|
listStore: Store<Field[]>;
|
|
90
90
|
getByName: (name: FieldBase["name"]) => Store<Field | null>;
|
|
91
91
|
};
|
|
92
92
|
/**
|
|
93
93
|
* Creates an Effector-based index for registering and retrieving fields.
|
|
94
94
|
*
|
|
95
|
-
* @returns {FieldsStore} A field index with register, update,
|
|
95
|
+
* @returns {FieldsStore} A field index with register, update, getById, getByKey, and list methods.
|
|
96
96
|
* @example
|
|
97
97
|
* ```typescript
|
|
98
98
|
* const fields = createFieldIndex()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/entities/field/field.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAA2B,KAAK,KAAK,EAAE,MAAM,UAAU,CAAA;AAE9D,OAAO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e,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,CAAC,IAAI,CAAC,KAAG,KAAK,CAAC,UAAU,CAAC;yBAc7B,KAAK,CAAC,KAAK,CAAC,KAAG,KAAK,CAAC,UAAU,CAAC;gCAezB,KAAK,CAAC,MAAM,CAAC,KAAG,KAAK,CAAC,UAAU,CAAC;CA0BpE,CAAA;AAEF;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC,CAAC,EAC5F,MAAM,EAAE,CAAC,GACR,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAE/C;AAED,mCAAmC;AACnC,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA"}
|
|
@@ -10,9 +10,12 @@ export interface ExperienceStep {
|
|
|
10
10
|
}
|
|
11
11
|
declare const createStepIndexFactory: () => {
|
|
12
12
|
register: (step: ExperienceStep) => void;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
getById: (id: ExperienceStep["id"]) => Store<ExperienceStep | null>;
|
|
14
|
+
getByKey: (key: ExperienceStep["key"]) => Store<ExperienceStep | null>;
|
|
15
15
|
listStore: Store<ExperienceStep[]>;
|
|
16
|
+
indexStore: import('effector').StoreWritable<{
|
|
17
|
+
[id: string]: ExperienceStep;
|
|
18
|
+
}>;
|
|
16
19
|
};
|
|
17
20
|
/**
|
|
18
21
|
* Creates an Effector-based index for registering and retrieving steps.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../../src/entities/step/step.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,OAA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CAE/F"}
|
|
@@ -14,7 +14,7 @@ import { Picked } from '../picked';
|
|
|
14
14
|
* so visibility conditions see live in-session values rather than only committed responses.
|
|
15
15
|
*
|
|
16
16
|
* @param client - The Picked client instance.
|
|
17
|
-
* @param fieldIds - Store of field
|
|
17
|
+
* @param fieldIds - Store of field IDs to evaluate.
|
|
18
18
|
* @param stagedValuesStore - Store of in-progress field values not yet committed.
|
|
19
19
|
* @example
|
|
20
20
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-field-evaluator.d.ts","sourceRoot":"","sources":["../../../src/form/create-field-evaluator.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,OAAO,EAA6C,KAAK,KAAK,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAA;AACpG,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAGvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,EACzB,iBAAiB,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,GAC3D;IAAE,WAAW,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"create-field-evaluator.d.ts","sourceRoot":"","sources":["../../../src/form/create-field-evaluator.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,OAAO,EAA6C,KAAK,KAAK,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAA;AACpG,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAGvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,EACzB,iBAAiB,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,GAC3D;IAAE,WAAW,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAwCjC"}
|