@replohq/canopy-sdk 3.0.3 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/_vendor/replo-utils/lib/crypto.d.ts +2 -8
  2. package/_vendor/replo-utils/lib/fonts.d.ts +8 -0
  3. package/_vendor/replo-utils/lib/fonts.mjs +12 -3
  4. package/_vendor/replo-utils/lib/geometry.mjs +0 -1
  5. package/_vendor/replo-utils/lib/json.mjs +1 -1
  6. package/_vendor/replo-utils/lib/posthogReplay.mjs +0 -1
  7. package/_vendor/replo-utils/lib/string.d.ts +0 -2
  8. package/_vendor/replo-utils/lib/url.d.ts +6 -1
  9. package/_vendor/replo-utils/lib/url.mjs +1 -1
  10. package/_vendor/schemas/designLibrary.mjs +0 -1
  11. package/_vendor/schemas/errors.d.ts +2 -3
  12. package/_vendor/schemas/generated/errors.d.ts +3 -0
  13. package/_vendor/schemas/generated/selectModeIframeRpc.d.ts +10 -2
  14. package/_vendor/schemas/iframeRpcChannel.d.ts +1 -1
  15. package/_vendor/schemas/iframeRpcChannel.mjs +1 -7
  16. package/_vendor/schemas/loaderKeys.mjs +0 -2
  17. package/_vendor/schemas/money.d.ts +1 -1
  18. package/_vendor/schemas/money.mjs +1 -7
  19. package/_vendor/schemas/pageAnnotations.mjs +0 -2
  20. package/_vendor/schemas/routing/rules.mjs +2 -2
  21. package/_vendor/schemas/selectMode.d.ts +0 -4
  22. package/_vendor/schemas/selectMode.mjs +2 -2
  23. package/_vendor/schemas/selectModeIframeRpc.d.ts +132 -4
  24. package/_vendor/schemas/selectModeIframeRpc.mjs +17 -14
  25. package/analytics/analytics-provider.js +1 -2
  26. package/analytics/analytics-sink.js +0 -1
  27. package/analytics/get-analytics-sinks.js +1 -2
  28. package/analytics/hooks/use-product-viewed-analytics.js +1 -2
  29. package/analytics/replo-first-party-pixel.js +1 -2
  30. package/analytics/replo-pixel-script.js +1 -2
  31. package/analytics/sinks/ga4-sink.js +1 -3
  32. package/analytics/sinks/meta-sink.js +1 -3
  33. package/analytics/sinks/pinterest-sink.js +1 -3
  34. package/analytics/sinks/reddit-sink.js +1 -3
  35. package/analytics/sinks/replo-sink.js +1 -3
  36. package/analytics/sinks/snapchat-sink.js +1 -3
  37. package/analytics/sinks/tiktok-sink.js +1 -3
  38. package/analytics/sinks/window-sink.js +1 -4
  39. package/analytics/utils/analytics-utils.js +1 -2
  40. package/analytics/utils/navigation-tracker.js +1 -2
  41. package/analytics/utils/shopify-funnel-gate.js +1 -2
  42. package/cart/buy-now-action.js +1 -2
  43. package/cart/cart-actions.js +1 -2
  44. package/cart/cart-loader.js +1 -2
  45. package/cart/cart-provider.js +1 -2
  46. package/cart/cart-schema.js +1 -2
  47. package/cart/cart-types.js +1 -2
  48. package/cart/gateways/cart-constants.js +0 -1
  49. package/cart/gateways/cart-gateway.js +1 -2
  50. package/cart/gateways/cookie-cart-gateway.js +1 -2
  51. package/cart/gateways/default-cart-gateway.js +1 -2
  52. package/cart/gateways/resolver-cart-gateway.js +1 -2
  53. package/cart/gateways/stripe-cart-gateway.js +1 -2
  54. package/cart/hooks/use-add-to-cart.js +1 -2
  55. package/cart/hooks/use-buy-now.js +1 -2
  56. package/cart/utils/cart-utils.js +1 -2
  57. package/cart/utils/cookie-cart-persistence.js +1 -2
  58. package/cart/utils/variant-to-cart-line.js +1 -2
  59. package/{chunk-IQVZY6EV.mjs → chunk-3A2F6BOM.mjs} +9 -6
  60. package/{chunk-2BNHFQZH.mjs → chunk-544ZM65A.mjs} +1 -5
  61. package/chunk-AKZNN7F2.mjs +0 -11
  62. package/chunk-FNTGY7I5.mjs +0 -8
  63. package/chunk-H36NDYLG.mjs +5 -127
  64. package/{chunk-VKO7P3ED.mjs → chunk-HGXQNZW7.mjs} +2 -5
  65. package/chunk-ILGEM42C.mjs +0 -3
  66. package/{chunk-ZZPQ3E7S.mjs → chunk-QPGBIWJK.mjs} +1 -14
  67. package/chunk-UJCSKKID.mjs +0 -4
  68. package/chunk-VPEVERWE.mjs +0 -1
  69. package/consent/consent-action.js +1 -2
  70. package/consent/consent-actions.js +1 -2
  71. package/consent/consent-store.js +1 -2
  72. package/consent/cookie.js +1 -2
  73. package/consent/replo-scripts.js +1 -2
  74. package/consent/script-registration-store.js +1 -2
  75. package/consent/script-snippets.js +1 -2
  76. package/consent/types.js +0 -1
  77. package/consent/window-api.js +1 -2
  78. package/editor/ClientErrorBoundary.js +1 -2
  79. package/editor/DocumentReadyBeacon.js +1 -2
  80. package/editor/LinkInterceptor.js +1 -2
  81. package/editor/NextErrorReporter.js +1 -2
  82. package/editor/annotations/AnnotationLayerMount.js +1 -2
  83. package/editor/annotations/annotationController.js +1 -2
  84. package/editor/annotations/bridgeGate.js +1 -2
  85. package/editor/design-library-preview/DesignLibraryPreview.js +1 -2
  86. package/editor/posthog-relay.js +1 -2
  87. package/editor/select-mode/EditorSelection.js +1 -2
  88. package/editor/select-mode/annotationFrames.js +1 -2
  89. package/editor/select-mode/descriptor/elementDescriptor.js +1 -2
  90. package/editor/select-mode/descriptor/styleExtraction.js +1 -2
  91. package/editor/select-mode/displayModeStore.js +1 -2
  92. package/editor/select-mode/fast-refresh-relay.js +1 -2
  93. package/editor/select-mode/fiber.js +1 -2
  94. package/editor/select-mode/hooks/useCrosshairCursor.js +1 -2
  95. package/editor/select-mode/hooks/useEditModeStateMachine.js +1 -2
  96. package/editor/select-mode/hooks/useOptimisticOverrides.js +1 -2
  97. package/editor/select-mode/hooks/useParentMessaging.js +1 -2
  98. package/editor/select-mode/hooks/useSelectModeController.js +1 -2
  99. package/editor/select-mode/hooks/useSelectionHover.js +1 -2
  100. package/editor/select-mode/hooks/useSelectionInteractions.js +1 -2
  101. package/editor/select-mode/hooks/useSelectionScrollSync.js +1 -2
  102. package/editor/select-mode/hooks/useSiblingResolution.js +1 -2
  103. package/editor/select-mode/iframeRpcChannel.js +1 -2
  104. package/editor/select-mode/inlineTextMarks.js +1 -2
  105. package/editor/select-mode/interactions/selectionGeometry.js +1 -2
  106. package/editor/select-mode/selectModeSession.js +1 -2
  107. package/editor/select-mode/selectionFrame.js +1 -2
  108. package/editor/select-mode/symbolicate.js +1 -2
  109. package/editor/select-mode/tiptapInlineEditor.js +1 -2
  110. package/env.js +1 -2
  111. package/gateways/canopy-api.js +1 -5
  112. package/hooks/use-client-value.js +1 -2
  113. package/hooks/use-formatted-price.js +1 -2
  114. package/lib/canopy-error.js +1 -2
  115. package/lib/get-query-client.js +1 -2
  116. package/lib/integration-utils.js +1 -2
  117. package/lib/shopify-utils.js +1 -2
  118. package/lib/tombstone.js +0 -1
  119. package/lib/url-utils.js +1 -2
  120. package/loaders/collection-loader.js +1 -2
  121. package/loaders/collection-products-loader.js +1 -2
  122. package/loaders/contentful-entries-loader.js +1 -2
  123. package/loaders/contentful-entry-loader.js +1 -2
  124. package/loaders/invoke-loader-action.js +1 -2
  125. package/loaders/invoke-loader-server.js +1 -2
  126. package/loaders/invoke-loader.js +1 -2
  127. package/loaders/levanta-product-loader.js +1 -2
  128. package/loaders/loader-error-boundary.js +1 -2
  129. package/loaders/loader-keys.js +1 -2
  130. package/loaders/loader-schemas.js +1 -5
  131. package/loaders/metaobject-loader.js +1 -2
  132. package/loaders/metaobjects-loader.js +1 -2
  133. package/loaders/okendo-review-aggregate-loader.js +1 -2
  134. package/loaders/okendo-reviews-loader.js +1 -2
  135. package/loaders/prefetch-loaders.js +1 -2
  136. package/loaders/preview-placeholder.js +1 -2
  137. package/loaders/product-loader-args.js +1 -2
  138. package/loaders/product-loader.js +1 -2
  139. package/loaders/rebuy-recommendations-loader.js +1 -2
  140. package/loaders/reviews-io-review-aggregate-loader.js +1 -2
  141. package/loaders/reviews-io-reviews-loader.js +1 -2
  142. package/loaders/smile-earning-rules-loader.js +1 -2
  143. package/loaders/smile-rewards-loader.js +1 -2
  144. package/loaders/smile-vip-tiers-loader.js +1 -2
  145. package/loaders/statsig-experiment-loader.js +1 -2
  146. package/loaders/vendor-loader-keys.js +1 -2
  147. package/loaders/yotpo-review-aggregate-loader.js +1 -2
  148. package/loaders/yotpo-reviews-loader.js +1 -2
  149. package/money.js +1 -2
  150. package/next/config.js +4 -2
  151. package/next/image-loader.js +1 -2
  152. package/next/open-next.js +0 -1
  153. package/orders/order-status-schema.js +1 -5
  154. package/orders/order-status.js +1 -2
  155. package/package.json +1 -1
  156. package/providers/query-provider.js +1 -2
  157. package/providers/replo-provider.js +1 -2
  158. package/routing/evaluate.js +1 -2
  159. package/routing/rules.js +1 -2
  160. package/analytics/analytics-provider.js.map +0 -7
  161. package/analytics/analytics-sink.js.map +0 -7
  162. package/analytics/get-analytics-sinks.js.map +0 -7
  163. package/analytics/hooks/use-product-viewed-analytics.js.map +0 -7
  164. package/analytics/replo-first-party-pixel.js.map +0 -7
  165. package/analytics/replo-pixel-script.js.map +0 -7
  166. package/analytics/sinks/ga4-sink.js.map +0 -7
  167. package/analytics/sinks/meta-sink.js.map +0 -7
  168. package/analytics/sinks/pinterest-sink.js.map +0 -7
  169. package/analytics/sinks/reddit-sink.js.map +0 -7
  170. package/analytics/sinks/replo-sink.js.map +0 -7
  171. package/analytics/sinks/snapchat-sink.js.map +0 -7
  172. package/analytics/sinks/tiktok-sink.js.map +0 -7
  173. package/analytics/sinks/window-sink.js.map +0 -7
  174. package/analytics/utils/analytics-utils.js.map +0 -7
  175. package/analytics/utils/navigation-tracker.js.map +0 -7
  176. package/analytics/utils/shopify-funnel-gate.js.map +0 -7
  177. package/cart/buy-now-action.js.map +0 -7
  178. package/cart/cart-actions.js.map +0 -7
  179. package/cart/cart-loader.js.map +0 -7
  180. package/cart/cart-provider.js.map +0 -7
  181. package/cart/cart-schema.js.map +0 -7
  182. package/cart/cart-types.js.map +0 -7
  183. package/cart/gateways/cart-constants.js.map +0 -7
  184. package/cart/gateways/cart-gateway.js.map +0 -7
  185. package/cart/gateways/cookie-cart-gateway.js.map +0 -7
  186. package/cart/gateways/default-cart-gateway.js.map +0 -7
  187. package/cart/gateways/resolver-cart-gateway.js.map +0 -7
  188. package/cart/gateways/stripe-cart-gateway.js.map +0 -7
  189. package/cart/hooks/use-add-to-cart.js.map +0 -7
  190. package/cart/hooks/use-buy-now.js.map +0 -7
  191. package/cart/utils/cart-utils.js.map +0 -7
  192. package/cart/utils/cookie-cart-persistence.js.map +0 -7
  193. package/cart/utils/variant-to-cart-line.js.map +0 -7
  194. package/consent/consent-action.js.map +0 -7
  195. package/consent/consent-actions.js.map +0 -7
  196. package/consent/consent-store.js.map +0 -7
  197. package/consent/cookie.js.map +0 -7
  198. package/consent/replo-scripts.js.map +0 -7
  199. package/consent/script-registration-store.js.map +0 -7
  200. package/consent/script-snippets.js.map +0 -7
  201. package/consent/types.js.map +0 -7
  202. package/consent/window-api.js.map +0 -7
  203. package/editor/ClientErrorBoundary.js.map +0 -7
  204. package/editor/DocumentReadyBeacon.js.map +0 -7
  205. package/editor/LinkInterceptor.js.map +0 -7
  206. package/editor/NextErrorReporter.js.map +0 -7
  207. package/editor/annotations/AnnotationLayerMount.js.map +0 -7
  208. package/editor/annotations/annotationController.js.map +0 -7
  209. package/editor/annotations/bridgeGate.js.map +0 -7
  210. package/editor/design-library-preview/DesignLibraryPreview.js.map +0 -7
  211. package/editor/posthog-relay.js.map +0 -7
  212. package/editor/select-mode/EditorSelection.js.map +0 -7
  213. package/editor/select-mode/annotationFrames.js.map +0 -7
  214. package/editor/select-mode/descriptor/elementDescriptor.js.map +0 -7
  215. package/editor/select-mode/descriptor/styleExtraction.js.map +0 -7
  216. package/editor/select-mode/displayModeStore.js.map +0 -7
  217. package/editor/select-mode/fast-refresh-relay.js.map +0 -7
  218. package/editor/select-mode/fiber.js.map +0 -7
  219. package/editor/select-mode/hooks/useCrosshairCursor.js.map +0 -7
  220. package/editor/select-mode/hooks/useEditModeStateMachine.js.map +0 -7
  221. package/editor/select-mode/hooks/useOptimisticOverrides.js.map +0 -7
  222. package/editor/select-mode/hooks/useParentMessaging.js.map +0 -7
  223. package/editor/select-mode/hooks/useSelectModeController.js.map +0 -7
  224. package/editor/select-mode/hooks/useSelectionHover.js.map +0 -7
  225. package/editor/select-mode/hooks/useSelectionInteractions.js.map +0 -7
  226. package/editor/select-mode/hooks/useSelectionScrollSync.js.map +0 -7
  227. package/editor/select-mode/hooks/useSiblingResolution.js.map +0 -7
  228. package/editor/select-mode/iframeRpcChannel.js.map +0 -7
  229. package/editor/select-mode/inlineTextMarks.js.map +0 -7
  230. package/editor/select-mode/interactions/selectionGeometry.js.map +0 -7
  231. package/editor/select-mode/selectModeSession.js.map +0 -7
  232. package/editor/select-mode/selectionFrame.js.map +0 -7
  233. package/editor/select-mode/symbolicate.js.map +0 -7
  234. package/editor/select-mode/tiptapInlineEditor.js.map +0 -7
  235. package/env.js.map +0 -7
  236. package/gateways/canopy-api.js.map +0 -7
  237. package/hooks/use-client-value.js.map +0 -7
  238. package/hooks/use-formatted-price.js.map +0 -7
  239. package/lib/canopy-error.js.map +0 -7
  240. package/lib/get-query-client.js.map +0 -7
  241. package/lib/integration-utils.js.map +0 -7
  242. package/lib/shopify-utils.js.map +0 -7
  243. package/lib/tombstone.js.map +0 -7
  244. package/lib/url-utils.js.map +0 -7
  245. package/loaders/collection-loader.js.map +0 -7
  246. package/loaders/collection-products-loader.js.map +0 -7
  247. package/loaders/contentful-entries-loader.js.map +0 -7
  248. package/loaders/contentful-entry-loader.js.map +0 -7
  249. package/loaders/invoke-loader-action.js.map +0 -7
  250. package/loaders/invoke-loader-server.js.map +0 -7
  251. package/loaders/invoke-loader.js.map +0 -7
  252. package/loaders/levanta-product-loader.js.map +0 -7
  253. package/loaders/loader-error-boundary.js.map +0 -7
  254. package/loaders/loader-keys.js.map +0 -7
  255. package/loaders/loader-schemas.js.map +0 -7
  256. package/loaders/metaobject-loader.js.map +0 -7
  257. package/loaders/metaobjects-loader.js.map +0 -7
  258. package/loaders/okendo-review-aggregate-loader.js.map +0 -7
  259. package/loaders/okendo-reviews-loader.js.map +0 -7
  260. package/loaders/prefetch-loaders.js.map +0 -7
  261. package/loaders/preview-placeholder.js.map +0 -7
  262. package/loaders/product-loader-args.js.map +0 -7
  263. package/loaders/product-loader.js.map +0 -7
  264. package/loaders/rebuy-recommendations-loader.js.map +0 -7
  265. package/loaders/reviews-io-review-aggregate-loader.js.map +0 -7
  266. package/loaders/reviews-io-reviews-loader.js.map +0 -7
  267. package/loaders/smile-earning-rules-loader.js.map +0 -7
  268. package/loaders/smile-rewards-loader.js.map +0 -7
  269. package/loaders/smile-vip-tiers-loader.js.map +0 -7
  270. package/loaders/statsig-experiment-loader.js.map +0 -7
  271. package/loaders/vendor-loader-keys.js.map +0 -7
  272. package/loaders/yotpo-review-aggregate-loader.js.map +0 -7
  273. package/loaders/yotpo-reviews-loader.js.map +0 -7
  274. package/money.js.map +0 -7
  275. package/next/config.js.map +0 -7
  276. package/next/image-loader.js.map +0 -7
  277. package/next/open-next.js.map +0 -7
  278. package/orders/order-status-schema.js.map +0 -7
  279. package/orders/order-status.js.map +0 -7
  280. package/providers/query-provider.js.map +0 -7
  281. package/providers/replo-provider.js.map +0 -7
  282. package/routing/evaluate.js.map +0 -7
  283. package/routing/rules.js.map +0 -7
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  function AnalyticsProvider(_props) {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "AnalyticsProvider",
@@ -23,4 +23,3 @@ export {
23
23
  useAnalytics,
24
24
  useAnalyticsOptional
25
25
  };
26
- //# sourceMappingURL=analytics-provider.js.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=analytics-sink.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../lib/tombstone";
2
2
  function getAnalyticsSinks(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "getAnalyticsSinks",
@@ -12,4 +12,3 @@ function getAnalyticsSinks(_args) {
12
12
  export {
13
13
  getAnalyticsSinks
14
14
  };
15
- //# sourceMappingURL=get-analytics-sinks.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../../lib/tombstone";
3
3
  function useProductViewedAnalytics(_props) {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "useProductViewedAnalytics",
@@ -9,4 +9,3 @@ function useProductViewedAnalytics(_props) {
9
9
  export {
10
10
  useProductViewedAnalytics
11
11
  };
12
- //# sourceMappingURL=use-product-viewed-analytics.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../lib/tombstone";
2
2
  async function ReploFirstPartyPixel() {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "ReploFirstPartyPixel",
@@ -12,4 +12,3 @@ async function ReploFirstPartyPixel() {
12
12
  export {
13
13
  ReploFirstPartyPixel
14
14
  };
15
- //# sourceMappingURL=replo-first-party-pixel.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  function ReploPixelScript(_args) {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "ReploPixelScript",
@@ -13,4 +13,3 @@ function ReploPixelScript(_args) {
13
13
  export {
14
14
  ReploPixelScript
15
15
  };
16
- //# sourceMappingURL=replo-pixel-script.js.map
@@ -1,6 +1,5 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  class GA4Sink {
3
- // oxlint-disable-next-line typescript/no-explicit-any -- legacy any, may or may not be needed
4
3
  send;
5
4
  constructor() {
6
5
  throw canopyTombstoneError({
@@ -106,4 +105,3 @@ class GA4Sink {
106
105
  export {
107
106
  GA4Sink
108
107
  };
109
- //# sourceMappingURL=ga4-sink.js.map
@@ -1,6 +1,5 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  class MetaSink {
3
- // oxlint-disable-next-line typescript/no-explicit-any -- legacy any, may or may not be needed
4
3
  track;
5
4
  constructor() {
6
5
  throw canopyTombstoneError({
@@ -106,4 +105,3 @@ class MetaSink {
106
105
  export {
107
106
  MetaSink
108
107
  };
109
- //# sourceMappingURL=meta-sink.js.map
@@ -1,6 +1,5 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  class PinterestSink {
3
- // oxlint-disable-next-line typescript/no-explicit-any -- legacy any, may or may not be needed
4
3
  track;
5
4
  constructor() {
6
5
  throw canopyTombstoneError({
@@ -106,4 +105,3 @@ class PinterestSink {
106
105
  export {
107
106
  PinterestSink
108
107
  };
109
- //# sourceMappingURL=pinterest-sink.js.map
@@ -1,6 +1,5 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  class RedditSink {
3
- // oxlint-disable-next-line typescript/no-explicit-any -- legacy any, may or may not be needed
4
3
  track;
5
4
  constructor() {
6
5
  throw canopyTombstoneError({
@@ -106,4 +105,3 @@ class RedditSink {
106
105
  export {
107
106
  RedditSink
108
107
  };
109
- //# sourceMappingURL=reddit-sink.js.map
@@ -1,6 +1,5 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  class ReploSink {
3
- // oxlint-disable-next-line typescript/no-explicit-any -- legacy any, may or may not be needed
4
3
  forward;
5
4
  constructor() {
6
5
  throw canopyTombstoneError({
@@ -106,4 +105,3 @@ class ReploSink {
106
105
  export {
107
106
  ReploSink
108
107
  };
109
- //# sourceMappingURL=replo-sink.js.map
@@ -1,6 +1,5 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  class SnapchatSink {
3
- // oxlint-disable-next-line typescript/no-explicit-any -- legacy any, may or may not be needed
4
3
  track;
5
4
  constructor() {
6
5
  throw canopyTombstoneError({
@@ -106,4 +105,3 @@ class SnapchatSink {
106
105
  export {
107
106
  SnapchatSink
108
107
  };
109
- //# sourceMappingURL=snapchat-sink.js.map
@@ -1,6 +1,5 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  class TikTokSink {
3
- // oxlint-disable-next-line typescript/no-explicit-any -- legacy any, may or may not be needed
4
3
  track;
5
4
  constructor() {
6
5
  throw canopyTombstoneError({
@@ -106,4 +105,3 @@ class TikTokSink {
106
105
  export {
107
106
  TikTokSink
108
107
  };
109
- //# sourceMappingURL=tiktok-sink.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  class WindowSink {
3
3
  constructor() {
4
4
  throw canopyTombstoneError({
@@ -10,7 +10,6 @@ class WindowSink {
10
10
  }
11
11
  });
12
12
  }
13
- // oxlint-disable-next-line typescript/no-explicit-any -- legacy any, may or may not be needed
14
13
  dispatch(_eventType, _payload) {
15
14
  throw canopyTombstoneError({
16
15
  symbol: "WindowSink",
@@ -21,7 +20,6 @@ class WindowSink {
21
20
  }
22
21
  });
23
22
  }
24
- // oxlint-disable-next-line typescript/no-explicit-any -- legacy any, may or may not be needed
25
23
  async pageView(_payload) {
26
24
  throw canopyTombstoneError({
27
25
  symbol: "WindowSink",
@@ -116,4 +114,3 @@ class WindowSink {
116
114
  export {
117
115
  WindowSink
118
116
  };
119
- //# sourceMappingURL=window-sink.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function createEventQueue(_checkPixelReady, _sendEvent, _pixelName) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "createEventQueue",
@@ -23,4 +23,3 @@ export {
23
23
  createEventQueue,
24
24
  createMethodQueue
25
25
  };
26
- //# sourceMappingURL=analytics-utils.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  class NavigationTracker {
3
3
  lastUrl;
4
4
  onNavigate;
@@ -48,4 +48,3 @@ class NavigationTracker {
48
48
  export {
49
49
  NavigationTracker
50
50
  };
51
- //# sourceMappingURL=navigation-tracker.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function gateShopifyOwnedFunnelEvents(_sink) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "gateShopifyOwnedFunnelEvents",
@@ -12,4 +12,3 @@ function gateShopifyOwnedFunnelEvents(_sink) {
12
12
  export {
13
13
  gateShopifyOwnedFunnelEvents
14
14
  };
15
- //# sourceMappingURL=shopify-funnel-gate.js.map
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  async function buyNowAction(_input) {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "buyNowAction",
@@ -9,4 +9,3 @@ async function buyNowAction(_input) {
9
9
  export {
10
10
  buyNowAction
11
11
  };
12
- //# sourceMappingURL=buy-now-action.js.map
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  async function getOrCreateCartAction() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "getOrCreateCartAction",
@@ -107,4 +107,3 @@ export {
107
107
  updateCartDiscountCodesAction,
108
108
  updateCartLineItemAction
109
109
  };
110
- //# sourceMappingURL=cart-actions.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../lib/tombstone";
2
2
  async function CartLoader(_args) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "CartLoader",
@@ -16,4 +16,3 @@ async function CartLoader(_args) {
16
16
  export {
17
17
  CartLoader
18
18
  };
19
- //# sourceMappingURL=cart-loader.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../lib/tombstone";
3
3
  function CartProvider(_props) {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "CartProvider",
@@ -23,4 +23,3 @@ export {
23
23
  useCart,
24
24
  useCartInternal
25
25
  };
26
- //# sourceMappingURL=cart-provider.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneObject } from "../lib/tombstone.js";
1
+ import { canopyTombstoneObject } from "../lib/tombstone";
2
2
  const cartSchema = canopyTombstoneObject({
3
3
  symbol: "cartSchema",
4
4
  subpath: "cart/cart-schema",
@@ -14,4 +14,3 @@ const cartSchema = canopyTombstoneObject({
14
14
  export {
15
15
  cartSchema
16
16
  };
17
- //# sourceMappingURL=cart-schema.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneObject } from "../lib/tombstone.js";
1
+ import { canopyTombstoneObject } from "../lib/tombstone";
2
2
  const REPLO_ATTRIBUTION_PROPERTY = canopyTombstoneObject({
3
3
  symbol: "REPLO_ATTRIBUTION_PROPERTY",
4
4
  subpath: "cart/cart-types"
@@ -6,4 +6,3 @@ const REPLO_ATTRIBUTION_PROPERTY = canopyTombstoneObject({
6
6
  export {
7
7
  REPLO_ATTRIBUTION_PROPERTY
8
8
  };
9
- //# sourceMappingURL=cart-types.js.map
@@ -2,4 +2,3 @@ const REPLO_CART_COOKIE_NAME = "replo_cart_v2";
2
2
  export {
3
3
  REPLO_CART_COOKIE_NAME
4
4
  };
5
- //# sourceMappingURL=cart-constants.js.map
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { canopyTombstoneError } from "../../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../../lib/tombstone";
3
3
  async function getCartGateway() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "getCartGateway",
@@ -17,4 +17,3 @@ async function getCartGateway() {
17
17
  export {
18
18
  getCartGateway
19
19
  };
20
- //# sourceMappingURL=cart-gateway.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  class CookieBasedCartGateway {
3
3
  constructor() {
4
4
  throw canopyTombstoneError({
@@ -102,4 +102,3 @@ class CookieBasedCartGateway {
102
102
  export {
103
103
  CookieBasedCartGateway
104
104
  };
105
- //# sourceMappingURL=cookie-cart-gateway.js.map
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { canopyTombstoneError } from "../../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../../lib/tombstone";
3
3
  async function createDefaultCartGateway() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "createDefaultCartGateway",
@@ -17,4 +17,3 @@ async function createDefaultCartGateway() {
17
17
  export {
18
18
  createDefaultCartGateway
19
19
  };
20
- //# sourceMappingURL=default-cart-gateway.js.map
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { canopyTombstoneError } from "../../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../../lib/tombstone";
3
3
  async function createResolverCartGateway() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "createResolverCartGateway",
@@ -17,4 +17,3 @@ async function createResolverCartGateway() {
17
17
  export {
18
18
  createResolverCartGateway
19
19
  };
20
- //# sourceMappingURL=resolver-cart-gateway.js.map
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { canopyTombstoneError } from "../../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../../lib/tombstone";
3
3
  async function createStripeCartGateway() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "createStripeCartGateway",
@@ -17,4 +17,3 @@ async function createStripeCartGateway() {
17
17
  export {
18
18
  createStripeCartGateway
19
19
  };
20
- //# sourceMappingURL=stripe-cart-gateway.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../../lib/tombstone";
3
3
  function findMerchandiseInQueryCache(_options) {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "findMerchandiseInQueryCache",
@@ -16,4 +16,3 @@ export {
16
16
  findMerchandiseInQueryCache,
17
17
  useAddToCart
18
18
  };
19
- //# sourceMappingURL=use-add-to-cart.js.map
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { canopyTombstoneError } from "../../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../../lib/tombstone";
3
3
  function useBuyNow() {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "useBuyNow",
@@ -9,4 +9,3 @@ function useBuyNow() {
9
9
  export {
10
10
  useBuyNow
11
11
  };
12
- //# sourceMappingURL=use-buy-now.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function calculateLineItemsSubtotal(_lineItems) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "calculateLineItemsSubtotal",
@@ -29,4 +29,3 @@ export {
29
29
  formatPrice,
30
30
  formatSellingPlanId
31
31
  };
32
- //# sourceMappingURL=cart-utils.js.map
@@ -1,5 +1,5 @@
1
1
  "use server";
2
- import { canopyTombstoneError } from "../../lib/tombstone.js";
2
+ import { canopyTombstoneError } from "../../lib/tombstone";
3
3
  async function saveCartToCookie(_cart, _cookieName) {
4
4
  throw canopyTombstoneError({
5
5
  symbol: "saveCartToCookie",
@@ -58,4 +58,3 @@ export {
58
58
  updateCartInCookie,
59
59
  updateCartLineItemWithPersistence
60
60
  };
61
- //# sourceMappingURL=cookie-cart-persistence.js.map
@@ -1,4 +1,4 @@
1
- import { canopyTombstoneError } from "../../lib/tombstone.js";
1
+ import { canopyTombstoneError } from "../../lib/tombstone";
2
2
  function getCartLineAttribute(_cartLine, _key) {
3
3
  throw canopyTombstoneError({
4
4
  symbol: "getCartLineAttribute",
@@ -43,4 +43,3 @@ export {
43
43
  getCartLineSpecialInfo,
44
44
  getCartLineSubscriptionInfo
45
45
  };
46
- //# sourceMappingURL=variant-to-cart-line.js.map
@@ -1,9 +1,7 @@
1
- // ../replo-utils/lib/string.ts
2
1
  function slugify(text) {
3
2
  return text.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
4
3
  }
5
4
 
6
- // ../replo-utils/lib/url.ts
7
5
  function buildUrlSearchParams(values) {
8
6
  const urlSearchParams = new URLSearchParams();
9
7
  for (const [key, value] of Object.entries(values)) {
@@ -152,7 +150,7 @@ function fileExtensionFromUrl(url) {
152
150
  const extension = lastSegment.includes(".") ? lastSegment.split(".").pop() ?? "" : "";
153
151
  return extension.toLowerCase() || "jpg";
154
152
  }
155
- function sanitizePublicHttpUrl(value) {
153
+ function sanitizePublicHttpUrl(value, { preserveProtocol = false } = {}) {
156
154
  const trimmed = value?.trim();
157
155
  if (!trimmed) {
158
156
  return null;
@@ -171,13 +169,18 @@ function sanitizePublicHttpUrl(value) {
171
169
  return null;
172
170
  }
173
171
  const host = url.hostname.toLowerCase();
174
- if (!host.includes(".") || host === "localhost" || host.endsWith(".local") || host.endsWith(".internal") || host.endsWith(".lan") || /^\d{1,3}(\.\d{1,3}){3}$/u.test(host) || host.startsWith("[")) {
172
+ if (!host.includes(".") || host === "localhost" || host.endsWith(".") || host.endsWith(".localhost") || host.endsWith(".local") || host.endsWith(".internal") || host.endsWith(".lan") || /^\d{1,3}(\.\d{1,3}){3}$/u.test(host) || host.startsWith("[")) {
175
173
  return null;
176
174
  }
177
- url.protocol = "https:";
175
+ if (!preserveProtocol) url.protocol = "https:";
178
176
  url.hash = "";
179
177
  return url.toString();
180
178
  }
179
+ function isPublicHttpsUrl(value) {
180
+ return sanitizePublicHttpUrl(value, { preserveProtocol: true })?.startsWith(
181
+ "https://"
182
+ ) ?? false;
183
+ }
181
184
  function safeHost(url) {
182
185
  try {
183
186
  return new URL(url).hostname.toLowerCase();
@@ -186,4 +189,4 @@ function safeHost(url) {
186
189
  }
187
190
  }
188
191
 
189
- export { buildUrlSearchParams, fileExtensionFromUrl, isPreviewInternalHostname, isPreviewOrigin, isValidHttpUrl, isValidRoutePath, normalizeCustomDomain, normalizeUrlIncludingProtocolRelative, normalizeUrlScheme, parseUrl, safeHost, sanitizePublicHttpUrl, truncateDomain };
192
+ export { buildUrlSearchParams, fileExtensionFromUrl, isPreviewInternalHostname, isPreviewOrigin, isPublicHttpsUrl, isValidHttpUrl, isValidRoutePath, normalizeCustomDomain, normalizeUrlIncludingProtocolRelative, normalizeUrlScheme, parseUrl, safeHost, sanitizePublicHttpUrl, truncateDomain };
@@ -1,8 +1,7 @@
1
- import { parseJsonOrNull } from './chunk-VKO7P3ED.mjs';
1
+ import { parseJsonOrNull } from './chunk-HGXQNZW7.mjs';
2
2
  import { exhaustiveSwitch } from './chunk-H36NDYLG.mjs';
3
3
  import { z } from 'zod';
4
4
 
5
- // ../replo-utils/lib/parse.ts
6
5
  function parseSchemaOrNull(value, schema) {
7
6
  const parseResult = schema.safeParse(value);
8
7
  return parseResult.success ? parseResult.data : null;
@@ -197,9 +196,6 @@ var selectModeSelectionSchema = z.discriminatedUnion("type", [
197
196
  z.object({
198
197
  type: z.literal("drag"),
199
198
  dragRect: selectModeBoundingRectSchema,
200
- // Bounding boxes of the selectables the drag currently intersects,
201
- // rendered as lighter highlights so the user can see what the drag
202
- // will capture before they release.
203
199
  selectionRects: z.array(selectModeSelectionRectSchema)
204
200
  })
205
201
  ]).describe("SelectModeSelection");
@@ -1,6 +1,5 @@
1
1
  import { Symbol_default, isArray_default, isObjectLike_default, baseGetTag_default } from './chunk-FNTGY7I5.mjs';
2
2
 
3
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js
4
3
  function arrayMap(array, iteratee) {
5
4
  var index = -1, length = array == null ? 0 : array.length, result = Array(length);
6
5
  while (++index < length) {
@@ -10,7 +9,6 @@ function arrayMap(array, iteratee) {
10
9
  }
11
10
  var arrayMap_default = arrayMap;
12
11
 
13
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
14
12
  var symbolTag = "[object Symbol]";
15
13
  function isSymbol(value) {
16
14
  return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag;
@@ -33,13 +31,11 @@ function baseToString(value) {
33
31
  }
34
32
  var baseToString_default = baseToString;
35
33
 
36
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.js
37
34
  function toString(value) {
38
35
  return value == null ? "" : baseToString_default(value);
39
36
  }
40
37
  var toString_default = toString;
41
38
 
42
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSlice.js
43
39
  function baseSlice(array, start, end) {
44
40
  var index = -1, length = array.length;
45
41
  if (start < 0) {
@@ -59,7 +55,6 @@ function baseSlice(array, start, end) {
59
55
  }
60
56
  var baseSlice_default = baseSlice;
61
57
 
62
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castSlice.js
63
58
  function castSlice(array, start, end) {
64
59
  var length = array.length;
65
60
  end = end === void 0 ? length : end;
@@ -67,7 +62,6 @@ function castSlice(array, start, end) {
67
62
  }
68
63
  var castSlice_default = castSlice;
69
64
 
70
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicode.js
71
65
  var rsAstralRange = "\\ud800-\\udfff";
72
66
  var rsComboMarksRange = "\\u0300-\\u036f";
73
67
  var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
@@ -81,13 +75,11 @@ function hasUnicode(string) {
81
75
  }
82
76
  var hasUnicode_default = hasUnicode;
83
77
 
84
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiToArray.js
85
78
  function asciiToArray(string) {
86
79
  return string.split("");
87
80
  }
88
81
  var asciiToArray_default = asciiToArray;
89
82
 
90
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeToArray.js
91
83
  var rsAstralRange2 = "\\ud800-\\udfff";
92
84
  var rsComboMarksRange2 = "\\u0300-\\u036f";
93
85
  var reComboHalfMarksRange2 = "\\ufe20-\\ufe2f";
@@ -113,13 +105,11 @@ function unicodeToArray(string) {
113
105
  }
114
106
  var unicodeToArray_default = unicodeToArray;
115
107
 
116
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToArray.js
117
108
  function stringToArray(string) {
118
109
  return hasUnicode_default(string) ? unicodeToArray_default(string) : asciiToArray_default(string);
119
110
  }
120
111
  var stringToArray_default = stringToArray;
121
112
 
122
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCaseFirst.js
123
113
  function createCaseFirst(methodName) {
124
114
  return function(string) {
125
115
  string = toString_default(string);
@@ -131,7 +121,6 @@ function createCaseFirst(methodName) {
131
121
  }
132
122
  var createCaseFirst_default = createCaseFirst;
133
123
 
134
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/upperFirst.js
135
124
  var upperFirst = createCaseFirst_default("toUpperCase");
136
125
  var upperFirst_default = upperFirst;
137
126
 
@@ -1,21 +1,16 @@
1
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
2
1
  var isArray = Array.isArray;
3
2
  var isArray_default = isArray;
4
3
 
5
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
6
4
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
7
5
  var freeGlobal_default = freeGlobal;
8
6
 
9
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js
10
7
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
11
8
  var root = freeGlobal_default || freeSelf || Function("return this")();
12
9
  var root_default = root;
13
10
 
14
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js
15
11
  var Symbol = root_default.Symbol;
16
12
  var Symbol_default = Symbol;
17
13
 
18
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js
19
14
  var objectProto = Object.prototype;
20
15
  var hasOwnProperty = objectProto.hasOwnProperty;
21
16
  var nativeObjectToString = objectProto.toString;
@@ -39,7 +34,6 @@ function getRawTag(value) {
39
34
  }
40
35
  var getRawTag_default = getRawTag;
41
36
 
42
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
43
37
  var objectProto2 = Object.prototype;
44
38
  var nativeObjectToString2 = objectProto2.toString;
45
39
  function objectToString(value) {
@@ -47,7 +41,6 @@ function objectToString(value) {
47
41
  }
48
42
  var objectToString_default = objectToString;
49
43
 
50
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
51
44
  var nullTag = "[object Null]";
52
45
  var undefinedTag = "[object Undefined]";
53
46
  var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
@@ -59,7 +52,6 @@ function baseGetTag(value) {
59
52
  }
60
53
  var baseGetTag_default = baseGetTag;
61
54
 
62
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
63
55
  function isObjectLike(value) {
64
56
  return value != null && typeof value == "object";
65
57
  }