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