@tesouro/embedded-components-react 0.2.281 → 0.2.283

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 (52) hide show
  1. package/dist/index.css +17 -6
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -5
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +42 -39
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +69 -54
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +21 -2
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +46 -41
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +81 -1
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +46 -47
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +3 -11
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +2 -8
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +5 -3
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +43 -5
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +1 -102
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +11 -3
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +9 -6
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +4 -5
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +127 -76
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +6 -6
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +7 -112
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +85 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +16 -12
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +2 -24
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +8 -0
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +114 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +1 -0
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +25 -0
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +50 -49
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +25 -12
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +86 -69
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +2 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +7 -7
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +17 -16
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +1 -0
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +1 -1
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +89 -124
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +31 -26
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +80 -77
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +20 -4
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +228 -6
  45. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +4 -4
  46. package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +13 -15
  47. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +6 -6
  48. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +53 -11
  49. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  50. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +1 -1
  51. package/dist/packages/shared-ui-shadcn/dist/index.js +3445 -3413
  52. package/package.json +1 -1
@@ -4,20 +4,62 @@
4
4
  "use client";
5
5
  import { useEmbedApi as e } from "../EmbedApiContext.js";
6
6
  import { organizationHeaders as t } from "../organizationHeaders.js";
7
- import { getLedgerAccountsOptions as n } from "../rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../withAuthEpoch.js";
9
- import { useQuery as i } from "@tanstack/react-query";
7
+ import { getLedgerAccounts as n } from "../rest/sdk.gen.js";
8
+ import { getLedgerAccountsOptions as r } from "../rest/@tanstack/react-query.gen.js";
9
+ import { withAuthEpoch as i } from "../withAuthEpoch.js";
10
+ import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
11
+ import { useMemo as c } from "react";
12
+ import { useInfiniteQuery as l, useQuery as u } from "@tanstack/react-query";
10
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js
11
- function a({ enabled: a, ...o } = {}) {
12
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (a === !0 || a === void 0), f = n({
13
- client: s,
14
- headers: t(c),
15
- query: o
14
+ var d = 250;
15
+ function f({ enabled: n, ...a } = {}) {
16
+ let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = e(), d = !!(s && c) && (n === !0 || n === void 0), f = r({
17
+ client: o,
18
+ headers: t(s),
19
+ query: a
16
20
  });
17
- return i({
18
- ...r(f, u),
21
+ return u({
22
+ ...i(f, l),
19
23
  enabled: d
20
24
  });
21
25
  }
26
+ function p({ enabled: u } = {}) {
27
+ let { client: f, organizationId: p, widgetToken: m, authEpoch: h } = e(), g = t(p), _ = !!(p && m) && (u === !0 || u === void 0), v = r({
28
+ client: f,
29
+ headers: g,
30
+ query: { limit: d }
31
+ }), y = l({
32
+ queryKey: [...i(v, h).queryKey, "all"],
33
+ enabled: _,
34
+ initialPageParam: void 0,
35
+ queryFn: async ({ signal: e, pageParam: t }) => {
36
+ let { data: r } = await n({
37
+ client: f,
38
+ headers: g,
39
+ query: {
40
+ limit: d,
41
+ ...t ? { pagination_token: t } : {}
42
+ },
43
+ signal: e,
44
+ throwOnError: !0
45
+ });
46
+ return r;
47
+ },
48
+ getNextPageParam: a
49
+ });
50
+ s(y, _);
51
+ let b = c(() => {
52
+ if (y.data) return {
53
+ data: y.data.pages.flatMap((e) => e.data ?? []),
54
+ next_pagination_token: void 0,
55
+ prev_pagination_token: void 0
56
+ };
57
+ }, [y.data]);
58
+ return {
59
+ ...y,
60
+ data: b,
61
+ isResolving: o(y)
62
+ };
63
+ }
22
64
  //#endregion
23
- export { a as useLedgerAccountsQuery };
65
+ export { p as useAllLedgerAccountsQuery, f as useLedgerAccountsQuery };
@@ -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.2.281", n = "3edd9856a4389e08020d7acb2298be398fc4ce89", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.2.283", n = "bd774981bed33b822fdb0bd1942e331510e7d95c", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -9,7 +9,7 @@ import { CardProgram as n } from "../../../shared/feature/dist/lib/card/cardProg
9
9
  import "../../../shared/feature/dist/index.js";
10
10
  import { BankAccountsWidget as r } from "../../../bank-accounts-widget/feature/dist/index8.js";
11
11
  import "../../../bank-accounts-widget/feature/dist/index.js";
12
- import { BillPayWidget as i } from "../../../bill-pay-widget/feature/dist/index30.js";
12
+ import { BillPayWidget as i } from "../../../bill-pay-widget/feature/dist/index34.js";
13
13
  import "../../../bill-pay-widget/feature/dist/index.js";
14
14
  import { CardsWidget as a } from "../../../cards-widget/feature/dist/index8.js";
15
15
  import "../../../cards-widget/feature/dist/index.js";