@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
|
@@ -1,152 +1,474 @@
|
|
|
1
|
+
/** A URL value that supports light and dark mode themes. */
|
|
1
2
|
export interface ThemeUrl {
|
|
3
|
+
/** The URL for light mode. */
|
|
2
4
|
light: string;
|
|
5
|
+
/** The URL for dark mode. Omit to use the light mode URL in both themes. */
|
|
3
6
|
dark?: null | string;
|
|
4
7
|
}
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Positioning of a background image within its container.
|
|
10
|
+
* Specifies which area of the container the image aligns to.
|
|
11
|
+
*/
|
|
12
|
+
export type BackgroundImagePosition =
|
|
13
|
+
/** Positions the image at the top center. */
|
|
14
|
+
"top"
|
|
15
|
+
/** Positions the image at the center right. */
|
|
16
|
+
| "right"
|
|
17
|
+
/** Positions the image at the bottom center. */
|
|
18
|
+
| "bottom"
|
|
19
|
+
/** Positions the image at the center left. */
|
|
20
|
+
| "left"
|
|
21
|
+
/** Positions the image at the center of the container. */
|
|
22
|
+
| "center"
|
|
23
|
+
/** Positions the image at the top right corner. */
|
|
24
|
+
| "top-right"
|
|
25
|
+
/** Positions the image at the top left corner. */
|
|
26
|
+
| "top-left"
|
|
27
|
+
/** Positions the image at the bottom left corner. */
|
|
28
|
+
| "bottom-left"
|
|
29
|
+
/** Positions the image at the bottom right corner. */
|
|
30
|
+
| "bottom-right";
|
|
31
|
+
/**
|
|
32
|
+
* How a background image is scaled to fit its container.
|
|
33
|
+
* Controls the trade-off between covering the container and preserving aspect ratio.
|
|
34
|
+
*/
|
|
35
|
+
export type BackgroundImageScale =
|
|
36
|
+
/** Scales the image to cover the entire container, cropping edges that overflow. */
|
|
37
|
+
"crop"
|
|
38
|
+
/** Scales the image to fit entirely within the container, potentially leaving empty space. */
|
|
39
|
+
| "fit"
|
|
40
|
+
/** Stretches the image to fill the container exactly, potentially distorting aspect ratio. */
|
|
41
|
+
| "fill";
|
|
42
|
+
/**
|
|
43
|
+
* A background image with themed URL support.
|
|
44
|
+
* Use this to display an image behind element content with control over positioning and scaling.
|
|
45
|
+
*/
|
|
7
46
|
export interface BackgroundImage {
|
|
47
|
+
/** The image URL. Uses themed values for light/dark mode. */
|
|
8
48
|
url: ThemeUrl;
|
|
49
|
+
/** Where the image is positioned within the element. */
|
|
9
50
|
position?: null | BackgroundImagePosition;
|
|
51
|
+
/** How the image is scaled to fit the element. */
|
|
10
52
|
scale?: null | BackgroundImageScale;
|
|
11
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* A color value that supports light and dark mode themes. Always provide the light mode value.
|
|
56
|
+
* Provide dark mode only if the color should differ from light mode.
|
|
57
|
+
* Colors are hex strings in `#RRGGBB` or `#AARRGGBB` format. NOTE: the alpha channel comes
|
|
58
|
+
* BEFORE the RGB channels (e.g. `#80000000` for 50% transparent black), unlike CSS where alpha is last.
|
|
59
|
+
*/
|
|
12
60
|
export interface ThemeColor {
|
|
61
|
+
/** The color hex code for light mode. Format: `#RRGGBB` or `#AARRGGBB` (e.g. "#FF0000", "#80000000"). */
|
|
13
62
|
light: string;
|
|
63
|
+
/** The color hex code for dark mode. Omit to use the light mode value in both themes. */
|
|
14
64
|
dark?: null | string;
|
|
15
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Background styling properties for elements.
|
|
68
|
+
* All fields are optional. Only include the properties you want to override.
|
|
69
|
+
*/
|
|
16
70
|
export interface BackgroundStylingProperties {
|
|
71
|
+
/** The background fill color. */
|
|
17
72
|
backgroundColor?: null | ThemeColor;
|
|
73
|
+
/** A background image to display behind the element content. */
|
|
18
74
|
backgroundImage?: null | BackgroundImage;
|
|
19
75
|
}
|
|
76
|
+
/** A styling block that defines styles for different interaction states. The 'default' state is required; other states are optional and override default styles when active. */
|
|
20
77
|
export interface BasicStateStylingBlock<StyleProperties> {
|
|
78
|
+
/** The base styles applied in the normal state. This is always required. */
|
|
21
79
|
default: StyleProperties;
|
|
80
|
+
/** Styles applied when the element is being pressed/clicked. Only applicable to interactive elements. */
|
|
22
81
|
pressed?: null | StyleProperties;
|
|
82
|
+
/** Styles applied when the cursor is over the element. Only applicable to interactive elements. */
|
|
23
83
|
hovered?: null | StyleProperties;
|
|
84
|
+
/** Styles applied when the element has keyboard focus. */
|
|
24
85
|
focussed?: null | StyleProperties;
|
|
86
|
+
/** Styles applied when the element is disabled. */
|
|
25
87
|
disabled?: null | StyleProperties;
|
|
26
88
|
}
|
|
27
|
-
|
|
89
|
+
/**
|
|
90
|
+
* Width value specification. MUST be an object with 'type' and 'value' properties.
|
|
91
|
+
* Do NOT use bare numbers or CSS strings. Example: {"type": "percentage", "value": 100}.
|
|
92
|
+
*/
|
|
93
|
+
export type DimensionWidthValue =
|
|
94
|
+
/** A fixed width in platform units (px on Web, pt on iOS, dp on Android). Value: {"type": "fixed", "value": <number>}. */
|
|
95
|
+
{
|
|
28
96
|
type: "fixed";
|
|
29
97
|
value: number;
|
|
30
|
-
}
|
|
98
|
+
}
|
|
99
|
+
/** A percentage of the parent container width. Value: {"type": "percentage", "value": <0-100>}. */
|
|
100
|
+
| {
|
|
31
101
|
type: "percentage";
|
|
32
102
|
value: number;
|
|
33
|
-
}
|
|
103
|
+
}
|
|
104
|
+
/** Sizes to fit content. Value: {"type": "fit", "value": "wrap-content" or "fit-width"}. */
|
|
105
|
+
| {
|
|
34
106
|
type: "fit";
|
|
35
107
|
value: DimensionWidthFitValue;
|
|
36
108
|
};
|
|
37
|
-
|
|
109
|
+
/**
|
|
110
|
+
* Height value specification. MUST be an object with 'type' and 'value' properties.
|
|
111
|
+
* Do NOT use bare numbers or CSS strings. Example: {"type": "fixed", "value": 200}.
|
|
112
|
+
*/
|
|
113
|
+
export type DimensionHeightValue =
|
|
114
|
+
/** A fixed height in platform units (px on Web, pt on iOS, dp on Android). Value: {"type": "fixed", "value": <number>}. */
|
|
115
|
+
{
|
|
38
116
|
type: "fixed";
|
|
39
117
|
value: number;
|
|
40
|
-
}
|
|
118
|
+
}
|
|
119
|
+
/** A percentage of the parent container height. Value: {"type": "percentage", "value": <0-100>}. */
|
|
120
|
+
| {
|
|
41
121
|
type: "percentage";
|
|
42
122
|
value: number;
|
|
43
|
-
}
|
|
123
|
+
}
|
|
124
|
+
/** Sizes to fit content. Value: {"type": "fit", "value": "wrap-content" or "fit-height"}. */
|
|
125
|
+
| {
|
|
44
126
|
type: "fit";
|
|
45
127
|
value: DimensionHeightFitValue;
|
|
46
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* Dimension and size styling properties. Numeric values are in platform units (px on Web, pt on iOS, dp on Android). Plain numbers (e.g. minWidth: 100)
|
|
131
|
+
* while width/height use typed objects. Do NOT use bare numbers for width or height.
|
|
132
|
+
* All fields are optional. Only include the properties you want to override.
|
|
133
|
+
*/
|
|
47
134
|
export interface DimensionStylingProperties {
|
|
135
|
+
/** Minimum width in platform units. */
|
|
48
136
|
minWidth?: null | number;
|
|
137
|
+
/** Maximum width in platform units. */
|
|
49
138
|
maxWidth?: null | number;
|
|
139
|
+
/**
|
|
140
|
+
* The width value. MUST be a typed object, e.g. {"type": "percentage", "value": 100}.
|
|
141
|
+
* Do NOT use bare numbers.
|
|
142
|
+
*/
|
|
50
143
|
width?: null | DimensionWidthValue;
|
|
144
|
+
/** Minimum height in platform units. */
|
|
51
145
|
minHeight?: null | number;
|
|
146
|
+
/** Maximum height in platform units. */
|
|
52
147
|
maxHeight?: null | number;
|
|
148
|
+
/**
|
|
149
|
+
* The height value. MUST be a typed object, e.g. {"type": "fixed", "value": 200}.
|
|
150
|
+
* Do NOT use bare numbers.
|
|
151
|
+
*/
|
|
53
152
|
height?: null | DimensionHeightValue;
|
|
54
153
|
}
|
|
55
154
|
export type FlexChildFlexPosition = "center" | "flex-start" | "flex-end" | "stretch";
|
|
155
|
+
/**
|
|
156
|
+
* Properties that control how this element behaves as a child within a flex container (Row or Column).
|
|
157
|
+
* All fields are optional. Only include the properties you want to override.
|
|
158
|
+
*/
|
|
56
159
|
export interface FlexChildStylingProperties {
|
|
160
|
+
/**
|
|
161
|
+
* The flex grow weight. Determines how remaining space is distributed.
|
|
162
|
+
* A child with weight 2 gets twice the extra space as one with weight 1.
|
|
163
|
+
*/
|
|
57
164
|
weight?: null | number;
|
|
165
|
+
/** The visual order of this child within its container. Lower values appear first. */
|
|
58
166
|
order?: null | number;
|
|
167
|
+
/** Overrides the parent container's alignItems for this specific child. */
|
|
59
168
|
alignSelf?: null | FlexChildFlexPosition;
|
|
60
169
|
}
|
|
170
|
+
/**
|
|
171
|
+
* Spacing properties for padding, margin and offset.
|
|
172
|
+
* Values are specified as space-separated strings of numeric values in platform units (px on Web, pt on iOS, dp on Android) following CSS shorthand.
|
|
173
|
+
* All fields are optional. Only include the properties you want to override.
|
|
174
|
+
*/
|
|
61
175
|
export interface SpacingStylingProperties {
|
|
176
|
+
/**
|
|
177
|
+
* Internal spacing between the element border and its content. Specified as a
|
|
178
|
+
* space-separated string of numeric values following CSS shorthand: '10' for all sides,
|
|
179
|
+
* '10 20' for vertical/horizontal, '10 20 10 20' for top/right/bottom/left.
|
|
180
|
+
*/
|
|
62
181
|
padding?: null | string;
|
|
182
|
+
/** External spacing around the outside of the element border. Same format as padding. */
|
|
63
183
|
margin?: null | string;
|
|
184
|
+
/** Positional offset from the element's normal position. Same format as padding. */
|
|
64
185
|
offset?: null | string;
|
|
65
186
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
export type
|
|
71
|
-
|
|
187
|
+
/**
|
|
188
|
+
* The weight (boldness) of the font. Values are CSS-standard numeric weights.
|
|
189
|
+
* MUST be one of the predefined weight values. Do NOT use arbitrary numbers.
|
|
190
|
+
*/
|
|
191
|
+
export type FontWeight =
|
|
192
|
+
/** Thin (Hairline). The lightest available weight. */
|
|
193
|
+
"100"
|
|
194
|
+
/** Extra Light (Ultra Light). */
|
|
195
|
+
| "200"
|
|
196
|
+
/** Light. */
|
|
197
|
+
| "300"
|
|
198
|
+
/** Normal / Regular. The default font weight. */
|
|
199
|
+
| "400"
|
|
200
|
+
/** Medium. Slightly bolder than normal. */
|
|
201
|
+
| "500"
|
|
202
|
+
/** Semi Bold (Demi Bold). */
|
|
203
|
+
| "600"
|
|
204
|
+
/** Bold. */
|
|
205
|
+
| "700"
|
|
206
|
+
/** Extra Bold (Ultra Bold). */
|
|
207
|
+
| "800"
|
|
208
|
+
/** Black (Heavy). The boldest available weight. */
|
|
209
|
+
| "900";
|
|
210
|
+
/**
|
|
211
|
+
* Horizontal text alignment within the text element.
|
|
212
|
+
* MUST use one of the specified alignment values. Do NOT use CSS text-align strings directly.
|
|
213
|
+
*/
|
|
214
|
+
export type FontJustification =
|
|
215
|
+
/** Aligns text to the left edge. */
|
|
216
|
+
"left"
|
|
217
|
+
/** Aligns text to the right edge. */
|
|
218
|
+
| "right"
|
|
219
|
+
/** Centers text horizontally. */
|
|
220
|
+
| "center"
|
|
221
|
+
/** Aligns text to the start edge (left in LTR, right in RTL). */
|
|
222
|
+
| "start"
|
|
223
|
+
/** Aligns text to the end edge (right in LTR, left in RTL). */
|
|
224
|
+
| "end"
|
|
225
|
+
/** Stretches text so each line fills the full width, adjusting spacing between words. */
|
|
226
|
+
| "justify";
|
|
227
|
+
/**
|
|
228
|
+
* Vertical alignment of text relative to the baseline.
|
|
229
|
+
* Use this to position text as superscript, subscript, or at the normal baseline.
|
|
230
|
+
*/
|
|
231
|
+
export type FontBaselineAlignment =
|
|
232
|
+
/** Raises text above the baseline (superscript). */
|
|
233
|
+
"super"
|
|
234
|
+
/** Lowers text below the baseline (subscript). */
|
|
235
|
+
| "sub"
|
|
236
|
+
/** Aligns text to the normal baseline position. */
|
|
237
|
+
| "baseline";
|
|
238
|
+
/**
|
|
239
|
+
* The style of the font.
|
|
240
|
+
* Controls whether text is rendered upright or italicised.
|
|
241
|
+
*/
|
|
242
|
+
export type FontStyle =
|
|
243
|
+
/** Standard upright text. */
|
|
244
|
+
"normal"
|
|
245
|
+
/** Italicised text. */
|
|
246
|
+
| "italic";
|
|
247
|
+
/**
|
|
248
|
+
* Controls text capitalisation.
|
|
249
|
+
* Applied as a visual transform; does not alter the underlying text data.
|
|
250
|
+
*/
|
|
251
|
+
export type TextTransform =
|
|
252
|
+
/** Capitalises the first letter of each word. */
|
|
253
|
+
"capitalize"
|
|
254
|
+
/** Transforms all text to uppercase. */
|
|
255
|
+
| "uppercase"
|
|
256
|
+
/** Transforms all text to lowercase. */
|
|
257
|
+
| "lowercase"
|
|
258
|
+
/** No transformation applied. */
|
|
259
|
+
| "none";
|
|
260
|
+
/**
|
|
261
|
+
* Decorative line applied to text.
|
|
262
|
+
* Use to add visual emphasis such as underline or strikethrough.
|
|
263
|
+
*/
|
|
264
|
+
export type TextDecoration =
|
|
265
|
+
/** Adds a line beneath the text. */
|
|
266
|
+
"underline"
|
|
267
|
+
/** Adds a line through the middle of the text. */
|
|
268
|
+
| "strike-through"
|
|
269
|
+
/** No decoration applied. */
|
|
270
|
+
| "none";
|
|
271
|
+
/**
|
|
272
|
+
* Typography styling properties for text elements.
|
|
273
|
+
* All fields are optional. Only include the properties you want to override.
|
|
274
|
+
*/
|
|
72
275
|
export interface TextStylingProperties {
|
|
276
|
+
/** The text color. Uses themed values for light/dark mode support. */
|
|
73
277
|
textColor?: null | ThemeColor;
|
|
278
|
+
/** Font size in platform units (px on Web, pt on iOS, dp on Android). */
|
|
74
279
|
fontSize?: null | number;
|
|
280
|
+
/** The font family name. Use 'rokt-icons' for icon fonts. */
|
|
75
281
|
fontFamily?: null | string;
|
|
282
|
+
/** The weight (boldness) of the font. */
|
|
76
283
|
fontWeight?: null | FontWeight;
|
|
284
|
+
/** Line height in platform units. Controls the spacing between lines of text. */
|
|
77
285
|
lineHeight?: null | number;
|
|
286
|
+
/** Horizontal text alignment within the element. */
|
|
78
287
|
horizontalTextAlign?: null | FontJustification;
|
|
288
|
+
/** Vertical alignment of text relative to the baseline. */
|
|
79
289
|
baselineTextAlign?: null | FontBaselineAlignment;
|
|
290
|
+
/** Normal or italic text rendering. */
|
|
80
291
|
fontStyle?: null | FontStyle;
|
|
292
|
+
/** Controls automatic text capitalisation. */
|
|
81
293
|
textTransform?: null | TextTransform;
|
|
294
|
+
/** Additional spacing between characters in platform units. */
|
|
82
295
|
letterSpacing?: null | number;
|
|
296
|
+
/** Decorative line applied to text (underline, strikethrough). */
|
|
83
297
|
textDecoration?: null | TextDecoration;
|
|
298
|
+
/** Maximum number of lines to display. Text beyond this limit is truncated. */
|
|
84
299
|
lineLimit?: null | number;
|
|
85
300
|
}
|
|
301
|
+
/** Visual styles for the BasicText node. */
|
|
86
302
|
export interface BasicTextStyle {
|
|
303
|
+
/** Width, height and rotation properties. */
|
|
87
304
|
dimension?: null | DimensionStylingProperties;
|
|
305
|
+
/** Properties controlling behaviour as a flex child. */
|
|
88
306
|
flexChild?: null | FlexChildStylingProperties;
|
|
307
|
+
/** Padding, margin and offset properties. */
|
|
89
308
|
spacing?: null | SpacingStylingProperties;
|
|
309
|
+
/** Background color and image properties. */
|
|
90
310
|
background?: null | BackgroundStylingProperties;
|
|
311
|
+
/** Typography properties. */
|
|
91
312
|
text?: null | TextStylingProperties;
|
|
92
313
|
}
|
|
314
|
+
/** Style elements for the BasicText node. */
|
|
93
315
|
export interface BasicTextElements {
|
|
316
|
+
/** Style blocks for the node's primary element. Array represents breakpoint-specific styles. */
|
|
94
317
|
own: BasicStateStylingBlock<BasicTextStyle>[];
|
|
95
318
|
}
|
|
319
|
+
/** The top-level style object for a node. Contains element styling and optional conditional transitions. */
|
|
96
320
|
export interface LayoutStyle<Elements> {
|
|
321
|
+
/** Defines the visual styles for each styleable element of this node. MUST contain at least an 'own' key with a styling block array. */
|
|
97
322
|
elements: Elements;
|
|
98
323
|
}
|
|
324
|
+
/** Renders a paragraph of plain text. Use for simple text content. For text with HTML formatting use RichText instead. */
|
|
99
325
|
export interface BasicTextModel {
|
|
326
|
+
/** Visual styles for the text element. */
|
|
100
327
|
styles?: null | LayoutStyle<BasicTextElements>;
|
|
328
|
+
/** The text content to display. Supports data binding placeholders in the format %^DATA.key^% for dynamic creative content. */
|
|
101
329
|
value: string;
|
|
102
330
|
}
|
|
103
|
-
|
|
331
|
+
/**
|
|
332
|
+
* The visual style of the border line.
|
|
333
|
+
* MUST be one of the supported values. Do NOT use CSS border-style strings directly.
|
|
334
|
+
*/
|
|
335
|
+
export type BorderStyle =
|
|
336
|
+
/** A solid continuous border line. */
|
|
337
|
+
"solid"
|
|
338
|
+
/** A dashed border line. */
|
|
339
|
+
| "dashed";
|
|
340
|
+
/**
|
|
341
|
+
* Border styling properties for elements.
|
|
342
|
+
* All fields are optional. Only include the properties you want to override.
|
|
343
|
+
*/
|
|
104
344
|
export interface BorderStylingProperties {
|
|
345
|
+
/** Corner radius in platform units (px on Web, pt on iOS, dp on Android). Applies uniformly to all corners. */
|
|
105
346
|
borderRadius?: null | number;
|
|
347
|
+
/** The border color. Uses themed values for light/dark mode support. */
|
|
106
348
|
borderColor?: null | ThemeColor;
|
|
349
|
+
/**
|
|
350
|
+
* Border width specified as a space-separated string of numeric values in platform units.
|
|
351
|
+
* Follows CSS shorthand: '2' for all sides, '2 4' for vertical/horizontal,
|
|
352
|
+
* '1 2 3 4' for top/right/bottom/left.
|
|
353
|
+
*/
|
|
107
354
|
borderWidth?: null | string;
|
|
355
|
+
/** The visual style of the border line (solid or dashed). */
|
|
108
356
|
borderStyle?: null | BorderStyle;
|
|
109
357
|
}
|
|
110
|
-
|
|
358
|
+
/**
|
|
359
|
+
* Condition operators for numeric/orderable comparisons. Use these to compare
|
|
360
|
+
* values that have a natural ordering (numbers, positions, breakpoints).
|
|
361
|
+
* Serialized as kebab-case strings: "is", "is-not", "is-below", "is-above".
|
|
362
|
+
*/
|
|
363
|
+
export type OrderableWhenCondition =
|
|
364
|
+
/** True when the value equals the specified value. */
|
|
365
|
+
"is"
|
|
366
|
+
/** True when the value does not equal the specified value. */
|
|
367
|
+
| "is-not"
|
|
368
|
+
/** True when the value is less than the specified value. */
|
|
369
|
+
| "is-below"
|
|
370
|
+
/** True when the value is greater than the specified value. */
|
|
371
|
+
| "is-above";
|
|
372
|
+
/**
|
|
373
|
+
* Tests the viewport width against a breakpoint value. Use for
|
|
374
|
+
* responsive layouts that adapt to different screen sizes. The value MUST
|
|
375
|
+
* be a string representation of a number in platform units.
|
|
376
|
+
*/
|
|
111
377
|
export interface BreakpointPredicate {
|
|
378
|
+
/** The comparison operator. Use "is-above" or "is-below" for responsive breakpoints. */
|
|
112
379
|
condition: OrderableWhenCondition;
|
|
380
|
+
/**
|
|
381
|
+
* The breakpoint width in platform units to compare against. MUST be a string
|
|
382
|
+
* representation of a number, e.g. "768".
|
|
383
|
+
*/
|
|
113
384
|
value: string;
|
|
114
385
|
}
|
|
386
|
+
/** A styling block with only a default state. Used for non-interactive elements. */
|
|
115
387
|
export interface StatelessStylingBlock<StyleProperties> {
|
|
388
|
+
/** The styles to apply. Always required. */
|
|
116
389
|
default: StyleProperties;
|
|
117
390
|
}
|
|
118
|
-
|
|
391
|
+
/** Position options within a flex context. */
|
|
392
|
+
export type FlexPosition =
|
|
393
|
+
/** Centers items along the main axis. */
|
|
394
|
+
"center"
|
|
395
|
+
/** Packs items toward the start of the main axis. */
|
|
396
|
+
| "flex-start"
|
|
397
|
+
/** Packs items toward the end of the main axis. */
|
|
398
|
+
| "flex-end";
|
|
399
|
+
/** Defines a box shadow effect. All offset and radius values are in platform units (px on Web, pt on iOS, dp on Android). */
|
|
119
400
|
export interface Shadow {
|
|
401
|
+
/** Horizontal offset of the shadow. Positive values move the shadow right. */
|
|
120
402
|
offsetX?: null | number;
|
|
403
|
+
/** Vertical offset of the shadow. Positive values move the shadow down. */
|
|
121
404
|
offsetY?: null | number;
|
|
405
|
+
/** The blur radius. Higher values create a more diffuse shadow. */
|
|
122
406
|
blurRadius?: null | number;
|
|
407
|
+
/** The spread radius. Positive values expand the shadow, negative values shrink it. */
|
|
123
408
|
spreadRadius?: null | number;
|
|
409
|
+
/** The shadow color. */
|
|
124
410
|
color: ThemeColor;
|
|
125
411
|
}
|
|
126
|
-
|
|
412
|
+
/** Controls visibility of content that overflows the container bounds. */
|
|
413
|
+
export type Overflow = "auto"
|
|
414
|
+
/** Content that overflows is clipped and not visible. */
|
|
415
|
+
| "hidden"
|
|
416
|
+
/** Content that overflows remains visible outside the container bounds. */
|
|
417
|
+
| "visible" | "scroll";
|
|
418
|
+
/** Styling properties for container layout behaviour. Only applicable to nodes that contain children. */
|
|
127
419
|
export interface ContainerStylingProperties {
|
|
420
|
+
/** Controls how children are distributed along the main axis. For a Row this is horizontal, for a Column this is vertical. */
|
|
128
421
|
justifyContent?: null | FlexPosition;
|
|
422
|
+
/** Controls how children are aligned along the cross axis. For a Row this is vertical, for a Column this is horizontal. */
|
|
129
423
|
alignItems?: null | FlexPosition;
|
|
424
|
+
/** Applies a box shadow effect around the container. */
|
|
130
425
|
shadow?: null | Shadow;
|
|
426
|
+
/** Controls whether content overflowing the container bounds is visible or hidden. */
|
|
131
427
|
overflow?: null | Overflow;
|
|
428
|
+
/** The gap in platform units between children in the container. */
|
|
132
429
|
gap?: null | number;
|
|
430
|
+
/** Applies a Gaussian blur effect. Value is the blur radius in platform units. */
|
|
133
431
|
blur?: null | number;
|
|
134
432
|
}
|
|
433
|
+
/**
|
|
434
|
+
* Visual style properties for the CarouselDistribution container.
|
|
435
|
+
* Contains the standard style categories: container layout, background colors,
|
|
436
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
437
|
+
*/
|
|
135
438
|
export interface CarouselDistributionStyles {
|
|
439
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
136
440
|
container?: null | ContainerStylingProperties;
|
|
441
|
+
/** Background color and gradient styles. */
|
|
137
442
|
background?: null | BackgroundStylingProperties;
|
|
443
|
+
/** Border width, color, and radius styles. */
|
|
138
444
|
border?: null | BorderStylingProperties;
|
|
445
|
+
/** Width and height dimension styles. */
|
|
139
446
|
dimension?: null | DimensionStylingProperties;
|
|
447
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
140
448
|
flexChild?: null | FlexChildStylingProperties;
|
|
449
|
+
/** Padding and margin spacing styles. */
|
|
141
450
|
spacing?: null | SpacingStylingProperties;
|
|
142
451
|
}
|
|
452
|
+
/**
|
|
453
|
+
* Styling elements for the CarouselDistribution container.
|
|
454
|
+
* The `own` array contains stateless styling blocks applied to the carousel container itself.
|
|
455
|
+
*/
|
|
143
456
|
export interface CarouselDistributionElements {
|
|
457
|
+
/** Array of stateless styling blocks for the carousel container. */
|
|
144
458
|
own: StatelessStylingBlock<CarouselDistributionStyles>[];
|
|
145
459
|
}
|
|
146
|
-
|
|
460
|
+
/**
|
|
461
|
+
* The size of the peek-through area showing adjacent carousel items.
|
|
462
|
+
* Controls how much of the next/previous items are visible at the edges.
|
|
463
|
+
*/
|
|
464
|
+
export type PeekThroughSize =
|
|
465
|
+
/** A fixed size in platform units (px on Web, pt on iOS, dp on Android) for the peek-through area. */
|
|
466
|
+
{
|
|
147
467
|
type: "Fixed";
|
|
148
468
|
value: number;
|
|
149
|
-
}
|
|
469
|
+
}
|
|
470
|
+
/** A percentage-based size for the peek-through area, relative to the carousel width. */
|
|
471
|
+
| {
|
|
150
472
|
type: "Percentage";
|
|
151
473
|
value: number;
|
|
152
474
|
};
|
|
@@ -154,115 +476,362 @@ export interface CarouselSettings {
|
|
|
154
476
|
viewableItems: number[];
|
|
155
477
|
peekThroughSize: PeekThroughSize[];
|
|
156
478
|
}
|
|
479
|
+
/**
|
|
480
|
+
* Presents offers in a horizontally scrollable carousel.
|
|
481
|
+
* Used EXCLUSIVELY in the Outer Layout. This is the container into which offers (Layout Variants) are rendered.
|
|
482
|
+
* Users can swipe left/right to browse offers.
|
|
483
|
+
*
|
|
484
|
+
* Use `viewableItems` to control how many items are visible at once per breakpoint.
|
|
485
|
+
* Use `peekThroughSize` to hint that more items exist by showing partial adjacent items.
|
|
486
|
+
*/
|
|
157
487
|
export interface CarouselDistributionModel {
|
|
158
488
|
settings: CarouselSettings;
|
|
489
|
+
/**
|
|
490
|
+
* Visual styles for the carousel container.
|
|
491
|
+
* Uses the LayoutStyle wrapper with conditional style transitions.
|
|
492
|
+
*/
|
|
159
493
|
styles?: null | LayoutStyle<CarouselDistributionElements>;
|
|
160
494
|
}
|
|
495
|
+
/**
|
|
496
|
+
* Visual style properties for the CloseButton.
|
|
497
|
+
* Contains the standard style categories: container layout, background colors,
|
|
498
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
499
|
+
*/
|
|
161
500
|
export interface CloseButtonStyles {
|
|
501
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
162
502
|
container?: null | ContainerStylingProperties;
|
|
503
|
+
/** Background color and gradient styles. */
|
|
163
504
|
background?: null | BackgroundStylingProperties;
|
|
505
|
+
/** Border width, color, and radius styles. */
|
|
164
506
|
border?: null | BorderStylingProperties;
|
|
507
|
+
/** Width and height dimension styles. */
|
|
165
508
|
dimension?: null | DimensionStylingProperties;
|
|
509
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
166
510
|
flexChild?: null | FlexChildStylingProperties;
|
|
511
|
+
/** Padding and margin spacing styles. */
|
|
167
512
|
spacing?: null | SpacingStylingProperties;
|
|
168
513
|
}
|
|
514
|
+
/**
|
|
515
|
+
* Styling elements for the CloseButton.
|
|
516
|
+
* The `own` array contains state-dependent styling blocks (e.g. default, pressed)
|
|
517
|
+
* applied to the close button itself.
|
|
518
|
+
*/
|
|
169
519
|
export interface CloseButtonElements {
|
|
520
|
+
/**
|
|
521
|
+
* Array of state-dependent styling blocks for the close button.
|
|
522
|
+
* Each block targets a specific interaction state (default, pressed, etc.).
|
|
523
|
+
*/
|
|
170
524
|
own: BasicStateStylingBlock<CloseButtonStyles>[];
|
|
171
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* A button that closes/dismisses the layout when clicked.
|
|
528
|
+
* Typically contains a StaticIcon with the 'Close' icon.
|
|
529
|
+
*
|
|
530
|
+
* MUST include child content (usually a StaticIcon with name `"Close"`).
|
|
531
|
+
* Do NOT use CreativeResponse for dismissal; use CloseButton instead so that
|
|
532
|
+
* the dismiss action is correctly tracked.
|
|
533
|
+
*/
|
|
172
534
|
export interface CloseButtonModel<Children> {
|
|
535
|
+
/** Visual styles for the close button. Uses the LayoutStyle wrapper with conditional style transitions. */
|
|
173
536
|
styles?: null | LayoutStyle<CloseButtonElements>;
|
|
537
|
+
/**
|
|
538
|
+
* Child nodes forming the button content. Typically a StaticIcon with name `"Close"`.
|
|
539
|
+
* MUST contain at least one child to display the close icon or label.
|
|
540
|
+
*/
|
|
174
541
|
children: Children[];
|
|
542
|
+
/**
|
|
543
|
+
* Optional dismissal method configuration.
|
|
544
|
+
* Controls how the dismissal is reported for analytics purposes.
|
|
545
|
+
*/
|
|
175
546
|
dismissalMethod?: null | string;
|
|
176
547
|
}
|
|
548
|
+
/**
|
|
549
|
+
* Available style categories for the Column element. Each optional field enables a specific
|
|
550
|
+
* category of visual styling. Omit a field to leave that category unstyled.
|
|
551
|
+
*/
|
|
177
552
|
export interface ColumnStyle {
|
|
553
|
+
/**
|
|
554
|
+
* Layout properties for the flex container (justification, alignment, gap, overflow).
|
|
555
|
+
* MUST be used to control how children are arranged within the column.
|
|
556
|
+
*/
|
|
178
557
|
container?: null | ContainerStylingProperties;
|
|
558
|
+
/**
|
|
559
|
+
* Background color and image properties. Use to set a solid color, gradient, or image
|
|
560
|
+
* behind the column content.
|
|
561
|
+
*/
|
|
179
562
|
background?: null | BackgroundStylingProperties;
|
|
563
|
+
/**
|
|
564
|
+
* Border radius, color, width and style properties. Use to add visible borders or
|
|
565
|
+
* rounded corners to the column.
|
|
566
|
+
*/
|
|
180
567
|
border?: null | BorderStylingProperties;
|
|
568
|
+
/**
|
|
569
|
+
* Width, height and rotation properties. Use to explicitly size the column or apply
|
|
570
|
+
* rotation transforms. Do NOT set width/height if the column should size to its content.
|
|
571
|
+
*/
|
|
181
572
|
dimension?: null | DimensionStylingProperties;
|
|
573
|
+
/**
|
|
574
|
+
* Properties controlling this element's behaviour as a child of a flex container.
|
|
575
|
+
* Use to set flex-grow, flex-shrink, flex-basis, and align-self.
|
|
576
|
+
*/
|
|
182
577
|
flexChild?: null | FlexChildStylingProperties;
|
|
578
|
+
/** Padding, margin and offset properties. Use to add spacing inside or outside the column. */
|
|
183
579
|
spacing?: null | SpacingStylingProperties;
|
|
184
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
* Styleable elements of the Column node. The Column has a single styleable element: its own
|
|
583
|
+
* container.
|
|
584
|
+
*/
|
|
185
585
|
export interface ColumnElements {
|
|
586
|
+
/**
|
|
587
|
+
* Style blocks for the column container itself. The array represents breakpoint-specific
|
|
588
|
+
* styles: first item is the default (no breakpoint), subsequent items correspond to
|
|
589
|
+
* breakpoints in ascending order. MUST contain at least one item for the default style.
|
|
590
|
+
*/
|
|
186
591
|
own: BasicStateStylingBlock<ColumnStyle>[];
|
|
187
592
|
}
|
|
593
|
+
/**
|
|
594
|
+
* A vertical flex container that arranges its children in a column (top to bottom). Use for
|
|
595
|
+
* vertical layouts. Children are laid out along the vertical axis by default. To control
|
|
596
|
+
* alignment and distribution, configure the container styles. Do NOT nest Columns
|
|
597
|
+
* unnecessarily when a single Column with appropriate styling would suffice.
|
|
598
|
+
*/
|
|
188
599
|
export interface ColumnModel<Children> {
|
|
600
|
+
/**
|
|
601
|
+
* Visual styles for this column. See styling documentation for the structure. Omit to use
|
|
602
|
+
* default (unstyled) rendering.
|
|
603
|
+
*/
|
|
189
604
|
styles?: null | LayoutStyle<ColumnElements>;
|
|
605
|
+
/**
|
|
606
|
+
* Child nodes rendered vertically within this column.
|
|
607
|
+
* Children are laid out top to bottom in source order.
|
|
608
|
+
*/
|
|
190
609
|
children: Children[];
|
|
191
610
|
}
|
|
192
|
-
|
|
611
|
+
/**
|
|
612
|
+
* Condition operators for checking whether a value exists. Use these to
|
|
613
|
+
* conditionally render content based on whether data is present.
|
|
614
|
+
* Serialized as kebab-case strings: "exists", "not-exists".
|
|
615
|
+
*/
|
|
616
|
+
export type ExistenceWhenCondition =
|
|
617
|
+
/** True when the value is present and non-empty. */
|
|
618
|
+
"exists"
|
|
619
|
+
/** True when the value is absent or empty. */
|
|
620
|
+
| "not-exists";
|
|
621
|
+
/**
|
|
622
|
+
* Tests whether a creative data attribute exists. Use to conditionally show
|
|
623
|
+
* content only when specific creative data is available. Do NOT use this for
|
|
624
|
+
* non-creative data checks.
|
|
625
|
+
*/
|
|
193
626
|
export interface CreativeCopyPredicate {
|
|
627
|
+
/** Whether to check for existence or non-existence of the creative attribute. */
|
|
194
628
|
condition: ExistenceWhenCondition;
|
|
629
|
+
/**
|
|
630
|
+
* The dot-notation path to the creative attribute, e.g.
|
|
631
|
+
* "creative.socialProof.number". MUST use dot notation to reference
|
|
632
|
+
* nested creative data fields.
|
|
633
|
+
*/
|
|
195
634
|
value: string;
|
|
196
635
|
}
|
|
636
|
+
/**
|
|
637
|
+
* Visual style properties for the CreativeResponse button.
|
|
638
|
+
* Contains the standard style categories: container layout, background colors,
|
|
639
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
640
|
+
*/
|
|
197
641
|
export interface CreativeResponseStyles {
|
|
642
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
198
643
|
container?: null | ContainerStylingProperties;
|
|
644
|
+
/** Background color and gradient styles. */
|
|
199
645
|
background?: null | BackgroundStylingProperties;
|
|
646
|
+
/** Border width, color, and radius styles. */
|
|
200
647
|
border?: null | BorderStylingProperties;
|
|
648
|
+
/** Width and height dimension styles. */
|
|
201
649
|
dimension?: null | DimensionStylingProperties;
|
|
650
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
202
651
|
flexChild?: null | FlexChildStylingProperties;
|
|
652
|
+
/** Padding and margin spacing styles. */
|
|
203
653
|
spacing?: null | SpacingStylingProperties;
|
|
204
654
|
}
|
|
655
|
+
/**
|
|
656
|
+
* Styling elements for the CreativeResponse button.
|
|
657
|
+
* The `own` array contains state-dependent styling blocks (e.g. default, pressed, disabled)
|
|
658
|
+
* applied to the button itself.
|
|
659
|
+
*/
|
|
205
660
|
export interface CreativeResponseElements {
|
|
661
|
+
/**
|
|
662
|
+
* Array of state-dependent styling blocks for the button.
|
|
663
|
+
* Each block targets a specific interaction state (default, pressed, disabled, etc.).
|
|
664
|
+
*/
|
|
206
665
|
own: BasicStateStylingBlock<CreativeResponseStyles>[];
|
|
207
666
|
}
|
|
208
|
-
|
|
667
|
+
/**
|
|
668
|
+
* Controls how links are opened when clicked. MUST be one of the valid
|
|
669
|
+
* kebab-case string values. Determines the navigation behavior when a
|
|
670
|
+
* user activates a link action.
|
|
671
|
+
*/
|
|
672
|
+
export type LinkOpenTarget =
|
|
673
|
+
/**
|
|
674
|
+
* Opens the link within the current context (in-app webview or same
|
|
675
|
+
* window). Use for links that should keep the user in the application.
|
|
676
|
+
*/
|
|
677
|
+
"internally"
|
|
678
|
+
/**
|
|
679
|
+
* Opens the link in the system browser. Use for external URLs that
|
|
680
|
+
* should leave the application context.
|
|
681
|
+
*/
|
|
682
|
+
| "externally";
|
|
683
|
+
/**
|
|
684
|
+
* A button that triggers a creative response (positive or negative).
|
|
685
|
+
* This is the primary call-to-action node for offer interactions.
|
|
686
|
+
* Children inside this node become the button content.
|
|
687
|
+
*
|
|
688
|
+
* MUST have a `responseKey` of either `"positive"` or `"negative"`.
|
|
689
|
+
* Use `"positive"` for accept/CTA buttons and `"negative"` for decline/dismiss buttons.
|
|
690
|
+
* Do NOT use this node for non-response actions like navigation; use StaticLink or ButtonStateTrigger instead.
|
|
691
|
+
*/
|
|
209
692
|
export interface CreativeResponseModel<Children> {
|
|
693
|
+
/**
|
|
694
|
+
* The response type. Use `"positive"` for accept/CTA buttons, `"negative"` for decline/dismiss buttons.
|
|
695
|
+
* Do NOT use arbitrary strings; only `"positive"` and `"negative"` are valid.
|
|
696
|
+
*/
|
|
210
697
|
responseKey: string;
|
|
698
|
+
/** Visual styles for the button. Uses the LayoutStyle wrapper with conditional style transitions. */
|
|
211
699
|
styles?: null | LayoutStyle<CreativeResponseElements>;
|
|
700
|
+
/**
|
|
701
|
+
* Controls how the response URL is opened when clicked.
|
|
702
|
+
* If omitted, the default link opening behaviour is used.
|
|
703
|
+
*/
|
|
212
704
|
openLinks?: null | LinkOpenTarget;
|
|
705
|
+
/**
|
|
706
|
+
* Child nodes that form the button's visible content.
|
|
707
|
+
* Typically contains a BasicText node with the CTA label.
|
|
708
|
+
* MUST contain at least one child to display button content.
|
|
709
|
+
*/
|
|
213
710
|
children: Children[];
|
|
214
711
|
}
|
|
215
|
-
|
|
712
|
+
/**
|
|
713
|
+
* Condition operators for equality comparisons. Use these when you only need
|
|
714
|
+
* to test if two values are equal or not equal.
|
|
715
|
+
* Serialized as kebab-case strings: "is", "is-not".
|
|
716
|
+
*/
|
|
717
|
+
export type EqualityWhenCondition =
|
|
718
|
+
/** True when the value equals the specified value. */
|
|
719
|
+
"is"
|
|
720
|
+
/** True when the value does not equal the specified value. */
|
|
721
|
+
| "is-not";
|
|
722
|
+
/**
|
|
723
|
+
* Tests whether dark mode is active. Use to provide different styling or
|
|
724
|
+
* content for light and dark modes.
|
|
725
|
+
*/
|
|
216
726
|
export interface DarkModePredicate {
|
|
727
|
+
/** Use "is" to check if dark mode matches the value, "is-not" for the inverse. */
|
|
217
728
|
condition: EqualityWhenCondition;
|
|
729
|
+
/**
|
|
730
|
+
* The boolean value to compare against. Set to true to test for dark mode,
|
|
731
|
+
* false to test for light mode.
|
|
732
|
+
*/
|
|
218
733
|
value: boolean;
|
|
219
734
|
}
|
|
735
|
+
/** Visual styles for the DataIcon node. */
|
|
220
736
|
export interface DataIconStyles {
|
|
737
|
+
/** Typography properties. */
|
|
221
738
|
text?: null | TextStylingProperties;
|
|
739
|
+
/** Width, height and rotation properties. */
|
|
222
740
|
dimension?: null | DimensionStylingProperties;
|
|
741
|
+
/** Properties controlling behaviour as a flex child. */
|
|
223
742
|
flexChild?: null | FlexChildStylingProperties;
|
|
743
|
+
/** Padding, margin and offset properties. */
|
|
224
744
|
spacing?: null | SpacingStylingProperties;
|
|
745
|
+
/** Background color and image properties. */
|
|
225
746
|
background?: null | BackgroundStylingProperties;
|
|
747
|
+
/** Border radius, color, width and style. */
|
|
226
748
|
border?: null | BorderStylingProperties;
|
|
227
749
|
}
|
|
750
|
+
/** Style elements for the DataIcon node. */
|
|
228
751
|
export interface DataIconElements {
|
|
752
|
+
/** Style blocks for the node's primary element. Array represents breakpoint-specific styles. */
|
|
229
753
|
own: BasicStateStylingBlock<DataIconStyles>[];
|
|
230
754
|
}
|
|
755
|
+
/** Renders an icon from creative data. The icon is resolved from the creative object using the iconKey. */
|
|
231
756
|
export interface DataIconModel {
|
|
757
|
+
/** Visual styles for the icon. */
|
|
232
758
|
styles?: null | LayoutStyle<DataIconElements>;
|
|
759
|
+
/** The key identifying which icon from the creative data to display. */
|
|
233
760
|
iconKey: string;
|
|
234
761
|
isImportantForAccessibility?: null | boolean;
|
|
235
762
|
}
|
|
763
|
+
/** Visual styles for the DataImage node. */
|
|
236
764
|
export interface DataImageStyles {
|
|
765
|
+
/** Background color and image properties. */
|
|
237
766
|
background?: null | BackgroundStylingProperties;
|
|
767
|
+
/** Border radius, color, width and style. */
|
|
238
768
|
border?: null | BorderStylingProperties;
|
|
769
|
+
/** Width, height and rotation properties. */
|
|
239
770
|
dimension?: null | DimensionStylingProperties;
|
|
771
|
+
/** Properties controlling behaviour as a flex child. */
|
|
240
772
|
flexChild?: null | FlexChildStylingProperties;
|
|
773
|
+
/** Padding, margin and offset properties. */
|
|
241
774
|
spacing?: null | SpacingStylingProperties;
|
|
242
775
|
}
|
|
776
|
+
/** Style elements for the DataImage node. */
|
|
243
777
|
export interface DataImageElements {
|
|
778
|
+
/** Style blocks for the node's primary element. Array represents breakpoint-specific styles. */
|
|
244
779
|
own: BasicStateStylingBlock<DataImageStyles>[];
|
|
245
780
|
}
|
|
781
|
+
/** Renders an image from creative data. The image URL is resolved from the creative object using the imageKey. Use for offer-specific images. */
|
|
246
782
|
export interface DataImageModel {
|
|
783
|
+
/** Visual styles for the image element. */
|
|
247
784
|
styles?: null | LayoutStyle<DataImageElements>;
|
|
785
|
+
/** The key identifying which image from the creative data to display. */
|
|
248
786
|
imageKey: string;
|
|
249
787
|
isImportantForAccessibility?: null | boolean;
|
|
250
788
|
}
|
|
789
|
+
/** Settings for a bidirectional fade-in/fade-out transition. */
|
|
251
790
|
export interface FadeInOutTransitionSettings {
|
|
791
|
+
/**
|
|
792
|
+
* The transition duration in milliseconds. MUST be a positive integer.
|
|
793
|
+
* Common values: 200 for fast, 400 for medium, 1000 for slow.
|
|
794
|
+
*/
|
|
252
795
|
duration: number;
|
|
253
796
|
}
|
|
797
|
+
/**
|
|
798
|
+
* Visual style properties for the GroupedDistribution container.
|
|
799
|
+
* Contains the standard style categories: container layout, background colors,
|
|
800
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
801
|
+
*/
|
|
254
802
|
export interface GroupedDistributionStyles {
|
|
803
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
255
804
|
container?: null | ContainerStylingProperties;
|
|
805
|
+
/** Background color and gradient styles. */
|
|
256
806
|
background?: null | BackgroundStylingProperties;
|
|
807
|
+
/** Border width, color, and radius styles. */
|
|
257
808
|
border?: null | BorderStylingProperties;
|
|
809
|
+
/** Width and height dimension styles. */
|
|
258
810
|
dimension?: null | DimensionStylingProperties;
|
|
811
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
259
812
|
flexChild?: null | FlexChildStylingProperties;
|
|
813
|
+
/** Padding and margin spacing styles. */
|
|
260
814
|
spacing?: null | SpacingStylingProperties;
|
|
261
815
|
}
|
|
816
|
+
/**
|
|
817
|
+
* Styling elements for the GroupedDistribution container.
|
|
818
|
+
* The `own` array contains stateless styling blocks applied to the grouped container itself.
|
|
819
|
+
*/
|
|
262
820
|
export interface GroupedDistributionElements {
|
|
821
|
+
/** Array of stateless styling blocks for the grouped container. */
|
|
263
822
|
own: StatelessStylingBlock<GroupedDistributionStyles>[];
|
|
264
823
|
}
|
|
265
|
-
|
|
824
|
+
/**
|
|
825
|
+
* A bidirectional transition that applies both when showing and hiding an
|
|
826
|
+
* element. MUST be an object with a "type" field and a "settings" field.
|
|
827
|
+
* Currently only "FadeInOut" is supported.
|
|
828
|
+
*/
|
|
829
|
+
export type Transition =
|
|
830
|
+
/**
|
|
831
|
+
* A fade-in/fade-out transition. The element fades in when shown and
|
|
832
|
+
* fades out when hidden, using the specified duration.
|
|
833
|
+
*/
|
|
834
|
+
{
|
|
266
835
|
type: "FadeInOut";
|
|
267
836
|
settings: FadeInOutTransitionSettings;
|
|
268
837
|
};
|
|
@@ -270,277 +839,775 @@ export interface GroupedSettings {
|
|
|
270
839
|
viewableItems: number[];
|
|
271
840
|
transition: Transition;
|
|
272
841
|
}
|
|
842
|
+
/**
|
|
843
|
+
* Presents offers in groups, progressing through groups sequentially.
|
|
844
|
+
* Used EXCLUSIVELY in the Outer Layout. This is the container into which offers (Layout Variants) are rendered.
|
|
845
|
+
* Each group shows a fixed number of offers at once, and the user advances through groups.
|
|
846
|
+
*
|
|
847
|
+
* Pair with ProgressControl nodes for group navigation.
|
|
848
|
+
* Use `viewableItems` to control how many offers appear per group at each breakpoint.
|
|
849
|
+
*/
|
|
273
850
|
export interface GroupedDistributionModel {
|
|
851
|
+
/**
|
|
852
|
+
* Visual styles for the grouped container.
|
|
853
|
+
* Uses the LayoutStyle wrapper with conditional style transitions.
|
|
854
|
+
*/
|
|
274
855
|
styles?: null | LayoutStyle<GroupedDistributionElements>;
|
|
275
856
|
settings: GroupedSettings;
|
|
276
857
|
}
|
|
858
|
+
/**
|
|
859
|
+
* Typography styling for inline text elements. A subset of TextStylingProperties
|
|
860
|
+
* without line-level controls (lineHeight, horizontalTextAlign, lineLimit).
|
|
861
|
+
* All fields are optional. Only include the properties you want to override.
|
|
862
|
+
*/
|
|
277
863
|
export interface InlineTextStylingProperties {
|
|
864
|
+
/** The text color. Uses themed values for light/dark mode support. */
|
|
278
865
|
textColor?: null | ThemeColor;
|
|
866
|
+
/** Font size in platform units (px on Web, pt on iOS, dp on Android). */
|
|
279
867
|
fontSize?: null | number;
|
|
868
|
+
/** The font family name. Use 'rokt-icons' for icon fonts. */
|
|
280
869
|
fontFamily?: null | string;
|
|
870
|
+
/** The weight (boldness) of the font. */
|
|
281
871
|
fontWeight?: null | FontWeight;
|
|
872
|
+
/** Vertical alignment of text relative to the baseline. */
|
|
282
873
|
baselineTextAlign?: null | FontBaselineAlignment;
|
|
874
|
+
/** Normal or italic text rendering. */
|
|
283
875
|
fontStyle?: null | FontStyle;
|
|
876
|
+
/** Controls automatic text capitalisation. */
|
|
284
877
|
textTransform?: null | TextTransform;
|
|
878
|
+
/** Additional spacing between characters in platform units. */
|
|
285
879
|
letterSpacing?: null | number;
|
|
880
|
+
/** Decorative line applied to text (underline, strikethrough). */
|
|
286
881
|
textDecoration?: null | TextDecoration;
|
|
287
882
|
}
|
|
883
|
+
/** Inline text styling for elements like links within rich text. */
|
|
288
884
|
export interface InLineTextStyle {
|
|
885
|
+
/** Typography properties for the inline text element. */
|
|
289
886
|
text: InlineTextStylingProperties;
|
|
290
887
|
}
|
|
888
|
+
/**
|
|
889
|
+
* Visual style properties for individual indicator items (dots, bars, etc.).
|
|
890
|
+
* Includes text styling for number-based indicators.
|
|
891
|
+
*/
|
|
291
892
|
export interface IndicatorStyles {
|
|
893
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
292
894
|
container?: null | ContainerStylingProperties;
|
|
895
|
+
/** Background color and gradient styles. */
|
|
293
896
|
background?: null | BackgroundStylingProperties;
|
|
897
|
+
/** Border width, color, and radius styles. */
|
|
294
898
|
border?: null | BorderStylingProperties;
|
|
899
|
+
/** Width and height dimension styles. */
|
|
295
900
|
dimension?: null | DimensionStylingProperties;
|
|
901
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
296
902
|
flexChild?: null | FlexChildStylingProperties;
|
|
903
|
+
/** Padding and margin spacing styles. */
|
|
297
904
|
spacing?: null | SpacingStylingProperties;
|
|
905
|
+
/** Text styling for number-based indicators. */
|
|
298
906
|
text?: null | TextStylingProperties;
|
|
299
907
|
}
|
|
908
|
+
/** Platform-specific settings for the layout behaviour. */
|
|
300
909
|
export interface LayoutSettings {
|
|
910
|
+
/** Whether to automatically close the layout after the user completes the interaction flow. */
|
|
301
911
|
closeOnComplete?: null | boolean;
|
|
302
912
|
}
|
|
913
|
+
/**
|
|
914
|
+
* Visual style properties for the OneByOneDistribution container.
|
|
915
|
+
* Contains the standard style categories: container layout, background colors,
|
|
916
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
917
|
+
*/
|
|
303
918
|
export interface OneByOneDistributionStyles {
|
|
919
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
304
920
|
container?: null | ContainerStylingProperties;
|
|
921
|
+
/** Background color and gradient styles. */
|
|
305
922
|
background?: null | BackgroundStylingProperties;
|
|
923
|
+
/** Border width, color, and radius styles. */
|
|
306
924
|
border?: null | BorderStylingProperties;
|
|
925
|
+
/** Width and height dimension styles. */
|
|
307
926
|
dimension?: null | DimensionStylingProperties;
|
|
927
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
308
928
|
flexChild?: null | FlexChildStylingProperties;
|
|
929
|
+
/** Padding and margin spacing styles. */
|
|
309
930
|
spacing?: null | SpacingStylingProperties;
|
|
310
931
|
}
|
|
932
|
+
/**
|
|
933
|
+
* Styling elements for the OneByOneDistribution container.
|
|
934
|
+
* The `own` array contains stateless styling blocks applied to the distribution container itself.
|
|
935
|
+
*/
|
|
311
936
|
export interface OneByOneDistributionElements {
|
|
937
|
+
/** Array of stateless styling blocks for the distribution container. */
|
|
312
938
|
own: StatelessStylingBlock<OneByOneDistributionStyles>[];
|
|
313
939
|
}
|
|
940
|
+
/**
|
|
941
|
+
* Presents offers one at a time, allowing the user to progress through them sequentially.
|
|
942
|
+
* Used EXCLUSIVELY in the Outer Layout. This is the container into which offers (Layout Variants) are rendered.
|
|
943
|
+
*
|
|
944
|
+
* Pair with ProgressControl nodes to enable forward/backward navigation between offers.
|
|
945
|
+
* Pair with ProgressIndicator to show the user's current position.
|
|
946
|
+
* Do NOT use this for displaying all offers at once; use StackedDistribution instead.
|
|
947
|
+
*/
|
|
314
948
|
export interface OneByOneDistributionModel {
|
|
949
|
+
/**
|
|
950
|
+
* Visual styles for the distribution container.
|
|
951
|
+
* Uses the LayoutStyle wrapper with conditional style transitions.
|
|
952
|
+
*/
|
|
315
953
|
styles?: null | LayoutStyle<OneByOneDistributionElements>;
|
|
954
|
+
/**
|
|
955
|
+
* The animation transition between offers.
|
|
956
|
+
* Defines how the current offer exits and the next offer enters.
|
|
957
|
+
*/
|
|
316
958
|
transition: Transition;
|
|
317
959
|
}
|
|
960
|
+
/**
|
|
961
|
+
* Available style categories for the Overlay content element. Each optional field enables a
|
|
962
|
+
* specific category of visual styling. Omit a field to leave that category unstyled.
|
|
963
|
+
*/
|
|
318
964
|
export interface OverlayStyles {
|
|
965
|
+
/**
|
|
966
|
+
* Layout properties for the flex container (justification, alignment, gap, overflow).
|
|
967
|
+
* MUST be used to control how children are arranged within the overlay content area.
|
|
968
|
+
*/
|
|
319
969
|
container?: null | ContainerStylingProperties;
|
|
970
|
+
/**
|
|
971
|
+
* Background color and image properties. Use to set a solid color, gradient, or image
|
|
972
|
+
* behind the overlay content.
|
|
973
|
+
*/
|
|
320
974
|
background?: null | BackgroundStylingProperties;
|
|
975
|
+
/**
|
|
976
|
+
* Border radius, color, width and style properties. Use to add visible borders or
|
|
977
|
+
* rounded corners to the overlay content area.
|
|
978
|
+
*/
|
|
321
979
|
border?: null | BorderStylingProperties;
|
|
980
|
+
/**
|
|
981
|
+
* Width, height and rotation properties. Use to explicitly size the overlay content area.
|
|
982
|
+
* Do NOT set width/height if the overlay should size to its content.
|
|
983
|
+
*/
|
|
322
984
|
dimension?: null | DimensionStylingProperties;
|
|
985
|
+
/**
|
|
986
|
+
* Properties controlling this element's behaviour as a child of a flex container.
|
|
987
|
+
* Use to set flex-grow, flex-shrink, flex-basis, and align-self.
|
|
988
|
+
*/
|
|
323
989
|
flexChild?: null | FlexChildStylingProperties;
|
|
990
|
+
/**
|
|
991
|
+
* Padding, margin and offset properties. Use to add spacing inside or outside the
|
|
992
|
+
* overlay content area.
|
|
993
|
+
*/
|
|
324
994
|
spacing?: null | SpacingStylingProperties;
|
|
325
995
|
}
|
|
996
|
+
/**
|
|
997
|
+
* Style categories for the Overlay wrapper (backdrop) element. Controls the appearance of
|
|
998
|
+
* the area behind the overlay content.
|
|
999
|
+
*/
|
|
326
1000
|
export interface OverlayWrapperStyles {
|
|
1001
|
+
/** Layout properties for the wrapper container that positions the overlay content. */
|
|
327
1002
|
container?: null | ContainerStylingProperties;
|
|
1003
|
+
/**
|
|
1004
|
+
* Background color for the backdrop. Typically a semi-transparent color (using `#AARRGGBB`
|
|
1005
|
+
* format, e.g. `#80000000`) to dim the content behind the overlay.
|
|
1006
|
+
*/
|
|
328
1007
|
background?: null | BackgroundStylingProperties;
|
|
329
1008
|
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Styleable elements of the Overlay node. The Overlay has two styleable elements: its own
|
|
1011
|
+
* content area and its wrapper (backdrop).
|
|
1012
|
+
*/
|
|
330
1013
|
export interface OverlayElements {
|
|
1014
|
+
/**
|
|
1015
|
+
* Style blocks for the overlay content area. The array represents breakpoint-specific
|
|
1016
|
+
* styles: first item is the default (no breakpoint), subsequent items correspond to
|
|
1017
|
+
* breakpoints in ascending order. MUST contain at least one item for the default style.
|
|
1018
|
+
*/
|
|
331
1019
|
own: BasicStateStylingBlock<OverlayStyles>[];
|
|
1020
|
+
/**
|
|
1021
|
+
* Style blocks for the overlay wrapper (backdrop). The array represents
|
|
1022
|
+
* breakpoint-specific styles: first item is the default, subsequent items correspond
|
|
1023
|
+
* to breakpoints in ascending order.
|
|
1024
|
+
*/
|
|
332
1025
|
wrapper: BasicStateStylingBlock<OverlayWrapperStyles>[];
|
|
333
1026
|
}
|
|
334
1027
|
export interface OverlaySettings {
|
|
335
1028
|
allowBackdropToClose: boolean;
|
|
336
1029
|
}
|
|
1030
|
+
/**
|
|
1031
|
+
* A modal overlay that appears on top of the main content with a backdrop. Use for dialogs,
|
|
1032
|
+
* confirmations, and modal interactions that require user attention. The overlay blocks
|
|
1033
|
+
* interaction with the content behind it. Do NOT use Overlay for inline content layering;
|
|
1034
|
+
* use ZStack instead.
|
|
1035
|
+
*/
|
|
337
1036
|
export interface OverlayModel<Children> {
|
|
338
1037
|
settings: OverlaySettings;
|
|
1038
|
+
/**
|
|
1039
|
+
* Visual styles for this overlay. See styling documentation for the structure. Omit to
|
|
1040
|
+
* use default (unstyled) rendering.
|
|
1041
|
+
*/
|
|
339
1042
|
styles?: null | LayoutStyle<OverlayElements>;
|
|
1043
|
+
/** The content displayed within the overlay. */
|
|
340
1044
|
children: Children[];
|
|
341
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Tests the position index of the current item within a collection. Use to
|
|
1048
|
+
* style items differently based on their position (e.g. first item, last item).
|
|
1049
|
+
*/
|
|
342
1050
|
export interface PositionPredicate {
|
|
1051
|
+
/** The comparison operator. */
|
|
343
1052
|
condition: OrderableWhenCondition;
|
|
1053
|
+
/**
|
|
1054
|
+
* The position index to compare against. MUST be a string representation
|
|
1055
|
+
* of a number, e.g. "0" for the first item.
|
|
1056
|
+
*/
|
|
344
1057
|
value: string;
|
|
345
1058
|
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Visual style properties for the ProgressControl button.
|
|
1061
|
+
* Contains the standard style categories: container layout, background colors,
|
|
1062
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
1063
|
+
*/
|
|
346
1064
|
export interface ProgressControlStyle {
|
|
1065
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
347
1066
|
container?: null | ContainerStylingProperties;
|
|
1067
|
+
/** Background color and gradient styles. */
|
|
348
1068
|
background?: null | BackgroundStylingProperties;
|
|
1069
|
+
/** Border width, color, and radius styles. */
|
|
349
1070
|
border?: null | BorderStylingProperties;
|
|
1071
|
+
/** Width and height dimension styles. */
|
|
350
1072
|
dimension?: null | DimensionStylingProperties;
|
|
1073
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
351
1074
|
flexChild?: null | FlexChildStylingProperties;
|
|
1075
|
+
/** Padding and margin spacing styles. */
|
|
352
1076
|
spacing?: null | SpacingStylingProperties;
|
|
353
1077
|
}
|
|
1078
|
+
/**
|
|
1079
|
+
* Styling elements for the ProgressControl button.
|
|
1080
|
+
* The `own` array contains state-dependent styling blocks (e.g. default, pressed, disabled)
|
|
1081
|
+
* applied to the control button itself.
|
|
1082
|
+
*/
|
|
354
1083
|
export interface ProgressControlElements {
|
|
1084
|
+
/**
|
|
1085
|
+
* Array of state-dependent styling blocks for the control button.
|
|
1086
|
+
* Each block targets a specific interaction state (default, pressed, disabled, etc.).
|
|
1087
|
+
*/
|
|
355
1088
|
own: BasicStateStylingBlock<ProgressControlStyle>[];
|
|
356
1089
|
}
|
|
357
|
-
|
|
1090
|
+
/** The direction in which the progress control advances offers. */
|
|
1091
|
+
export type ProgressionDirection =
|
|
1092
|
+
/** Advance to the next offer or group. */
|
|
1093
|
+
"Forward"
|
|
1094
|
+
/** Return to the previous offer or group. */
|
|
1095
|
+
| "Backward";
|
|
1096
|
+
/**
|
|
1097
|
+
* A button that advances or reverses offer progression.
|
|
1098
|
+
* Used with OneByOneDistribution or GroupedDistribution for navigation.
|
|
1099
|
+
*
|
|
1100
|
+
* MUST specify a `direction` (Forward or Backward).
|
|
1101
|
+
* Pair with a distribution node for the control to have an effect.
|
|
1102
|
+
* Typically contains an arrow icon as child content.
|
|
1103
|
+
*/
|
|
358
1104
|
export interface ProgressControlModel<Children> {
|
|
1105
|
+
/** Visual styles for the control. Uses the LayoutStyle wrapper with conditional style transitions. */
|
|
359
1106
|
styles?: null | LayoutStyle<ProgressControlElements>;
|
|
1107
|
+
/** The direction to progress. MUST be either Forward or Backward. */
|
|
360
1108
|
direction: ProgressionDirection;
|
|
1109
|
+
/**
|
|
1110
|
+
* Child nodes forming the button content (e.g. an arrow icon).
|
|
1111
|
+
* MUST contain at least one child for the control to have visible content.
|
|
1112
|
+
*/
|
|
361
1113
|
children: Children[];
|
|
362
1114
|
}
|
|
1115
|
+
/**
|
|
1116
|
+
* Visual style properties for the ProgressIndicator container.
|
|
1117
|
+
* Contains the standard style categories for the outer indicator wrapper.
|
|
1118
|
+
*/
|
|
363
1119
|
export interface ProgressIndicatorStyles {
|
|
1120
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
364
1121
|
container?: null | ContainerStylingProperties;
|
|
1122
|
+
/** Background color and gradient styles. */
|
|
365
1123
|
background?: null | BackgroundStylingProperties;
|
|
1124
|
+
/** Border width, color, and radius styles. */
|
|
366
1125
|
border?: null | BorderStylingProperties;
|
|
1126
|
+
/** Width and height dimension styles. */
|
|
367
1127
|
dimension?: null | DimensionStylingProperties;
|
|
1128
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
368
1129
|
flexChild?: null | FlexChildStylingProperties;
|
|
1130
|
+
/** Padding and margin spacing styles. */
|
|
369
1131
|
spacing?: null | SpacingStylingProperties;
|
|
370
1132
|
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Styling elements for the ProgressIndicator.
|
|
1135
|
+
* Contains styling blocks for the container, individual indicators, and special indicator states.
|
|
1136
|
+
*/
|
|
371
1137
|
export interface ProgressIndicatorElements {
|
|
1138
|
+
/** Array of state-dependent styling blocks for the indicator container. */
|
|
372
1139
|
own: BasicStateStylingBlock<ProgressIndicatorStyles>[];
|
|
1140
|
+
/** Styling blocks for each individual indicator item (default state). */
|
|
373
1141
|
indicator: BasicStateStylingBlock<IndicatorStyles>[];
|
|
1142
|
+
/**
|
|
1143
|
+
* Optional styling blocks for the currently active indicator.
|
|
1144
|
+
* If omitted, the default indicator styling is used.
|
|
1145
|
+
*/
|
|
374
1146
|
activeIndicator?: null | BasicStateStylingBlock<IndicatorStyles>[];
|
|
1147
|
+
/**
|
|
1148
|
+
* Optional styling blocks for indicators that have been seen/visited.
|
|
1149
|
+
* If omitted, the default indicator styling is used.
|
|
1150
|
+
*/
|
|
375
1151
|
seenIndicator?: null | BasicStateStylingBlock<IndicatorStyles>[];
|
|
376
1152
|
}
|
|
377
1153
|
export interface ProgressIndicatorSettings {
|
|
378
1154
|
startPosition?: null | number;
|
|
379
1155
|
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Displays visual progress indicators (dots, bars) showing the user's position
|
|
1158
|
+
* within a series of offers.
|
|
1159
|
+
*
|
|
1160
|
+
* MUST be paired with a distribution node (OneByOneDistribution, GroupedDistribution, etc.)
|
|
1161
|
+
* to track position. The indicator automatically reflects the current offer position.
|
|
1162
|
+
* Use `indicator` to specify the type (e.g. "dot", "bar", "number").
|
|
1163
|
+
*/
|
|
380
1164
|
export interface ProgressIndicatorModel {
|
|
1165
|
+
/**
|
|
1166
|
+
* Visual styles for the progress indicators.
|
|
1167
|
+
* Uses the LayoutStyle wrapper with conditional style transitions.
|
|
1168
|
+
*/
|
|
381
1169
|
styles?: null | LayoutStyle<ProgressIndicatorElements>;
|
|
1170
|
+
/**
|
|
1171
|
+
* The type of indicator to display (e.g. "dot", "bar", "number").
|
|
1172
|
+
* MUST be a valid indicator type string.
|
|
1173
|
+
*/
|
|
382
1174
|
indicator: string;
|
|
383
1175
|
settings?: null | ProgressIndicatorSettings;
|
|
384
1176
|
isImportantForAccessibility?: null | boolean;
|
|
385
1177
|
}
|
|
1178
|
+
/**
|
|
1179
|
+
* Tests which offer index is currently visible in a carousel or progression.
|
|
1180
|
+
* Use 0 for the first offer, -1 for the last offer.
|
|
1181
|
+
*/
|
|
386
1182
|
export interface ProgressionPredicate {
|
|
1183
|
+
/** The comparison operator. */
|
|
387
1184
|
condition: OrderableWhenCondition;
|
|
1185
|
+
/**
|
|
1186
|
+
* The progression index to compare against. MUST be a string representation
|
|
1187
|
+
* of a number. Use "0" for the first offer, "-1" for the last offer.
|
|
1188
|
+
*/
|
|
388
1189
|
value: string;
|
|
389
1190
|
}
|
|
1191
|
+
/** Visual styles for the RichText node. */
|
|
390
1192
|
export interface RichTextStyle {
|
|
1193
|
+
/** Width, height and rotation properties. */
|
|
391
1194
|
dimension?: null | DimensionStylingProperties;
|
|
1195
|
+
/** Properties controlling behaviour as a flex child. */
|
|
392
1196
|
flexChild?: null | FlexChildStylingProperties;
|
|
1197
|
+
/** Padding, margin and offset properties. */
|
|
393
1198
|
spacing?: null | SpacingStylingProperties;
|
|
1199
|
+
/** Background color and image properties. */
|
|
394
1200
|
background?: null | BackgroundStylingProperties;
|
|
1201
|
+
/** Typography properties. */
|
|
395
1202
|
text?: null | TextStylingProperties;
|
|
396
1203
|
}
|
|
1204
|
+
/** Style elements for the RichText node. */
|
|
397
1205
|
export interface RichTextElements {
|
|
1206
|
+
/** Style blocks for the node's primary element. Array represents breakpoint-specific styles. */
|
|
398
1207
|
own: BasicStateStylingBlock<RichTextStyle>[];
|
|
1208
|
+
/** Style blocks for link elements within the rich text content. */
|
|
399
1209
|
link?: null | BasicStateStylingBlock<InLineTextStyle>[];
|
|
400
1210
|
}
|
|
1211
|
+
/** Renders HTML-formatted text content. Supports `<a>`, `<strong>`, `<em>`, `<br>` and other inline HTML elements. Use BasicText for plain text without HTML. */
|
|
401
1212
|
export interface RichTextModel {
|
|
1213
|
+
/** Visual styles for the text element. */
|
|
402
1214
|
styles?: null | LayoutStyle<RichTextElements>;
|
|
1215
|
+
/** Controls how links within the rich text are opened when clicked. */
|
|
403
1216
|
openLinks?: null | LinkOpenTarget;
|
|
1217
|
+
/** The HTML text content to display. Supports inline HTML tags and data binding placeholders in the format %^DATA.key^% or %^ATTRIBUTE.key^%. */
|
|
404
1218
|
value: string;
|
|
405
1219
|
}
|
|
1220
|
+
/**
|
|
1221
|
+
* The top-level schema structure for an outer layout. Contains the layout tree,
|
|
1222
|
+
* breakpoint definitions, settings and display configuration.
|
|
1223
|
+
*/
|
|
406
1224
|
export interface RootSchemaModel<Layout, Display, Settings> {
|
|
1225
|
+
/**
|
|
1226
|
+
* Map of breakpoint names to viewport width thresholds in platform units.
|
|
1227
|
+
* Defines responsive breakpoints for the layout.
|
|
1228
|
+
*/
|
|
407
1229
|
breakpoints: Record<string, number>;
|
|
1230
|
+
/** The root node of the layout tree. */
|
|
408
1231
|
layout: Layout;
|
|
1232
|
+
/** Platform-specific layout settings. */
|
|
409
1233
|
settings?: null | Settings;
|
|
1234
|
+
/** Controls how the layout is displayed (fullscreen, embedded, etc). */
|
|
410
1235
|
display?: null | Display;
|
|
411
1236
|
}
|
|
1237
|
+
/**
|
|
1238
|
+
* Available style categories for the Row element. Each optional field enables a specific
|
|
1239
|
+
* category of visual styling. Omit a field to leave that category unstyled.
|
|
1240
|
+
*/
|
|
412
1241
|
export interface RowStyle {
|
|
1242
|
+
/**
|
|
1243
|
+
* Layout properties for the flex container (justification, alignment, gap, overflow).
|
|
1244
|
+
* MUST be used to control how children are arranged within the row.
|
|
1245
|
+
*/
|
|
413
1246
|
container?: null | ContainerStylingProperties;
|
|
1247
|
+
/**
|
|
1248
|
+
* Background color and image properties. Use to set a solid color, gradient, or image
|
|
1249
|
+
* behind the row content.
|
|
1250
|
+
*/
|
|
414
1251
|
background?: null | BackgroundStylingProperties;
|
|
1252
|
+
/**
|
|
1253
|
+
* Border radius, color, width and style properties. Use to add visible borders or
|
|
1254
|
+
* rounded corners to the row.
|
|
1255
|
+
*/
|
|
415
1256
|
border?: null | BorderStylingProperties;
|
|
1257
|
+
/**
|
|
1258
|
+
* Width, height and rotation properties. Use to explicitly size the row or apply rotation
|
|
1259
|
+
* transforms. Do NOT set width/height if the row should size to its content.
|
|
1260
|
+
*/
|
|
416
1261
|
dimension?: null | DimensionStylingProperties;
|
|
1262
|
+
/**
|
|
1263
|
+
* Properties controlling this element's behaviour as a child of a flex container.
|
|
1264
|
+
* Use to set flex-grow, flex-shrink, flex-basis, and align-self.
|
|
1265
|
+
*/
|
|
417
1266
|
flexChild?: null | FlexChildStylingProperties;
|
|
1267
|
+
/** Padding, margin and offset properties. Use to add spacing inside or outside the row. */
|
|
418
1268
|
spacing?: null | SpacingStylingProperties;
|
|
419
1269
|
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Styleable elements of the Row node. The Row has a single styleable element: its own
|
|
1272
|
+
* container.
|
|
1273
|
+
*/
|
|
420
1274
|
export interface RowElements {
|
|
1275
|
+
/**
|
|
1276
|
+
* Style blocks for the row container itself. The array represents breakpoint-specific
|
|
1277
|
+
* styles: first item is the default (no breakpoint), subsequent items correspond to
|
|
1278
|
+
* breakpoints in ascending order. MUST contain at least one item for the default style.
|
|
1279
|
+
*/
|
|
421
1280
|
own: BasicStateStylingBlock<RowStyle>[];
|
|
422
1281
|
}
|
|
1282
|
+
/**
|
|
1283
|
+
* A horizontal flex container that arranges its children in a row (left to right). Use for
|
|
1284
|
+
* horizontal layouts. Children are laid out along the horizontal axis by default. To control
|
|
1285
|
+
* alignment and distribution, configure the container styles. Do NOT nest Rows unnecessarily
|
|
1286
|
+
* when a single Row with appropriate styling would suffice.
|
|
1287
|
+
*/
|
|
423
1288
|
export interface RowModel<Children> {
|
|
1289
|
+
/**
|
|
1290
|
+
* Visual styles for this row. See styling documentation for the structure. Omit to use
|
|
1291
|
+
* default (unstyled) rendering.
|
|
1292
|
+
*/
|
|
424
1293
|
styles?: null | LayoutStyle<RowElements>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Child nodes rendered horizontally within this row.
|
|
1296
|
+
* Children are laid out left to right in source order.
|
|
1297
|
+
*/
|
|
425
1298
|
children: Children[];
|
|
426
1299
|
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Visual style properties for the StackedDistribution container.
|
|
1302
|
+
* Contains the standard style categories: container layout, background colors,
|
|
1303
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
1304
|
+
*/
|
|
427
1305
|
export interface StackedDistributionStyles {
|
|
1306
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
428
1307
|
container?: null | ContainerStylingProperties;
|
|
1308
|
+
/** Background color and gradient styles. */
|
|
429
1309
|
background?: null | BackgroundStylingProperties;
|
|
1310
|
+
/** Border width, color, and radius styles. */
|
|
430
1311
|
border?: null | BorderStylingProperties;
|
|
1312
|
+
/** Width and height dimension styles. */
|
|
431
1313
|
dimension?: null | DimensionStylingProperties;
|
|
1314
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
432
1315
|
flexChild?: null | FlexChildStylingProperties;
|
|
1316
|
+
/** Padding and margin spacing styles. */
|
|
433
1317
|
spacing?: null | SpacingStylingProperties;
|
|
434
1318
|
}
|
|
1319
|
+
/**
|
|
1320
|
+
* Styling elements for the StackedDistribution container.
|
|
1321
|
+
* The `own` array contains stateless styling blocks applied to the stacked container itself.
|
|
1322
|
+
*/
|
|
435
1323
|
export interface StackedDistributionElements {
|
|
1324
|
+
/** Array of stateless styling blocks for the stacked container. */
|
|
436
1325
|
own: StatelessStylingBlock<StackedDistributionStyles>[];
|
|
437
1326
|
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Presents multiple offers stacked vertically, all visible at once.
|
|
1329
|
+
* Used EXCLUSIVELY in the Outer Layout. This is the container into which offers (Layout Variants) are rendered.
|
|
1330
|
+
*
|
|
1331
|
+
* Use this when all offers should be visible simultaneously.
|
|
1332
|
+
* Do NOT use this for sequential one-at-a-time presentation; use OneByOneDistribution instead.
|
|
1333
|
+
*/
|
|
438
1334
|
export interface StackedDistributionModel {
|
|
1335
|
+
/**
|
|
1336
|
+
* Visual styles for the stacked container.
|
|
1337
|
+
* Uses the LayoutStyle wrapper with conditional style transitions.
|
|
1338
|
+
*/
|
|
439
1339
|
styles?: null | LayoutStyle<StackedDistributionElements>;
|
|
440
1340
|
}
|
|
441
|
-
|
|
1341
|
+
/**
|
|
1342
|
+
* Condition operators for boolean values. Use these to test boolean flags.
|
|
1343
|
+
* Serialized as kebab-case strings: "is-true", "is-false".
|
|
1344
|
+
*/
|
|
1345
|
+
export type BooleanWhenCondition =
|
|
1346
|
+
/** True when the value is true. */
|
|
1347
|
+
"is-true"
|
|
1348
|
+
/** True when the value is false. */
|
|
1349
|
+
| "is-false";
|
|
1350
|
+
/**
|
|
1351
|
+
* A predicate with a hardcoded boolean value. Useful for enabling or disabling
|
|
1352
|
+
* sections during development or for static feature flags.
|
|
1353
|
+
*/
|
|
442
1354
|
export interface StaticBooleanPredicate {
|
|
1355
|
+
/** The boolean condition. Use "is-true" or "is-false". */
|
|
443
1356
|
condition: BooleanWhenCondition;
|
|
1357
|
+
/** The static boolean value to evaluate against the condition. */
|
|
444
1358
|
value: boolean;
|
|
445
1359
|
}
|
|
1360
|
+
/** Visual styles for the StaticIcon node. MUST include text styles with fontFamily set to 'rokt-icons' to render correctly. */
|
|
446
1361
|
export interface StaticIconStyles {
|
|
1362
|
+
/** Typography properties. MUST include fontFamily set to 'rokt-icons' for the icon to render correctly. */
|
|
447
1363
|
text?: null | TextStylingProperties;
|
|
1364
|
+
/** Width, height and rotation properties. */
|
|
448
1365
|
dimension?: null | DimensionStylingProperties;
|
|
1366
|
+
/** Properties controlling behaviour as a flex child. */
|
|
449
1367
|
flexChild?: null | FlexChildStylingProperties;
|
|
1368
|
+
/** Padding, margin and offset properties. */
|
|
450
1369
|
spacing?: null | SpacingStylingProperties;
|
|
1370
|
+
/** Background color and image properties. */
|
|
451
1371
|
background?: null | BackgroundStylingProperties;
|
|
1372
|
+
/** Border radius, color, width and style. */
|
|
452
1373
|
border?: null | BorderStylingProperties;
|
|
453
1374
|
}
|
|
1375
|
+
/** Style elements for the StaticIcon node. */
|
|
454
1376
|
export interface StaticIconElements {
|
|
1377
|
+
/** Style blocks for the node's primary element. Array represents breakpoint-specific styles. */
|
|
455
1378
|
own: BasicStateStylingBlock<StaticIconStyles>[];
|
|
456
1379
|
}
|
|
1380
|
+
/** Renders an SVG icon from the Rokt icon font. The icon is selected by name from the available icon set. */
|
|
457
1381
|
export interface StaticIconModel {
|
|
1382
|
+
/** Visual styles for the icon. MUST include text styles with fontFamily set to 'rokt-icons' to render correctly. */
|
|
458
1383
|
styles?: null | LayoutStyle<StaticIconElements>;
|
|
1384
|
+
/** The icon name. Available icons include: Car, CreditCard, Ticket, Star, Mobile, Train, Utensils, Calculator, Couch, CheckApproved, Check, Lock, Shield, ThumbUp, ShoppingCart, TrendingUp, Wallet, Luggage, Close, ChevronLeft, ChevronRight, ExpandMore, ExpandLess, ArrowBack, ArrowForward, ArrowUpward, ArrowDownward, Add, Remove, ExternalLink, CircleCheck, Help, Info. */
|
|
459
1385
|
name: string;
|
|
1386
|
+
/** Accessibility description of the icon for screen readers. */
|
|
460
1387
|
description?: null | string;
|
|
461
1388
|
isImportantForAccessibility?: null | boolean;
|
|
462
1389
|
}
|
|
1390
|
+
/** Visual styles for the StaticImage node. */
|
|
463
1391
|
export interface StaticImageStyles {
|
|
1392
|
+
/** Background color and image properties. */
|
|
464
1393
|
background?: null | BackgroundStylingProperties;
|
|
1394
|
+
/** Border radius, color, width and style. */
|
|
465
1395
|
border?: null | BorderStylingProperties;
|
|
1396
|
+
/** Width, height and rotation properties. */
|
|
466
1397
|
dimension?: null | DimensionStylingProperties;
|
|
1398
|
+
/** Properties controlling behaviour as a flex child. */
|
|
467
1399
|
flexChild?: null | FlexChildStylingProperties;
|
|
1400
|
+
/** Padding, margin and offset properties. */
|
|
468
1401
|
spacing?: null | SpacingStylingProperties;
|
|
469
1402
|
}
|
|
1403
|
+
/** Style elements for the StaticImage node. */
|
|
470
1404
|
export interface StaticImageElements {
|
|
1405
|
+
/** Style blocks for the node's primary element. Array represents breakpoint-specific styles. */
|
|
471
1406
|
own: BasicStateStylingBlock<StaticImageStyles>[];
|
|
472
1407
|
}
|
|
1408
|
+
/** URL configuration for a static image with themed light/dark mode support. */
|
|
473
1409
|
export interface StaticImageUrl {
|
|
1410
|
+
/** The image URL for light mode. MUST be a valid URL. */
|
|
474
1411
|
light: string;
|
|
1412
|
+
/** The image URL for dark mode. If not provided, the light URL is used for both modes. */
|
|
475
1413
|
dark?: null | string;
|
|
476
1414
|
}
|
|
1415
|
+
/** Renders a static image from a provided URL. Use for images with known URLs (logos, icons, decorative images). */
|
|
477
1416
|
export interface StaticImageModel {
|
|
1417
|
+
/** Visual styles for the image element. */
|
|
478
1418
|
styles?: null | LayoutStyle<StaticImageElements>;
|
|
1419
|
+
/** Alt text for accessibility. Describes the image for screen readers. */
|
|
479
1420
|
alt?: null | string;
|
|
1421
|
+
/** Title text shown on hover. */
|
|
480
1422
|
title?: null | string;
|
|
1423
|
+
/** The image URL with themed light/dark mode support. */
|
|
481
1424
|
url: StaticImageUrl;
|
|
482
1425
|
isImportantForAccessibility?: null | boolean;
|
|
483
1426
|
}
|
|
1427
|
+
/**
|
|
1428
|
+
* Visual style properties for the StaticLink.
|
|
1429
|
+
* Contains the standard style categories: container layout, background colors,
|
|
1430
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
1431
|
+
*/
|
|
484
1432
|
export interface StaticLinkStyles {
|
|
1433
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
485
1434
|
container?: null | ContainerStylingProperties;
|
|
1435
|
+
/** Background color and gradient styles. */
|
|
486
1436
|
background?: null | BackgroundStylingProperties;
|
|
1437
|
+
/** Border width, color, and radius styles. */
|
|
487
1438
|
border?: null | BorderStylingProperties;
|
|
1439
|
+
/** Width and height dimension styles. */
|
|
488
1440
|
dimension?: null | DimensionStylingProperties;
|
|
1441
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
489
1442
|
flexChild?: null | FlexChildStylingProperties;
|
|
1443
|
+
/** Padding and margin spacing styles. */
|
|
490
1444
|
spacing?: null | SpacingStylingProperties;
|
|
491
1445
|
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Styling elements for the StaticLink.
|
|
1448
|
+
* The `own` array contains state-dependent styling blocks (e.g. default, pressed)
|
|
1449
|
+
* applied to the link itself.
|
|
1450
|
+
*/
|
|
492
1451
|
export interface StaticLinkElements {
|
|
1452
|
+
/**
|
|
1453
|
+
* Array of state-dependent styling blocks for the link.
|
|
1454
|
+
* Each block targets a specific interaction state (default, pressed, etc.).
|
|
1455
|
+
*/
|
|
493
1456
|
own: BasicStateStylingBlock<StaticLinkStyles>[];
|
|
494
1457
|
}
|
|
1458
|
+
/**
|
|
1459
|
+
* A clickable link that wraps its children. Opens the specified URL when clicked.
|
|
1460
|
+
*
|
|
1461
|
+
* Use this node for navigation to external URLs. Do NOT use CreativeResponse for link navigation;
|
|
1462
|
+
* CreativeResponse is for offer accept/decline actions only.
|
|
1463
|
+
* The `src` field MUST be a valid URL string.
|
|
1464
|
+
*/
|
|
495
1465
|
export interface StaticLinkModel<Children> {
|
|
1466
|
+
/**
|
|
1467
|
+
* The destination URL to open when the link is clicked.
|
|
1468
|
+
* MUST be a valid URL string (e.g. "https://example.com").
|
|
1469
|
+
*/
|
|
496
1470
|
src: string;
|
|
1471
|
+
/** Controls how the link URL is opened (e.g. in-app browser, external browser). */
|
|
497
1472
|
open: LinkOpenTarget;
|
|
1473
|
+
/** Visual styles for the link. Uses the LayoutStyle wrapper with conditional style transitions. */
|
|
498
1474
|
styles?: null | LayoutStyle<StaticLinkElements>;
|
|
1475
|
+
/**
|
|
1476
|
+
* Child nodes that form the clickable link content.
|
|
1477
|
+
* MUST contain at least one child for the link to have visible, tappable content.
|
|
1478
|
+
*/
|
|
499
1479
|
children: Children[];
|
|
500
1480
|
}
|
|
501
|
-
|
|
1481
|
+
/**
|
|
1482
|
+
* All available predicate types for conditional rendering in the full layout
|
|
1483
|
+
* schema. Used with the When node to conditionally show or hide children.
|
|
1484
|
+
* Each predicate MUST include a "type" field to identify the predicate kind
|
|
1485
|
+
* and a "predicate" field containing the predicate configuration.
|
|
1486
|
+
*/
|
|
1487
|
+
export type WhenPredicate =
|
|
1488
|
+
/** Tests the viewport width against a breakpoint value. */
|
|
1489
|
+
{
|
|
502
1490
|
type: "Breakpoint";
|
|
503
1491
|
predicate: BreakpointPredicate;
|
|
504
|
-
}
|
|
1492
|
+
}
|
|
1493
|
+
/** Tests the position index of the current item in a collection. */
|
|
1494
|
+
| {
|
|
505
1495
|
type: "Position";
|
|
506
1496
|
predicate: PositionPredicate;
|
|
507
|
-
}
|
|
1497
|
+
}
|
|
1498
|
+
/** Tests which offer index is currently visible. */
|
|
1499
|
+
| {
|
|
508
1500
|
type: "Progression";
|
|
509
1501
|
predicate: ProgressionPredicate;
|
|
510
|
-
}
|
|
1502
|
+
}
|
|
1503
|
+
/** Tests whether dark mode is active. */
|
|
1504
|
+
| {
|
|
511
1505
|
type: "DarkMode";
|
|
512
1506
|
predicate: DarkModePredicate;
|
|
513
|
-
}
|
|
1507
|
+
}
|
|
1508
|
+
/** Tests whether a creative data attribute exists. */
|
|
1509
|
+
| {
|
|
514
1510
|
type: "CreativeCopy";
|
|
515
1511
|
predicate: CreativeCopyPredicate;
|
|
516
|
-
}
|
|
1512
|
+
}
|
|
1513
|
+
/** Evaluates a hardcoded boolean value. */
|
|
1514
|
+
| {
|
|
517
1515
|
type: "StaticBoolean";
|
|
518
1516
|
predicate: StaticBooleanPredicate;
|
|
519
1517
|
};
|
|
1518
|
+
/**
|
|
1519
|
+
* Conditional rendering node. Shows or hides its children based on predicate conditions.
|
|
1520
|
+
* All predicates MUST evaluate to true for children to be shown (AND logic).
|
|
1521
|
+
*
|
|
1522
|
+
* Use this node to conditionally display content based on custom state, offer count, or other
|
|
1523
|
+
* predicate conditions. Do NOT nest When nodes unnecessarily; combine predicates in a single
|
|
1524
|
+
* When node instead.
|
|
1525
|
+
*/
|
|
520
1526
|
export interface WhenModel<Children> {
|
|
1527
|
+
/**
|
|
1528
|
+
* Array of conditions that MUST ALL be true for children to render.
|
|
1529
|
+
* Uses AND logic: if any predicate is false, children are hidden.
|
|
1530
|
+
* MUST contain at least one predicate.
|
|
1531
|
+
*/
|
|
521
1532
|
predicates: WhenPredicate[];
|
|
1533
|
+
/** Child nodes to conditionally show or hide based on the predicates. */
|
|
522
1534
|
children: Children[];
|
|
523
1535
|
}
|
|
1536
|
+
/** Styling properties for ZStack container layout. ZStack layers children on top of each other. */
|
|
524
1537
|
export interface ZStackContainerStylingProperties {
|
|
1538
|
+
/** Controls horizontal positioning of children within the ZStack. */
|
|
525
1539
|
justifyContent?: null | FlexPosition;
|
|
1540
|
+
/** Controls vertical positioning of children within the ZStack. */
|
|
526
1541
|
alignItems?: null | FlexPosition;
|
|
1542
|
+
/** Applies a box shadow effect around the container. */
|
|
527
1543
|
shadow?: null | Shadow;
|
|
1544
|
+
/** Controls whether content overflowing the container bounds is visible or hidden. */
|
|
528
1545
|
overflow?: null | Overflow;
|
|
1546
|
+
/** Applies a Gaussian blur effect. Value is the blur radius in platform units. */
|
|
529
1547
|
blur?: null | number;
|
|
530
1548
|
}
|
|
1549
|
+
/**
|
|
1550
|
+
* Available style categories for the ZStack element. Each optional field enables a specific
|
|
1551
|
+
* category of visual styling. Omit a field to leave that category unstyled.
|
|
1552
|
+
*/
|
|
531
1553
|
export interface ZStackStyle {
|
|
1554
|
+
/**
|
|
1555
|
+
* Layout properties for the ZStack container (alignment of stacked children).
|
|
1556
|
+
* MUST be used to control how children are positioned within the stack.
|
|
1557
|
+
*/
|
|
532
1558
|
container?: null | ZStackContainerStylingProperties;
|
|
1559
|
+
/**
|
|
1560
|
+
* Background color and image properties. Use to set a solid color, gradient, or image
|
|
1561
|
+
* behind the stacked content.
|
|
1562
|
+
*/
|
|
533
1563
|
background?: null | BackgroundStylingProperties;
|
|
1564
|
+
/**
|
|
1565
|
+
* Border radius, color, width and style properties. Use to add visible borders or
|
|
1566
|
+
* rounded corners to the ZStack.
|
|
1567
|
+
*/
|
|
534
1568
|
border?: null | BorderStylingProperties;
|
|
1569
|
+
/**
|
|
1570
|
+
* Width, height and rotation properties. Use to explicitly size the ZStack or apply
|
|
1571
|
+
* rotation transforms. Do NOT set width/height if the ZStack should size to its content.
|
|
1572
|
+
*/
|
|
535
1573
|
dimension?: null | DimensionStylingProperties;
|
|
1574
|
+
/**
|
|
1575
|
+
* Properties controlling this element's behaviour as a child of a flex container.
|
|
1576
|
+
* Use to set flex-grow, flex-shrink, flex-basis, and align-self.
|
|
1577
|
+
*/
|
|
536
1578
|
flexChild?: null | FlexChildStylingProperties;
|
|
1579
|
+
/** Padding, margin and offset properties. Use to add spacing inside or outside the ZStack. */
|
|
537
1580
|
spacing?: null | SpacingStylingProperties;
|
|
538
1581
|
}
|
|
1582
|
+
/**
|
|
1583
|
+
* Styleable elements of the ZStack node. The ZStack has a single styleable element: its own
|
|
1584
|
+
* container.
|
|
1585
|
+
*/
|
|
539
1586
|
export interface ZStackElements {
|
|
1587
|
+
/**
|
|
1588
|
+
* Style blocks for the ZStack container itself. The array represents breakpoint-specific
|
|
1589
|
+
* styles: first item is the default (no breakpoint), subsequent items correspond to
|
|
1590
|
+
* breakpoints in ascending order. MUST contain at least one item for the default style.
|
|
1591
|
+
*/
|
|
540
1592
|
own: BasicStateStylingBlock<ZStackStyle>[];
|
|
541
1593
|
}
|
|
1594
|
+
/**
|
|
1595
|
+
* A layered container that stacks children on top of each other along the z-axis. Later
|
|
1596
|
+
* children render on top of earlier ones. Use for overlapping content such as badges on
|
|
1597
|
+
* images, text overlays, or layered decorative elements. Do NOT use ZStack for simple
|
|
1598
|
+
* sequential layouts; use Row or Column instead.
|
|
1599
|
+
*/
|
|
542
1600
|
export interface ZStackModel<Children> {
|
|
1601
|
+
/**
|
|
1602
|
+
* Visual styles for this ZStack. See styling documentation for the structure. Omit to use
|
|
1603
|
+
* default (unstyled) rendering.
|
|
1604
|
+
*/
|
|
543
1605
|
styles?: null | LayoutStyle<ZStackElements>;
|
|
1606
|
+
/**
|
|
1607
|
+
* Child nodes stacked on top of each other within this ZStack. MUST contain at least one
|
|
1608
|
+
* child. Children are rendered in source order, with later children appearing on top of
|
|
1609
|
+
* earlier ones.
|
|
1610
|
+
*/
|
|
544
1611
|
children: Children[];
|
|
545
1612
|
}
|
|
546
1613
|
export type CloseButtonChildren = {
|
|
@@ -590,9 +1657,36 @@ export type CreativeResponseChildren = {
|
|
|
590
1657
|
type: "StaticIcon";
|
|
591
1658
|
node: StaticIconModel;
|
|
592
1659
|
};
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
1660
|
+
/**
|
|
1661
|
+
* Fit behaviour options for height.
|
|
1662
|
+
* Used as the 'value' inside a {"type": "fit", "value": ...} height specification.
|
|
1663
|
+
*/
|
|
1664
|
+
export type DimensionHeightFitValue =
|
|
1665
|
+
/** Shrinks to fit the content height. */
|
|
1666
|
+
"wrap-content"
|
|
1667
|
+
/** Expands to fill the available height. */
|
|
1668
|
+
| "fit-height";
|
|
1669
|
+
/**
|
|
1670
|
+
* Fit behaviour options for width.
|
|
1671
|
+
* Used as the 'value' inside a {"type": "fit", "value": ...} width specification.
|
|
1672
|
+
*/
|
|
1673
|
+
export type DimensionWidthFitValue =
|
|
1674
|
+
/** Shrinks to fit the content width. */
|
|
1675
|
+
"wrap-content"
|
|
1676
|
+
/** Expands to fill the available width. */
|
|
1677
|
+
| "fit-width";
|
|
1678
|
+
/** Controls how the layout is displayed on the page. */
|
|
1679
|
+
export type LayoutDisplayPreset =
|
|
1680
|
+
/** Layout covers the full viewport. */
|
|
1681
|
+
"FULLSCREEN"
|
|
1682
|
+
/** Layout is embedded inline within the page content. */
|
|
1683
|
+
| "EMBEDDED"
|
|
1684
|
+
/** Layout is attached/anchored to a specific position. */
|
|
1685
|
+
| "ATTACHED";
|
|
1686
|
+
/**
|
|
1687
|
+
* All node types supported in the web platform schema. This is the union type used by SDKs.
|
|
1688
|
+
* Layouts are authored using OuterLayoutSchemaModel or LayoutVariantSchemaModel instead.
|
|
1689
|
+
*/
|
|
596
1690
|
export type LayoutSchemaModel = {
|
|
597
1691
|
type: "Row";
|
|
598
1692
|
node: RowModel<LayoutSchemaModel>;
|
|
@@ -654,6 +1748,11 @@ export type LayoutSchemaModel = {
|
|
|
654
1748
|
type: "StaticIcon";
|
|
655
1749
|
node: StaticIconModel;
|
|
656
1750
|
};
|
|
1751
|
+
/**
|
|
1752
|
+
* Recursive child node types allowed within layout variant containers. Includes all layout
|
|
1753
|
+
* variant nodes such as layout, text, images, data-bound content, interactive triggers,
|
|
1754
|
+
* catalog components, and escape hatches.
|
|
1755
|
+
*/
|
|
657
1756
|
export type LayoutVariantChildren = {
|
|
658
1757
|
type: "Row";
|
|
659
1758
|
node: RowModel<LayoutVariantChildren>;
|
|
@@ -691,6 +1790,10 @@ export type LayoutVariantChildren = {
|
|
|
691
1790
|
type: "StaticIcon";
|
|
692
1791
|
node: StaticIconModel;
|
|
693
1792
|
};
|
|
1793
|
+
/**
|
|
1794
|
+
* Node types valid for use in layout variants (offer formats). Layout variants contain the
|
|
1795
|
+
* offer-specific creative content including images, text, response buttons, and catalog components.
|
|
1796
|
+
*/
|
|
694
1797
|
export type LayoutVariantSchemaModel = {
|
|
695
1798
|
type: "Row";
|
|
696
1799
|
node: RowModel<LayoutVariantChildren>;
|
|
@@ -728,6 +1831,10 @@ export type LayoutVariantSchemaModel = {
|
|
|
728
1831
|
type: "StaticIcon";
|
|
729
1832
|
node: StaticIconModel;
|
|
730
1833
|
};
|
|
1834
|
+
/**
|
|
1835
|
+
* Recursive child node types allowed within outer layout containers. Includes structural,
|
|
1836
|
+
* distribution, navigation, and presentational nodes scoped to outer layout predicates.
|
|
1837
|
+
*/
|
|
731
1838
|
export type OuterLayoutChildren = {
|
|
732
1839
|
type: "Row";
|
|
733
1840
|
node: RowModel<OuterLayoutChildren>;
|
|
@@ -777,6 +1884,11 @@ export type OuterLayoutChildren = {
|
|
|
777
1884
|
type: "StaticIcon";
|
|
778
1885
|
node: StaticIconModel;
|
|
779
1886
|
};
|
|
1887
|
+
/**
|
|
1888
|
+
* Node types valid for use in outer layouts. Outer layouts define the frame and offer
|
|
1889
|
+
* distribution but do not contain offer-specific content. They include structural containers,
|
|
1890
|
+
* distribution nodes, navigation controls, and close buttons.
|
|
1891
|
+
*/
|
|
780
1892
|
export type OuterLayoutSchemaModel = {
|
|
781
1893
|
type: "Row";
|
|
782
1894
|
node: RowModel<OuterLayoutChildren>;
|