@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,44 @@
|
|
|
1
|
+
import { Shipping } from '../models';
|
|
2
|
+
export declare const INITIATE_CART_ITEM_EVENT = "GLOBAL/CART_ITEM_EVENT/INITIATE";
|
|
3
|
+
export type InitiateCartItemPayload = {
|
|
4
|
+
cartItemId: string;
|
|
5
|
+
formData?: Shipping;
|
|
6
|
+
};
|
|
7
|
+
export type InitiateCartItemEvent = {
|
|
8
|
+
type: typeof INITIATE_CART_ITEM_EVENT;
|
|
9
|
+
payload: InitiateCartItemPayload;
|
|
10
|
+
};
|
|
11
|
+
export type CartItemSuccessData = {
|
|
12
|
+
cartItemId: string;
|
|
13
|
+
totalPrice: number;
|
|
14
|
+
currencyCode: string;
|
|
15
|
+
providerData: string;
|
|
16
|
+
shipping: Shipping;
|
|
17
|
+
success: true;
|
|
18
|
+
};
|
|
19
|
+
export type CartItemValidationError = {
|
|
20
|
+
code: string;
|
|
21
|
+
message: string;
|
|
22
|
+
};
|
|
23
|
+
export type CartItemFailureData = {
|
|
24
|
+
description?: string;
|
|
25
|
+
success: false;
|
|
26
|
+
errors: CartItemValidationError[];
|
|
27
|
+
};
|
|
28
|
+
export type CartItemResponseData = CartItemSuccessData | CartItemFailureData;
|
|
29
|
+
export type CartItemResponsePayload = {
|
|
30
|
+
success: boolean;
|
|
31
|
+
error?: string;
|
|
32
|
+
timestamp: string;
|
|
33
|
+
sessionId: string;
|
|
34
|
+
response?: CartItemResponseData;
|
|
35
|
+
};
|
|
36
|
+
export declare const CART_ITEM_RESPONSE = "GLOBAL/CART_ITEM_EVENT/RESPONSE";
|
|
37
|
+
export type CartItemResponse = {
|
|
38
|
+
type: typeof CART_ITEM_RESPONSE;
|
|
39
|
+
payload: CartItemResponsePayload;
|
|
40
|
+
};
|
|
41
|
+
export declare const INITIALIZE_CART_SERVICE = "GLOBAL/CART_SERVICE/INITIALIZE";
|
|
42
|
+
export type InitializeCartService = {
|
|
43
|
+
type: typeof INITIALIZE_CART_SERVICE;
|
|
44
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { LayoutVariantDomainStateKey } from '@rokt/dcui-layout-schema';
|
|
1
|
+
import { LayoutVariantDomainStateKey, OuterLayoutDomainStateKey } from '@rokt/dcui-layout-schema';
|
|
2
2
|
export declare const SET_DOMAIN_STATE = "GLOBAL/SET_DOMAIN_STATE";
|
|
3
3
|
export interface SetDomainState {
|
|
4
4
|
type: typeof SET_DOMAIN_STATE;
|
|
5
5
|
payload: SetDomainStatePayload;
|
|
6
6
|
}
|
|
7
7
|
export interface SetDomainStatePayload {
|
|
8
|
-
key: LayoutVariantDomainStateKey;
|
|
8
|
+
key: LayoutVariantDomainStateKey | OuterLayoutDomainStateKey;
|
|
9
9
|
value: number;
|
|
10
10
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { InputValidation } from '@rokt/dcui-layout-schema';
|
|
2
|
+
/**
|
|
3
|
+
* Global form-state behaviors. These are dispatched by the TextInput and
|
|
4
|
+
* ActionButton nodes via the GlobalActions context and translated into
|
|
5
|
+
* offer-scoped store actions by the GlobalStoreProxy (which injects the
|
|
6
|
+
* `offerPositionIndex`), mirroring how SET_CUSTOM_STATE works.
|
|
7
|
+
*
|
|
8
|
+
* The form's `validationMode` is intentionally NOT stored — it is provided to
|
|
9
|
+
* descendants through the React FormContext, and the component decides whether
|
|
10
|
+
* a value change should validate via the `validate` flag below. This keeps the
|
|
11
|
+
* reducer mode-agnostic.
|
|
12
|
+
*/
|
|
13
|
+
export declare const REGISTER_FORM_FIELD = "GLOBAL/REGISTER_FORM_FIELD";
|
|
14
|
+
export declare const UNREGISTER_FORM_FIELD = "GLOBAL/UNREGISTER_FORM_FIELD";
|
|
15
|
+
export declare const SET_FORM_FIELD_VALUE = "GLOBAL/SET_FORM_FIELD_VALUE";
|
|
16
|
+
export declare const SET_FORM_FIELD_TOUCHED = "GLOBAL/SET_FORM_FIELD_TOUCHED";
|
|
17
|
+
export declare const VALIDATE_FORM_FIELDS = "GLOBAL/VALIDATE_FORM_FIELDS";
|
|
18
|
+
export interface RegisterFormFieldPayload {
|
|
19
|
+
formKey: string;
|
|
20
|
+
fieldKey: string;
|
|
21
|
+
defaultValue: string;
|
|
22
|
+
validations: InputValidation[];
|
|
23
|
+
}
|
|
24
|
+
export interface SetFormFieldValuePayload {
|
|
25
|
+
formKey: string;
|
|
26
|
+
fieldKey: string;
|
|
27
|
+
value: string;
|
|
28
|
+
/**
|
|
29
|
+
* When true, the field is re-validated as part of applying the value (used
|
|
30
|
+
* for on-change mode and for fields that have already been validated).
|
|
31
|
+
*/
|
|
32
|
+
validate: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface UnregisterFormFieldPayload {
|
|
35
|
+
formKey: string;
|
|
36
|
+
fieldKey: string;
|
|
37
|
+
}
|
|
38
|
+
export interface SetFormFieldTouchedPayload {
|
|
39
|
+
formKey: string;
|
|
40
|
+
fieldKey: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ValidateFormFieldsPayload {
|
|
43
|
+
/** Raw `validates` entries — bare form keys and/or dot-notation field keys. */
|
|
44
|
+
entries: string[];
|
|
45
|
+
}
|
|
46
|
+
export interface RegisterFormField {
|
|
47
|
+
type: typeof REGISTER_FORM_FIELD;
|
|
48
|
+
payload: RegisterFormFieldPayload;
|
|
49
|
+
}
|
|
50
|
+
export interface UnregisterFormField {
|
|
51
|
+
type: typeof UNREGISTER_FORM_FIELD;
|
|
52
|
+
payload: UnregisterFormFieldPayload;
|
|
53
|
+
}
|
|
54
|
+
export interface SetFormFieldValue {
|
|
55
|
+
type: typeof SET_FORM_FIELD_VALUE;
|
|
56
|
+
payload: SetFormFieldValuePayload;
|
|
57
|
+
}
|
|
58
|
+
export interface SetFormFieldTouched {
|
|
59
|
+
type: typeof SET_FORM_FIELD_TOUCHED;
|
|
60
|
+
payload: SetFormFieldTouchedPayload;
|
|
61
|
+
}
|
|
62
|
+
export interface ValidateFormFields {
|
|
63
|
+
type: typeof VALIDATE_FORM_FIELDS;
|
|
64
|
+
payload: ValidateFormFieldsPayload;
|
|
65
|
+
}
|
|
66
|
+
export type FormStateBehaviors = RegisterFormField | UnregisterFormField | SetFormFieldValue | SetFormFieldTouched | ValidateFormFields;
|
|
@@ -6,12 +6,17 @@ import { SetCustomState } from './custom-states';
|
|
|
6
6
|
import { SendPartner } from './send-partner';
|
|
7
7
|
import { OfferOutboundPartnerEvent } from '../models';
|
|
8
8
|
import { SetDomainState } from './domain-states';
|
|
9
|
+
import { LayoutEventAction } from './layout-events';
|
|
9
10
|
import { PrepareSignal } from './prepare-signal';
|
|
10
11
|
import { OpenLink } from './open-link';
|
|
11
12
|
import { SetPartnerValidationStatus } from './partner-validation';
|
|
12
13
|
import { SetGlobalOfferDataCart } from './global-offer-data-state';
|
|
13
14
|
import { LaunchChildLayout } from './child-layout';
|
|
14
|
-
|
|
15
|
+
import { DismissOverlay } from './dismiss-overlay';
|
|
16
|
+
import { TriggerAction } from './trigger-action';
|
|
17
|
+
import { ReportError } from './report-error';
|
|
18
|
+
import { FormStateBehaviors } from './form-state';
|
|
19
|
+
export type GlobalActions = RaiseMetric | PrepareSignal | OfferEngagement | RaiseSignal | OfferLifecycle | SendPartner<OfferOutboundPartnerEvent> | SetCustomState | SetDomainState | LayoutEventAction | OpenLink | SetPartnerValidationStatus | SetGlobalOfferDataCart | LaunchChildLayout | DismissOverlay | TriggerAction | FormStateBehaviors | ReportError;
|
|
15
20
|
export declare const GlobalActionTypes: {
|
|
16
21
|
readonly RAISE_METRIC: "GLOBAL/RAISE_METRIC";
|
|
17
22
|
readonly PREPARE_SIGNAL: "GLOBAL/PREPARE_SIGNAL";
|
|
@@ -21,9 +26,20 @@ export declare const GlobalActionTypes: {
|
|
|
21
26
|
readonly SEND_PARTNER: "GLOBAL/SEND_PARTNER";
|
|
22
27
|
readonly SET_CUSTOM_STATE: "GLOBAL/SET_CUSTOM_STATE";
|
|
23
28
|
readonly SET_DOMAIN_STATE: "GLOBAL/SET_DOMAIN_STATE";
|
|
29
|
+
readonly LAYOUT_EVENT: "GLOBAL/LAYOUT_EVENT";
|
|
24
30
|
readonly OPEN_LINK: "GLOBAL/OPEN_LINK";
|
|
25
31
|
readonly SET_PARTNER_VALIDATION_STATUS: "GLOBAL/SET_PARTNER_VALIDATION_STATUS";
|
|
26
32
|
readonly SET_GLOBAL_OFFER_DATA_CART: "GLOBAL/SET_GLOBAL_OFFER_DATA_CART";
|
|
27
33
|
readonly LAUNCH_CHILD_LAYOUT: "GLOBAL/LAUNCH_CHILD_LAYOUT";
|
|
34
|
+
readonly INITIATE_CART_ITEM_EVENT: "GLOBAL/CART_ITEM_EVENT/INITIATE";
|
|
35
|
+
readonly CART_ITEM_RESPONSE: "GLOBAL/CART_ITEM_EVENT/RESPONSE";
|
|
36
|
+
readonly DISMISS_OVERLAY: "OVERLAY/DISMISS_OVERLAY";
|
|
37
|
+
readonly TRIGGER_ACTION: "GLOBAL/TRIGGER_ACTION";
|
|
38
|
+
readonly REGISTER_FORM_FIELD: "GLOBAL/REGISTER_FORM_FIELD";
|
|
39
|
+
readonly UNREGISTER_FORM_FIELD: "GLOBAL/UNREGISTER_FORM_FIELD";
|
|
40
|
+
readonly SET_FORM_FIELD_VALUE: "GLOBAL/SET_FORM_FIELD_VALUE";
|
|
41
|
+
readonly SET_FORM_FIELD_TOUCHED: "GLOBAL/SET_FORM_FIELD_TOUCHED";
|
|
42
|
+
readonly VALIDATE_FORM_FIELDS: "GLOBAL/VALIDATE_FORM_FIELDS";
|
|
43
|
+
readonly REPORT_ERROR: "ERROR/REPORT";
|
|
28
44
|
};
|
|
29
45
|
export type GlobalActionType = GlobalActions['type'];
|
|
@@ -7,7 +7,13 @@ export * from './offer-lifecycle';
|
|
|
7
7
|
export * from './send-partner';
|
|
8
8
|
export * from './custom-states';
|
|
9
9
|
export * from './domain-states';
|
|
10
|
+
export * from './layout-events';
|
|
10
11
|
export * from './open-link';
|
|
11
12
|
export * from './partner-validation';
|
|
12
13
|
export * from './global-offer-data-state';
|
|
13
14
|
export * from './child-layout';
|
|
15
|
+
export * from './cart-item-event';
|
|
16
|
+
export * from './dismiss-overlay';
|
|
17
|
+
export * from './trigger-action';
|
|
18
|
+
export * from './form-state';
|
|
19
|
+
export * from './report-error';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LayoutEvent } from '@rokt/dcui-layout-schema';
|
|
2
|
+
export declare const LAYOUT_EVENT = "GLOBAL/LAYOUT_EVENT";
|
|
3
|
+
export interface LayoutEventAction {
|
|
4
|
+
type: typeof LAYOUT_EVENT;
|
|
5
|
+
payload: LayoutEventPayload;
|
|
6
|
+
}
|
|
7
|
+
export interface LayoutEventPayload {
|
|
8
|
+
event: LayoutEvent;
|
|
9
|
+
/**
|
|
10
|
+
* The layout-variant slot the event originated from, used to scope the
|
|
11
|
+
* `firedEvents` state per slot. Injected by the store proxy from the offer
|
|
12
|
+
* context; absent for outer-layout events, which fall back to the `root`
|
|
13
|
+
* bucket.
|
|
14
|
+
*/
|
|
15
|
+
offerPositionIndex?: number;
|
|
16
|
+
creativeInstanceGuid?: string;
|
|
17
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fulfillment, PluginCreativeFulfillmentResponseOption, PluginCreativeExternalResponseOption, PluginCreativeCaptureOnlyResponseOption, PluginCreativeUrlResponseOption } from '../models';
|
|
1
|
+
import { Fulfillment, PluginCreativeFulfillmentResponseOption, PluginCreativeExternalResponseOption, PluginCreativeResponseOption, PluginOffer, PluginCreativeCaptureOnlyResponseOption, PluginCreativeUrlResponseOption } from '../models';
|
|
2
2
|
export declare const OFFER_ENGAGEMENT = "GLOBAL/OFFER_ENGAGEMENT";
|
|
3
3
|
export interface OfferEngagement {
|
|
4
4
|
type: typeof OFFER_ENGAGEMENT;
|
|
@@ -7,6 +7,7 @@ export interface OfferEngagement {
|
|
|
7
7
|
export type OfferProcessStatus = 'END' | 'CONTINUE';
|
|
8
8
|
export type OfferEngagementState = {
|
|
9
9
|
offerProcessStatus: OfferProcessStatus;
|
|
10
|
+
isNegativeResponse?: boolean;
|
|
10
11
|
};
|
|
11
12
|
export interface OfferEngagementFulfillmentPayload {
|
|
12
13
|
responseOption: PluginCreativeFulfillmentResponseOption;
|
|
@@ -46,3 +47,4 @@ export declare function isRealTimeReferralOnly(response: OfferEngagementPayload
|
|
|
46
47
|
};
|
|
47
48
|
export declare function makeCaptureOnlyOfferEngagementPayload(offerPayload?: Partial<OfferEngagementCaptureOnlyPayload>): OfferEngagementCaptureOnlyPayload;
|
|
48
49
|
export declare function makeUrlOfferEngagementPayload(offerPayload?: Partial<OfferEngagementUrlPayload>): OfferEngagementUrlPayload;
|
|
50
|
+
export declare function makeResponsePayload(offer: PluginOffer, response: Exclude<PluginCreativeResponseOption, PluginCreativeExternalResponseOption>, openLinks?: string | null): OfferEngagementPayload;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reports a diagnostic to the host plugin's error service from anywhere a
|
|
3
|
+
* global dispatch is available. The constant matches the store-level
|
|
4
|
+
* `ERROR/REPORT` action (like DISMISS_OVERLAY), so every store's existing
|
|
5
|
+
* error saga picks it up with no per-store translation: the orchestrator and
|
|
6
|
+
* child renderer handle it directly, and the GlobalStoreProxy passes
|
|
7
|
+
* non-offer-specific actions through to the orchestrator store verbatim.
|
|
8
|
+
*/
|
|
9
|
+
export declare const REPORT_ERROR = "ERROR/REPORT";
|
|
10
|
+
/**
|
|
11
|
+
* Deliberately narrower than @rokt/plugin's ErrorLevel: the error saga
|
|
12
|
+
* treats `ERROR` as placement-fatal (it dispatches PLACEMENT_FAILURE and
|
|
13
|
+
* closes the plugin), which a component-originated diagnostic must never
|
|
14
|
+
* trigger. Fatal errors belong to the saga/store layer, not this behavior.
|
|
15
|
+
*/
|
|
16
|
+
export type ReportErrorLevel = 'INFO' | 'WARNING';
|
|
17
|
+
export interface ReportErrorPayload {
|
|
18
|
+
level: ReportErrorLevel;
|
|
19
|
+
code?: string;
|
|
20
|
+
message?: string;
|
|
21
|
+
additionalInformation?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
export interface ReportError {
|
|
24
|
+
type: typeof REPORT_ERROR;
|
|
25
|
+
payload: ReportErrorPayload;
|
|
26
|
+
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { OutboundPartnerEvent, PluginCartItem,
|
|
1
|
+
import { CartItemPayload, InstantPurchaseWsdkPayload, ItemDetail, OutboundPartnerEvent, PluginCartItem, Shipping, InitiateDevicePayEventPayload, PrepareDevicePayEventPayload, PartnerUpsellItemInstantPurchasePayload, InstantPurchaseInitiateTaxAndShippingEventPayload } from '../models';
|
|
2
2
|
export declare const SEND_PARTNER = "GLOBAL/SEND_PARTNER";
|
|
3
3
|
export type OutboundInstantPurchaseEventPayload = {
|
|
4
4
|
name: 'CART_ITEM_INSTANT_PURCHASE';
|
|
5
5
|
body: Record<string, PluginCartItem | null>;
|
|
6
6
|
};
|
|
7
|
+
export type OutboundUpsellItemInstantPurchaseEventPayload = {
|
|
8
|
+
name: 'UPSELL_ITEM_INSTANT_PURCHASE';
|
|
9
|
+
body: PartnerUpsellItemInstantPurchasePayload;
|
|
10
|
+
};
|
|
7
11
|
export type OutboundRealtimeOfferFulfillmentReferralEventPayload = {
|
|
8
12
|
name: 'REALTIME_OFFER_FULFILLMENT_REFERRAL';
|
|
9
13
|
body: {
|
|
@@ -29,6 +33,10 @@ export type OutboundUpdateCartEventPayload = {
|
|
|
29
33
|
name: 'V2_CART_ITEM_UPDATED';
|
|
30
34
|
body: Record<string, PluginCartItem | null>;
|
|
31
35
|
};
|
|
36
|
+
export type OutboundUpdateCartItemMessageEventPayload = {
|
|
37
|
+
name: 'UPDATE_CART_ITEM_MESSAGE';
|
|
38
|
+
body: Record<string, PluginCartItem | null>;
|
|
39
|
+
};
|
|
32
40
|
export type OutboundUpsellCreativeSentEventPayload = {
|
|
33
41
|
name: 'UPSELL_CREATIVE_SENT';
|
|
34
42
|
body: {
|
|
@@ -37,14 +45,43 @@ export type OutboundUpsellCreativeSentEventPayload = {
|
|
|
37
45
|
description: string;
|
|
38
46
|
};
|
|
39
47
|
};
|
|
48
|
+
export type OutboundDeliveryDetailsSentEventPayload = {
|
|
49
|
+
name: 'DELIVERY_DETAILS_SENT';
|
|
50
|
+
body: {
|
|
51
|
+
shipping: Shipping;
|
|
52
|
+
itemDetail: ItemDetail;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
40
55
|
export type OutboundInstantPurchaseWsdkEventPayload = {
|
|
41
56
|
name: 'INITIATE_INSTANT_PURCHASE_EVENT';
|
|
42
57
|
body: InstantPurchaseWsdkPayload;
|
|
43
58
|
};
|
|
44
|
-
export type
|
|
59
|
+
export type OutboundInstantPurchaseTaxAndShippingEventPayload = {
|
|
60
|
+
name: 'INSTANT_PURCHASE_INITIATE_TAX_AND_SHIPPING_EVENT';
|
|
61
|
+
body: InstantPurchaseInitiateTaxAndShippingEventPayload;
|
|
62
|
+
};
|
|
63
|
+
export type OutboundCartItemEventPayload = {
|
|
64
|
+
name: 'INITIATE_CART_ITEM_EVENT';
|
|
65
|
+
body: CartItemPayload;
|
|
66
|
+
};
|
|
67
|
+
export type OutboundPrepareDevicePayEventPayload = {
|
|
68
|
+
name: 'PREPARE_DEVICE_PAY_EVENT';
|
|
69
|
+
body: PrepareDevicePayEventPayload;
|
|
70
|
+
};
|
|
71
|
+
export type OutboundDevicePayEventPayload = {
|
|
72
|
+
name: 'INITIATE_DEVICE_PAY_EVENT';
|
|
73
|
+
body: InitiateDevicePayEventPayload;
|
|
74
|
+
};
|
|
75
|
+
export type OutboundAbortDevicePayEventPayload = {
|
|
76
|
+
name: 'ABORT_DEVICE_PAY_EVENT';
|
|
77
|
+
};
|
|
78
|
+
export type OutboundCompleteDevicePayEventPayload = {
|
|
79
|
+
name: 'COMPLETE_DEVICE_PAY_EVENT';
|
|
80
|
+
};
|
|
81
|
+
export type OutboundPartnerEventPayload<EventType extends OutboundPartnerEvent> = EventType extends 'REALTIME_OFFER_FULFILLMENT_REFERRAL' ? OutboundRealtimeOfferFulfillmentReferralEventPayload : EventType extends 'REALTIME_OFFER_FULFILLMENT_CONVERSION' ? OutboundRealtimeOfferFulfillmentConversionEventPayload : EventType extends 'REALTIME_OFFER_FULFILLMENT_SUCCESS' ? OutboundRealtimeOfferFulfillmentSuccessEventPayload : EventType extends 'V2_CART_ITEM_UPDATED' | 'UPDATE_CART_ITEM_MESSAGE' | 'CART_ITEM_INSTANT_PURCHASE' | 'UPSELL_ITEM_INSTANT_PURCHASE' | 'UPSELL_CREATIVE_SENT' | 'INITIATE_INSTANT_PURCHASE_EVENT' | 'INSTANT_PURCHASE_INITIATE_TAX_AND_SHIPPING_EVENT' | 'INITIATE_CART_ITEM_EVENT' | 'DELIVERY_DETAILS_SENT' | 'PREPARE_DEVICE_PAY_EVENT' | 'INITIATE_DEVICE_PAY_EVENT' | 'ABORT_DEVICE_PAY_EVENT' | 'COMPLETE_DEVICE_PAY_EVENT' ? never : {
|
|
45
82
|
name: EventType;
|
|
46
83
|
};
|
|
47
84
|
export type SendPartner<EventType extends OutboundPartnerEvent> = {
|
|
48
85
|
type: typeof SEND_PARTNER;
|
|
49
|
-
payload: OutboundPartnerEventPayload<EventType> | OutboundUpdateCartEventPayload | OutboundInstantPurchaseEventPayload | OutboundUpsellCreativeSentEventPayload | OutboundInstantPurchaseWsdkEventPayload;
|
|
86
|
+
payload: OutboundPartnerEventPayload<EventType> | OutboundUpdateCartEventPayload | OutboundUpdateCartItemMessageEventPayload | OutboundInstantPurchaseEventPayload | OutboundUpsellItemInstantPurchaseEventPayload | OutboundUpsellCreativeSentEventPayload | OutboundInstantPurchaseWsdkEventPayload | OutboundInstantPurchaseTaxAndShippingEventPayload | OutboundCartItemEventPayload | OutboundDeliveryDetailsSentEventPayload | OutboundPrepareDevicePayEventPayload | OutboundDevicePayEventPayload | OutboundAbortDevicePayEventPayload | OutboundCompleteDevicePayEventPayload;
|
|
50
87
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LayoutAction, LayoutVariantAction, OuterLayoutAction } from '@rokt/dcui-layout-schema';
|
|
2
|
+
import { PluginOffer } from '../models';
|
|
3
|
+
export declare const TRIGGER_ACTION = "GLOBAL/TRIGGER_ACTION";
|
|
4
|
+
/**
|
|
5
|
+
* Actions a trigger (e.g. a layout timer or button) can carry. A trigger may
|
|
6
|
+
* originate in any of the three layout contexts, so the channel accepts the
|
|
7
|
+
* union of all their action sets rather than assuming one stays a superset of
|
|
8
|
+
* the others. This keeps producers in every context assignable even if the
|
|
9
|
+
* sets diverge in future schema versions.
|
|
10
|
+
*/
|
|
11
|
+
export type TriggerableAction = LayoutAction | OuterLayoutAction | LayoutVariantAction;
|
|
12
|
+
export interface TriggerAction {
|
|
13
|
+
type: typeof TRIGGER_ACTION;
|
|
14
|
+
payload: {
|
|
15
|
+
action: TriggerableAction;
|
|
16
|
+
offer?: PluginOffer;
|
|
17
|
+
offerPositionIndex?: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { InputValidation } from '@rokt/dcui-layout-schema';
|
|
2
|
+
/**
|
|
3
|
+
* Runtime state for a single form field. Mirrors the field-level concepts in
|
|
4
|
+
* the DCUI forms design: the current value, the value it was initialised with
|
|
5
|
+
* (used to derive `dirty`), the active validation error message, and the
|
|
6
|
+
* interaction/validation flags.
|
|
7
|
+
*/
|
|
8
|
+
export interface FormFieldState {
|
|
9
|
+
/** The current value entered by the user. */
|
|
10
|
+
value: string;
|
|
11
|
+
/** The value the field was registered with (used to derive `dirty`). */
|
|
12
|
+
defaultValue: string;
|
|
13
|
+
/** The active validation error message, or '' when there is no error. */
|
|
14
|
+
error: string;
|
|
15
|
+
/** Whether the field has received focus at least once. */
|
|
16
|
+
touched: boolean;
|
|
17
|
+
/** Whether validation has run on this field at least once. */
|
|
18
|
+
validated: boolean;
|
|
19
|
+
/** Result of the last validation run. Only meaningful when `validated`. */
|
|
20
|
+
valid: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the prerequisite for SHOWING validation errors has been met: the
|
|
23
|
+
* form was submitted (VALIDATE_FORM_FIELDS) or the user changed the value
|
|
24
|
+
* in a validating mode. Validity itself is computed eagerly (so `is-valid`
|
|
25
|
+
* predicates and button enablement work for prefilled fields), but error
|
|
26
|
+
* styling/messages and the `is-invalid` predicate stay hidden until this
|
|
27
|
+
* flips — a prefilled-but-invalid default must not render errors at first
|
|
28
|
+
* paint, matching Angular/Formik display gating.
|
|
29
|
+
*/
|
|
30
|
+
errorVisible: boolean;
|
|
31
|
+
/** The validation rules registered for this field. */
|
|
32
|
+
validations: InputValidation[];
|
|
33
|
+
/**
|
|
34
|
+
* How many mounted inputs are currently registered on this field. A field
|
|
35
|
+
* whose count drops to 0 is inactive (a tombstone): it stops participating
|
|
36
|
+
* in validation, FormState predicates and templates, but retains its value
|
|
37
|
+
* so a re-mounting input (e.g. behind a When or a breakpoint flip between
|
|
38
|
+
* duplicated subtrees) restores what the user typed. Duplicated inputs
|
|
39
|
+
* sharing a field key keep the field active until the last one unmounts.
|
|
40
|
+
*/
|
|
41
|
+
registrationCount: number;
|
|
42
|
+
}
|
|
43
|
+
/** Whether the field currently has at least one mounted input registered. */
|
|
44
|
+
export declare function isFormFieldActive(field: FormFieldState): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the field's validation errors should currently be SHOWN. The single
|
|
47
|
+
* display-gate predicate shared by the input's error rendering, the
|
|
48
|
+
* `is-invalid` When predicate, and the error template projection, so the
|
|
49
|
+
* built-in and custom error surfaces can never disagree.
|
|
50
|
+
*/
|
|
51
|
+
export declare function isFormFieldErrorVisible(field: FormFieldState): boolean;
|
|
52
|
+
/** All fields within a single form, keyed by `field_key`. */
|
|
53
|
+
export type FormState = Record<string, FormFieldState>;
|
|
54
|
+
/** All forms within a single scope, keyed by `form_key`. */
|
|
55
|
+
export type FormStatesState = Record<string, FormState>;
|
|
56
|
+
export declare function makeInitialFormFieldState(data?: Partial<FormFieldState>): FormFieldState;
|
|
57
|
+
/**
|
|
58
|
+
* Runs the supplied validations against a value and returns the first failing
|
|
59
|
+
* validator's message, or '' when the value passes all validations. Pure — used
|
|
60
|
+
* by both the form-state reducer and the ActionButton's pre-dispatch gating so
|
|
61
|
+
* the two never diverge.
|
|
62
|
+
*
|
|
63
|
+
* Only `Required` can fail an empty value; the other validators apply solely
|
|
64
|
+
* when a value is present (matching HTML5 constraint validation, Angular, and
|
|
65
|
+
* Formik/Yup). This is what makes an optional-but-validated field
|
|
66
|
+
* expressible: a Pattern-only email field passes while blank and validates
|
|
67
|
+
* once the user types.
|
|
68
|
+
*/
|
|
69
|
+
export declare function firstValidationError(value: string, validations?: InputValidation[]): string;
|
|
70
|
+
/** A resolved reference to a single field within a form. */
|
|
71
|
+
export interface FormFieldRef {
|
|
72
|
+
formKey: string;
|
|
73
|
+
fieldKey: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Resolves a list of `validates` entries against the current form state into
|
|
77
|
+
* concrete field references. An entry is either a bare form key
|
|
78
|
+
* (`"ShippingForm"` — every ACTIVE field in that form; inactive tombstones
|
|
79
|
+
* are excluded so a field hidden by a When cannot block validation) or a
|
|
80
|
+
* dot-notation field key (`"ShippingForm.email"` — that single field,
|
|
81
|
+
* returned regardless of active status so callers can distinguish "hidden"
|
|
82
|
+
* from "never existed"). Shared by the reducer (to set errors) and the
|
|
83
|
+
* ActionButton (to gate dispatch) so both resolve entries identically.
|
|
84
|
+
*/
|
|
85
|
+
export declare function resolveFormFieldRefs(formStates: FormStatesState, entries: string[]): FormFieldRef[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { DomainStateKey } from '@rokt/dcui-layout-schema';
|
|
1
|
+
import { DomainStateKey, LayoutEvent } from '@rokt/dcui-layout-schema';
|
|
2
|
+
import { FormStatesState } from './form-state';
|
|
2
3
|
export interface GlobalState {
|
|
3
4
|
breakpoint: {
|
|
4
5
|
breakpoints: Record<string, number>;
|
|
@@ -12,5 +13,7 @@ export interface GlobalState {
|
|
|
12
13
|
};
|
|
13
14
|
customStates: Record<string, number>;
|
|
14
15
|
domainStates: Partial<Record<DomainStateKey, number>>;
|
|
16
|
+
firedEvents: Partial<Record<LayoutEvent, boolean>>;
|
|
17
|
+
formStates: FormStatesState;
|
|
15
18
|
}
|
|
16
19
|
export declare function makeGlobalState(state?: Partial<GlobalState>): GlobalState;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './layout';
|
|
2
2
|
export * from './plugin';
|
|
3
|
+
export * from './domain-state-keys';
|
|
3
4
|
export * from './global-state';
|
|
5
|
+
export * from './form-state';
|
|
4
6
|
export * from './metric-name';
|
|
5
7
|
export * from './metrics';
|
|
6
8
|
export * from './signals';
|
|
@@ -11,3 +13,4 @@ export * from './partner-event';
|
|
|
11
13
|
export * from './interactivity';
|
|
12
14
|
export * from './child-plugin';
|
|
13
15
|
export * from './purchase';
|
|
16
|
+
export * from './shipping';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LayoutDisplayPreset, LayoutSchemaModel, LayoutSettings, ChildRootSchemaModel, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
import { Fonts } from '@rokt/plugin';
|
|
2
3
|
import { LayoutOffer } from './layout-offer';
|
|
3
4
|
export interface LayoutChildConfig<ChildRootLayoutSchema> {
|
|
4
5
|
instanceGuid: string;
|
|
@@ -9,5 +10,6 @@ export interface LayoutChildConfig<ChildRootLayoutSchema> {
|
|
|
9
10
|
content?: {
|
|
10
11
|
text: Record<string, string>;
|
|
11
12
|
};
|
|
13
|
+
fonts?: Fonts;
|
|
12
14
|
}
|
|
13
15
|
export declare function makeLayoutChildConfig(data?: Partial<LayoutChildConfig<ChildRootSchemaModel<LayoutSchemaModel, LayoutDisplayPreset, LayoutSettings, WhenPredicate>>>): LayoutChildConfig<ChildRootSchemaModel<LayoutSchemaModel, LayoutDisplayPreset, LayoutSettings, WhenPredicate>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LayoutDisplayPreset, LayoutSchemaModel, LayoutSettings, RootSchemaModel } from '@rokt/dcui-layout-schema';
|
|
1
|
+
import { LayoutDisplayPreset, LayoutSchemaModel, LayoutSettings, LayoutAction, LayoutTimer, RootSchemaModel, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
2
|
import { LayoutSlot } from './layout-slot';
|
|
3
3
|
export interface LayoutConfig<LayoutSchema, RootLayoutSchema> {
|
|
4
4
|
slots: Array<LayoutSlot<LayoutSchema>>;
|
|
@@ -6,4 +6,4 @@ export interface LayoutConfig<LayoutSchema, RootLayoutSchema> {
|
|
|
6
6
|
layoutSchemaVersion: string;
|
|
7
7
|
outerLayoutSchema: string | RootLayoutSchema;
|
|
8
8
|
}
|
|
9
|
-
export declare function makeLayoutConfig(data?: Partial<LayoutConfig<LayoutSchemaModel, RootSchemaModel<LayoutSchemaModel, LayoutDisplayPreset, LayoutSettings
|
|
9
|
+
export declare function makeLayoutConfig(data?: Partial<LayoutConfig<LayoutSchemaModel, RootSchemaModel<LayoutSchemaModel, LayoutDisplayPreset, LayoutSettings, LayoutTimer<WhenPredicate, LayoutAction>>>>): LayoutConfig<LayoutSchemaModel, RootSchemaModel<LayoutSchemaModel, LayoutDisplayPreset, LayoutSettings, LayoutTimer<WhenPredicate, LayoutAction>>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LayoutCreative } from './layout-creative';
|
|
2
2
|
import { LayoutCatalogItem } from './layout-catalog-item';
|
|
3
|
+
import { LayoutTransactionData } from './layout-transaction-data';
|
|
3
4
|
export interface LayoutOffer {
|
|
4
5
|
campaignId: string;
|
|
5
6
|
accountId: string;
|
|
@@ -7,5 +8,6 @@ export interface LayoutOffer {
|
|
|
7
8
|
creative: LayoutCreative;
|
|
8
9
|
metadata: Record<string, string>;
|
|
9
10
|
catalogItems?: Array<LayoutCatalogItem>;
|
|
11
|
+
transactionData?: LayoutTransactionData;
|
|
10
12
|
}
|
|
11
13
|
export declare function makeLayoutOffer(data?: Partial<LayoutOffer>): LayoutOffer;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const enum LayoutSignalType {
|
|
2
2
|
SignalResponse = "SignalResponse",
|
|
3
3
|
SignalGatedResponse = "SignalGatedResponse",
|
|
4
|
-
SignalSecondaryResponse = "SignalSecondaryResponse"
|
|
4
|
+
SignalSecondaryResponse = "SignalSecondaryResponse",
|
|
5
|
+
SignalOptInResponse = "SignalOptInResponse",
|
|
6
|
+
SignalOptOutResponse = "SignalOptOutResponse"
|
|
5
7
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const enum LayoutPaymentMethodType {
|
|
2
|
+
Unspecified = "UNSPECIFIED",
|
|
3
|
+
Other = "OTHER",
|
|
4
|
+
Card = "CARD",
|
|
5
|
+
PayPal = "PAYPAL",
|
|
6
|
+
ApplePay = "APPLE_PAY",
|
|
7
|
+
GooglePay = "GOOGLE_PAY",
|
|
8
|
+
Afterpay = "AFTERPAY"
|
|
9
|
+
}
|
|
10
|
+
export interface LayoutPaymentMethodInfo {
|
|
11
|
+
type: LayoutPaymentMethodType;
|
|
12
|
+
}
|
|
13
|
+
export interface LayoutAddress {
|
|
14
|
+
address1: string;
|
|
15
|
+
address2?: string;
|
|
16
|
+
city: string;
|
|
17
|
+
state: string;
|
|
18
|
+
country: string;
|
|
19
|
+
zip?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface LayoutTransactionData {
|
|
23
|
+
shippingAddress?: LayoutAddress;
|
|
24
|
+
billingAddress?: LayoutAddress;
|
|
25
|
+
paymentType?: string;
|
|
26
|
+
supportedPaymentMethods?: LayoutPaymentMethodInfo[];
|
|
27
|
+
isPartnerManagedPurchase: boolean;
|
|
28
|
+
partnerPaymentReference?: string;
|
|
29
|
+
confirmationRef?: string;
|
|
30
|
+
metadata?: Record<string, string>;
|
|
31
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type CatalogOutboundPartnerEvent = 'V2_CART_ITEM_UPDATED' | 'CART_ITEM_INSTANT_PURCHASE';
|
|
2
|
-
export type OfferOutboundPartnerEvent = CatalogOutboundPartnerEvent | 'OFFER_ENGAGEMENT' | 'POSITIVE_ENGAGEMENT' | 'UPSELL_CREATIVE_SENT' | 'REALTIME_OFFER_FULFILLMENT_REFERRAL' | 'REALTIME_OFFER_FULFILLMENT_CONVERSION' | 'REALTIME_OFFER_FULFILLMENT_SUCCESS' | 'INITIATE_INSTANT_PURCHASE_EVENT';
|
|
1
|
+
export type CatalogOutboundPartnerEvent = 'V2_CART_ITEM_UPDATED' | 'UPDATE_CART_ITEM_MESSAGE' | 'CART_ITEM_INSTANT_PURCHASE' | 'UPSELL_ITEM_INSTANT_PURCHASE' | 'DELIVERY_DETAILS_SENT';
|
|
2
|
+
export type OfferOutboundPartnerEvent = CatalogOutboundPartnerEvent | 'OFFER_ENGAGEMENT' | 'POSITIVE_ENGAGEMENT' | 'UPSELL_CREATIVE_SENT' | 'REALTIME_OFFER_FULFILLMENT_REFERRAL' | 'REALTIME_OFFER_FULFILLMENT_CONVERSION' | 'REALTIME_OFFER_FULFILLMENT_SUCCESS' | 'INITIATE_INSTANT_PURCHASE_EVENT' | 'INSTANT_PURCHASE_INITIATE_TAX_AND_SHIPPING_EVENT' | 'INITIATE_CART_ITEM_EVENT' | 'PREPARE_DEVICE_PAY_EVENT' | 'INITIATE_DEVICE_PAY_EVENT' | 'ABORT_DEVICE_PAY_EVENT' | 'COMPLETE_DEVICE_PAY_EVENT';
|
|
3
3
|
export type OutboundPartnerEvent = OfferOutboundPartnerEvent | 'PLACEMENT_CLOSED' | 'PLACEMENT_COMPLETED' | 'PLACEMENT_INTERACTIVE' | 'PLACEMENT_FAILURE';
|
|
4
4
|
export declare function isOutboundPartnerEvent(value: unknown): value is OutboundPartnerEvent;
|
|
5
5
|
export declare function isOfferOutboundPartnerEvent(value: unknown): value is OfferOutboundPartnerEvent;
|
|
@@ -11,6 +11,8 @@ export * from './plugin-url-behavior';
|
|
|
11
11
|
export * from './plugin-layout-variant';
|
|
12
12
|
export * from './plugin-creative-icon';
|
|
13
13
|
export * from './plugin-catalog-item';
|
|
14
|
+
export * from './plugin-catalog-item-group';
|
|
15
|
+
export * from './plugin-transaction-data';
|
|
14
16
|
export * from './plugin-cart-item';
|
|
15
17
|
export * from './plugin-static-data';
|
|
16
18
|
export * from './plugin-child-layout-model';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface CatalogItemGroupOption {
|
|
2
|
+
label: string;
|
|
3
|
+
catalogItemIds: string[];
|
|
4
|
+
metadata: Record<string, unknown>;
|
|
5
|
+
}
|
|
6
|
+
export interface CatalogItemGroupAttribute {
|
|
7
|
+
attributeId: string;
|
|
8
|
+
label: string;
|
|
9
|
+
options: CatalogItemGroupOption[];
|
|
10
|
+
metadata: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
export interface CatalogItemGroup {
|
|
13
|
+
groupId: string;
|
|
14
|
+
catalogItemIds: string[];
|
|
15
|
+
attributes: CatalogItemGroupAttribute[];
|
|
16
|
+
metadata: Record<string, unknown>;
|
|
17
|
+
}
|
|
@@ -13,6 +13,8 @@ export interface PluginCatalogItem {
|
|
|
13
13
|
responseOptionsMap?: Record<string, PluginCreativeUrlResponseOption>;
|
|
14
14
|
priceFormatted: string;
|
|
15
15
|
price: number;
|
|
16
|
+
originalPrice?: number;
|
|
17
|
+
originalPriceFormatted?: string;
|
|
16
18
|
providerData?: string;
|
|
17
19
|
subtitle?: string;
|
|
18
20
|
title: string;
|
|
@@ -26,9 +28,15 @@ export interface PluginCatalogItem {
|
|
|
26
28
|
url?: string;
|
|
27
29
|
productSku?: string;
|
|
28
30
|
catalogId?: string;
|
|
31
|
+
inventoryStatus?: PluginCatalogItemInventoryStatus;
|
|
29
32
|
}
|
|
30
33
|
export interface PluginCatalogItemImage {
|
|
31
34
|
url: string;
|
|
32
35
|
altText?: string;
|
|
33
36
|
}
|
|
37
|
+
export declare enum PluginCatalogItemInventoryStatus {
|
|
38
|
+
Unknown = "Unknown",
|
|
39
|
+
InStock = "InStock",
|
|
40
|
+
OutOfStock = "OutOfStock"
|
|
41
|
+
}
|
|
34
42
|
export declare function makePluginCatalogItem(data?: Partial<PluginCatalogItem>): PluginCatalogItem;
|