@tesouro/embedded-components-react 0.10.15 → 0.11.1
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 +70 -6
- package/dist/experimental/QuickViewWidget.d.ts +11 -0
- package/dist/experimental/RemoteCheckCapture.d.ts +11 -0
- package/dist/experimental/index.d.ts +11 -0
- package/dist/index.css +15 -50
- package/dist/index.d.ts +75 -15
- package/dist/index.js +56 -55
- package/dist/lib/AcceptDisclosuresWidget.d.ts +11 -0
- package/dist/lib/BalancesWidget.d.ts +11 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +11 -0
- package/dist/lib/BankAccountsWidget.d.ts +11 -0
- package/dist/lib/BankingComplianceBannerWidget.d.ts +11 -0
- package/dist/lib/BillPayWidget.d.ts +11 -0
- package/dist/lib/CardDetailsWidget.d.ts +11 -0
- package/dist/lib/CounterpartsWidget.d.ts +11 -0
- package/dist/lib/CounterpartsWidgetPublic.d.ts +11 -0
- package/dist/lib/CreditCardsWidget.d.ts +11 -0
- package/dist/lib/CustomersWidget.d.ts +11 -0
- package/dist/lib/DebitCardsWidget.d.ts +11 -0
- package/dist/lib/ExpenseManagementWidget.d.ts +11 -0
- package/dist/lib/InsightsWidget.d.ts +11 -0
- package/dist/lib/LinkedAccountsWidget.d.ts +11 -0
- package/dist/lib/OfferWidget.d.ts +11 -0
- package/dist/lib/ProductsWidget.d.ts +11 -0
- package/dist/lib/ReceivablesWidget.d.ts +11 -0
- package/dist/lib/SettingsWidget.d.ts +11 -0
- package/dist/lib/TransfersWidget.d.ts +54 -13
- package/dist/lib/WidgetProvider.d.ts +32 -2
- package/dist/lib/WidgetProvider.js +15 -13
- package/dist/lib/WidgetProviderPublic.d.ts +11 -0
- package/dist/lib/WidgetSuite.d.ts +54 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +54 -52
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/PdfFileViewer.js +23 -21
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +133 -130
- 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 +15 -12
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AmountInput/AmountInput.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmbeddedToaster.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/HostIsolationScope/HostIsolationScope.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/LoadingRegion/LoadingRegion.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +57 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/labels.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/csp.js +37 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/pdfWorkerSrc.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/testIds.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +10 -17
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +159 -218
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/ReviewTransferStep.js +37 -88
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModal.js +184 -245
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferResultStep.js +43 -58
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/reviewTransferStepLabels.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/transferResultStepLabels.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/useFocusFirstInvalidField.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountValue.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferDetailSheet.js +68 -101
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +155 -153
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +20 -11
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/maskLabels.js +7 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +4325 -4094
- package/dist/pdf.worker.min.mjs +28 -0
- package/package.json +13 -3
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModalHeader.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferReviewAccountCard.js +0 -64
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountTile.js +0 -14
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferStatusBadge.js +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tesouro/embedded-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
"ignore": [
|
|
13
13
|
"msw",
|
|
14
14
|
"@mswjs/interceptors"
|
|
15
|
+
],
|
|
16
|
+
"pin": [
|
|
17
|
+
"react-pdf"
|
|
15
18
|
]
|
|
16
19
|
},
|
|
17
20
|
"repository": {
|
|
@@ -30,6 +33,7 @@
|
|
|
30
33
|
"exports": {
|
|
31
34
|
"./package.json": "./package.json",
|
|
32
35
|
"./styles.css": "./dist/index.css",
|
|
36
|
+
"./pdf.worker.min.mjs": "./dist/pdf.worker.min.mjs",
|
|
33
37
|
".": {
|
|
34
38
|
"types": "./dist/index.d.ts",
|
|
35
39
|
"import": "./dist/index.js",
|
|
@@ -110,7 +114,9 @@
|
|
|
110
114
|
"rollup-plugin-dts",
|
|
111
115
|
"@tailwindcss/cli",
|
|
112
116
|
"tailwindcss",
|
|
113
|
-
"tw-animate-css"
|
|
117
|
+
"tw-animate-css",
|
|
118
|
+
"react-pdf",
|
|
119
|
+
"pdfjs-dist"
|
|
114
120
|
]
|
|
115
121
|
}
|
|
116
122
|
],
|
|
@@ -120,6 +126,8 @@
|
|
|
120
126
|
"vite build",
|
|
121
127
|
"node scripts/bundle-dts.mjs",
|
|
122
128
|
"tailwindcss -i src/styles.css -o dist/index.css",
|
|
129
|
+
"node scripts/stage-pdf-worker.mjs",
|
|
130
|
+
"node scripts/check-inline-assets.mjs",
|
|
123
131
|
"node scripts/check-tecton-isolation.mjs"
|
|
124
132
|
],
|
|
125
133
|
"parallel": false
|
|
@@ -169,6 +177,7 @@
|
|
|
169
177
|
"@vitest/browser",
|
|
170
178
|
"@vitest/browser-playwright",
|
|
171
179
|
"msw",
|
|
180
|
+
"pdfjs-dist",
|
|
172
181
|
"storybook",
|
|
173
182
|
"vite",
|
|
174
183
|
"vite-plugin-svgr",
|
|
@@ -253,13 +262,14 @@
|
|
|
253
262
|
"clsx": "^2.1.1",
|
|
254
263
|
"cmdk": "^1.1.1",
|
|
255
264
|
"date-fns": "^4.4.0",
|
|
265
|
+
"get-nonce": "^1.0.1",
|
|
256
266
|
"lucide-react": "^1.31.0",
|
|
257
267
|
"posthog-js": "^1.372.3",
|
|
258
268
|
"radix-ui": "^1.6.7",
|
|
259
269
|
"react-confetti": "^6.4.0",
|
|
260
270
|
"react-day-picker": "^9.14.0",
|
|
261
271
|
"react-error-boundary": "^6.1.6",
|
|
262
|
-
"react-pdf": "
|
|
272
|
+
"react-pdf": "10.5.0",
|
|
263
273
|
"react-webcam": "^7.2.0",
|
|
264
274
|
"sonner": "^2.0.8",
|
|
265
275
|
"tailwind-merge": "^3.7.0",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DialogDescription as e, DialogTitle as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
-
import { ArrowRightLeft as i } from "lucide-react";
|
|
4
|
-
// ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModalHeader.js
|
|
5
|
-
function a({ title: a, subtitle: o }) {
|
|
6
|
-
return /* @__PURE__ */ n("div", {
|
|
7
|
-
className: "ttw:pb-4",
|
|
8
|
-
children: /* @__PURE__ */ r("div", {
|
|
9
|
-
className: "ttw:flex ttw:items-start ttw:gap-3 ttw:pr-8",
|
|
10
|
-
children: [/* @__PURE__ */ n("div", {
|
|
11
|
-
className: "ttw:flex ttw:size-10 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-primary/10",
|
|
12
|
-
children: /* @__PURE__ */ n(i, {
|
|
13
|
-
className: "ttw:size-[18px] ttw:text-primary",
|
|
14
|
-
"aria-hidden": !0
|
|
15
|
-
})
|
|
16
|
-
}), /* @__PURE__ */ r("div", {
|
|
17
|
-
className: "ttw:min-w-0 ttw:flex-1",
|
|
18
|
-
children: [/* @__PURE__ */ n(t, {
|
|
19
|
-
className: "ttw:text-left ttw:text-xl ttw:font-semibold ttw:leading-tight ttw:tracking-tight",
|
|
20
|
-
children: a
|
|
21
|
-
}), /* @__PURE__ */ n(e, {
|
|
22
|
-
className: "ttw:mt-1.5 ttw:text-left",
|
|
23
|
-
children: o
|
|
24
|
-
})]
|
|
25
|
-
})]
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
export { a as TransferMoneyModalHeader };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Typography as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
import { Landmark as r } from "lucide-react";
|
|
4
|
-
// ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferReviewAccountCard.js
|
|
5
|
-
function i({ account: i }) {
|
|
6
|
-
let a = !!i.balanceLabel;
|
|
7
|
-
return /* @__PURE__ */ n("div", {
|
|
8
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:rounded-lg ttw:border ttw:border-input ttw:px-4 ttw:py-3.5",
|
|
9
|
-
children: [/* @__PURE__ */ t("div", {
|
|
10
|
-
className: "ttw:min-w-0 ttw:flex-1",
|
|
11
|
-
children: i.showInstitutionIcon ? /* @__PURE__ */ n("div", {
|
|
12
|
-
className: "ttw:flex ttw:items-center ttw:gap-3",
|
|
13
|
-
children: [/* @__PURE__ */ t("div", {
|
|
14
|
-
className: "ttw:flex ttw:size-10 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-md ttw:bg-primary/10",
|
|
15
|
-
children: /* @__PURE__ */ t(r, {
|
|
16
|
-
className: "ttw:size-5 ttw:text-primary",
|
|
17
|
-
"aria-hidden": !0
|
|
18
|
-
})
|
|
19
|
-
}), /* @__PURE__ */ n("div", {
|
|
20
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-col",
|
|
21
|
-
children: [/* @__PURE__ */ t(e, {
|
|
22
|
-
variant: "body2",
|
|
23
|
-
component: "p",
|
|
24
|
-
className: "ttw:truncate ttw:font-semibold ttw:leading-tight ttw:text-foreground",
|
|
25
|
-
children: i.primaryLabel
|
|
26
|
-
}), /* @__PURE__ */ t(e, {
|
|
27
|
-
variant: "body2",
|
|
28
|
-
color: "muted",
|
|
29
|
-
component: "p",
|
|
30
|
-
className: "ttw:max-w-full ttw:break-all ttw:leading-tight",
|
|
31
|
-
children: i.accountDetailLabel
|
|
32
|
-
})]
|
|
33
|
-
})]
|
|
34
|
-
}) : /* @__PURE__ */ n("div", {
|
|
35
|
-
className: "ttw:flex ttw:min-w-0 ttw:max-w-full ttw:flex-col ttw:items-start",
|
|
36
|
-
children: [/* @__PURE__ */ t("span", {
|
|
37
|
-
className: "ttw:block ttw:max-w-full ttw:truncate ttw:rounded-full ttw:bg-primary/10 ttw:px-2.5 ttw:py-0.5 ttw:text-sm ttw:font-medium ttw:text-primary",
|
|
38
|
-
children: i.primaryLabel
|
|
39
|
-
}), /* @__PURE__ */ t(e, {
|
|
40
|
-
variant: "body2",
|
|
41
|
-
color: "muted",
|
|
42
|
-
component: "p",
|
|
43
|
-
className: "ttw:max-w-full ttw:break-all ttw:leading-tight",
|
|
44
|
-
children: i.accountDetailLabel
|
|
45
|
-
})]
|
|
46
|
-
})
|
|
47
|
-
}), a ? /* @__PURE__ */ n("div", {
|
|
48
|
-
className: "ttw:flex ttw:shrink-0 ttw:flex-col ttw:text-right",
|
|
49
|
-
children: [/* @__PURE__ */ t(e, {
|
|
50
|
-
variant: "body2",
|
|
51
|
-
component: "p",
|
|
52
|
-
className: "ttw:font-semibold ttw:leading-tight ttw:text-foreground",
|
|
53
|
-
children: i.balanceLabel
|
|
54
|
-
}), i.availableBalanceCaption ? /* @__PURE__ */ t(e, {
|
|
55
|
-
variant: "body2",
|
|
56
|
-
color: "muted",
|
|
57
|
-
component: "p",
|
|
58
|
-
className: "ttw:text-xs ttw:leading-tight",
|
|
59
|
-
children: i.availableBalanceCaption
|
|
60
|
-
}) : null]
|
|
61
|
-
}) : null]
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
export { i as TransferReviewAccountCard };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { cn as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { Landmark as n } from "lucide-react";
|
|
4
|
-
// ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountTile.js
|
|
5
|
-
function r({ kind: r }) {
|
|
6
|
-
return /* @__PURE__ */ t("span", {
|
|
7
|
-
className: e("ttw:flex ttw:size-7 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-md", r === "internal" ? "ttw:bg-primary/10 ttw:text-primary" : "ttw:bg-muted ttw:text-muted-foreground"),
|
|
8
|
-
children: /* @__PURE__ */ t(n, {
|
|
9
|
-
className: "ttw:size-4",
|
|
10
|
-
"aria-hidden": !0
|
|
11
|
-
})
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
export { r as TransferAccountTile };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Badge as e, cn as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
// ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferStatusBadge.js
|
|
4
|
-
var r = {
|
|
5
|
-
success: "ttw:bg-emerald-100 ttw:text-emerald-700",
|
|
6
|
-
warning: "ttw:bg-amber-100 ttw:text-amber-700",
|
|
7
|
-
destructive: "ttw:bg-destructive/10 ttw:text-destructive",
|
|
8
|
-
returned: "ttw:bg-rose-100 ttw:text-rose-700"
|
|
9
|
-
};
|
|
10
|
-
function i({ label: i, tone: a }) {
|
|
11
|
-
return /* @__PURE__ */ n(e, {
|
|
12
|
-
variant: "secondary",
|
|
13
|
-
className: t(r[a]),
|
|
14
|
-
children: i
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
export { i as TransferStatusBadge };
|