@replohq/canopy-sdk 3.0.3 → 3.0.5

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 (283) hide show
  1. package/_vendor/replo-utils/lib/crypto.d.ts +2 -8
  2. package/_vendor/replo-utils/lib/fonts.d.ts +8 -0
  3. package/_vendor/replo-utils/lib/fonts.mjs +12 -3
  4. package/_vendor/replo-utils/lib/geometry.mjs +0 -1
  5. package/_vendor/replo-utils/lib/json.mjs +1 -1
  6. package/_vendor/replo-utils/lib/posthogReplay.mjs +0 -1
  7. package/_vendor/replo-utils/lib/string.d.ts +0 -2
  8. package/_vendor/replo-utils/lib/url.d.ts +6 -1
  9. package/_vendor/replo-utils/lib/url.mjs +1 -1
  10. package/_vendor/schemas/designLibrary.mjs +0 -1
  11. package/_vendor/schemas/errors.d.ts +2 -3
  12. package/_vendor/schemas/generated/errors.d.ts +3 -0
  13. package/_vendor/schemas/generated/selectModeIframeRpc.d.ts +10 -2
  14. package/_vendor/schemas/iframeRpcChannel.d.ts +1 -1
  15. package/_vendor/schemas/iframeRpcChannel.mjs +1 -7
  16. package/_vendor/schemas/loaderKeys.mjs +0 -2
  17. package/_vendor/schemas/money.d.ts +1 -1
  18. package/_vendor/schemas/money.mjs +1 -7
  19. package/_vendor/schemas/pageAnnotations.mjs +0 -2
  20. package/_vendor/schemas/routing/rules.mjs +2 -2
  21. package/_vendor/schemas/selectMode.d.ts +0 -4
  22. package/_vendor/schemas/selectMode.mjs +2 -2
  23. package/_vendor/schemas/selectModeIframeRpc.d.ts +132 -4
  24. package/_vendor/schemas/selectModeIframeRpc.mjs +17 -14
  25. package/analytics/analytics-provider.js +1 -2
  26. package/analytics/analytics-sink.js +0 -1
  27. package/analytics/get-analytics-sinks.js +1 -2
  28. package/analytics/hooks/use-product-viewed-analytics.js +1 -2
  29. package/analytics/replo-first-party-pixel.js +1 -2
  30. package/analytics/replo-pixel-script.js +1 -2
  31. package/analytics/sinks/ga4-sink.js +1 -3
  32. package/analytics/sinks/meta-sink.js +1 -3
  33. package/analytics/sinks/pinterest-sink.js +1 -3
  34. package/analytics/sinks/reddit-sink.js +1 -3
  35. package/analytics/sinks/replo-sink.js +1 -3
  36. package/analytics/sinks/snapchat-sink.js +1 -3
  37. package/analytics/sinks/tiktok-sink.js +1 -3
  38. package/analytics/sinks/window-sink.js +1 -4
  39. package/analytics/utils/analytics-utils.js +1 -2
  40. package/analytics/utils/navigation-tracker.js +1 -2
  41. package/analytics/utils/shopify-funnel-gate.js +1 -2
  42. package/cart/buy-now-action.js +1 -2
  43. package/cart/cart-actions.js +1 -2
  44. package/cart/cart-loader.js +1 -2
  45. package/cart/cart-provider.js +1 -2
  46. package/cart/cart-schema.js +1 -2
  47. package/cart/cart-types.js +1 -2
  48. package/cart/gateways/cart-constants.js +0 -1
  49. package/cart/gateways/cart-gateway.js +1 -2
  50. package/cart/gateways/cookie-cart-gateway.js +1 -2
  51. package/cart/gateways/default-cart-gateway.js +1 -2
  52. package/cart/gateways/resolver-cart-gateway.js +1 -2
  53. package/cart/gateways/stripe-cart-gateway.js +1 -2
  54. package/cart/hooks/use-add-to-cart.js +1 -2
  55. package/cart/hooks/use-buy-now.js +1 -2
  56. package/cart/utils/cart-utils.js +1 -2
  57. package/cart/utils/cookie-cart-persistence.js +1 -2
  58. package/cart/utils/variant-to-cart-line.js +1 -2
  59. package/{chunk-IQVZY6EV.mjs → chunk-3A2F6BOM.mjs} +9 -6
  60. package/{chunk-2BNHFQZH.mjs → chunk-544ZM65A.mjs} +1 -5
  61. package/chunk-AKZNN7F2.mjs +0 -11
  62. package/chunk-FNTGY7I5.mjs +0 -8
  63. package/chunk-H36NDYLG.mjs +5 -127
  64. package/{chunk-VKO7P3ED.mjs → chunk-HGXQNZW7.mjs} +2 -5
  65. package/chunk-ILGEM42C.mjs +0 -3
  66. package/{chunk-ZZPQ3E7S.mjs → chunk-QPGBIWJK.mjs} +1 -14
  67. package/chunk-UJCSKKID.mjs +0 -4
  68. package/chunk-VPEVERWE.mjs +0 -1
  69. package/consent/consent-action.js +1 -2
  70. package/consent/consent-actions.js +1 -2
  71. package/consent/consent-store.js +1 -2
  72. package/consent/cookie.js +1 -2
  73. package/consent/replo-scripts.js +1 -2
  74. package/consent/script-registration-store.js +1 -2
  75. package/consent/script-snippets.js +1 -2
  76. package/consent/types.js +0 -1
  77. package/consent/window-api.js +1 -2
  78. package/editor/ClientErrorBoundary.js +1 -2
  79. package/editor/DocumentReadyBeacon.js +1 -2
  80. package/editor/LinkInterceptor.js +1 -2
  81. package/editor/NextErrorReporter.js +1 -2
  82. package/editor/annotations/AnnotationLayerMount.js +1 -2
  83. package/editor/annotations/annotationController.js +1 -2
  84. package/editor/annotations/bridgeGate.js +1 -2
  85. package/editor/design-library-preview/DesignLibraryPreview.js +1 -2
  86. package/editor/posthog-relay.js +1 -2
  87. package/editor/select-mode/EditorSelection.js +1 -2
  88. package/editor/select-mode/annotationFrames.js +1 -2
  89. package/editor/select-mode/descriptor/elementDescriptor.js +1 -2
  90. package/editor/select-mode/descriptor/styleExtraction.js +1 -2
  91. package/editor/select-mode/displayModeStore.js +1 -2
  92. package/editor/select-mode/fast-refresh-relay.js +1 -2
  93. package/editor/select-mode/fiber.js +1 -2
  94. package/editor/select-mode/hooks/useCrosshairCursor.js +1 -2
  95. package/editor/select-mode/hooks/useEditModeStateMachine.js +1 -2
  96. package/editor/select-mode/hooks/useOptimisticOverrides.js +1 -2
  97. package/editor/select-mode/hooks/useParentMessaging.js +1 -2
  98. package/editor/select-mode/hooks/useSelectModeController.js +1 -2
  99. package/editor/select-mode/hooks/useSelectionHover.js +1 -2
  100. package/editor/select-mode/hooks/useSelectionInteractions.js +1 -2
  101. package/editor/select-mode/hooks/useSelectionScrollSync.js +1 -2
  102. package/editor/select-mode/hooks/useSiblingResolution.js +1 -2
  103. package/editor/select-mode/iframeRpcChannel.js +1 -2
  104. package/editor/select-mode/inlineTextMarks.js +1 -2
  105. package/editor/select-mode/interactions/selectionGeometry.js +1 -2
  106. package/editor/select-mode/selectModeSession.js +1 -2
  107. package/editor/select-mode/selectionFrame.js +1 -2
  108. package/editor/select-mode/symbolicate.js +1 -2
  109. package/editor/select-mode/tiptapInlineEditor.js +1 -2
  110. package/env.js +1 -2
  111. package/gateways/canopy-api.js +1 -5
  112. package/hooks/use-client-value.js +1 -2
  113. package/hooks/use-formatted-price.js +1 -2
  114. package/lib/canopy-error.js +1 -2
  115. package/lib/get-query-client.js +1 -2
  116. package/lib/integration-utils.js +1 -2
  117. package/lib/shopify-utils.js +1 -2
  118. package/lib/tombstone.js +0 -1
  119. package/lib/url-utils.js +1 -2
  120. package/loaders/collection-loader.js +1 -2
  121. package/loaders/collection-products-loader.js +1 -2
  122. package/loaders/contentful-entries-loader.js +1 -2
  123. package/loaders/contentful-entry-loader.js +1 -2
  124. package/loaders/invoke-loader-action.js +1 -2
  125. package/loaders/invoke-loader-server.js +1 -2
  126. package/loaders/invoke-loader.js +1 -2
  127. package/loaders/levanta-product-loader.js +1 -2
  128. package/loaders/loader-error-boundary.js +1 -2
  129. package/loaders/loader-keys.js +1 -2
  130. package/loaders/loader-schemas.js +1 -5
  131. package/loaders/metaobject-loader.js +1 -2
  132. package/loaders/metaobjects-loader.js +1 -2
  133. package/loaders/okendo-review-aggregate-loader.js +1 -2
  134. package/loaders/okendo-reviews-loader.js +1 -2
  135. package/loaders/prefetch-loaders.js +1 -2
  136. package/loaders/preview-placeholder.js +1 -2
  137. package/loaders/product-loader-args.js +1 -2
  138. package/loaders/product-loader.js +1 -2
  139. package/loaders/rebuy-recommendations-loader.js +1 -2
  140. package/loaders/reviews-io-review-aggregate-loader.js +1 -2
  141. package/loaders/reviews-io-reviews-loader.js +1 -2
  142. package/loaders/smile-earning-rules-loader.js +1 -2
  143. package/loaders/smile-rewards-loader.js +1 -2
  144. package/loaders/smile-vip-tiers-loader.js +1 -2
  145. package/loaders/statsig-experiment-loader.js +1 -2
  146. package/loaders/vendor-loader-keys.js +1 -2
  147. package/loaders/yotpo-review-aggregate-loader.js +1 -2
  148. package/loaders/yotpo-reviews-loader.js +1 -2
  149. package/money.js +1 -2
  150. package/next/config.js +4 -2
  151. package/next/image-loader.js +1 -2
  152. package/next/open-next.js +0 -1
  153. package/orders/order-status-schema.js +1 -5
  154. package/orders/order-status.js +1 -2
  155. package/package.json +1 -1
  156. package/providers/query-provider.js +1 -2
  157. package/providers/replo-provider.js +1 -2
  158. package/routing/evaluate.js +1 -2
  159. package/routing/rules.js +1 -2
  160. package/analytics/analytics-provider.js.map +0 -7
  161. package/analytics/analytics-sink.js.map +0 -7
  162. package/analytics/get-analytics-sinks.js.map +0 -7
  163. package/analytics/hooks/use-product-viewed-analytics.js.map +0 -7
  164. package/analytics/replo-first-party-pixel.js.map +0 -7
  165. package/analytics/replo-pixel-script.js.map +0 -7
  166. package/analytics/sinks/ga4-sink.js.map +0 -7
  167. package/analytics/sinks/meta-sink.js.map +0 -7
  168. package/analytics/sinks/pinterest-sink.js.map +0 -7
  169. package/analytics/sinks/reddit-sink.js.map +0 -7
  170. package/analytics/sinks/replo-sink.js.map +0 -7
  171. package/analytics/sinks/snapchat-sink.js.map +0 -7
  172. package/analytics/sinks/tiktok-sink.js.map +0 -7
  173. package/analytics/sinks/window-sink.js.map +0 -7
  174. package/analytics/utils/analytics-utils.js.map +0 -7
  175. package/analytics/utils/navigation-tracker.js.map +0 -7
  176. package/analytics/utils/shopify-funnel-gate.js.map +0 -7
  177. package/cart/buy-now-action.js.map +0 -7
  178. package/cart/cart-actions.js.map +0 -7
  179. package/cart/cart-loader.js.map +0 -7
  180. package/cart/cart-provider.js.map +0 -7
  181. package/cart/cart-schema.js.map +0 -7
  182. package/cart/cart-types.js.map +0 -7
  183. package/cart/gateways/cart-constants.js.map +0 -7
  184. package/cart/gateways/cart-gateway.js.map +0 -7
  185. package/cart/gateways/cookie-cart-gateway.js.map +0 -7
  186. package/cart/gateways/default-cart-gateway.js.map +0 -7
  187. package/cart/gateways/resolver-cart-gateway.js.map +0 -7
  188. package/cart/gateways/stripe-cart-gateway.js.map +0 -7
  189. package/cart/hooks/use-add-to-cart.js.map +0 -7
  190. package/cart/hooks/use-buy-now.js.map +0 -7
  191. package/cart/utils/cart-utils.js.map +0 -7
  192. package/cart/utils/cookie-cart-persistence.js.map +0 -7
  193. package/cart/utils/variant-to-cart-line.js.map +0 -7
  194. package/consent/consent-action.js.map +0 -7
  195. package/consent/consent-actions.js.map +0 -7
  196. package/consent/consent-store.js.map +0 -7
  197. package/consent/cookie.js.map +0 -7
  198. package/consent/replo-scripts.js.map +0 -7
  199. package/consent/script-registration-store.js.map +0 -7
  200. package/consent/script-snippets.js.map +0 -7
  201. package/consent/types.js.map +0 -7
  202. package/consent/window-api.js.map +0 -7
  203. package/editor/ClientErrorBoundary.js.map +0 -7
  204. package/editor/DocumentReadyBeacon.js.map +0 -7
  205. package/editor/LinkInterceptor.js.map +0 -7
  206. package/editor/NextErrorReporter.js.map +0 -7
  207. package/editor/annotations/AnnotationLayerMount.js.map +0 -7
  208. package/editor/annotations/annotationController.js.map +0 -7
  209. package/editor/annotations/bridgeGate.js.map +0 -7
  210. package/editor/design-library-preview/DesignLibraryPreview.js.map +0 -7
  211. package/editor/posthog-relay.js.map +0 -7
  212. package/editor/select-mode/EditorSelection.js.map +0 -7
  213. package/editor/select-mode/annotationFrames.js.map +0 -7
  214. package/editor/select-mode/descriptor/elementDescriptor.js.map +0 -7
  215. package/editor/select-mode/descriptor/styleExtraction.js.map +0 -7
  216. package/editor/select-mode/displayModeStore.js.map +0 -7
  217. package/editor/select-mode/fast-refresh-relay.js.map +0 -7
  218. package/editor/select-mode/fiber.js.map +0 -7
  219. package/editor/select-mode/hooks/useCrosshairCursor.js.map +0 -7
  220. package/editor/select-mode/hooks/useEditModeStateMachine.js.map +0 -7
  221. package/editor/select-mode/hooks/useOptimisticOverrides.js.map +0 -7
  222. package/editor/select-mode/hooks/useParentMessaging.js.map +0 -7
  223. package/editor/select-mode/hooks/useSelectModeController.js.map +0 -7
  224. package/editor/select-mode/hooks/useSelectionHover.js.map +0 -7
  225. package/editor/select-mode/hooks/useSelectionInteractions.js.map +0 -7
  226. package/editor/select-mode/hooks/useSelectionScrollSync.js.map +0 -7
  227. package/editor/select-mode/hooks/useSiblingResolution.js.map +0 -7
  228. package/editor/select-mode/iframeRpcChannel.js.map +0 -7
  229. package/editor/select-mode/inlineTextMarks.js.map +0 -7
  230. package/editor/select-mode/interactions/selectionGeometry.js.map +0 -7
  231. package/editor/select-mode/selectModeSession.js.map +0 -7
  232. package/editor/select-mode/selectionFrame.js.map +0 -7
  233. package/editor/select-mode/symbolicate.js.map +0 -7
  234. package/editor/select-mode/tiptapInlineEditor.js.map +0 -7
  235. package/env.js.map +0 -7
  236. package/gateways/canopy-api.js.map +0 -7
  237. package/hooks/use-client-value.js.map +0 -7
  238. package/hooks/use-formatted-price.js.map +0 -7
  239. package/lib/canopy-error.js.map +0 -7
  240. package/lib/get-query-client.js.map +0 -7
  241. package/lib/integration-utils.js.map +0 -7
  242. package/lib/shopify-utils.js.map +0 -7
  243. package/lib/tombstone.js.map +0 -7
  244. package/lib/url-utils.js.map +0 -7
  245. package/loaders/collection-loader.js.map +0 -7
  246. package/loaders/collection-products-loader.js.map +0 -7
  247. package/loaders/contentful-entries-loader.js.map +0 -7
  248. package/loaders/contentful-entry-loader.js.map +0 -7
  249. package/loaders/invoke-loader-action.js.map +0 -7
  250. package/loaders/invoke-loader-server.js.map +0 -7
  251. package/loaders/invoke-loader.js.map +0 -7
  252. package/loaders/levanta-product-loader.js.map +0 -7
  253. package/loaders/loader-error-boundary.js.map +0 -7
  254. package/loaders/loader-keys.js.map +0 -7
  255. package/loaders/loader-schemas.js.map +0 -7
  256. package/loaders/metaobject-loader.js.map +0 -7
  257. package/loaders/metaobjects-loader.js.map +0 -7
  258. package/loaders/okendo-review-aggregate-loader.js.map +0 -7
  259. package/loaders/okendo-reviews-loader.js.map +0 -7
  260. package/loaders/prefetch-loaders.js.map +0 -7
  261. package/loaders/preview-placeholder.js.map +0 -7
  262. package/loaders/product-loader-args.js.map +0 -7
  263. package/loaders/product-loader.js.map +0 -7
  264. package/loaders/rebuy-recommendations-loader.js.map +0 -7
  265. package/loaders/reviews-io-review-aggregate-loader.js.map +0 -7
  266. package/loaders/reviews-io-reviews-loader.js.map +0 -7
  267. package/loaders/smile-earning-rules-loader.js.map +0 -7
  268. package/loaders/smile-rewards-loader.js.map +0 -7
  269. package/loaders/smile-vip-tiers-loader.js.map +0 -7
  270. package/loaders/statsig-experiment-loader.js.map +0 -7
  271. package/loaders/vendor-loader-keys.js.map +0 -7
  272. package/loaders/yotpo-review-aggregate-loader.js.map +0 -7
  273. package/loaders/yotpo-reviews-loader.js.map +0 -7
  274. package/money.js.map +0 -7
  275. package/next/config.js.map +0 -7
  276. package/next/image-loader.js.map +0 -7
  277. package/next/open-next.js.map +0 -7
  278. package/orders/order-status-schema.js.map +0 -7
  279. package/orders/order-status.js.map +0 -7
  280. package/providers/query-provider.js.map +0 -7
  281. package/providers/replo-provider.js.map +0 -7
  282. package/routing/evaluate.js.map +0 -7
  283. package/routing/rules.js.map +0 -7
@@ -1,4 +1,3 @@
1
- // ../replo-utils/lib/object.ts
2
1
  function omit(obj, keysToOmit) {
3
2
  const result = { ...obj };
4
3
  for (const key of keysToOmit) {
@@ -7,7 +6,6 @@ function omit(obj, keysToOmit) {
7
6
  return result;
8
7
  }
9
8
 
10
- // ../replo-utils/lib/json.ts
11
9
  function parseJsonOrNull(json) {
12
10
  try {
13
11
  return JSON.parse(json);
@@ -23,9 +21,8 @@ function omitJsonObjectFieldsOrNull({
23
21
  if (typeof parsedJson !== "object" || parsedJson === null || Array.isArray(parsedJson)) {
24
22
  return null;
25
23
  }
26
- return jsonStringifyOrNull(
27
- omit(Object.fromEntries(Object.entries(parsedJson)), fields)
28
- );
24
+ const jsonObject = { ...parsedJson };
25
+ return jsonStringifyOrNull(omit(jsonObject, fields));
29
26
  }
30
27
  function jsonStringifyOrNull(value) {
31
28
  if (value === null || value === void 0) {
@@ -1,20 +1,17 @@
1
1
  import { isObjectLike_default, baseGetTag_default, isArray_default } from './chunk-FNTGY7I5.mjs';
2
2
 
3
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
4
3
  function isObject(value) {
5
4
  var type = typeof value;
6
5
  return value != null && (type == "object" || type == "function");
7
6
  }
8
7
  var isObject_default = isObject;
9
8
 
10
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.js
11
9
  var numberTag = "[object Number]";
12
10
  function isNumber(value) {
13
11
  return typeof value == "number" || isObjectLike_default(value) && baseGetTag_default(value) == numberTag;
14
12
  }
15
13
  var isNumber_default = isNumber;
16
14
 
17
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js
18
15
  var stringTag = "[object String]";
19
16
  function isString(value) {
20
17
  return typeof value == "string" || !isArray_default(value) && isObjectLike_default(value) && baseGetTag_default(value) == stringTag;
@@ -1,7 +1,6 @@
1
1
  import { randomUUID, randomFillSync } from 'crypto';
2
2
  import { z } from 'zod';
3
3
 
4
- // ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/stringify.js
5
4
  var byteToHex = [];
6
5
  for (let i = 0; i < 256; ++i) {
7
6
  byteToHex.push((i + 256).toString(16).slice(1));
@@ -20,7 +19,6 @@ function rng() {
20
19
  }
21
20
  var native_default = { randomUUID };
22
21
 
23
- // ../../node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm/v4.js
24
22
  function v4(options, buf, offset) {
25
23
  if (native_default.randomUUID && !buf && !options) {
26
24
  return native_default.randomUUID();
@@ -46,7 +44,6 @@ function v4(options, buf, offset) {
46
44
  }
47
45
  var v4_default = v4;
48
46
 
49
- // ../replo-utils/lib/crypto.ts
50
47
  function randomUUID2() {
51
48
  return v4_default();
52
49
  }
@@ -78,7 +75,6 @@ var errorUserFacingDetailsMessageSchema = z.object({
78
75
  "billing.addPublishedElements",
79
76
  "billing.addShopifyThemeProject",
80
77
  "billing.addReploSite",
81
- // Agent Billing ONLY
82
78
  "agentBilling.shopifyThemeBuilder.publishedElements.exceeded",
83
79
  "agentBilling.shopifyThemeBuilder.projects.exceeded",
84
80
  "agentBilling.sites.exceeded",
@@ -87,10 +83,9 @@ var errorUserFacingDetailsMessageSchema = z.object({
87
83
  ]),
88
84
  message: z.string(),
89
85
  isRecoverable: z.boolean().optional(),
90
- // NOTE (Matt 2024-03-22): We support detail being an array of strings
91
- // in FullPageModal only.
92
86
  detail: z.array(z.string()).or(z.string()).optional(),
93
87
  key: z.string(),
88
+ details: z.record(z.string(), z.unknown()).optional(),
94
89
  usage: z.object({
95
90
  current: z.number(),
96
91
  maximum: z.number()
@@ -135,15 +130,7 @@ var errorUserFacingDetailsMessageSchema = z.object({
135
130
  ]).optional()
136
131
  }).describe("ErrorUserFacingDetailsWithMessage");
137
132
  z.discriminatedUnion("type", [
138
- /**
139
- * Normal errors, show error UI depending on the type
140
- */
141
133
  errorUserFacingDetailsMessageSchema,
142
- /**
143
- * Errors which should be ignored by the frontend. This is uncommon, usually
144
- * you want to show an error in the UI, and if you don't want to then you catch
145
- * the error in your route.
146
- */
147
134
  z.object({
148
135
  type: z.literal("uncommon_none"),
149
136
  key: z.string(),
@@ -16,10 +16,6 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
- // If the importer is in node compatibility mode or this is not an ESM
20
- // file that has been converted to a CommonJS file using a Babel-
21
- // compatible transform (i.e. "__esModule" has not been set), then set
22
- // "default" to the CommonJS "module.exports" for node compatibility.
23
19
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
20
  mod
25
21
  ));
@@ -1,4 +1,3 @@
1
- // ../schemas/routing/match.ts
2
1
  function matchSource({
3
2
  source,
4
3
  pathname
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../lib/tombstone";
2
2
  function deriveConsentAction(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "deriveConsentAction",
@@ -12,4 +12,3 @@ function deriveConsentAction(_args) {
12
12
  export {
13
13
  deriveConsentAction
14
14
  };
15
- //# sourceMappingURL=consent-action.js.map
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  async function recordConsentAction(_decision) {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "recordConsentAction",
@@ -13,4 +13,3 @@ async function recordConsentAction(_decision) {
13
13
  export {
14
14
  recordConsentAction
15
15
  };
16
- //# sourceMappingURL=consent-actions.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError, canopyTombstoneObject } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError, canopyTombstoneObject } from "../lib/tombstone";
3
3
  const consentStore = canopyTombstoneObject({
4
4
  symbol: "consentStore",
5
5
  subpath: "consent/consent-store"
@@ -21,4 +21,3 @@ export {
21
21
  isConsentAllowed,
22
22
  useConsent
23
23
  };
24
- //# sourceMappingURL=consent-store.js.map
package/consent/cookie.js CHANGED
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError, canopyTombstoneObject } from "../lib/tombstone.js";
1
+ import { canopyTombstoneError, canopyTombstoneObject } from "../lib/tombstone";
2
2
  const CONSENT_COOKIE_NAME = "replo_consent";
3
3
  const CONSENT_COOKIE_VERSION = 1;
4
4
  const CONSENT_COOKIE_MAX_AGE_SECONDS = 60 * 60 * 24 * 180;
@@ -47,4 +47,3 @@ export {
47
47
  parseConsentCookie,
48
48
  serializeConsentCookieValue
49
49
  };
50
- //# sourceMappingURL=cookie.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  function InjectedScript(_props) {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "InjectedScript",
@@ -16,4 +16,3 @@ export {
16
16
  InjectedScript,
17
17
  ReploScripts
18
18
  };
19
- //# sourceMappingURL=replo-scripts.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError, canopyTombstoneObject } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError, canopyTombstoneObject } from "../lib/tombstone";
3
3
  const scriptRegistrationStore = canopyTombstoneObject({
4
4
  symbol: "scriptRegistrationStore",
5
5
  subpath: "consent/script-registration-store",
@@ -44,4 +44,3 @@ export {
44
44
  unregisterScript,
45
45
  useRegisteredScripts
46
46
  };
47
- //# sourceMappingURL=script-registration-store.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../lib/tombstone";
2
2
  function buildScriptTags(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "buildScriptTags",
@@ -23,4 +23,3 @@ export {
23
23
  buildScriptTags,
24
24
  defaultConsentFor
25
25
  };
26
- //# sourceMappingURL=script-snippets.js.map
package/consent/types.js CHANGED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  const CONSENT_CHANGE_EVENT = "visitorConsentCollected";
4
4
  function installConsentWindowApi() {
5
5
  throw canopyTombstoneError({
@@ -15,4 +15,3 @@ export {
15
15
  CONSENT_CHANGE_EVENT,
16
16
  installConsentWindowApi
17
17
  };
18
- //# sourceMappingURL=window-api.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  function ClientErrorBoundary(_args) {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "ClientErrorBoundary",
@@ -10,4 +10,3 @@ function ClientErrorBoundary(_args) {
10
10
  export {
11
11
  ClientErrorBoundary
12
12
  };
13
- //# sourceMappingURL=ClientErrorBoundary.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../lib/tombstone";
2
2
  function DocumentReadyBeacon() {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "DocumentReadyBeacon",
@@ -9,4 +9,3 @@ function DocumentReadyBeacon() {
9
9
  export {
10
10
  DocumentReadyBeacon
11
11
  };
12
- //# sourceMappingURL=DocumentReadyBeacon.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  function LinkInterceptor() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "LinkInterceptor",
@@ -10,4 +10,3 @@ function LinkInterceptor() {
10
10
  export {
11
11
  LinkInterceptor as default
12
12
  };
13
- //# sourceMappingURL=LinkInterceptor.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  function NextErrorReporter() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "NextErrorReporter",
@@ -10,4 +10,3 @@ function NextErrorReporter() {
10
10
  export {
11
11
  NextErrorReporter
12
12
  };
13
- //# sourceMappingURL=NextErrorReporter.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../../lib/tombstone";
3
3
  function AnnotationLayerMount() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "AnnotationLayerMount",
@@ -10,4 +10,3 @@ function AnnotationLayerMount() {
10
10
  export {
11
11
  AnnotationLayerMount
12
12
  };
13
- //# sourceMappingURL=AnnotationLayerMount.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function initAnnotationLayer() {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "initAnnotationLayer",
@@ -9,4 +9,3 @@ function initAnnotationLayer() {
9
9
  export {
10
10
  initAnnotationLayer
11
11
  };
12
- //# sourceMappingURL=annotationController.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function isAllowedEditorOrigin(_origin) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "isAllowedEditorOrigin",
@@ -17,4 +17,3 @@ export {
17
17
  isAllowedEditorMessage,
18
18
  isAllowedEditorOrigin
19
19
  };
20
- //# sourceMappingURL=bridgeGate.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../../lib/tombstone";
3
3
  function DesignLibraryPreview() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "DesignLibraryPreview",
@@ -10,4 +10,3 @@ function DesignLibraryPreview() {
10
10
  export {
11
11
  DesignLibraryPreview
12
12
  };
13
- //# sourceMappingURL=DesignLibraryPreview.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  function PostHogRelay() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "PostHogRelay",
@@ -10,4 +10,3 @@ function PostHogRelay() {
10
10
  export {
11
11
  PostHogRelay as default
12
12
  };
13
- //# sourceMappingURL=posthog-relay.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../../lib/tombstone";
3
3
  function EditorSelection() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "EditorSelection",
@@ -10,4 +10,3 @@ function EditorSelection() {
10
10
  export {
11
11
  EditorSelection
12
12
  };
13
- //# sourceMappingURL=EditorSelection.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  const ANNOTATION_CONTAINER_ID = "replo-annotation-frames";
3
3
  function setActiveAnnotationBadge(_id) {
4
4
  throw canopyTombstoneError({
@@ -35,4 +35,3 @@ export {
35
35
  setActiveAnnotationBadge,
36
36
  showAnnotationFrames
37
37
  };
38
- //# sourceMappingURL=annotationFrames.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function getNearestSelectableElement(_element) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "getNearestSelectableElement",
@@ -25,4 +25,3 @@ export {
25
25
  buildSelector,
26
26
  getNearestSelectableElement
27
27
  };
28
- //# sourceMappingURL=elementDescriptor.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function getDefinedStyles(_element) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "getDefinedStyles",
@@ -17,4 +17,3 @@ export {
17
17
  getDefinedStyles,
18
18
  getInheritedStyles
19
19
  };
20
- //# sourceMappingURL=styleExtraction.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  canopyTombstoneError,
4
4
  canopyTombstoneObject
5
- } from "../../lib/tombstone.js";
5
+ } from "../../lib/tombstone";
6
6
  const displayModeStore = canopyTombstoneObject({
7
7
  symbol: "displayModeStore",
8
8
  subpath: "editor/select-mode/displayModeStore",
@@ -19,4 +19,3 @@ export {
19
19
  displayModeStore,
20
20
  useDisplayMode
21
21
  };
22
- //# sourceMappingURL=displayModeStore.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function installFastRefreshRelay(_args = {}) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "installFastRefreshRelay",
@@ -9,4 +9,3 @@ function installFastRefreshRelay(_args = {}) {
9
9
  export {
10
10
  installFastRefreshRelay
11
11
  };
12
- //# sourceMappingURL=fast-refresh-relay.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function getFiberFromElement(_element) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "getFiberFromElement",
@@ -57,4 +57,3 @@ export {
57
57
  getHostSourceIdentity,
58
58
  getSourceLocation
59
59
  };
60
- //# sourceMappingURL=fiber.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function useCrosshairCursor(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "useCrosshairCursor",
@@ -9,4 +9,3 @@ function useCrosshairCursor(_args) {
9
9
  export {
10
10
  useCrosshairCursor
11
11
  };
12
- //# sourceMappingURL=useCrosshairCursor.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function isTextEditableElement(_element) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "isTextEditableElement",
@@ -17,4 +17,3 @@ export {
17
17
  isTextEditableElement,
18
18
  useEditModeStateMachine
19
19
  };
20
- //# sourceMappingURL=useEditModeStateMachine.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function useOptimisticOverrides() {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "useOptimisticOverrides",
@@ -9,4 +9,3 @@ function useOptimisticOverrides() {
9
9
  export {
10
10
  useOptimisticOverrides
11
11
  };
12
- //# sourceMappingURL=useOptimisticOverrides.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function useParentMessaging(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "useParentMessaging",
@@ -9,4 +9,3 @@ function useParentMessaging(_args) {
9
9
  export {
10
10
  useParentMessaging
11
11
  };
12
- //# sourceMappingURL=useParentMessaging.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function useSelectModeController() {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "useSelectModeController",
@@ -9,4 +9,3 @@ function useSelectModeController() {
9
9
  export {
10
10
  useSelectModeController
11
11
  };
12
- //# sourceMappingURL=useSelectModeController.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function useSelectionHover(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "useSelectionHover",
@@ -9,4 +9,3 @@ function useSelectionHover(_args) {
9
9
  export {
10
10
  useSelectionHover
11
11
  };
12
- //# sourceMappingURL=useSelectionHover.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function useSelectionInteractions(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "useSelectionInteractions",
@@ -9,4 +9,3 @@ function useSelectionInteractions(_args) {
9
9
  export {
10
10
  useSelectionInteractions
11
11
  };
12
- //# sourceMappingURL=useSelectionInteractions.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function useSelectionScrollSync(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "useSelectionScrollSync",
@@ -9,4 +9,3 @@ function useSelectionScrollSync(_args) {
9
9
  export {
10
10
  useSelectionScrollSync
11
11
  };
12
- //# sourceMappingURL=useSelectionScrollSync.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function getSourceLocationSiblingElements(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "getSourceLocationSiblingElements",
@@ -17,4 +17,3 @@ export {
17
17
  getSourceLocationSiblingElements,
18
18
  getSourceLocationSiblingSelectors
19
19
  };
20
- //# sourceMappingURL=useSiblingResolution.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function getSelectModeIframeRpcChannel() {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "getSelectModeIframeRpcChannel",
@@ -33,4 +33,3 @@ export {
33
33
  requestInlineTextEdit,
34
34
  setSelectModeParentHandlers
35
35
  };
36
- //# sourceMappingURL=iframeRpcChannel.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function isInlineTextMarkElement(_element) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "isInlineTextMarkElement",
@@ -17,4 +17,3 @@ export {
17
17
  isInlineTextMarkElement,
18
18
  skipInlineTextMarkElements
19
19
  };
20
- //# sourceMappingURL=inlineTextMarks.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
2
  function getDragPositionFromClient(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "getDragPositionFromClient",
@@ -81,4 +81,3 @@ export {
81
81
  getViewportRectFromPageRect,
82
82
  getViewportSelectionRect
83
83
  };
84
- //# sourceMappingURL=selectionGeometry.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneObject } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneObject } from "../../lib/tombstone";
2
2
  const IDLE_SESSION = canopyTombstoneObject({
3
3
  symbol: "IDLE_SESSION",
4
4
  subpath: "editor/select-mode/selectModeSession",
@@ -7,4 +7,3 @@ const IDLE_SESSION = canopyTombstoneObject({
7
7
  export {
8
8
  IDLE_SESSION
9
9
  };
10
- //# sourceMappingURL=selectModeSession.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function setSelectionFrameEditing(_editing) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "setSelectionFrameEditing",
@@ -41,4 +41,3 @@ export {
41
41
  showSelectionFrame,
42
42
  showSelectionFrames
43
43
  };
44
- //# sourceMappingURL=selectionFrame.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  async function symbolicateSelectedElement(_selectedElement) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "symbolicateSelectedElement",
@@ -9,4 +9,3 @@ async function symbolicateSelectedElement(_selectedElement) {
9
9
  export {
10
10
  symbolicateSelectedElement
11
11
  };
12
- //# sourceMappingURL=symbolicate.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function createInlineTiptapEditor(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "createInlineTiptapEditor",
@@ -9,4 +9,3 @@ function createInlineTiptapEditor(_args) {
9
9
  export {
10
10
  createInlineTiptapEditor
11
11
  };
12
- //# sourceMappingURL=tiptapInlineEditor.js.map
package/env.js CHANGED
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "./lib/tombstone.js";
1
+ import { canopyTombstoneError } from "./lib/tombstone";
2
2
  async function getEnv() {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "getEnv",
@@ -12,4 +12,3 @@ async function getEnv() {
12
12
  export {
13
13
  getEnv
14
14
  };
15
- //# sourceMappingURL=env.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../lib/tombstone";
2
2
  class CanopyApiGatewayError extends Error {
3
3
  config;
4
4
  id;
@@ -68,9 +68,6 @@ class CanopyApiGateway {
68
68
  }
69
69
  });
70
70
  }
71
- // ---------------------------------------------------------------------------
72
- // Cart operations (canopy-api-backed ExternalCart)
73
- // ---------------------------------------------------------------------------
74
71
  async _cartPost(_path, _body) {
75
72
  throw canopyTombstoneError({
76
73
  symbol: "CanopyApiGateway",
@@ -156,4 +153,3 @@ export {
156
153
  CanopyApiGatewayError,
157
154
  getCanopyApiGateway
158
155
  };
159
- //# sourceMappingURL=canopy-api.js.map