@picked/client 0.0.70-next.6 → 0.0.71-next.1
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-CH2FNa6S.cjs +1 -0
- package/dist/api-CgqRvuKL.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/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 +66 -25
- 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 +46 -38
- 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 +79 -47
- package/dist/docs/sdk/features.md +130 -76
- package/dist/docs/sdk/fields.md +66 -42
- package/dist/docs/sdk/index.md +22 -13
- package/dist/docs/sdk/plugins/create-experience.md +18 -15
- package/dist/docs/sdk/plugins/dynamic-experiences.md +42 -16
- 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 +50 -45
- 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 +1 -1
- package/dist/esm/server/index.js +12 -10
- package/dist/{experience-instance-DOJShRk5.js → experience-instance-DGk11d8a.js} +3 -3
- package/dist/experience-instance-Dej3P1sE.cjs +1 -0
- package/dist/{plugin-BxMR7fOV.js → plugin-D2UqFikQ.js} +2 -2
- package/dist/plugin-DCW-tnjO.cjs +1 -0
- package/dist/{preview-channel-DW9J8t4B.js → preview-channel-CSr96XAo.js} +1 -1
- package/dist/{protocol-DSqOlW2r.js → protocol-C5KkkiZc.js} +1 -1
- 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 +4 -3
- 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 +2 -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/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 +64 -62
- 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/plugin.d.ts +3 -3
- package/dist/types/plugins/dynamic-experiences/types.d.ts +8 -5
- 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-channel.d.ts +5 -1
- package/dist/types/preview-receiver/index.d.ts +18 -1
- package/dist/types/preview-receiver/protocol.d.ts +10 -1
- package/dist/types/server/index.d.ts +3 -3
- package/dist/types/server/serialize.d.ts +2 -2
- 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/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/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 +22 -23
- package/dist/api-CoUkIxIr.cjs +0 -1
- package/dist/api-ahdSBQ3Y.js +0 -40
- package/dist/experience-instance-DurC3pE-.cjs +0 -1
- package/dist/plugin-CASdGtTX.cjs +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/** @file Step field evaluation — resolves field and option visibility conditions. */
|
|
2
|
+
import type { Field } from '../entities/field/field';
|
|
3
|
+
import type { Picked } from '../picked';
|
|
3
4
|
import { evaluateRuleLogic } from '../utils/rules-logic';
|
|
4
5
|
/**
|
|
5
6
|
* Evaluates field and option conditions, returning only the fields that should be visible.
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @file Memoized condition evaluator plus a reactive condition-results store.
|
|
3
|
+
*
|
|
4
|
+
* The results store is keyed by a stable, key-order-independent hash of the rule, so the
|
|
5
|
+
* server's selection (`serialize`) and the client's hydration share results without
|
|
6
|
+
* re-evaluating. A cache hit reads synchronously (driving SSR render and the first
|
|
7
|
+
* client paint); a miss evaluates asynchronously and writes the result back, which
|
|
8
|
+
* propagates reactively to subscribers. Conditions that reference an action are exempt from the
|
|
9
|
+
* cache: they re-evaluate on every call so the action's side effect runs each time.
|
|
10
|
+
*/
|
|
11
|
+
import { type Store } from 'effector';
|
|
12
|
+
import type { Condition } from '../entities/condition/condition';
|
|
13
|
+
import type { LogicObject, LogicRule, LogicValue } from '../logic-engine';
|
|
14
|
+
import type { Picked } from '../picked';
|
|
5
15
|
/** A condition rule that may be json-logic, a raw logic value, or unset. */
|
|
6
16
|
type ConditionRule = LogicRule | LogicValue | undefined;
|
|
7
17
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
/** @file Lifecycle module — owns the SDK start chain as an effector event graph. */
|
|
2
|
+
import { type Effect, type EventCallable, type StoreWritable } from 'effector';
|
|
3
|
+
import type { Picked } from '../picked';
|
|
4
|
+
import type { LogicRule } from '../logic-engine';
|
|
4
5
|
/** Discrete stages of the SDK lifecycle. */
|
|
5
6
|
export type LifecycleStage = 'idle' | 'starting' | 'ready' | 'failed';
|
|
6
7
|
/** A logic-engine gate rule, a literal boolean override, or `undefined` to indicate no gate is configured. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
/** @file Effector effect that evaluates a json-logic rule against the client's reactive state. */
|
|
2
|
+
import { type Effect } from 'effector';
|
|
3
|
+
import type { LogicObject, LogicRule } from '../logic-engine';
|
|
4
|
+
import type { Picked } from '../picked';
|
|
4
5
|
/** Parameters for `evaluateRuleLogicFx` — the rule to evaluate and an optional context override. */
|
|
5
6
|
export interface EvaluateRuleLogicParams {
|
|
6
7
|
rule: LogicRule;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
/** @file State snapshot store — derives an immutable `StateSnapshot` from the client's reactive entity stores via `combine`. */
|
|
2
|
+
import { type Store } from 'effector';
|
|
3
|
+
import type { Picked } from '../picked';
|
|
4
|
+
import type { Field, FieldValue } from '../entities/field/field';
|
|
4
5
|
/** Immutable snapshot of the current client state, suitable for passing to user-supplied predicates, actions, and rule evaluators. */
|
|
5
6
|
export interface StateSnapshot {
|
|
6
7
|
client: Picked;
|
package/dist/types/picked.d.ts
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
1
|
+
/** @file Picked client — the main entry point for the Picked SDK. */
|
|
2
|
+
import { type Effect, type EventCallable, type Store, type StoreWritable } from 'effector';
|
|
3
|
+
import { type Experience, type LaunchExperienceOptions } from './entities/experience/experience';
|
|
4
|
+
import { type Plugin, type PluginConfigIndex } from './entities/plugin/plugin';
|
|
5
|
+
import { type CreateClientOptions } from './client';
|
|
6
|
+
import { type AdaptedComponent } from './entities/component/component';
|
|
7
|
+
import { type Framework } from './entities/framework/framework';
|
|
8
|
+
import { logger } from './utils/logger';
|
|
9
|
+
import { type StateSnapshot } from './lifecycle/state-snapshot';
|
|
10
|
+
import { type EvaluateRuleLogicParams } from './lifecycle/rules-logic';
|
|
11
|
+
import { type ConditionResults } from './lifecycle/condition-selection';
|
|
12
|
+
import { type LifecycleStage } from './lifecycle/lifecycle';
|
|
13
|
+
import type { Predicate } from './entities/predicate/predicate';
|
|
14
|
+
import type { Feature } from './entities/feature/feature';
|
|
15
|
+
import { type EventBusPayload, type EventHistoryStore } from './utils/events';
|
|
16
|
+
import type { Field } from './entities/field/field';
|
|
17
|
+
import type { ExperienceStep } from './entities/step/step';
|
|
18
|
+
import type { Content, ContentDataPatch } from './entities/content/content';
|
|
19
|
+
import type { ContentLoader } from './plugins/dynamic-experiences/types';
|
|
20
|
+
import type { Action } from './entities/action/action';
|
|
21
|
+
import { type Condition } from './entities/condition/condition';
|
|
22
|
+
import type { SessionEntity } from './entities/session/session';
|
|
21
23
|
/**
|
|
22
24
|
* Provenance metadata describing where the Picked client's project config and
|
|
23
25
|
* content came from. Set by `dynamicExperiencesPlugin` when the Vite plugin's
|
|
@@ -34,7 +36,7 @@ export interface PickedDataSource {
|
|
|
34
36
|
workspaceId: string | null;
|
|
35
37
|
}
|
|
36
38
|
export declare class Picked {
|
|
37
|
-
static readonly logger:
|
|
39
|
+
static readonly logger: typeof logger;
|
|
38
40
|
private readonly options;
|
|
39
41
|
/**
|
|
40
42
|
* Provenance metadata for the data backing this client. Populated by
|
|
@@ -64,23 +66,23 @@ export declare class Picked {
|
|
|
64
66
|
readonly dashboardUrl: string;
|
|
65
67
|
readonly documentationSiteUrl: string;
|
|
66
68
|
readonly session: SessionEntity;
|
|
67
|
-
readonly searchParams: import(
|
|
69
|
+
readonly searchParams: import(".").PickedSearchParams;
|
|
68
70
|
readonly history: {
|
|
69
71
|
push: EventCallable<{
|
|
70
72
|
experienceId: string;
|
|
71
|
-
node: import(
|
|
73
|
+
node: import(".").ExperienceNode;
|
|
72
74
|
}>;
|
|
73
75
|
replace: EventCallable<{
|
|
74
76
|
experienceId: string;
|
|
75
|
-
node: import(
|
|
77
|
+
node: import(".").ExperienceNode;
|
|
76
78
|
}>;
|
|
77
79
|
back: EventCallable<{
|
|
78
80
|
experienceId?: string;
|
|
79
81
|
}>;
|
|
80
82
|
restore: EventCallable<{
|
|
81
|
-
entries: import(
|
|
83
|
+
entries: import(".").HistoryEntry[];
|
|
82
84
|
}>;
|
|
83
|
-
entriesStore: Store<import(
|
|
85
|
+
entriesStore: Store<import(".").HistoryEntry[]>;
|
|
84
86
|
};
|
|
85
87
|
readonly components: {
|
|
86
88
|
register: EventCallable<{
|
|
@@ -98,16 +100,16 @@ export declare class Picked {
|
|
|
98
100
|
}[]>;
|
|
99
101
|
};
|
|
100
102
|
readonly experienceInstances: {
|
|
101
|
-
spawn: (experience: import(
|
|
102
|
-
getByExperienceKey: (key: Experience[
|
|
103
|
-
getByExperienceId: (id: Experience[
|
|
104
|
-
listStore: Store<import(
|
|
103
|
+
spawn: (experience: import(".").ExperienceStore, target: HTMLElement, options?: LaunchExperienceOptions) => void;
|
|
104
|
+
getByExperienceKey: (key: Experience['key']) => Store<import(".").ExperienceInstance[]>;
|
|
105
|
+
getByExperienceId: (id: Experience['id']) => Store<import(".").ExperienceInstance[]>;
|
|
106
|
+
listStore: Store<import(".").ExperienceInstance[]>;
|
|
105
107
|
};
|
|
106
108
|
readonly experiences: {
|
|
107
109
|
register: EventCallable<Experience>;
|
|
108
|
-
get: (id: Experience[
|
|
109
|
-
getById: (id: Experience[
|
|
110
|
-
getByKey: (key: Experience[
|
|
110
|
+
get: (id: Experience['id']) => Store<import(".").ExperienceStore | undefined>;
|
|
111
|
+
getById: (id: Experience['id']) => Store<import(".").ExperienceStore | undefined>;
|
|
112
|
+
getByKey: (key: Experience['key']) => Store<import(".").ExperienceStore | undefined>;
|
|
111
113
|
launch: Effect<{
|
|
112
114
|
key: string;
|
|
113
115
|
options?: LaunchExperienceOptions;
|
|
@@ -117,12 +119,12 @@ export declare class Picked {
|
|
|
117
119
|
}, void, Error>;
|
|
118
120
|
open: Effect<{
|
|
119
121
|
key: string;
|
|
120
|
-
options?: import(
|
|
122
|
+
options?: import("./exports").OpenExperienceOptions;
|
|
121
123
|
} | {
|
|
122
124
|
id: string;
|
|
123
|
-
options?: import(
|
|
125
|
+
options?: import("./exports").OpenExperienceOptions;
|
|
124
126
|
}, void, Error>;
|
|
125
|
-
listStore: Store<import(
|
|
127
|
+
listStore: Store<import(".").ExperienceStore[]>;
|
|
126
128
|
initialiseExperiencesFx: Effect<void, void, Error>;
|
|
127
129
|
};
|
|
128
130
|
readonly frameworks: {
|
|
@@ -150,15 +152,15 @@ export declare class Picked {
|
|
|
150
152
|
id: string;
|
|
151
153
|
feature: Feature;
|
|
152
154
|
}>;
|
|
153
|
-
getById: (id: string) => Store<import(
|
|
154
|
-
getByName: (name: string) => Store<import(
|
|
155
|
-
listStore: Store<import(
|
|
155
|
+
getById: (id: string) => Store<import(".").FeatureBucket | undefined>;
|
|
156
|
+
getByName: (name: string) => Store<import(".").FeatureIndexItem | undefined>;
|
|
157
|
+
listStore: Store<import(".").FeatureBucket[]>;
|
|
156
158
|
getEvokableFeature: (featureName: string) => Store<() => Promise<boolean | string | undefined>>;
|
|
157
159
|
};
|
|
158
160
|
readonly conditions: {
|
|
159
161
|
register: (condition: Condition) => void;
|
|
160
|
-
getById: (id: Condition[
|
|
161
|
-
getByKey: (key: Condition[
|
|
162
|
+
getById: (id: Condition['id']) => Store<Condition | null>;
|
|
163
|
+
getByKey: (key: Condition['key']) => Store<Condition | null>;
|
|
162
164
|
listStore: Store<Condition[]>;
|
|
163
165
|
indexStore: StoreWritable<{
|
|
164
166
|
[id: string]: Condition;
|
|
@@ -166,41 +168,41 @@ export declare class Picked {
|
|
|
166
168
|
};
|
|
167
169
|
readonly fields: {
|
|
168
170
|
register: (field: Field) => void;
|
|
169
|
-
update: (key: import(
|
|
170
|
-
getById: (id: import(
|
|
171
|
-
getByKey: (key: import(
|
|
171
|
+
update: (key: import(".").FieldBase['key'], updates: Partial<Field>) => void;
|
|
172
|
+
getById: (id: import(".").FieldBase['id']) => Store<Field | null>;
|
|
173
|
+
getByKey: (key: import(".").FieldBase['key']) => Store<Field | null>;
|
|
172
174
|
listStore: Store<Field[]>;
|
|
173
|
-
getByName: (name: import(
|
|
175
|
+
getByName: (name: import(".").FieldBase['name']) => Store<Field | null>;
|
|
174
176
|
};
|
|
175
177
|
readonly responses: {
|
|
176
178
|
register: {
|
|
177
|
-
(fieldKey: Field[
|
|
178
|
-
(payload: Record<Field[
|
|
179
|
+
(fieldKey: Field['key'], response: import(".").Response): void;
|
|
180
|
+
(payload: Record<Field['key'], import(".").Response>, response?: never): void;
|
|
179
181
|
};
|
|
180
182
|
clearAll: EventCallable<void>;
|
|
181
183
|
clear: EventCallable<string>;
|
|
182
|
-
commit: (responsesToCommit: import(
|
|
183
|
-
errors: import(
|
|
184
|
+
commit: (responsesToCommit: import(".").CommitResponses) => Promise<{
|
|
185
|
+
errors: import(".").ValidationError[];
|
|
184
186
|
}>;
|
|
185
|
-
getResponsesToCommit: (responsesToCommit: import(
|
|
186
|
-
responsesToCommit: import(
|
|
187
|
-
validationErrors: import(
|
|
187
|
+
getResponsesToCommit: (responsesToCommit: import(".").CommitResponses) => Promise<{
|
|
188
|
+
responsesToCommit: import(".").CommitResponses;
|
|
189
|
+
validationErrors: import(".").ValidationError[];
|
|
188
190
|
}>;
|
|
189
191
|
listStore: Store<{
|
|
190
192
|
fieldKey: string;
|
|
191
|
-
value: import(
|
|
193
|
+
value: import(".").FieldValue;
|
|
192
194
|
}[]>;
|
|
193
195
|
getAllStore: Store<{
|
|
194
|
-
[fieldKey: string]: import(
|
|
196
|
+
[fieldKey: string]: import(".").FieldValue;
|
|
195
197
|
}>;
|
|
196
|
-
getByFieldId: (id: Field[
|
|
197
|
-
getByFieldKey: (key: Field[
|
|
198
|
-
getByFieldName: (fieldName: Field[
|
|
198
|
+
getByFieldId: (id: Field['id']) => Store<import(".").FieldValue>;
|
|
199
|
+
getByFieldKey: (key: Field['key']) => Store<import(".").FieldValue>;
|
|
200
|
+
getByFieldName: (fieldName: Field['name']) => Store<import(".").FieldValue>;
|
|
199
201
|
};
|
|
200
202
|
readonly steps: {
|
|
201
203
|
register: (step: ExperienceStep) => void;
|
|
202
|
-
getById: (id: ExperienceStep[
|
|
203
|
-
getByKey: (key: ExperienceStep[
|
|
204
|
+
getById: (id: ExperienceStep['id']) => Store<ExperienceStep | null>;
|
|
205
|
+
getByKey: (key: ExperienceStep['key']) => Store<ExperienceStep | null>;
|
|
204
206
|
listStore: Store<ExperienceStep[]>;
|
|
205
207
|
indexStore: StoreWritable<{
|
|
206
208
|
[id: string]: ExperienceStep;
|
|
@@ -209,7 +211,7 @@ export declare class Picked {
|
|
|
209
211
|
readonly contents: {
|
|
210
212
|
register: (content: Content) => void;
|
|
211
213
|
patch: (id: string, apply: ContentDataPatch) => void;
|
|
212
|
-
getById: (id: Content[
|
|
214
|
+
getById: (id: Content['id']) => Store<Content | null>;
|
|
213
215
|
listStore: Store<Content[]>;
|
|
214
216
|
indexStore: StoreWritable<{
|
|
215
217
|
[id: string]: Content;
|
|
@@ -221,9 +223,9 @@ export declare class Picked {
|
|
|
221
223
|
action: Action;
|
|
222
224
|
}>;
|
|
223
225
|
getByKey: (key: string) => Store<Action | undefined>;
|
|
224
|
-
listStore: Store<import(
|
|
226
|
+
listStore: Store<import(".").ActionIndexItem[]>;
|
|
225
227
|
getEvokableAction: (actionKey: string, options?: {
|
|
226
|
-
experience: import(
|
|
228
|
+
experience: import(".").ExperienceInstance;
|
|
227
229
|
}) => Store<() => ReturnType<Action>>;
|
|
228
230
|
};
|
|
229
231
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"picked.d.ts","sourceRoot":"","sources":["../../src/picked.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,OAAO,EAGL,KAA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EnD;IAED,kBAAkB,eAAgB,UAAU,KAAG,IAAI,CAMlD;IAED;;;;;;;;;OASG;IAEH,oBAAoB,iBACJ,MAAM,YACV,uBAAuB,KAChC,OAAO,CAAC,IAAI,CAAC,CAEf;IACD;;;;;;;;;OASG;IAEH,qBAAqB,kBACJ,MAAM,YACX,uBAAuB,KAChC,OAAO,CAAC,IAAI,CAAC,CAEf;IAED;;;;;;;;OAQG;IAEH,kBAAkB,iBAAwB,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC,CAE/D;IAED;;;;;;;;OAQG;IAEH,mBAAmB,kBAAyB,MAAM,KAAG,OAAO,CAAC,IAAI,CAAC,CAEjE;IAED,OAAO,CAAC,YAAY;IAsBpB,OAAO,CAAC,aAAa;IA8CrB,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,eAAe;IAWvB,eAAe,eAAgB,MAAM,KAAG,iBAAiB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE1F;CACF"}
|
package/dist/types/ping.d.ts
CHANGED
package/dist/types/ping.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ping.d.ts","sourceRoot":"","sources":["../../src/ping.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAKtC;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"ping.d.ts","sourceRoot":"","sources":["../../src/ping.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAKtC;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,WAAkB,MAAM,KAAG,OAAO,CAAC,OAAO,CA2C1D,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
/** @file Builder API for creating experiences, steps, conditions, fields, and flow graphs. */
|
|
2
|
+
import type { ActionNode, Experience, ExperienceEdge, ExperienceNode, ExperienceTarget } from '../../entities/experience/experience';
|
|
3
|
+
import type { ExperienceStep } from '../../entities/step/step';
|
|
4
|
+
import type { Condition } from '../../entities/condition/condition';
|
|
5
|
+
import type { AdaptedComponent } from '../../entities/component/component';
|
|
6
|
+
import type { LogicRule, LogicValue } from '../../logic-engine';
|
|
7
|
+
import type { Field, FieldBooleanMultiple, FieldBooleanSingular, FieldNumberMultiple, FieldNumberSingular, FieldObjectMultiple, FieldObjectSingular, FieldTextMultiple, FieldTextSingular, JsonValue } from '../../entities/field/field';
|
|
8
|
+
import { type Serialized } from './serialization';
|
|
8
9
|
export interface SerializedExperience extends Experience {
|
|
9
10
|
steps: ExperienceStep[];
|
|
10
11
|
conditions: Condition[];
|
|
@@ -203,7 +204,7 @@ export declare const createNode: (nodeOptions: CreateNodeOptions, experience: Se
|
|
|
203
204
|
export declare const createEdge: (edgeOptions: CreateEdgeOptions, experience: SerializableExperience) => SerializableEdge;
|
|
204
205
|
export declare const createCondition: (conditionOptions: CreateConditionOptions, experience: SerializableExperience) => SerializableCondition;
|
|
205
206
|
/** @deprecated Use `createCondition` instead. */
|
|
206
|
-
export declare const createConditional:
|
|
207
|
+
export declare const createConditional: typeof createCondition;
|
|
207
208
|
/**
|
|
208
209
|
* Creates a field with optional generic type parameter for object field type safety.
|
|
209
210
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-experience.d.ts","sourceRoot":"","sources":["../../../../src/plugins/create-experience/create-experience.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,OAAO,KAAK,EACV,UAAU,EAEV,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAGjB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0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kBAAkB,GAAG,iBAAiB,KAAK,iBAAiB,CAAA;IACrF,SAAS,EAAE,MAAM,UAAU,CAAC,cAAc,CAAC,CAAA;CAC5C;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAA;CAC7B;AAED,MAAM,MAAM,gBAAgB,GACxB,oBAAoB,GACpB,yBAAyB,GACzB,gCAAgC,GAChC,sBAAsB,GACtB,sBAAsB,CAAA;AAE1B,MAAM,WAAW,sBAAuB,SAAQ,oBAAoB;IAClE,IAAI,EAAE,QAAQ,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,SAAS,CAAA;IAC1C,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,SAAS,CAAA;IAC5C,MAAM,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,SAAS,CAAA;IACzC,SAAS,EAAE,MAAM,UAAU,CAAC,UAAU,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"create-experience.d.ts","sourceRoot":"","sources":["../../../../src/plugins/create-experience/create-experience.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,OAAO,KAAK,EACV,UAAU,EAEV,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAGjB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAA;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAE1E,OAAO,KAAK,EA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ACjD,eAAO,MAAM,iBAAiB,wBAAkB,CAAA;AAEhD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,SAAS,GAAG,SAAS,gBAC3C,kBAAkB,KAC/B,iBAAiB,CAAC,CAAC,CAsOrB,CAAA;AAED,eAAO,MAAM,gBAAgB,eAAgB,uBAAuB,KAAG,sBA4LtE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/** @file Plugin that registers builder-created experiences with the client. */
|
|
2
|
+
import type { Plugin } from '../../entities/plugin/plugin';
|
|
3
|
+
import type { SerializableExperience } from './create-experience';
|
|
3
4
|
interface CreateExperiencePluginOptions {
|
|
4
5
|
experiences: SerializableExperience[];
|
|
5
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/create-experience/plugin.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAE1D,OAAO,KAAK,EAAwB,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAGvF,UAAU,6BAA6B;IACrC,WAAW,EAAE,sBAAsB,EAAE,CAAA;CACtC;AAED,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/create-experience/plugin.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAE1D,OAAO,KAAK,EAAwB,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAGvF,UAAU,6BAA6B;IACrC,WAAW,EAAE,sBAAsB,EAAE,CAAA;CACtC;AAED,eAAO,MAAM,sBAAsB,YAAa,6BAA6B,KAAG,MA0B/E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../../../src/plugins/create-experience/serialization.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,MAAM,CAAA;AAElC,eAAO,MAAM,aAAa;
|
|
1
|
+
{"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../../../src/plugins/create-experience/serialization.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,MAAM,CAAA;AAElC,eAAO,MAAM,aAAa;IACxB,SAAS,CAAC,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IAGnC,WAAW,CAAC,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC;CAGtC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Plugin } from '../../entities/plugin/plugin';
|
|
1
|
+
import type { Plugin } from '../../entities/plugin/plugin';
|
|
2
2
|
/**
|
|
3
3
|
* Watches the document for `childList` mutations and reconciles experiences
|
|
4
4
|
* whose declared target selectors match newly added DOM subtrees. Each
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Plugin } from '../../entities/plugin/plugin';
|
|
2
|
-
import { Picked } from '../../picked';
|
|
3
|
-
import { DynamicExperiencesPluginOptions, ExperienceContentResponse, FetchProjectOptions, ProjectConfig } from './types';
|
|
1
|
+
import type { Plugin } from '../../entities/plugin/plugin';
|
|
2
|
+
import type { Picked } from '../../picked';
|
|
3
|
+
import type { DynamicExperiencesPluginOptions, ExperienceContentResponse, FetchProjectOptions, ProjectConfig } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Synchronously registers a complete project config with the client: features, conditions,
|
|
6
6
|
* fields, steps, and experiences, in dependency order.
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
/**
|
|
2
|
+
* @file Types for the dynamic-experiences plugin: project config shapes returned by the Picked API.
|
|
3
|
+
*/
|
|
4
|
+
import type { ExperienceStep } from '../../entities/step/step';
|
|
5
|
+
import type { Field } from '../../entities/field/field';
|
|
6
|
+
import type { ExperienceEdge, ExperienceNode, ExperienceTarget } from '../../entities/experience/experience';
|
|
7
|
+
import type { Condition } from '../../entities/condition/condition';
|
|
8
|
+
import type { LogicRule, LogicValue } from '../../logic-engine';
|
|
6
9
|
/**
|
|
7
10
|
* Wire-format step as returned by the Picked API. Matches {@link ExperienceStep}
|
|
8
11
|
* except that fields are still referenced by ID — the plugin resolves them to
|
|
@@ -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,
|
|
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,kBAExC,8BAA8B,KAAQ,MAmDxC,CAAA"}
|
|
@@ -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,eAAO,MAAM,2BAA2B,
|
|
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,kBAErC,2BAA2B,KAAQ,MA8BrC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/responses-browser-storage/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,UAAU,6BAA6B;IACrC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAiCD,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/responses-browser-storage/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,UAAU,6BAA6B;IACrC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAiCD,eAAO,MAAM,6BAA6B,kBAEvC,6BAA6B,KAAQ,MAuCvC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/single-page-app/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,UAAU,0BAA0B;IAClC;;;;OAIG;IACH,iBAAiB,EAAE,IAAI,CAAA;CACxB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/single-page-app/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,UAAU,0BAA0B;IAClC;;;;OAIG;IACH,iBAAiB,EAAE,IAAI,CAAA;CACxB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,aAAc,0BAA0B,KAAG,MAa1E,CAAA;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAwC5D"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/** @file Web Components plugin — registers a `<picked-root>` custom element that launches a Picked experience by id when connected to the DOM. */
|
|
2
|
+
import type { Plugin } from '../../entities/plugin/plugin';
|
|
2
3
|
export declare const webComponentsPlugin: () => Plugin;
|
|
3
4
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @file Single entry point for the live-preview channel, so the bridge and the receiver share one
|
|
3
|
+
* dynamic-import boundary and neither reaches production bundles.
|
|
4
|
+
*/
|
|
5
|
+
import type { Picked } from './picked';
|
|
2
6
|
/**
|
|
3
7
|
* Starts both halves of the preview channel: the outbound bridge that reports this frame's URL to
|
|
4
8
|
* the dashboard, and the inbound receiver that applies the dashboard's content patches.
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @file Live-preview receiver: applies content patches pushed by the Picked dashboard.
|
|
3
|
+
*
|
|
4
|
+
* Reached only through a dynamic `import()` the client performs when a preview session is detected,
|
|
5
|
+
* so it stays out of production bundles. It touches only `client.contents`, which is
|
|
6
|
+
* framework-agnostic, so React, Svelte and script-tag installs all get live preview without any
|
|
7
|
+
* per-binding code.
|
|
8
|
+
*
|
|
9
|
+
* Trust model: the customer's page does not opt in, so the origin check is the only defence and it
|
|
10
|
+
* cannot come from the page itself. The API issues `previewEmbedderOrigins` alongside the preview
|
|
11
|
+
* project config; every inbound message is validated against that list, and the handshake is posted
|
|
12
|
+
* only to those origins. Never `document.referrer` (it becomes this frame's own origin after an
|
|
13
|
+
* in-frame navigation) and never a wildcard target.
|
|
14
|
+
*
|
|
15
|
+
* The base blob is the SDK's own preview-token fetch, so the receiver announces readiness only once
|
|
16
|
+
* content is registered and patches always land on a server-projected base.
|
|
17
|
+
*/
|
|
18
|
+
import type { Picked } from '../picked';
|
|
2
19
|
/**
|
|
3
20
|
* Starts the live-preview receiver: announces readiness to the allowlisted embedder origins once
|
|
4
21
|
* content is registered, then applies inbound content patches to the client's content index.
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @file Wire protocol for the Picked live-preview channel.
|
|
3
|
+
*
|
|
4
|
+
* **Additive-only.** A message type is never removed, a field's meaning never changes, and an
|
|
5
|
+
* optional field is never promoted to required — new capability arrives as a new optional field or
|
|
6
|
+
* a new message type, and both ends ignore anything they do not recognise. That is what lets an old
|
|
7
|
+
* SDK in the wild degrade in capability rather than fail, and why there is no version floor to keep
|
|
8
|
+
* current. `protocolVersion` on the handshake is diagnostics, not a gate.
|
|
9
|
+
*/
|
|
10
|
+
import type { ContentPatchOp } from './apply-ops';
|
|
2
11
|
/** Current protocol version. Reported on the handshake for support and telemetry only. */
|
|
3
12
|
export declare const PREVIEW_PROTOCOL_VERSION = 1;
|
|
4
13
|
/** Receiver → embedder: the frame is listening and content is registered. */
|