@rokt/dcui-orchestrator 1.2.1-rc.1 → 1.2.1-rc.3
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 +26 -26
- package/dist/index.js +26 -26
- package/dist/libraries/dcui-components/src/components/toggle-button-state-trigger/toggle-button-state-trigger.d.ts +6 -0
- package/dist/libraries/dcui-components/src/contexts/index.d.ts +1 -0
- package/dist/modules/instant-purchase/src/components/checkbox/checkbox.d.ts +1 -1
- package/dist/modules/instant-purchase/src/components/checkout-state-button-trigger/checkout-state-button-trigger.d.ts +1 -1
- package/dist/modules/instant-purchase/src/components/custom-state-validation-trigger-button/custom-state-validation-trigger-button.d.ts +1 -1
- package/dist/modules/instant-purchase/src/components/escapehatch-catalog-drop-down/catalog-drop-down.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/{modules/instant-purchase/src → libraries/dcui-components/src/contexts}/validators/index.d.ts +0 -0
- /package/dist/{modules/instant-purchase/src → libraries/dcui-components/src/contexts}/validators/types.d.ts +0 -0
- /package/dist/{modules/instant-purchase/src → libraries/dcui-components/src/contexts}/validators/utils.d.ts +0 -0
- /package/dist/{modules/instant-purchase/src → libraries/dcui-components/src/contexts}/validators/validator-provider.d.ts +0 -0
|
@@ -4,6 +4,9 @@ export interface ToggleButtonStateTriggerProps {
|
|
|
4
4
|
/**
|
|
5
5
|
* - `a11yLabel`: the aria-label for the button
|
|
6
6
|
* - `customStateKey`: the name of the custom state that should be updated.
|
|
7
|
+
* - `validatorTriggerConfig`: optional form-field keys that must pass
|
|
8
|
+
* validation before the state is toggled. Requires a ValidatorProvider
|
|
9
|
+
* above this node; without one, validation is skipped.
|
|
7
10
|
* - `children`: it can accept below nodes,
|
|
8
11
|
* * `Row`
|
|
9
12
|
* * `FlowRow`
|
|
@@ -43,6 +46,9 @@ export interface ToggleButtonStateTriggerProps {
|
|
|
43
46
|
testId?: string;
|
|
44
47
|
}
|
|
45
48
|
/**The ToggleButtonStateTrigger is a button that toggles a CustomState's value between 0 and 1 on click.<br>
|
|
49
|
+
* When `validatorTriggerConfig` is set, the toggle only fires if every listed
|
|
50
|
+
* validator field key passes; on failure the state is left alone and a
|
|
51
|
+
* ValidationTriggerFailed signal is raised.<br>
|
|
46
52
|
* *Where can we use this: __outer layout__, __layout variant__*
|
|
47
53
|
* */
|
|
48
54
|
export declare function ToggleButtonStateTrigger(props: ToggleButtonStateTriggerProps): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BackgroundStylingProperties, BasicStateStylingBlock, BorderStylingProperties, ConditionalStyleTransition, DimensionStylingProperties, ContainerStylingProperties, FlexChildStylingProperties, LayoutStyle, SpacingStylingProperties, WhenPredicate, NonInteractableChildren } from '@rokt/dcui-layout-schema';
|
|
3
|
-
import { ValidatorFieldConfig } from '
|
|
3
|
+
import { ValidatorFieldConfig } from '../../../../../libraries/dcui-components/src/index';
|
|
4
4
|
export type CheckboxValidators = 'required';
|
|
5
5
|
export interface CheckboxStyles {
|
|
6
6
|
container?: null | ContainerStylingProperties;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { BackgroundStylingProperties, BorderStylingProperties, ConditionalStyleTransition, ContainerStylingProperties, DimensionStylingProperties, FlexChildStylingProperties, LayoutStyle, NonInteractableChildren, SpacingStylingProperties, StatelessStylingBlock, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
3
3
|
import { CheckoutStep } from '../../actions/checkout-lifecycle';
|
|
4
4
|
import type { CheckoutStateData } from '../../actions/checkout-lifecycle';
|
|
5
|
-
import { ValidatorTriggerConfig } from '
|
|
5
|
+
import { ValidatorTriggerConfig } from '../../../../../libraries/dcui-components/src/index';
|
|
6
6
|
export interface CheckoutStateButtonTriggerStyles {
|
|
7
7
|
background?: null | BackgroundStylingProperties;
|
|
8
8
|
border?: null | BorderStylingProperties;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ContainerStylingProperties, BorderStylingProperties, DimensionStylingProperties, FlexChildStylingProperties, SpacingStylingProperties, BasicStateStylingBlock, LayoutStyle, ConditionalStyleTransition, WhenPredicate, NonInteractableChildren } from '@rokt/dcui-layout-schema';
|
|
3
|
-
import { ValidatorTriggerConfig } from '
|
|
3
|
+
import { ValidatorTriggerConfig } from '../../../../../libraries/dcui-components/src/index';
|
|
4
4
|
export interface CustomStateValidationTriggerButtonStyles {
|
|
5
5
|
container?: null | ContainerStylingProperties;
|
|
6
6
|
border?: null | BorderStylingProperties;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BackgroundStylingProperties, BasicStateStylingBlock, BorderStylingProperties, ConditionalStyleTransition, ContainerStylingProperties, DimensionStylingProperties, FlexChildStylingProperties, LayoutStyle, NonInteractableChildren, SpacingStylingProperties, TextStylingProperties, WhenPredicate } from '@rokt/dcui-layout-schema';
|
|
3
|
-
import { ValidatorFieldConfig } from '
|
|
3
|
+
import { ValidatorFieldConfig } from '../../../../../libraries/dcui-components/src/index';
|
|
4
4
|
export type CatalogDropDownValidators = 'required';
|
|
5
5
|
export interface CatalogDropDownStyles {
|
|
6
6
|
container?: null | ContainerStylingProperties;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|