@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,160 +1,484 @@
|
|
|
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
|
}
|
|
96
319
|
export type LayoutStyleTransition<Styles> = {
|
|
97
320
|
type: "Conditional";
|
|
98
321
|
transition: ConditionalStyleTransition<Styles>;
|
|
99
322
|
};
|
|
323
|
+
/** The top-level style object for a node. Contains element styling and optional conditional transitions. */
|
|
100
324
|
export interface LayoutStyle<ElementsStyles, TransitionsStyles> {
|
|
325
|
+
/** Defines the visual styles for each styleable element of this node. MUST contain at least an 'own' key with a styling block array. */
|
|
101
326
|
elements?: null | ElementsStyles;
|
|
102
327
|
transitions?: null | LayoutStyleTransition<TransitionsStyles>;
|
|
103
328
|
}
|
|
329
|
+
/** Transition definitions for the BasicText node. */
|
|
104
330
|
export interface BasicTextTransitions {
|
|
331
|
+
/** Transition properties for the primary element. */
|
|
105
332
|
own?: null | BasicTextStyle;
|
|
106
333
|
}
|
|
334
|
+
/** Renders a paragraph of plain text. Use for simple text content. For text with HTML formatting use RichText instead. */
|
|
107
335
|
export interface BasicTextModel {
|
|
336
|
+
/** Visual styles for the text element. */
|
|
108
337
|
styles?: null | LayoutStyle<BasicTextElements, BasicTextTransitions>;
|
|
338
|
+
/** The text content to display. Supports data binding placeholders in the format %^DATA.key^% for dynamic creative content. */
|
|
109
339
|
value: string;
|
|
110
340
|
}
|
|
111
|
-
|
|
341
|
+
/**
|
|
342
|
+
* The visual style of the border line.
|
|
343
|
+
* MUST be one of the supported values. Do NOT use CSS border-style strings directly.
|
|
344
|
+
*/
|
|
345
|
+
export type BorderStyle =
|
|
346
|
+
/** A solid continuous border line. */
|
|
347
|
+
"solid"
|
|
348
|
+
/** A dashed border line. */
|
|
349
|
+
| "dashed";
|
|
350
|
+
/**
|
|
351
|
+
* Border styling properties for elements.
|
|
352
|
+
* All fields are optional. Only include the properties you want to override.
|
|
353
|
+
*/
|
|
112
354
|
export interface BorderStylingProperties {
|
|
355
|
+
/** Corner radius in platform units (px on Web, pt on iOS, dp on Android). Applies uniformly to all corners. */
|
|
113
356
|
borderRadius?: null | number;
|
|
357
|
+
/** The border color. Uses themed values for light/dark mode support. */
|
|
114
358
|
borderColor?: null | ThemeColor;
|
|
359
|
+
/**
|
|
360
|
+
* Border width specified as a space-separated string of numeric values in platform units.
|
|
361
|
+
* Follows CSS shorthand: '2' for all sides, '2 4' for vertical/horizontal,
|
|
362
|
+
* '1 2 3 4' for top/right/bottom/left.
|
|
363
|
+
*/
|
|
115
364
|
borderWidth?: null | string;
|
|
365
|
+
/** The visual style of the border line (solid or dashed). */
|
|
116
366
|
borderStyle?: null | BorderStyle;
|
|
117
367
|
}
|
|
118
|
-
|
|
368
|
+
/**
|
|
369
|
+
* Condition operators for numeric/orderable comparisons. Use these to compare
|
|
370
|
+
* values that have a natural ordering (numbers, positions, breakpoints).
|
|
371
|
+
* Serialized as kebab-case strings: "is", "is-not", "is-below", "is-above".
|
|
372
|
+
*/
|
|
373
|
+
export type OrderableWhenCondition =
|
|
374
|
+
/** True when the value equals the specified value. */
|
|
375
|
+
"is"
|
|
376
|
+
/** True when the value does not equal the specified value. */
|
|
377
|
+
| "is-not"
|
|
378
|
+
/** True when the value is less than the specified value. */
|
|
379
|
+
| "is-below"
|
|
380
|
+
/** True when the value is greater than the specified value. */
|
|
381
|
+
| "is-above";
|
|
382
|
+
/**
|
|
383
|
+
* Tests the viewport width against a breakpoint value. Use for
|
|
384
|
+
* responsive layouts that adapt to different screen sizes. The value MUST
|
|
385
|
+
* be a string representation of a number in platform units.
|
|
386
|
+
*/
|
|
119
387
|
export interface BreakpointPredicate {
|
|
388
|
+
/** The comparison operator. Use "is-above" or "is-below" for responsive breakpoints. */
|
|
120
389
|
condition: OrderableWhenCondition;
|
|
390
|
+
/**
|
|
391
|
+
* The breakpoint width in platform units to compare against. MUST be a string
|
|
392
|
+
* representation of a number, e.g. "768".
|
|
393
|
+
*/
|
|
121
394
|
value: string;
|
|
122
395
|
}
|
|
396
|
+
/** A styling block with only a default state. Used for non-interactive elements. */
|
|
123
397
|
export interface StatelessStylingBlock<StyleProperties> {
|
|
398
|
+
/** The styles to apply. Always required. */
|
|
124
399
|
default: StyleProperties;
|
|
125
400
|
}
|
|
126
|
-
|
|
401
|
+
/** Position options within a flex context. */
|
|
402
|
+
export type FlexPosition =
|
|
403
|
+
/** Centers items along the main axis. */
|
|
404
|
+
"center"
|
|
405
|
+
/** Packs items toward the start of the main axis. */
|
|
406
|
+
| "flex-start"
|
|
407
|
+
/** Packs items toward the end of the main axis. */
|
|
408
|
+
| "flex-end";
|
|
409
|
+
/** Defines a box shadow effect. All offset and radius values are in platform units (px on Web, pt on iOS, dp on Android). */
|
|
127
410
|
export interface Shadow {
|
|
411
|
+
/** Horizontal offset of the shadow. Positive values move the shadow right. */
|
|
128
412
|
offsetX?: null | number;
|
|
413
|
+
/** Vertical offset of the shadow. Positive values move the shadow down. */
|
|
129
414
|
offsetY?: null | number;
|
|
415
|
+
/** The blur radius. Higher values create a more diffuse shadow. */
|
|
130
416
|
blurRadius?: null | number;
|
|
417
|
+
/** The spread radius. Positive values expand the shadow, negative values shrink it. */
|
|
131
418
|
spreadRadius?: null | number;
|
|
419
|
+
/** The shadow color. */
|
|
132
420
|
color: ThemeColor;
|
|
133
421
|
}
|
|
134
|
-
|
|
422
|
+
/** Controls visibility of content that overflows the container bounds. */
|
|
423
|
+
export type Overflow = "auto"
|
|
424
|
+
/** Content that overflows is clipped and not visible. */
|
|
425
|
+
| "hidden"
|
|
426
|
+
/** Content that overflows remains visible outside the container bounds. */
|
|
427
|
+
| "visible" | "scroll";
|
|
428
|
+
/** Styling properties for container layout behaviour. Only applicable to nodes that contain children. */
|
|
135
429
|
export interface ContainerStylingProperties {
|
|
430
|
+
/** Controls how children are distributed along the main axis. For a Row this is horizontal, for a Column this is vertical. */
|
|
136
431
|
justifyContent?: null | FlexPosition;
|
|
432
|
+
/** Controls how children are aligned along the cross axis. For a Row this is vertical, for a Column this is horizontal. */
|
|
137
433
|
alignItems?: null | FlexPosition;
|
|
434
|
+
/** Applies a box shadow effect around the container. */
|
|
138
435
|
shadow?: null | Shadow;
|
|
436
|
+
/** Controls whether content overflowing the container bounds is visible or hidden. */
|
|
139
437
|
overflow?: null | Overflow;
|
|
438
|
+
/** The gap in platform units between children in the container. */
|
|
140
439
|
gap?: null | number;
|
|
440
|
+
/** Applies a Gaussian blur effect. Value is the blur radius in platform units. */
|
|
141
441
|
blur?: null | number;
|
|
142
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* Visual style properties for the CarouselDistribution container.
|
|
445
|
+
* Contains the standard style categories: container layout, background colors,
|
|
446
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
447
|
+
*/
|
|
143
448
|
export interface CarouselDistributionStyles {
|
|
449
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
144
450
|
container?: null | ContainerStylingProperties;
|
|
451
|
+
/** Background color and gradient styles. */
|
|
145
452
|
background?: null | BackgroundStylingProperties;
|
|
453
|
+
/** Border width, color, and radius styles. */
|
|
146
454
|
border?: null | BorderStylingProperties;
|
|
455
|
+
/** Width and height dimension styles. */
|
|
147
456
|
dimension?: null | DimensionStylingProperties;
|
|
457
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
148
458
|
flexChild?: null | FlexChildStylingProperties;
|
|
459
|
+
/** Padding and margin spacing styles. */
|
|
149
460
|
spacing?: null | SpacingStylingProperties;
|
|
150
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
* Styling elements for the CarouselDistribution container.
|
|
464
|
+
* The `own` array contains stateless styling blocks applied to the carousel container itself.
|
|
465
|
+
*/
|
|
151
466
|
export interface CarouselDistributionElements {
|
|
467
|
+
/** Array of stateless styling blocks for the carousel container. */
|
|
152
468
|
own: StatelessStylingBlock<CarouselDistributionStyles>[];
|
|
153
469
|
}
|
|
154
|
-
|
|
470
|
+
/**
|
|
471
|
+
* The size of the peek-through area showing adjacent carousel items.
|
|
472
|
+
* Controls how much of the next/previous items are visible at the edges.
|
|
473
|
+
*/
|
|
474
|
+
export type PeekThroughSize =
|
|
475
|
+
/** A fixed size in platform units (px on Web, pt on iOS, dp on Android) for the peek-through area. */
|
|
476
|
+
{
|
|
155
477
|
type: "Fixed";
|
|
156
478
|
value: number;
|
|
157
|
-
}
|
|
479
|
+
}
|
|
480
|
+
/** A percentage-based size for the peek-through area, relative to the carousel width. */
|
|
481
|
+
| {
|
|
158
482
|
type: "Percentage";
|
|
159
483
|
value: number;
|
|
160
484
|
};
|
|
@@ -162,174 +486,489 @@ export interface CarouselSettings {
|
|
|
162
486
|
viewableItems: number[];
|
|
163
487
|
peekThroughSize: PeekThroughSize[];
|
|
164
488
|
}
|
|
489
|
+
/** Transition styles for animating CarouselDistribution style changes. */
|
|
165
490
|
export interface CarouselDistributionTransitions {
|
|
491
|
+
/** Transition properties for the carousel container's own styles. */
|
|
166
492
|
own?: null | CarouselDistributionStyles;
|
|
167
493
|
}
|
|
494
|
+
/**
|
|
495
|
+
* Presents offers in a horizontally scrollable carousel.
|
|
496
|
+
* Used EXCLUSIVELY in the Outer Layout. This is the container into which offers (Layout Variants) are rendered.
|
|
497
|
+
* Users can swipe left/right to browse offers.
|
|
498
|
+
*
|
|
499
|
+
* Use `viewableItems` to control how many items are visible at once per breakpoint.
|
|
500
|
+
* Use `peekThroughSize` to hint that more items exist by showing partial adjacent items.
|
|
501
|
+
*/
|
|
168
502
|
export interface CarouselDistributionModel {
|
|
169
503
|
settings: CarouselSettings;
|
|
504
|
+
/**
|
|
505
|
+
* Visual styles for the carousel container.
|
|
506
|
+
* Uses the LayoutStyle wrapper with conditional style transitions.
|
|
507
|
+
*/
|
|
170
508
|
styles?: null | LayoutStyle<CarouselDistributionElements, CarouselDistributionTransitions>;
|
|
171
509
|
}
|
|
510
|
+
/**
|
|
511
|
+
* Visual style properties for the CloseButton.
|
|
512
|
+
* Contains the standard style categories: container layout, background colors,
|
|
513
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
514
|
+
*/
|
|
172
515
|
export interface CloseButtonStyles {
|
|
516
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
173
517
|
container?: null | ContainerStylingProperties;
|
|
518
|
+
/** Background color and gradient styles. */
|
|
174
519
|
background?: null | BackgroundStylingProperties;
|
|
520
|
+
/** Border width, color, and radius styles. */
|
|
175
521
|
border?: null | BorderStylingProperties;
|
|
522
|
+
/** Width and height dimension styles. */
|
|
176
523
|
dimension?: null | DimensionStylingProperties;
|
|
524
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
177
525
|
flexChild?: null | FlexChildStylingProperties;
|
|
526
|
+
/** Padding and margin spacing styles. */
|
|
178
527
|
spacing?: null | SpacingStylingProperties;
|
|
179
528
|
}
|
|
529
|
+
/**
|
|
530
|
+
* Styling elements for the CloseButton.
|
|
531
|
+
* The `own` array contains state-dependent styling blocks (e.g. default, pressed)
|
|
532
|
+
* applied to the close button itself.
|
|
533
|
+
*/
|
|
180
534
|
export interface CloseButtonElements {
|
|
535
|
+
/**
|
|
536
|
+
* Array of state-dependent styling blocks for the close button.
|
|
537
|
+
* Each block targets a specific interaction state (default, pressed, etc.).
|
|
538
|
+
*/
|
|
181
539
|
own: BasicStateStylingBlock<CloseButtonStyles>[];
|
|
182
540
|
}
|
|
541
|
+
/**
|
|
542
|
+
* Transition styles for animating CloseButton style changes.
|
|
543
|
+
* Defines which style properties should animate when the button's conditional styles change.
|
|
544
|
+
*/
|
|
183
545
|
export interface CloseButtonTransitions {
|
|
546
|
+
/** Transition properties for the close button's own styles. */
|
|
184
547
|
own?: null | CloseButtonStyles;
|
|
185
548
|
}
|
|
549
|
+
/**
|
|
550
|
+
* A button that closes/dismisses the layout when clicked.
|
|
551
|
+
* Typically contains a StaticIcon with the 'Close' icon.
|
|
552
|
+
*
|
|
553
|
+
* MUST include child content (usually a StaticIcon with name `"Close"`).
|
|
554
|
+
* Do NOT use CreativeResponse for dismissal; use CloseButton instead so that
|
|
555
|
+
* the dismiss action is correctly tracked.
|
|
556
|
+
*/
|
|
186
557
|
export interface CloseButtonModel<Children> {
|
|
558
|
+
/** Visual styles for the close button. Uses the LayoutStyle wrapper with conditional style transitions. */
|
|
187
559
|
styles?: null | LayoutStyle<CloseButtonElements, CloseButtonTransitions>;
|
|
560
|
+
/**
|
|
561
|
+
* Child nodes forming the button content. Typically a StaticIcon with name `"Close"`.
|
|
562
|
+
* MUST contain at least one child to display the close icon or label.
|
|
563
|
+
*/
|
|
188
564
|
children: Children[];
|
|
565
|
+
/**
|
|
566
|
+
* Optional dismissal method configuration.
|
|
567
|
+
* Controls how the dismissal is reported for analytics purposes.
|
|
568
|
+
*/
|
|
189
569
|
dismissalMethod?: null | string;
|
|
190
570
|
}
|
|
571
|
+
/**
|
|
572
|
+
* Available style categories for the Column element. Each optional field enables a specific
|
|
573
|
+
* category of visual styling. Omit a field to leave that category unstyled.
|
|
574
|
+
*/
|
|
191
575
|
export interface ColumnStyle {
|
|
576
|
+
/**
|
|
577
|
+
* Layout properties for the flex container (justification, alignment, gap, overflow).
|
|
578
|
+
* MUST be used to control how children are arranged within the column.
|
|
579
|
+
*/
|
|
192
580
|
container?: null | ContainerStylingProperties;
|
|
581
|
+
/**
|
|
582
|
+
* Background color and image properties. Use to set a solid color, gradient, or image
|
|
583
|
+
* behind the column content.
|
|
584
|
+
*/
|
|
193
585
|
background?: null | BackgroundStylingProperties;
|
|
586
|
+
/**
|
|
587
|
+
* Border radius, color, width and style properties. Use to add visible borders or
|
|
588
|
+
* rounded corners to the column.
|
|
589
|
+
*/
|
|
194
590
|
border?: null | BorderStylingProperties;
|
|
591
|
+
/**
|
|
592
|
+
* Width, height and rotation properties. Use to explicitly size the column or apply
|
|
593
|
+
* rotation transforms. Do NOT set width/height if the column should size to its content.
|
|
594
|
+
*/
|
|
195
595
|
dimension?: null | DimensionStylingProperties;
|
|
596
|
+
/**
|
|
597
|
+
* Properties controlling this element's behaviour as a child of a flex container.
|
|
598
|
+
* Use to set flex-grow, flex-shrink, flex-basis, and align-self.
|
|
599
|
+
*/
|
|
196
600
|
flexChild?: null | FlexChildStylingProperties;
|
|
601
|
+
/** Padding, margin and offset properties. Use to add spacing inside or outside the column. */
|
|
197
602
|
spacing?: null | SpacingStylingProperties;
|
|
198
603
|
}
|
|
604
|
+
/**
|
|
605
|
+
* Styleable elements of the Column node. The Column has a single styleable element: its own
|
|
606
|
+
* container.
|
|
607
|
+
*/
|
|
199
608
|
export interface ColumnElements {
|
|
609
|
+
/**
|
|
610
|
+
* Style blocks for the column container itself. The array represents breakpoint-specific
|
|
611
|
+
* styles: first item is the default (no breakpoint), subsequent items correspond to
|
|
612
|
+
* breakpoints in ascending order. MUST contain at least one item for the default style.
|
|
613
|
+
*/
|
|
200
614
|
own: BasicStateStylingBlock<ColumnStyle>[];
|
|
201
615
|
}
|
|
616
|
+
/** Transition styles for the Column node. Use to animate style changes smoothly. */
|
|
202
617
|
export interface ColumnTransitions {
|
|
618
|
+
/**
|
|
619
|
+
* Transition properties for the column container. Specifies which style properties
|
|
620
|
+
* should animate and their duration/easing when values change.
|
|
621
|
+
*/
|
|
203
622
|
own?: null | ColumnStyle;
|
|
204
623
|
}
|
|
624
|
+
/**
|
|
625
|
+
* A vertical flex container that arranges its children in a column (top to bottom). Use for
|
|
626
|
+
* vertical layouts. Children are laid out along the vertical axis by default. To control
|
|
627
|
+
* alignment and distribution, configure the container styles. Do NOT nest Columns
|
|
628
|
+
* unnecessarily when a single Column with appropriate styling would suffice.
|
|
629
|
+
*/
|
|
205
630
|
export interface ColumnModel<Children> {
|
|
631
|
+
/**
|
|
632
|
+
* Visual styles for this column. See styling documentation for the structure. Omit to use
|
|
633
|
+
* default (unstyled) rendering.
|
|
634
|
+
*/
|
|
206
635
|
styles?: null | LayoutStyle<ColumnElements, ColumnTransitions>;
|
|
636
|
+
/**
|
|
637
|
+
* Child nodes rendered vertically within this column.
|
|
638
|
+
* Children are laid out top to bottom in source order.
|
|
639
|
+
*/
|
|
207
640
|
children: Children[];
|
|
208
641
|
}
|
|
209
|
-
|
|
642
|
+
/**
|
|
643
|
+
* All available predicate types for conditional rendering in the full layout
|
|
644
|
+
* schema. Used with the When node to conditionally show or hide children.
|
|
645
|
+
* Each predicate MUST include a "type" field to identify the predicate kind
|
|
646
|
+
* and a "predicate" field containing the predicate configuration.
|
|
647
|
+
*/
|
|
648
|
+
export type WhenPredicate =
|
|
649
|
+
/** Tests the viewport width against a breakpoint value. */
|
|
650
|
+
{
|
|
210
651
|
type: "Breakpoint";
|
|
211
652
|
predicate: BreakpointPredicate;
|
|
212
|
-
}
|
|
653
|
+
}
|
|
654
|
+
/** Tests the position index of the current item in a collection. */
|
|
655
|
+
| {
|
|
213
656
|
type: "Position";
|
|
214
657
|
predicate: PositionPredicate;
|
|
215
|
-
}
|
|
658
|
+
}
|
|
659
|
+
/** Tests which offer index is currently visible. */
|
|
660
|
+
| {
|
|
216
661
|
type: "Progression";
|
|
217
662
|
predicate: ProgressionPredicate;
|
|
218
|
-
}
|
|
663
|
+
}
|
|
664
|
+
/** Tests whether dark mode is active. */
|
|
665
|
+
| {
|
|
219
666
|
type: "DarkMode";
|
|
220
667
|
predicate: DarkModePredicate;
|
|
221
|
-
}
|
|
668
|
+
}
|
|
669
|
+
/** Tests whether a creative data attribute exists. */
|
|
670
|
+
| {
|
|
222
671
|
type: "CreativeCopy";
|
|
223
672
|
predicate: CreativeCopyPredicate;
|
|
224
|
-
}
|
|
673
|
+
}
|
|
674
|
+
/** Evaluates a hardcoded boolean value. */
|
|
675
|
+
| {
|
|
225
676
|
type: "StaticBoolean";
|
|
226
677
|
predicate: StaticBooleanPredicate;
|
|
227
|
-
}
|
|
678
|
+
}
|
|
679
|
+
/** Tests a custom state value set by state trigger nodes. */
|
|
680
|
+
| {
|
|
228
681
|
type: "CustomState";
|
|
229
682
|
predicate: CustomStatePredicate;
|
|
230
683
|
};
|
|
684
|
+
/** Defines a style transition that is applied when the specified predicates evaluate to true. */
|
|
231
685
|
export interface ConditionalStyleTransition<Styles> {
|
|
686
|
+
/** The list of conditions that must all be true for this transition to apply. */
|
|
232
687
|
predicates: WhenPredicate[];
|
|
688
|
+
/** The transition duration in milliseconds. */
|
|
233
689
|
duration: number;
|
|
690
|
+
/** The style properties to apply when all predicates are met. */
|
|
234
691
|
value: Styles;
|
|
235
692
|
}
|
|
236
|
-
|
|
693
|
+
/**
|
|
694
|
+
* Condition operators for checking whether a value exists. Use these to
|
|
695
|
+
* conditionally render content based on whether data is present.
|
|
696
|
+
* Serialized as kebab-case strings: "exists", "not-exists".
|
|
697
|
+
*/
|
|
698
|
+
export type ExistenceWhenCondition =
|
|
699
|
+
/** True when the value is present and non-empty. */
|
|
700
|
+
"exists"
|
|
701
|
+
/** True when the value is absent or empty. */
|
|
702
|
+
| "not-exists";
|
|
703
|
+
/**
|
|
704
|
+
* Tests whether a creative data attribute exists. Use to conditionally show
|
|
705
|
+
* content only when specific creative data is available. Do NOT use this for
|
|
706
|
+
* non-creative data checks.
|
|
707
|
+
*/
|
|
237
708
|
export interface CreativeCopyPredicate {
|
|
709
|
+
/** Whether to check for existence or non-existence of the creative attribute. */
|
|
238
710
|
condition: ExistenceWhenCondition;
|
|
711
|
+
/**
|
|
712
|
+
* The dot-notation path to the creative attribute, e.g.
|
|
713
|
+
* "creative.socialProof.number". MUST use dot notation to reference
|
|
714
|
+
* nested creative data fields.
|
|
715
|
+
*/
|
|
239
716
|
value: string;
|
|
240
717
|
}
|
|
718
|
+
/**
|
|
719
|
+
* Visual style properties for the CreativeResponse button.
|
|
720
|
+
* Contains the standard style categories: container layout, background colors,
|
|
721
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
722
|
+
*/
|
|
241
723
|
export interface CreativeResponseStyles {
|
|
724
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
242
725
|
container?: null | ContainerStylingProperties;
|
|
726
|
+
/** Background color and gradient styles. */
|
|
243
727
|
background?: null | BackgroundStylingProperties;
|
|
728
|
+
/** Border width, color, and radius styles. */
|
|
244
729
|
border?: null | BorderStylingProperties;
|
|
730
|
+
/** Width and height dimension styles. */
|
|
245
731
|
dimension?: null | DimensionStylingProperties;
|
|
732
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
246
733
|
flexChild?: null | FlexChildStylingProperties;
|
|
734
|
+
/** Padding and margin spacing styles. */
|
|
247
735
|
spacing?: null | SpacingStylingProperties;
|
|
248
736
|
}
|
|
737
|
+
/**
|
|
738
|
+
* Styling elements for the CreativeResponse button.
|
|
739
|
+
* The `own` array contains state-dependent styling blocks (e.g. default, pressed, disabled)
|
|
740
|
+
* applied to the button itself.
|
|
741
|
+
*/
|
|
249
742
|
export interface CreativeResponseElements {
|
|
743
|
+
/**
|
|
744
|
+
* Array of state-dependent styling blocks for the button.
|
|
745
|
+
* Each block targets a specific interaction state (default, pressed, disabled, etc.).
|
|
746
|
+
*/
|
|
250
747
|
own: BasicStateStylingBlock<CreativeResponseStyles>[];
|
|
251
748
|
}
|
|
749
|
+
/**
|
|
750
|
+
* Transition styles for animating CreativeResponse style changes.
|
|
751
|
+
* Defines which style properties should animate when the button's conditional styles change.
|
|
752
|
+
*/
|
|
252
753
|
export interface CreativeResponseTransitions {
|
|
754
|
+
/** Transition properties for the button's own styles. */
|
|
253
755
|
own?: null | CreativeResponseStyles;
|
|
254
756
|
}
|
|
255
|
-
|
|
757
|
+
/**
|
|
758
|
+
* Controls how links are opened when clicked. MUST be one of the valid
|
|
759
|
+
* kebab-case string values. Determines the navigation behavior when a
|
|
760
|
+
* user activates a link action.
|
|
761
|
+
*/
|
|
762
|
+
export type LinkOpenTarget =
|
|
763
|
+
/**
|
|
764
|
+
* Opens the link within the current context (in-app webview or same
|
|
765
|
+
* window). Use for links that should keep the user in the application.
|
|
766
|
+
*/
|
|
767
|
+
"internally"
|
|
768
|
+
/**
|
|
769
|
+
* Opens the link in the system browser. Use for external URLs that
|
|
770
|
+
* should leave the application context.
|
|
771
|
+
*/
|
|
772
|
+
| "externally";
|
|
773
|
+
/**
|
|
774
|
+
* A button that triggers a creative response (positive or negative).
|
|
775
|
+
* This is the primary call-to-action node for offer interactions.
|
|
776
|
+
* Children inside this node become the button content.
|
|
777
|
+
*
|
|
778
|
+
* MUST have a `responseKey` of either `"positive"` or `"negative"`.
|
|
779
|
+
* Use `"positive"` for accept/CTA buttons and `"negative"` for decline/dismiss buttons.
|
|
780
|
+
* Do NOT use this node for non-response actions like navigation; use StaticLink or ButtonStateTrigger instead.
|
|
781
|
+
*/
|
|
256
782
|
export interface CreativeResponseModel<Children> {
|
|
783
|
+
/**
|
|
784
|
+
* The response type. Use `"positive"` for accept/CTA buttons, `"negative"` for decline/dismiss buttons.
|
|
785
|
+
* Do NOT use arbitrary strings; only `"positive"` and `"negative"` are valid.
|
|
786
|
+
*/
|
|
257
787
|
responseKey: string;
|
|
788
|
+
/** Visual styles for the button. Uses the LayoutStyle wrapper with conditional style transitions. */
|
|
258
789
|
styles?: null | LayoutStyle<CreativeResponseElements, CreativeResponseTransitions>;
|
|
790
|
+
/**
|
|
791
|
+
* Controls how the response URL is opened when clicked.
|
|
792
|
+
* If omitted, the default link opening behaviour is used.
|
|
793
|
+
*/
|
|
259
794
|
openLinks?: null | LinkOpenTarget;
|
|
795
|
+
/**
|
|
796
|
+
* Child nodes that form the button's visible content.
|
|
797
|
+
* Typically contains a BasicText node with the CTA label.
|
|
798
|
+
* MUST contain at least one child to display button content.
|
|
799
|
+
*/
|
|
260
800
|
children: Children[];
|
|
261
801
|
}
|
|
802
|
+
/**
|
|
803
|
+
* Tests a custom state value. Custom states are set by state trigger nodes
|
|
804
|
+
* such as ButtonStateTrigger, ToggleButtonStateTrigger, and similar components.
|
|
805
|
+
* The value is an integer that represents the current state.
|
|
806
|
+
*/
|
|
262
807
|
export interface CustomStatePredicate {
|
|
808
|
+
/**
|
|
809
|
+
* The custom state key to check. MUST match the key used in the
|
|
810
|
+
* corresponding state trigger node.
|
|
811
|
+
*/
|
|
263
812
|
key: string;
|
|
813
|
+
/** The comparison operator. */
|
|
264
814
|
condition: OrderableWhenCondition;
|
|
815
|
+
/** The integer value to compare the custom state against. */
|
|
265
816
|
value: number;
|
|
266
817
|
}
|
|
267
|
-
|
|
818
|
+
/**
|
|
819
|
+
* Condition operators for equality comparisons. Use these when you only need
|
|
820
|
+
* to test if two values are equal or not equal.
|
|
821
|
+
* Serialized as kebab-case strings: "is", "is-not".
|
|
822
|
+
*/
|
|
823
|
+
export type EqualityWhenCondition =
|
|
824
|
+
/** True when the value equals the specified value. */
|
|
825
|
+
"is"
|
|
826
|
+
/** True when the value does not equal the specified value. */
|
|
827
|
+
| "is-not";
|
|
828
|
+
/**
|
|
829
|
+
* Tests whether dark mode is active. Use to provide different styling or
|
|
830
|
+
* content for light and dark modes.
|
|
831
|
+
*/
|
|
268
832
|
export interface DarkModePredicate {
|
|
833
|
+
/** Use "is" to check if dark mode matches the value, "is-not" for the inverse. */
|
|
269
834
|
condition: EqualityWhenCondition;
|
|
835
|
+
/**
|
|
836
|
+
* The boolean value to compare against. Set to true to test for dark mode,
|
|
837
|
+
* false to test for light mode.
|
|
838
|
+
*/
|
|
270
839
|
value: boolean;
|
|
271
840
|
}
|
|
841
|
+
/** Visual styles for the DataIcon node. */
|
|
272
842
|
export interface DataIconStyles {
|
|
843
|
+
/** Typography properties. */
|
|
273
844
|
text?: null | TextStylingProperties;
|
|
845
|
+
/** Width, height and rotation properties. */
|
|
274
846
|
dimension?: null | DimensionStylingProperties;
|
|
847
|
+
/** Properties controlling behaviour as a flex child. */
|
|
275
848
|
flexChild?: null | FlexChildStylingProperties;
|
|
849
|
+
/** Padding, margin and offset properties. */
|
|
276
850
|
spacing?: null | SpacingStylingProperties;
|
|
851
|
+
/** Background color and image properties. */
|
|
277
852
|
background?: null | BackgroundStylingProperties;
|
|
853
|
+
/** Border radius, color, width and style. */
|
|
278
854
|
border?: null | BorderStylingProperties;
|
|
279
855
|
}
|
|
856
|
+
/** Style elements for the DataIcon node. */
|
|
280
857
|
export interface DataIconElements {
|
|
858
|
+
/** Style blocks for the node's primary element. Array represents breakpoint-specific styles. */
|
|
281
859
|
own: BasicStateStylingBlock<DataIconStyles>[];
|
|
282
860
|
}
|
|
861
|
+
/** Transition definitions for the DataIcon node. */
|
|
283
862
|
export interface DataIconTransitions {
|
|
863
|
+
/** Transition properties for the primary element. */
|
|
284
864
|
own?: null | DataIconStyles;
|
|
285
865
|
}
|
|
866
|
+
/** Renders an icon from creative data. The icon is resolved from the creative object using the iconKey. */
|
|
286
867
|
export interface DataIconModel {
|
|
868
|
+
/** Visual styles for the icon. */
|
|
287
869
|
styles?: null | LayoutStyle<DataIconElements, DataIconTransitions>;
|
|
870
|
+
/** The key identifying which icon from the creative data to display. */
|
|
288
871
|
iconKey: string;
|
|
289
872
|
isImportantForAccessibility?: null | boolean;
|
|
290
873
|
}
|
|
874
|
+
/** Visual styles for the DataImage node. */
|
|
291
875
|
export interface DataImageStyles {
|
|
876
|
+
/** Background color and image properties. */
|
|
292
877
|
background?: null | BackgroundStylingProperties;
|
|
878
|
+
/** Border radius, color, width and style. */
|
|
293
879
|
border?: null | BorderStylingProperties;
|
|
880
|
+
/** Width, height and rotation properties. */
|
|
294
881
|
dimension?: null | DimensionStylingProperties;
|
|
882
|
+
/** Properties controlling behaviour as a flex child. */
|
|
295
883
|
flexChild?: null | FlexChildStylingProperties;
|
|
884
|
+
/** Padding, margin and offset properties. */
|
|
296
885
|
spacing?: null | SpacingStylingProperties;
|
|
297
886
|
}
|
|
887
|
+
/** Style elements for the DataImage node. */
|
|
298
888
|
export interface DataImageElements {
|
|
889
|
+
/** Style blocks for the node's primary element. Array represents breakpoint-specific styles. */
|
|
299
890
|
own: BasicStateStylingBlock<DataImageStyles>[];
|
|
300
891
|
}
|
|
892
|
+
/** Transition definitions for the DataImage node. */
|
|
301
893
|
export interface DataImageTransitions {
|
|
894
|
+
/** Transition properties for the primary element. */
|
|
302
895
|
own?: null | DataImageStyles;
|
|
303
896
|
}
|
|
897
|
+
/** Renders an image from creative data. The image URL is resolved from the creative object using the imageKey. Use for offer-specific images. */
|
|
304
898
|
export interface DataImageModel {
|
|
899
|
+
/** Visual styles for the image element. */
|
|
305
900
|
styles?: null | LayoutStyle<DataImageElements, DataImageTransitions>;
|
|
901
|
+
/** The key identifying which image from the creative data to display. */
|
|
306
902
|
imageKey: string;
|
|
307
903
|
isImportantForAccessibility?: null | boolean;
|
|
308
904
|
}
|
|
905
|
+
/** Settings for a bidirectional fade-in/fade-out transition. */
|
|
309
906
|
export interface FadeInOutTransitionSettings {
|
|
907
|
+
/**
|
|
908
|
+
* The transition duration in milliseconds. MUST be a positive integer.
|
|
909
|
+
* Common values: 200 for fast, 400 for medium, 1000 for slow.
|
|
910
|
+
*/
|
|
310
911
|
duration: number;
|
|
311
912
|
}
|
|
913
|
+
/** Settings for a fade-in (enter) transition. */
|
|
312
914
|
export interface FadeInTransitionSettings {
|
|
915
|
+
/**
|
|
916
|
+
* The transition duration in milliseconds. MUST be a positive integer.
|
|
917
|
+
* Common values: 200 for fast, 400 for medium, 1000 for slow.
|
|
918
|
+
*/
|
|
313
919
|
duration: number;
|
|
314
920
|
}
|
|
921
|
+
/** Settings for a fade-out (exit) transition. */
|
|
315
922
|
export interface FadeOutTransitionSettings {
|
|
923
|
+
/**
|
|
924
|
+
* The transition duration in milliseconds. MUST be a positive integer.
|
|
925
|
+
* Common values: 200 for fast, 400 for medium, 1000 for slow.
|
|
926
|
+
*/
|
|
316
927
|
duration: number;
|
|
317
928
|
}
|
|
929
|
+
/**
|
|
930
|
+
* Visual style properties for the GroupedDistribution container.
|
|
931
|
+
* Contains the standard style categories: container layout, background colors,
|
|
932
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
933
|
+
*/
|
|
318
934
|
export interface GroupedDistributionStyles {
|
|
935
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
319
936
|
container?: null | ContainerStylingProperties;
|
|
937
|
+
/** Background color and gradient styles. */
|
|
320
938
|
background?: null | BackgroundStylingProperties;
|
|
939
|
+
/** Border width, color, and radius styles. */
|
|
321
940
|
border?: null | BorderStylingProperties;
|
|
941
|
+
/** Width and height dimension styles. */
|
|
322
942
|
dimension?: null | DimensionStylingProperties;
|
|
943
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
323
944
|
flexChild?: null | FlexChildStylingProperties;
|
|
945
|
+
/** Padding and margin spacing styles. */
|
|
324
946
|
spacing?: null | SpacingStylingProperties;
|
|
325
947
|
}
|
|
948
|
+
/**
|
|
949
|
+
* Styling elements for the GroupedDistribution container.
|
|
950
|
+
* The `own` array contains stateless styling blocks applied to the grouped container itself.
|
|
951
|
+
*/
|
|
326
952
|
export interface GroupedDistributionElements {
|
|
953
|
+
/** Array of stateless styling blocks for the grouped container. */
|
|
327
954
|
own: StatelessStylingBlock<GroupedDistributionStyles>[];
|
|
328
955
|
}
|
|
956
|
+
/** Transition styles for animating GroupedDistribution style changes. */
|
|
329
957
|
export interface GroupedDistributionTransitions {
|
|
958
|
+
/** Transition properties for the grouped container's own styles. */
|
|
330
959
|
own?: null | GroupedDistributionStyles;
|
|
331
960
|
}
|
|
332
|
-
|
|
961
|
+
/**
|
|
962
|
+
* A bidirectional transition that applies both when showing and hiding an
|
|
963
|
+
* element. MUST be an object with a "type" field and a "settings" field.
|
|
964
|
+
* Currently only "FadeInOut" is supported.
|
|
965
|
+
*/
|
|
966
|
+
export type Transition =
|
|
967
|
+
/**
|
|
968
|
+
* A fade-in/fade-out transition. The element fades in when shown and
|
|
969
|
+
* fades out when hidden, using the specified duration.
|
|
970
|
+
*/
|
|
971
|
+
{
|
|
333
972
|
type: "FadeInOut";
|
|
334
973
|
settings: FadeInOutTransitionSettings;
|
|
335
974
|
};
|
|
@@ -337,358 +976,970 @@ export interface GroupedSettings {
|
|
|
337
976
|
viewableItems: number[];
|
|
338
977
|
transition: Transition;
|
|
339
978
|
}
|
|
979
|
+
/**
|
|
980
|
+
* Presents offers in groups, progressing through groups sequentially.
|
|
981
|
+
* Used EXCLUSIVELY in the Outer Layout. This is the container into which offers (Layout Variants) are rendered.
|
|
982
|
+
* Each group shows a fixed number of offers at once, and the user advances through groups.
|
|
983
|
+
*
|
|
984
|
+
* Pair with ProgressControl nodes for group navigation.
|
|
985
|
+
* Use `viewableItems` to control how many offers appear per group at each breakpoint.
|
|
986
|
+
*/
|
|
340
987
|
export interface GroupedDistributionModel {
|
|
988
|
+
/**
|
|
989
|
+
* Visual styles for the grouped container.
|
|
990
|
+
* Uses the LayoutStyle wrapper with conditional style transitions.
|
|
991
|
+
*/
|
|
341
992
|
styles?: null | LayoutStyle<GroupedDistributionElements, GroupedDistributionTransitions>;
|
|
342
993
|
settings: GroupedSettings;
|
|
343
994
|
}
|
|
995
|
+
/**
|
|
996
|
+
* Typography styling for inline text elements. A subset of TextStylingProperties
|
|
997
|
+
* without line-level controls (lineHeight, horizontalTextAlign, lineLimit).
|
|
998
|
+
* All fields are optional. Only include the properties you want to override.
|
|
999
|
+
*/
|
|
344
1000
|
export interface InlineTextStylingProperties {
|
|
1001
|
+
/** The text color. Uses themed values for light/dark mode support. */
|
|
345
1002
|
textColor?: null | ThemeColor;
|
|
1003
|
+
/** Font size in platform units (px on Web, pt on iOS, dp on Android). */
|
|
346
1004
|
fontSize?: null | number;
|
|
1005
|
+
/** The font family name. Use 'rokt-icons' for icon fonts. */
|
|
347
1006
|
fontFamily?: null | string;
|
|
1007
|
+
/** The weight (boldness) of the font. */
|
|
348
1008
|
fontWeight?: null | FontWeight;
|
|
1009
|
+
/** Vertical alignment of text relative to the baseline. */
|
|
349
1010
|
baselineTextAlign?: null | FontBaselineAlignment;
|
|
1011
|
+
/** Normal or italic text rendering. */
|
|
350
1012
|
fontStyle?: null | FontStyle;
|
|
1013
|
+
/** Controls automatic text capitalisation. */
|
|
351
1014
|
textTransform?: null | TextTransform;
|
|
1015
|
+
/** Additional spacing between characters in platform units. */
|
|
352
1016
|
letterSpacing?: null | number;
|
|
1017
|
+
/** Decorative line applied to text (underline, strikethrough). */
|
|
353
1018
|
textDecoration?: null | TextDecoration;
|
|
354
1019
|
}
|
|
1020
|
+
/** Inline text styling for elements like links within rich text. */
|
|
355
1021
|
export interface InLineTextStyle {
|
|
1022
|
+
/** Typography properties for the inline text element. */
|
|
356
1023
|
text: InlineTextStylingProperties;
|
|
357
1024
|
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Visual style properties for individual indicator items (dots, bars, etc.).
|
|
1027
|
+
* Includes text styling for number-based indicators.
|
|
1028
|
+
*/
|
|
358
1029
|
export interface IndicatorStyles {
|
|
1030
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
359
1031
|
container?: null | ContainerStylingProperties;
|
|
1032
|
+
/** Background color and gradient styles. */
|
|
360
1033
|
background?: null | BackgroundStylingProperties;
|
|
1034
|
+
/** Border width, color, and radius styles. */
|
|
361
1035
|
border?: null | BorderStylingProperties;
|
|
1036
|
+
/** Width and height dimension styles. */
|
|
362
1037
|
dimension?: null | DimensionStylingProperties;
|
|
1038
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
363
1039
|
flexChild?: null | FlexChildStylingProperties;
|
|
1040
|
+
/** Padding and margin spacing styles. */
|
|
364
1041
|
spacing?: null | SpacingStylingProperties;
|
|
1042
|
+
/** Text styling for number-based indicators. */
|
|
365
1043
|
text?: null | TextStylingProperties;
|
|
366
1044
|
}
|
|
1045
|
+
/** Platform-specific settings for the layout behaviour. */
|
|
367
1046
|
export interface LayoutSettings {
|
|
1047
|
+
/** Whether to automatically close the layout after the user completes the interaction flow. */
|
|
368
1048
|
closeOnComplete?: null | boolean;
|
|
369
1049
|
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Visual style properties for the OneByOneDistribution container.
|
|
1052
|
+
* Contains the standard style categories: container layout, background colors,
|
|
1053
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
1054
|
+
*/
|
|
370
1055
|
export interface OneByOneDistributionStyles {
|
|
1056
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
371
1057
|
container?: null | ContainerStylingProperties;
|
|
1058
|
+
/** Background color and gradient styles. */
|
|
372
1059
|
background?: null | BackgroundStylingProperties;
|
|
1060
|
+
/** Border width, color, and radius styles. */
|
|
373
1061
|
border?: null | BorderStylingProperties;
|
|
1062
|
+
/** Width and height dimension styles. */
|
|
374
1063
|
dimension?: null | DimensionStylingProperties;
|
|
1064
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
375
1065
|
flexChild?: null | FlexChildStylingProperties;
|
|
1066
|
+
/** Padding and margin spacing styles. */
|
|
376
1067
|
spacing?: null | SpacingStylingProperties;
|
|
377
1068
|
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Styling elements for the OneByOneDistribution container.
|
|
1071
|
+
* The `own` array contains stateless styling blocks applied to the distribution container itself.
|
|
1072
|
+
*/
|
|
378
1073
|
export interface OneByOneDistributionElements {
|
|
1074
|
+
/** Array of stateless styling blocks for the distribution container. */
|
|
379
1075
|
own: StatelessStylingBlock<OneByOneDistributionStyles>[];
|
|
380
1076
|
}
|
|
1077
|
+
/** Transition styles for animating OneByOneDistribution style changes. */
|
|
381
1078
|
export interface OneByOneDistributionTransitions {
|
|
1079
|
+
/** Transition properties for the distribution container's own styles. */
|
|
382
1080
|
own?: null | OneByOneDistributionStyles;
|
|
383
1081
|
}
|
|
1082
|
+
/**
|
|
1083
|
+
* Presents offers one at a time, allowing the user to progress through them sequentially.
|
|
1084
|
+
* Used EXCLUSIVELY in the Outer Layout. This is the container into which offers (Layout Variants) are rendered.
|
|
1085
|
+
*
|
|
1086
|
+
* Pair with ProgressControl nodes to enable forward/backward navigation between offers.
|
|
1087
|
+
* Pair with ProgressIndicator to show the user's current position.
|
|
1088
|
+
* Do NOT use this for displaying all offers at once; use StackedDistribution instead.
|
|
1089
|
+
*/
|
|
384
1090
|
export interface OneByOneDistributionModel {
|
|
1091
|
+
/**
|
|
1092
|
+
* Visual styles for the distribution container.
|
|
1093
|
+
* Uses the LayoutStyle wrapper with conditional style transitions.
|
|
1094
|
+
*/
|
|
385
1095
|
styles?: null | LayoutStyle<OneByOneDistributionElements, OneByOneDistributionTransitions>;
|
|
1096
|
+
/**
|
|
1097
|
+
* The animation transition between offers.
|
|
1098
|
+
* Defines how the current offer exits and the next offer enters.
|
|
1099
|
+
*/
|
|
386
1100
|
transition: Transition;
|
|
387
1101
|
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Available style categories for the Overlay content element. Each optional field enables a
|
|
1104
|
+
* specific category of visual styling. Omit a field to leave that category unstyled.
|
|
1105
|
+
*/
|
|
388
1106
|
export interface OverlayStyles {
|
|
1107
|
+
/**
|
|
1108
|
+
* Layout properties for the flex container (justification, alignment, gap, overflow).
|
|
1109
|
+
* MUST be used to control how children are arranged within the overlay content area.
|
|
1110
|
+
*/
|
|
389
1111
|
container?: null | ContainerStylingProperties;
|
|
1112
|
+
/**
|
|
1113
|
+
* Background color and image properties. Use to set a solid color, gradient, or image
|
|
1114
|
+
* behind the overlay content.
|
|
1115
|
+
*/
|
|
390
1116
|
background?: null | BackgroundStylingProperties;
|
|
1117
|
+
/**
|
|
1118
|
+
* Border radius, color, width and style properties. Use to add visible borders or
|
|
1119
|
+
* rounded corners to the overlay content area.
|
|
1120
|
+
*/
|
|
391
1121
|
border?: null | BorderStylingProperties;
|
|
1122
|
+
/**
|
|
1123
|
+
* Width, height and rotation properties. Use to explicitly size the overlay content area.
|
|
1124
|
+
* Do NOT set width/height if the overlay should size to its content.
|
|
1125
|
+
*/
|
|
392
1126
|
dimension?: null | DimensionStylingProperties;
|
|
1127
|
+
/**
|
|
1128
|
+
* Properties controlling this element's behaviour as a child of a flex container.
|
|
1129
|
+
* Use to set flex-grow, flex-shrink, flex-basis, and align-self.
|
|
1130
|
+
*/
|
|
393
1131
|
flexChild?: null | FlexChildStylingProperties;
|
|
1132
|
+
/**
|
|
1133
|
+
* Padding, margin and offset properties. Use to add spacing inside or outside the
|
|
1134
|
+
* overlay content area.
|
|
1135
|
+
*/
|
|
394
1136
|
spacing?: null | SpacingStylingProperties;
|
|
395
1137
|
}
|
|
1138
|
+
/**
|
|
1139
|
+
* Style categories for the Overlay wrapper (backdrop) element. Controls the appearance of
|
|
1140
|
+
* the area behind the overlay content.
|
|
1141
|
+
*/
|
|
396
1142
|
export interface OverlayWrapperStyles {
|
|
1143
|
+
/** Layout properties for the wrapper container that positions the overlay content. */
|
|
397
1144
|
container?: null | ContainerStylingProperties;
|
|
1145
|
+
/**
|
|
1146
|
+
* Background color for the backdrop. Typically a semi-transparent color (using `#AARRGGBB`
|
|
1147
|
+
* format, e.g. `#80000000`) to dim the content behind the overlay.
|
|
1148
|
+
*/
|
|
398
1149
|
background?: null | BackgroundStylingProperties;
|
|
399
1150
|
}
|
|
1151
|
+
/**
|
|
1152
|
+
* Styleable elements of the Overlay node. The Overlay has two styleable elements: its own
|
|
1153
|
+
* content area and its wrapper (backdrop).
|
|
1154
|
+
*/
|
|
400
1155
|
export interface OverlayElements {
|
|
1156
|
+
/**
|
|
1157
|
+
* Style blocks for the overlay content area. The array represents breakpoint-specific
|
|
1158
|
+
* styles: first item is the default (no breakpoint), subsequent items correspond to
|
|
1159
|
+
* breakpoints in ascending order. MUST contain at least one item for the default style.
|
|
1160
|
+
*/
|
|
401
1161
|
own: BasicStateStylingBlock<OverlayStyles>[];
|
|
1162
|
+
/**
|
|
1163
|
+
* Style blocks for the overlay wrapper (backdrop). The array represents
|
|
1164
|
+
* breakpoint-specific styles: first item is the default, subsequent items correspond
|
|
1165
|
+
* to breakpoints in ascending order.
|
|
1166
|
+
*/
|
|
402
1167
|
wrapper: BasicStateStylingBlock<OverlayWrapperStyles>[];
|
|
403
1168
|
}
|
|
404
1169
|
export interface OverlaySettings {
|
|
405
1170
|
allowBackdropToClose: boolean;
|
|
406
1171
|
}
|
|
1172
|
+
/** Transition styles for the Overlay node. Use to animate style changes smoothly. */
|
|
407
1173
|
export interface OverlayTransitions {
|
|
1174
|
+
/**
|
|
1175
|
+
* Transition properties for the overlay content area. Specifies which style properties
|
|
1176
|
+
* should animate and their duration/easing when values change.
|
|
1177
|
+
*/
|
|
408
1178
|
own?: null | OverlayStyles;
|
|
1179
|
+
/** Transition properties for the overlay wrapper (backdrop). */
|
|
409
1180
|
wrapper?: null | OverlayWrapperStyles;
|
|
410
1181
|
}
|
|
1182
|
+
/**
|
|
1183
|
+
* A modal overlay that appears on top of the main content with a backdrop. Use for dialogs,
|
|
1184
|
+
* confirmations, and modal interactions that require user attention. The overlay blocks
|
|
1185
|
+
* interaction with the content behind it. Do NOT use Overlay for inline content layering;
|
|
1186
|
+
* use ZStack instead.
|
|
1187
|
+
*/
|
|
411
1188
|
export interface OverlayModel<Children> {
|
|
412
1189
|
settings: OverlaySettings;
|
|
1190
|
+
/**
|
|
1191
|
+
* Visual styles for this overlay. See styling documentation for the structure. Omit to
|
|
1192
|
+
* use default (unstyled) rendering.
|
|
1193
|
+
*/
|
|
413
1194
|
styles?: null | LayoutStyle<OverlayElements, OverlayTransitions>;
|
|
1195
|
+
/** The content displayed within the overlay. */
|
|
414
1196
|
children: Children[];
|
|
415
1197
|
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Tests the position index of the current item within a collection. Use to
|
|
1200
|
+
* style items differently based on their position (e.g. first item, last item).
|
|
1201
|
+
*/
|
|
416
1202
|
export interface PositionPredicate {
|
|
1203
|
+
/** The comparison operator. */
|
|
417
1204
|
condition: OrderableWhenCondition;
|
|
1205
|
+
/**
|
|
1206
|
+
* The position index to compare against. MUST be a string representation
|
|
1207
|
+
* of a number, e.g. "0" for the first item.
|
|
1208
|
+
*/
|
|
418
1209
|
value: string;
|
|
419
1210
|
}
|
|
1211
|
+
/**
|
|
1212
|
+
* Visual style properties for the ProgressControl button.
|
|
1213
|
+
* Contains the standard style categories: container layout, background colors,
|
|
1214
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
1215
|
+
*/
|
|
420
1216
|
export interface ProgressControlStyle {
|
|
1217
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
421
1218
|
container?: null | ContainerStylingProperties;
|
|
1219
|
+
/** Background color and gradient styles. */
|
|
422
1220
|
background?: null | BackgroundStylingProperties;
|
|
1221
|
+
/** Border width, color, and radius styles. */
|
|
423
1222
|
border?: null | BorderStylingProperties;
|
|
1223
|
+
/** Width and height dimension styles. */
|
|
424
1224
|
dimension?: null | DimensionStylingProperties;
|
|
1225
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
425
1226
|
flexChild?: null | FlexChildStylingProperties;
|
|
1227
|
+
/** Padding and margin spacing styles. */
|
|
426
1228
|
spacing?: null | SpacingStylingProperties;
|
|
427
1229
|
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Styling elements for the ProgressControl button.
|
|
1232
|
+
* The `own` array contains state-dependent styling blocks (e.g. default, pressed, disabled)
|
|
1233
|
+
* applied to the control button itself.
|
|
1234
|
+
*/
|
|
428
1235
|
export interface ProgressControlElements {
|
|
1236
|
+
/**
|
|
1237
|
+
* Array of state-dependent styling blocks for the control button.
|
|
1238
|
+
* Each block targets a specific interaction state (default, pressed, disabled, etc.).
|
|
1239
|
+
*/
|
|
429
1240
|
own: BasicStateStylingBlock<ProgressControlStyle>[];
|
|
430
1241
|
}
|
|
1242
|
+
/** Transition styles for animating ProgressControl style changes. */
|
|
431
1243
|
export interface ProgressControlTransitions {
|
|
1244
|
+
/** Transition properties for the control button's own styles. */
|
|
432
1245
|
own?: null | ProgressControlStyle;
|
|
433
1246
|
}
|
|
434
|
-
|
|
1247
|
+
/** The direction in which the progress control advances offers. */
|
|
1248
|
+
export type ProgressionDirection =
|
|
1249
|
+
/** Advance to the next offer or group. */
|
|
1250
|
+
"Forward"
|
|
1251
|
+
/** Return to the previous offer or group. */
|
|
1252
|
+
| "Backward";
|
|
1253
|
+
/**
|
|
1254
|
+
* A button that advances or reverses offer progression.
|
|
1255
|
+
* Used with OneByOneDistribution or GroupedDistribution for navigation.
|
|
1256
|
+
*
|
|
1257
|
+
* MUST specify a `direction` (Forward or Backward).
|
|
1258
|
+
* Pair with a distribution node for the control to have an effect.
|
|
1259
|
+
* Typically contains an arrow icon as child content.
|
|
1260
|
+
*/
|
|
435
1261
|
export interface ProgressControlModel<Children> {
|
|
1262
|
+
/** Visual styles for the control. Uses the LayoutStyle wrapper with conditional style transitions. */
|
|
436
1263
|
styles?: null | LayoutStyle<ProgressControlElements, ProgressControlTransitions>;
|
|
1264
|
+
/** The direction to progress. MUST be either Forward or Backward. */
|
|
437
1265
|
direction: ProgressionDirection;
|
|
1266
|
+
/**
|
|
1267
|
+
* Child nodes forming the button content (e.g. an arrow icon).
|
|
1268
|
+
* MUST contain at least one child for the control to have visible content.
|
|
1269
|
+
*/
|
|
438
1270
|
children: Children[];
|
|
439
1271
|
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Visual style properties for the ProgressIndicator container.
|
|
1274
|
+
* Contains the standard style categories for the outer indicator wrapper.
|
|
1275
|
+
*/
|
|
440
1276
|
export interface ProgressIndicatorStyles {
|
|
1277
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
441
1278
|
container?: null | ContainerStylingProperties;
|
|
1279
|
+
/** Background color and gradient styles. */
|
|
442
1280
|
background?: null | BackgroundStylingProperties;
|
|
1281
|
+
/** Border width, color, and radius styles. */
|
|
443
1282
|
border?: null | BorderStylingProperties;
|
|
1283
|
+
/** Width and height dimension styles. */
|
|
444
1284
|
dimension?: null | DimensionStylingProperties;
|
|
1285
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
445
1286
|
flexChild?: null | FlexChildStylingProperties;
|
|
1287
|
+
/** Padding and margin spacing styles. */
|
|
446
1288
|
spacing?: null | SpacingStylingProperties;
|
|
447
1289
|
}
|
|
1290
|
+
/**
|
|
1291
|
+
* Styling elements for the ProgressIndicator.
|
|
1292
|
+
* Contains styling blocks for the container, individual indicators, and special indicator states.
|
|
1293
|
+
*/
|
|
448
1294
|
export interface ProgressIndicatorElements {
|
|
1295
|
+
/** Array of state-dependent styling blocks for the indicator container. */
|
|
449
1296
|
own: BasicStateStylingBlock<ProgressIndicatorStyles>[];
|
|
1297
|
+
/** Styling blocks for each individual indicator item (default state). */
|
|
450
1298
|
indicator: BasicStateStylingBlock<IndicatorStyles>[];
|
|
1299
|
+
/**
|
|
1300
|
+
* Optional styling blocks for the currently active indicator.
|
|
1301
|
+
* If omitted, the default indicator styling is used.
|
|
1302
|
+
*/
|
|
451
1303
|
activeIndicator?: null | BasicStateStylingBlock<IndicatorStyles>[];
|
|
1304
|
+
/**
|
|
1305
|
+
* Optional styling blocks for indicators that have been seen/visited.
|
|
1306
|
+
* If omitted, the default indicator styling is used.
|
|
1307
|
+
*/
|
|
452
1308
|
seenIndicator?: null | BasicStateStylingBlock<IndicatorStyles>[];
|
|
453
1309
|
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Transition styles for animating ProgressIndicator style changes.
|
|
1312
|
+
* Defines transitions for the container and each indicator state.
|
|
1313
|
+
*/
|
|
454
1314
|
export interface ProgressIndicatorTransitions {
|
|
1315
|
+
/** Transition properties for the indicator container's own styles. */
|
|
455
1316
|
own?: null | ProgressIndicatorStyles;
|
|
1317
|
+
/** Transition properties for the default indicator styles. */
|
|
456
1318
|
indicator?: null | IndicatorStyles;
|
|
1319
|
+
/** Transition properties for the active indicator styles. */
|
|
457
1320
|
activeIndicator?: null | IndicatorStyles;
|
|
1321
|
+
/** Transition properties for the seen indicator styles. */
|
|
458
1322
|
seenIndicator?: null | IndicatorStyles;
|
|
459
1323
|
}
|
|
460
1324
|
export interface ProgressIndicatorSettings {
|
|
461
1325
|
startPosition?: null | number;
|
|
462
1326
|
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Displays visual progress indicators (dots, bars) showing the user's position
|
|
1329
|
+
* within a series of offers.
|
|
1330
|
+
*
|
|
1331
|
+
* MUST be paired with a distribution node (OneByOneDistribution, GroupedDistribution, etc.)
|
|
1332
|
+
* to track position. The indicator automatically reflects the current offer position.
|
|
1333
|
+
* Use `indicator` to specify the type (e.g. "dot", "bar", "number").
|
|
1334
|
+
*/
|
|
463
1335
|
export interface ProgressIndicatorModel {
|
|
1336
|
+
/**
|
|
1337
|
+
* Visual styles for the progress indicators.
|
|
1338
|
+
* Uses the LayoutStyle wrapper with conditional style transitions.
|
|
1339
|
+
*/
|
|
464
1340
|
styles?: null | LayoutStyle<ProgressIndicatorElements, ProgressIndicatorTransitions>;
|
|
1341
|
+
/**
|
|
1342
|
+
* The type of indicator to display (e.g. "dot", "bar", "number").
|
|
1343
|
+
* MUST be a valid indicator type string.
|
|
1344
|
+
*/
|
|
465
1345
|
indicator: string;
|
|
466
1346
|
settings?: null | ProgressIndicatorSettings;
|
|
467
1347
|
isImportantForAccessibility?: null | boolean;
|
|
468
1348
|
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Tests which offer index is currently visible in a carousel or progression.
|
|
1351
|
+
* Use 0 for the first offer, -1 for the last offer.
|
|
1352
|
+
*/
|
|
469
1353
|
export interface ProgressionPredicate {
|
|
1354
|
+
/** The comparison operator. */
|
|
470
1355
|
condition: OrderableWhenCondition;
|
|
1356
|
+
/**
|
|
1357
|
+
* The progression index to compare against. MUST be a string representation
|
|
1358
|
+
* of a number. Use "0" for the first offer, "-1" for the last offer.
|
|
1359
|
+
*/
|
|
471
1360
|
value: string;
|
|
472
1361
|
}
|
|
1362
|
+
/** Visual styles for the RichText node. */
|
|
473
1363
|
export interface RichTextStyle {
|
|
1364
|
+
/** Width, height and rotation properties. */
|
|
474
1365
|
dimension?: null | DimensionStylingProperties;
|
|
1366
|
+
/** Properties controlling behaviour as a flex child. */
|
|
475
1367
|
flexChild?: null | FlexChildStylingProperties;
|
|
1368
|
+
/** Padding, margin and offset properties. */
|
|
476
1369
|
spacing?: null | SpacingStylingProperties;
|
|
1370
|
+
/** Background color and image properties. */
|
|
477
1371
|
background?: null | BackgroundStylingProperties;
|
|
1372
|
+
/** Typography properties. */
|
|
478
1373
|
text?: null | TextStylingProperties;
|
|
479
1374
|
}
|
|
1375
|
+
/** Style elements for the RichText node. */
|
|
480
1376
|
export interface RichTextElements {
|
|
1377
|
+
/** Style blocks for the node's primary element. Array represents breakpoint-specific styles. */
|
|
481
1378
|
own: BasicStateStylingBlock<RichTextStyle>[];
|
|
1379
|
+
/** Style blocks for link elements within the rich text content. */
|
|
482
1380
|
link?: null | BasicStateStylingBlock<InLineTextStyle>[];
|
|
483
1381
|
}
|
|
1382
|
+
/** Transition definitions for the RichText node. */
|
|
484
1383
|
export interface RichTextTransitions {
|
|
1384
|
+
/** Transition properties for the primary element. */
|
|
485
1385
|
own?: null | RichTextStyle;
|
|
1386
|
+
/** Transition properties for link elements. */
|
|
486
1387
|
link?: null | InLineTextStyle;
|
|
487
1388
|
}
|
|
1389
|
+
/** Renders HTML-formatted text content. Supports `<a>`, `<strong>`, `<em>`, `<br>` and other inline HTML elements. Use BasicText for plain text without HTML. */
|
|
488
1390
|
export interface RichTextModel {
|
|
1391
|
+
/** Visual styles for the text element. */
|
|
489
1392
|
styles?: null | LayoutStyle<RichTextElements, RichTextTransitions>;
|
|
1393
|
+
/** Controls how links within the rich text are opened when clicked. */
|
|
490
1394
|
openLinks?: null | LinkOpenTarget;
|
|
1395
|
+
/** The HTML text content to display. Supports inline HTML tags and data binding placeholders in the format %^DATA.key^% or %^ATTRIBUTE.key^%. */
|
|
491
1396
|
value: string;
|
|
492
1397
|
}
|
|
1398
|
+
/**
|
|
1399
|
+
* The top-level schema structure for an outer layout. Contains the layout tree,
|
|
1400
|
+
* breakpoint definitions, settings and display configuration.
|
|
1401
|
+
*/
|
|
493
1402
|
export interface RootSchemaModel<Layout, Display, Settings> {
|
|
1403
|
+
/**
|
|
1404
|
+
* Map of breakpoint names to viewport width thresholds in platform units.
|
|
1405
|
+
* Defines responsive breakpoints for the layout.
|
|
1406
|
+
*/
|
|
494
1407
|
breakpoints: Record<string, number>;
|
|
1408
|
+
/** The root node of the layout tree. */
|
|
495
1409
|
layout: Layout;
|
|
1410
|
+
/** Platform-specific layout settings. */
|
|
496
1411
|
settings?: null | Settings;
|
|
1412
|
+
/** Controls how the layout is displayed (fullscreen, embedded, etc). */
|
|
497
1413
|
display?: null | Display;
|
|
498
1414
|
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Available style categories for the Row element. Each optional field enables a specific
|
|
1417
|
+
* category of visual styling. Omit a field to leave that category unstyled.
|
|
1418
|
+
*/
|
|
499
1419
|
export interface RowStyle {
|
|
1420
|
+
/**
|
|
1421
|
+
* Layout properties for the flex container (justification, alignment, gap, overflow).
|
|
1422
|
+
* MUST be used to control how children are arranged within the row.
|
|
1423
|
+
*/
|
|
500
1424
|
container?: null | ContainerStylingProperties;
|
|
1425
|
+
/**
|
|
1426
|
+
* Background color and image properties. Use to set a solid color, gradient, or image
|
|
1427
|
+
* behind the row content.
|
|
1428
|
+
*/
|
|
501
1429
|
background?: null | BackgroundStylingProperties;
|
|
1430
|
+
/**
|
|
1431
|
+
* Border radius, color, width and style properties. Use to add visible borders or
|
|
1432
|
+
* rounded corners to the row.
|
|
1433
|
+
*/
|
|
502
1434
|
border?: null | BorderStylingProperties;
|
|
1435
|
+
/**
|
|
1436
|
+
* Width, height and rotation properties. Use to explicitly size the row or apply rotation
|
|
1437
|
+
* transforms. Do NOT set width/height if the row should size to its content.
|
|
1438
|
+
*/
|
|
503
1439
|
dimension?: null | DimensionStylingProperties;
|
|
1440
|
+
/**
|
|
1441
|
+
* Properties controlling this element's behaviour as a child of a flex container.
|
|
1442
|
+
* Use to set flex-grow, flex-shrink, flex-basis, and align-self.
|
|
1443
|
+
*/
|
|
504
1444
|
flexChild?: null | FlexChildStylingProperties;
|
|
1445
|
+
/** Padding, margin and offset properties. Use to add spacing inside or outside the row. */
|
|
505
1446
|
spacing?: null | SpacingStylingProperties;
|
|
506
1447
|
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Styleable elements of the Row node. The Row has a single styleable element: its own
|
|
1450
|
+
* container.
|
|
1451
|
+
*/
|
|
507
1452
|
export interface RowElements {
|
|
1453
|
+
/**
|
|
1454
|
+
* Style blocks for the row container itself. The array represents breakpoint-specific
|
|
1455
|
+
* styles: first item is the default (no breakpoint), subsequent items correspond to
|
|
1456
|
+
* breakpoints in ascending order. MUST contain at least one item for the default style.
|
|
1457
|
+
*/
|
|
508
1458
|
own: BasicStateStylingBlock<RowStyle>[];
|
|
509
1459
|
}
|
|
1460
|
+
/** Transition styles for the Row node. Use to animate style changes smoothly. */
|
|
510
1461
|
export interface RowTransitions {
|
|
1462
|
+
/**
|
|
1463
|
+
* Transition properties for the row container. Specifies which style properties
|
|
1464
|
+
* should animate and their duration/easing when values change.
|
|
1465
|
+
*/
|
|
511
1466
|
own?: null | RowStyle;
|
|
512
1467
|
}
|
|
1468
|
+
/**
|
|
1469
|
+
* A horizontal flex container that arranges its children in a row (left to right). Use for
|
|
1470
|
+
* horizontal layouts. Children are laid out along the horizontal axis by default. To control
|
|
1471
|
+
* alignment and distribution, configure the container styles. Do NOT nest Rows unnecessarily
|
|
1472
|
+
* when a single Row with appropriate styling would suffice.
|
|
1473
|
+
*/
|
|
513
1474
|
export interface RowModel<Children> {
|
|
1475
|
+
/**
|
|
1476
|
+
* Visual styles for this row. See styling documentation for the structure. Omit to use
|
|
1477
|
+
* default (unstyled) rendering.
|
|
1478
|
+
*/
|
|
514
1479
|
styles?: null | LayoutStyle<RowElements, RowTransitions>;
|
|
1480
|
+
/**
|
|
1481
|
+
* Child nodes rendered horizontally within this row.
|
|
1482
|
+
* Children are laid out left to right in source order.
|
|
1483
|
+
*/
|
|
515
1484
|
children: Children[];
|
|
516
1485
|
}
|
|
1486
|
+
/**
|
|
1487
|
+
* Visual style properties for the SlideStateTrigger container.
|
|
1488
|
+
* Contains the standard style categories for the slider's outer container.
|
|
1489
|
+
*/
|
|
517
1490
|
export interface SlideStateTriggerOwnStyles {
|
|
1491
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
518
1492
|
container?: null | ContainerStylingProperties;
|
|
1493
|
+
/** Background color and gradient styles. */
|
|
519
1494
|
background?: null | BackgroundStylingProperties;
|
|
1495
|
+
/** Border width, color, and radius styles. */
|
|
520
1496
|
border?: null | BorderStylingProperties;
|
|
1497
|
+
/** Width and height dimension styles. */
|
|
521
1498
|
dimension?: null | DimensionStylingProperties;
|
|
1499
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
522
1500
|
flexChild?: null | FlexChildStylingProperties;
|
|
1501
|
+
/** Padding and margin spacing styles. */
|
|
523
1502
|
spacing?: null | SpacingStylingProperties;
|
|
524
1503
|
}
|
|
1504
|
+
/** Visual style properties for the slider thumb (the draggable handle). */
|
|
525
1505
|
export interface SlideStateTriggerThumbStyles {
|
|
1506
|
+
/** Text styling for the thumb label. */
|
|
526
1507
|
text?: null | TextStylingProperties;
|
|
1508
|
+
/** Background color and gradient styles for the thumb. */
|
|
527
1509
|
background?: null | BackgroundStylingProperties;
|
|
1510
|
+
/** Border width, color, and radius styles for the thumb. */
|
|
528
1511
|
border?: null | BorderStylingProperties;
|
|
1512
|
+
/** Width and height dimension styles for the thumb. */
|
|
529
1513
|
dimension?: null | DimensionStylingProperties;
|
|
1514
|
+
/** Flex child sizing and alignment styles for the thumb. */
|
|
530
1515
|
flexChild?: null | FlexChildStylingProperties;
|
|
1516
|
+
/** Padding and margin spacing styles for the thumb. */
|
|
531
1517
|
spacing?: null | SpacingStylingProperties;
|
|
532
1518
|
}
|
|
1519
|
+
/** Visual style properties for the slider label. */
|
|
533
1520
|
export interface SlideStateTriggerLabelStyles {
|
|
1521
|
+
/** Text styling for the label. */
|
|
534
1522
|
text?: null | TextStylingProperties;
|
|
1523
|
+
/** Padding and margin spacing styles for the label. */
|
|
535
1524
|
spacing?: null | SpacingStylingProperties;
|
|
536
1525
|
}
|
|
1526
|
+
/** Visual style properties for the slider fill (the filled portion of the track). */
|
|
537
1527
|
export interface SlideStateTriggerFillStyles {
|
|
1528
|
+
/** Background color and gradient styles for the fill. */
|
|
538
1529
|
background?: null | BackgroundStylingProperties;
|
|
1530
|
+
/** Border width, color, and radius styles for the fill. */
|
|
539
1531
|
border?: null | BorderStylingProperties;
|
|
540
1532
|
}
|
|
1533
|
+
/**
|
|
1534
|
+
* Styling elements for the SlideStateTrigger.
|
|
1535
|
+
* Contains styling blocks for the container, thumb, label, and fill sub-elements.
|
|
1536
|
+
*/
|
|
541
1537
|
export interface SlideStateTriggerElements {
|
|
1538
|
+
/** Array of stateless styling blocks for the slider container. */
|
|
542
1539
|
own: StatelessStylingBlock<SlideStateTriggerOwnStyles>[];
|
|
1540
|
+
/** Optional styling blocks for the slider thumb (draggable handle). */
|
|
543
1541
|
thumb?: null | StatelessStylingBlock<SlideStateTriggerThumbStyles>[];
|
|
1542
|
+
/** Optional styling blocks for the slider label. */
|
|
544
1543
|
label?: null | StatelessStylingBlock<SlideStateTriggerLabelStyles>[];
|
|
1544
|
+
/** Optional styling blocks for the slider fill (filled track portion). */
|
|
545
1545
|
fill?: null | StatelessStylingBlock<SlideStateTriggerFillStyles>[];
|
|
546
1546
|
}
|
|
1547
|
+
/** Configuration for the slider label. */
|
|
547
1548
|
export interface SlideStateTriggerLabel {
|
|
1549
|
+
/** Optional text value to display as the slider label. */
|
|
548
1550
|
value?: null | string;
|
|
549
1551
|
}
|
|
1552
|
+
/**
|
|
1553
|
+
* Transition styles for animating SlideStateTrigger style changes.
|
|
1554
|
+
* Defines transitions for all slider sub-elements.
|
|
1555
|
+
*/
|
|
550
1556
|
export interface SlideStateTriggerTransitions {
|
|
1557
|
+
/** Transition properties for the slider container's own styles. */
|
|
551
1558
|
own?: null | SlideStateTriggerOwnStyles;
|
|
1559
|
+
/** Transition properties for the thumb styles. */
|
|
552
1560
|
thumb?: null | SlideStateTriggerThumbStyles;
|
|
1561
|
+
/** Transition properties for the label styles. */
|
|
553
1562
|
label?: null | SlideStateTriggerLabelStyles;
|
|
1563
|
+
/** Transition properties for the fill styles. */
|
|
554
1564
|
fill?: null | SlideStateTriggerFillStyles;
|
|
555
1565
|
}
|
|
1566
|
+
/** Configuration for the slider thumb (draggable handle). */
|
|
556
1567
|
export interface SlideStateTriggerThumb {
|
|
1568
|
+
/** Optional icon name to display inside the thumb. */
|
|
557
1569
|
icon?: null | string;
|
|
558
1570
|
}
|
|
1571
|
+
/**
|
|
1572
|
+
* A slider control that updates a custom state value as the user drags.
|
|
1573
|
+
* The slider thumb can be dragged to set the state to a value proportional to the position.
|
|
1574
|
+
* Use with When nodes to conditionally show/hide content based on the slider state.
|
|
1575
|
+
*
|
|
1576
|
+
* MUST provide a `customStateKey` that matches the key in When predicates.
|
|
1577
|
+
* Optionally provide `customStateValue` to set the slider's initial position.
|
|
1578
|
+
*/
|
|
559
1579
|
export interface SlideStateTriggerModel {
|
|
1580
|
+
/** Visual styles for the slider. Uses the LayoutStyle wrapper with conditional style transitions. */
|
|
560
1581
|
styles?: null | LayoutStyle<SlideStateTriggerElements, SlideStateTriggerTransitions>;
|
|
1582
|
+
/** Configuration for the slider thumb (draggable handle). */
|
|
561
1583
|
thumb?: null | SlideStateTriggerThumb;
|
|
1584
|
+
/** Configuration for the slider label. */
|
|
562
1585
|
label?: null | SlideStateTriggerLabel;
|
|
1586
|
+
/**
|
|
1587
|
+
* The custom state key to update as the slider is dragged.
|
|
1588
|
+
* MUST match the key referenced in When node predicates.
|
|
1589
|
+
*/
|
|
563
1590
|
customStateKey: string;
|
|
1591
|
+
/**
|
|
1592
|
+
* The initial value of the custom state (slider position).
|
|
1593
|
+
* If omitted, defaults to the minimum position.
|
|
1594
|
+
*/
|
|
564
1595
|
customStateValue?: null | number;
|
|
565
1596
|
}
|
|
1597
|
+
/**
|
|
1598
|
+
* Visual style properties for the StackedDistribution container.
|
|
1599
|
+
* Contains the standard style categories: container layout, background colors,
|
|
1600
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
1601
|
+
*/
|
|
566
1602
|
export interface StackedDistributionStyles {
|
|
1603
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
567
1604
|
container?: null | ContainerStylingProperties;
|
|
1605
|
+
/** Background color and gradient styles. */
|
|
568
1606
|
background?: null | BackgroundStylingProperties;
|
|
1607
|
+
/** Border width, color, and radius styles. */
|
|
569
1608
|
border?: null | BorderStylingProperties;
|
|
1609
|
+
/** Width and height dimension styles. */
|
|
570
1610
|
dimension?: null | DimensionStylingProperties;
|
|
1611
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
571
1612
|
flexChild?: null | FlexChildStylingProperties;
|
|
1613
|
+
/** Padding and margin spacing styles. */
|
|
572
1614
|
spacing?: null | SpacingStylingProperties;
|
|
573
1615
|
}
|
|
1616
|
+
/**
|
|
1617
|
+
* Styling elements for the StackedDistribution container.
|
|
1618
|
+
* The `own` array contains stateless styling blocks applied to the stacked container itself.
|
|
1619
|
+
*/
|
|
574
1620
|
export interface StackedDistributionElements {
|
|
1621
|
+
/** Array of stateless styling blocks for the stacked container. */
|
|
575
1622
|
own: StatelessStylingBlock<StackedDistributionStyles>[];
|
|
576
1623
|
}
|
|
1624
|
+
/** Transition styles for animating StackedDistribution style changes. */
|
|
577
1625
|
export interface StackedDistributionTransitions {
|
|
1626
|
+
/** Transition properties for the stacked container's own styles. */
|
|
578
1627
|
own?: null | StackedDistributionStyles;
|
|
579
1628
|
}
|
|
1629
|
+
/**
|
|
1630
|
+
* Presents multiple offers stacked vertically, all visible at once.
|
|
1631
|
+
* Used EXCLUSIVELY in the Outer Layout. This is the container into which offers (Layout Variants) are rendered.
|
|
1632
|
+
*
|
|
1633
|
+
* Use this when all offers should be visible simultaneously.
|
|
1634
|
+
* Do NOT use this for sequential one-at-a-time presentation; use OneByOneDistribution instead.
|
|
1635
|
+
*/
|
|
580
1636
|
export interface StackedDistributionModel {
|
|
1637
|
+
/**
|
|
1638
|
+
* Visual styles for the stacked container.
|
|
1639
|
+
* Uses the LayoutStyle wrapper with conditional style transitions.
|
|
1640
|
+
*/
|
|
581
1641
|
styles?: null | LayoutStyle<StackedDistributionElements, StackedDistributionTransitions>;
|
|
582
1642
|
}
|
|
583
|
-
|
|
1643
|
+
/**
|
|
1644
|
+
* Condition operators for boolean values. Use these to test boolean flags.
|
|
1645
|
+
* Serialized as kebab-case strings: "is-true", "is-false".
|
|
1646
|
+
*/
|
|
1647
|
+
export type BooleanWhenCondition =
|
|
1648
|
+
/** True when the value is true. */
|
|
1649
|
+
"is-true"
|
|
1650
|
+
/** True when the value is false. */
|
|
1651
|
+
| "is-false";
|
|
1652
|
+
/**
|
|
1653
|
+
* A predicate with a hardcoded boolean value. Useful for enabling or disabling
|
|
1654
|
+
* sections during development or for static feature flags.
|
|
1655
|
+
*/
|
|
584
1656
|
export interface StaticBooleanPredicate {
|
|
1657
|
+
/** The boolean condition. Use "is-true" or "is-false". */
|
|
585
1658
|
condition: BooleanWhenCondition;
|
|
1659
|
+
/** The static boolean value to evaluate against the condition. */
|
|
586
1660
|
value: boolean;
|
|
587
1661
|
}
|
|
1662
|
+
/** Visual styles for the StaticIcon node. MUST include text styles with fontFamily set to 'rokt-icons' to render correctly. */
|
|
588
1663
|
export interface StaticIconStyles {
|
|
1664
|
+
/** Typography properties. MUST include fontFamily set to 'rokt-icons' for the icon to render correctly. */
|
|
589
1665
|
text?: null | TextStylingProperties;
|
|
1666
|
+
/** Width, height and rotation properties. */
|
|
590
1667
|
dimension?: null | DimensionStylingProperties;
|
|
1668
|
+
/** Properties controlling behaviour as a flex child. */
|
|
591
1669
|
flexChild?: null | FlexChildStylingProperties;
|
|
1670
|
+
/** Padding, margin and offset properties. */
|
|
592
1671
|
spacing?: null | SpacingStylingProperties;
|
|
1672
|
+
/** Background color and image properties. */
|
|
593
1673
|
background?: null | BackgroundStylingProperties;
|
|
1674
|
+
/** Border radius, color, width and style. */
|
|
594
1675
|
border?: null | BorderStylingProperties;
|
|
595
1676
|
}
|
|
1677
|
+
/** Style elements for the StaticIcon node. */
|
|
596
1678
|
export interface StaticIconElements {
|
|
1679
|
+
/** Style blocks for the node's primary element. Array represents breakpoint-specific styles. */
|
|
597
1680
|
own: BasicStateStylingBlock<StaticIconStyles>[];
|
|
598
1681
|
}
|
|
1682
|
+
/** Transition definitions for the StaticIcon node. */
|
|
599
1683
|
export interface StaticIconTransitions {
|
|
1684
|
+
/** Transition properties for the primary element. */
|
|
600
1685
|
own?: null | StaticIconStyles;
|
|
601
1686
|
}
|
|
1687
|
+
/** Renders an SVG icon from the Rokt icon font. The icon is selected by name from the available icon set. */
|
|
602
1688
|
export interface StaticIconModel {
|
|
1689
|
+
/** Visual styles for the icon. MUST include text styles with fontFamily set to 'rokt-icons' to render correctly. */
|
|
603
1690
|
styles?: null | LayoutStyle<StaticIconElements, StaticIconTransitions>;
|
|
1691
|
+
/** 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. */
|
|
604
1692
|
name: string;
|
|
1693
|
+
/** Accessibility description of the icon for screen readers. */
|
|
605
1694
|
description?: null | string;
|
|
606
1695
|
isImportantForAccessibility?: null | boolean;
|
|
607
1696
|
}
|
|
1697
|
+
/** Visual styles for the StaticImage node. */
|
|
608
1698
|
export interface StaticImageStyles {
|
|
1699
|
+
/** Background color and image properties. */
|
|
609
1700
|
background?: null | BackgroundStylingProperties;
|
|
1701
|
+
/** Border radius, color, width and style. */
|
|
610
1702
|
border?: null | BorderStylingProperties;
|
|
1703
|
+
/** Width, height and rotation properties. */
|
|
611
1704
|
dimension?: null | DimensionStylingProperties;
|
|
1705
|
+
/** Properties controlling behaviour as a flex child. */
|
|
612
1706
|
flexChild?: null | FlexChildStylingProperties;
|
|
1707
|
+
/** Padding, margin and offset properties. */
|
|
613
1708
|
spacing?: null | SpacingStylingProperties;
|
|
614
1709
|
}
|
|
1710
|
+
/** Style elements for the StaticImage node. */
|
|
615
1711
|
export interface StaticImageElements {
|
|
1712
|
+
/** Style blocks for the node's primary element. Array represents breakpoint-specific styles. */
|
|
616
1713
|
own: BasicStateStylingBlock<StaticImageStyles>[];
|
|
617
1714
|
}
|
|
1715
|
+
/** Transition definitions for the StaticImage node. */
|
|
618
1716
|
export interface StaticImageTransitions {
|
|
1717
|
+
/** Transition properties for the primary element. */
|
|
619
1718
|
own?: null | StaticImageStyles;
|
|
620
1719
|
}
|
|
1720
|
+
/** URL configuration for a static image with themed light/dark mode support. */
|
|
621
1721
|
export interface StaticImageUrl {
|
|
1722
|
+
/** The image URL for light mode. MUST be a valid URL. */
|
|
622
1723
|
light: string;
|
|
1724
|
+
/** The image URL for dark mode. If not provided, the light URL is used for both modes. */
|
|
623
1725
|
dark?: null | string;
|
|
624
1726
|
}
|
|
1727
|
+
/** Renders a static image from a provided URL. Use for images with known URLs (logos, icons, decorative images). */
|
|
625
1728
|
export interface StaticImageModel {
|
|
1729
|
+
/** Visual styles for the image element. */
|
|
626
1730
|
styles?: null | LayoutStyle<StaticImageElements, StaticImageTransitions>;
|
|
1731
|
+
/** Alt text for accessibility. Describes the image for screen readers. */
|
|
627
1732
|
alt?: null | string;
|
|
1733
|
+
/** Title text shown on hover. */
|
|
628
1734
|
title?: null | string;
|
|
1735
|
+
/** The image URL with themed light/dark mode support. */
|
|
629
1736
|
url: StaticImageUrl;
|
|
630
1737
|
isImportantForAccessibility?: null | boolean;
|
|
631
1738
|
}
|
|
1739
|
+
/**
|
|
1740
|
+
* Visual style properties for the StaticLink.
|
|
1741
|
+
* Contains the standard style categories: container layout, background colors,
|
|
1742
|
+
* border appearance, dimensions, flex child positioning, and spacing.
|
|
1743
|
+
*/
|
|
632
1744
|
export interface StaticLinkStyles {
|
|
1745
|
+
/** Container layout styles (e.g. flex direction, alignment). */
|
|
633
1746
|
container?: null | ContainerStylingProperties;
|
|
1747
|
+
/** Background color and gradient styles. */
|
|
634
1748
|
background?: null | BackgroundStylingProperties;
|
|
1749
|
+
/** Border width, color, and radius styles. */
|
|
635
1750
|
border?: null | BorderStylingProperties;
|
|
1751
|
+
/** Width and height dimension styles. */
|
|
636
1752
|
dimension?: null | DimensionStylingProperties;
|
|
1753
|
+
/** Flex child sizing and alignment styles (grow, shrink, align-self). */
|
|
637
1754
|
flexChild?: null | FlexChildStylingProperties;
|
|
1755
|
+
/** Padding and margin spacing styles. */
|
|
638
1756
|
spacing?: null | SpacingStylingProperties;
|
|
639
1757
|
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Styling elements for the StaticLink.
|
|
1760
|
+
* The `own` array contains state-dependent styling blocks (e.g. default, pressed)
|
|
1761
|
+
* applied to the link itself.
|
|
1762
|
+
*/
|
|
640
1763
|
export interface StaticLinkElements {
|
|
1764
|
+
/**
|
|
1765
|
+
* Array of state-dependent styling blocks for the link.
|
|
1766
|
+
* Each block targets a specific interaction state (default, pressed, etc.).
|
|
1767
|
+
*/
|
|
641
1768
|
own: BasicStateStylingBlock<StaticLinkStyles>[];
|
|
642
1769
|
}
|
|
1770
|
+
/**
|
|
1771
|
+
* Transition styles for animating StaticLink style changes.
|
|
1772
|
+
* Defines which style properties should animate when the link's conditional styles change.
|
|
1773
|
+
*/
|
|
643
1774
|
export interface StaticLinkTransitions {
|
|
1775
|
+
/** Transition properties for the link's own styles. */
|
|
644
1776
|
own?: null | StaticLinkStyles;
|
|
645
1777
|
}
|
|
1778
|
+
/**
|
|
1779
|
+
* A clickable link that wraps its children. Opens the specified URL when clicked.
|
|
1780
|
+
*
|
|
1781
|
+
* Use this node for navigation to external URLs. Do NOT use CreativeResponse for link navigation;
|
|
1782
|
+
* CreativeResponse is for offer accept/decline actions only.
|
|
1783
|
+
* The `src` field MUST be a valid URL string.
|
|
1784
|
+
*/
|
|
646
1785
|
export interface StaticLinkModel<Children> {
|
|
1786
|
+
/**
|
|
1787
|
+
* The destination URL to open when the link is clicked.
|
|
1788
|
+
* MUST be a valid URL string (e.g. "https://example.com").
|
|
1789
|
+
*/
|
|
647
1790
|
src: string;
|
|
1791
|
+
/** Controls how the link URL is opened (e.g. in-app browser, external browser). */
|
|
648
1792
|
open: LinkOpenTarget;
|
|
1793
|
+
/** Visual styles for the link. Uses the LayoutStyle wrapper with conditional style transitions. */
|
|
649
1794
|
styles?: null | LayoutStyle<StaticLinkElements, StaticLinkTransitions>;
|
|
1795
|
+
/**
|
|
1796
|
+
* Child nodes that form the clickable link content.
|
|
1797
|
+
* MUST contain at least one child for the link to have visible, tappable content.
|
|
1798
|
+
*/
|
|
650
1799
|
children: Children[];
|
|
651
1800
|
}
|
|
652
|
-
|
|
1801
|
+
/**
|
|
1802
|
+
* A transition that applies only when an element enters (becomes visible).
|
|
1803
|
+
* MUST be an object with a "type" field and a "settings" field.
|
|
1804
|
+
* Currently only "FadeIn" is supported.
|
|
1805
|
+
*/
|
|
1806
|
+
export type InTransition =
|
|
1807
|
+
/**
|
|
1808
|
+
* A fade-in transition. The element gradually becomes visible over the
|
|
1809
|
+
* specified duration.
|
|
1810
|
+
*/
|
|
1811
|
+
{
|
|
653
1812
|
type: "FadeIn";
|
|
654
1813
|
settings: FadeInTransitionSettings;
|
|
655
1814
|
};
|
|
656
|
-
|
|
1815
|
+
/**
|
|
1816
|
+
* A transition that applies only when an element exits (becomes hidden).
|
|
1817
|
+
* MUST be an object with a "type" field and a "settings" field.
|
|
1818
|
+
* Currently only "FadeOut" is supported.
|
|
1819
|
+
*/
|
|
1820
|
+
export type OutTransition =
|
|
1821
|
+
/**
|
|
1822
|
+
* A fade-out transition. The element gradually becomes invisible over
|
|
1823
|
+
* the specified duration.
|
|
1824
|
+
*/
|
|
1825
|
+
{
|
|
657
1826
|
type: "FadeOut";
|
|
658
1827
|
settings: FadeOutTransitionSettings;
|
|
659
1828
|
};
|
|
1829
|
+
/**
|
|
1830
|
+
* Transition configuration for when visibility changes.
|
|
1831
|
+
* Defines enter and exit animations for the When node's children.
|
|
1832
|
+
*/
|
|
660
1833
|
export interface WhenTransition {
|
|
661
1834
|
in?: null | InTransition[];
|
|
662
1835
|
out?: null | OutTransition[];
|
|
663
1836
|
}
|
|
1837
|
+
/**
|
|
1838
|
+
* Conditional rendering node. Shows or hides its children based on predicate conditions.
|
|
1839
|
+
* All predicates MUST evaluate to true for children to be shown (AND logic).
|
|
1840
|
+
*
|
|
1841
|
+
* Use this node to conditionally display content based on custom state, offer count, or other
|
|
1842
|
+
* predicate conditions. Do NOT nest When nodes unnecessarily; combine predicates in a single
|
|
1843
|
+
* When node instead.
|
|
1844
|
+
*/
|
|
664
1845
|
export interface WhenModel<Children> {
|
|
1846
|
+
/**
|
|
1847
|
+
* Array of conditions that MUST ALL be true for children to render.
|
|
1848
|
+
* Uses AND logic: if any predicate is false, children are hidden.
|
|
1849
|
+
* MUST contain at least one predicate.
|
|
1850
|
+
*/
|
|
665
1851
|
predicates: WhenPredicate[];
|
|
1852
|
+
/** Child nodes to conditionally show or hide based on the predicates. */
|
|
666
1853
|
children: Children[];
|
|
1854
|
+
/**
|
|
1855
|
+
* Optional transition animation configuration for when visibility changes.
|
|
1856
|
+
* Controls how children animate in and out when predicates change.
|
|
1857
|
+
*/
|
|
667
1858
|
transition?: null | WhenTransition;
|
|
668
1859
|
}
|
|
1860
|
+
/** Styling properties for ZStack container layout. ZStack layers children on top of each other. */
|
|
669
1861
|
export interface ZStackContainerStylingProperties {
|
|
1862
|
+
/** Controls horizontal positioning of children within the ZStack. */
|
|
670
1863
|
justifyContent?: null | FlexPosition;
|
|
1864
|
+
/** Controls vertical positioning of children within the ZStack. */
|
|
671
1865
|
alignItems?: null | FlexPosition;
|
|
1866
|
+
/** Applies a box shadow effect around the container. */
|
|
672
1867
|
shadow?: null | Shadow;
|
|
1868
|
+
/** Controls whether content overflowing the container bounds is visible or hidden. */
|
|
673
1869
|
overflow?: null | Overflow;
|
|
1870
|
+
/** Applies a Gaussian blur effect. Value is the blur radius in platform units. */
|
|
674
1871
|
blur?: null | number;
|
|
675
1872
|
}
|
|
1873
|
+
/**
|
|
1874
|
+
* Available style categories for the ZStack element. Each optional field enables a specific
|
|
1875
|
+
* category of visual styling. Omit a field to leave that category unstyled.
|
|
1876
|
+
*/
|
|
676
1877
|
export interface ZStackStyle {
|
|
1878
|
+
/**
|
|
1879
|
+
* Layout properties for the ZStack container (alignment of stacked children).
|
|
1880
|
+
* MUST be used to control how children are positioned within the stack.
|
|
1881
|
+
*/
|
|
677
1882
|
container?: null | ZStackContainerStylingProperties;
|
|
1883
|
+
/**
|
|
1884
|
+
* Background color and image properties. Use to set a solid color, gradient, or image
|
|
1885
|
+
* behind the stacked content.
|
|
1886
|
+
*/
|
|
678
1887
|
background?: null | BackgroundStylingProperties;
|
|
1888
|
+
/**
|
|
1889
|
+
* Border radius, color, width and style properties. Use to add visible borders or
|
|
1890
|
+
* rounded corners to the ZStack.
|
|
1891
|
+
*/
|
|
679
1892
|
border?: null | BorderStylingProperties;
|
|
1893
|
+
/**
|
|
1894
|
+
* Width, height and rotation properties. Use to explicitly size the ZStack or apply
|
|
1895
|
+
* rotation transforms. Do NOT set width/height if the ZStack should size to its content.
|
|
1896
|
+
*/
|
|
680
1897
|
dimension?: null | DimensionStylingProperties;
|
|
1898
|
+
/**
|
|
1899
|
+
* Properties controlling this element's behaviour as a child of a flex container.
|
|
1900
|
+
* Use to set flex-grow, flex-shrink, flex-basis, and align-self.
|
|
1901
|
+
*/
|
|
681
1902
|
flexChild?: null | FlexChildStylingProperties;
|
|
1903
|
+
/** Padding, margin and offset properties. Use to add spacing inside or outside the ZStack. */
|
|
682
1904
|
spacing?: null | SpacingStylingProperties;
|
|
683
1905
|
}
|
|
1906
|
+
/**
|
|
1907
|
+
* Styleable elements of the ZStack node. The ZStack has a single styleable element: its own
|
|
1908
|
+
* container.
|
|
1909
|
+
*/
|
|
684
1910
|
export interface ZStackElements {
|
|
1911
|
+
/**
|
|
1912
|
+
* Style blocks for the ZStack container itself. The array represents breakpoint-specific
|
|
1913
|
+
* styles: first item is the default (no breakpoint), subsequent items correspond to
|
|
1914
|
+
* breakpoints in ascending order. MUST contain at least one item for the default style.
|
|
1915
|
+
*/
|
|
685
1916
|
own: BasicStateStylingBlock<ZStackStyle>[];
|
|
686
1917
|
}
|
|
1918
|
+
/** Transition styles for the ZStack node. Use to animate style changes smoothly. */
|
|
687
1919
|
export interface ZStackTransitions {
|
|
1920
|
+
/**
|
|
1921
|
+
* Transition properties for the ZStack container. Specifies which style properties
|
|
1922
|
+
* should animate and their duration/easing when values change.
|
|
1923
|
+
*/
|
|
688
1924
|
own?: null | ZStackStyle;
|
|
689
1925
|
}
|
|
1926
|
+
/**
|
|
1927
|
+
* A layered container that stacks children on top of each other along the z-axis. Later
|
|
1928
|
+
* children render on top of earlier ones. Use for overlapping content such as badges on
|
|
1929
|
+
* images, text overlays, or layered decorative elements. Do NOT use ZStack for simple
|
|
1930
|
+
* sequential layouts; use Row or Column instead.
|
|
1931
|
+
*/
|
|
690
1932
|
export interface ZStackModel<Children> {
|
|
1933
|
+
/**
|
|
1934
|
+
* Visual styles for this ZStack. See styling documentation for the structure. Omit to use
|
|
1935
|
+
* default (unstyled) rendering.
|
|
1936
|
+
*/
|
|
691
1937
|
styles?: null | LayoutStyle<ZStackElements, ZStackTransitions>;
|
|
1938
|
+
/**
|
|
1939
|
+
* Child nodes stacked on top of each other within this ZStack. MUST contain at least one
|
|
1940
|
+
* child. Children are rendered in source order, with later children appearing on top of
|
|
1941
|
+
* earlier ones.
|
|
1942
|
+
*/
|
|
692
1943
|
children: Children[];
|
|
693
1944
|
}
|
|
694
1945
|
export type CloseButtonChildren = {
|
|
@@ -738,9 +1989,36 @@ export type CreativeResponseChildren = {
|
|
|
738
1989
|
type: "StaticIcon";
|
|
739
1990
|
node: StaticIconModel;
|
|
740
1991
|
};
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
1992
|
+
/**
|
|
1993
|
+
* Fit behaviour options for height.
|
|
1994
|
+
* Used as the 'value' inside a {"type": "fit", "value": ...} height specification.
|
|
1995
|
+
*/
|
|
1996
|
+
export type DimensionHeightFitValue =
|
|
1997
|
+
/** Shrinks to fit the content height. */
|
|
1998
|
+
"wrap-content"
|
|
1999
|
+
/** Expands to fill the available height. */
|
|
2000
|
+
| "fit-height";
|
|
2001
|
+
/**
|
|
2002
|
+
* Fit behaviour options for width.
|
|
2003
|
+
* Used as the 'value' inside a {"type": "fit", "value": ...} width specification.
|
|
2004
|
+
*/
|
|
2005
|
+
export type DimensionWidthFitValue =
|
|
2006
|
+
/** Shrinks to fit the content width. */
|
|
2007
|
+
"wrap-content"
|
|
2008
|
+
/** Expands to fill the available width. */
|
|
2009
|
+
| "fit-width";
|
|
2010
|
+
/** Controls how the layout is displayed on the page. */
|
|
2011
|
+
export type LayoutDisplayPreset =
|
|
2012
|
+
/** Layout covers the full viewport. */
|
|
2013
|
+
"FULLSCREEN"
|
|
2014
|
+
/** Layout is embedded inline within the page content. */
|
|
2015
|
+
| "EMBEDDED"
|
|
2016
|
+
/** Layout is attached/anchored to a specific position. */
|
|
2017
|
+
| "ATTACHED";
|
|
2018
|
+
/**
|
|
2019
|
+
* All node types supported in the web platform schema. This is the union type used by SDKs.
|
|
2020
|
+
* Layouts are authored using OuterLayoutSchemaModel or LayoutVariantSchemaModel instead.
|
|
2021
|
+
*/
|
|
744
2022
|
export type LayoutSchemaModel = {
|
|
745
2023
|
type: "Row";
|
|
746
2024
|
node: RowModel<LayoutSchemaModel>;
|
|
@@ -805,6 +2083,11 @@ export type LayoutSchemaModel = {
|
|
|
805
2083
|
type: "SlideStateTrigger";
|
|
806
2084
|
node: SlideStateTriggerModel;
|
|
807
2085
|
};
|
|
2086
|
+
/**
|
|
2087
|
+
* Recursive child node types allowed within layout variant containers. Includes all layout
|
|
2088
|
+
* variant nodes such as layout, text, images, data-bound content, interactive triggers,
|
|
2089
|
+
* catalog components, and escape hatches.
|
|
2090
|
+
*/
|
|
808
2091
|
export type LayoutVariantChildren = {
|
|
809
2092
|
type: "Row";
|
|
810
2093
|
node: RowModel<LayoutVariantChildren>;
|
|
@@ -845,6 +2128,10 @@ export type LayoutVariantChildren = {
|
|
|
845
2128
|
type: "SlideStateTrigger";
|
|
846
2129
|
node: SlideStateTriggerModel;
|
|
847
2130
|
};
|
|
2131
|
+
/**
|
|
2132
|
+
* Node types valid for use in layout variants (offer formats). Layout variants contain the
|
|
2133
|
+
* offer-specific creative content including images, text, response buttons, and catalog components.
|
|
2134
|
+
*/
|
|
848
2135
|
export type LayoutVariantSchemaModel = {
|
|
849
2136
|
type: "Row";
|
|
850
2137
|
node: RowModel<LayoutVariantChildren>;
|
|
@@ -885,6 +2172,10 @@ export type LayoutVariantSchemaModel = {
|
|
|
885
2172
|
type: "SlideStateTrigger";
|
|
886
2173
|
node: SlideStateTriggerModel;
|
|
887
2174
|
};
|
|
2175
|
+
/**
|
|
2176
|
+
* Recursive child node types allowed within outer layout containers. Includes structural,
|
|
2177
|
+
* distribution, navigation, and presentational nodes scoped to outer layout predicates.
|
|
2178
|
+
*/
|
|
888
2179
|
export type OuterLayoutChildren = {
|
|
889
2180
|
type: "Row";
|
|
890
2181
|
node: RowModel<OuterLayoutChildren>;
|
|
@@ -937,6 +2228,11 @@ export type OuterLayoutChildren = {
|
|
|
937
2228
|
type: "SlideStateTrigger";
|
|
938
2229
|
node: SlideStateTriggerModel;
|
|
939
2230
|
};
|
|
2231
|
+
/**
|
|
2232
|
+
* Node types valid for use in outer layouts. Outer layouts define the frame and offer
|
|
2233
|
+
* distribution but do not contain offer-specific content. They include structural containers,
|
|
2234
|
+
* distribution nodes, navigation controls, and close buttons.
|
|
2235
|
+
*/
|
|
940
2236
|
export type OuterLayoutSchemaModel = {
|
|
941
2237
|
type: "Row";
|
|
942
2238
|
node: RowModel<OuterLayoutChildren>;
|