@tesouro/embedded-components-react 0.5.162 → 0.5.163

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/README.md CHANGED
@@ -216,16 +216,16 @@ A whole banking page in one component: a section menu over the widgets behind it
216
216
 
217
217
  #### Props
218
218
 
219
- | Prop | Type | Default | Description |
220
- | --------------------------- | --------------------------------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
221
- | `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. |
222
- | `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`. |
223
- | `defaultSection` | `WidgetSuiteSectionId` | first of `sections` | Which section the suite opens on. Read once per mount, and ignored when `section` is supplied. |
224
- | `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. |
225
- | `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. |
226
- | `showSectionTitle` | `boolean` | `true` | Shows a heading above each section, named as its menu item is. Set `false` when your page already heads the suite. |
227
- | `onboardingDisclosureLinks` | `DisclosureLinks` | `undefined` | Legal disclosure URLs (Terms, Privacy, Electronic Communication, Patriot Act) for the entry-point onboarding widget's business-details agreement step, shown to a session whose organization has no application yet. Omitted fields render as plain, non-clickable text. |
228
- | `cardArtSrc` | `string` | `undefined` | Card artwork URL for the debit list's built-in Create card sheet. Omit it and Create card stays hidden. Credit Create card is always hidden in the suite. |
219
+ | Prop | Type | Default | Description |
220
+ | --------------------------- | --------------------------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
221
+ | `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. |
222
+ | `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`. |
223
+ | `defaultSection` | `WidgetSuiteSectionId` | first of `sections` | Which section the suite opens on. Read once per mount, and ignored when `section` is supplied. |
224
+ | `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. |
225
+ | `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. |
226
+ | `showSectionTitle` | `boolean` | `true` | Shows a heading above each section, named as its menu item is. Set `false` when your page already heads the suite. |
227
+ | `onboardingDisclosureLinks` | `DisclosureLinks` | `undefined` | Legal disclosure URLs (Terms, Privacy, Electronic Communication, Patriot Act) for the entry-point onboarding widget's business-details agreement step, shown to a session whose organization has no application yet. Omitted fields render as plain, non-clickable text. |
228
+ | `cardArtSrc` | `string` | `undefined` | Card artwork URL for the debit list's built-in Create card sheet and details card face. Omit it and both use a built-in neutral plastic, so Create card still shows when the token holds the issue, roster and funding scopes. Credit Create card is always hidden in the suite. |
229
229
 
230
230
  ### AcceptDisclosuresWidget
231
231
 
package/dist/index.d.ts CHANGED
@@ -3638,10 +3638,11 @@ interface WidgetSuiteProps extends WidgetProviderProps {
3638
3638
  */
3639
3639
  onboardingDisclosureLinks?: DisclosureLinks;
3640
3640
  /**
3641
- * Card artwork URL for the debit list's built-in Create card sheet. Host-resolved
3642
- * for the same reason as `onboardingDisclosureLinks`: the package ships no
3643
- * artwork. Omitted, Create card stays hidden. Credit has no in-package issuance
3644
- * flow, so its Create card stays hidden either way.
3641
+ * Card artwork URL for the debit list's built-in Create card sheet and its
3642
+ * details card face. Omitted, both use a built-in neutral plastic, so Create
3643
+ * card still shows whenever the token holds the issue, roster and funding
3644
+ * scopes. Credit has no in-package issuance flow, so its Create card stays
3645
+ * hidden either way.
3645
3646
  */
3646
3647
  cardArtSrc?: string;
3647
3648
  }
@@ -2777,10 +2777,11 @@ interface WidgetSuiteProps extends WidgetProviderProps {
2777
2777
  */
2778
2778
  onboardingDisclosureLinks?: DisclosureLinks;
2779
2779
  /**
2780
- * Card artwork URL for the debit list's built-in Create card sheet. Host-resolved
2781
- * for the same reason as `onboardingDisclosureLinks`: the package ships no
2782
- * artwork. Omitted, Create card stays hidden. Credit has no in-package issuance
2783
- * flow, so its Create card stays hidden either way.
2780
+ * Card artwork URL for the debit list's built-in Create card sheet and its
2781
+ * details card face. Omitted, both use a built-in neutral plastic, so Create
2782
+ * card still shows whenever the token holds the issue, roster and funding
2783
+ * scopes. Credit has no in-package issuance flow, so its Create card stays
2784
+ * hidden either way.
2784
2785
  */
2785
2786
  cardArtSrc?: string;
2786
2787
  }
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.162", n = "3ed58bb3461c09c7c74a12f5a7b10d7e0684a84a", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.163", n = "7476319d338757f742a822cb15f8348c32d5cc15", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -25,7 +25,7 @@ function c() {
25
25
  })
26
26
  }), t(c, [n.DebitCardReadOrg]) && /* @__PURE__ */ o(a, {
27
27
  ...d.debitCards,
28
- cardArtSrc: u,
28
+ cardArtSrc: u ?? "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='190' viewBox='0 0 300 190'><rect width='300' height='190' rx='16' fill='%23334155'/><rect x='28' y='64' width='44' height='34' rx='6' fill='%2364748b'/></svg>",
29
29
  headerStart: /* @__PURE__ */ o(r, {
30
30
  className: "ttw:mb-0",
31
31
  children: d.debitCardsTitle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.162",
3
+ "version": "0.5.163",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {