@tesouro/embedded-components-react 0.3.42 → 0.3.44

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 (36) hide show
  1. package/README.md +18 -2
  2. package/dist/experimental/index.d.ts +1 -975
  3. package/dist/experimental/index.js +0 -6
  4. package/dist/index.d.ts +1730 -1425
  5. package/dist/index.js +65 -61
  6. package/dist/lib/WidgetProvider.js +7 -7
  7. package/dist/lib/WidgetSuite.d.ts +2081 -0
  8. package/dist/lib/WidgetSuite.js +5 -0
  9. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js +60 -60
  10. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +6 -6
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +18 -18
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +16 -16
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +10 -10
  14. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +45 -45
  15. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +2 -1
  16. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +18 -18
  17. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +118 -118
  18. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index.js +6 -5
  20. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index10.js +33 -0
  21. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index11.js +23 -0
  22. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index12.js +19 -0
  23. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index13.js +16 -0
  24. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index14.js +21 -0
  25. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index15.js +22 -0
  26. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js +116 -0
  27. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js +46 -23
  28. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +20 -88
  29. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index6.js +31 -34
  30. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +12 -132
  31. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +11 -137
  32. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index9.js +33 -0
  33. package/dist/libs/tesouro-embedded-components-react/widget-suite/ui/dist/index3.js +12 -12
  34. package/package.json +1 -1
  35. package/dist/experimental/WidgetSuite.d.ts +0 -976
  36. package/dist/experimental/WidgetSuite.js +0 -6
package/README.md CHANGED
@@ -51,7 +51,7 @@ boundary.
51
51
 
52
52
  | Import path | What you get |
53
53
  | ------------------------------------------------- | ------------------------------------------------------------------------------------ |
54
- | `@tesouro/embedded-components-react` | All widgets plus `RootWidgetProvider` / `WidgetProvider`. |
54
+ | `@tesouro/embedded-components-react` | All widgets, `WidgetSuite`, plus `RootWidgetProvider` / `WidgetProvider`. |
55
55
  | `@tesouro/embedded-components-react/styles.css` | The widget stylesheet — see [About the stylesheet](#about-the-stylesheet). |
56
56
  | `@tesouro/embedded-components-react/core` | Framework-agnostic token utilities (`createWidgetTokenManager`). |
57
57
  | `@tesouro/embedded-components-react/monite-sdk` | Monite SDK surface for Monite-backed widgets. |
@@ -61,7 +61,8 @@ boundary.
61
61
 
62
62
  `@tesouro/embedded-components-react/experimental` (and the per-module
63
63
  `@tesouro/embedded-components-react/experimental/<Module>`) is a staging area for
64
- work in progress. It is **outside this package's semver contract**:
64
+ work in progress. It is **currently empty** — nothing ships on it today — and it
65
+ is **outside this package's semver contract**:
65
66
 
66
67
  - Anything exported there can change shape or be **removed outright in any
67
68
  release, including a patch**. There is no deprecation window.
@@ -190,6 +191,21 @@ Every widget below also accepts the shared auth/scope props from
190
191
  from a parent provider or take it directly. Only each widget’s own props are
191
192
  listed here.
192
193
 
194
+ ### WidgetSuite
195
+
196
+ A whole banking page in one component: a section menu over the widgets behind it, served by a single widget-init call. Unlike a widget — a content area you drop onto a page you own — a suite owns the page it is placed on, exists once per page, and decides which widgets appear on it.
197
+
198
+ #### Props
199
+
200
+ | Prop | Type | Default | Description |
201
+ | ------------------ | --------------------------------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
202
+ | `sections` | `readonly WidgetSuiteSectionId[]` | `WIDGET_SUITE_DEFAULT_SECTIONS` | Which sections the suite offers, in menu order. A listed section is still hidden when the token does not earn it. |
203
+ | `section` | `WidgetSuiteSectionId` | — | Which section is showing. Supplying it puts the menu in controlled mode for the lifetime of the mount, so pair it with `onSectionChange`. |
204
+ | `defaultSection` | `WidgetSuiteSectionId` | first of `sections` | Which section the suite opens on. Read once per mount, and ignored when `section` is supplied. |
205
+ | `onSectionChange` | `(section) => void` | `undefined` | Called when a person moves the suite. Never fired on mount, and never for the entitlement fallback, so a URL mirroring it cannot erase a deep link. |
206
+ | `labels` | `WidgetSuiteLabelOverrides` | `WIDGET_SUITE_LABELS_EN` | Every string on the page, in one tree: a group for the shell, the menu names, the section heading, the disclosure states, and one per section carrying that section's widget copy. Override any leaf and its siblings keep their defaults. |
207
+ | `showSectionTitle` | `boolean` | `true` | Shows a heading above each section, named as its menu item is. Set `false` when your page already heads the suite. |
208
+
193
209
  ### AcceptDisclosuresWidget
194
210
 
195
211
  A self-contained widget for reviewing and accepting required banking disclosures. Fetches the caller's disclosure document set (title/url pairs, in presentation order) from `GET /identity/v1/disclosures` and renders an inline bordered card with those links, an agreement checkbox, and an Accept action. The host supplies no document URLs — the document set, its titles, and its order are entirely backend configuration for the bank partner's program. The provider attribution and agreement copy come from the widget init tenant identity.