@rokt/dcui-orchestrator 0.0.2-rc.2 → 0.0.2-rc.4

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 (104) hide show
  1. package/dist/extensions/loading/src/skeleton.d.ts +0 -1
  2. package/dist/extensions/minimized-bottomsheet/src/components/bottom-sheet/factory.d.ts +2 -2
  3. package/dist/extensions/minimized-bottomsheet/src/components/bottom-sheet/hooks.d.ts +0 -1
  4. package/dist/extensions/minimized-bottomsheet/src/components/overlay/factory.d.ts +1 -1
  5. package/dist/index.cjs +26 -26
  6. package/dist/index.js +31 -31
  7. package/dist/libraries/dcui-components/src/components/basic-text/factory.d.ts +0 -1
  8. package/dist/libraries/dcui-components/src/components/catalog-quantity-option/factory.d.ts +0 -1
  9. package/dist/libraries/dcui-components/src/components/catalog-stacked-collection/factory.d.ts +0 -1
  10. package/dist/libraries/dcui-components/src/components/column/column.d.ts +0 -1
  11. package/dist/libraries/dcui-components/src/components/column/factory.d.ts +0 -1
  12. package/dist/libraries/dcui-components/src/components/creative-response/factory.d.ts +0 -1
  13. package/dist/libraries/dcui-components/src/components/data-icon/factory.d.ts +0 -1
  14. package/dist/libraries/dcui-components/src/components/data-image/factory.d.ts +0 -1
  15. package/dist/libraries/dcui-components/src/components/data-mapper/data-mapper.d.ts +2 -2
  16. package/dist/libraries/dcui-components/src/components/escape-hatch/factory.d.ts +0 -1
  17. package/dist/libraries/dcui-components/src/components/extension/escape-hatch.d.ts +0 -1
  18. package/dist/libraries/dcui-components/src/components/extension/models.d.ts +0 -1
  19. package/dist/libraries/dcui-components/src/components/flow-row/factory.d.ts +0 -1
  20. package/dist/libraries/dcui-components/src/components/flow-row/flow-row.d.ts +0 -1
  21. package/dist/libraries/dcui-components/src/components/inline-container/factory.d.ts +0 -1
  22. package/dist/libraries/dcui-components/src/components/inline-container/inline-container.d.ts +0 -1
  23. package/dist/libraries/dcui-components/src/components/node-mapper/node-mapper.d.ts +1 -1
  24. package/dist/libraries/dcui-components/src/components/rich-text/factory.d.ts +0 -1
  25. package/dist/libraries/dcui-components/src/components/row/factory.d.ts +0 -1
  26. package/dist/libraries/dcui-components/src/components/row/row.d.ts +0 -1
  27. package/dist/libraries/dcui-components/src/components/scrollable-column/factory.d.ts +0 -1
  28. package/dist/libraries/dcui-components/src/components/scrollable-column/scrollable-column.d.ts +0 -1
  29. package/dist/libraries/dcui-components/src/components/scrollable-row/factory.d.ts +0 -1
  30. package/dist/libraries/dcui-components/src/components/scrollable-row/scrollable-row.d.ts +0 -1
  31. package/dist/libraries/dcui-components/src/components/slide-state-trigger/factory.d.ts +0 -1
  32. package/dist/libraries/dcui-components/src/components/static-data-mapper/static-data-mapper.d.ts +2 -2
  33. package/dist/libraries/dcui-components/src/components/static-icon/factory.d.ts +0 -1
  34. package/dist/libraries/dcui-components/src/components/static-image/factory.d.ts +0 -1
  35. package/dist/libraries/dcui-components/src/components/static-link/factory.d.ts +0 -1
  36. package/dist/libraries/dcui-components/src/components/style-mapper/style-consumer.d.ts +1 -2
  37. package/dist/libraries/dcui-components/src/components/style-mapper/style-mapper.d.ts +2 -2
  38. package/dist/libraries/dcui-components/src/components/style-mapper/transformers/dimension-value-transformer.d.ts +2 -9
  39. package/dist/libraries/dcui-components/src/components/style-mapper/transformers/mapped-value-transformer.d.ts +2 -9
  40. package/dist/libraries/dcui-components/src/components/style-mapper/transformers/rotate-transformer.d.ts +2 -9
  41. package/dist/libraries/dcui-components/src/components/timer-state-trigger/factory.d.ts +0 -1
  42. package/dist/libraries/dcui-components/src/components/toggle-button-state-trigger/factory.d.ts +0 -1
  43. package/dist/libraries/dcui-components/src/components/when/factory.d.ts +0 -1
  44. package/dist/libraries/dcui-components/src/components/zstack/factory.d.ts +0 -1
  45. package/dist/libraries/dcui-components/src/components/zstack/zstack.d.ts +0 -1
  46. package/dist/libraries/dcui-components/src/contexts/data-mapper-context.d.ts +8 -9
  47. package/dist/libraries/dcui-components/src/contexts/global-actions-context.d.ts +0 -1
  48. package/dist/libraries/dcui-components/src/contexts/global-state-context.d.ts +0 -1
  49. package/dist/libraries/dcui-components/src/contexts/index.d.ts +1 -0
  50. package/dist/libraries/dcui-components/src/contexts/interactivity-context.d.ts +0 -1
  51. package/dist/libraries/dcui-components/src/contexts/layout-schema-type-context.d.ts +0 -1
  52. package/dist/libraries/dcui-components/src/contexts/plugin-id-context.d.ts +0 -1
  53. package/dist/libraries/dcui-components/src/contexts/position-context.d.ts +0 -1
  54. package/dist/libraries/dcui-components/src/contexts/root-element-context.d.ts +0 -1
  55. package/dist/libraries/dcui-components/src/contexts/static-data-context.d.ts +12 -13
  56. package/dist/libraries/dcui-components/src/contexts/when-visibility-context.d.ts +6 -0
  57. package/dist/libraries/dcui-components/src/utils/node-factories.d.ts +0 -1
  58. package/dist/libraries/layout-renderer-utils/src/actions/fonts.d.ts +1 -1
  59. package/dist/libraries/layout-renderer-utils/src/actions/layout.d.ts +1 -1
  60. package/dist/libraries/layout-renderer-utils/src/actions/signal.d.ts +1 -1
  61. package/dist/libraries/layout-renderer-utils/src/components/bottom-sheet/factory.d.ts +1 -1
  62. package/dist/libraries/layout-renderer-utils/src/components/close-button/factory.d.ts +0 -1
  63. package/dist/libraries/layout-renderer-utils/src/components/overlay/factory.d.ts +1 -1
  64. package/dist/libraries/layout-renderer-utils/src/reducers/breakpoint/reducer.d.ts +1 -1
  65. package/dist/libraries/layout-renderer-utils/src/reducers/custom-states/reducer.d.ts +1 -1
  66. package/dist/libraries/layout-renderer-utils/src/reducers/fonts/reducer.d.ts +2 -7
  67. package/dist/libraries/layout-renderer-utils/src/reducers/index.d.ts +1 -1
  68. package/dist/libraries/layout-renderer-utils/src/reducers/layout/reducer.d.ts +1 -1
  69. package/dist/libraries/layout-renderer-utils/src/reducers/serializable-cache/reducer.d.ts +1 -1
  70. package/dist/libraries/layout-renderer-utils/src/sagas/breakpoint/sagas.d.ts +1 -1
  71. package/dist/libraries/layout-renderer-utils/src/sagas/error/sagas.d.ts +1 -1
  72. package/dist/libraries/layout-renderer-utils/src/sagas/log/sagas.d.ts +1 -1
  73. package/dist/libraries/layout-renderer-utils/src/sagas/metric/sagas.d.ts +1 -1
  74. package/dist/libraries/layout-renderer-utils/src/sagas/overlay/sagas.d.ts +1 -1
  75. package/dist/libraries/layout-renderer-utils/src/sagas/plugin/channels.d.ts +1 -1
  76. package/dist/libraries/layout-renderer-utils/src/sagas/plugin/sagas.d.ts +1 -1
  77. package/dist/libraries/layout-renderer-utils/src/sagas/signal/sagas.d.ts +2 -2
  78. package/dist/libraries/layout-renderer-utils/src/sagas/utils/errors.d.ts +1 -1
  79. package/dist/libraries/layout-renderer-utils/src/sagas/utils/index.d.ts +3 -3
  80. package/dist/libraries/layout-renderer-utils/src/selectors/breakpoint/selectors.d.ts +1 -1
  81. package/dist/libraries/layout-renderer-utils/src/selectors/custom-state/selectors.d.ts +1 -1
  82. package/dist/libraries/layout-renderer-utils/src/utils/store-test-utils.d.ts +2 -2
  83. package/dist/libraries/orchestrator/src/components/carousel-distribution/factory.d.ts +0 -1
  84. package/dist/libraries/orchestrator/src/components/escape-hatch/factory.d.ts +0 -1
  85. package/dist/libraries/orchestrator/src/components/grouped-distribution/factory.d.ts +0 -1
  86. package/dist/libraries/orchestrator/src/components/one-by-one-distribution/factory.d.ts +0 -1
  87. package/dist/libraries/orchestrator/src/components/progress-control/factory.d.ts +0 -1
  88. package/dist/libraries/orchestrator/src/components/progress-indicator/factory.d.ts +0 -1
  89. package/dist/libraries/orchestrator/src/components/stacked-distribution/factory.d.ts +0 -1
  90. package/dist/libraries/orchestrator/src/global-store-proxy.d.ts +1 -1
  91. package/dist/libraries/orchestrator/src/sagas/utils/index.d.ts +1 -1
  92. package/dist/libraries/plugin-utils/src/plugin-service/error.d.ts +1 -1
  93. package/dist/libraries/plugin-utils/src/plugin-service/rdn.d.ts +1 -1
  94. package/dist/libraries/plugin-utils/src/plugin-service/theme.d.ts +2 -2
  95. package/dist/modules/add-to-cart/src/components/catalog-quantity-counter/factory.d.ts +0 -1
  96. package/dist/modules/add-to-cart/src/components/catalog-radio-group/factory.d.ts +0 -1
  97. package/dist/modules/add-to-cart/src/components/catalog-response-button/factory.d.ts +0 -1
  98. package/dist/modules/add-to-cart/src/components/escape-hatch/factory.d.ts +0 -1
  99. package/dist/modules/instant-purchase/src/components/catalog-response-button/factory.d.ts +0 -1
  100. package/dist/modules/instant-purchase/src/components/escape-hatch/factory.d.ts +0 -1
  101. package/dist/modules/layouts-xp-sandbox/src/components/escape-hatch/factory.d.ts +0 -1
  102. package/dist/modules/layouts-xp-sandbox/src/reducers/mock/reducer.d.ts +1 -1
  103. package/dist/modules/standard-marketing/src/reducers/mock/reducer.d.ts +1 -1
  104. package/package.json +2 -3
@@ -1,8 +1,8 @@
1
1
  import { CallEffect, SelectEffect, PutEffect, AllEffect } from 'redux-saga/effects';
2
2
  import { PrepareSignal, RaiseSignal } from '../../../../domain/src/behaviors';
3
3
  import { RDNInterface } from '@rokt/plugin';
4
- import { ProcessSignals } from '../../../../orchestrator/src/actions';
5
- import { QueuedSignal } from '../../../../orchestrator/src/models';
4
+ import { ProcessSignals } from '../../actions';
5
+ import { QueuedSignal } from '../../models';
6
6
  export declare function raiseSignal(action: RaiseSignal): Generator<PutEffect, void, never>;
7
7
  export declare function prepareSignal(action: PrepareSignal): Generator<PutEffect, void, never>;
8
8
  export declare function processSignals(rdn: RDNInterface, _action: ProcessSignals): Generator<SelectEffect | CallEffect | PutEffect | AllEffect<Generator<CallEffect | PutEffect, void, never>>, void, string | Array<QueuedSignal> | undefined>;
@@ -1,2 +1,2 @@
1
- import { ReportError } from '../../../../orchestrator/src/actions';
1
+ import { ReportError } from '../../actions';
2
2
  export declare function makePluginWarningAction(err: unknown, message: string, originErrorCode: string, additionalInfo?: Record<string, unknown>): ReportError;
@@ -4,12 +4,12 @@ export * from './errors';
4
4
  export * from './window';
5
5
  declare const _default: {
6
6
  isWindow(value: unknown): value is windowUtils.WindowRef;
7
- makePluginWarningAction(err: unknown, message: string, originErrorCode: string, additionalInfo?: Record<string, unknown> | undefined): import("../..").ReportError;
7
+ makePluginWarningAction(err: unknown, message: string, originErrorCode: string, additionalInfo?: Record<string, unknown>): import("../../../../orchestrator/src/actions").ReportError;
8
8
  openLink({ url, urlBehavior, external }: {
9
9
  url: string;
10
- urlBehavior: import("@rokt/domain/src/models").PluginUrlBehavior;
10
+ urlBehavior: import("../../../../domain/src/models").PluginUrlBehavior;
11
11
  external: {
12
- partner: import("../../../../../index").SenderReceiver;
12
+ partner: import("../../../../../index").PartnerInteractionService;
13
13
  };
14
14
  }, injectedWindow?: Pick<Window, "top" | "open" | "RoktWebViewSDK">): Promise<windowUtils.WindowRef | null>;
15
15
  };
@@ -1,4 +1,4 @@
1
- import { BreakpointState } from '../../../../orchestrator/src/models';
1
+ import { BreakpointState } from '../../models';
2
2
  export declare function getActiveBreakpointWidth(state: {
3
3
  breakpoint: BreakpointState;
4
4
  }): number;
@@ -1,4 +1,4 @@
1
- import { CustomStatesIndexState, CustomStatesState } from '../../../../orchestrator/src/models';
1
+ import { CustomStatesIndexState, CustomStatesState } from '../../models';
2
2
  export declare function getModuleCustomStates(state: {
3
3
  customStates: CustomStatesIndexState;
4
4
  }, moduleId: number): CustomStatesState;
@@ -1,8 +1,8 @@
1
1
  import { Dispatch, EnhancedStore } from '@reduxjs/toolkit';
2
- import { CoreSagasActions, CoreStateActions } from '../../../orchestrator/src/actions';
3
- import { CoreAppState } from '../../../orchestrator/src/models';
4
2
  import { StoreExtension } from '../../../dcui-components/src/index';
5
3
  import { PluginService } from '../../../plugin-utils/src/index';
4
+ import { CoreSagasActions, CoreStateActions } from '../actions';
5
+ import { CoreAppState } from '../models';
6
6
  export type AppDispatch = Dispatch<CoreStateActions> & Dispatch<CoreSagasActions>;
7
7
  export type ExtendableStore = {
8
8
  extend(extension: StoreExtension): void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeCarouselDistribution(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeEscapeHatch(schema: LayoutSchemaModel, _testId?: string): JSX.Element | void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeGroupedDistribution(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeOneByOneDistribution(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeProgressControl(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeProgressIndicator(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeStackedDistribution(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -14,7 +14,7 @@ export declare function makeStoreProxyInitialState(): {
14
14
  initialised: boolean;
15
15
  };
16
16
  progression: null;
17
- customStates: import("./models").CustomStatesState;
17
+ customStates: import("../../layout-renderer-utils/src/index").CustomStatesState;
18
18
  domainStates: import("./models").LayoutVariantDomainStatesState;
19
19
  };
20
20
  export declare function makeGlobalStoreProxy(store: AppStore): GlobalStore;
@@ -2,6 +2,6 @@ import * as distributionUtils from './distribution';
2
2
  export { Distribution } from './distribution';
3
3
  declare const _default: {
4
4
  getDistribution(layout: import("@rokt/dcui-layout-schema").LayoutSchemaModel): distributionUtils.Distribution | undefined;
5
- getDistributionViewableItems(distribution: distributionUtils.Distribution | undefined): number[] | undefined;
5
+ getDistributionViewableItems(distribution: distributionUtils.Distribution | undefined): Array<number> | undefined;
6
6
  };
7
7
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { PluginInterface } from '@rokt/plugin';
2
- export declare const makeErrorService: (pluginInterface: Pick<PluginInterface, 'error'>) => {
2
+ export declare const makeErrorService: (pluginInterface: Pick<PluginInterface, "error">) => {
3
3
  raise: (options: import("@rokt/plugin").RaiseErrorOptions) => Promise<void>;
4
4
  };
@@ -1,2 +1,2 @@
1
1
  import { PluginInterface, RDNInterface } from '@rokt/plugin';
2
- export declare const makeRDNService: (pluginInterface: Pick<PluginInterface, 'rdn'>) => RDNInterface;
2
+ export declare const makeRDNService: (pluginInterface: Pick<PluginInterface, "rdn">) => RDNInterface;
@@ -1,10 +1,10 @@
1
1
  import { PluginInterface } from '@rokt/plugin';
2
- export declare const makeThemeService: (pluginInterface: Pick<PluginInterface, 'theme'>) => {
2
+ export declare const makeThemeService: (pluginInterface: Pick<PluginInterface, "theme">) => {
3
3
  configurables: import("@rokt/plugin/interface/subscriber").Subscriber<Record<string, string>>;
4
4
  fonts: import("@rokt/plugin/interface/subscriber").Subscriber<{
5
5
  fontFamily: string;
6
6
  fontStyle: string;
7
7
  fontWeight: string;
8
- src: string[];
8
+ src: Array<string>;
9
9
  }[]>;
10
10
  };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeCatalogQuantityCounter(schema: LayoutSchemaModel): JSX.Element | void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeCatalogRadioGroup(schema: LayoutSchemaModel): JSX.Element | void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeCatalogResponseButton(schema: LayoutSchemaModel, testId?: string): JSX.Element | void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeEscapeHatch(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeCatalogResponseButton(schema: LayoutSchemaModel, testId?: string): JSX.Element | void;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeEscapeHatch(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
3
2
  export declare function tryMakeEscapeHatch(schema: LayoutSchemaModel): JSX.Element | undefined;
@@ -6,4 +6,4 @@ export type MockUpdateAction = {
6
6
  type: typeof MOCK_UPDATE;
7
7
  };
8
8
  export type MockActions = MockUpdateAction;
9
- export declare function mockReducer(state: null | undefined, action: AnyAction): MockState;
9
+ export declare function mockReducer(state: MockState | undefined, action: AnyAction): MockState;
@@ -6,4 +6,4 @@ export type MockUpdateAction = {
6
6
  type: typeof MOCK_UPDATE;
7
7
  };
8
8
  export type MockActions = MockUpdateAction;
9
- export declare function mockReducer(state: null | undefined, action: AnyAction): MockState;
9
+ export declare function mockReducer(state: MockState | undefined, action: AnyAction): MockState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokt/dcui-orchestrator",
3
- "version": "0.0.2-rc.2",
3
+ "version": "0.0.2-rc.4",
4
4
  "description": "Rokt's DCUI rendering process",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -29,8 +29,7 @@
29
29
  "rimraf": "^3.0.2",
30
30
  "rollup": "^4.31.0",
31
31
  "ts-loader": "^9.2.8",
32
- "tsc-alias": "^1.8.10",
33
- "typescript": "5.1.6"
32
+ "tsc-alias": "^1.8.10"
34
33
  },
35
34
  "bundleDependencies": [
36
35
  "@rokt/dcui-layout-schema",