@replohq/canopy-sdk 2.6.0 → 3.0.0

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 (387) hide show
  1. package/_vendor/replo-utils/lib/fonts.mjs +1 -0
  2. package/_vendor/replo-utils/lib/geometry.mjs +2 -0
  3. package/_vendor/replo-utils/lib/json.mjs +1 -0
  4. package/_vendor/replo-utils/lib/misc.mjs +1 -0
  5. package/_vendor/replo-utils/lib/posthogReplay.mjs +2 -0
  6. package/_vendor/replo-utils/lib/url.mjs +1 -0
  7. package/_vendor/replo-utils/react/use-iframe-rpc-channel.mjs +1 -1
  8. package/_vendor/schemas/designLibrary.mjs +1 -1
  9. package/_vendor/schemas/iframeRpcChannel.mjs +2 -1
  10. package/_vendor/schemas/loaderKeys.d.ts +1 -1
  11. package/_vendor/schemas/loaderKeys.mjs +103 -23
  12. package/_vendor/schemas/money.mjs +1860 -3
  13. package/_vendor/schemas/pageAnnotations.mjs +1 -1
  14. package/_vendor/schemas/routing/match.mjs +1 -0
  15. package/_vendor/schemas/routing/rules.mjs +2 -1
  16. package/_vendor/schemas/selectMode.d.ts +4 -4
  17. package/_vendor/schemas/selectMode.mjs +1 -0
  18. package/_vendor/schemas/selectModeIframeRpc.d.ts +4 -4
  19. package/_vendor/schemas/selectModeIframeRpc.mjs +1 -0
  20. package/analytics/analytics-provider.d.ts +5 -10
  21. package/analytics/analytics-provider.js +14 -101
  22. package/analytics/analytics-provider.js.map +2 -2
  23. package/analytics/get-analytics-sinks.d.ts +2 -19
  24. package/analytics/get-analytics-sinks.js +9 -46
  25. package/analytics/get-analytics-sinks.js.map +2 -2
  26. package/analytics/hooks/use-product-viewed-analytics.d.ts +2 -6
  27. package/analytics/hooks/use-product-viewed-analytics.js +6 -28
  28. package/analytics/hooks/use-product-viewed-analytics.js.map +2 -2
  29. package/analytics/replo-first-party-pixel.d.ts +3 -12
  30. package/analytics/replo-first-party-pixel.js +8 -24
  31. package/analytics/replo-first-party-pixel.js.map +2 -2
  32. package/analytics/replo-pixel-script.d.ts +4 -10
  33. package/analytics/replo-pixel-script.js +9 -23
  34. package/analytics/replo-pixel-script.js.map +2 -2
  35. package/analytics/sinks/ga4-sink.d.ts +10 -9
  36. package/analytics/sinks/ga4-sink.js +99 -50
  37. package/analytics/sinks/ga4-sink.js.map +2 -2
  38. package/analytics/sinks/meta-sink.d.ts +5 -4
  39. package/analytics/sinks/meta-sink.js +82 -29
  40. package/analytics/sinks/meta-sink.js.map +2 -2
  41. package/analytics/sinks/pinterest-sink.d.ts +7 -6
  42. package/analytics/sinks/pinterest-sink.js +82 -49
  43. package/analytics/sinks/pinterest-sink.js.map +2 -2
  44. package/analytics/sinks/reddit-sink.d.ts +8 -7
  45. package/analytics/sinks/reddit-sink.js +82 -53
  46. package/analytics/sinks/reddit-sink.js.map +2 -2
  47. package/analytics/sinks/replo-sink.d.ts +9 -8
  48. package/analytics/sinks/replo-sink.js +89 -37
  49. package/analytics/sinks/replo-sink.js.map +2 -2
  50. package/analytics/sinks/snapchat-sink.d.ts +6 -5
  51. package/analytics/sinks/snapchat-sink.js +82 -40
  52. package/analytics/sinks/snapchat-sink.js.map +2 -2
  53. package/analytics/sinks/tiktok-sink.d.ts +8 -7
  54. package/analytics/sinks/tiktok-sink.js +82 -52
  55. package/analytics/sinks/tiktok-sink.js.map +2 -2
  56. package/analytics/sinks/window-sink.d.ts +11 -14
  57. package/analytics/sinks/window-sink.js +101 -28
  58. package/analytics/sinks/window-sink.js.map +2 -2
  59. package/analytics/utils/analytics-utils.d.ts +4 -2
  60. package/analytics/utils/analytics-utils.js +19 -123
  61. package/analytics/utils/analytics-utils.js.map +2 -2
  62. package/analytics/utils/navigation-tracker.d.ts +2 -1
  63. package/analytics/utils/navigation-tracker.js +37 -30
  64. package/analytics/utils/navigation-tracker.js.map +2 -2
  65. package/analytics/utils/shopify-funnel-gate.d.ts +2 -7
  66. package/analytics/utils/shopify-funnel-gate.js +8 -15
  67. package/analytics/utils/shopify-funnel-gate.js.map +2 -2
  68. package/cart/buy-now-action.d.ts +2 -9
  69. package/cart/buy-now-action.js +5 -97
  70. package/cart/buy-now-action.js.map +2 -2
  71. package/cart/cart-actions.d.ts +12 -56
  72. package/cart/cart-actions.js +88 -68
  73. package/cart/cart-actions.js.map +2 -2
  74. package/cart/cart-loader.d.ts +3 -9
  75. package/cart/cart-loader.js +14 -6
  76. package/cart/cart-loader.js.map +2 -2
  77. package/cart/cart-provider.d.ts +6 -58
  78. package/cart/cart-provider.js +13 -359
  79. package/cart/cart-provider.js.map +3 -3
  80. package/cart/cart-schema.d.ts +2 -1
  81. package/cart/cart-schema.js +12 -64
  82. package/cart/cart-schema.js.map +2 -2
  83. package/cart/cart-types.d.ts +1 -1
  84. package/cart/cart-types.js +5 -4
  85. package/cart/cart-types.js.map +2 -2
  86. package/cart/gateways/cart-constants.d.ts +1 -0
  87. package/cart/gateways/cart-constants.js.map +2 -2
  88. package/cart/gateways/cart-gateway.d.ts +1 -0
  89. package/cart/gateways/cart-gateway.js +13 -12
  90. package/cart/gateways/cart-gateway.js.map +2 -2
  91. package/cart/gateways/cookie-cart-gateway.d.ts +8 -11
  92. package/cart/gateways/cookie-cart-gateway.js +93 -97
  93. package/cart/gateways/cookie-cart-gateway.js.map +2 -2
  94. package/cart/gateways/default-cart-gateway.d.ts +10 -16
  95. package/cart/gateways/default-cart-gateway.js +13 -23
  96. package/cart/gateways/default-cart-gateway.js.map +2 -2
  97. package/cart/gateways/resolver-cart-gateway.d.ts +1 -0
  98. package/cart/gateways/resolver-cart-gateway.js +13 -102
  99. package/cart/gateways/resolver-cart-gateway.js.map +2 -2
  100. package/cart/gateways/stripe-cart-gateway.d.ts +10 -16
  101. package/cart/gateways/stripe-cart-gateway.js +13 -21
  102. package/cart/gateways/stripe-cart-gateway.js.map +2 -2
  103. package/cart/hooks/use-add-to-cart.d.ts +3 -47
  104. package/cart/hooks/use-add-to-cart.js +10 -115
  105. package/cart/hooks/use-add-to-cart.js.map +2 -2
  106. package/cart/hooks/use-buy-now.d.ts +1 -39
  107. package/cart/hooks/use-buy-now.js +5 -55
  108. package/cart/hooks/use-buy-now.js.map +2 -2
  109. package/cart/utils/cart-utils.d.ts +8 -35
  110. package/cart/utils/cart-utils.js +21 -35
  111. package/cart/utils/cart-utils.js.map +2 -2
  112. package/cart/utils/cookie-cart-persistence.d.ts +16 -41
  113. package/cart/utils/cookie-cart-persistence.js +38 -143
  114. package/cart/utils/cookie-cart-persistence.js.map +2 -2
  115. package/cart/utils/variant-to-cart-line.d.ts +12 -42
  116. package/cart/utils/variant-to-cart-line.js +31 -147
  117. package/cart/utils/variant-to-cart-line.js.map +2 -2
  118. package/chunk-UJCSKKID.mjs +27 -0
  119. package/{chunk-OFU2QEDR.mjs → chunk-ZZPQ3E7S.mjs} +50 -5
  120. package/consent/consent-action.d.ts +2 -1
  121. package/consent/consent-action.js +10 -20
  122. package/consent/consent-action.js.map +2 -2
  123. package/consent/consent-actions.d.ts +2 -13
  124. package/consent/consent-actions.js +9 -29
  125. package/consent/consent-actions.js.map +2 -2
  126. package/consent/consent-store.d.ts +9 -36
  127. package/consent/consent-store.js +12 -182
  128. package/consent/consent-store.js.map +2 -2
  129. package/consent/cookie.d.ts +9 -12
  130. package/consent/cookie.js +32 -64
  131. package/consent/cookie.js.map +2 -2
  132. package/consent/replo-scripts.d.ts +5 -18
  133. package/consent/replo-scripts.js +11 -94
  134. package/consent/replo-scripts.js.map +2 -2
  135. package/consent/script-registration-store.d.ts +6 -2
  136. package/consent/script-registration-store.js +33 -47
  137. package/consent/script-registration-store.js.map +2 -2
  138. package/consent/script-snippets.d.ts +4 -18
  139. package/consent/script-snippets.js +19 -127
  140. package/consent/script-snippets.js.map +2 -2
  141. package/consent/window-api.d.ts +4 -15
  142. package/consent/window-api.js +8 -63
  143. package/consent/window-api.js.map +2 -2
  144. package/editor/ClientErrorBoundary.d.ts +4 -10
  145. package/editor/ClientErrorBoundary.js +7 -55
  146. package/editor/ClientErrorBoundary.js.map +2 -2
  147. package/editor/DocumentReadyBeacon.d.ts +3 -1
  148. package/editor/DocumentReadyBeacon.js +6 -3
  149. package/editor/DocumentReadyBeacon.js.map +2 -2
  150. package/editor/LinkInterceptor.d.ts +1 -0
  151. package/editor/LinkInterceptor.js +6 -121
  152. package/editor/LinkInterceptor.js.map +2 -2
  153. package/editor/NextErrorReporter.d.ts +1 -0
  154. package/editor/NextErrorReporter.js +6 -85
  155. package/editor/NextErrorReporter.js.map +2 -2
  156. package/editor/annotations/AnnotationLayerMount.d.ts +1 -0
  157. package/editor/annotations/AnnotationLayerMount.js +6 -6
  158. package/editor/annotations/AnnotationLayerMount.js.map +2 -2
  159. package/editor/annotations/annotationController.d.ts +1 -0
  160. package/editor/annotations/annotationController.js +6 -378
  161. package/editor/annotations/annotationController.js.map +2 -2
  162. package/editor/annotations/bridgeGate.d.ts +4 -7
  163. package/editor/annotations/bridgeGate.js +13 -15
  164. package/editor/annotations/bridgeGate.js.map +2 -2
  165. package/editor/design-library-preview/DesignLibraryPreview.d.ts +1 -0
  166. package/editor/design-library-preview/DesignLibraryPreview.js +6 -86
  167. package/editor/design-library-preview/DesignLibraryPreview.js.map +2 -2
  168. package/editor/posthog-relay.d.ts +1 -10
  169. package/editor/posthog-relay.js +6 -65
  170. package/editor/posthog-relay.js.map +2 -2
  171. package/editor/select-mode/EditorSelection.d.ts +1 -23
  172. package/editor/select-mode/EditorSelection.js +5 -87
  173. package/editor/select-mode/EditorSelection.js.map +2 -2
  174. package/editor/select-mode/annotationFrames.d.ts +9 -9
  175. package/editor/select-mode/annotationFrames.js +22 -103
  176. package/editor/select-mode/annotationFrames.js.map +2 -2
  177. package/editor/select-mode/descriptor/elementDescriptor.d.ts +6 -21
  178. package/editor/select-mode/descriptor/elementDescriptor.js +19 -192
  179. package/editor/select-mode/descriptor/elementDescriptor.js.map +3 -3
  180. package/editor/select-mode/descriptor/styleExtraction.d.ts +4 -2
  181. package/editor/select-mode/descriptor/styleExtraction.js +11 -262
  182. package/editor/select-mode/descriptor/styleExtraction.js.map +2 -2
  183. package/editor/select-mode/displayModeStore.d.ts +2 -0
  184. package/editor/select-mode/displayModeStore.js +14 -39
  185. package/editor/select-mode/displayModeStore.js.map +2 -2
  186. package/editor/select-mode/fast-refresh-relay.d.ts +2 -1
  187. package/editor/select-mode/fast-refresh-relay.js +7 -28
  188. package/editor/select-mode/fast-refresh-relay.js.map +2 -2
  189. package/editor/select-mode/fiber.d.ts +14 -7
  190. package/editor/select-mode/fiber.js +40 -286
  191. package/editor/select-mode/fiber.js.map +2 -2
  192. package/editor/select-mode/hooks/useCrosshairCursor.d.ts +2 -9
  193. package/editor/select-mode/hooks/useCrosshairCursor.js +7 -15
  194. package/editor/select-mode/hooks/useCrosshairCursor.js.map +2 -2
  195. package/editor/select-mode/hooks/useEditModeStateMachine.d.ts +5 -3
  196. package/editor/select-mode/hooks/useEditModeStateMachine.js +13 -228
  197. package/editor/select-mode/hooks/useEditModeStateMachine.js.map +2 -2
  198. package/editor/select-mode/hooks/useOptimisticOverrides.d.ts +2 -1
  199. package/editor/select-mode/hooks/useOptimisticOverrides.js +6 -277
  200. package/editor/select-mode/hooks/useOptimisticOverrides.js.map +2 -2
  201. package/editor/select-mode/hooks/useParentMessaging.d.ts +2 -20
  202. package/editor/select-mode/hooks/useParentMessaging.js +7 -69
  203. package/editor/select-mode/hooks/useParentMessaging.js.map +2 -2
  204. package/editor/select-mode/hooks/useSelectModeController.d.ts +2 -1
  205. package/editor/select-mode/hooks/useSelectModeController.js +6 -40
  206. package/editor/select-mode/hooks/useSelectModeController.js.map +2 -2
  207. package/editor/select-mode/hooks/useSelectionHover.d.ts +2 -16
  208. package/editor/select-mode/hooks/useSelectionHover.js +7 -105
  209. package/editor/select-mode/hooks/useSelectionHover.js.map +2 -2
  210. package/editor/select-mode/hooks/useSelectionInteractions.d.ts +2 -26
  211. package/editor/select-mode/hooks/useSelectionInteractions.js +7 -348
  212. package/editor/select-mode/hooks/useSelectionInteractions.js.map +2 -2
  213. package/editor/select-mode/hooks/useSelectionScrollSync.d.ts +2 -22
  214. package/editor/select-mode/hooks/useSelectionScrollSync.js +7 -65
  215. package/editor/select-mode/hooks/useSelectionScrollSync.js.map +2 -2
  216. package/editor/select-mode/hooks/useSiblingResolution.d.ts +4 -2
  217. package/editor/select-mode/hooks/useSiblingResolution.js +13 -52
  218. package/editor/select-mode/hooks/useSiblingResolution.js.map +2 -2
  219. package/editor/select-mode/iframeRpcChannel.d.ts +10 -349
  220. package/editor/select-mode/iframeRpcChannel.js +23 -79
  221. package/editor/select-mode/iframeRpcChannel.js.map +2 -2
  222. package/editor/select-mode/inlineTextMarks.d.ts +4 -6
  223. package/editor/select-mode/inlineTextMarks.js +13 -18
  224. package/editor/select-mode/inlineTextMarks.js.map +2 -2
  225. package/editor/select-mode/interactions/selectionGeometry.d.ts +19 -61
  226. package/editor/select-mode/interactions/selectionGeometry.js +57 -165
  227. package/editor/select-mode/interactions/selectionGeometry.js.map +2 -2
  228. package/editor/select-mode/selectModeSession.d.ts +1 -0
  229. package/editor/select-mode/selectModeSession.js +6 -3
  230. package/editor/select-mode/selectModeSession.js.map +2 -2
  231. package/editor/select-mode/selectionFrame.d.ts +9 -60
  232. package/editor/select-mode/selectionFrame.js +28 -116
  233. package/editor/select-mode/selectionFrame.js.map +2 -2
  234. package/editor/select-mode/symbolicate.d.ts +2 -1
  235. package/editor/select-mode/symbolicate.js +7 -195
  236. package/editor/select-mode/symbolicate.js.map +2 -2
  237. package/editor/select-mode/tiptapInlineEditor.d.ts +15 -2
  238. package/editor/select-mode/tiptapInlineEditor.js +6 -114
  239. package/editor/select-mode/tiptapInlineEditor.js.map +2 -2
  240. package/env.d.ts +2 -1
  241. package/env.js +10 -37
  242. package/env.js.map +2 -2
  243. package/gateways/canopy-api.d.ts +15 -12
  244. package/gateways/canopy-api.js +122 -160
  245. package/gateways/canopy-api.js.map +2 -2
  246. package/hooks/use-client-value.d.ts +2 -10
  247. package/hooks/use-client-value.js +10 -7
  248. package/hooks/use-client-value.js.map +2 -2
  249. package/hooks/use-formatted-price.d.ts +1 -14
  250. package/hooks/use-formatted-price.js +6 -14
  251. package/hooks/use-formatted-price.js.map +2 -2
  252. package/lib/canopy-error.d.ts +2 -5
  253. package/lib/canopy-error.js +10 -14
  254. package/lib/canopy-error.js.map +2 -2
  255. package/lib/get-query-client.d.ts +2 -1
  256. package/lib/get-query-client.js +8 -27
  257. package/lib/get-query-client.js.map +2 -2
  258. package/lib/integration-utils.d.ts +1 -0
  259. package/lib/integration-utils.js +9 -3
  260. package/lib/integration-utils.js.map +2 -2
  261. package/lib/shopify-utils.d.ts +2 -10
  262. package/lib/shopify-utils.js +10 -2
  263. package/lib/shopify-utils.js.map +2 -2
  264. package/lib/tombstone.d.ts +21 -0
  265. package/lib/tombstone.js +99 -0
  266. package/lib/tombstone.js.map +7 -0
  267. package/lib/url-utils.d.ts +2 -4
  268. package/lib/url-utils.js +10 -3
  269. package/lib/url-utils.js.map +2 -2
  270. package/loaders/collection-loader.d.ts +3 -2
  271. package/loaders/collection-loader.js +5 -48
  272. package/loaders/collection-loader.js.map +2 -2
  273. package/loaders/collection-products-loader.d.ts +3 -2
  274. package/loaders/collection-products-loader.js +5 -51
  275. package/loaders/collection-products-loader.js.map +2 -2
  276. package/loaders/contentful-entries-loader.d.ts +3 -2
  277. package/loaders/contentful-entries-loader.js +5 -71
  278. package/loaders/contentful-entries-loader.js.map +2 -2
  279. package/loaders/contentful-entry-loader.d.ts +3 -2
  280. package/loaders/contentful-entry-loader.js +5 -53
  281. package/loaders/contentful-entry-loader.js.map +2 -2
  282. package/loaders/invoke-loader-action.d.ts +2 -8
  283. package/loaders/invoke-loader-action.js +13 -8
  284. package/loaders/invoke-loader-action.js.map +2 -2
  285. package/loaders/invoke-loader-server.d.ts +2 -14
  286. package/loaders/invoke-loader-server.js +12 -34
  287. package/loaders/invoke-loader-server.js.map +2 -2
  288. package/loaders/invoke-loader.d.ts +6 -12
  289. package/loaders/invoke-loader.js +27 -29
  290. package/loaders/invoke-loader.js.map +2 -2
  291. package/loaders/levanta-product-loader.d.ts +3 -2
  292. package/loaders/levanta-product-loader.js +5 -46
  293. package/loaders/levanta-product-loader.js.map +2 -2
  294. package/loaders/loader-error-boundary.d.ts +9 -15
  295. package/loaders/loader-error-boundary.js +50 -13
  296. package/loaders/loader-error-boundary.js.map +2 -2
  297. package/loaders/loader-keys.d.ts +4 -12
  298. package/loaders/loader-keys.js +6 -1
  299. package/loaders/loader-keys.js.map +2 -2
  300. package/loaders/loader-schemas.d.ts +142 -61
  301. package/loaders/loader-schemas.js +253 -90
  302. package/loaders/loader-schemas.js.map +2 -2
  303. package/loaders/metaobject-loader.d.ts +3 -2
  304. package/loaders/metaobject-loader.js +5 -47
  305. package/loaders/metaobject-loader.js.map +2 -2
  306. package/loaders/metaobjects-loader.d.ts +3 -2
  307. package/loaders/metaobjects-loader.js +5 -53
  308. package/loaders/metaobjects-loader.js.map +2 -2
  309. package/loaders/okendo-review-aggregate-loader.d.ts +9 -10
  310. package/loaders/okendo-review-aggregate-loader.js +5 -49
  311. package/loaders/okendo-review-aggregate-loader.js.map +2 -2
  312. package/loaders/okendo-reviews-loader.d.ts +8 -16
  313. package/loaders/okendo-reviews-loader.js +5 -47
  314. package/loaders/okendo-reviews-loader.js.map +2 -2
  315. package/loaders/prefetch-loaders.d.ts +4 -26
  316. package/loaders/prefetch-loaders.js +5 -40
  317. package/loaders/prefetch-loaders.js.map +2 -2
  318. package/loaders/preview-placeholder.d.ts +8 -22
  319. package/loaders/preview-placeholder.js +47 -209
  320. package/loaders/preview-placeholder.js.map +2 -2
  321. package/loaders/product-loader-args.d.ts +2 -11
  322. package/loaders/product-loader-args.js +6 -12
  323. package/loaders/product-loader-args.js.map +2 -2
  324. package/loaders/product-loader.d.ts +3 -2
  325. package/loaders/product-loader.js +5 -45
  326. package/loaders/product-loader.js.map +2 -2
  327. package/loaders/rebuy-recommendations-loader.d.ts +8 -157
  328. package/loaders/rebuy-recommendations-loader.js +5 -50
  329. package/loaders/rebuy-recommendations-loader.js.map +2 -2
  330. package/loaders/reviews-io-review-aggregate-loader.d.ts +5 -4
  331. package/loaders/reviews-io-review-aggregate-loader.js +5 -36
  332. package/loaders/reviews-io-review-aggregate-loader.js.map +2 -2
  333. package/loaders/reviews-io-reviews-loader.d.ts +5 -4
  334. package/loaders/reviews-io-reviews-loader.js +5 -58
  335. package/loaders/reviews-io-reviews-loader.js.map +2 -2
  336. package/loaders/smile-earning-rules-loader.d.ts +10 -11
  337. package/loaders/smile-earning-rules-loader.js +5 -37
  338. package/loaders/smile-earning-rules-loader.js.map +2 -2
  339. package/loaders/smile-rewards-loader.d.ts +10 -11
  340. package/loaders/smile-rewards-loader.js +5 -37
  341. package/loaders/smile-rewards-loader.js.map +2 -2
  342. package/loaders/smile-vip-tiers-loader.d.ts +9 -10
  343. package/loaders/smile-vip-tiers-loader.js +5 -36
  344. package/loaders/smile-vip-tiers-loader.js.map +2 -2
  345. package/loaders/statsig-experiment-loader.d.ts +3 -8
  346. package/loaders/statsig-experiment-loader.js +5 -74
  347. package/loaders/statsig-experiment-loader.js.map +2 -2
  348. package/loaders/vendor-loader-keys.d.ts +4 -0
  349. package/loaders/vendor-loader-keys.js +9 -0
  350. package/loaders/vendor-loader-keys.js.map +7 -0
  351. package/loaders/yotpo-review-aggregate-loader.d.ts +5 -4
  352. package/loaders/yotpo-review-aggregate-loader.js +5 -43
  353. package/loaders/yotpo-review-aggregate-loader.js.map +2 -2
  354. package/loaders/yotpo-reviews-loader.d.ts +5 -4
  355. package/loaders/yotpo-reviews-loader.js +5 -58
  356. package/loaders/yotpo-reviews-loader.js.map +2 -2
  357. package/money.d.ts +9 -9
  358. package/money.js +25 -6
  359. package/money.js.map +2 -2
  360. package/next/config.d.ts +3 -1
  361. package/next/config.js +11 -85
  362. package/next/config.js.map +2 -2
  363. package/next/image-loader.d.ts +2 -1
  364. package/next/image-loader.js +7 -47
  365. package/next/image-loader.js.map +2 -2
  366. package/next/open-next.d.ts +4 -2
  367. package/next/open-next.js +6 -19
  368. package/next/open-next.js.map +2 -2
  369. package/orders/order-status-schema.d.ts +28 -13
  370. package/orders/order-status-schema.js +45 -13
  371. package/orders/order-status-schema.js.map +2 -2
  372. package/orders/order-status.d.ts +2 -8
  373. package/orders/order-status.js +6 -36
  374. package/orders/order-status.js.map +2 -2
  375. package/package.json +1 -12
  376. package/providers/query-provider.d.ts +3 -1
  377. package/providers/query-provider.js +10 -6
  378. package/providers/query-provider.js.map +2 -2
  379. package/providers/replo-provider.d.ts +3 -1
  380. package/providers/replo-provider.js +6 -37
  381. package/providers/replo-provider.js.map +2 -2
  382. package/routing/evaluate.d.ts +3 -3
  383. package/routing/evaluate.js +5 -40
  384. package/routing/evaluate.js.map +2 -2
  385. package/routing/rules.d.ts +3 -11
  386. package/routing/rules.js +7 -1
  387. package/routing/rules.js.map +2 -2
@@ -1,10 +1,14 @@
1
1
  "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { QueryClientProvider } from "@tanstack/react-query";
4
- import { getQueryClient } from "../lib/get-query-client";
5
- function QueryProvider({ children }) {
6
- const queryClient = getQueryClient();
7
- return /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children });
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
+ function QueryProvider(_args) {
4
+ throw canopyTombstoneError({
5
+ symbol: "QueryProvider",
6
+ subpath: "providers/query-provider",
7
+ replacement: {
8
+ kind: "internal",
9
+ nearestPublicSubpaths: ["providers/replo-provider"]
10
+ }
11
+ });
8
12
  }
9
13
  export {
10
14
  QueryProvider
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../providers/query-provider.tsx"],
4
- "sourcesContent": ["\"use client\";\n\nimport { QueryClientProvider } from \"@tanstack/react-query\";\n\nimport { getQueryClient } from \"../lib/get-query-client\";\n\nexport function QueryProvider({ children }: React.PropsWithChildren) {\n const queryClient = getQueryClient();\n\n return (\n <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>\n );\n}\n"],
5
- "mappings": ";AAUI;AARJ,SAAS,2BAA2B;AAEpC,SAAS,sBAAsB;AAExB,SAAS,cAAc,EAAE,SAAS,GAA4B;AACnE,QAAM,cAAc,eAAe;AAEnC,SACE,oBAAC,uBAAoB,QAAQ,aAAc,UAAS;AAExD;",
4
+ "sourcesContent": ["\"use client\";\n\nimport type { ReactElement } from \"react\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; QueryProvider has no direct replacement. */\nexport function QueryProvider(_args: React.PropsWithChildren): ReactElement {\n throw canopyTombstoneError({\n symbol: \"QueryProvider\",\n subpath: \"providers/query-provider\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n}\n"],
5
+ "mappings": ";AAIA,SAAS,4BAA4B;AAG9B,SAAS,cAAc,OAA8C;AAC1E,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,0BAA0B;AAAA,IACpD;AAAA,EACF,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -1 +1,3 @@
1
- export declare function ReploProvider({ children }: React.PropsWithChildren): Promise<import("react/jsx-runtime").JSX.Element>;
1
+ import type React from "react";
2
+ /** @deprecated Use ReploProvider from @replohq/sdk with SandboxRuntime from @replohq/sandbox-runtime. */
3
+ export declare function ReploProvider(_props: React.PropsWithChildren): Promise<React.ReactElement>;
@@ -1,40 +1,9 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import { AnalyticsProvider } from "../analytics/analytics-provider";
3
- import { ReploFirstPartyPixel } from "../analytics/replo-first-party-pixel";
4
- import { CartLoader } from "../cart/cart-loader";
5
- import { AnnotationLayerMount } from "../editor/annotations/AnnotationLayerMount";
6
- import { ClientErrorBoundary } from "../editor/ClientErrorBoundary";
7
- import { DesignLibraryPreview } from "../editor/design-library-preview/DesignLibraryPreview";
8
- import { DocumentReadyBeacon } from "../editor/DocumentReadyBeacon";
9
- import LinkInterceptor from "../editor/LinkInterceptor";
10
- import { NextErrorReporter } from "../editor/NextErrorReporter";
11
- import PostHogRelay from "../editor/posthog-relay";
12
- import { EditorSelection } from "../editor/select-mode/EditorSelection";
13
- import { getCheckoutProvider } from "../lib/integration-utils";
14
- import { QueryProvider } from "./query-provider";
15
- async function ReploProvider({ children }) {
16
- let checkoutProvider = "none";
17
- try {
18
- checkoutProvider = await getCheckoutProvider();
19
- } catch {
20
- checkoutProvider = "none";
21
- }
22
- const isDevServer = process.env.NODE_ENV === "development";
23
- return /* @__PURE__ */ jsx(QueryProvider, { children: /* @__PURE__ */ jsxs(AnalyticsProvider, { checkoutProvider, children: [
24
- /* @__PURE__ */ jsx(ReploFirstPartyPixel, {}),
25
- isDevServer && /* @__PURE__ */ jsx(DocumentReadyBeacon, {}),
26
- /* @__PURE__ */ jsx(CartLoader, { children: isDevServer ? /* @__PURE__ */ jsxs(Fragment, { children: [
27
- /* @__PURE__ */ jsx(NextErrorReporter, {}),
28
- /* @__PURE__ */ jsxs(ClientErrorBoundary, { children: [
29
- /* @__PURE__ */ jsx(LinkInterceptor, {}),
30
- /* @__PURE__ */ jsx(PostHogRelay, {}),
31
- /* @__PURE__ */ jsx(EditorSelection, {}),
32
- /* @__PURE__ */ jsx(AnnotationLayerMount, {}),
33
- /* @__PURE__ */ jsx(DesignLibraryPreview, {}),
34
- children
35
- ] })
36
- ] }) : children })
37
- ] }) });
1
+ import { canopyTombstoneError } from "../lib/tombstone";
2
+ async function ReploProvider(_props) {
3
+ throw canopyTombstoneError({
4
+ symbol: "ReploProvider",
5
+ subpath: "providers/replo-provider"
6
+ });
38
7
  }
39
8
  export {
40
9
  ReploProvider
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../providers/replo-provider.tsx"],
4
- "sourcesContent": ["import type { CheckoutProvider } from \"../lib/integration-utils\";\n\nimport { AnalyticsProvider } from \"../analytics/analytics-provider\";\nimport { ReploFirstPartyPixel } from \"../analytics/replo-first-party-pixel\";\nimport { CartLoader } from \"../cart/cart-loader\";\nimport { AnnotationLayerMount } from \"../editor/annotations/AnnotationLayerMount\";\nimport { ClientErrorBoundary } from \"../editor/ClientErrorBoundary\";\nimport { DesignLibraryPreview } from \"../editor/design-library-preview/DesignLibraryPreview\";\nimport { DocumentReadyBeacon } from \"../editor/DocumentReadyBeacon\";\nimport LinkInterceptor from \"../editor/LinkInterceptor\";\nimport { NextErrorReporter } from \"../editor/NextErrorReporter\";\nimport PostHogRelay from \"../editor/posthog-relay\";\nimport { EditorSelection } from \"../editor/select-mode/EditorSelection\";\nimport { getCheckoutProvider } from \"../lib/integration-utils\";\nimport { QueryProvider } from \"./query-provider\";\n\nexport async function ReploProvider({ children }: React.PropsWithChildren) {\n // Server-resolved so the analytics layer can suppress checkout-funnel events\n // that Shopify's hosted checkout already reports. Defaults to \"none\" (events\n // fire) if the env can't be read, preserving prior behavior.\n let checkoutProvider: CheckoutProvider = \"none\";\n try {\n checkoutProvider = await getCheckoutProvider();\n } catch {\n checkoutProvider = \"none\";\n }\n\n // The editor only embeds dev servers (`next dev`), so editor-integration components render there only \u2014 production builds ship none of them and behave like plain Next apps.\n const isDevServer = process.env.NODE_ENV === \"development\";\n\n return (\n <QueryProvider>\n <AnalyticsProvider checkoutProvider={checkoutProvider}>\n <ReploFirstPartyPixel />\n {isDevServer && <DocumentReadyBeacon />}\n <CartLoader>\n {isDevServer ? (\n <>\n {/* NOTE (Max, 2026-06-08): Outside ClientErrorBoundary on purpose \u2014 when\n the boundary catches a runtime error it swaps its children for a\n neutral cover, which would unmount the reporter and freeze it in the\n error state. It must stay mounted to observe Next's overlay across\n error <-> recover. */}\n <NextErrorReporter />\n <ClientErrorBoundary>\n <LinkInterceptor />\n <PostHogRelay />\n <EditorSelection />\n <AnnotationLayerMount />\n <DesignLibraryPreview />\n {children}\n </ClientErrorBoundary>\n </>\n ) : (\n children\n )}\n </CartLoader>\n </AnalyticsProvider>\n </QueryProvider>\n );\n}\n"],
5
- "mappings": "AAiCQ,SAII,UAJJ,KAWM,YAXN;AA/BR,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AACrC,SAAS,kBAAkB;AAC3B,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,OAAO,qBAAqB;AAC5B,SAAS,yBAAyB;AAClC,OAAO,kBAAkB;AACzB,SAAS,uBAAuB;AAChC,SAAS,2BAA2B;AACpC,SAAS,qBAAqB;AAE9B,eAAsB,cAAc,EAAE,SAAS,GAA4B;AAIzE,MAAI,mBAAqC;AACzC,MAAI;AACF,uBAAmB,MAAM,oBAAoB;AAAA,EAC/C,QAAQ;AACN,uBAAmB;AAAA,EACrB;AAGA,QAAM,cAAc,QAAQ,IAAI,aAAa;AAE7C,SACE,oBAAC,iBACC,+BAAC,qBAAkB,kBACjB;AAAA,wBAAC,wBAAqB;AAAA,IACrB,eAAe,oBAAC,uBAAoB;AAAA,IACrC,oBAAC,cACE,wBACC,iCAME;AAAA,0BAAC,qBAAkB;AAAA,MACnB,qBAAC,uBACC;AAAA,4BAAC,mBAAgB;AAAA,QACjB,oBAAC,gBAAa;AAAA,QACd,oBAAC,mBAAgB;AAAA,QACjB,oBAAC,wBAAqB;AAAA,QACtB,oBAAC,wBAAqB;AAAA,QACrB;AAAA,SACH;AAAA,OACF,IAEA,UAEJ;AAAA,KACF,GACF;AAEJ;",
4
+ "sourcesContent": ["import type React from \"react\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Use ReploProvider from @replohq/sdk with SandboxRuntime from @replohq/sandbox-runtime. */\nexport async function ReploProvider(\n _props: React.PropsWithChildren,\n): Promise<React.ReactElement> {\n throw canopyTombstoneError({\n symbol: \"ReploProvider\",\n subpath: \"providers/replo-provider\",\n });\n}\n"],
5
+ "mappings": "AAEA,SAAS,4BAA4B;AAGrC,eAAsB,cACpB,QAC6B;AAC7B,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
- import type { NextRequest } from "next/server";
1
+ import type { NextRequest, NextResponse } from "next/server";
2
2
  import type { RedirectRule } from "../_vendor/schemas/routing/rules";
3
- import { NextResponse } from "next/server";
4
- export declare function evaluateRouting({ request, rules, }: {
3
+ /** @deprecated Use evaluateRouting from @replohq/sdk/routing/evaluate. */
4
+ export declare function evaluateRouting(_args: {
5
5
  request: NextRequest;
6
6
  rules: readonly RedirectRule[];
7
7
  }): NextResponse;
@@ -1,44 +1,9 @@
1
- import { NextResponse } from "next/server";
2
- import { applyParams, matchSource } from "../_vendor/schemas/routing/match.mjs";
3
- function evaluateRouting({
4
- request,
5
- rules
6
- }) {
7
- for (const rule of rules) {
8
- const response = evaluateRedirect({ request, rule });
9
- if (response) {
10
- return response;
11
- }
12
- }
13
- return NextResponse.next();
14
- }
15
- function evaluateRedirect({
16
- request,
17
- rule
18
- }) {
19
- const params = matchSource({
20
- source: rule.source,
21
- pathname: request.nextUrl.pathname
1
+ import { canopyTombstoneError } from "../lib/tombstone";
2
+ function evaluateRouting(_args) {
3
+ throw canopyTombstoneError({
4
+ symbol: "evaluateRouting",
5
+ subpath: "routing/evaluate"
22
6
  });
23
- if (!params) {
24
- return null;
25
- }
26
- const url = new URL(
27
- applyParams({ value: rule.destination, params }),
28
- request.nextUrl.origin
29
- );
30
- if (url.origin === request.nextUrl.origin && !url.search) {
31
- url.search = request.nextUrl.search;
32
- }
33
- const redirectsToCurrentRequest = url.origin === request.nextUrl.origin && normalizePath(url.pathname) === normalizePath(request.nextUrl.pathname) && url.search === request.nextUrl.search;
34
- if (redirectsToCurrentRequest) {
35
- return NextResponse.next();
36
- }
37
- return NextResponse.redirect(url, rule.status);
38
- }
39
- function normalizePath(pathname) {
40
- const trimmed = pathname.replace(/\/+$/, "");
41
- return trimmed === "" ? "/" : trimmed;
42
7
  }
43
8
  export {
44
9
  evaluateRouting
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../routing/evaluate.ts"],
4
- "sourcesContent": ["import type { NextRequest } from \"next/server\";\nimport type { RedirectRule } from \"schemas/routing/rules\";\n\nimport { NextResponse } from \"next/server\";\n\nimport { applyParams, matchSource } from \"schemas/routing/match\";\n\nexport function evaluateRouting({\n request,\n rules,\n}: {\n request: NextRequest;\n rules: readonly RedirectRule[];\n}): NextResponse {\n for (const rule of rules) {\n const response = evaluateRedirect({ request, rule });\n if (response) {\n return response;\n }\n }\n return NextResponse.next();\n}\n\nfunction evaluateRedirect({\n request,\n rule,\n}: {\n request: NextRequest;\n rule: RedirectRule;\n}): NextResponse | null {\n const params = matchSource({\n source: rule.source,\n pathname: request.nextUrl.pathname,\n });\n if (!params) {\n return null;\n }\n const url = new URL(\n applyParams({ value: rule.destination, params }),\n request.nextUrl.origin,\n );\n if (url.origin === request.nextUrl.origin && !url.search) {\n url.search = request.nextUrl.search;\n }\n // A destination that lands back on the current request would loop. The rule\n // still consumes the request \u2014 later rules were authored as alternatives to\n // it, not fallbacks for it \u2014 so the page renders normally instead.\n const redirectsToCurrentRequest =\n url.origin === request.nextUrl.origin &&\n normalizePath(url.pathname) === normalizePath(request.nextUrl.pathname) &&\n url.search === request.nextUrl.search;\n if (redirectsToCurrentRequest) {\n return NextResponse.next();\n }\n return NextResponse.redirect(url, rule.status);\n}\n\n/** Trailing slashes carry no meaning, so `/blogs` and `/blogs/` are the same. */\nfunction normalizePath(pathname: string): string {\n const trimmed = pathname.replace(/\\/+$/, \"\");\n return trimmed === \"\" ? \"/\" : trimmed;\n}\n"],
5
- "mappings": "AAGA,SAAS,oBAAoB;AAE7B,SAAS,aAAa,mBAAmB;AAElC,SAAS,gBAAgB;AAAA,EAC9B;AAAA,EACA;AACF,GAGiB;AACf,aAAW,QAAQ,OAAO;AACxB,UAAM,WAAW,iBAAiB,EAAE,SAAS,KAAK,CAAC;AACnD,QAAI,UAAU;AACZ,aAAO;AAAA,IACT;AAAA,EACF;AACA,SAAO,aAAa,KAAK;AAC3B;AAEA,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA;AACF,GAGwB;AACtB,QAAM,SAAS,YAAY;AAAA,IACzB,QAAQ,KAAK;AAAA,IACb,UAAU,QAAQ,QAAQ;AAAA,EAC5B,CAAC;AACD,MAAI,CAAC,QAAQ;AACX,WAAO;AAAA,EACT;AACA,QAAM,MAAM,IAAI;AAAA,IACd,YAAY,EAAE,OAAO,KAAK,aAAa,OAAO,CAAC;AAAA,IAC/C,QAAQ,QAAQ;AAAA,EAClB;AACA,MAAI,IAAI,WAAW,QAAQ,QAAQ,UAAU,CAAC,IAAI,QAAQ;AACxD,QAAI,SAAS,QAAQ,QAAQ;AAAA,EAC/B;AAIA,QAAM,4BACJ,IAAI,WAAW,QAAQ,QAAQ,UAC/B,cAAc,IAAI,QAAQ,MAAM,cAAc,QAAQ,QAAQ,QAAQ,KACtE,IAAI,WAAW,QAAQ,QAAQ;AACjC,MAAI,2BAA2B;AAC7B,WAAO,aAAa,KAAK;AAAA,EAC3B;AACA,SAAO,aAAa,SAAS,KAAK,KAAK,MAAM;AAC/C;AAGA,SAAS,cAAc,UAA0B;AAC/C,QAAM,UAAU,SAAS,QAAQ,QAAQ,EAAE;AAC3C,SAAO,YAAY,KAAK,MAAM;AAChC;",
4
+ "sourcesContent": ["import type { NextRequest, NextResponse } from \"next/server\";\nimport type { RedirectRule } from \"schemas/routing/rules\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Use evaluateRouting from @replohq/sdk/routing/evaluate. */\nexport function evaluateRouting(_args: {\n request: NextRequest;\n rules: readonly RedirectRule[];\n}): NextResponse {\n throw canopyTombstoneError({\n symbol: \"evaluateRouting\",\n subpath: \"routing/evaluate\",\n });\n}\n"],
5
+ "mappings": "AAGA,SAAS,4BAA4B;AAG9B,SAAS,gBAAgB,OAGf;AACf,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -1,12 +1,4 @@
1
- /**
2
- * Site-facing entrypoint for redirect rule authoring.
3
- *
4
- * The schema, validators, and matcher live in `schemas/routing` so the Website
5
- * Builder can import them without depending on canopy (a published package,
6
- * whose release cycle shouldn't gate editor-only changes). Sites can't import
7
- * `schemas` directly — it is workspace-only and reaches generated sites through
8
- * canopy's vendoring step — so `middleware.ts` keeps importing `reploRedirect`
9
- * from here.
10
- */
1
+ import type { RedirectRule } from "../_vendor/schemas/routing/rules";
11
2
  export type { RedirectRule, RedirectStatus, } from "../_vendor/schemas/routing/rules";
12
- export { reploRedirect } from "../_vendor/schemas/routing/rules";
3
+ /** @deprecated Use reploRedirect from @replohq/sdk/routing/rules. */
4
+ export declare function reploRedirect(_input: RedirectRule): RedirectRule;
package/routing/rules.js CHANGED
@@ -1,4 +1,10 @@
1
- import { reploRedirect } from "../_vendor/schemas/routing/rules.mjs";
1
+ import { canopyTombstoneError } from "../lib/tombstone";
2
+ function reploRedirect(_input) {
3
+ throw canopyTombstoneError({
4
+ symbol: "reploRedirect",
5
+ subpath: "routing/rules"
6
+ });
7
+ }
2
8
  export {
3
9
  reploRedirect
4
10
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../routing/rules.ts"],
4
- "sourcesContent": ["/**\n * Site-facing entrypoint for redirect rule authoring.\n *\n * The schema, validators, and matcher live in `schemas/routing` so the Website\n * Builder can import them without depending on canopy (a published package,\n * whose release cycle shouldn't gate editor-only changes). Sites can't import\n * `schemas` directly \u2014 it is workspace-only and reaches generated sites through\n * canopy's vendoring step \u2014 so `middleware.ts` keeps importing `reploRedirect`\n * from here.\n */\nexport type {\n RedirectRule,\n RedirectStatus,\n} from \"schemas/routing/rules\"; /* eslint-disable-line replo/no-export-from -- site-facing entrypoint intentionally re-exports the authoring API. */\nexport { reploRedirect } from \"schemas/routing/rules\"; /* eslint-disable-line replo/no-export-from -- site-facing entrypoint intentionally re-exports the authoring API. */\n"],
5
- "mappings": "AAcA,SAAS,qBAAqB;",
4
+ "sourcesContent": ["import type { RedirectRule } from \"schemas/routing/rules\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\nexport type {\n RedirectRule,\n RedirectStatus,\n} from \"schemas/routing/rules\"; /* eslint-disable-line replo/no-export-from -- site-facing entrypoint intentionally re-exports the authoring API. */\n\n/** @deprecated Use reploRedirect from @replohq/sdk/routing/rules. */\nexport function reploRedirect(_input: RedirectRule): RedirectRule {\n throw canopyTombstoneError({\n symbol: \"reploRedirect\",\n subpath: \"routing/rules\",\n });\n}\n"],
5
+ "mappings": "AAEA,SAAS,4BAA4B;AAQ9B,SAAS,cAAc,QAAoC;AAChE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;",
6
6
  "names": []
7
7
  }