@replohq/canopy-sdk 2.6.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) 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/generated/consent.d.ts +2 -0
  10. package/_vendor/schemas/generated/selectModeIframeRpc.d.ts +8 -0
  11. package/_vendor/schemas/iframeRpcChannel.mjs +2 -1
  12. package/_vendor/schemas/loaderKeys.d.ts +1 -1
  13. package/_vendor/schemas/loaderKeys.mjs +103 -23
  14. package/_vendor/schemas/money.mjs +1860 -3
  15. package/_vendor/schemas/pageAnnotations.mjs +1 -1
  16. package/_vendor/schemas/routing/match.mjs +1 -0
  17. package/_vendor/schemas/routing/rules.mjs +2 -1
  18. package/_vendor/schemas/selectMode.d.ts +4 -4
  19. package/_vendor/schemas/selectMode.mjs +1 -0
  20. package/_vendor/schemas/selectModeIframeRpc.d.ts +25 -5
  21. package/_vendor/schemas/selectModeIframeRpc.mjs +12 -3
  22. package/analytics/analytics-provider.d.ts +5 -10
  23. package/analytics/analytics-provider.js +14 -101
  24. package/analytics/analytics-provider.js.map +2 -2
  25. package/analytics/get-analytics-sinks.d.ts +2 -19
  26. package/analytics/get-analytics-sinks.js +9 -46
  27. package/analytics/get-analytics-sinks.js.map +2 -2
  28. package/analytics/hooks/use-product-viewed-analytics.d.ts +2 -6
  29. package/analytics/hooks/use-product-viewed-analytics.js +6 -28
  30. package/analytics/hooks/use-product-viewed-analytics.js.map +2 -2
  31. package/analytics/replo-first-party-pixel.d.ts +3 -12
  32. package/analytics/replo-first-party-pixel.js +8 -24
  33. package/analytics/replo-first-party-pixel.js.map +2 -2
  34. package/analytics/replo-pixel-script.d.ts +4 -10
  35. package/analytics/replo-pixel-script.js +9 -23
  36. package/analytics/replo-pixel-script.js.map +2 -2
  37. package/analytics/sinks/ga4-sink.d.ts +10 -9
  38. package/analytics/sinks/ga4-sink.js +99 -50
  39. package/analytics/sinks/ga4-sink.js.map +2 -2
  40. package/analytics/sinks/meta-sink.d.ts +5 -4
  41. package/analytics/sinks/meta-sink.js +82 -29
  42. package/analytics/sinks/meta-sink.js.map +2 -2
  43. package/analytics/sinks/pinterest-sink.d.ts +7 -6
  44. package/analytics/sinks/pinterest-sink.js +82 -49
  45. package/analytics/sinks/pinterest-sink.js.map +2 -2
  46. package/analytics/sinks/reddit-sink.d.ts +8 -7
  47. package/analytics/sinks/reddit-sink.js +82 -53
  48. package/analytics/sinks/reddit-sink.js.map +2 -2
  49. package/analytics/sinks/replo-sink.d.ts +9 -8
  50. package/analytics/sinks/replo-sink.js +89 -37
  51. package/analytics/sinks/replo-sink.js.map +2 -2
  52. package/analytics/sinks/snapchat-sink.d.ts +6 -5
  53. package/analytics/sinks/snapchat-sink.js +82 -40
  54. package/analytics/sinks/snapchat-sink.js.map +2 -2
  55. package/analytics/sinks/tiktok-sink.d.ts +8 -7
  56. package/analytics/sinks/tiktok-sink.js +82 -52
  57. package/analytics/sinks/tiktok-sink.js.map +2 -2
  58. package/analytics/sinks/window-sink.d.ts +11 -14
  59. package/analytics/sinks/window-sink.js +101 -28
  60. package/analytics/sinks/window-sink.js.map +2 -2
  61. package/analytics/utils/analytics-utils.d.ts +4 -2
  62. package/analytics/utils/analytics-utils.js +19 -123
  63. package/analytics/utils/analytics-utils.js.map +2 -2
  64. package/analytics/utils/navigation-tracker.d.ts +2 -1
  65. package/analytics/utils/navigation-tracker.js +37 -30
  66. package/analytics/utils/navigation-tracker.js.map +2 -2
  67. package/analytics/utils/shopify-funnel-gate.d.ts +2 -7
  68. package/analytics/utils/shopify-funnel-gate.js +8 -15
  69. package/analytics/utils/shopify-funnel-gate.js.map +2 -2
  70. package/cart/buy-now-action.d.ts +2 -9
  71. package/cart/buy-now-action.js +5 -97
  72. package/cart/buy-now-action.js.map +2 -2
  73. package/cart/cart-actions.d.ts +12 -56
  74. package/cart/cart-actions.js +88 -68
  75. package/cart/cart-actions.js.map +2 -2
  76. package/cart/cart-loader.d.ts +3 -9
  77. package/cart/cart-loader.js +14 -6
  78. package/cart/cart-loader.js.map +2 -2
  79. package/cart/cart-provider.d.ts +6 -58
  80. package/cart/cart-provider.js +13 -359
  81. package/cart/cart-provider.js.map +3 -3
  82. package/cart/cart-schema.d.ts +2 -1
  83. package/cart/cart-schema.js +12 -64
  84. package/cart/cart-schema.js.map +2 -2
  85. package/cart/cart-types.d.ts +1 -1
  86. package/cart/cart-types.js +5 -4
  87. package/cart/cart-types.js.map +2 -2
  88. package/cart/gateways/cart-constants.d.ts +1 -0
  89. package/cart/gateways/cart-constants.js.map +2 -2
  90. package/cart/gateways/cart-gateway.d.ts +1 -0
  91. package/cart/gateways/cart-gateway.js +13 -12
  92. package/cart/gateways/cart-gateway.js.map +2 -2
  93. package/cart/gateways/cookie-cart-gateway.d.ts +8 -11
  94. package/cart/gateways/cookie-cart-gateway.js +93 -97
  95. package/cart/gateways/cookie-cart-gateway.js.map +2 -2
  96. package/cart/gateways/default-cart-gateway.d.ts +10 -16
  97. package/cart/gateways/default-cart-gateway.js +13 -23
  98. package/cart/gateways/default-cart-gateway.js.map +2 -2
  99. package/cart/gateways/resolver-cart-gateway.d.ts +1 -0
  100. package/cart/gateways/resolver-cart-gateway.js +13 -102
  101. package/cart/gateways/resolver-cart-gateway.js.map +2 -2
  102. package/cart/gateways/stripe-cart-gateway.d.ts +10 -16
  103. package/cart/gateways/stripe-cart-gateway.js +13 -21
  104. package/cart/gateways/stripe-cart-gateway.js.map +2 -2
  105. package/cart/hooks/use-add-to-cart.d.ts +3 -47
  106. package/cart/hooks/use-add-to-cart.js +10 -115
  107. package/cart/hooks/use-add-to-cart.js.map +2 -2
  108. package/cart/hooks/use-buy-now.d.ts +1 -39
  109. package/cart/hooks/use-buy-now.js +5 -55
  110. package/cart/hooks/use-buy-now.js.map +2 -2
  111. package/cart/utils/cart-utils.d.ts +8 -35
  112. package/cart/utils/cart-utils.js +21 -35
  113. package/cart/utils/cart-utils.js.map +2 -2
  114. package/cart/utils/cookie-cart-persistence.d.ts +16 -41
  115. package/cart/utils/cookie-cart-persistence.js +38 -143
  116. package/cart/utils/cookie-cart-persistence.js.map +2 -2
  117. package/cart/utils/variant-to-cart-line.d.ts +12 -42
  118. package/cart/utils/variant-to-cart-line.js +31 -147
  119. package/cart/utils/variant-to-cart-line.js.map +2 -2
  120. package/chunk-UJCSKKID.mjs +27 -0
  121. package/{chunk-OFU2QEDR.mjs → chunk-ZZPQ3E7S.mjs} +50 -5
  122. package/consent/consent-action.d.ts +2 -1
  123. package/consent/consent-action.js +10 -20
  124. package/consent/consent-action.js.map +2 -2
  125. package/consent/consent-actions.d.ts +2 -13
  126. package/consent/consent-actions.js +9 -29
  127. package/consent/consent-actions.js.map +2 -2
  128. package/consent/consent-store.d.ts +9 -36
  129. package/consent/consent-store.js +12 -182
  130. package/consent/consent-store.js.map +2 -2
  131. package/consent/cookie.d.ts +9 -12
  132. package/consent/cookie.js +32 -64
  133. package/consent/cookie.js.map +2 -2
  134. package/consent/replo-scripts.d.ts +5 -18
  135. package/consent/replo-scripts.js +11 -94
  136. package/consent/replo-scripts.js.map +2 -2
  137. package/consent/script-registration-store.d.ts +6 -2
  138. package/consent/script-registration-store.js +33 -47
  139. package/consent/script-registration-store.js.map +2 -2
  140. package/consent/script-snippets.d.ts +4 -18
  141. package/consent/script-snippets.js +19 -127
  142. package/consent/script-snippets.js.map +2 -2
  143. package/consent/window-api.d.ts +4 -15
  144. package/consent/window-api.js +8 -63
  145. package/consent/window-api.js.map +2 -2
  146. package/editor/ClientErrorBoundary.d.ts +4 -10
  147. package/editor/ClientErrorBoundary.js +7 -55
  148. package/editor/ClientErrorBoundary.js.map +2 -2
  149. package/editor/DocumentReadyBeacon.d.ts +3 -1
  150. package/editor/DocumentReadyBeacon.js +6 -3
  151. package/editor/DocumentReadyBeacon.js.map +2 -2
  152. package/editor/LinkInterceptor.d.ts +1 -0
  153. package/editor/LinkInterceptor.js +6 -121
  154. package/editor/LinkInterceptor.js.map +2 -2
  155. package/editor/NextErrorReporter.d.ts +1 -0
  156. package/editor/NextErrorReporter.js +6 -85
  157. package/editor/NextErrorReporter.js.map +2 -2
  158. package/editor/annotations/AnnotationLayerMount.d.ts +1 -0
  159. package/editor/annotations/AnnotationLayerMount.js +6 -6
  160. package/editor/annotations/AnnotationLayerMount.js.map +2 -2
  161. package/editor/annotations/annotationController.d.ts +1 -0
  162. package/editor/annotations/annotationController.js +6 -378
  163. package/editor/annotations/annotationController.js.map +2 -2
  164. package/editor/annotations/bridgeGate.d.ts +4 -7
  165. package/editor/annotations/bridgeGate.js +13 -15
  166. package/editor/annotations/bridgeGate.js.map +2 -2
  167. package/editor/design-library-preview/DesignLibraryPreview.d.ts +1 -0
  168. package/editor/design-library-preview/DesignLibraryPreview.js +6 -86
  169. package/editor/design-library-preview/DesignLibraryPreview.js.map +2 -2
  170. package/editor/posthog-relay.d.ts +1 -10
  171. package/editor/posthog-relay.js +6 -65
  172. package/editor/posthog-relay.js.map +2 -2
  173. package/editor/select-mode/EditorSelection.d.ts +1 -23
  174. package/editor/select-mode/EditorSelection.js +5 -87
  175. package/editor/select-mode/EditorSelection.js.map +2 -2
  176. package/editor/select-mode/annotationFrames.d.ts +9 -9
  177. package/editor/select-mode/annotationFrames.js +22 -103
  178. package/editor/select-mode/annotationFrames.js.map +2 -2
  179. package/editor/select-mode/descriptor/elementDescriptor.d.ts +6 -21
  180. package/editor/select-mode/descriptor/elementDescriptor.js +19 -192
  181. package/editor/select-mode/descriptor/elementDescriptor.js.map +3 -3
  182. package/editor/select-mode/descriptor/styleExtraction.d.ts +4 -2
  183. package/editor/select-mode/descriptor/styleExtraction.js +11 -262
  184. package/editor/select-mode/descriptor/styleExtraction.js.map +2 -2
  185. package/editor/select-mode/displayModeStore.d.ts +2 -0
  186. package/editor/select-mode/displayModeStore.js +14 -39
  187. package/editor/select-mode/displayModeStore.js.map +2 -2
  188. package/editor/select-mode/fast-refresh-relay.d.ts +2 -1
  189. package/editor/select-mode/fast-refresh-relay.js +7 -28
  190. package/editor/select-mode/fast-refresh-relay.js.map +2 -2
  191. package/editor/select-mode/fiber.d.ts +14 -7
  192. package/editor/select-mode/fiber.js +40 -286
  193. package/editor/select-mode/fiber.js.map +2 -2
  194. package/editor/select-mode/hooks/useCrosshairCursor.d.ts +2 -9
  195. package/editor/select-mode/hooks/useCrosshairCursor.js +7 -15
  196. package/editor/select-mode/hooks/useCrosshairCursor.js.map +2 -2
  197. package/editor/select-mode/hooks/useEditModeStateMachine.d.ts +5 -3
  198. package/editor/select-mode/hooks/useEditModeStateMachine.js +13 -228
  199. package/editor/select-mode/hooks/useEditModeStateMachine.js.map +2 -2
  200. package/editor/select-mode/hooks/useOptimisticOverrides.d.ts +2 -1
  201. package/editor/select-mode/hooks/useOptimisticOverrides.js +6 -277
  202. package/editor/select-mode/hooks/useOptimisticOverrides.js.map +2 -2
  203. package/editor/select-mode/hooks/useParentMessaging.d.ts +2 -20
  204. package/editor/select-mode/hooks/useParentMessaging.js +7 -69
  205. package/editor/select-mode/hooks/useParentMessaging.js.map +2 -2
  206. package/editor/select-mode/hooks/useSelectModeController.d.ts +2 -1
  207. package/editor/select-mode/hooks/useSelectModeController.js +6 -40
  208. package/editor/select-mode/hooks/useSelectModeController.js.map +2 -2
  209. package/editor/select-mode/hooks/useSelectionHover.d.ts +2 -16
  210. package/editor/select-mode/hooks/useSelectionHover.js +7 -105
  211. package/editor/select-mode/hooks/useSelectionHover.js.map +2 -2
  212. package/editor/select-mode/hooks/useSelectionInteractions.d.ts +2 -26
  213. package/editor/select-mode/hooks/useSelectionInteractions.js +7 -348
  214. package/editor/select-mode/hooks/useSelectionInteractions.js.map +2 -2
  215. package/editor/select-mode/hooks/useSelectionScrollSync.d.ts +2 -22
  216. package/editor/select-mode/hooks/useSelectionScrollSync.js +7 -65
  217. package/editor/select-mode/hooks/useSelectionScrollSync.js.map +2 -2
  218. package/editor/select-mode/hooks/useSiblingResolution.d.ts +4 -2
  219. package/editor/select-mode/hooks/useSiblingResolution.js +13 -52
  220. package/editor/select-mode/hooks/useSiblingResolution.js.map +2 -2
  221. package/editor/select-mode/iframeRpcChannel.d.ts +10 -349
  222. package/editor/select-mode/iframeRpcChannel.js +23 -79
  223. package/editor/select-mode/iframeRpcChannel.js.map +2 -2
  224. package/editor/select-mode/inlineTextMarks.d.ts +4 -6
  225. package/editor/select-mode/inlineTextMarks.js +13 -18
  226. package/editor/select-mode/inlineTextMarks.js.map +2 -2
  227. package/editor/select-mode/interactions/selectionGeometry.d.ts +19 -61
  228. package/editor/select-mode/interactions/selectionGeometry.js +57 -165
  229. package/editor/select-mode/interactions/selectionGeometry.js.map +2 -2
  230. package/editor/select-mode/selectModeSession.d.ts +1 -0
  231. package/editor/select-mode/selectModeSession.js +6 -3
  232. package/editor/select-mode/selectModeSession.js.map +2 -2
  233. package/editor/select-mode/selectionFrame.d.ts +9 -60
  234. package/editor/select-mode/selectionFrame.js +28 -116
  235. package/editor/select-mode/selectionFrame.js.map +2 -2
  236. package/editor/select-mode/symbolicate.d.ts +2 -1
  237. package/editor/select-mode/symbolicate.js +7 -195
  238. package/editor/select-mode/symbolicate.js.map +2 -2
  239. package/editor/select-mode/tiptapInlineEditor.d.ts +15 -2
  240. package/editor/select-mode/tiptapInlineEditor.js +6 -114
  241. package/editor/select-mode/tiptapInlineEditor.js.map +2 -2
  242. package/env.d.ts +2 -1
  243. package/env.js +10 -37
  244. package/env.js.map +2 -2
  245. package/gateways/canopy-api.d.ts +15 -12
  246. package/gateways/canopy-api.js +122 -160
  247. package/gateways/canopy-api.js.map +2 -2
  248. package/hooks/use-client-value.d.ts +2 -10
  249. package/hooks/use-client-value.js +10 -7
  250. package/hooks/use-client-value.js.map +2 -2
  251. package/hooks/use-formatted-price.d.ts +1 -14
  252. package/hooks/use-formatted-price.js +6 -14
  253. package/hooks/use-formatted-price.js.map +2 -2
  254. package/lib/canopy-error.d.ts +2 -5
  255. package/lib/canopy-error.js +10 -14
  256. package/lib/canopy-error.js.map +2 -2
  257. package/lib/get-query-client.d.ts +2 -1
  258. package/lib/get-query-client.js +8 -27
  259. package/lib/get-query-client.js.map +2 -2
  260. package/lib/integration-utils.d.ts +1 -0
  261. package/lib/integration-utils.js +9 -3
  262. package/lib/integration-utils.js.map +2 -2
  263. package/lib/shopify-utils.d.ts +2 -10
  264. package/lib/shopify-utils.js +10 -2
  265. package/lib/shopify-utils.js.map +2 -2
  266. package/lib/tombstone.d.ts +21 -0
  267. package/lib/tombstone.js +99 -0
  268. package/lib/tombstone.js.map +7 -0
  269. package/lib/url-utils.d.ts +2 -4
  270. package/lib/url-utils.js +10 -3
  271. package/lib/url-utils.js.map +2 -2
  272. package/loaders/collection-loader.d.ts +3 -2
  273. package/loaders/collection-loader.js +5 -48
  274. package/loaders/collection-loader.js.map +2 -2
  275. package/loaders/collection-products-loader.d.ts +3 -2
  276. package/loaders/collection-products-loader.js +5 -51
  277. package/loaders/collection-products-loader.js.map +2 -2
  278. package/loaders/contentful-entries-loader.d.ts +3 -2
  279. package/loaders/contentful-entries-loader.js +5 -71
  280. package/loaders/contentful-entries-loader.js.map +2 -2
  281. package/loaders/contentful-entry-loader.d.ts +3 -2
  282. package/loaders/contentful-entry-loader.js +5 -53
  283. package/loaders/contentful-entry-loader.js.map +2 -2
  284. package/loaders/invoke-loader-action.d.ts +2 -8
  285. package/loaders/invoke-loader-action.js +13 -8
  286. package/loaders/invoke-loader-action.js.map +2 -2
  287. package/loaders/invoke-loader-server.d.ts +2 -14
  288. package/loaders/invoke-loader-server.js +12 -34
  289. package/loaders/invoke-loader-server.js.map +2 -2
  290. package/loaders/invoke-loader.d.ts +6 -12
  291. package/loaders/invoke-loader.js +27 -29
  292. package/loaders/invoke-loader.js.map +2 -2
  293. package/loaders/levanta-product-loader.d.ts +3 -2
  294. package/loaders/levanta-product-loader.js +5 -46
  295. package/loaders/levanta-product-loader.js.map +2 -2
  296. package/loaders/loader-error-boundary.d.ts +9 -15
  297. package/loaders/loader-error-boundary.js +50 -13
  298. package/loaders/loader-error-boundary.js.map +2 -2
  299. package/loaders/loader-keys.d.ts +4 -12
  300. package/loaders/loader-keys.js +6 -1
  301. package/loaders/loader-keys.js.map +2 -2
  302. package/loaders/loader-schemas.d.ts +142 -61
  303. package/loaders/loader-schemas.js +253 -90
  304. package/loaders/loader-schemas.js.map +2 -2
  305. package/loaders/metaobject-loader.d.ts +3 -2
  306. package/loaders/metaobject-loader.js +5 -47
  307. package/loaders/metaobject-loader.js.map +2 -2
  308. package/loaders/metaobjects-loader.d.ts +3 -2
  309. package/loaders/metaobjects-loader.js +5 -53
  310. package/loaders/metaobjects-loader.js.map +2 -2
  311. package/loaders/okendo-review-aggregate-loader.d.ts +9 -10
  312. package/loaders/okendo-review-aggregate-loader.js +5 -49
  313. package/loaders/okendo-review-aggregate-loader.js.map +2 -2
  314. package/loaders/okendo-reviews-loader.d.ts +8 -16
  315. package/loaders/okendo-reviews-loader.js +5 -47
  316. package/loaders/okendo-reviews-loader.js.map +2 -2
  317. package/loaders/prefetch-loaders.d.ts +4 -26
  318. package/loaders/prefetch-loaders.js +5 -40
  319. package/loaders/prefetch-loaders.js.map +2 -2
  320. package/loaders/preview-placeholder.d.ts +8 -22
  321. package/loaders/preview-placeholder.js +47 -209
  322. package/loaders/preview-placeholder.js.map +2 -2
  323. package/loaders/product-loader-args.d.ts +2 -11
  324. package/loaders/product-loader-args.js +6 -12
  325. package/loaders/product-loader-args.js.map +2 -2
  326. package/loaders/product-loader.d.ts +3 -2
  327. package/loaders/product-loader.js +5 -45
  328. package/loaders/product-loader.js.map +2 -2
  329. package/loaders/rebuy-recommendations-loader.d.ts +8 -157
  330. package/loaders/rebuy-recommendations-loader.js +5 -50
  331. package/loaders/rebuy-recommendations-loader.js.map +2 -2
  332. package/loaders/reviews-io-review-aggregate-loader.d.ts +5 -4
  333. package/loaders/reviews-io-review-aggregate-loader.js +5 -36
  334. package/loaders/reviews-io-review-aggregate-loader.js.map +2 -2
  335. package/loaders/reviews-io-reviews-loader.d.ts +5 -4
  336. package/loaders/reviews-io-reviews-loader.js +5 -58
  337. package/loaders/reviews-io-reviews-loader.js.map +2 -2
  338. package/loaders/smile-earning-rules-loader.d.ts +10 -11
  339. package/loaders/smile-earning-rules-loader.js +5 -37
  340. package/loaders/smile-earning-rules-loader.js.map +2 -2
  341. package/loaders/smile-rewards-loader.d.ts +10 -11
  342. package/loaders/smile-rewards-loader.js +5 -37
  343. package/loaders/smile-rewards-loader.js.map +2 -2
  344. package/loaders/smile-vip-tiers-loader.d.ts +9 -10
  345. package/loaders/smile-vip-tiers-loader.js +5 -36
  346. package/loaders/smile-vip-tiers-loader.js.map +2 -2
  347. package/loaders/statsig-experiment-loader.d.ts +3 -8
  348. package/loaders/statsig-experiment-loader.js +5 -74
  349. package/loaders/statsig-experiment-loader.js.map +2 -2
  350. package/loaders/vendor-loader-keys.d.ts +4 -0
  351. package/loaders/vendor-loader-keys.js +9 -0
  352. package/loaders/vendor-loader-keys.js.map +7 -0
  353. package/loaders/yotpo-review-aggregate-loader.d.ts +5 -4
  354. package/loaders/yotpo-review-aggregate-loader.js +5 -43
  355. package/loaders/yotpo-review-aggregate-loader.js.map +2 -2
  356. package/loaders/yotpo-reviews-loader.d.ts +5 -4
  357. package/loaders/yotpo-reviews-loader.js +5 -58
  358. package/loaders/yotpo-reviews-loader.js.map +2 -2
  359. package/money.d.ts +9 -9
  360. package/money.js +25 -6
  361. package/money.js.map +2 -2
  362. package/next/config.d.ts +3 -1
  363. package/next/config.js +11 -85
  364. package/next/config.js.map +2 -2
  365. package/next/image-loader.d.ts +2 -1
  366. package/next/image-loader.js +7 -47
  367. package/next/image-loader.js.map +2 -2
  368. package/next/open-next.d.ts +4 -2
  369. package/next/open-next.js +6 -19
  370. package/next/open-next.js.map +2 -2
  371. package/orders/order-status-schema.d.ts +28 -13
  372. package/orders/order-status-schema.js +45 -13
  373. package/orders/order-status-schema.js.map +2 -2
  374. package/orders/order-status.d.ts +2 -8
  375. package/orders/order-status.js +6 -36
  376. package/orders/order-status.js.map +2 -2
  377. package/package.json +1 -12
  378. package/providers/query-provider.d.ts +3 -1
  379. package/providers/query-provider.js +10 -6
  380. package/providers/query-provider.js.map +2 -2
  381. package/providers/replo-provider.d.ts +3 -1
  382. package/providers/replo-provider.js +6 -37
  383. package/providers/replo-provider.js.map +2 -2
  384. package/routing/evaluate.d.ts +3 -3
  385. package/routing/evaluate.js +5 -40
  386. package/routing/evaluate.js.map +2 -2
  387. package/routing/rules.d.ts +3 -11
  388. package/routing/rules.js +7 -1
  389. package/routing/rules.js.map +2 -2
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../gateways/canopy-api.ts"],
4
- "sourcesContent": ["import type { Cart } from \"../cart/cart-schema\";\n\nimport { z } from \"zod\";\n\nimport { cartSchema } from \"../cart/cart-schema\";\nimport { getEnv } from \"../env\";\nimport { CanopyError } from \"../lib/canopy-error\";\nimport { buildBaseUrl } from \"../lib/url-utils\";\n\ntype CanopyApiGatewayErrorConfig = {\n message: string;\n statusCode?: number;\n cause?: unknown;\n additionalData?: Record<string, unknown>;\n};\n\nexport class CanopyApiGatewayError extends CanopyError {\n statusCode: number;\n\n constructor(config: CanopyApiGatewayErrorConfig) {\n const resolvedStatusCode = config.statusCode ?? 500;\n super({\n message: config.message,\n cause: config.cause,\n additionalData: {\n ...config.additionalData,\n statusCode: resolvedStatusCode,\n },\n });\n this.statusCode = resolvedStatusCode;\n }\n}\n\nclass UnknownCanopyApiError extends CanopyApiGatewayError {\n constructor(config: Omit<CanopyApiGatewayErrorConfig, \"statusCode\">) {\n super({ ...config, statusCode: 502 });\n }\n}\n\nconst loaderInvokeResponseSchema = z.object({\n data: z.unknown(),\n meta: z\n .object({\n cache: z.object({\n hit: z.boolean(),\n ttlSeconds: z.number(),\n }),\n })\n .optional(),\n});\n\nclass CanopyApiGateway {\n private apiHost: string;\n private baseUrl: string;\n constructor(apiHost: string) {\n this.apiHost = apiHost;\n this.baseUrl = buildBaseUrl(apiHost);\n }\n\n private static readonly REQUEST_TIMEOUT_MILLISECONDS = 10_000;\n\n static async setup() {\n const env = await getEnv();\n\n return new CanopyApiGateway(env.CANOPY_API_HOST);\n }\n\n private async _post(url: string, body: unknown) {\n const abortController = new AbortController();\n const timeoutId = setTimeout(() => {\n abortController.abort();\n }, CanopyApiGateway.REQUEST_TIMEOUT_MILLISECONDS);\n\n try {\n return await fetch(url, {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify(body),\n signal: abortController.signal,\n });\n } catch (error) {\n let message = `Failed to POST to canopy-api at ${url}: ${error}`;\n if (process.env.NODE_ENV !== \"production\") {\n message += `\\n\\napiHost: ${this.apiHost}\\nIf you're running locally, make sure the canopy-api cloudflare worker is running. You may need to restart the dev server.`;\n }\n throw new UnknownCanopyApiError({ message, cause: error });\n } finally {\n clearTimeout(timeoutId);\n }\n }\n\n private async _get(url: string) {\n const abortController = new AbortController();\n const timeoutId = setTimeout(() => {\n abortController.abort();\n }, CanopyApiGateway.REQUEST_TIMEOUT_MILLISECONDS);\n\n try {\n return await fetch(url, { signal: abortController.signal });\n } catch (error) {\n let message = `Failed to GET from canopy-api at ${url}: ${error}`;\n if (process.env.NODE_ENV !== \"production\") {\n message += `\\n\\napiHost: ${this.apiHost}\\nIf you're running locally, make sure the canopy-api cloudflare worker is running. You may need to restart the dev server.`;\n }\n throw new UnknownCanopyApiError({ message, cause: error });\n } finally {\n clearTimeout(timeoutId);\n }\n }\n\n async invokeLoader({\n loaderKey,\n args,\n }: {\n loaderKey: string;\n args: Record<string, unknown>;\n }) {\n const env = await getEnv();\n const response = await this._post(`${this.baseUrl}/api/v1/loaders/invoke`, {\n projectId: env.PROJECT_ID,\n loaderKey,\n args,\n });\n\n if (!response.ok) {\n const errorBody = await response.text().catch(() => \"\");\n throw new CanopyApiGatewayError({\n message: `Failed to invoke loader ${loaderKey}: ${response.status} ${response.statusText}${errorBody ? ` \u2014 ${errorBody}` : \"\"}`,\n statusCode: response.status,\n });\n }\n\n return loaderInvokeResponseSchema.parse(await response.json());\n }\n\n // ---------------------------------------------------------------------------\n // Cart operations (canopy-api-backed ExternalCart)\n // ---------------------------------------------------------------------------\n\n private async _cartPost(\n path: string,\n body: Record<string, unknown>,\n ): Promise<Cart> {\n const env = await getEnv();\n const url = `${this.baseUrl}/api/v1/cart${path}`;\n\n const abortController = new AbortController();\n const timeoutId = setTimeout(() => {\n abortController.abort();\n }, CanopyApiGateway.REQUEST_TIMEOUT_MILLISECONDS);\n\n let response: Response;\n try {\n response = await fetch(url, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({ ...body, projectId: env.PROJECT_ID }),\n signal: abortController.signal,\n });\n } catch (error) {\n throw new UnknownCanopyApiError({\n message: `Failed to POST cart operation to ${url}: ${error}`,\n cause: error,\n });\n } finally {\n clearTimeout(timeoutId);\n }\n\n if (!response.ok) {\n const text = await response.text().catch(() => \"\");\n throw new CanopyApiGatewayError({\n message: `Cart operation ${path} failed: ${response.status} ${response.statusText} \u2014 ${text}`,\n statusCode: response.status,\n });\n }\n\n // Legacy cast - may or may not be necessary\n // eslint-disable-next-line replo/no-as-cast\n const json = (await response.json()) as { data: unknown };\n return cartSchema.parse(json.data);\n }\n\n async cartGet({ cartId }: { cartId: string }): Promise<Cart | null> {\n try {\n return await this._cartPost(\"/get\", { cartId });\n } catch (error) {\n if (error instanceof CanopyApiGatewayError && error.statusCode === 404) {\n return null;\n }\n throw error;\n }\n }\n\n async cartCreate(options?: {\n lines?: {\n merchandiseId: string;\n quantity: number;\n attributes?: { key: string; value: string }[];\n sellingPlanId?: string | null;\n }[];\n discountCodes?: string[];\n }): Promise<Cart> {\n return this._cartPost(\"/create\", {\n lines: options?.lines,\n discountCodes: options?.discountCodes,\n });\n }\n\n async cartAddLines({\n cartId,\n lines,\n }: {\n cartId: string;\n lines: {\n merchandiseId: string;\n quantity: number;\n attributes?: { key: string; value: string }[];\n sellingPlanId?: string | null;\n }[];\n }): Promise<Cart> {\n return this._cartPost(\"/add-lines\", { cartId, lines });\n }\n\n async cartUpdateLines({\n cartId,\n lines,\n }: {\n cartId: string;\n lines: {\n lineId: string;\n quantity: number;\n attributes?: { key: string; value: string }[];\n sellingPlanId?: string | null;\n }[];\n }): Promise<Cart> {\n return this._cartPost(\"/update-lines\", { cartId, lines });\n }\n\n async cartRemoveLines({\n cartId,\n lineIds,\n }: {\n cartId: string;\n lineIds: string[];\n }): Promise<Cart> {\n return this._cartPost(\"/remove-lines\", { cartId, lineIds });\n }\n\n async cartUpdateDiscountCodes({\n cartId,\n discountCodes,\n }: {\n cartId: string;\n discountCodes: string[];\n }): Promise<Cart> {\n return this._cartPost(\"/update-discount-codes\", { cartId, discountCodes });\n }\n}\n\nexport async function getCanopyApiGateway() {\n return CanopyApiGateway.setup();\n}\n"],
5
- "mappings": "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",
4
+ "sourcesContent": ["import type { Cart } from \"../cart/cart-schema\";\nimport type { CanopyErrorConfig } from \"../lib/canopy-error\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\ntype CanopyApiGatewayErrorConfig = {\n message: string;\n statusCode?: number;\n cause?: unknown;\n additionalData?: Record<string, unknown>;\n};\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; CanopyApiGatewayError has no direct replacement. */\nexport class CanopyApiGatewayError extends Error {\n config!: CanopyErrorConfig;\n id!: string;\n statusCode!: number;\n constructor(_config: CanopyApiGatewayErrorConfig) {\n super();\n throw canopyTombstoneError({\n symbol: \"CanopyApiGatewayError\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n}\n\nclass CanopyApiGateway {\n private apiHost!: string;\n private baseUrl!: string;\n constructor(_apiHost: string) {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n static async setup(): Promise<CanopyApiGateway> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n private async _post(_url: string, _body: unknown): Promise<Response> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n private async _get(_url: string): Promise<Response> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async invokeLoader(_args: {\n loaderKey: string;\n args: Record<string, unknown>;\n }): Promise<{\n data: unknown;\n meta?: { cache: { hit: boolean; ttlSeconds: number } } | undefined;\n }> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n // ---------------------------------------------------------------------------\n // Cart operations (canopy-api-backed ExternalCart)\n // ---------------------------------------------------------------------------\n private async _cartPost(\n _path: string,\n _body: Record<string, unknown>,\n ): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartGet(_args: { cartId: string }): Promise<Cart | null> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartCreate(_options?: {\n lines?: {\n merchandiseId: string;\n quantity: number;\n attributes?: {\n key: string;\n value: string;\n }[];\n sellingPlanId?: string | null;\n }[];\n discountCodes?: string[];\n }): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartAddLines(_args: {\n cartId: string;\n lines: {\n merchandiseId: string;\n quantity: number;\n attributes?: {\n key: string;\n value: string;\n }[];\n sellingPlanId?: string | null;\n }[];\n }): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartUpdateLines(_args: {\n cartId: string;\n lines: {\n lineId: string;\n quantity: number;\n attributes?: {\n key: string;\n value: string;\n }[];\n sellingPlanId?: string | null;\n }[];\n }): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartRemoveLines(_args: {\n cartId: string;\n lineIds: string[];\n }): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartUpdateDiscountCodes(_args: {\n cartId: string;\n discountCodes: string[];\n }): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n}\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; getCanopyApiGateway has no direct replacement. */\nexport async function getCanopyApiGateway(): Promise<CanopyApiGateway> {\n throw canopyTombstoneError({\n symbol: \"getCanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n}\n"],
5
+ "mappings": "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",
6
6
  "names": []
7
7
  }
@@ -1,10 +1,2 @@
1
- /**
2
- * NOTE (Max, 2025-09-15): This hook is to be used for values that aren't available on the server (such as window.location).
3
- *
4
- * This hook will use a dummy value both on the server & on hydration. Then,
5
- * after hydration, this useEffect will update the value to the actual value.
6
- *
7
- * The useEffect doesn't have any dependencies - it's designed to only run once. So if you expect your read() function to return
8
- * different values through the lifecycle of the component, you should not use this hook.
9
- */
10
- export declare function useClientValue<ValueType>(readValue: () => ValueType, initialValue: ValueType): ValueType;
1
+ /** @deprecated Use a supported public @replohq/sdk API for this domain; useClientValue has no direct replacement. */
2
+ export declare function useClientValue<ValueType>(_readValue: () => ValueType, _initialValue: ValueType): ValueType;
@@ -1,10 +1,13 @@
1
- import * as React from "react";
2
- function useClientValue(readValue, initialValue) {
3
- const [value, setValue] = React.useState(initialValue);
4
- React.useEffect(() => {
5
- setValue(readValue());
6
- }, []);
7
- return value;
1
+ import { canopyTombstoneError } from "../lib/tombstone";
2
+ function useClientValue(_readValue, _initialValue) {
3
+ throw canopyTombstoneError({
4
+ symbol: "useClientValue",
5
+ subpath: "hooks/use-client-value",
6
+ replacement: {
7
+ kind: "internal",
8
+ nearestPublicSubpaths: ["providers/replo-provider"]
9
+ }
10
+ });
8
11
  }
9
12
  export {
10
13
  useClientValue
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../hooks/use-client-value.ts"],
4
- "sourcesContent": ["import * as React from \"react\";\n\n/**\n * NOTE (Max, 2025-09-15): This hook is to be used for values that aren't available on the server (such as window.location).\n *\n * This hook will use a dummy value both on the server & on hydration. Then,\n * after hydration, this useEffect will update the value to the actual value.\n *\n * The useEffect doesn't have any dependencies - it's designed to only run once. So if you expect your read() function to return\n * different values through the lifecycle of the component, you should not use this hook.\n */\n\nexport function useClientValue<ValueType>(\n readValue: () => ValueType,\n initialValue: ValueType,\n) {\n const [value, setValue] = React.useState<ValueType>(initialValue);\n\n // eslint-disable-next-line replo/no-use-effect -- (Noah, 2026-07-20): Legacy effect - may or may not be necessary\n React.useEffect(() => {\n setValue(readValue());\n }, []);\n return value;\n}\n"],
5
- "mappings": "AAAA,YAAY,WAAW;AAYhB,SAAS,eACd,WACA,cACA;AACA,QAAM,CAAC,OAAO,QAAQ,IAAI,MAAM,SAAoB,YAAY;AAGhE,QAAM,UAAU,MAAM;AACpB,aAAS,UAAU,CAAC;AAAA,EACtB,GAAG,CAAC,CAAC;AACL,SAAO;AACT;",
4
+ "sourcesContent": ["import { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; useClientValue has no direct replacement. */\nexport function useClientValue<ValueType>(\n _readValue: () => ValueType,\n _initialValue: ValueType,\n): ValueType {\n throw canopyTombstoneError({\n symbol: \"useClientValue\",\n subpath: \"hooks/use-client-value\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n}\n"],
5
+ "mappings": "AAAA,SAAS,4BAA4B;AAG9B,SAAS,eACd,YACA,eACW;AACX,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,15 +1,2 @@
1
- /**
2
- * Use `useFormattedPrice` to format prices with proper currency and locale.
3
- * @returns A formatted price string based on the price and currency code. It
4
- * already takes into account the user's locale/browser.
5
- * @example
6
- * ```tsx
7
- * import { useFormattedPrice } from "canopy-sdk/hooks/use-formatted-price";
8
- *
9
- * const originalPrice = 1999; // integer minor units
10
- * const originalPriceFormatted = useFormattedPrice(originalPrice, "USD");
11
- * // Display the formatted price
12
- * <p>{originalPriceFormatted}</p>;
13
- * ```
14
- */
1
+ /** @deprecated Use useFormattedPrice from @replohq/sdk/hooks/use-formatted-price. */
15
2
  export declare const useFormattedPrice: (price: number | null, currency: string | null) => string | null;
@@ -1,17 +1,9 @@
1
- import { formatAmount } from "../_vendor/schemas/money.mjs";
2
- import { useClientValue } from "./use-client-value";
3
- const useFormattedPrice = (price, currency) => {
4
- const navigatorLanguage = useClientValue(
5
- () => window.navigator.language,
6
- "en-US"
7
- );
8
- if (price === null) {
9
- return null;
10
- }
11
- return formatAmount({
12
- amount: price,
13
- currencyCode: currency ?? "USD",
14
- locale: navigatorLanguage
1
+ "use client";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
+ const useFormattedPrice = (_price, _currency) => {
4
+ throw canopyTombstoneError({
5
+ symbol: "useFormattedPrice",
6
+ subpath: "hooks/use-formatted-price"
15
7
  });
16
8
  };
17
9
  export {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../hooks/use-formatted-price.ts"],
4
- "sourcesContent": ["/**\n * Use useFormattedPrice() hook to display prices with proper currency symbols and formatting. Pass in a price in integer minor units (Stripe convention) and a currency code (e.g., 1999 and \"USD\") and it returns a formatted string like \"$19.99\".\n * @module\n */\nimport { formatAmount } from \"schemas/money\";\n\nimport { useClientValue } from \"./use-client-value\";\n\n/**\n * Use `useFormattedPrice` to format prices with proper currency and locale.\n * @returns A formatted price string based on the price and currency code. It\n * already takes into account the user's locale/browser.\n * @example\n * ```tsx\n * import { useFormattedPrice } from \"canopy-sdk/hooks/use-formatted-price\";\n *\n * const originalPrice = 1999; // integer minor units\n * const originalPriceFormatted = useFormattedPrice(originalPrice, \"USD\");\n * // Display the formatted price\n * <p>{originalPriceFormatted}</p>;\n * ```\n */\nexport const useFormattedPrice = (\n price: number | null,\n currency: string | null,\n) => {\n const navigatorLanguage = useClientValue(\n () => window.navigator.language,\n \"en-US\",\n );\n\n // NOTE (Max, 2026-08-03): guard on null, not falsiness \u2014 0 is a real amount\n // (a free item), so `if (!price)` would render no price at all for it.\n if (price === null) {\n return null;\n }\n\n return formatAmount({\n amount: price,\n currencyCode: currency ?? \"USD\",\n locale: navigatorLanguage,\n });\n};\n"],
5
- "mappings": "AAIA,SAAS,oBAAoB;AAE7B,SAAS,sBAAsB;AAgBxB,MAAM,oBAAoB,CAC/B,OACA,aACG;AACH,QAAM,oBAAoB;AAAA,IACxB,MAAM,OAAO,UAAU;AAAA,IACvB;AAAA,EACF;AAIA,MAAI,UAAU,MAAM;AAClB,WAAO;AAAA,EACT;AAEA,SAAO,aAAa;AAAA,IAClB,QAAQ;AAAA,IACR,cAAc,YAAY;AAAA,IAC1B,QAAQ;AAAA,EACV,CAAC;AACH;",
4
+ "sourcesContent": ["\"use client\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Use useFormattedPrice from @replohq/sdk/hooks/use-formatted-price. */\nexport const useFormattedPrice: (\n price: number | null,\n currency: string | null,\n) => string | null = (_price, _currency) => {\n throw canopyTombstoneError({\n symbol: \"useFormattedPrice\",\n subpath: \"hooks/use-formatted-price\",\n });\n};\n"],
5
+ "mappings": ";AAEA,SAAS,4BAA4B;AAG9B,MAAM,oBAGQ,CAAC,QAAQ,cAAc;AAC1C,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -14,12 +14,9 @@ export type CanopyErrorConfig = {
14
14
  */
15
15
  cause?: unknown;
16
16
  };
17
- /**
18
- * Base error that all canopy-sdk errors inherit from. Deliberately minimal and
19
- * self-contained; it does not depend on the `schemas` workspace package.
20
- */
17
+ /** @deprecated Use a supported public @replohq/sdk API for this domain; CanopyError has no direct replacement. */
21
18
  export declare abstract class CanopyError extends Error {
22
19
  config: CanopyErrorConfig;
23
20
  id: string;
24
- constructor(config: CanopyErrorConfig);
21
+ constructor(_config: CanopyErrorConfig);
25
22
  }
@@ -1,21 +1,17 @@
1
+ import { canopyTombstoneError } from "./tombstone";
1
2
  class CanopyError extends Error {
2
3
  config;
3
4
  id;
4
- constructor(config) {
5
- super(config.message);
6
- this.message = config.message ?? this.constructor.name;
7
- this.config = config;
8
- this.id = crypto.randomUUID();
9
- const cause = config.cause;
10
- if (cause) {
11
- this.cause = cause;
12
- if (cause instanceof CanopyError) {
13
- this.config.additionalData = {
14
- ...this.config.additionalData,
15
- ...cause.config.additionalData
16
- };
5
+ constructor(_config) {
6
+ super();
7
+ throw canopyTombstoneError({
8
+ symbol: "CanopyError",
9
+ subpath: "lib/canopy-error",
10
+ replacement: {
11
+ kind: "internal",
12
+ nearestPublicSubpaths: ["providers/replo-provider"]
17
13
  }
18
- }
14
+ });
19
15
  }
20
16
  }
21
17
  export {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../lib/canopy-error.ts"],
4
- "sourcesContent": ["// NOTE (Ryan, 2026-07-23, REPL-27611): Local error base for canopy-sdk's\n// published-page code. Mirrors the minimal surface of `schemas`' `ReploError`\n// (a `config` bag, a stable `id`, and cause chaining) that canopy's scoped\n// error classes actually use, so nothing shipped to a generated site imports\n// from `schemas`.\n\nexport type CanopyErrorConfig = {\n /**\n * Message of the error. If not provided, defaults to the error's class name.\n */\n message?: string;\n /**\n * Additional context about the error (ids, contextual variables, etc.),\n * surfaced when the error is logged.\n */\n additionalData?: Record<string, unknown>;\n /**\n * Original cause of the error, useful when catching and re-throwing with more\n * context.\n */\n cause?: unknown;\n};\n\n/**\n * Base error that all canopy-sdk errors inherit from. Deliberately minimal and\n * self-contained; it does not depend on the `schemas` workspace package.\n */\nexport abstract class CanopyError extends Error {\n config: CanopyErrorConfig;\n id: string;\n\n constructor(config: CanopyErrorConfig) {\n super(config.message);\n this.message = config.message ?? this.constructor.name;\n this.config = config;\n // crypto.randomUUID is natively available in browsers, Node, and the\n // Cloudflare Workers runtime \u2014 the three environments canopy-sdk runs in.\n this.id = crypto.randomUUID();\n\n const cause = config.cause;\n if (cause) {\n this.cause = cause;\n if (cause instanceof CanopyError) {\n this.config.additionalData = {\n ...this.config.additionalData,\n ...cause.config.additionalData,\n };\n }\n }\n }\n}\n"],
5
- "mappings": "AA2BO,MAAe,oBAAoB,MAAM;AAAA,EAC9C;AAAA,EACA;AAAA,EAEA,YAAY,QAA2B;AACrC,UAAM,OAAO,OAAO;AACpB,SAAK,UAAU,OAAO,WAAW,KAAK,YAAY;AAClD,SAAK,SAAS;AAGd,SAAK,KAAK,OAAO,WAAW;AAE5B,UAAM,QAAQ,OAAO;AACrB,QAAI,OAAO;AACT,WAAK,QAAQ;AACb,UAAI,iBAAiB,aAAa;AAChC,aAAK,OAAO,iBAAiB;AAAA,UAC3B,GAAG,KAAK,OAAO;AAAA,UACf,GAAG,MAAM,OAAO;AAAA,QAClB;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import { canopyTombstoneError } from \"./tombstone\";\n\n// NOTE (Ryan, 2026-07-23, REPL-27611): Local error base for canopy-sdk's\n// published-page code. Mirrors the minimal surface of `schemas`' `ReploError`\n// (a `config` bag, a stable `id`, and cause chaining) that canopy's scoped\n// error classes actually use, so nothing shipped to a generated site imports\n// from `schemas`.\nexport type CanopyErrorConfig = {\n /**\n * Message of the error. If not provided, defaults to the error's class name.\n */\n message?: string;\n /**\n * Additional context about the error (ids, contextual variables, etc.),\n * surfaced when the error is logged.\n */\n additionalData?: Record<string, unknown>;\n /**\n * Original cause of the error, useful when catching and re-throwing with more\n * context.\n */\n cause?: unknown;\n};\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; CanopyError has no direct replacement. */\nexport abstract class CanopyError extends Error {\n config!: CanopyErrorConfig;\n id!: string;\n constructor(_config: CanopyErrorConfig) {\n super();\n throw canopyTombstoneError({\n symbol: \"CanopyError\",\n subpath: \"lib/canopy-error\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n}\n"],
5
+ "mappings": "AAAA,SAAS,4BAA4B;AAyB9B,MAAe,oBAAoB,MAAM;AAAA,EAC9C;AAAA,EACA;AAAA,EACA,YAAY,SAA4B;AACtC,UAAM;AACN,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,3 @@
1
- import { QueryClient } from "@tanstack/react-query";
1
+ import type { QueryClient } from "@tanstack/react-query";
2
+ /** @deprecated Use a supported public @replohq/sdk API for this domain; getQueryClient has no direct replacement. */
2
3
  export declare function getQueryClient(): QueryClient;
@@ -1,32 +1,13 @@
1
- import {
2
- defaultShouldDehydrateQuery,
3
- isServer,
4
- QueryClient
5
- } from "@tanstack/react-query";
6
- const STALE_TIME_MILLISECONDS = 60 * 1e3;
7
- const makeQueryClient = () => {
8
- return new QueryClient({
9
- defaultOptions: {
10
- queries: {
11
- staleTime: STALE_TIME_MILLISECONDS
12
- },
13
- dehydrate: {
14
- shouldDehydrateQuery: (query) => {
15
- return defaultShouldDehydrateQuery(query) || query.state.status === "pending";
16
- }
17
- }
1
+ import { canopyTombstoneError } from "./tombstone";
2
+ function getQueryClient() {
3
+ throw canopyTombstoneError({
4
+ symbol: "getQueryClient",
5
+ subpath: "lib/get-query-client",
6
+ replacement: {
7
+ kind: "internal",
8
+ nearestPublicSubpaths: ["providers/replo-provider"]
18
9
  }
19
10
  });
20
- };
21
- let browserQueryClient;
22
- function getQueryClient() {
23
- if (isServer) {
24
- return makeQueryClient();
25
- }
26
- if (!browserQueryClient) {
27
- browserQueryClient = makeQueryClient();
28
- }
29
- return browserQueryClient;
30
11
  }
31
12
  export {
32
13
  getQueryClient
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../lib/get-query-client.ts"],
4
- "sourcesContent": ["import {\n defaultShouldDehydrateQuery,\n isServer,\n QueryClient,\n} from \"@tanstack/react-query\";\n\nconst STALE_TIME_MILLISECONDS = 60 * 1000;\n\nconst makeQueryClient = () => {\n return new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: STALE_TIME_MILLISECONDS,\n },\n dehydrate: {\n shouldDehydrateQuery: (query) => {\n return (\n defaultShouldDehydrateQuery(query) ||\n query.state.status === \"pending\"\n );\n },\n },\n },\n });\n};\n\nlet browserQueryClient: QueryClient | undefined;\n\nexport function getQueryClient() {\n if (isServer) {\n return makeQueryClient();\n }\n\n if (!browserQueryClient) {\n browserQueryClient = makeQueryClient();\n }\n\n return browserQueryClient;\n}\n"],
5
- "mappings": "AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,MAAM,0BAA0B,KAAK;AAErC,MAAM,kBAAkB,MAAM;AAC5B,SAAO,IAAI,YAAY;AAAA,IACrB,gBAAgB;AAAA,MACd,SAAS;AAAA,QACP,WAAW;AAAA,MACb;AAAA,MACA,WAAW;AAAA,QACT,sBAAsB,CAAC,UAAU;AAC/B,iBACE,4BAA4B,KAAK,KACjC,MAAM,MAAM,WAAW;AAAA,QAE3B;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAC;AACH;AAEA,IAAI;AAEG,SAAS,iBAAiB;AAC/B,MAAI,UAAU;AACZ,WAAO,gBAAgB;AAAA,EACzB;AAEA,MAAI,CAAC,oBAAoB;AACvB,yBAAqB,gBAAgB;AAAA,EACvC;AAEA,SAAO;AACT;",
4
+ "sourcesContent": ["import type { QueryClient } from \"@tanstack/react-query\";\n\nimport { canopyTombstoneError } from \"./tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; getQueryClient has no direct replacement. */\nexport function getQueryClient(): QueryClient {\n throw canopyTombstoneError({\n symbol: \"getQueryClient\",\n subpath: \"lib/get-query-client\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n}\n"],
5
+ "mappings": "AAEA,SAAS,4BAA4B;AAG9B,SAAS,iBAA8B;AAC5C,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,2 +1,3 @@
1
1
  export type CheckoutProvider = "shopify" | "stripe" | "none";
2
+ /** @deprecated Use a supported public @replohq/sdk API for this domain; getCheckoutProvider has no direct replacement. */
2
3
  export declare function getCheckoutProvider(): Promise<CheckoutProvider>;
@@ -1,7 +1,13 @@
1
- import { getEnv } from "../env";
1
+ import { canopyTombstoneError } from "./tombstone";
2
2
  async function getCheckoutProvider() {
3
- const env = await getEnv();
4
- return env.CHECKOUT_PROVIDER ?? "none";
3
+ throw canopyTombstoneError({
4
+ symbol: "getCheckoutProvider",
5
+ subpath: "lib/integration-utils",
6
+ replacement: {
7
+ kind: "internal",
8
+ nearestPublicSubpaths: ["cart/cart-provider"]
9
+ }
10
+ });
5
11
  }
6
12
  export {
7
13
  getCheckoutProvider
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../lib/integration-utils.ts"],
4
- "sourcesContent": ["import { getEnv } from \"../env\";\n\nexport type CheckoutProvider = \"shopify\" | \"stripe\" | \"none\";\n\nexport async function getCheckoutProvider(): Promise<CheckoutProvider> {\n const env = await getEnv();\n return env.CHECKOUT_PROVIDER ?? \"none\";\n}\n"],
5
- "mappings": "AAAA,SAAS,cAAc;AAIvB,eAAsB,sBAAiD;AACrE,QAAM,MAAM,MAAM,OAAO;AACzB,SAAO,IAAI,qBAAqB;AAClC;",
4
+ "sourcesContent": ["import { canopyTombstoneError } from \"./tombstone\";\n\nexport type CheckoutProvider = \"shopify\" | \"stripe\" | \"none\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; getCheckoutProvider has no direct replacement. */\nexport async function getCheckoutProvider(): Promise<CheckoutProvider> {\n throw canopyTombstoneError({\n symbol: \"getCheckoutProvider\",\n subpath: \"lib/integration-utils\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"cart/cart-provider\"],\n },\n });\n}\n"],
5
+ "mappings": "AAAA,SAAS,4BAA4B;AAKrC,eAAsB,sBAAiD;AACrE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,oBAAoB;AAAA,IAC9C;AAAA,EACF,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -1,10 +1,2 @@
1
- /**
2
- * Utility functions for working with Shopify IDs and GIDs
3
- */
4
- /**
5
- * Converts a legacy resource ID to a Shopify GraphQL ID
6
- * @param id - The legacy resource ID (e.g., "123456")
7
- * @param type - The Shopify resource type
8
- * @returns The full Shopify GID (e.g., "gid://shopify/ProductVariant/123456")
9
- */
10
- export declare function convertLegacyResourceIdToGraphQLId(id: string, type: "Product" | "ProductVariant"): string;
1
+ /** @deprecated Use a supported public @replohq/sdk API for this domain; convertLegacyResourceIdToGraphQLId has no direct replacement. */
2
+ export declare function convertLegacyResourceIdToGraphQLId(_id: string, _type: "Product" | "ProductVariant"): string;
@@ -1,5 +1,13 @@
1
- function convertLegacyResourceIdToGraphQLId(id, type) {
2
- return `gid://shopify/${type}/${id}`;
1
+ import { canopyTombstoneError } from "./tombstone";
2
+ function convertLegacyResourceIdToGraphQLId(_id, _type) {
3
+ throw canopyTombstoneError({
4
+ symbol: "convertLegacyResourceIdToGraphQLId",
5
+ subpath: "lib/shopify-utils",
6
+ replacement: {
7
+ kind: "internal",
8
+ nearestPublicSubpaths: ["cart/utils/cart-utils"]
9
+ }
10
+ });
3
11
  }
4
12
  export {
5
13
  convertLegacyResourceIdToGraphQLId
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../lib/shopify-utils.ts"],
4
- "sourcesContent": ["/**\n * Utility functions for working with Shopify IDs and GIDs\n */\n\n/**\n * Converts a legacy resource ID to a Shopify GraphQL ID\n * @param id - The legacy resource ID (e.g., \"123456\")\n * @param type - The Shopify resource type\n * @returns The full Shopify GID (e.g., \"gid://shopify/ProductVariant/123456\")\n */\nexport function convertLegacyResourceIdToGraphQLId(\n id: string,\n type: \"Product\" | \"ProductVariant\",\n): string {\n return `gid://shopify/${type}/${id}`;\n}\n"],
5
- "mappings": "AAUO,SAAS,mCACd,IACA,MACQ;AACR,SAAO,iBAAiB,IAAI,IAAI,EAAE;AACpC;",
4
+ "sourcesContent": ["import { canopyTombstoneError } from \"./tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; convertLegacyResourceIdToGraphQLId has no direct replacement. */\nexport function convertLegacyResourceIdToGraphQLId(\n _id: string,\n _type: \"Product\" | \"ProductVariant\",\n): string {\n throw canopyTombstoneError({\n symbol: \"convertLegacyResourceIdToGraphQLId\",\n subpath: \"lib/shopify-utils\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"cart/utils/cart-utils\"],\n },\n });\n}\n"],
5
+ "mappings": "AAAA,SAAS,4BAA4B;AAG9B,SAAS,mCACd,KACA,OACQ;AACR,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,uBAAuB;AAAA,IACjD;AAAA,EACF,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,21 @@
1
+ type PublicSdkReplacement = {
2
+ kind: "public-sdk";
3
+ replacementImport?: string;
4
+ };
5
+ type SandboxRuntimeReplacement = {
6
+ kind: "sandbox-runtime";
7
+ };
8
+ type InternalReplacement = {
9
+ kind: "internal";
10
+ nearestPublicSubpaths: readonly string[];
11
+ };
12
+ type TombstoneReplacement = PublicSdkReplacement | SandboxRuntimeReplacement | InternalReplacement;
13
+ type TombstoneLocation = {
14
+ symbol: string;
15
+ subpath: string;
16
+ replacement?: TombstoneReplacement;
17
+ replacementImport?: string;
18
+ };
19
+ export declare function canopyTombstoneError({ symbol, subpath, replacement, replacementImport, }: TombstoneLocation): Error;
20
+ export declare function canopyTombstoneObject<ExportType>(location: TombstoneLocation): ExportType;
21
+ export {};
@@ -0,0 +1,99 @@
1
+ const migrationCommand = `pnpm add --ignore-workspace @replohq/sdk@latest @replohq/sandbox-runtime@latest && pnpm remove --ignore-workspace canopy-sdk
2
+ (if package.json lists "@replohq/canopy-sdk" instead of the "canopy-sdk" alias, run: pnpm remove --ignore-workspace @replohq/canopy-sdk)`;
3
+ const providerComposition = `import { ReploProvider } from "@replohq/sdk/providers/replo-provider";
4
+ import { SandboxRuntime } from "@replohq/sandbox-runtime";
5
+
6
+ export default function RootLayout({
7
+ children,
8
+ }: Readonly<{
9
+ children: React.ReactNode;
10
+ }>) {
11
+ return (
12
+ <html>
13
+ <body>
14
+ <ReploProvider>
15
+ <SandboxRuntime>{children}</SandboxRuntime>
16
+ </ReploProvider>
17
+ </body>
18
+ </html>
19
+ );
20
+ }`;
21
+ const migrationRule = `For storefront imports the migration is mechanical: every public canopy-sdk/<subpath> or @replohq/canopy-sdk/<subpath> import becomes @replohq/sdk/<subpath>. Editor/select-mode functionality is not imported directly: SandboxRuntime from @replohq/sandbox-runtime provides it automatically once mounted.`;
22
+ function reploProviderTombstoneError() {
23
+ return new Error(`ReploProvider was removed from @replohq/canopy-sdk v3, the final, fully deprecated release.
24
+
25
+ Replace the single legacy provider with ReploProvider from @replohq/sdk/providers/replo-provider wrapping SandboxRuntime from @replohq/sandbox-runtime, with SandboxRuntime nested inside ReploProvider:
26
+
27
+ ${providerComposition}
28
+
29
+ Install the replacements and remove the deprecated package:
30
+ ${migrationCommand}
31
+
32
+ ${migrationRule}`);
33
+ }
34
+ function sandboxRuntimeMigration({ symbol }) {
35
+ return `${symbol} was editor/select-mode functionality. It now ships inside @replohq/sandbox-runtime and is not directly importable.
36
+
37
+ Mount SandboxRuntime from @replohq/sandbox-runtime inside ReploProvider from @replohq/sdk in the root layout; SandboxRuntime provides this functionality automatically:
38
+
39
+ ${providerComposition}
40
+
41
+ Then delete this import and any /editor route code that used it.`;
42
+ }
43
+ function internalMigration({
44
+ nearestPublicSubpaths
45
+ }) {
46
+ const publicApis = nearestPublicSubpaths.map((subpath) => `- @replohq/sdk/${subpath}`).join("\n");
47
+ return `This was an internal module with no direct public replacement.
48
+
49
+ Use the nearest supported public API for this domain:
50
+ ${publicApis}`;
51
+ }
52
+ function canopyTombstoneError({
53
+ symbol,
54
+ subpath,
55
+ replacement,
56
+ replacementImport
57
+ }) {
58
+ if (symbol === "ReploProvider") {
59
+ return reploProviderTombstoneError();
60
+ }
61
+ const resolvedReplacement = replacement ?? {
62
+ kind: "public-sdk",
63
+ replacementImport
64
+ };
65
+ const migration = (() => {
66
+ switch (resolvedReplacement.kind) {
67
+ case "public-sdk":
68
+ return `Use the replacement export:
69
+ ${resolvedReplacement.replacementImport ?? `import { ${symbol} } from "@replohq/sdk/${subpath}";`}`;
70
+ case "sandbox-runtime":
71
+ return sandboxRuntimeMigration({ symbol });
72
+ case "internal":
73
+ return internalMigration(resolvedReplacement);
74
+ }
75
+ })();
76
+ return new Error(`${symbol} was removed from @replohq/canopy-sdk v3, the final, fully deprecated release.
77
+
78
+ ${migration}
79
+
80
+ Install the replacements and remove the deprecated package:
81
+ ${migrationCommand}
82
+
83
+ ${migrationRule}`);
84
+ }
85
+ function canopyTombstoneObject(location) {
86
+ const throwTombstoneError = () => {
87
+ throw canopyTombstoneError(location);
88
+ };
89
+ return new Proxy(throwTombstoneError, {
90
+ apply: throwTombstoneError,
91
+ get: throwTombstoneError,
92
+ has: throwTombstoneError
93
+ });
94
+ }
95
+ export {
96
+ canopyTombstoneError,
97
+ canopyTombstoneObject
98
+ };
99
+ //# sourceMappingURL=tombstone.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../lib/tombstone.ts"],
4
+ "sourcesContent": ["type PublicSdkReplacement = {\n kind: \"public-sdk\";\n replacementImport?: string;\n};\n\ntype SandboxRuntimeReplacement = {\n kind: \"sandbox-runtime\";\n};\n\ntype InternalReplacement = {\n kind: \"internal\";\n nearestPublicSubpaths: readonly string[];\n};\n\ntype TombstoneReplacement =\n | PublicSdkReplacement\n | SandboxRuntimeReplacement\n | InternalReplacement;\n\ntype TombstoneLocation = {\n symbol: string;\n subpath: string;\n replacement?: TombstoneReplacement;\n replacementImport?: string;\n};\n\nconst migrationCommand = `pnpm add --ignore-workspace @replohq/sdk@latest @replohq/sandbox-runtime@latest && pnpm remove --ignore-workspace canopy-sdk\n(if package.json lists \"@replohq/canopy-sdk\" instead of the \"canopy-sdk\" alias, run: pnpm remove --ignore-workspace @replohq/canopy-sdk)`;\n\nconst providerComposition = `import { ReploProvider } from \"@replohq/sdk/providers/replo-provider\";\nimport { SandboxRuntime } from \"@replohq/sandbox-runtime\";\n\nexport default function RootLayout({\n children,\n}: Readonly<{\n children: React.ReactNode;\n}>) {\n return (\n <html>\n <body>\n <ReploProvider>\n <SandboxRuntime>{children}</SandboxRuntime>\n </ReploProvider>\n </body>\n </html>\n );\n}`;\n\nconst migrationRule = `For storefront imports the migration is mechanical: every public canopy-sdk/<subpath> or @replohq/canopy-sdk/<subpath> import becomes @replohq/sdk/<subpath>. Editor/select-mode functionality is not imported directly: SandboxRuntime from @replohq/sandbox-runtime provides it automatically once mounted.`;\n\nfunction reploProviderTombstoneError(): Error {\n return new Error(`ReploProvider was removed from @replohq/canopy-sdk v3, the final, fully deprecated release.\n\nReplace the single legacy provider with ReploProvider from @replohq/sdk/providers/replo-provider wrapping SandboxRuntime from @replohq/sandbox-runtime, with SandboxRuntime nested inside ReploProvider:\n\n${providerComposition}\n\nInstall the replacements and remove the deprecated package:\n${migrationCommand}\n\n${migrationRule}`);\n}\n\nfunction sandboxRuntimeMigration({ symbol }: { symbol: string }): string {\n return `${symbol} was editor/select-mode functionality. It now ships inside @replohq/sandbox-runtime and is not directly importable.\n\nMount SandboxRuntime from @replohq/sandbox-runtime inside ReploProvider from @replohq/sdk in the root layout; SandboxRuntime provides this functionality automatically:\n\n${providerComposition}\n\nThen delete this import and any /editor route code that used it.`;\n}\n\nfunction internalMigration({\n nearestPublicSubpaths,\n}: InternalReplacement): string {\n const publicApis = nearestPublicSubpaths\n .map((subpath) => `- @replohq/sdk/${subpath}`)\n .join(\"\\n\");\n\n return `This was an internal module with no direct public replacement.\n\nUse the nearest supported public API for this domain:\n${publicApis}`;\n}\n\nexport function canopyTombstoneError({\n symbol,\n subpath,\n replacement,\n replacementImport,\n}: TombstoneLocation): Error {\n if (symbol === \"ReploProvider\") {\n return reploProviderTombstoneError();\n }\n\n const resolvedReplacement = replacement ?? {\n kind: \"public-sdk\",\n replacementImport,\n };\n const migration = (() => {\n switch (resolvedReplacement.kind) {\n case \"public-sdk\":\n return `Use the replacement export:\n${\n resolvedReplacement.replacementImport ??\n `import { ${symbol} } from \"@replohq/sdk/${subpath}\";`\n}`;\n case \"sandbox-runtime\":\n return sandboxRuntimeMigration({ symbol });\n case \"internal\":\n return internalMigration(resolvedReplacement);\n }\n })();\n\n return new Error(`${symbol} was removed from @replohq/canopy-sdk v3, the final, fully deprecated release.\n\n${migration}\n\nInstall the replacements and remove the deprecated package:\n${migrationCommand}\n\n${migrationRule}`);\n}\n\nexport function canopyTombstoneObject<ExportType>(\n location: TombstoneLocation,\n): ExportType {\n const throwTombstoneError = (): never => {\n throw canopyTombstoneError(location);\n };\n\n // eslint-disable-next-line replo/no-as-cast -- Proxy traps cannot retain an arbitrary public object type without the mandated boundary cast.\n return new Proxy(throwTombstoneError, {\n apply: throwTombstoneError,\n get: throwTombstoneError,\n has: throwTombstoneError,\n }) as unknown as ExportType;\n}\n"],
5
+ "mappings": "AA0BA,MAAM,mBAAmB;AAAA;AAGzB,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmB5B,MAAM,gBAAgB;AAEtB,SAAS,8BAAqC;AAC5C,SAAO,IAAI,MAAM;AAAA;AAAA;AAAA;AAAA,EAIjB,mBAAmB;AAAA;AAAA;AAAA,EAGnB,gBAAgB;AAAA;AAAA,EAEhB,aAAa,EAAE;AACjB;AAEA,SAAS,wBAAwB,EAAE,OAAO,GAA+B;AACvE,SAAO,GAAG,MAAM;AAAA;AAAA;AAAA;AAAA,EAIhB,mBAAmB;AAAA;AAAA;AAGrB;AAEA,SAAS,kBAAkB;AAAA,EACzB;AACF,GAAgC;AAC9B,QAAM,aAAa,sBAChB,IAAI,CAAC,YAAY,kBAAkB,OAAO,EAAE,EAC5C,KAAK,IAAI;AAEZ,SAAO;AAAA;AAAA;AAAA,EAGP,UAAU;AACZ;AAEO,SAAS,qBAAqB;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA6B;AAC3B,MAAI,WAAW,iBAAiB;AAC9B,WAAO,4BAA4B;AAAA,EACrC;AAEA,QAAM,sBAAsB,eAAe;AAAA,IACzC,MAAM;AAAA,IACN;AAAA,EACF;AACA,QAAM,aAAa,MAAM;AACvB,YAAQ,oBAAoB,MAAM;AAAA,MAChC,KAAK;AACH,eAAO;AAAA,EAEb,oBAAoB,qBACpB,YAAY,MAAM,yBAAyB,OAAO,IACpD;AAAA,MACM,KAAK;AACH,eAAO,wBAAwB,EAAE,OAAO,CAAC;AAAA,MAC3C,KAAK;AACH,eAAO,kBAAkB,mBAAmB;AAAA,IAChD;AAAA,EACF,GAAG;AAEH,SAAO,IAAI,MAAM,GAAG,MAAM;AAAA;AAAA,EAE1B,SAAS;AAAA;AAAA;AAAA,EAGT,gBAAgB;AAAA;AAAA,EAEhB,aAAa,EAAE;AACjB;AAEO,SAAS,sBACd,UACY;AACZ,QAAM,sBAAsB,MAAa;AACvC,UAAM,qBAAqB,QAAQ;AAAA,EACrC;AAGA,SAAO,IAAI,MAAM,qBAAqB;AAAA,IACpC,OAAO;AAAA,IACP,KAAK;AAAA,IACL,KAAK;AAAA,EACP,CAAC;AACH;",
6
+ "names": []
7
+ }
@@ -1,4 +1,2 @@
1
- /**
2
- * Builds a base URL from an API host, using http for local hosts and https otherwise.
3
- */
4
- export declare function buildBaseUrl(apiHost: string): string;
1
+ /** @deprecated Use a supported public @replohq/sdk API for this domain; buildBaseUrl has no direct replacement. */
2
+ export declare function buildBaseUrl(_apiHost: string): string;
package/lib/url-utils.js CHANGED
@@ -1,6 +1,13 @@
1
- function buildBaseUrl(apiHost) {
2
- const isLocal = apiHost.startsWith("localhost") || apiHost.startsWith("127.0.0.1") || apiHost.startsWith("host.docker.internal");
3
- return `${isLocal ? "http" : "https"}://${apiHost}`;
1
+ import { canopyTombstoneError } from "./tombstone";
2
+ function buildBaseUrl(_apiHost) {
3
+ throw canopyTombstoneError({
4
+ symbol: "buildBaseUrl",
5
+ subpath: "lib/url-utils",
6
+ replacement: {
7
+ kind: "internal",
8
+ nearestPublicSubpaths: ["providers/replo-provider"]
9
+ }
10
+ });
4
11
  }
5
12
  export {
6
13
  buildBaseUrl
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../lib/url-utils.ts"],
4
- "sourcesContent": ["/**\n * Builds a base URL from an API host, using http for local hosts and https otherwise.\n */\nexport function buildBaseUrl(apiHost: string): string {\n const isLocal =\n apiHost.startsWith(\"localhost\") ||\n apiHost.startsWith(\"127.0.0.1\") ||\n apiHost.startsWith(\"host.docker.internal\");\n return `${isLocal ? \"http\" : \"https\"}://${apiHost}`;\n}\n"],
5
- "mappings": "AAGO,SAAS,aAAa,SAAyB;AACpD,QAAM,UACJ,QAAQ,WAAW,WAAW,KAC9B,QAAQ,WAAW,WAAW,KAC9B,QAAQ,WAAW,sBAAsB;AAC3C,SAAO,GAAG,UAAU,SAAS,OAAO,MAAM,OAAO;AACnD;",
4
+ "sourcesContent": ["import { canopyTombstoneError } from \"./tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; buildBaseUrl has no direct replacement. */\nexport function buildBaseUrl(_apiHost: string): string {\n throw canopyTombstoneError({\n symbol: \"buildBaseUrl\",\n subpath: \"lib/url-utils\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n}\n"],
5
+ "mappings": "AAAA,SAAS,4BAA4B;AAG9B,SAAS,aAAa,UAA0B;AACrD,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,4 +1,4 @@
1
- import type { ReactNode } from "react";
1
+ import type { ReactElement, ReactNode } from "react";
2
2
  import type { FullCollection } from "./loader-schemas";
3
3
  type CollectionLoaderProps = {
4
4
  loaderKey: string;
@@ -7,5 +7,6 @@ type CollectionLoaderProps = {
7
7
  children: (data: FullCollection) => ReactNode;
8
8
  fallback?: ReactNode;
9
9
  };
10
- export declare function CollectionLoader({ loaderKey, handle, collectionGid, children, fallback, }: CollectionLoaderProps): import("react/jsx-runtime").JSX.Element;
10
+ /** @deprecated Use CollectionLoader from @replohq/sdk/loaders/collection-loader. */
11
+ export declare function CollectionLoader(_props: CollectionLoaderProps): ReactElement;
11
12
  export {};