@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.
- package/README.md +17 -14
- package/dist/experimental/WidgetSuite.d.ts +9 -1
- package/dist/experimental/index.d.ts +9 -1
- package/dist/index.css +20 -6
- package/dist/index.d.ts +46 -23
- package/dist/index.js +54 -53
- package/dist/lib/AcceptDisclosuresWidget.d.ts +9 -1
- package/dist/lib/BalancesWidget.d.ts +8 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -1
- package/dist/lib/BankAccountsWidget.d.ts +9 -1
- package/dist/lib/BillPayWidget.d.ts +8 -0
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/CardDetailsWidget.d.ts +9 -1
- package/dist/lib/CardsWidget.d.ts +9 -1
- package/dist/lib/ChartOfAccountsWidget.d.ts +9 -1
- package/dist/lib/CounterpartsWidget.d.ts +9 -1
- package/dist/lib/CreateCardWidget.d.ts +9 -1
- package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +9 -1
- package/dist/lib/ExpenseManagementWidget.d.ts +9 -1
- package/dist/lib/ExpenseRequirementsWidget.d.ts +9 -1
- package/dist/lib/HelpWidget.d.ts +9 -1
- package/dist/lib/InsightsWidget.d.ts +8 -0
- package/dist/lib/InvoicingWidget.d.ts +9 -1
- package/dist/lib/LinkedAccountsWidget.d.ts +9 -1
- package/dist/lib/ProductsWidget.d.ts +9 -1
- package/dist/lib/ProfileWidget.d.ts +9 -1
- package/dist/lib/ReceiptMatchWidget.d.ts +9 -1
- package/dist/lib/ReceivablesWidget.d.ts +9 -1
- package/dist/lib/SettingsWidget.d.ts +9 -1
- package/dist/lib/TagsWidget.d.ts +9 -1
- package/dist/lib/TeamWidget.d.ts +9 -1
- package/dist/lib/TransfersWidget.d.ts +8 -0
- package/dist/lib/WidgetProvider.d.ts +25 -2
- package/dist/lib/WidgetProvider.js +8 -7
- package/dist/lib/WidgetProviderPublic.d.ts +8 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +54 -53
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +42 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +69 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +21 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +46 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +81 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +46 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +3 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +43 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +11 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +9 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +127 -76
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +7 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +85 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +114 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +50 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +25 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +86 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +89 -124
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +31 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +80 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +228 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +30 -29
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +53 -11
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +69 -67
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +158 -132
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/labels.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index6.js +3 -2
- package/dist/packages/shared-ui-shadcn/dist/index.js +3445 -3413
- 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 {
|
|
16
|
-
import { InlineErrorAlert as
|
|
17
|
-
import { PAGINATION_FOOTER_LABELS_EN as
|
|
18
|
-
import { PaginationFooter as
|
|
19
|
-
import { WidgetTitleWithIconAndChildren as
|
|
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
|
|
23
|
-
import { OnboardingShell as
|
|
24
|
-
import { SectionHeading as
|
|
25
|
-
export { t as EmbeddedToaster, f as EmptyState,
|
|
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 };
|
package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { Button as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { AlertCircleIcon as
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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__ */
|
|
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:
|
|
13
|
+
children: a ?? /* @__PURE__ */ n(i, { className: "ttw:h-6 ttw:w-6 ttw:text-destructive" })
|
|
13
14
|
}),
|
|
14
|
-
/* @__PURE__ */
|
|
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 &&
|
|
23
|
-
|
|
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 {
|
|
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,
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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/
|
|
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,
|
|
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
|
-
|
|
127
|
+
disclosuresAcceptance: f,
|
|
128
|
+
children: /* @__PURE__ */ w(D, { ...p })
|
|
128
129
|
});
|
|
129
130
|
}
|
|
130
131
|
//#endregion
|