@tesouro/embedded-components-react 0.4.22 → 0.4.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +8 -8
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +24 -24
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +45 -44
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -49
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +47 -119
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +119 -33
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +33 -186
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +186 -75
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +75 -21
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +22 -232
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +223 -210
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +202 -103
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +121 -13
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +12 -47
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +47 -31
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +27 -198
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +198 -30
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +30 -234
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +240 -19
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +19 -414
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +427 -4
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -38
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +34 -210
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +221 -3
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +3 -4
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +2 -44
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +46 -1
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -8
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +6 -10
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +10 -110
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +112 -3
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +3 -127
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +124 -8
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -7
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +8 -46
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +43 -18
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +20 -28
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +27 -82
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +83 -47
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +47 -250
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +239 -101
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +107 -202
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +209 -3
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +4 -8
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +6 -113
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +115 -1
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +0 -24
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +25 -0
  51. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +4 -3
  52. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/client.config.js +2 -2
  53. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/finopsApiVersion.js +4 -0
  54. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/transportInterceptors.js +13 -0
  55. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  56. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/client.js +4 -7
  57. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  58. package/package.json +33 -1
  59. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.js +0 -3
  60. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.json.js +0 -4
@@ -1 +1,115 @@
1
- import "./index82.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
6
+ import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
7
+ import "../../../shared/data-access/dist/index.js";
8
+ import { EmbeddedToaster as n } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
9
+ import "../../../shared/ui/dist/index.js";
10
+ import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analytics/hooks.js";
11
+ import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
12
+ import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
13
+ import "../../../shared/feature/dist/index.js";
14
+ import { BillPayWidgetUi as o } from "../../ui/dist/index53.js";
15
+ import { BillUploadStatusTray as s } from "../../ui/dist/index79.js";
16
+ import "../../ui/dist/index.js";
17
+ import { ApprovalPoliciesSettings as c } from "../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
18
+ import "../../../shared/approval-policy/feature/dist/index.js";
19
+ import { useBillUploadQueue as l } from "./index68.js";
20
+ import "./index69.js";
21
+ import { billsTabTestIds as u } from "./index74.js";
22
+ import { BillsTab as d } from "./index80.js";
23
+ import "./index81.js";
24
+ import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index63.js";
25
+ import { DEFAULT_TABS_LABELS as m } from "./index82.js";
26
+ import { CounterpartsWidget as h } from "../../../counterparts-widget/feature/dist/index8.js";
27
+ import "../../../counterparts-widget/feature/dist/index.js";
28
+ import { useCallback as g, useEffect as _, useState as v } from "react";
29
+ import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
30
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js
31
+ var S = {
32
+ Bills: "bills",
33
+ Vendors: "vendors",
34
+ Settings: "settings"
35
+ }, C = [
36
+ S.Bills,
37
+ S.Vendors,
38
+ S.Settings
39
+ ];
40
+ function w({ labels: i, tabsLabels: p, approvalPolicyLabels: w, approvalPolicyComponentLabels: T, vendorLabels: E, poweredByBankName: D }) {
41
+ let O = r();
42
+ _(() => {
43
+ O(f.Mounted);
44
+ }, [O]);
45
+ let k = {
46
+ ...m,
47
+ ...p
48
+ }, { initResponse: A } = a(), j = e(A?.scopes, [t.ApprovalPolicyWriteOrg]), M = !A || j, [N, P] = v(S.Bills), [F, I] = v(), L = g((e) => {
49
+ P(S.Bills), I(e);
50
+ }, []), R = l({ onOpenBill: L }), z = [{
51
+ id: S.Bills,
52
+ label: k.bills,
53
+ content: /* @__PURE__ */ b(d, {
54
+ onEnqueueFiles: R.enqueue,
55
+ openPayableId: F,
56
+ onOpenPayableHandled: () => I(void 0),
57
+ poweredByBankName: D
58
+ })
59
+ }, {
60
+ id: S.Vendors,
61
+ label: k.vendors,
62
+ content: /* @__PURE__ */ b(h, {
63
+ ...E,
64
+ counterpartType: "vendor",
65
+ onViewAllDocuments: () => P(S.Bills)
66
+ })
67
+ }];
68
+ M && z.push({
69
+ id: S.Settings,
70
+ label: k.settings,
71
+ content: /* @__PURE__ */ b(c, {
72
+ labels: w,
73
+ componentLabels: T
74
+ })
75
+ });
76
+ let B = z.some((e) => e.id === N) ? N : C.find((e) => z.some((t) => t.id === e)) ?? z[0]?.id ?? "";
77
+ return /* @__PURE__ */ x(y, { children: [
78
+ /* @__PURE__ */ b(n, {}),
79
+ /* @__PURE__ */ b(o, {
80
+ labels: i,
81
+ tabs: z,
82
+ selectedTabId: B,
83
+ onTabChange: P
84
+ }),
85
+ R.isVisible ? /* @__PURE__ */ b(s, {
86
+ sections: R.sections,
87
+ summaryLabel: R.summaryLabel,
88
+ collapsed: R.collapsed,
89
+ onToggleCollapsed: R.onToggleCollapsed,
90
+ onClose: R.onClose,
91
+ testId: u.uploadTray
92
+ }) : null
93
+ ] });
94
+ }
95
+ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: m, ...h }) {
96
+ return /* @__PURE__ */ b(i, {
97
+ widgetName: p,
98
+ baseUrl: e,
99
+ widgetToken: t,
100
+ organizationId: n,
101
+ configClient: r,
102
+ gatewayRouting: a,
103
+ linkComponent: o,
104
+ implementation: s,
105
+ uiFramework: c,
106
+ errorFallback: l,
107
+ onError: u,
108
+ analytics: d,
109
+ disclosuresAcceptance: f,
110
+ providerLabels: m,
111
+ children: /* @__PURE__ */ b(w, { ...h })
112
+ });
113
+ }
114
+ //#endregion
115
+ export { T as BillPayWidgetNative, T as default };
@@ -1,25 +1 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
6
- import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
7
- import "../../../shared/feature/dist/index.js";
8
- import { BillPayWidgetMonite as n } from "./index63.js";
9
- import "./index64.js";
10
- import { BillPayWidgetNative as r } from "./index82.js";
11
1
  import "./index83.js";
12
- import { jsx as i } from "react/jsx-runtime";
13
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js
14
- function a({ implementation: a, ...o }) {
15
- let s = t().implementation, c = a ?? s ?? e.Monite;
16
- return c === e.Native ? /* @__PURE__ */ i(r, {
17
- implementation: c,
18
- ...o
19
- }) : /* @__PURE__ */ i(n, {
20
- implementation: c,
21
- ...o
22
- });
23
- }
24
- //#endregion
25
- export { a as BillPayWidget, a as default };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
6
+ import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
7
+ import "../../../shared/feature/dist/index.js";
8
+ import { BillPayWidgetMonite as n } from "./index64.js";
9
+ import "./index65.js";
10
+ import { BillPayWidgetNative as r } from "./index83.js";
11
+ import "./index84.js";
12
+ import { jsx as i } from "react/jsx-runtime";
13
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js
14
+ function a({ implementation: a, ...o }) {
15
+ let s = t().implementation, c = a ?? s ?? e.Monite;
16
+ return c === e.Native ? /* @__PURE__ */ i(r, {
17
+ implementation: c,
18
+ ...o
19
+ }) : /* @__PURE__ */ i(n, {
20
+ implementation: c,
21
+ ...o
22
+ });
23
+ }
24
+ //#endregion
25
+ export { a as BillPayWidget, a as default };
@@ -1,7 +1,8 @@
1
- import "./lib/api-version.js";
1
+ import "./lib/finopsApiVersion.js";
2
2
  import { cancelAllClients as e, invalidateAllClients as t, registerQueryClient as n, removeInactiveFromAllClients as r, setAllClientsQueriesData as i, unregisterQueryClient as a } from "./lib/clientRegistry.js";
3
3
  import { cloneEmbeddedClient as o, createEmbeddedClient as s } from "./lib/createEmbeddedClient.js";
4
- import { isWidgetGatewayHost as c } from "./lib/widgetGatewayHosts.js";
4
+ import "./lib/widgetGatewayHosts.js";
5
+ import { attachTransportInterceptors as c } from "./lib/transportInterceptors.js";
5
6
  import "./lib/rest/client.gen.js";
6
7
  import { EmbedApiProvider as l, useEmbedApi as u } from "./lib/EmbedApiContext.js";
7
8
  import { optionalOrganizationHeaders as d, organizationHeaders as f } from "./lib/organizationHeaders.js";
@@ -33,4 +34,4 @@ import { useRolePermissionsQueries as Tr } from "./lib/role/useRolePermissionsQu
33
34
  import { useAllOrganizationUsersQuery as Er } from "./lib/user/useAllOrganizationUsersQuery.js";
34
35
  import { useAcceptWidgetDisclosures as Dr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
35
36
  import { useDisclosuresQuery as Or } from "./lib/disclosures/useDisclosuresQuery.js";
36
- export { l as EmbedApiProvider, pr as Scope, Ve as activateCreditCardMutation, He as activateDebitCardMutation, p as bulkUpdateDepartmentMembers, m as bulkUpdateLocationMembers, h as bulkUpdateRoleMembers, e as cancelAllClients, o as cloneEmbeddedClient, Ue as connectExternalBankAccountMutation, We as createAchMoneyMovementMutation, Ge as createApplicationMutation, Ke as createBankAccountMutation, qe as createBookTransferMutation, Je as createDebitCardMutation, g as createDepartment, s as createEmbeddedClient, _ as createLocation, v as createUser, Ye as createVelocityControlMutation, y as deactivateDepartment, b as deactivateLocation, Xe as deleteApprovalPoliciesIdMutation, x as deleteCounterpartsId, S as deleteCounterpartsIdBankAccountsId, Ze as deleteLedgerAccountsIdMutation, C as deleteMeasureUnitsId, w as deletePayablesId, T as deletePayablesIdFile, E as deleteProductsId, Qe as deleteReceiptsIdMutation, D as deleteReceivablesId, O as deleteTagsId, $e as disableUserMutation, k as downloadBankAccountTransactions, ze as fetchWidgetInit, mr as getAllPagesNextPageParam, hr as getAllPagesNextPaginationTokenParam, et as getAnalyticsPayablesOptions, tt as getAnalyticsReceivablesOptions, A as getApplicationStatus, nt as getApplicationStatusOptions, j as getApprovalPolicies, rt as getApprovalPoliciesOptions, it as getApprovalPoliciesQueryKey, M as getApprovalRequests, at as getApprovalRequestsOptions, ot as getApprovalRequestsQueryKey, N as getBankAccountAccess, st as getBankAccountAccessQueryKey, ct as getBankAccountOptions, lt as getBankAccountQueryKey, ut as getBankAccountTransactionsOptions, dt as getBankAccountTransfersOptions, ft as getBankAccountTransfersQueryKey, pt as getBankAccountsQueryKey, mt as getCounterpartsIdAddressesOptions, ht as getCounterpartsIdAddressesQueryKey, gt as getCounterpartsIdBankAccountsOptions, _t as getCounterpartsIdBankAccountsQueryKey, vt as getCounterpartsIdOptions, yt as getCounterpartsIdQueryKey, bt as getCounterpartsOptions, xt as getCounterpartsQueryKey, St as getCreditCardByIdOptions, Ct as getCreditCardByIdQueryKey, wt as getCreditCardsOptions, Tt as getCreditCardsQueryKey, Et as getDebitCardByIdOptions, Dt as getDebitCardByIdQueryKey, Ot as getDebitCardCredentialsOptions, kt as getDebitCardsOptions, At as getDebitCardsQueryKey, P as getDepartment, jt as getDepartmentOptions, Mt as getDepartmentQueryKey, Nt as getEntitiesIdSettingsOptions, Pt as getEntitiesIdSettingsQueryKey, Ft as getEntitiesMeOptions, It as getEntityUsersMyEntityOptions, Lt as getEntityUsersOptions, F as getExternalBankAccountAccess, Rt as getExternalBankAccountAccessQueryKey, zt as getExternalBankAccountsOptions, Bt as getExternalBankAccountsQueryKey, Vt as getLedgerAccountsQueryKey, I as getLocation, Ht as getLocationOptions, Ut as getLocationQueryKey, Wt as getMeasureUnitsOptions, Gt as getMeasureUnitsQueryKey, Kt as getOrganizationOptions, L as getPayables, qt as getPayablesAnalyticsOptions, Jt as getPayablesAnalyticsQueryKey, R as getPayablesId, z as getPayablesIdHistory, Yt as getPayablesIdHistoryOptions, Xt as getPayablesIdHistoryQueryKey, B as getPayablesIdLineItems, Zt as getPayablesIdLineItemsOptions, Qt as getPayablesIdLineItemsQueryKey, $t as getPayablesIdOptions, en as getPayablesIdQueryKey, tn as getPayablesIdSuggestionsOptions, nn as getPayablesOptions, rn as getPayablesQueryKey, V as getPaymentRecords, an as getPaymentRecordsOptions, on as getPaymentRecordsQueryKey, sn as getProductsIdOptions, cn as getProductsIdQueryKey, ln as getProductsOptions, un as getProductsQueryKey, dn as getReceiptsIdQueryKey, fn as getReceiptsOptions, pn as getReceiptsQueryKey, mn as getReceivablesIdHistoryOptions, hn as getReceivablesIdHistoryQueryKey, gn as getReceivablesIdMailsOptions, _n as getReceivablesIdMailsQueryKey, vn as getReceivablesIdOptions, yn as getReceivablesIdPdfLinkOptions, bn as getReceivablesIdPdfLinkQueryKey, xn as getReceivablesIdQueryKey, Sn as getReceivablesOptions, Cn as getReceivablesQueryKey, wn as getTagsOptions, Tn as getTagsQueryKey, En as getTransactionsIdQueryKey, Dn as getTransactionsOptions, On as getTransactionsQueryKey, kn as getTransactionsValidationsOptions, An as getTransactionsValidationsQueryKey, H as getUsers, jn as getUsersOptions, Mn as getUsersQueryKey, Nn as getVelocityControlsQueryKey, Pn as grantBankAccountAccessMutation, Fn as grantExternalBankAccountAccessMutation, Be as hasAnyScope, t as invalidateAllClients, gr as isAllPagesResolving, sr as isApiConflictError, cr as isApiForbiddenError, lr as isApiNotFoundError, ur as isApiUnprocessableError, c as isWidgetGatewayHost, In as linkExternalBankAccountMutation, U as listDepartments, Ln as listDepartmentsOptions, Rn as listDepartmentsQueryKey, W as listLocations, zn as listLocationsOptions, Bn as listLocationsQueryKey, G as listRoles, Vn as listRolesQueryKey, K as manageBankAccountAccess, Hn as manageDebitCardAccessMutation, d as optionalOrganizationHeaders, f as organizationHeaders, Un as patchApprovalPoliciesIdMutation, q as patchCounterpartsId, J as patchCounterpartsIdAddressesId, Y as patchCounterpartsIdBankAccountsId, Wn as patchEntitiesIdSettingsMutation, Gn as patchLedgerAccountsIdMutation, X as patchMeasureUnitsId, Z as patchPayablesId, Q as patchProductsId, Kn as patchReceiptsIdMutation, $ as patchReceivablesId, ee as patchTagsId, qn as postApprovalPoliciesMutation, te as postApprovalRequestsIdApprove, ne as postApprovalRequestsIdReject, re as postCounterparts, ie as postCounterpartsIdAddresses, ae as postCounterpartsIdBankAccounts, oe as postCounterpartsIdBankAccountsIdMakeDefault, Jn as postLedgerAccountsMutation, se as postMeasureUnits, ce as postPayables, le as postPayablesIdApprovePaymentOperation, ue as postPayablesIdAttachFile, de as postPayablesIdCancel, fe as postPayablesIdDuplicatesIdConfirm, pe as postPayablesIdDuplicatesIdDismiss, me as postPayablesIdMarkAsPaid, he as postPayablesIdReject, ge as postPayablesIdReopen, _e as postPayablesIdSchedulePayment, ve as postPayablesIdSubmitForApproval, ye as postPayablesIdValidate, be as postPayablesUploadFromFile, xe as postPaymentIntentsIdCancel, Se as postProducts, Ce as postReceivables, we as postReceivablesIdAccept, Te as postReceivablesIdCancel, Ee as postReceivablesIdClone, De as postReceivablesIdDecline, Oe as postReceivablesIdIssue, ke as postReceivablesIdMarkAsPaid, Ae as postReceivablesIdMarkAsPartiallyPaid, je as postReceivablesIdMarkAsUncollectible, Me as postReceivablesIdSend, Ne as postTags, Pe as putPayablesIdLineItems, Fe as putReceivablesIdLineItems, Yn as putTransactionsValidationsMutation, n as registerQueryClient, r as removeInactiveFromAllClients, i as setAllClientsQueriesData, Xn as setDebitCardLockStatusMutation, Zn as submitApplicationMutation, Qn as unlinkExternalBankAccountMutation, a as unregisterQueryClient, $n as updateApplicationMutation, er as updateBankAccountMutation, tr as updateDebitCardMutation, Ie as updateDepartment, nr as updateExternalBankAccountMutation, Le as updateLocation, Re as updateUser, Dr as useAcceptWidgetDisclosures, vr as useAllBankAccountsQuery, yr as useAllExternalBankAccountsQuery, xr as useAllLedgerAccountsQuery, br as useAllMerchantCategoryGroupsQuery, wr as useAllOrganizationRolesQuery, Er as useAllOrganizationUsersQuery, _r as useAutoFetchNextPage, or as useCurrentUserQuery, Or as useDisclosuresQuery, u as useEmbedApi, dr as useGetUserDataQuery, Sr as useLedgerAccountsQuery, Cr as usePaymentTermsQuery, Tr as useRolePermissionsQueries, fr as useUpsertUserDataMutation, rr as validateExternalBankAccountMutation, ir as verifyDebitCardMutation, ar as withAuthEpoch };
37
+ export { l as EmbedApiProvider, pr as Scope, Ve as activateCreditCardMutation, He as activateDebitCardMutation, c as attachTransportInterceptors, p as bulkUpdateDepartmentMembers, m as bulkUpdateLocationMembers, h as bulkUpdateRoleMembers, e as cancelAllClients, o as cloneEmbeddedClient, Ue as connectExternalBankAccountMutation, We as createAchMoneyMovementMutation, Ge as createApplicationMutation, Ke as createBankAccountMutation, qe as createBookTransferMutation, Je as createDebitCardMutation, g as createDepartment, s as createEmbeddedClient, _ as createLocation, v as createUser, Ye as createVelocityControlMutation, y as deactivateDepartment, b as deactivateLocation, Xe as deleteApprovalPoliciesIdMutation, x as deleteCounterpartsId, S as deleteCounterpartsIdBankAccountsId, Ze as deleteLedgerAccountsIdMutation, C as deleteMeasureUnitsId, w as deletePayablesId, T as deletePayablesIdFile, E as deleteProductsId, Qe as deleteReceiptsIdMutation, D as deleteReceivablesId, O as deleteTagsId, $e as disableUserMutation, k as downloadBankAccountTransactions, ze as fetchWidgetInit, mr as getAllPagesNextPageParam, hr as getAllPagesNextPaginationTokenParam, et as getAnalyticsPayablesOptions, tt as getAnalyticsReceivablesOptions, A as getApplicationStatus, nt as getApplicationStatusOptions, j as getApprovalPolicies, rt as getApprovalPoliciesOptions, it as getApprovalPoliciesQueryKey, M as getApprovalRequests, at as getApprovalRequestsOptions, ot as getApprovalRequestsQueryKey, N as getBankAccountAccess, st as getBankAccountAccessQueryKey, ct as getBankAccountOptions, lt as getBankAccountQueryKey, ut as getBankAccountTransactionsOptions, dt as getBankAccountTransfersOptions, ft as getBankAccountTransfersQueryKey, pt as getBankAccountsQueryKey, mt as getCounterpartsIdAddressesOptions, ht as getCounterpartsIdAddressesQueryKey, gt as getCounterpartsIdBankAccountsOptions, _t as getCounterpartsIdBankAccountsQueryKey, vt as getCounterpartsIdOptions, yt as getCounterpartsIdQueryKey, bt as getCounterpartsOptions, xt as getCounterpartsQueryKey, St as getCreditCardByIdOptions, Ct as getCreditCardByIdQueryKey, wt as getCreditCardsOptions, Tt as getCreditCardsQueryKey, Et as getDebitCardByIdOptions, Dt as getDebitCardByIdQueryKey, Ot as getDebitCardCredentialsOptions, kt as getDebitCardsOptions, At as getDebitCardsQueryKey, P as getDepartment, jt as getDepartmentOptions, Mt as getDepartmentQueryKey, Nt as getEntitiesIdSettingsOptions, Pt as getEntitiesIdSettingsQueryKey, Ft as getEntitiesMeOptions, It as getEntityUsersMyEntityOptions, Lt as getEntityUsersOptions, F as getExternalBankAccountAccess, Rt as getExternalBankAccountAccessQueryKey, zt as getExternalBankAccountsOptions, Bt as getExternalBankAccountsQueryKey, Vt as getLedgerAccountsQueryKey, I as getLocation, Ht as getLocationOptions, Ut as getLocationQueryKey, Wt as getMeasureUnitsOptions, Gt as getMeasureUnitsQueryKey, Kt as getOrganizationOptions, L as getPayables, qt as getPayablesAnalyticsOptions, Jt as getPayablesAnalyticsQueryKey, R as getPayablesId, z as getPayablesIdHistory, Yt as getPayablesIdHistoryOptions, Xt as getPayablesIdHistoryQueryKey, B as getPayablesIdLineItems, Zt as getPayablesIdLineItemsOptions, Qt as getPayablesIdLineItemsQueryKey, $t as getPayablesIdOptions, en as getPayablesIdQueryKey, tn as getPayablesIdSuggestionsOptions, nn as getPayablesOptions, rn as getPayablesQueryKey, V as getPaymentRecords, an as getPaymentRecordsOptions, on as getPaymentRecordsQueryKey, sn as getProductsIdOptions, cn as getProductsIdQueryKey, ln as getProductsOptions, un as getProductsQueryKey, dn as getReceiptsIdQueryKey, fn as getReceiptsOptions, pn as getReceiptsQueryKey, mn as getReceivablesIdHistoryOptions, hn as getReceivablesIdHistoryQueryKey, gn as getReceivablesIdMailsOptions, _n as getReceivablesIdMailsQueryKey, vn as getReceivablesIdOptions, yn as getReceivablesIdPdfLinkOptions, bn as getReceivablesIdPdfLinkQueryKey, xn as getReceivablesIdQueryKey, Sn as getReceivablesOptions, Cn as getReceivablesQueryKey, wn as getTagsOptions, Tn as getTagsQueryKey, En as getTransactionsIdQueryKey, Dn as getTransactionsOptions, On as getTransactionsQueryKey, kn as getTransactionsValidationsOptions, An as getTransactionsValidationsQueryKey, H as getUsers, jn as getUsersOptions, Mn as getUsersQueryKey, Nn as getVelocityControlsQueryKey, Pn as grantBankAccountAccessMutation, Fn as grantExternalBankAccountAccessMutation, Be as hasAnyScope, t as invalidateAllClients, gr as isAllPagesResolving, sr as isApiConflictError, cr as isApiForbiddenError, lr as isApiNotFoundError, ur as isApiUnprocessableError, In as linkExternalBankAccountMutation, U as listDepartments, Ln as listDepartmentsOptions, Rn as listDepartmentsQueryKey, W as listLocations, zn as listLocationsOptions, Bn as listLocationsQueryKey, G as listRoles, Vn as listRolesQueryKey, K as manageBankAccountAccess, Hn as manageDebitCardAccessMutation, d as optionalOrganizationHeaders, f as organizationHeaders, Un as patchApprovalPoliciesIdMutation, q as patchCounterpartsId, J as patchCounterpartsIdAddressesId, Y as patchCounterpartsIdBankAccountsId, Wn as patchEntitiesIdSettingsMutation, Gn as patchLedgerAccountsIdMutation, X as patchMeasureUnitsId, Z as patchPayablesId, Q as patchProductsId, Kn as patchReceiptsIdMutation, $ as patchReceivablesId, ee as patchTagsId, qn as postApprovalPoliciesMutation, te as postApprovalRequestsIdApprove, ne as postApprovalRequestsIdReject, re as postCounterparts, ie as postCounterpartsIdAddresses, ae as postCounterpartsIdBankAccounts, oe as postCounterpartsIdBankAccountsIdMakeDefault, Jn as postLedgerAccountsMutation, se as postMeasureUnits, ce as postPayables, le as postPayablesIdApprovePaymentOperation, ue as postPayablesIdAttachFile, de as postPayablesIdCancel, fe as postPayablesIdDuplicatesIdConfirm, pe as postPayablesIdDuplicatesIdDismiss, me as postPayablesIdMarkAsPaid, he as postPayablesIdReject, ge as postPayablesIdReopen, _e as postPayablesIdSchedulePayment, ve as postPayablesIdSubmitForApproval, ye as postPayablesIdValidate, be as postPayablesUploadFromFile, xe as postPaymentIntentsIdCancel, Se as postProducts, Ce as postReceivables, we as postReceivablesIdAccept, Te as postReceivablesIdCancel, Ee as postReceivablesIdClone, De as postReceivablesIdDecline, Oe as postReceivablesIdIssue, ke as postReceivablesIdMarkAsPaid, Ae as postReceivablesIdMarkAsPartiallyPaid, je as postReceivablesIdMarkAsUncollectible, Me as postReceivablesIdSend, Ne as postTags, Pe as putPayablesIdLineItems, Fe as putReceivablesIdLineItems, Yn as putTransactionsValidationsMutation, n as registerQueryClient, r as removeInactiveFromAllClients, i as setAllClientsQueriesData, Xn as setDebitCardLockStatusMutation, Zn as submitApplicationMutation, Qn as unlinkExternalBankAccountMutation, a as unregisterQueryClient, $n as updateApplicationMutation, er as updateBankAccountMutation, tr as updateDebitCardMutation, Ie as updateDepartment, nr as updateExternalBankAccountMutation, Le as updateLocation, Re as updateUser, Dr as useAcceptWidgetDisclosures, vr as useAllBankAccountsQuery, yr as useAllExternalBankAccountsQuery, xr as useAllLedgerAccountsQuery, br as useAllMerchantCategoryGroupsQuery, wr as useAllOrganizationRolesQuery, Er as useAllOrganizationUsersQuery, _r as useAutoFetchNextPage, or as useCurrentUserQuery, Or as useDisclosuresQuery, u as useEmbedApi, dr as useGetUserDataQuery, Sr as useLedgerAccountsQuery, Cr as usePaymentTermsQuery, Tr as useRolePermissionsQueries, fr as useUpsertUserDataMutation, rr as validateExternalBankAccountMutation, ir as verifyDebitCardMutation, ar as withAuthEpoch };
@@ -1,10 +1,10 @@
1
- import e from "./api-version.json.js";
1
+ import { FINOPS_API_VERSION as e } from "./finopsApiVersion.js";
2
2
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/client.config.js
3
3
  var t = (t) => ({
4
4
  ...t,
5
5
  headers: {
6
6
  ...t?.headers,
7
- "x-finops-version": e.version
7
+ "x-finops-version": e
8
8
  },
9
9
  throwOnError: !0
10
10
  });
@@ -0,0 +1,4 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/finopsApiVersion.js
2
+ var e = "2025-06-23";
3
+ //#endregion
4
+ export { e as FINOPS_API_VERSION };
@@ -0,0 +1,13 @@
1
+ import { isWidgetGatewayHost as e } from "./widgetGatewayHosts.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/transportInterceptors.js
3
+ function t(t, { tokenRef: n, gatewayRouting: r }) {
4
+ return t.interceptors.request.use((e) => (e.headers.has("X-Client-Secret") ? (e.headers.delete("Authorization"), n.current && e.headers.set("X-Widget-Token", n.current)) : n.current && e.headers.set("Authorization", `Bearer ${n.current}`), e)), r !== !1 && t.interceptors.request.use((t) => {
5
+ let i = new URL(t.url);
6
+ if (i.pathname.startsWith("/api/widget-gateway") || !(r ?? e(i.origin))) return t;
7
+ i.pathname = "/api/widget-gateway/proxy" + i.pathname;
8
+ let a = new Request(i.toString(), t);
9
+ return n.current && a.headers.set("X-Widget-Token", n.current), a;
10
+ }), t;
11
+ }
12
+ //#endregion
13
+ export { t as attachTransportInterceptors };
@@ -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.4.22", n = "d3853736c53cbd12ac728ce8c455ac910386fcd2", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.4.24", n = "1f0ca563b171bebb1fd0cec1979133b1a44e06fb", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -1,14 +1,11 @@
1
- import { isWidgetGatewayHost as e } from "../../../../data-access/dist/lib/widgetGatewayHosts.js";
1
+ import { attachTransportInterceptors as e } from "../../../../data-access/dist/lib/transportInterceptors.js";
2
2
  import "../../../../data-access/dist/index.js";
3
3
  import { attachAnalyticsInterceptors as t } from "./interceptor.js";
4
4
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/client.js
5
5
  function n(n, { tokenRef: r, analyticsContextRef: i, gatewayRouting: a }) {
6
- return n.interceptors.request.use((e) => (e.headers.has("X-Client-Secret") ? (e.headers.delete("Authorization"), r.current && e.headers.set("X-Widget-Token", r.current)) : r.current && e.headers.set("Authorization", `Bearer ${r.current}`), e)), a !== !1 && n.interceptors.request.use((t) => {
7
- let n = new URL(t.url);
8
- if (n.pathname.startsWith("/api/widget-gateway") || !(a ?? e(n.origin))) return t;
9
- n.pathname = "/api/widget-gateway/proxy" + n.pathname;
10
- let i = new Request(n.toString(), t);
11
- return r.current && i.headers.set("X-Widget-Token", r.current), i;
6
+ return e(n, {
7
+ tokenRef: r,
8
+ gatewayRouting: a
12
9
  }), t(n, i), n;
13
10
  }
14
11
  //#endregion
@@ -4,7 +4,7 @@
4
4
  "use client";
5
5
  import { Scope as e } from "../../../shared/data-access/dist/lib/scopes.js";
6
6
  import "../../../shared/data-access/dist/index.js";
7
- import { BillPayWidget as t } from "../../../bill-pay-widget/feature/dist/index84.js";
7
+ import { BillPayWidget as t } from "../../../bill-pay-widget/feature/dist/index85.js";
8
8
  import "../../../bill-pay-widget/feature/dist/index.js";
9
9
  import { jsx as n } from "react/jsx-runtime";
10
10
  //#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.4.22",
3
+ "version": "0.4.24",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {
@@ -108,6 +108,38 @@
108
108
  "@tesouro-fe/tesouro-plugin:tailwind-sync-generator"
109
109
  ]
110
110
  },
111
+ "test-stories": {
112
+ "executor": "nx:run-commands",
113
+ "cache": true,
114
+ "dependsOn": [
115
+ "^codegen"
116
+ ],
117
+ "inputs": [
118
+ "storybookProduction",
119
+ "^storybookProduction",
120
+ "{workspaceRoot}/libs/tesouro-embedded-components-react/**/*.stories.@(js|jsx|ts|tsx|mdx)",
121
+ {
122
+ "externalDependencies": [
123
+ "@nx/vite",
124
+ "@playwright/test",
125
+ "@storybook/addon-vitest",
126
+ "@storybook/react-vite",
127
+ "@tailwindcss/vite",
128
+ "@vitejs/plugin-react",
129
+ "@vitest/browser",
130
+ "@vitest/browser-playwright",
131
+ "storybook",
132
+ "vite",
133
+ "vite-plugin-svgr",
134
+ "vitest"
135
+ ]
136
+ }
137
+ ],
138
+ "options": {
139
+ "cwd": "packages/tesouro-embedded-components-react",
140
+ "command": "vitest run --config vitest.stories.config.mts"
141
+ }
142
+ },
111
143
  "verify-publish": {
112
144
  "executor": "nx:run-commands",
113
145
  "dependsOn": [
@@ -1,3 +0,0 @@
1
- import e from "./api-version.json.js";
2
- e.version;
3
- //#endregion
@@ -1,4 +0,0 @@
1
- //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.json.js
2
- var e = "2026-09-24", t = { version: e };
3
- //#endregion
4
- export { t as default, e as version };