@windstream/react-shared-components 0.2.68 → 0.2.70

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.
Files changed (35) hide show
  1. package/dist/contentful/index.d.ts +13 -2
  2. package/dist/contentful/index.esm.js +4 -4
  3. package/dist/contentful/index.esm.js.map +1 -1
  4. package/dist/contentful/index.js +2 -2
  5. package/dist/contentful/index.js.map +1 -1
  6. package/dist/core.d.ts +31 -2
  7. package/dist/index.d.ts +35 -6
  8. package/dist/index.esm.js +8 -8
  9. package/dist/index.esm.js.map +1 -1
  10. package/dist/index.js +8 -8
  11. package/dist/index.js.map +1 -1
  12. package/dist/styles.css +1 -1
  13. package/dist/utils/index.esm.js +1 -1
  14. package/dist/utils/index.esm.js.map +1 -1
  15. package/dist/utils/index.js +1 -1
  16. package/dist/utils/index.js.map +1 -1
  17. package/package.json +1 -1
  18. package/src/components/rich-text-basic/index.test.tsx +172 -0
  19. package/src/components/rich-text-basic/index.tsx +102 -0
  20. package/src/components/rich-text-basic/types.ts +34 -0
  21. package/src/components/select-plan-button/index.test.tsx +27 -0
  22. package/src/components/select-plan-button/index.tsx +6 -1
  23. package/src/components/video-link/index.tsx +2 -2
  24. package/src/contentful/blocks/cards/product-card/index.test.tsx +36 -0
  25. package/src/contentful/blocks/cards/product-card/index.tsx +23 -24
  26. package/src/contentful/blocks/carousel/index.tsx +1 -1
  27. package/src/contentful/blocks/dynamic-form/field-map.tsx +1 -1
  28. package/src/contentful/blocks/dynamic-form/index.test.tsx +96 -0
  29. package/src/contentful/blocks/dynamic-form/index.tsx +24 -1
  30. package/src/contentful/blocks/dynamic-form/types.ts +13 -2
  31. package/src/contentful/blocks/navigation/index.tsx +4 -1
  32. package/src/contentful/blocks/primary-hero/index.test.tsx +11 -2
  33. package/src/contentful/blocks/primary-hero/index.tsx +3 -2
  34. package/src/hooks/contentful/use-contentful-rich-text.tsx +39 -2
  35. package/src/index.ts +7 -0
@@ -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 (affects nothing in the
1167
- * base component today but reserved for parity with app behavior). */
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>>>;