@rokt/dcui-orchestrator 1.2.1-rc.3 → 1.2.1-rc.31
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/dist/index.cjs +43 -37
- package/dist/index.js +54 -48
- package/dist/libraries/dcui-components/src/components/data-mapper/data-mapper.d.ts +4 -0
- package/dist/libraries/dcui-components/src/components/index.d.ts +3 -0
- package/dist/libraries/dcui-components/src/components/paypal-button/index.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/paypal-button/paypal-button.d.ts +78 -0
- package/dist/libraries/dcui-components/src/components/paypal-button/paypal-wordmark.d.ts +8 -0
- package/dist/libraries/dcui-components/src/components/progress-control/index.d.ts +1 -0
- package/dist/libraries/dcui-components/src/components/progress-control/progress-control.d.ts +49 -0
- package/dist/libraries/dcui-components/src/components/progress-indicator/get-progress-indicator-state.d.ts +3 -0
- package/dist/libraries/dcui-components/src/components/progress-indicator/index.d.ts +3 -0
- package/dist/libraries/dcui-components/src/components/progress-indicator/progress-indicator.d.ts +8 -0
- package/dist/libraries/dcui-components/src/components/progress-indicator/types.d.ts +88 -0
- package/dist/libraries/dcui-components/src/contexts/data-mapper-context.d.ts +4 -0
- package/dist/libraries/dcui-components/src/contexts/index.d.ts +1 -0
- package/dist/libraries/dcui-components/src/contexts/lead-capture-offer-context.d.ts +5 -0
- package/dist/libraries/dcui-components/src/contexts/validators/validator-provider.d.ts +5 -3
- package/dist/libraries/dcui-components/src/failure-codes.d.ts +1 -0
- package/dist/libraries/domain/src/behaviors/continuous-child.d.ts +62 -0
- package/dist/libraries/domain/src/behaviors/custom-states.d.ts +1 -1
- package/dist/libraries/domain/src/behaviors/index.d.ts +1 -0
- package/dist/libraries/domain/src/behaviors/offer-engagement.d.ts +11 -0
- package/dist/libraries/domain/src/behaviors/send-partner.d.ts +14 -2
- package/dist/libraries/domain/src/behaviors/trigger-action.d.ts +3 -3
- package/dist/libraries/domain/src/models/child-layout-response.d.ts +6 -0
- package/dist/libraries/domain/src/models/index.d.ts +1 -0
- package/dist/libraries/domain/src/models/layout/layout-offer.d.ts +2 -0
- package/dist/libraries/domain/src/models/partner-event.d.ts +1 -1
- package/dist/libraries/domain/src/models/plugin/plugin-child-layout-model.d.ts +1 -0
- package/dist/libraries/domain/src/models/plugin/plugin-offer.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/actions/attributes.d.ts +7 -0
- package/dist/libraries/layout-renderer-utils/src/actions/index.d.ts +4 -1
- package/dist/libraries/layout-renderer-utils/src/models/state/attributes.d.ts +2 -0
- package/dist/libraries/layout-renderer-utils/src/models/state/index.d.ts +3 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/attributes/index.d.ts +1 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/attributes/reducer.d.ts +4 -0
- package/dist/libraries/layout-renderer-utils/src/reducers/index.d.ts +3 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/plugin/channels.d.ts +3 -3
- package/dist/libraries/layout-renderer-utils/src/sagas/plugin/display.d.ts +3 -0
- package/dist/libraries/layout-renderer-utils/src/sagas/plugin/sagas.d.ts +5 -2
- package/dist/libraries/module-connector/src/main.d.ts +1 -1
- package/dist/libraries/module-connector/src/models/gateway.d.ts +14 -3
- package/dist/libraries/module-connector/src/models/module-attributes.d.ts +3 -0
- package/dist/libraries/module-connector/src/models/module-connector-builder.d.ts +1 -0
- package/dist/libraries/module-utils/src/sagas/child-layouts/sagas.d.ts +2 -0
- package/dist/libraries/orchestrator/src/actions/index.d.ts +1 -0
- package/dist/libraries/orchestrator/src/components/progress-control/progress-control.d.ts +2 -45
- package/dist/libraries/orchestrator/src/components/progress-indicator/progress-indicator.d.ts +1 -9
- package/dist/libraries/orchestrator/src/components/progress-indicator/types.d.ts +1 -87
- package/dist/libraries/orchestrator/src/measurement/creative-measurement.d.ts +54 -0
- package/dist/libraries/orchestrator/src/reducers/index.d.ts +1 -0
- package/dist/libraries/orchestrator/src/sagas/child-layouts/continuous-child-host.d.ts +15 -0
- package/dist/libraries/orchestrator/src/sagas/child-layouts/continuous-child.d.ts +52 -0
- package/dist/libraries/orchestrator/src/sagas/index.d.ts +1 -1
- package/dist/libraries/plugin-utils/src/plugin-service/attributes.d.ts +7 -0
- package/dist/libraries/plugin-utils/src/plugin-service/display.d.ts +1 -0
- package/dist/libraries/plugin-utils/src/plugin-service/index.d.ts +3 -1
- package/dist/modules/instant-purchase/src/actions/catalog-selection.d.ts +8 -1
- package/dist/modules/instant-purchase/src/actions/instant-purchase.d.ts +4 -0
- package/dist/modules/instant-purchase/src/components/catalog-device-pay-button/catalog-device-pay-button.d.ts +8 -0
- package/dist/modules/instant-purchase/src/components/catalog-selectors-stacked/catalog-selectors-stacked.d.ts +30 -0
- package/dist/modules/instant-purchase/src/models/state/device-pay-availability.d.ts +1 -0
- package/dist/modules/instant-purchase/src/models/state/instant-purchase.d.ts +4 -0
- package/dist/modules/instant-purchase/src/reducers/catalog-selection/reducer.d.ts +2 -0
- package/dist/modules/instant-purchase/src/reducers/index.d.ts +3 -0
- package/dist/modules/instant-purchase/src/sagas/instant-purchase/sagas.d.ts +17 -3
- package/dist/modules/instant-purchase/src/sagas/paypal/sagas.d.ts +2 -0
- package/dist/modules/instant-purchase/src/sagas/tax-and-shipping/sagas.d.ts +10 -20
- package/dist/modules/instant-purchase/src/selectors/device-pay-availability/selectors.d.ts +1 -0
- package/dist/modules/instant-purchase/src/selectors/tax-and-shipping/selectors.d.ts +8 -0
- package/dist/modules/instant-purchase/src/utils/create-tax-and-shipping-cache-key.d.ts +4 -0
- package/dist/modules/instant-purchase/src/utils/parse-non-negative-monetary-amount.d.ts +1 -0
- package/dist/modules/instant-purchase/src/utils/requires-tax-and-shipping-initialization.d.ts +2 -0
- package/dist/modules/standard-marketing/src/sagas/offer-engagement/sagas.d.ts +2 -1
- package/node_modules/@rokt/dcui-layout-schema/dist/schema.d.ts +575 -21
- package/node_modules/@rokt/dcui-layout-schema/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@rokt/dcui-layout-schema/package.json +1 -1
- package/node_modules/@rokt/dcui-layout-schema/v1.21/index.d.ts +7105 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.21/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.22/index.d.ts +7121 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.22/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.23/index.d.ts +7126 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.23/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.24/index.d.ts +7492 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.24/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.25/index.d.ts +7510 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.25/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.26/index.d.ts +7516 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.26/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.27/index.d.ts +7577 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.27/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.28/index.d.ts +7628 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.28/index.js +4 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.29/index.d.ts +7643 -0
- package/node_modules/@rokt/dcui-layout-schema/v1.29/index.js +4 -0
- package/package.json +2 -2
|
@@ -5,9 +5,13 @@ export type DataObject = {
|
|
|
5
5
|
export type StateOnlyObject = {
|
|
6
6
|
state: object;
|
|
7
7
|
};
|
|
8
|
+
export type AttributeOnlyObject = {
|
|
9
|
+
attribute: object;
|
|
10
|
+
};
|
|
8
11
|
export type ExtendableDataMapper = ReturnType<typeof createDataMapper>;
|
|
9
12
|
export declare function createDataMapper(data: object, namespace?: string): {
|
|
10
13
|
(template: string): string;
|
|
11
14
|
(stateObj: StateOnlyObject, namespace?: string): /*elided*/ any;
|
|
15
|
+
(attributeObj: AttributeOnlyObject, namespace?: string): /*elided*/ any;
|
|
12
16
|
(dataObj: DataObject, namespace: string): /*elided*/ any;
|
|
13
17
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './paypal-button';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ThemeColor } from '@rokt/dcui-layout-schema';
|
|
3
|
+
/**
|
|
4
|
+
* Renders a PayPal-branded button whose look is fixed to the options in
|
|
5
|
+
* PayPal's button style guide (colors, shapes, height range), the same way
|
|
6
|
+
* ApplePayButton only offers Apple's styles. Layout styles can pick between
|
|
7
|
+
* those options but cannot restyle the brand.
|
|
8
|
+
* @see https://developer.paypal.com/docs/multiparty/checkout/standard/customize/buttons-style-guide/
|
|
9
|
+
*/
|
|
10
|
+
export type PayPalButtonColor = 'gold' | 'blue' | 'silver' | 'white' | 'black';
|
|
11
|
+
export type PayPalButtonStyle = {
|
|
12
|
+
color: {
|
|
13
|
+
light: PayPalButtonColor;
|
|
14
|
+
dark?: PayPalButtonColor;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const PAYPAL_BUTTON_MIN_HEIGHT = 25;
|
|
18
|
+
export declare const PAYPAL_BUTTON_MAX_HEIGHT = 55;
|
|
19
|
+
export declare const PAYPAL_BUTTON_DEFAULT_HEIGHT = 45;
|
|
20
|
+
export declare const PAYPAL_BUTTON_DEFAULT_RADIUS = 4;
|
|
21
|
+
/**
|
|
22
|
+
* Base `own` styles to merge under the layout's own styles (with
|
|
23
|
+
* mergeStylesWithDefaults), so the defaults sit in the normal style cascade:
|
|
24
|
+
* layout breakpoints, pseudo-states and conditional transitions override them
|
|
25
|
+
* only where they apply.
|
|
26
|
+
*/
|
|
27
|
+
export declare const PAYPAL_BUTTON_DEFAULT_OWN_STYLES: {
|
|
28
|
+
readonly dimension: {
|
|
29
|
+
readonly height: {
|
|
30
|
+
readonly type: "fixed";
|
|
31
|
+
readonly value: 45;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly border: {
|
|
35
|
+
readonly borderRadius: 4;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Structural shape of the `own` style hints this module reads, declared
|
|
40
|
+
* structurally so any schema node with `own` styles can pass itself.
|
|
41
|
+
*/
|
|
42
|
+
export type PayPalButtonStyleSource = {
|
|
43
|
+
styles?: {
|
|
44
|
+
elements?: {
|
|
45
|
+
own?: ReadonlyArray<{
|
|
46
|
+
default?: {
|
|
47
|
+
background?: {
|
|
48
|
+
backgroundColor?: ThemeColor | null;
|
|
49
|
+
} | null;
|
|
50
|
+
} | null;
|
|
51
|
+
} | null> | null;
|
|
52
|
+
} | null;
|
|
53
|
+
} | null;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Derives the PayPal button color from the schema's `own` default styles.
|
|
57
|
+
* The background color picks gold, blue, silver, white or black by exact PayPal
|
|
58
|
+
* hex (#RGB, #RRGGBB, or alpha-first #ARGB / #AARRGGBB when fully opaque);
|
|
59
|
+
* anything else falls back to gold, PayPal's recommended color. A `dark` value
|
|
60
|
+
* applies in dark mode. Colors are brand-locked, so breakpoint blocks merge
|
|
61
|
+
* with last-non-null-wins, as for Apple Pay.
|
|
62
|
+
*
|
|
63
|
+
* Height and border radius are not derived: they stay in the layout's own
|
|
64
|
+
* class, merged over PAYPAL_BUTTON_DEFAULT_OWN_STYLES, and PayPalButton only
|
|
65
|
+
* bounds the height to PayPal's 25-55px range.
|
|
66
|
+
*/
|
|
67
|
+
export declare function derivePayPalButtonStyle(schema: PayPalButtonStyleSource): PayPalButtonStyle;
|
|
68
|
+
type PayPalButtonProps = {
|
|
69
|
+
buttonStyle?: PayPalButtonStyle;
|
|
70
|
+
ariaLabel?: string;
|
|
71
|
+
className?: string;
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
74
|
+
tabIndex?: number;
|
|
75
|
+
testId?: string;
|
|
76
|
+
};
|
|
77
|
+
export declare const PayPalButton: React.ForwardRefExoticComponent<PayPalButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* PLACEHOLDER wordmark. Replace with the official PayPal wordmark SVG from
|
|
4
|
+
* PayPal's Logo and Marks resources once PayPal confirms the asset for this
|
|
5
|
+
* integration. Keep the two fills driven by the CSS variables below so the
|
|
6
|
+
* blue (light buttons) and white (dark buttons) variants keep working.
|
|
7
|
+
*/
|
|
8
|
+
export declare function PayPalWordmark(): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './progress-control';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProgressControlModel, NonInteractableChildren, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
3
|
+
export interface ProgressControlProps {
|
|
4
|
+
/**
|
|
5
|
+
* - `a11yLabel`: the aria-label for the button
|
|
6
|
+
* - `direction`: 'Forward' | 'Backward'.
|
|
7
|
+
* - `children`: it can accept below nodes,
|
|
8
|
+
* * `Row`
|
|
9
|
+
* * `Column`
|
|
10
|
+
* * `ZStack`
|
|
11
|
+
* * `BasicText`
|
|
12
|
+
* * `StaticImage`
|
|
13
|
+
* * `When`
|
|
14
|
+
* * `InlineContainer`
|
|
15
|
+
* - `styles`:
|
|
16
|
+
* * `elements`:
|
|
17
|
+
* * `own`:
|
|
18
|
+
* - `container`
|
|
19
|
+
* - `background`
|
|
20
|
+
* - `border`
|
|
21
|
+
* - `dimension`
|
|
22
|
+
* - `flexChild`
|
|
23
|
+
* - `spacing`
|
|
24
|
+
* * `transitions`:
|
|
25
|
+
* - `type`: 'Conditional'
|
|
26
|
+
* - `transition`:
|
|
27
|
+
* * `predicates`: WhenPredicate[]
|
|
28
|
+
* * `duration`: number
|
|
29
|
+
* * `value`:
|
|
30
|
+
* * `own`:
|
|
31
|
+
* - `container`
|
|
32
|
+
* - `background`
|
|
33
|
+
* - `border`
|
|
34
|
+
* - `dimension`
|
|
35
|
+
* - `flexChild`
|
|
36
|
+
* - `spacing`
|
|
37
|
+
*/
|
|
38
|
+
schema: ProgressControlModel<NonInteractableChildren, WhenPredicate>;
|
|
39
|
+
testId?: string;
|
|
40
|
+
onClick: () => void;
|
|
41
|
+
/** Additional navigation boundary imposed by the owning renderer. */
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**The ProgressControl is a progress node that facilitates navigation
|
|
45
|
+
* through sequential steps or stages of a process or content.<br>
|
|
46
|
+
* It offers users the ability to move both forward and backward
|
|
47
|
+
* within a linear progression, allowing them to review and control their journey.<br>
|
|
48
|
+
* */
|
|
49
|
+
export declare function ProgressControl(props: ProgressControlProps): React.JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ProgressIndicatorStateProps } from './types';
|
|
2
|
+
/** Resolve the schema's one-based (or end-relative) start position. */
|
|
3
|
+
export declare function getProgressIndicatorState(numberOfGroups: number, activeIndex: number, startPosition?: number | null): ProgressIndicatorStateProps;
|
package/dist/libraries/dcui-components/src/components/progress-indicator/progress-indicator.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ProgressIndicatorProps } from './types';
|
|
3
|
+
/** The ProgressIndicator is a progress node that provides users with real-time
|
|
4
|
+
* feedback on the status of ongoing processes or actions.<br>
|
|
5
|
+
* It's a visual representation of progress, often displayed as a bar,
|
|
6
|
+
* circle, or numerical percentage.<br>
|
|
7
|
+
* */
|
|
8
|
+
export declare function ProgressIndicator({ activeIndex, startIndex, numOfIndicators, schema, ariaLabel, }: ProgressIndicatorProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ProgressIndicatorModel, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
2
|
+
export interface ProgressIndicatorStateProps {
|
|
3
|
+
/** The number of indicators */
|
|
4
|
+
numOfIndicators: number;
|
|
5
|
+
/** The currently active index. */
|
|
6
|
+
activeIndex: number;
|
|
7
|
+
/** The index of the indicator to start displaying from **/
|
|
8
|
+
startIndex: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ProgressIndicatorSchemaProps {
|
|
11
|
+
/**
|
|
12
|
+
* - `indicator`: The string content of the indicator.
|
|
13
|
+
* - `styles`:
|
|
14
|
+
* * `elements`:
|
|
15
|
+
* * `own`:
|
|
16
|
+
* - `container`
|
|
17
|
+
* - `background`
|
|
18
|
+
* - `border`
|
|
19
|
+
* - `dimension`
|
|
20
|
+
* - `flexChild`
|
|
21
|
+
* - `spacing`
|
|
22
|
+
* * `indicator`:
|
|
23
|
+
* - `container`
|
|
24
|
+
* - `background`
|
|
25
|
+
* - `border`
|
|
26
|
+
* - `dimension`
|
|
27
|
+
* - `flexChild`
|
|
28
|
+
* - `spacing`
|
|
29
|
+
* - `text`
|
|
30
|
+
* * `activeIndicator`:
|
|
31
|
+
* - `container`
|
|
32
|
+
* - `background`
|
|
33
|
+
* - `border`
|
|
34
|
+
* - `dimension`
|
|
35
|
+
* - `flexChild`
|
|
36
|
+
* - `spacing`
|
|
37
|
+
* - `text`
|
|
38
|
+
* * `seenIndicator`:
|
|
39
|
+
* - `container`
|
|
40
|
+
* - `background`
|
|
41
|
+
* - `border`
|
|
42
|
+
* - `dimension`
|
|
43
|
+
* - `flexChild`
|
|
44
|
+
* - `spacing`
|
|
45
|
+
* - `text`
|
|
46
|
+
* * `transitions`:
|
|
47
|
+
* - `type`: 'Conditional'
|
|
48
|
+
* - `transition`:
|
|
49
|
+
* * `predicates`: WhenPredicate[]
|
|
50
|
+
* * `duration`: number
|
|
51
|
+
* * `value`:
|
|
52
|
+
* * `own`:
|
|
53
|
+
* - `container`
|
|
54
|
+
* - `background`
|
|
55
|
+
* - `border`
|
|
56
|
+
* - `dimension`
|
|
57
|
+
* - `flexChild`
|
|
58
|
+
* - `spacing`
|
|
59
|
+
* * `indicator`:
|
|
60
|
+
* - `container`
|
|
61
|
+
* - `background`
|
|
62
|
+
* - `border`
|
|
63
|
+
* - `dimension`
|
|
64
|
+
* - `flexChild`
|
|
65
|
+
* - `spacing`
|
|
66
|
+
* - `text`
|
|
67
|
+
* * `activeIndicator`:
|
|
68
|
+
* - `container`
|
|
69
|
+
* - `background`
|
|
70
|
+
* - `border`
|
|
71
|
+
* - `dimension`
|
|
72
|
+
* - `flexChild`
|
|
73
|
+
* - `spacing`
|
|
74
|
+
* - `text`
|
|
75
|
+
* * `seenIndicator`:
|
|
76
|
+
* - `container`
|
|
77
|
+
* - `background`
|
|
78
|
+
* - `border`
|
|
79
|
+
* - `dimension`
|
|
80
|
+
* - `flexChild`
|
|
81
|
+
* - `spacing`
|
|
82
|
+
* - `text`
|
|
83
|
+
*/
|
|
84
|
+
schema: ProgressIndicatorModel<WhenPredicate>;
|
|
85
|
+
}
|
|
86
|
+
export interface ProgressIndicatorProps extends ProgressIndicatorSchemaProps, ProgressIndicatorStateProps {
|
|
87
|
+
ariaLabel?: string;
|
|
88
|
+
}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
export declare const DataMapperContext: import("react").Context<{
|
|
2
2
|
(template: string): string;
|
|
3
3
|
(stateObj: import("..").StateOnlyObject, namespace?: string): /*elided*/ any;
|
|
4
|
+
(attributeObj: import("..").AttributeOnlyObject, namespace?: string): /*elided*/ any;
|
|
4
5
|
(dataObj: import("..").DataObject, namespace: string): /*elided*/ any;
|
|
5
6
|
}>;
|
|
6
7
|
export declare const DataMapperConsumer: import("react").Consumer<{
|
|
7
8
|
(template: string): string;
|
|
8
9
|
(stateObj: import("..").StateOnlyObject, namespace?: string): /*elided*/ any;
|
|
10
|
+
(attributeObj: import("..").AttributeOnlyObject, namespace?: string): /*elided*/ any;
|
|
9
11
|
(dataObj: import("..").DataObject, namespace: string): /*elided*/ any;
|
|
10
12
|
}>;
|
|
11
13
|
export declare const DataMapperProvider: import("react").Provider<{
|
|
12
14
|
(template: string): string;
|
|
13
15
|
(stateObj: import("..").StateOnlyObject, namespace?: string): /*elided*/ any;
|
|
16
|
+
(attributeObj: import("..").AttributeOnlyObject, namespace?: string): /*elided*/ any;
|
|
14
17
|
(dataObj: import("..").DataObject, namespace: string): /*elided*/ any;
|
|
15
18
|
}>;
|
|
16
19
|
export declare const useDataMapper: () => {
|
|
17
20
|
(template: string): string;
|
|
18
21
|
(stateObj: import("..").StateOnlyObject, namespace?: string): /*elided*/ any;
|
|
22
|
+
(attributeObj: import("..").AttributeOnlyObject, namespace?: string): /*elided*/ any;
|
|
19
23
|
(dataObj: import("..").DataObject, namespace: string): /*elided*/ any;
|
|
20
24
|
};
|
|
@@ -3,6 +3,7 @@ export * from './global-state-context';
|
|
|
3
3
|
export * from './node-mapper-context';
|
|
4
4
|
export * from './root-element-context';
|
|
5
5
|
export * from './offer-data-context';
|
|
6
|
+
export * from './lead-capture-offer-context';
|
|
6
7
|
export * from './data-mapper-context';
|
|
7
8
|
export * from './scoped-style-mapper-context';
|
|
8
9
|
export * from './layout-schema-type-context';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PluginOffer } from '../../../domain/src/models';
|
|
2
|
+
/** Resolves the offer whose referral response a lead form belongs to. */
|
|
3
|
+
export type LeadCaptureOfferResolver = (offerPositionIndex?: number) => PluginOffer | undefined;
|
|
4
|
+
export declare const LeadCaptureOfferContext: import("react").Context<LeadCaptureOfferResolver>;
|
|
5
|
+
export declare const useLeadCaptureOffer: () => LeadCaptureOfferResolver;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
2
|
export type Validator = () => boolean;
|
|
3
3
|
export interface ValidatorFieldData {
|
|
4
4
|
validators: Validator[];
|
|
5
5
|
isValid: boolean;
|
|
6
|
+
element?: HTMLElement;
|
|
6
7
|
}
|
|
7
8
|
export type ValidatorMap = Record<string, ValidatorFieldData>;
|
|
8
9
|
export interface ValidatorContextType {
|
|
9
|
-
registerValidators: (validatorFieldKey: string, validators: Validator[]) => void;
|
|
10
|
+
registerValidators: (validatorFieldKey: string, validators: Validator[], element?: HTMLElement) => void;
|
|
10
11
|
validateFieldKeys: (validatorFieldKey: string[]) => boolean;
|
|
11
12
|
getFieldKeyValidity: (validatorFieldKey: string) => boolean;
|
|
13
|
+
focusFirstInvalidField?: () => void;
|
|
12
14
|
}
|
|
13
15
|
export declare const ValidatorContext: import("react").Context<ValidatorContextType | null>;
|
|
14
16
|
/**
|
|
@@ -21,4 +23,4 @@ export declare function ValidatorProvider(props: {
|
|
|
21
23
|
children: ReactNode;
|
|
22
24
|
}): import("react").JSX.Element;
|
|
23
25
|
export declare function useValidator(): ValidatorContextType;
|
|
24
|
-
export declare function useRegisterValidators(validationFieldKey: string | undefined, validators: Validator[]): void;
|
|
26
|
+
export declare function useRegisterValidators(validationFieldKey: string | undefined, validators: Validator[], targetRef?: RefObject<HTMLElement | null>): void;
|
|
@@ -5,3 +5,4 @@ export declare const FAILED_TEMPLATING_DATA = "FAILED_TEMPLATING_DATA";
|
|
|
5
5
|
export declare const FAILED_TO_MAP_STATIC_DATA = "FAILED_TO_MAP_STATIC_DATA";
|
|
6
6
|
export declare const FAILED_SANITISING_HTML = "FAILED_SANITISING_HTML";
|
|
7
7
|
export declare const UNRESOLVED_FORM_VALIDATION_TARGET = "UNRESOLVED_FORM_VALIDATION_TARGET";
|
|
8
|
+
export declare const MISSING_LEAD_IDENTITY = "MISSING_LEAD_IDENTITY";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { LinkOpenTarget } from '@rokt/dcui-layout-schema';
|
|
2
|
+
import { PluginChildLayoutModel } from '../models';
|
|
3
|
+
/** Plugin builds support explicit continuationKey opt-in; standalone consumers stay off. */
|
|
4
|
+
export declare function isContinuousChildEnabled(environment: string | undefined): boolean;
|
|
5
|
+
export declare const CONTINUOUS_CHILD_CAPABILITY_ENABLED: boolean;
|
|
6
|
+
export declare const CONTINUOUS_CHILD_VERSION = 1;
|
|
7
|
+
export declare const CONTINUOUS_CHILD_EVENTS: {
|
|
8
|
+
readonly READY: "CONTINUOUS_CHILD/READY";
|
|
9
|
+
readonly PRESENTATION: "CONTINUOUS_CHILD/PRESENTATION";
|
|
10
|
+
readonly APPLIED: "CONTINUOUS_CHILD/APPLIED";
|
|
11
|
+
readonly REQUEST: "CONTINUOUS_CHILD/REQUEST";
|
|
12
|
+
readonly EXPOSURE: "CONTINUOUS_CHILD/EXPOSURE";
|
|
13
|
+
};
|
|
14
|
+
/** Generated Web 1.30 child schema contract. */
|
|
15
|
+
export type ContinuousChildSchema = PluginChildLayoutModel['childLayoutSchema'];
|
|
16
|
+
export interface ContinuousIdentity {
|
|
17
|
+
sessionId: string;
|
|
18
|
+
revision: number;
|
|
19
|
+
position: number;
|
|
20
|
+
creativeInstanceGuid: string;
|
|
21
|
+
/** Optional serving tracking metadata; session/revision and creative identity remain required. */
|
|
22
|
+
childInstanceGuid?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ContinuousPresentationInput {
|
|
25
|
+
config: PluginChildLayoutModel;
|
|
26
|
+
position: number;
|
|
27
|
+
ownsViewability: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface ContinuousPresentation extends ContinuousPresentationInput {
|
|
30
|
+
identity: ContinuousIdentity;
|
|
31
|
+
totalCount: number;
|
|
32
|
+
}
|
|
33
|
+
export interface ContinuousRequest {
|
|
34
|
+
identity: ContinuousIdentity;
|
|
35
|
+
actionId: string;
|
|
36
|
+
openLinks?: LinkOpenTarget;
|
|
37
|
+
dismissalMethod?: string;
|
|
38
|
+
inferredView?: {
|
|
39
|
+
supportedByBrowser: boolean;
|
|
40
|
+
};
|
|
41
|
+
action: 'next' | 'previous' | 'positive' | 'negative' | 'close';
|
|
42
|
+
}
|
|
43
|
+
export interface ContinuousExposure {
|
|
44
|
+
identity: ContinuousIdentity;
|
|
45
|
+
kind: 'rendered' | 'qualified';
|
|
46
|
+
inferred: boolean;
|
|
47
|
+
supportedByBrowser: boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare const continuousEnvelope: <T>(payload: T) => {
|
|
50
|
+
version: number;
|
|
51
|
+
payload: T;
|
|
52
|
+
};
|
|
53
|
+
export declare function isContinuousEnvelope(value: unknown): value is {
|
|
54
|
+
version: 1;
|
|
55
|
+
payload: unknown;
|
|
56
|
+
};
|
|
57
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
58
|
+
export declare function isContinuousIdentity(value: unknown): value is ContinuousIdentity;
|
|
59
|
+
export declare function sameContinuousIdentity(a: ContinuousIdentity, b: ContinuousIdentity): boolean;
|
|
60
|
+
export declare function isContinuousRequest(value: unknown): value is ContinuousRequest;
|
|
61
|
+
export declare function isContinuousExposure(value: unknown): value is ContinuousExposure;
|
|
62
|
+
export declare function isContinuousPresentation(value: unknown): value is ContinuousPresentation;
|
|
@@ -17,7 +17,7 @@ export declare function isValidSetCustomStatePayload(payload: unknown): payload
|
|
|
17
17
|
export declare const DEVICE_PAY_PROCESSING_STATE_KEY = "ProcessingState";
|
|
18
18
|
export declare const DEVICE_PAY_PROCESSING_IDLE = 0;
|
|
19
19
|
export declare const DEVICE_PAY_PROCESSING_IN_FLIGHT = 1;
|
|
20
|
-
export declare const DEVICE_PAY_AVAILABILITY_KEYS: readonly ["applePay", "afterpay"];
|
|
20
|
+
export declare const DEVICE_PAY_AVAILABILITY_KEYS: readonly ["applePay", "afterpay", "paypal"];
|
|
21
21
|
export type DevicePayProviderKey = (typeof DEVICE_PAY_AVAILABILITY_KEYS)[number];
|
|
22
22
|
export declare const DEVICE_PAY_APPLE_PAY_AVAILABLE_STATE_KEY = "applePayAvailable";
|
|
23
23
|
export declare const DEVICE_PAY_ERROR_STATE_KEY = "DevicePayErrorState";
|
|
@@ -14,10 +14,12 @@ export interface OfferEngagementFulfillmentPayload {
|
|
|
14
14
|
fulfillment: Fulfillment;
|
|
15
15
|
accountID: string;
|
|
16
16
|
referralCreativeID?: string;
|
|
17
|
+
adID?: string;
|
|
17
18
|
}
|
|
18
19
|
export interface OfferEngagementUrlPayload extends PluginCreativeUrlResponseOption {
|
|
19
20
|
accountID: string;
|
|
20
21
|
referralCreativeID?: string;
|
|
22
|
+
adID?: string;
|
|
21
23
|
creativeInstanceGuid?: string;
|
|
22
24
|
}
|
|
23
25
|
export interface OfferEngagementProductItemResponsePayload extends OfferEngagementUrlPayload {
|
|
@@ -44,6 +46,15 @@ export declare function isRealTimeReferralOnly(response: OfferEngagementPayload
|
|
|
44
46
|
})): response is OfferEngagementPayload & {
|
|
45
47
|
accountID: string;
|
|
46
48
|
referralCreativeID: string;
|
|
49
|
+
adID?: string;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* `adID` is the key the Web SDK's realtime-conversion-promotion extension reads.
|
|
53
|
+
* Anything but a non-empty string yields no key, so a payload or event without
|
|
54
|
+
* an ad id keeps exactly the keys it had before.
|
|
55
|
+
*/
|
|
56
|
+
export declare function adIDField(adID: string | undefined): {
|
|
57
|
+
adID?: string;
|
|
47
58
|
};
|
|
48
59
|
export declare function makeCaptureOnlyOfferEngagementPayload(offerPayload?: Partial<OfferEngagementCaptureOnlyPayload>): OfferEngagementCaptureOnlyPayload;
|
|
49
60
|
export declare function makeUrlOfferEngagementPayload(offerPayload?: Partial<OfferEngagementUrlPayload>): OfferEngagementUrlPayload;
|
|
@@ -14,6 +14,7 @@ export type OutboundRealtimeOfferFulfillmentReferralEventPayload = {
|
|
|
14
14
|
rclid: string;
|
|
15
15
|
accountID: string;
|
|
16
16
|
referralCreativeID: string;
|
|
17
|
+
adID?: string;
|
|
17
18
|
referralOnly?: boolean;
|
|
18
19
|
rewardHandoff?: boolean;
|
|
19
20
|
};
|
|
@@ -24,6 +25,7 @@ export type OutboundRealtimeOfferFulfillmentConversionEventPayload = {
|
|
|
24
25
|
rclid: string;
|
|
25
26
|
accountID: string;
|
|
26
27
|
referralCreativeID: string;
|
|
28
|
+
adID?: string;
|
|
27
29
|
rewardHandoff?: boolean;
|
|
28
30
|
};
|
|
29
31
|
};
|
|
@@ -80,10 +82,20 @@ export type OutboundAbortDevicePayEventPayload = {
|
|
|
80
82
|
export type OutboundCompleteDevicePayEventPayload = {
|
|
81
83
|
name: 'COMPLETE_DEVICE_PAY_EVENT';
|
|
82
84
|
};
|
|
83
|
-
export type
|
|
85
|
+
export type OutboundLeadCaptureSubmittedEventPayload = {
|
|
86
|
+
name: 'LEAD_CAPTURE_SUBMITTED';
|
|
87
|
+
body: {
|
|
88
|
+
email?: string;
|
|
89
|
+
mobile_number?: string;
|
|
90
|
+
rclid?: string;
|
|
91
|
+
accountID?: string;
|
|
92
|
+
referralCreativeID?: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export type OutboundPartnerEventPayload<EventType extends OutboundPartnerEvent> = EventType extends 'LEAD_CAPTURE_SUBMITTED' ? OutboundLeadCaptureSubmittedEventPayload : EventType extends 'REALTIME_OFFER_FULFILLMENT_REFERRAL' ? OutboundRealtimeOfferFulfillmentReferralEventPayload : EventType extends 'REALTIME_OFFER_FULFILLMENT_CONVERSION' ? OutboundRealtimeOfferFulfillmentConversionEventPayload : EventType extends 'REALTIME_OFFER_FULFILLMENT_SUCCESS' ? OutboundRealtimeOfferFulfillmentSuccessEventPayload : EventType extends 'V2_CART_ITEM_UPDATED' | 'UPDATE_CART_ITEM_MESSAGE' | 'CART_ITEM_INSTANT_PURCHASE' | 'UPSELL_ITEM_INSTANT_PURCHASE' | 'UPSELL_CREATIVE_SENT' | 'INITIATE_INSTANT_PURCHASE_EVENT' | 'INSTANT_PURCHASE_INITIATE_TAX_AND_SHIPPING_EVENT' | 'INITIATE_CART_ITEM_EVENT' | 'DELIVERY_DETAILS_SENT' | 'PREPARE_DEVICE_PAY_EVENT' | 'INITIATE_DEVICE_PAY_EVENT' | 'ABORT_DEVICE_PAY_EVENT' | 'COMPLETE_DEVICE_PAY_EVENT' ? never : {
|
|
84
96
|
name: EventType;
|
|
85
97
|
};
|
|
86
98
|
export type SendPartner<EventType extends OutboundPartnerEvent> = {
|
|
87
99
|
type: typeof SEND_PARTNER;
|
|
88
|
-
payload: OutboundPartnerEventPayload<EventType> | OutboundUpdateCartEventPayload | OutboundUpdateCartItemMessageEventPayload | OutboundInstantPurchaseEventPayload | OutboundUpsellItemInstantPurchaseEventPayload | OutboundUpsellCreativeSentEventPayload | OutboundInstantPurchaseWsdkEventPayload | OutboundInstantPurchaseTaxAndShippingEventPayload | OutboundCartItemEventPayload | OutboundDeliveryDetailsSentEventPayload | OutboundPrepareDevicePayEventPayload | OutboundDevicePayEventPayload | OutboundAbortDevicePayEventPayload | OutboundCompleteDevicePayEventPayload;
|
|
100
|
+
payload: OutboundPartnerEventPayload<EventType> | OutboundUpdateCartEventPayload | OutboundUpdateCartItemMessageEventPayload | OutboundInstantPurchaseEventPayload | OutboundUpsellItemInstantPurchaseEventPayload | OutboundUpsellCreativeSentEventPayload | OutboundInstantPurchaseWsdkEventPayload | OutboundInstantPurchaseTaxAndShippingEventPayload | OutboundCartItemEventPayload | OutboundDeliveryDetailsSentEventPayload | OutboundPrepareDevicePayEventPayload | OutboundDevicePayEventPayload | OutboundAbortDevicePayEventPayload | OutboundCompleteDevicePayEventPayload | OutboundLeadCaptureSubmittedEventPayload;
|
|
89
101
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { LayoutAction, LayoutVariantAction, OuterLayoutAction } from '@rokt/dcui-layout-schema';
|
|
1
|
+
import { ChildLayoutAction, LayoutAction, LayoutVariantAction, OuterLayoutAction } from '@rokt/dcui-layout-schema';
|
|
2
2
|
import { PluginOffer } from '../models';
|
|
3
3
|
export declare const TRIGGER_ACTION = "GLOBAL/TRIGGER_ACTION";
|
|
4
4
|
/**
|
|
5
5
|
* Actions a trigger (e.g. a layout timer or button) can carry. A trigger may
|
|
6
|
-
* originate in any of the
|
|
6
|
+
* originate in any of the four layout contexts, so the channel accepts the
|
|
7
7
|
* union of all their action sets rather than assuming one stays a superset of
|
|
8
8
|
* the others. This keeps producers in every context assignable even if the
|
|
9
9
|
* sets diverge in future schema versions.
|
|
10
10
|
*/
|
|
11
|
-
export type TriggerableAction = LayoutAction | OuterLayoutAction | LayoutVariantAction;
|
|
11
|
+
export type TriggerableAction = LayoutAction | OuterLayoutAction | LayoutVariantAction | ChildLayoutAction;
|
|
12
12
|
export interface TriggerAction {
|
|
13
13
|
type: typeof TRIGGER_ACTION;
|
|
14
14
|
payload: {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PluginOffer } from './plugin/plugin-offer';
|
|
2
|
+
import { PluginCreativeCaptureOnlyResponseOption, PluginCreativeUrlResponseOption } from './plugin/plugin-creative-response-option';
|
|
3
|
+
/** Child acceptance supports ordinary positive URLs, not deferred fulfillment. */
|
|
4
|
+
export declare function getChildPositiveResponse(offer: PluginOffer | null, responseKey: string): PluginCreativeUrlResponseOption | undefined;
|
|
5
|
+
/** Persistent children dispatch ordinary responses through the current parent module. */
|
|
6
|
+
export declare function getContinuousChildResponse(offer: PluginOffer | null, responseKey: 'positive' | 'negative'): PluginCreativeUrlResponseOption | PluginCreativeCaptureOnlyResponseOption | undefined;
|
|
@@ -4,6 +4,8 @@ import { LayoutTransactionData } from './layout-transaction-data';
|
|
|
4
4
|
export interface LayoutOffer {
|
|
5
5
|
campaignId: string;
|
|
6
6
|
accountId: string;
|
|
7
|
+
/** The rendered ad's id; absent until the transactions API sends it. */
|
|
8
|
+
adId?: string;
|
|
7
9
|
maxTotalItemsQtyInOffer: number;
|
|
8
10
|
creative: LayoutCreative;
|
|
9
11
|
metadata: Record<string, string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type CatalogOutboundPartnerEvent = 'V2_CART_ITEM_UPDATED' | 'UPDATE_CART_ITEM_MESSAGE' | 'CART_ITEM_INSTANT_PURCHASE' | 'UPSELL_ITEM_INSTANT_PURCHASE' | 'DELIVERY_DETAILS_SENT';
|
|
2
|
-
export type OfferOutboundPartnerEvent = CatalogOutboundPartnerEvent | 'OFFER_ENGAGEMENT' | 'POSITIVE_ENGAGEMENT' | 'UPSELL_CREATIVE_SENT' | 'REALTIME_OFFER_FULFILLMENT_REFERRAL' | 'REALTIME_OFFER_FULFILLMENT_CONVERSION' | 'REALTIME_OFFER_FULFILLMENT_SUCCESS' | 'INITIATE_INSTANT_PURCHASE_EVENT' | 'INSTANT_PURCHASE_INITIATE_TAX_AND_SHIPPING_EVENT' | 'INITIATE_CART_ITEM_EVENT' | 'PREPARE_DEVICE_PAY_EVENT' | 'INITIATE_DEVICE_PAY_EVENT' | 'ABORT_DEVICE_PAY_EVENT' | 'COMPLETE_DEVICE_PAY_EVENT';
|
|
2
|
+
export type OfferOutboundPartnerEvent = CatalogOutboundPartnerEvent | 'OFFER_ENGAGEMENT' | 'POSITIVE_ENGAGEMENT' | 'UPSELL_CREATIVE_SENT' | 'REALTIME_OFFER_FULFILLMENT_REFERRAL' | 'REALTIME_OFFER_FULFILLMENT_CONVERSION' | 'REALTIME_OFFER_FULFILLMENT_SUCCESS' | 'INITIATE_INSTANT_PURCHASE_EVENT' | 'INSTANT_PURCHASE_INITIATE_TAX_AND_SHIPPING_EVENT' | 'INITIATE_CART_ITEM_EVENT' | 'PREPARE_DEVICE_PAY_EVENT' | 'INITIATE_DEVICE_PAY_EVENT' | 'ABORT_DEVICE_PAY_EVENT' | 'COMPLETE_DEVICE_PAY_EVENT' | 'LEAD_CAPTURE_SUBMITTED';
|
|
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;
|
|
@@ -3,6 +3,7 @@ import { Fonts } from '@rokt/plugin';
|
|
|
3
3
|
import { SyncedGlobalState } from '../global-state';
|
|
4
4
|
import { PluginOffer } from './plugin-offer';
|
|
5
5
|
export interface PluginChildLayoutModel<ChildRootLayoutSchema = ChildRootSchemaModel<LayoutSchemaModel, LayoutDisplayPreset, LayoutSettings, WhenPredicate>> {
|
|
6
|
+
continuousPresentation?: import('../../behaviors/continuous-child').ContinuousIdentity;
|
|
6
7
|
instanceGuid: string;
|
|
7
8
|
childLayoutId: string;
|
|
8
9
|
layoutSchemaVersion: string;
|
|
@@ -5,6 +5,8 @@ import { TransactionData } from './plugin-transaction-data';
|
|
|
5
5
|
export interface PluginOffer {
|
|
6
6
|
campaignId: string;
|
|
7
7
|
accountId: string;
|
|
8
|
+
/** The rendered ad's id; absent until the transactions API sends it. */
|
|
9
|
+
adId?: string;
|
|
8
10
|
maxTotalItemsQtyInOffer: number;
|
|
9
11
|
creative: PluginCreative;
|
|
10
12
|
metadata: Record<string, string>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OpenLink, PrepareSignal, RaiseMetric, RaiseSignal, SendPartner, SetDomainState } from '../../../domain/src/behaviors';
|
|
2
2
|
import { ActiveStateActions } from './active';
|
|
3
3
|
import { BreakpointActions, SetBreakpoints } from './breakpoint';
|
|
4
|
+
import { AttributesActions } from './attributes';
|
|
4
5
|
import { FontsActions } from './fonts';
|
|
5
6
|
import { LayoutActions } from './layout';
|
|
6
7
|
import { ClosePlugin } from './plugin';
|
|
@@ -25,16 +26,18 @@ export * from './error';
|
|
|
25
26
|
export * from './log';
|
|
26
27
|
export * from './overlay';
|
|
27
28
|
export * from './plugin';
|
|
29
|
+
export * from './attributes';
|
|
28
30
|
export * from './custom-states';
|
|
29
31
|
export * from './domain-states';
|
|
30
32
|
export * from './form-states';
|
|
31
|
-
export type CoreStateActions = LayoutActions | BreakpointActions | ActiveStateActions | FontsActions | SignalStateActions | SerializableCacheActions | SettingsActions | CustomStatesActions | SetDomainStateReducer | LayoutEventAction | FormStatesActions;
|
|
33
|
+
export type CoreStateActions = LayoutActions | BreakpointActions | ActiveStateActions | AttributesActions | FontsActions | SignalStateActions | SerializableCacheActions | SettingsActions | CustomStatesActions | SetDomainStateReducer | LayoutEventAction | FormStatesActions;
|
|
32
34
|
export declare const coreStateActionTypes: {
|
|
33
35
|
readonly LAYOUT_UPDATE: "LAYOUT/UPDATE";
|
|
34
36
|
readonly UPDATE_ACTIVE_BREAKPOINT: "BREAKPOINT/UPDATE_ACTIVE";
|
|
35
37
|
readonly INITIALISE_BREAKPOINT: "BREAKPOINT/INITIALISE";
|
|
36
38
|
readonly ACTIVE_ADD: "ACTIVE/ADD";
|
|
37
39
|
readonly ACTIVE_DELETE: "ACTIVE/DELETE";
|
|
40
|
+
readonly SET_ATTRIBUTES: "ATTRIBUTES/SET";
|
|
38
41
|
readonly SET_FONTS: "FONTS/SET";
|
|
39
42
|
readonly QUEUE_SIGNAL: "SIGNAL/QUEUE";
|
|
40
43
|
readonly SIGNAL_PROCESSED: "SIGNAL/PROCESSED";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ActiveState } from './active';
|
|
2
|
+
import { AttributesState } from './attributes';
|
|
2
3
|
import { BreakpointState } from './breakpoint';
|
|
3
4
|
import { FontsState } from './fonts';
|
|
4
5
|
import { LayoutState } from './layout';
|
|
@@ -9,6 +10,7 @@ import { CustomStatesIndexState } from './custom-states';
|
|
|
9
10
|
import { FiredEventsIndexState } from './fired-events';
|
|
10
11
|
import { FormStatesIndexState } from './form-states';
|
|
11
12
|
export * from './active';
|
|
13
|
+
export * from './attributes';
|
|
12
14
|
export * from './breakpoint';
|
|
13
15
|
export * from './fonts';
|
|
14
16
|
export * from './layout';
|
|
@@ -22,6 +24,7 @@ export type CoreAppState = {
|
|
|
22
24
|
layout: LayoutState;
|
|
23
25
|
breakpoint: BreakpointState;
|
|
24
26
|
active: ActiveState;
|
|
27
|
+
attributes: AttributesState;
|
|
25
28
|
fonts: FontsState;
|
|
26
29
|
signal: SignalState;
|
|
27
30
|
serializableCache: SerializableCacheState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './reducer';
|