@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,17 @@
|
|
|
1
|
+
export type PartnerValidationEvent = (typeof PartnerValidationEvent)[keyof typeof PartnerValidationEvent];
|
|
2
|
+
export declare const PartnerValidationEvent: {
|
|
3
|
+
/**
|
|
4
|
+
* Message sent from a partner to a plugin asking for its validation status.
|
|
5
|
+
* Plugin should respond with the validation status as per PartnerValidationStatusResponseBody.
|
|
6
|
+
*/
|
|
7
|
+
readonly SET_PARTNER_VALIDATION_STATUS: "SET_PARTNER_VALIDATION_STATUS";
|
|
8
|
+
/**
|
|
9
|
+
* Message sent from a plugin to a partner at plugin's bootstrap to opt in for sharing its validation status.
|
|
10
|
+
* Should be only sent by plugins which support Partner Validation functionality (i.e. handle GET_PARTNER_VALIDATION_STATUS).
|
|
11
|
+
*/
|
|
12
|
+
readonly OPT_IN_TO_PARTNER_VALIDATION: "OPT_IN_TO_PARTNER_VALIDATION";
|
|
13
|
+
/**
|
|
14
|
+
* Message sent from a partner to a plugin to tell the plugin to display it's validation status.
|
|
15
|
+
*/
|
|
16
|
+
readonly SHOW_PARTNER_VALIDATION_STATUS: "SHOW_PARTNER_VALIDATION_STATUS";
|
|
17
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PartnerValidationStatus } from './partner-validation-status';
|
|
2
|
+
export interface PartnerValidationExtension {
|
|
3
|
+
/**
|
|
4
|
+
* Provides the validation status for a selection or a specific placement.
|
|
5
|
+
*/
|
|
6
|
+
getValidationStatus(): Promise<PartnerValidationStatus>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface PartnerValidationStatusResponseBody {
|
|
2
|
+
/**
|
|
3
|
+
* Array of validation errors. Empty array means a valid state.
|
|
4
|
+
*/
|
|
5
|
+
errors: Array<PluginPartnerValidationError>;
|
|
6
|
+
}
|
|
7
|
+
export interface PluginPartnerValidationError {
|
|
8
|
+
/**
|
|
9
|
+
* Message describing the validation error
|
|
10
|
+
*/
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const RealtimeConversionPromotionEvents: {
|
|
2
|
+
readonly REALTIME_OFFER_FULFILLMENT_REFERRAL: "REALTIME_OFFER_FULFILLMENT_REFERRAL";
|
|
3
|
+
readonly REALTIME_OFFER_FULFILLMENT_CONVERSION: "REALTIME_OFFER_FULFILLMENT_CONVERSION";
|
|
4
|
+
readonly REALTIME_OFFER_FULFILLMENT_SUCCESS: "REALTIME_OFFER_FULFILLMENT_SUCCESS";
|
|
5
|
+
readonly REALTIME_OFFER_FULFILLMENT_FAILURE: "REALTIME_OFFER_FULFILLMENT_FAILURE";
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ConversionStatusBody = Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './thank-you-page-extension';
|
package/node_modules/@rokt/partner-integration/dist/thank-you-page/thank-you-page-extension.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { JourneyExtension } from '../journey/journey-extension';
|
|
2
|
+
export type ThankYouPageStages = (typeof ThankYouPageStages)[keyof typeof ThankYouPageStages];
|
|
3
|
+
export declare const ThankYouPageStages: {
|
|
4
|
+
readonly Waiting: "Waiting";
|
|
5
|
+
readonly ThankYouPage: "ThankYouPage";
|
|
6
|
+
readonly ConfirmationPage: "ConfirmationPage";
|
|
7
|
+
};
|
|
8
|
+
export type ThankYouPageExtensionError = {
|
|
9
|
+
name?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
stack?: string;
|
|
12
|
+
code?: string;
|
|
13
|
+
reporter?: string;
|
|
14
|
+
integration?: string;
|
|
15
|
+
severity?: string;
|
|
16
|
+
additionalInformation?: Record<string, string>;
|
|
17
|
+
handled?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type ThankYouPageExtension = JourneyExtension<ThankYouPageStages> & {
|
|
20
|
+
reportError: (error: ThankYouPageExtensionError) => Promise<void>;
|
|
21
|
+
setThankYouEnabled(enabled: boolean): void;
|
|
22
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type PartnerMessage = typeof PartnerMessage;
|
|
2
|
+
export declare const PartnerMessage: {
|
|
3
|
+
/**
|
|
4
|
+
* SEND_UPSELLS is a message from the Partner to the plugin
|
|
5
|
+
* It has no body
|
|
6
|
+
* On reciept of this message, the plugin will emit a response event UPSELLS_SENT
|
|
7
|
+
*/
|
|
8
|
+
readonly SEND_UPSELLS: "SEND_UPSELLS";
|
|
9
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type PlacementMessage = typeof PlacementMessage;
|
|
2
|
+
export declare const PlacementMessage: {
|
|
3
|
+
/**
|
|
4
|
+
* UPSELL_ENGAGEMENT is a message sent by the plugin to the Partner
|
|
5
|
+
* It has no body
|
|
6
|
+
* It will signal readiness to respond with all upsells on reciept of SEND_UPSELLS
|
|
7
|
+
*/
|
|
8
|
+
readonly UPSELL_ENGAGEMENT: "UPSELL_ENGAGEMENT";
|
|
9
|
+
/**
|
|
10
|
+
* UPSELLS_SENT is a message sent by plugin to the Partner
|
|
11
|
+
* It is only emitted as a response to a SEND_UPSELLS event
|
|
12
|
+
* It carries a payload with data for all Offers/CatalogItems within the placement
|
|
13
|
+
*/
|
|
14
|
+
readonly UPSELLS_SENT: "UPSELLS_SENT";
|
|
15
|
+
/**
|
|
16
|
+
* UPSELL_CREATIVE_SENT is a message sent by the plugin to the Partner
|
|
17
|
+
* It is emitted as a response to user selection of an upsell's read more button
|
|
18
|
+
* It carries a payload with the creative data for the selected upsell
|
|
19
|
+
*/
|
|
20
|
+
readonly UPSELL_CREATIVE_SENT: "UPSELL_CREATIVE_SENT";
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type UpsellCreativePlacementMessageBody = {
|
|
2
|
+
/**
|
|
3
|
+
* offerId is a unique offer id set by the provider for the upsell
|
|
4
|
+
*/
|
|
5
|
+
offerId: string;
|
|
6
|
+
/**
|
|
7
|
+
* title is the title of the upsell
|
|
8
|
+
*/
|
|
9
|
+
title: string;
|
|
10
|
+
/**
|
|
11
|
+
* description is the description of the upsell
|
|
12
|
+
*/
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface Offer {
|
|
2
|
+
id: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
catalogItems: Array<CatalogItem>;
|
|
7
|
+
}
|
|
8
|
+
export interface CatalogItem {
|
|
9
|
+
catalogItemId: string;
|
|
10
|
+
cartItemId: string;
|
|
11
|
+
title: string;
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
description: string;
|
|
14
|
+
positiveResponseText: string;
|
|
15
|
+
negativeResponseText: string;
|
|
16
|
+
visual: Visual;
|
|
17
|
+
url: string;
|
|
18
|
+
quantity: number;
|
|
19
|
+
price?: number;
|
|
20
|
+
priceFormatted?: string;
|
|
21
|
+
originalPrice?: number;
|
|
22
|
+
originalPriceFormatted?: string;
|
|
23
|
+
currency?: string;
|
|
24
|
+
minItemCount?: number;
|
|
25
|
+
maxItemCount?: number;
|
|
26
|
+
preSelectedQuantity?: number;
|
|
27
|
+
copy?: Record<string, string>;
|
|
28
|
+
}
|
|
29
|
+
export interface Visual {
|
|
30
|
+
url: string;
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
altText: string;
|
|
34
|
+
purpose: string;
|
|
35
|
+
}
|
package/node_modules/@rokt/partner-integration/dist/upsells-offers/upsells-offers-sent-body.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Offer } from './upsells-offer';
|
|
2
|
+
export interface UpsellsOffersSentBody {
|
|
3
|
+
/**
|
|
4
|
+
* referenceEventId corresponds to attribute `eventid` used by Partner as reference
|
|
5
|
+
*/
|
|
6
|
+
referenceEventId: string;
|
|
7
|
+
/**
|
|
8
|
+
* List of all offers in placement
|
|
9
|
+
*/
|
|
10
|
+
offers: Array<Offer>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type UserActionEvent = PaymentOptionSelectedEvent;
|
|
2
|
+
export type PaymentOptionSelectedEvent = {
|
|
3
|
+
/**
|
|
4
|
+
* Type of user action event, e.g. 'PAYMENT_OPTION_SELECTED' for a user selecting a payment option.
|
|
5
|
+
*/
|
|
6
|
+
type: 'PAYMENT_OPTION_SELECTED';
|
|
7
|
+
/**
|
|
8
|
+
* Option or text associated with the user action event, e.g. 'PayPal'
|
|
9
|
+
*/
|
|
10
|
+
option: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rokt/partner-integration",
|
|
3
|
+
"version": "4.10.0",
|
|
4
|
+
"license": "ISC",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "bunx rollup -c ./rollup.config.js",
|
|
12
|
+
"clean": "rm -r -f dist",
|
|
13
|
+
"lint": "tslint \"src/**/*.{ts,tsx}\"",
|
|
14
|
+
"lint-fix": "tslint --fix \"src/**/*.{ts,tsx}\"",
|
|
15
|
+
"test": "bunx vitest run --passWithNoTests --coverage",
|
|
16
|
+
"test:watch": "bunx vitest --watch --passWithNoTests",
|
|
17
|
+
"watch": "bunx rollup -c ./rollup.config.js -w"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@vitest/coverage-istanbul": "^4.0.18",
|
|
21
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
22
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
23
|
+
"@rollup/plugin-typescript": "^8.3.1",
|
|
24
|
+
"@types/node": "^20.11.5",
|
|
25
|
+
"jsdom": "^20.0.0",
|
|
26
|
+
"rollup": "^2.70.0",
|
|
27
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
28
|
+
"tslib": "^2.3.1",
|
|
29
|
+
"tslint": "^6.1.3",
|
|
30
|
+
"typescript": "^5.5.4",
|
|
31
|
+
"vitest": "^4.0.18"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": false
|
|
34
|
+
}
|
|
@@ -2,7 +2,6 @@ import { PluginInterface } from '../interface';
|
|
|
2
2
|
import { WindowRef } from '@rokt/kit/stdom';
|
|
3
3
|
export type BootstrapOptions = {
|
|
4
4
|
targetWindow?: WindowRef;
|
|
5
|
-
pluginStartTimestampOverride?: Date;
|
|
6
5
|
};
|
|
7
6
|
export declare const PLUGIN_INSTANCE_KEY = "__roktPluginPromise";
|
|
8
|
-
export declare const bootstrap: <T = any>({ targetWindow
|
|
7
|
+
export declare const bootstrap: <T = any>({ targetWindow }?: BootstrapOptions) => Promise<PluginInterface<T>>;
|
|
@@ -7,24 +7,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13
|
-
t[p] = s[p];
|
|
14
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
17
|
-
t[p[i]] = s[p[i]];
|
|
18
|
-
}
|
|
19
|
-
return t;
|
|
20
|
-
};
|
|
21
|
-
import { ROKT_PLUGIN_LIBRARY, ROKT_PLUGIN_LIBRARY_WSDK_2, ROKT_PLUGIN_LIBRARY_REQUEST, ROKT_PLUGIN_KEY, StandaloneOptions, BootstrapMode, } from '../types';
|
|
22
|
-
import { inferName, isUsingWebSdk } from '../fn';
|
|
10
|
+
import { ROKT_PLUGIN_LIBRARY_WSDK_2, ROKT_PLUGIN_KEY, StandaloneOptions, BootstrapMode, } from '../types';
|
|
11
|
+
import { isUsingWebSdk } from '../fn';
|
|
23
12
|
import { StandalonePlugin } from '../standalone';
|
|
24
13
|
export const PLUGIN_INSTANCE_KEY = '__roktPluginPromise';
|
|
25
|
-
export const bootstrap = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (
|
|
26
|
-
var { targetWindow = window } = _a, args = __rest(_a, ["targetWindow"]);
|
|
27
|
-
const pluginStartTimestampOverride = new Date();
|
|
14
|
+
export const bootstrap = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* ({ targetWindow = window } = {}) {
|
|
28
15
|
if (!isUsingWebSdk(targetWindow)) {
|
|
29
16
|
const plugin = new StandalonePlugin();
|
|
30
17
|
targetWindow[ROKT_PLUGIN_KEY] = plugin;
|
|
@@ -71,24 +58,12 @@ export const bootstrap = (...args_1) => __awaiter(void 0, [...args_1], void 0, f
|
|
|
71
58
|
if (targetWindow[PLUGIN_INSTANCE_KEY]) {
|
|
72
59
|
return targetWindow[PLUGIN_INSTANCE_KEY];
|
|
73
60
|
}
|
|
74
|
-
const alias = inferName(targetWindow.location.href);
|
|
75
61
|
const pluginPromise = new Promise((res) => {
|
|
76
62
|
const onLibraryRequest = (event) => {
|
|
77
|
-
targetWindow.removeEventListener(
|
|
78
|
-
targetWindow.removeEventListener(ROKT_PLUGIN_LIBRARY_WSDK_2, onLibaryRequestV2);
|
|
79
|
-
const { PluginInstance } = event.detail;
|
|
80
|
-
res(new PluginInstance(Object.assign(Object.assign({}, args), { targetWindow,
|
|
81
|
-
alias,
|
|
82
|
-
pluginStartTimestampOverride })));
|
|
83
|
-
};
|
|
84
|
-
const onLibaryRequestV2 = (event) => {
|
|
85
|
-
targetWindow.removeEventListener(ROKT_PLUGIN_LIBRARY, onLibraryRequest);
|
|
86
|
-
targetWindow.removeEventListener(ROKT_PLUGIN_LIBRARY_WSDK_2, onLibaryRequestV2);
|
|
63
|
+
targetWindow.removeEventListener(ROKT_PLUGIN_LIBRARY_WSDK_2, onLibraryRequest);
|
|
87
64
|
res(event.detail);
|
|
88
65
|
};
|
|
89
|
-
targetWindow.addEventListener(
|
|
90
|
-
targetWindow.addEventListener(ROKT_PLUGIN_LIBRARY_WSDK_2, onLibaryRequestV2);
|
|
91
|
-
targetWindow.dispatchEvent(new CustomEvent(ROKT_PLUGIN_LIBRARY_REQUEST));
|
|
66
|
+
targetWindow.addEventListener(ROKT_PLUGIN_LIBRARY_WSDK_2, onLibraryRequest);
|
|
92
67
|
});
|
|
93
68
|
targetWindow[PLUGIN_INSTANCE_KEY] = pluginPromise;
|
|
94
69
|
return pluginPromise;
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
export * from './bootstrap-v1';
|
|
2
|
-
export * from './plugin-instance';
|
|
3
|
-
export * from './error';
|
|
4
|
-
export * from './metrics';
|
|
5
|
-
export * from './parent-interaction';
|
|
6
|
-
export * from './partner-interaction';
|
|
7
|
-
export * from './child-plugin';
|
|
8
|
-
export * from './child-plugin-factory';
|
|
9
|
-
export * from './context';
|
|
10
|
-
export * from './unsafe';
|
|
11
|
-
export * from './rdn';
|
|
12
|
-
export * from './theme';
|
|
13
|
-
export * from './display';
|
|
14
|
-
export * from './is-inside-plugin-container';
|
|
15
1
|
export * from './is-preload-frame';
|
|
16
2
|
export * from '../interface';
|
|
3
|
+
export * from './plugin-instance';
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
export * from './bootstrap-v1';
|
|
2
|
-
export * from './plugin-instance';
|
|
3
|
-
export * from './error';
|
|
4
|
-
export * from './metrics';
|
|
5
|
-
export * from './parent-interaction';
|
|
6
|
-
export * from './partner-interaction';
|
|
7
|
-
export * from './child-plugin';
|
|
8
|
-
export * from './child-plugin-factory';
|
|
9
|
-
export * from './context';
|
|
10
|
-
export * from './unsafe';
|
|
11
|
-
export * from './rdn';
|
|
12
|
-
export * from './theme';
|
|
13
|
-
export * from './display';
|
|
14
|
-
export * from './is-inside-plugin-container';
|
|
15
1
|
export * from './is-preload-frame';
|
|
16
2
|
export * from '../interface';
|
|
3
|
+
export * from './plugin-instance';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const isPreloadFrame: () => boolean;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { stdom } from '@rokt/kit/stdom';
|
|
2
|
+
import { ParamKey, IntegrationType } from '../types';
|
|
3
|
+
export const isPreloadFrame = () => IntegrationType.Preload === new URLSearchParams(stdom.getWindow().name).get(ParamKey.IntegrationType);
|
|
@@ -1,32 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { roktController } from '@rokt/wsdk-integration/controller';
|
|
3
|
-
import { ChildPluginFactoryInterface, ContextInterface, DisplayInterface, ErrorInterface, MetricsInterface, ParentInteractionInterface, PartnerInteractionInterface, PluginInterface, RDNInterface, ThemeInterface, UnsafeInterface, NormalizedAttributes } from '../interface';
|
|
1
|
+
import { ChildPluginFactoryInterface, ChildPluginInterface, ContextInterface, DisplayInterface, ErrorInterface, MetricsInterface, ParentInteractionInterface, PartnerInteractionInterface, PluginInterface, RDNInterface, ThemeInterface, UnsafeInterface } from '../interface';
|
|
4
2
|
export type PluginAdapterOptions = {
|
|
5
3
|
alias?: string;
|
|
6
4
|
targetWindow?: any;
|
|
7
5
|
pluginStartTimestampOverride?: Date;
|
|
8
6
|
};
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
attributes: Subscriber<NormalizedAttributes>;
|
|
22
|
-
private static directConnection;
|
|
23
|
-
private sender;
|
|
24
|
-
private partnerMessages;
|
|
25
|
-
private pluginMessagesInbound;
|
|
26
|
-
private pluginChildIsClosing;
|
|
27
|
-
private pluginConfig;
|
|
28
|
-
constructor({ targetWindow, alias, pluginStartTimestampOverride, }?: PluginAdapterOptions);
|
|
29
|
-
static setDirectConnection(directConnection: roktController.IDirectConnection | undefined): void;
|
|
30
|
-
private getDirectConnection;
|
|
31
|
-
private sendReadyToParent;
|
|
32
|
-
}
|
|
7
|
+
export type ChildPlugin<T = any> = ChildPluginInterface<T>;
|
|
8
|
+
export type ChildPluginFactory = ChildPluginFactoryInterface;
|
|
9
|
+
export type Context = ContextInterface;
|
|
10
|
+
export type Display = DisplayInterface;
|
|
11
|
+
export type ErrorService = ErrorInterface;
|
|
12
|
+
export type Metrics = MetricsInterface;
|
|
13
|
+
export type ParentInteraction = ParentInteractionInterface;
|
|
14
|
+
export type PartnerInteraction = PartnerInteractionInterface;
|
|
15
|
+
export type PluginInstance<T = any> = PluginInterface<T>;
|
|
16
|
+
export type RDN = RDNInterface;
|
|
17
|
+
export type Theme = ThemeInterface;
|
|
18
|
+
export type Unsafe = UnsafeInterface;
|
|
@@ -1,99 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
const pluginStartTimestamp = new Date();
|
|
11
|
-
import { Context } from './context';
|
|
12
|
-
import { ParentInteraction } from './parent-interaction';
|
|
13
|
-
import { PartnerInteraction } from './partner-interaction';
|
|
14
|
-
import { RDN } from './rdn';
|
|
15
|
-
import { Metrics } from './metrics';
|
|
16
|
-
import { ErrorService } from './error';
|
|
17
|
-
import { Unsafe } from './unsafe';
|
|
18
|
-
import { Display } from './display';
|
|
19
|
-
import { Theme } from './theme';
|
|
20
|
-
import { PluginRuntimeConnection } from './plugin-runtime-connection';
|
|
21
|
-
import { stdom } from '@rokt/kit/stdom';
|
|
22
|
-
import { pipe, map } from '@rokt/kit/reactive/operators';
|
|
23
|
-
import { toReplayObservable, toObservable } from './to-observable';
|
|
24
|
-
import { MessageType, } from '@rokt/wsdk-integration/plugin';
|
|
25
|
-
import { ChildPluginFactory } from './child-plugin-factory';
|
|
26
|
-
import { roktController } from '@rokt/wsdk-integration/controller';
|
|
27
|
-
import { RuntimeMessage } from './child-plugin';
|
|
28
|
-
import { isUsingWebSdk } from '../fn';
|
|
29
|
-
import { Debug } from './debug';
|
|
30
|
-
import { PrivateContext } from './private-context';
|
|
31
|
-
import withErrorReporting from './with-error-reporting';
|
|
32
|
-
export class PluginInstance {
|
|
33
|
-
constructor({ targetWindow = stdom.getWindow(), alias = '[Plugin Name]', pluginStartTimestampOverride, } = {}) {
|
|
34
|
-
if (isUsingWebSdk(targetWindow) === true) {
|
|
35
|
-
const connection = new PluginRuntimeConnection(targetWindow, alias);
|
|
36
|
-
this.sender = connection;
|
|
37
|
-
const putConfig = toReplayObservable(connection, MessageType.PUT_CONFIG);
|
|
38
|
-
this.pluginConfig = pipe(putConfig)(map((e) => ({
|
|
39
|
-
config: e.placement.plugin.config || {},
|
|
40
|
-
display: e.display,
|
|
41
|
-
configurables: e.placement.placementConfigurables || {},
|
|
42
|
-
fonts: e.placement.fonts || [],
|
|
43
|
-
attributes: e.attributes || {},
|
|
44
|
-
})));
|
|
45
|
-
this.attributes = pipe(this.pluginConfig)(map((putConfigBody) => putConfigBody.attributes));
|
|
46
|
-
this.partnerMessages = toObservable(connection, MessageType.PARTNER_TO_PLUGIN);
|
|
47
|
-
this.pluginMessagesInbound = toObservable(connection, MessageType.PLUGIN_TO_PLUGIN_INBOUND);
|
|
48
|
-
this.pluginChildIsClosing = toObservable(connection, MessageType.PLUGIN_IS_CLOSING);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
/* tslint:disable-next-line */
|
|
52
|
-
targetWindow.console.warn('Running in standalone mode');
|
|
53
|
-
targetWindow.name = 'plugin_instance_id=nothing';
|
|
54
|
-
const debug = new Debug(targetWindow, alias);
|
|
55
|
-
this.partnerMessages = debug.partnerMessages;
|
|
56
|
-
this.pluginMessagesInbound = debug.pluginMessagesInbound;
|
|
57
|
-
this.pluginChildIsClosing = debug.pluginChildIsClosing;
|
|
58
|
-
this.pluginConfig = debug.pluginConfig;
|
|
59
|
-
this.sender = debug;
|
|
60
|
-
this.attributes = debug.attributes;
|
|
61
|
-
targetWindow.name = debug.contextParams.toString();
|
|
62
|
-
targetWindow.PLUGIN_DEBUG = debug;
|
|
63
|
-
}
|
|
64
|
-
const privateContext = new PrivateContext(targetWindow, this.sender, alias);
|
|
65
|
-
this.error = new ErrorService(this.sender, privateContext);
|
|
66
|
-
const privateContextWithErrorLogging = withErrorReporting(privateContext, this.error);
|
|
67
|
-
this.config = pipe(this.pluginConfig)(map((c) => c.config));
|
|
68
|
-
this.unsafe = new Unsafe();
|
|
69
|
-
this.theme = new Theme(this.pluginConfig);
|
|
70
|
-
this.display = new Display(this.sender, this.pluginConfig);
|
|
71
|
-
this.context = new Context(privateContextWithErrorLogging);
|
|
72
|
-
this.rdn = new RDN(this.sender, privateContextWithErrorLogging, this.error, this.getDirectConnection());
|
|
73
|
-
this.metrics = new Metrics(this.sender, privateContextWithErrorLogging, targetWindow, pluginStartTimestampOverride !== null && pluginStartTimestampOverride !== void 0 ? pluginStartTimestampOverride : pluginStartTimestamp);
|
|
74
|
-
this.partnerInteraction = new PartnerInteraction(this.sender, this.partnerMessages);
|
|
75
|
-
this.childPlugin = new ChildPluginFactory(this.sender, privateContextWithErrorLogging, this.pluginMessagesInbound, this.pluginChildIsClosing);
|
|
76
|
-
this.parentInteraction = new ParentInteraction(this.sender, privateContextWithErrorLogging, this.pluginMessagesInbound);
|
|
77
|
-
this.sendReadyToParent();
|
|
78
|
-
}
|
|
79
|
-
static setDirectConnection(directConnection) {
|
|
80
|
-
PluginInstance.directConnection = directConnection;
|
|
81
|
-
}
|
|
82
|
-
getDirectConnection() {
|
|
83
|
-
return PluginInstance.directConnection;
|
|
84
|
-
}
|
|
85
|
-
sendReadyToParent() {
|
|
86
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
const parent = yield this.context.getParentInstanceId();
|
|
88
|
-
if (parent) {
|
|
89
|
-
this.sender.send(roktController.MessageType.PLUGIN_TO_PLUGIN_OUTBOUND, {
|
|
90
|
-
body: {
|
|
91
|
-
from: yield this.context.getPluginInstanceId(),
|
|
92
|
-
to: parent,
|
|
93
|
-
eventName: RuntimeMessage.Ready,
|
|
94
|
-
},
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
1
|
+
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rokt/plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
|
-
"license": "SEE LICENSE
|
|
6
|
+
"license": "SEE LICENSE in license",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"start": "
|
|
8
|
+
"start": "bun run clean && bun run build",
|
|
9
9
|
"clean": "node ./.clean.js",
|
|
10
|
-
"build": "
|
|
10
|
+
"build": "bun run clean && bunx tsc --project ./tsconfig.build.json",
|
|
11
11
|
"pack": "npm pack",
|
|
12
|
-
"watch": "
|
|
13
|
-
"test": "
|
|
14
|
-
"test-watch": "
|
|
15
|
-
"lint": "
|
|
16
|
-
"lint-fix": "
|
|
12
|
+
"watch": "bunx nodemon -e ts --exec \"bun run build\" --watch src",
|
|
13
|
+
"test": "bunx vitest run --passWithNoTests --coverage",
|
|
14
|
+
"test-watch": "bunx vitest --watch --passWithNoTests",
|
|
15
|
+
"lint": "bunx tslint \"src/**/*.{ts,tsx}\"",
|
|
16
|
+
"lint-fix": "bunx tslint --fix \"src/**/*.{ts,tsx}\""
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@rokt/kit": "^6.6.4",
|
|
@@ -21,19 +21,18 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@rokt/kit": "^6.6.4",
|
|
24
|
-
"@rokt/wsdk-integration": "^3.6.0",
|
|
25
24
|
"@types/iframe-resizer": "^3.5.9",
|
|
26
|
-
"@types/jest": "^27.4.1",
|
|
27
25
|
"@types/node": "^20.11.5",
|
|
26
|
+
"@vitest/coverage-istanbul": "^4.0.18",
|
|
28
27
|
"csstype": "^3.0.11",
|
|
29
28
|
"detect-browser": "^5.3.0",
|
|
30
29
|
"dotenv": "^16.0.0",
|
|
31
30
|
"iframe-resizer": "^4.3.2",
|
|
32
|
-
"
|
|
33
|
-
"jest-junit": "^13.0.0",
|
|
31
|
+
"jsdom": "^20.0.0",
|
|
34
32
|
"nodemon": "^2.0.15",
|
|
35
|
-
"ts-jest": "^29.1.0",
|
|
36
33
|
"tslint": "^6.1.3",
|
|
37
|
-
"typescript": "^5.5.4"
|
|
38
|
-
|
|
34
|
+
"typescript": "^5.5.4",
|
|
35
|
+
"vitest": "^4.0.18"
|
|
36
|
+
},
|
|
37
|
+
"sideEffects": false
|
|
39
38
|
}
|