@picked/client 0.0.1-dev.1789541668638 → 0.0.1-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/README.md +8 -0
- package/dist/cjs/index.js +1 -4
- package/dist/cjs/plugins/create-experience/index.js +1 -1
- package/dist/cjs/plugins/experience-browserstorage-plugin/index.js +1 -0
- package/dist/cjs/plugins/history-browserstorage-plugin/index.js +1 -0
- package/dist/cjs/plugins/responses-browserstorage-plugin/index.js +1 -0
- package/dist/cjs/plugins/responses-indexeddb-plugin/index.js +1 -0
- package/dist/cjs/plugins/shopify/index.js +1 -0
- package/dist/cjs/plugins/single-page-app/index.js +1 -1
- package/dist/cjs/plugins/window-object/index.js +1 -1
- package/dist/cjs/server/index.js +1 -1
- package/dist/esm/index.js +732 -1814
- package/dist/esm/plugins/create-experience/index.js +398 -490
- package/dist/esm/plugins/experience-browserstorage-plugin/index.js +38 -0
- package/dist/esm/plugins/history-browserstorage-plugin/index.js +26 -0
- package/dist/esm/plugins/responses-browserstorage-plugin/index.js +36 -0
- package/dist/esm/plugins/responses-indexeddb-plugin/index.js +101 -0
- package/dist/esm/plugins/shopify/index.js +59 -0
- package/dist/esm/plugins/single-page-app/index.js +35 -31
- package/dist/esm/plugins/window-object/index.js +9 -9
- package/dist/esm/server/index.js +89 -141
- package/dist/experience-instance-6ZKZS7dF.cjs +1 -0
- package/dist/experience-instance-BA0EXYg5.js +712 -0
- package/dist/id-BKIWbSTy.cjs +1 -0
- package/dist/id-BW-g3y32.js +6 -0
- package/dist/logger-BsmHUUw1.cjs +1 -0
- package/dist/logger-C9a75KZn.js +5 -0
- package/dist/object-BbFTsGh3.cjs +1 -0
- package/dist/object-JwZ58NOH.js +28 -0
- package/dist/storage-BPJwmlva.cjs +1 -0
- package/dist/storage-D87xFySf.js +85 -0
- package/dist/supports-BvrzQAVk.js +79 -0
- package/dist/supports-C0y3-V5V.cjs +1 -0
- package/dist/types/client.d.ts +23 -119
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/entities/component/component.d.ts +6 -45
- package/dist/types/entities/component/component.d.ts.map +1 -1
- package/dist/types/entities/experience/experience.d.ts +99 -160
- package/dist/types/entities/experience/experience.d.ts.map +1 -1
- package/dist/types/entities/experience-instance/experience-instance.d.ts +113 -83
- package/dist/types/entities/experience-instance/experience-instance.d.ts.map +1 -1
- package/dist/types/entities/feature/feature.d.ts +8 -118
- package/dist/types/entities/feature/feature.d.ts.map +1 -1
- package/dist/types/entities/field/field.d.ts +64 -96
- package/dist/types/entities/field/field.d.ts.map +1 -1
- package/dist/types/entities/framework/framework.d.ts +7 -32
- 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/history/history.d.ts.map +1 -1
- package/dist/types/entities/plugin/plugin.d.ts +2 -41
- package/dist/types/entities/plugin/plugin.d.ts.map +1 -1
- package/dist/types/entities/predicate/predicate.d.ts +7 -30
- package/dist/types/entities/predicate/predicate.d.ts.map +1 -1
- package/dist/types/entities/project/project.d.ts +9 -0
- package/dist/types/entities/project/project.d.ts.map +1 -0
- package/dist/types/entities/response/response.d.ts +21 -57
- package/dist/types/entities/response/response.d.ts.map +1 -1
- package/dist/types/exports.d.ts +4 -22
- package/dist/types/exports.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -12
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/logic-engine.d.ts +11 -13
- package/dist/types/logic-engine.d.ts.map +1 -1
- package/dist/types/picked.d.ts +184 -381
- package/dist/types/picked.d.ts.map +1 -1
- package/dist/types/ping.d.ts +10 -0
- package/dist/types/ping.d.ts.map +1 -0
- package/dist/types/plugins/create-experience/create-experience.d.ts +44 -119
- package/dist/types/plugins/create-experience/create-experience.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/index.d.ts +2 -2
- package/dist/types/plugins/create-experience/index.d.ts.map +1 -1
- package/dist/types/plugins/create-experience/plugin.d.ts +2 -3
- 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/experience-browserstorage-plugin/index.d.ts.map +1 -0
- package/dist/types/plugins/experience-browserstorage-plugin/plugin.d.ts +6 -0
- package/dist/types/plugins/experience-browserstorage-plugin/plugin.d.ts.map +1 -0
- package/dist/types/plugins/history-browserstorage-plugin/index.d.ts.map +1 -0
- package/dist/types/plugins/{history-browser-storage → history-browserstorage-plugin}/plugin.d.ts +1 -2
- package/dist/types/plugins/history-browserstorage-plugin/plugin.d.ts.map +1 -0
- package/dist/types/plugins/responses-browserstorage-plugin/index.d.ts.map +1 -0
- package/dist/types/plugins/responses-browserstorage-plugin/plugin.d.ts +6 -0
- package/dist/types/plugins/responses-browserstorage-plugin/plugin.d.ts.map +1 -0
- package/dist/types/plugins/responses-indexeddb-plugin/index.d.ts.map +1 -0
- package/dist/types/plugins/responses-indexeddb-plugin/plugin.d.ts +3 -0
- package/dist/types/plugins/responses-indexeddb-plugin/plugin.d.ts.map +1 -0
- package/dist/types/plugins/shopify/index.d.ts +2 -0
- package/dist/types/plugins/shopify/index.d.ts.map +1 -0
- package/dist/types/plugins/shopify/plugin.d.ts +3 -0
- package/dist/types/plugins/shopify/plugin.d.ts.map +1 -0
- package/dist/types/plugins/shopify/shopify.d.ts +28 -0
- package/dist/types/plugins/shopify/shopify.d.ts.map +1 -0
- package/dist/types/plugins/single-page-app/plugin.d.ts +2 -2
- package/dist/types/plugins/single-page-app/plugin.d.ts.map +1 -1
- package/dist/types/plugins/window-object/plugin.d.ts +2 -2
- package/dist/types/server/index.d.ts +3 -18
- package/dist/types/server/index.d.ts.map +1 -1
- package/dist/types/utils/dom.d.ts +6 -4
- package/dist/types/utils/dom.d.ts.map +1 -1
- package/dist/types/utils/events.d.ts +38 -83
- package/dist/types/utils/events.d.ts.map +1 -1
- package/dist/types/utils/global-obj.d.ts +2 -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/indexed-db.d.ts +1 -2
- package/dist/types/utils/indexed-db.d.ts.map +1 -1
- package/dist/types/utils/logger.d.ts +1 -2
- package/dist/types/utils/logger.d.ts.map +1 -1
- package/dist/types/utils/node-tree/get-next-node-from-conditional.d.ts +3 -0
- package/dist/types/utils/node-tree/get-next-node-from-conditional.d.ts.map +1 -0
- 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 +7 -17
- 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 +8 -19
- 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 +7 -31
- package/dist/types/utils/node-tree/next-reachable-step-nodes.d.ts.map +1 -1
- package/dist/types/utils/nodes.d.ts +2 -3
- package/dist/types/utils/nodes.d.ts.map +1 -1
- package/dist/types/utils/object.d.ts +8 -0
- package/dist/types/utils/object.d.ts.map +1 -1
- package/dist/types/utils/rules-logic.d.ts +3 -33
- package/dist/types/utils/rules-logic.d.ts.map +1 -1
- package/dist/types/utils/search-params.d.ts.map +1 -1
- package/dist/types/utils/state-snaphot.d.ts +16 -0
- package/dist/types/utils/state-snaphot.d.ts.map +1 -0
- package/dist/types/utils/storage.d.ts +11 -374
- package/dist/types/utils/storage.d.ts.map +1 -1
- package/dist/types/utils/supports.d.ts +0 -87
- package/dist/types/utils/supports.d.ts.map +1 -1
- package/package.json +49 -182
- package/dist/.tsbuildinfo +0 -1
- package/dist/api-C7q_7vxn.js +0 -22
- package/dist/api-Ctvh1qkk.cjs +0 -1
- package/dist/cjs/form/index.js +0 -1
- package/dist/cjs/plugins/dom-observer/index.js +0 -1
- package/dist/cjs/plugins/dynamic-experiences/index.js +0 -1
- package/dist/cjs/plugins/experience-browser-storage/index.js +0 -1
- package/dist/cjs/plugins/history-browser-storage/index.js +0 -1
- package/dist/cjs/plugins/responses-browser-storage/index.js +0 -1
- package/dist/cjs/plugins/responses-indexeddb/index.js +0 -1
- package/dist/cjs/plugins/telemetry/index.js +0 -1
- package/dist/cjs/plugins/web-components/index.js +0 -1
- package/dist/cjs/preview/index.js +0 -1
- package/dist/docs/_root.css +0 -101
- package/dist/docs/explanation/conditions-and-the-logic-engine.md +0 -94
- package/dist/docs/explanation/content-references.md +0 -99
- package/dist/docs/explanation/feature-flag-allocation.md +0 -218
- package/dist/docs/explanation/how-picked-works.md +0 -124
- package/dist/docs/explanation/how-pickedql-works.md +0 -76
- package/dist/docs/explanation/pages-and-flows.md +0 -64
- package/dist/docs/explanation/the-content-model.md +0 -87
- package/dist/docs/explanation/the-two-apis.md +0 -68
- package/dist/docs/explanation/why-server-side-rendering.md +0 -76
- package/dist/docs/explanation/workspaces-and-versions.md +0 -71
- package/dist/docs/how-to/add-a-step-field-or-action.md +0 -43
- package/dist/docs/how-to/analytics/index.md +0 -316
- package/dist/docs/how-to/archive-or-delete-a-workspace.md +0 -46
- package/dist/docs/how-to/authenticate-the-cli.md +0 -97
- package/dist/docs/how-to/authenticate-with-a-magic-link.md +0 -40
- package/dist/docs/how-to/authenticate-with-a-password.md +0 -51
- package/dist/docs/how-to/authenticate-with-an-api-key.md +0 -51
- package/dist/docs/how-to/authenticate-with-oauth.md +0 -40
- package/dist/docs/how-to/build-a-flow.md +0 -83
- package/dist/docs/how-to/connect-the-mcp-server.md +0 -38
- package/dist/docs/how-to/create-a-content-entry.md +0 -48
- package/dist/docs/how-to/create-a-project.md +0 -29
- package/dist/docs/how-to/create-an-experience.md +0 -42
- package/dist/docs/how-to/create-and-revoke-an-api-key.md +0 -42
- package/dist/docs/how-to/debug-with-the-chrome-extension.md +0 -57
- package/dist/docs/how-to/define-a-page-layout.md +0 -46
- package/dist/docs/how-to/fill-and-publish-a-page.md +0 -66
- package/dist/docs/how-to/install-the-gtm-template.md +0 -84
- package/dist/docs/how-to/install-the-sdk.md +0 -93
- package/dist/docs/how-to/install-the-vite-plugin.md +0 -69
- package/dist/docs/how-to/invite-and-remove-members.md +0 -35
- package/dist/docs/how-to/point-one-entry-at-another.md +0 -61
- package/dist/docs/how-to/preview-a-workspace.md +0 -28
- package/dist/docs/how-to/publish-a-workspace.md +0 -30
- package/dist/docs/how-to/read-a-feature-flag.md +0 -113
- package/dist/docs/how-to/read-a-referenced-entry.md +0 -109
- package/dist/docs/how-to/register-a-component.md +0 -55
- package/dist/docs/how-to/register-an-action-handler.md +0 -67
- package/dist/docs/how-to/render-a-step-form.md +0 -131
- package/dist/docs/how-to/render-an-unpublished-preview.md +0 -41
- package/dist/docs/how-to/reuse-a-section.md +0 -53
- package/dist/docs/how-to/reuse-a-step-field-or-action.md +0 -28
- package/dist/docs/how-to/roll-back-a-published-version.md +0 -26
- package/dist/docs/how-to/run-an-ab-test.md +0 -49
- package/dist/docs/how-to/run-code-on-a-form-submission.md +0 -125
- package/dist/docs/how-to/server-render-a-page.md +0 -81
- package/dist/docs/how-to/set-a-content-security-policy.md +0 -32
- package/dist/docs/how-to/set-up-mfa.md +0 -69
- package/dist/docs/how-to/switch-workspaces.md +0 -122
- package/dist/docs/how-to/upload-and-use-an-asset.mdx +0 -73
- package/dist/docs/how-to/validate-a-field.md +0 -52
- package/dist/docs/how-to/write-a-condition.md +0 -45
- package/dist/docs/how-to/write-a-predicate.md +0 -60
- package/dist/docs/index.md +0 -59
- package/dist/docs/reference/dashboard/actions.mdx +0 -53
- package/dist/docs/reference/dashboard/api-keys.mdx +0 -38
- package/dist/docs/reference/dashboard/conditions.mdx +0 -42
- package/dist/docs/reference/dashboard/content/asset-library.mdx +0 -63
- package/dist/docs/reference/dashboard/content/blocks.mdx +0 -57
- package/dist/docs/reference/dashboard/content/content-entries.mdx +0 -95
- package/dist/docs/reference/dashboard/content/models.mdx +0 -108
- package/dist/docs/reference/dashboard/content/pages.mdx +0 -61
- package/dist/docs/reference/dashboard/experiences.mdx +0 -51
- package/dist/docs/reference/dashboard/features.mdx +0 -154
- package/dist/docs/reference/dashboard/fields.mdx +0 -106
- package/dist/docs/reference/dashboard/flow-builder/canvas.mdx +0 -58
- package/dist/docs/reference/dashboard/flow-builder/condition-builder.md +0 -57
- package/dist/docs/reference/dashboard/flow-builder/keyboard-shortcuts.md +0 -72
- package/dist/docs/reference/dashboard/flow-builder/nodes.md +0 -63
- package/dist/docs/reference/dashboard/projects.mdx +0 -44
- package/dist/docs/reference/dashboard/reports.mdx +0 -43
- package/dist/docs/reference/dashboard/steps.mdx +0 -37
- package/dist/docs/reference/dashboard/team-management.md +0 -29
- package/dist/docs/reference/dashboard/workspace-versioning.mdx +0 -30
- package/dist/docs/reference/dashboard/workspaces.mdx +0 -76
- package/dist/docs/reference/delivery-api/experience-content.md +0 -152
- package/dist/docs/reference/delivery-api/index.md +0 -45
- package/dist/docs/reference/delivery-api/preview-caching-crawling.md +0 -79
- package/dist/docs/reference/delivery-api/project-config.md +0 -65
- package/dist/docs/reference/delivery-api/workspace-schema.md +0 -85
- package/dist/docs/reference/glossary.md +0 -181
- package/dist/docs/reference/management-api/authentication.md +0 -74
- package/dist/docs/reference/management-api/authorization-and-scopes.md +0 -285
- package/dist/docs/reference/management-api/error-handling.md +0 -233
- package/dist/docs/reference/management-api/pagination.md +0 -192
- package/dist/docs/reference/pickedql/data-sources.md +0 -174
- package/dist/docs/reference/pickedql/dimensions.md +0 -103
- package/dist/docs/reference/pickedql/filtering.md +0 -64
- package/dist/docs/reference/pickedql/index.md +0 -18
- package/dist/docs/reference/pickedql/schema.md +0 -172
- package/dist/docs/reference/pickedql/virtual-functions.md +0 -248
- package/dist/docs/reference/sdk/actions.md +0 -30
- package/dist/docs/reference/sdk/analytics-events.md +0 -445
- package/dist/docs/reference/sdk/conditions.md +0 -147
- package/dist/docs/reference/sdk/content-security-policy.md +0 -21
- package/dist/docs/reference/sdk/content.md +0 -213
- package/dist/docs/reference/sdk/experiences.md +0 -51
- package/dist/docs/reference/sdk/features.md +0 -256
- package/dist/docs/reference/sdk/fields.md +0 -255
- package/dist/docs/reference/sdk/index.md +0 -68
- package/dist/docs/reference/sdk/plugins/create-experience.md +0 -123
- package/dist/docs/reference/sdk/plugins/dynamic-experiences.md +0 -74
- package/dist/docs/reference/sdk/plugins/index.md +0 -29
- package/dist/docs/reference/sdk/plugins/window-object.md +0 -25
- package/dist/docs/reference/sdk/predicates.md +0 -43
- package/dist/docs/reference/sdk/ssr/index.md +0 -33
- package/dist/docs/reference/sdk/ssr/rendering-and-hydration.md +0 -103
- package/dist/docs/reference/sdk/ssr/serialize.md +0 -80
- package/dist/docs/reference/sdk/ssr/slots-and-placements.md +0 -59
- package/dist/docs/reference/sdk/steps.md +0 -86
- package/dist/docs/reference/sdk/type-generation.md +0 -196
- package/dist/docs/reference/tools/chrome-extension.md +0 -16
- package/dist/docs/reference/tools/cli.md +0 -146
- package/dist/docs/reference/tools/image-optimisation-service.md +0 -104
- package/dist/docs/reference/tools/mcp.md +0 -90
- package/dist/docs/reference/tools/vite-plugin.md +0 -163
- package/dist/docs/tutorials/first-api-call.md +0 -228
- package/dist/docs/tutorials/first-experience-in-the-dashboard.mdx +0 -143
- package/dist/docs/tutorials/first-experience.mdx +0 -254
- package/dist/docs/tutorials/first-server-rendered-page.mdx +0 -186
- package/dist/dom-BqcToNL0.js +0 -82
- package/dist/dom-DlLH3FxV.cjs +0 -1
- package/dist/emit-D-tLiWL1.cjs +0 -1
- package/dist/emit-Ds2EG7CB.js +0 -14
- package/dist/esm/form/index.js +0 -565
- package/dist/esm/plugins/dom-observer/index.js +0 -87
- package/dist/esm/plugins/dynamic-experiences/index.js +0 -5
- package/dist/esm/plugins/experience-browser-storage/index.js +0 -38
- package/dist/esm/plugins/history-browser-storage/index.js +0 -26
- package/dist/esm/plugins/responses-browser-storage/index.js +0 -71
- package/dist/esm/plugins/responses-indexeddb/index.js +0 -89
- package/dist/esm/plugins/telemetry/index.js +0 -100
- package/dist/esm/plugins/web-components/index.js +0 -19
- package/dist/esm/preview/index.js +0 -2
- package/dist/experience-instance-B9S6Yf0N.js +0 -711
- package/dist/experience-instance-D8rOg6We.cjs +0 -1
- package/dist/id-Bo4RBeOs.js +0 -4
- package/dist/id-Js-62re-.cjs +0 -1
- package/dist/inert-script-report-B_bMPRzp.js +0 -18
- package/dist/inert-script-report-ijRHPtcY.cjs +0 -1
- package/dist/logger-CSTvAyyB.cjs +0 -1
- package/dist/logger-DMN6TxJJ.js +0 -4
- package/dist/object-BUDGxEqy.js +0 -25
- package/dist/object-CIkt7Fkr.cjs +0 -1
- package/dist/plugin-ChafFq6S.js +0 -194
- package/dist/plugin-Dn25Gffy.cjs +0 -1
- package/dist/preview-channel-CSr96XAo.js +0 -98
- package/dist/preview-channel-Cx0e6fye.cjs +0 -1
- package/dist/protocol-Bb_vpLKE.cjs +0 -1
- package/dist/protocol-C5KkkiZc.js +0 -84
- package/dist/provider-B8wvmeC8.js +0 -98
- package/dist/provider-BBLlQOjV.cjs +0 -1
- package/dist/registry-C1t8l3t9.cjs +0 -1
- package/dist/registry-CXZv0uLg.js +0 -18
- package/dist/rules-logic-CGZIYgAI.cjs +0 -1
- package/dist/rules-logic-HesIUCu6.js +0 -13
- package/dist/storage-1MW3-_As.js +0 -103
- package/dist/storage-DUw9UJ2h.cjs +0 -1
- package/dist/supports-CO9bJGNl.js +0 -92
- package/dist/supports-DBzjGaWD.cjs +0 -1
- package/dist/types/data-source/api.d.ts +0 -60
- package/dist/types/data-source/api.d.ts.map +0 -1
- package/dist/types/data-source/provider.d.ts +0 -103
- package/dist/types/data-source/provider.d.ts.map +0 -1
- package/dist/types/data-source/registry.d.ts +0 -26
- package/dist/types/data-source/registry.d.ts.map +0 -1
- package/dist/types/data-source/request-observer.d.ts +0 -62
- package/dist/types/data-source/request-observer.d.ts.map +0 -1
- package/dist/types/data-source/virtual-data.d.ts +0 -19
- package/dist/types/data-source/virtual-data.d.ts.map +0 -1
- package/dist/types/entities/action/action.d.ts +0 -85
- package/dist/types/entities/action/action.d.ts.map +0 -1
- package/dist/types/entities/component/lazyComponent.d.ts +0 -11
- package/dist/types/entities/component/lazyComponent.d.ts.map +0 -1
- package/dist/types/entities/condition/condition.d.ts +0 -29
- package/dist/types/entities/condition/condition.d.ts.map +0 -1
- package/dist/types/entities/content/content.d.ts +0 -53
- package/dist/types/entities/content/content.d.ts.map +0 -1
- package/dist/types/entities/content/reference.d.ts +0 -101
- package/dist/types/entities/content/reference.d.ts.map +0 -1
- package/dist/types/entities/field/policies.d.ts +0 -35
- package/dist/types/entities/field/policies.d.ts.map +0 -1
- package/dist/types/entities/response/response-validation.d.ts +0 -75
- package/dist/types/entities/response/response-validation.d.ts.map +0 -1
- package/dist/types/entities/session/session.d.ts +0 -46
- package/dist/types/entities/session/session.d.ts.map +0 -1
- package/dist/types/entities/step/step.d.ts +0 -56
- package/dist/types/entities/step/step.d.ts.map +0 -1
- package/dist/types/form/build-responses.d.ts +0 -18
- package/dist/types/form/build-responses.d.ts.map +0 -1
- package/dist/types/form/create-field-evaluator.d.ts +0 -28
- package/dist/types/form/create-field-evaluator.d.ts.map +0 -1
- package/dist/types/form/create-field-validation.d.ts +0 -60
- package/dist/types/form/create-field-validation.d.ts.map +0 -1
- package/dist/types/form/create-form.d.ts +0 -153
- package/dist/types/form/create-form.d.ts.map +0 -1
- package/dist/types/form/create-submit-pipeline.d.ts +0 -116
- package/dist/types/form/create-submit-pipeline.d.ts.map +0 -1
- package/dist/types/form/get-step-fields.d.ts +0 -19
- package/dist/types/form/get-step-fields.d.ts.map +0 -1
- package/dist/types/form/index.d.ts +0 -11
- package/dist/types/form/index.d.ts.map +0 -1
- package/dist/types/lifecycle/condition-selection.d.ts +0 -146
- package/dist/types/lifecycle/condition-selection.d.ts.map +0 -1
- package/dist/types/lifecycle/lifecycle.d.ts +0 -48
- package/dist/types/lifecycle/lifecycle.d.ts.map +0 -1
- package/dist/types/lifecycle/rules-logic.d.ts +0 -25
- package/dist/types/lifecycle/rules-logic.d.ts.map +0 -1
- package/dist/types/lifecycle/state-snapshot.d.ts +0 -38
- package/dist/types/lifecycle/state-snapshot.d.ts.map +0 -1
- package/dist/types/plugins/dom-observer/index.d.ts +0 -3
- package/dist/types/plugins/dom-observer/index.d.ts.map +0 -1
- package/dist/types/plugins/dom-observer/plugin.d.ts +0 -50
- package/dist/types/plugins/dom-observer/plugin.d.ts.map +0 -1
- package/dist/types/plugins/dynamic-experiences/hash.d.ts +0 -105
- package/dist/types/plugins/dynamic-experiences/hash.d.ts.map +0 -1
- package/dist/types/plugins/dynamic-experiences/index.d.ts +0 -7
- package/dist/types/plugins/dynamic-experiences/index.d.ts.map +0 -1
- package/dist/types/plugins/dynamic-experiences/plugin.d.ts +0 -49
- package/dist/types/plugins/dynamic-experiences/plugin.d.ts.map +0 -1
- package/dist/types/plugins/dynamic-experiences/types.d.ts +0 -45
- package/dist/types/plugins/dynamic-experiences/types.d.ts.map +0 -1
- package/dist/types/plugins/experience-browser-storage/index.d.ts.map +0 -1
- package/dist/types/plugins/experience-browser-storage/plugin.d.ts +0 -7
- package/dist/types/plugins/experience-browser-storage/plugin.d.ts.map +0 -1
- package/dist/types/plugins/history-browser-storage/index.d.ts.map +0 -1
- package/dist/types/plugins/history-browser-storage/plugin.d.ts.map +0 -1
- package/dist/types/plugins/responses-browser-storage/index.d.ts.map +0 -1
- package/dist/types/plugins/responses-browser-storage/plugin.d.ts +0 -18
- package/dist/types/plugins/responses-browser-storage/plugin.d.ts.map +0 -1
- package/dist/types/plugins/responses-indexeddb/index.d.ts.map +0 -1
- package/dist/types/plugins/responses-indexeddb/plugin.d.ts +0 -3
- package/dist/types/plugins/responses-indexeddb/plugin.d.ts.map +0 -1
- package/dist/types/plugins/telemetry/emit.d.ts +0 -18
- package/dist/types/plugins/telemetry/emit.d.ts.map +0 -1
- package/dist/types/plugins/telemetry/index.d.ts +0 -4
- package/dist/types/plugins/telemetry/index.d.ts.map +0 -1
- package/dist/types/plugins/telemetry/plugin-summary.d.ts +0 -10
- package/dist/types/plugins/telemetry/plugin-summary.d.ts.map +0 -1
- package/dist/types/plugins/telemetry/plugin.d.ts +0 -45
- package/dist/types/plugins/telemetry/plugin.d.ts.map +0 -1
- package/dist/types/plugins/web-components/index.d.ts +0 -2
- package/dist/types/plugins/web-components/index.d.ts.map +0 -1
- package/dist/types/plugins/web-components/plugin.d.ts +0 -4
- package/dist/types/plugins/web-components/plugin.d.ts.map +0 -1
- package/dist/types/preview/index.d.ts +0 -18
- package/dist/types/preview/index.d.ts.map +0 -1
- package/dist/types/preview-bridge/index.d.ts +0 -14
- package/dist/types/preview-bridge/index.d.ts.map +0 -1
- package/dist/types/preview-channel.d.ts +0 -16
- package/dist/types/preview-channel.d.ts.map +0 -1
- package/dist/types/preview-receiver/apply-ops.d.ts +0 -32
- package/dist/types/preview-receiver/apply-ops.d.ts.map +0 -1
- package/dist/types/preview-receiver/index.d.ts +0 -32
- package/dist/types/preview-receiver/index.d.ts.map +0 -1
- package/dist/types/preview-receiver/protocol.d.ts +0 -69
- package/dist/types/preview-receiver/protocol.d.ts.map +0 -1
- package/dist/types/schema-registry.d.ts +0 -206
- package/dist/types/schema-registry.d.ts.map +0 -1
- package/dist/types/server/serialize.d.ts +0 -87
- package/dist/types/server/serialize.d.ts.map +0 -1
- package/dist/types/typed-content.d.ts +0 -17
- package/dist/types/typed-content.d.ts.map +0 -1
- package/dist/types/utils/client-telemetry.d.ts +0 -25
- package/dist/types/utils/client-telemetry.d.ts.map +0 -1
- package/dist/types/utils/content-path.d.ts +0 -37
- package/dist/types/utils/content-path.d.ts.map +0 -1
- package/dist/types/utils/html-asset-value.d.ts +0 -20
- package/dist/types/utils/html-asset-value.d.ts.map +0 -1
- package/dist/types/utils/inert-script-report.d.ts +0 -40
- package/dist/types/utils/inert-script-report.d.ts.map +0 -1
- package/dist/types/utils/node-tree/get-next-node-from-action.d.ts +0 -25
- package/dist/types/utils/node-tree/get-next-node-from-action.d.ts.map +0 -1
- package/dist/types/utils/node-tree/get-next-node-from-condition.d.ts +0 -17
- package/dist/types/utils/node-tree/get-next-node-from-condition.d.ts.map +0 -1
- package/dist/types/utils/node-tree/node-adjacency.d.ts +0 -50
- package/dist/types/utils/node-tree/node-adjacency.d.ts.map +0 -1
- package/dist/types/utils/node-tree/node-tree-index.d.ts +0 -57
- package/dist/types/utils/node-tree/node-tree-index.d.ts.map +0 -1
- package/dist/types/utils/picked-config.d.ts +0 -39
- package/dist/types/utils/picked-config.d.ts.map +0 -1
- package/dist/types/utils/preview-session.d.ts +0 -12
- package/dist/types/utils/preview-session.d.ts.map +0 -1
- package/dist/types/utils/rehydrate-scripts.d.ts +0 -50
- package/dist/types/utils/rehydrate-scripts.d.ts.map +0 -1
- package/dist/types/utils/render-string.d.ts +0 -24
- package/dist/types/utils/render-string.d.ts.map +0 -1
- package/dist/types/utils/user-timing.d.ts +0 -21
- package/dist/types/utils/user-timing.d.ts.map +0 -1
- package/dist/version-CLjPfmxk.cjs +0 -1
- package/dist/version-CPKulHMH.js +0 -256
- /package/dist/types/plugins/{experience-browser-storage → experience-browserstorage-plugin}/index.d.ts +0 -0
- /package/dist/types/plugins/{history-browser-storage → history-browserstorage-plugin}/index.d.ts +0 -0
- /package/dist/types/plugins/{responses-browser-storage → responses-browserstorage-plugin}/index.d.ts +0 -0
- /package/dist/types/plugins/{responses-indexeddb → responses-indexeddb-plugin}/index.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-adjacency.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/node-adjacency.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAI1F,oFAAoF;AACpF,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC7C,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAA;IACpD,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAA;CACrD;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,UACvB,cAAc,EAAE,SAChB,cAAc,EAAE,KACtB,aAyBF,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,cACf,aAAa,UAChB,MAAM,KACb,SAAS,cAAc,EAAqD,CAAA;AAE/E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,cACf,aAAa,UAChB,MAAM,KACb,SAAS,cAAc,EAAqD,CAAA"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/** @file Per-tree tables of the min and max steps from every node to a leaf and back to an origin. */
|
|
2
|
-
import type { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
|
|
3
|
-
import type { NodeAdjacency } from './node-adjacency';
|
|
4
|
-
/** Fewest and most steps between a node and a terminus, `[-1, -1]` when none is reachable. */
|
|
5
|
-
export type MinMaxSteps = [number, number];
|
|
6
|
-
/** Min/max step distances for every node of one tree, keyed by node id. */
|
|
7
|
-
export interface MinMaxStepTables {
|
|
8
|
-
stepsToLeaf: ReadonlyMap<string, MinMaxSteps>;
|
|
9
|
-
stepsToOrigin: ReadonlyMap<string, MinMaxSteps>;
|
|
10
|
-
/** Node visits spent building the tables. Grows linearly with the node count. */
|
|
11
|
-
nodeVisits: number;
|
|
12
|
-
}
|
|
13
|
-
/** One flow graph's adjacency lookups alongside its min/max step tables. */
|
|
14
|
-
export type NodeTreeIndex = NodeAdjacency & MinMaxStepTables;
|
|
15
|
-
/**
|
|
16
|
-
* Indexes a flow graph and tables, for every node in it, the fewest and most steps to
|
|
17
|
-
* a leaf and back to an origin.
|
|
18
|
-
*
|
|
19
|
-
* The whole table costs one pass over the tree, so a caller holding it reads any node's
|
|
20
|
-
* pair with a map lookup. Build it once per tree and read it per node change.
|
|
21
|
-
*
|
|
22
|
-
* @param {ExperienceNode[]} nodes - Every node in the tree.
|
|
23
|
-
* @param {ExperienceEdge[]} edges - Every edge in the tree.
|
|
24
|
-
* @returns {NodeTreeIndex} The adjacency lookups and the step tables.
|
|
25
|
-
* @example
|
|
26
|
-
* ```typescript
|
|
27
|
-
* const tree = createNodeTreeIndex(nodes, edges)
|
|
28
|
-
* const [min, max] = readStepsToLeaf(tree, currentNode)
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare const createNodeTreeIndex: (nodes: ExperienceNode[], edges: ExperienceEdge[]) => NodeTreeIndex;
|
|
32
|
-
/**
|
|
33
|
-
* Reads the fewest and most steps from a node to a leaf.
|
|
34
|
-
*
|
|
35
|
-
* @param {NodeTreeIndex} tree - The indexed tree.
|
|
36
|
-
* @param {ExperienceNode} node - The node to read.
|
|
37
|
-
* @returns {MinMaxSteps} The pair, `[-1, -1]` when no leaf is reachable.
|
|
38
|
-
* @example
|
|
39
|
-
* ```typescript
|
|
40
|
-
* const [min, max] = readStepsToLeaf(tree, currentNode)
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
export declare const readStepsToLeaf: (tree: NodeTreeIndex, node: ExperienceNode) => MinMaxSteps;
|
|
44
|
-
/**
|
|
45
|
-
* Reads the fewest and most steps from a node back to an origin, where the first origin
|
|
46
|
-
* the walk reaches ends it.
|
|
47
|
-
*
|
|
48
|
-
* @param {NodeTreeIndex} tree - The indexed tree.
|
|
49
|
-
* @param {ExperienceNode} node - The node to read.
|
|
50
|
-
* @returns {MinMaxSteps} The pair, `[-1, -1]` when no origin is reachable.
|
|
51
|
-
* @example
|
|
52
|
-
* ```typescript
|
|
53
|
-
* const [min, max] = readStepsToOrigin(tree, currentNode)
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
export declare const readStepsToOrigin: (tree: NodeTreeIndex, node: ExperienceNode) => MinMaxSteps;
|
|
57
|
-
//# sourceMappingURL=node-tree-index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-tree-index.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/node-tree-index.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAC1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAGrD,8FAA8F;AAC9F,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAE1C,2EAA2E;AAC3E,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAC7C,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAC/C,iFAAiF;IACjF,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,4EAA4E;AAC5E,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,gBAAgB,CAAA;AAsd5D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,UACvB,cAAc,EAAE,SAChB,cAAc,EAAE,KACtB,aAuBF,CAAA;AAkCD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,SAAU,aAAa,QAAQ,cAAc,KAAG,WAQ3E,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,SAAU,aAAa,QAAQ,cAAc,KAAG,WAO7E,CAAA"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/** @file Resolves the project id for a Picked client from options, window config, or script tag attributes. */
|
|
2
|
-
import type { CreateClientOptions } from '../client';
|
|
3
|
-
/** Subset of {@link CreateClientOptions} exposed on `window.pickedConfig`. */
|
|
4
|
-
interface WindowPickedConfig {
|
|
5
|
-
organizationId?: string;
|
|
6
|
-
projectId?: string;
|
|
7
|
-
previewToken?: string;
|
|
8
|
-
apiUrl?: string;
|
|
9
|
-
dashboardUrl?: string;
|
|
10
|
-
documentationSiteUrl?: string;
|
|
11
|
-
}
|
|
12
|
-
declare global {
|
|
13
|
-
interface Window {
|
|
14
|
-
pickedConfig?: WindowPickedConfig;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Reads `window.pickedConfig` when running in a browser.
|
|
19
|
-
*
|
|
20
|
-
* @template ExtendedPickedConfig - Additional keys consumers attach to the window config.
|
|
21
|
-
* @returns {Readonly<Partial<CreateClientOptions> & ExtendedPickedConfig> | undefined} The window config, if set.
|
|
22
|
-
* @example
|
|
23
|
-
* getPickedConfig<{ theme: string }>()?.theme
|
|
24
|
-
*/
|
|
25
|
-
export declare function getPickedConfig<ExtendedPickedConfig extends Record<string, unknown> | undefined>(): Readonly<Partial<CreateClientOptions> & ExtendedPickedConfig> | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Resolves the Picked project id from the supplied options, falling back to
|
|
28
|
-
* `window.pickedConfig.projectId` and then to a `data-projectid` (or
|
|
29
|
-
* `project-id`) attribute on a `picked_script`/`picked`/`cvly` script tag.
|
|
30
|
-
*
|
|
31
|
-
* @param {CreateClientOptions} options - Options passed to `createClient`.
|
|
32
|
-
* @returns {string} The resolved project id.
|
|
33
|
-
* @throws {Error} If no project id can be resolved from any source.
|
|
34
|
-
* @example
|
|
35
|
-
* getCreateClientProjectId({ projectId: 'proj-abc' })
|
|
36
|
-
*/
|
|
37
|
-
export declare function getCreateClientProjectId(options: CreateClientOptions): string;
|
|
38
|
-
export {};
|
|
39
|
-
//# sourceMappingURL=picked-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"picked-config.d.ts","sourceRoot":"","sources":["../../../src/utils/picked-config.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAC/G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAGpD,8EAA8E;AAC9E,UAAU,kBAAkB;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,YAAY,CAAC,EAAE,kBAAkB,CAAA;KAClC;CACF;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,oBAAoB,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,+EAUjE;AAyCD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAqB7E"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** Search parameter the dashboard appends to the preview iframe's URL. */
|
|
2
|
-
export declare const PREVIEW_TOKEN_PARAM = "preview-token";
|
|
3
|
-
/**
|
|
4
|
-
* Whether this frame is running as a Picked live-preview session: inside an iframe, with a preview
|
|
5
|
-
* token on the URL.
|
|
6
|
-
*
|
|
7
|
-
* @returns {boolean} True when the frame is a preview session.
|
|
8
|
-
* @example
|
|
9
|
-
* if (isPreviewSession()) enableMorphingRender()
|
|
10
|
-
*/
|
|
11
|
-
export declare function isPreviewSession(): boolean;
|
|
12
|
-
//# sourceMappingURL=preview-session.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preview-session.d.ts","sourceRoot":"","sources":["../../../src/utils/preview-session.ts"],"names":[],"mappings":"AAUA,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,kBAAkB,CAAA;AAElD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAG1C"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/** @file Re-executes Picked-tagged <script> elements that innerHTML left inert. */
|
|
2
|
-
/** Inert script type the Picked transform stamps on classic scripts it blesses for rehydration. */
|
|
3
|
-
export declare const PICKED_SCRIPT_TYPE = "application/picked-javascript";
|
|
4
|
-
/** Inert script type the Picked transform stamps on `type="module"` scripts it blesses for rehydration. */
|
|
5
|
-
export declare const PICKED_MODULE_SCRIPT_TYPE = "application/picked-module";
|
|
6
|
-
/** Marker set on resurrected scripts so rehydration is idempotent. */
|
|
7
|
-
export declare const PICKED_HYDRATED_ATTR = "data-picked-hydrated";
|
|
8
|
-
declare global {
|
|
9
|
-
/**
|
|
10
|
-
* Root node of the currently-executing rehydrated inline script. Published only for the duration of
|
|
11
|
-
* that script's synchronous run so shadow-scoped page scripts can locate their own root, since
|
|
12
|
-
* `document.currentScript` is `null` inside a shadow tree.
|
|
13
|
-
*/
|
|
14
|
-
var __pickedEmbedScriptRoot: Node | null | undefined;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Re-creates every Picked-tagged (`type="application/picked-javascript"` or
|
|
18
|
-
* `type="application/picked-module"`) script under `root` as a fresh, executable element, so
|
|
19
|
-
* scripts inserted via `innerHTML` (which never run) execute — restored as `type="module"` for the
|
|
20
|
-
* latter. Untagged scripts, including data blocks such as `application/json` or `importmap`, are left
|
|
21
|
-
* untouched. In-place replacement preserves document order. Because `document.currentScript` is `null`
|
|
22
|
-
* inside a shadow tree, each inline script's own root is published on `globalThis.__pickedEmbedScriptRoot`
|
|
23
|
-
* while it runs, so shadow-scoped page scripts read `window.__pickedEmbedScriptRoot` to find their own root.
|
|
24
|
-
*
|
|
25
|
-
* Classic inline scripts are pre-parsed with the `Function` constructor and skipped only when that
|
|
26
|
-
* throws a `SyntaxError`, so a body that would blank the experience on insertion is logged and left
|
|
27
|
-
* inert. Any other failure says nothing about the body — a CSP omitting `'unsafe-eval'` throws an
|
|
28
|
-
* `EvalError` and Trusted Types throws a `TypeError` however well the body parses — so the script is
|
|
29
|
-
* injected unchanged and the page keeps working under those policies.
|
|
30
|
-
*
|
|
31
|
-
* This function intentionally references only globals and its own parameter, never the exported
|
|
32
|
-
* `PICKED_*` constants above, so {@link buildRehydrateBootstrap} can serialise it with `.toString()` for
|
|
33
|
-
* injection into a sandboxed iframe, where module imports are unavailable.
|
|
34
|
-
*
|
|
35
|
-
* @param {ParentNode} root - Element, ShadowRoot, or Document whose tagged scripts to rehydrate.
|
|
36
|
-
* @returns {Promise<void>} Resolves after external (`src`) scripts have settled (load or error).
|
|
37
|
-
* @example
|
|
38
|
-
* await rehydrateScripts(shadowRoot)
|
|
39
|
-
*/
|
|
40
|
-
export declare function rehydrateScripts(root: ParentNode): Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
* Builds an inline `<script>` string that runs {@link rehydrateScripts} against the injected document.
|
|
43
|
-
* For splicing into an iframe `srcDoc` (or any HTML string) where module imports are unavailable.
|
|
44
|
-
*
|
|
45
|
-
* @returns {string} A self-contained `<script>…</script>` string.
|
|
46
|
-
* @example
|
|
47
|
-
* html.replace('</body>', buildRehydrateBootstrap() + '</body>')
|
|
48
|
-
*/
|
|
49
|
-
export declare function buildRehydrateBootstrap(): string;
|
|
50
|
-
//# sourceMappingURL=rehydrate-scripts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rehydrate-scripts.d.ts","sourceRoot":"","sources":["../../../src/utils/rehydrate-scripts.ts"],"names":[],"mappings":"AAAA,mFAAmF;AAEnF,mGAAmG;AACnG,eAAO,MAAM,kBAAkB,kCAAkC,CAAA;AACjE,2GAA2G;AAC3G,eAAO,MAAM,yBAAyB,8BAA8B,CAAA;AACpE,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,yBAAyB,CAAA;AAE1D,OAAO,CAAC,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,uBAAuB,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAA;CACrD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAoGtE;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
interface InterpolateContext {
|
|
2
|
-
responses?: Record<string, unknown>;
|
|
3
|
-
[key: string]: unknown;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Internal interpolation engine used by Picked.renderString().
|
|
7
|
-
* Renders a template containing {{ ... }} placeholders using the provided context.
|
|
8
|
-
*
|
|
9
|
-
* Notes:
|
|
10
|
-
* - Keys use dot-notation (e.g. user.profile.name).
|
|
11
|
-
* - Function values in context are invoked and their result is rendered.
|
|
12
|
-
* - Empty detection: null, undefined, empty string, and NaN render as empty; 0/false/true render as "0"/"false"/"true".
|
|
13
|
-
* - Modifiers: default, append, prepend, upper, lower, capitalize, list.
|
|
14
|
-
* - Objects/arrays are JSON-stringified; Maps/Sets stringify to {} unless using the list modifier.
|
|
15
|
-
*
|
|
16
|
-
* For consumer-facing usage and examples, see Picked.renderString() in the client.
|
|
17
|
-
*
|
|
18
|
-
* @param template Template with placeholders like {{ key | modifier: arg }}.
|
|
19
|
-
* @param context Data source for interpolation.
|
|
20
|
-
* @returns Interpolated string.
|
|
21
|
-
*/
|
|
22
|
-
export declare function renderString(template: string, context: InterpolateContext): string;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=render-string.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-string.d.ts","sourceRoot":"","sources":["../../../src/utils/render-string.ts"],"names":[],"mappings":"AAAA,UAAU,kBAAkB;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AA4HD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,MAAM,CA0BlF"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/** One client's User Timing entries for its own start chain. */
|
|
2
|
-
export interface StartTiming {
|
|
3
|
-
/** Records the begin mark and remembers when it landed. */
|
|
4
|
-
markBegin: () => void;
|
|
5
|
-
/** Records the measure, spanning from this client's begin mark to now. */
|
|
6
|
-
measure: () => void;
|
|
7
|
-
/** The completed measure, or `null` while the start chain is unfinished. */
|
|
8
|
-
readonly startMeasure: PerformanceMeasure | null;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Creates the start-chain timing for one client.
|
|
12
|
-
*
|
|
13
|
-
* The begin mark's own timestamp anchors the measure, so several clients on one
|
|
14
|
-
* page each span their own start rather than the most recent mark of that name,
|
|
15
|
-
* and each holds the measure it produced.
|
|
16
|
-
*
|
|
17
|
-
* @returns {StartTiming} The timing handle to record through and read from.
|
|
18
|
-
* @example const timing = createStartTiming()
|
|
19
|
-
*/
|
|
20
|
-
export declare function createStartTiming(): StartTiming;
|
|
21
|
-
//# sourceMappingURL=user-timing.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-timing.d.ts","sourceRoot":"","sources":["../../../src/utils/user-timing.ts"],"names":[],"mappings":"AAmBA,gEAAgE;AAChE,MAAM,WAAW,WAAW;IAC1B,2DAA2D;IAC3D,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,0EAA0E;IAC1E,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,4EAA4E;IAC5E,QAAQ,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI,CAAA;CACjD;AAmBD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,IAAI,WAAW,CA2B/C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./logger-CSTvAyyB.cjs"),t=require("./storage-DUw9UJ2h.cjs");let n=require("effector"),r=require("@withease/factories");var i=(0,n.createDomain)(`feature`);function a(e){return e?.enabled===!1}function o(e){return e===`true`||e!==`false`&&e}function s(e){let t=e.indexOf(`:`);if(t<=0)return null;let n=e.substring(0,t),r=e.substring(t+1);return r.length===0?null:{id:n,bucket:o(r)}}var c=(0,r.createFactory)(({client:r})=>{let s=i.store({}),c=i.store([]),l=(0,n.createApi)(s,{register(e,t){return{...e,[t.id]:t.feature}}}),u=(0,n.createEvent)();(0,n.sample)({clock:u,source:s,filter:(e,{id:t})=>e[t]!==void 0,fn:(e,{id:t})=>`Feature '${t}' already registered. Registering again will override the previous registration.`}).watch(t=>e.t(`warn`,t)),(0,n.sample)({clock:u,fn:({id:e,feature:t})=>Object.freeze({id:e,feature:{id:e,feature:{...t,id:e}}}),target:l.register});let d=(0,n.createEffect)(async({id:e,key:n,storage:r=`local`,enabled:i})=>{if(i===!1)return null;let a=t.t(`feature:${e}:${n}`,`global`),s=(r===`session`?t.r:t.n).get(a).text();return s?{id:e,key:n,bucket:o(s),storage:r}:null}),f=(0,n.createEffect)(e=>{if(!e)return null;let n=t.t(`feature:${e.id}:${e.key}`,`global`);(e.storage===`session`?t.r:t.n).set(n,e.bucket)}),p=new Map,m=(0,n.attach)({source:{allFeaturesStore:s,resolvedFeaturesStore:c},effect:async({allFeaturesStore:e,resolvedFeaturesStore:t},{id:n,decide:r,key:i})=>{let o=t.find(e=>e.id===n&&e.key===i);if(o)return o;let s=e[n];if(!s)throw Error(`Feature with id '${n}' not found`);if(a(s.feature))return{id:s.id,bucket:!1,key:i,storage:s.feature.storage};let c=p.get(`${n}:${i}`);if(c!==void 0){let e=await c;return{id:s.id,bucket:e,key:i,storage:s.feature.storage}}let l=r();p.set(`${n}:${i}`,l);let u=await l;return{id:s.id,bucket:u,key:i,storage:s.feature.storage}}});(0,n.sample)({clock:l.register,fn:e=>{let{id:t,feature:n}=e;return{id:t,key:n.feature.key,storage:n.feature.storage,enabled:n.feature.enabled}},target:d}),(0,n.sample)({source:s,clock:m.doneData,filter:(e,t)=>!a(e[t.id]?.feature),fn:(e,t)=>{let{id:n,bucket:r,storage:i}=t,a=e[n]?.feature.key;return a?{key:a,id:n,bucket:r,storage:i}:null},target:f});let h=(0,n.combine)({allFeaturesStore:s,resolvedFeaturesStore:c}).map(({allFeaturesStore:e,resolvedFeaturesStore:t})=>Object.values(e).map(e=>{let n=t.find(t=>t.id===e.id&&t.key===e.feature.key);return n?{id:e.id,name:e.feature.name,key:e.feature.key,enabled:e.feature.enabled,weight:e.feature.weight,valueType:e.feature.valueType,variants:e.feature.variants,getBucket:()=>({id:e.id,bucket:n.bucket}),isResolved:!0}:{id:e.id,name:e.feature.name,key:e.feature.key,enabled:e.feature.enabled,weight:e.feature.weight,valueType:e.feature.valueType,variants:e.feature.variants,getBucket:async()=>await m(e.feature),isResolved:!1}}));(0,n.sample)({clock:m.doneData,source:{resolvedFeatures:c,allFeatures:s},filter:({resolvedFeatures:e,allFeatures:t},{id:n,key:r})=>!a(t[n]?.feature)&&!e.some(e=>e.id===n&&e.key===r),fn:(e,t)=>t,target:r.eventBus.prepend(e=>({type:`feature_decide`,feature:e}))}),(0,n.sample)({clock:[d.doneData,m.doneData],source:{resolvedFeatures:c,allFeatures:s},fn:({resolvedFeatures:e,allFeatures:t},n)=>!n||a(t[n.id]?.feature)||e.some(e=>e.id===n.id&&e.key===n.key)?e:[...e,n],target:c});function g(e){return h.map(t=>t.find(t=>t.id===e),{skipVoid:!1})}let _=new Map,v=new Map,y=new Map;function b(e){let t=_.get(e);if(t)return t;let n=g(e);return _.set(e,n),n}function x(e){return s.map(t=>t[e],{skipVoid:!1})}function S(e){let t=(0,n.createStore)(async()=>void 0,{skipVoid:!1}),r=b(e),i=(0,n.attach)({source:r,effect:async e=>{if(e)return async()=>(await e.getBucket()).bucket}});return(0,n.sample)({clock:r,target:i}),(0,n.sample)({clock:i.doneData,filter:e=>e!==void 0,target:t}),i(),t}function C(e){let t=v.get(e);if(t)return t;let n=S(e);return v.set(e,n),n}function w(e){let t=C(e),r=(0,n.createStore)(void 0,{skipVoid:!1}),i=(0,n.attach)({source:t,mapParams:(e,t)=>t,effect:(0,n.createEffect)(async e=>await e())});return(0,n.sample)({clock:i.doneData,fn:t=>{if(t!==void 0)return{id:e,bucket:t}},target:r}),(0,n.sample)({clock:t,target:i}),i(),r}function T(e){let t=y.get(e);if(t)return t;let n=w(e);return y.set(e,n),n}return{register:u,getById:b,getByName:x,listStore:h,getEvokableFeature:C,getFeatureResult:T}});function l(e){return(0,r.invoke)(c,e)}var u=(e,t,n)=>{n.register({id:e,feature:t})},d=()=>`0.0.1-dev.1789541668638`;Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return d}});
|
package/dist/version-CPKulHMH.js
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./logger-DMN6TxJJ.js";
|
|
2
|
-
import { n as t, r as n, t as r } from "./storage-1MW3-_As.js";
|
|
3
|
-
import { attach as i, combine as a, createApi as o, createDomain as s, createEffect as c, createEvent as l, createStore as u, sample as d } from "effector";
|
|
4
|
-
import { createFactory as f, invoke as p } from "@withease/factories";
|
|
5
|
-
//#region src/entities/feature/feature.ts
|
|
6
|
-
var m = s("feature");
|
|
7
|
-
function h(e) {
|
|
8
|
-
return e?.enabled === !1;
|
|
9
|
-
}
|
|
10
|
-
function g(e) {
|
|
11
|
-
return e === "true" || e !== "false" && e;
|
|
12
|
-
}
|
|
13
|
-
function _(e) {
|
|
14
|
-
let t = e.indexOf(":");
|
|
15
|
-
if (t <= 0) return null;
|
|
16
|
-
let n = e.substring(0, t), r = e.substring(t + 1);
|
|
17
|
-
return r.length === 0 ? null : {
|
|
18
|
-
id: n,
|
|
19
|
-
bucket: g(r)
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
var v = f(({ client: s }) => {
|
|
23
|
-
let f = m.store({}), p = m.store([]), _ = o(f, { register(e, t) {
|
|
24
|
-
return {
|
|
25
|
-
...e,
|
|
26
|
-
[t.id]: t.feature
|
|
27
|
-
};
|
|
28
|
-
} }), v = l();
|
|
29
|
-
d({
|
|
30
|
-
clock: v,
|
|
31
|
-
source: f,
|
|
32
|
-
filter: (e, { id: t }) => e[t] !== void 0,
|
|
33
|
-
fn: (e, { id: t }) => `Feature '${t}' already registered. Registering again will override the previous registration.`
|
|
34
|
-
}).watch((t) => /* @__PURE__ */ e("warn", t)), d({
|
|
35
|
-
clock: v,
|
|
36
|
-
fn: ({ id: e, feature: t }) => Object.freeze({
|
|
37
|
-
id: e,
|
|
38
|
-
feature: {
|
|
39
|
-
id: e,
|
|
40
|
-
feature: {
|
|
41
|
-
...t,
|
|
42
|
-
id: e
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}),
|
|
46
|
-
target: _.register
|
|
47
|
-
});
|
|
48
|
-
let y = c(async ({ id: e, key: i, storage: a = "local", enabled: o }) => {
|
|
49
|
-
if (o === !1) return null;
|
|
50
|
-
let s = r(`feature:${e}:${i}`, "global"), c = (a === "session" ? n : t).get(s).text();
|
|
51
|
-
return c ? {
|
|
52
|
-
id: e,
|
|
53
|
-
key: i,
|
|
54
|
-
bucket: g(c),
|
|
55
|
-
storage: a
|
|
56
|
-
} : null;
|
|
57
|
-
}), b = c((e) => {
|
|
58
|
-
if (!e) return null;
|
|
59
|
-
let i = r(`feature:${e.id}:${e.key}`, "global");
|
|
60
|
-
(e.storage === "session" ? n : t).set(i, e.bucket);
|
|
61
|
-
}), x = /* @__PURE__ */ new Map(), S = i({
|
|
62
|
-
source: {
|
|
63
|
-
allFeaturesStore: f,
|
|
64
|
-
resolvedFeaturesStore: p
|
|
65
|
-
},
|
|
66
|
-
effect: async ({ allFeaturesStore: e, resolvedFeaturesStore: t }, { id: n, decide: r, key: i }) => {
|
|
67
|
-
let a = t.find((e) => e.id === n && e.key === i);
|
|
68
|
-
if (a) return a;
|
|
69
|
-
let o = e[n];
|
|
70
|
-
if (!o) throw Error(`Feature with id '${n}' not found`);
|
|
71
|
-
if (h(o.feature)) return {
|
|
72
|
-
id: o.id,
|
|
73
|
-
bucket: !1,
|
|
74
|
-
key: i,
|
|
75
|
-
storage: o.feature.storage
|
|
76
|
-
};
|
|
77
|
-
let s = x.get(`${n}:${i}`);
|
|
78
|
-
if (s !== void 0) {
|
|
79
|
-
let e = await s;
|
|
80
|
-
return {
|
|
81
|
-
id: o.id,
|
|
82
|
-
bucket: e,
|
|
83
|
-
key: i,
|
|
84
|
-
storage: o.feature.storage
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
let c = r();
|
|
88
|
-
x.set(`${n}:${i}`, c);
|
|
89
|
-
let l = await c;
|
|
90
|
-
return {
|
|
91
|
-
id: o.id,
|
|
92
|
-
bucket: l,
|
|
93
|
-
key: i,
|
|
94
|
-
storage: o.feature.storage
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
d({
|
|
99
|
-
clock: _.register,
|
|
100
|
-
fn: (e) => {
|
|
101
|
-
let { id: t, feature: n } = e;
|
|
102
|
-
return {
|
|
103
|
-
id: t,
|
|
104
|
-
key: n.feature.key,
|
|
105
|
-
storage: n.feature.storage,
|
|
106
|
-
enabled: n.feature.enabled
|
|
107
|
-
};
|
|
108
|
-
},
|
|
109
|
-
target: y
|
|
110
|
-
}), d({
|
|
111
|
-
source: f,
|
|
112
|
-
clock: S.doneData,
|
|
113
|
-
filter: (e, t) => !h(e[t.id]?.feature),
|
|
114
|
-
fn: (e, t) => {
|
|
115
|
-
let { id: n, bucket: r, storage: i } = t, a = e[n]?.feature.key;
|
|
116
|
-
return a ? {
|
|
117
|
-
key: a,
|
|
118
|
-
id: n,
|
|
119
|
-
bucket: r,
|
|
120
|
-
storage: i
|
|
121
|
-
} : null;
|
|
122
|
-
},
|
|
123
|
-
target: b
|
|
124
|
-
});
|
|
125
|
-
let C = a({
|
|
126
|
-
allFeaturesStore: f,
|
|
127
|
-
resolvedFeaturesStore: p
|
|
128
|
-
}).map(({ allFeaturesStore: e, resolvedFeaturesStore: t }) => Object.values(e).map((e) => {
|
|
129
|
-
let n = t.find((t) => t.id === e.id && t.key === e.feature.key);
|
|
130
|
-
return n ? {
|
|
131
|
-
id: e.id,
|
|
132
|
-
name: e.feature.name,
|
|
133
|
-
key: e.feature.key,
|
|
134
|
-
enabled: e.feature.enabled,
|
|
135
|
-
weight: e.feature.weight,
|
|
136
|
-
valueType: e.feature.valueType,
|
|
137
|
-
variants: e.feature.variants,
|
|
138
|
-
getBucket: () => ({
|
|
139
|
-
id: e.id,
|
|
140
|
-
bucket: n.bucket
|
|
141
|
-
}),
|
|
142
|
-
isResolved: !0
|
|
143
|
-
} : {
|
|
144
|
-
id: e.id,
|
|
145
|
-
name: e.feature.name,
|
|
146
|
-
key: e.feature.key,
|
|
147
|
-
enabled: e.feature.enabled,
|
|
148
|
-
weight: e.feature.weight,
|
|
149
|
-
valueType: e.feature.valueType,
|
|
150
|
-
variants: e.feature.variants,
|
|
151
|
-
getBucket: async () => await S(e.feature),
|
|
152
|
-
isResolved: !1
|
|
153
|
-
};
|
|
154
|
-
}));
|
|
155
|
-
d({
|
|
156
|
-
clock: S.doneData,
|
|
157
|
-
source: {
|
|
158
|
-
resolvedFeatures: p,
|
|
159
|
-
allFeatures: f
|
|
160
|
-
},
|
|
161
|
-
filter: ({ resolvedFeatures: e, allFeatures: t }, { id: n, key: r }) => !h(t[n]?.feature) && !e.some((e) => e.id === n && e.key === r),
|
|
162
|
-
fn: (e, t) => t,
|
|
163
|
-
target: s.eventBus.prepend((e) => ({
|
|
164
|
-
type: "feature_decide",
|
|
165
|
-
feature: e
|
|
166
|
-
}))
|
|
167
|
-
}), d({
|
|
168
|
-
clock: [y.doneData, S.doneData],
|
|
169
|
-
source: {
|
|
170
|
-
resolvedFeatures: p,
|
|
171
|
-
allFeatures: f
|
|
172
|
-
},
|
|
173
|
-
fn: ({ resolvedFeatures: e, allFeatures: t }, n) => !n || h(t[n.id]?.feature) || e.some((e) => e.id === n.id && e.key === n.key) ? e : [...e, n],
|
|
174
|
-
target: p
|
|
175
|
-
});
|
|
176
|
-
function w(e) {
|
|
177
|
-
return C.map((t) => t.find((t) => t.id === e), { skipVoid: !1 });
|
|
178
|
-
}
|
|
179
|
-
let T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map();
|
|
180
|
-
function O(e) {
|
|
181
|
-
let t = T.get(e);
|
|
182
|
-
if (t) return t;
|
|
183
|
-
let n = w(e);
|
|
184
|
-
return T.set(e, n), n;
|
|
185
|
-
}
|
|
186
|
-
function k(e) {
|
|
187
|
-
return f.map((t) => t[e], { skipVoid: !1 });
|
|
188
|
-
}
|
|
189
|
-
function A(e) {
|
|
190
|
-
let t = u(async () => void 0, { skipVoid: !1 }), n = O(e), r = i({
|
|
191
|
-
source: n,
|
|
192
|
-
effect: async (e) => {
|
|
193
|
-
if (e) return async () => (await e.getBucket()).bucket;
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
return d({
|
|
197
|
-
clock: n,
|
|
198
|
-
target: r
|
|
199
|
-
}), d({
|
|
200
|
-
clock: r.doneData,
|
|
201
|
-
filter: (e) => e !== void 0,
|
|
202
|
-
target: t
|
|
203
|
-
}), r(), t;
|
|
204
|
-
}
|
|
205
|
-
function j(e) {
|
|
206
|
-
let t = E.get(e);
|
|
207
|
-
if (t) return t;
|
|
208
|
-
let n = A(e);
|
|
209
|
-
return E.set(e, n), n;
|
|
210
|
-
}
|
|
211
|
-
function M(e) {
|
|
212
|
-
let t = j(e), n = u(void 0, { skipVoid: !1 }), r = i({
|
|
213
|
-
source: t,
|
|
214
|
-
mapParams: (e, t) => t,
|
|
215
|
-
effect: c(async (e) => await e())
|
|
216
|
-
});
|
|
217
|
-
return d({
|
|
218
|
-
clock: r.doneData,
|
|
219
|
-
fn: (t) => {
|
|
220
|
-
if (t !== void 0) return {
|
|
221
|
-
id: e,
|
|
222
|
-
bucket: t
|
|
223
|
-
};
|
|
224
|
-
},
|
|
225
|
-
target: n
|
|
226
|
-
}), d({
|
|
227
|
-
clock: t,
|
|
228
|
-
target: r
|
|
229
|
-
}), r(), n;
|
|
230
|
-
}
|
|
231
|
-
function N(e) {
|
|
232
|
-
let t = D.get(e);
|
|
233
|
-
if (t) return t;
|
|
234
|
-
let n = M(e);
|
|
235
|
-
return D.set(e, n), n;
|
|
236
|
-
}
|
|
237
|
-
return {
|
|
238
|
-
register: v,
|
|
239
|
-
getById: O,
|
|
240
|
-
getByName: k,
|
|
241
|
-
listStore: C,
|
|
242
|
-
getEvokableFeature: j,
|
|
243
|
-
getFeatureResult: N
|
|
244
|
-
};
|
|
245
|
-
});
|
|
246
|
-
function y(e) {
|
|
247
|
-
return p(v, e);
|
|
248
|
-
}
|
|
249
|
-
var b = (e, t, n) => {
|
|
250
|
-
n.register({
|
|
251
|
-
id: e,
|
|
252
|
-
feature: t
|
|
253
|
-
});
|
|
254
|
-
}, x = () => "0.0.1-dev.1789541668638";
|
|
255
|
-
//#endregion
|
|
256
|
-
export { b as i, y as n, _ as r, x as t };
|
|
File without changes
|
/package/dist/types/plugins/{history-browser-storage → history-browserstorage-plugin}/index.d.ts
RENAMED
|
File without changes
|
/package/dist/types/plugins/{responses-browser-storage → responses-browserstorage-plugin}/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|