@tesouro/embedded-components-react 0.2.266 → 0.2.269
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 -12
- package/dist/experimental/WidgetSuite.d.ts +25 -1
- package/dist/experimental/index.d.ts +25 -1
- package/dist/index.css +45 -9
- package/dist/index.d.ts +46 -22
- package/dist/index.js +1 -1
- package/dist/lib/AcceptDisclosuresWidget.d.ts +25 -1
- package/dist/lib/BalancesWidget.d.ts +24 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +25 -1
- package/dist/lib/BankAccountsWidget.d.ts +25 -1
- package/dist/lib/BillPayWidget.d.ts +24 -0
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/CardDetailsWidget.d.ts +25 -1
- package/dist/lib/CardsWidget.d.ts +25 -1
- package/dist/lib/ChartOfAccountsWidget.d.ts +25 -1
- package/dist/lib/CounterpartsWidget.d.ts +25 -1
- package/dist/lib/CreateCardWidget.d.ts +25 -1
- package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +25 -1
- package/dist/lib/ExpenseManagementWidget.d.ts +25 -1
- package/dist/lib/ExpenseRequirementsWidget.d.ts +25 -1
- package/dist/lib/HelpWidget.d.ts +25 -1
- package/dist/lib/InsightsWidget.d.ts +24 -0
- package/dist/lib/InvoicingWidget.d.ts +25 -1
- package/dist/lib/LinkedAccountsWidget.d.ts +25 -1
- package/dist/lib/ProductsWidget.d.ts +25 -1
- package/dist/lib/ProfileWidget.d.ts +25 -1
- package/dist/lib/ReceiptMatchWidget.d.ts +25 -1
- package/dist/lib/ReceivablesWidget.d.ts +25 -1
- package/dist/lib/SettingsWidget.d.ts +25 -1
- package/dist/lib/TagsWidget.d.ts +25 -1
- package/dist/lib/TeamWidget.d.ts +25 -1
- package/dist/lib/TransfersWidget.d.ts +24 -0
- package/dist/lib/WidgetProvider.d.ts +25 -1
- package/dist/lib/WidgetProviderPublic.d.ts +24 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +122 -121
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +99 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +7 -97
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +99 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +1 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +48 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +8 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +7 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +100 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +6 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +83 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +2 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +104 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +37 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +15 -116
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +126 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +32 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +34 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +261 -181
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +32 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +94 -93
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetGatewayHosts.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +76 -67
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +107 -101
- 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/feature/dist/lib/analytics/client.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +106 -105
- 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 +9 -8
- package/package.json +1 -1
|
@@ -103,20 +103,21 @@ function h({ pageSizeOptions: t = o, screenLabels: a, formLabels: h, detailsLabe
|
|
|
103
103
|
})
|
|
104
104
|
] });
|
|
105
105
|
}
|
|
106
|
-
function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i,
|
|
106
|
+
function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, ...m }) {
|
|
107
107
|
return /* @__PURE__ */ p(t, {
|
|
108
108
|
widgetName: a,
|
|
109
109
|
baseUrl: e,
|
|
110
110
|
widgetToken: n,
|
|
111
111
|
organizationId: r,
|
|
112
112
|
configClient: i,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
gatewayRouting: o,
|
|
114
|
+
linkComponent: s,
|
|
115
|
+
implementation: c,
|
|
116
|
+
uiFramework: l,
|
|
117
|
+
errorFallback: u,
|
|
118
|
+
onError: d,
|
|
119
|
+
analytics: f,
|
|
120
|
+
children: /* @__PURE__ */ p(h, { ...m })
|
|
120
121
|
});
|
|
121
122
|
}
|
|
122
123
|
//#endregion
|
|
@@ -100,20 +100,21 @@ function v({ labels: t, featureLabels: o, contactUrl: v }) {
|
|
|
100
100
|
isError: k
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i,
|
|
103
|
+
function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p, ...m }) {
|
|
104
104
|
return /* @__PURE__ */ f(t, {
|
|
105
105
|
widgetName: o,
|
|
106
106
|
baseUrl: e,
|
|
107
107
|
widgetToken: n,
|
|
108
108
|
organizationId: r,
|
|
109
109
|
configClient: i,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
gatewayRouting: a,
|
|
111
|
+
linkComponent: s,
|
|
112
|
+
implementation: c,
|
|
113
|
+
uiFramework: l,
|
|
114
|
+
errorFallback: u,
|
|
115
|
+
onError: d,
|
|
116
|
+
analytics: p,
|
|
117
|
+
children: /* @__PURE__ */ f(v, { ...m })
|
|
117
118
|
});
|
|
118
119
|
}
|
|
119
120
|
//#endregion
|
|
@@ -112,21 +112,22 @@ function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: m, helpContac
|
|
|
112
112
|
onSectionChange: W
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r,
|
|
115
|
+
function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f, ...p }) {
|
|
116
116
|
return /* @__PURE__ */ b(o, {
|
|
117
117
|
widgetName: m,
|
|
118
118
|
baseUrl: e,
|
|
119
119
|
widgetToken: t,
|
|
120
120
|
organizationId: n,
|
|
121
121
|
configClient: r,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
122
|
+
gatewayRouting: i,
|
|
123
|
+
linkComponent: a,
|
|
124
|
+
implementation: s,
|
|
125
|
+
uiFramework: c,
|
|
126
|
+
errorFallback: l,
|
|
127
|
+
onError: u,
|
|
128
|
+
finopsThemeColors: d,
|
|
129
|
+
analytics: f,
|
|
130
|
+
children: /* @__PURE__ */ b(C, { ...p })
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
133
|
//#endregion
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import "./lib/api-version.js";
|
|
2
2
|
import { invalidateAllClients as e, registerQueryClient as t, setAllClientsQueriesData as n, unregisterQueryClient as r } from "./lib/clientRegistry.js";
|
|
3
3
|
import { cloneEmbeddedClient as i, createEmbeddedClient as a } from "./lib/createEmbeddedClient.js";
|
|
4
|
+
import { isWidgetGatewayHost as o } from "./lib/widgetGatewayHosts.js";
|
|
4
5
|
import "./lib/rest/client.gen.js";
|
|
5
|
-
import { EmbedApiProvider as
|
|
6
|
-
import { optionalOrganizationHeaders as
|
|
7
|
-
import { bulkUpdateDepartmentMembers as
|
|
8
|
-
import { fetchWidgetInit as
|
|
9
|
-
import { hasAnyScope as
|
|
10
|
-
import { connectExternalBankAccountMutation as
|
|
6
|
+
import { EmbedApiProvider as s, useEmbedApi as c } from "./lib/EmbedApiContext.js";
|
|
7
|
+
import { optionalOrganizationHeaders as l, organizationHeaders as u } from "./lib/organizationHeaders.js";
|
|
8
|
+
import { bulkUpdateDepartmentMembers as d, bulkUpdateLocationMembers as f, bulkUpdateRoleMembers as p, createDepartment as m, createLocation as h, createUser as g, deactivateDepartment as _, deactivateLocation as v, deleteCounterpartsId as y, deleteCounterpartsIdBankAccountsId as b, deleteFilesId as x, deleteMeasureUnitsId as S, deleteProductsId as C, deleteReceivablesId as w, deleteTagsId as T, downloadBankAccountTransactions as E, getApplicationStatus as D, getApprovalPolicies as O, getBankAccountAccess as k, getDepartment as A, getDisclosures as j, getExternalBankAccountAccess as M, getLocation as N, getPayablesIdLineItems as P, getUsers as F, listDepartments as I, listLocations as L, listRoles as R, manageBankAccountAccess as z, patchCounterpartsId as B, patchCounterpartsIdAddressesId as V, patchCounterpartsIdBankAccountsId as H, patchMeasureUnitsId as U, patchPayablesId as W, patchProductsId as G, patchReceivablesId as K, patchTagsId as q, postApiWidgetGatewayDisclosureAcceptance as J, postCounterparts as Y, postCounterpartsIdAddresses as X, postCounterpartsIdBankAccounts as Z, postCounterpartsIdBankAccountsIdMakeDefault as Q, postMeasureUnits as $, postPayables as ee, postPayablesIdAttachFile as te, postPayablesIdSubmitForApproval as ne, postPayablesIdValidate as re, postPayablesUploadFromFile as ie, postProducts as ae, postReceivables as oe, postReceivablesIdAccept as se, postReceivablesIdCancel as ce, postReceivablesIdClone as le, postReceivablesIdDecline as ue, postReceivablesIdIssue as de, postReceivablesIdMarkAsPaid as fe, postReceivablesIdMarkAsPartiallyPaid as pe, postReceivablesIdMarkAsUncollectible as me, postReceivablesIdSend as he, postTags as ge, putPayablesIdLineItems as _e, putReceivablesIdLineItems as ve, updateDepartment as ye, updateLocation as be, updateUser as xe } from "./lib/rest/sdk.gen.js";
|
|
9
|
+
import { fetchWidgetInit as Se } from "./lib/fetchWidgetInit.js";
|
|
10
|
+
import { hasAnyScope as Ce } from "./lib/hasAnyScope.js";
|
|
11
|
+
import { connectExternalBankAccountMutation as we, createAchMoneyMovementMutation as Te, createApplicationMutation as Ee, createBankAccountMutation as De, createBookTransferMutation as Oe, createDebitCardMutation as ke, deleteApprovalPoliciesIdMutation as Ae, deleteLedgerAccountsIdMutation as je, deleteReceiptsIdMutation as Me, disableUserMutation as Ne, getAnalyticsPayablesOptions as Pe, getAnalyticsReceivablesOptions as Fe, getApplicationStatusOptions as Ie, getApprovalPoliciesOptions as Le, getApprovalPoliciesQueryKey as Re, getApprovalRequestsQueryKey as ze, getBankAccountAccessQueryKey as Be, getBankAccountOptions as Ve, getBankAccountQueryKey as He, getBankAccountTransactionsOptions as Ue, getBankAccountTransfersOptions as We, getBankAccountTransfersQueryKey as Ge, getBankAccountsQueryKey as Ke, getCounterpartsIdAddressesOptions as qe, getCounterpartsIdAddressesQueryKey as Je, getCounterpartsIdBankAccountsOptions as Ye, getCounterpartsIdBankAccountsQueryKey as Xe, getCounterpartsIdOptions as Ze, getCounterpartsIdQueryKey as Qe, getCounterpartsOptions as $e, getCounterpartsQueryKey as et, getCreditCardByIdOptions as tt, getCreditCardsOptions as nt, getDebitCardByIdOptions as rt, getDebitCardsOptions as it, getDebitCardsQueryKey as at, getDepartmentOptions as ot, getDepartmentQueryKey as st, getEntitiesIdSettingsOptions as ct, getEntitiesIdSettingsQueryKey as lt, getEntitiesMeOptions as ut, getEntityUsersMyEntityOptions as dt, getEntityUsersOptions as ft, getExternalBankAccountAccessQueryKey as pt, getExternalBankAccountsOptions as mt, getExternalBankAccountsQueryKey as ht, getLedgerAccountsQueryKey as gt, getLocationOptions as _t, getLocationQueryKey as vt, getMeasureUnitsOptions as yt, getMeasureUnitsQueryKey as bt, getOrganizationOptions as xt, getPayablesAnalyticsQueryKey as St, getPayablesIdHistoryQueryKey as Ct, getPayablesIdLineItemsOptions as wt, getPayablesIdLineItemsQueryKey as Tt, getPayablesIdOptions as Et, getPayablesIdQueryKey as Dt, getPayablesIdSuggestionsOptions as Ot, getPayablesOptions as kt, getPayablesQueryKey as At, getProductsIdOptions as jt, getProductsIdQueryKey as Mt, getProductsOptions as Nt, getProductsQueryKey as Pt, getReceiptsIdQueryKey as Ft, getReceiptsOptions as It, getReceiptsQueryKey as Lt, getReceivablesIdHistoryOptions as Rt, getReceivablesIdHistoryQueryKey as zt, getReceivablesIdMailsOptions as Bt, getReceivablesIdMailsQueryKey as Vt, getReceivablesIdOptions as Ht, getReceivablesIdPdfLinkOptions as Ut, getReceivablesIdPdfLinkQueryKey as Wt, getReceivablesIdQueryKey as Gt, getReceivablesOptions as Kt, getReceivablesQueryKey as qt, getTagsOptions as Jt, getTagsQueryKey as Yt, getTransactionsIdQueryKey as Xt, getTransactionsOptions as Zt, getTransactionsQueryKey as Qt, getTransactionsValidationsOptions as $t, getTransactionsValidationsQueryKey as en, getUsersOptions as tn, getUsersQueryKey as nn, grantBankAccountAccessMutation as rn, grantExternalBankAccountAccessMutation as an, linkExternalBankAccountMutation as on, listDepartmentsOptions as sn, listDepartmentsQueryKey as cn, listLocationsOptions as ln, listLocationsQueryKey as un, listRolesQueryKey as dn, patchApprovalPoliciesIdMutation as fn, patchEntitiesIdSettingsMutation as pn, patchLedgerAccountsIdMutation as mn, patchReceiptsIdMutation as hn, postApprovalPoliciesMutation as gn, postLedgerAccountsMutation as _n, putTransactionsValidationsMutation as vn, submitApplicationMutation as yn, unlinkExternalBankAccountMutation as bn, updateApplicationMutation as xn, updateBankAccountMutation as Sn, updateExternalBankAccountMutation as Cn, validateExternalBankAccountMutation as wn } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
11
12
|
import "./lib/queryKeys.js";
|
|
12
|
-
import { withAuthEpoch as
|
|
13
|
-
import { useCurrentUserQuery as
|
|
14
|
-
import { isApiNotFoundError as
|
|
13
|
+
import { withAuthEpoch as Tn } from "./lib/withAuthEpoch.js";
|
|
14
|
+
import { useCurrentUserQuery as En } from "./lib/useCurrentUserQuery.js";
|
|
15
|
+
import { isApiNotFoundError as Dn } from "./lib/isApiNotFoundError.js";
|
|
15
16
|
import "./lib/isUserDataNotFoundError.js";
|
|
16
|
-
import { useGetUserDataQuery as
|
|
17
|
-
import { useUpsertUserDataMutation as
|
|
17
|
+
import { useGetUserDataQuery as On } from "./lib/useGetUserDataQuery.js";
|
|
18
|
+
import { useUpsertUserDataMutation as kn } from "./lib/useUpsertUserDataMutation.js";
|
|
18
19
|
import "./lib/rest/zod.gen.js";
|
|
19
|
-
import { Scope as
|
|
20
|
-
import { getAllPagesNextPageParam as
|
|
21
|
-
import { useAllBankAccountsQuery as
|
|
22
|
-
import { useAllExternalBankAccountsQuery as
|
|
23
|
-
import { useLedgerAccountsQuery as
|
|
24
|
-
import { usePaymentTermsQuery as
|
|
25
|
-
import { useAllOrganizationRolesQuery as
|
|
26
|
-
import { useRolePermissionsQueries as
|
|
27
|
-
import { useAllOrganizationUsersQuery as
|
|
28
|
-
export {
|
|
20
|
+
import { Scope as An } from "./lib/scopes.js";
|
|
21
|
+
import { getAllPagesNextPageParam as jn, getAllPagesNextPaginationTokenParam as Mn, isAllPagesResolving as Nn, useAutoFetchNextPage as Pn } from "./lib/allPages.js";
|
|
22
|
+
import { useAllBankAccountsQuery as Fn } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
23
|
+
import { useAllExternalBankAccountsQuery as In } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
24
|
+
import { useLedgerAccountsQuery as Ln } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
25
|
+
import { usePaymentTermsQuery as Rn } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
26
|
+
import { useAllOrganizationRolesQuery as zn } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
27
|
+
import { useRolePermissionsQueries as Bn } from "./lib/role/useRolePermissionsQueries.js";
|
|
28
|
+
import { useAllOrganizationUsersQuery as Vn } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
29
|
+
export { s as EmbedApiProvider, An as Scope, d as bulkUpdateDepartmentMembers, f as bulkUpdateLocationMembers, p as bulkUpdateRoleMembers, i as cloneEmbeddedClient, we as connectExternalBankAccountMutation, Te as createAchMoneyMovementMutation, Ee as createApplicationMutation, De as createBankAccountMutation, Oe as createBookTransferMutation, ke as createDebitCardMutation, m as createDepartment, a as createEmbeddedClient, h as createLocation, g as createUser, _ as deactivateDepartment, v as deactivateLocation, Ae as deleteApprovalPoliciesIdMutation, y as deleteCounterpartsId, b as deleteCounterpartsIdBankAccountsId, x as deleteFilesId, je as deleteLedgerAccountsIdMutation, S as deleteMeasureUnitsId, C as deleteProductsId, Me as deleteReceiptsIdMutation, w as deleteReceivablesId, T as deleteTagsId, Ne as disableUserMutation, E as downloadBankAccountTransactions, Se as fetchWidgetInit, jn as getAllPagesNextPageParam, Mn as getAllPagesNextPaginationTokenParam, Pe as getAnalyticsPayablesOptions, Fe as getAnalyticsReceivablesOptions, D as getApplicationStatus, Ie as getApplicationStatusOptions, O as getApprovalPolicies, Le as getApprovalPoliciesOptions, Re as getApprovalPoliciesQueryKey, ze as getApprovalRequestsQueryKey, k as getBankAccountAccess, Be as getBankAccountAccessQueryKey, Ve as getBankAccountOptions, He as getBankAccountQueryKey, Ue as getBankAccountTransactionsOptions, We as getBankAccountTransfersOptions, Ge as getBankAccountTransfersQueryKey, Ke as getBankAccountsQueryKey, qe as getCounterpartsIdAddressesOptions, Je as getCounterpartsIdAddressesQueryKey, Ye as getCounterpartsIdBankAccountsOptions, Xe as getCounterpartsIdBankAccountsQueryKey, Ze as getCounterpartsIdOptions, Qe as getCounterpartsIdQueryKey, $e as getCounterpartsOptions, et as getCounterpartsQueryKey, tt as getCreditCardByIdOptions, nt as getCreditCardsOptions, rt as getDebitCardByIdOptions, it as getDebitCardsOptions, at as getDebitCardsQueryKey, A as getDepartment, ot as getDepartmentOptions, st as getDepartmentQueryKey, j as getDisclosures, ct as getEntitiesIdSettingsOptions, lt as getEntitiesIdSettingsQueryKey, ut as getEntitiesMeOptions, dt as getEntityUsersMyEntityOptions, ft as getEntityUsersOptions, M as getExternalBankAccountAccess, pt as getExternalBankAccountAccessQueryKey, mt as getExternalBankAccountsOptions, ht as getExternalBankAccountsQueryKey, gt as getLedgerAccountsQueryKey, N as getLocation, _t as getLocationOptions, vt as getLocationQueryKey, yt as getMeasureUnitsOptions, bt as getMeasureUnitsQueryKey, xt as getOrganizationOptions, St as getPayablesAnalyticsQueryKey, Ct as getPayablesIdHistoryQueryKey, P as getPayablesIdLineItems, wt as getPayablesIdLineItemsOptions, Tt as getPayablesIdLineItemsQueryKey, Et as getPayablesIdOptions, Dt as getPayablesIdQueryKey, Ot as getPayablesIdSuggestionsOptions, kt as getPayablesOptions, At as getPayablesQueryKey, jt as getProductsIdOptions, Mt as getProductsIdQueryKey, Nt as getProductsOptions, Pt as getProductsQueryKey, Ft as getReceiptsIdQueryKey, It as getReceiptsOptions, Lt as getReceiptsQueryKey, Rt as getReceivablesIdHistoryOptions, zt as getReceivablesIdHistoryQueryKey, Bt as getReceivablesIdMailsOptions, Vt as getReceivablesIdMailsQueryKey, Ht as getReceivablesIdOptions, Ut as getReceivablesIdPdfLinkOptions, Wt as getReceivablesIdPdfLinkQueryKey, Gt as getReceivablesIdQueryKey, Kt as getReceivablesOptions, qt as getReceivablesQueryKey, Jt as getTagsOptions, Yt as getTagsQueryKey, Xt as getTransactionsIdQueryKey, Zt as getTransactionsOptions, Qt as getTransactionsQueryKey, $t as getTransactionsValidationsOptions, en as getTransactionsValidationsQueryKey, F as getUsers, tn as getUsersOptions, nn as getUsersQueryKey, rn as grantBankAccountAccessMutation, an as grantExternalBankAccountAccessMutation, Ce as hasAnyScope, e as invalidateAllClients, Nn as isAllPagesResolving, Dn as isApiNotFoundError, o as isWidgetGatewayHost, on as linkExternalBankAccountMutation, I as listDepartments, sn as listDepartmentsOptions, cn as listDepartmentsQueryKey, L as listLocations, ln as listLocationsOptions, un as listLocationsQueryKey, R as listRoles, dn as listRolesQueryKey, z as manageBankAccountAccess, l as optionalOrganizationHeaders, u as organizationHeaders, fn as patchApprovalPoliciesIdMutation, B as patchCounterpartsId, V as patchCounterpartsIdAddressesId, H as patchCounterpartsIdBankAccountsId, pn as patchEntitiesIdSettingsMutation, mn as patchLedgerAccountsIdMutation, U as patchMeasureUnitsId, W as patchPayablesId, G as patchProductsId, hn as patchReceiptsIdMutation, K as patchReceivablesId, q as patchTagsId, J as postApiWidgetGatewayDisclosureAcceptance, gn as postApprovalPoliciesMutation, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, _n as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdAttachFile, ne as postPayablesIdSubmitForApproval, re as postPayablesIdValidate, ie as postPayablesUploadFromFile, ae as postProducts, oe as postReceivables, se as postReceivablesIdAccept, ce as postReceivablesIdCancel, le as postReceivablesIdClone, ue as postReceivablesIdDecline, de as postReceivablesIdIssue, fe as postReceivablesIdMarkAsPaid, pe as postReceivablesIdMarkAsPartiallyPaid, me as postReceivablesIdMarkAsUncollectible, he as postReceivablesIdSend, ge as postTags, _e as putPayablesIdLineItems, ve as putReceivablesIdLineItems, vn as putTransactionsValidationsMutation, t as registerQueryClient, n as setAllClientsQueriesData, yn as submitApplicationMutation, bn as unlinkExternalBankAccountMutation, r as unregisterQueryClient, xn as updateApplicationMutation, Sn as updateBankAccountMutation, ye as updateDepartment, Cn as updateExternalBankAccountMutation, be as updateLocation, xe as updateUser, Fn as useAllBankAccountsQuery, In as useAllExternalBankAccountsQuery, zn as useAllOrganizationRolesQuery, Vn as useAllOrganizationUsersQuery, Pn as useAutoFetchNextPage, En as useCurrentUserQuery, c as useEmbedApi, On as useGetUserDataQuery, Ln as useLedgerAccountsQuery, Rn as usePaymentTermsQuery, Bn as useRolePermissionsQueries, kn as useUpsertUserDataMutation, wn as validateExternalBankAccountMutation, Tn as withAuthEpoch };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetGatewayHosts.js
|
|
2
|
+
var e = [
|
|
3
|
+
"https://api.stage.tesouro.com",
|
|
4
|
+
"https://api.sandbox.stage.tesouro.com",
|
|
5
|
+
"https://api.stage.business-banking.app",
|
|
6
|
+
"https://api.tesouro.com",
|
|
7
|
+
"https://api.sandbox.tesouro.com",
|
|
8
|
+
"https://api.business-banking.app"
|
|
9
|
+
];
|
|
10
|
+
function t(t) {
|
|
11
|
+
return e.includes(t);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { e as WIDGET_GATEWAY_HOSTS, t as isWidgetGatewayHost };
|
|
@@ -3,92 +3,99 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { registerQueryClient as e, unregisterQueryClient as t } from "../../../../data-access/dist/lib/clientRegistry.js";
|
|
6
|
-
import { createEmbeddedClient as
|
|
7
|
-
import { EmbedApiProvider as
|
|
6
|
+
import { createEmbeddedClient as n } from "../../../../data-access/dist/lib/createEmbeddedClient.js";
|
|
7
|
+
import { EmbedApiProvider as r } from "../../../../data-access/dist/lib/EmbedApiContext.js";
|
|
8
8
|
import "../../../../data-access/dist/index.js";
|
|
9
|
-
import { getGlobalSnapshot as
|
|
10
|
-
import { configureEmbeddedClient as
|
|
9
|
+
import { getGlobalSnapshot as i, subscribeToGlobal as a } from "./globalStore.js";
|
|
10
|
+
import { configureEmbeddedClient as ee } from "../analytics/client.js";
|
|
11
11
|
import { generateCorrelationId as te } from "../analytics/ids.js";
|
|
12
12
|
import { WidgetContext as ne } from "./WidgetContext.js";
|
|
13
13
|
import { resolveOrgId as re, useAuthEpoch as ie } from "./utils.js";
|
|
14
14
|
import { useWidgetFetch as ae } from "./useWidgetFetch.js";
|
|
15
|
-
import { deriveWidgetInitState as
|
|
16
|
-
import { resolveUIFramework as
|
|
17
|
-
import { UIProvider as
|
|
18
|
-
import { useDesignSystemEnsurer as
|
|
15
|
+
import { deriveWidgetInitState as oe, useWidgetInitPublisher as o } from "./useWidgetInitPublisher.js";
|
|
16
|
+
import { resolveUIFramework as se } from "../../../../ui/dist/lib/UIContext/UIContext.js";
|
|
17
|
+
import { UIProvider as s } from "../../../../ui/dist/lib/UIContext/UIProvider.js";
|
|
18
|
+
import { useDesignSystemEnsurer as c } from "../../../../ui/dist/lib/UIContext/uiRendererRegistry.js";
|
|
19
19
|
import "../../../../ui/dist/index.js";
|
|
20
|
-
import { useEffect as
|
|
21
|
-
import { jsx as
|
|
22
|
-
import { QueryClient as
|
|
20
|
+
import { useEffect as l, useMemo as u, useRef as d, useState as f, useSyncExternalStore as ce } from "react";
|
|
21
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
22
|
+
import { QueryClient as m, QueryClientProvider as h } from "@tanstack/react-query";
|
|
23
23
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js
|
|
24
|
-
function
|
|
25
|
-
let D =
|
|
26
|
-
enabled:
|
|
24
|
+
function g({ children: g, baseUrl: _, widgetToken: v, organizationId: y, configClient: b, gatewayRouting: x, linkComponent: S, uiFramework: C, implementation: w, analytics: T, unstable_initResponseOverride: E }) {
|
|
25
|
+
let D = ce(a, i, i), O = _ ?? D.baseUrl, k = v === void 0 ? D.widgetToken : v, A = y === void 0 ? D.organizationId : y, j = b ?? D.configClient, M = x ?? D.gatewayRouting, N = S ?? D.linkComponent, P = C ?? D.uiFramework, F = w ?? D.implementation, I = T !== !1, [L] = f(te), R = d({
|
|
26
|
+
enabled: I,
|
|
27
27
|
organizationId: A,
|
|
28
|
-
rootCorrelationId:
|
|
29
|
-
}), [
|
|
28
|
+
rootCorrelationId: L
|
|
29
|
+
}), [z] = f(() => new m({ defaultOptions: {
|
|
30
30
|
queries: {
|
|
31
31
|
retry: !1,
|
|
32
32
|
refetchOnWindowFocus: !1
|
|
33
33
|
},
|
|
34
34
|
mutations: { retry: !1 }
|
|
35
35
|
} }));
|
|
36
|
-
|
|
37
|
-
let
|
|
38
|
-
|
|
39
|
-
let
|
|
40
|
-
let e =
|
|
41
|
-
tokenRef:
|
|
42
|
-
analyticsContextRef:
|
|
36
|
+
l(() => (e(z), () => t(z)), [z]);
|
|
37
|
+
let B = d(k);
|
|
38
|
+
B.current = k;
|
|
39
|
+
let V = ie(k), H = u(() => {
|
|
40
|
+
let e = ee(n(O), {
|
|
41
|
+
tokenRef: B,
|
|
42
|
+
analyticsContextRef: R,
|
|
43
|
+
gatewayRouting: M
|
|
43
44
|
});
|
|
44
45
|
return j ? j(e) : e;
|
|
45
|
-
}, [
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
}, [
|
|
47
|
+
O,
|
|
48
|
+
j,
|
|
49
|
+
M
|
|
50
|
+
]);
|
|
51
|
+
l(() => {
|
|
52
|
+
if (!I || !("window" in globalThis)) return;
|
|
48
53
|
let e = !1;
|
|
49
54
|
return import("../analytics/install.js").then(({ ensureAnalyticsAdapterInstalled: t }) => {
|
|
50
55
|
e || t();
|
|
51
56
|
}), () => {
|
|
52
57
|
e = !0;
|
|
53
58
|
};
|
|
54
|
-
}, [
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}, [
|
|
59
|
-
let { result:
|
|
59
|
+
}, [I]);
|
|
60
|
+
let U = c(se(P));
|
|
61
|
+
l(() => {
|
|
62
|
+
U && U().catch(() => {});
|
|
63
|
+
}, [U]);
|
|
64
|
+
let { result: W, loading: G, error: K, initStaleForToken: le, refetch: q } = ae(E ? null : H, k, R), J = k ? E ?? W ?? void 0 : void 0, Y = !E && le, X = re(A, Y ? void 0 : J?.organizationId), ue = u(() => oe({
|
|
60
65
|
hasToken: !!k,
|
|
61
|
-
loading:
|
|
62
|
-
error:
|
|
66
|
+
loading: G,
|
|
67
|
+
error: K,
|
|
63
68
|
initResponse: J,
|
|
64
69
|
initStaleForToken: Y
|
|
65
70
|
}), [
|
|
66
71
|
k,
|
|
67
|
-
W,
|
|
68
72
|
G,
|
|
73
|
+
K,
|
|
69
74
|
J,
|
|
70
75
|
Y
|
|
71
76
|
]);
|
|
72
|
-
|
|
73
|
-
let Z =
|
|
74
|
-
enabled:
|
|
77
|
+
o(ue, k);
|
|
78
|
+
let Z = u(() => ({
|
|
79
|
+
enabled: I,
|
|
75
80
|
organizationId: X,
|
|
76
|
-
rootCorrelationId:
|
|
81
|
+
rootCorrelationId: L
|
|
77
82
|
}), [
|
|
78
|
-
|
|
83
|
+
I,
|
|
79
84
|
X,
|
|
80
|
-
|
|
85
|
+
L
|
|
81
86
|
]);
|
|
82
|
-
|
|
83
|
-
let Q =
|
|
84
|
-
baseUrl:
|
|
85
|
-
widgetToken:
|
|
86
|
-
organizationId:
|
|
87
|
-
configClient:
|
|
87
|
+
R.current = Z;
|
|
88
|
+
let Q = u(() => ({
|
|
89
|
+
baseUrl: _,
|
|
90
|
+
widgetToken: v,
|
|
91
|
+
organizationId: y,
|
|
92
|
+
configClient: b,
|
|
93
|
+
gatewayRouting: x,
|
|
88
94
|
linkComponent: S,
|
|
89
95
|
uiFramework: C,
|
|
90
96
|
implementation: w
|
|
91
97
|
}), [
|
|
98
|
+
_,
|
|
92
99
|
v,
|
|
93
100
|
y,
|
|
94
101
|
b,
|
|
@@ -96,14 +103,15 @@ function _({ children: _, baseUrl: v, widgetToken: y, organizationId: b, configC
|
|
|
96
103
|
S,
|
|
97
104
|
C,
|
|
98
105
|
w
|
|
99
|
-
]), $ =
|
|
106
|
+
]), $ = u(() => ({
|
|
100
107
|
baseUrl: O,
|
|
101
108
|
widgetToken: k,
|
|
102
109
|
organizationId: X,
|
|
103
110
|
configClient: j,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
111
|
+
gatewayRouting: M,
|
|
112
|
+
linkComponent: N,
|
|
113
|
+
uiFramework: P,
|
|
114
|
+
implementation: F,
|
|
107
115
|
initResponse: J
|
|
108
116
|
}), [
|
|
109
117
|
O,
|
|
@@ -113,13 +121,14 @@ function _({ children: _, baseUrl: v, widgetToken: y, organizationId: b, configC
|
|
|
113
121
|
M,
|
|
114
122
|
N,
|
|
115
123
|
P,
|
|
124
|
+
F,
|
|
116
125
|
J
|
|
117
|
-
]),
|
|
126
|
+
]), de = u(() => ({
|
|
118
127
|
resolved: $,
|
|
119
128
|
own: Q,
|
|
120
129
|
refetch: q,
|
|
121
|
-
loading:
|
|
122
|
-
error:
|
|
130
|
+
loading: G,
|
|
131
|
+
error: K,
|
|
123
132
|
analytics: Z,
|
|
124
133
|
cascadeOrgId: A,
|
|
125
134
|
initResponseStaleForToken: Y
|
|
@@ -127,29 +136,29 @@ function _({ children: _, baseUrl: v, widgetToken: y, organizationId: b, configC
|
|
|
127
136
|
$,
|
|
128
137
|
Q,
|
|
129
138
|
q,
|
|
130
|
-
W,
|
|
131
139
|
G,
|
|
140
|
+
K,
|
|
132
141
|
Z,
|
|
133
142
|
A,
|
|
134
143
|
Y
|
|
135
144
|
]);
|
|
136
|
-
return /* @__PURE__ */ h
|
|
137
|
-
client:
|
|
138
|
-
children: /* @__PURE__ */
|
|
139
|
-
client:
|
|
145
|
+
return /* @__PURE__ */ p(h, {
|
|
146
|
+
client: z,
|
|
147
|
+
children: /* @__PURE__ */ p(r, {
|
|
148
|
+
client: H,
|
|
140
149
|
organizationId: X,
|
|
141
150
|
widgetToken: k,
|
|
142
|
-
authEpoch:
|
|
143
|
-
children: /* @__PURE__ */
|
|
144
|
-
value:
|
|
145
|
-
children: /* @__PURE__ */
|
|
146
|
-
linkComponent:
|
|
147
|
-
uiFramework:
|
|
148
|
-
children:
|
|
151
|
+
authEpoch: V,
|
|
152
|
+
children: /* @__PURE__ */ p(ne.Provider, {
|
|
153
|
+
value: de,
|
|
154
|
+
children: /* @__PURE__ */ p(s, {
|
|
155
|
+
linkComponent: N,
|
|
156
|
+
uiFramework: P,
|
|
157
|
+
children: g
|
|
149
158
|
})
|
|
150
159
|
})
|
|
151
160
|
})
|
|
152
161
|
});
|
|
153
162
|
}
|
|
154
163
|
//#endregion
|
|
155
|
-
export {
|
|
164
|
+
export { g as RootWidgetProvider };
|