@replohq/canopy-sdk 3.0.3 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +1 -2
- package/analytics/analytics-sink.js +0 -1
- package/analytics/get-analytics-sinks.js +1 -2
- package/analytics/hooks/use-product-viewed-analytics.js +1 -2
- package/analytics/replo-first-party-pixel.js +1 -2
- package/analytics/replo-pixel-script.js +1 -2
- package/analytics/sinks/ga4-sink.js +1 -3
- package/analytics/sinks/meta-sink.js +1 -3
- package/analytics/sinks/pinterest-sink.js +1 -3
- package/analytics/sinks/reddit-sink.js +1 -3
- package/analytics/sinks/replo-sink.js +1 -3
- package/analytics/sinks/snapchat-sink.js +1 -3
- package/analytics/sinks/tiktok-sink.js +1 -3
- package/analytics/sinks/window-sink.js +1 -4
- package/analytics/utils/analytics-utils.js +1 -2
- package/analytics/utils/navigation-tracker.js +1 -2
- package/analytics/utils/shopify-funnel-gate.js +1 -2
- package/cart/buy-now-action.js +1 -2
- package/cart/cart-actions.js +1 -2
- package/cart/cart-loader.js +1 -2
- package/cart/cart-provider.js +1 -2
- package/cart/cart-schema.js +1 -2
- package/cart/cart-types.js +1 -2
- package/cart/gateways/cart-constants.js +0 -1
- package/cart/gateways/cart-gateway.js +1 -2
- package/cart/gateways/cookie-cart-gateway.js +1 -2
- package/cart/gateways/default-cart-gateway.js +1 -2
- package/cart/gateways/resolver-cart-gateway.js +1 -2
- package/cart/gateways/stripe-cart-gateway.js +1 -2
- package/cart/hooks/use-add-to-cart.js +1 -2
- package/cart/hooks/use-buy-now.js +1 -2
- package/cart/utils/cart-utils.js +1 -2
- package/cart/utils/cookie-cart-persistence.js +1 -2
- package/cart/utils/variant-to-cart-line.js +1 -2
- 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 +1 -2
- package/consent/consent-actions.js +1 -2
- package/consent/consent-store.js +1 -2
- package/consent/cookie.js +1 -2
- package/consent/replo-scripts.js +1 -2
- package/consent/script-registration-store.js +1 -2
- package/consent/script-snippets.js +1 -2
- package/consent/types.js +0 -1
- package/consent/window-api.js +1 -2
- package/editor/ClientErrorBoundary.js +1 -2
- package/editor/DocumentReadyBeacon.js +1 -2
- package/editor/LinkInterceptor.js +1 -2
- package/editor/NextErrorReporter.js +1 -2
- package/editor/annotations/AnnotationLayerMount.js +1 -2
- package/editor/annotations/annotationController.js +1 -2
- package/editor/annotations/bridgeGate.js +1 -2
- package/editor/design-library-preview/DesignLibraryPreview.js +1 -2
- package/editor/posthog-relay.js +1 -2
- package/editor/select-mode/EditorSelection.js +1 -2
- package/editor/select-mode/annotationFrames.js +1 -2
- package/editor/select-mode/descriptor/elementDescriptor.js +1 -2
- package/editor/select-mode/descriptor/styleExtraction.js +1 -2
- package/editor/select-mode/displayModeStore.js +1 -2
- package/editor/select-mode/fast-refresh-relay.js +1 -2
- package/editor/select-mode/fiber.js +1 -2
- package/editor/select-mode/hooks/useCrosshairCursor.js +1 -2
- package/editor/select-mode/hooks/useEditModeStateMachine.js +1 -2
- package/editor/select-mode/hooks/useOptimisticOverrides.js +1 -2
- package/editor/select-mode/hooks/useParentMessaging.js +1 -2
- package/editor/select-mode/hooks/useSelectModeController.js +1 -2
- package/editor/select-mode/hooks/useSelectionHover.js +1 -2
- package/editor/select-mode/hooks/useSelectionInteractions.js +1 -2
- package/editor/select-mode/hooks/useSelectionScrollSync.js +1 -2
- package/editor/select-mode/hooks/useSiblingResolution.js +1 -2
- package/editor/select-mode/iframeRpcChannel.js +1 -2
- package/editor/select-mode/inlineTextMarks.js +1 -2
- package/editor/select-mode/interactions/selectionGeometry.js +1 -2
- package/editor/select-mode/selectModeSession.js +1 -2
- package/editor/select-mode/selectionFrame.js +1 -2
- package/editor/select-mode/symbolicate.js +1 -2
- package/editor/select-mode/tiptapInlineEditor.js +1 -2
- package/env.js +1 -2
- package/gateways/canopy-api.js +1 -5
- package/hooks/use-client-value.js +1 -2
- package/hooks/use-formatted-price.js +1 -2
- package/lib/canopy-error.js +1 -2
- package/lib/get-query-client.js +1 -2
- package/lib/integration-utils.js +1 -2
- package/lib/shopify-utils.js +1 -2
- package/lib/tombstone.js +0 -1
- package/lib/url-utils.js +1 -2
- package/loaders/collection-loader.js +1 -2
- package/loaders/collection-products-loader.js +1 -2
- package/loaders/contentful-entries-loader.js +1 -2
- package/loaders/contentful-entry-loader.js +1 -2
- package/loaders/invoke-loader-action.js +1 -2
- package/loaders/invoke-loader-server.js +1 -2
- package/loaders/invoke-loader.js +1 -2
- package/loaders/levanta-product-loader.js +1 -2
- package/loaders/loader-error-boundary.js +1 -2
- package/loaders/loader-keys.js +1 -2
- package/loaders/loader-schemas.js +1 -5
- package/loaders/metaobject-loader.js +1 -2
- package/loaders/metaobjects-loader.js +1 -2
- package/loaders/okendo-review-aggregate-loader.js +1 -2
- package/loaders/okendo-reviews-loader.js +1 -2
- package/loaders/prefetch-loaders.js +1 -2
- package/loaders/preview-placeholder.js +1 -2
- package/loaders/product-loader-args.js +1 -2
- package/loaders/product-loader.js +1 -2
- package/loaders/rebuy-recommendations-loader.js +1 -2
- package/loaders/reviews-io-review-aggregate-loader.js +1 -2
- package/loaders/reviews-io-reviews-loader.js +1 -2
- package/loaders/smile-earning-rules-loader.js +1 -2
- package/loaders/smile-rewards-loader.js +1 -2
- package/loaders/smile-vip-tiers-loader.js +1 -2
- package/loaders/statsig-experiment-loader.js +1 -2
- package/loaders/vendor-loader-keys.js +1 -2
- package/loaders/yotpo-review-aggregate-loader.js +1 -2
- package/loaders/yotpo-reviews-loader.js +1 -2
- package/money.js +1 -2
- package/next/config.js +4 -2
- package/next/image-loader.js +1 -2
- package/next/open-next.js +0 -1
- package/orders/order-status-schema.js +1 -5
- package/orders/order-status.js +1 -2
- package/package.json +1 -1
- package/providers/query-provider.js +1 -2
- package/providers/replo-provider.js +1 -2
- package/routing/evaluate.js +1 -2
- package/routing/rules.js +1 -2
- 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": ["../../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
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../hooks/use-client-value.ts"],
|
|
4
|
-
"sourcesContent": ["import { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; useClientValue has no direct replacement. */\nexport function useClientValue<ValueType>(\n _readValue: () => ValueType,\n _initialValue: ValueType,\n): ValueType {\n throw canopyTombstoneError({\n symbol: \"useClientValue\",\n subpath: \"hooks/use-client-value\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,4BAA4B;AAG9B,SAAS,eACd,YACA,eACW;AACX,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,0BAA0B;AAAA,IACpD;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../hooks/use-formatted-price.ts"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\n/** @deprecated Use useFormattedPrice from @replohq/sdk/hooks/use-formatted-price. */\nexport const useFormattedPrice: (\n price: number | null,\n currency: string | null,\n) => string | null = (_price, _currency) => {\n throw canopyTombstoneError({\n symbol: \"useFormattedPrice\",\n subpath: \"hooks/use-formatted-price\",\n });\n};\n"],
|
|
5
|
-
"mappings": ";AAEA,SAAS,4BAA4B;AAG9B,MAAM,oBAGQ,CAAC,QAAQ,cAAc;AAC1C,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/lib/canopy-error.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../lib/canopy-error.ts"],
|
|
4
|
-
"sourcesContent": ["import { canopyTombstoneError } from \"./tombstone\";\n\n// NOTE (Ryan, 2026-07-23, REPL-27611): Local error base for canopy-sdk's\n// published-page code. Mirrors the minimal surface of `schemas`' `ReploError`\n// (a `config` bag, a stable `id`, and cause chaining) that canopy's scoped\n// error classes actually use, so nothing shipped to a generated site imports\n// from `schemas`.\nexport type CanopyErrorConfig = {\n /**\n * Message of the error. If not provided, defaults to the error's class name.\n */\n message?: string;\n /**\n * Additional context about the error (ids, contextual variables, etc.),\n * surfaced when the error is logged.\n */\n additionalData?: Record<string, unknown>;\n /**\n * Original cause of the error, useful when catching and re-throwing with more\n * context.\n */\n cause?: unknown;\n};\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; CanopyError has no direct replacement. */\nexport abstract class CanopyError extends Error {\n config!: CanopyErrorConfig;\n id!: string;\n constructor(_config: CanopyErrorConfig) {\n super();\n throw canopyTombstoneError({\n symbol: \"CanopyError\",\n subpath: \"lib/canopy-error\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n }\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,4BAA4B;AAyB9B,MAAe,oBAAoB,MAAM;AAAA,EAC9C;AAAA,EACA;AAAA,EACA,YAAY,SAA4B;AACtC,UAAM;AACN,UAAM,qBAAqB;AAAA,MACzB,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,QACX,MAAM;AAAA,QACN,uBAAuB,CAAC,0BAA0B;AAAA,MACpD;AAAA,IACF,CAAC;AAAA,EACH;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../lib/get-query-client.ts"],
|
|
4
|
-
"sourcesContent": ["import type { QueryClient } from \"@tanstack/react-query\";\n\nimport { canopyTombstoneError } from \"./tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; getQueryClient has no direct replacement. */\nexport function getQueryClient(): QueryClient {\n throw canopyTombstoneError({\n symbol: \"getQueryClient\",\n subpath: \"lib/get-query-client\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAEA,SAAS,4BAA4B;AAG9B,SAAS,iBAA8B;AAC5C,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,0BAA0B;AAAA,IACpD;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../lib/integration-utils.ts"],
|
|
4
|
-
"sourcesContent": ["import { canopyTombstoneError } from \"./tombstone\";\n\nexport type CheckoutProvider = \"shopify\" | \"stripe\" | \"none\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; getCheckoutProvider has no direct replacement. */\nexport async function getCheckoutProvider(): Promise<CheckoutProvider> {\n throw canopyTombstoneError({\n symbol: \"getCheckoutProvider\",\n subpath: \"lib/integration-utils\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"cart/cart-provider\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,4BAA4B;AAKrC,eAAsB,sBAAiD;AACrE,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,oBAAoB;AAAA,IAC9C;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/lib/shopify-utils.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../lib/shopify-utils.ts"],
|
|
4
|
-
"sourcesContent": ["import { canopyTombstoneError } from \"./tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; convertLegacyResourceIdToGraphQLId has no direct replacement. */\nexport function convertLegacyResourceIdToGraphQLId(\n _id: string,\n _type: \"Product\" | \"ProductVariant\",\n): string {\n throw canopyTombstoneError({\n symbol: \"convertLegacyResourceIdToGraphQLId\",\n subpath: \"lib/shopify-utils\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"cart/utils/cart-utils\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,4BAA4B;AAG9B,SAAS,mCACd,KACA,OACQ;AACR,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,uBAAuB;AAAA,IACjD;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/lib/tombstone.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../lib/tombstone.ts"],
|
|
4
|
-
"sourcesContent": ["type PublicSdkReplacement = {\n kind: \"public-sdk\";\n replacementImport?: string;\n};\n\ntype SandboxRuntimeReplacement = {\n kind: \"sandbox-runtime\";\n};\n\ntype InternalReplacement = {\n kind: \"internal\";\n nearestPublicSubpaths: readonly string[];\n};\n\ntype TombstoneReplacement =\n | PublicSdkReplacement\n | SandboxRuntimeReplacement\n | InternalReplacement;\n\ntype TombstoneLocation = {\n symbol: string;\n subpath: string;\n replacement?: TombstoneReplacement;\n replacementImport?: string;\n};\n\nconst migrationCommand = `pnpm add --ignore-workspace @replohq/sdk@latest @replohq/sandbox-runtime@latest && pnpm remove --ignore-workspace canopy-sdk\n(if package.json lists \"@replohq/canopy-sdk\" instead of the \"canopy-sdk\" alias, run: pnpm remove --ignore-workspace @replohq/canopy-sdk)`;\n\nconst providerComposition = `import { ReploProvider } from \"@replohq/sdk/providers/replo-provider\";\nimport { SandboxRuntime } from \"@replohq/sandbox-runtime\";\n\nexport default function RootLayout({\n children,\n}: Readonly<{\n children: React.ReactNode;\n}>) {\n return (\n <html>\n <body>\n <ReploProvider>\n <SandboxRuntime>{children}</SandboxRuntime>\n </ReploProvider>\n </body>\n </html>\n );\n}`;\n\nconst migrationRule = `For storefront imports the migration is mechanical: every public canopy-sdk/<subpath> or @replohq/canopy-sdk/<subpath> import becomes @replohq/sdk/<subpath>. Editor/select-mode functionality is not imported directly: SandboxRuntime from @replohq/sandbox-runtime provides it automatically once mounted.`;\n\nfunction reploProviderTombstoneError(): Error {\n return new Error(`ReploProvider was removed from @replohq/canopy-sdk v3, the final, fully deprecated release.\n\nReplace the single legacy provider with ReploProvider from @replohq/sdk/providers/replo-provider wrapping SandboxRuntime from @replohq/sandbox-runtime, with SandboxRuntime nested inside ReploProvider:\n\n${providerComposition}\n\nInstall the replacements and remove the deprecated package:\n${migrationCommand}\n\n${migrationRule}`);\n}\n\nfunction sandboxRuntimeMigration({ symbol }: { symbol: string }): string {\n return `${symbol} was editor/select-mode functionality. It now ships inside @replohq/sandbox-runtime and is not directly importable.\n\nMount SandboxRuntime from @replohq/sandbox-runtime inside ReploProvider from @replohq/sdk in the root layout; SandboxRuntime provides this functionality automatically:\n\n${providerComposition}\n\nThen delete this import and any /editor route code that used it.`;\n}\n\nfunction internalMigration({\n nearestPublicSubpaths,\n}: InternalReplacement): string {\n const publicApis = nearestPublicSubpaths\n .map((subpath) => `- @replohq/sdk/${subpath}`)\n .join(\"\\n\");\n\n return `This was an internal module with no direct public replacement.\n\nUse the nearest supported public API for this domain:\n${publicApis}`;\n}\n\nexport function canopyTombstoneError({\n symbol,\n subpath,\n replacement,\n replacementImport,\n}: TombstoneLocation): Error {\n if (symbol === \"ReploProvider\") {\n return reploProviderTombstoneError();\n }\n\n const resolvedReplacement = replacement ?? {\n kind: \"public-sdk\",\n replacementImport,\n };\n const migration = (() => {\n switch (resolvedReplacement.kind) {\n case \"public-sdk\":\n return `Use the replacement export:\n${\n resolvedReplacement.replacementImport ??\n `import { ${symbol} } from \"@replohq/sdk/${subpath}\";`\n}`;\n case \"sandbox-runtime\":\n return sandboxRuntimeMigration({ symbol });\n case \"internal\":\n return internalMigration(resolvedReplacement);\n }\n })();\n\n return new Error(`${symbol} was removed from @replohq/canopy-sdk v3, the final, fully deprecated release.\n\n${migration}\n\nInstall the replacements and remove the deprecated package:\n${migrationCommand}\n\n${migrationRule}`);\n}\n\nexport function canopyTombstoneObject<ExportType>(\n location: TombstoneLocation,\n): ExportType {\n const throwTombstoneError = (): never => {\n throw canopyTombstoneError(location);\n };\n\n // eslint-disable-next-line replo/no-as-cast -- Proxy traps cannot retain an arbitrary public object type without the mandated boundary cast.\n return new Proxy(throwTombstoneError, {\n apply: throwTombstoneError,\n get: throwTombstoneError,\n has: throwTombstoneError,\n }) as unknown as ExportType;\n}\n"],
|
|
5
|
-
"mappings": "AA0BA,MAAM,mBAAmB;AAAA;AAGzB,MAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmB5B,MAAM,gBAAgB;AAEtB,SAAS,8BAAqC;AAC5C,SAAO,IAAI,MAAM;AAAA;AAAA;AAAA;AAAA,EAIjB,mBAAmB;AAAA;AAAA;AAAA,EAGnB,gBAAgB;AAAA;AAAA,EAEhB,aAAa,EAAE;AACjB;AAEA,SAAS,wBAAwB,EAAE,OAAO,GAA+B;AACvE,SAAO,GAAG,MAAM;AAAA;AAAA;AAAA;AAAA,EAIhB,mBAAmB;AAAA;AAAA;AAGrB;AAEA,SAAS,kBAAkB;AAAA,EACzB;AACF,GAAgC;AAC9B,QAAM,aAAa,sBAChB,IAAI,CAAC,YAAY,kBAAkB,OAAO,EAAE,EAC5C,KAAK,IAAI;AAEZ,SAAO;AAAA;AAAA;AAAA,EAGP,UAAU;AACZ;AAEO,SAAS,qBAAqB;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA6B;AAC3B,MAAI,WAAW,iBAAiB;AAC9B,WAAO,4BAA4B;AAAA,EACrC;AAEA,QAAM,sBAAsB,eAAe;AAAA,IACzC,MAAM;AAAA,IACN;AAAA,EACF;AACA,QAAM,aAAa,MAAM;AACvB,YAAQ,oBAAoB,MAAM;AAAA,MAChC,KAAK;AACH,eAAO;AAAA,EAEb,oBAAoB,qBACpB,YAAY,MAAM,yBAAyB,OAAO,IACpD;AAAA,MACM,KAAK;AACH,eAAO,wBAAwB,EAAE,OAAO,CAAC;AAAA,MAC3C,KAAK;AACH,eAAO,kBAAkB,mBAAmB;AAAA,IAChD;AAAA,EACF,GAAG;AAEH,SAAO,IAAI,MAAM,GAAG,MAAM;AAAA;AAAA,EAE1B,SAAS;AAAA;AAAA;AAAA,EAGT,gBAAgB;AAAA;AAAA,EAEhB,aAAa,EAAE;AACjB;AAEO,SAAS,sBACd,UACY;AACZ,QAAM,sBAAsB,MAAa;AACvC,UAAM,qBAAqB,QAAQ;AAAA,EACrC;AAGA,SAAO,IAAI,MAAM,qBAAqB;AAAA,IACpC,OAAO;AAAA,IACP,KAAK;AAAA,IACL,KAAK;AAAA,EACP,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/lib/url-utils.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../lib/url-utils.ts"],
|
|
4
|
-
"sourcesContent": ["import { canopyTombstoneError } from \"./tombstone\";\n\n/** @deprecated Use a supported public @replohq/sdk API for this domain; buildBaseUrl has no direct replacement. */\nexport function buildBaseUrl(_apiHost: string): string {\n throw canopyTombstoneError({\n symbol: \"buildBaseUrl\",\n subpath: \"lib/url-utils\",\n replacement: {\n kind: \"internal\",\n nearestPublicSubpaths: [\"providers/replo-provider\"],\n },\n });\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,4BAA4B;AAG9B,SAAS,aAAa,UAA0B;AACrD,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,aAAa;AAAA,MACX,MAAM;AAAA,MACN,uBAAuB,CAAC,0BAA0B;AAAA,IACpD;AAAA,EACF,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../loaders/collection-loader.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport type { ReactElement, ReactNode } from \"react\";\nimport type { FullCollection } from \"./loader-schemas\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\ntype CollectionLoaderProps = {\n loaderKey: string;\n handle?: string;\n collectionGid?: string;\n children: (data: FullCollection) => ReactNode;\n fallback?: ReactNode;\n};\n\n/** @deprecated Use CollectionLoader from @replohq/sdk/loaders/collection-loader. */\nexport function CollectionLoader(_props: CollectionLoaderProps): ReactElement {\n throw canopyTombstoneError({\n symbol: \"CollectionLoader\",\n subpath: \"loaders/collection-loader\",\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAKA,SAAS,4BAA4B;AAW9B,SAAS,iBAAiB,QAA6C;AAC5E,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": ["../../loaders/collection-products-loader.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport type { ReactElement, ReactNode } from \"react\";\nimport type { PaginatedProducts } from \"./loader-schemas\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\ntype CollectionProductsLoaderProps = {\n loaderKey: string;\n collectionGid: string;\n first?: number;\n after?: string;\n children: (data: PaginatedProducts) => ReactNode;\n fallback?: ReactNode;\n};\n\n/** @deprecated Use CollectionProductsLoader from @replohq/sdk/loaders/collection-products-loader. */\nexport function CollectionProductsLoader(\n _props: CollectionProductsLoaderProps,\n): ReactElement {\n throw canopyTombstoneError({\n symbol: \"CollectionProductsLoader\",\n subpath: \"loaders/collection-products-loader\",\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAKA,SAAS,4BAA4B;AAY9B,SAAS,yBACd,QACc;AACd,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": ["../../loaders/contentful-entries-loader.tsx"],
|
|
4
|
-
"sourcesContent": ["\"use client\";\n\nimport type { ReactElement, ReactNode } from \"react\";\nimport type { ContentfulEntriesLoaderOutput } from \"./loader-schemas\";\n\nimport { canopyTombstoneError } from \"../lib/tombstone\";\n\ntype ContentfulEntriesLoaderProps = {\n loaderKey: string;\n spaceId: string;\n contentType: string;\n environmentId?: string;\n locale?: string;\n order?: string;\n limit?: number;\n skip?: number;\n include?: number;\n children: (data: ContentfulEntriesLoaderOutput) => ReactNode;\n fallback?: ReactNode;\n};\n\n/** @deprecated Use ContentfulEntriesLoader from @replohq/sdk/loaders/contentful-entries-loader. */\nexport function ContentfulEntriesLoader(\n _props: ContentfulEntriesLoaderProps,\n): ReactElement {\n throw canopyTombstoneError({\n symbol: \"ContentfulEntriesLoader\",\n subpath: \"loaders/contentful-entries-loader\",\n });\n}\n"],
|
|
5
|
-
"mappings": ";AAKA,SAAS,4BAA4B;AAiB9B,SAAS,wBACd,QACc;AACd,QAAM,qBAAqB;AAAA,IACzB,QAAQ;AAAA,IACR,SAAS;AAAA,EACX,CAAC;AACH;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|