@tesouro/embedded-components-react 0.2.280 → 0.2.282

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 (112) hide show
  1. package/README.md +17 -14
  2. package/dist/experimental/WidgetSuite.d.ts +9 -1
  3. package/dist/experimental/index.d.ts +9 -1
  4. package/dist/index.css +20 -6
  5. package/dist/index.d.ts +46 -23
  6. package/dist/index.js +54 -53
  7. package/dist/lib/AcceptDisclosuresWidget.d.ts +9 -1
  8. package/dist/lib/BalancesWidget.d.ts +8 -0
  9. package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -1
  10. package/dist/lib/BankAccountsWidget.d.ts +9 -1
  11. package/dist/lib/BillPayWidget.d.ts +8 -0
  12. package/dist/lib/BillPayWidget.js +1 -1
  13. package/dist/lib/CardDetailsWidget.d.ts +9 -1
  14. package/dist/lib/CardsWidget.d.ts +9 -1
  15. package/dist/lib/ChartOfAccountsWidget.d.ts +9 -1
  16. package/dist/lib/CounterpartsWidget.d.ts +9 -1
  17. package/dist/lib/CreateCardWidget.d.ts +9 -1
  18. package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +9 -1
  19. package/dist/lib/ExpenseManagementWidget.d.ts +9 -1
  20. package/dist/lib/ExpenseRequirementsWidget.d.ts +9 -1
  21. package/dist/lib/HelpWidget.d.ts +9 -1
  22. package/dist/lib/InsightsWidget.d.ts +8 -0
  23. package/dist/lib/InvoicingWidget.d.ts +9 -1
  24. package/dist/lib/LinkedAccountsWidget.d.ts +9 -1
  25. package/dist/lib/ProductsWidget.d.ts +9 -1
  26. package/dist/lib/ProfileWidget.d.ts +9 -1
  27. package/dist/lib/ReceiptMatchWidget.d.ts +9 -1
  28. package/dist/lib/ReceivablesWidget.d.ts +9 -1
  29. package/dist/lib/SettingsWidget.d.ts +9 -1
  30. package/dist/lib/TagsWidget.d.ts +9 -1
  31. package/dist/lib/TeamWidget.d.ts +9 -1
  32. package/dist/lib/TransfersWidget.d.ts +8 -0
  33. package/dist/lib/WidgetProvider.d.ts +25 -2
  34. package/dist/lib/WidgetProvider.js +8 -7
  35. package/dist/lib/WidgetProviderPublic.d.ts +8 -0
  36. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +3 -2
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +54 -53
  38. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +3 -2
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -5
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +42 -39
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +69 -54
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +21 -2
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +46 -40
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +81 -1
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +46 -47
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +3 -11
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -8
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +5 -3
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +43 -5
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +1 -102
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +11 -3
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +9 -6
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +4 -5
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +127 -76
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +6 -6
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +7 -111
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +85 -1
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +16 -12
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +2 -24
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +8 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +114 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +1 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +25 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +50 -49
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +1 -1
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +25 -12
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +86 -69
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +2 -1
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +7 -7
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +17 -16
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +1 -0
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +1 -1
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +89 -124
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -1
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +31 -26
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -1
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +80 -77
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -4
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +228 -6
  80. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +3 -2
  81. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +3 -2
  82. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +3 -2
  83. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +30 -29
  84. package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +2 -1
  85. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
  86. package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +7 -6
  87. package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +2 -1
  88. package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +5 -4
  89. package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +3 -2
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +3 -2
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +5 -4
  92. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +3 -2
  93. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +3 -2
  94. package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +3 -2
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +3 -2
  96. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +6 -6
  97. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +53 -11
  98. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +5 -5
  99. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +69 -67
  100. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +158 -132
  101. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +7 -4
  102. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +20 -0
  103. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/labels.js +6 -1
  104. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  105. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +9 -9
  106. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js +19 -18
  107. package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +3 -2
  108. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +3 -2
  109. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +1 -1
  110. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index6.js +3 -2
  111. package/dist/packages/shared-ui-shadcn/dist/index.js +3445 -3413
  112. package/package.json +1 -1
@@ -12,14 +12,14 @@ import { HostIsolationScope as l } from "./lib/HostIsolationScope/HostIsolationS
12
12
  import { Link as u } from "./lib/Link/Link.js";
13
13
  import { WidgetContainer as d } from "./lib/WidgetContainer/WidgetContainer.js";
14
14
  import { EmptyState as f } from "./lib/EmptyState/EmptyState.js";
15
- import { ErrorState as p } from "./lib/ErrorState/ErrorState.js";
16
- import { InlineErrorAlert as m } from "./lib/InlineErrorAlert/InlineErrorAlert.js";
17
- import { PAGINATION_FOOTER_LABELS_EN as h } from "./lib/PaginationFooter/labels.js";
18
- import { PaginationFooter as g } from "./lib/PaginationFooter/PaginationFooter.js";
19
- import { WidgetTitleWithIconAndChildren as _ } from "./lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
15
+ import { ERROR_STATE_ID as p, ErrorState as m } from "./lib/ErrorState/ErrorState.js";
16
+ import { InlineErrorAlert as h } from "./lib/InlineErrorAlert/InlineErrorAlert.js";
17
+ import { PAGINATION_FOOTER_LABELS_EN as g } from "./lib/PaginationFooter/labels.js";
18
+ import { PaginationFooter as _ } from "./lib/PaginationFooter/PaginationFooter.js";
19
+ import { WidgetTitleWithIconAndChildren as v } from "./lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
20
20
  import "./lib/OnboardingShell/labels.js";
21
21
  import "./lib/OnboardingShell/OnboardingShellStepper.js";
22
- import { OnboardingShellOverlayPortal as v } from "./lib/OnboardingShell/OnboardingShellOverlayPortal.js";
23
- import { OnboardingShell as y } from "./lib/OnboardingShell/OnboardingShell.js";
24
- import { SectionHeading as b } from "./lib/SectionHeading/SectionHeading.js";
25
- export { t as EmbeddedToaster, f as EmptyState, p as ErrorState, l as HostIsolationScope, m as InlineErrorAlert, u as Link, y as OnboardingShell, v as OnboardingShellOverlayPortal, h as PAGINATION_FOOTER_LABELS_EN, g as PaginationFooter, b as SectionHeading, n as UIFramework, i as UIProvider, d as WidgetContainer, _ as WidgetTitleWithIconAndChildren, e as avatarSwatchFor, a as registerDesignSystemEnsurer, o as registerUIRenderers, r as resolveUIFramework, s as useDesignSystemEnsurer, c as useFrameworkRenderer };
22
+ import { OnboardingShellOverlayPortal as y } from "./lib/OnboardingShell/OnboardingShellOverlayPortal.js";
23
+ import { OnboardingShell as b } from "./lib/OnboardingShell/OnboardingShell.js";
24
+ import { SectionHeading as x } from "./lib/SectionHeading/SectionHeading.js";
25
+ export { p as ERROR_STATE_ID, t as EmbeddedToaster, f as EmptyState, m as ErrorState, l as HostIsolationScope, h as InlineErrorAlert, u as Link, b as OnboardingShell, y as OnboardingShellOverlayPortal, g as PAGINATION_FOOTER_LABELS_EN, _ as PaginationFooter, x as SectionHeading, n as UIFramework, i as UIProvider, d as WidgetContainer, v as WidgetTitleWithIconAndChildren, e as avatarSwatchFor, a as registerDesignSystemEnsurer, o as registerUIRenderers, r as resolveUIFramework, s as useDesignSystemEnsurer, c as useFrameworkRenderer };
@@ -1,31 +1,32 @@
1
- import { Button as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { AlertCircleIcon as r } from "lucide-react";
1
+ import { Button as e, cn as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { AlertCircleIcon as i } from "lucide-react";
4
4
  //#region ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js
5
- function i({ icon: i, title: a, description: o, retryLabel: s, onRetry: c, className: l, testId: u }) {
6
- return /* @__PURE__ */ n("div", {
7
- "data-testid": u,
8
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:px-4 ttw:py-14 ttw:text-center" + (l ? ` ${l}` : ""),
5
+ var a = "error-state";
6
+ function o({ icon: a, title: o, description: s, retryLabel: c, onRetry: l, className: u, testId: d }) {
7
+ return /* @__PURE__ */ r("div", {
8
+ "data-testid": d,
9
+ className: t("ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:px-4 ttw:py-14 ttw:text-center", u),
9
10
  children: [
10
- /* @__PURE__ */ t("div", {
11
+ /* @__PURE__ */ n("div", {
11
12
  className: "ttw:mb-4 ttw:flex ttw:h-14 ttw:w-14 ttw:items-center ttw:justify-center ttw:rounded-2xl ttw:bg-destructive/10",
12
- children: i ?? /* @__PURE__ */ t(r, { className: "ttw:h-6 ttw:w-6 ttw:text-destructive" })
13
+ children: a ?? /* @__PURE__ */ n(i, { className: "ttw:h-6 ttw:w-6 ttw:text-destructive" })
13
14
  }),
14
- /* @__PURE__ */ t("h3", {
15
+ /* @__PURE__ */ n("h3", {
15
16
  className: "ttw:mb-2 ttw:text-lg ttw:font-bold ttw:tracking-tight ttw:text-foreground",
16
- children: a
17
- }),
18
- o && /* @__PURE__ */ t("p", {
19
- className: "ttw:mb-6 ttw:max-w-sm ttw:text-sm ttw:text-muted-foreground",
20
17
  children: o
21
18
  }),
22
- s && c && /* @__PURE__ */ t(e, {
23
- variant: "outline",
24
- onClick: c,
19
+ s && /* @__PURE__ */ n("p", {
20
+ className: t("ttw:max-w-sm ttw:text-sm ttw:text-muted-foreground", c && l && "ttw:mb-6"),
25
21
  children: s
22
+ }),
23
+ c && l && /* @__PURE__ */ n(e, {
24
+ variant: "outline",
25
+ onClick: l,
26
+ children: c
26
27
  })
27
28
  ]
28
29
  });
29
30
  }
30
31
  //#endregion
31
- export { i as ErrorState, i as default };
32
+ export { a as ERROR_STATE_ID, o as ErrorState, o as default };
@@ -72,7 +72,7 @@ function p({ pageSizeOptions: t = i, screenLabels: r, formLabels: p, deleteLabel
72
72
  })
73
73
  ] });
74
74
  }
75
- function m({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f, analytics: m, ...h }) {
75
+ function m({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f, analytics: m, disclosuresAcceptance: h, ...g }) {
76
76
  return /* @__PURE__ */ d(t, {
77
77
  widgetName: r,
78
78
  baseUrl: e,
@@ -86,7 +86,8 @@ function m({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gat
86
86
  errorFallback: u,
87
87
  onError: f,
88
88
  analytics: m,
89
- children: /* @__PURE__ */ d(p, { ...h })
89
+ disclosuresAcceptance: h,
90
+ children: /* @__PURE__ */ d(p, { ...g })
90
91
  });
91
92
  }
92
93
  //#endregion
@@ -344,7 +344,7 @@ function h({ labels: r, featureLabels: a, title: h, acceptInviteRedirectUri: g }
344
344
  })
345
345
  ] });
346
346
  }
347
- function g({ baseUrl: e, widgetToken: t, organizationId: ee, configClient: n, gatewayRouting: te, linkComponent: ne, implementation: re, uiFramework: ie, errorFallback: ae, onError: oe, analytics: i, ...o }) {
347
+ function g({ baseUrl: e, widgetToken: t, organizationId: ee, configClient: n, gatewayRouting: te, linkComponent: ne, implementation: re, uiFramework: ie, errorFallback: ae, onError: oe, analytics: i, disclosuresAcceptance: o, ...se }) {
348
348
  return /* @__PURE__ */ f(r, {
349
349
  widgetName: a,
350
350
  baseUrl: e,
@@ -358,7 +358,8 @@ function g({ baseUrl: e, widgetToken: t, organizationId: ee, configClient: n, ga
358
358
  errorFallback: ae,
359
359
  onError: oe,
360
360
  analytics: i,
361
- children: /* @__PURE__ */ f(h, { ...o })
361
+ disclosuresAcceptance: o,
362
+ children: /* @__PURE__ */ f(h, { ...se })
362
363
  });
363
364
  }
364
365
  //#endregion
@@ -9,7 +9,7 @@ import { CardProgram as n } from "../../../shared/feature/dist/lib/card/cardProg
9
9
  import "../../../shared/feature/dist/index.js";
10
10
  import { BankAccountsWidget as r } from "../../../bank-accounts-widget/feature/dist/index8.js";
11
11
  import "../../../bank-accounts-widget/feature/dist/index.js";
12
- import { BillPayWidget as i } from "../../../bill-pay-widget/feature/dist/index30.js";
12
+ import { BillPayWidget as i } from "../../../bill-pay-widget/feature/dist/index34.js";
13
13
  import "../../../bill-pay-widget/feature/dist/index.js";
14
14
  import { CardsWidget as a } from "../../../cards-widget/feature/dist/index8.js";
15
15
  import "../../../cards-widget/feature/dist/index.js";
@@ -110,7 +110,7 @@ function D({ sections: r, labels: m, sectionLabels: D, sectionTitleLabels: O, co
110
110
  labels: m
111
111
  });
112
112
  }
113
- function O({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, ...f }) {
113
+ function O({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, ...p }) {
114
114
  return /* @__PURE__ */ w(r, {
115
115
  widgetName: m,
116
116
  baseUrl: e,
@@ -124,7 +124,8 @@ function O({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gat
124
124
  errorFallback: l,
125
125
  onError: u,
126
126
  analytics: d,
127
- children: /* @__PURE__ */ w(D, { ...f })
127
+ disclosuresAcceptance: f,
128
+ children: /* @__PURE__ */ w(D, { ...p })
128
129
  });
129
130
  }
130
131
  //#endregion