@rokt/dcui-orchestrator 0.0.2-rc.0 → 0.0.2-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/extensions/loading/src/skeleton.d.ts +1 -0
- package/dist/extensions/minimized-bottomsheet/src/components/bottom-sheet/connector.d.ts +1 -1
- package/dist/extensions/minimized-bottomsheet/src/components/bottom-sheet/factory.d.ts +4 -3
- package/dist/extensions/minimized-bottomsheet/src/components/bottom-sheet/hooks.d.ts +1 -0
- package/dist/extensions/minimized-bottomsheet/src/components/overlay/connector.d.ts +1 -1
- package/dist/extensions/minimized-bottomsheet/src/components/overlay/factory.d.ts +3 -2
- package/dist/index.cjs +22 -22
- package/dist/index.js +27 -27
- package/dist/libraries/dcui-components/src/components/basic-text/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/catalog-quantity-option/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/catalog-stacked-collection/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/column/column.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/column/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/creative-response/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/data-icon/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/data-image/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/data-mapper/data-mapper.d.ts +2 -2
- package/dist/libraries/dcui-components/src/components/escape-hatch/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/extension/escape-hatch.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/extension/models.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/flow-row/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/flow-row/flow-row.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/inline-container/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/inline-container/inline-container.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/node-mapper/node-mapper.d.ts +1 -1
- package/dist/libraries/dcui-components/src/components/rich-text/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/row/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/row/row.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/scrollable-column/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/scrollable-column/scrollable-column.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/scrollable-row/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/scrollable-row/scrollable-row.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/slide-state-trigger/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/static-data-mapper/static-data-mapper.d.ts +2 -2
- package/dist/libraries/dcui-components/src/components/static-icon/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/static-image/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/static-link/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/style-mapper/style-consumer.d.ts +2 -1
- package/dist/libraries/dcui-components/src/components/style-mapper/style-mapper.d.ts +2 -2
- package/dist/libraries/dcui-components/src/components/style-mapper/transformers/dimension-value-transformer.d.ts +9 -2
- package/dist/libraries/dcui-components/src/components/style-mapper/transformers/mapped-value-transformer.d.ts +9 -2
- package/dist/libraries/dcui-components/src/components/style-mapper/transformers/rotate-transformer.d.ts +9 -2
- package/dist/libraries/dcui-components/src/components/timer-state-trigger/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/toggle-button-state-trigger/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/when/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/zstack/factory.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/zstack/zstack.d.ts +1 -0
- package/dist/libraries/dcui-components/src/contexts/data-mapper-context.d.ts +9 -8
- package/dist/libraries/dcui-components/src/contexts/global-actions-context.d.ts +1 -0
- package/dist/libraries/dcui-components/src/contexts/global-state-context.d.ts +1 -0
- package/dist/libraries/dcui-components/src/contexts/interactivity-context.d.ts +1 -0
- package/dist/libraries/dcui-components/src/contexts/layout-schema-type-context.d.ts +1 -0
- package/dist/libraries/dcui-components/src/contexts/plugin-id-context.d.ts +1 -0
- package/dist/libraries/dcui-components/src/contexts/position-context.d.ts +1 -0
- package/dist/libraries/dcui-components/src/contexts/root-element-context.d.ts +1 -0
- package/dist/libraries/dcui-components/src/contexts/static-data-context.d.ts +13 -12
- package/dist/libraries/dcui-components/src/utils/node-factories.d.ts +1 -0
- package/dist/libraries/domain/src/behaviors/offer-engagement.d.ts +11 -4
- package/dist/libraries/domain/src/behaviors/send-partner.d.ts +11 -3
- package/dist/libraries/domain/src/models/layout/layout-creative.d.ts +1 -1
- package/dist/libraries/domain/src/models/layout/layout-offer.d.ts +2 -2
- package/dist/libraries/domain/src/models/partner-event.d.ts +1 -1
- package/dist/libraries/domain/src/models/plugin/index.d.ts +1 -0
- package/dist/libraries/domain/src/models/plugin/plugin-conversion-type.d.ts +4 -0
- package/dist/libraries/domain/src/models/plugin/plugin-creative-response-option.d.ts +22 -5
- package/dist/libraries/domain/src/models/plugin/plugin-creative.d.ts +1 -1
- package/dist/libraries/domain/src/models/plugin/plugin-offer.d.ts +2 -2
- package/dist/libraries/layout-renderer-utils/src/actions/active.d.ts +15 -0
- package/dist/libraries/layout-renderer-utils/src/actions/breakpoint.d.ts +22 -0
- package/dist/libraries/layout-renderer-utils/src/actions/custom-states.d.ts +11 -0
- package/dist/libraries/layout-renderer-utils/src/actions/error.d.ts +6 -0
- package/dist/libraries/layout-renderer-utils/src/actions/fonts.d.ts +7 -0
- package/dist/libraries/layout-renderer-utils/src/actions/index.d.ts +53 -0
- package/dist/libraries/layout-renderer-utils/src/actions/layout.d.ts +7 -0
- package/dist/libraries/layout-renderer-utils/src/actions/log.d.ts +13 -0
- package/dist/libraries/layout-renderer-utils/src/actions/overlay.d.ts +8 -0
- package/dist/libraries/layout-renderer-utils/src/actions/plugin.d.ts +9 -0
- package/dist/libraries/layout-renderer-utils/src/actions/serializable-cache.d.ts +22 -0
- package/dist/libraries/layout-renderer-utils/src/actions/settings.d.ts +7 -0
- package/dist/libraries/layout-renderer-utils/src/actions/signal.d.ts +17 -0
- package/dist/libraries/layout-renderer-utils/src/components/bottom-sheet/bottom-sheet.d.ts +17 -0
- package/dist/libraries/layout-renderer-utils/src/components/bottom-sheet/connector.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/components/bottom-sheet/factory.d.ts +10 -0
- package/dist/libraries/layout-renderer-utils/src/components/bottom-sheet/index.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/components/bottom-sheet/types.d.ts +44 -0
- package/dist/libraries/layout-renderer-utils/src/components/close-button/close-button.d.ts +46 -0
- package/dist/libraries/layout-renderer-utils/src/components/close-button/factory.d.ts +3 -0
- package/dist/libraries/layout-renderer-utils/src/components/close-button/index.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/components/fonts-stylesheet/fonts-stylesheet.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/components/fonts-stylesheet/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/components/fonts-stylesheet/load-fonts.d.ts +8 -0
- package/dist/libraries/layout-renderer-utils/src/components/index.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/components/overlay/connector.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/components/overlay/factory.d.ts +10 -0
- package/dist/libraries/layout-renderer-utils/src/components/overlay/index.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/components/overlay/overlay.d.ts +19 -0
- package/dist/libraries/layout-renderer-utils/src/components/overlay/types.d.ts +44 -0
- package/dist/libraries/layout-renderer-utils/src/components/overlay-wrapper/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/components/overlay-wrapper/overlay-wrapper.d.ts +10 -0
- package/dist/libraries/layout-renderer-utils/src/constant.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/environment.d.ts +7 -0
- package/dist/libraries/layout-renderer-utils/src/index.d.ts +9 -0
- package/dist/libraries/layout-renderer-utils/src/models/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/active.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/breakpoint.d.ts +5 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/custom-states.d.ts +5 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/fonts.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/index.d.ts +25 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/layout.d.ts +7 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/serializable-cache.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/signals.d.ts +14 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/active/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/active/reducer.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/breakpoint/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/breakpoint/reducer.d.ts +10 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/custom-states/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/custom-states/reducer.d.ts +5 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/fonts/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/fonts/reducer.d.ts +9 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/index.d.ts +28 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/layout/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/layout/reducer.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/serializable-cache/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/serializable-cache/reducer.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/settings/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/settings/reducer.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/signal/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/signal/reducer.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/breakpoint/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/breakpoint/sagas.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/custom-states/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/custom-states/sagas.d.ts +3 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/error/error-codes.d.ts +17 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/error/index.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/error/sagas.d.ts +6 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/index.d.ts +11 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/log/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/log/sagas.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/metric/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/metric/sagas.d.ts +5 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/open-link/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/open-link/sagas.d.ts +8 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/overlay/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/overlay/sagas.d.ts +3 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/plugin/channels.d.ts +5 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/plugin/index.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/plugin/sagas.d.ts +16 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/signal/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/signal/sagas.d.ts +8 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/utils/errors.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/utils/index.d.ts +16 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/utils/links.d.ts +12 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/utils/window.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/selectors/breakpoint/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/selectors/breakpoint/selectors.d.ts +16 -0
- package/dist/libraries/layout-renderer-utils/src/selectors/custom-state/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/selectors/custom-state/selectors.d.ts +7 -0
- package/dist/libraries/layout-renderer-utils/src/selectors/index.d.ts +3 -0
- package/dist/libraries/layout-renderer-utils/src/selectors/signal/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/selectors/signal/selectors.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/utils/index.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/utils/signals.d.ts +3 -0
- package/dist/libraries/layout-renderer-utils/src/utils/store-test-utils.d.ts +11 -0
- package/dist/libraries/orchestrator/src/components/carousel-distribution/factory.d.ts +1 -0
- package/dist/libraries/orchestrator/src/components/escape-hatch/factory.d.ts +1 -0
- package/dist/libraries/orchestrator/src/components/grouped-distribution/factory.d.ts +1 -0
- package/dist/libraries/orchestrator/src/components/one-by-one-distribution/factory.d.ts +1 -0
- package/dist/libraries/orchestrator/src/components/progress-control/factory.d.ts +1 -0
- package/dist/libraries/orchestrator/src/components/progress-indicator/connector.d.ts +1 -1
- package/dist/libraries/orchestrator/src/components/progress-indicator/factory.d.ts +1 -0
- package/dist/libraries/orchestrator/src/components/stacked-distribution/factory.d.ts +1 -0
- package/dist/libraries/orchestrator/src/global-store-proxy.d.ts +1 -1
- package/dist/libraries/orchestrator/src/models/state/index.d.ts +1 -1
- package/dist/libraries/orchestrator/src/reducers/index.d.ts +8 -8
- package/dist/libraries/orchestrator/src/sagas/offer-engagement/sagas.d.ts +2 -2
- package/dist/libraries/orchestrator/src/sagas/utils/index.d.ts +1 -1
- package/dist/libraries/orchestrator/src/store.d.ts +2 -2
- package/dist/libraries/plugin-utils/src/plugin-service/error.d.ts +1 -1
- package/dist/libraries/plugin-utils/src/plugin-service/rdn.d.ts +1 -1
- package/dist/libraries/plugin-utils/src/plugin-service/theme.d.ts +2 -2
- package/dist/libraries/saga-utils/src/sagas/forward-global-actions-excluding.d.ts +1 -2
- package/dist/libraries/saga-utils/src/utils/index.d.ts +1 -0
- package/dist/libraries/saga-utils/src/utils/is-realtime-fulfillment-referral.d.ts +4 -0
- package/dist/modules/add-to-cart/src/components/catalog-quantity-counter/factory.d.ts +1 -0
- package/dist/modules/add-to-cart/src/components/catalog-radio-group/factory.d.ts +1 -0
- package/dist/modules/add-to-cart/src/components/catalog-response-button/factory.d.ts +1 -0
- package/dist/modules/add-to-cart/src/components/escape-hatch/factory.d.ts +1 -0
- package/dist/modules/add-to-cart/src/store.d.ts +2 -2
- package/dist/modules/instant-purchase/src/components/catalog-response-button/factory.d.ts +1 -0
- package/dist/modules/instant-purchase/src/components/escape-hatch/factory.d.ts +1 -0
- package/dist/modules/instant-purchase/src/store.d.ts +2 -2
- package/dist/modules/layouts-xp-sandbox/src/components/escape-hatch/factory.d.ts +1 -0
- package/dist/modules/layouts-xp-sandbox/src/components/product-catalog-carousel/navigation.d.ts +2 -2
- package/dist/modules/layouts-xp-sandbox/src/reducers/mock/reducer.d.ts +1 -1
- package/dist/modules/layouts-xp-sandbox/src/store.d.ts +2 -2
- package/dist/modules/standard-marketing/src/reducers/mock/reducer.d.ts +1 -1
- package/dist/modules/standard-marketing/src/store.d.ts +2 -2
- package/node_modules/@rokt/plugin/package.json +0 -1
- 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,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,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,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,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,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,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 @@
|
|
|
1
|
+
export * from './fonts-stylesheet';
|
|
@@ -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,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';
|
package/dist/libraries/layout-renderer-utils/src/components/overlay-wrapper/overlay-wrapper.d.ts
ADDED
|
@@ -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,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,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 @@
|
|
|
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 @@
|
|
|
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;
|