@picked/client 0.0.1-dev.1785287094311 → 0.0.1-dev.1785826066660
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/.tsbuildinfo +1 -0
- package/dist/api-Djuh2gfe.cjs +1 -0
- package/dist/api-d0qKmzPH.js +38 -0
- package/dist/cjs/form/index.js +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/plugins/dom-observer/index.js +1 -1
- package/dist/cjs/plugins/dynamic-experiences/index.js +1 -1
- package/dist/cjs/preview/index.js +1 -0
- package/dist/cjs/server/index.js +1 -1
- package/dist/docs/actions.mdx +38 -18
- package/dist/docs/api/authentication.md +75 -48
- package/dist/docs/api/authorization-and-scopes.md +63 -47
- package/dist/docs/api/error-handling.md +70 -54
- package/dist/docs/api/index.md +41 -22
- package/dist/docs/api/pagination.md +30 -20
- package/dist/docs/api-keys.mdx +11 -6
- package/dist/docs/chrome-extension.md +22 -5
- package/dist/docs/conditions.mdx +32 -19
- package/dist/docs/content/asset-library.mdx +65 -34
- package/dist/docs/content/content-entries.mdx +8 -2
- package/dist/docs/content/layouts.mdx +45 -29
- package/dist/docs/content/pages.mdx +29 -14
- package/dist/docs/content/sections.mdx +19 -8
- package/dist/docs/delivery-api/experience-content.md +10 -5
- package/dist/docs/delivery-api/index.md +19 -12
- package/dist/docs/delivery-api/preview-caching-crawling.md +27 -14
- package/dist/docs/delivery-api/project-config.md +6 -4
- package/dist/docs/experiences.mdx +26 -10
- package/dist/docs/features.mdx +93 -22
- package/dist/docs/fields.mdx +42 -27
- package/dist/docs/flow-builder/building-flows.md +38 -20
- package/dist/docs/flow-builder/condition-builder.md +32 -21
- package/dist/docs/flow-builder/keyboard-shortcuts.md +18 -18
- package/dist/docs/flow-builder/nodes.md +26 -13
- package/dist/docs/flow-builder/overview.mdx +28 -15
- package/dist/docs/gtm-template.md +35 -26
- package/dist/docs/guides/build-a-personalized-page.mdx +36 -18
- package/dist/docs/image-optimisation-service.md +33 -17
- package/dist/docs/index.md +28 -17
- package/dist/docs/mcp.md +47 -39
- package/dist/docs/pickedql/data-sources.md +65 -43
- package/dist/docs/pickedql/dimensions.md +27 -12
- package/dist/docs/pickedql/examples.md +38 -26
- package/dist/docs/pickedql/filtering.md +10 -6
- package/dist/docs/pickedql/index.md +32 -14
- package/dist/docs/pickedql/schema.md +85 -76
- package/dist/docs/pickedql/virtual-functions.md +62 -36
- package/dist/docs/projects.mdx +14 -7
- package/dist/docs/reports.mdx +5 -3
- package/dist/docs/sdk/actions.md +33 -17
- package/dist/docs/sdk/conditions.md +8 -5
- package/dist/docs/sdk/content-security-policy.md +5 -4
- package/dist/docs/sdk/experiences.md +29 -11
- package/dist/docs/sdk/feature-allocation.md +161 -0
- package/dist/docs/sdk/features.md +181 -73
- package/dist/docs/sdk/fields.md +66 -42
- package/dist/docs/sdk/index.md +25 -10
- package/dist/docs/sdk/plugins/create-experience.md +18 -15
- package/dist/docs/sdk/plugins/dynamic-experiences.md +43 -17
- package/dist/docs/sdk/predicates.md +53 -37
- package/dist/docs/sdk/ssr/index.md +25 -8
- package/dist/docs/sdk/ssr/rendering-and-hydration.md +37 -16
- package/dist/docs/sdk/ssr/serialize.md +38 -20
- package/dist/docs/sdk/ssr/slots-and-placements.md +28 -10
- package/dist/docs/sdk/steps.md +100 -55
- package/dist/docs/steps.mdx +20 -11
- package/dist/docs/team-management.md +17 -11
- package/dist/docs/vite-plugin.md +26 -19
- package/dist/docs/workspace-versioning.mdx +14 -8
- package/dist/docs/workspaces.mdx +55 -24
- package/dist/{dom-BwmTHeT7.js → dom-BqcToNL0.js} +1 -3
- package/dist/{dom-CDrHc_j9.cjs → dom-DlLH3FxV.cjs} +1 -1
- package/dist/esm/form/index.js +2 -4
- package/dist/esm/index.js +434 -334
- package/dist/esm/plugins/dom-observer/index.js +1 -1
- package/dist/esm/plugins/dynamic-experiences/index.js +2 -2
- package/dist/esm/preview/index.js +2 -0
- package/dist/esm/server/index.js +13 -11
- package/dist/{experience-instance-DOJShRk5.js → experience-instance-DGk11d8a.js} +3 -3
- package/dist/experience-instance-Dej3P1sE.cjs +1 -0
- package/dist/inert-script-report-B_bMPRzp.js +18 -0
- package/dist/inert-script-report-ijRHPtcY.cjs +1 -0
- package/dist/{plugin-C46DEiGE.js → plugin-BVAFWjpT.js} +61 -56
- package/dist/plugin-BcCn2llk.cjs +1 -0
- package/dist/preview-channel-CSr96XAo.js +98 -0
- package/dist/preview-channel-Cx0e6fye.cjs +1 -0
- package/dist/protocol-Bb_vpLKE.cjs +1 -0
- package/dist/protocol-C5KkkiZc.js +84 -0
- package/dist/types/client.d.ts +7 -6
- package/dist/types/entities/action/action.d.ts +5 -4
- package/dist/types/entities/action/action.d.ts.map +1 -1
- package/dist/types/entities/component/component.d.ts +6 -5
- package/dist/types/entities/component/component.d.ts.map +1 -1
- package/dist/types/entities/condition/condition.d.ts +5 -5
- package/dist/types/entities/content/content.d.ts +14 -3
- package/dist/types/entities/content/content.d.ts.map +1 -1
- package/dist/types/entities/content/reference.d.ts +101 -0
- package/dist/types/entities/content/reference.d.ts.map +1 -0
- package/dist/types/entities/experience/experience.d.ts +11 -10
- package/dist/types/entities/experience/experience.d.ts.map +1 -1
- package/dist/types/entities/experience-instance/experience-instance.d.ts +10 -9
- package/dist/types/entities/feature/feature.d.ts +3 -2
- package/dist/types/entities/feature/feature.d.ts.map +1 -1
- package/dist/types/entities/field/field.d.ts +7 -6
- package/dist/types/entities/framework/framework.d.ts +7 -6
- package/dist/types/entities/framework/framework.d.ts.map +1 -1
- package/dist/types/entities/history/history.d.ts +6 -6
- package/dist/types/entities/plugin/plugin.d.ts +3 -2
- package/dist/types/entities/plugin/plugin.d.ts.map +1 -1
- package/dist/types/entities/predicate/predicate.d.ts +4 -3
- package/dist/types/entities/predicate/predicate.d.ts.map +1 -1
- package/dist/types/entities/response/response-validation.d.ts +3 -2
- package/dist/types/entities/response/response.d.ts +12 -11
- package/dist/types/entities/session/session.d.ts +2 -1
- package/dist/types/entities/step/step.d.ts +6 -5
- package/dist/types/exports.d.ts +6 -1
- package/dist/types/exports.d.ts.map +1 -1
- package/dist/types/form/build-responses.d.ts +2 -1
- package/dist/types/form/create-field-evaluator.d.ts +4 -3
- package/dist/types/form/create-field-validation.d.ts +5 -4
- package/dist/types/form/create-form.d.ts +7 -6
- package/dist/types/form/create-submit-pipeline.d.ts +7 -6
- package/dist/types/form/get-step-fields.d.ts +3 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lifecycle/condition-selection.d.ts +14 -4
- package/dist/types/lifecycle/lifecycle.d.ts +4 -3
- package/dist/types/lifecycle/rules-logic.d.ts +4 -3
- package/dist/types/lifecycle/state-snapshot.d.ts +4 -3
- package/dist/types/picked.d.ts +102 -68
- package/dist/types/picked.d.ts.map +1 -1
- package/dist/types/ping.d.ts +1 -1
- package/dist/types/ping.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/create-experience.d.ts +9 -8
- package/dist/types/plugins/create-experience/create-experience.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/plugin.d.ts +3 -2
- package/dist/types/plugins/create-experience/plugin.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/serialization.d.ts.map +1 -1
- package/dist/types/plugins/dom-observer/plugin.d.ts +1 -1
- package/dist/types/plugins/dynamic-experiences/hash.d.ts +40 -5
- package/dist/types/plugins/dynamic-experiences/hash.d.ts.map +1 -1
- package/dist/types/plugins/dynamic-experiences/plugin.d.ts +3 -3
- package/dist/types/plugins/dynamic-experiences/plugin.d.ts.map +1 -1
- package/dist/types/plugins/dynamic-experiences/types.d.ts +24 -5
- package/dist/types/plugins/dynamic-experiences/types.d.ts.map +1 -1
- package/dist/types/plugins/experience-browser-storage/plugin.d.ts +1 -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 -1
- package/dist/types/plugins/history-browser-storage/plugin.d.ts.map +1 -1
- package/dist/types/plugins/responses-browser-storage/plugin.d.ts +1 -1
- package/dist/types/plugins/responses-browser-storage/plugin.d.ts.map +1 -1
- package/dist/types/plugins/responses-indexeddb/plugin.d.ts +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/plugins/web-components/plugin.d.ts +2 -1
- package/dist/types/plugins/window-object/plugin.d.ts +2 -2
- package/dist/types/preview/index.d.ts +18 -0
- package/dist/types/preview/index.d.ts.map +1 -0
- package/dist/types/preview-channel.d.ts +16 -0
- package/dist/types/preview-channel.d.ts.map +1 -0
- package/dist/types/preview-receiver/apply-ops.d.ts +32 -0
- package/dist/types/preview-receiver/apply-ops.d.ts.map +1 -0
- package/dist/types/preview-receiver/index.d.ts +32 -0
- package/dist/types/preview-receiver/index.d.ts.map +1 -0
- package/dist/types/preview-receiver/protocol.d.ts +69 -0
- package/dist/types/preview-receiver/protocol.d.ts.map +1 -0
- package/dist/types/server/index.d.ts +3 -3
- package/dist/types/server/serialize.d.ts +8 -3
- package/dist/types/server/serialize.d.ts.map +1 -1
- package/dist/types/utils/content-path.d.ts +37 -0
- package/dist/types/utils/content-path.d.ts.map +1 -0
- package/dist/types/utils/dom.d.ts +2 -1
- package/dist/types/utils/events.d.ts +6 -6
- package/dist/types/utils/events.d.ts.map +1 -1
- package/dist/types/utils/global-obj.d.ts +1 -1
- package/dist/types/utils/global-obj.d.ts.map +1 -1
- package/dist/types/utils/id.d.ts.map +1 -1
- package/dist/types/utils/inert-script-report.d.ts +40 -0
- package/dist/types/utils/inert-script-report.d.ts.map +1 -0
- package/dist/types/utils/logger.d.ts +2 -1
- package/dist/types/utils/logger.d.ts.map +1 -1
- package/dist/types/utils/node-tree/get-next-node-from-action.d.ts +2 -1
- package/dist/types/utils/node-tree/get-next-node-from-condition.d.ts +2 -1
- package/dist/types/utils/node-tree/get-next-node.d.ts +1 -1
- package/dist/types/utils/node-tree/get-next-node.d.ts.map +1 -1
- package/dist/types/utils/node-tree/get-origin-node.d.ts +1 -1
- package/dist/types/utils/node-tree/get-origin-node.d.ts.map +1 -1
- package/dist/types/utils/node-tree/min-max-steps-to-leaf.d.ts +1 -1
- 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 +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 +1 -1
- package/dist/types/utils/node-tree/next-reachable-step-nodes.d.ts.map +1 -1
- package/dist/types/utils/nodes.d.ts +1 -1
- package/dist/types/utils/picked-config.d.ts +2 -1
- package/dist/types/utils/preview-session.d.ts +12 -0
- package/dist/types/utils/preview-session.d.ts.map +1 -0
- package/dist/types/utils/rehydrate-scripts.d.ts +6 -0
- package/dist/types/utils/rehydrate-scripts.d.ts.map +1 -1
- package/dist/types/utils/rules-logic.d.ts +6 -2
- package/dist/types/utils/storage.d.ts +1 -1
- package/dist/types/utils/storage.d.ts.map +1 -1
- package/package.json +35 -24
- package/dist/api-BzcdC_7V.cjs +0 -1
- package/dist/api-o8w9kJwm.js +0 -40
- package/dist/experience-instance-DurC3pE-.cjs +0 -1
- package/dist/plugin-nrEJGTuE.cjs +0 -1
- package/dist/preview-bridge-CpX1BkSA.cjs +0 -1
- package/dist/preview-bridge-D76l-dPy.js +0 -33
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
/** @file Action entity — Effector stores and registry for keyed callable functions. */
|
|
2
|
+
import { type EventCallable, type Store } from 'effector';
|
|
3
|
+
import type { StateSnapshot } from '../../lifecycle/state-snapshot';
|
|
4
|
+
import type { Picked } from '../../picked';
|
|
5
|
+
import type { ExperienceInstance } from '../experience-instance/experience-instance';
|
|
5
6
|
/**
|
|
6
7
|
* Context supplied by the experience-flow runtime when an ActionNode triggers the action.
|
|
7
8
|
* `null` for every other invocation path (see {@link Action}).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../../src/entities/action/action.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,EAML,KAAK,aAAa,EAElB,KAAK,KAAK,EACX,MAAM,UAAU,CAAA;AAGjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AAEpF;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,sEAAsE;IACtE,UAAU,EAAE,kBAAkB,CAAA;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,MAAM,GAAG,CACnB,QAAQ,EAAE,aAAa,GAAG;IAAE,IAAI,EAAE,OAAO,EAAE,CAAA;CAAE,EAC7C,OAAO,EAAE,aAAa,GAAG,IAAI,KAE3B,OAAO,GACP,OAAO,CAAC,OAAO,CAAC,GAChB,MAAM,GACN,OAAO,CAAC,MAAM,CAAC,GACf,MAAM,EAAE,GACR,OAAO,CAAC,MAAM,EAAE,CAAC,GACjB,IAAI,GACJ,OAAO,CAAC,IAAI,CAAC,GACb,SAAS,CAAA;AAEb,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEtE,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;CACf;AAID,QAAA,MAAM,wBAAwB,eAA8B;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;aAqBvC,MAAM;gBAAU,MAAM;;oBA8BpC,MAAM;;mCA6BhB,MAAM,YACP;QAAE,UAAU,EAAE,kBAAkB,CAAA;KAAE,KAC3C,KAAK,CAAC,MAA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;CACf;AAID,QAAA,MAAM,wBAAwB,eAA8B;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;aAqBvC,MAAM;gBAAU,MAAM;;oBA8BpC,MAAM;;mCA6BhB,MAAM,YACP;QAAE,UAAU,EAAE,kBAAkB,CAAA;KAAE,KAC3C,KAAK,CAAC,MAAM,UAAU,CAAC,MAAM,CAAC,CAAC;CA4ClC,CAAA;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,EACxF,MAAM,EAAE,CAAC,GACR,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAE7C;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,QAAS,MAAM,UAAU,MAAM,WAAW,YAAY,KAAG,IAEhF,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
/** @file Component entity — Effector stores and registry for framework-specific component implementations. */
|
|
2
|
+
import type { EventCallable, Store } from 'effector';
|
|
3
|
+
import type { Picked } from '../../picked';
|
|
4
|
+
import type { LazyComponentLoader } from './lazyComponent';
|
|
4
5
|
export interface AdaptedComponentStyle {
|
|
5
6
|
sheets?: string[];
|
|
6
7
|
css?: string[];
|
|
@@ -30,7 +31,7 @@ declare const createComponentFactory: ({ client, component, name }: {
|
|
|
30
31
|
}) => {
|
|
31
32
|
name: string;
|
|
32
33
|
component: AdaptedComponent<string, unknown>;
|
|
33
|
-
frameworkStore: Store<import(
|
|
34
|
+
frameworkStore: Store<import("../..").Framework | undefined>;
|
|
34
35
|
};
|
|
35
36
|
/**
|
|
36
37
|
* Creates a component with framework-specific metadata and loader.
|
|
@@ -58,7 +59,7 @@ declare const createComponentIndexFactory: ({ client }: {
|
|
|
58
59
|
listStore: Store<{
|
|
59
60
|
name: string;
|
|
60
61
|
component: AdaptedComponent<string, unknown>;
|
|
61
|
-
frameworkStore: Store<import(
|
|
62
|
+
frameworkStore: Store<import("../..").Framework | undefined>;
|
|
62
63
|
}[]>;
|
|
63
64
|
};
|
|
64
65
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/entities/component/component.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAIpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAE1D,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;CACf;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG,OAAO;IAC1E,aAAa,EAAE,CAAC,CAAA;IAChB,SAAS,EAAE,OAAO,CAAC;QAAE,OAAO,EAAE,CAAC,CAAA;KAAE,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAA;IAC3D,KAAK,CAAC,EAAE,qBAAqB,CAAA;CAC9B;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG,OAAO;IAC3E,aAAa,EAAE,CAAC,CAAA;IAChB,SAAS,EAAE,CAAC,CAAA;IACZ,KAAK,CAAC,EAAE,qBAAqB,CAAA;CAC9B;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG,OAAO,IAC/D,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1B,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAE/B,MAAM,WAAW,mBAAmB,CAAC,CAAC,GAAG,gBAAgB,CA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AC,SAAS,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC,EACpF,MAAM,EAAE,CAAC,GACR,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAE3C;AAED,QAAA,MAAM,2BAA2B,eAA8B;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;cAkBzC,MAAM;mBAAa,gBAAgB;;sBAmChD,MAAM,KAAG,KAAK,CACnC;QACE,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,gBAAgB,CAAA;KAC5B,GACD,SAAS,CACZ;;;;;;CASD,CAAA;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,EAC9F,MAAM,EAAE,CAAC,GACR,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAEhD;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,SACnB,MAAM,aACD,gBAAgB,cACf,cAAc,KACzB,IAEF,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LogicRule } from '../../logic-engine';
|
|
1
|
+
import type { LogicRule } from '../../logic-engine';
|
|
2
2
|
export type ConditionsStore = ReturnType<typeof createConditionIndex>;
|
|
3
3
|
export interface Condition {
|
|
4
4
|
id: string;
|
|
@@ -8,10 +8,10 @@ export interface Condition {
|
|
|
8
8
|
}
|
|
9
9
|
declare const createConditionIndexFactory: () => {
|
|
10
10
|
register: (condition: Condition) => void;
|
|
11
|
-
getById: (id: Condition[
|
|
12
|
-
getByKey: (key: Condition[
|
|
13
|
-
listStore: import(
|
|
14
|
-
indexStore: import(
|
|
11
|
+
getById: (id: Condition['id']) => import("effector").Store<Condition | null>;
|
|
12
|
+
getByKey: (key: Condition['key']) => import("effector").Store<Condition | null>;
|
|
13
|
+
listStore: import("effector").Store<Condition[]>;
|
|
14
|
+
indexStore: import("effector").StoreWritable<{
|
|
15
15
|
[id: string]: Condition;
|
|
16
16
|
}>;
|
|
17
17
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @file Content entity — Effector stores, types, and lifecycle helpers for CMS content records. */
|
|
2
|
+
import { type Store } from 'effector';
|
|
2
3
|
export interface Content {
|
|
3
4
|
id: string;
|
|
4
5
|
/**
|
|
@@ -8,12 +9,22 @@ export interface Content {
|
|
|
8
9
|
contentModelKey?: string | null;
|
|
9
10
|
data: Record<string, unknown>;
|
|
10
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Transforms a content record's `data`, returning the next blob.
|
|
14
|
+
*
|
|
15
|
+
* Applied inside the store's own update so the read-modify-write cannot interleave with another
|
|
16
|
+
* write. Callers that want path-addressed ops build one of these with `applyContentOps` from
|
|
17
|
+
* `@picked/client/preview`, which is code-split away from the main bundle because only the
|
|
18
|
+
* live-preview channel needs it.
|
|
19
|
+
*/
|
|
20
|
+
export type ContentDataPatch = (data: Record<string, unknown>) => Record<string, unknown>;
|
|
11
21
|
export type ContentsStore = ReturnType<typeof createContentIndex>;
|
|
12
22
|
declare const createContentIndexFactory: () => {
|
|
13
23
|
register: (content: Content) => void;
|
|
14
|
-
|
|
24
|
+
patch: (id: string, apply: ContentDataPatch) => void;
|
|
25
|
+
getById: (id: Content['id']) => Store<Content | null>;
|
|
15
26
|
listStore: Store<Content[]>;
|
|
16
|
-
indexStore: import(
|
|
27
|
+
indexStore: import("effector").StoreWritable<{
|
|
17
28
|
[id: string]: Content;
|
|
18
29
|
}>;
|
|
19
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../src/entities/content/content.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,OAAO,EAA2B,KAAK,KAAK,EAAE,MAAM,UAAU,CAAA;AAK9D,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC9B;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEjE,QAAA,MAAM,yBAAyB;
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../src/entities/content/content.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,OAAO,EAA2B,KAAK,KAAK,EAAE,MAAM,UAAU,CAAA;AAK9D,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC9B;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEzF,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEjE,QAAA,MAAM,yBAAyB;wBAiCF,OAAO,KAAG,IAAI;gBAkBtB,MAAM,SAAS,gBAAgB,KAAG,IAAI;kBAmBpC,OAAO,CAAC,IAAI,CAAC,KAAG,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;;;;;CAW1D,CAAA;AAEF;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAEjF;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAEzE"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Reading `reference` field values out of a delivered content blob.
|
|
3
|
+
*
|
|
4
|
+
* A `reference` field arrives as a pointer at another Content record rather than
|
|
5
|
+
* as the record itself. The referenced record travels separately and is
|
|
6
|
+
* registered into the content index under its own id, so resolving a pointer is
|
|
7
|
+
* a registry lookup — see `useReference` (`@picked/react`) and `getReference`
|
|
8
|
+
* (`@picked/svelte`), which is what most consumers should reach for.
|
|
9
|
+
*
|
|
10
|
+
* This module is the framework-agnostic half: readers that turn a raw field
|
|
11
|
+
* value into the id (or ids) to look up, tolerating both a single value and the
|
|
12
|
+
* array a repeatable field delivers, plus the store derivations the framework
|
|
13
|
+
* bindings wrap.
|
|
14
|
+
*/
|
|
15
|
+
import { type Store } from 'effector';
|
|
16
|
+
import type { Content, ContentsStore } from './content';
|
|
17
|
+
/** A pointer at another Content record, as delivered inside a `reference` field. */
|
|
18
|
+
export interface ContentReference {
|
|
19
|
+
/** Id of the referenced Content record, to look up in the content index. */
|
|
20
|
+
contentEntryId: string;
|
|
21
|
+
/** The `key` of the Content Model the target belongs to, or `null` when unresolved. */
|
|
22
|
+
contentModelKey?: string | null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Narrows an arbitrary field value to a {@link ContentReference}.
|
|
26
|
+
*
|
|
27
|
+
* A pointer that still carries inline `data` matches: the delivery surface emits
|
|
28
|
+
* inline data alongside the separate record while that format is retired, and
|
|
29
|
+
* both shapes address the same record.
|
|
30
|
+
*
|
|
31
|
+
* @param {unknown} value - The raw value read from a content blob's `data`.
|
|
32
|
+
* @returns {boolean} Whether `value` is a reference pointer.
|
|
33
|
+
* @example
|
|
34
|
+
* ```typescript
|
|
35
|
+
* if (isContentReference(content.author)) { content.author.contentEntryId }
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare function isContentReference(value: unknown): value is ContentReference;
|
|
39
|
+
/**
|
|
40
|
+
* Reads the referenced Content record id from a single `reference` field value.
|
|
41
|
+
*
|
|
42
|
+
* @param {unknown} value - The raw value read from a content blob's `data`.
|
|
43
|
+
* @returns {string | null} The referenced id, or `null` when the field is unset or not a reference.
|
|
44
|
+
* @example
|
|
45
|
+
* ```typescript
|
|
46
|
+
* const authorId = readReferenceId(content.author)
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare function readReferenceId(value: unknown): string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Reads every referenced Content record id from a `reference` field, whether it
|
|
52
|
+
* was authored as repeatable or not. Values that are not references are dropped,
|
|
53
|
+
* so the result is always a list of ids that can be looked up.
|
|
54
|
+
*
|
|
55
|
+
* @param {unknown} value - The raw value read from a content blob's `data`.
|
|
56
|
+
* @returns {string[]} The referenced ids, in field order.
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const authorIds = readReferenceIds(content.authors)
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare function readReferenceIds(value: unknown): string[];
|
|
63
|
+
/**
|
|
64
|
+
* Derives a store resolving a single `reference` field value against the content
|
|
65
|
+
* registry.
|
|
66
|
+
*
|
|
67
|
+
* Reads the registry index rather than a per-id store so an unset field, an
|
|
68
|
+
* unregistered target, and a target registered after first paint all flow
|
|
69
|
+
* through one reactive path. The framework bindings (`useReference`,
|
|
70
|
+
* `getReference`) wrap this; call it directly only outside React and Svelte.
|
|
71
|
+
*
|
|
72
|
+
* @param {ContentsStore} contents - The client's content registry.
|
|
73
|
+
* @param {unknown} value - The raw `reference` value, or an Effector store carrying one. A
|
|
74
|
+
* store keeps the lookup live when the field arrives after this call.
|
|
75
|
+
* @returns {Store<Content | null>} The referenced record, or `null` when the field is unset or its target is not registered.
|
|
76
|
+
* @example
|
|
77
|
+
* ```typescript
|
|
78
|
+
* const author = deriveReference(client.contents, content.author)
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
export declare function deriveReference(contents: ContentsStore, value: unknown): Store<Content | null>;
|
|
82
|
+
/**
|
|
83
|
+
* Derives a store resolving a repeatable `reference` field against the content
|
|
84
|
+
* registry, in field order. A single (non-repeatable) value resolves to a
|
|
85
|
+
* one-element list.
|
|
86
|
+
*
|
|
87
|
+
* The list is dense: a pointer whose target is not registered — deleted, cut off
|
|
88
|
+
* by the reference depth cap, or belonging to another workspace — is skipped
|
|
89
|
+
* rather than held as a hole, so consumers can iterate without a null check.
|
|
90
|
+
*
|
|
91
|
+
* @param {ContentsStore} contents - The client's content registry.
|
|
92
|
+
* @param {unknown} value - The raw `reference` value, or an Effector store carrying one. A
|
|
93
|
+
* store keeps the lookup live when the field arrives after this call.
|
|
94
|
+
* @returns {Store<Content[]>} The referenced records that resolved.
|
|
95
|
+
* @example
|
|
96
|
+
* ```typescript
|
|
97
|
+
* const authors = deriveReferences(client.contents, content.authors)
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
export declare function deriveReferences(contents: ContentsStore, value: unknown): Store<Content[]>;
|
|
101
|
+
//# sourceMappingURL=reference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../../src/entities/content/reference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEvD,oFAAoF;AACpF,MAAM,WAAW,gBAAgB;IAC/B,4EAA4E;IAC5E,cAAc,EAAE,MAAM,CAAA;IACtB,uFAAuF;IACvF,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAQ5E;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAE7D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAUzD;AAiCD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAS9F;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,CAS1F"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
/** @file Experience entity — Effector stores, types, and lifecycle helpers for Picked experiences. */
|
|
2
|
+
import { type Effect, type EventCallable, type Store } from 'effector';
|
|
3
|
+
import type { AdaptedComponent } from '../component/component';
|
|
4
|
+
import type { Condition } from '../condition/condition';
|
|
5
|
+
import type { ExperienceStep } from '../step/step';
|
|
6
|
+
import type { Framework } from '../framework/framework';
|
|
7
|
+
import type { Picked } from '../../picked';
|
|
8
|
+
import type { LogicRule, LogicValue } from '../../logic-engine';
|
|
8
9
|
export type ExperiencesListStore = ReturnType<typeof createExperienceIndex>;
|
|
9
10
|
/** Per-experience reactive entity returned by `createExperience`. */
|
|
10
11
|
export interface ExperienceStore {
|
|
@@ -98,11 +99,11 @@ declare const createExperienceIndexFactory: ({ client }: {
|
|
|
98
99
|
/** Registers an experience in the index. If an experience with the same ID already exists, it is merged. */
|
|
99
100
|
register: EventCallable<Experience>;
|
|
100
101
|
/** Returns a derived store for an experience by its ID. The store value is `undefined` when no match exists. */
|
|
101
|
-
get: (id: Experience[
|
|
102
|
+
get: (id: Experience['id']) => Store<ExperienceStore | undefined>;
|
|
102
103
|
/** @deprecated Use `experiences.get(id)` instead. */
|
|
103
|
-
getById: (id: Experience[
|
|
104
|
+
getById: (id: Experience['id']) => Store<ExperienceStore | undefined>;
|
|
104
105
|
/** Returns a derived store for an experience by its key. The store value is `undefined` when no match exists. */
|
|
105
|
-
getByKey: (key: Experience[
|
|
106
|
+
getByKey: (key: Experience['key']) => Store<ExperienceStore | undefined>;
|
|
106
107
|
/** Effector effect that launches an experience by its key. */
|
|
107
108
|
launch: Effect<{
|
|
108
109
|
key: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experience.d.ts","sourceRoot":"","sources":["../../../../src/entities/experience/experience.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,OAAO,EAOL,KAAK,MAAM,EACX,KAAK,aAAa,EAElB,KAAK,KAAK,EACX,MAAM,UAAU,CAAA;AAEjB,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,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,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;AAE3E,qEAAqE;AACrE,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,KAAK,CAAC;QACjB,IAAI,EAAE,MAAM,CAAA;QACZ,aAAa,CAAC,EAAE,SAAS,GAAG,UAAU,CAAA;QACtC,eAAe,EAAE,gBAAgB,EAAE,CAAA;QACnC,mBAAmB,CAAC,EAAE,SAAS,GAAG,UAAU,CAAA;KAC7C,CAAC,CAAA;IACF,SAAS,EAAE,KA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,EAAE,cAAc,EAAE,CAAA;IACvB,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,OAAO,EAAE,gBAAgB,EAAE,CAAA;CAC5B;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,WAAkB,MAAM,KAAG,OAAO,CAAC,IAAI,CAExE,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
/** @file Experience instance — Effector stores and lifecycle for a single experience. */
|
|
2
|
+
import { type Effect, type EventCallable, type Store } from 'effector';
|
|
3
|
+
import type { Experience, ExperienceNode, ExperienceStore, ExperienceTarget, LaunchExperienceOptions } from '../experience/experience';
|
|
4
|
+
import type { Component } from '../component/component';
|
|
5
|
+
import type { Framework } from '../framework/framework';
|
|
6
|
+
import type { ExperienceStep } from '../step/step';
|
|
7
|
+
import type { Picked } from '../../picked';
|
|
8
|
+
import type { HistoryEntry } from '../history/history';
|
|
8
9
|
export interface ExperienceInstance {
|
|
9
10
|
id: string;
|
|
10
11
|
experienceKey: Experience['key'];
|
|
@@ -79,8 +80,8 @@ declare const createExperienceInstanceIndexFactory: ({ client }: {
|
|
|
79
80
|
client: Picked;
|
|
80
81
|
}) => {
|
|
81
82
|
spawn: (experience: ExperienceStore, target: HTMLElement, options?: LaunchExperienceOptions) => void;
|
|
82
|
-
getByExperienceKey: (key: Experience[
|
|
83
|
-
getByExperienceId: (id: Experience[
|
|
83
|
+
getByExperienceKey: (key: Experience['key']) => Store<ExperienceInstance[]>;
|
|
84
|
+
getByExperienceId: (id: Experience['id']) => Store<ExperienceInstance[]>;
|
|
84
85
|
listStore: Store<ExperienceInstance[]>;
|
|
85
86
|
};
|
|
86
87
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/** @file Feature entity — Effector stores and registry for A/B test features with persistent bucketing. */
|
|
2
|
+
import { type EventCallable, type Store } from 'effector';
|
|
3
|
+
import type { Picked } from '../../picked';
|
|
3
4
|
export interface Feature {
|
|
4
5
|
key: string;
|
|
5
6
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../../src/entities/feature/feature.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,OAAO,EAQL,KAAK,aAAa,EAElB,KAAK,KAAK,EACX,MAAM,UAAU,CAAA;AAEjB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAI1C,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACnE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,oGAAoG;IACpG,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wHAAwH;IACxH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAExE,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,OAAO,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,EAAE,EAAE,MAAM,C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BAAkB,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,EAC1F,MAAM,EAAE,CAAC,GACR,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAE9C;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,SAAU,MAAM,WAAW,OAAO,YAAY,aAAa,SAEnF,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/** @file Field entity — Effector stores, types, and CRUD helpers for experience fields. */
|
|
2
|
+
import { type Store } from 'effector';
|
|
3
|
+
import type { LogicRule } from '../../logic-engine';
|
|
3
4
|
export type FieldsStore = ReturnType<typeof createFieldIndex>;
|
|
4
5
|
export type PrimitiveFieldValue = string | number | boolean | null;
|
|
5
6
|
export type FieldOptionValue = string | number | boolean;
|
|
@@ -83,11 +84,11 @@ export interface FieldBooleanMultiple extends FieldBase<boolean> {
|
|
|
83
84
|
export type Field = FieldTextSingular | FieldTextMultiple | FieldNumberSingular | FieldNumberMultiple | FieldObjectSingular | FieldObjectMultiple | FieldBooleanSingular | FieldBooleanMultiple;
|
|
84
85
|
declare const createFieldIndexFactory: () => {
|
|
85
86
|
register: (field: Field) => void;
|
|
86
|
-
update: (key: FieldBase[
|
|
87
|
-
getById: (id: FieldBase[
|
|
88
|
-
getByKey: (key: FieldBase[
|
|
87
|
+
update: (key: FieldBase['key'], updates: Partial<Field>) => void;
|
|
88
|
+
getById: (id: FieldBase['id']) => Store<Field | null>;
|
|
89
|
+
getByKey: (key: FieldBase['key']) => Store<Field | null>;
|
|
89
90
|
listStore: Store<Field[]>;
|
|
90
|
-
getByName: (name: FieldBase[
|
|
91
|
+
getByName: (name: FieldBase['name']) => Store<Field | null>;
|
|
91
92
|
};
|
|
92
93
|
/**
|
|
93
94
|
* Creates an Effector-based index for registering and retrieving fields.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
/** @file Framework entity — Effector stores and registry for UI framework integrations (React, Svelte, etc). */
|
|
2
|
+
import { type EventCallable } from 'effector';
|
|
3
|
+
import type { AdaptedComponent } from '../component/component';
|
|
4
|
+
import type { ExperienceInstance } from '../experience-instance/experience-instance';
|
|
5
|
+
import type { Picked } from '../../picked';
|
|
5
6
|
export type FrameworksStore = ReturnType<typeof createFrameworkIndex>;
|
|
6
7
|
export interface Framework {
|
|
7
8
|
name: string;
|
|
@@ -16,8 +17,8 @@ declare const createFrameworkIndexFactory: (_params: {
|
|
|
16
17
|
name: string;
|
|
17
18
|
framework: Framework;
|
|
18
19
|
}>;
|
|
19
|
-
getByName: (name: string) => import(
|
|
20
|
-
listStore: import(
|
|
20
|
+
getByName: (name: string) => import("effector").Store<Framework | undefined>;
|
|
21
|
+
listStore: import("effector").Store<Framework[]>;
|
|
21
22
|
};
|
|
22
23
|
/**
|
|
23
24
|
* Creates a framework index with stores and registration logic.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework.d.ts","sourceRoot":"","sources":["../../../../src/entities/framework/framework.ts"],"names":[],"mappings":"AAAA,gHAAgH;AAChH,OAAO,EAAwC,KAAK,aAAa,EAAU,MAAM,UAAU,CAAA;AAG3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AACpF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAIrE,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,eAAe,CAAA;IACvB,4GAA4G;IAC5G,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAC3B;AAED,QAAA,MAAM,2BAA2B,YAA2B;IAAE,MAAM,EAAE,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gB,oBAAoB,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,EAC9F,MAAM,EAAE,CAAC,GACR,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAEhD;AAED,MAAM,MAAM,eAAe,GAAG,CAC5B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,gBAAgB,EAC3B,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,kBAAkB,KAC3B,IAAI,CAAA;AAET,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAA;AAE3D;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,cAAe,SAAS,cAAc,eAAe,KAAG,IAElF,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExperienceNode } from '../experience/experience';
|
|
1
|
+
import type { ExperienceNode } from '../experience/experience';
|
|
2
2
|
export interface HistoryEntry {
|
|
3
3
|
id: string;
|
|
4
4
|
node: ExperienceNode;
|
|
@@ -6,20 +6,20 @@ export interface HistoryEntry {
|
|
|
6
6
|
experienceId: string;
|
|
7
7
|
}
|
|
8
8
|
export declare function createHistory(): {
|
|
9
|
-
push: import(
|
|
9
|
+
push: import("effector").EventCallable<{
|
|
10
10
|
experienceId: string;
|
|
11
11
|
node: ExperienceNode;
|
|
12
12
|
}>;
|
|
13
|
-
replace: import(
|
|
13
|
+
replace: import("effector").EventCallable<{
|
|
14
14
|
experienceId: string;
|
|
15
15
|
node: ExperienceNode;
|
|
16
16
|
}>;
|
|
17
|
-
back: import(
|
|
17
|
+
back: import("effector").EventCallable<{
|
|
18
18
|
experienceId?: string;
|
|
19
19
|
}>;
|
|
20
|
-
restore: import(
|
|
20
|
+
restore: import("effector").EventCallable<{
|
|
21
21
|
entries: HistoryEntry[];
|
|
22
22
|
}>;
|
|
23
|
-
entriesStore: import(
|
|
23
|
+
entriesStore: import("effector").Store<HistoryEntry[]>;
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=history.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/** @file Plugin contract for the Picked SDK. Plugins extend the client via setup-time registration and effector-based onStart hooks. */
|
|
2
|
+
import { type Effect } from 'effector';
|
|
3
|
+
import type { Picked } from '../../picked';
|
|
3
4
|
export interface Plugin {
|
|
4
5
|
name: string;
|
|
5
6
|
setup: (client: Picked) => void | PluginConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/entities/plugin/plugin.ts"],"names":[],"mappings":"AAAA,wIAAwI;AACxI,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,YAAY,CAAA;CAC/C;AAED,MAAM,WAAW,YAAY;IAC3B,qIAAqI;IACrI,OAAO,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAC5B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAIjG;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/entities/plugin/plugin.ts"],"names":[],"mappings":"AAAA,wIAAwI;AACxI,OAAO,EAAgB,KAAK,MAAM,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,YAAY,CAAA;CAC/C;AAED,MAAM,WAAW,YAAY;IAC3B,qIAAqI;IACrI,OAAO,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAC5B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAIjG;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,WAAY,MAAM,UAAU,MAAM,WAAW,iBAAiB,KAAG,IASxF,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
/** @file Predicate entity — Effector stores and registry for condition evaluation functions. */
|
|
2
|
+
import { type EventCallable, type Store } from 'effector';
|
|
3
|
+
import type { StateSnapshot } from '../../lifecycle/state-snapshot';
|
|
4
|
+
import type { Picked } from '../../picked';
|
|
4
5
|
export type Predicate = (snapshot: StateSnapshot & {
|
|
5
6
|
args: unknown[];
|
|
6
7
|
}) => boolean | Promise<boolean> | string | Promise<string> | string[] | Promise<string[]> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicate.d.ts","sourceRoot":"","sources":["../../../../src/entities/predicate/predicate.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,OAAO,EAML,KAAK,aAAa,EAElB,KAAK,KAAK,EACX,MAAM,UAAU,CAAA;AAGjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,MAAM,MAAM,SAAS,GAAG,CACtB,QAAQ,EAAE,aAAa,GAAG;IAAE,IAAI,EAAE,OAAO,EAAE,CAAA;CAAE,KAE3C,OAAO,GACP,OAAO,CAAC,OAAO,CAAC,GAChB,MAAM,GACN,OAAO,CAAC,MAAM,CAAC,GACf,MAAM,EAAE,GACR,OAAO,CAAC,MAAM,EAAE,CAAC,GACjB,SAAS,CAAA;AAEb,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAErE,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,SAAS,CAAA;CACrB;AAID,QAAA,MAAM,2BAA2B,eAA8B;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;cAwBzC,MAAM;mBAAa,SAAS;;sBAiCzC,MAAM;;cAtDrB,MAAM;mBACD,SAAS;;0CAiEqB,MAAM,KAAG,KAAK,CAAC,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC;CA0CxF,CAAA;AAEF;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,EAC9F,MAAM,EAAE,CAAC,GACR,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAEhD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"predicate.d.ts","sourceRoot":"","sources":["../../../../src/entities/predicate/predicate.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,OAAO,EAML,KAAK,aAAa,EAElB,KAAK,KAAK,EACX,MAAM,UAAU,CAAA;AAGjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,MAAM,MAAM,SAAS,GAAG,CACtB,QAAQ,EAAE,aAAa,GAAG;IAAE,IAAI,EAAE,OAAO,EAAE,CAAA;CAAE,KAE3C,OAAO,GACP,OAAO,CAAC,OAAO,CAAC,GAChB,MAAM,GACN,OAAO,CAAC,MAAM,CAAC,GACf,MAAM,EAAE,GACR,OAAO,CAAC,MAAM,EAAE,CAAC,GACjB,SAAS,CAAA;AAEb,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAErE,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,SAAS,CAAA;CACrB;AAID,QAAA,MAAM,2BAA2B,eAA8B;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE;;cAwBzC,MAAM;mBAAa,SAAS;;sBAiCzC,MAAM;;cAtDrB,MAAM;mBACD,SAAS;;0CAiEqB,MAAM,KAAG,KAAK,CAAC,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC;CA0CxF,CAAA;AAEF;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,EAC9F,MAAM,EAAE,CAAC,GACR,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAEhD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,SAAU,MAAM,aAAa,SAAS,cAAc,eAAe,SAE7F,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/** @file Validation utilities for response values — type checks, coercion, and field-level validation. */
|
|
2
|
+
import type { Field, FieldValue } from '../field/field';
|
|
3
|
+
import type { LogicObject, LogicRule } from '../../logic-engine';
|
|
3
4
|
export interface ValidationError {
|
|
4
5
|
fieldKey: Field['key'];
|
|
5
6
|
userMessage: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
/** @file Response entity — Effector stores, commit/validation flow, and field-response lookups. */
|
|
2
|
+
import { type Store } from 'effector';
|
|
3
|
+
import type { Picked } from '../../picked';
|
|
4
|
+
import type { Field, FieldValue } from '../field/field';
|
|
5
|
+
import { type ValidationError } from './response-validation';
|
|
5
6
|
export type { ValidationError } from './response-validation';
|
|
6
7
|
export type ResponsesStore = ReturnType<typeof createResponseIndex>;
|
|
7
8
|
export type Response = FieldValue;
|
|
@@ -13,11 +14,11 @@ declare const createResponseIndexFactory: ({ client }: {
|
|
|
13
14
|
client: Picked;
|
|
14
15
|
}) => {
|
|
15
16
|
register: {
|
|
16
|
-
(fieldKey: Field[
|
|
17
|
-
(payload: Record<Field[
|
|
17
|
+
(fieldKey: Field['key'], response: Response): void;
|
|
18
|
+
(payload: Record<Field['key'], Response>, response?: never): void;
|
|
18
19
|
};
|
|
19
|
-
clearAll: import(
|
|
20
|
-
clear: import(
|
|
20
|
+
clearAll: import("effector").EventCallable<void>;
|
|
21
|
+
clear: import("effector").EventCallable<string>;
|
|
21
22
|
commit: (responsesToCommit: CommitResponses) => Promise<{
|
|
22
23
|
errors: ValidationError[];
|
|
23
24
|
}>;
|
|
@@ -32,9 +33,9 @@ declare const createResponseIndexFactory: ({ client }: {
|
|
|
32
33
|
getAllStore: Store<{
|
|
33
34
|
[fieldKey: string]: FieldValue;
|
|
34
35
|
}>;
|
|
35
|
-
getByFieldId: (id: Field[
|
|
36
|
-
getByFieldKey: (key: Field[
|
|
37
|
-
getByFieldName: (fieldName: Field[
|
|
36
|
+
getByFieldId: (id: Field['id']) => Store<FieldValue>;
|
|
37
|
+
getByFieldKey: (key: Field['key']) => Store<FieldValue>;
|
|
38
|
+
getByFieldName: (fieldName: Field['name']) => Store<FieldValue>;
|
|
38
39
|
};
|
|
39
40
|
/**
|
|
40
41
|
* Creates a response index instance bound to the given client.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @file Session entity — single Effector store for the visitor session (id, isUser flag, identifiers) plus mutator events generated via `createApi`. Persists to localStorage when available. */
|
|
2
|
+
import { type EventCallable, type Store } from 'effector';
|
|
2
3
|
/** Plain shape of a persisted session — id, optional isUser flag, optional identifiers map. */
|
|
3
4
|
export interface Session {
|
|
4
5
|
id: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/** @file Step entity — Effector stores, types, and lifecycle helpers for experience steps. */
|
|
2
|
+
import { type Store } from 'effector';
|
|
3
|
+
import type { Content } from '../content/content';
|
|
3
4
|
export type StepsStore = ReturnType<typeof createStepIndex>;
|
|
4
5
|
export interface ExperienceStep {
|
|
5
6
|
id: string;
|
|
@@ -23,10 +24,10 @@ export interface ExperienceStep {
|
|
|
23
24
|
}
|
|
24
25
|
declare const createStepIndexFactory: () => {
|
|
25
26
|
register: (step: ExperienceStep) => void;
|
|
26
|
-
getById: (id: ExperienceStep[
|
|
27
|
-
getByKey: (key: ExperienceStep[
|
|
27
|
+
getById: (id: ExperienceStep['id']) => Store<ExperienceStep | null>;
|
|
28
|
+
getByKey: (key: ExperienceStep['key']) => Store<ExperienceStep | null>;
|
|
28
29
|
listStore: Store<ExperienceStep[]>;
|
|
29
|
-
indexStore: import(
|
|
30
|
+
indexStore: import("effector").StoreWritable<{
|
|
30
31
|
[id: string]: ExperienceStep;
|
|
31
32
|
}>;
|
|
32
33
|
};
|
package/dist/types/exports.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/** @file Public exports for the Picked SDK client package — surfaces the `Picked` class, `createClient` factory, and supporting utilities. */
|
|
2
|
+
import type { CreateClientOptions } from './client';
|
|
2
3
|
import { Picked } from './picked';
|
|
3
4
|
export { isPickedRoot } from './utils/dom';
|
|
4
5
|
export { rehydrateScripts, buildRehydrateBootstrap, PICKED_SCRIPT_TYPE, PICKED_MODULE_SCRIPT_TYPE, PICKED_HYDRATED_ATTR, } from './utils/rehydrate-scripts';
|
|
5
6
|
export { isHtmlAssetValue } from './utils/html-asset-value';
|
|
6
7
|
export type { HtmlAssetValue } from './utils/html-asset-value';
|
|
8
|
+
export { isPreviewSession, PREVIEW_TOKEN_PARAM } from './utils/preview-session';
|
|
9
|
+
export { onInertScriptSubtrees, reportInertScriptSubtrees, resetInertScriptReport, } from './utils/inert-script-report';
|
|
7
10
|
export * from './utils/supports';
|
|
8
11
|
export * from './utils/storage';
|
|
9
12
|
export type * from './utils/storage';
|
|
@@ -11,6 +14,8 @@ export { evaluateRuleLogic } from './utils/rules-logic';
|
|
|
11
14
|
export { getPickedConfig } from './utils/picked-config';
|
|
12
15
|
export { lazyComponent, isLazyLoader } from './entities/component/lazyComponent';
|
|
13
16
|
export { createPluginEffect } from './entities/plugin/plugin';
|
|
17
|
+
export { deriveReference, deriveReferences, isContentReference, readReferenceId, readReferenceIds, } from './entities/content/reference';
|
|
18
|
+
export type { ContentReference } from './entities/content/reference';
|
|
14
19
|
/**
|
|
15
20
|
* Creates a new Picked client instance and binds it to the window object.
|
|
16
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":"AAAA,8IAA8I;AAC9I,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAGjC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0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AuB,EACvB,qBAAqB,GACtB,MAAM,kCAAkC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @file Parses FormData snapshots into typed field-response records keyed by field key. */
|
|
2
|
+
import type { FieldBase, FieldValue } from '../entities/field/field';
|
|
2
3
|
/**
|
|
3
4
|
* Parses a FormData snapshot into a typed record of field responses keyed by field key. Fields
|
|
4
5
|
* absent from FormData are mapped to `null`. Empty string values are mapped to `null`. Repeated
|