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