@shopify/hydrogen 2026.4.5 → 2026.10.0-preview.2
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/README.md +73 -13
- package/bin/hydrogen.mjs +7 -0
- package/dist/cli/index.mjs +647 -0
- package/dist/client/client.d.mts +34 -0
- package/dist/client/client.mjs +206 -0
- package/dist/client/client.mjs.map +1 -0
- package/dist/client/errors.d.mts +48 -0
- package/dist/client/errors.mjs +52 -0
- package/dist/client/errors.mjs.map +1 -0
- package/dist/client/index.d.mts +4 -0
- package/dist/client/types.d.mts +147 -0
- package/dist/core/analytics/cart-tracker.d.mts +8 -0
- package/dist/core/analytics/cart-tracker.mjs +144 -0
- package/dist/core/analytics/cart-tracker.mjs.map +1 -0
- package/dist/core/analytics/events.d.mts +15 -0
- package/dist/core/analytics/events.mjs +15 -0
- package/dist/core/analytics/events.mjs.map +1 -0
- package/dist/core/analytics/index.d.mts +3 -0
- package/dist/core/analytics/types.d.mts +143 -0
- package/dist/core/analytics/utils/flatten-connection.d.mts +19 -0
- package/dist/core/analytics/utils/flatten-connection.mjs +25 -0
- package/dist/core/analytics/utils/flatten-connection.mjs.map +1 -0
- package/dist/core/cache/cache-status.mjs +17 -0
- package/dist/core/cache/cache-status.mjs.map +1 -0
- package/dist/core/cache/fetch-with-cache.d.mts +43 -0
- package/dist/core/cache/fetch-with-cache.mjs +188 -0
- package/dist/core/cache/fetch-with-cache.mjs.map +1 -0
- package/dist/core/cache/key.d.mts +6 -0
- package/dist/core/cache/key.mjs +27 -0
- package/dist/core/cache/key.mjs.map +1 -0
- package/dist/core/cache/run-with-cache.d.mts +36 -0
- package/dist/core/cache/run-with-cache.mjs +114 -0
- package/dist/core/cache/run-with-cache.mjs.map +1 -0
- package/dist/core/cache/store.d.mts +19 -0
- package/dist/core/cache/store.mjs +62 -0
- package/dist/core/cache/store.mjs.map +1 -0
- package/dist/core/cache/strategies.d.mts +39 -0
- package/dist/core/cache/strategies.mjs +70 -0
- package/dist/core/cache/strategies.mjs.map +1 -0
- package/dist/core/cart/actions.d.mts +50 -0
- package/dist/core/cart/actions.mjs +240 -0
- package/dist/core/cart/actions.mjs.map +1 -0
- package/dist/core/cart/attach-quantity-input.d.mts +5 -0
- package/dist/core/cart/attach-quantity-input.mjs +17 -0
- package/dist/core/cart/attach-quantity-input.mjs.map +1 -0
- package/dist/core/cart/buyer-identity-sync.d.mts +23 -0
- package/dist/core/cart/buyer-identity-sync.mjs +9 -0
- package/dist/core/cart/buyer-identity-sync.mjs.map +1 -0
- package/dist/core/cart/cart.d.mts +37 -0
- package/dist/core/cart/cart.mjs +1707 -0
- package/dist/core/cart/cart.mjs.map +1 -0
- package/dist/core/cart/cookie.d.mts +5 -0
- package/dist/core/cart/cookie.mjs +28 -0
- package/dist/core/cart/cookie.mjs.map +1 -0
- package/dist/core/cart/form.d.mts +130 -0
- package/dist/core/cart/form.mjs +75 -0
- package/dist/core/cart/form.mjs.map +1 -0
- package/dist/core/cart/get-cart.d.mts +25 -0
- package/dist/core/cart/get-cart.mjs +32 -0
- package/dist/core/cart/get-cart.mjs.map +1 -0
- package/dist/core/cart/index.d.mts +10 -0
- package/dist/core/cart/quantity.d.mts +10 -0
- package/dist/core/cart/quantity.mjs +14 -0
- package/dist/core/cart/quantity.mjs.map +1 -0
- package/dist/core/cart/queries.d.mts +4296 -0
- package/dist/core/cart/queries.mjs +70 -0
- package/dist/core/cart/queries.mjs.map +1 -0
- package/dist/core/cart/server-handlers.d.mts +82 -0
- package/dist/core/cart/server-handlers.mjs +322 -0
- package/dist/core/cart/server-handlers.mjs.map +1 -0
- package/dist/core/cart/state.d.mts +137 -0
- package/dist/core/cart/state.mjs +76 -0
- package/dist/core/cart/state.mjs.map +1 -0
- package/dist/core/cart/sync-quantity-inputs.mjs +16 -0
- package/dist/core/cart/sync-quantity-inputs.mjs.map +1 -0
- package/dist/core/collection/collection.d.mts +134 -0
- package/dist/core/collection/collection.mjs +170 -0
- package/dist/core/collection/collection.mjs.map +1 -0
- package/dist/core/collection/index.d.mts +6 -0
- package/dist/core/collection/reconciler.d.mts +32 -0
- package/dist/core/collection/reconciler.mjs +89 -0
- package/dist/core/collection/reconciler.mjs.map +1 -0
- package/dist/core/collection/state.d.mts +66 -0
- package/dist/core/collection/state.mjs +20 -0
- package/dist/core/collection/state.mjs.map +1 -0
- package/dist/core/collection/url.d.mts +71 -0
- package/dist/core/collection/url.mjs +376 -0
- package/dist/core/collection/url.mjs.map +1 -0
- package/dist/core/constants.d.mts +5 -0
- package/dist/core/constants.mjs +8 -0
- package/dist/core/constants.mjs.map +1 -0
- package/dist/core/headers.mjs +43 -0
- package/dist/core/headers.mjs.map +1 -0
- package/dist/core/index.d.mts +56 -0
- package/dist/core/index.mjs +45 -0
- package/dist/core/logging/logging.d.mts +21 -0
- package/dist/core/logging/logging.mjs +99 -0
- package/dist/core/logging/logging.mjs.map +1 -0
- package/dist/core/logging/types.d.mts +40 -0
- package/dist/core/logging/types.mjs +18 -0
- package/dist/core/logging/types.mjs.map +1 -0
- package/dist/core/money/cache.mjs +25 -0
- package/dist/core/money/cache.mjs.map +1 -0
- package/dist/core/money/format.d.mts +15 -0
- package/dist/core/money/format.mjs +243 -0
- package/dist/core/money/format.mjs.map +1 -0
- package/dist/core/money/types.d.mts +47 -0
- package/dist/core/observable.mjs +46 -0
- package/dist/core/observable.mjs.map +1 -0
- package/dist/core/predictive-search/constants.d.mts +5 -0
- package/dist/core/predictive-search/constants.mjs +6 -0
- package/dist/core/predictive-search/constants.mjs.map +1 -0
- package/dist/core/predictive-search/form.d.mts +31 -0
- package/dist/core/predictive-search/form.mjs +31 -0
- package/dist/core/predictive-search/form.mjs.map +1 -0
- package/dist/core/predictive-search/index.d.mts +6 -0
- package/dist/core/predictive-search/queries.d.mts +118 -0
- package/dist/core/predictive-search/queries.mjs +81 -0
- package/dist/core/predictive-search/queries.mjs.map +1 -0
- package/dist/core/predictive-search/search.d.mts +32 -0
- package/dist/core/predictive-search/search.mjs +74 -0
- package/dist/core/predictive-search/search.mjs.map +1 -0
- package/dist/core/predictive-search/server-handlers.d.mts +36 -0
- package/dist/core/predictive-search/server-handlers.mjs +113 -0
- package/dist/core/predictive-search/server-handlers.mjs.map +1 -0
- package/dist/core/predictive-search/store.d.mts +44 -0
- package/dist/core/predictive-search/store.mjs +224 -0
- package/dist/core/predictive-search/store.mjs.map +1 -0
- package/dist/core/predictive-search/url.d.mts +41 -0
- package/dist/core/predictive-search/url.mjs +71 -0
- package/dist/core/predictive-search/url.mjs.map +1 -0
- package/dist/core/product/accept-variant-id.mjs +98 -0
- package/dist/core/product/accept-variant-id.mjs.map +1 -0
- package/dist/core/product/form.d.mts +63 -0
- package/dist/core/product/form.mjs +44 -0
- package/dist/core/product/form.mjs.map +1 -0
- package/dist/core/product/index.d.mts +5 -0
- package/dist/core/product/options.d.mts +43 -0
- package/dist/core/product/options.mjs +296 -0
- package/dist/core/product/options.mjs.map +1 -0
- package/dist/core/product/product-form.d.mts +72 -0
- package/dist/core/product/product-form.mjs +158 -0
- package/dist/core/product/product-form.mjs.map +1 -0
- package/dist/core/product/state.d.mts +68 -0
- package/dist/core/product/url.d.mts +47 -0
- package/dist/core/product/url.mjs +69 -0
- package/dist/core/product/url.mjs.map +1 -0
- package/dist/core/request-context.d.mts +75 -0
- package/dist/core/request-context.mjs +141 -0
- package/dist/core/request-context.mjs.map +1 -0
- package/dist/core/request-routing/handle-shopify-redirects.d.mts +17 -0
- package/dist/core/request-routing/handle-shopify-redirects.mjs +31 -0
- package/dist/core/request-routing/handle-shopify-redirects.mjs.map +1 -0
- package/dist/core/request-routing/handle-shopify-routes.d.mts +14 -0
- package/dist/core/request-routing/handle-shopify-routes.mjs +42 -0
- package/dist/core/request-routing/handle-shopify-routes.mjs.map +1 -0
- package/dist/core/request-routing/interceptors/admin-redirect.mjs +12 -0
- package/dist/core/request-routing/interceptors/admin-redirect.mjs.map +1 -0
- package/dist/core/request-routing/interceptors/ajax-api.mjs +16 -0
- package/dist/core/request-routing/interceptors/ajax-api.mjs.map +1 -0
- package/dist/core/request-routing/interceptors/api-proxy.mjs +20 -0
- package/dist/core/request-routing/interceptors/api-proxy.mjs.map +1 -0
- package/dist/core/request-routing/interceptors/checkout.mjs +58 -0
- package/dist/core/request-routing/interceptors/checkout.mjs.map +1 -0
- package/dist/core/request-routing/interceptors/mcp-proxy.mjs +23 -0
- package/dist/core/request-routing/interceptors/mcp-proxy.mjs.map +1 -0
- package/dist/core/request-routing/interceptors/proxy.mjs +73 -0
- package/dist/core/request-routing/interceptors/proxy.mjs.map +1 -0
- package/dist/core/request-routing/interceptors/query-param-redirect.mjs +22 -0
- package/dist/core/request-routing/interceptors/query-param-redirect.mjs.map +1 -0
- package/dist/core/request-routing/interceptors/sfapi-proxy.mjs +27 -0
- package/dist/core/request-routing/interceptors/sfapi-proxy.mjs.map +1 -0
- package/dist/core/request-routing/interceptors/standard-routes.mjs +19 -0
- package/dist/core/request-routing/interceptors/standard-routes.mjs.map +1 -0
- package/dist/core/request-routing/interceptors/url-redirects.mjs +27 -0
- package/dist/core/request-routing/interceptors/url-redirects.mjs.map +1 -0
- package/dist/core/request-routing/interceptors/well-known.mjs +22 -0
- package/dist/core/request-routing/interceptors/well-known.mjs.map +1 -0
- package/dist/core/request-routing/registered-routes.d.mts +7 -0
- package/dist/core/request-routing/registered-routes.mjs +72 -0
- package/dist/core/request-routing/registered-routes.mjs.map +1 -0
- package/dist/core/request-routing/route-types.d.mts +56 -0
- package/dist/core/request-routing/safe-apply-response-headers.mjs +16 -0
- package/dist/core/request-routing/safe-apply-response-headers.mjs.map +1 -0
- package/dist/core/shop-pay/shop-pay.d.mts +102 -0
- package/dist/core/shop-pay/shop-pay.mjs +289 -0
- package/dist/core/shop-pay/shop-pay.mjs.map +1 -0
- package/dist/core/shopify-scripts/analytics.mjs +26 -0
- package/dist/core/shopify-scripts/analytics.mjs.map +1 -0
- package/dist/core/shopify-scripts/consent.mjs +17 -0
- package/dist/core/shopify-scripts/consent.mjs.map +1 -0
- package/dist/core/shopify-scripts/constants.mjs +19 -0
- package/dist/core/shopify-scripts/constants.mjs.map +1 -0
- package/dist/core/shopify-scripts/deprecated-cookies.mjs +97 -0
- package/dist/core/shopify-scripts/deprecated-cookies.mjs.map +1 -0
- package/dist/core/shopify-scripts/global.d.mts +1 -0
- package/dist/core/shopify-scripts/global.mjs +86 -0
- package/dist/core/shopify-scripts/global.mjs.map +1 -0
- package/dist/core/shopify-scripts/index.d.mts +27 -0
- package/dist/core/shopify-scripts/index.mjs +135 -0
- package/dist/core/shopify-scripts/index.mjs.map +1 -0
- package/dist/core/shopify-scripts/initialize.d.mts +18 -0
- package/dist/core/shopify-scripts/initialize.mjs +27 -0
- package/dist/core/shopify-scripts/initialize.mjs.map +1 -0
- package/dist/core/shopify-scripts/page-view.mjs +49 -0
- package/dist/core/shopify-scripts/page-view.mjs.map +1 -0
- package/dist/core/shopify-scripts/perfkit.mjs +33 -0
- package/dist/core/shopify-scripts/perfkit.mjs.map +1 -0
- package/dist/core/shopify-scripts/render.d.mts +1 -0
- package/dist/core/shopify-scripts/render.mjs +23 -0
- package/dist/core/shopify-scripts/render.mjs.map +1 -0
- package/dist/core/shopify-scripts/types.d.mts +76 -0
- package/dist/core/shopify-scripts/utils/cookie-domain.mjs +43 -0
- package/dist/core/shopify-scripts/utils/cookie-domain.mjs.map +1 -0
- package/dist/core/shopify-scripts/utils/inline-script.mjs +8 -0
- package/dist/core/shopify-scripts/utils/inline-script.mjs.map +1 -0
- package/dist/core/shopify-scripts/utils/navigation.mjs +46 -0
- package/dist/core/shopify-scripts/utils/navigation.mjs.map +1 -0
- package/dist/core/shopify-scripts/utils/tracking-values.mjs +65 -0
- package/dist/core/shopify-scripts/utils/tracking-values.mjs.map +1 -0
- package/dist/core/shopify-scripts/utils/uuid.mjs +17 -0
- package/dist/core/shopify-scripts/utils/uuid.mjs.map +1 -0
- package/dist/core/shopify-scripts/webmcp.mjs +22 -0
- package/dist/core/shopify-scripts/webmcp.mjs.map +1 -0
- package/dist/core/standard-routes/build.d.mts +34 -0
- package/dist/core/standard-routes/build.mjs +54 -0
- package/dist/core/standard-routes/build.mjs.map +1 -0
- package/dist/core/standard-routes/defaults.mjs +31 -0
- package/dist/core/standard-routes/defaults.mjs.map +1 -0
- package/dist/core/standard-routes/match.mjs +108 -0
- package/dist/core/standard-routes/match.mjs.map +1 -0
- package/dist/core/standard-routes/path.mjs +58 -0
- package/dist/core/standard-routes/path.mjs.map +1 -0
- package/dist/core/standard-routes/redirects.mjs +51 -0
- package/dist/core/standard-routes/redirects.mjs.map +1 -0
- package/dist/core/standard-routes/types.d.mts +95 -0
- package/dist/core/url.mjs +42 -0
- package/dist/core/url.mjs.map +1 -0
- package/dist/core/utils/load-script.mjs +34 -0
- package/dist/core/utils/load-script.mjs.map +1 -0
- package/dist/core/utils/parse-gid.mjs +33 -0
- package/dist/core/utils/parse-gid.mjs.map +1 -0
- package/dist/core/utils/record.mjs +8 -0
- package/dist/core/utils/record.mjs.map +1 -0
- package/dist/customer-account/client.d.mts +50 -0
- package/dist/customer-account/client.mjs +239 -0
- package/dist/customer-account/client.mjs.map +1 -0
- package/dist/customer-account/errors.d.mts +28 -0
- package/dist/customer-account/errors.mjs +39 -0
- package/dist/customer-account/errors.mjs.map +1 -0
- package/dist/customer-account/graphql.d.mts +29 -0
- package/dist/customer-account/graphql.mjs +39 -0
- package/dist/customer-account/graphql.mjs.map +1 -0
- package/dist/customer-account/index.d.mts +7 -0
- package/dist/customer-account/index.mjs +7 -0
- package/dist/customer-account/session.d.mts +117 -0
- package/dist/customer-account/session.mjs +733 -0
- package/dist/customer-account/session.mjs.map +1 -0
- package/dist/customer-account/type-resolver.d.mts +11 -0
- package/dist/customer-account-api-types.d.ts +3269 -3270
- package/dist/customer-account.schema.json +50753 -1
- package/dist/development/_virtual/_@oxc-project_runtime@0.127.0/helpers/taggedTemplateLiteral.mjs +7 -0
- package/dist/development/client/client.d.mts +34 -0
- package/dist/development/client/client.mjs +206 -0
- package/dist/development/client/client.mjs.map +1 -0
- package/dist/development/client/errors.d.mts +48 -0
- package/dist/development/client/errors.mjs +57 -0
- package/dist/development/client/errors.mjs.map +1 -0
- package/dist/development/client/index.d.mts +4 -0
- package/dist/development/client/types.d.mts +147 -0
- package/dist/development/core/analytics/cart-tracker.d.mts +8 -0
- package/dist/development/core/analytics/cart-tracker.mjs +144 -0
- package/dist/development/core/analytics/cart-tracker.mjs.map +1 -0
- package/dist/development/core/analytics/events.d.mts +15 -0
- package/dist/development/core/analytics/events.mjs +15 -0
- package/dist/development/core/analytics/events.mjs.map +1 -0
- package/dist/development/core/analytics/index.d.mts +3 -0
- package/dist/development/core/analytics/types.d.mts +143 -0
- package/dist/development/core/analytics/utils/flatten-connection.d.mts +19 -0
- package/dist/development/core/analytics/utils/flatten-connection.mjs +25 -0
- package/dist/development/core/analytics/utils/flatten-connection.mjs.map +1 -0
- package/dist/development/core/cache/cache-status.mjs +17 -0
- package/dist/development/core/cache/cache-status.mjs.map +1 -0
- package/dist/development/core/cache/fetch-with-cache.d.mts +43 -0
- package/dist/development/core/cache/fetch-with-cache.mjs +188 -0
- package/dist/development/core/cache/fetch-with-cache.mjs.map +1 -0
- package/dist/development/core/cache/key.d.mts +6 -0
- package/dist/development/core/cache/key.mjs +27 -0
- package/dist/development/core/cache/key.mjs.map +1 -0
- package/dist/development/core/cache/run-with-cache.d.mts +36 -0
- package/dist/development/core/cache/run-with-cache.mjs +114 -0
- package/dist/development/core/cache/run-with-cache.mjs.map +1 -0
- package/dist/development/core/cache/store.d.mts +19 -0
- package/dist/development/core/cache/store.mjs +62 -0
- package/dist/development/core/cache/store.mjs.map +1 -0
- package/dist/development/core/cache/strategies.d.mts +39 -0
- package/dist/development/core/cache/strategies.mjs +70 -0
- package/dist/development/core/cache/strategies.mjs.map +1 -0
- package/dist/development/core/cart/actions.d.mts +50 -0
- package/dist/development/core/cart/actions.mjs +240 -0
- package/dist/development/core/cart/actions.mjs.map +1 -0
- package/dist/development/core/cart/attach-quantity-input.d.mts +5 -0
- package/dist/development/core/cart/attach-quantity-input.mjs +17 -0
- package/dist/development/core/cart/attach-quantity-input.mjs.map +1 -0
- package/dist/development/core/cart/buyer-identity-sync.d.mts +19 -0
- package/dist/development/core/cart/buyer-identity-sync.mjs +6 -0
- package/dist/development/core/cart/buyer-identity-sync.mjs.map +1 -0
- package/dist/development/core/cart/cart.d.mts +37 -0
- package/dist/development/core/cart/cart.mjs +1707 -0
- package/dist/development/core/cart/cart.mjs.map +1 -0
- package/dist/development/core/cart/cookie.d.mts +5 -0
- package/dist/development/core/cart/cookie.mjs +28 -0
- package/dist/development/core/cart/cookie.mjs.map +1 -0
- package/dist/development/core/cart/form.d.mts +130 -0
- package/dist/development/core/cart/form.mjs +75 -0
- package/dist/development/core/cart/form.mjs.map +1 -0
- package/dist/development/core/cart/get-cart.d.mts +25 -0
- package/dist/development/core/cart/get-cart.mjs +32 -0
- package/dist/development/core/cart/get-cart.mjs.map +1 -0
- package/dist/development/core/cart/index.d.mts +10 -0
- package/dist/development/core/cart/quantity.d.mts +10 -0
- package/dist/development/core/cart/quantity.mjs +14 -0
- package/dist/development/core/cart/quantity.mjs.map +1 -0
- package/dist/development/core/cart/queries.d.mts +4296 -0
- package/dist/development/core/cart/queries.mjs +70 -0
- package/dist/development/core/cart/queries.mjs.map +1 -0
- package/dist/development/core/cart/server-handlers.d.mts +82 -0
- package/dist/development/core/cart/server-handlers.mjs +322 -0
- package/dist/development/core/cart/server-handlers.mjs.map +1 -0
- package/dist/development/core/cart/state.d.mts +137 -0
- package/dist/development/core/cart/state.mjs +76 -0
- package/dist/development/core/cart/state.mjs.map +1 -0
- package/dist/development/core/cart/sync-quantity-inputs.mjs +16 -0
- package/dist/development/core/cart/sync-quantity-inputs.mjs.map +1 -0
- package/dist/development/core/collection/collection.d.mts +134 -0
- package/dist/development/core/collection/collection.mjs +170 -0
- package/dist/development/core/collection/collection.mjs.map +1 -0
- package/dist/development/core/collection/index.d.mts +6 -0
- package/dist/development/core/collection/reconciler.d.mts +32 -0
- package/dist/development/core/collection/reconciler.mjs +89 -0
- package/dist/development/core/collection/reconciler.mjs.map +1 -0
- package/dist/development/core/collection/state.d.mts +66 -0
- package/dist/development/core/collection/state.mjs +20 -0
- package/dist/development/core/collection/state.mjs.map +1 -0
- package/dist/development/core/collection/url.d.mts +71 -0
- package/dist/development/core/collection/url.mjs +376 -0
- package/dist/development/core/collection/url.mjs.map +1 -0
- package/dist/development/core/constants.mjs +7 -0
- package/dist/development/core/constants.mjs.map +1 -0
- package/dist/development/core/development.d.mts +56 -0
- package/dist/development/core/development.mjs +45 -0
- package/dist/development/core/headers.mjs +43 -0
- package/dist/development/core/headers.mjs.map +1 -0
- package/dist/development/core/index.d.mts +54 -0
- package/dist/development/core/logging/logging.d.mts +21 -0
- package/dist/development/core/logging/logging.mjs +99 -0
- package/dist/development/core/logging/logging.mjs.map +1 -0
- package/dist/development/core/logging/types.d.mts +40 -0
- package/dist/development/core/logging/types.mjs +18 -0
- package/dist/development/core/logging/types.mjs.map +1 -0
- package/dist/development/core/money/cache.mjs +25 -0
- package/dist/development/core/money/cache.mjs.map +1 -0
- package/dist/development/core/money/format.d.mts +15 -0
- package/dist/development/core/money/format.mjs +243 -0
- package/dist/development/core/money/format.mjs.map +1 -0
- package/dist/development/core/money/types.d.mts +47 -0
- package/dist/development/core/observable.mjs +46 -0
- package/dist/development/core/observable.mjs.map +1 -0
- package/dist/development/core/predictive-search/constants.d.mts +5 -0
- package/dist/development/core/predictive-search/constants.mjs +6 -0
- package/dist/development/core/predictive-search/constants.mjs.map +1 -0
- package/dist/development/core/predictive-search/form.d.mts +31 -0
- package/dist/development/core/predictive-search/form.mjs +31 -0
- package/dist/development/core/predictive-search/form.mjs.map +1 -0
- package/dist/development/core/predictive-search/index.d.mts +6 -0
- package/dist/development/core/predictive-search/queries.d.mts +118 -0
- package/dist/development/core/predictive-search/queries.mjs +81 -0
- package/dist/development/core/predictive-search/queries.mjs.map +1 -0
- package/dist/development/core/predictive-search/search.d.mts +32 -0
- package/dist/development/core/predictive-search/search.mjs +74 -0
- package/dist/development/core/predictive-search/search.mjs.map +1 -0
- package/dist/development/core/predictive-search/server-handlers.d.mts +36 -0
- package/dist/development/core/predictive-search/server-handlers.mjs +113 -0
- package/dist/development/core/predictive-search/server-handlers.mjs.map +1 -0
- package/dist/development/core/predictive-search/store.d.mts +44 -0
- package/dist/development/core/predictive-search/store.mjs +224 -0
- package/dist/development/core/predictive-search/store.mjs.map +1 -0
- package/dist/development/core/predictive-search/url.d.mts +41 -0
- package/dist/development/core/predictive-search/url.mjs +71 -0
- package/dist/development/core/predictive-search/url.mjs.map +1 -0
- package/dist/development/core/product/accept-variant-id.mjs +98 -0
- package/dist/development/core/product/accept-variant-id.mjs.map +1 -0
- package/dist/development/core/product/form.d.mts +63 -0
- package/dist/development/core/product/form.mjs +44 -0
- package/dist/development/core/product/form.mjs.map +1 -0
- package/dist/development/core/product/index.d.mts +5 -0
- package/dist/development/core/product/options.d.mts +43 -0
- package/dist/development/core/product/options.mjs +296 -0
- package/dist/development/core/product/options.mjs.map +1 -0
- package/dist/development/core/product/product-form.d.mts +72 -0
- package/dist/development/core/product/product-form.mjs +158 -0
- package/dist/development/core/product/product-form.mjs.map +1 -0
- package/dist/development/core/product/state.d.mts +68 -0
- package/dist/development/core/product/url.d.mts +47 -0
- package/dist/development/core/product/url.mjs +69 -0
- package/dist/development/core/product/url.mjs.map +1 -0
- package/dist/development/core/request-context.d.mts +75 -0
- package/dist/development/core/request-context.mjs +141 -0
- package/dist/development/core/request-context.mjs.map +1 -0
- package/dist/development/core/request-routing/handle-shopify-redirects.d.mts +17 -0
- package/dist/development/core/request-routing/handle-shopify-redirects.mjs +31 -0
- package/dist/development/core/request-routing/handle-shopify-redirects.mjs.map +1 -0
- package/dist/development/core/request-routing/handle-shopify-routes.d.mts +1 -0
- package/dist/development/core/request-routing/handle-shopify-routes.development.d.mts +11 -0
- package/dist/development/core/request-routing/handle-shopify-routes.development.mjs +16 -0
- package/dist/development/core/request-routing/handle-shopify-routes.development.mjs.map +1 -0
- package/dist/development/core/request-routing/handle-shopify-routes.mjs +42 -0
- package/dist/development/core/request-routing/handle-shopify-routes.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/admin-redirect.mjs +12 -0
- package/dist/development/core/request-routing/interceptors/admin-redirect.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/ajax-api.mjs +16 -0
- package/dist/development/core/request-routing/interceptors/ajax-api.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/api-proxy.mjs +20 -0
- package/dist/development/core/request-routing/interceptors/api-proxy.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/checkout.mjs +58 -0
- package/dist/development/core/request-routing/interceptors/checkout.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/graphiql.mjs +46 -0
- package/dist/development/core/request-routing/interceptors/graphiql.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/mcp-proxy.mjs +23 -0
- package/dist/development/core/request-routing/interceptors/mcp-proxy.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/proxy.mjs +73 -0
- package/dist/development/core/request-routing/interceptors/proxy.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/query-param-redirect.mjs +22 -0
- package/dist/development/core/request-routing/interceptors/query-param-redirect.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/sfapi-proxy.mjs +27 -0
- package/dist/development/core/request-routing/interceptors/sfapi-proxy.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/standard-routes.mjs +19 -0
- package/dist/development/core/request-routing/interceptors/standard-routes.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/url-redirects.mjs +27 -0
- package/dist/development/core/request-routing/interceptors/url-redirects.mjs.map +1 -0
- package/dist/development/core/request-routing/interceptors/well-known.mjs +22 -0
- package/dist/development/core/request-routing/interceptors/well-known.mjs.map +1 -0
- package/dist/development/core/request-routing/registered-routes.d.mts +7 -0
- package/dist/development/core/request-routing/registered-routes.mjs +72 -0
- package/dist/development/core/request-routing/registered-routes.mjs.map +1 -0
- package/dist/development/core/request-routing/route-types.d.mts +56 -0
- package/dist/development/core/request-routing/safe-apply-response-headers.mjs +16 -0
- package/dist/development/core/request-routing/safe-apply-response-headers.mjs.map +1 -0
- package/dist/development/core/shop-pay/shop-pay.d.mts +102 -0
- package/dist/development/core/shop-pay/shop-pay.mjs +289 -0
- package/dist/development/core/shop-pay/shop-pay.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/analytics.mjs +26 -0
- package/dist/development/core/shopify-scripts/analytics.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/consent.mjs +17 -0
- package/dist/development/core/shopify-scripts/consent.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/constants.mjs +19 -0
- package/dist/development/core/shopify-scripts/constants.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/deprecated-cookies.mjs +97 -0
- package/dist/development/core/shopify-scripts/deprecated-cookies.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/global.d.mts +1 -0
- package/dist/development/core/shopify-scripts/global.mjs +86 -0
- package/dist/development/core/shopify-scripts/global.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/index.d.mts +27 -0
- package/dist/development/core/shopify-scripts/index.mjs +145 -0
- package/dist/development/core/shopify-scripts/index.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/initialize.d.mts +18 -0
- package/dist/development/core/shopify-scripts/initialize.mjs +27 -0
- package/dist/development/core/shopify-scripts/initialize.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/page-view.mjs +49 -0
- package/dist/development/core/shopify-scripts/page-view.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/perfkit.mjs +33 -0
- package/dist/development/core/shopify-scripts/perfkit.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/render.d.mts +1 -0
- package/dist/development/core/shopify-scripts/render.mjs +23 -0
- package/dist/development/core/shopify-scripts/render.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/types.d.mts +76 -0
- package/dist/development/core/shopify-scripts/utils/cookie-domain.mjs +43 -0
- package/dist/development/core/shopify-scripts/utils/cookie-domain.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/utils/inline-script.mjs +8 -0
- package/dist/development/core/shopify-scripts/utils/inline-script.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/utils/navigation.mjs +46 -0
- package/dist/development/core/shopify-scripts/utils/navigation.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/utils/tracking-values.mjs +65 -0
- package/dist/development/core/shopify-scripts/utils/tracking-values.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/utils/uuid.mjs +17 -0
- package/dist/development/core/shopify-scripts/utils/uuid.mjs.map +1 -0
- package/dist/development/core/shopify-scripts/webmcp.mjs +22 -0
- package/dist/development/core/shopify-scripts/webmcp.mjs.map +1 -0
- package/dist/development/core/standard-routes/build.d.mts +34 -0
- package/dist/development/core/standard-routes/build.mjs +54 -0
- package/dist/development/core/standard-routes/build.mjs.map +1 -0
- package/dist/development/core/standard-routes/defaults.mjs +31 -0
- package/dist/development/core/standard-routes/defaults.mjs.map +1 -0
- package/dist/development/core/standard-routes/match.mjs +108 -0
- package/dist/development/core/standard-routes/match.mjs.map +1 -0
- package/dist/development/core/standard-routes/path.mjs +58 -0
- package/dist/development/core/standard-routes/path.mjs.map +1 -0
- package/dist/development/core/standard-routes/redirects.mjs +51 -0
- package/dist/development/core/standard-routes/redirects.mjs.map +1 -0
- package/dist/development/core/standard-routes/types.d.mts +95 -0
- package/dist/development/core/types.d.mts +11 -0
- package/dist/development/core/url.mjs +42 -0
- package/dist/development/core/url.mjs.map +1 -0
- package/dist/development/core/utils/load-script.mjs +34 -0
- package/dist/development/core/utils/load-script.mjs.map +1 -0
- package/dist/development/core/utils/parse-gid.mjs +33 -0
- package/dist/development/core/utils/parse-gid.mjs.map +1 -0
- package/dist/development/customer-account/session.d.mts +46 -0
- package/dist/development/customer-account/session.mjs +21 -0
- package/dist/development/customer-account/session.mjs.map +1 -0
- package/dist/development/globals.d.mts +64 -0
- package/dist/development/graphql/generated/customer-account-api-types.d.mts +13 -0
- package/dist/development/graphql/generated/graphql-env.d.mts +19280 -0
- package/dist/development/graphql/generated/storefront-api-types.d.mts +47 -0
- package/dist/development/graphql/graphql.d.mts +40 -0
- package/dist/development/graphql/graphql.mjs +16 -0
- package/dist/development/graphql/graphql.mjs.map +1 -0
- package/dist/development/graphql/index.d.mts +2 -0
- package/dist/development/graphql/scalars.d.mts +15 -0
- package/dist/development/graphql/type-resolver.d.mts +229 -0
- package/dist/development/react/cart.d.mts +44 -0
- package/dist/development/react/cart.mjs +155 -0
- package/dist/development/react/cart.mjs.map +1 -0
- package/dist/development/react/collection.d.mts +91 -0
- package/dist/development/react/collection.mjs +129 -0
- package/dist/development/react/collection.mjs.map +1 -0
- package/dist/development/react/index.d.mts +13 -0
- package/dist/development/react/index.mjs +10 -0
- package/dist/development/react/predictive-search.d.mts +49 -0
- package/dist/development/react/predictive-search.mjs +133 -0
- package/dist/development/react/predictive-search.mjs.map +1 -0
- package/dist/development/react/product.d.mts +72 -0
- package/dist/development/react/product.mjs +127 -0
- package/dist/development/react/product.mjs.map +1 -0
- package/dist/development/react/shop-pay.d.mts +9 -0
- package/dist/development/react/shop-pay.mjs +16 -0
- package/dist/development/react/shop-pay.mjs.map +1 -0
- package/dist/development/react/shopify-scripts.d.mts +20 -0
- package/dist/development/react/shopify-scripts.mjs +39 -0
- package/dist/development/react/shopify-scripts.mjs.map +1 -0
- package/dist/development/vendor/standard-actions.d.mts +134 -0
- package/dist/development/vendor/standard-events.d.mts +1107 -0
- package/dist/development/vue/cart.d.mts +46 -0
- package/dist/development/vue/cart.mjs +122 -0
- package/dist/development/vue/cart.mjs.map +1 -0
- package/dist/development/vue/collection.d.mts +46 -0
- package/dist/development/vue/collection.mjs +108 -0
- package/dist/development/vue/collection.mjs.map +1 -0
- package/dist/development/vue/index.d.mts +11 -0
- package/dist/development/vue/index.mjs +8 -0
- package/dist/development/vue/predictive-search.d.mts +124 -0
- package/dist/development/vue/predictive-search.mjs +171 -0
- package/dist/development/vue/predictive-search.mjs.map +1 -0
- package/dist/development/vue/product.d.mts +57 -0
- package/dist/development/vue/product.mjs +167 -0
- package/dist/development/vue/product.mjs.map +1 -0
- package/dist/development/vue/shop-pay.d.mts +25 -0
- package/dist/development/vue/shop-pay.mjs +35 -0
- package/dist/development/vue/shop-pay.mjs.map +1 -0
- package/dist/development/vue/shopify-scripts.d.mts +127 -0
- package/dist/development/vue/shopify-scripts.mjs +79 -0
- package/dist/development/vue/shopify-scripts.mjs.map +1 -0
- package/dist/globals.d.mts +64 -0
- package/dist/graphql/generated/customer-account-api-types.d.mts +13 -0
- package/dist/graphql/generated/customer-account-graphql-env.d.mts +22170 -0
- package/dist/graphql/generated/graphql-env.d.mts +19280 -0
- package/dist/graphql/generated/storefront-api-types.d.mts +47 -0
- package/dist/graphql/graphql.d.mts +40 -0
- package/dist/graphql/graphql.mjs +16 -0
- package/dist/graphql/graphql.mjs.map +1 -0
- package/dist/graphql/index.d.mts +2 -0
- package/dist/graphql/scalars.d.mts +26 -0
- package/dist/graphql/type-resolver.d.mts +229 -0
- package/dist/react/cart.d.mts +44 -0
- package/dist/react/cart.mjs +155 -0
- package/dist/react/cart.mjs.map +1 -0
- package/dist/react/collection.d.mts +91 -0
- package/dist/react/collection.mjs +129 -0
- package/dist/react/collection.mjs.map +1 -0
- package/dist/react/index.d.mts +13 -0
- package/dist/react/index.mjs +10 -0
- package/dist/react/predictive-search.d.mts +49 -0
- package/dist/react/predictive-search.mjs +133 -0
- package/dist/react/predictive-search.mjs.map +1 -0
- package/dist/react/product.d.mts +72 -0
- package/dist/react/product.mjs +127 -0
- package/dist/react/product.mjs.map +1 -0
- package/dist/react/shop-pay.d.mts +9 -0
- package/dist/react/shop-pay.mjs +16 -0
- package/dist/react/shop-pay.mjs.map +1 -0
- package/dist/react/shopify-scripts.d.mts +20 -0
- package/dist/react/shopify-scripts.mjs +39 -0
- package/dist/react/shopify-scripts.mjs.map +1 -0
- package/dist/storefront-api-types.d.ts +2351 -2390
- package/dist/storefront.schema.json +41534 -1
- package/dist/ts-plugin/index.cjs +68 -0
- package/dist/ts-plugin/index.cjs.map +1 -0
- package/dist/ts-plugin/index.d.cts +4 -0
- package/dist/vendor/standard-actions.d.mts +134 -0
- package/dist/vendor/standard-events.d.mts +1107 -0
- package/dist/vite/certificate-prompt.mjs +24 -0
- package/dist/vite/certificate-prompt.mjs.map +1 -0
- package/dist/vite/index.d.mts +2 -0
- package/dist/vite/index.mjs +3 -0
- package/dist/vite/local-https.d.mts +47 -0
- package/dist/vite/local-https.mjs +276 -0
- package/dist/vite/local-https.mjs.map +1 -0
- package/dist/vite/mkcert.mjs +141 -0
- package/dist/vite/mkcert.mjs.map +1 -0
- package/dist/vue/cart.d.mts +46 -0
- package/dist/vue/cart.mjs +122 -0
- package/dist/vue/cart.mjs.map +1 -0
- package/dist/vue/collection.d.mts +46 -0
- package/dist/vue/collection.mjs +108 -0
- package/dist/vue/collection.mjs.map +1 -0
- package/dist/vue/index.d.mts +11 -0
- package/dist/vue/index.mjs +8 -0
- package/dist/vue/predictive-search.d.mts +124 -0
- package/dist/vue/predictive-search.mjs +171 -0
- package/dist/vue/predictive-search.mjs.map +1 -0
- package/dist/vue/product.d.mts +57 -0
- package/dist/vue/product.mjs +167 -0
- package/dist/vue/product.mjs.map +1 -0
- package/dist/vue/shop-pay.d.mts +25 -0
- package/dist/vue/shop-pay.mjs +35 -0
- package/dist/vue/shop-pay.mjs.map +1 -0
- package/dist/vue/shopify-scripts.d.mts +127 -0
- package/dist/vue/shopify-scripts.mjs +79 -0
- package/dist/vue/shopify-scripts.mjs.map +1 -0
- package/package.json +116 -86
- package/skills/hydrogen-analytics/SKILL.md +80 -0
- package/skills/hydrogen-analytics/references/react.md +160 -0
- package/skills/hydrogen-analytics/references/vue.md +80 -0
- package/skills/hydrogen-cart-drawer/SKILL.md +248 -0
- package/skills/hydrogen-cart-drawer/references/accessibility.md +109 -0
- package/skills/hydrogen-cart-drawer/references/css.md +67 -0
- package/skills/hydrogen-cart-ui/SKILL.md +224 -0
- package/skills/hydrogen-cart-ui/references/nextjs.md +89 -0
- package/skills/hydrogen-cart-ui/references/react.md +285 -0
- package/skills/hydrogen-cart-ui/references/vue.md +228 -0
- package/skills/hydrogen-collection-browser/SKILL.md +83 -0
- package/skills/hydrogen-collection-browser/references/nextjs.md +118 -0
- package/skills/hydrogen-collection-browser/references/nuxt.md +108 -0
- package/skills/hydrogen-collection-browser/references/react.md +301 -0
- package/skills/hydrogen-customer-account/SKILL.md +107 -0
- package/skills/hydrogen-image/SKILL.md +65 -0
- package/skills/hydrogen-local-https/SKILL.md +142 -0
- package/skills/hydrogen-markets/SKILL.md +221 -0
- package/skills/hydrogen-markets/references/nextjs.md +157 -0
- package/skills/hydrogen-money/SKILL.md +67 -0
- package/skills/hydrogen-oxygen/SKILL.md +245 -0
- package/skills/hydrogen-oxygen/references/react-router.md +230 -0
- package/skills/hydrogen-predictive-search/SKILL.md +130 -0
- package/skills/hydrogen-predictive-search/references/react.md +32 -0
- package/skills/hydrogen-predictive-search/references/vue.md +40 -0
- package/skills/hydrogen-request-handlers/SKILL.md +107 -0
- package/skills/hydrogen-request-handlers/references/frameworks.md +179 -0
- package/skills/hydrogen-request-handlers/references/nextjs.md +137 -0
- package/skills/hydrogen-request-handlers/references/nuxt.md +215 -0
- package/skills/hydrogen-routing/SKILL.md +171 -0
- package/skills/hydrogen-setup/SKILL.md +50 -0
- package/skills/hydrogen-setup/references/analytics.md +624 -0
- package/skills/hydrogen-setup/steps/1-inspect-app.md +62 -0
- package/skills/hydrogen-setup/steps/10-analytics.md +10 -0
- package/skills/hydrogen-setup/steps/11-verify.md +31 -0
- package/skills/hydrogen-setup/steps/2-scaffold.md +86 -0
- package/skills/hydrogen-setup/steps/3-build-home-page.md +37 -0
- package/skills/hydrogen-setup/steps/4-collection-and-search.md +14 -0
- package/skills/hydrogen-setup/steps/5-cart.md +10 -0
- package/skills/hydrogen-setup/steps/6-product-detail-page.md +416 -0
- package/skills/hydrogen-setup/steps/7-shopify-runtime-scripts.md +69 -0
- package/skills/hydrogen-setup/steps/8-cart-drawer-and-navbar.md +35 -0
- package/skills/hydrogen-setup/steps/9-account-page.md +54 -0
- package/skills/hydrogen-shop-pay/SKILL.md +79 -0
- package/skills/hydrogen-shop-pay/references/core.md +66 -0
- package/skills/hydrogen-shop-pay/references/react.md +50 -0
- package/skills/hydrogen-shop-pay/references/vue.md +39 -0
- package/skills/hydrogen-smoke-test/SKILL.md +205 -0
- package/skills/hydrogen-storefront-client/SKILL.md +322 -0
- package/skills/hydrogen-storefront-client/references/astro.md +125 -0
- package/skills/hydrogen-storefront-client/references/caching.md +25 -0
- package/skills/hydrogen-storefront-client/references/nextjs.md +121 -0
- package/skills/hydrogen-storefront-client/references/nuxt.md +121 -0
- package/skills/hydrogen-storefront-client/references/query-validation.md +95 -0
- package/skills/hydrogen-storefront-client/references/react-router.md +81 -0
- package/skills/hydrogen-storefront-client/references/solidstart.md +131 -0
- package/skills/hydrogen-storefront-client/references/sveltekit.md +169 -0
- package/skills/hydrogen-variant-form/SKILL.md +267 -0
- package/skills/hydrogen-variant-form/references/nextjs.md +207 -0
- package/skills/hydrogen-variant-form/references/nuxt.md +95 -0
- package/skills/hydrogen-variant-form/references/react.md +71 -0
- package/dist/dev/get-virtual-routes-H72465VB.js +0 -74
- package/dist/dev/hydrogen-routes.d.ts +0 -5
- package/dist/dev/hydrogen-routes.js +0 -25
- package/dist/development/get-virtual-routes-ACFZHU42.js +0 -71
- package/dist/development/get-virtual-routes-ACFZHU42.js.map +0 -1
- package/dist/development/index.cjs +0 -6978
- package/dist/development/index.cjs.map +0 -1
- package/dist/development/index.js +0 -6631
- package/dist/development/index.js.map +0 -1
- package/dist/development/log-seo-tags-IG37ONQ2.js +0 -74
- package/dist/development/log-seo-tags-IG37ONQ2.js.map +0 -1
- package/dist/development/react-router-preset.d.ts +0 -45
- package/dist/development/react-router-preset.js +0 -49
- package/dist/development/react-router-preset.js.map +0 -1
- package/dist/index.cjs +0 -1
- package/dist/oxygen/index.d.ts +0 -197
- package/dist/oxygen/index.js +0 -107
- package/dist/production/get-virtual-routes-ZZEGQQDV.js +0 -3
- package/dist/production/get-virtual-routes-ZZEGQQDV.js.map +0 -1
- package/dist/production/index.cjs +0 -1019
- package/dist/production/index.cjs.map +0 -1
- package/dist/production/index.d.cts +0 -3260
- package/dist/production/index.d.ts +0 -3260
- package/dist/production/index.js +0 -1019
- package/dist/production/index.js.map +0 -1
- package/dist/production/log-seo-tags-TY72EQWZ.js +0 -2
- package/dist/production/log-seo-tags-TY72EQWZ.js.map +0 -1
- package/dist/production/react-router-preset.d.ts +0 -45
- package/dist/production/react-router-preset.js +0 -11
- package/dist/react-router.d.ts +0 -75
- package/dist/vite/chunk-4O5OI3OO.js +0 -127
- package/dist/vite/chunk-FAQ7TVHC.js +0 -9
- package/dist/vite/chunk-QXBQVDMY.js +0 -68
- package/dist/vite/compat-date.d.ts +0 -3
- package/dist/vite/compat-date.js +0 -6
- package/dist/vite/get-virtual-routes.d.ts +0 -21
- package/dist/vite/get-virtual-routes.js +0 -74
- package/dist/vite/hydrogen-middleware.d.ts +0 -9
- package/dist/vite/hydrogen-middleware.js +0 -7
- package/dist/vite/plugin.d.ts +0 -22
- package/dist/vite/plugin.js +0 -171
- package/dist/vite/request-events.d.ts +0 -144
- package/dist/vite/request-events.js +0 -10
- package/dist/vite/types.d.ts +0 -5
- package/dist/vite/types.js +0 -0
- package/dist/vite/virtual-routes/assets/debug-network.css +0 -609
- package/dist/vite/virtual-routes/assets/favicon-dark.svg +0 -20
- package/dist/vite/virtual-routes/assets/favicon.svg +0 -28
- package/dist/vite/virtual-routes/assets/inter-variable-font.woff2 +0 -0
- package/dist/vite/virtual-routes/assets/jetbrainsmono-variable-font.woff2 +0 -0
- package/dist/vite/virtual-routes/assets/styles.css +0 -249
- package/dist/vite/virtual-routes/components/FlameChartWrapper.jsx +0 -123
- package/dist/vite/virtual-routes/components/HydrogenLogoBaseBW.jsx +0 -32
- package/dist/vite/virtual-routes/components/HydrogenLogoBaseColor.jsx +0 -47
- package/dist/vite/virtual-routes/components/IconBanner.jsx +0 -292
- package/dist/vite/virtual-routes/components/IconClose.jsx +0 -38
- package/dist/vite/virtual-routes/components/IconDiscard.jsx +0 -44
- package/dist/vite/virtual-routes/components/IconError.jsx +0 -61
- package/dist/vite/virtual-routes/components/IconGithub.jsx +0 -23
- package/dist/vite/virtual-routes/components/IconTwitter.jsx +0 -21
- package/dist/vite/virtual-routes/components/Layout.jsx +0 -7
- package/dist/vite/virtual-routes/components/RequestDetails.jsx +0 -171
- package/dist/vite/virtual-routes/components/RequestTable.jsx +0 -91
- package/dist/vite/virtual-routes/components/RequestWaterfall.jsx +0 -151
- package/dist/vite/virtual-routes/layout.jsx +0 -33
- package/dist/vite/virtual-routes/lib/useDebugNetworkServer.jsx +0 -178
- package/dist/vite/virtual-routes/routes/[.]well-known.appspecific.com[.]chrome[.]devtools[.]json.jsx +0 -37
- package/dist/vite/virtual-routes/routes/[.]well-known.appspecific.com[.]chrome[.]devtools[.]json.tsx +0 -79
- package/dist/vite/virtual-routes/routes/graphiql.jsx +0 -5
- package/dist/vite/virtual-routes/routes/index.jsx +0 -265
- package/dist/vite/virtual-routes/routes/subrequest-profiler.jsx +0 -243
- package/dist/vite/virtual-routes/virtual-root-with-layout.jsx +0 -63
- package/dist/vite/virtual-routes/virtual-root.jsx +0 -67
|
@@ -0,0 +1,1107 @@
|
|
|
1
|
+
//#region vendor/standard-events.d.ts
|
|
2
|
+
// version: 977e4f914dd2b3eca85ad01dee81c2c96eb1b2e5
|
|
3
|
+
interface CartAttributesUpdatePayloadDetail {
|
|
4
|
+
[k: string]: unknown;
|
|
5
|
+
}
|
|
6
|
+
interface CartAttributesUpdateResultDetail {
|
|
7
|
+
[k: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
interface CartDiscountUpdatePayloadDetail {
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
interface CartDiscountUpdateResultDetail {
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
interface CartErrorPayloadDetail {
|
|
16
|
+
[k: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
interface CartLinesUpdatePayloadDetail {
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
interface CartLinesUpdateResultDetail {
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
}
|
|
24
|
+
interface CartNoteUpdatePayloadDetail {
|
|
25
|
+
[k: string]: unknown;
|
|
26
|
+
}
|
|
27
|
+
interface CartNoteUpdateResultDetail {
|
|
28
|
+
[k: string]: unknown;
|
|
29
|
+
}
|
|
30
|
+
interface CartViewPayloadDetail {
|
|
31
|
+
[k: string]: unknown;
|
|
32
|
+
}
|
|
33
|
+
interface CollectionUpdatePayloadDetail {
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
interface CollectionUpdateResultDetail {
|
|
37
|
+
[k: string]: unknown;
|
|
38
|
+
}
|
|
39
|
+
interface CollectionViewPayloadDetail {
|
|
40
|
+
[k: string]: unknown;
|
|
41
|
+
}
|
|
42
|
+
interface PageViewPayloadDetail {
|
|
43
|
+
[k: string]: unknown;
|
|
44
|
+
}
|
|
45
|
+
interface ProductSelectPayloadDetail {
|
|
46
|
+
[k: string]: unknown;
|
|
47
|
+
}
|
|
48
|
+
interface ProductSelectResultDetail {
|
|
49
|
+
[k: string]: unknown;
|
|
50
|
+
}
|
|
51
|
+
interface ProductViewPayloadDetail {
|
|
52
|
+
[k: string]: unknown;
|
|
53
|
+
}
|
|
54
|
+
interface SearchUpdatePayloadDetail {
|
|
55
|
+
[k: string]: unknown;
|
|
56
|
+
}
|
|
57
|
+
interface SearchUpdateResultDetail {
|
|
58
|
+
[k: string]: unknown;
|
|
59
|
+
}
|
|
60
|
+
interface CartAttributesUpdatePayload {
|
|
61
|
+
context: "product" | "cart" | "dialog" | "standard-action";
|
|
62
|
+
attributes: {
|
|
63
|
+
key: string;
|
|
64
|
+
value: string;
|
|
65
|
+
}[];
|
|
66
|
+
promise: Promise<CartAttributesUpdateResult>;
|
|
67
|
+
/**
|
|
68
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
69
|
+
*/
|
|
70
|
+
detail?: CartAttributesUpdatePayloadDetail;
|
|
71
|
+
}
|
|
72
|
+
interface CartAttributesUpdateResult {
|
|
73
|
+
cart: {
|
|
74
|
+
id: string;
|
|
75
|
+
totalQuantity: number;
|
|
76
|
+
cost: {
|
|
77
|
+
totalAmount: {
|
|
78
|
+
amount: string;
|
|
79
|
+
currencyCode: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
lines: {
|
|
83
|
+
id: string;
|
|
84
|
+
quantity: number;
|
|
85
|
+
cost: {
|
|
86
|
+
totalAmount: {
|
|
87
|
+
amount: string;
|
|
88
|
+
currencyCode: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}[];
|
|
92
|
+
discountCodes: {
|
|
93
|
+
applicable: boolean;
|
|
94
|
+
code: string;
|
|
95
|
+
}[];
|
|
96
|
+
} | null;
|
|
97
|
+
userErrors?: {
|
|
98
|
+
code?: string;
|
|
99
|
+
field?: string[];
|
|
100
|
+
message: string;
|
|
101
|
+
}[];
|
|
102
|
+
warnings?: {
|
|
103
|
+
code?: string;
|
|
104
|
+
message: string;
|
|
105
|
+
target?: string;
|
|
106
|
+
}[];
|
|
107
|
+
/**
|
|
108
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
109
|
+
*/
|
|
110
|
+
detail?: CartAttributesUpdateResultDetail;
|
|
111
|
+
}
|
|
112
|
+
interface CartDiscountUpdatePayload {
|
|
113
|
+
discountCodes: {
|
|
114
|
+
code: string;
|
|
115
|
+
}[];
|
|
116
|
+
promise: Promise<CartDiscountUpdateResult>;
|
|
117
|
+
/**
|
|
118
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
119
|
+
*/
|
|
120
|
+
detail?: CartDiscountUpdatePayloadDetail;
|
|
121
|
+
}
|
|
122
|
+
interface CartDiscountUpdateResult {
|
|
123
|
+
cart: {
|
|
124
|
+
id: string;
|
|
125
|
+
totalQuantity: number;
|
|
126
|
+
cost: {
|
|
127
|
+
totalAmount: {
|
|
128
|
+
amount: string;
|
|
129
|
+
currencyCode: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
lines: {
|
|
133
|
+
id: string;
|
|
134
|
+
quantity: number;
|
|
135
|
+
cost: {
|
|
136
|
+
totalAmount: {
|
|
137
|
+
amount: string;
|
|
138
|
+
currencyCode: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
}[];
|
|
142
|
+
discountCodes: {
|
|
143
|
+
applicable: boolean;
|
|
144
|
+
code: string;
|
|
145
|
+
}[];
|
|
146
|
+
} | null;
|
|
147
|
+
userErrors?: {
|
|
148
|
+
code?: string;
|
|
149
|
+
field?: string[];
|
|
150
|
+
message: string;
|
|
151
|
+
}[];
|
|
152
|
+
warnings?: {
|
|
153
|
+
code?: string;
|
|
154
|
+
message: string;
|
|
155
|
+
target?: string;
|
|
156
|
+
}[];
|
|
157
|
+
/**
|
|
158
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
159
|
+
*/
|
|
160
|
+
detail?: CartDiscountUpdateResultDetail;
|
|
161
|
+
}
|
|
162
|
+
interface CartErrorPayload {
|
|
163
|
+
error: string;
|
|
164
|
+
code: "ADDRESS_FIELD_CONTAINS_EMOJIS" | "ADDRESS_FIELD_CONTAINS_HTML_TAGS" | "ADDRESS_FIELD_CONTAINS_URL" | "ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERN" | "ADDRESS_FIELD_IS_REQUIRED" | "ADDRESS_FIELD_IS_TOO_LONG" | "BUNDLES_AND_ADDONS_CANNOT_BE_MIXED" | "BUYER_CANNOT_PURCHASE_FOR_COMPANY_LOCATION" | "CART_TOO_LARGE" | "GIFT_CARD_RECIPIENT_INVALID" | "INVALID" | "INVALID_COMPANY_LOCATION" | "INVALID_DELIVERY_ADDRESS_ID" | "INVALID_DELIVERY_GROUP" | "INVALID_DELIVERY_OPTION" | "INVALID_INCREMENT" | "INVALID_MERCHANDISE_LINE" | "INVALID_METAFIELDS" | "INVALID_ZIP_CODE_FOR_COUNTRY" | "INVALID_ZIP_CODE_FOR_PROVINCE" | "LESS_THAN" | "MAXIMUM_EXCEEDED" | "MERCHANDISE_NOT_APPLICABLE" | "MINIMUM_NOT_MET" | "MISSING_CUSTOMER_ACCESS_TOKEN" | "MISSING_DISCOUNT_CODE" | "MISSING_NOTE" | "NOTE_TOO_LONG" | "ONLY_ONE_DELIVERY_ADDRESS_CAN_BE_SELECTED" | "PARENT_LINE_INVALID_REFERENCE" | "PARENT_LINE_NESTING_TOO_DEEP" | "PARENT_LINE_NOT_FOUND" | "PARENT_LINE_OPERATION_BLOCKED" | "PENDING_DELIVERY_GROUPS" | "PROVINCE_NOT_FOUND" | "SELLING_PLAN_NOT_APPLICABLE" | "SERVICE_UNAVAILABLE" | "TOO_MANY_DELIVERY_ADDRESSES" | "UNSPECIFIED_ADDRESS_ERROR" | "VALIDATION_CUSTOM" | "VARIANT_REQUIRES_SELLING_PLAN" | "ZIP_CODE_NOT_SUPPORTED";
|
|
165
|
+
/**
|
|
166
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
167
|
+
*/
|
|
168
|
+
detail?: CartErrorPayloadDetail;
|
|
169
|
+
}
|
|
170
|
+
type CartLinesUpdatePayload = {
|
|
171
|
+
action: "add";
|
|
172
|
+
context: "product" | "cart" | "dialog" | "standard-action";
|
|
173
|
+
/**
|
|
174
|
+
* @minItems 1
|
|
175
|
+
*/
|
|
176
|
+
lines: {
|
|
177
|
+
merchandiseId: string;
|
|
178
|
+
quantity: number;
|
|
179
|
+
}[];
|
|
180
|
+
promise: Promise<CartLinesUpdateResult>;
|
|
181
|
+
/**
|
|
182
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
183
|
+
*/
|
|
184
|
+
detail?: CartLinesUpdatePayloadDetail;
|
|
185
|
+
} | {
|
|
186
|
+
action: "remove";
|
|
187
|
+
context: "product" | "cart" | "dialog" | "standard-action";
|
|
188
|
+
/**
|
|
189
|
+
* @minItems 1
|
|
190
|
+
*/
|
|
191
|
+
lines: {
|
|
192
|
+
id: string;
|
|
193
|
+
quantity: number;
|
|
194
|
+
}[];
|
|
195
|
+
promise: Promise<CartLinesUpdateResult>;
|
|
196
|
+
/**
|
|
197
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
198
|
+
*/
|
|
199
|
+
detail?: CartLinesUpdatePayloadDetail;
|
|
200
|
+
} | {
|
|
201
|
+
action: "update";
|
|
202
|
+
context: "product" | "cart" | "dialog" | "standard-action";
|
|
203
|
+
/**
|
|
204
|
+
* @minItems 1
|
|
205
|
+
*/
|
|
206
|
+
lines: {
|
|
207
|
+
id: string;
|
|
208
|
+
quantity: number;
|
|
209
|
+
}[];
|
|
210
|
+
promise: Promise<CartLinesUpdateResult>;
|
|
211
|
+
/**
|
|
212
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
213
|
+
*/
|
|
214
|
+
detail?: CartLinesUpdatePayloadDetail;
|
|
215
|
+
};
|
|
216
|
+
interface CartLinesUpdateResult {
|
|
217
|
+
cart: {
|
|
218
|
+
id: string;
|
|
219
|
+
totalQuantity: number;
|
|
220
|
+
cost: {
|
|
221
|
+
totalAmount: {
|
|
222
|
+
amount: string;
|
|
223
|
+
currencyCode: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
lines: {
|
|
227
|
+
id: string;
|
|
228
|
+
quantity: number;
|
|
229
|
+
cost: {
|
|
230
|
+
totalAmount: {
|
|
231
|
+
amount: string;
|
|
232
|
+
currencyCode: string;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
}[];
|
|
236
|
+
discountCodes: {
|
|
237
|
+
applicable: boolean;
|
|
238
|
+
code: string;
|
|
239
|
+
}[];
|
|
240
|
+
} | null;
|
|
241
|
+
userErrors?: {
|
|
242
|
+
code?: string;
|
|
243
|
+
field?: string[];
|
|
244
|
+
message: string;
|
|
245
|
+
}[];
|
|
246
|
+
warnings?: {
|
|
247
|
+
code?: string;
|
|
248
|
+
message: string;
|
|
249
|
+
target?: string;
|
|
250
|
+
}[];
|
|
251
|
+
/**
|
|
252
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
253
|
+
*/
|
|
254
|
+
detail?: CartLinesUpdateResultDetail;
|
|
255
|
+
}
|
|
256
|
+
interface CartNoteUpdatePayload {
|
|
257
|
+
context: "product" | "cart" | "dialog" | "standard-action";
|
|
258
|
+
note: string;
|
|
259
|
+
promise: Promise<CartNoteUpdateResult>;
|
|
260
|
+
/**
|
|
261
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
262
|
+
*/
|
|
263
|
+
detail?: CartNoteUpdatePayloadDetail;
|
|
264
|
+
}
|
|
265
|
+
interface CartNoteUpdateResult {
|
|
266
|
+
cart: {
|
|
267
|
+
id: string;
|
|
268
|
+
totalQuantity: number;
|
|
269
|
+
cost: {
|
|
270
|
+
totalAmount: {
|
|
271
|
+
amount: string;
|
|
272
|
+
currencyCode: string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
lines: {
|
|
276
|
+
id: string;
|
|
277
|
+
quantity: number;
|
|
278
|
+
cost: {
|
|
279
|
+
totalAmount: {
|
|
280
|
+
amount: string;
|
|
281
|
+
currencyCode: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
}[];
|
|
285
|
+
discountCodes: {
|
|
286
|
+
applicable: boolean;
|
|
287
|
+
code: string;
|
|
288
|
+
}[];
|
|
289
|
+
} | null;
|
|
290
|
+
userErrors?: {
|
|
291
|
+
code?: string;
|
|
292
|
+
field?: string[];
|
|
293
|
+
message: string;
|
|
294
|
+
}[];
|
|
295
|
+
warnings?: {
|
|
296
|
+
code?: string;
|
|
297
|
+
message: string;
|
|
298
|
+
target?: string;
|
|
299
|
+
}[];
|
|
300
|
+
/**
|
|
301
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
302
|
+
*/
|
|
303
|
+
detail?: CartNoteUpdateResultDetail;
|
|
304
|
+
}
|
|
305
|
+
interface CartSummary {
|
|
306
|
+
id: string;
|
|
307
|
+
totalQuantity: number;
|
|
308
|
+
cost: {
|
|
309
|
+
totalAmount: {
|
|
310
|
+
amount: string;
|
|
311
|
+
currencyCode: string;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
lines: {
|
|
315
|
+
id: string;
|
|
316
|
+
quantity: number;
|
|
317
|
+
cost: {
|
|
318
|
+
totalAmount: {
|
|
319
|
+
amount: string;
|
|
320
|
+
currencyCode: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
}[];
|
|
324
|
+
discountCodes: {
|
|
325
|
+
applicable: boolean;
|
|
326
|
+
code: string;
|
|
327
|
+
}[];
|
|
328
|
+
}
|
|
329
|
+
interface CartViewPayload {
|
|
330
|
+
context: "page" | "dialog";
|
|
331
|
+
cart: {
|
|
332
|
+
id: string;
|
|
333
|
+
totalQuantity: number;
|
|
334
|
+
cost: {
|
|
335
|
+
totalAmount: {
|
|
336
|
+
amount: string;
|
|
337
|
+
currencyCode: string;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
lines: {
|
|
341
|
+
id: string;
|
|
342
|
+
quantity: number;
|
|
343
|
+
cost: {
|
|
344
|
+
totalAmount: {
|
|
345
|
+
amount: string;
|
|
346
|
+
currencyCode: string;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
}[];
|
|
350
|
+
discountCodes: {
|
|
351
|
+
applicable: boolean;
|
|
352
|
+
code: string;
|
|
353
|
+
}[];
|
|
354
|
+
} | null;
|
|
355
|
+
/**
|
|
356
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
357
|
+
*/
|
|
358
|
+
detail?: CartViewPayloadDetail;
|
|
359
|
+
}
|
|
360
|
+
interface CollectionUpdatePayload {
|
|
361
|
+
collection: {
|
|
362
|
+
id: string | null;
|
|
363
|
+
handle: string;
|
|
364
|
+
productsCount: number;
|
|
365
|
+
};
|
|
366
|
+
productFilters?: {
|
|
367
|
+
available?: boolean;
|
|
368
|
+
category?: {
|
|
369
|
+
id: string;
|
|
370
|
+
};
|
|
371
|
+
price?: {
|
|
372
|
+
min?: number;
|
|
373
|
+
max?: number;
|
|
374
|
+
};
|
|
375
|
+
productMetafield?: {
|
|
376
|
+
namespace: string;
|
|
377
|
+
key: string;
|
|
378
|
+
value?: string;
|
|
379
|
+
};
|
|
380
|
+
productType?: string;
|
|
381
|
+
productVendor?: string;
|
|
382
|
+
tag?: string;
|
|
383
|
+
taxonomyMetafield?: {
|
|
384
|
+
key: string;
|
|
385
|
+
value: string;
|
|
386
|
+
};
|
|
387
|
+
variantMetafield?: {
|
|
388
|
+
namespace: string;
|
|
389
|
+
key: string;
|
|
390
|
+
value?: string;
|
|
391
|
+
};
|
|
392
|
+
variantOption?: {
|
|
393
|
+
name: string;
|
|
394
|
+
value?: string;
|
|
395
|
+
};
|
|
396
|
+
}[];
|
|
397
|
+
sortKey?: "BEST_SELLING" | "COLLECTION_DEFAULT" | "CREATED" | "ID" | "MANUAL" | "PRICE" | "RELEVANCE" | "TITLE";
|
|
398
|
+
promise: Promise<CollectionUpdateResult>;
|
|
399
|
+
/**
|
|
400
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
401
|
+
*/
|
|
402
|
+
detail?: CollectionUpdatePayloadDetail;
|
|
403
|
+
}
|
|
404
|
+
interface CollectionUpdateResult {
|
|
405
|
+
productsCount: number;
|
|
406
|
+
/**
|
|
407
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
408
|
+
*/
|
|
409
|
+
detail?: CollectionUpdateResultDetail;
|
|
410
|
+
}
|
|
411
|
+
interface CollectionViewPayload {
|
|
412
|
+
collection: {
|
|
413
|
+
id: string | null;
|
|
414
|
+
handle: string;
|
|
415
|
+
productsCount: number;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
419
|
+
*/
|
|
420
|
+
detail?: CollectionViewPayloadDetail;
|
|
421
|
+
}
|
|
422
|
+
interface PageViewPayload {
|
|
423
|
+
page: {
|
|
424
|
+
template: string;
|
|
425
|
+
title: string;
|
|
426
|
+
url: string;
|
|
427
|
+
};
|
|
428
|
+
/**
|
|
429
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
430
|
+
*/
|
|
431
|
+
detail?: PageViewPayloadDetail;
|
|
432
|
+
}
|
|
433
|
+
interface ProductFilter {
|
|
434
|
+
available?: boolean;
|
|
435
|
+
category?: {
|
|
436
|
+
id: string;
|
|
437
|
+
};
|
|
438
|
+
price?: {
|
|
439
|
+
min?: number;
|
|
440
|
+
max?: number;
|
|
441
|
+
};
|
|
442
|
+
productMetafield?: {
|
|
443
|
+
namespace: string;
|
|
444
|
+
key: string;
|
|
445
|
+
value?: string;
|
|
446
|
+
};
|
|
447
|
+
productType?: string;
|
|
448
|
+
productVendor?: string;
|
|
449
|
+
tag?: string;
|
|
450
|
+
taxonomyMetafield?: {
|
|
451
|
+
key: string;
|
|
452
|
+
value: string;
|
|
453
|
+
};
|
|
454
|
+
variantMetafield?: {
|
|
455
|
+
namespace: string;
|
|
456
|
+
key: string;
|
|
457
|
+
value?: string;
|
|
458
|
+
};
|
|
459
|
+
variantOption?: {
|
|
460
|
+
name: string;
|
|
461
|
+
value?: string;
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
interface ProductSelectPayload {
|
|
465
|
+
product: {
|
|
466
|
+
id: string;
|
|
467
|
+
title: string;
|
|
468
|
+
handle: string;
|
|
469
|
+
};
|
|
470
|
+
/**
|
|
471
|
+
* @minItems 1
|
|
472
|
+
*/
|
|
473
|
+
selectedOptions: {
|
|
474
|
+
name: string;
|
|
475
|
+
value: string;
|
|
476
|
+
}[];
|
|
477
|
+
promise: Promise<ProductSelectResult>;
|
|
478
|
+
/**
|
|
479
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
480
|
+
*/
|
|
481
|
+
detail?: ProductSelectPayloadDetail;
|
|
482
|
+
}
|
|
483
|
+
interface ProductSelectResult {
|
|
484
|
+
variant: {
|
|
485
|
+
id: string;
|
|
486
|
+
title: string;
|
|
487
|
+
availableForSale: boolean;
|
|
488
|
+
price: {
|
|
489
|
+
amount: string;
|
|
490
|
+
currencyCode: string;
|
|
491
|
+
};
|
|
492
|
+
/**
|
|
493
|
+
* @minItems 1
|
|
494
|
+
*/
|
|
495
|
+
selectedOptions: {
|
|
496
|
+
name: string;
|
|
497
|
+
value: string;
|
|
498
|
+
}[];
|
|
499
|
+
} | null;
|
|
500
|
+
/**
|
|
501
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
502
|
+
*/
|
|
503
|
+
detail?: ProductSelectResultDetail;
|
|
504
|
+
}
|
|
505
|
+
interface ProductViewPayload {
|
|
506
|
+
context: "page" | "search" | "collection" | "dialog" | "recommendation";
|
|
507
|
+
selectedOptions: {
|
|
508
|
+
name: string;
|
|
509
|
+
value: string;
|
|
510
|
+
}[];
|
|
511
|
+
product: {
|
|
512
|
+
id: string;
|
|
513
|
+
title: string;
|
|
514
|
+
handle: string;
|
|
515
|
+
selectedVariant: {
|
|
516
|
+
id: string;
|
|
517
|
+
title: string;
|
|
518
|
+
availableForSale: boolean;
|
|
519
|
+
price: {
|
|
520
|
+
amount: string;
|
|
521
|
+
currencyCode: string;
|
|
522
|
+
};
|
|
523
|
+
selectedOptions: {
|
|
524
|
+
name: string;
|
|
525
|
+
value: string;
|
|
526
|
+
}[];
|
|
527
|
+
} | null;
|
|
528
|
+
};
|
|
529
|
+
/**
|
|
530
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
531
|
+
*/
|
|
532
|
+
detail?: ProductViewPayloadDetail;
|
|
533
|
+
}
|
|
534
|
+
interface SearchUpdatePayload {
|
|
535
|
+
search: {
|
|
536
|
+
query: string;
|
|
537
|
+
productFilters?: {
|
|
538
|
+
available?: boolean;
|
|
539
|
+
category?: {
|
|
540
|
+
id: string;
|
|
541
|
+
};
|
|
542
|
+
price?: {
|
|
543
|
+
min?: number;
|
|
544
|
+
max?: number;
|
|
545
|
+
};
|
|
546
|
+
productMetafield?: {
|
|
547
|
+
namespace: string;
|
|
548
|
+
key: string;
|
|
549
|
+
value?: string;
|
|
550
|
+
};
|
|
551
|
+
productType?: string;
|
|
552
|
+
productVendor?: string;
|
|
553
|
+
tag?: string;
|
|
554
|
+
taxonomyMetafield?: {
|
|
555
|
+
key: string;
|
|
556
|
+
value: string;
|
|
557
|
+
};
|
|
558
|
+
variantMetafield?: {
|
|
559
|
+
namespace: string;
|
|
560
|
+
key: string;
|
|
561
|
+
value?: string;
|
|
562
|
+
};
|
|
563
|
+
variantOption?: {
|
|
564
|
+
name: string;
|
|
565
|
+
value?: string;
|
|
566
|
+
};
|
|
567
|
+
}[];
|
|
568
|
+
sortKey?: "RELEVANCE" | "PRICE";
|
|
569
|
+
};
|
|
570
|
+
promise: Promise<SearchUpdateResult>;
|
|
571
|
+
/**
|
|
572
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
573
|
+
*/
|
|
574
|
+
detail?: SearchUpdatePayloadDetail;
|
|
575
|
+
}
|
|
576
|
+
interface SearchUpdateResult {
|
|
577
|
+
totalCount: number;
|
|
578
|
+
/**
|
|
579
|
+
* Optional custom data. Use this to provide additional data for internal use in the theme.
|
|
580
|
+
*/
|
|
581
|
+
detail?: SearchUpdateResultDetail;
|
|
582
|
+
}
|
|
583
|
+
interface StandardStorefrontEventMap {
|
|
584
|
+
"shopify:cart:attributes-update": CartAttributesUpdateEvent;
|
|
585
|
+
"shopify:cart:discount-update": CartDiscountUpdateEvent;
|
|
586
|
+
"shopify:cart:error": CartErrorEvent;
|
|
587
|
+
"shopify:cart:lines-update": CartLinesUpdateEvent;
|
|
588
|
+
"shopify:cart:note-update": CartNoteUpdateEvent;
|
|
589
|
+
"shopify:cart:view": CartViewEvent;
|
|
590
|
+
"shopify:collection:update": CollectionUpdateEvent;
|
|
591
|
+
"shopify:collection:view": CollectionViewEvent;
|
|
592
|
+
"shopify:page:view": PageViewEvent;
|
|
593
|
+
"shopify:product:select": ProductSelectEvent;
|
|
594
|
+
"shopify:product:view": ProductViewEvent;
|
|
595
|
+
"shopify:search:update": SearchUpdateEvent;
|
|
596
|
+
}
|
|
597
|
+
declare global {
|
|
598
|
+
interface ElementEventMap extends StandardStorefrontEventMap {}
|
|
599
|
+
interface DocumentEventMap extends StandardStorefrontEventMap {}
|
|
600
|
+
interface WindowEventMap extends StandardStorefrontEventMap {}
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* Shopify resource types that can be wrapped in a `gid://shopify/...` identifier.
|
|
604
|
+
*/
|
|
605
|
+
type ShopifyResourceType = "Product" | "ProductVariant" | "Cart" | "CartLine" | "Collection" | "SellingPlan";
|
|
606
|
+
declare function createGid<T extends ShopifyResourceType>(resourceType: T, id: string | number): `gid://shopify/${T}/${string}`;
|
|
607
|
+
/** Maps `string` to `string | number` via distribution, preserving `null`/`undefined` in unions. */
|
|
608
|
+
type StringToGidInput<T> = T extends string ? string | number : T;
|
|
609
|
+
/**
|
|
610
|
+
* Recursively replaces `id` and `merchandiseId` fields of type `string` with
|
|
611
|
+
* `string | number` so that event constructors accept raw IDs, numeric IDs,
|
|
612
|
+
* or full GID strings.
|
|
613
|
+
* Distributive over unions, so nullable types (e.g. `T | null`) are handled
|
|
614
|
+
* automatically without special casing.
|
|
615
|
+
*/
|
|
616
|
+
type WithGidInput<T> = T extends Promise<infer R> ? Promise<WithGidInput<R>> : T extends (infer U)[] ? WithGidInput<U>[] : T extends Record<string, any> ? { [K in keyof T]: K extends "id" | "merchandiseId" ? StringToGidInput<T[K]> : WithGidInput<T[K]> } : T;
|
|
617
|
+
/** Raw cart line item from the AJAX API response. */
|
|
618
|
+
interface CartAjaxLine {
|
|
619
|
+
/** AJAX line keys are opaque identifiers; preserve them when available. */
|
|
620
|
+
key: string;
|
|
621
|
+
/** AJAX item variant id; stringified when `key` is unavailable. */
|
|
622
|
+
id: string | number;
|
|
623
|
+
quantity: number;
|
|
624
|
+
final_line_price: number | string;
|
|
625
|
+
[key: string]: unknown;
|
|
626
|
+
}
|
|
627
|
+
/** Raw cart response from the AJAX API. */
|
|
628
|
+
interface CartAjaxResponse {
|
|
629
|
+
token: string;
|
|
630
|
+
item_count: number;
|
|
631
|
+
total_price: number | string;
|
|
632
|
+
currency: string;
|
|
633
|
+
items: CartAjaxLine[];
|
|
634
|
+
discount_codes?: Array<{
|
|
635
|
+
code: string;
|
|
636
|
+
applicable: boolean;
|
|
637
|
+
}>;
|
|
638
|
+
[key: string]: unknown;
|
|
639
|
+
}
|
|
640
|
+
declare function fromAjaxCart(cart: CartAjaxResponse): CartSummary;
|
|
641
|
+
declare function parseProductFilters(searchParams?: URLSearchParams, options?: {
|
|
642
|
+
locale?: string;
|
|
643
|
+
}): ProductFilter[] | undefined;
|
|
644
|
+
declare function getCollectionSortKey(searchParams?: URLSearchParams): CollectionUpdatePayload["sortKey"];
|
|
645
|
+
declare function getSearchSortKey(searchParams?: URLSearchParams): SearchUpdatePayload["search"]["sortKey"];
|
|
646
|
+
declare class ShopifyStandardEvent extends Event {
|
|
647
|
+
static readonly eventName: string;
|
|
648
|
+
static createGid: typeof createGid;
|
|
649
|
+
constructor(type: string, payload: Record<string, any>, options?: EventInit);
|
|
650
|
+
}
|
|
651
|
+
interface PageViewEvent extends PageViewPayload {}
|
|
652
|
+
declare class PageViewEvent extends ShopifyStandardEvent {
|
|
653
|
+
static readonly eventName: "shopify:page:view";
|
|
654
|
+
constructor(payload: PageViewPayload);
|
|
655
|
+
}
|
|
656
|
+
interface ProductViewEvent extends ProductViewPayload {}
|
|
657
|
+
declare class ProductViewEvent extends ShopifyStandardEvent {
|
|
658
|
+
static readonly eventName: "shopify:product:view";
|
|
659
|
+
constructor(payload: WithGidInput<ProductViewPayload>);
|
|
660
|
+
}
|
|
661
|
+
interface ProductSelectEvent extends ProductSelectPayload {}
|
|
662
|
+
declare class ProductSelectEvent extends ShopifyStandardEvent {
|
|
663
|
+
static readonly eventName: "shopify:product:select";
|
|
664
|
+
static createPromise: () => {
|
|
665
|
+
promise: Promise<{
|
|
666
|
+
variant: {
|
|
667
|
+
id: string | number;
|
|
668
|
+
title: string;
|
|
669
|
+
availableForSale: boolean;
|
|
670
|
+
price: {
|
|
671
|
+
amount: string;
|
|
672
|
+
currencyCode: string;
|
|
673
|
+
};
|
|
674
|
+
selectedOptions: {
|
|
675
|
+
name: string;
|
|
676
|
+
value: string;
|
|
677
|
+
}[];
|
|
678
|
+
} | null;
|
|
679
|
+
detail?: any;
|
|
680
|
+
}>;
|
|
681
|
+
resolve: (value: {
|
|
682
|
+
variant: {
|
|
683
|
+
id: string | number;
|
|
684
|
+
title: string;
|
|
685
|
+
availableForSale: boolean;
|
|
686
|
+
price: {
|
|
687
|
+
amount: string;
|
|
688
|
+
currencyCode: string;
|
|
689
|
+
};
|
|
690
|
+
selectedOptions: {
|
|
691
|
+
name: string;
|
|
692
|
+
value: string;
|
|
693
|
+
}[];
|
|
694
|
+
} | null;
|
|
695
|
+
detail?: any;
|
|
696
|
+
}) => void;
|
|
697
|
+
reject: (reason?: any) => void;
|
|
698
|
+
};
|
|
699
|
+
constructor(payload: WithGidInput<ProductSelectPayload>);
|
|
700
|
+
}
|
|
701
|
+
type CartViewInput = WithGidInput<Omit<CartViewPayload, "cart"> & {
|
|
702
|
+
cart: (Omit<NonNullable<CartViewPayload["cart"]>, "id"> & {
|
|
703
|
+
id?: NonNullable<CartViewPayload["cart"]>["id"];
|
|
704
|
+
}) | null;
|
|
705
|
+
}>;
|
|
706
|
+
interface CartViewEvent extends CartViewPayload {}
|
|
707
|
+
declare class CartViewEvent extends ShopifyStandardEvent {
|
|
708
|
+
static readonly eventName: "shopify:cart:view";
|
|
709
|
+
static createCartFromAjaxResponse: typeof fromAjaxCart;
|
|
710
|
+
constructor({
|
|
711
|
+
cart,
|
|
712
|
+
...payload
|
|
713
|
+
}: CartViewInput);
|
|
714
|
+
}
|
|
715
|
+
interface CartErrorEvent extends CartErrorPayload {}
|
|
716
|
+
declare class CartErrorEvent extends ShopifyStandardEvent {
|
|
717
|
+
static readonly eventName: "shopify:cart:error";
|
|
718
|
+
constructor(payload: CartErrorPayload);
|
|
719
|
+
}
|
|
720
|
+
declare class CartLinesUpdateEventImpl<TAction extends CartLinesUpdatePayload["action"] = CartLinesUpdatePayload["action"]> extends ShopifyStandardEvent {
|
|
721
|
+
static readonly eventName: "shopify:cart:lines-update";
|
|
722
|
+
static createPromise: () => {
|
|
723
|
+
promise: Promise<{
|
|
724
|
+
cart: {
|
|
725
|
+
id: string | number;
|
|
726
|
+
totalQuantity: number;
|
|
727
|
+
cost: {
|
|
728
|
+
totalAmount: {
|
|
729
|
+
amount: string;
|
|
730
|
+
currencyCode: string;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
lines: {
|
|
734
|
+
id: string | number;
|
|
735
|
+
quantity: number;
|
|
736
|
+
cost: {
|
|
737
|
+
totalAmount: {
|
|
738
|
+
amount: string;
|
|
739
|
+
currencyCode: string;
|
|
740
|
+
};
|
|
741
|
+
};
|
|
742
|
+
}[];
|
|
743
|
+
discountCodes: {
|
|
744
|
+
applicable: boolean;
|
|
745
|
+
code: string;
|
|
746
|
+
}[];
|
|
747
|
+
} | null;
|
|
748
|
+
userErrors?: {
|
|
749
|
+
code?: string | undefined;
|
|
750
|
+
field?: string[] | undefined;
|
|
751
|
+
message: string;
|
|
752
|
+
}[] | undefined;
|
|
753
|
+
warnings?: {
|
|
754
|
+
code?: string | undefined;
|
|
755
|
+
message: string;
|
|
756
|
+
target?: string | undefined;
|
|
757
|
+
}[] | undefined;
|
|
758
|
+
detail?: any;
|
|
759
|
+
}>;
|
|
760
|
+
resolve: (value: {
|
|
761
|
+
cart: {
|
|
762
|
+
id: string | number;
|
|
763
|
+
totalQuantity: number;
|
|
764
|
+
cost: {
|
|
765
|
+
totalAmount: {
|
|
766
|
+
amount: string;
|
|
767
|
+
currencyCode: string;
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
lines: {
|
|
771
|
+
id: string | number;
|
|
772
|
+
quantity: number;
|
|
773
|
+
cost: {
|
|
774
|
+
totalAmount: {
|
|
775
|
+
amount: string;
|
|
776
|
+
currencyCode: string;
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
}[];
|
|
780
|
+
discountCodes: {
|
|
781
|
+
applicable: boolean;
|
|
782
|
+
code: string;
|
|
783
|
+
}[];
|
|
784
|
+
} | null;
|
|
785
|
+
userErrors?: {
|
|
786
|
+
code?: string | undefined;
|
|
787
|
+
field?: string[] | undefined;
|
|
788
|
+
message: string;
|
|
789
|
+
}[] | undefined;
|
|
790
|
+
warnings?: {
|
|
791
|
+
code?: string | undefined;
|
|
792
|
+
message: string;
|
|
793
|
+
target?: string | undefined;
|
|
794
|
+
}[] | undefined;
|
|
795
|
+
detail?: any;
|
|
796
|
+
}) => void;
|
|
797
|
+
reject: (reason?: any) => void;
|
|
798
|
+
};
|
|
799
|
+
static createCartFromAjaxResponse: typeof fromAjaxCart;
|
|
800
|
+
action: Extract<CartLinesUpdatePayload, {
|
|
801
|
+
action: TAction;
|
|
802
|
+
}>["action"];
|
|
803
|
+
context: Extract<CartLinesUpdatePayload, {
|
|
804
|
+
action: TAction;
|
|
805
|
+
}>["context"];
|
|
806
|
+
lines: Extract<CartLinesUpdatePayload, {
|
|
807
|
+
action: TAction;
|
|
808
|
+
}>["lines"];
|
|
809
|
+
promise: Extract<CartLinesUpdatePayload, {
|
|
810
|
+
action: TAction;
|
|
811
|
+
}>["promise"];
|
|
812
|
+
detail?: Extract<CartLinesUpdatePayload, {
|
|
813
|
+
action: TAction;
|
|
814
|
+
}>["detail"];
|
|
815
|
+
constructor(payload: WithGidInput<Extract<CartLinesUpdatePayload, {
|
|
816
|
+
action: TAction;
|
|
817
|
+
}>>);
|
|
818
|
+
}
|
|
819
|
+
declare const CartLinesUpdateEvent: typeof CartLinesUpdateEventImpl;
|
|
820
|
+
type CartLinesUpdateEvent<TAction extends CartLinesUpdatePayload["action"] = CartLinesUpdatePayload["action"]> = TAction extends CartLinesUpdatePayload["action"] ? CartLinesUpdateEventImpl<TAction> : never;
|
|
821
|
+
interface CartNoteUpdateEvent extends CartNoteUpdatePayload {}
|
|
822
|
+
declare class CartNoteUpdateEvent extends ShopifyStandardEvent {
|
|
823
|
+
static readonly eventName: "shopify:cart:note-update";
|
|
824
|
+
static createCartFromAjaxResponse: typeof fromAjaxCart;
|
|
825
|
+
static createPromise: () => {
|
|
826
|
+
promise: Promise<{
|
|
827
|
+
cart: {
|
|
828
|
+
id: string | number;
|
|
829
|
+
totalQuantity: number;
|
|
830
|
+
cost: {
|
|
831
|
+
totalAmount: {
|
|
832
|
+
amount: string;
|
|
833
|
+
currencyCode: string;
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
lines: {
|
|
837
|
+
id: string | number;
|
|
838
|
+
quantity: number;
|
|
839
|
+
cost: {
|
|
840
|
+
totalAmount: {
|
|
841
|
+
amount: string;
|
|
842
|
+
currencyCode: string;
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
}[];
|
|
846
|
+
discountCodes: {
|
|
847
|
+
applicable: boolean;
|
|
848
|
+
code: string;
|
|
849
|
+
}[];
|
|
850
|
+
} | null;
|
|
851
|
+
userErrors?: {
|
|
852
|
+
code?: string | undefined;
|
|
853
|
+
field?: string[] | undefined;
|
|
854
|
+
message: string;
|
|
855
|
+
}[] | undefined;
|
|
856
|
+
warnings?: {
|
|
857
|
+
code?: string | undefined;
|
|
858
|
+
message: string;
|
|
859
|
+
target?: string | undefined;
|
|
860
|
+
}[] | undefined;
|
|
861
|
+
detail?: any;
|
|
862
|
+
}>;
|
|
863
|
+
resolve: (value: {
|
|
864
|
+
cart: {
|
|
865
|
+
id: string | number;
|
|
866
|
+
totalQuantity: number;
|
|
867
|
+
cost: {
|
|
868
|
+
totalAmount: {
|
|
869
|
+
amount: string;
|
|
870
|
+
currencyCode: string;
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
lines: {
|
|
874
|
+
id: string | number;
|
|
875
|
+
quantity: number;
|
|
876
|
+
cost: {
|
|
877
|
+
totalAmount: {
|
|
878
|
+
amount: string;
|
|
879
|
+
currencyCode: string;
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
}[];
|
|
883
|
+
discountCodes: {
|
|
884
|
+
applicable: boolean;
|
|
885
|
+
code: string;
|
|
886
|
+
}[];
|
|
887
|
+
} | null;
|
|
888
|
+
userErrors?: {
|
|
889
|
+
code?: string | undefined;
|
|
890
|
+
field?: string[] | undefined;
|
|
891
|
+
message: string;
|
|
892
|
+
}[] | undefined;
|
|
893
|
+
warnings?: {
|
|
894
|
+
code?: string | undefined;
|
|
895
|
+
message: string;
|
|
896
|
+
target?: string | undefined;
|
|
897
|
+
}[] | undefined;
|
|
898
|
+
detail?: any;
|
|
899
|
+
}) => void;
|
|
900
|
+
reject: (reason?: any) => void;
|
|
901
|
+
};
|
|
902
|
+
constructor(payload: WithGidInput<CartNoteUpdatePayload>);
|
|
903
|
+
}
|
|
904
|
+
interface CartAttributesUpdateEvent extends CartAttributesUpdatePayload {}
|
|
905
|
+
declare class CartAttributesUpdateEvent extends ShopifyStandardEvent {
|
|
906
|
+
static readonly eventName: "shopify:cart:attributes-update";
|
|
907
|
+
static createCartFromAjaxResponse: typeof fromAjaxCart;
|
|
908
|
+
static createPromise: () => {
|
|
909
|
+
promise: Promise<{
|
|
910
|
+
cart: {
|
|
911
|
+
id: string | number;
|
|
912
|
+
totalQuantity: number;
|
|
913
|
+
cost: {
|
|
914
|
+
totalAmount: {
|
|
915
|
+
amount: string;
|
|
916
|
+
currencyCode: string;
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
lines: {
|
|
920
|
+
id: string | number;
|
|
921
|
+
quantity: number;
|
|
922
|
+
cost: {
|
|
923
|
+
totalAmount: {
|
|
924
|
+
amount: string;
|
|
925
|
+
currencyCode: string;
|
|
926
|
+
};
|
|
927
|
+
};
|
|
928
|
+
}[];
|
|
929
|
+
discountCodes: {
|
|
930
|
+
applicable: boolean;
|
|
931
|
+
code: string;
|
|
932
|
+
}[];
|
|
933
|
+
} | null;
|
|
934
|
+
userErrors?: {
|
|
935
|
+
code?: string | undefined;
|
|
936
|
+
field?: string[] | undefined;
|
|
937
|
+
message: string;
|
|
938
|
+
}[] | undefined;
|
|
939
|
+
warnings?: {
|
|
940
|
+
code?: string | undefined;
|
|
941
|
+
message: string;
|
|
942
|
+
target?: string | undefined;
|
|
943
|
+
}[] | undefined;
|
|
944
|
+
detail?: any;
|
|
945
|
+
}>;
|
|
946
|
+
resolve: (value: {
|
|
947
|
+
cart: {
|
|
948
|
+
id: string | number;
|
|
949
|
+
totalQuantity: number;
|
|
950
|
+
cost: {
|
|
951
|
+
totalAmount: {
|
|
952
|
+
amount: string;
|
|
953
|
+
currencyCode: string;
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
lines: {
|
|
957
|
+
id: string | number;
|
|
958
|
+
quantity: number;
|
|
959
|
+
cost: {
|
|
960
|
+
totalAmount: {
|
|
961
|
+
amount: string;
|
|
962
|
+
currencyCode: string;
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
}[];
|
|
966
|
+
discountCodes: {
|
|
967
|
+
applicable: boolean;
|
|
968
|
+
code: string;
|
|
969
|
+
}[];
|
|
970
|
+
} | null;
|
|
971
|
+
userErrors?: {
|
|
972
|
+
code?: string | undefined;
|
|
973
|
+
field?: string[] | undefined;
|
|
974
|
+
message: string;
|
|
975
|
+
}[] | undefined;
|
|
976
|
+
warnings?: {
|
|
977
|
+
code?: string | undefined;
|
|
978
|
+
message: string;
|
|
979
|
+
target?: string | undefined;
|
|
980
|
+
}[] | undefined;
|
|
981
|
+
detail?: any;
|
|
982
|
+
}) => void;
|
|
983
|
+
reject: (reason?: any) => void;
|
|
984
|
+
};
|
|
985
|
+
constructor(payload: WithGidInput<CartAttributesUpdatePayload>);
|
|
986
|
+
}
|
|
987
|
+
interface CartDiscountUpdateEvent extends CartDiscountUpdatePayload {}
|
|
988
|
+
declare class CartDiscountUpdateEvent extends ShopifyStandardEvent {
|
|
989
|
+
static readonly eventName: "shopify:cart:discount-update";
|
|
990
|
+
static createCartFromAjaxResponse: typeof fromAjaxCart;
|
|
991
|
+
static createPromise: () => {
|
|
992
|
+
promise: Promise<{
|
|
993
|
+
cart: {
|
|
994
|
+
id: string | number;
|
|
995
|
+
totalQuantity: number;
|
|
996
|
+
cost: {
|
|
997
|
+
totalAmount: {
|
|
998
|
+
amount: string;
|
|
999
|
+
currencyCode: string;
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
lines: {
|
|
1003
|
+
id: string | number;
|
|
1004
|
+
quantity: number;
|
|
1005
|
+
cost: {
|
|
1006
|
+
totalAmount: {
|
|
1007
|
+
amount: string;
|
|
1008
|
+
currencyCode: string;
|
|
1009
|
+
};
|
|
1010
|
+
};
|
|
1011
|
+
}[];
|
|
1012
|
+
discountCodes: {
|
|
1013
|
+
applicable: boolean;
|
|
1014
|
+
code: string;
|
|
1015
|
+
}[];
|
|
1016
|
+
} | null;
|
|
1017
|
+
userErrors?: {
|
|
1018
|
+
code?: string | undefined;
|
|
1019
|
+
field?: string[] | undefined;
|
|
1020
|
+
message: string;
|
|
1021
|
+
}[] | undefined;
|
|
1022
|
+
warnings?: {
|
|
1023
|
+
code?: string | undefined;
|
|
1024
|
+
message: string;
|
|
1025
|
+
target?: string | undefined;
|
|
1026
|
+
}[] | undefined;
|
|
1027
|
+
detail?: any;
|
|
1028
|
+
}>;
|
|
1029
|
+
resolve: (value: {
|
|
1030
|
+
cart: {
|
|
1031
|
+
id: string | number;
|
|
1032
|
+
totalQuantity: number;
|
|
1033
|
+
cost: {
|
|
1034
|
+
totalAmount: {
|
|
1035
|
+
amount: string;
|
|
1036
|
+
currencyCode: string;
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
lines: {
|
|
1040
|
+
id: string | number;
|
|
1041
|
+
quantity: number;
|
|
1042
|
+
cost: {
|
|
1043
|
+
totalAmount: {
|
|
1044
|
+
amount: string;
|
|
1045
|
+
currencyCode: string;
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
}[];
|
|
1049
|
+
discountCodes: {
|
|
1050
|
+
applicable: boolean;
|
|
1051
|
+
code: string;
|
|
1052
|
+
}[];
|
|
1053
|
+
} | null;
|
|
1054
|
+
userErrors?: {
|
|
1055
|
+
code?: string | undefined;
|
|
1056
|
+
field?: string[] | undefined;
|
|
1057
|
+
message: string;
|
|
1058
|
+
}[] | undefined;
|
|
1059
|
+
warnings?: {
|
|
1060
|
+
code?: string | undefined;
|
|
1061
|
+
message: string;
|
|
1062
|
+
target?: string | undefined;
|
|
1063
|
+
}[] | undefined;
|
|
1064
|
+
detail?: any;
|
|
1065
|
+
}) => void;
|
|
1066
|
+
reject: (reason?: any) => void;
|
|
1067
|
+
};
|
|
1068
|
+
constructor(payload: WithGidInput<CartDiscountUpdatePayload>);
|
|
1069
|
+
}
|
|
1070
|
+
interface SearchUpdateEvent extends SearchUpdatePayload {}
|
|
1071
|
+
declare class SearchUpdateEvent extends ShopifyStandardEvent {
|
|
1072
|
+
static readonly eventName: "shopify:search:update";
|
|
1073
|
+
static createPromise: () => {
|
|
1074
|
+
promise: Promise<SearchUpdateResult>;
|
|
1075
|
+
resolve: (value: SearchUpdateResult) => void;
|
|
1076
|
+
reject: (reason?: any) => void;
|
|
1077
|
+
};
|
|
1078
|
+
static parseProductFilters: typeof parseProductFilters;
|
|
1079
|
+
static getSortKey: typeof getSearchSortKey;
|
|
1080
|
+
constructor(payload: SearchUpdatePayload);
|
|
1081
|
+
}
|
|
1082
|
+
interface CollectionViewEvent extends CollectionViewPayload {}
|
|
1083
|
+
declare class CollectionViewEvent extends ShopifyStandardEvent {
|
|
1084
|
+
static readonly eventName: "shopify:collection:view";
|
|
1085
|
+
constructor(payload: WithGidInput<CollectionViewPayload>);
|
|
1086
|
+
}
|
|
1087
|
+
interface CollectionUpdateEvent extends CollectionUpdatePayload {}
|
|
1088
|
+
declare class CollectionUpdateEvent extends ShopifyStandardEvent {
|
|
1089
|
+
static readonly eventName: "shopify:collection:update";
|
|
1090
|
+
static createPromise: () => {
|
|
1091
|
+
promise: Promise<{
|
|
1092
|
+
productsCount: number;
|
|
1093
|
+
detail?: any;
|
|
1094
|
+
}>;
|
|
1095
|
+
resolve: (value: {
|
|
1096
|
+
productsCount: number;
|
|
1097
|
+
detail?: any;
|
|
1098
|
+
}) => void;
|
|
1099
|
+
reject: (reason?: any) => void;
|
|
1100
|
+
};
|
|
1101
|
+
static parseProductFilters: typeof parseProductFilters;
|
|
1102
|
+
static getSortKey: typeof getCollectionSortKey;
|
|
1103
|
+
constructor(payload: WithGidInput<CollectionUpdatePayload>);
|
|
1104
|
+
}
|
|
1105
|
+
//#endregion
|
|
1106
|
+
export { ProductFilter };
|
|
1107
|
+
//# sourceMappingURL=standard-events.d.mts.map
|