@windstream/react-shared-components 0.2.68 → 0.2.69
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/contentful/index.d.ts +13 -2
- package/dist/contentful/index.esm.js +4 -4
- package/dist/contentful/index.esm.js.map +1 -1
- package/dist/contentful/index.js +2 -2
- package/dist/contentful/index.js.map +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/select-plan-button/index.test.tsx +27 -0
- package/src/components/select-plan-button/index.tsx +6 -1
- package/src/contentful/blocks/cards/product-card/index.test.tsx +36 -0
- package/src/contentful/blocks/cards/product-card/index.tsx +23 -24
- package/src/contentful/blocks/carousel/index.tsx +1 -1
- package/src/contentful/blocks/dynamic-form/field-map.tsx +1 -1
- package/src/contentful/blocks/dynamic-form/index.test.tsx +96 -0
- package/src/contentful/blocks/dynamic-form/index.tsx +24 -1
- package/src/contentful/blocks/dynamic-form/types.ts +13 -2
- package/src/contentful/blocks/navigation/index.tsx +4 -1
- package/src/contentful/blocks/primary-hero/index.test.tsx +11 -2
- package/src/contentful/blocks/primary-hero/index.tsx +3 -2
|
@@ -1140,6 +1140,15 @@ interface DynamicFormProps {
|
|
|
1140
1140
|
emailSubject?: string;
|
|
1141
1141
|
emailTemplateName?: string;
|
|
1142
1142
|
toEmail?: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* Test recipient(s) for the `email` action in non-production environments.
|
|
1145
|
+
* When `isProduction === false` and the `email` action runs, the payload's
|
|
1146
|
+
* `toEmail` is rerouted here so real recipients never receive non-prod
|
|
1147
|
+
* submissions. Supports multiple comma-separated addresses (each is trimmed);
|
|
1148
|
+
* when empty, the `email` action is skipped. Mirrors the residential form's
|
|
1149
|
+
* `testEmail`.
|
|
1150
|
+
*/
|
|
1151
|
+
testEmail?: string;
|
|
1143
1152
|
segmentEventId?: string;
|
|
1144
1153
|
/** Injected per-action async submit handlers. */
|
|
1145
1154
|
onEmailSubmit?: SubmitHandler;
|
|
@@ -1163,8 +1172,10 @@ interface DynamicFormProps {
|
|
|
1163
1172
|
error: unknown;
|
|
1164
1173
|
metadata?: Record<string, any>;
|
|
1165
1174
|
}) => void;
|
|
1166
|
-
/** Whether the current environment is production
|
|
1167
|
-
*
|
|
1175
|
+
/** Whether the current environment is production. When explicitly `false`,
|
|
1176
|
+
* the `email` action is rerouted to `testEmail` (or skipped when `testEmail`
|
|
1177
|
+
* is empty) so non-prod submissions never reach real recipients. Leaving it
|
|
1178
|
+
* `undefined` preserves the prior behavior (no rerouting). */
|
|
1168
1179
|
isProduction?: boolean;
|
|
1169
1180
|
/** Field customization + async data. */
|
|
1170
1181
|
fieldComponentOverrides?: Partial<Record<DynamicFormFieldType, React__default.FC<FieldRenderProps>>>;
|