@rokt/dcui-orchestrator 0.2.1-rc.9 → 0.3.0
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/extensions/address-form/src/sagas/cart-service/sagas.d.ts +9 -0
- 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/minimized-bottomsheet/src/components/bottom-sheet/bottom-sheet.d.ts +2 -0
- package/dist/extensions/minimized-bottomsheet/src/components/bottom-sheet/factory.d.ts +1 -0
- package/dist/extensions/minimized-bottomsheet/src/components/bottom-sheet/hooks.d.ts +2 -1
- package/dist/extensions/minimized-bottomsheet/src/components/bottomsheet-wrapper/overlay-wrapper.d.ts +2 -2
- 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 -46
- package/dist/index.js +102 -51
- 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-image-carousel/carousel-indicators.d.ts +20 -0
- package/dist/libraries/dcui-components/src/components/data-image-carousel/data-image-carousel.d.ts +100 -0
- package/dist/libraries/dcui-components/src/components/data-image-carousel/factory.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/data-image-carousel/index.d.ts +2 -0
- 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/icon-group/factory.d.ts +2 -0
- package/dist/libraries/dcui-components/src/components/icon-group/icon-group.d.ts +36 -0
- package/dist/libraries/dcui-components/src/components/icon-group/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 +44 -0
- 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 +17 -1
- package/dist/libraries/domain/src/behaviors/index.d.ts +6 -0
- package/dist/libraries/domain/src/behaviors/layout-events.d.ts +17 -0
- package/dist/libraries/domain/src/behaviors/offer-engagement.d.ts +3 -1
- package/dist/libraries/domain/src/behaviors/report-error.d.ts +26 -0
- package/dist/libraries/domain/src/behaviors/send-partner.d.ts +40 -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 +3 -0
- package/dist/libraries/domain/src/models/layout/index.d.ts +1 -0
- package/dist/libraries/domain/src/models/layout/layout-catalog-item.d.ts +2 -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-catalog-item.d.ts +8 -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/shipping.d.ts +25 -0
- package/dist/libraries/domain/src/models/signals.d.ts +19 -5
- 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 +2 -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 +7 -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/progression/sagas.d.ts +2 -1
- 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/libraries/saga-utils/src/utils/catalog-translator.d.ts +1 -0
- package/dist/modules/add-to-cart/src/components/escape-hatch/factory.d.ts +1 -1
- 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/components/read-more-text/read-more-text.d.ts +29 -0
- package/dist/modules/add-to-cart/src/components/read-more-text-container/read-more-text-container.d.ts +34 -0
- package/dist/modules/add-to-cart/src/components/scroll-to-target/scroll-to-target.d.ts +56 -0
- package/dist/modules/add-to-cart/src/components/tooltip/tooltip.d.ts +42 -0
- package/dist/modules/add-to-cart/src/components/when-catalog-quantity/when-catalog-quantity.d.ts +22 -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 +11 -0
- package/dist/modules/add-to-cart/src/selectors/catalogItems/selectors.d.ts +2 -0
- package/dist/modules/add-to-cart/src/selectors/creative/index.d.ts +1 -0
- package/dist/modules/add-to-cart/src/selectors/creative/selectors.d.ts +3 -0
- package/dist/modules/add-to-cart/src/selectors/index.d.ts +2 -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 +52 -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 +90 -0
- 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/checkbox/checkbox.d.ts +1 -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/custom-state-validation-trigger-button/custom-state-validation-trigger-button.d.ts +28 -0
- package/dist/modules/instant-purchase/src/components/dismiss-instant-purchase-button/dismiss-instant-purchase-button.d.ts +1 -0
- package/dist/modules/instant-purchase/src/components/escape-hatch/factory.d.ts +1 -1
- package/dist/modules/instant-purchase/src/components/escape-hatch/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/components/{catalog-drop-down → escapehatch-catalog-drop-down}/catalog-drop-down.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/{catalog-image-gallery → escapehatch-catalog-image-gallery}/catalog-image-gallery.d.ts +15 -4
- package/dist/modules/instant-purchase/src/components/escapehatch-catalog-image-gallery/constants.d.ts +9 -0
- package/dist/modules/instant-purchase/src/components/inline-container/factory.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/inline-container/inline-container.d.ts +55 -0
- package/dist/modules/instant-purchase/src/components/loading-spinner/loading-spinner.d.ts +2 -1
- package/dist/modules/instant-purchase/src/components/offer-lifecycle-timer/offer-lifecycle-timer.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/read-more-text-container/read-more-text-container.d.ts +1 -0
- package/dist/modules/instant-purchase/src/components/rich-text/factory.d.ts +2 -0
- package/dist/modules/instant-purchase/src/components/rich-text/rich-text.d.ts +64 -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 +70 -2
- 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 +17 -2
- package/dist/modules/instant-purchase/src/reducers/instant-purchase/index.d.ts +3 -0
- package/dist/modules/instant-purchase/src/reducers/instant-purchase/offer-lifecycle-event/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/reducers/instant-purchase/offer-lifecycle-event/reducer.d.ts +4 -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 +16 -1
- package/dist/modules/instant-purchase/src/sagas/instant-purchase/sagas.d.ts +20 -72
- 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 +11 -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 +11 -0
- package/dist/modules/standard-marketing/src/sagas/offer-engagement/channels.d.ts +4 -1
- 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/dist/modules/instant-purchase/src/components/catalog-variation-selection-button/catalog-variation-selection-button.d.ts +0 -28
- 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
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { BasicStateStylingBlock, LayoutSchemaModel, LayoutStyle, ConditionalStyleTransition, TextStylingProperties, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
import { InlineContainerStyles } from '@rokt/dcui-layout-schema';
|
|
3
|
+
interface InlineContainerTextStyles extends InlineContainerStyles {
|
|
4
|
+
text?: TextStylingProperties;
|
|
5
|
+
}
|
|
6
|
+
export interface InlineContainerTextElements {
|
|
7
|
+
own: BasicStateStylingBlock<InlineContainerTextStyles>[];
|
|
8
|
+
}
|
|
9
|
+
export interface InlineContainerTextTransitions {
|
|
10
|
+
own?: null | InlineContainerTextStyles;
|
|
11
|
+
}
|
|
12
|
+
export interface InlineContainerTextModel<Children, Predicates> {
|
|
13
|
+
a11yLabel?: null | string;
|
|
14
|
+
styles?: null | LayoutStyle<InlineContainerTextElements, ConditionalStyleTransition<InlineContainerTextTransitions, Predicates>>;
|
|
15
|
+
children: Children[];
|
|
16
|
+
}
|
|
17
|
+
interface InlineContainerProps<Children extends LayoutSchemaModel> {
|
|
18
|
+
/**
|
|
19
|
+
* - `a11yLabel`: define a custom accessibility label for the screen reader
|
|
20
|
+
* - `children`: it can accept below nodes,
|
|
21
|
+
* * `BasicText (with inline styles only)`
|
|
22
|
+
* * `StaticLink (with inline styles only)`
|
|
23
|
+
* * `ToggleButtonStateTrigger (with inline styles only)`
|
|
24
|
+
* - `styles`:
|
|
25
|
+
* * `elements`:
|
|
26
|
+
* - `own`:
|
|
27
|
+
* * `container`
|
|
28
|
+
* * `dimension`
|
|
29
|
+
* * `flexChild`
|
|
30
|
+
* * `spacing`
|
|
31
|
+
* * `background`
|
|
32
|
+
* * `border`
|
|
33
|
+
* * `transitions`:
|
|
34
|
+
* - `type`: 'Conditional'
|
|
35
|
+
* - `transition`:
|
|
36
|
+
* * `predicates`: WhenPredicate[]
|
|
37
|
+
* * `duration`: number
|
|
38
|
+
* * `value`:
|
|
39
|
+
* - `own`:
|
|
40
|
+
* * `container`
|
|
41
|
+
* * `dimension`
|
|
42
|
+
* * `flexChild`
|
|
43
|
+
* * `spacing`
|
|
44
|
+
* * `background`
|
|
45
|
+
* * `border`
|
|
46
|
+
*/
|
|
47
|
+
schema: InlineContainerTextModel<Children, WhenPredicate>;
|
|
48
|
+
testId?: string;
|
|
49
|
+
}
|
|
50
|
+
/** The Inline Container is a layout node that organises and aligns content horizontally,
|
|
51
|
+
* treating every child as an inline element.<br>
|
|
52
|
+
* *Where can we use this: __outer layout__, __layout variant__*
|
|
53
|
+
* */
|
|
54
|
+
export declare function InlineContainer<Children extends LayoutSchemaModel>(props: InlineContainerProps<Children>): JSX.Element;
|
|
55
|
+
export {};
|
|
@@ -20,9 +20,10 @@ export interface LoadingSpinnerConfig {
|
|
|
20
20
|
stroke?: number;
|
|
21
21
|
primaryColor?: string;
|
|
22
22
|
secondaryColor?: string | null;
|
|
23
|
+
duration?: number;
|
|
24
|
+
mode?: 'dashed' | 'segmented';
|
|
23
25
|
primaryRotation?: number;
|
|
24
26
|
secondaryRotation?: number;
|
|
25
|
-
duration?: number;
|
|
26
27
|
arcFraction?: number;
|
|
27
28
|
}
|
|
28
29
|
export interface LoadingSpinnerModel<Predicates> {
|
|
@@ -14,11 +14,13 @@ export interface OfferLifecycleTimerTransitions {
|
|
|
14
14
|
}
|
|
15
15
|
export interface OfferLifecycleTimerModel<Predicates> {
|
|
16
16
|
durationInSeconds: number;
|
|
17
|
+
key: string;
|
|
17
18
|
format?: 'M:SS' | 'S';
|
|
18
19
|
styles?: LayoutStyle<OfferLifecycleTimerElements, ConditionalStyleTransition<OfferLifecycleTimerTransitions, Predicates>>;
|
|
19
20
|
}
|
|
20
21
|
export interface OfferLifecycleTimerProps {
|
|
21
22
|
schema: OfferLifecycleTimerModel<WhenPredicate>;
|
|
23
|
+
isInline?: boolean;
|
|
22
24
|
testId?: string;
|
|
23
25
|
}
|
|
24
26
|
export declare function OfferLifecycleTimer(props: OfferLifecycleTimerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,6 +29,7 @@ export interface ReadMoreTextContainerModel<Predicates> {
|
|
|
29
29
|
export interface LinearGradientConfig {
|
|
30
30
|
linearColorStart: string;
|
|
31
31
|
linearColorStop?: string;
|
|
32
|
+
linearGradientHeight?: number;
|
|
32
33
|
}
|
|
33
34
|
export interface ReadMoreTextContainerProps {
|
|
34
35
|
schema: ReadMoreTextContainerModel<WhenPredicate>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { BasicStateStylingBlock, InLineTextStyle, RichTextStyle, ConditionalStyleTransition, RichTextTransitions, LayoutStyle, LinkOpenTarget, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
export interface RichTextElements {
|
|
3
|
+
own: BasicStateStylingBlock<RichTextStyle>[];
|
|
4
|
+
link?: null | BasicStateStylingBlock<InLineTextStyle>[];
|
|
5
|
+
}
|
|
6
|
+
interface RichTextModel<Predicates> {
|
|
7
|
+
styles?: null | LayoutStyle<RichTextElements, ConditionalStyleTransition<RichTextTransitions, Predicates>>;
|
|
8
|
+
openLinks?: null | LinkOpenTarget;
|
|
9
|
+
value: string;
|
|
10
|
+
removePTagBaseStyles?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface RichTextProps {
|
|
13
|
+
/**
|
|
14
|
+
* - `openLinks`: 'internally' | 'externally'
|
|
15
|
+
* - `value`: the textual content. It supports:
|
|
16
|
+
* * plain text;
|
|
17
|
+
* * html: `<em>`, `<strong>`, `<a>`, '<br>', '<u>';
|
|
18
|
+
* * data expansion placeholder: e.g `%^DATA.creativeCopy.creative.title|^%`,
|
|
19
|
+
* `%^DATA.creativeCopy.creative.copy|^%`,
|
|
20
|
+
* `%^DATA.creativeLink.termsAndConditions|^%`,
|
|
21
|
+
* `%^DATA.creativeLink.privacyPolicy|^%`.
|
|
22
|
+
* - `styles`:
|
|
23
|
+
* * `elements`:
|
|
24
|
+
* - `own`:
|
|
25
|
+
* * `dimension`
|
|
26
|
+
* * `flexChild`
|
|
27
|
+
* * `spacing`
|
|
28
|
+
* * `background`
|
|
29
|
+
* * `text`
|
|
30
|
+
* - `link`:
|
|
31
|
+
* * `text`
|
|
32
|
+
*/
|
|
33
|
+
schema: RichTextModel<WhenPredicate>;
|
|
34
|
+
isInline?: boolean;
|
|
35
|
+
testId?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const sanitiseOptions: {
|
|
38
|
+
allowedTags: string[];
|
|
39
|
+
allowedAttributes: {
|
|
40
|
+
a: string[];
|
|
41
|
+
strong: never[];
|
|
42
|
+
em: never[];
|
|
43
|
+
br: never[];
|
|
44
|
+
u: never[];
|
|
45
|
+
p: never[];
|
|
46
|
+
ol: never[];
|
|
47
|
+
ul: never[];
|
|
48
|
+
li: never[];
|
|
49
|
+
span: never[];
|
|
50
|
+
h3: never[];
|
|
51
|
+
div: never[];
|
|
52
|
+
b: never[];
|
|
53
|
+
};
|
|
54
|
+
allowedSchemes: string[];
|
|
55
|
+
};
|
|
56
|
+
export declare const insaneExceptionCharacters: Map<string, string>;
|
|
57
|
+
export declare const breaklinePattern: RegExp;
|
|
58
|
+
/**The RichText override-Node is meant to be used for testing new element-styling only.<br>
|
|
59
|
+
* If no additional functionality is required for an instance of RichText, it is recommended to use the base node in plugin.<br>
|
|
60
|
+
* It also supports data expansion with namespace 'creativeCopy'.<br>
|
|
61
|
+
* *Where can we use this: __outer layout__, __layout variant__*
|
|
62
|
+
* */
|
|
63
|
+
export declare function RichText(props: RichTextProps): import("react/jsx-runtime").JSX.Element | null;
|
|
64
|
+
export {};
|
|
@@ -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;
|
|
@@ -1,3 +1,71 @@
|
|
|
1
|
-
import { RequestFulfillmentDetails,
|
|
1
|
+
import { RequestFulfillmentDetails, ShippingAttributes, UpsellItem } from '../../../../../libraries/domain/src/models';
|
|
2
|
+
import { OfferLifecycleCompletePayload, OfferLifecycleDismissedPayload } from '../../../../../libraries/domain/src/behaviors';
|
|
2
3
|
export type FulfillmentDetailsState = Partial<RequestFulfillmentDetails> | null;
|
|
3
|
-
export type
|
|
4
|
+
export type OfferLifecycleEventState = OfferLifecycleDismissedPayload | OfferLifecycleCompletePayload | null;
|
|
5
|
+
export declare enum TaxAndShippingErrors {
|
|
6
|
+
REQUEST_TIME_OUT = "REQUEST_TIME_OUT",
|
|
7
|
+
REQUEST_FAILED = "REQUEST_FAILED"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Confirmation state of the displayed tax. ESTIMATED ⇒ display-only guess
|
|
11
|
+
* (lazy-tax); the real tax is finalized at confirm. UNAVAILABLE ⇒ not yet
|
|
12
|
+
* calculated. Absent on older backends that don't send it.
|
|
13
|
+
*/
|
|
14
|
+
export type TaxStatus = 'CONFIRMED' | 'ESTIMATED' | 'UNAVAILABLE';
|
|
15
|
+
export interface TaxAndShippingPricing {
|
|
16
|
+
taxAmount: string;
|
|
17
|
+
shippingAmount: string;
|
|
18
|
+
totalAmount: string;
|
|
19
|
+
taxStatus?: TaxStatus;
|
|
20
|
+
}
|
|
21
|
+
export interface TaxAndShippingData {
|
|
22
|
+
taxAndShippingPricing?: TaxAndShippingPricing;
|
|
23
|
+
error?: TaxAndShippingErrors;
|
|
24
|
+
}
|
|
25
|
+
export interface TaxAndShippingEntry {
|
|
26
|
+
isPending: boolean;
|
|
27
|
+
taxAndShippingData?: TaxAndShippingData;
|
|
28
|
+
}
|
|
29
|
+
export interface TaxAndShippingState {
|
|
30
|
+
activeCacheKey: string | null;
|
|
31
|
+
cache: Record<string, TaxAndShippingEntry>;
|
|
32
|
+
}
|
|
33
|
+
export declare const INSTANT_PURCHASE_INITIATE_TAX_AND_SHIPPING_EVENT = "INSTANT_PURCHASE_INITIATE_TAX_AND_SHIPPING_EVENT";
|
|
34
|
+
export declare const INSTANT_PURCHASE_TAX_AND_SHIPPING_RESPONSE = "INSTANT_PURCHASE_TAX_AND_SHIPPING_RESPONSE";
|
|
35
|
+
export interface InstantPurchaseInitiateTaxAndShippingEventPayload {
|
|
36
|
+
cacheKey: string;
|
|
37
|
+
totalUpsellPrice: number;
|
|
38
|
+
currency: string;
|
|
39
|
+
upsellItems: UpsellItem[];
|
|
40
|
+
fulfillmentDetails: {
|
|
41
|
+
shippingAttributes: Partial<ShippingAttributes>;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export interface InstantPurchaseTaxAndShippingPaymentDetails {
|
|
45
|
+
shippingCost: string;
|
|
46
|
+
tax: string;
|
|
47
|
+
totalAmount: string;
|
|
48
|
+
taxStatus?: TaxStatus;
|
|
49
|
+
}
|
|
50
|
+
export interface InstantPurchaseTaxAndShippingResponse {
|
|
51
|
+
success: boolean;
|
|
52
|
+
totalUpsellPrice?: number;
|
|
53
|
+
currency?: string;
|
|
54
|
+
upsellItems?: {
|
|
55
|
+
catalogItemId: string;
|
|
56
|
+
}[];
|
|
57
|
+
paymentDetails?: InstantPurchaseTaxAndShippingPaymentDetails;
|
|
58
|
+
error?: TaxAndShippingErrors;
|
|
59
|
+
identifiers?: Record<string, string>;
|
|
60
|
+
}
|
|
61
|
+
export interface InstantPurchaseTaxAndShippingResponseEnvelope {
|
|
62
|
+
response: InstantPurchaseTaxAndShippingResponse;
|
|
63
|
+
sessionId: string;
|
|
64
|
+
timestamp: string;
|
|
65
|
+
}
|
|
66
|
+
export interface InstantPurchaseTaxAndShippingResponsePayload {
|
|
67
|
+
cacheKey: string;
|
|
68
|
+
timestamp: string;
|
|
69
|
+
sessionId: string;
|
|
70
|
+
response?: InstantPurchaseTaxAndShippingResponseEnvelope;
|
|
71
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './reducer';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { DevicePayAvailabilityState } from '../../models';
|
|
3
|
+
export declare function makeInitialDevicePayAvailabilityState(): DevicePayAvailabilityState;
|
|
4
|
+
export declare const devicePayAvailabilityReducer: (state: DevicePayAvailabilityState | undefined, action: AnyAction) => DevicePayAvailabilityState;
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { GlobalActions } from '../../../../libraries/domain/src/behaviors';
|
|
2
|
-
import { ChildLayoutActions, childLayoutsReducer, ChildLayoutsState, StaticData, staticDataReducer, DynamicData, dynamicDataReducer } from '
|
|
3
|
-
import { CatalogSelectionState, FulfillmentDetailsState } from '../models';
|
|
2
|
+
import { ChildLayoutActions, childLayoutsReducer, ChildLayoutsState, StaticData, staticDataReducer, DynamicData, dynamicDataReducer } from '../../../../libraries/module-utils/src/index';
|
|
3
|
+
import { CatalogSelectionState, DevicePayAvailabilityState, FulfillmentDetailsState, OfferLifecycleEventState, TaxAndShippingState } from '../models';
|
|
4
|
+
import { PurchaseIdState } from './instant-purchase';
|
|
5
|
+
import { PayPalTransactionDetailsState } from './paypal-transaction-details';
|
|
6
|
+
import { PayPalPurchaseContextState } from './paypal-purchase-context';
|
|
4
7
|
export type AppState = {
|
|
5
8
|
staticData: StaticData;
|
|
6
9
|
selectedItem: CatalogSelectionState;
|
|
7
10
|
dynamicData: DynamicData;
|
|
8
11
|
childLayouts: ChildLayoutsState;
|
|
9
12
|
fulfillmentDetails: FulfillmentDetailsState;
|
|
13
|
+
offerLifecycleEvent: OfferLifecycleEventState;
|
|
14
|
+
devicePayAvailability: DevicePayAvailabilityState;
|
|
15
|
+
paypalTransactionDetails: PayPalTransactionDetailsState;
|
|
16
|
+
paypalPurchaseContext: PayPalPurchaseContextState;
|
|
17
|
+
taxAndShipping: TaxAndShippingState;
|
|
18
|
+
purchaseId: PurchaseIdState;
|
|
10
19
|
};
|
|
11
20
|
export type StateActions = GlobalActions | ChildLayoutActions;
|
|
12
21
|
export declare const appReducers: {
|
|
@@ -15,5 +24,11 @@ export declare const appReducers: {
|
|
|
15
24
|
dynamicData: typeof dynamicDataReducer;
|
|
16
25
|
childLayouts: typeof childLayoutsReducer;
|
|
17
26
|
fulfillmentDetails: (state: FulfillmentDetailsState | undefined, action: import("redux").AnyAction) => FulfillmentDetailsState;
|
|
27
|
+
offerLifecycleEvent: (state: OfferLifecycleEventState | undefined, action: import("redux").AnyAction) => OfferLifecycleEventState;
|
|
28
|
+
devicePayAvailability: (state: DevicePayAvailabilityState | undefined, action: import("redux").AnyAction) => DevicePayAvailabilityState;
|
|
29
|
+
paypalTransactionDetails: (state: PayPalTransactionDetailsState | undefined, action: import("redux").AnyAction) => PayPalTransactionDetailsState;
|
|
30
|
+
paypalPurchaseContext: (state: PayPalPurchaseContextState | undefined, action: import("redux").AnyAction) => PayPalPurchaseContextState;
|
|
31
|
+
taxAndShipping: (state: TaxAndShippingState | undefined, action: import("redux").AnyAction) => TaxAndShippingState;
|
|
32
|
+
purchaseId: (state: PurchaseIdState | undefined, action: import("redux").AnyAction) => PurchaseIdState;
|
|
18
33
|
};
|
|
19
34
|
export declare function makeAppInitialState(data?: Partial<AppState>): AppState;
|
package/dist/modules/instant-purchase/src/reducers/instant-purchase/offer-lifecycle-event/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './reducer';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { OfferLifecycleEventState } from '../../../models';
|
|
3
|
+
export declare function makeInitialOfferLifecycleEventState(): OfferLifecycleEventState;
|
|
4
|
+
export declare const offerLifecycleEventReducer: (state: OfferLifecycleEventState | undefined, action: AnyAction) => OfferLifecycleEventState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './reducer';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
|
+
export type PurchaseIdState = string | null;
|
|
3
|
+
export declare function makeInitialPurchaseIdState(): PurchaseIdState;
|
|
4
|
+
export declare const purchaseIdReducer: (state: PurchaseIdState | undefined, action: AnyAction) => PurchaseIdState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './reducer';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { TaxAndShippingState } from '../../../models';
|
|
3
|
+
export declare function makeInitialTaxAndShippingState(): TaxAndShippingState;
|
|
4
|
+
export declare const taxAndShippingReducer: (state: TaxAndShippingState | undefined, action: AnyAction) => TaxAndShippingState;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { PayPalPurchaseContext } from '../../actions';
|
|
3
|
+
export type PayPalPurchaseContextState = PayPalPurchaseContext | null;
|
|
4
|
+
export declare function makeInitialPayPalPurchaseContextState(): PayPalPurchaseContextState;
|
|
5
|
+
export declare const paypalPurchaseContextReducer: (state: PayPalPurchaseContextState | undefined, action: AnyAction) => PayPalPurchaseContextState;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AnyAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { PayPalTransactionDetails } from '../../actions';
|
|
3
|
+
export type PayPalTransactionDetailsState = PayPalTransactionDetails | null;
|
|
4
|
+
export declare function makeInitialPayPalTransactionDetailsState(): PayPalTransactionDetailsState;
|
|
5
|
+
export declare const paypalTransactionDetailsReducer: (state: PayPalTransactionDetailsState | undefined, action: AnyAction) => PayPalTransactionDetailsState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PutEffect, CallEffect } from 'redux-saga/effects';
|
|
2
|
-
import { CheckoutLifecycle } from '../../actions/checkout-lifecycle';
|
|
3
2
|
import { Log } from '../../../../../libraries/domain/src/models';
|
|
3
|
+
import { CheckoutLifecycle } from '../../actions/checkout-lifecycle';
|
|
4
4
|
export declare function handleCheckoutLifecycle(logger: (log: Log) => void, action: CheckoutLifecycle): Generator<PutEffect | CallEffect, void, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sagas';
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { CallEffect, PutEffect, ChannelTakeEffect } from 'redux-saga/effects';
|
|
2
|
+
import { EventChannel } from 'redux-saga';
|
|
3
|
+
import { Log, PaymentMethodType, PluginCatalogItem, ShippingAttributes } from '../../../../../libraries/domain/src/models';
|
|
4
|
+
import { GlobalGateway } from '../../../../../libraries/module-connector/src/main';
|
|
5
|
+
import { OfferLifecycle } from '../../../../../libraries/domain/src/behaviors';
|
|
6
|
+
import { DevicePayPurchaseContext, InitiateDevicePayAction, DevicePayResponsePayload, DevicePayResponse, DevicePayAvailableAction, DevicePayAvailablePayload } from '../../actions';
|
|
7
|
+
import { AppState } from '../../reducers';
|
|
8
|
+
import { OfferLifecycleEventState } from '../../models';
|
|
9
|
+
import { PrepareDevicePayEventPayload } from '../../../../../libraries/domain/src/models';
|
|
10
|
+
export declare function isDevicePayResponse(obj: unknown): obj is DevicePayResponsePayload;
|
|
11
|
+
/**
|
|
12
|
+
* Strict guard: requires at least one known provider key in `response`, AND
|
|
13
|
+
* rejects the whole event if any present provider key is non-boolean. So
|
|
14
|
+
* `{ applePay: true, afterpay: 'maybe' }` is rejected at the channel rather
|
|
15
|
+
* than letting the bad afterpay value leak into reducer state.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isDevicePayAvailableResponse(obj: unknown): obj is DevicePayAvailablePayload;
|
|
18
|
+
export declare function listenForDevicePayAvailable(channel: EventChannel<DevicePayAvailablePayload>, logger: (log: Log) => void): Generator<ChannelTakeEffect<DevicePayAvailablePayload> | CallEffect<void> | PutEffect<DevicePayAvailableAction>, void, DevicePayAvailablePayload>;
|
|
19
|
+
export declare function processDevicePayAvailable(logger: (log: Log) => void, action: DevicePayAvailableAction): Generator<CallEffect<void> | import("redux-saga/effects").SelectEffect | PutEffect<{
|
|
20
|
+
type: string;
|
|
21
|
+
payload: {
|
|
22
|
+
name: string;
|
|
23
|
+
action: string;
|
|
24
|
+
context: string;
|
|
25
|
+
};
|
|
26
|
+
}> | PutEffect<{
|
|
27
|
+
type: string;
|
|
28
|
+
payload: {
|
|
29
|
+
event: "Dismissed";
|
|
30
|
+
dismissalReason: "Implicit";
|
|
31
|
+
};
|
|
32
|
+
}>, void, (boolean & ({
|
|
33
|
+
type: PaymentMethodType;
|
|
34
|
+
}[] & OfferLifecycleEventState)) | undefined>;
|
|
35
|
+
export declare function listenForDevicePayResponse(channel: EventChannel<DevicePayResponsePayload>, logger: (log: Log) => void, context: DevicePayPurchaseContext): Generator<ChannelTakeEffect<DevicePayResponsePayload> | CallEffect<void> | PutEffect, void, DevicePayResponsePayload>;
|
|
36
|
+
export declare function processDevicePayCartItem(gateway: GlobalGateway, logger: (log: Log) => void, action: InitiateDevicePayAction): Generator<CallEffect<void> | import("redux-saga/effects").SelectEffect | import("redux-saga/effects").ForkEffect<void> | PutEffect<{
|
|
37
|
+
type: string;
|
|
38
|
+
payload: {
|
|
39
|
+
catalogItem: PluginCatalogItem;
|
|
40
|
+
quantity: number;
|
|
41
|
+
};
|
|
42
|
+
}> | PutEffect<{
|
|
43
|
+
type: string;
|
|
44
|
+
payload: {
|
|
45
|
+
event: string;
|
|
46
|
+
completionReason: string;
|
|
47
|
+
};
|
|
48
|
+
}> | PutEffect<{
|
|
49
|
+
type: string;
|
|
50
|
+
payload: {
|
|
51
|
+
key: string;
|
|
52
|
+
value: number;
|
|
53
|
+
};
|
|
54
|
+
}> | PutEffect<{
|
|
55
|
+
type: string;
|
|
56
|
+
payload: {
|
|
57
|
+
name: string;
|
|
58
|
+
parentGuid: string;
|
|
59
|
+
objectData: {
|
|
60
|
+
catalogItemId: string;
|
|
61
|
+
quantity: number;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}> | PutEffect<{
|
|
65
|
+
type: string;
|
|
66
|
+
payload: {
|
|
67
|
+
name: string;
|
|
68
|
+
body: {
|
|
69
|
+
fulfillmentDetails?: {
|
|
70
|
+
shippingAttributes: Partial<ShippingAttributes>;
|
|
71
|
+
} | undefined;
|
|
72
|
+
upsellItems: {
|
|
73
|
+
cartItemId: string;
|
|
74
|
+
catalogItemId: string;
|
|
75
|
+
title: string;
|
|
76
|
+
quantity: number;
|
|
77
|
+
unitPrice: number;
|
|
78
|
+
totalPrice: number;
|
|
79
|
+
currency: string;
|
|
80
|
+
}[];
|
|
81
|
+
totalUpsellPrice: number;
|
|
82
|
+
currency: string;
|
|
83
|
+
paymentDetails: {
|
|
84
|
+
paymentMethod?: import("../../../../../libraries/domain/src/models").LayoutPaymentMethodType | undefined;
|
|
85
|
+
paymentProvider: "ApplePay" | "GooglePay" | "Stripe" | "Afterpay" | "Card";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}>, void, AppState | undefined>;
|
|
90
|
+
export declare function prepareDevicePay(gateway: GlobalGateway, logger: (log: Log) => void): Generator<CallEffect<void> | import("redux-saga/effects").SelectEffect | import("redux-saga/effects").ForkEffect<void> | PutEffect<{
|
|
91
|
+
type: string;
|
|
92
|
+
payload: {
|
|
93
|
+
name: string;
|
|
94
|
+
body: PrepareDevicePayEventPayload;
|
|
95
|
+
};
|
|
96
|
+
}>, void, AppState | undefined>;
|
|
97
|
+
export declare function processDevicePayResponse(logger: (log: Log) => void, action: DevicePayResponse): Generator<CallEffect<void> | PutEffect<{
|
|
98
|
+
type: string;
|
|
99
|
+
payload: import("../../../../../libraries/domain/src/models").CartItemInstantPurchaseFailure;
|
|
100
|
+
}> | PutEffect<{
|
|
101
|
+
type: string;
|
|
102
|
+
payload: {
|
|
103
|
+
event: string;
|
|
104
|
+
completionReason: string;
|
|
105
|
+
};
|
|
106
|
+
}> | PutEffect<{
|
|
107
|
+
type: string;
|
|
108
|
+
payload: {
|
|
109
|
+
key: string;
|
|
110
|
+
value: number;
|
|
111
|
+
};
|
|
112
|
+
}> | PutEffect<{
|
|
113
|
+
type: string;
|
|
114
|
+
payload: import("../../../../../libraries/domain/src/models").CartItemInstantPurchase;
|
|
115
|
+
}>, void, unknown>;
|
|
116
|
+
export declare function abortDevicePayOnDismissal(action: OfferLifecycle): Generator<PutEffect, void, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sagas';
|
|
@@ -11,3 +11,17 @@ export declare const INSTANT_PURCHASE_PARTNER_CHANNEL_ERROR = "INSTANT_PURCHASE_
|
|
|
11
11
|
export declare const INSTANT_PURCHASE_WSDK_CHANNEL_ERROR = "INSTANT_PURCHASE_WSDK_CHANNEL_ERROR";
|
|
12
12
|
export declare const CHECKOUT_BUTTON_INVALID_OFFERLIFECYCLE = "CHECKOUT_BUTTON_INVALID_OFFERLIFECYCLE";
|
|
13
13
|
export declare const CHECKOUT_BUTTON_UNKNOWN_EVENT = "CHECKOUT_BUTTON_UNKNOWN_EVENT";
|
|
14
|
+
export declare const DEVICE_PAY_CHANNEL_ERROR = "DEVICE_PAY_CHANNEL_ERROR";
|
|
15
|
+
export declare const MALFORMED_DEVICE_PAY_DATA = "MALFORMED_DEVICE_PAY_DATA";
|
|
16
|
+
export declare const MISSING_DEVICE_PAY_PROVIDER_DATA = "MISSING_DEVICE_PAY_PROVIDER_DATA";
|
|
17
|
+
export declare const DEVICE_PAY_NOT_AVAILABLE = "DEVICE_PAY_NOT_AVAILABLE";
|
|
18
|
+
export declare const DEVICE_PAY_PROVIDER_UNSUPPORTED = "DEVICE_PAY_PROVIDER_UNSUPPORTED";
|
|
19
|
+
export declare const DEVICE_PAY_PROVIDER_UNMAPPED = "DEVICE_PAY_PROVIDER_UNMAPPED";
|
|
20
|
+
export declare const PAYPAL_CHANNEL_ERROR = "PAYPAL_CHANNEL_ERROR";
|
|
21
|
+
export declare const MALFORMED_PAYPAL_DATA = "MALFORMED_PAYPAL_DATA";
|
|
22
|
+
export declare const MISSING_PAYPAL_CATALOG_ITEM = "MISSING_PAYPAL_CATALOG_ITEM";
|
|
23
|
+
export declare const SHOPPABLE_ADS_LEGACY_PARTNER_RESPONSE = "SHOPPABLE_ADS_LEGACY_PARTNER_RESPONSE";
|
|
24
|
+
export declare const SHOPPABLE_ADS_PARTNER_RESPONSE = "SHOPPABLE_ADS_PARTNER_RESPONSE";
|
|
25
|
+
export declare const MALFORMED_TAX_AND_SHIPPING_DATA = "MALFORMED_TAX_AND_SHIPPING_DATA";
|
|
26
|
+
export declare const TAX_AND_SHIPPING_REQUEST_TIMEOUT = "TAX_AND_SHIPPING_REQUEST_TIMEOUT";
|
|
27
|
+
export declare const INSTANT_PURCHASE_TAX_AND_SHIPPING_CHANNEL_ERROR = "INSTANT_PURCHASE_TAX_AND_SHIPPING_CHANNEL_ERROR";
|
|
@@ -3,6 +3,7 @@ import { Log } from '../../../../libraries/domain/src/models';
|
|
|
3
3
|
export declare const sagaActionTypes: {
|
|
4
4
|
readonly INITIATE_INSTANT_PURCHASE: "INSTANT_PURCHASE/INITIATE";
|
|
5
5
|
readonly INSTANT_PURCHASE_PARTNER_RESPONSE: "INSTANT_PURCHASE/PARTNER_RESPONSE";
|
|
6
|
+
readonly UPSELL_ITEM_INSTANT_PURCHASE_PARTNER_RESPONSE: "INSTANT_PURCHASE/UPSELL_ITEM_PARTNER_RESPONSE";
|
|
6
7
|
readonly INSTANT_PURCHASE_WSDK_RESPONSE: "INSTANT_PURCHASE/WSDK_RESPONSE";
|
|
7
8
|
readonly RAISE_METRIC: "GLOBAL/RAISE_METRIC";
|
|
8
9
|
readonly PREPARE_SIGNAL: "GLOBAL/PREPARE_SIGNAL";
|
|
@@ -12,9 +13,23 @@ export declare const sagaActionTypes: {
|
|
|
12
13
|
readonly SEND_PARTNER: "GLOBAL/SEND_PARTNER";
|
|
13
14
|
readonly SET_CUSTOM_STATE: "GLOBAL/SET_CUSTOM_STATE";
|
|
14
15
|
readonly SET_DOMAIN_STATE: "GLOBAL/SET_DOMAIN_STATE";
|
|
16
|
+
readonly LAYOUT_EVENT: "GLOBAL/LAYOUT_EVENT";
|
|
15
17
|
readonly OPEN_LINK: "GLOBAL/OPEN_LINK";
|
|
16
18
|
readonly SET_PARTNER_VALIDATION_STATUS: "GLOBAL/SET_PARTNER_VALIDATION_STATUS";
|
|
17
19
|
readonly SET_GLOBAL_OFFER_DATA_CART: "GLOBAL/SET_GLOBAL_OFFER_DATA_CART";
|
|
18
20
|
readonly LAUNCH_CHILD_LAYOUT: "GLOBAL/LAUNCH_CHILD_LAYOUT";
|
|
21
|
+
readonly INITIATE_CART_ITEM_EVENT: "GLOBAL/CART_ITEM_EVENT/INITIATE";
|
|
22
|
+
readonly CART_ITEM_RESPONSE: "GLOBAL/CART_ITEM_EVENT/RESPONSE";
|
|
23
|
+
readonly DISMISS_OVERLAY: "OVERLAY/DISMISS_OVERLAY";
|
|
24
|
+
readonly TRIGGER_ACTION: "GLOBAL/TRIGGER_ACTION";
|
|
25
|
+
readonly REGISTER_FORM_FIELD: "GLOBAL/REGISTER_FORM_FIELD";
|
|
26
|
+
readonly UNREGISTER_FORM_FIELD: "GLOBAL/UNREGISTER_FORM_FIELD";
|
|
27
|
+
readonly SET_FORM_FIELD_VALUE: "GLOBAL/SET_FORM_FIELD_VALUE";
|
|
28
|
+
readonly SET_FORM_FIELD_TOUCHED: "GLOBAL/SET_FORM_FIELD_TOUCHED";
|
|
29
|
+
readonly VALIDATE_FORM_FIELDS: "GLOBAL/VALIDATE_FORM_FIELDS";
|
|
30
|
+
readonly REPORT_ERROR: "ERROR/REPORT";
|
|
19
31
|
};
|
|
20
|
-
export declare function appSagas(gateway: GlobalGateway, logger: (log: Log) => void): Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").ForkEffect<void
|
|
32
|
+
export declare function appSagas(gateway: GlobalGateway, logger: (log: Log) => void): Generator<import("redux-saga/effects").AllEffect<import("redux-saga/effects").ForkEffect<void> | import("redux-saga/effects").ForkEffect<Generator<import("redux-saga/effects").CallEffect | import("redux-saga/effects").RaceEffect<unknown>, void, {
|
|
33
|
+
response: import("../models").InstantPurchaseTaxAndShippingResponsePayload | undefined;
|
|
34
|
+
offerEnd: unknown;
|
|
35
|
+
} | undefined>>>, void, unknown>;
|