@picked/client 0.0.70 → 0.0.71-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/dist/.tsbuildinfo +1 -0
  2. package/dist/api-B0ydpQBE.js +38 -0
  3. package/dist/api-CObostrU.cjs +1 -0
  4. package/dist/cjs/form/index.js +1 -1
  5. package/dist/cjs/index.js +2 -2
  6. package/dist/cjs/plugins/dom-observer/index.js +1 -1
  7. package/dist/cjs/plugins/dynamic-experiences/index.js +1 -1
  8. package/dist/cjs/server/index.js +1 -1
  9. package/dist/docs/explanation/conditions-and-the-logic-engine.md +94 -0
  10. package/dist/docs/explanation/feature-flag-allocation.md +176 -0
  11. package/dist/docs/explanation/how-picked-works.md +102 -0
  12. package/dist/docs/explanation/how-pickedql-works.md +76 -0
  13. package/dist/docs/explanation/pages-and-flows.md +64 -0
  14. package/dist/docs/explanation/the-content-model.md +77 -0
  15. package/dist/docs/explanation/the-two-apis.md +68 -0
  16. package/dist/docs/explanation/why-server-side-rendering.md +76 -0
  17. package/dist/docs/explanation/workspaces-and-versions.md +71 -0
  18. package/dist/docs/how-to/add-a-step-field-or-action.md +43 -0
  19. package/dist/docs/{pickedql/examples.md → how-to/analytics/index.md} +19 -6
  20. package/dist/docs/how-to/archive-or-delete-a-workspace.md +46 -0
  21. package/dist/docs/how-to/authenticate-with-a-magic-link.md +40 -0
  22. package/dist/docs/how-to/authenticate-with-a-password.md +51 -0
  23. package/dist/docs/how-to/authenticate-with-an-api-key.md +51 -0
  24. package/dist/docs/how-to/authenticate-with-oauth.md +40 -0
  25. package/dist/docs/{flow-builder/building-flows.md → how-to/build-a-flow.md} +13 -9
  26. package/dist/docs/how-to/connect-the-mcp-server.md +38 -0
  27. package/dist/docs/how-to/create-a-project.md +29 -0
  28. package/dist/docs/how-to/create-an-experience.md +42 -0
  29. package/dist/docs/how-to/create-and-revoke-an-api-key.md +37 -0
  30. package/dist/docs/how-to/debug-with-the-chrome-extension.md +57 -0
  31. package/dist/docs/how-to/define-a-page-layout.md +39 -0
  32. package/dist/docs/how-to/fill-and-publish-a-page.md +50 -0
  33. package/dist/docs/{gtm-template.md → how-to/install-the-gtm-template.md} +9 -3
  34. package/dist/docs/how-to/install-the-sdk.md +68 -0
  35. package/dist/docs/how-to/install-the-vite-plugin.md +56 -0
  36. package/dist/docs/how-to/invite-and-remove-members.md +34 -0
  37. package/dist/docs/how-to/preview-a-workspace.md +28 -0
  38. package/dist/docs/how-to/publish-a-workspace.md +30 -0
  39. package/dist/docs/how-to/read-a-feature-flag.md +101 -0
  40. package/dist/docs/how-to/register-a-component.md +55 -0
  41. package/dist/docs/how-to/register-an-action-handler.md +67 -0
  42. package/dist/docs/how-to/render-a-step-form.md +132 -0
  43. package/dist/docs/how-to/render-an-unpublished-preview.md +41 -0
  44. package/dist/docs/how-to/reuse-a-section.md +37 -0
  45. package/dist/docs/how-to/reuse-a-step-field-or-action.md +28 -0
  46. package/dist/docs/how-to/roll-back-a-published-version.md +26 -0
  47. package/dist/docs/how-to/run-an-ab-test.md +49 -0
  48. package/dist/docs/how-to/run-code-on-a-form-submission.md +125 -0
  49. package/dist/docs/how-to/server-render-a-page.md +81 -0
  50. package/dist/docs/how-to/set-a-content-security-policy.md +32 -0
  51. package/dist/docs/how-to/set-up-mfa.md +69 -0
  52. package/dist/docs/how-to/upload-and-use-an-asset.mdx +73 -0
  53. package/dist/docs/how-to/validate-a-field.md +52 -0
  54. package/dist/docs/how-to/write-a-condition.md +45 -0
  55. package/dist/docs/how-to/write-a-predicate.md +60 -0
  56. package/dist/docs/index.md +41 -70
  57. package/dist/docs/reference/dashboard/actions.mdx +53 -0
  58. package/dist/docs/{api-keys.mdx → reference/dashboard/api-keys.mdx} +7 -15
  59. package/dist/docs/reference/dashboard/conditions.mdx +42 -0
  60. package/dist/docs/reference/dashboard/content/asset-library.mdx +63 -0
  61. package/dist/docs/{content → reference/dashboard/content}/content-entries.mdx +11 -3
  62. package/dist/docs/{content → reference/dashboard/content}/layouts.mdx +11 -35
  63. package/dist/docs/reference/dashboard/content/pages.mdx +35 -0
  64. package/dist/docs/reference/dashboard/content/sections.mdx +28 -0
  65. package/dist/docs/{experiences.mdx → reference/dashboard/experiences.mdx} +9 -16
  66. package/dist/docs/{features.mdx → reference/dashboard/features.mdx} +26 -41
  67. package/dist/docs/{fields.mdx → reference/dashboard/fields.mdx} +26 -20
  68. package/dist/docs/{flow-builder/overview.mdx → reference/dashboard/flow-builder/canvas.mdx} +8 -13
  69. package/dist/docs/{flow-builder → reference/dashboard/flow-builder}/condition-builder.md +5 -13
  70. package/dist/docs/{flow-builder → reference/dashboard/flow-builder}/keyboard-shortcuts.md +7 -1
  71. package/dist/docs/{flow-builder → reference/dashboard/flow-builder}/nodes.md +10 -3
  72. package/dist/docs/reference/dashboard/projects.mdx +44 -0
  73. package/dist/docs/reference/dashboard/reports.mdx +43 -0
  74. package/dist/docs/reference/dashboard/steps.mdx +37 -0
  75. package/dist/docs/{team-management.md → reference/dashboard/team-management.md} +5 -22
  76. package/dist/docs/{workspace-versioning.mdx → reference/dashboard/workspace-versioning.mdx} +6 -10
  77. package/dist/docs/reference/dashboard/workspaces.mdx +76 -0
  78. package/dist/docs/{delivery-api → reference/delivery-api}/experience-content.md +11 -4
  79. package/dist/docs/reference/delivery-api/index.md +45 -0
  80. package/dist/docs/{delivery-api → reference/delivery-api}/preview-caching-crawling.md +12 -5
  81. package/dist/docs/{delivery-api → reference/delivery-api}/project-config.md +11 -4
  82. package/dist/docs/reference/glossary.md +173 -0
  83. package/dist/docs/reference/management-api/authentication.md +74 -0
  84. package/dist/docs/{api → reference/management-api}/authorization-and-scopes.md +10 -3
  85. package/dist/docs/{api → reference/management-api}/error-handling.md +9 -3
  86. package/dist/docs/{api → reference/management-api}/pagination.md +6 -0
  87. package/dist/docs/{pickedql → reference/pickedql}/data-sources.md +16 -9
  88. package/dist/docs/{pickedql → reference/pickedql}/dimensions.md +7 -0
  89. package/dist/docs/{pickedql → reference/pickedql}/filtering.md +7 -0
  90. package/dist/docs/reference/pickedql/index.md +18 -0
  91. package/dist/docs/{pickedql → reference/pickedql}/schema.md +13 -6
  92. package/dist/docs/{pickedql → reference/pickedql}/virtual-functions.md +7 -0
  93. package/dist/docs/reference/sdk/actions.md +30 -0
  94. package/dist/docs/{sdk → reference/sdk}/conditions.md +8 -1
  95. package/dist/docs/reference/sdk/content-security-policy.md +21 -0
  96. package/dist/docs/reference/sdk/experiences.md +51 -0
  97. package/dist/docs/{sdk → reference/sdk}/features.md +30 -117
  98. package/dist/docs/{sdk → reference/sdk}/fields.md +10 -88
  99. package/dist/docs/reference/sdk/index.md +68 -0
  100. package/dist/docs/{sdk → reference/sdk}/plugins/create-experience.md +10 -22
  101. package/dist/docs/reference/sdk/plugins/dynamic-experiences.md +26 -0
  102. package/dist/docs/reference/sdk/plugins/index.md +29 -0
  103. package/dist/docs/{sdk → reference/sdk}/plugins/window-object.md +6 -0
  104. package/dist/docs/reference/sdk/predicates.md +43 -0
  105. package/dist/docs/reference/sdk/ssr/index.md +33 -0
  106. package/dist/docs/{sdk → reference/sdk}/ssr/rendering-and-hydration.md +4 -63
  107. package/dist/docs/{sdk → reference/sdk}/ssr/serialize.md +6 -33
  108. package/dist/docs/{sdk → reference/sdk}/ssr/slots-and-placements.md +7 -1
  109. package/dist/docs/reference/sdk/steps.md +87 -0
  110. package/dist/docs/reference/tools/chrome-extension.md +16 -0
  111. package/dist/docs/{image-optimisation-service.md → reference/tools/image-optimisation-service.md} +8 -0
  112. package/dist/docs/{mcp.md → reference/tools/mcp.md} +5 -45
  113. package/dist/docs/{vite-plugin.md → reference/tools/vite-plugin.md} +8 -38
  114. package/dist/docs/{api/index.md → tutorials/first-api-call.md} +27 -15
  115. package/dist/docs/tutorials/first-experience-in-the-dashboard.mdx +143 -0
  116. package/dist/docs/tutorials/first-experience.mdx +255 -0
  117. package/dist/docs/tutorials/first-server-rendered-page.mdx +186 -0
  118. package/dist/{dom-BwmTHeT7.js → dom-BqcToNL0.js} +1 -3
  119. package/dist/{dom-CDrHc_j9.cjs → dom-DlLH3FxV.cjs} +1 -1
  120. package/dist/esm/form/index.js +2 -4
  121. package/dist/esm/index.js +306 -298
  122. package/dist/esm/plugins/dom-observer/index.js +1 -1
  123. package/dist/esm/plugins/dynamic-experiences/index.js +2 -2
  124. package/dist/esm/preview/index.js +1 -1
  125. package/dist/esm/server/index.js +12 -10
  126. package/dist/{experience-instance-DOJShRk5.js → experience-instance-DGk11d8a.js} +3 -3
  127. package/dist/experience-instance-Dej3P1sE.cjs +1 -0
  128. package/dist/plugin-CNna0UjB.cjs +1 -0
  129. package/dist/{plugin-ChPkTj__.js → plugin-DUOJpHaq.js} +2 -2
  130. package/dist/{preview-channel-DW9J8t4B.js → preview-channel-CSr96XAo.js} +1 -1
  131. package/dist/{protocol-DSqOlW2r.js → protocol-C5KkkiZc.js} +1 -1
  132. package/dist/types/client.d.ts +7 -6
  133. package/dist/types/entities/action/action.d.ts +5 -4
  134. package/dist/types/entities/action/action.d.ts.map +1 -1
  135. package/dist/types/entities/component/component.d.ts +6 -5
  136. package/dist/types/entities/component/component.d.ts.map +1 -1
  137. package/dist/types/entities/condition/condition.d.ts +5 -5
  138. package/dist/types/entities/content/content.d.ts +4 -3
  139. package/dist/types/entities/experience/experience.d.ts +11 -10
  140. package/dist/types/entities/experience/experience.d.ts.map +1 -1
  141. package/dist/types/entities/experience-instance/experience-instance.d.ts +10 -9
  142. package/dist/types/entities/feature/feature.d.ts +19 -2
  143. package/dist/types/entities/feature/feature.d.ts.map +1 -1
  144. package/dist/types/entities/field/field.d.ts +7 -6
  145. package/dist/types/entities/framework/framework.d.ts +7 -6
  146. package/dist/types/entities/framework/framework.d.ts.map +1 -1
  147. package/dist/types/entities/history/history.d.ts +6 -6
  148. package/dist/types/entities/plugin/plugin.d.ts +3 -2
  149. package/dist/types/entities/plugin/plugin.d.ts.map +1 -1
  150. package/dist/types/entities/predicate/predicate.d.ts +4 -3
  151. package/dist/types/entities/predicate/predicate.d.ts.map +1 -1
  152. package/dist/types/entities/response/response-validation.d.ts +3 -2
  153. package/dist/types/entities/response/response.d.ts +12 -11
  154. package/dist/types/entities/session/session.d.ts +2 -1
  155. package/dist/types/entities/step/step.d.ts +6 -5
  156. package/dist/types/exports.d.ts +2 -1
  157. package/dist/types/exports.d.ts.map +1 -1
  158. package/dist/types/form/build-responses.d.ts +2 -1
  159. package/dist/types/form/create-field-evaluator.d.ts +4 -3
  160. package/dist/types/form/create-field-validation.d.ts +5 -4
  161. package/dist/types/form/create-form.d.ts +7 -6
  162. package/dist/types/form/create-submit-pipeline.d.ts +7 -6
  163. package/dist/types/form/get-step-fields.d.ts +3 -2
  164. package/dist/types/lifecycle/condition-selection.d.ts +14 -4
  165. package/dist/types/lifecycle/lifecycle.d.ts +4 -3
  166. package/dist/types/lifecycle/rules-logic.d.ts +4 -3
  167. package/dist/types/lifecycle/state-snapshot.d.ts +4 -3
  168. package/dist/types/picked.d.ts +64 -62
  169. package/dist/types/picked.d.ts.map +1 -1
  170. package/dist/types/ping.d.ts +1 -1
  171. package/dist/types/ping.d.ts.map +1 -1
  172. package/dist/types/plugins/create-experience/create-experience.d.ts +9 -8
  173. package/dist/types/plugins/create-experience/create-experience.d.ts.map +1 -1
  174. package/dist/types/plugins/create-experience/plugin.d.ts +3 -2
  175. package/dist/types/plugins/create-experience/plugin.d.ts.map +1 -1
  176. package/dist/types/plugins/create-experience/serialization.d.ts.map +1 -1
  177. package/dist/types/plugins/dom-observer/plugin.d.ts +1 -1
  178. package/dist/types/plugins/dynamic-experiences/plugin.d.ts +3 -3
  179. package/dist/types/plugins/dynamic-experiences/types.d.ts +8 -5
  180. package/dist/types/plugins/experience-browser-storage/plugin.d.ts +1 -1
  181. package/dist/types/plugins/experience-browser-storage/plugin.d.ts.map +1 -1
  182. package/dist/types/plugins/history-browser-storage/plugin.d.ts +1 -1
  183. package/dist/types/plugins/history-browser-storage/plugin.d.ts.map +1 -1
  184. package/dist/types/plugins/responses-browser-storage/plugin.d.ts +1 -1
  185. package/dist/types/plugins/responses-browser-storage/plugin.d.ts.map +1 -1
  186. package/dist/types/plugins/responses-indexeddb/plugin.d.ts +1 -1
  187. package/dist/types/plugins/single-page-app/plugin.d.ts +1 -1
  188. package/dist/types/plugins/single-page-app/plugin.d.ts.map +1 -1
  189. package/dist/types/plugins/web-components/plugin.d.ts +2 -1
  190. package/dist/types/plugins/window-object/plugin.d.ts +2 -2
  191. package/dist/types/preview-channel.d.ts +5 -1
  192. package/dist/types/preview-receiver/index.d.ts +18 -1
  193. package/dist/types/preview-receiver/protocol.d.ts +10 -1
  194. package/dist/types/server/index.d.ts +3 -3
  195. package/dist/types/server/serialize.d.ts +2 -2
  196. package/dist/types/utils/dom.d.ts +2 -1
  197. package/dist/types/utils/events.d.ts +6 -6
  198. package/dist/types/utils/events.d.ts.map +1 -1
  199. package/dist/types/utils/global-obj.d.ts +1 -1
  200. package/dist/types/utils/global-obj.d.ts.map +1 -1
  201. package/dist/types/utils/id.d.ts.map +1 -1
  202. package/dist/types/utils/logger.d.ts +2 -1
  203. package/dist/types/utils/logger.d.ts.map +1 -1
  204. package/dist/types/utils/node-tree/get-next-node-from-action.d.ts +2 -1
  205. package/dist/types/utils/node-tree/get-next-node-from-condition.d.ts +2 -1
  206. package/dist/types/utils/node-tree/get-next-node.d.ts +1 -1
  207. package/dist/types/utils/node-tree/get-next-node.d.ts.map +1 -1
  208. package/dist/types/utils/node-tree/get-origin-node.d.ts +1 -1
  209. package/dist/types/utils/node-tree/get-origin-node.d.ts.map +1 -1
  210. package/dist/types/utils/node-tree/min-max-steps-to-leaf.d.ts +1 -1
  211. package/dist/types/utils/node-tree/min-max-steps-to-leaf.d.ts.map +1 -1
  212. package/dist/types/utils/node-tree/min-max-steps-to-origin.d.ts +1 -1
  213. package/dist/types/utils/node-tree/min-max-steps-to-origin.d.ts.map +1 -1
  214. package/dist/types/utils/node-tree/next-reachable-step-nodes.d.ts +1 -1
  215. package/dist/types/utils/node-tree/next-reachable-step-nodes.d.ts.map +1 -1
  216. package/dist/types/utils/nodes.d.ts +1 -1
  217. package/dist/types/utils/picked-config.d.ts +2 -1
  218. package/dist/types/utils/rules-logic.d.ts +6 -2
  219. package/dist/types/utils/storage.d.ts +1 -1
  220. package/dist/types/utils/storage.d.ts.map +1 -1
  221. package/package.json +22 -23
  222. package/dist/api-CPy9G49C.js +0 -40
  223. package/dist/api-Ce6xYI--.cjs +0 -1
  224. package/dist/docs/actions.mdx +0 -98
  225. package/dist/docs/api/authentication.md +0 -403
  226. package/dist/docs/chrome-extension.md +0 -68
  227. package/dist/docs/conditions.mdx +0 -72
  228. package/dist/docs/content/asset-library.mdx +0 -124
  229. package/dist/docs/content/pages.mdx +0 -82
  230. package/dist/docs/content/sections.mdx +0 -44
  231. package/dist/docs/delivery-api/index.md +0 -53
  232. package/dist/docs/guides/build-a-personalized-page.mdx +0 -161
  233. package/dist/docs/pickedql/index.md +0 -54
  234. package/dist/docs/projects.mdx +0 -44
  235. package/dist/docs/reports.mdx +0 -20
  236. package/dist/docs/sdk/actions.md +0 -82
  237. package/dist/docs/sdk/content-security-policy.md +0 -33
  238. package/dist/docs/sdk/experiences.md +0 -64
  239. package/dist/docs/sdk/feature-allocation.md +0 -161
  240. package/dist/docs/sdk/index.md +0 -98
  241. package/dist/docs/sdk/plugins/dynamic-experiences.md +0 -84
  242. package/dist/docs/sdk/plugins/index.md +0 -9
  243. package/dist/docs/sdk/predicates.md +0 -128
  244. package/dist/docs/sdk/ssr/index.md +0 -79
  245. package/dist/docs/sdk/steps.md +0 -479
  246. package/dist/docs/steps.mdx +0 -53
  247. package/dist/docs/workspaces.mdx +0 -133
  248. package/dist/experience-instance-DurC3pE-.cjs +0 -1
  249. package/dist/plugin-DHn11gn6.cjs +0 -1
@@ -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
- import { ExperienceStep } from '../../entities/step/step';
2
- import { Field } from '../../entities/field/field';
3
- import { ExperienceEdge, ExperienceNode, ExperienceTarget } from '../../entities/experience/experience';
4
- import { Condition } from '../../entities/condition/condition';
5
- import { LogicRule, LogicValue } from '../../logic-engine';
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,4 +1,4 @@
1
- import { Plugin } from '../../entities/plugin/plugin';
1
+ import type { Plugin } from '../../entities/plugin/plugin';
2
2
  interface ExperienceBrowserStoragePlugin {
3
3
  storage?: 'local' | 'session';
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/experience-browser-storage/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,UAAU,8BAA8B;IACtC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,8BAA8B,GAAI,eAE5C,8BAAmC,KAAG,MAmDxC,CAAA"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/experience-browser-storage/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,UAAU,8BAA8B;IACtC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,8BAA8B,kBAExC,8BAA8B,KAAQ,MAmDxC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Plugin } from '../../entities/plugin/plugin';
1
+ import type { Plugin } from '../../entities/plugin/plugin';
2
2
  /** @public */
3
3
  export interface HistoryBrowserStoragePlugin {
4
4
  storage?: 'local' | 'session';
@@ -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,GAAI,eAEzC,2BAAgC,KAAG,MA8BrC,CAAA"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/history-browser-storage/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAM1D,cAAc;AACd,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,2BAA2B,kBAErC,2BAA2B,KAAQ,MA8BrC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Plugin } from '../../entities/plugin/plugin';
1
+ import type { Plugin } from '../../entities/plugin/plugin';
2
2
  interface ResponsesBrowserStoragePlugin {
3
3
  storage?: 'local' | 'session';
4
4
  }
@@ -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,GAAI,eAE3C,6BAAkC,KAAG,MAuCvC,CAAA"}
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,3 +1,3 @@
1
- import { Plugin } from '../../entities/plugin/plugin';
1
+ import type { Plugin } from '../../entities/plugin/plugin';
2
2
  export declare const responsesIndexedDBPlugin: () => Plugin;
3
3
  //# sourceMappingURL=plugin.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Plugin } from '../../entities/plugin/plugin';
1
+ import type { Plugin } from '../../entities/plugin/plugin';
2
2
  interface SinglePageAppPluginOptions {
3
3
  /**
4
4
  * Enables monitoring of browser history events (pushState, replaceState, popstate)
@@ -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,GAAI,UAAU,0BAA0B,KAAG,MAa1E,CAAA;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAwC5D"}
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
- import { Plugin } from '../../entities/plugin/plugin';
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,5 +1,5 @@
1
- import { Plugin } from '../../entities/plugin/plugin';
2
- import { Picked } from '../../picked';
1
+ import type { Plugin } from '../../entities/plugin/plugin';
2
+ import type { Picked } from '../../picked';
3
3
  declare global {
4
4
  interface Window {
5
5
  Picked: Picked;
@@ -1,4 +1,8 @@
1
- import { Picked } from './picked';
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
- import { Picked } from '../picked';
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
- import { ContentPatchOp } from './apply-ops';
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. */
@@ -1,6 +1,6 @@
1
- import { Picked } from '../picked';
2
- import { ExperienceInstance } from '../entities/experience-instance/experience-instance';
3
- import { AdaptedComponent } from '../entities/component/component';
1
+ import type { Picked } from '../picked';
2
+ import type { ExperienceInstance } from '../entities/experience-instance/experience-instance';
3
+ import type { AdaptedComponent } from '../entities/component/component';
4
4
  export { serialize, type PickedSnapshot, type SerializeParams, type SerializeAttributes, type SerializeLocation, type SerializeGetContent, } from './serialize';
5
5
  export { createExperienceInstance } from '../entities/experience-instance/experience-instance';
6
6
  export type { ExperienceInstance } from '../entities/experience-instance/experience-instance';
@@ -1,5 +1,5 @@
1
- import { Picked } from '../picked';
2
- import { ContentBlob, ExperienceContentResponse, ProjectConfig } from '../plugins/dynamic-experiences/types';
1
+ import type { Picked } from '../picked';
2
+ import type { ContentBlob, ExperienceContentResponse, ProjectConfig } from '../plugins/dynamic-experiences/types';
3
3
  /** Subset of `Location` fields that can be injected into the selection context. */
4
4
  export interface SerializeLocation {
5
5
  href: string;
@@ -1,4 +1,5 @@
1
- import { ExperienceTarget } from '../entities/experience/experience';
1
+ /** @file DOM utilities for experience target resolution, host element creation, and root management. */
2
+ import type { ExperienceTarget } from '../entities/experience/experience';
2
3
  export declare function querySelector(selector: string): HTMLElement[];
3
4
  export declare function createShadowRoot(target: HTMLElement): ShadowRoot;
4
5
  export declare function domInteractive(): Promise<void>;
@@ -1,9 +1,9 @@
1
- import { Store, createEvent } from 'effector';
2
- import { ValidationError } from '../entities/response/response';
3
- import { ExperienceStep } from '../entities/step/step';
4
- import { ExperienceInstance } from '../entities/experience-instance/experience-instance';
5
- import { ResolvedFeature } from '../entities/feature/feature';
6
- import { Session } from '../entities/session/session';
1
+ import type { Store, createEvent } from 'effector';
2
+ import type { ValidationError } from '../entities/response/response';
3
+ import type { ExperienceStep } from '../entities/step/step';
4
+ import type { ExperienceInstance } from '../entities/experience-instance/experience-instance';
5
+ import type { ResolvedFeature } from '../entities/feature/feature';
6
+ import type { Session } from '../entities/session/session';
7
7
  export interface FormPayload {
8
8
  id: string;
9
9
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/utils/events.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AA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U,CAAC,OAAO,WAAW,CAAC,eAAe,CAAC,CAAC,KACxD,iBAgBF,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Picked } from '../picked';
1
+ import type { Picked } from '../picked';
2
2
  declare const globalObjKey: unique symbol;
3
3
  interface InternalGlobal {
4
4
  [globalObjKey]?: Picked;
@@ -1 +1 @@
1
- {"version":3,"file":"global-obj.d.ts","sourceRoot":"","sources":["../../../src/utils/global-obj.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC,QAAA,MAAM,YAAY,eAAmB,CAAA;AAErC,UAAU,cAAc;IACtB,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAGD,eAAO,MAAM,UAAU,EAAiB,OAAO,UAAU,GAAG,cAAc,CAAA;AAE1E,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,SAExC,CAAA"}
1
+ {"version":3,"file":"global-obj.d.ts","sourceRoot":"","sources":["../../../src/utils/global-obj.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAEvC,QAAA,MAAM,YAAY,eAAmB,CAAA;AAErC,UAAU,cAAc;IACtB,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAGD,eAAO,MAAM,UAAU,EAAiB,OAAO,UAAU,GAAG,cAAc,CAAA;AAE1E,eAAO,MAAM,UAAU,WAAY,MAAM,SAExC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../src/utils/id.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,MAMzC,CAAA"}
1
+ {"version":3,"file":"id.d.ts","sourceRoot":"","sources":["../../../src/utils/id.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MAMzC,CAAA"}
@@ -1,2 +1,3 @@
1
- export declare const logger: (level: "log" | "warn" | "info" | "error", ...args: Parameters<Console["log"]>) => void;
1
+ /** @file Console logger that is compiled out of everything but local dev builds. */
2
+ export declare const logger: (level: 'log' | 'warn' | 'info' | 'error', ...args: Parameters<Console['log']>) => void;
2
3
  //# sourceMappingURL=logger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,GACjB,OAAO,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,EACxC,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAClC,IAOF,CAAA"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,oFAAoF;AAIpF,eAAO,MAAM,MAAM,UACV,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,WAC/B,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAClC,IAOF,CAAA"}
@@ -1,4 +1,5 @@
1
- import { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
1
+ /** @file Utility to resolve the next flow node after an action node runs. */
2
+ import type { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
2
3
  /**
3
4
  * Resolves the next node after an action node from its success or failure outcome.
4
5
  *
@@ -1,4 +1,5 @@
1
- import { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
1
+ /** @file Utility to resolve the next flow node after evaluating a condition. */
2
+ import type { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
2
3
  /**
3
4
  * Returns the next node in the experience graph based on a condition result.
4
5
  *
@@ -1,3 +1,3 @@
1
- import { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
1
+ import type { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
2
2
  export declare const getNextNode: (currentNode: ExperienceNode | null | undefined, nodes: ExperienceNode[], edges: ExperienceEdge[]) => ExperienceNode | null;
3
3
  //# sourceMappingURL=get-next-node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-next-node.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/get-next-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAG1F,eAAO,MAAM,WAAW,GACtB,aAAa,cAAc,GAAG,IAAI,GAAG,SAAS,EAC9C,OAAO,cAAc,EAAE,EACvB,OAAO,cAAc,EAAE,KACtB,cAAc,GAAG,IAkBnB,CAAA"}
1
+ {"version":3,"file":"get-next-node.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/get-next-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAG1F,eAAO,MAAM,WAAW,gBACT,cAAc,GAAG,IAAI,GAAG,SAAS,SACvC,cAAc,EAAE,SAChB,cAAc,EAAE,KACtB,cAAc,GAAG,IAkBnB,CAAA"}
@@ -1,3 +1,3 @@
1
- import { ExperienceNode } from '../../entities/experience/experience';
1
+ import type { ExperienceNode } from '../../entities/experience/experience';
2
2
  export declare const getOriginNode: (nodes: ExperienceNode[]) => ExperienceNode | null;
3
3
  //# sourceMappingURL=get-origin-node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-origin-node.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/get-origin-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAE1E,eAAO,MAAM,aAAa,GAAI,OAAO,cAAc,EAAE,KAAG,cAAc,GAAG,IAGxE,CAAA"}
1
+ {"version":3,"file":"get-origin-node.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/get-origin-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAE1E,eAAO,MAAM,aAAa,UAAW,cAAc,EAAE,KAAG,cAAc,GAAG,IAGxE,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
1
+ import type { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
2
2
  /**
3
3
  * Calculates the minimum and maximum number of steps from the current node to any leaf node.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"min-max-steps-to-leaf.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/min-max-steps-to-leaf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AA4D1F;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,cAAc,EAAE,EACvB,OAAO,cAAc,EAAE,EACvB,aAAa,cAAc,KAC1B,CAAC,MAAM,EAAE,MAAM,CAEjB,CAAA"}
1
+ {"version":3,"file":"min-max-steps-to-leaf.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/min-max-steps-to-leaf.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AA4D1F;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,UACzB,cAAc,EAAE,SAChB,cAAc,EAAE,eACV,cAAc,KAC1B,CAAC,MAAM,EAAE,MAAM,CAEjB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
1
+ import type { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
2
2
  /**
3
3
  * Calculates the minimum and maximum number of steps from the current node to the origin node.
4
4
  * An origin node is a node with type === 'origin'.
@@ -1 +1 @@
1
- {"version":3,"file":"min-max-steps-to-origin.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/min-max-steps-to-origin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AA6D1F;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,cAAc,EAAE,EACvB,OAAO,cAAc,EAAE,EACvB,aAAa,cAAc,KAC1B,CAAC,MAAM,EAAE,MAAM,CAEjB,CAAA"}
1
+ {"version":3,"file":"min-max-steps-to-origin.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/min-max-steps-to-origin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AA6D1F;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,UAC3B,cAAc,EAAE,SAChB,cAAc,EAAE,eACV,cAAc,KAC1B,CAAC,MAAM,EAAE,MAAM,CAEjB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
1
+ import type { ExperienceEdge, ExperienceNode } from '../../entities/experience/experience';
2
2
  /**
3
3
  * Given the current Node as the starting point, recursively traverses every branch
4
4
  * of the tree until encountering nodes with stepId properties.
@@ -1 +1 @@
1
- {"version":3,"file":"next-reachable-step-nodes.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/next-reachable-step-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAuC1F;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,cAAc,EAAE,EACvB,OAAO,cAAc,EAAE,EACvB,aAAa,cAAc,KAC1B,cAAc,EAEhB,CAAA"}
1
+ {"version":3,"file":"next-reachable-step-nodes.d.ts","sourceRoot":"","sources":["../../../../src/utils/node-tree/next-reachable-step-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAuC1F;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,UAC1B,cAAc,EAAE,SAChB,cAAc,EAAE,eACV,cAAc,KAC1B,cAAc,EAEhB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ConditionNode, ExperienceNode, LaunchExperienceNode, OriginNode, StepNode, ActionNode } from '../entities/experience/experience';
1
+ import type { ConditionNode, ExperienceNode, LaunchExperienceNode, OriginNode, StepNode, ActionNode } from '../entities/experience/experience';
2
2
  export declare function isConditionNode(node: ExperienceNode): node is ConditionNode;
3
3
  export declare function isStepNode(node: ExperienceNode): node is StepNode;
4
4
  export declare function isLaunchExperienceNode(node: ExperienceNode): node is LaunchExperienceNode;
@@ -1,4 +1,5 @@
1
- import { CreateClientOptions } from '../client';
1
+ /** @file Resolves the project id for a Picked client from options, window config, or script tag attributes. */
2
+ import type { CreateClientOptions } from '../client';
2
3
  declare global {
3
4
  interface Window {
4
5
  pickedConfig?: Partial<CreateClientOptions>;
@@ -1,5 +1,9 @@
1
- import { LogicObject, LogicRule } from '../logic-engine';
2
- import { Picked } from '../picked';
1
+ /**
2
+ * @file Async wrapper around `client.evaluateRuleLogicFx` for callers that hold a `Picked`
3
+ * reference rather than the effect.
4
+ */
5
+ import type { LogicObject, LogicRule } from '../logic-engine';
6
+ import type { Picked } from '../picked';
3
7
  /**
4
8
  * Type guard that checks whether a value is a non-empty LogicRule.
5
9
  *
@@ -1,4 +1,4 @@
1
- import { ExperienceInstance } from '../entities/experience-instance/experience-instance';
1
+ import type { ExperienceInstance } from '../entities/experience-instance/experience-instance';
2
2
  /**
3
3
  * Defines the scope of storage items.
4
4
  * - 'global': Storage is shared across all experiences
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/utils/storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,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;;;;;;;;;;;;OAeG;IACH,GAAG,MAAM,UAAU,SAAS,OAAO,cAAc,MAAM;IAIvD;;;;;;;;;;OAUG;IACH,MAAM,MAAM,UAAU;IAItB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,SAAS,CAAC,CAAC,GAAG,OAAO,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI;CAGlF,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,UAAU;IACrB;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,CAAC,GAAG,OAAO,OAAO,UAAU;IAIhC;;;;;;;;;;;;;;;OAeG;IACH,GAAG,MAAM,UAAU,SAAS,OAAO,cAAc,MAAM;IAIvD;;;;;;;;;;OAUG;IACH,MAAM,MAAM,UAAU;IAItB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,SAAS,CAAC,CAAC,GAAG,OAAO,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI;CAGlF,CAAA"}
package/package.json CHANGED
@@ -1,26 +1,25 @@
1
1
  {
2
2
  "name": "@picked/client",
3
- "version": "0.0.70",
3
+ "version": "0.0.71-next.2",
4
4
  "dependencies": {
5
5
  "@withease/factories": "^1.0.5"
6
6
  },
7
7
  "devDependencies": {
8
8
  "@repo/eslint-config": "workspace:*",
9
9
  "@repo/typescript-config": "workspace:*",
10
- "@rollup/plugin-replace": "^6.0.2",
11
- "@size-limit/preset-small-lib": "^12.0.0",
12
- "@testing-library/dom": "^10.4.0",
13
- "@vitest/browser": "^4.1.8",
14
- "@vitest/coverage-v8": "^4.1.8",
15
- "effector": "^23.3.0",
16
- "happy-dom": "^20.8.8",
17
- "size-limit": "^12.0.0",
10
+ "@rollup/plugin-replace": "^6.0.3",
11
+ "@size-limit/preset-small-lib": "^12.1.0",
12
+ "@testing-library/dom": "^10.4.1",
13
+ "@vitest/browser": "^4.1.10",
14
+ "@vitest/coverage-v8": "^4.1.10",
15
+ "effector": "^23.4.4",
16
+ "happy-dom": "^20.11.1",
17
+ "size-limit": "^12.1.0",
18
18
  "tslib": "^2.8.1",
19
- "typedoc": "^0.28.5",
20
- "typedoc-plugin-markdown": "^4.6.3",
21
- "vite": "^8.0.8",
22
- "vite-plugin-dts": "^4.5.4",
23
- "vitest": "^4.1.8"
19
+ "typedoc": "^0.28.20",
20
+ "typedoc-plugin-markdown": "^4.12.0",
21
+ "vite": "^8.2.0",
22
+ "vitest": "^4.1.10"
24
23
  },
25
24
  "exports": {
26
25
  ".": {
@@ -117,11 +116,11 @@
117
116
  "eslint.config.js"
118
117
  ],
119
118
  "ignoreBinaries": [
120
- "knip",
121
- "jscpd",
119
+ "attw",
122
120
  "eslint",
123
- "tsgo",
124
- "attw"
121
+ "jscpd",
122
+ "knip",
123
+ "tsgo"
125
124
  ],
126
125
  "exclude": [
127
126
  "duplicates"
@@ -148,20 +147,20 @@
148
147
  "main": "./dist/cjs/index.js",
149
148
  "module": "./dist/esm/index.js",
150
149
  "peerDependencies": {
151
- "effector": "^23.3.0"
150
+ "effector": "^23.4.4"
152
151
  },
153
152
  "private": false,
154
153
  "scripts": {
155
- "build": "vite build && node scripts/copy-docs.js",
154
+ "build": "vite build && tsgo -p tsconfig.build.json && node scripts/copy-docs.js",
156
155
  "build:docs": "pnpm typedoc",
157
156
  "check": "pnpm type-check && pnpm lint && pnpm knip && pnpm jscpd",
158
- "dev": "vite build --watch",
157
+ "dev": "node ../../scripts/sdk-watch-build.mjs -- node scripts/copy-docs.js",
159
158
  "jscpd": "jscpd src",
160
159
  "knip": "knip",
161
- "lint": "if [ \"$AGENT\" = \"true\" ]; then echo \"[AGENT HINT] Prefer running lint on specific files from the repo root: node scripts/lint-files.js <files>\"; fi && eslint .",
160
+ "lint": "if [ \"$AGENT\" = \"true\" ]; then echo \"[AGENT HINT] Prefer running lint on specific files from the repo root: node scripts/lint-files.js <files>\"; fi && eslint . --cache --cache-location node_modules/.cache/eslint",
162
161
  "lint-files": "eslint",
163
162
  "lint:format": "eslint . --fix",
164
- "lint:report": "eslint . -o './.reports/eslint.json' -f json || [ -f './.reports/eslint.json' ]",
163
+ "lint:report": "eslint . --cache --cache-location node_modules/.cache/eslint -o './.reports/eslint.json' -f json || [ -f './.reports/eslint.json' ]",
165
164
  "size": "size-limit",
166
165
  "test": "vitest run",
167
166
  "test:coverage": "../../scripts/vitest-coverage.sh",
@@ -1,40 +0,0 @@
1
- //#region src/utils/client-headers.ts
2
- var e = "Picked-Client", t = "Picked-Version";
3
- function n(n, r) {
4
- return {
5
- [e]: n,
6
- [t]: r
7
- };
8
- }
9
- //#endregion
10
- //#region src/utils/version.ts
11
- var r = () => "0.0.70", i = "v1";
12
- function a(e, t) {
13
- return new URL(`/api/${i}/${t}`, e).toString();
14
- }
15
- function o(e) {
16
- return {
17
- ...n("sdk", r()),
18
- ...e
19
- };
20
- }
21
- async function s(e, t, n, r) {
22
- let i = a(e, t);
23
- return fetch(i, {
24
- headers: o(n),
25
- signal: r
26
- });
27
- }
28
- async function c(e, t, n, r) {
29
- let i = a(e, t);
30
- return fetch(i, {
31
- method: "POST",
32
- headers: {
33
- "Content-Type": "application/json",
34
- ...o(r)
35
- },
36
- body: JSON.stringify(n)
37
- });
38
- }
39
- //#endregion
40
- export { n as i, c as n, r, s as t };
@@ -1 +0,0 @@
1
- var e=`Picked-Client`,t=`Picked-Version`;function n(n,r){return{[e]:n,[t]:r}}var r=()=>`0.0.70`,i=`v1`;function a(e,t){return new URL(`/api/${i}/${t}`,e).toString()}function o(e){return{...n(`sdk`,r()),...e}}async function s(e,t,n,r){let i=a(e,t);return fetch(i,{headers:o(n),signal:r})}async function c(e,t,n,r){let i=a(e,t);return fetch(i,{method:`POST`,headers:{"Content-Type":`application/json`,...o(r)},body:JSON.stringify(n)})}Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});