@tesouro/embedded-components-react 0.5.2 → 0.5.3
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 +15 -2
- package/dist/index.d.ts +120 -100
- package/dist/index.js +6 -3
- package/dist/lib/BankAccountOnboardingWidget.d.ts +214 -246
- package/dist/lib/MarketingWidget.d.ts +684 -0
- package/dist/lib/MarketingWidget.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +183 -205
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index2.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/{bank-account-onboarding-widget/ui/dist/index26.js → marketing-widget/feature/dist/index3.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js +81 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/{bank-account-onboarding-widget/ui/dist/index24.js → marketing-widget/ui/dist/index2.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/{bank-account-onboarding-widget/ui/dist/index25.js → marketing-widget/ui/dist/index3.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/{bank-account-onboarding-widget/ui/dist/index27.js → marketing-widget/ui/dist/index4.js} +36 -37
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index5.js +75 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +24 -22
- package/dist/libs/tesouro-embedded-components-react/{bank-account-onboarding-widget/data-access/dist/index9.js → shared/data-access/dist/lib/onboardingSuppressionReason.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/{bank-account-onboarding-widget/data-access/dist/index10.js → shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js} +5 -6
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +0 -75
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js
|
|
2
2
|
var e = {
|
|
3
3
|
learnMore: "Learn more",
|
|
4
4
|
primaryCta: "Apply for an account",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { CheckCircle2 as n } from "lucide-react";
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js
|
|
4
4
|
function r({ text: r, iconColor: i }) {
|
|
5
5
|
return /* @__PURE__ */ t("div", {
|
|
6
6
|
className: "ttw:flex ttw:gap-2",
|
|
@@ -1,75 +1,74 @@
|
|
|
1
1
|
import { Button as e, Dialog as t, DialogClose as n, DialogContent as r, DialogTitle as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { MARKETING_WIDGET_LABELS_EN as a } from "./
|
|
3
|
-
import { MarketingBenefitItem as o } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function f({ open: f, providedByCaption: p, modalPrimaryImg: m, primaryModalHeader: h, benefits: g, appearance: _, onClose: v, onPrimaryCtaClick: y, labels: b }) {
|
|
2
|
+
import { MARKETING_WIDGET_LABELS_EN as a } from "./index2.js";
|
|
3
|
+
import { MarketingBenefitItem as o } from "./index3.js";
|
|
4
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
+
import { ArrowRight as l, X as u } from "lucide-react";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index4.js
|
|
7
|
+
function d({ open: d, providedByCaption: f, modalPrimaryImg: p, primaryModalHeader: m, benefits: h, appearance: g, onClose: _, onPrimaryCtaClick: v, labels: y, testIds: b }) {
|
|
9
8
|
let x = {
|
|
10
9
|
...a,
|
|
11
|
-
...
|
|
10
|
+
...y
|
|
12
11
|
};
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
open:
|
|
12
|
+
return /* @__PURE__ */ s(t, {
|
|
13
|
+
open: d,
|
|
15
14
|
onOpenChange: (e) => {
|
|
16
|
-
e ||
|
|
15
|
+
e || _();
|
|
17
16
|
},
|
|
18
|
-
children: /* @__PURE__ */
|
|
19
|
-
"data-testid":
|
|
17
|
+
children: /* @__PURE__ */ c(r, {
|
|
18
|
+
"data-testid": b?.root,
|
|
20
19
|
showCloseButton: !1,
|
|
21
20
|
className: "ttw:max-w-[500px] ttw:gap-0 ttw:p-6",
|
|
22
21
|
style: {
|
|
23
|
-
backgroundColor:
|
|
24
|
-
borderRadius:
|
|
22
|
+
backgroundColor: g.modalBackgroundColor,
|
|
23
|
+
borderRadius: g.borderRadius
|
|
25
24
|
},
|
|
26
25
|
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ s(n, {
|
|
28
27
|
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2",
|
|
29
|
-
onClick:
|
|
28
|
+
onClick: _,
|
|
30
29
|
"aria-label": x.dismissModalAriaLabel,
|
|
31
|
-
children: /* @__PURE__ */
|
|
30
|
+
children: /* @__PURE__ */ s(u, {
|
|
32
31
|
className: "ttw:size-5",
|
|
33
32
|
"aria-hidden": !0
|
|
34
33
|
})
|
|
35
34
|
}),
|
|
36
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ s(i, {
|
|
37
36
|
className: "ttw:mb-2 ttw:text-center ttw:text-[1.35rem] ttw:font-semibold ttw:leading-tight",
|
|
38
|
-
children:
|
|
37
|
+
children: m
|
|
39
38
|
}),
|
|
40
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ s("p", {
|
|
41
40
|
className: "ttw:mb-2 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
|
|
42
|
-
children:
|
|
41
|
+
children: f
|
|
43
42
|
}),
|
|
44
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ s("div", {
|
|
45
44
|
className: "ttw:mb-6 ttw:flex ttw:justify-center",
|
|
46
|
-
children: /* @__PURE__ */
|
|
47
|
-
src:
|
|
48
|
-
alt:
|
|
45
|
+
children: /* @__PURE__ */ s("img", {
|
|
46
|
+
src: p.src,
|
|
47
|
+
alt: p.alt,
|
|
49
48
|
width: 432,
|
|
50
49
|
height: 200,
|
|
51
50
|
className: "ttw:h-[200px] ttw:w-[60%] ttw:rounded-lg ttw:object-cover"
|
|
52
51
|
})
|
|
53
52
|
}),
|
|
54
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ s("div", {
|
|
55
54
|
className: "ttw:mb-6 ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
56
|
-
children:
|
|
55
|
+
children: h.map((e) => /* @__PURE__ */ s(o, {
|
|
57
56
|
text: e,
|
|
58
|
-
iconColor:
|
|
57
|
+
iconColor: g.primaryColor
|
|
59
58
|
}, e))
|
|
60
59
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ s("div", {
|
|
62
61
|
className: "ttw:flex ttw:justify-center",
|
|
63
|
-
children: /* @__PURE__ */
|
|
62
|
+
children: /* @__PURE__ */ c(e, {
|
|
64
63
|
type: "button",
|
|
65
|
-
onClick:
|
|
64
|
+
onClick: v,
|
|
66
65
|
className: "ttw:h-auto ttw:w-[83%] ttw:rounded-xl ttw:py-3 ttw:text-base ttw:font-medium ttw:transition-[filter] ttw:hover:brightness-90",
|
|
67
66
|
style: {
|
|
68
|
-
backgroundColor:
|
|
69
|
-
color:
|
|
67
|
+
backgroundColor: g.primaryColor,
|
|
68
|
+
color: g.primaryContrastColor
|
|
70
69
|
},
|
|
71
|
-
"data-testid":
|
|
72
|
-
children: [x.primaryCta, /* @__PURE__ */
|
|
70
|
+
"data-testid": b?.primaryCtaButton,
|
|
71
|
+
children: [x.primaryCta, /* @__PURE__ */ s(l, {
|
|
73
72
|
className: "ttw:size-4",
|
|
74
73
|
"aria-hidden": !0
|
|
75
74
|
})]
|
|
@@ -80,4 +79,4 @@ function f({ open: f, providedByCaption: p, modalPrimaryImg: m, primaryModalHead
|
|
|
80
79
|
});
|
|
81
80
|
}
|
|
82
81
|
//#endregion
|
|
83
|
-
export {
|
|
82
|
+
export { d as MarketingWidgetModal };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { MARKETING_WIDGET_LABELS_EN as t } from "./index2.js";
|
|
3
|
+
import { MarketingWidgetModal as n } from "./index4.js";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index5.js
|
|
6
|
+
function o({ open: o, vspLogo: s, bankingText: c, primaryCaption: l, secondaryCaption: u, providedByCaption: d, modalPrimaryImg: f, primaryModalHeader: p, benefits: m, appearance: h, onOpenMarketingModal: g, onCloseMarketingModal: _, onPrimaryCtaClick: v, labels: y, testIds: b }) {
|
|
7
|
+
let x = {
|
|
8
|
+
...t,
|
|
9
|
+
...y
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
|
|
12
|
+
"data-testid": b?.root,
|
|
13
|
+
className: "ttw:relative ttw:flex ttw:w-full ttw:flex-col ttw:items-start ttw:overflow-hidden ttw:border ttw:border-border ttw:p-6",
|
|
14
|
+
style: {
|
|
15
|
+
backgroundColor: h.cardBackgroundColor,
|
|
16
|
+
borderRadius: h.borderRadius,
|
|
17
|
+
boxShadow: h.boxShadow
|
|
18
|
+
},
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ a("div", {
|
|
21
|
+
className: "ttw:mb-2 ttw:flex ttw:items-center ttw:gap-3",
|
|
22
|
+
children: [/* @__PURE__ */ i("img", {
|
|
23
|
+
src: s.src,
|
|
24
|
+
alt: s.alt,
|
|
25
|
+
height: 40,
|
|
26
|
+
width: s.width,
|
|
27
|
+
className: "ttw:h-10 ttw:w-auto ttw:object-contain"
|
|
28
|
+
}), /* @__PURE__ */ i("p", {
|
|
29
|
+
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
30
|
+
children: c
|
|
31
|
+
})]
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ i("p", {
|
|
34
|
+
className: "ttw:mb-2 ttw:text-sm ttw:text-muted-foreground",
|
|
35
|
+
children: d
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ a("div", {
|
|
38
|
+
className: "ttw:mb-2 ttw:flex ttw:flex-col",
|
|
39
|
+
children: [/* @__PURE__ */ i("p", {
|
|
40
|
+
className: "ttw:text-xl ttw:font-semibold",
|
|
41
|
+
style: { color: h.primaryColor },
|
|
42
|
+
children: l
|
|
43
|
+
}), /* @__PURE__ */ i("p", {
|
|
44
|
+
className: "ttw:leading-snug",
|
|
45
|
+
style: { color: h.primaryColor },
|
|
46
|
+
children: u
|
|
47
|
+
})]
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ i(e, {
|
|
50
|
+
type: "button",
|
|
51
|
+
"data-testid": b?.learnMoreButton,
|
|
52
|
+
onClick: g,
|
|
53
|
+
className: "ttw:h-auto ttw:rounded-xl ttw:px-6 ttw:py-2 ttw:text-base ttw:font-light ttw:transition-[filter] ttw:hover:brightness-90",
|
|
54
|
+
style: {
|
|
55
|
+
backgroundColor: h.primaryColor,
|
|
56
|
+
color: h.primaryContrastColor
|
|
57
|
+
},
|
|
58
|
+
children: x.learnMore
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
}), /* @__PURE__ */ i(n, {
|
|
62
|
+
open: o,
|
|
63
|
+
providedByCaption: d,
|
|
64
|
+
modalPrimaryImg: f,
|
|
65
|
+
primaryModalHeader: p,
|
|
66
|
+
benefits: m,
|
|
67
|
+
appearance: h,
|
|
68
|
+
onClose: _,
|
|
69
|
+
onPrimaryCtaClick: v,
|
|
70
|
+
labels: y,
|
|
71
|
+
testIds: b?.modal
|
|
72
|
+
})] });
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
export { o as MarketingWidget };
|
|
@@ -9,29 +9,31 @@ import { optionalOrganizationHeaders as d, organizationHeaders as f } from "./li
|
|
|
9
9
|
import { bulkUpdateDepartmentMembers as p, bulkUpdateLocationMembers as m, bulkUpdateRoleMembers as h, createDepartment as g, createLocation as _, createUser as v, deactivateDepartment as y, deactivateLocation as b, deleteCounterpartsId as x, deleteCounterpartsIdBankAccountsId as S, deleteMeasureUnitsId as C, deletePayablesId as w, deletePayablesIdFile as T, deleteProductsId as E, deleteReceivablesId as D, deleteTagsId as O, downloadBankAccountTransactions as k, getApplicationStatus as A, getApprovalPolicies as j, getApprovalRequests as M, getBankAccountAccess as N, getCounterparts as P, getDepartment as F, getExternalBankAccountAccess as I, getLocation as L, getPayables as R, getPayablesId as z, getPayablesIdHistory as B, getPayablesIdLineItems as V, getPaymentRecords as H, getReceivables as U, getUsers as W, listDepartments as G, listLocations as K, listRoles as q, manageBankAccountAccess as J, patchCounterpartsId as Y, patchCounterpartsIdAddressesId as X, patchCounterpartsIdBankAccountsId as Z, patchMeasureUnitsId as Q, patchPayablesId as $, patchProductsId as ee, patchReceivablesId as te, patchTagsId as ne, postApprovalRequestsIdApprove as re, postApprovalRequestsIdReject as ie, postCounterparts as ae, postCounterpartsIdAddresses as oe, postCounterpartsIdBankAccounts as se, postCounterpartsIdBankAccountsIdMakeDefault as ce, postMeasureUnits as le, postPayables as ue, postPayablesIdApprovePaymentOperation as de, postPayablesIdAttachFile as fe, postPayablesIdCancel as pe, postPayablesIdDuplicatesIdConfirm as me, postPayablesIdDuplicatesIdDismiss as he, postPayablesIdMarkAsPaid as ge, postPayablesIdReject as _e, postPayablesIdReopen as ve, postPayablesIdSchedulePayment as ye, postPayablesIdSubmitForApproval as be, postPayablesIdValidate as xe, postPayablesUploadFromFile as Se, postPaymentIntentsIdCancel as Ce, postProducts as we, postReceivables as Te, postReceivablesIdAccept as Ee, postReceivablesIdCancel as De, postReceivablesIdClone as Oe, postReceivablesIdDecline as ke, postReceivablesIdIssue as Ae, postReceivablesIdMarkAsPaid as je, postReceivablesIdMarkAsPartiallyPaid as Me, postReceivablesIdMarkAsUncollectible as Ne, postReceivablesIdSend as Pe, postTags as Fe, putPayablesIdLineItems as Ie, putReceivablesIdLineItems as Le, updateDepartment as Re, updateLocation as ze, updateUser as Be } from "./lib/rest/sdk.gen.js";
|
|
10
10
|
import { fetchWidgetInit as Ve } from "./lib/fetchWidgetInit.js";
|
|
11
11
|
import { hasAnyScope as He } from "./lib/hasAnyScope.js";
|
|
12
|
-
import { activateCreditCardMutation as Ue, activateDebitCardMutation as We, connectExternalBankAccountMutation as Ge, createAchMoneyMovementMutation as Ke, createApplicationMutation as qe, createBankAccountMutation as Je, createBookTransferMutation as Ye, createCheckDepositMutation as Xe, createDebitCardMutation as Ze, createVelocityControlMutation as Qe, deleteApprovalPoliciesIdMutation as $e, deleteLedgerAccountsIdMutation as et, deleteReceiptsIdMutation as tt, disableUserMutation as nt, getAnalyticsPayablesOptions as rt, getAnalyticsReceivablesOptions as it,
|
|
12
|
+
import { activateCreditCardMutation as Ue, activateDebitCardMutation as We, connectExternalBankAccountMutation as Ge, createAchMoneyMovementMutation as Ke, createApplicationMutation as qe, createBankAccountMutation as Je, createBookTransferMutation as Ye, createCheckDepositMutation as Xe, createDebitCardMutation as Ze, createVelocityControlMutation as Qe, deleteApprovalPoliciesIdMutation as $e, deleteLedgerAccountsIdMutation as et, deleteReceiptsIdMutation as tt, disableUserMutation as nt, getAnalyticsPayablesOptions as rt, getAnalyticsReceivablesOptions as it, getApprovalPoliciesOptions as at, getApprovalPoliciesQueryKey as ot, getApprovalRequestsOptions as st, getApprovalRequestsQueryKey as ct, getBankAccountAccessQueryKey as lt, getBankAccountOptions as ut, getBankAccountQueryKey as dt, getBankAccountTransactionsOptions as ft, getBankAccountTransactionsQueryKey as pt, getBankAccountTransfersOptions as mt, getBankAccountTransfersQueryKey as ht, getBankAccountsQueryKey as gt, getCounterpartsIdAddressesOptions as _t, getCounterpartsIdAddressesQueryKey as vt, getCounterpartsIdBankAccountsOptions as yt, getCounterpartsIdBankAccountsQueryKey as bt, getCounterpartsIdOptions as xt, getCounterpartsIdQueryKey as St, getCounterpartsOptions as Ct, getCounterpartsQueryKey as wt, getCreditCardByIdOptions as Tt, getCreditCardByIdQueryKey as Et, getCreditCardsOptions as Dt, getCreditCardsQueryKey as Ot, getDebitCardByIdOptions as kt, getDebitCardByIdQueryKey as At, getDebitCardCredentialsOptions as jt, getDebitCardsOptions as Mt, getDebitCardsQueryKey as Nt, getDepartmentOptions as Pt, getDepartmentQueryKey as Ft, getEntitiesIdSettingsOptions as It, getEntitiesIdSettingsQueryKey as Lt, getEntitiesMeOptions as Rt, getEntityUsersMyEntityOptions as zt, getEntityUsersOptions as Bt, getExternalBankAccountAccessQueryKey as Vt, getExternalBankAccountsOptions as Ht, getExternalBankAccountsQueryKey as Ut, getLedgerAccountsQueryKey as Wt, getLocationOptions as Gt, getLocationQueryKey as Kt, getMeasureUnitsOptions as qt, getMeasureUnitsQueryKey as Jt, getOrganizationOptions as Yt, getPayablesAnalyticsOptions as Xt, getPayablesAnalyticsQueryKey as Zt, getPayablesIdHistoryOptions as Qt, getPayablesIdHistoryQueryKey as $t, getPayablesIdLineItemsOptions as en, getPayablesIdLineItemsQueryKey as tn, getPayablesIdOptions as nn, getPayablesIdQueryKey as rn, getPayablesIdSuggestionsOptions as an, getPayablesOptions as on, getPayablesQueryKey as sn, getPaymentRecordsOptions as cn, getPaymentRecordsQueryKey as ln, getProductsIdOptions as un, getProductsIdQueryKey as dn, getProductsOptions as fn, getProductsQueryKey as pn, getReceiptsIdQueryKey as mn, getReceiptsOptions as hn, getReceiptsQueryKey as gn, getReceivablesIdHistoryOptions as _n, getReceivablesIdHistoryQueryKey as vn, getReceivablesIdMailsOptions as yn, getReceivablesIdMailsQueryKey as bn, getReceivablesIdOptions as xn, getReceivablesIdPdfLinkOptions as Sn, getReceivablesIdPdfLinkQueryKey as Cn, getReceivablesIdQueryKey as wn, getReceivablesOptions as Tn, getReceivablesQueryKey as En, getTagsOptions as Dn, getTagsQueryKey as On, getTransactionsIdQueryKey as kn, getTransactionsOptions as An, getTransactionsQueryKey as jn, getTransactionsValidationsOptions as Mn, getTransactionsValidationsQueryKey as Nn, getUsersOptions as Pn, getUsersQueryKey as Fn, getVelocityControlsQueryKey as In, grantBankAccountAccessMutation as Ln, grantExternalBankAccountAccessMutation as Rn, linkExternalBankAccountMutation as zn, listDepartmentsOptions as Bn, listDepartmentsQueryKey as Vn, listLocationsOptions as Hn, listLocationsQueryKey as Un, listRolesQueryKey as Wn, manageDebitCardAccessMutation as Gn, patchApprovalPoliciesIdMutation as Kn, patchEntitiesIdSettingsMutation as qn, patchLedgerAccountsIdMutation as Jn, patchReceiptsIdMutation as Yn, postApprovalPoliciesMutation as Xn, postLedgerAccountsMutation as Zn, putTransactionsValidationsMutation as Qn, setDebitCardLockStatusMutation as $n, submitApplicationMutation as er, unlinkExternalBankAccountMutation as tr, updateApplicationMutation as nr, updateBankAccountMutation as rr, updateDebitCardMutation as ir, updateExternalBankAccountMutation as ar, validateExternalBankAccountMutation as or, verifyDebitCardMutation as sr } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
13
13
|
import "./lib/queryKeys.js";
|
|
14
|
-
import { withAuthEpoch as
|
|
15
|
-
import { useCurrentUserQuery as
|
|
14
|
+
import { withAuthEpoch as cr } from "./lib/withAuthEpoch.js";
|
|
15
|
+
import { useCurrentUserQuery as lr } from "./lib/useCurrentUserQuery.js";
|
|
16
16
|
import "./lib/apiErrorStatus.js";
|
|
17
|
-
import { isApiConflictError as
|
|
18
|
-
import { isApiForbiddenError as
|
|
19
|
-
import { isApiNotFoundError as
|
|
20
|
-
import { isApiUnprocessableError as
|
|
17
|
+
import { isApiConflictError as ur } from "./lib/isApiConflictError.js";
|
|
18
|
+
import { isApiForbiddenError as dr } from "./lib/isApiForbiddenError.js";
|
|
19
|
+
import { isApiNotFoundError as fr } from "./lib/isApiNotFoundError.js";
|
|
20
|
+
import { isApiUnprocessableError as pr } from "./lib/isApiUnprocessableError.js";
|
|
21
21
|
import "./lib/isUserDataNotFoundError.js";
|
|
22
|
-
import { useGetUserDataQuery as
|
|
23
|
-
import { useUpsertUserDataMutation as
|
|
22
|
+
import { useGetUserDataQuery as mr } from "./lib/useGetUserDataQuery.js";
|
|
23
|
+
import { useUpsertUserDataMutation as hr } from "./lib/useUpsertUserDataMutation.js";
|
|
24
24
|
import "./lib/rest/zod.gen.js";
|
|
25
|
-
import { Scope as
|
|
26
|
-
import { getAllPagesNextPageParam as
|
|
27
|
-
import { useAllBankAccountsQuery as
|
|
28
|
-
import { useAllExternalBankAccountsQuery as
|
|
29
|
-
import { useAllMerchantCategoryGroupsQuery as
|
|
30
|
-
import { useAllLedgerAccountsQuery as
|
|
31
|
-
import { usePaymentTermsQuery as
|
|
32
|
-
import { useAllOrganizationRolesQuery as
|
|
33
|
-
import { useRolePermissionsQueries as
|
|
34
|
-
import { useAllOrganizationUsersQuery as
|
|
35
|
-
import { useAcceptWidgetDisclosures as
|
|
36
|
-
import { useDisclosuresQuery as
|
|
37
|
-
|
|
25
|
+
import { Scope as gr } from "./lib/scopes.js";
|
|
26
|
+
import { getAllPagesNextPageParam as _r, getAllPagesNextPaginationTokenParam as vr, isAllPagesResolving as yr, useAutoFetchNextPage as br } from "./lib/allPages.js";
|
|
27
|
+
import { useAllBankAccountsQuery as xr } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
28
|
+
import { useAllExternalBankAccountsQuery as Sr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
29
|
+
import { useAllMerchantCategoryGroupsQuery as Cr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
|
|
30
|
+
import { useAllLedgerAccountsQuery as wr, useLedgerAccountsQuery as Tr } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
31
|
+
import { usePaymentTermsQuery as Er } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
32
|
+
import { useAllOrganizationRolesQuery as Dr } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
33
|
+
import { useRolePermissionsQueries as Or } from "./lib/role/useRolePermissionsQueries.js";
|
|
34
|
+
import { useAllOrganizationUsersQuery as kr } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
35
|
+
import { useAcceptWidgetDisclosures as Ar } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
36
|
+
import { useDisclosuresQuery as jr } from "./lib/disclosures/useDisclosuresQuery.js";
|
|
37
|
+
import { OnboardingSuppressionReason as Mr } from "./lib/onboardingSuppressionReason.js";
|
|
38
|
+
import { useOrganizationOnboardingSuppression as Nr } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
39
|
+
export { l as EmbedApiProvider, Mr as OnboardingSuppressionReason, gr as Scope, Ue as activateCreditCardMutation, We as activateDebitCardMutation, c as attachTransportInterceptors, p as bulkUpdateDepartmentMembers, m as bulkUpdateLocationMembers, h as bulkUpdateRoleMembers, e as cancelAllClients, o as cloneEmbeddedClient, Ge as connectExternalBankAccountMutation, Ke as createAchMoneyMovementMutation, qe as createApplicationMutation, Je as createBankAccountMutation, Ye as createBookTransferMutation, Xe as createCheckDepositMutation, Ze as createDebitCardMutation, g as createDepartment, s as createEmbeddedClient, _ as createLocation, v as createUser, Qe as createVelocityControlMutation, y as deactivateDepartment, b as deactivateLocation, $e as deleteApprovalPoliciesIdMutation, x as deleteCounterpartsId, S as deleteCounterpartsIdBankAccountsId, et as deleteLedgerAccountsIdMutation, C as deleteMeasureUnitsId, w as deletePayablesId, T as deletePayablesIdFile, E as deleteProductsId, tt as deleteReceiptsIdMutation, D as deleteReceivablesId, O as deleteTagsId, nt as disableUserMutation, k as downloadBankAccountTransactions, Ve as fetchWidgetInit, _r as getAllPagesNextPageParam, vr as getAllPagesNextPaginationTokenParam, rt as getAnalyticsPayablesOptions, it as getAnalyticsReceivablesOptions, A as getApplicationStatus, j as getApprovalPolicies, at as getApprovalPoliciesOptions, ot as getApprovalPoliciesQueryKey, M as getApprovalRequests, st as getApprovalRequestsOptions, ct as getApprovalRequestsQueryKey, N as getBankAccountAccess, lt as getBankAccountAccessQueryKey, ut as getBankAccountOptions, dt as getBankAccountQueryKey, ft as getBankAccountTransactionsOptions, pt as getBankAccountTransactionsQueryKey, mt as getBankAccountTransfersOptions, ht as getBankAccountTransfersQueryKey, gt as getBankAccountsQueryKey, P as getCounterparts, _t as getCounterpartsIdAddressesOptions, vt as getCounterpartsIdAddressesQueryKey, yt as getCounterpartsIdBankAccountsOptions, bt as getCounterpartsIdBankAccountsQueryKey, xt as getCounterpartsIdOptions, St as getCounterpartsIdQueryKey, Ct as getCounterpartsOptions, wt as getCounterpartsQueryKey, Tt as getCreditCardByIdOptions, Et as getCreditCardByIdQueryKey, Dt as getCreditCardsOptions, Ot as getCreditCardsQueryKey, kt as getDebitCardByIdOptions, At as getDebitCardByIdQueryKey, jt as getDebitCardCredentialsOptions, Mt as getDebitCardsOptions, Nt as getDebitCardsQueryKey, F as getDepartment, Pt as getDepartmentOptions, Ft as getDepartmentQueryKey, It as getEntitiesIdSettingsOptions, Lt as getEntitiesIdSettingsQueryKey, Rt as getEntitiesMeOptions, zt as getEntityUsersMyEntityOptions, Bt as getEntityUsersOptions, I as getExternalBankAccountAccess, Vt as getExternalBankAccountAccessQueryKey, Ht as getExternalBankAccountsOptions, Ut as getExternalBankAccountsQueryKey, Wt as getLedgerAccountsQueryKey, L as getLocation, Gt as getLocationOptions, Kt as getLocationQueryKey, qt as getMeasureUnitsOptions, Jt as getMeasureUnitsQueryKey, Yt as getOrganizationOptions, R as getPayables, Xt as getPayablesAnalyticsOptions, Zt as getPayablesAnalyticsQueryKey, z as getPayablesId, B as getPayablesIdHistory, Qt as getPayablesIdHistoryOptions, $t as getPayablesIdHistoryQueryKey, V as getPayablesIdLineItems, en as getPayablesIdLineItemsOptions, tn as getPayablesIdLineItemsQueryKey, nn as getPayablesIdOptions, rn as getPayablesIdQueryKey, an as getPayablesIdSuggestionsOptions, on as getPayablesOptions, sn as getPayablesQueryKey, H as getPaymentRecords, cn as getPaymentRecordsOptions, ln as getPaymentRecordsQueryKey, un as getProductsIdOptions, dn as getProductsIdQueryKey, fn as getProductsOptions, pn as getProductsQueryKey, mn as getReceiptsIdQueryKey, hn as getReceiptsOptions, gn as getReceiptsQueryKey, U as getReceivables, _n as getReceivablesIdHistoryOptions, vn as getReceivablesIdHistoryQueryKey, yn as getReceivablesIdMailsOptions, bn as getReceivablesIdMailsQueryKey, xn as getReceivablesIdOptions, Sn as getReceivablesIdPdfLinkOptions, Cn as getReceivablesIdPdfLinkQueryKey, wn as getReceivablesIdQueryKey, Tn as getReceivablesOptions, En as getReceivablesQueryKey, Dn as getTagsOptions, On as getTagsQueryKey, kn as getTransactionsIdQueryKey, An as getTransactionsOptions, jn as getTransactionsQueryKey, Mn as getTransactionsValidationsOptions, Nn as getTransactionsValidationsQueryKey, W as getUsers, Pn as getUsersOptions, Fn as getUsersQueryKey, In as getVelocityControlsQueryKey, Ln as grantBankAccountAccessMutation, Rn as grantExternalBankAccountAccessMutation, He as hasAnyScope, t as invalidateAllClients, yr as isAllPagesResolving, ur as isApiConflictError, dr as isApiForbiddenError, fr as isApiNotFoundError, pr as isApiUnprocessableError, zn as linkExternalBankAccountMutation, G as listDepartments, Bn as listDepartmentsOptions, Vn as listDepartmentsQueryKey, K as listLocations, Hn as listLocationsOptions, Un as listLocationsQueryKey, q as listRoles, Wn as listRolesQueryKey, J as manageBankAccountAccess, Gn as manageDebitCardAccessMutation, d as optionalOrganizationHeaders, f as organizationHeaders, Kn as patchApprovalPoliciesIdMutation, Y as patchCounterpartsId, X as patchCounterpartsIdAddressesId, Z as patchCounterpartsIdBankAccountsId, qn as patchEntitiesIdSettingsMutation, Jn as patchLedgerAccountsIdMutation, Q as patchMeasureUnitsId, $ as patchPayablesId, ee as patchProductsId, Yn as patchReceiptsIdMutation, te as patchReceivablesId, ne as patchTagsId, Xn as postApprovalPoliciesMutation, re as postApprovalRequestsIdApprove, ie as postApprovalRequestsIdReject, ae as postCounterparts, oe as postCounterpartsIdAddresses, se as postCounterpartsIdBankAccounts, ce as postCounterpartsIdBankAccountsIdMakeDefault, Zn as postLedgerAccountsMutation, le as postMeasureUnits, ue as postPayables, de as postPayablesIdApprovePaymentOperation, fe as postPayablesIdAttachFile, pe as postPayablesIdCancel, me as postPayablesIdDuplicatesIdConfirm, he as postPayablesIdDuplicatesIdDismiss, ge as postPayablesIdMarkAsPaid, _e as postPayablesIdReject, ve as postPayablesIdReopen, ye as postPayablesIdSchedulePayment, be as postPayablesIdSubmitForApproval, xe as postPayablesIdValidate, Se as postPayablesUploadFromFile, Ce as postPaymentIntentsIdCancel, we as postProducts, Te as postReceivables, Ee as postReceivablesIdAccept, De as postReceivablesIdCancel, Oe as postReceivablesIdClone, ke as postReceivablesIdDecline, Ae as postReceivablesIdIssue, je as postReceivablesIdMarkAsPaid, Me as postReceivablesIdMarkAsPartiallyPaid, Ne as postReceivablesIdMarkAsUncollectible, Pe as postReceivablesIdSend, Fe as postTags, Ie as putPayablesIdLineItems, Le as putReceivablesIdLineItems, Qn as putTransactionsValidationsMutation, n as registerQueryClient, r as removeInactiveFromAllClients, i as setAllClientsQueriesData, $n as setDebitCardLockStatusMutation, er as submitApplicationMutation, tr as unlinkExternalBankAccountMutation, a as unregisterQueryClient, nr as updateApplicationMutation, rr as updateBankAccountMutation, ir as updateDebitCardMutation, Re as updateDepartment, ar as updateExternalBankAccountMutation, ze as updateLocation, Be as updateUser, Ar as useAcceptWidgetDisclosures, xr as useAllBankAccountsQuery, Sr as useAllExternalBankAccountsQuery, wr as useAllLedgerAccountsQuery, Cr as useAllMerchantCategoryGroupsQuery, Dr as useAllOrganizationRolesQuery, kr as useAllOrganizationUsersQuery, br as useAutoFetchNextPage, lr as useCurrentUserQuery, jr as useDisclosuresQuery, u as useEmbedApi, mr as useGetUserDataQuery, Tr as useLedgerAccountsQuery, Nr as useOrganizationOnboardingSuppression, Er as usePaymentTermsQuery, Or as useRolePermissionsQueries, hr as useUpsertUserDataMutation, or as validateExternalBankAccountMutation, sr as verifyDebitCardMutation, cr as withAuthEpoch };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/onboardingSuppressionReason.js
|
|
2
2
|
var e = {
|
|
3
3
|
UserAlreadyOnboarded: "user_already_onboarded",
|
|
4
4
|
UserInvitedToOrganization: "user_invited_to_organization",
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { getApplicationStatusOptions as t } from "
|
|
7
|
-
import { withAuthEpoch as n } from "
|
|
8
|
-
import "
|
|
9
|
-
import { OnboardingSuppressionReason as r } from "./index9.js";
|
|
5
|
+
import { useEmbedApi as e } from "./EmbedApiContext.js";
|
|
6
|
+
import { getApplicationStatusOptions as t } from "./rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as n } from "./withAuthEpoch.js";
|
|
8
|
+
import { OnboardingSuppressionReason as r } from "./onboardingSuppressionReason.js";
|
|
10
9
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js
|
|
12
11
|
var a = "COMPLETE", o = "BANK_ACCOUNT", s = "STARTED_BY_OTHER", c = 2, l = 300;
|
|
13
12
|
function u(e) {
|
|
14
13
|
let t = e.filter((e) => e.product === o);
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -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.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.3", n = "8dadfaeb13627bc5c22ea081ff6aa608cda3558f", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/package.json
CHANGED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { MARKETING_WIDGET_LABELS_EN as t } from "./index24.js";
|
|
3
|
-
import { marketingWidgetTestIds as n } from "./index26.js";
|
|
4
|
-
import { MarketingWidgetModal as r } from "./index27.js";
|
|
5
|
-
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js
|
|
7
|
-
function s({ open: s, isVisible: c, vspLogo: l, bankingText: u, primaryCaption: d, secondaryCaption: f, providedByCaption: p, modalPrimaryImg: m, primaryModalHeader: h, benefits: g, appearance: _, onOpenMarketingModal: v, onCloseMarketingModal: y, onPrimaryCtaClick: b, labels: x }) {
|
|
8
|
-
let S = {
|
|
9
|
-
...t,
|
|
10
|
-
...x
|
|
11
|
-
};
|
|
12
|
-
return c ? /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o("div", {
|
|
13
|
-
"data-testid": n.root,
|
|
14
|
-
className: "ttw:relative ttw:flex ttw:w-full ttw:flex-col ttw:items-start ttw:overflow-hidden ttw:border ttw:border-border ttw:p-6",
|
|
15
|
-
style: {
|
|
16
|
-
backgroundColor: _.cardBackgroundColor,
|
|
17
|
-
borderRadius: _.borderRadius,
|
|
18
|
-
boxShadow: _.boxShadow
|
|
19
|
-
},
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ o("div", {
|
|
22
|
-
className: "ttw:mb-2 ttw:flex ttw:items-center ttw:gap-3",
|
|
23
|
-
children: [/* @__PURE__ */ a("img", {
|
|
24
|
-
src: l.src,
|
|
25
|
-
alt: l.alt,
|
|
26
|
-
height: 40,
|
|
27
|
-
width: l.width,
|
|
28
|
-
className: "ttw:h-10 ttw:w-auto ttw:object-contain"
|
|
29
|
-
}), /* @__PURE__ */ a("p", {
|
|
30
|
-
className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
|
|
31
|
-
children: u
|
|
32
|
-
})]
|
|
33
|
-
}),
|
|
34
|
-
/* @__PURE__ */ a("p", {
|
|
35
|
-
className: "ttw:mb-2 ttw:text-sm ttw:text-muted-foreground",
|
|
36
|
-
children: p
|
|
37
|
-
}),
|
|
38
|
-
/* @__PURE__ */ o("div", {
|
|
39
|
-
className: "ttw:mb-2 ttw:flex ttw:flex-col",
|
|
40
|
-
children: [/* @__PURE__ */ a("p", {
|
|
41
|
-
className: "ttw:text-xl ttw:font-semibold",
|
|
42
|
-
style: { color: _.primaryColor },
|
|
43
|
-
children: d
|
|
44
|
-
}), /* @__PURE__ */ a("p", {
|
|
45
|
-
className: "ttw:leading-snug",
|
|
46
|
-
style: { color: _.primaryColor },
|
|
47
|
-
children: f
|
|
48
|
-
})]
|
|
49
|
-
}),
|
|
50
|
-
/* @__PURE__ */ a(e, {
|
|
51
|
-
type: "button",
|
|
52
|
-
"data-testid": n.learnMoreButton,
|
|
53
|
-
onClick: v,
|
|
54
|
-
className: "ttw:h-auto ttw:rounded-xl ttw:px-6 ttw:py-2 ttw:text-base ttw:font-light ttw:transition-[filter] ttw:hover:brightness-90",
|
|
55
|
-
style: {
|
|
56
|
-
backgroundColor: _.primaryColor,
|
|
57
|
-
color: _.primaryContrastColor
|
|
58
|
-
},
|
|
59
|
-
children: S.learnMore
|
|
60
|
-
})
|
|
61
|
-
]
|
|
62
|
-
}), /* @__PURE__ */ a(r, {
|
|
63
|
-
open: s,
|
|
64
|
-
providedByCaption: p,
|
|
65
|
-
modalPrimaryImg: m,
|
|
66
|
-
primaryModalHeader: h,
|
|
67
|
-
benefits: g,
|
|
68
|
-
appearance: _,
|
|
69
|
-
onClose: y,
|
|
70
|
-
onPrimaryCtaClick: b,
|
|
71
|
-
labels: x
|
|
72
|
-
})] }) : null;
|
|
73
|
-
}
|
|
74
|
-
//#endregion
|
|
75
|
-
export { s as MarketingWidget };
|