@rokt/dcui-orchestrator 0.2.1-rc.9 → 0.3.0

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