@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
|
@@ -8,6 +8,6 @@ export type StateOnlyObject = {
|
|
|
8
8
|
export type ExtendableDataMapper = ReturnType<typeof createDataMapper>;
|
|
9
9
|
export declare function createDataMapper(data: object, namespace?: string): {
|
|
10
10
|
(template: string): string;
|
|
11
|
-
(stateObj: StateOnlyObject, namespace?: string):
|
|
12
|
-
(dataObj: DataObject, namespace: string):
|
|
11
|
+
(stateObj: StateOnlyObject, namespace?: string): any;
|
|
12
|
+
(dataObj: DataObject, namespace: string): any;
|
|
13
13
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LayoutSchemaModel } from '@rokt/dcui-layout-schema';
|
|
2
2
|
import { Log } from '../../../../domain/src/models';
|
|
3
|
-
export declare function createNodeMapper(reporter?: (log: Log) => void): (node: LayoutSchemaModel, overrides?: Partial<Record<
|
|
3
|
+
export declare function createNodeMapper(reporter?: (log: Log) => void): (node: LayoutSchemaModel, overrides?: Partial<Record<"Row" | "InlineContainer" | "FlowRow" | "Column" | "ScrollableColumn" | "ScrollableRow" | "ZStack" | "StaticImage" | "DataImage" | "RichText" | "BasicText" | "ProgressIndicator" | "CreativeResponse" | "OneByOneDistribution" | "Overlay" | "BottomSheet" | "When" | "StaticLink" | "CloseButton" | "StackedDistribution" | "CarouselDistribution" | "ProgressControl" | "GroupedDistribution" | "DataIcon" | "StaticIcon" | "SlideStateTrigger" | "ToggleButtonStateTrigger" | "TimerStateTrigger" | "CatalogStackedCollection" | "CatalogResponseButton" | "CatalogQuantityOption" | "CatalogRadioGroup" | "CatalogQuantityCounter" | "EscapeHatch", (schema: LayoutSchemaModel, testId?: string) => JSX.Element | void>> | undefined, testId?: string) => JSX.Element;
|
package/dist/libraries/dcui-components/src/components/static-data-mapper/static-data-mapper.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ export type StaticDataValues<Obj extends {
|
|
|
14
14
|
}, Namespace extends keyof Obj, Key extends keyof Obj[Namespace] = keyof Obj[Namespace]> = Obj[Namespace][Key];
|
|
15
15
|
export type ExtendableStaticDataMapper = ReturnType<typeof createStaticDataMapper>;
|
|
16
16
|
export declare function createStaticDataMapper(data: Partial<StaticDataObject>): {
|
|
17
|
-
<Namespace extends keyof StaticDataObject>(dataKey: string, namespace: Namespace): StaticDataValues<StaticDataObject, Namespace> | undefined;
|
|
18
|
-
(data: Partial<StaticDataObject>):
|
|
17
|
+
<Namespace extends keyof StaticDataObject>(dataKey: string, namespace: Namespace): StaticDataValues<StaticDataObject, Namespace, keyof StaticDataObject[Namespace]> | undefined;
|
|
18
|
+
(data: Partial<StaticDataObject>): any;
|
|
19
19
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { DCUIScopeableStylingMapper } from './style-mapper';
|
|
2
3
|
import { AnyStyleProperty, StyleBlockDefinition, StylesFor } from './types';
|
|
3
4
|
import { ConditionalStyleTransition, LayoutStyle, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
@@ -10,7 +11,7 @@ type Styles<NodeStyles extends StyleTypeConstraint> = {
|
|
|
10
11
|
classnames: undefined | StylesFor<NodeStyles>;
|
|
11
12
|
mapperRef: DCUIScopeableStylingMapper;
|
|
12
13
|
};
|
|
13
|
-
export declare const StyleConsumer: <NodeStyles extends StyleTypeConstraint
|
|
14
|
+
export declare const StyleConsumer: <NodeStyles extends StyleTypeConstraint<object>>(props: {
|
|
14
15
|
styles: NodeStyles;
|
|
15
16
|
children: (styles: Styles<NodeStyles>) => JSX.Element;
|
|
16
17
|
}) => JSX.Element;
|
|
@@ -6,7 +6,7 @@ type StylingProperties<NodeStyles> = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const memoCreateStylingMapper: typeof createStylingMapper;
|
|
8
8
|
export declare function createStylingMapper(breakpoints: Array<number>, pluginId: string, uniqueIndex?: number, container?: Node): {
|
|
9
|
-
(scopeClass: string):
|
|
10
|
-
<ElementStyles extends StylingProperties<AnyStyleProperty>, TransitionStyles extends object>(schema: LayoutStyle<ElementStyles, TransitionStyles>, useOwnStates?: boolean): Record<
|
|
9
|
+
(scopeClass: string): any;
|
|
10
|
+
<ElementStyles extends StylingProperties<AnyStyleProperty>, TransitionStyles extends object>(schema: LayoutStyle<ElementStyles, TransitionStyles>, useOwnStates?: boolean): Record<never, string>;
|
|
11
11
|
};
|
|
12
12
|
export {};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { DimensionHeightFitValue, DimensionHeightValue, DimensionWidthFitValue, DimensionWidthValue } from '@rokt/dcui-layout-schema';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export declare function dimensionValueTransformer(allowedFitValues: Array<DimensionWidthFitValue | DimensionHeightFitValue>): <K extends keyof import("../types").AnyStyleProperty, K2 extends keyof Required<{
|
|
3
|
+
dimension?: import("@rokt/dcui-layout-schema").DimensionStylingProperties | undefined;
|
|
4
|
+
flexChild?: import("@rokt/dcui-layout-schema").FlexChildStylingProperties | undefined;
|
|
5
|
+
spacing?: import("@rokt/dcui-layout-schema").SpacingStylingProperties | undefined;
|
|
6
|
+
background?: import("@rokt/dcui-layout-schema").BackgroundStylingProperties | undefined;
|
|
7
|
+
text?: import("@rokt/dcui-layout-schema").TextStylingProperties | undefined;
|
|
8
|
+
border?: import("@rokt/dcui-layout-schema").BorderStylingProperties | undefined;
|
|
9
|
+
container?: import("@rokt/dcui-layout-schema").ContainerStylingProperties | undefined;
|
|
10
|
+
}>[K]>(categoryKey: K, propertyKey: K2, dimensionValue: DimensionHeightValue | DimensionWidthValue | undefined | null) => string;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare function mappedValueTransformer<T extends object>(valueMap: T): <K extends keyof import("../types").AnyStyleProperty, K2 extends keyof Required<{
|
|
2
|
+
dimension?: import("@rokt/dcui-layout-schema").DimensionStylingProperties | undefined;
|
|
3
|
+
flexChild?: import("@rokt/dcui-layout-schema").FlexChildStylingProperties | undefined;
|
|
4
|
+
spacing?: import("@rokt/dcui-layout-schema").SpacingStylingProperties | undefined;
|
|
5
|
+
background?: import("@rokt/dcui-layout-schema").BackgroundStylingProperties | undefined;
|
|
6
|
+
text?: import("@rokt/dcui-layout-schema").TextStylingProperties | undefined;
|
|
7
|
+
border?: import("@rokt/dcui-layout-schema").BorderStylingProperties | undefined;
|
|
8
|
+
container?: import("@rokt/dcui-layout-schema").ContainerStylingProperties | undefined;
|
|
9
|
+
}>[K]>(categoryKey: K, propertyKey: K2, val?: keyof T | null | undefined) => string;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import { AllCategoryStylingProperties, AllStylingProperties } from '../types';
|
|
2
1
|
export type Axis = 'X' | 'Y' | 'Z';
|
|
3
|
-
export declare function rotateTransformer(axis: Axis): <K extends keyof
|
|
2
|
+
export declare function rotateTransformer(axis: Axis): <K extends keyof import("../types").AnyStyleProperty, K2 extends keyof Required<{
|
|
3
|
+
dimension?: import("@rokt/dcui-layout-schema").DimensionStylingProperties | undefined;
|
|
4
|
+
flexChild?: import("@rokt/dcui-layout-schema").FlexChildStylingProperties | undefined;
|
|
5
|
+
spacing?: import("@rokt/dcui-layout-schema").SpacingStylingProperties | undefined;
|
|
6
|
+
background?: import("@rokt/dcui-layout-schema").BackgroundStylingProperties | undefined;
|
|
7
|
+
text?: import("@rokt/dcui-layout-schema").TextStylingProperties | undefined;
|
|
8
|
+
border?: import("@rokt/dcui-layout-schema").BorderStylingProperties | undefined;
|
|
9
|
+
container?: import("@rokt/dcui-layout-schema").ContainerStylingProperties | undefined;
|
|
10
|
+
}>[K]>(categoryKey: K, propertyKey: K2, value: unknown) => string;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const DataMapperContext: import("react").Context<{
|
|
2
3
|
(template: string): string;
|
|
3
|
-
(stateObj: import("
|
|
4
|
-
(dataObj: import("
|
|
4
|
+
(stateObj: import("../components/data-mapper/data-mapper").StateOnlyObject, namespace?: string | undefined): any;
|
|
5
|
+
(dataObj: import("../components/data-mapper/data-mapper").DataObject, namespace: string): any;
|
|
5
6
|
}>;
|
|
6
7
|
export declare const DataMapperConsumer: import("react").Consumer<{
|
|
7
8
|
(template: string): string;
|
|
8
|
-
(stateObj: import("
|
|
9
|
-
(dataObj: import("
|
|
9
|
+
(stateObj: import("../components/data-mapper/data-mapper").StateOnlyObject, namespace?: string | undefined): any;
|
|
10
|
+
(dataObj: import("../components/data-mapper/data-mapper").DataObject, namespace: string): any;
|
|
10
11
|
}>;
|
|
11
12
|
export declare const DataMapperProvider: import("react").Provider<{
|
|
12
13
|
(template: string): string;
|
|
13
|
-
(stateObj: import("
|
|
14
|
-
(dataObj: import("
|
|
14
|
+
(stateObj: import("../components/data-mapper/data-mapper").StateOnlyObject, namespace?: string | undefined): any;
|
|
15
|
+
(dataObj: import("../components/data-mapper/data-mapper").DataObject, namespace: string): any;
|
|
15
16
|
}>;
|
|
16
17
|
export declare const useDataMapper: () => {
|
|
17
18
|
(template: string): string;
|
|
18
|
-
(stateObj: import("
|
|
19
|
-
(dataObj: import("
|
|
19
|
+
(stateObj: import("../components/data-mapper/data-mapper").StateOnlyObject, namespace?: string | undefined): any;
|
|
20
|
+
(dataObj: import("../components/data-mapper/data-mapper").DataObject, namespace: string): any;
|
|
20
21
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { GlobalActions } from '../../../domain/src/behaviors';
|
|
2
3
|
export declare const GlobalActionsContext: import("react").Context<(action: GlobalActions) => void>;
|
|
3
4
|
export declare const useGlobalActions: () => (action: GlobalActions) => void;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const StaticDataMapperContext: import("react").Context<{
|
|
2
|
-
<Namespace extends keyof import("
|
|
3
|
-
(data: Partial<import("
|
|
3
|
+
<Namespace extends keyof import("../components/static-data-mapper/static-data-mapper").StaticDataObject>(dataKey: string, namespace: Namespace): import("../components/static-data-mapper/static-data-mapper").StaticDataValues<import("../components/static-data-mapper/static-data-mapper").StaticDataObject, Namespace, keyof import("../components/static-data-mapper/static-data-mapper").StaticDataObject[Namespace]> | undefined;
|
|
4
|
+
(data: Partial<import("../components/static-data-mapper/static-data-mapper").StaticDataObject>): any;
|
|
4
5
|
}>;
|
|
5
6
|
export declare const StaticDataMapperConsumer: import("react").Consumer<{
|
|
6
|
-
<Namespace extends keyof import("
|
|
7
|
-
(data: Partial<import("
|
|
7
|
+
<Namespace extends keyof import("../components/static-data-mapper/static-data-mapper").StaticDataObject>(dataKey: string, namespace: Namespace): import("../components/static-data-mapper/static-data-mapper").StaticDataValues<import("../components/static-data-mapper/static-data-mapper").StaticDataObject, Namespace, keyof import("../components/static-data-mapper/static-data-mapper").StaticDataObject[Namespace]> | undefined;
|
|
8
|
+
(data: Partial<import("../components/static-data-mapper/static-data-mapper").StaticDataObject>): any;
|
|
8
9
|
}>;
|
|
9
10
|
export declare const StaticDataMapperProvider: import("react").Provider<{
|
|
10
|
-
<Namespace extends keyof import("
|
|
11
|
-
(data: Partial<import("
|
|
11
|
+
<Namespace extends keyof import("../components/static-data-mapper/static-data-mapper").StaticDataObject>(dataKey: string, namespace: Namespace): import("../components/static-data-mapper/static-data-mapper").StaticDataValues<import("../components/static-data-mapper/static-data-mapper").StaticDataObject, Namespace, keyof import("../components/static-data-mapper/static-data-mapper").StaticDataObject[Namespace]> | undefined;
|
|
12
|
+
(data: Partial<import("../components/static-data-mapper/static-data-mapper").StaticDataObject>): any;
|
|
12
13
|
}>;
|
|
13
|
-
export declare const useImageMapper: (imageKey: string) => import("
|
|
14
|
-
export declare const useIconMapper: (iconKey: string) => import("
|
|
15
|
-
export declare const useLinkMapper: (linkKey: string) => import("
|
|
14
|
+
export declare const useImageMapper: (imageKey: string) => import("@rokt/domain/src/models").PluginImage | undefined;
|
|
15
|
+
export declare const useIconMapper: (iconKey: string) => import("@rokt/domain/src/models").PluginCreativeIcon | undefined;
|
|
16
|
+
export declare const useLinkMapper: (linkKey: string) => import("@rokt/domain/src/models").PluginCreativeLink | undefined;
|
|
16
17
|
export declare const useCopyMapper: (copyKey: string) => string | undefined;
|
|
17
|
-
export declare const useResponseOptionsMapper: (responseOptionKey: string) => import("
|
|
18
|
+
export declare const useResponseOptionsMapper: (responseOptionKey: string) => import("@rokt/domain/src/models").PluginCreativeResponseOption | undefined;
|
|
18
19
|
export declare const useStaticDataMapper: () => {
|
|
19
|
-
<Namespace extends keyof import("
|
|
20
|
-
(data: Partial<import("
|
|
20
|
+
<Namespace extends keyof import("../components/static-data-mapper/static-data-mapper").StaticDataObject>(dataKey: string, namespace: Namespace): import("../components/static-data-mapper/static-data-mapper").StaticDataValues<import("../components/static-data-mapper/static-data-mapper").StaticDataObject, Namespace, keyof import("../components/static-data-mapper/static-data-mapper").StaticDataObject[Namespace]> | undefined;
|
|
21
|
+
(data: Partial<import("../components/static-data-mapper/static-data-mapper").StaticDataObject>): any;
|
|
21
22
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fulfillment,
|
|
1
|
+
import { Fulfillment, PluginCreativeFulfillmentResponseOption, PluginCreativeExternalResponseOption, PluginCreativeCaptureOnlyResponseOption, PluginCreativeUrlResponseOption } from '../models';
|
|
2
2
|
export declare const OFFER_ENGAGEMENT = "GLOBAL/OFFER_ENGAGEMENT";
|
|
3
3
|
export interface OfferEngagement {
|
|
4
4
|
type: typeof OFFER_ENGAGEMENT;
|
|
@@ -12,9 +12,16 @@ export interface OfferEngagementFulfillmentPayload {
|
|
|
12
12
|
responseOption: PluginCreativeFulfillmentResponseOption;
|
|
13
13
|
fulfillment: Fulfillment;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export interface OfferEngagementUrlPayload extends PluginCreativeUrlResponseOption {
|
|
16
|
+
accountID: string;
|
|
17
|
+
referralCreativeID?: string;
|
|
18
|
+
}
|
|
19
|
+
export type OfferEngagementCaptureOnlyPayload = PluginCreativeCaptureOnlyResponseOption;
|
|
16
20
|
export type OfferEngagementExternalPayload = PluginCreativeExternalResponseOption;
|
|
17
|
-
export type OfferEngagementPayload = OfferEngagementFulfillmentPayload |
|
|
21
|
+
export type OfferEngagementPayload = OfferEngagementFulfillmentPayload | OfferEngagementUrlPayload | OfferEngagementCaptureOnlyPayload | OfferEngagementExternalPayload;
|
|
18
22
|
export declare function isFulfillmentPayload(value: unknown): value is OfferEngagementFulfillmentPayload;
|
|
19
23
|
export declare function isExternalPayload(value: unknown): value is OfferEngagementExternalPayload;
|
|
20
|
-
export declare function
|
|
24
|
+
export declare function isUrlPayload(value: unknown): value is OfferEngagementUrlPayload;
|
|
25
|
+
export declare function isCaptureOnlyPayload(value: unknown): value is OfferEngagementCaptureOnlyPayload;
|
|
26
|
+
export declare function makeCaptureOnlyOfferEngagementPayload(offerPayload?: Partial<OfferEngagementCaptureOnlyPayload>): OfferEngagementCaptureOnlyPayload;
|
|
27
|
+
export declare function makeUrlOfferEngagementPayload(offerPayload?: Partial<OfferEngagementUrlPayload>): OfferEngagementUrlPayload;
|
|
@@ -4,13 +4,21 @@ export type OutboundInstantPurchaseEventPayload = {
|
|
|
4
4
|
name: 'CART_ITEM_INSTANT_PURCHASE';
|
|
5
5
|
body: Record<string, PluginCartItem | null>;
|
|
6
6
|
};
|
|
7
|
+
export type OutboundRealtimeOfferFulfillmentReferralEventPayload = {
|
|
8
|
+
name: 'REALTIME_OFFER_FULFILLMENT_REFERRAL';
|
|
9
|
+
body: {
|
|
10
|
+
rclid: string;
|
|
11
|
+
accountID: string;
|
|
12
|
+
referralCreativeID: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
7
15
|
export type OutboundUpdateCartEventPayload = {
|
|
8
16
|
name: 'V2_CART_ITEM_UPDATED';
|
|
9
17
|
body: Record<string, PluginCartItem | null>;
|
|
10
18
|
};
|
|
11
|
-
export
|
|
12
|
-
name:
|
|
13
|
-
}
|
|
19
|
+
export type OutboundPartnerEventPayload<EventType extends OutboundPartnerEvent> = EventType extends 'REALTIME_OFFER_FULFILLMENT_REFERRAL' ? OutboundRealtimeOfferFulfillmentReferralEventPayload : EventType extends 'V2_CART_ITEM_UPDATED' | 'CART_ITEM_INSTANT_PURCHASE' ? never : {
|
|
20
|
+
name: EventType;
|
|
21
|
+
};
|
|
14
22
|
export type SendPartner<EventType extends OutboundPartnerEvent> = {
|
|
15
23
|
type: typeof SEND_PARTNER;
|
|
16
24
|
payload: OutboundPartnerEventPayload<EventType> | OutboundUpdateCartEventPayload | OutboundInstantPurchaseEventPayload;
|
|
@@ -5,7 +5,7 @@ import { LayoutCreativeLink } from './layout-creative-link';
|
|
|
5
5
|
import { LayoutCreativeResponseOption } from './layout-creative-response-option';
|
|
6
6
|
export interface LayoutCreative {
|
|
7
7
|
instanceGuid: string;
|
|
8
|
-
referralCreativeId?:
|
|
8
|
+
referralCreativeId?: string;
|
|
9
9
|
icons: Record<string, LayoutCreativeIcon>;
|
|
10
10
|
responseOptionsMap: Record<string, LayoutCreativeResponseOption>;
|
|
11
11
|
copy: Record<string, string>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LayoutCreative } from './layout-creative';
|
|
2
2
|
import { LayoutCatalogItem } from './layout-catalog-item';
|
|
3
3
|
export interface LayoutOffer {
|
|
4
|
-
campaignId:
|
|
5
|
-
accountId:
|
|
4
|
+
campaignId: string;
|
|
5
|
+
accountId: string;
|
|
6
6
|
maxTotalItemsQtyInOffer: number;
|
|
7
7
|
creative: LayoutCreative;
|
|
8
8
|
metadata: Record<string, string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type CatalogOutboundPartnerEvent = 'V2_CART_ITEM_UPDATED' | 'CART_ITEM_INSTANT_PURCHASE';
|
|
2
|
-
export type OfferOutboundPartnerEvent = CatalogOutboundPartnerEvent | 'OFFER_ENGAGEMENT' | 'POSITIVE_ENGAGEMENT';
|
|
2
|
+
export type OfferOutboundPartnerEvent = CatalogOutboundPartnerEvent | 'OFFER_ENGAGEMENT' | 'POSITIVE_ENGAGEMENT' | 'REALTIME_OFFER_FULFILLMENT_REFERRAL';
|
|
3
3
|
export type OutboundPartnerEvent = OfferOutboundPartnerEvent | 'PLACEMENT_CLOSED' | 'PLACEMENT_COMPLETED' | 'PLACEMENT_INTERACTIVE' | 'PLACEMENT_FAILURE';
|
|
4
4
|
export declare function isOutboundPartnerEvent(value: unknown): value is OutboundPartnerEvent;
|
|
5
5
|
export declare function isOfferOutboundPartnerEvent(value: unknown): value is OfferOutboundPartnerEvent;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { PluginConversionType } from './plugin-conversion-type';
|
|
1
2
|
import { PluginCreativeResponseActionType } from './plugin-creative-response-action-type';
|
|
2
3
|
import { PluginSignalType } from './plugin-signal-type';
|
|
3
4
|
import { PluginUrlBehavior } from './plugin-url-behavior';
|
|
4
|
-
export type PluginCreativeResponseOption = PluginCreativeFulfillmentResponseOption |
|
|
5
|
+
export type PluginCreativeResponseOption = PluginCreativeFulfillmentResponseOption | PluginCreativeUrlResponseOption | PluginCreativeCaptureOnlyResponseOption | PluginCreativeExternalResponseOption;
|
|
5
6
|
export interface PluginCreativeFulfillmentResponseOption {
|
|
6
7
|
id: string;
|
|
7
8
|
action: PluginCreativeResponseActionType.Fulfillment;
|
|
@@ -14,9 +15,23 @@ export interface PluginCreativeFulfillmentResponseOption {
|
|
|
14
15
|
url?: string;
|
|
15
16
|
urlBehavior?: PluginUrlBehavior;
|
|
16
17
|
}
|
|
17
|
-
export interface
|
|
18
|
+
export interface PluginCreativeUrlResponseOption {
|
|
18
19
|
id: string;
|
|
19
|
-
action: PluginCreativeResponseActionType.
|
|
20
|
+
action: PluginCreativeResponseActionType.Url;
|
|
21
|
+
instanceGuid: string;
|
|
22
|
+
signalType: PluginSignalType;
|
|
23
|
+
shortLabel: string;
|
|
24
|
+
longLabel?: string;
|
|
25
|
+
shortSuccessLabel?: string;
|
|
26
|
+
isPositive: boolean;
|
|
27
|
+
url?: string;
|
|
28
|
+
urlBehavior?: PluginUrlBehavior;
|
|
29
|
+
conversionType?: PluginConversionType;
|
|
30
|
+
rclid?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface PluginCreativeCaptureOnlyResponseOption {
|
|
33
|
+
id: string;
|
|
34
|
+
action: PluginCreativeResponseActionType.CaptureOnly;
|
|
20
35
|
instanceGuid: string;
|
|
21
36
|
signalType: PluginSignalType;
|
|
22
37
|
shortLabel: string;
|
|
@@ -35,10 +50,12 @@ export interface PluginCreativeExternalResponseOption {
|
|
|
35
50
|
externalKey?: string;
|
|
36
51
|
}
|
|
37
52
|
export declare function makePluginResponseOption(data?: Partial<PluginCreativeResponseOption>): PluginCreativeResponseOption;
|
|
38
|
-
export declare function
|
|
53
|
+
export declare function makeUrlPluginResponseOption(data?: Partial<PluginCreativeUrlResponseOption>): PluginCreativeUrlResponseOption;
|
|
54
|
+
export declare function makeCaptureOnlyPluginResponseOption(data?: Partial<PluginCreativeCaptureOnlyResponseOption>): PluginCreativeCaptureOnlyResponseOption;
|
|
39
55
|
export declare function makeFulfillmentPluginResponseOption(data?: Partial<PluginCreativeFulfillmentResponseOption>): PluginCreativeFulfillmentResponseOption;
|
|
40
56
|
export declare function makeExternalPluginResponseOption(data?: Partial<PluginCreativeExternalResponseOption>): PluginCreativeExternalResponseOption;
|
|
41
57
|
export declare function isResponse(value: unknown): value is PluginCreativeResponseOption;
|
|
42
58
|
export declare function isFulfillmentResponseOption(value: unknown): value is PluginCreativeFulfillmentResponseOption;
|
|
43
|
-
export declare function
|
|
59
|
+
export declare function isUrlResponseOption(value: unknown): value is PluginCreativeUrlResponseOption;
|
|
60
|
+
export declare function isCaptureOnlyResponseOption(value: unknown): value is PluginCreativeCaptureOnlyResponseOption;
|
|
44
61
|
export declare function isExternalResponseOption(value: unknown): value is PluginCreativeExternalResponseOption;
|
|
@@ -5,7 +5,7 @@ import { PluginCreativeLink } from './plugin-creative-link';
|
|
|
5
5
|
import { PluginCreativeResponseOption } from './plugin-creative-response-option';
|
|
6
6
|
export interface PluginCreative {
|
|
7
7
|
instanceGuid: string;
|
|
8
|
-
referralCreativeId?:
|
|
8
|
+
referralCreativeId?: string;
|
|
9
9
|
icons: Record<string, PluginCreativeIcon>;
|
|
10
10
|
responseOptionsMap: Record<string, PluginCreativeResponseOption>;
|
|
11
11
|
copy: Record<string, string>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PluginCreative } from './plugin-creative';
|
|
2
2
|
import { PluginCatalogItem } from './plugin-catalog-item';
|
|
3
3
|
export interface PluginOffer {
|
|
4
|
-
campaignId:
|
|
5
|
-
accountId:
|
|
4
|
+
campaignId: string;
|
|
5
|
+
accountId: string;
|
|
6
6
|
maxTotalItemsQtyInOffer: number;
|
|
7
7
|
creative: PluginCreative;
|
|
8
8
|
metadata: Record<string, string>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const ACTIVE_ADD: "ACTIVE/ADD";
|
|
2
|
+
export type ActiveAddAction = {
|
|
3
|
+
type: typeof ACTIVE_ADD;
|
|
4
|
+
payload: {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare const ACTIVE_DELETE: "ACTIVE/DELETE";
|
|
9
|
+
export type ActiveDeleteAction = {
|
|
10
|
+
type: typeof ACTIVE_DELETE;
|
|
11
|
+
payload: {
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type ActiveStateActions = ActiveAddAction | ActiveDeleteAction;
|