@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,68 +1,10 @@
1
- import { useEffect } from "react";
2
- import { getWebsiteBuilderRpc } from "../iframeRpcChannel";
3
- import {
4
- getDocumentScrollOffset,
5
- getElementBoundingRect,
6
- getViewportRectFromPageRect
7
- } from "../interactions/selectionGeometry";
8
- import { showSelectionFrame } from "../selectionFrame";
9
- function useSelectionScrollSync({
10
- displayMode,
11
- interactionSessionRef
12
- }) {
13
- useEffect(() => {
14
- if (displayMode !== "selection") {
15
- return;
16
- }
17
- let animationFrameId = null;
18
- const handleScroll = () => {
19
- if (animationFrameId !== null) {
20
- return;
21
- }
22
- animationFrameId = requestAnimationFrame(() => {
23
- animationFrameId = null;
24
- const session = interactionSessionRef.current;
25
- if (session.type === "element") {
26
- const boundingRect = getElementBoundingRect(session.element);
27
- const sessionClickPosition = session.clickPosition;
28
- const clickPosition = {
29
- x: sessionClickPosition !== null ? boundingRect.left + sessionClickPosition.x : boundingRect.right,
30
- y: sessionClickPosition !== null ? boundingRect.top + sessionClickPosition.y : boundingRect.bottom
31
- };
32
- const scrollOffset = getDocumentScrollOffset();
33
- showSelectionFrame({
34
- variant: "element",
35
- pageRect: {
36
- x: boundingRect.left + scrollOffset.left,
37
- y: boundingRect.top + scrollOffset.top,
38
- width: boundingRect.width,
39
- height: boundingRect.height
40
- }
41
- });
42
- getWebsiteBuilderRpc()?.selectedElementRectUpdate({
43
- rect: boundingRect,
44
- clickPosition
45
- });
46
- return;
47
- }
48
- if (session.type === "area") {
49
- getWebsiteBuilderRpc()?.selectedAreaRectUpdate({
50
- rect: getViewportRectFromPageRect({
51
- rect: session.pageRect,
52
- scrollOffset: getDocumentScrollOffset()
53
- })
54
- });
55
- }
56
- });
57
- };
58
- document.addEventListener("scroll", handleScroll, true);
59
- return () => {
60
- document.removeEventListener("scroll", handleScroll, true);
61
- if (animationFrameId !== null) {
62
- cancelAnimationFrame(animationFrameId);
63
- }
64
- };
65
- }, [displayMode, interactionSessionRef]);
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
+ function useSelectionScrollSync(_args) {
3
+ throw canopyTombstoneError({
4
+ symbol: "useSelectionScrollSync",
5
+ subpath: "editor/select-mode/hooks/useSelectionScrollSync",
6
+ replacement: { kind: "sandbox-runtime" }
7
+ });
66
8
  }
67
9
  export {
68
10
  useSelectionScrollSync
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../editor/select-mode/hooks/useSelectionScrollSync.ts"],
4
- "sourcesContent": ["import type { MutableRefObject } from \"react\";\nimport type { DisplayMode } from \"schemas/generated/selectMode\";\nimport type { SelectModeInteractionSession } from \"../selectModeSession\";\n\nimport { useEffect } from \"react\";\n\nimport { getWebsiteBuilderRpc } from \"../iframeRpcChannel\";\nimport {\n getDocumentScrollOffset,\n getElementBoundingRect,\n getViewportRectFromPageRect,\n} from \"../interactions/selectionGeometry\";\nimport { showSelectionFrame } from \"../selectionFrame\";\n\n/**\n * After a selection (element or area) has been resolved, the parent's\n * highlight overlay is positioned in viewport coordinates. When the user\n * scrolls the iframe document the highlight would otherwise lag behind the\n * underlying element. This hook re-sends an updated rect on every scroll\n * (rAF-coalesced) so the parent overlay tracks the element/area through\n * scrolls without us having to mirror scroll state into the parent.\n *\n * - For an `element` session we send only `{ boundingRect, clickPosition }`\n * \u2014 the rest of the descriptor (selector, outerHTML, computed styles,\n * text metrics, source location) was captured at selection-commit time\n * and doesn't change while the user is just scrolling. Rebuilding the\n * full descriptor here used to call `serializeStyledElement` (recursive\n * `getComputedStyle` walk) on every scroll frame; this keeps the hot\n * path to a single `getBoundingClientRect` read.\n * - For an `area` session we keep the original *page* rect (which doesn't\n * move) and convert it to viewport coordinates using the latest scroll\n * offset before sending.\n *\n * @author Kevin O'Connell 2026-04-17\n */\nexport function useSelectionScrollSync({\n displayMode,\n interactionSessionRef,\n}: {\n displayMode: DisplayMode;\n interactionSessionRef: MutableRefObject<SelectModeInteractionSession>;\n}) {\n // eslint-disable-next-line replo/no-use-effect -- Legacy effect - may or may not be necessary\n useEffect(() => {\n if (displayMode !== \"selection\") {\n return;\n }\n\n let animationFrameId: number | null = null;\n\n const handleScroll = () => {\n if (animationFrameId !== null) {\n return;\n }\n\n animationFrameId = requestAnimationFrame(() => {\n animationFrameId = null;\n\n const session = interactionSessionRef.current;\n if (session.type === \"element\") {\n const boundingRect = getElementBoundingRect(session.element);\n const sessionClickPosition = session.clickPosition;\n const clickPosition = {\n x:\n sessionClickPosition !== null\n ? boundingRect.left + sessionClickPosition.x\n : boundingRect.right,\n y:\n sessionClickPosition !== null\n ? boundingRect.top + sessionClickPosition.y\n : boundingRect.bottom,\n };\n // Page coordinates of the in-iframe frame are stable across\n // pure scroll, but layout shifts during scroll (sticky\n // headers expanding, lazy images settling, etc.) can move the\n // selected element. Re-applying every rAF tick keeps the\n // frame glued; same-value style writes are cheap and don't\n // repaint.\n const scrollOffset = getDocumentScrollOffset();\n showSelectionFrame({\n variant: \"element\",\n pageRect: {\n x: boundingRect.left + scrollOffset.left,\n y: boundingRect.top + scrollOffset.top,\n width: boundingRect.width,\n height: boundingRect.height,\n },\n });\n getWebsiteBuilderRpc()?.selectedElementRectUpdate({\n rect: boundingRect,\n clickPosition,\n });\n return;\n }\n\n if (session.type === \"area\") {\n getWebsiteBuilderRpc()?.selectedAreaRectUpdate({\n rect: getViewportRectFromPageRect({\n rect: session.pageRect,\n scrollOffset: getDocumentScrollOffset(),\n }),\n });\n }\n });\n };\n\n document.addEventListener(\"scroll\", handleScroll, true);\n return () => {\n document.removeEventListener(\"scroll\", handleScroll, true);\n if (animationFrameId !== null) {\n cancelAnimationFrame(animationFrameId);\n }\n };\n }, [displayMode, interactionSessionRef]);\n}\n"],
5
- "mappings": "AAIA,SAAS,iBAAiB;AAE1B,SAAS,4BAA4B;AACrC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,0BAA0B;AAuB5B,SAAS,uBAAuB;AAAA,EACrC;AAAA,EACA;AACF,GAGG;AAED,YAAU,MAAM;AACd,QAAI,gBAAgB,aAAa;AAC/B;AAAA,IACF;AAEA,QAAI,mBAAkC;AAEtC,UAAM,eAAe,MAAM;AACzB,UAAI,qBAAqB,MAAM;AAC7B;AAAA,MACF;AAEA,yBAAmB,sBAAsB,MAAM;AAC7C,2BAAmB;AAEnB,cAAM,UAAU,sBAAsB;AACtC,YAAI,QAAQ,SAAS,WAAW;AAC9B,gBAAM,eAAe,uBAAuB,QAAQ,OAAO;AAC3D,gBAAM,uBAAuB,QAAQ;AACrC,gBAAM,gBAAgB;AAAA,YACpB,GACE,yBAAyB,OACrB,aAAa,OAAO,qBAAqB,IACzC,aAAa;AAAA,YACnB,GACE,yBAAyB,OACrB,aAAa,MAAM,qBAAqB,IACxC,aAAa;AAAA,UACrB;AAOA,gBAAM,eAAe,wBAAwB;AAC7C,6BAAmB;AAAA,YACjB,SAAS;AAAA,YACT,UAAU;AAAA,cACR,GAAG,aAAa,OAAO,aAAa;AAAA,cACpC,GAAG,aAAa,MAAM,aAAa;AAAA,cACnC,OAAO,aAAa;AAAA,cACpB,QAAQ,aAAa;AAAA,YACvB;AAAA,UACF,CAAC;AACD,+BAAqB,GAAG,0BAA0B;AAAA,YAChD,MAAM;AAAA,YACN;AAAA,UACF,CAAC;AACD;AAAA,QACF;AAEA,YAAI,QAAQ,SAAS,QAAQ;AAC3B,+BAAqB,GAAG,uBAAuB;AAAA,YAC7C,MAAM,4BAA4B;AAAA,cAChC,MAAM,QAAQ;AAAA,cACd,cAAc,wBAAwB;AAAA,YACxC,CAAC;AAAA,UACH,CAAC;AAAA,QACH;AAAA,MACF,CAAC;AAAA,IACH;AAEA,aAAS,iBAAiB,UAAU,cAAc,IAAI;AACtD,WAAO,MAAM;AACX,eAAS,oBAAoB,UAAU,cAAc,IAAI;AACzD,UAAI,qBAAqB,MAAM;AAC7B,6BAAqB,gBAAgB;AAAA,MACvC;AAAA,IACF;AAAA,EACF,GAAG,CAAC,aAAa,qBAAqB,CAAC;AACzC;",
4
+ "sourcesContent": ["/* oxlint-disable replo/no-void-return-type -- Tombstone declarations preserve exact return types for consumer compatibility. */\nimport type { MutableRefObject } from \"react\";\nimport type { DisplayMode } from \"schemas/generated/selectMode\";\nimport type { SelectModeInteractionSession } from \"../selectModeSession\";\n\nimport { canopyTombstoneError } from \"../../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function useSelectionScrollSync(_args: {\n displayMode: DisplayMode;\n interactionSessionRef: MutableRefObject<SelectModeInteractionSession>;\n}): void {\n throw canopyTombstoneError({\n symbol: \"useSelectionScrollSync\",\n subpath: \"editor/select-mode/hooks/useSelectionScrollSync\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
5
+ "mappings": "AAKA,SAAS,4BAA4B;AAG9B,SAAS,uBAAuB,OAG9B;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,8 @@
1
- export declare function getSourceLocationSiblingElements({ element, }: {
1
+ /** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */
2
+ export declare function getSourceLocationSiblingElements(_args: {
2
3
  element: Element;
3
4
  }): HTMLElement[];
4
- export declare function getSourceLocationSiblingSelectors({ element, }: {
5
+ /** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */
6
+ export declare function getSourceLocationSiblingSelectors(_args: {
5
7
  element: Element;
6
8
  }): string[];
@@ -1,56 +1,17 @@
1
- import { buildSelector } from "../descriptor/elementDescriptor";
2
- import { getHostSourceIdentity } from "../fiber";
3
- const sourceIdentityCache = /* @__PURE__ */ new WeakMap();
4
- function getSourceIdentityKey(element) {
5
- const cached = sourceIdentityCache.get(element);
6
- if (cached !== void 0) {
7
- return cached;
8
- }
9
- const identity = getHostSourceIdentity(element);
10
- if (!identity) {
11
- sourceIdentityCache.set(element, null);
12
- return null;
13
- }
14
- const key = [
15
- identity.filePath,
16
- identity.lineNumber,
17
- identity.columnNumber ?? "",
18
- identity.tagName
19
- ].join(":");
20
- sourceIdentityCache.set(element, key);
21
- return key;
1
+ import { canopyTombstoneError } from "../../../lib/tombstone";
2
+ function getSourceLocationSiblingElements(_args) {
3
+ throw canopyTombstoneError({
4
+ symbol: "getSourceLocationSiblingElements",
5
+ subpath: "editor/select-mode/hooks/useSiblingResolution",
6
+ replacement: { kind: "sandbox-runtime" }
7
+ });
22
8
  }
23
- function getSourceLocationSiblingElements({
24
- element
25
- }) {
26
- if (!(element instanceof HTMLElement) || !document.body) {
27
- return [];
28
- }
29
- const selectedLocationKey = getSourceIdentityKey(element);
30
- if (!selectedLocationKey) {
31
- return [];
32
- }
33
- const siblings = [];
34
- const treeWalker = document.createTreeWalker(
35
- document.body,
36
- NodeFilter.SHOW_ELEMENT
37
- );
38
- let currentNode = treeWalker.nextNode();
39
- while (currentNode) {
40
- if (currentNode instanceof HTMLElement && currentNode !== element) {
41
- const currentLocationKey = getSourceIdentityKey(currentNode);
42
- if (currentLocationKey === selectedLocationKey) {
43
- siblings.push(currentNode);
44
- }
45
- }
46
- currentNode = treeWalker.nextNode();
47
- }
48
- return siblings;
49
- }
50
- function getSourceLocationSiblingSelectors({
51
- element
52
- }) {
53
- return getSourceLocationSiblingElements({ element }).map(buildSelector);
9
+ function getSourceLocationSiblingSelectors(_args) {
10
+ throw canopyTombstoneError({
11
+ symbol: "getSourceLocationSiblingSelectors",
12
+ subpath: "editor/select-mode/hooks/useSiblingResolution",
13
+ replacement: { kind: "sandbox-runtime" }
14
+ });
54
15
  }
55
16
  export {
56
17
  getSourceLocationSiblingElements,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../editor/select-mode/hooks/useSiblingResolution.ts"],
4
- "sourcesContent": ["import { buildSelector } from \"../descriptor/elementDescriptor\";\nimport { getHostSourceIdentity } from \"../fiber\";\n\nconst sourceIdentityCache = new WeakMap<HTMLElement, string | null>();\n\nfunction getSourceIdentityKey(element: HTMLElement): string | null {\n const cached = sourceIdentityCache.get(element);\n if (cached !== undefined) {\n return cached;\n }\n const identity = getHostSourceIdentity(element);\n if (!identity) {\n sourceIdentityCache.set(element, null);\n return null;\n }\n const key = [\n identity.filePath,\n identity.lineNumber,\n identity.columnNumber ?? \"\",\n identity.tagName,\n ].join(\":\");\n sourceIdentityCache.set(element, key);\n return key;\n}\n\nexport function getSourceLocationSiblingElements({\n element,\n}: {\n element: Element;\n}): HTMLElement[] {\n if (!(element instanceof HTMLElement) || !document.body) {\n return [];\n }\n\n const selectedLocationKey = getSourceIdentityKey(element);\n if (!selectedLocationKey) {\n return [];\n }\n\n const siblings: HTMLElement[] = [];\n const treeWalker = document.createTreeWalker(\n document.body,\n NodeFilter.SHOW_ELEMENT,\n );\n\n let currentNode = treeWalker.nextNode();\n while (currentNode) {\n if (currentNode instanceof HTMLElement && currentNode !== element) {\n const currentLocationKey = getSourceIdentityKey(currentNode);\n if (currentLocationKey === selectedLocationKey) {\n siblings.push(currentNode);\n }\n }\n currentNode = treeWalker.nextNode();\n }\n\n return siblings;\n}\n\nexport function getSourceLocationSiblingSelectors({\n element,\n}: {\n element: Element;\n}): string[] {\n return getSourceLocationSiblingElements({ element }).map(buildSelector);\n}\n"],
5
- "mappings": "AAAA,SAAS,qBAAqB;AAC9B,SAAS,6BAA6B;AAEtC,MAAM,sBAAsB,oBAAI,QAAoC;AAEpE,SAAS,qBAAqB,SAAqC;AACjE,QAAM,SAAS,oBAAoB,IAAI,OAAO;AAC9C,MAAI,WAAW,QAAW;AACxB,WAAO;AAAA,EACT;AACA,QAAM,WAAW,sBAAsB,OAAO;AAC9C,MAAI,CAAC,UAAU;AACb,wBAAoB,IAAI,SAAS,IAAI;AACrC,WAAO;AAAA,EACT;AACA,QAAM,MAAM;AAAA,IACV,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS,gBAAgB;AAAA,IACzB,SAAS;AAAA,EACX,EAAE,KAAK,GAAG;AACV,sBAAoB,IAAI,SAAS,GAAG;AACpC,SAAO;AACT;AAEO,SAAS,iCAAiC;AAAA,EAC/C;AACF,GAEkB;AAChB,MAAI,EAAE,mBAAmB,gBAAgB,CAAC,SAAS,MAAM;AACvD,WAAO,CAAC;AAAA,EACV;AAEA,QAAM,sBAAsB,qBAAqB,OAAO;AACxD,MAAI,CAAC,qBAAqB;AACxB,WAAO,CAAC;AAAA,EACV;AAEA,QAAM,WAA0B,CAAC;AACjC,QAAM,aAAa,SAAS;AAAA,IAC1B,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAEA,MAAI,cAAc,WAAW,SAAS;AACtC,SAAO,aAAa;AAClB,QAAI,uBAAuB,eAAe,gBAAgB,SAAS;AACjE,YAAM,qBAAqB,qBAAqB,WAAW;AAC3D,UAAI,uBAAuB,qBAAqB;AAC9C,iBAAS,KAAK,WAAW;AAAA,MAC3B;AAAA,IACF;AACA,kBAAc,WAAW,SAAS;AAAA,EACpC;AAEA,SAAO;AACT;AAEO,SAAS,kCAAkC;AAAA,EAChD;AACF,GAEa;AACX,SAAO,iCAAiC,EAAE,QAAQ,CAAC,EAAE,IAAI,aAAa;AACxE;",
4
+ "sourcesContent": ["import { canopyTombstoneError } from \"../../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getSourceLocationSiblingElements(_args: {\n element: Element;\n}): HTMLElement[] {\n throw canopyTombstoneError({\n symbol: \"getSourceLocationSiblingElements\",\n subpath: \"editor/select-mode/hooks/useSiblingResolution\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getSourceLocationSiblingSelectors(_args: {\n element: Element;\n}): string[] {\n throw canopyTombstoneError({\n symbol: \"getSourceLocationSiblingSelectors\",\n subpath: \"editor/select-mode/hooks/useSiblingResolution\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
5
+ "mappings": "AAAA,SAAS,4BAA4B;AAG9B,SAAS,iCAAiC,OAE/B;AAChB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,kCAAkC,OAErC;AACX,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -1,356 +1,17 @@
1
1
  import type { SelectedElement } from "../../_vendor/schemas/generated/selectMode";
2
- import type { IframeRpcChannelInputHandlers, IframeRpcChannelRemote } from "../../_vendor/schemas/iframeRpcChannel";
3
- import { canopyToWebsiteBuilderMethodConfig, websiteBuilderToCanopyMethodConfig } from "../../_vendor/schemas/selectModeIframeRpc";
2
+ import type { IframeRpcChannel, IframeRpcChannelInputHandlers, IframeRpcChannelRemote } from "../../_vendor/schemas/iframeRpcChannel";
3
+ import type { canopyToWebsiteBuilderMethodConfig, websiteBuilderToCanopyMethodConfig } from "../../_vendor/schemas/selectModeIframeRpc";
4
4
  export type WebsiteBuilderRpcRemote = IframeRpcChannelRemote<typeof canopyToWebsiteBuilderMethodConfig>;
5
5
  type SelectModeParentMessagingHandlers = Omit<IframeRpcChannelInputHandlers<typeof websiteBuilderToCanopyMethodConfig>, "symbolicateSelectedElement">;
6
- export declare function getSelectModeIframeRpcChannel(): import("../../_vendor/schemas/iframeRpcChannel").IframeRpcChannel<{
7
- requestInlineTextEdit: {
8
- inputSchema: import("zod").ZodObject<{
9
- editId: import("zod").ZodString;
10
- element: import("zod").ZodObject<{
11
- kind: import("zod").ZodLiteral<"react-element">;
12
- selector: import("zod").ZodString;
13
- tagName: import("zod").ZodString;
14
- elementType: import("zod").ZodString;
15
- textContent: import("zod").ZodNullable<import("zod").ZodString>;
16
- rect: import("zod").ZodObject<{
17
- x: import("zod").ZodNumber;
18
- y: import("zod").ZodNumber;
19
- left: import("zod").ZodNumber;
20
- top: import("zod").ZodNumber;
21
- right: import("zod").ZodNumber;
22
- bottom: import("zod").ZodNumber;
23
- width: import("zod").ZodNumber;
24
- height: import("zod").ZodNumber;
25
- }, import("zod/v4/core").$strip>;
26
- textMetrics: import("zod").ZodNullable<import("zod").ZodObject<{
27
- tightWidth: import("zod").ZodNumber;
28
- lineCount: import("zod").ZodNumber;
29
- lineHeight: import("zod").ZodNumber;
30
- }, import("zod/v4/core").$strip>>;
31
- outerHTML: import("zod").ZodString;
32
- definedStyles: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
33
- property: import("zod").ZodString;
34
- variant: import("zod").ZodNullable<import("zod").ZodObject<{
35
- atRules: import("zod").ZodArray<import("zod").ZodObject<{
36
- type: import("zod").ZodString;
37
- text: import("zod").ZodString;
38
- }, import("zod/v4/core").$strip>>;
39
- pseudo: import("zod").ZodNullable<import("zod").ZodString>;
40
- }, import("zod/v4/core").$strip>>;
41
- className: import("zod").ZodNullable<import("zod").ZodString>;
42
- raw: import("zod").ZodString;
43
- resolved: import("zod").ZodString;
44
- }, import("zod/v4/core").$strip>>>;
45
- inheritedStyles: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
46
- clickPosition: import("zod").ZodObject<{
47
- x: import("zod").ZodNumber;
48
- y: import("zod").ZodNumber;
49
- }, import("zod/v4/core").$strip>;
50
- sourceLocation: import("zod").ZodOptional<import("zod").ZodObject<{
51
- filePath: import("zod").ZodString;
52
- lineNumber: import("zod").ZodNumber;
53
- columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
54
- componentName: import("zod").ZodOptional<import("zod").ZodString>;
55
- }, import("zod/v4/core").$strip>>;
56
- fiberChain: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
57
- sourceLocation: import("zod").ZodObject<{
58
- filePath: import("zod").ZodString;
59
- lineNumber: import("zod").ZodNumber;
60
- columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
61
- componentName: import("zod").ZodOptional<import("zod").ZodString>;
62
- }, import("zod/v4/core").$strip>;
63
- tagName: import("zod").ZodOptional<import("zod").ZodString>;
64
- componentName: import("zod").ZodOptional<import("zod").ZodString>;
65
- props: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
66
- }, import("zod/v4/core").$strip>>>;
67
- siblingSelectors: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
68
- }, import("zod/v4/core").$strip>;
69
- }, import("zod/v4/core").$strip>;
70
- outputSchema: import("zod").ZodObject<{
71
- allowed: import("zod").ZodBoolean;
72
- }, import("zod/v4/core").$strip>;
73
- timeoutMs: number;
74
- };
75
- iframeReady: {
76
- inputSchema: import("zod").ZodUndefined;
77
- outputSchema: import("zod").ZodVoid;
78
- };
79
- elementSelected: {
80
- inputSchema: import("zod").ZodObject<{
81
- data: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
82
- kind: import("zod").ZodLiteral<"react-element">;
83
- selector: import("zod").ZodString;
84
- tagName: import("zod").ZodString;
85
- elementType: import("zod").ZodString;
86
- textContent: import("zod").ZodNullable<import("zod").ZodString>;
87
- rect: import("zod").ZodObject<{
88
- x: import("zod").ZodNumber;
89
- y: import("zod").ZodNumber;
90
- left: import("zod").ZodNumber;
91
- top: import("zod").ZodNumber;
92
- right: import("zod").ZodNumber;
93
- bottom: import("zod").ZodNumber;
94
- width: import("zod").ZodNumber;
95
- height: import("zod").ZodNumber;
96
- }, import("zod/v4/core").$strip>;
97
- textMetrics: import("zod").ZodNullable<import("zod").ZodObject<{
98
- tightWidth: import("zod").ZodNumber;
99
- lineCount: import("zod").ZodNumber;
100
- lineHeight: import("zod").ZodNumber;
101
- }, import("zod/v4/core").$strip>>;
102
- outerHTML: import("zod").ZodString;
103
- definedStyles: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
104
- property: import("zod").ZodString;
105
- variant: import("zod").ZodNullable<import("zod").ZodObject<{
106
- atRules: import("zod").ZodArray<import("zod").ZodObject<{
107
- type: import("zod").ZodString;
108
- text: import("zod").ZodString;
109
- }, import("zod/v4/core").$strip>>;
110
- pseudo: import("zod").ZodNullable<import("zod").ZodString>;
111
- }, import("zod/v4/core").$strip>>;
112
- className: import("zod").ZodNullable<import("zod").ZodString>;
113
- raw: import("zod").ZodString;
114
- resolved: import("zod").ZodString;
115
- }, import("zod/v4/core").$strip>>>;
116
- inheritedStyles: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
117
- clickPosition: import("zod").ZodObject<{
118
- x: import("zod").ZodNumber;
119
- y: import("zod").ZodNumber;
120
- }, import("zod/v4/core").$strip>;
121
- sourceLocation: import("zod").ZodOptional<import("zod").ZodObject<{
122
- filePath: import("zod").ZodString;
123
- lineNumber: import("zod").ZodNumber;
124
- columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
125
- componentName: import("zod").ZodOptional<import("zod").ZodString>;
126
- }, import("zod/v4/core").$strip>>;
127
- fiberChain: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
128
- sourceLocation: import("zod").ZodObject<{
129
- filePath: import("zod").ZodString;
130
- lineNumber: import("zod").ZodNumber;
131
- columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
132
- componentName: import("zod").ZodOptional<import("zod").ZodString>;
133
- }, import("zod/v4/core").$strip>;
134
- tagName: import("zod").ZodOptional<import("zod").ZodString>;
135
- componentName: import("zod").ZodOptional<import("zod").ZodString>;
136
- props: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
137
- }, import("zod/v4/core").$strip>>>;
138
- siblingSelectors: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
139
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
140
- kind: import("zod").ZodLiteral<"plan">;
141
- planId: import("zod").ZodString;
142
- label: import("zod").ZodString;
143
- rect: import("zod").ZodObject<{
144
- x: import("zod").ZodNumber;
145
- y: import("zod").ZodNumber;
146
- left: import("zod").ZodNumber;
147
- top: import("zod").ZodNumber;
148
- right: import("zod").ZodNumber;
149
- bottom: import("zod").ZodNumber;
150
- width: import("zod").ZodNumber;
151
- height: import("zod").ZodNumber;
152
- }, import("zod/v4/core").$strip>;
153
- }, import("zod/v4/core").$strip>], "kind">;
154
- }, import("zod/v4/core").$strip>;
155
- outputSchema: import("zod").ZodVoid;
156
- };
157
- hoverElement: {
158
- inputSchema: import("zod").ZodObject<{
159
- rect: import("zod").ZodNullable<import("zod").ZodObject<{
160
- x: import("zod").ZodNumber;
161
- y: import("zod").ZodNumber;
162
- left: import("zod").ZodNumber;
163
- top: import("zod").ZodNumber;
164
- right: import("zod").ZodNumber;
165
- bottom: import("zod").ZodNumber;
166
- width: import("zod").ZodNumber;
167
- height: import("zod").ZodNumber;
168
- }, import("zod/v4/core").$strip>>;
169
- }, import("zod/v4/core").$strip>;
170
- outputSchema: import("zod").ZodVoid;
171
- };
172
- selectedElementRectUpdate: {
173
- inputSchema: import("zod").ZodObject<{
174
- rect: import("zod").ZodObject<{
175
- x: import("zod").ZodNumber;
176
- y: import("zod").ZodNumber;
177
- left: import("zod").ZodNumber;
178
- top: import("zod").ZodNumber;
179
- right: import("zod").ZodNumber;
180
- bottom: import("zod").ZodNumber;
181
- width: import("zod").ZodNumber;
182
- height: import("zod").ZodNumber;
183
- }, import("zod/v4/core").$strip>;
184
- clickPosition: import("zod").ZodObject<{
185
- x: import("zod").ZodNumber;
186
- y: import("zod").ZodNumber;
187
- }, import("zod/v4/core").$strip>;
188
- }, import("zod/v4/core").$strip>;
189
- outputSchema: import("zod").ZodVoid;
190
- };
191
- selectedAreaRectUpdate: {
192
- inputSchema: import("zod").ZodObject<{
193
- rect: import("zod").ZodObject<{
194
- x: import("zod").ZodNumber;
195
- y: import("zod").ZodNumber;
196
- left: import("zod").ZodNumber;
197
- top: import("zod").ZodNumber;
198
- right: import("zod").ZodNumber;
199
- bottom: import("zod").ZodNumber;
200
- width: import("zod").ZodNumber;
201
- height: import("zod").ZodNumber;
202
- }, import("zod/v4/core").$strip>;
203
- }, import("zod/v4/core").$strip>;
204
- outputSchema: import("zod").ZodVoid;
205
- };
206
- dragRectUpdated: {
207
- inputSchema: import("zod").ZodObject<{
208
- dragRect: import("zod").ZodNullable<import("zod").ZodObject<{
209
- x: import("zod").ZodNumber;
210
- y: import("zod").ZodNumber;
211
- left: import("zod").ZodNumber;
212
- top: import("zod").ZodNumber;
213
- right: import("zod").ZodNumber;
214
- bottom: import("zod").ZodNumber;
215
- width: import("zod").ZodNumber;
216
- height: import("zod").ZodNumber;
217
- }, import("zod/v4/core").$strip>>;
218
- selectionRects: import("zod").ZodArray<import("zod").ZodObject<{
219
- id: import("zod").ZodString;
220
- rect: import("zod").ZodObject<{
221
- x: import("zod").ZodNumber;
222
- y: import("zod").ZodNumber;
223
- left: import("zod").ZodNumber;
224
- top: import("zod").ZodNumber;
225
- right: import("zod").ZodNumber;
226
- bottom: import("zod").ZodNumber;
227
- width: import("zod").ZodNumber;
228
- height: import("zod").ZodNumber;
229
- }, import("zod/v4/core").$strip>;
230
- }, import("zod/v4/core").$strip>>;
231
- }, import("zod/v4/core").$strip>;
232
- outputSchema: import("zod").ZodVoid;
233
- };
234
- areaSelected: {
235
- inputSchema: import("zod").ZodObject<{
236
- rect: import("zod").ZodObject<{
237
- x: import("zod").ZodNumber;
238
- y: import("zod").ZodNumber;
239
- left: import("zod").ZodNumber;
240
- top: import("zod").ZodNumber;
241
- right: import("zod").ZodNumber;
242
- bottom: import("zod").ZodNumber;
243
- width: import("zod").ZodNumber;
244
- height: import("zod").ZodNumber;
245
- }, import("zod/v4/core").$strip>;
246
- items: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
247
- kind: import("zod").ZodLiteral<"react-element">;
248
- selector: import("zod").ZodString;
249
- tagName: import("zod").ZodString;
250
- elementType: import("zod").ZodString;
251
- textContent: import("zod").ZodNullable<import("zod").ZodString>;
252
- rect: import("zod").ZodObject<{
253
- x: import("zod").ZodNumber;
254
- y: import("zod").ZodNumber;
255
- left: import("zod").ZodNumber;
256
- top: import("zod").ZodNumber;
257
- right: import("zod").ZodNumber;
258
- bottom: import("zod").ZodNumber;
259
- width: import("zod").ZodNumber;
260
- height: import("zod").ZodNumber;
261
- }, import("zod/v4/core").$strip>;
262
- textMetrics: import("zod").ZodNullable<import("zod").ZodObject<{
263
- tightWidth: import("zod").ZodNumber;
264
- lineCount: import("zod").ZodNumber;
265
- lineHeight: import("zod").ZodNumber;
266
- }, import("zod/v4/core").$strip>>;
267
- outerHTML: import("zod").ZodString;
268
- definedStyles: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
269
- property: import("zod").ZodString;
270
- variant: import("zod").ZodNullable<import("zod").ZodObject<{
271
- atRules: import("zod").ZodArray<import("zod").ZodObject<{
272
- type: import("zod").ZodString;
273
- text: import("zod").ZodString;
274
- }, import("zod/v4/core").$strip>>;
275
- pseudo: import("zod").ZodNullable<import("zod").ZodString>;
276
- }, import("zod/v4/core").$strip>>;
277
- className: import("zod").ZodNullable<import("zod").ZodString>;
278
- raw: import("zod").ZodString;
279
- resolved: import("zod").ZodString;
280
- }, import("zod/v4/core").$strip>>>;
281
- inheritedStyles: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
282
- clickPosition: import("zod").ZodObject<{
283
- x: import("zod").ZodNumber;
284
- y: import("zod").ZodNumber;
285
- }, import("zod/v4/core").$strip>;
286
- sourceLocation: import("zod").ZodOptional<import("zod").ZodObject<{
287
- filePath: import("zod").ZodString;
288
- lineNumber: import("zod").ZodNumber;
289
- columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
290
- componentName: import("zod").ZodOptional<import("zod").ZodString>;
291
- }, import("zod/v4/core").$strip>>;
292
- fiberChain: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
293
- sourceLocation: import("zod").ZodObject<{
294
- filePath: import("zod").ZodString;
295
- lineNumber: import("zod").ZodNumber;
296
- columnNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
297
- componentName: import("zod").ZodOptional<import("zod").ZodString>;
298
- }, import("zod/v4/core").$strip>;
299
- tagName: import("zod").ZodOptional<import("zod").ZodString>;
300
- componentName: import("zod").ZodOptional<import("zod").ZodString>;
301
- props: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
302
- }, import("zod/v4/core").$strip>>>;
303
- siblingSelectors: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
304
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
305
- kind: import("zod").ZodLiteral<"plan">;
306
- planId: import("zod").ZodString;
307
- label: import("zod").ZodString;
308
- rect: import("zod").ZodObject<{
309
- x: import("zod").ZodNumber;
310
- y: import("zod").ZodNumber;
311
- left: import("zod").ZodNumber;
312
- top: import("zod").ZodNumber;
313
- right: import("zod").ZodNumber;
314
- bottom: import("zod").ZodNumber;
315
- width: import("zod").ZodNumber;
316
- height: import("zod").ZodNumber;
317
- }, import("zod/v4/core").$strip>;
318
- }, import("zod/v4/core").$strip>], "kind">>;
319
- }, import("zod/v4/core").$strip>;
320
- outputSchema: import("zod").ZodVoid;
321
- };
322
- textCommitted: {
323
- inputSchema: import("zod").ZodObject<{
324
- editId: import("zod").ZodString;
325
- html: import("zod").ZodString;
326
- json: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
327
- originalInnerHTML: import("zod").ZodString;
328
- }, import("zod/v4/core").$strip>;
329
- outputSchema: import("zod").ZodVoid;
330
- };
331
- editorStateUpdate: {
332
- inputSchema: import("zod").ZodObject<{
333
- activeMarks: import("zod").ZodObject<{
334
- bold: import("zod").ZodBoolean;
335
- italic: import("zod").ZodBoolean;
336
- underline: import("zod").ZodBoolean;
337
- strike: import("zod").ZodBoolean;
338
- }, import("zod/v4/core").$strip>;
339
- isEditing: import("zod").ZodBoolean;
340
- }, import("zod/v4/core").$strip>;
341
- outputSchema: import("zod").ZodVoid;
342
- };
343
- fastRefreshComplete: {
344
- inputSchema: import("zod").ZodUndefined;
345
- outputSchema: import("zod").ZodVoid;
346
- };
347
- }> | null;
348
- export declare function setSelectModeParentHandlers(nextHandlers: SelectModeParentMessagingHandlers | null): void;
6
+ /** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */
7
+ export declare function getSelectModeIframeRpcChannel(): IframeRpcChannel<typeof canopyToWebsiteBuilderMethodConfig> | null;
8
+ /** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */
9
+ export declare function setSelectModeParentHandlers(_nextHandlers: SelectModeParentMessagingHandlers | null): void;
10
+ /** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */
349
11
  export declare function getWebsiteBuilderRpc(): WebsiteBuilderRpcRemote | null;
350
- export declare function requestInlineTextEdit(input: {
12
+ /** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */
13
+ export declare function requestInlineTextEdit(_input: {
351
14
  editId: string;
352
15
  element: SelectedElement;
353
- }): Promise<{
354
- allowed: boolean;
355
- }>;
16
+ }): ReturnType<WebsiteBuilderRpcRemote["requestInlineTextEdit"]>;
356
17
  export {};