@replohq/canopy-sdk 3.0.4 → 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.
- package/_vendor/replo-utils/lib/crypto.d.ts +2 -8
- package/_vendor/replo-utils/lib/fonts.d.ts +8 -0
- package/_vendor/replo-utils/lib/fonts.mjs +12 -3
- package/_vendor/replo-utils/lib/geometry.mjs +0 -1
- package/_vendor/replo-utils/lib/json.mjs +1 -1
- package/_vendor/replo-utils/lib/posthogReplay.mjs +0 -1
- package/_vendor/replo-utils/lib/string.d.ts +0 -2
- package/_vendor/replo-utils/lib/url.d.ts +6 -1
- package/_vendor/replo-utils/lib/url.mjs +1 -1
- package/_vendor/schemas/designLibrary.mjs +0 -1
- package/_vendor/schemas/errors.d.ts +2 -3
- package/_vendor/schemas/generated/errors.d.ts +3 -0
- package/_vendor/schemas/generated/selectModeIframeRpc.d.ts +10 -2
- package/_vendor/schemas/iframeRpcChannel.d.ts +1 -1
- package/_vendor/schemas/iframeRpcChannel.mjs +1 -7
- package/_vendor/schemas/loaderKeys.mjs +0 -2
- package/_vendor/schemas/money.d.ts +1 -1
- package/_vendor/schemas/money.mjs +1 -7
- package/_vendor/schemas/pageAnnotations.mjs +0 -2
- package/_vendor/schemas/routing/rules.mjs +2 -2
- package/_vendor/schemas/selectMode.d.ts +0 -4
- package/_vendor/schemas/selectMode.mjs +2 -2
- package/_vendor/schemas/selectModeIframeRpc.d.ts +132 -4
- package/_vendor/schemas/selectModeIframeRpc.mjs +17 -14
- package/analytics/analytics-provider.js +0 -1
- package/analytics/analytics-sink.js +0 -1
- package/analytics/get-analytics-sinks.js +0 -1
- package/analytics/hooks/use-product-viewed-analytics.js +0 -1
- package/analytics/replo-first-party-pixel.js +0 -1
- package/analytics/replo-pixel-script.js +0 -1
- package/analytics/sinks/ga4-sink.js +0 -2
- package/analytics/sinks/meta-sink.js +0 -2
- package/analytics/sinks/pinterest-sink.js +0 -2
- package/analytics/sinks/reddit-sink.js +0 -2
- package/analytics/sinks/replo-sink.js +0 -2
- package/analytics/sinks/snapchat-sink.js +0 -2
- package/analytics/sinks/tiktok-sink.js +0 -2
- package/analytics/sinks/window-sink.js +0 -3
- package/analytics/utils/analytics-utils.js +0 -1
- package/analytics/utils/navigation-tracker.js +0 -1
- package/analytics/utils/shopify-funnel-gate.js +0 -1
- package/cart/buy-now-action.js +0 -1
- package/cart/cart-actions.js +0 -1
- package/cart/cart-loader.js +0 -1
- package/cart/cart-provider.js +0 -1
- package/cart/cart-schema.js +0 -1
- package/cart/cart-types.js +0 -1
- package/cart/gateways/cart-constants.js +0 -1
- package/cart/gateways/cart-gateway.js +0 -1
- package/cart/gateways/cookie-cart-gateway.js +0 -1
- package/cart/gateways/default-cart-gateway.js +0 -1
- package/cart/gateways/resolver-cart-gateway.js +0 -1
- package/cart/gateways/stripe-cart-gateway.js +0 -1
- package/cart/hooks/use-add-to-cart.js +0 -1
- package/cart/hooks/use-buy-now.js +0 -1
- package/cart/utils/cart-utils.js +0 -1
- package/cart/utils/cookie-cart-persistence.js +0 -1
- package/cart/utils/variant-to-cart-line.js +0 -1
- package/{chunk-IQVZY6EV.mjs → chunk-3A2F6BOM.mjs} +9 -6
- package/{chunk-2BNHFQZH.mjs → chunk-544ZM65A.mjs} +1 -5
- package/chunk-AKZNN7F2.mjs +0 -11
- package/chunk-FNTGY7I5.mjs +0 -8
- package/chunk-H36NDYLG.mjs +5 -127
- package/{chunk-VKO7P3ED.mjs → chunk-HGXQNZW7.mjs} +2 -5
- package/chunk-ILGEM42C.mjs +0 -3
- package/{chunk-ZZPQ3E7S.mjs → chunk-QPGBIWJK.mjs} +1 -14
- package/chunk-UJCSKKID.mjs +0 -4
- package/chunk-VPEVERWE.mjs +0 -1
- package/consent/consent-action.js +0 -1
- package/consent/consent-actions.js +0 -1
- package/consent/consent-store.js +0 -1
- package/consent/cookie.js +0 -1
- package/consent/replo-scripts.js +0 -1
- package/consent/script-registration-store.js +0 -1
- package/consent/script-snippets.js +0 -1
- package/consent/types.js +0 -1
- package/consent/window-api.js +0 -1
- package/editor/ClientErrorBoundary.js +0 -1
- package/editor/DocumentReadyBeacon.js +0 -1
- package/editor/LinkInterceptor.js +0 -1
- package/editor/NextErrorReporter.js +0 -1
- package/editor/annotations/AnnotationLayerMount.js +0 -1
- package/editor/annotations/annotationController.js +0 -1
- package/editor/annotations/bridgeGate.js +0 -1
- package/editor/design-library-preview/DesignLibraryPreview.js +0 -1
- package/editor/posthog-relay.js +0 -1
- package/editor/select-mode/EditorSelection.js +0 -1
- package/editor/select-mode/annotationFrames.js +0 -1
- package/editor/select-mode/descriptor/elementDescriptor.js +0 -1
- package/editor/select-mode/descriptor/styleExtraction.js +0 -1
- package/editor/select-mode/displayModeStore.js +0 -1
- package/editor/select-mode/fast-refresh-relay.js +0 -1
- package/editor/select-mode/fiber.js +0 -1
- package/editor/select-mode/hooks/useCrosshairCursor.js +0 -1
- package/editor/select-mode/hooks/useEditModeStateMachine.js +0 -1
- package/editor/select-mode/hooks/useOptimisticOverrides.js +0 -1
- package/editor/select-mode/hooks/useParentMessaging.js +0 -1
- package/editor/select-mode/hooks/useSelectModeController.js +0 -1
- package/editor/select-mode/hooks/useSelectionHover.js +0 -1
- package/editor/select-mode/hooks/useSelectionInteractions.js +0 -1
- package/editor/select-mode/hooks/useSelectionScrollSync.js +0 -1
- package/editor/select-mode/hooks/useSiblingResolution.js +0 -1
- package/editor/select-mode/iframeRpcChannel.js +0 -1
- package/editor/select-mode/inlineTextMarks.js +0 -1
- package/editor/select-mode/interactions/selectionGeometry.js +0 -1
- package/editor/select-mode/selectModeSession.js +0 -1
- package/editor/select-mode/selectionFrame.js +0 -1
- package/editor/select-mode/symbolicate.js +0 -1
- package/editor/select-mode/tiptapInlineEditor.js +0 -1
- package/env.js +0 -1
- package/gateways/canopy-api.js +0 -4
- package/hooks/use-client-value.js +0 -1
- package/hooks/use-formatted-price.js +0 -1
- package/lib/canopy-error.js +0 -1
- package/lib/get-query-client.js +0 -1
- package/lib/integration-utils.js +0 -1
- package/lib/shopify-utils.js +0 -1
- package/lib/tombstone.js +0 -1
- package/lib/url-utils.js +0 -1
- package/loaders/collection-loader.js +0 -1
- package/loaders/collection-products-loader.js +0 -1
- package/loaders/contentful-entries-loader.js +0 -1
- package/loaders/contentful-entry-loader.js +0 -1
- package/loaders/invoke-loader-action.js +0 -1
- package/loaders/invoke-loader-server.js +0 -1
- package/loaders/invoke-loader.js +0 -1
- package/loaders/levanta-product-loader.js +0 -1
- package/loaders/loader-error-boundary.js +0 -1
- package/loaders/loader-keys.js +0 -1
- package/loaders/loader-schemas.js +0 -4
- package/loaders/metaobject-loader.js +0 -1
- package/loaders/metaobjects-loader.js +0 -1
- package/loaders/okendo-review-aggregate-loader.js +0 -1
- package/loaders/okendo-reviews-loader.js +0 -1
- package/loaders/prefetch-loaders.js +0 -1
- package/loaders/preview-placeholder.js +0 -1
- package/loaders/product-loader-args.js +0 -1
- package/loaders/product-loader.js +0 -1
- package/loaders/rebuy-recommendations-loader.js +0 -1
- package/loaders/reviews-io-review-aggregate-loader.js +0 -1
- package/loaders/reviews-io-reviews-loader.js +0 -1
- package/loaders/smile-earning-rules-loader.js +0 -1
- package/loaders/smile-rewards-loader.js +0 -1
- package/loaders/smile-vip-tiers-loader.js +0 -1
- package/loaders/statsig-experiment-loader.js +0 -1
- package/loaders/vendor-loader-keys.js +0 -1
- package/loaders/yotpo-review-aggregate-loader.js +0 -1
- package/loaders/yotpo-reviews-loader.js +0 -1
- package/money.js +0 -1
- package/next/config.js +0 -1
- package/next/image-loader.js +0 -1
- package/next/open-next.js +0 -1
- package/orders/order-status-schema.js +0 -4
- package/orders/order-status.js +0 -1
- package/package.json +1 -1
- package/providers/query-provider.js +0 -1
- package/providers/replo-provider.js +0 -1
- package/routing/evaluate.js +0 -1
- package/routing/rules.js +0 -1
- package/analytics/analytics-provider.js.map +0 -7
- package/analytics/analytics-sink.js.map +0 -7
- package/analytics/get-analytics-sinks.js.map +0 -7
- package/analytics/hooks/use-product-viewed-analytics.js.map +0 -7
- package/analytics/replo-first-party-pixel.js.map +0 -7
- package/analytics/replo-pixel-script.js.map +0 -7
- package/analytics/sinks/ga4-sink.js.map +0 -7
- package/analytics/sinks/meta-sink.js.map +0 -7
- package/analytics/sinks/pinterest-sink.js.map +0 -7
- package/analytics/sinks/reddit-sink.js.map +0 -7
- package/analytics/sinks/replo-sink.js.map +0 -7
- package/analytics/sinks/snapchat-sink.js.map +0 -7
- package/analytics/sinks/tiktok-sink.js.map +0 -7
- package/analytics/sinks/window-sink.js.map +0 -7
- package/analytics/utils/analytics-utils.js.map +0 -7
- package/analytics/utils/navigation-tracker.js.map +0 -7
- package/analytics/utils/shopify-funnel-gate.js.map +0 -7
- package/cart/buy-now-action.js.map +0 -7
- package/cart/cart-actions.js.map +0 -7
- package/cart/cart-loader.js.map +0 -7
- package/cart/cart-provider.js.map +0 -7
- package/cart/cart-schema.js.map +0 -7
- package/cart/cart-types.js.map +0 -7
- package/cart/gateways/cart-constants.js.map +0 -7
- package/cart/gateways/cart-gateway.js.map +0 -7
- package/cart/gateways/cookie-cart-gateway.js.map +0 -7
- package/cart/gateways/default-cart-gateway.js.map +0 -7
- package/cart/gateways/resolver-cart-gateway.js.map +0 -7
- package/cart/gateways/stripe-cart-gateway.js.map +0 -7
- package/cart/hooks/use-add-to-cart.js.map +0 -7
- package/cart/hooks/use-buy-now.js.map +0 -7
- package/cart/utils/cart-utils.js.map +0 -7
- package/cart/utils/cookie-cart-persistence.js.map +0 -7
- package/cart/utils/variant-to-cart-line.js.map +0 -7
- package/consent/consent-action.js.map +0 -7
- package/consent/consent-actions.js.map +0 -7
- package/consent/consent-store.js.map +0 -7
- package/consent/cookie.js.map +0 -7
- package/consent/replo-scripts.js.map +0 -7
- package/consent/script-registration-store.js.map +0 -7
- package/consent/script-snippets.js.map +0 -7
- package/consent/types.js.map +0 -7
- package/consent/window-api.js.map +0 -7
- package/editor/ClientErrorBoundary.js.map +0 -7
- package/editor/DocumentReadyBeacon.js.map +0 -7
- package/editor/LinkInterceptor.js.map +0 -7
- package/editor/NextErrorReporter.js.map +0 -7
- package/editor/annotations/AnnotationLayerMount.js.map +0 -7
- package/editor/annotations/annotationController.js.map +0 -7
- package/editor/annotations/bridgeGate.js.map +0 -7
- package/editor/design-library-preview/DesignLibraryPreview.js.map +0 -7
- package/editor/posthog-relay.js.map +0 -7
- package/editor/select-mode/EditorSelection.js.map +0 -7
- package/editor/select-mode/annotationFrames.js.map +0 -7
- package/editor/select-mode/descriptor/elementDescriptor.js.map +0 -7
- package/editor/select-mode/descriptor/styleExtraction.js.map +0 -7
- package/editor/select-mode/displayModeStore.js.map +0 -7
- package/editor/select-mode/fast-refresh-relay.js.map +0 -7
- package/editor/select-mode/fiber.js.map +0 -7
- package/editor/select-mode/hooks/useCrosshairCursor.js.map +0 -7
- package/editor/select-mode/hooks/useEditModeStateMachine.js.map +0 -7
- package/editor/select-mode/hooks/useOptimisticOverrides.js.map +0 -7
- package/editor/select-mode/hooks/useParentMessaging.js.map +0 -7
- package/editor/select-mode/hooks/useSelectModeController.js.map +0 -7
- package/editor/select-mode/hooks/useSelectionHover.js.map +0 -7
- package/editor/select-mode/hooks/useSelectionInteractions.js.map +0 -7
- package/editor/select-mode/hooks/useSelectionScrollSync.js.map +0 -7
- package/editor/select-mode/hooks/useSiblingResolution.js.map +0 -7
- package/editor/select-mode/iframeRpcChannel.js.map +0 -7
- package/editor/select-mode/inlineTextMarks.js.map +0 -7
- package/editor/select-mode/interactions/selectionGeometry.js.map +0 -7
- package/editor/select-mode/selectModeSession.js.map +0 -7
- package/editor/select-mode/selectionFrame.js.map +0 -7
- package/editor/select-mode/symbolicate.js.map +0 -7
- package/editor/select-mode/tiptapInlineEditor.js.map +0 -7
- package/env.js.map +0 -7
- package/gateways/canopy-api.js.map +0 -7
- package/hooks/use-client-value.js.map +0 -7
- package/hooks/use-formatted-price.js.map +0 -7
- package/lib/canopy-error.js.map +0 -7
- package/lib/get-query-client.js.map +0 -7
- package/lib/integration-utils.js.map +0 -7
- package/lib/shopify-utils.js.map +0 -7
- package/lib/tombstone.js.map +0 -7
- package/lib/url-utils.js.map +0 -7
- package/loaders/collection-loader.js.map +0 -7
- package/loaders/collection-products-loader.js.map +0 -7
- package/loaders/contentful-entries-loader.js.map +0 -7
- package/loaders/contentful-entry-loader.js.map +0 -7
- package/loaders/invoke-loader-action.js.map +0 -7
- package/loaders/invoke-loader-server.js.map +0 -7
- package/loaders/invoke-loader.js.map +0 -7
- package/loaders/levanta-product-loader.js.map +0 -7
- package/loaders/loader-error-boundary.js.map +0 -7
- package/loaders/loader-keys.js.map +0 -7
- package/loaders/loader-schemas.js.map +0 -7
- package/loaders/metaobject-loader.js.map +0 -7
- package/loaders/metaobjects-loader.js.map +0 -7
- package/loaders/okendo-review-aggregate-loader.js.map +0 -7
- package/loaders/okendo-reviews-loader.js.map +0 -7
- package/loaders/prefetch-loaders.js.map +0 -7
- package/loaders/preview-placeholder.js.map +0 -7
- package/loaders/product-loader-args.js.map +0 -7
- package/loaders/product-loader.js.map +0 -7
- package/loaders/rebuy-recommendations-loader.js.map +0 -7
- package/loaders/reviews-io-review-aggregate-loader.js.map +0 -7
- package/loaders/reviews-io-reviews-loader.js.map +0 -7
- package/loaders/smile-earning-rules-loader.js.map +0 -7
- package/loaders/smile-rewards-loader.js.map +0 -7
- package/loaders/smile-vip-tiers-loader.js.map +0 -7
- package/loaders/statsig-experiment-loader.js.map +0 -7
- package/loaders/vendor-loader-keys.js.map +0 -7
- package/loaders/yotpo-review-aggregate-loader.js.map +0 -7
- package/loaders/yotpo-reviews-loader.js.map +0 -7
- package/money.js.map +0 -7
- package/next/config.js.map +0 -7
- package/next/image-loader.js.map +0 -7
- package/next/open-next.js.map +0 -7
- package/orders/order-status-schema.js.map +0 -7
- package/orders/order-status.js.map +0 -7
- package/providers/query-provider.js.map +0 -7
- package/providers/replo-provider.js.map +0 -7
- package/routing/evaluate.js.map +0 -7
- package/routing/rules.js.map +0 -7
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../cart/utils/cookie-cart-persistence.ts"],
|
|
4
|
-
"sourcesContent": ["\"use server\";\n\n/* eslint-disable replo/no-void-return-type -- Tombstones preserve canopy 2.3.0's explicit public return types. */\nimport type {\n AddToCartPayload,\n Cart,\n CartLine,\n CartLinePayload,\n RemoveFromCartPayload,\n UpdateCartLineItemPayload,\n} from \"../cart-types\";\n\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\nexport type LineMergeFn = (\n existingLines: CartLine[],\n newLine: CartLinePayload,\n) => number;\n\ninterface CreateCartOptions {\n cookieName: string;\n lines?: CartLinePayload[];\n lineIdGenerator: () => string;\n cartIdGenerator: () => string;\n}\n\ninterface AddToCartOptions {\n cookieName: string;\n mergeFn: LineMergeFn;\n lineIdGenerator: () => string;\n}\n\n/** @deprecated Use saveCartToCookie from @replohq/sdk/cart/utils/cookie-cart-persistence. */\nexport async function saveCartToCookie(\n _cart: Cart,\n _cookieName: string,\n): Promise<void> {\n throw canopyTombstoneError({\n symbol: \"saveCartToCookie\",\n subpath: \"cart/utils/cookie-cart-persistence\",\n });\n}\n\n/** @deprecated Use loadCartFromCookie from @replohq/sdk/cart/utils/cookie-cart-persistence. */\nexport async function loadCartFromCookie(\n _cookieName: string,\n): Promise<Cart | null> {\n throw canopyTombstoneError({\n symbol: \"loadCartFromCookie\",\n subpath: \"cart/utils/cookie-cart-persistence\",\n });\n}\n\n/** @deprecated Use clearCartCookie from @replohq/sdk/cart/utils/cookie-cart-persistence. */\nexport async function clearCartCookie(_cookieName: string): Promise<void> {\n throw canopyTombstoneError({\n symbol: \"clearCartCookie\",\n subpath: \"cart/utils/cookie-cart-persistence\",\n });\n}\n\n/** @deprecated Use updateCartInCookie from @replohq/sdk/cart/utils/cookie-cart-persistence. */\nexport async function updateCartInCookie(\n _cartId: string,\n _cookieName: string,\n _updater: (cart: Cart) => Cart,\n): Promise<Cart | null> {\n throw canopyTombstoneError({\n symbol: \"updateCartInCookie\",\n subpath: \"cart/utils/cookie-cart-persistence\",\n });\n}\n\n/** @deprecated Use createCartWithPersistence from @replohq/sdk/cart/utils/cookie-cart-persistence. */\nexport async function createCartWithPersistence(\n _options: CreateCartOptions,\n): Promise<Cart | null> {\n throw canopyTombstoneError({\n symbol: \"createCartWithPersistence\",\n subpath: \"cart/utils/cookie-cart-persistence\",\n });\n}\n\n/** @deprecated Use addToCartWithPersistence from @replohq/sdk/cart/utils/cookie-cart-persistence. */\nexport async function addToCartWithPersistence(\n _payload: AddToCartPayload,\n _options: AddToCartOptions,\n): Promise<Cart | null> {\n throw canopyTombstoneError({\n symbol: \"addToCartWithPersistence\",\n subpath: \"cart/utils/cookie-cart-persistence\",\n });\n}\n\n/** @deprecated Use updateCartLineItemWithPersistence from @replohq/sdk/cart/utils/cookie-cart-persistence. */\nexport async function updateCartLineItemWithPersistence(\n _payload: UpdateCartLineItemPayload,\n _cookieName: string,\n): Promise<Cart | null> {\n throw canopyTombstoneError({\n symbol: \"updateCartLineItemWithPersistence\",\n subpath: \"cart/utils/cookie-cart-persistence\",\n });\n}\n\n/** @deprecated Use removeCartLineItemsWithPersistence from @replohq/sdk/cart/utils/cookie-cart-persistence. */\nexport async function removeCartLineItemsWithPersistence(\n _payload: RemoveFromCartPayload,\n _cookieName: string,\n): Promise<Cart | null> {\n throw canopyTombstoneError({\n symbol: \"removeCartLineItemsWithPersistence\",\n subpath: \"cart/utils/cookie-cart-persistence\",\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAYA,SAAS,4BAA4B;AAqBrC,eAAsB,iBACpB,OACA,aACe;AACf,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGA,eAAsB,mBACpB,aACsB;AACtB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGA,eAAsB,gBAAgB,aAAoC;AACxE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGA,eAAsB,mBACpB,SACA,aACA,UACsB;AACtB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGA,eAAsB,0BACpB,UACsB;AACtB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGA,eAAsB,yBACpB,UACA,UACsB;AACtB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGA,eAAsB,kCACpB,UACA,aACsB;AACtB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGA,eAAsB,mCACpB,UACA,aACsB;AACtB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../cart/utils/variant-to-cart-line.ts"],
|
|
4
|
-
"sourcesContent": ["import type {\n CartLine,\n CartLineMerchandise,\n SellingPlanAllocation,\n} from \"../cart-types\";\n\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\n/** @deprecated Use getCartLineAttribute from @replohq/sdk/cart/utils/variant-to-cart-line. */\nexport function getCartLineAttribute(\n _cartLine: CartLine,\n _key: string,\n): string | number | boolean | undefined {\n throw canopyTombstoneError({\n symbol: \"getCartLineAttribute\",\n subpath: \"cart/utils/variant-to-cart-line\",\n });\n}\n\n/** @deprecated Use getCartLinePricing from @replohq/sdk/cart/utils/variant-to-cart-line. */\nexport function getCartLinePricing(_cartLine: CartLine): {\n compareAtPrice: number;\n discountPercentage: number;\n hasDiscount: boolean;\n sellingPlanAdjustedPrice: number;\n finalPrice: number;\n} {\n throw canopyTombstoneError({\n symbol: \"getCartLinePricing\",\n subpath: \"cart/utils/variant-to-cart-line\",\n });\n}\n\n/** @deprecated Use getCartLineBundleInfo from @replohq/sdk/cart/utils/variant-to-cart-line. */\nexport function getCartLineBundleInfo(_cartLine: CartLine): {\n bundleId: string;\n bundleDiscount: number;\n isBundleItem: boolean;\n} {\n throw canopyTombstoneError({\n symbol: \"getCartLineBundleInfo\",\n subpath: \"cart/utils/variant-to-cart-line\",\n });\n}\n\n/** @deprecated Use getCartLineSpecialInfo from @replohq/sdk/cart/utils/variant-to-cart-line. */\nexport function getCartLineSpecialInfo(_cartLine: CartLine): {\n isSpecialItem: boolean;\n specialInstructions: string[];\n} {\n throw canopyTombstoneError({\n symbol: \"getCartLineSpecialInfo\",\n subpath: \"cart/utils/variant-to-cart-line\",\n });\n}\n\n/** @deprecated Use getCartLineSubscriptionInfo from @replohq/sdk/cart/utils/variant-to-cart-line. */\nexport function getCartLineSubscriptionInfo(_cartLine: CartLine):\n | {\n isSubscription: boolean;\n frequency: string;\n discount: number;\n sellingPlan: {\n id: string;\n name: string;\n description: string | null;\n };\n }\n | {\n isSubscription: boolean;\n frequency: null;\n discount: number;\n sellingPlan: null;\n } {\n throw canopyTombstoneError({\n symbol: \"getCartLineSubscriptionInfo\",\n subpath: \"cart/utils/variant-to-cart-line\",\n });\n}\n\n/** @deprecated Use createOptimisticSellingPlanAllocation from @replohq/sdk/cart/utils/variant-to-cart-line. */\nexport function createOptimisticSellingPlanAllocation(_options: {\n merchandise: CartLineMerchandise;\n sellingPlanId: string | null;\n currencyCode?: string;\n}): SellingPlanAllocation | null {\n throw canopyTombstoneError({\n symbol: \"createOptimisticSellingPlanAllocation\",\n subpath: \"cart/utils/variant-to-cart-line\",\n });\n}\n"],
|
|
5
|
-
"mappings": "AAMA,SAAS,4BAA4B;AAG9B,SAAS,qBACd,WACA,MACuC;AACvC,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGO,SAAS,mBAAmB,WAMjC;AACA,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGO,SAAS,sBAAsB,WAIpC;AACA,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGO,SAAS,uBAAuB,WAGrC;AACA,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGO,SAAS,4BAA4B,WAgBtC;AACJ,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGO,SAAS,sCAAsC,UAIrB;AAC/B,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../consent/consent-action.ts"],
|
|
4
|
-
"sourcesContent": ["import type { ConsentAction } from \"schemas/generated/consent\";\nimport type { ConsentCategories } from \"./cookie\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; deriveConsentAction has no direct replacement. */\nexport function deriveConsentAction(_args: {\n previous: {\n decidedAt: number | null;\n categories: ConsentCategories;\n };\n next: ConsentCategories;\n}): ConsentAction {\n throw canopyTombstoneError({\n symbol: \"deriveConsentAction\",\n subpath: \"consent/consent-action\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAGA,SAAS,4BAA4B;AAG9B,SAAS,oBAAoB,OAMlB;AAChB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,IAC1E;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../consent/consent-actions.ts"],
|
|
4
|
-
"sourcesContent": ["\"use server\";\n\n/* oxlint-disable replo/no-void-return-type -- Tombstone declarations preserve exact return types for consumer compatibility. */\nimport type { ConsentAction, ConsentMode } from \"schemas/generated/consent\";\nimport type { ConsentCategories } from \"./cookie\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; recordConsentAction has no direct replacement. */\nexport async function recordConsentAction(_decision: {\n consentId: string;\n action: ConsentAction;\n /** Full resulting consent state (all categories), not a diff. */\n categories: ConsentCategories;\n consentMode: ConsentMode;\n decidedAt: number;\n /**\n * Site-owned policy version declared by the consent caller (via\n * `useConsent({ version })`); the site bumps it when the banner copy or\n * category set changes.\n */\n policyVersion: number;\n}): Promise<void> {\n throw canopyTombstoneError({\n symbol: \"recordConsentAction\",\n subpath: \"consent/consent-actions\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAMA,SAAS,4BAA4B;AAGrC,eAAsB,oBAAoB,WAaxB;AAChB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,IAC1E;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../consent/consent-store.ts"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport type { ConsentCategory, ConsentMode } from \"schemas/generated/consent\";\nimport type { ConsentCategories } from \"./cookie\";\n\nimport { canopyTombstoneError, canopyTombstoneObject } from \"../lib/tombstone\";\n\nexport interface ConsentState {\n mode: ConsentMode;\n categories: ConsentCategories;\n decidedAt: number | null;\n consentId?: string;\n}\n\ntype ConsentStore = {\n getSnapshot(): ConsentState;\n getServerSnapshot(): ConsentState;\n subscribe(listener: () => void): () => void;\n accept(options?: { policyVersion?: number }): void;\n reject(options?: { policyVersion?: number }): void;\n updateCategories(options: {\n next: Partial<ConsentCategories>;\n policyVersion?: number;\n }): void;\n reset(): void;\n};\n\n/** @deprecated Use consentStore from @replohq/sdk/consent/consent-store. */\nexport const consentStore: ConsentStore = canopyTombstoneObject<ConsentStore>({\n symbol: \"consentStore\",\n subpath: \"consent/consent-store\",\n});\n\nexport interface UseConsentOptions {\n version?: number;\n}\n\nexport interface UseConsentResult extends ConsentState {\n accept(): void;\n reject(): void;\n updateCategories(next: Partial<ConsentCategories>): void;\n}\n\n/** @deprecated Use useConsent from @replohq/sdk/consent/consent-store. */\nexport function useConsent(_options: UseConsentOptions = {}): UseConsentResult {\n throw canopyTombstoneError({\n symbol: \"useConsent\",\n subpath: \"consent/consent-store\",\n });\n}\n\n/** @deprecated Use isConsentAllowed from @replohq/sdk/consent/consent-store. */\nexport function isConsentAllowed(_options: {\n state: ConsentState;\n requiredConsent: ConsentCategory[];\n}): boolean {\n throw canopyTombstoneError({\n symbol: \"isConsentAllowed\",\n subpath: \"consent/consent-store\",\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAKA,SAAS,sBAAsB,6BAA6B;AAuBrD,MAAM,eAA6B,sBAAoC;AAAA,EAC5E,QAAQ;AAAA,EACR,SAAS;AACX,CAAC;AAaM,SAAS,WAAW,WAA8B,CAAC,GAAqB;AAC7E,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGO,SAAS,iBAAiB,UAGrB;AACV,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/consent/cookie.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../consent/cookie.ts"],
|
|
4
|
-
"sourcesContent": ["import type { ConsentCategory } from \"schemas/generated/consent\";\n\nimport { canopyTombstoneError, canopyTombstoneObject } from \"../lib/tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; CONSENT_COOKIE_NAME remains only for primitive compatibility. */\nexport const CONSENT_COOKIE_NAME = \"replo_consent\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; CONSENT_COOKIE_VERSION remains only for primitive compatibility. */\nexport const CONSENT_COOKIE_VERSION = 1;\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; CONSENT_COOKIE_MAX_AGE_SECONDS remains only for primitive compatibility. */\nexport const CONSENT_COOKIE_MAX_AGE_SECONDS = 60 * 60 * 24 * 180;\n\nexport type ConsentCategories = Record<ConsentCategory, boolean>;\n\n/** Persisted cookie payload. `necessary` is always granted and never stored. */\nexport interface ConsentCookiePayload {\n version: number;\n decidedAt: number;\n /** Persistent pseudonymous per-browser id; absent on pre-id (legacy) cookies. */\n consentId?: string;\n categories: {\n analytics: boolean;\n marketing: boolean;\n preferences: boolean;\n sale_of_data: boolean;\n };\n}\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; DENIED_CATEGORIES has no direct replacement. */\nexport const DENIED_CATEGORIES: ConsentCategories =\n canopyTombstoneObject<ConsentCategories>({\n symbol: \"DENIED_CATEGORIES\",\n subpath: \"consent/cookie\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; GRANTED_CATEGORIES has no direct replacement. */\nexport const GRANTED_CATEGORIES: ConsentCategories =\n canopyTombstoneObject<ConsentCategories>({\n symbol: \"GRANTED_CATEGORIES\",\n subpath: \"consent/cookie\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; parseConsentCookie has no direct replacement. */\nexport function parseConsentCookie(\n _rawCookie: string | undefined,\n): ConsentCookiePayload | null {\n throw canopyTombstoneError({\n symbol: \"parseConsentCookie\",\n subpath: \"consent/cookie\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n}\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; serializeConsentCookieValue has no direct replacement. */\nexport function serializeConsentCookieValue(_args: {\n categories: ConsentCategories;\n decidedAt: number;\n consentId?: string;\n}): string {\n throw canopyTombstoneError({\n symbol: \"serializeConsentCookieValue\",\n subpath: \"consent/cookie\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAEA,SAAS,sBAAsB,6BAA6B;AAGrD,MAAM,sBAAsB;AAG5B,MAAM,yBAAyB;AAG/B,MAAM,iCAAiC,KAAK,KAAK,KAAK;AAmBtD,MAAM,oBACX,sBAAyC;AAAA,EACvC,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,aAAa;AAAA,IACX,MAAM;AAAA,IACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,EAC1E;AACF,CAAC;AAGI,MAAM,qBACX,sBAAyC;AAAA,EACvC,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,aAAa;AAAA,IACX,MAAM;AAAA,IACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,EAC1E;AACF,CAAC;AAGI,SAAS,mBACd,YAC6B;AAC7B,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,IAC1E;AAAA,EACF,CAAC;AACH;AAGO,SAAS,4BAA4B,OAIjC;AACT,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,IAC1E;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../consent/replo-scripts.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport type {\n ReploScriptEntry,\n ScriptTagDescriptor,\n} from \"schemas/generated/consent\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Use InjectedScript from @replohq/sdk/consent/replo-scripts. */\nexport function InjectedScript(_props: {\n baseId: string;\n descriptors: ScriptTagDescriptor[];\n}): null {\n throw canopyTombstoneError({\n symbol: \"InjectedScript\",\n subpath: \"consent/replo-scripts\",\n });\n}\n\n/** @deprecated Use ReploScripts from @replohq/sdk/consent/replo-scripts. */\nexport function ReploScripts(_props: {\n scripts: ReploScriptEntry[];\n}): React.ReactElement {\n throw canopyTombstoneError({\n symbol: \"ReploScripts\",\n subpath: \"consent/replo-scripts\",\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAOA,SAAS,4BAA4B;AAG9B,SAAS,eAAe,QAGtB;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;AAGO,SAAS,aAAa,QAEN;AACrB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../consent/script-registration-store.ts"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\n/* oxlint-disable replo/no-void-return-type -- Tombstone declarations preserve exact return types for consumer compatibility. */\nimport type {\n ConsentCategory,\n ReploScriptType,\n} from \"schemas/generated/consent\";\n\nimport { canopyTombstoneError, canopyTombstoneObject } from \"../lib/tombstone\";\n\n/**\n * Tracks which managed scripts are currently mounted on the page. Each\n * `ReploScripts` entry registers itself here on mount, so the analytics provider\n * can create sinks only for providers that are actually present (and consented),\n * without importing a static list. Like the consent store, this is a singleton\n * rather than React context so it works regardless of tree position.\n */\nexport interface RegisteredScript {\n id: string;\n type: ReploScriptType;\n requiredConsent: ConsentCategory[];\n}\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; scriptRegistrationStore has no direct replacement. */\nexport const scriptRegistrationStore: {\n register(script: RegisteredScript): void;\n unregister(id: string): void;\n getSnapshot(): RegisteredScript[];\n getServerSnapshot(): RegisteredScript[];\n subscribe(listener: () => void): () => void;\n /** Test-only: clear the registry between cases. */\n reset(): void;\n} = canopyTombstoneObject<{\n register(script: RegisteredScript): void;\n unregister(id: string): void;\n getSnapshot(): RegisteredScript[];\n getServerSnapshot(): RegisteredScript[];\n subscribe(listener: () => void): () => void;\n /** Test-only: clear the registry between cases. */\n reset(): void;\n}>({\n symbol: \"scriptRegistrationStore\",\n subpath: \"consent/script-registration-store\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n});\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; registerScript has no direct replacement. */\nexport function registerScript(_script: RegisteredScript): void {\n throw canopyTombstoneError({\n symbol: \"registerScript\",\n subpath: \"consent/script-registration-store\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n}\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; unregisterScript has no direct replacement. */\nexport function unregisterScript(_id: string): void {\n throw canopyTombstoneError({\n symbol: \"unregisterScript\",\n subpath: \"consent/script-registration-store\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n}\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; useRegisteredScripts has no direct replacement. */\nexport function useRegisteredScripts(): RegisteredScript[] {\n throw canopyTombstoneError({\n symbol: \"useRegisteredScripts\",\n subpath: \"consent/script-registration-store\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAQA,SAAS,sBAAsB,6BAA6B;AAgBrD,MAAM,0BAQT,sBAQD;AAAA,EACD,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,aAAa;AAAA,IACX,MAAM;AAAA,IACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,EAC1E;AACF,CAAC;AAGM,SAAS,eAAe,SAAiC;AAC9D,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,IAC1E;AAAA,EACF,CAAC;AACH;AAGO,SAAS,iBAAiB,KAAmB;AAClD,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,IAC1E;AAAA,EACF,CAAC;AACH;AAGO,SAAS,uBAA2C;AACzD,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,IAC1E;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../consent/script-snippets.ts"],
|
|
4
|
-
"sourcesContent": ["import type {\n ConsentCategory,\n ReploScriptType,\n ScriptTagDescriptor,\n} from \"schemas/generated/consent\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n// Identifier providers: those whose script the runtime synthesizes from an ID.\n// `snippet` (pasted whole) and `custom` carry their own bodies instead.\ntype ProviderType = Exclude<ReploScriptType, \"custom\" | \"snippet\">;\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; buildScriptTags has no direct replacement. */\nexport function buildScriptTags(_args: {\n type: ProviderType;\n identifier: string;\n}): ScriptTagDescriptor[] {\n throw canopyTombstoneError({\n symbol: \"buildScriptTags\",\n subpath: \"consent/script-snippets\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n}\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; defaultConsentFor has no direct replacement. */\nexport function defaultConsentFor(_type: ProviderType): ConsentCategory[] {\n throw canopyTombstoneError({\n symbol: \"defaultConsentFor\",\n subpath: \"consent/script-snippets\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAMA,SAAS,4BAA4B;AAO9B,SAAS,gBAAgB,OAGN;AACxB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,IAC1E;AAAA,EACF,CAAC;AACH;AAGO,SAAS,kBAAkB,OAAwC;AACxE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,IAC1E;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/consent/types.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../consent/window-api.ts"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport type { ConsentCategory } from \"schemas/generated/consent\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** Shopify-style tri-state: declared-allowed, declared-denied, or undeclared. */\ntype ConsentSignal = \"yes\" | \"no\" | \"\";\n\n/**\n * Global, framework-agnostic consent API exposed on `window.Replo.customerPrivacy`,\n * mirroring Shopify's Customer Privacy API surface so on-page (third-party)\n * scripts can query consent and react to changes without importing canopy.\n *\n * It deliberately lives under our own `window.Replo` namespace rather than\n * `window.Shopify` to avoid colliding with Shopify's real API on Shopify-backed\n * sites.\n */\ntype ToggleableCategory = Exclude<ConsentCategory, \"necessary\">;\n\nexport interface ReploCustomerPrivacyApi {\n /** Per-category declaration, or \"\" when the visitor has not decided. */\n currentVisitorConsent(): Record<ToggleableCategory, ConsentSignal>;\n analyticsProcessingAllowed(): boolean;\n marketingAllowed(): boolean;\n preferencesProcessingAllowed(): boolean;\n saleOfDataAllowed(): boolean;\n /** Whether the consent banner should still be shown (mode on + undecided). */\n shouldShowBanner(): boolean;\n /** Update a subset of categories; runs the optional callback once persisted. */\n setTrackingConsent(\n consent: Partial<Record<ToggleableCategory, boolean>>,\n callback?: () => void,\n ): void;\n}\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; CONSENT_CHANGE_EVENT remains only for primitive compatibility. */\nexport const CONSENT_CHANGE_EVENT = \"visitorConsentCollected\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; installConsentWindowApi has no direct replacement. */\nexport function installConsentWindowApi(): () => void {\n throw canopyTombstoneError({\n symbol: \"installConsentWindowApi\",\n subpath: \"consent/window-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"consent/consent-store\", \"consent/replo-scripts\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAIA,SAAS,4BAA4B;AAiC9B,MAAM,uBAAuB;AAG7B,SAAS,0BAAsC;AACpD,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,yBAAyB,uBAAuB;AAAA,IAC1E;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../editor/ClientErrorBoundary.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport type { ReactElement } from \"react\";\nimport type * as React from \"react\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function ClientErrorBoundary(\n _args: React.PropsWithChildren,\n): ReactElement {\n throw canopyTombstoneError({\n symbol: \"ClientErrorBoundary\",\n subpath: \"editor/ClientErrorBoundary\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAKA,SAAS,4BAA4B;AAG9B,SAAS,oBACd,OACc;AACd,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../editor/DocumentReadyBeacon.tsx"],
|
|
4
|
-
"sourcesContent": ["import type { ReactElement } from \"react\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function DocumentReadyBeacon(): ReactElement {\n throw canopyTombstoneError({\n symbol: \"DocumentReadyBeacon\",\n subpath: \"editor/DocumentReadyBeacon\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAEA,SAAS,4BAA4B;AAG9B,SAAS,sBAAoC;AAClD,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../editor/LinkInterceptor.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport default function LinkInterceptor(): null {\n throw canopyTombstoneError({\n symbol: \"LinkInterceptor\",\n subpath: \"editor/LinkInterceptor\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAEA,SAAS,4BAA4B;AAGtB,SAAR,kBAAyC;AAC9C,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../editor/NextErrorReporter.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function NextErrorReporter(): null {\n throw canopyTombstoneError({\n symbol: \"NextErrorReporter\",\n subpath: \"editor/NextErrorReporter\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAEA,SAAS,4BAA4B;AAG9B,SAAS,oBAA0B;AACxC,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/annotations/AnnotationLayerMount.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function AnnotationLayerMount(): null {\n throw canopyTombstoneError({\n symbol: \"AnnotationLayerMount\",\n subpath: \"editor/annotations/AnnotationLayerMount\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAEA,SAAS,4BAA4B;AAG9B,SAAS,uBAA6B;AAC3C,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/annotations/annotationController.ts"],
|
|
4
|
-
"sourcesContent": ["/* oxlint-disable replo/no-void-return-type -- Tombstone declarations preserve exact return types for consumer compatibility. */\n// eslint-disable-next-line no-unused-vars -- This type edge keeps the vendored annotation declaration reachable after tombstoning.\nimport type { PageAnnotationMarker } from \"schemas/generated/pageAnnotations\";\n// eslint-disable-next-line no-unused-vars -- This type edge keeps the vendored annotation schema reachable after tombstoning.\nimport type { pageAnnotationsParentMessageSchema } from \"schemas/pageAnnotations\";\n\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function initAnnotationLayer(): void {\n throw canopyTombstoneError({\n symbol: \"initAnnotationLayer\",\n subpath: \"editor/annotations/annotationController\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAMA,SAAS,4BAA4B;AAG9B,SAAS,sBAA4B;AAC1C,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/annotations/bridgeGate.ts"],
|
|
4
|
-
"sourcesContent": ["import { canopyTombstoneError } from \"../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function isAllowedEditorOrigin(_origin: string): boolean {\n throw canopyTombstoneError({\n symbol: \"isAllowedEditorOrigin\",\n subpath: \"editor/annotations/bridgeGate\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function isAllowedEditorMessage(_event: MessageEvent): boolean {\n throw canopyTombstoneError({\n symbol: \"isAllowedEditorMessage\",\n subpath: \"editor/annotations/bridgeGate\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,4BAA4B;AAG9B,SAAS,sBAAsB,SAA0B;AAC9D,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,uBAAuB,QAA+B;AACpE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/design-library-preview/DesignLibraryPreview.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\n// eslint-disable-next-line no-unused-vars -- This type edge keeps the vendored font declaration reachable after tombstoning.\nimport type { buildGoogleFontsCssUrl } from \"replo-utils/lib/fonts\";\n// eslint-disable-next-line no-unused-vars -- This type edge keeps the vendored design-library declaration reachable after tombstoning.\nimport type { designLibraryPreviewMessageSchema } from \"schemas/designLibrary\";\n\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function DesignLibraryPreview(): null {\n throw canopyTombstoneError({\n symbol: \"DesignLibraryPreview\",\n subpath: \"editor/design-library-preview/DesignLibraryPreview\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAOA,SAAS,4BAA4B;AAG9B,SAAS,uBAA6B;AAC3C,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../editor/posthog-relay.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\n// eslint-disable-next-line no-unused-vars -- This type edge keeps the vendored PostHog relay declaration reachable after tombstoning.\nimport type { startChildPostHogReplaySnapshotRelay } from \"replo-utils/lib/posthogReplay\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport default function PostHogRelay(): null {\n throw canopyTombstoneError({\n symbol: \"PostHogRelay\",\n subpath: \"editor/posthog-relay\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAKA,SAAS,4BAA4B;AAGtB,SAAR,eAAsC;AAC3C,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/select-mode/EditorSelection.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function EditorSelection(): null {\n throw canopyTombstoneError({\n symbol: \"EditorSelection\",\n subpath: \"editor/select-mode/EditorSelection\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAEA,SAAS,4BAA4B;AAG9B,SAAS,kBAAwB;AACtC,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/select-mode/annotationFrames.ts"],
|
|
4
|
-
"sourcesContent": ["/* oxlint-disable replo/no-void-return-type -- Tombstone declarations preserve exact return types for consumer compatibility. */\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\ninterface AnnotationRect {\n x: number;\n y: number;\n width: number;\n height: number;\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport const ANNOTATION_CONTAINER_ID = \"replo-annotation-frames\";\n\nexport interface AnnotationFrameSpec {\n id: string;\n pageRect: AnnotationRect;\n badgeCenter: {\n x: number;\n y: number;\n };\n // \"fixed\" for elements inside fixed/sticky ancestors: those don't translate\n // on scroll, so their frame must not either (coords are viewport coords).\n positioning: \"absolute\" | \"fixed\";\n colorHex: string;\n badgeLabel: string;\n badgeAriaLabel: string;\n isActive: boolean;\n onBadgeClick: () => void;\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function setActiveAnnotationBadge(_id: string | null): void {\n throw canopyTombstoneError({\n symbol: \"setActiveAnnotationBadge\",\n subpath: \"editor/select-mode/annotationFrames\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getAnnotationBadgeViewportRect(\n _id: string,\n): AnnotationRect | null {\n throw canopyTombstoneError({\n symbol: \"getAnnotationBadgeViewportRect\",\n subpath: \"editor/select-mode/annotationFrames\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function showAnnotationFrames(_args: {\n frames: AnnotationFrameSpec[];\n}): void {\n throw canopyTombstoneError({\n symbol: \"showAnnotationFrames\",\n subpath: \"editor/select-mode/annotationFrames\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function clearAnnotationFrames(): void {\n throw canopyTombstoneError({\n symbol: \"clearAnnotationFrames\",\n subpath: \"editor/select-mode/annotationFrames\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AACA,SAAS,4BAA4B;AAU9B,MAAM,0BAA0B;AAoBhC,SAAS,yBAAyB,KAA0B;AACjE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,+BACd,KACuB;AACvB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,qBAAqB,OAE5B;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,wBAA8B;AAC5C,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/descriptor/elementDescriptor.ts"],
|
|
4
|
-
"sourcesContent": ["import type {\n SelectableData,\n SelectModeClickPosition,\n} from \"schemas/generated/selectMode\";\n\nimport { canopyTombstoneError } from \"../../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getNearestSelectableElement(_element: Element): Element {\n throw canopyTombstoneError({\n symbol: \"getNearestSelectableElement\",\n subpath: \"editor/select-mode/descriptor/elementDescriptor\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function buildSelector(_element: Element): string {\n throw canopyTombstoneError({\n symbol: \"buildSelector\",\n subpath: \"editor/select-mode/descriptor/elementDescriptor\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function buildElementDescriptor(_args: {\n element: Element;\n clickPosition: SelectModeClickPosition;\n siblingSelectors?: string[];\n}): SelectableData {\n throw canopyTombstoneError({\n symbol: \"buildElementDescriptor\",\n subpath: \"editor/select-mode/descriptor/elementDescriptor\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAKA,SAAS,4BAA4B;AAG9B,SAAS,4BAA4B,UAA4B;AACtE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,cAAc,UAA2B;AACvD,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,uBAAuB,OAIpB;AACjB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/descriptor/styleExtraction.ts"],
|
|
4
|
-
"sourcesContent": ["import type { SelectModeDefinedStyle } from \"schemas/generated/selectMode\";\n\nimport { canopyTombstoneError } from \"../../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getDefinedStyles(_element: Element): SelectModeDefinedStyle[] {\n throw canopyTombstoneError({\n symbol: \"getDefinedStyles\",\n subpath: \"editor/select-mode/descriptor/styleExtraction\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getInheritedStyles(_element: Element): Record<string, string> {\n throw canopyTombstoneError({\n symbol: \"getInheritedStyles\",\n subpath: \"editor/select-mode/descriptor/styleExtraction\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAEA,SAAS,4BAA4B;AAG9B,SAAS,iBAAiB,UAA6C;AAC5E,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,mBAAmB,UAA2C;AAC5E,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/select-mode/displayModeStore.ts"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport type { DisplayMode } from \"schemas/generated/selectMode\";\n\nimport {\n canopyTombstoneError,\n canopyTombstoneObject,\n} from \"../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport const displayModeStore: {\n getSnapshot(): DisplayMode;\n getServerSnapshot(): DisplayMode;\n subscribe(listener: () => void): () => void;\n setDisplayMode(nextDisplayMode: DisplayMode): void;\n /** Test-only: reset back to the default so specs don't leak state. */\n reset(): void;\n} = canopyTombstoneObject<{\n getSnapshot(): DisplayMode;\n getServerSnapshot(): DisplayMode;\n subscribe(listener: () => void): () => void;\n setDisplayMode(nextDisplayMode: DisplayMode): void;\n /** Test-only: reset back to the default so specs don't leak state. */\n reset(): void;\n}>({\n symbol: \"displayModeStore\",\n subpath: \"editor/select-mode/displayModeStore\",\n replacement: { kind: \"sandbox-runtime\" },\n});\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function useDisplayMode(): DisplayMode {\n throw canopyTombstoneError({\n symbol: \"useDisplayMode\",\n subpath: \"editor/select-mode/displayModeStore\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAIA;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAGA,MAAM,mBAOT,sBAOD;AAAA,EACD,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,aAAa,EAAE,MAAM,kBAAkB;AACzC,CAAC;AAGM,SAAS,iBAA8B;AAC5C,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/select-mode/fast-refresh-relay.ts"],
|
|
4
|
-
"sourcesContent": ["/* oxlint-disable replo/no-void-return-type -- Tombstone declarations preserve exact return types for consumer compatibility. */\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function installFastRefreshRelay(\n _args: {\n onComplete?: () => void;\n } = {},\n): void {\n throw canopyTombstoneError({\n symbol: \"installFastRefreshRelay\",\n subpath: \"editor/select-mode/fast-refresh-relay\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AACA,SAAS,4BAA4B;AAG9B,SAAS,wBACd,QAEI,CAAC,GACC;AACN,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/select-mode/fiber.ts"],
|
|
4
|
-
"sourcesContent": ["import { canopyTombstoneError } from \"../../lib/tombstone\";\n\nexport interface ReactFiber {\n _debugSource?: {\n fileName: string;\n lineNumber: number;\n columnNumber?: number;\n };\n _debugStack?: unknown;\n _debugOwner?: ReactFiber;\n type?:\n | {\n name?: string;\n displayName?: string;\n }\n | string\n | ((...args: unknown[]) => unknown)\n | null;\n return?: ReactFiber | null;\n memoizedProps?: Record<string, unknown>;\n pendingProps?: Record<string, unknown>;\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getFiberFromElement(_element: HTMLElement): ReactFiber | null {\n throw canopyTombstoneError({\n symbol: \"getFiberFromElement\",\n subpath: \"editor/select-mode/fiber\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getComponentName(\n _fiber: ReactFiber | null | undefined,\n): string | undefined {\n throw canopyTombstoneError({\n symbol: \"getComponentName\",\n subpath: \"editor/select-mode/fiber\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function findDebugSource(\n _fiber: ReactFiber,\n _maxDepth = 50,\n): {\n source: ReactFiber[\"_debugSource\"];\n componentName?: string;\n} | null {\n throw canopyTombstoneError({\n symbol: \"findDebugSource\",\n subpath: \"editor/select-mode/fiber\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function findDebugSourceReact19(_fiber: ReactFiber): {\n source: ReactFiber[\"_debugSource\"];\n componentName?: string;\n} | null {\n throw canopyTombstoneError({\n symbol: \"findDebugSourceReact19\",\n subpath: \"editor/select-mode/fiber\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getSourceLocation(_element: HTMLElement):\n | {\n filePath: string;\n lineNumber: number;\n columnNumber: number | undefined;\n componentName: string | undefined;\n }\n | undefined {\n throw canopyTombstoneError({\n symbol: \"getSourceLocation\",\n subpath: \"editor/select-mode/fiber\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getHostSourceIdentity(_element: HTMLElement): {\n filePath: string;\n lineNumber: number;\n columnNumber: number | undefined;\n tagName: string;\n} | null {\n throw canopyTombstoneError({\n symbol: \"getHostSourceIdentity\",\n subpath: \"editor/select-mode/fiber\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getFiberChain(_element: HTMLElement): {\n sourceLocation: {\n filePath: string;\n lineNumber: number;\n columnNumber: number | undefined;\n componentName: string | undefined;\n };\n tagName: string | undefined;\n componentName: string | undefined;\n props: Record<string, unknown> | undefined;\n}[] {\n throw canopyTombstoneError({\n symbol: \"getFiberChain\",\n subpath: \"editor/select-mode/fiber\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,4BAA4B;AAwB9B,SAAS,oBAAoB,UAA0C;AAC5E,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,iBACd,QACoB;AACpB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,gBACd,QACA,YAAY,IAIL;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,uBAAuB,QAG9B;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,kBAAkB,UAOpB;AACZ,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,sBAAsB,UAK7B;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,cAAc,UAU1B;AACF,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/hooks/useCrosshairCursor.ts"],
|
|
4
|
-
"sourcesContent": ["/* oxlint-disable replo/no-void-return-type -- Tombstone declarations preserve exact return types for consumer compatibility. */\nimport type { DisplayMode } from \"schemas/generated/selectMode\";\n\nimport { canopyTombstoneError } from \"../../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function useCrosshairCursor(_args: { displayMode: DisplayMode }): void {\n throw canopyTombstoneError({\n symbol: \"useCrosshairCursor\",\n subpath: \"editor/select-mode/hooks/useCrosshairCursor\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAGA,SAAS,4BAA4B;AAG9B,SAAS,mBAAmB,OAA2C;AAC5E,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/hooks/useEditModeStateMachine.ts"],
|
|
4
|
-
"sourcesContent": ["import type { MutableRefObject } from \"react\";\nimport type {\n DisplayMode,\n SelectableData,\n SelectModeFormatCommand,\n} 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 isTextEditableElement(\n _element: Element,\n): _element is HTMLElement {\n throw canopyTombstoneError({\n symbol: \"isTextEditableElement\",\n subpath: \"editor/select-mode/hooks/useEditModeStateMachine\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function useEditModeStateMachine(_args: {\n displayMode: DisplayMode;\n interactionSessionRef: MutableRefObject<SelectModeInteractionSession>;\n}): {\n beginEditing: ({\n element,\n descriptorPromise,\n }: {\n element: Element;\n descriptorPromise: Promise<SelectableData>;\n }) => void;\n editingElementRef: React.RefObject<HTMLElement | null>;\n formatCommand: (command: SelectModeFormatCommand) => void;\n revert: () => void;\n} {\n throw canopyTombstoneError({\n symbol: \"useEditModeStateMachine\",\n subpath: \"editor/select-mode/hooks/useEditModeStateMachine\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAQA,SAAS,4BAA4B;AAG9B,SAAS,sBACd,UACyB;AACzB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,wBAAwB,OActC;AACA,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/hooks/useOptimisticOverrides.ts"],
|
|
4
|
-
"sourcesContent": ["import type { SelectModeOptimisticUpdatePayload } from \"schemas/generated/selectMode\";\n\nimport { canopyTombstoneError } from \"../../../lib/tombstone\";\n\ntype SessionOutcome = \"persisted\" | \"failed\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function useOptimisticOverrides(): {\n applyOptimisticUpdate: ({\n editId,\n payload,\n targetSelector,\n targetMode,\n }: {\n editId: string;\n payload: SelectModeOptimisticUpdatePayload;\n targetSelector: string;\n targetMode: \"primary\" | \"group\";\n }) => void;\n markCommitted: (editId: string, sessionId: string) => void;\n reapplyOverrides: ({\n skipElement,\n }: {\n skipElement: HTMLElement | null;\n }) => void;\n resolveSessionOverrides: (sessionId: string, outcome: SessionOutcome) => void;\n revertOverride: (editId: string) => void;\n} {\n throw canopyTombstoneError({\n symbol: \"useOptimisticOverrides\",\n subpath: \"editor/select-mode/hooks/useOptimisticOverrides\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAEA,SAAS,4BAA4B;AAK9B,SAAS,yBAoBd;AACA,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/hooks/useParentMessaging.ts"],
|
|
4
|
-
"sourcesContent": ["/* oxlint-disable replo/no-void-return-type -- Tombstone declarations preserve exact return types for consumer compatibility. */\n\n// eslint-disable-next-line no-unused-vars -- This type edge keeps the vendored iframe RPC declaration reachable after tombstoning.\nimport type { useIframeRpcChannel } from \"replo-utils/react/use-iframe-rpc-channel\";\nimport type {\n DisplayMode,\n SelectModeFormatCommand,\n SelectModeOptimisticUpdatePayload,\n SelectModeSelectionType,\n} from \"schemas/generated/selectMode\";\n\nimport { canopyTombstoneError } from \"../../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function useParentMessaging(_args: {\n applyOptimisticUpdate?: (input: {\n editId: string;\n payload: SelectModeOptimisticUpdatePayload;\n targetSelector: string;\n targetMode: \"primary\" | \"group\";\n }) => void;\n markCommitted?: (editId: string, sessionId: string) => void;\n resolveSessionOverrides?: (\n sessionId: string,\n outcome: \"persisted\" | \"failed\",\n ) => void;\n onEnterEditMode?: () => void;\n onExitEditMode?: () => void;\n onFormatCommand?: (command: SelectModeFormatCommand) => void;\n revertOverride?: (editId: string) => void;\n setDisplayMode: (displayMode: DisplayMode) => void;\n setSelectionType: (selectionType: SelectModeSelectionType) => void;\n}): void {\n throw canopyTombstoneError({\n symbol: \"useParentMessaging\",\n subpath: \"editor/select-mode/hooks/useParentMessaging\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAWA,SAAS,4BAA4B;AAG9B,SAAS,mBAAmB,OAkB1B;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/hooks/useSelectModeController.ts"],
|
|
4
|
-
"sourcesContent": ["import type {\n DisplayMode,\n SelectModeSelectionType,\n} 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 useSelectModeController(): {\n displayMode: DisplayMode;\n interactionSessionRef: React.RefObject<SelectModeInteractionSession>;\n setDisplayMode: (nextDisplayMode: DisplayMode) => void;\n setSelectionType: (selectionType: SelectModeSelectionType) => void;\n} {\n throw canopyTombstoneError({\n symbol: \"useSelectModeController\",\n subpath: \"editor/select-mode/hooks/useSelectModeController\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAMA,SAAS,4BAA4B;AAG9B,SAAS,0BAKd;AACA,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/hooks/useSelectionHover.ts"],
|
|
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 useSelectionHover(_args: {\n displayMode: DisplayMode;\n interactionSessionRef: MutableRefObject<SelectModeInteractionSession>;\n}): void {\n throw canopyTombstoneError({\n symbol: \"useSelectionHover\",\n subpath: \"editor/select-mode/hooks/useSelectionHover\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAKA,SAAS,4BAA4B;AAG9B,SAAS,kBAAkB,OAGzB;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/hooks/useSelectionInteractions.ts"],
|
|
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, SelectableData } 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 useSelectionInteractions(_args: {\n displayMode: DisplayMode;\n editingElementRef?: MutableRefObject<HTMLElement | null>;\n interactionSessionRef: MutableRefObject<SelectModeInteractionSession>;\n onBeginEditing: (args: {\n element: Element;\n descriptorPromise: Promise<SelectableData>;\n }) => void;\n}): void {\n throw canopyTombstoneError({\n symbol: \"useSelectionInteractions\",\n subpath: \"editor/select-mode/hooks/useSelectionInteractions\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAKA,SAAS,4BAA4B;AAG9B,SAAS,yBAAyB,OAQhC;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/hooks/useSelectionScrollSync.ts"],
|
|
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
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/hooks/useSiblingResolution.ts"],
|
|
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
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/select-mode/iframeRpcChannel.ts"],
|
|
4
|
-
"sourcesContent": ["/* oxlint-disable replo/no-void-return-type -- Tombstone declarations preserve exact return types for consumer compatibility. */\nimport type { SelectedElement } from \"schemas/generated/selectMode\";\nimport type {\n IframeRpcChannel,\n IframeRpcChannelInputHandlers,\n IframeRpcChannelRemote,\n} from \"schemas/iframeRpcChannel\";\nimport type {\n canopyToWebsiteBuilderMethodConfig,\n websiteBuilderToCanopyMethodConfig,\n} from \"schemas/selectModeIframeRpc\";\n\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\nexport type WebsiteBuilderRpcRemote = IframeRpcChannelRemote<\n typeof canopyToWebsiteBuilderMethodConfig\n>;\n\ntype SelectModeParentMessagingHandlers = Omit<\n IframeRpcChannelInputHandlers<typeof websiteBuilderToCanopyMethodConfig>,\n \"symbolicateSelectedElement\"\n>;\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getSelectModeIframeRpcChannel(): IframeRpcChannel<\n typeof canopyToWebsiteBuilderMethodConfig\n> | null {\n throw canopyTombstoneError({\n symbol: \"getSelectModeIframeRpcChannel\",\n subpath: \"editor/select-mode/iframeRpcChannel\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function setSelectModeParentHandlers(\n _nextHandlers: SelectModeParentMessagingHandlers | null,\n): void {\n throw canopyTombstoneError({\n symbol: \"setSelectModeParentHandlers\",\n subpath: \"editor/select-mode/iframeRpcChannel\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getWebsiteBuilderRpc(): WebsiteBuilderRpcRemote | null {\n throw canopyTombstoneError({\n symbol: \"getWebsiteBuilderRpc\",\n subpath: \"editor/select-mode/iframeRpcChannel\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function requestInlineTextEdit(_input: {\n editId: string;\n element: SelectedElement;\n}): ReturnType<WebsiteBuilderRpcRemote[\"requestInlineTextEdit\"]> {\n throw canopyTombstoneError({\n symbol: \"requestInlineTextEdit\",\n subpath: \"editor/select-mode/iframeRpcChannel\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAYA,SAAS,4BAA4B;AAY9B,SAAS,gCAEP;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,4BACd,eACM;AACN,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,uBAAuD;AACrE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,sBAAsB,QAG2B;AAC/D,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/select-mode/inlineTextMarks.ts"],
|
|
4
|
-
"sourcesContent": ["import { canopyTombstoneError } from \"../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function isInlineTextMarkElement(_element: Element): boolean {\n throw canopyTombstoneError({\n symbol: \"isInlineTextMarkElement\",\n subpath: \"editor/select-mode/inlineTextMarks\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function skipInlineTextMarkElements(_element: Element): Element {\n throw canopyTombstoneError({\n symbol: \"skipInlineTextMarkElements\",\n subpath: \"editor/select-mode/inlineTextMarks\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,4BAA4B;AAG9B,SAAS,wBAAwB,UAA4B;AAClE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,2BAA2B,UAA4B;AACrE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../editor/select-mode/interactions/selectionGeometry.ts"],
|
|
4
|
-
"sourcesContent": ["// eslint-disable-next-line no-unused-vars -- This type edge keeps the vendored geometry declaration reachable after tombstoning.\nimport type { GeometryRect } from \"replo-utils/lib/geometry\";\nimport type {\n SelectModeBoundingRect,\n SelectModeClickPosition,\n} from \"schemas/generated/selectMode\";\n\nimport { canopyTombstoneError } from \"../../../lib/tombstone\";\n\nexport type DragPosition = {\n clientX: number;\n clientY: number;\n pageX: number;\n pageY: number;\n};\n\nexport type ScrollOffset = {\n left: number;\n top: number;\n};\n\nexport type SelectedAreaState = {\n pageRect: SelectModeBoundingRect;\n};\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getDragPositionFromClient(_args: {\n clientX: number;\n clientY: number;\n scrollOffset: ScrollOffset;\n}): DragPosition {\n throw canopyTombstoneError({\n symbol: \"getDragPositionFromClient\",\n subpath: \"editor/select-mode/interactions/selectionGeometry\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getDocumentScrollOffset(): ScrollOffset {\n throw canopyTombstoneError({\n symbol: \"getDocumentScrollOffset\",\n subpath: \"editor/select-mode/interactions/selectionGeometry\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getViewportSelectionRect(_args: {\n dragStart: DragPosition;\n dragCurrent: DragPosition;\n scrollOffset: ScrollOffset;\n}): SelectModeBoundingRect {\n throw canopyTombstoneError({\n symbol: \"getViewportSelectionRect\",\n subpath: \"editor/select-mode/interactions/selectionGeometry\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getPageRectFromViewportRect(_args: {\n rect: SelectModeBoundingRect;\n scrollOffset: ScrollOffset;\n}): SelectModeBoundingRect {\n throw canopyTombstoneError({\n symbol: \"getPageRectFromViewportRect\",\n subpath: \"editor/select-mode/interactions/selectionGeometry\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getViewportRectFromPageRect(_args: {\n rect: SelectModeBoundingRect;\n scrollOffset: ScrollOffset;\n}): SelectModeBoundingRect {\n throw canopyTombstoneError({\n symbol: \"getViewportRectFromPageRect\",\n subpath: \"editor/select-mode/interactions/selectionGeometry\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function doesRectIntersectSelection(_args: {\n elementRect: SelectModeBoundingRect;\n selectionRect: SelectModeBoundingRect;\n tolerancePx: number;\n}): boolean {\n throw canopyTombstoneError({\n symbol: \"doesRectIntersectSelection\",\n subpath: \"editor/select-mode/interactions/selectionGeometry\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n// A meaningful element plus its page-coordinate rect and a stable id,\n// snapshotted once when a drag begins. Page coordinates are scroll-\n// invariant, so per-move hit-testing never needs to re-measure.\nexport type DragCandidate = {\n id: string;\n element: Element;\n pageRect: SelectModeBoundingRect;\n};\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function collectDragCandidates(\n _scrollOffset: ScrollOffset,\n): DragCandidate[] {\n throw canopyTombstoneError({\n symbol: \"collectDragCandidates\",\n subpath: \"editor/select-mode/interactions/selectionGeometry\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getCandidatesInSelection(_args: {\n candidates: DragCandidate[];\n selectionPageRect: SelectModeBoundingRect;\n}): DragCandidate[] {\n throw canopyTombstoneError({\n symbol: \"getCandidatesInSelection\",\n subpath: \"editor/select-mode/interactions/selectionGeometry\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getElementAnchor(_args: {\n element: Element;\n selectionRect: SelectModeBoundingRect;\n}): SelectModeClickPosition {\n throw canopyTombstoneError({\n symbol: \"getElementAnchor\",\n subpath: \"editor/select-mode/interactions/selectionGeometry\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getElementBoundingRect(\n _element: Element,\n): SelectModeBoundingRect {\n throw canopyTombstoneError({\n symbol: \"getElementBoundingRect\",\n subpath: \"editor/select-mode/interactions/selectionGeometry\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAOA,SAAS,4BAA4B;AAmB9B,SAAS,0BAA0B,OAIzB;AACf,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,0BAAwC;AACtD,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,yBAAyB,OAId;AACzB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,4BAA4B,OAGjB;AACzB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,4BAA4B,OAGjB;AACzB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,2BAA2B,OAI/B;AACV,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAYO,SAAS,sBACd,eACiB;AACjB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,yBAAyB,OAGrB;AAClB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,iBAAiB,OAGL;AAC1B,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,uBACd,UACwB;AACxB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/select-mode/selectModeSession.ts"],
|
|
4
|
-
"sourcesContent": ["import type {\n SelectableData,\n SelectModeBoundingRect,\n SelectModeClickPosition,\n SelectModeSelectionType,\n} from \"schemas/generated/selectMode\";\nimport type {\n DragPosition,\n ScrollOffset,\n} from \"./interactions/selectionGeometry\";\n\nimport { canopyTombstoneObject } from \"../../lib/tombstone\";\n\nexport type SelectModeInteractionSession =\n | {\n type: Extract<SelectModeSelectionType, \"none\">;\n }\n | {\n type: Extract<SelectModeSelectionType, \"drag\">;\n dragStart: DragPosition;\n dragCurrent: DragPosition;\n scrollOffset: ScrollOffset;\n hasExceededThreshold: boolean;\n }\n | {\n type: Extract<SelectModeSelectionType, \"element\">;\n element: Element;\n clickPosition: SelectModeClickPosition | null;\n data: SelectableData;\n }\n | {\n type: Extract<SelectModeSelectionType, \"area\">;\n pageRect: SelectModeBoundingRect;\n items: SelectableData[];\n };\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport const IDLE_SESSION: SelectModeInteractionSession =\n canopyTombstoneObject<SelectModeInteractionSession>({\n symbol: \"IDLE_SESSION\",\n subpath: \"editor/select-mode/selectModeSession\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n"],
|
|
5
|
-
"mappings": "AAWA,SAAS,6BAA6B;AA0B/B,MAAM,eACX,sBAAoD;AAAA,EAClD,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,aAAa,EAAE,MAAM,kBAAkB;AACzC,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/select-mode/selectionFrame.ts"],
|
|
4
|
-
"sourcesContent": ["/* oxlint-disable replo/no-void-return-type -- Tombstone declarations preserve exact return types for consumer compatibility. */\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\ntype SelectionFrameVariant = \"element\" | \"area\";\n\ntype SelectionFramePageRect = {\n x: number;\n y: number;\n width: number;\n height: number;\n};\n\ntype SelectionFrameSpec = {\n pageRect: SelectionFramePageRect;\n variant: SelectionFrameVariant;\n};\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function setSelectionFrameEditing(_editing: boolean): void {\n throw canopyTombstoneError({\n symbol: \"setSelectionFrameEditing\",\n subpath: \"editor/select-mode/selectionFrame\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function getOrCreateFramesLayerContainer(_args: {\n id: string;\n zIndex: number;\n}): HTMLDivElement | null {\n throw canopyTombstoneError({\n symbol: \"getOrCreateFramesLayerContainer\",\n subpath: \"editor/select-mode/selectionFrame\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function showSelectionFrames(_args: {\n frames: SelectionFrameSpec[];\n}): void {\n throw canopyTombstoneError({\n symbol: \"showSelectionFrames\",\n subpath: \"editor/select-mode/selectionFrame\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function showSelectionFrame(_args: {\n pageRect: SelectionFramePageRect;\n variant: SelectionFrameVariant;\n}): void {\n throw canopyTombstoneError({\n symbol: \"showSelectionFrame\",\n subpath: \"editor/select-mode/selectionFrame\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function hideSelectionFrame(): void {\n throw canopyTombstoneError({\n symbol: \"hideSelectionFrame\",\n subpath: \"editor/select-mode/selectionFrame\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AACA,SAAS,4BAA4B;AAiB9B,SAAS,yBAAyB,UAAyB;AAChE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,gCAAgC,OAGtB;AACxB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,oBAAoB,OAE3B;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,mBAAmB,OAG1B;AACP,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;AAGO,SAAS,qBAA2B;AACzC,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/select-mode/symbolicate.ts"],
|
|
4
|
-
"sourcesContent": ["import type { SelectedElement } from \"schemas/generated/selectMode\";\n\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport async function symbolicateSelectedElement(\n _selectedElement: SelectedElement,\n): Promise<SelectedElement> {\n throw canopyTombstoneError({\n symbol: \"symbolicateSelectedElement\",\n subpath: \"editor/select-mode/symbolicate\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAEA,SAAS,4BAA4B;AAGrC,eAAsB,2BACpB,kBAC0B;AAC1B,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../editor/select-mode/tiptapInlineEditor.ts"],
|
|
4
|
-
"sourcesContent": ["import type { SelectModeFormatCommand } from \"schemas/generated/selectMode\";\n\nimport { canopyTombstoneError } from \"../../lib/tombstone\";\n\ntype JSONContent = {\n type?: string;\n // oxlint-disable-next-line typescript/no-explicit-any -- Preserves Tiptap's retired public JSON contract.\n attrs?: Record<string, any>;\n content?: JSONContent[];\n marks?: {\n type: string;\n // oxlint-disable-next-line typescript/no-explicit-any -- Preserves Tiptap's retired public JSON contract.\n attrs?: Record<string, any>;\n // oxlint-disable-next-line typescript/no-explicit-any -- Preserves Tiptap's retired public JSON contract.\n [key: string]: any;\n }[];\n text?: string;\n // oxlint-disable-next-line typescript/no-explicit-any -- Preserves Tiptap's retired public JSON contract.\n [key: string]: any;\n};\n\nexport type InlineTiptapEditor = {\n focus: () => void;\n focusAndSelectAll: () => void;\n destroy: () => void;\n getHTML: () => string;\n getJSON: () => JSONContent;\n runFormatCommand: (command: SelectModeFormatCommand) => void;\n};\n\n/** @deprecated Mount SandboxRuntime from @replohq/sandbox-runtime instead. */\nexport function createInlineTiptapEditor(_args: {\n element: HTMLElement;\n content: string;\n onCommit: () => void;\n onEscape: () => void;\n onBlur: () => void;\n onSelectionUpdate: (activeMarks: {\n bold: boolean;\n italic: boolean;\n underline: boolean;\n strike: boolean;\n }) => void;\n}): InlineTiptapEditor {\n throw canopyTombstoneError({\n symbol: \"createInlineTiptapEditor\",\n subpath: \"editor/select-mode/tiptapInlineEditor\",\n replacement: { kind: \"sandbox-runtime\" },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAEA,SAAS,4BAA4B;AA6B9B,SAAS,yBAAyB,OAYlB;AACrB,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa,EAAE,MAAM,kBAAkB;AAAA,EACzC,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/env.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../env.ts"],
|
|
4
|
-
"sourcesContent": ["import { canopyTombstoneError } from \"./lib/tombstone\";\n\ntype Env = {\n CANOPY_API_HOST: string;\n PROJECT_ID: string;\n // Base URL of analytics-fire (e.g. https://data.replo.app). Read server-side by\n // the consent action (`consent/consent-actions.ts`) to forward proof-of-consent\n // records. Optional: absent in environments where the audit pipeline isn't\n // wired (e.g. local dev), where consent recording simply no-ops.\n ANALYTICS_FIRE_API_URL?: string;\n // Base URL of the Replo first-party analytics pixel CDN (e.g.\n // https://pixel.replo.app). `<ReploFirstPartyPixel>` loads\n // `${REPLO_ANALYTICS_PIXEL_URL}/latest.js` into the page once analytics consent\n // is granted; the browser fetches it directly. Optional: absent when the pixel\n // isn't configured (e.g. lean local dev), where the pixel simply isn't injected.\n REPLO_ANALYTICS_PIXEL_URL?: string;\n CHECKOUT_PROVIDER?: \"shopify\" | \"stripe\" | \"none\";\n};\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; getEnv has no direct replacement. */\nexport async function getEnv(): Promise<Env> {\n throw canopyTombstoneError({\n symbol: \"getEnv\",\n subpath: \"env\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,4BAA4B;AAoBrC,eAAsB,SAAuB;AAC3C,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,0BAA0B;AAAA,IACpD;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../gateways/canopy-api.ts"],
|
|
4
|
-
"sourcesContent": ["import type { Cart } from \"../cart/cart-schema\";\nimport type { CanopyErrorConfig } from \"../lib/canopy-error\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\ntype CanopyApiGatewayErrorConfig = {\n message: string;\n statusCode?: number;\n cause?: unknown;\n additionalData?: Record<string, unknown>;\n};\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; CanopyApiGatewayError has no direct replacement. */\nexport class CanopyApiGatewayError extends Error {\n config!: CanopyErrorConfig;\n id!: string;\n statusCode!: number;\n constructor(_config: CanopyApiGatewayErrorConfig) {\n super();\n throw canopyTombstoneError({\n symbol: \"CanopyApiGatewayError\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n}\n\nclass CanopyApiGateway {\n private apiHost!: string;\n private baseUrl!: string;\n constructor(_apiHost: string) {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n static async setup(): Promise<CanopyApiGateway> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n private async _post(_url: string, _body: unknown): Promise<Response> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n private async _get(_url: string): Promise<Response> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async invokeLoader(_args: {\n loaderKey: string;\n args: Record<string, unknown>;\n }): Promise<{\n data: unknown;\n meta?: { cache: { hit: boolean; ttlSeconds: number } } | undefined;\n }> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n // ---------------------------------------------------------------------------\n // Cart operations (canopy-api-backed ExternalCart)\n // ---------------------------------------------------------------------------\n private async _cartPost(\n _path: string,\n _body: Record<string, unknown>,\n ): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartGet(_args: { cartId: string }): Promise<Cart | null> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartCreate(_options?: {\n lines?: {\n merchandiseId: string;\n quantity: number;\n attributes?: {\n key: string;\n value: string;\n }[];\n sellingPlanId?: string | null;\n }[];\n discountCodes?: string[];\n }): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartAddLines(_args: {\n cartId: string;\n lines: {\n merchandiseId: string;\n quantity: number;\n attributes?: {\n key: string;\n value: string;\n }[];\n sellingPlanId?: string | null;\n }[];\n }): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartUpdateLines(_args: {\n cartId: string;\n lines: {\n lineId: string;\n quantity: number;\n attributes?: {\n key: string;\n value: string;\n }[];\n sellingPlanId?: string | null;\n }[];\n }): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartRemoveLines(_args: {\n cartId: string;\n lineIds: string[];\n }): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n async cartUpdateDiscountCodes(_args: {\n cartId: string;\n discountCodes: string[];\n }): Promise<Cart> {\n throw canopyTombstoneError({\n symbol: \"CanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n}\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; getCanopyApiGateway has no direct replacement. */\nexport async function getCanopyApiGateway(): Promise<CanopyApiGateway> {\n throw canopyTombstoneError({\n symbol: \"getCanopyApiGateway\",\n subpath: \"gateways/canopy-api\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAGA,SAAS,4BAA4B;AAU9B,MAAM,8BAA8B,MAAM;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY,SAAsC;AAChD,UAAM;AACN,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AACF;AAEA,MAAM,iBAAiB;AAAA,EACb;AAAA,EACA;AAAA,EACR,YAAY,UAAkB;AAC5B,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,aAAa,QAAmC;AAC9C,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,MAAc,MAAM,MAAc,OAAmC;AACnE,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,MAAc,KAAK,MAAiC;AAClD,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,MAAM,aAAa,OAMhB;AACD,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAIA,MAAc,UACZ,OACA,OACe;AACf,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,MAAM,QAAQ,OAAiD;AAC7D,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,MAAM,WAAW,UAWC;AAChB,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,MAAM,aAAa,OAWD;AAChB,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,MAAM,gBAAgB,OAWJ;AAChB,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,MAAM,gBAAgB,OAGJ;AAChB,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EACA,MAAM,wBAAwB,OAGZ;AAChB,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AACF;AAGA,eAAsB,sBAAiD;AACrE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,0BAA0B;AAAA,IACpD;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|