@rokt/dcui-orchestrator 0.2.1-rc.83 → 0.2.1-rc.84
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/dist/extensions/address-form/src/actions/forms.d.ts +11 -0
- package/dist/extensions/address-form/src/actions/index.d.ts +1 -0
- package/dist/extensions/address-form/src/components/address-form.d.ts +96 -0
- package/dist/extensions/address-form/src/components/edit-address-form-view.d.ts +23 -0
- package/dist/extensions/address-form/src/components/form-button.d.ts +15 -0
- package/dist/extensions/address-form/src/components/input-field.d.ts +34 -0
- package/dist/extensions/address-form/src/index.d.ts +3 -0
- package/dist/extensions/address-form/src/models/form-state.d.ts +1 -0
- package/dist/extensions/address-form/src/models/index.d.ts +1 -0
- package/dist/extensions/address-form/src/reducers/forms.d.ts +4 -0
- package/dist/extensions/address-form/src/reducers/index.d.ts +1 -0
- package/dist/extensions/address-form/src/sagas/cart-service/index.d.ts +1 -0
- package/dist/{libraries/orchestrator → extensions/address-form}/src/sagas/cart-service/sagas.d.ts +5 -12
- package/dist/extensions/address-form/src/sagas/index.d.ts +2 -0
- package/dist/extensions/address-form/src/types.d.ts +63 -0
- package/dist/extensions/address-form/src/utils.d.ts +15 -0
- package/dist/extensions/shimmer-background/src/index.d.ts +10 -0
- package/dist/extensions/shimmer-background/src/shimmer-background.d.ts +11 -0
- package/dist/index.cjs +97 -36
- package/dist/index.js +100 -39
- package/dist/libraries/dcui-components/src/components/action-button/action-button.d.ts +24 -0
- package/dist/libraries/dcui-components/src/components/action-button/factory.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/action-button/index.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/catalog-carousel-collection/hooks.d.ts +7 -0
- package/dist/libraries/{layout-renderer-utils → dcui-components}/src/components/close-button/factory.d.ts +1 -1
- package/dist/libraries/dcui-components/src/components/data-mapper/form-state-projection.d.ts +31 -0
- package/dist/libraries/dcui-components/src/components/data-mapper/index.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/extension/context.d.ts +2 -1
- package/dist/libraries/dcui-components/src/components/extension/models.d.ts +2 -1
- package/dist/libraries/dcui-components/src/components/form/factory.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/form/form.d.ts +24 -0
- package/dist/libraries/dcui-components/src/components/form/index.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/index.d.ts +5 -0
- package/dist/libraries/dcui-components/src/components/layout-timer/index.d.ts +5 -0
- package/dist/libraries/dcui-components/src/components/layout-timer/layout-timer.d.ts +7 -0
- package/dist/libraries/dcui-components/src/components/layout-timer/timer-countdown-provider.d.ts +8 -0
- package/dist/libraries/dcui-components/src/components/layout-timer/use-layout-timer.d.ts +11 -0
- package/dist/libraries/dcui-components/src/components/layout-timer/use-timer-action-dispatch.d.ts +9 -0
- package/dist/libraries/dcui-components/src/components/rich-text/rich-text.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/scrollable-column/scrollable-column.d.ts +1 -1
- package/dist/libraries/dcui-components/src/components/scrollable-row/scrollable-row.d.ts +1 -1
- package/dist/libraries/dcui-components/src/components/style-mapper/get-css-writer.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/style-mapper/transformers/index.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/style-mapper/transformers/scroll-mask-transformer.d.ts +8 -0
- package/dist/libraries/dcui-components/src/components/style-mapper/types.d.ts +2 -2
- package/dist/libraries/dcui-components/src/components/text-input/factory.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/text-input/index.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/text-input/text-input.d.ts +23 -0
- package/dist/libraries/dcui-components/src/components/when/form-state.d.ts +9 -0
- package/dist/libraries/dcui-components/src/contexts/form-context.d.ts +15 -0
- package/dist/libraries/dcui-components/src/contexts/index.d.ts +2 -0
- package/dist/libraries/dcui-components/src/contexts/minimizable-context.d.ts +2 -0
- package/dist/libraries/dcui-components/src/contexts/offer-data-context.d.ts +1 -0
- package/dist/libraries/dcui-components/src/failure-codes.d.ts +1 -0
- package/dist/libraries/dcui-components/src/utils/get-scroll-mask-config.d.ts +20 -0
- package/dist/libraries/dcui-components/src/utils/index.d.ts +2 -0
- package/dist/libraries/dcui-components/src/utils/use-scroll-mask-visibility.d.ts +22 -0
- package/dist/libraries/dcui-schema/src/models/nodes/close-button.d.ts +3 -1
- package/dist/libraries/domain/src/behaviors/cart-item-event.d.ts +7 -12
- package/dist/libraries/domain/src/behaviors/dismiss-overlay.d.ts +9 -0
- package/dist/libraries/domain/src/behaviors/domain-states.d.ts +2 -2
- package/dist/libraries/domain/src/behaviors/form-state.d.ts +66 -0
- package/dist/libraries/domain/src/behaviors/global-actions.d.ts +15 -1
- package/dist/libraries/domain/src/behaviors/index.d.ts +5 -0
- package/dist/libraries/domain/src/behaviors/layout-events.d.ts +17 -0
- package/dist/libraries/domain/src/behaviors/offer-engagement.d.ts +2 -1
- package/dist/libraries/domain/src/behaviors/report-error.d.ts +26 -0
- package/dist/libraries/domain/src/behaviors/send-partner.d.ts +36 -3
- package/dist/libraries/domain/src/behaviors/trigger-action.d.ts +19 -0
- package/dist/libraries/domain/src/models/domain-state-keys.d.ts +5 -0
- package/dist/libraries/domain/src/models/form-state.d.ts +85 -0
- package/dist/libraries/domain/src/models/global-state.d.ts +4 -1
- package/dist/libraries/domain/src/models/index.d.ts +2 -0
- package/dist/libraries/domain/src/models/layout/index.d.ts +1 -0
- package/dist/libraries/domain/src/models/layout/layout-child-config.d.ts +2 -0
- package/dist/libraries/domain/src/models/layout/layout-config.d.ts +2 -2
- package/dist/libraries/domain/src/models/layout/layout-offer.d.ts +2 -0
- package/dist/libraries/domain/src/models/layout/layout-signal-type.d.ts +3 -1
- package/dist/libraries/domain/src/models/layout/layout-transaction-data.d.ts +31 -0
- package/dist/libraries/domain/src/models/partner-event.d.ts +2 -2
- package/dist/libraries/domain/src/models/plugin/index.d.ts +2 -0
- package/dist/libraries/domain/src/models/plugin/plugin-catalog-item-group.d.ts +17 -0
- package/dist/libraries/domain/src/models/plugin/plugin-child-layout-model.d.ts +2 -0
- package/dist/libraries/domain/src/models/plugin/plugin-model.d.ts +3 -3
- package/dist/libraries/domain/src/models/plugin/plugin-offer.d.ts +4 -0
- package/dist/libraries/domain/src/models/plugin/plugin-signal-type.d.ts +4 -1
- package/dist/libraries/domain/src/models/plugin/plugin-transaction-data.d.ts +31 -0
- package/dist/libraries/domain/src/models/purchase.d.ts +54 -0
- package/dist/libraries/domain/src/models/signals.d.ts +14 -6
- package/dist/libraries/layout-renderer-utils/src/actions/domain-states.d.ts +14 -0
- package/dist/libraries/layout-renderer-utils/src/actions/form-states.d.ts +37 -0
- package/dist/libraries/layout-renderer-utils/src/actions/index.d.ts +15 -3
- package/dist/libraries/layout-renderer-utils/src/actions/overlay.d.ts +15 -8
- package/dist/libraries/layout-renderer-utils/src/actions/settings.d.ts +10 -3
- package/dist/libraries/layout-renderer-utils/src/components/index.d.ts +4 -1
- package/dist/libraries/layout-renderer-utils/src/components/minimizable-bottomsheet/connector.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimizable-bottomsheet/drag-handle.d.ts +7 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimizable-bottomsheet/extract-border-styles.d.ts +25 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimizable-bottomsheet/factory.d.ts +13 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimizable-bottomsheet/hooks.d.ts +23 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimizable-bottomsheet/index.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimizable-bottomsheet/minimizable-bottomsheet-wrapper.d.ts +12 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimizable-bottomsheet/minimizable-bottomsheet.d.ts +27 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimizable-bottomsheet/sheet-gesture.d.ts +18 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimizable-bottomsheet/types.d.ts +63 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimize-button/factory.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimize-button/index.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/components/minimize-button/minimize-button.d.ts +12 -0
- package/dist/libraries/layout-renderer-utils/src/components/overlay/overlay.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/components/overlay-wrapper/attached-overlay-wrapper.d.ts +19 -0
- package/dist/libraries/layout-renderer-utils/src/components/overlay-wrapper/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/components/utils.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/constant.d.ts +1 -1
- package/dist/libraries/layout-renderer-utils/src/hooks/useEscToClose.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/fired-events.d.ts +17 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/form-states.d.ts +11 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/index.d.ts +9 -2
- package/dist/libraries/layout-renderer-utils/src/models/state/layout.d.ts +2 -1
- package/dist/libraries/layout-renderer-utils/src/models/state/settings.d.ts +6 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/fired-events/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/fired-events/reducer.d.ts +5 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/form-states/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/form-states/reducer.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/index.d.ts +6 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/settings/reducer.d.ts +3 -3
- package/dist/libraries/layout-renderer-utils/src/sagas/error/error-codes.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/form-states/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/form-states/sagas.d.ts +16 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/index.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/plugin/attached-bottomsheet.d.ts +18 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/plugin/display.d.ts +4 -13
- package/dist/libraries/layout-renderer-utils/src/sagas/plugin/sagas.d.ts +1 -1
- package/dist/libraries/layout-renderer-utils/src/sagas/trigger-action/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/trigger-action/sagas.d.ts +12 -0
- package/dist/libraries/layout-renderer-utils/src/selectors/fired-events/selectors.d.ts +7 -0
- package/dist/libraries/layout-renderer-utils/src/selectors/form-state/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/selectors/form-state/selectors.d.ts +8 -0
- package/dist/libraries/layout-renderer-utils/src/selectors/index.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/utils/signals.d.ts +2 -2
- package/dist/libraries/module-connector/src/main.d.ts +1 -1
- package/dist/libraries/module-connector/src/models/gateway.d.ts +4 -3
- package/dist/libraries/module-connector/src/models/module-connector-builder.d.ts +4 -1
- package/dist/libraries/module-utils/src/actions/child-layouts.d.ts +11 -0
- package/dist/libraries/module-utils/src/actions/dynamic-data.d.ts +7 -0
- package/dist/libraries/module-utils/src/actions/index.d.ts +2 -0
- package/dist/libraries/module-utils/src/index.d.ts +5 -0
- package/dist/libraries/module-utils/src/models/index.d.ts +1 -0
- package/dist/libraries/module-utils/src/models/state/child-layouts.d.ts +4 -0
- package/dist/libraries/module-utils/src/models/state/dynamic-data.d.ts +3 -0
- package/dist/libraries/module-utils/src/models/state/index.d.ts +3 -0
- package/dist/libraries/module-utils/src/models/state/static-data.d.ts +6 -0
- package/dist/libraries/module-utils/src/reducers/child-layouts/index.d.ts +1 -0
- package/dist/libraries/module-utils/src/reducers/child-layouts/reducer.d.ts +5 -0
- package/dist/libraries/module-utils/src/reducers/dynamic-data/index.d.ts +1 -0
- package/dist/libraries/module-utils/src/reducers/dynamic-data/reducer.d.ts +4 -0
- package/dist/libraries/module-utils/src/reducers/index.d.ts +3 -0
- package/dist/libraries/module-utils/src/reducers/static-data/index.d.ts +1 -0
- package/dist/libraries/module-utils/src/reducers/static-data/reducer.d.ts +4 -0
- package/dist/libraries/module-utils/src/sagas/child-layouts/index.d.ts +1 -0
- package/dist/libraries/module-utils/src/sagas/child-layouts/sagas.d.ts +5 -0
- package/dist/libraries/module-utils/src/sagas/error-codes.d.ts +1 -0
- package/dist/libraries/module-utils/src/sagas/index.d.ts +1 -0
- package/dist/libraries/module-utils/src/selectors/child-layouts/index.d.ts +1 -0
- package/dist/libraries/module-utils/src/selectors/child-layouts/selectors.d.ts +4 -0
- package/dist/libraries/module-utils/src/selectors/dynamic-data/index.d.ts +1 -0
- package/dist/libraries/module-utils/src/selectors/dynamic-data/selectors.d.ts +4 -0
- package/dist/libraries/module-utils/src/selectors/index.d.ts +3 -0
- package/dist/libraries/module-utils/src/selectors/static-data/index.d.ts +1 -0
- package/dist/libraries/module-utils/src/selectors/static-data/selectors.d.ts +7 -0
- package/dist/libraries/orchestrator/src/actions/domain-states.d.ts +2 -2
- package/dist/libraries/orchestrator/src/actions/index.d.ts +14 -4
- package/dist/libraries/orchestrator/src/actions/trigger-action.d.ts +2 -0
- package/dist/libraries/orchestrator/src/global-store-proxy.d.ts +2 -0
- package/dist/libraries/orchestrator/src/models/index.d.ts +1 -1
- package/dist/libraries/orchestrator/src/models/state/domain-states.d.ts +2 -2
- package/dist/libraries/orchestrator/src/models/state/index.d.ts +0 -2
- package/dist/libraries/orchestrator/src/reducers/domain-states/reducer.d.ts +2 -1
- package/dist/libraries/orchestrator/src/reducers/index.d.ts +3 -1
- package/dist/libraries/orchestrator/src/sagas/plugin/config-transformer.d.ts +2 -2
- package/dist/libraries/orchestrator/src/sagas/plugin/migrate-schema.d.ts +2 -2
- package/dist/libraries/orchestrator/src/sagas/plugin/migrations/migration-mapper.d.ts +3 -3
- package/dist/libraries/orchestrator/src/sagas/plugin/migrations/v1.0.d.ts +2 -2
- package/dist/libraries/orchestrator/src/sagas/plugin/sagas.d.ts +2 -2
- package/dist/libraries/orchestrator/src/sagas/trigger-action/index.d.ts +1 -0
- package/dist/libraries/orchestrator/src/sagas/trigger-action/sagas.d.ts +3 -0
- package/dist/libraries/orchestrator/src/selectors/domain-state/selectors.d.ts +2 -2
- package/dist/libraries/orchestrator/src/selectors/index.d.ts +1 -1
- package/dist/libraries/plugin-utils/src/translate-config.d.ts +5 -1
- package/dist/libraries/saga-utils/src/sagas/handle-variant-action.d.ts +12 -0
- package/dist/libraries/saga-utils/src/sagas/index.d.ts +1 -0
- package/dist/modules/add-to-cart/src/components/mapped-icons/icon-registry-data.d.ts +10 -0
- package/dist/modules/add-to-cart/src/components/mapped-icons/icon-registry.d.ts +9 -0
- package/dist/modules/add-to-cart/src/components/mapped-icons/mapped-icon.d.ts +15 -0
- package/dist/modules/add-to-cart/src/reducers/index.d.ts +1 -1
- package/dist/modules/add-to-cart/src/sagas/cart-service-response/index.d.ts +1 -0
- package/dist/modules/add-to-cart/src/sagas/cart-service-response/sagas.d.ts +11 -0
- package/dist/modules/add-to-cart/src/sagas/index.d.ts +9 -0
- package/dist/modules/add-to-cart/src/selectors/catalogItems/selectors.d.ts +2 -0
- package/dist/modules/add-to-cart/src/selectors/index.d.ts +1 -1
- package/dist/modules/add-to-cart/src/selectors/offerDataState/index.d.ts +1 -0
- package/dist/modules/add-to-cart/src/selectors/{globalOfferDataState → offerDataState}/selectors.d.ts +1 -1
- package/dist/modules/instant-purchase/src/actions/device-pay.d.ts +60 -0
- package/dist/modules/instant-purchase/src/actions/index.d.ts +2 -0
- package/dist/modules/instant-purchase/src/actions/instant-purchase.d.ts +47 -2
- package/dist/modules/instant-purchase/src/actions/paypal.d.ts +35 -0
- package/dist/modules/instant-purchase/src/channels/channel.d.ts +5 -1
- package/dist/modules/instant-purchase/src/components/catalog-device-pay-button/apple-pay-button.d.ts +36 -0
- package/dist/modules/instant-purchase/src/components/catalog-device-pay-button/catalog-device-pay-button.d.ts +59 -0
- package/dist/modules/instant-purchase/src/components/catalog-device-pay-button/factory.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/catalog-device-pay-button/retryable-device-pay-error.d.ts +1 -0
- package/dist/modules/instant-purchase/src/components/catalog-discount-callout-tag/catalog-discount-callout-tag.d.ts +1 -1
- package/dist/modules/instant-purchase/src/components/catalog-dropdown/catalog-dropdown.d.ts +6 -0
- package/dist/modules/instant-purchase/src/components/catalog-dropdown/dropdown-options-context.d.ts +17 -0
- package/dist/modules/instant-purchase/src/components/catalog-dropdown/factory.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/catalog-imagegallery/catalog-gallery-index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/components/catalog-imagegallery/catalog-image-gallery.d.ts +6 -0
- package/dist/modules/instant-purchase/src/components/catalog-imagegallery/factory.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/catalog-selectors-stacked/catalog-selectors-stacked.d.ts +6 -0
- package/dist/modules/instant-purchase/src/components/catalog-selectors-stacked/factory.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/catalog-thumbnail-gallery/catalog-thumbnail-gallery.d.ts +6 -0
- package/dist/modules/instant-purchase/src/components/catalog-thumbnail-gallery/factory.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/checkout-state-button-trigger/checkout-state-button-trigger.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/{catalog-image-gallery → escapehatch-catalog-image-gallery}/catalog-image-gallery.d.ts +6 -0
- package/dist/modules/instant-purchase/src/components/snackbar/snackbar.d.ts +25 -0
- package/dist/modules/instant-purchase/src/constants/device-pay-error.d.ts +4 -0
- package/dist/modules/instant-purchase/src/constants/device-pay-providers.d.ts +26 -0
- package/dist/modules/instant-purchase/src/constants/index.d.ts +2 -0
- package/dist/modules/instant-purchase/src/models/state/device-pay-availability.d.ts +5 -0
- package/dist/modules/instant-purchase/src/models/state/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/models/state/instant-purchase.d.ts +68 -1
- package/dist/modules/instant-purchase/src/reducers/device-pay-availability/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/reducers/device-pay-availability/reducer.d.ts +4 -0
- package/dist/modules/instant-purchase/src/reducers/index.d.ts +15 -2
- package/dist/modules/instant-purchase/src/reducers/instant-purchase/index.d.ts +2 -0
- package/dist/modules/instant-purchase/src/reducers/instant-purchase/purchase-id/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/reducers/instant-purchase/purchase-id/reducer.d.ts +4 -0
- package/dist/modules/instant-purchase/src/reducers/instant-purchase/tax-and-shipping-data-cache/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/reducers/instant-purchase/tax-and-shipping-data-cache/reducer.d.ts +4 -0
- package/dist/modules/instant-purchase/src/reducers/paypal-purchase-context/index.d.ts +2 -0
- package/dist/modules/instant-purchase/src/reducers/paypal-purchase-context/reducer.d.ts +5 -0
- package/dist/modules/instant-purchase/src/reducers/paypal-transaction-details/index.d.ts +2 -0
- package/dist/modules/instant-purchase/src/reducers/paypal-transaction-details/reducer.d.ts +5 -0
- package/dist/modules/instant-purchase/src/sagas/checkout-lifecycle/sagas.d.ts +1 -1
- package/dist/modules/instant-purchase/src/sagas/device-pay/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/sagas/device-pay/sagas.d.ts +116 -0
- package/dist/modules/instant-purchase/src/sagas/dismiss-overlay/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/sagas/dismiss-overlay/sagas.d.ts +7 -0
- package/dist/modules/instant-purchase/src/sagas/error-codes.d.ts +14 -0
- package/dist/modules/instant-purchase/src/sagas/index.d.ts +14 -1
- package/dist/modules/instant-purchase/src/sagas/instant-purchase/sagas.d.ts +20 -81
- package/dist/modules/instant-purchase/src/sagas/instant-purchase-signals.d.ts +4 -0
- package/dist/modules/instant-purchase/src/sagas/layout-events.d.ts +9 -0
- package/dist/modules/instant-purchase/src/sagas/offer-engagement.d.ts +3 -0
- package/dist/modules/instant-purchase/src/sagas/paypal/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/sagas/paypal/sagas.d.ts +83 -0
- package/dist/modules/instant-purchase/src/sagas/tax-and-shipping/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/sagas/tax-and-shipping/sagas.d.ts +50 -0
- package/dist/modules/instant-purchase/src/sagas/variant-action-overrides.d.ts +11 -0
- package/dist/modules/instant-purchase/src/selectors/creative/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/selectors/creative/selectors.d.ts +5 -0
- package/dist/modules/instant-purchase/src/selectors/device-pay-availability/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/selectors/device-pay-availability/selectors.d.ts +13 -0
- package/dist/modules/instant-purchase/src/selectors/index.d.ts +4 -0
- package/dist/modules/instant-purchase/src/selectors/paypal-transaction-details/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/selectors/paypal-transaction-details/selectors.d.ts +3 -0
- package/dist/modules/instant-purchase/src/selectors/tax-and-shipping/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/selectors/tax-and-shipping/selectors.d.ts +3 -0
- package/dist/modules/instant-purchase/src/utils/create-tax-and-shipping-cache-key.d.ts +4 -0
- package/dist/modules/layouts-xp-sandbox/src/reducers/index.d.ts +1 -1
- package/dist/modules/layouts-xp-sandbox/src/sagas/index.d.ts +9 -0
- package/dist/modules/layouts-xp-sandbox/src/sagas/offer-engagement/sagas.d.ts +1 -1
- package/dist/modules/standard-marketing/src/components/escape-hatch/factory.d.ts +2 -0
- package/dist/modules/standard-marketing/src/components/escape-hatch-checkbox/escape-hatch-checkbox.d.ts +28 -0
- package/dist/modules/standard-marketing/src/reducers/index.d.ts +1 -1
- package/dist/modules/standard-marketing/src/sagas/index.d.ts +9 -0
- package/dist/modules/standard-marketing/src/sagas/offer-engagement/sagas.d.ts +3 -3
- package/node_modules/@rokt/dcui-layout-schema/dist/schema.d.ts +4694 -117
- package/node_modules/@rokt/dcui-layout-schema/dist/schema.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@rokt/dcui-layout-schema/package.json +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.1/index.d.ts +953 -29
- package/node_modules/@rokt/dcui-layout-schema/v0.1/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.10/index.d.ts +1087 -35
- package/node_modules/@rokt/dcui-layout-schema/v0.10/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.11/index.d.ts +1143 -35
- package/node_modules/@rokt/dcui-layout-schema/v0.11/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.12/index.d.ts +1147 -35
- package/node_modules/@rokt/dcui-layout-schema/v0.12/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.13/index.d.ts +1218 -35
- package/node_modules/@rokt/dcui-layout-schema/v0.13/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.14/index.d.ts +1258 -37
- package/node_modules/@rokt/dcui-layout-schema/v0.14/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.15/index.d.ts +1272 -38
- package/node_modules/@rokt/dcui-layout-schema/v0.15/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.16/index.d.ts +1334 -38
- package/node_modules/@rokt/dcui-layout-schema/v0.16/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.17/index.d.ts +1353 -39
- package/node_modules/@rokt/dcui-layout-schema/v0.17/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.18/index.d.ts +1406 -39
- package/node_modules/@rokt/dcui-layout-schema/v0.18/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.19/index.d.ts +1407 -39
- package/node_modules/@rokt/dcui-layout-schema/v0.19/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.2/index.d.ts +1013 -33
- package/node_modules/@rokt/dcui-layout-schema/v0.2/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.20/index.d.ts +1439 -39
- package/node_modules/@rokt/dcui-layout-schema/v0.20/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.21/index.d.ts +1482 -39
- package/node_modules/@rokt/dcui-layout-schema/v0.21/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.22/index.d.ts +1512 -39
- package/node_modules/@rokt/dcui-layout-schema/v0.22/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.23/index.d.ts +1522 -40
- package/node_modules/@rokt/dcui-layout-schema/v0.23/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.3/index.d.ts +1013 -33
- package/node_modules/@rokt/dcui-layout-schema/v0.3/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.4/index.d.ts +1041 -33
- package/node_modules/@rokt/dcui-layout-schema/v0.4/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.5/index.d.ts +1065 -33
- package/node_modules/@rokt/dcui-layout-schema/v0.5/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.6/index.d.ts +1065 -33
- package/node_modules/@rokt/dcui-layout-schema/v0.6/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.7/index.d.ts +1066 -33
- package/node_modules/@rokt/dcui-layout-schema/v0.7/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.8/index.d.ts +1069 -33
- package/node_modules/@rokt/dcui-layout-schema/v0.8/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v0.9/index.d.ts +1070 -33
- package/node_modules/@rokt/dcui-layout-schema/v0.9/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v1.0/index.d.ts +1827 -59
- package/node_modules/@rokt/dcui-layout-schema/v1.0/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v1.1/index.d.ts +1851 -59
- package/node_modules/@rokt/dcui-layout-schema/v1.1/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v1.10/index.d.ts +5322 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.10/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.11/index.d.ts +5486 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.11/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.12/index.d.ts +5496 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.12/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.13/index.d.ts +5498 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.13/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.14/index.d.ts +5828 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.14/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.15/index.d.ts +6085 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.15/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.16/index.d.ts +6324 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.16/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.17/index.d.ts +6439 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.17/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.18/index.d.ts +6439 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.18/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.19/index.d.ts +6439 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.19/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.2/index.d.ts +1861 -59
- package/node_modules/@rokt/dcui-layout-schema/v1.2/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v1.20/index.d.ts +6558 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.20/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.3/index.d.ts +1948 -59
- package/node_modules/@rokt/dcui-layout-schema/v1.3/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v1.4/index.d.ts +2115 -60
- package/node_modules/@rokt/dcui-layout-schema/v1.4/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v1.5/index.d.ts +2137 -60
- package/node_modules/@rokt/dcui-layout-schema/v1.5/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v1.6/index.d.ts +2308 -60
- package/node_modules/@rokt/dcui-layout-schema/v1.6/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v1.7/index.d.ts +2578 -68
- package/node_modules/@rokt/dcui-layout-schema/v1.7/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v1.8/index.d.ts +2680 -68
- package/node_modules/@rokt/dcui-layout-schema/v1.8/index.js +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v1.9/index.d.ts +5222 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.9/index.js +4 -0
- package/node_modules/@rokt/partner-integration/README.md +85 -0
- package/node_modules/@rokt/partner-integration/dist/cart/index.barrel.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/cart/index.d.ts +3 -0
- package/node_modules/@rokt/partner-integration/dist/cart/v1/delete-alert-partner-message-body.d.ts +7 -0
- package/node_modules/@rokt/partner-integration/dist/cart/v1/events.d.ts +23 -0
- package/node_modules/@rokt/partner-integration/dist/cart/v1/index.d.ts +5 -0
- package/node_modules/@rokt/partner-integration/dist/cart/v1/update-cart-item.d.ts +48 -0
- package/node_modules/@rokt/partner-integration/dist/cart/v1/upsert-alert-partner-message-body.d.ts +15 -0
- package/node_modules/@rokt/partner-integration/dist/cart/v1/upsert-delivery-details-message-body.d.ts +12 -0
- package/node_modules/@rokt/partner-integration/dist/cart/v2/cart-item-updated-placement-message-body.d.ts +48 -0
- package/node_modules/@rokt/partner-integration/dist/cart/v2/index.d.ts +4 -0
- package/node_modules/@rokt/partner-integration/dist/cart/v2/partner-message.d.ts +8 -0
- package/node_modules/@rokt/partner-integration/dist/cart/v2/placement-message.d.ts +10 -0
- package/node_modules/@rokt/partner-integration/dist/cart/v2/update-cart-item-partner-message-body.d.ts +4 -0
- package/node_modules/@rokt/partner-integration/dist/core/events.d.ts +45 -0
- package/node_modules/@rokt/partner-integration/dist/core/index.d.ts +1 -0
- package/node_modules/@rokt/partner-integration/dist/delivery-details/delivery-details.d.ts +20 -0
- package/node_modules/@rokt/partner-integration/dist/delivery-details/index.barrel.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/delivery-details/index.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/delivery-details/placement-message.d.ts +10 -0
- package/node_modules/@rokt/partner-integration/dist/extensions/extension-mapping.d.ts +9 -0
- package/node_modules/@rokt/partner-integration/dist/extensions/extension.d.ts +6 -0
- package/node_modules/@rokt/partner-integration/dist/extensions/index.barrel.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/extensions/index.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/index.d.ts +11 -0
- package/node_modules/@rokt/partner-integration/dist/index.js +1 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/cart-item-instant-purchase-message-body.d.ts +6 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/cart-item-instant-purchase-response-message-body.d.ts +11 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/index.barrel.d.ts +5 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/index.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/partner-message.d.ts +8 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/placement-message.d.ts +9 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/v2/index.barrel.d.ts +5 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/v2/index.d.ts +1 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/v2/partner-message.d.ts +8 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/v2/placement-message.d.ts +9 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/v2/upsell-item-instant-purchase-message-body.d.ts +8 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/v2/upsell-item-instant-purchase-response-message-body.d.ts +11 -0
- package/node_modules/@rokt/partner-integration/dist/instant-purchase/v2/upsell-item.d.ts +26 -0
- package/node_modules/@rokt/partner-integration/dist/journey/index.barrel.d.ts +1 -0
- package/node_modules/@rokt/partner-integration/dist/journey/index.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/journey/journey-extension.d.ts +39 -0
- package/node_modules/@rokt/partner-integration/dist/link-navigation/index.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/link-navigation/link-navigation-message.d.ts +9 -0
- package/node_modules/@rokt/partner-integration/dist/link-navigation/link-navigation-request-body.d.ts +3 -0
- package/node_modules/@rokt/partner-integration/dist/partner-validation/events.d.ts +17 -0
- package/node_modules/@rokt/partner-integration/dist/partner-validation/index.barrel.d.ts +4 -0
- package/node_modules/@rokt/partner-integration/dist/partner-validation/index.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/partner-validation/partner-validation-extension.d.ts +7 -0
- package/node_modules/@rokt/partner-integration/dist/partner-validation/partner-validation-status.d.ts +10 -0
- package/node_modules/@rokt/partner-integration/dist/partner-validation/set-partner-validation-status.d.ts +12 -0
- package/node_modules/@rokt/partner-integration/dist/promotions-extension/index.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/promotions-extension/realtime-conversion-promotion-events.d.ts +6 -0
- package/node_modules/@rokt/partner-integration/dist/promotions-extension/realtime-conversion-promotion-payload.d.ts +1 -0
- package/node_modules/@rokt/partner-integration/dist/thank-you-page/index.barrel.d.ts +1 -0
- package/node_modules/@rokt/partner-integration/dist/thank-you-page/index.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/thank-you-page/thank-you-page-extension.d.ts +22 -0
- package/node_modules/@rokt/partner-integration/dist/upsells-offers/index.barrel.d.ts +5 -0
- package/node_modules/@rokt/partner-integration/dist/upsells-offers/index.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/upsells-offers/partner-message.d.ts +9 -0
- package/node_modules/@rokt/partner-integration/dist/upsells-offers/placement-message.d.ts +21 -0
- package/node_modules/@rokt/partner-integration/dist/upsells-offers/upsell-creative-sent-message-body.d.ts +14 -0
- package/node_modules/@rokt/partner-integration/dist/upsells-offers/upsells-offer.d.ts +35 -0
- package/node_modules/@rokt/partner-integration/dist/upsells-offers/upsells-offers-sent-body.d.ts +11 -0
- package/node_modules/@rokt/partner-integration/dist/user-action/index.barrel.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/user-action/index.d.ts +2 -0
- package/node_modules/@rokt/partner-integration/dist/user-action/user-action-event.d.ts +11 -0
- package/node_modules/@rokt/partner-integration/dist/user-action/user-action-extension.d.ts +4 -0
- package/node_modules/@rokt/partner-integration/package.json +34 -0
- package/node_modules/@rokt/plugin/bootstrap/bootstrap.d.ts +1 -2
- package/node_modules/@rokt/plugin/bootstrap/bootstrap.js +5 -30
- package/node_modules/@rokt/plugin/interface/context.d.ts +1 -0
- package/node_modules/@rokt/plugin/interface/display.d.ts +1 -0
- package/node_modules/@rokt/plugin/lib/index.barrel.d.ts +1 -14
- package/node_modules/@rokt/plugin/lib/index.barrel.js +1 -14
- package/node_modules/@rokt/plugin/lib/is-preload-frame.d.ts +1 -1
- package/node_modules/@rokt/plugin/lib/is-preload-frame.js +3 -1
- package/node_modules/@rokt/plugin/lib/plugin-instance.d.ts +13 -27
- package/node_modules/@rokt/plugin/lib/plugin-instance.js +1 -99
- package/node_modules/@rokt/plugin/package.json +15 -16
- package/node_modules/@rokt/plugin/standalone/standalone.d.ts +14 -2
- package/node_modules/@rokt/plugin/standalone/standalone.js +1 -0
- package/node_modules/@rokt/plugin/testing/mock-child-plugin-factory.d.ts +1 -1
- package/node_modules/@rokt/plugin/testing/mock-child-plugin-factory.js +2 -1
- package/node_modules/@rokt/plugin/testing/mock-child-plugin.d.ts +5 -5
- package/node_modules/@rokt/plugin/testing/mock-child-plugin.js +6 -5
- package/node_modules/@rokt/plugin/testing/mock-context.d.ts +18 -17
- package/node_modules/@rokt/plugin/testing/mock-context.js +19 -17
- package/node_modules/@rokt/plugin/testing/mock-display.d.ts +1 -1
- package/node_modules/@rokt/plugin/testing/mock-display.js +2 -1
- package/node_modules/@rokt/plugin/testing/mock-engine.d.ts +1 -2
- package/node_modules/@rokt/plugin/testing/mock-error.d.ts +1 -1
- package/node_modules/@rokt/plugin/testing/mock-error.js +2 -1
- package/node_modules/@rokt/plugin/testing/mock-function.d.ts +1 -0
- package/node_modules/@rokt/plugin/testing/mock-function.js +31 -0
- package/node_modules/@rokt/plugin/testing/mock-metrics.d.ts +4 -4
- package/node_modules/@rokt/plugin/testing/mock-metrics.js +5 -4
- package/node_modules/@rokt/plugin/testing/mock-parent-interaction.d.ts +2 -2
- package/node_modules/@rokt/plugin/testing/mock-parent-interaction.js +3 -2
- package/node_modules/@rokt/plugin/testing/mock-partner-interaction.d.ts +2 -2
- package/node_modules/@rokt/plugin/testing/mock-partner-interaction.js +3 -2
- package/node_modules/@rokt/plugin/testing/mock-rdn.d.ts +3 -3
- package/node_modules/@rokt/plugin/testing/mock-rdn.js +4 -3
- package/node_modules/@rokt/plugin/types/library-loaded.d.ts +0 -2
- package/node_modules/@rokt/plugin/types/library-loaded.js +0 -2
- package/package.json +8 -7
- package/node_modules/@rokt/plugin/lib/bootstrap-v1.d.ts +0 -3
- package/node_modules/@rokt/plugin/lib/bootstrap-v1.js +0 -9
- package/node_modules/@rokt/plugin/lib/child-plugin-factory.d.ts +0 -14
- package/node_modules/@rokt/plugin/lib/child-plugin-factory.js +0 -12
- package/node_modules/@rokt/plugin/lib/child-plugin.d.ts +0 -26
- package/node_modules/@rokt/plugin/lib/child-plugin.js +0 -81
- package/node_modules/@rokt/plugin/lib/context.d.ts +0 -23
- package/node_modules/@rokt/plugin/lib/context.js +0 -95
- package/node_modules/@rokt/plugin/lib/debug.d.ts +0 -19
- package/node_modules/@rokt/plugin/lib/debug.js +0 -36
- package/node_modules/@rokt/plugin/lib/display.d.ts +0 -13
- package/node_modules/@rokt/plugin/lib/display.js +0 -81
- package/node_modules/@rokt/plugin/lib/error.d.ts +0 -9
- package/node_modules/@rokt/plugin/lib/error.js +0 -35
- package/node_modules/@rokt/plugin/lib/is-inside-plugin-container.d.ts +0 -8
- package/node_modules/@rokt/plugin/lib/is-inside-plugin-container.js +0 -6
- package/node_modules/@rokt/plugin/lib/metrics.d.ts +0 -13
- package/node_modules/@rokt/plugin/lib/metrics.js +0 -55
- package/node_modules/@rokt/plugin/lib/parent-interaction.d.ts +0 -13
- package/node_modules/@rokt/plugin/lib/parent-interaction.js +0 -46
- package/node_modules/@rokt/plugin/lib/partner-interaction.d.ts +0 -11
- package/node_modules/@rokt/plugin/lib/partner-interaction.js +0 -35
- package/node_modules/@rokt/plugin/lib/plugin-runtime-connection.d.ts +0 -6
- package/node_modules/@rokt/plugin/lib/plugin-runtime-connection.js +0 -35
- package/node_modules/@rokt/plugin/lib/private-context.d.ts +0 -39
- package/node_modules/@rokt/plugin/lib/private-context.js +0 -76
- package/node_modules/@rokt/plugin/lib/rdn.d.ts +0 -15
- package/node_modules/@rokt/plugin/lib/rdn.js +0 -58
- package/node_modules/@rokt/plugin/lib/sender-receiver.d.ts +0 -5
- package/node_modules/@rokt/plugin/lib/sender-receiver.js +0 -1
- package/node_modules/@rokt/plugin/lib/theme.d.ts +0 -8
- package/node_modules/@rokt/plugin/lib/theme.js +0 -8
- package/node_modules/@rokt/plugin/lib/to-observable.d.ts +0 -4
- package/node_modules/@rokt/plugin/lib/to-observable.js +0 -12
- package/node_modules/@rokt/plugin/lib/unsafe.d.ts +0 -3
- package/node_modules/@rokt/plugin/lib/unsafe.js +0 -2
- package/node_modules/@rokt/plugin/lib/with-error-reporting.d.ts +0 -2
- package/node_modules/@rokt/plugin/lib/with-error-reporting.js +0 -22
- /package/dist/libraries/{layout-renderer-utils → dcui-components}/src/components/close-button/close-button.d.ts +0 -0
- /package/dist/libraries/{layout-renderer-utils → dcui-components}/src/components/close-button/index.d.ts +0 -0
- /package/dist/{modules/add-to-cart/src/selectors/globalOfferDataState → libraries/layout-renderer-utils/src/selectors/fired-events}/index.d.ts +0 -0
- /package/dist/modules/instant-purchase/src/components/{catalog-drop-down → escapehatch-catalog-drop-down}/catalog-drop-down.d.ts +0 -0
- /package/dist/modules/instant-purchase/src/components/{catalog-image-gallery → escapehatch-catalog-image-gallery}/constants.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon registry data (from icon-registry-data.json).
|
|
3
|
+
* Exported as TS so the build includes it in dist without copying JSON.
|
|
4
|
+
*/
|
|
5
|
+
export declare const iconRegistryData: Record<string, Record<string, {
|
|
6
|
+
url: {
|
|
7
|
+
light: string;
|
|
8
|
+
};
|
|
9
|
+
title: string;
|
|
10
|
+
}>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon registry for MappedIcon. Lookup by key and set (host vs tm1); keys are used as provided.
|
|
3
|
+
*/
|
|
4
|
+
export type IconSetName = 'host' | 'tm1';
|
|
5
|
+
export interface IconEntry {
|
|
6
|
+
url: string;
|
|
7
|
+
title: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function getIcon(key: string, iconSet: IconSetName): IconEntry | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IconSetName } from './icon-registry';
|
|
2
|
+
export interface MappedIconModel {
|
|
3
|
+
/** Icon key (resolved by data mapper if placeholder). */
|
|
4
|
+
value?: string;
|
|
5
|
+
/** Which set to use so host and tm1 icons with the same key stay distinct. Defaults to host. */
|
|
6
|
+
iconSet?: IconSetName;
|
|
7
|
+
}
|
|
8
|
+
export interface MappedIconProps {
|
|
9
|
+
schema: MappedIconModel;
|
|
10
|
+
testId?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Renders a single icon by key from the icon registry. Uses iconSet to choose host vs tm1.
|
|
14
|
+
*/
|
|
15
|
+
export declare function MappedIcon({ schema, testId, }: MappedIconProps): JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GlobalActions } from '../../../../libraries/domain/src/behaviors';
|
|
2
|
-
import { ChildLayoutActions, childLayoutsReducer, ChildLayoutsState, StaticData, staticDataReducer } from '
|
|
2
|
+
import { ChildLayoutActions, childLayoutsReducer, ChildLayoutsState, StaticData, staticDataReducer } from '../../../../libraries/module-utils/src/index';
|
|
3
3
|
import { cartReducer } from './cart/reducer';
|
|
4
4
|
import { CartState, UserCreativeResponseHistory } from '../models';
|
|
5
5
|
import { UserCreativeResponseHistoryActions } from '../actions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sagas';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventChannel } from 'redux-saga';
|
|
2
|
+
import { CallEffect, CancelledEffect, ChannelTakeEffect, PutEffect, SelectEffect } from 'redux-saga/effects';
|
|
3
|
+
import { CartItemResponsePayload } from '../../../../../libraries/domain/src/behaviors';
|
|
4
|
+
import { PluginCartItem, PluginCatalogItem } from '../../../../../libraries/domain/src/models';
|
|
5
|
+
import { GlobalGateway } from '../../../../../libraries/module-connector/src/main';
|
|
6
|
+
export declare function createCartServiceResponseChannel(gateway: GlobalGateway): EventChannel<CartItemResponsePayload>;
|
|
7
|
+
export declare function resetDeliveryRequiredCartItems(): Generator<SelectEffect | PutEffect, void, PluginCartItem[] | PluginCatalogItem | Array<{
|
|
8
|
+
cartItemId: string;
|
|
9
|
+
quantity: number;
|
|
10
|
+
}> | boolean | null>;
|
|
11
|
+
export declare function listenForCartServiceResponse(gateway: GlobalGateway): Generator<CallEffect | CancelledEffect | ChannelTakeEffect<CartItemResponsePayload>, void, CartItemResponsePayload>;
|
|
@@ -10,11 +10,20 @@ export declare const sagaActionTypes: {
|
|
|
10
10
|
readonly SEND_PARTNER: "GLOBAL/SEND_PARTNER";
|
|
11
11
|
readonly SET_CUSTOM_STATE: "GLOBAL/SET_CUSTOM_STATE";
|
|
12
12
|
readonly SET_DOMAIN_STATE: "GLOBAL/SET_DOMAIN_STATE";
|
|
13
|
+
readonly LAYOUT_EVENT: "GLOBAL/LAYOUT_EVENT";
|
|
13
14
|
readonly OPEN_LINK: "GLOBAL/OPEN_LINK";
|
|
14
15
|
readonly SET_PARTNER_VALIDATION_STATUS: "GLOBAL/SET_PARTNER_VALIDATION_STATUS";
|
|
15
16
|
readonly SET_GLOBAL_OFFER_DATA_CART: "GLOBAL/SET_GLOBAL_OFFER_DATA_CART";
|
|
16
17
|
readonly LAUNCH_CHILD_LAYOUT: "GLOBAL/LAUNCH_CHILD_LAYOUT";
|
|
17
18
|
readonly INITIATE_CART_ITEM_EVENT: "GLOBAL/CART_ITEM_EVENT/INITIATE";
|
|
18
19
|
readonly CART_ITEM_RESPONSE: "GLOBAL/CART_ITEM_EVENT/RESPONSE";
|
|
20
|
+
readonly DISMISS_OVERLAY: "OVERLAY/DISMISS_OVERLAY";
|
|
21
|
+
readonly TRIGGER_ACTION: "GLOBAL/TRIGGER_ACTION";
|
|
22
|
+
readonly REGISTER_FORM_FIELD: "GLOBAL/REGISTER_FORM_FIELD";
|
|
23
|
+
readonly UNREGISTER_FORM_FIELD: "GLOBAL/UNREGISTER_FORM_FIELD";
|
|
24
|
+
readonly SET_FORM_FIELD_VALUE: "GLOBAL/SET_FORM_FIELD_VALUE";
|
|
25
|
+
readonly SET_FORM_FIELD_TOUCHED: "GLOBAL/SET_FORM_FIELD_TOUCHED";
|
|
26
|
+
readonly VALIDATE_FORM_FIELDS: "GLOBAL/VALIDATE_FORM_FIELDS";
|
|
27
|
+
readonly REPORT_ERROR: "ERROR/REPORT";
|
|
19
28
|
};
|
|
20
29
|
export declare function appSagas(gateway: GlobalGateway, logger: (log: Log) => void): Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").ForkEffect<void>>, void, unknown>;
|
|
@@ -2,6 +2,8 @@ import { AppState } from '../../reducers';
|
|
|
2
2
|
import { PluginCatalogItem } from '../../../../../libraries/domain/src/models';
|
|
3
3
|
export declare function getCatalogItems(state: AppState): Array<PluginCatalogItem> | null;
|
|
4
4
|
export declare function getCatalogItem(state: AppState, catalogItemId: string): PluginCatalogItem | null;
|
|
5
|
+
export declare function getCatalogItemByCartItemId(state: AppState, cartItemId: string): PluginCatalogItem | null;
|
|
5
6
|
export declare function getPreselectedCatalogItems(state: AppState): Array<PluginCatalogItem> | null;
|
|
6
7
|
export declare function getTotalPreselectedQuantity(state: AppState): number;
|
|
7
8
|
export declare function isCatalogItemForcedUpsell(state: AppState, catalogItemId: string): boolean;
|
|
9
|
+
export declare function isDeliveryDetailsRequired(state: AppState, catalogItemId?: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './selectors';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { PluginCatalogItem } from '../../../../libraries/domain/src/models';
|
|
2
|
+
import { PaymentProvider } from '@rokt/dcui-layout-schema';
|
|
3
|
+
import { DevicePayAvailabilityResponse } from '../models';
|
|
4
|
+
import { PurchaseApiResponse } from './instant-purchase';
|
|
5
|
+
export type InitiateDevicePayPayload = {
|
|
6
|
+
catalogItem: PluginCatalogItem;
|
|
7
|
+
quantity: number;
|
|
8
|
+
paymentProvider: PaymentProvider;
|
|
9
|
+
};
|
|
10
|
+
export declare const INITIATE_DEVICE_PAY = "DEVICE_PAY/INITIATE";
|
|
11
|
+
export type InitiateDevicePayAction = {
|
|
12
|
+
type: typeof INITIATE_DEVICE_PAY;
|
|
13
|
+
payload: InitiateDevicePayPayload;
|
|
14
|
+
};
|
|
15
|
+
export declare const DEVICE_PAY_RESPONSE = "DEVICE_PAY/RESPONSE";
|
|
16
|
+
export type DevicePayResponsePayload = {
|
|
17
|
+
success: boolean;
|
|
18
|
+
timestamp: string;
|
|
19
|
+
sessionId: string;
|
|
20
|
+
response?: PurchaseApiResponse;
|
|
21
|
+
error?: {
|
|
22
|
+
code: string;
|
|
23
|
+
message: string;
|
|
24
|
+
};
|
|
25
|
+
cancelled?: boolean;
|
|
26
|
+
retryable?: boolean;
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Context captured at the moment a device pay purchase is initiated.
|
|
31
|
+
* Threading this through to the response action ensures signals are emitted
|
|
32
|
+
* against the correct catalog item even if the Redux selection changes while
|
|
33
|
+
* the payment sheet is open.
|
|
34
|
+
*/
|
|
35
|
+
export type DevicePayPurchaseContext = {
|
|
36
|
+
catalogItem: PluginCatalogItem;
|
|
37
|
+
quantity: number;
|
|
38
|
+
providerId: string;
|
|
39
|
+
};
|
|
40
|
+
export type DevicePayResponse = {
|
|
41
|
+
type: typeof DEVICE_PAY_RESPONSE;
|
|
42
|
+
payload: DevicePayResponsePayload;
|
|
43
|
+
context: DevicePayPurchaseContext;
|
|
44
|
+
};
|
|
45
|
+
export declare const DEVICE_PAY_AVAILABLE = "DEVICE_PAY/AVAILABLE";
|
|
46
|
+
export type DevicePayAvailablePayload = {
|
|
47
|
+
sessionId: string;
|
|
48
|
+
success: boolean;
|
|
49
|
+
response: DevicePayAvailabilityResponse;
|
|
50
|
+
timestamp: string;
|
|
51
|
+
error?: {
|
|
52
|
+
code: string;
|
|
53
|
+
message: string;
|
|
54
|
+
};
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
export type DevicePayAvailableAction = {
|
|
58
|
+
type: typeof DEVICE_PAY_AVAILABLE;
|
|
59
|
+
payload: DevicePayAvailablePayload;
|
|
60
|
+
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { PluginCatalogItem, UpsellItem } from '../../../../libraries/domain/src/models';
|
|
2
2
|
import { InstantPurchase } from '@rokt/partner-integration';
|
|
3
|
-
import { FulfillmentDetailsState, OfferLifecycleEventState } from '../models';
|
|
3
|
+
import { FulfillmentDetailsState, InstantPurchaseTaxAndShippingResponsePayload, OfferLifecycleEventState, INSTANT_PURCHASE_TAX_AND_SHIPPING_RESPONSE, TaxAndShippingEntry } from '../models';
|
|
4
4
|
export type InitiateInstantPurchasePayload = {
|
|
5
5
|
catalogItem: PluginCatalogItem;
|
|
6
6
|
quantity: number;
|
|
7
|
-
useInstantPurchaseExtension?: boolean;
|
|
8
7
|
};
|
|
9
8
|
export type InstantPurchaseWsdkResponsePayload = {
|
|
10
9
|
timestamp: string;
|
|
@@ -37,6 +36,13 @@ export interface ShippingDetails {
|
|
|
37
36
|
method: string;
|
|
38
37
|
message: string;
|
|
39
38
|
}
|
|
39
|
+
export interface PushTaxAndShippingPayload {
|
|
40
|
+
cacheKey: string;
|
|
41
|
+
taxAndShippingEntry: TaxAndShippingEntry;
|
|
42
|
+
}
|
|
43
|
+
export interface MarkTaxAndShippingPendingPayload {
|
|
44
|
+
cacheKey: string;
|
|
45
|
+
}
|
|
40
46
|
export declare const INITIATE_INSTANT_PURCHASE = "INSTANT_PURCHASE/INITIATE";
|
|
41
47
|
export type InitiateInstantPurchase = {
|
|
42
48
|
type: typeof INITIATE_INSTANT_PURCHASE;
|
|
@@ -47,6 +53,11 @@ export type InstantPurchasePartnerResponse = {
|
|
|
47
53
|
type: typeof INSTANT_PURCHASE_PARTNER_RESPONSE;
|
|
48
54
|
payload: InstantPurchase.CartItemInstantPurchaseResponseMessageBody;
|
|
49
55
|
};
|
|
56
|
+
export declare const UPSELL_ITEM_INSTANT_PURCHASE_PARTNER_RESPONSE = "INSTANT_PURCHASE/UPSELL_ITEM_PARTNER_RESPONSE";
|
|
57
|
+
export type UpsellItemInstantPurchasePartnerResponse = {
|
|
58
|
+
type: typeof UPSELL_ITEM_INSTANT_PURCHASE_PARTNER_RESPONSE;
|
|
59
|
+
payload: InstantPurchase.V2.UpsellItemInstantPurchaseResponseMessageBody;
|
|
60
|
+
};
|
|
50
61
|
export declare const INSTANT_PURCHASE_WSDK_RESPONSE = "INSTANT_PURCHASE/WSDK_RESPONSE";
|
|
51
62
|
export type InstantPurchaseWsdkResponse = {
|
|
52
63
|
type: typeof INSTANT_PURCHASE_WSDK_RESPONSE;
|
|
@@ -62,4 +73,38 @@ export type SetOfferLifecycleEvent = {
|
|
|
62
73
|
type: typeof SET_OFFER_LIFECYCLE_EVENT;
|
|
63
74
|
payload: OfferLifecycleEventState;
|
|
64
75
|
};
|
|
76
|
+
export declare const PUSH_TAX_AND_SHIPPING = "INSTANT_PURCHASE/PUSH_TAX_AND_SHIPPING";
|
|
77
|
+
export type PushTaxAndShipping = {
|
|
78
|
+
type: typeof PUSH_TAX_AND_SHIPPING;
|
|
79
|
+
payload: PushTaxAndShippingPayload;
|
|
80
|
+
};
|
|
81
|
+
export declare const MARK_TAX_AND_SHIPPING_PENDING = "INSTANT_PURCHASE/MARK_TAX_AND_SHIPPING_PENDING";
|
|
82
|
+
export type MarkTaxAndShippingPending = {
|
|
83
|
+
type: typeof MARK_TAX_AND_SHIPPING_PENDING;
|
|
84
|
+
payload: MarkTaxAndShippingPendingPayload;
|
|
85
|
+
};
|
|
86
|
+
export declare const SET_ACTIVE_TAX_AND_SHIPPING_KEY = "INSTANT_PURCHASE/SET_ACTIVE_TAX_AND_SHIPPING_KEY";
|
|
87
|
+
export type SetActiveTaxAndShippingKey = {
|
|
88
|
+
type: typeof SET_ACTIVE_TAX_AND_SHIPPING_KEY;
|
|
89
|
+
payload: {
|
|
90
|
+
cacheKey: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
export type InitiateTaxAndShippingPayload = {
|
|
94
|
+
catalogItem: PluginCatalogItem;
|
|
95
|
+
};
|
|
96
|
+
export declare const INITIATE_TAX_AND_SHIPPING = "INSTANT_PURCHASE/INITIATE_TAX_AND_SHIPPING";
|
|
97
|
+
export type InitiateTaxAndShipping = {
|
|
98
|
+
type: typeof INITIATE_TAX_AND_SHIPPING;
|
|
99
|
+
payload: InitiateTaxAndShippingPayload;
|
|
100
|
+
};
|
|
101
|
+
export type HandleTaxAndShippingResponse = {
|
|
102
|
+
type: typeof INSTANT_PURCHASE_TAX_AND_SHIPPING_RESPONSE;
|
|
103
|
+
payload: InstantPurchaseTaxAndShippingResponsePayload;
|
|
104
|
+
};
|
|
105
|
+
export declare const SET_PURCHASE_ID = "INSTANT_PURCHASE/SET_PURCHASE_ID";
|
|
106
|
+
export type SetPurchaseId = {
|
|
107
|
+
type: typeof SET_PURCHASE_ID;
|
|
108
|
+
payload: string | null;
|
|
109
|
+
};
|
|
65
110
|
export type InstantPurchaseActions = InitiateInstantPurchase;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PluginCatalogItem } from '../../../../libraries/domain/src/models';
|
|
2
|
+
export declare const INITIATE_PAYPAL = "PAYPAL/INITIATE";
|
|
3
|
+
export declare const CONFIRM_PAYPAL = "PAYPAL/CONFIRM";
|
|
4
|
+
export declare const PAYPAL_TRANSACTION_DETAILS_READY = "PAYPAL/TRANSACTION_DETAILS_READY";
|
|
5
|
+
export declare const PAYPAL_LOADING = "PAYPAL/LOADING";
|
|
6
|
+
export declare const PAYPAL_SUCCESS = "PAYPAL/SUCCESS";
|
|
7
|
+
export declare const PAYPAL_FAILURE = "PAYPAL/FAILURE";
|
|
8
|
+
export declare const PAYPAL_CANCEL = "PAYPAL/CANCEL";
|
|
9
|
+
export declare const SET_PAYPAL_PURCHASE_CONTEXT = "PAYPAL/SET_PURCHASE_CONTEXT";
|
|
10
|
+
export type PayPalTransactionDetails = {
|
|
11
|
+
totalAmount: string;
|
|
12
|
+
tax: string;
|
|
13
|
+
shippingFee: string;
|
|
14
|
+
currency: string;
|
|
15
|
+
merchantName: string;
|
|
16
|
+
};
|
|
17
|
+
export type PayPalPurchaseContext = {
|
|
18
|
+
catalogItem: PluginCatalogItem;
|
|
19
|
+
quantity: number;
|
|
20
|
+
providerId: string;
|
|
21
|
+
};
|
|
22
|
+
export type InitiatePayPalAction = {
|
|
23
|
+
type: typeof INITIATE_PAYPAL;
|
|
24
|
+
payload: {
|
|
25
|
+
catalogItem: PluginCatalogItem;
|
|
26
|
+
quantity: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type ConfirmPayPalAction = {
|
|
30
|
+
type: typeof CONFIRM_PAYPAL;
|
|
31
|
+
};
|
|
32
|
+
export type PayPalTransactionDetailsReadyAction = {
|
|
33
|
+
type: typeof PAYPAL_TRANSACTION_DETAILS_READY;
|
|
34
|
+
payload: PayPalTransactionDetails;
|
|
35
|
+
};
|
|
@@ -2,13 +2,17 @@ import { InstantPurchase } from '@rokt/partner-integration';
|
|
|
2
2
|
import { PutEffect, CallEffect, ChannelTakeEffect } from 'redux-saga/effects';
|
|
3
3
|
import { EventChannel } from 'redux-saga';
|
|
4
4
|
import { GlobalGateway } from '../../../../libraries/module-connector/src/main';
|
|
5
|
-
import {
|
|
5
|
+
import { InstantPurchaseTaxAndShippingResponsePayload } from '../models';
|
|
6
|
+
import { InstantPurchaseWsdkResponsePayload, UpsellItemInstantPurchasePartnerResponse } from '../actions/instant-purchase';
|
|
6
7
|
import { InstantPurchasePartnerResponse } from '../actions/instant-purchase';
|
|
7
8
|
import { Log } from '../../../../libraries/domain/src/models';
|
|
8
9
|
export declare function makeInstantPurchasePartnerResponseChannel(gateway: GlobalGateway, logger: (log: Log) => void): EventChannel<InstantPurchase.CartItemInstantPurchaseResponseMessageBody>;
|
|
9
10
|
export declare function makeInstantPurchaseWsdkResponseChannel(gateway: GlobalGateway, logger: (log: Log) => void): EventChannel<InstantPurchaseWsdkResponsePayload>;
|
|
11
|
+
export declare function makeUpsellItemInstantPurchasePartnerResponseChannel(gateway: GlobalGateway, logger: (log: Log) => void): EventChannel<InstantPurchase.V2.UpsellItemInstantPurchaseResponseMessageBody>;
|
|
12
|
+
export declare function makeUpsellsTaxAndShippingResponseChannel(gateway: GlobalGateway, logger: (log: Log) => void): EventChannel<InstantPurchaseTaxAndShippingResponsePayload>;
|
|
10
13
|
export declare function listenForInstantPurchasePartnerResponse(channel: EventChannel<InstantPurchase.CartItemInstantPurchaseResponseMessageBody>, logger: (log: Log) => void): Generator<CallEffect<EventChannel<InstantPurchase.CartItemInstantPurchaseResponseMessageBody>> | ChannelTakeEffect<InstantPurchase.CartItemInstantPurchaseResponseMessageBody> | CallEffect<void> | PutEffect<InstantPurchasePartnerResponse>, void, InstantPurchase.CartItemInstantPurchaseResponseMessageBody>;
|
|
11
14
|
export declare function listenForInstantPurchaseWsdkResponse(channel: EventChannel<InstantPurchaseWsdkResponsePayload>, logger: (log: Log) => void): Generator<CallEffect<void> | ChannelTakeEffect<InstantPurchaseWsdkResponsePayload> | PutEffect<{
|
|
12
15
|
type: string;
|
|
13
16
|
payload: InstantPurchaseWsdkResponsePayload;
|
|
14
17
|
}>, void, InstantPurchaseWsdkResponsePayload>;
|
|
18
|
+
export declare function listenForUpsellItemInstantPurchasePartnerResponse(channel: EventChannel<InstantPurchase.V2.UpsellItemInstantPurchaseResponseMessageBody>, logger: (log: Log) => void): Generator<CallEffect<EventChannel<InstantPurchase.V2.UpsellItemInstantPurchaseResponseMessageBody>> | ChannelTakeEffect<InstantPurchase.V2.UpsellItemInstantPurchaseResponseMessageBody> | CallEffect<void> | PutEffect<UpsellItemInstantPurchasePartnerResponse>, void, InstantPurchase.V2.UpsellItemInstantPurchaseResponseMessageBody>;
|
package/dist/modules/instant-purchase/src/components/catalog-device-pay-button/apple-pay-button.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CatalogDevicePayButtonModel } from '@rokt/dcui-layout-schema';
|
|
3
|
+
/**
|
|
4
|
+
* Renders an Apple Pay button using Apple's native CSS styling.
|
|
5
|
+
* Returns null if the browser does not support `-webkit-appearance: -apple-pay-button`.
|
|
6
|
+
* @see https://developer.apple.com/documentation/applepayontheweb/displaying-apple-pay-buttons-using-css
|
|
7
|
+
*/
|
|
8
|
+
export type ApplePayButtonStyle = 'black' | 'white' | 'white-outline';
|
|
9
|
+
export type ThemedApplePayButtonStyle = {
|
|
10
|
+
light: ApplePayButtonStyle;
|
|
11
|
+
dark?: ApplePayButtonStyle;
|
|
12
|
+
};
|
|
13
|
+
export type ButtonStyleInput = ApplePayButtonStyle | ThemedApplePayButtonStyle;
|
|
14
|
+
type ApplePayButtonProps = {
|
|
15
|
+
buttonStyle?: ButtonStyleInput;
|
|
16
|
+
className?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
19
|
+
tabIndex?: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Derives an Apple Pay button style from the schema's `own` background and
|
|
23
|
+
* border. These are declarative hints — `-webkit-appearance: -apple-pay-button`
|
|
24
|
+
* overrides visual rendering, so they drive style selection instead.
|
|
25
|
+
*
|
|
26
|
+
* - white + border → "white-outline"
|
|
27
|
+
* - white → "white"
|
|
28
|
+
* - black → "black"
|
|
29
|
+
* - anything else → undefined (falls back to `prefers-color-scheme`)
|
|
30
|
+
*
|
|
31
|
+
* Breakpoint blocks merge with last-non-null-wins. An unrecognized `dark` is
|
|
32
|
+
* dropped, so the `light` style applies in both modes.
|
|
33
|
+
*/
|
|
34
|
+
export declare function deriveApplePayButtonStyle<C, P>(schema: CatalogDevicePayButtonModel<C, P>): ThemedApplePayButtonStyle | undefined;
|
|
35
|
+
export declare const ApplePayButton: React.ForwardRefExoticComponent<ApplePayButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CatalogDevicePayButton is a button node that allows the user to pay with a device pay provider.
|
|
3
|
+
* *Where can we use this: __layout variant__*
|
|
4
|
+
* *Example:*
|
|
5
|
+
* ```json
|
|
6
|
+
* {
|
|
7
|
+
* "type": "CatalogDevicePayButton",
|
|
8
|
+
* "node": {
|
|
9
|
+
* "provider": "ApplePay",
|
|
10
|
+
* "styles": {},
|
|
11
|
+
* "children": []
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import { LayoutVariantNonInteractableChildren, WhenPredicate, CatalogDevicePayButtonModel } from '@rokt/dcui-layout-schema';
|
|
17
|
+
export interface CatalogDevicePayButtonProps {
|
|
18
|
+
/**
|
|
19
|
+
* - `provider`: the payment provider to use for the device pay button.
|
|
20
|
+
* - `a11yLabel`: the aria-label for the button.
|
|
21
|
+
* - `children`: it can accept below nodes,
|
|
22
|
+
* * `Row`
|
|
23
|
+
* * `Column`
|
|
24
|
+
* * `ZStack`
|
|
25
|
+
* * `BasicText`
|
|
26
|
+
* * `StaticImage`
|
|
27
|
+
* * `DataImage`
|
|
28
|
+
* * `When`
|
|
29
|
+
* - `styles`:
|
|
30
|
+
* * `elements`:
|
|
31
|
+
* * `own`:
|
|
32
|
+
* - `container`
|
|
33
|
+
* - `dimension`
|
|
34
|
+
* - `flexChild`
|
|
35
|
+
* - `spacing`
|
|
36
|
+
* - `background`
|
|
37
|
+
* - `border`
|
|
38
|
+
* * `transitions`:
|
|
39
|
+
* - `type`: 'Conditional'
|
|
40
|
+
* - `transition`:
|
|
41
|
+
* * `predicates`: WhenPredicate[]
|
|
42
|
+
* * `duration`: number
|
|
43
|
+
* * `value`:
|
|
44
|
+
* * `own`:
|
|
45
|
+
* - `container`
|
|
46
|
+
* - `dimension`
|
|
47
|
+
* - `flexChild`
|
|
48
|
+
* - `spacing`
|
|
49
|
+
* - `background`
|
|
50
|
+
* - `border`
|
|
51
|
+
*/
|
|
52
|
+
schema: CatalogDevicePayButtonModel<LayoutVariantNonInteractableChildren, WhenPredicate>;
|
|
53
|
+
testId?: string;
|
|
54
|
+
}
|
|
55
|
+
/**The CatalogDevicePayButton is a button node that generates a Call-to-Action button
|
|
56
|
+
* for initiating a device payment transaction using the associated payment provider.
|
|
57
|
+
* *Where can we use this: __layout variant__*
|
|
58
|
+
*/
|
|
59
|
+
export declare function CatalogDevicePayButton(props: CatalogDevicePayButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RetryableDevicePayError(): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BackgroundStylingProperties, BasicStateStylingBlock, BorderStylingProperties, ConditionalStyleTransition, DimensionStylingProperties, ContainerStylingProperties, FlexChildStylingProperties, LayoutStyle, SpacingStylingProperties, WhenPredicate, TextStylingProperties, NonInteractableChildren } from '@rokt/dcui-layout-schema';
|
|
2
|
-
import { PluginCatalogItem } from '
|
|
2
|
+
import { PluginCatalogItem } from '../../../../../libraries/domain/src/models';
|
|
3
3
|
export interface CatalogDiscountCalloutTagStyles {
|
|
4
4
|
container?: null | ContainerStylingProperties;
|
|
5
5
|
background?: null | BackgroundStylingProperties;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CatalogDropdownModel, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
export interface CatalogDropdownProps {
|
|
3
|
+
schema: CatalogDropdownModel<WhenPredicate>;
|
|
4
|
+
testId?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function CatalogDropdown(props: CatalogDropdownProps): import("react/jsx-runtime").JSX.Element | null;
|
package/dist/modules/instant-purchase/src/components/catalog-dropdown/dropdown-options-context.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface DropdownOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
outOfStock?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface DropdownOptionsContextType {
|
|
8
|
+
options: DropdownOption[];
|
|
9
|
+
selectedValue: string | null;
|
|
10
|
+
onSelect: (value: string) => void;
|
|
11
|
+
placeholderLabel?: string;
|
|
12
|
+
attributeId?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const DropdownOptionsContext: import("react").Context<DropdownOptionsContextType | null>;
|
|
15
|
+
export declare const DropdownOptionsProvider: import("react").Provider<DropdownOptionsContextType | null>;
|
|
16
|
+
export declare function useDropdownOptions(): DropdownOptionsContextType | null;
|
|
17
|
+
export declare function useRequiredDropdownOptions(): DropdownOptionsContextType;
|
package/dist/modules/instant-purchase/src/components/catalog-imagegallery/catalog-gallery-index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useGalleryIndex(catalogItemInstanceGuid: string): [number, (index: number) => void];
|
package/dist/modules/instant-purchase/src/components/catalog-imagegallery/catalog-image-gallery.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CatalogImageGalleryModel, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
export interface CatalogImageGalleryProps {
|
|
3
|
+
schema: CatalogImageGalleryModel<WhenPredicate>;
|
|
4
|
+
testId?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function CatalogImageGallery(props: CatalogImageGalleryProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CatalogSelectorsStackedModel, LayoutSchemaModel, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
export interface CatalogSelectorsStackedProps<Template extends LayoutSchemaModel> {
|
|
3
|
+
schema: CatalogSelectorsStackedModel<Template, WhenPredicate>;
|
|
4
|
+
testId?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function CatalogSelectorsStacked<Template extends LayoutSchemaModel>(props: CatalogSelectorsStackedProps<Template>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CatalogThumbnailGalleryModel, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
export interface CatalogThumbnailGalleryProps {
|
|
3
|
+
schema: CatalogThumbnailGalleryModel<WhenPredicate>;
|
|
4
|
+
testId?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function CatalogThumbnailGallery(props: CatalogThumbnailGalleryProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BackgroundStylingProperties, BorderStylingProperties, ConditionalStyleTransition, ContainerStylingProperties, DimensionStylingProperties, FlexChildStylingProperties, LayoutStyle, NonInteractableChildren, SpacingStylingProperties, StatelessStylingBlock, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
2
|
import { CheckoutStep } from '../../actions/checkout-lifecycle';
|
|
3
3
|
import type { CheckoutStateData } from '../../actions/checkout-lifecycle';
|
|
4
|
+
import { ValidatorTriggerConfig } from '../../validators';
|
|
4
5
|
export interface CheckoutStateButtonTriggerStyles {
|
|
5
6
|
background?: null | BackgroundStylingProperties;
|
|
6
7
|
border?: null | BorderStylingProperties;
|
|
@@ -19,6 +20,7 @@ export interface CheckoutStateButtonTriggerModel<Children, Predicates> {
|
|
|
19
20
|
a11yLabel?: null | string;
|
|
20
21
|
targetStep: CheckoutStep;
|
|
21
22
|
data?: CheckoutStateData;
|
|
23
|
+
validatorTriggerConfig?: ValidatorTriggerConfig | null;
|
|
22
24
|
styles?: null | LayoutStyle<CheckoutStateButtonTriggerElements, ConditionalStyleTransition<CheckoutStateButtonTriggerTransitions, Predicates>>;
|
|
23
25
|
children: Children[];
|
|
24
26
|
}
|
|
@@ -28,6 +28,12 @@ export interface CatalogImageGalleryModel<Predicates> {
|
|
|
28
28
|
leftScrollIconTemplate?: StaticIconModel<WhenPredicate>;
|
|
29
29
|
rightScrollIconTemplate?: StaticIconModel<WhenPredicate>;
|
|
30
30
|
navigationStrategy?: 'thumbnailList' | 'paginationIndicator';
|
|
31
|
+
imageAspectRatio?: string;
|
|
32
|
+
thumbnailAspectRatio?: string;
|
|
33
|
+
mainImageMinWidth?: number;
|
|
34
|
+
mainImageMaxWidth?: number;
|
|
35
|
+
mainImageMinHeight?: number;
|
|
36
|
+
mainImageMaxHeight?: number;
|
|
31
37
|
}
|
|
32
38
|
export interface CatalogImageGalleryProps {
|
|
33
39
|
schema: CatalogImageGalleryModel<WhenPredicate>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BackgroundStylingProperties, BorderStylingProperties, ContainerStylingProperties, DimensionStylingProperties, FlexChildStylingProperties, SpacingStylingProperties, StatelessStylingBlock, LayoutStyle, WhenPredicate, ConditionalStyleTransition } from '@rokt/dcui-layout-schema';
|
|
2
|
+
export interface SnackbarStyles {
|
|
3
|
+
background?: null | BackgroundStylingProperties;
|
|
4
|
+
border?: null | BorderStylingProperties;
|
|
5
|
+
container?: null | ContainerStylingProperties;
|
|
6
|
+
dimension?: null | DimensionStylingProperties;
|
|
7
|
+
flexChild?: null | FlexChildStylingProperties;
|
|
8
|
+
spacing?: null | SpacingStylingProperties;
|
|
9
|
+
}
|
|
10
|
+
export interface SnackbarElements {
|
|
11
|
+
own: StatelessStylingBlock<SnackbarStyles>[];
|
|
12
|
+
}
|
|
13
|
+
export interface SnackbarModel<Predicates> {
|
|
14
|
+
message: string;
|
|
15
|
+
duration: number;
|
|
16
|
+
styles?: null | LayoutStyle<SnackbarElements, ConditionalStyleTransition<SnackbarTransitions, Predicates>>;
|
|
17
|
+
}
|
|
18
|
+
export interface SnackbarProps {
|
|
19
|
+
schema: SnackbarModel<WhenPredicate>;
|
|
20
|
+
testId?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface SnackbarTransitions {
|
|
23
|
+
own?: null | SnackbarStyles;
|
|
24
|
+
}
|
|
25
|
+
export declare function Snackbar(props: SnackbarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const DEVICE_PAY_ERROR_STATE_KEY = "DevicePayErrorState";
|
|
2
|
+
export declare const DEVICE_PAY_ERROR_HIDDEN = 0;
|
|
3
|
+
export declare const DEVICE_PAY_ERROR_RETRYABLE_DECLINE = 1;
|
|
4
|
+
export declare const RETRYABLE_DEVICE_PAY_ERROR_MESSAGE = "Payment failed. Choose another card and try again.";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LayoutPaymentMethodType, PaymentMethodType } from '../../../../libraries/domain/src/models';
|
|
2
|
+
import { PaymentProvider } from '@rokt/dcui-layout-schema';
|
|
3
|
+
import { DevicePayAvailabilityResponse } from '../models';
|
|
4
|
+
export type DevicePayProviderEntry = {
|
|
5
|
+
provider: PaymentProvider;
|
|
6
|
+
responseKey: keyof DevicePayAvailabilityResponse;
|
|
7
|
+
paymentMethodType: PaymentMethodType;
|
|
8
|
+
layoutPaymentMethodType: LayoutPaymentMethodType;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Source of truth for every device-pay provider DCUI knows about.
|
|
13
|
+
*
|
|
14
|
+
* Invariant: every device-pay-class member of `PaymentMethodType` (e.g. ApplePay,
|
|
15
|
+
* Afterpay, future GooglePay) MUST appear here. The dismissal selector / saga
|
|
16
|
+
* silently no-op for any supported method that has no entry — adding a new
|
|
17
|
+
* device-pay method to `PaymentMethodType` without adding a row here means
|
|
18
|
+
* "supported method failed" can never be detected and the offer never dismisses.
|
|
19
|
+
*
|
|
20
|
+
* Adding a provider:
|
|
21
|
+
* 1. Add the literal to `PaymentMethodType` and `LayoutPaymentMethodType` (+ converter).
|
|
22
|
+
* 2. Add the response key to `DevicePayAvailabilityResponse`.
|
|
23
|
+
* 3. Add a row here.
|
|
24
|
+
*/
|
|
25
|
+
export declare const DEVICE_PAY_PROVIDERS: ReadonlyArray<DevicePayProviderEntry>;
|
|
26
|
+
export declare function getDevicePayProviderEntry(provider: PaymentProvider): DevicePayProviderEntry | undefined;
|