@rokt/dcui-orchestrator 0.0.2-rc.0 → 0.0.2-rc.1

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 (199) hide show
  1. package/README.md +14 -0
  2. package/dist/extensions/loading/src/skeleton.d.ts +1 -0
  3. package/dist/extensions/minimized-bottomsheet/src/components/bottom-sheet/connector.d.ts +1 -1
  4. package/dist/extensions/minimized-bottomsheet/src/components/bottom-sheet/factory.d.ts +4 -3
  5. package/dist/extensions/minimized-bottomsheet/src/components/bottom-sheet/hooks.d.ts +1 -0
  6. package/dist/extensions/minimized-bottomsheet/src/components/overlay/connector.d.ts +1 -1
  7. package/dist/extensions/minimized-bottomsheet/src/components/overlay/factory.d.ts +3 -2
  8. package/dist/index.cjs +22 -22
  9. package/dist/index.js +27 -27
  10. package/dist/libraries/dcui-components/src/components/basic-text/factory.d.ts +1 -0
  11. package/dist/libraries/dcui-components/src/components/catalog-quantity-option/factory.d.ts +1 -0
  12. package/dist/libraries/dcui-components/src/components/catalog-stacked-collection/factory.d.ts +1 -0
  13. package/dist/libraries/dcui-components/src/components/column/column.d.ts +1 -0
  14. package/dist/libraries/dcui-components/src/components/column/factory.d.ts +1 -0
  15. package/dist/libraries/dcui-components/src/components/creative-response/factory.d.ts +1 -0
  16. package/dist/libraries/dcui-components/src/components/data-icon/factory.d.ts +1 -0
  17. package/dist/libraries/dcui-components/src/components/data-image/factory.d.ts +1 -0
  18. package/dist/libraries/dcui-components/src/components/data-mapper/data-mapper.d.ts +2 -2
  19. package/dist/libraries/dcui-components/src/components/escape-hatch/factory.d.ts +1 -0
  20. package/dist/libraries/dcui-components/src/components/extension/escape-hatch.d.ts +1 -0
  21. package/dist/libraries/dcui-components/src/components/extension/models.d.ts +1 -0
  22. package/dist/libraries/dcui-components/src/components/flow-row/factory.d.ts +1 -0
  23. package/dist/libraries/dcui-components/src/components/flow-row/flow-row.d.ts +1 -0
  24. package/dist/libraries/dcui-components/src/components/inline-container/factory.d.ts +1 -0
  25. package/dist/libraries/dcui-components/src/components/inline-container/inline-container.d.ts +1 -0
  26. package/dist/libraries/dcui-components/src/components/node-mapper/node-mapper.d.ts +1 -1
  27. package/dist/libraries/dcui-components/src/components/rich-text/factory.d.ts +1 -0
  28. package/dist/libraries/dcui-components/src/components/row/factory.d.ts +1 -0
  29. package/dist/libraries/dcui-components/src/components/row/row.d.ts +1 -0
  30. package/dist/libraries/dcui-components/src/components/scrollable-column/factory.d.ts +1 -0
  31. package/dist/libraries/dcui-components/src/components/scrollable-column/scrollable-column.d.ts +1 -0
  32. package/dist/libraries/dcui-components/src/components/scrollable-row/factory.d.ts +1 -0
  33. package/dist/libraries/dcui-components/src/components/scrollable-row/scrollable-row.d.ts +1 -0
  34. package/dist/libraries/dcui-components/src/components/slide-state-trigger/factory.d.ts +1 -0
  35. package/dist/libraries/dcui-components/src/components/static-data-mapper/static-data-mapper.d.ts +2 -2
  36. package/dist/libraries/dcui-components/src/components/static-icon/factory.d.ts +1 -0
  37. package/dist/libraries/dcui-components/src/components/static-image/factory.d.ts +1 -0
  38. package/dist/libraries/dcui-components/src/components/static-link/factory.d.ts +1 -0
  39. package/dist/libraries/dcui-components/src/components/style-mapper/style-consumer.d.ts +2 -1
  40. package/dist/libraries/dcui-components/src/components/style-mapper/style-mapper.d.ts +2 -2
  41. package/dist/libraries/dcui-components/src/components/style-mapper/transformers/dimension-value-transformer.d.ts +9 -2
  42. package/dist/libraries/dcui-components/src/components/style-mapper/transformers/mapped-value-transformer.d.ts +9 -2
  43. package/dist/libraries/dcui-components/src/components/style-mapper/transformers/rotate-transformer.d.ts +9 -2
  44. package/dist/libraries/dcui-components/src/components/timer-state-trigger/factory.d.ts +1 -0
  45. package/dist/libraries/dcui-components/src/components/toggle-button-state-trigger/factory.d.ts +1 -0
  46. package/dist/libraries/dcui-components/src/components/when/factory.d.ts +1 -0
  47. package/dist/libraries/dcui-components/src/components/zstack/factory.d.ts +1 -0
  48. package/dist/libraries/dcui-components/src/components/zstack/zstack.d.ts +1 -0
  49. package/dist/libraries/dcui-components/src/contexts/data-mapper-context.d.ts +9 -8
  50. package/dist/libraries/dcui-components/src/contexts/global-actions-context.d.ts +1 -0
  51. package/dist/libraries/dcui-components/src/contexts/global-state-context.d.ts +1 -0
  52. package/dist/libraries/dcui-components/src/contexts/interactivity-context.d.ts +1 -0
  53. package/dist/libraries/dcui-components/src/contexts/layout-schema-type-context.d.ts +1 -0
  54. package/dist/libraries/dcui-components/src/contexts/plugin-id-context.d.ts +1 -0
  55. package/dist/libraries/dcui-components/src/contexts/position-context.d.ts +1 -0
  56. package/dist/libraries/dcui-components/src/contexts/root-element-context.d.ts +1 -0
  57. package/dist/libraries/dcui-components/src/contexts/static-data-context.d.ts +13 -12
  58. package/dist/libraries/dcui-components/src/utils/node-factories.d.ts +1 -0
  59. package/dist/libraries/domain/src/behaviors/offer-engagement.d.ts +11 -4
  60. package/dist/libraries/domain/src/behaviors/send-partner.d.ts +11 -3
  61. package/dist/libraries/domain/src/models/layout/layout-creative.d.ts +1 -1
  62. package/dist/libraries/domain/src/models/layout/layout-offer.d.ts +2 -2
  63. package/dist/libraries/domain/src/models/partner-event.d.ts +1 -1
  64. package/dist/libraries/domain/src/models/plugin/index.d.ts +1 -0
  65. package/dist/libraries/domain/src/models/plugin/plugin-conversion-type.d.ts +4 -0
  66. package/dist/libraries/domain/src/models/plugin/plugin-creative-response-option.d.ts +22 -5
  67. package/dist/libraries/domain/src/models/plugin/plugin-creative.d.ts +1 -1
  68. package/dist/libraries/domain/src/models/plugin/plugin-offer.d.ts +2 -2
  69. package/dist/libraries/layout-renderer-utils/src/actions/active.d.ts +15 -0
  70. package/dist/libraries/layout-renderer-utils/src/actions/breakpoint.d.ts +22 -0
  71. package/dist/libraries/layout-renderer-utils/src/actions/custom-states.d.ts +11 -0
  72. package/dist/libraries/layout-renderer-utils/src/actions/error.d.ts +6 -0
  73. package/dist/libraries/layout-renderer-utils/src/actions/fonts.d.ts +7 -0
  74. package/dist/libraries/layout-renderer-utils/src/actions/index.d.ts +53 -0
  75. package/dist/libraries/layout-renderer-utils/src/actions/layout.d.ts +7 -0
  76. package/dist/libraries/layout-renderer-utils/src/actions/log.d.ts +13 -0
  77. package/dist/libraries/layout-renderer-utils/src/actions/overlay.d.ts +8 -0
  78. package/dist/libraries/layout-renderer-utils/src/actions/plugin.d.ts +9 -0
  79. package/dist/libraries/layout-renderer-utils/src/actions/serializable-cache.d.ts +22 -0
  80. package/dist/libraries/layout-renderer-utils/src/actions/settings.d.ts +7 -0
  81. package/dist/libraries/layout-renderer-utils/src/actions/signal.d.ts +17 -0
  82. package/dist/libraries/layout-renderer-utils/src/components/bottom-sheet/bottom-sheet.d.ts +17 -0
  83. package/dist/libraries/layout-renderer-utils/src/components/bottom-sheet/connector.d.ts +2 -0
  84. package/dist/libraries/layout-renderer-utils/src/components/bottom-sheet/factory.d.ts +10 -0
  85. package/dist/libraries/layout-renderer-utils/src/components/bottom-sheet/index.d.ts +2 -0
  86. package/dist/libraries/layout-renderer-utils/src/components/bottom-sheet/types.d.ts +44 -0
  87. package/dist/libraries/layout-renderer-utils/src/components/close-button/close-button.d.ts +46 -0
  88. package/dist/libraries/layout-renderer-utils/src/components/close-button/factory.d.ts +3 -0
  89. package/dist/libraries/layout-renderer-utils/src/components/close-button/index.d.ts +2 -0
  90. package/dist/libraries/layout-renderer-utils/src/components/fonts-stylesheet/fonts-stylesheet.d.ts +4 -0
  91. package/dist/libraries/layout-renderer-utils/src/components/fonts-stylesheet/index.d.ts +1 -0
  92. package/dist/libraries/layout-renderer-utils/src/components/fonts-stylesheet/load-fonts.d.ts +8 -0
  93. package/dist/libraries/layout-renderer-utils/src/components/index.d.ts +4 -0
  94. package/dist/libraries/layout-renderer-utils/src/components/overlay/connector.d.ts +2 -0
  95. package/dist/libraries/layout-renderer-utils/src/components/overlay/factory.d.ts +10 -0
  96. package/dist/libraries/layout-renderer-utils/src/components/overlay/index.d.ts +2 -0
  97. package/dist/libraries/layout-renderer-utils/src/components/overlay/overlay.d.ts +19 -0
  98. package/dist/libraries/layout-renderer-utils/src/components/overlay/types.d.ts +44 -0
  99. package/dist/libraries/layout-renderer-utils/src/components/overlay-wrapper/index.d.ts +1 -0
  100. package/dist/libraries/layout-renderer-utils/src/components/overlay-wrapper/overlay-wrapper.d.ts +10 -0
  101. package/dist/libraries/layout-renderer-utils/src/constant.d.ts +2 -0
  102. package/dist/libraries/layout-renderer-utils/src/environment.d.ts +7 -0
  103. package/dist/libraries/layout-renderer-utils/src/index.d.ts +9 -0
  104. package/dist/libraries/layout-renderer-utils/src/models/index.d.ts +1 -0
  105. package/dist/libraries/layout-renderer-utils/src/models/state/active.d.ts +1 -0
  106. package/dist/libraries/layout-renderer-utils/src/models/state/breakpoint.d.ts +5 -0
  107. package/dist/libraries/layout-renderer-utils/src/models/state/custom-states.d.ts +5 -0
  108. package/dist/libraries/layout-renderer-utils/src/models/state/fonts.d.ts +2 -0
  109. package/dist/libraries/layout-renderer-utils/src/models/state/index.d.ts +25 -0
  110. package/dist/libraries/layout-renderer-utils/src/models/state/layout.d.ts +7 -0
  111. package/dist/libraries/layout-renderer-utils/src/models/state/serializable-cache.d.ts +1 -0
  112. package/dist/libraries/layout-renderer-utils/src/models/state/signals.d.ts +14 -0
  113. package/dist/libraries/layout-renderer-utils/src/reducers/active/index.d.ts +1 -0
  114. package/dist/libraries/layout-renderer-utils/src/reducers/active/reducer.d.ts +4 -0
  115. package/dist/libraries/layout-renderer-utils/src/reducers/breakpoint/index.d.ts +1 -0
  116. package/dist/libraries/layout-renderer-utils/src/reducers/breakpoint/reducer.d.ts +10 -0
  117. package/dist/libraries/layout-renderer-utils/src/reducers/custom-states/index.d.ts +1 -0
  118. package/dist/libraries/layout-renderer-utils/src/reducers/custom-states/reducer.d.ts +5 -0
  119. package/dist/libraries/layout-renderer-utils/src/reducers/fonts/index.d.ts +1 -0
  120. package/dist/libraries/layout-renderer-utils/src/reducers/fonts/reducer.d.ts +9 -0
  121. package/dist/libraries/layout-renderer-utils/src/reducers/index.d.ts +28 -0
  122. package/dist/libraries/layout-renderer-utils/src/reducers/layout/index.d.ts +1 -0
  123. package/dist/libraries/layout-renderer-utils/src/reducers/layout/reducer.d.ts +4 -0
  124. package/dist/libraries/layout-renderer-utils/src/reducers/serializable-cache/index.d.ts +1 -0
  125. package/dist/libraries/layout-renderer-utils/src/reducers/serializable-cache/reducer.d.ts +4 -0
  126. package/dist/libraries/layout-renderer-utils/src/reducers/settings/index.d.ts +1 -0
  127. package/dist/libraries/layout-renderer-utils/src/reducers/settings/reducer.d.ts +4 -0
  128. package/dist/libraries/layout-renderer-utils/src/reducers/signal/index.d.ts +1 -0
  129. package/dist/libraries/layout-renderer-utils/src/reducers/signal/reducer.d.ts +4 -0
  130. package/dist/libraries/layout-renderer-utils/src/sagas/breakpoint/index.d.ts +1 -0
  131. package/dist/libraries/layout-renderer-utils/src/sagas/breakpoint/sagas.d.ts +4 -0
  132. package/dist/libraries/layout-renderer-utils/src/sagas/custom-states/index.d.ts +1 -0
  133. package/dist/libraries/layout-renderer-utils/src/sagas/custom-states/sagas.d.ts +3 -0
  134. package/dist/libraries/layout-renderer-utils/src/sagas/error/error-codes.d.ts +17 -0
  135. package/dist/libraries/layout-renderer-utils/src/sagas/error/index.d.ts +2 -0
  136. package/dist/libraries/layout-renderer-utils/src/sagas/error/sagas.d.ts +6 -0
  137. package/dist/libraries/layout-renderer-utils/src/sagas/index.d.ts +11 -0
  138. package/dist/libraries/layout-renderer-utils/src/sagas/log/index.d.ts +1 -0
  139. package/dist/libraries/layout-renderer-utils/src/sagas/log/sagas.d.ts +4 -0
  140. package/dist/libraries/layout-renderer-utils/src/sagas/metric/index.d.ts +1 -0
  141. package/dist/libraries/layout-renderer-utils/src/sagas/metric/sagas.d.ts +5 -0
  142. package/dist/libraries/layout-renderer-utils/src/sagas/open-link/index.d.ts +1 -0
  143. package/dist/libraries/layout-renderer-utils/src/sagas/open-link/sagas.d.ts +8 -0
  144. package/dist/libraries/layout-renderer-utils/src/sagas/overlay/index.d.ts +1 -0
  145. package/dist/libraries/layout-renderer-utils/src/sagas/overlay/sagas.d.ts +3 -0
  146. package/dist/libraries/layout-renderer-utils/src/sagas/plugin/channels.d.ts +5 -0
  147. package/dist/libraries/layout-renderer-utils/src/sagas/plugin/index.d.ts +2 -0
  148. package/dist/libraries/layout-renderer-utils/src/sagas/plugin/sagas.d.ts +16 -0
  149. package/dist/libraries/layout-renderer-utils/src/sagas/signal/index.d.ts +1 -0
  150. package/dist/libraries/layout-renderer-utils/src/sagas/signal/sagas.d.ts +8 -0
  151. package/dist/libraries/layout-renderer-utils/src/sagas/utils/errors.d.ts +2 -0
  152. package/dist/libraries/layout-renderer-utils/src/sagas/utils/index.d.ts +16 -0
  153. package/dist/libraries/layout-renderer-utils/src/sagas/utils/links.d.ts +12 -0
  154. package/dist/libraries/layout-renderer-utils/src/sagas/utils/window.d.ts +4 -0
  155. package/dist/libraries/layout-renderer-utils/src/selectors/breakpoint/index.d.ts +1 -0
  156. package/dist/libraries/layout-renderer-utils/src/selectors/breakpoint/selectors.d.ts +16 -0
  157. package/dist/libraries/layout-renderer-utils/src/selectors/custom-state/index.d.ts +1 -0
  158. package/dist/libraries/layout-renderer-utils/src/selectors/custom-state/selectors.d.ts +7 -0
  159. package/dist/libraries/layout-renderer-utils/src/selectors/index.d.ts +3 -0
  160. package/dist/libraries/layout-renderer-utils/src/selectors/signal/index.d.ts +1 -0
  161. package/dist/libraries/layout-renderer-utils/src/selectors/signal/selectors.d.ts +4 -0
  162. package/dist/libraries/layout-renderer-utils/src/utils/index.d.ts +2 -0
  163. package/dist/libraries/layout-renderer-utils/src/utils/signals.d.ts +3 -0
  164. package/dist/libraries/layout-renderer-utils/src/utils/store-test-utils.d.ts +11 -0
  165. package/dist/libraries/orchestrator/src/components/carousel-distribution/factory.d.ts +1 -0
  166. package/dist/libraries/orchestrator/src/components/escape-hatch/factory.d.ts +1 -0
  167. package/dist/libraries/orchestrator/src/components/grouped-distribution/factory.d.ts +1 -0
  168. package/dist/libraries/orchestrator/src/components/one-by-one-distribution/factory.d.ts +1 -0
  169. package/dist/libraries/orchestrator/src/components/progress-control/factory.d.ts +1 -0
  170. package/dist/libraries/orchestrator/src/components/progress-indicator/connector.d.ts +1 -1
  171. package/dist/libraries/orchestrator/src/components/progress-indicator/factory.d.ts +1 -0
  172. package/dist/libraries/orchestrator/src/components/stacked-distribution/factory.d.ts +1 -0
  173. package/dist/libraries/orchestrator/src/global-store-proxy.d.ts +1 -1
  174. package/dist/libraries/orchestrator/src/models/state/index.d.ts +1 -1
  175. package/dist/libraries/orchestrator/src/reducers/index.d.ts +8 -8
  176. package/dist/libraries/orchestrator/src/sagas/offer-engagement/sagas.d.ts +2 -2
  177. package/dist/libraries/orchestrator/src/sagas/utils/index.d.ts +1 -1
  178. package/dist/libraries/orchestrator/src/store.d.ts +2 -2
  179. package/dist/libraries/plugin-utils/src/plugin-service/error.d.ts +1 -1
  180. package/dist/libraries/plugin-utils/src/plugin-service/rdn.d.ts +1 -1
  181. package/dist/libraries/plugin-utils/src/plugin-service/theme.d.ts +2 -2
  182. package/dist/libraries/saga-utils/src/sagas/forward-global-actions-excluding.d.ts +1 -2
  183. package/dist/libraries/saga-utils/src/utils/index.d.ts +1 -0
  184. package/dist/libraries/saga-utils/src/utils/is-realtime-fulfillment-referral.d.ts +4 -0
  185. package/dist/modules/add-to-cart/src/components/catalog-quantity-counter/factory.d.ts +1 -0
  186. package/dist/modules/add-to-cart/src/components/catalog-radio-group/factory.d.ts +1 -0
  187. package/dist/modules/add-to-cart/src/components/catalog-response-button/factory.d.ts +1 -0
  188. package/dist/modules/add-to-cart/src/components/escape-hatch/factory.d.ts +1 -0
  189. package/dist/modules/add-to-cart/src/store.d.ts +2 -2
  190. package/dist/modules/instant-purchase/src/components/catalog-response-button/factory.d.ts +1 -0
  191. package/dist/modules/instant-purchase/src/components/escape-hatch/factory.d.ts +1 -0
  192. package/dist/modules/instant-purchase/src/store.d.ts +2 -2
  193. package/dist/modules/layouts-xp-sandbox/src/components/escape-hatch/factory.d.ts +1 -0
  194. package/dist/modules/layouts-xp-sandbox/src/components/product-catalog-carousel/navigation.d.ts +2 -2
  195. package/dist/modules/layouts-xp-sandbox/src/reducers/mock/reducer.d.ts +1 -1
  196. package/dist/modules/layouts-xp-sandbox/src/store.d.ts +2 -2
  197. package/dist/modules/standard-marketing/src/reducers/mock/reducer.d.ts +1 -1
  198. package/dist/modules/standard-marketing/src/store.d.ts +2 -2
  199. package/package.json +9 -8
@@ -0,0 +1,22 @@
1
+ export declare const UPDATE_ACTIVE_BREAKPOINT = "BREAKPOINT/UPDATE_ACTIVE";
2
+ export type UpdateActiveBreakpointAction = {
3
+ type: typeof UPDATE_ACTIVE_BREAKPOINT;
4
+ payload: {
5
+ activeBreakpoint: string;
6
+ };
7
+ };
8
+ export declare const INITIALISE_BREAKPOINT = "BREAKPOINT/INITIALISE";
9
+ export type InitialiseBreakpointAction = {
10
+ type: typeof INITIALISE_BREAKPOINT;
11
+ payload: {
12
+ activeBreakpoint: string | undefined;
13
+ breakpoints: Record<string, number>;
14
+ };
15
+ };
16
+ export type BreakpointActions = UpdateActiveBreakpointAction | InitialiseBreakpointAction;
17
+ export declare const SET_BREAKPOINTS = "BREAKPOINT/SET_BREAKPOINTS";
18
+ export interface SetBreakpoints {
19
+ type: typeof SET_BREAKPOINTS;
20
+ payload: Record<string, number>;
21
+ }
22
+ export type BreakpointSagaActions = SetBreakpoints;
@@ -0,0 +1,11 @@
1
+ export declare const SET_CUSTOM_STATE = "CUSTOM_STATES/SET";
2
+ export interface SetCustomState {
3
+ type: typeof SET_CUSTOM_STATE;
4
+ payload: SetCustomStatePayload;
5
+ }
6
+ export interface SetCustomStatePayload {
7
+ key: string;
8
+ value: number;
9
+ offerPositionIndex?: number;
10
+ }
11
+ export type CustomStatesActions = SetCustomState;
@@ -0,0 +1,6 @@
1
+ import { RaiseErrorOptions } from '@rokt/plugin';
2
+ export declare const REPORT_ERROR = "ERROR/REPORT";
3
+ export interface ReportError {
4
+ type: typeof REPORT_ERROR;
5
+ payload: RaiseErrorOptions;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { FontsState } from '../../../orchestrator/src/models';
2
+ export declare const SET_FONTS = "FONTS/SET";
3
+ export type SetFontsAction = {
4
+ type: typeof SET_FONTS;
5
+ payload: FontsState;
6
+ };
7
+ export type FontsActions = SetFontsAction;
@@ -0,0 +1,53 @@
1
+ import { OpenLink, PrepareSignal, RaiseMetric, RaiseSignal, SendPartner } from '../../../domain/src/behaviors';
2
+ import { ActiveStateActions } from './active';
3
+ import { BreakpointActions, SetBreakpoints } from './breakpoint';
4
+ import { FontsActions } from './fonts';
5
+ import { LayoutActions } from './layout';
6
+ import { ClosePlugin } from './plugin';
7
+ import { SettingsActions } from './settings';
8
+ import { SerializableCacheActions } from './serializable-cache';
9
+ import { ProcessSignals, SignalStateActions } from './signal';
10
+ import { DismissOverlay } from './overlay';
11
+ import { ReportError } from './error';
12
+ import { Log } from './log';
13
+ import { OfferOutboundPartnerEvent } from '../../../domain/src/models';
14
+ import { CustomStatesActions } from './custom-states';
15
+ export * from './active';
16
+ export * from './breakpoint';
17
+ export * from './fonts';
18
+ export * from './layout';
19
+ export * from './serializable-cache';
20
+ export * from './signal';
21
+ export * from './error';
22
+ export * from './log';
23
+ export * from './overlay';
24
+ export * from './plugin';
25
+ export * from './custom-states';
26
+ export type CoreStateActions = LayoutActions | BreakpointActions | ActiveStateActions | FontsActions | SignalStateActions | SerializableCacheActions | SettingsActions | CustomStatesActions;
27
+ export declare const coreStateActionTypes: {
28
+ readonly LAYOUT_UPDATE: "LAYOUT/UPDATE";
29
+ readonly UPDATE_ACTIVE_BREAKPOINT: "BREAKPOINT/UPDATE_ACTIVE";
30
+ readonly INITIALISE_BREAKPOINT: "BREAKPOINT/INITIALISE";
31
+ readonly ACTIVE_ADD: "ACTIVE/ADD";
32
+ readonly ACTIVE_DELETE: "ACTIVE/DELETE";
33
+ readonly SET_FONTS: "FONTS/SET";
34
+ readonly QUEUE_SIGNAL: "SIGNAL/QUEUE";
35
+ readonly SIGNAL_PROCESSED: "SIGNAL/PROCESSED";
36
+ readonly CACHE_SERIALIZED_VALUE: "CACHE/ADD_SERIALIZED_VALUE";
37
+ readonly UPDATE_CACHED_SERIALIZED_VALUE: "CACHE/UPDATE_SERIALIZED_VALUE";
38
+ readonly CLEAR_SERIALIZED_VALUE_FROM_CACHE: "CACHE/CLEAR_SERIALIZED_VALUE";
39
+ readonly SET_SETTINGS: "SETTINGS/SET";
40
+ readonly SET_CUSTOM_STATE: "CUSTOM_STATES/SET";
41
+ };
42
+ export declare const coreSagaActionTypes: {
43
+ readonly HANDLE_CONFIG: "CONFIG/HANDLE";
44
+ readonly SET_BREAKPOINTS: "BREAKPOINT/SET_BREAKPOINTS";
45
+ readonly CLOSE_PLUGIN: "PLUGIN/CLOSE_PLUGIN";
46
+ readonly RAISE_METRIC: "GLOBAL/RAISE_METRIC";
47
+ readonly PREPARE_SIGNAL: "GLOBAL/PREPARE_SIGNAL";
48
+ readonly DISMISS_OVERLAY: "OVERLAY/DISMISS_OVERLAY";
49
+ readonly REPORT_ERROR: "ERROR/REPORT";
50
+ readonly LOG: "LOG";
51
+ readonly OPEN_LINK: "GLOBAL/OPEN_LINK";
52
+ };
53
+ export type CoreSagasActions = ReportError | Log | SetBreakpoints | RaiseMetric | RaiseSignal | PrepareSignal | ProcessSignals | ClosePlugin | DismissOverlay | OpenLink | SendPartner<OfferOutboundPartnerEvent>;
@@ -0,0 +1,7 @@
1
+ import { LayoutState } from '../../../orchestrator/src/models';
2
+ export declare const LAYOUT_UPDATE: "LAYOUT/UPDATE";
3
+ export type LayoutUpdateAction = {
4
+ type: typeof LAYOUT_UPDATE;
5
+ payload: LayoutState;
6
+ };
7
+ export type LayoutActions = LayoutUpdateAction;
@@ -0,0 +1,13 @@
1
+ export declare const CREATIVE_RESPONSE = "CREATIVE_RESPONSE";
2
+ export declare const USER_INTERACTION = "USER_INTERACTION";
3
+ export declare const LAYOUT_IMPRESSED = "LAYOUT_IMPRESSED";
4
+ export declare const LOG = "LOG";
5
+ export type LogData = {
6
+ code: typeof CREATIVE_RESPONSE | typeof USER_INTERACTION | typeof LAYOUT_IMPRESSED;
7
+ message?: string;
8
+ data?: object;
9
+ };
10
+ export interface Log {
11
+ type: typeof LOG;
12
+ payload: LogData;
13
+ }
@@ -0,0 +1,8 @@
1
+ export declare const DISMISS_OVERLAY = "OVERLAY/DISMISS_OVERLAY";
2
+ export interface DismissOverlay {
3
+ type: typeof DISMISS_OVERLAY;
4
+ payload: {
5
+ id: string;
6
+ dismissalMethod?: string;
7
+ };
8
+ }
@@ -0,0 +1,9 @@
1
+ export declare const HANDLE_CONFIG = "CONFIG/HANDLE";
2
+ export type HandleConfigAction<Config> = {
3
+ type: typeof HANDLE_CONFIG;
4
+ payload: Config;
5
+ };
6
+ export declare const CLOSE_PLUGIN = "PLUGIN/CLOSE_PLUGIN";
7
+ export interface ClosePlugin {
8
+ type: typeof CLOSE_PLUGIN;
9
+ }
@@ -0,0 +1,22 @@
1
+ export declare const CACHE_SERIALIZED_VALUE = "CACHE/ADD_SERIALIZED_VALUE";
2
+ export type CacheSerializedValue = {
3
+ type: typeof CACHE_SERIALIZED_VALUE;
4
+ payload: {
5
+ key: string;
6
+ value: string;
7
+ };
8
+ };
9
+ export declare const UPDATE_CACHED_SERIALIZED_VALUE = "CACHE/UPDATE_SERIALIZED_VALUE";
10
+ export type UpdateCachedSerializedValue = {
11
+ type: typeof UPDATE_CACHED_SERIALIZED_VALUE;
12
+ payload: {
13
+ key: string;
14
+ value: string;
15
+ };
16
+ };
17
+ export declare const CLEAR_SERIALIZED_VALUE_FROM_CACHE = "CACHE/CLEAR_SERIALIZED_VALUE";
18
+ export type ClearSerializedValueFromCache = {
19
+ type: typeof CLEAR_SERIALIZED_VALUE_FROM_CACHE;
20
+ payload: string;
21
+ };
22
+ export type SerializableCacheActions = CacheSerializedValue | ClearSerializedValueFromCache | UpdateCachedSerializedValue;
@@ -0,0 +1,7 @@
1
+ import { LayoutSettings } from '@rokt/dcui-layout-schema';
2
+ export declare const SET_SETTINGS = "SETTINGS/SET";
3
+ export type SetSettingsAction = {
4
+ type: typeof SET_SETTINGS;
5
+ payload: LayoutSettings;
6
+ };
7
+ export type SettingsActions = SetSettingsAction;
@@ -0,0 +1,17 @@
1
+ import { Signals } from '../../../domain/src/models';
2
+ import { QueuedSignal } from '../../../orchestrator/src/models';
3
+ export declare const QUEUE_SIGNAL: "SIGNAL/QUEUE";
4
+ export type QueueSignalAction = {
5
+ type: typeof QUEUE_SIGNAL;
6
+ payload: QueuedSignal;
7
+ };
8
+ export declare const SIGNAL_PROCESSED: "SIGNAL/PROCESSED";
9
+ export type SignalProcessedAction = {
10
+ type: typeof SIGNAL_PROCESSED;
11
+ payload: Signals;
12
+ };
13
+ export type SignalStateActions = QueueSignalAction | SignalProcessedAction;
14
+ export declare const PROCESS_SIGNALS = "SIGNAL/PROCESS";
15
+ export type ProcessSignals = {
16
+ type: typeof PROCESS_SIGNALS;
17
+ };
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { BottomSheetProps } from './types';
3
+ type BottomSheetContainerProps = {
4
+ children?: React.ReactNode;
5
+ schema: BottomSheetProps['schema'];
6
+ ref: React.RefObject<HTMLDivElement>;
7
+ testId?: string;
8
+ };
9
+ /**The BottomSheet is a display node that is pinned to the bottom of the viewport.
10
+ * This is a Modal Bottomsheet, requiring user interaction before engaging with background content
11
+ * It should only be used for Mobile layouts.
12
+ * *Where can we use this: __outer layout__*
13
+ */
14
+ export declare function BottomSheet(props: BottomSheetProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare const BottomSheetContainer: React.ForwardRefExoticComponent<Omit<BottomSheetContainerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
+ export declare function handleBottomSheetTransition<RefElement extends HTMLElement>(element: RefElement): () => void;
17
+ export {};
@@ -0,0 +1,2 @@
1
+ import { OwnProps, StateProps } from './types';
2
+ export declare const connector: import("react-redux").InferableComponentEnhancerWithProps<StateProps & import("react-redux").DispatchProp<import("redux").UnknownAction>, OwnProps>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
+ import { BottomSheet } from './bottom-sheet';
4
+ export declare const ConnectedBottomSheet: import("react-redux").ConnectedComponent<typeof BottomSheet, {
5
+ schema: import("@rokt/dcui-layout-schema").BottomSheetModel<import("@rokt/dcui-layout-schema").ModalChildren, import("@rokt/dcui-layout-schema").WhenPredicate>;
6
+ testId?: string | undefined;
7
+ context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
8
+ store?: import("redux").Store<any, import("redux").UnknownAction, unknown> | undefined;
9
+ }>;
10
+ export declare function tryMakeBottomSheet(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -0,0 +1,2 @@
1
+ export * from './factory';
2
+ export * from './bottom-sheet';
@@ -0,0 +1,44 @@
1
+ import { BottomSheetModel, WhenPredicate, ModalChildren } from '@rokt/dcui-layout-schema';
2
+ export interface StateProps {
3
+ /** Whether the overlay is active or not*/
4
+ isOpen: boolean;
5
+ }
6
+ export interface OwnProps {
7
+ /**
8
+ * - `settings`:
9
+ * * `allowBackdropToClose`: Whether click backdrop will close the overlay
10
+ * - `children`: it can accpet all nodes except for itself.
11
+ * - `styles`:
12
+ * * `elements`:
13
+ * * `own`:
14
+ * - `container`
15
+ * - `background`
16
+ * - `border`
17
+ * - `dimension`
18
+ * - `flexChild`
19
+ * - `spacing`
20
+ * * `wrapper`:
21
+ * - `container`
22
+ * - `background`
23
+ * * `transitions`:
24
+ * - `type`: 'Conditional'
25
+ * - `transition`:
26
+ * * `predicates`: WhenPredicate[]
27
+ * * `duration`: number
28
+ * * `value`:
29
+ * * `own`:
30
+ * - `container`
31
+ * - `background`
32
+ * - `border`
33
+ * - `dimension`
34
+ * - `flexChild`
35
+ * - `spacing`
36
+ * * `wrapper`:
37
+ * - `container`
38
+ * - `background`
39
+ */
40
+ schema: BottomSheetModel<ModalChildren, WhenPredicate>;
41
+ testId?: string;
42
+ }
43
+ export interface BottomSheetProps extends OwnProps, StateProps {
44
+ }
@@ -0,0 +1,46 @@
1
+ import { AnyAction } from '@reduxjs/toolkit';
2
+ import { CloseButtonModel, NonInteractableChildren, WhenPredicate } from '@rokt/dcui-layout-schema';
3
+ export interface CloseButtonProps {
4
+ /**
5
+ * - `a11yLabel`: the aria-label for the button
6
+ * - `children`: it can accept below nodes,
7
+ * * `Row`
8
+ * * `Column`
9
+ * * `ZStack`
10
+ * * `BasicText`
11
+ * * `StaticImage`
12
+ * * `InlineContainer`
13
+ * - `dismissalMethod`: optional message for the dismissal signal
14
+ * - `styles`:
15
+ * * `elements`:
16
+ * * `own`:
17
+ * - `container`
18
+ * - `background`
19
+ * - `border`
20
+ * - `dimension`
21
+ * - `flexChild`
22
+ * - `spacing`
23
+ * * `transitions`:
24
+ * - `type`: 'Conditional'
25
+ * - `transition`:
26
+ * * `predicates`: WhenPredicate[]
27
+ * * `duration`: number
28
+ * * `value`:
29
+ * * `own`:
30
+ * - `container`
31
+ * - `background`
32
+ * - `border`
33
+ * - `dimension`
34
+ * - `flexChild`
35
+ * - `spacing`
36
+ */
37
+ schema: CloseButtonModel<NonInteractableChildren, WhenPredicate>;
38
+ action?: AnyAction;
39
+ testId?: string;
40
+ }
41
+ /**The CloseButton is a button node that provides users with
42
+ * an intuitive way to close or dismiss a specific window
43
+ * (overlay or placement) within a plugin.<br>
44
+ * *Where can we use this: __outer layout__*
45
+ * */
46
+ export declare function CloseButton(props: CloseButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
+ export declare function tryMakeCloseButton(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -0,0 +1,2 @@
1
+ export * from './close-button';
2
+ export * from './factory';
@@ -0,0 +1,4 @@
1
+ export interface FontsStylesheetProps {
2
+ testId?: string;
3
+ }
4
+ export declare function FontsStylesheet(_props: FontsStylesheetProps): null;
@@ -0,0 +1 @@
1
+ export * from './fonts-stylesheet';
@@ -0,0 +1,8 @@
1
+ export type FontType = {
2
+ fontFamily: string;
3
+ sources: Array<string>;
4
+ style?: string;
5
+ weight?: string;
6
+ display?: FontDisplay;
7
+ };
8
+ export declare function loadFonts(fonts?: Array<FontType>): Promise<void>;
@@ -0,0 +1,4 @@
1
+ export * from './close-button';
2
+ export * from './overlay';
3
+ export * from './bottom-sheet';
4
+ export * from './fonts-stylesheet';
@@ -0,0 +1,2 @@
1
+ import { OwnProps, StateProps } from './types';
2
+ export declare const connector: import("react-redux").InferableComponentEnhancerWithProps<StateProps & import("react-redux").DispatchProp<import("redux").UnknownAction>, OwnProps>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
+ import { Overlay } from './overlay';
4
+ export declare const ConnectedOverlay: import("react-redux").ConnectedComponent<typeof Overlay, {
5
+ schema: import("@rokt/dcui-layout-schema").OverlayModel<import("@rokt/dcui-layout-schema").ModalChildren, import("@rokt/dcui-layout-schema").WhenPredicate>;
6
+ testId?: string | undefined;
7
+ context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").UnknownAction> | null> | undefined;
8
+ store?: import("redux").Store<any, import("redux").UnknownAction, unknown> | undefined;
9
+ }>;
10
+ export declare function tryMakeOverlay(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -0,0 +1,2 @@
1
+ export * from './factory';
2
+ export * from './overlay';
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { OverlayProps } from './types';
3
+ type OverlayContainerProps = {
4
+ children?: React.ReactNode;
5
+ schema: OverlayProps['schema'];
6
+ ref: React.RefObject<HTMLDivElement>;
7
+ testId?: string;
8
+ };
9
+ /**The Overlay is a display node that suits various purposes,
10
+ * such as displaying modals, tooltips, informational pop-ups,
11
+ * or interactive forms.<br>
12
+ * It's a valuable tool for improving user engagement and guiding
13
+ * user interactions within web and mobile applications.<br>
14
+ * The `a11yLabel` on the Overlay define a custom accessibility label for the screen reader. <br>
15
+ * *Where can we use this: __outer layout__*
16
+ */
17
+ export declare function Overlay(props: OverlayProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare const OverlayContainer: React.ForwardRefExoticComponent<Omit<OverlayContainerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ export {};
@@ -0,0 +1,44 @@
1
+ import { ModalChildren, OverlayModel, WhenPredicate } from '@rokt/dcui-layout-schema';
2
+ export interface StateProps {
3
+ /** Whether the overlay is active or not*/
4
+ isOpen: boolean;
5
+ }
6
+ export interface OwnProps {
7
+ /**
8
+ * - `settings`:
9
+ * * `allowBackdropToClose`: Whether click backdrop will close the overlay
10
+ * - `children`: it can accpet all nodes except for itself.
11
+ * - `styles`:
12
+ * * `elements`:
13
+ * * `own`:
14
+ * - `container`
15
+ * - `background`
16
+ * - `border`
17
+ * - `dimension`
18
+ * - `flexChild`
19
+ * - `spacing`
20
+ * * `wrapper`:
21
+ * - `container`
22
+ * - `background`
23
+ * * `transitions`:
24
+ * - `type`: 'Conditional'
25
+ * - `transition`:
26
+ * * `predicates`: WhenPredicate[]
27
+ * * `duration`: number
28
+ * * `value`:
29
+ * * `own`:
30
+ * - `container`
31
+ * - `background`
32
+ * - `border`
33
+ * - `dimension`
34
+ * - `flexChild`
35
+ * - `spacing`
36
+ * * `wrapper`:
37
+ * - `container`
38
+ * - `background`
39
+ */
40
+ schema: OverlayModel<ModalChildren, WhenPredicate>;
41
+ testId?: string;
42
+ }
43
+ export interface OverlayProps extends OwnProps, StateProps {
44
+ }
@@ -0,0 +1 @@
1
+ export * from './overlay-wrapper';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { OverlayProps } from '../overlay/types';
3
+ import { BottomSheetProps } from '../bottom-sheet/types';
4
+ export declare enum ContainerMode {
5
+ BottomSheet = 0,
6
+ Overlay = 1
7
+ }
8
+ export declare function OverlayWrapper({ isOpen, schema, testId, children: container, }: (OverlayProps | BottomSheetProps) & {
9
+ children(containerChildren: React.ReactNode, ref: React.ForwardedRef<HTMLDivElement>): React.ReactNode;
10
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ export declare const OVERLAY_ID = "plugin-overlay";
2
+ export declare const PLUGIN_ID = "plugin";
@@ -0,0 +1,7 @@
1
+ export type Environment = {
2
+ ENVIRONMENT: string;
3
+ DCUI_SCHEMA_VERSION: string;
4
+ ROKT_DOMAIN: string;
5
+ };
6
+ export declare function getDcuiSchemaVersion(): string;
7
+ export declare function getRoktDomain(): string;
@@ -0,0 +1,9 @@
1
+ export * from './components';
2
+ export * from './models';
3
+ export * from './actions';
4
+ export * from './reducers';
5
+ export * from './selectors';
6
+ export * from './sagas';
7
+ export * from './utils';
8
+ export * from './environment';
9
+ export * from './constant';
@@ -0,0 +1 @@
1
+ export * from './state';
@@ -0,0 +1 @@
1
+ export type ActiveState = Set<string>;
@@ -0,0 +1,5 @@
1
+ export type BreakpointState = {
2
+ breakpoints: Record<string, number>;
3
+ activeBreakpoint: string;
4
+ initialised: boolean;
5
+ };
@@ -0,0 +1,5 @@
1
+ export type CustomStatesState = Record<string, number>;
2
+ export type CustomStatesIndexState = {
3
+ root: CustomStatesState;
4
+ [key: string]: CustomStatesState;
5
+ };
@@ -0,0 +1,2 @@
1
+ import { Fonts } from '@rokt/plugin';
2
+ export type FontsState = Fonts;
@@ -0,0 +1,25 @@
1
+ import { LayoutSettings } from '@rokt/dcui-layout-schema';
2
+ import { ActiveState } from './active';
3
+ import { BreakpointState } from './breakpoint';
4
+ import { FontsState } from './fonts';
5
+ import { LayoutState } from './layout';
6
+ import { SerializableCacheState } from './serializable-cache';
7
+ import { SignalState } from './signals';
8
+ import { CustomStatesIndexState } from './custom-states';
9
+ export * from './active';
10
+ export * from './breakpoint';
11
+ export * from './fonts';
12
+ export * from './layout';
13
+ export * from './serializable-cache';
14
+ export * from './signals';
15
+ export * from './custom-states';
16
+ export type CoreAppState = {
17
+ layout: LayoutState;
18
+ breakpoint: BreakpointState;
19
+ active: ActiveState;
20
+ fonts: FontsState;
21
+ signal: SignalState;
22
+ serializableCache: SerializableCacheState;
23
+ settings: LayoutSettings;
24
+ customStates: CustomStatesIndexState;
25
+ };
@@ -0,0 +1,7 @@
1
+ import { LayoutSchemaModel, LayoutSettings } from '@rokt/dcui-layout-schema';
2
+ export type LayoutState = null | {
3
+ instanceGuid: string;
4
+ layoutSchema: LayoutSchemaModel;
5
+ layoutSchemaVersion: string;
6
+ settings?: LayoutSettings;
7
+ };
@@ -0,0 +1 @@
1
+ export type SerializableCacheState = Map<string, string>;
@@ -0,0 +1,14 @@
1
+ import { SignalPreperationCriteria } from '../../../../domain/src/behaviors';
2
+ import { Signals } from '../../../../domain/src/models';
3
+ export type QueuedRaiseSignal<SignalsType extends Signals = Signals> = {
4
+ signal: SignalsType;
5
+ };
6
+ export type QueuedPrepareSignal<SignalsType extends Signals = Signals> = {
7
+ criteria: SignalPreperationCriteria;
8
+ signal: SignalsType;
9
+ };
10
+ export type QueuedSignal<SignalsType extends Signals = Signals> = QueuedRaiseSignal<SignalsType> | QueuedPrepareSignal<SignalsType>;
11
+ export type SignalState = {
12
+ queue: Array<QueuedSignal>;
13
+ processed: Array<string>;
14
+ };
@@ -0,0 +1 @@
1
+ export * from './reducer';
@@ -0,0 +1,4 @@
1
+ import { AnyAction } from '@reduxjs/toolkit';
2
+ import { ActiveState } from '../../models';
3
+ export declare function makeInitialActiveState(): ActiveState;
4
+ export declare function activeReducer(state: ActiveState | undefined, action: AnyAction): ActiveState;
@@ -0,0 +1 @@
1
+ export * from './reducer';
@@ -0,0 +1,10 @@
1
+ import { AnyAction } from '@reduxjs/toolkit';
2
+ import { BreakpointState } from '../../../../orchestrator/src/models';
3
+ export declare function makeInitialBreakpointState(): {
4
+ breakpoints: {
5
+ default: number;
6
+ };
7
+ activeBreakpoint: string;
8
+ initialised: boolean;
9
+ };
10
+ export declare function breakpointReducer(state: BreakpointState | undefined, action: AnyAction): BreakpointState;
@@ -0,0 +1 @@
1
+ export * from './reducer';
@@ -0,0 +1,5 @@
1
+ import { AnyAction } from '@reduxjs/toolkit';
2
+ import { CustomStatesIndexState, CustomStatesState } from '../../../../orchestrator/src/models';
3
+ export declare function makeInitialCustomStatesIndexState(): CustomStatesIndexState;
4
+ export declare function makeInitialCustomStatesState(): CustomStatesState;
5
+ export declare function customStatesReducer(state: CustomStatesIndexState | undefined, action: AnyAction): CustomStatesIndexState;
@@ -0,0 +1 @@
1
+ export * from './reducer';
@@ -0,0 +1,9 @@
1
+ import { AnyAction } from '@reduxjs/toolkit';
2
+ import { FontsState } from '../../../../orchestrator/src/models';
3
+ export declare function makeInitialFontsState(): FontsState;
4
+ export declare function fontsReducer(state: {
5
+ fontFamily: string;
6
+ fontStyle: string;
7
+ fontWeight: string;
8
+ src: string[];
9
+ }[] | undefined, action: AnyAction): FontsState;