@tesouro/embedded-components-react 0.11.111 → 0.11.113

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 (28) hide show
  1. package/dist/experimental/BalanceHistoryWidget.d.ts +702 -0
  2. package/dist/experimental/BalanceHistoryWidget.js +5 -0
  3. package/dist/experimental/index.d.ts +93 -2
  4. package/dist/experimental/index.js +7 -4
  5. package/dist/index.css +9 -0
  6. package/dist/index.d.ts +84 -2
  7. package/dist/lib/WidgetSuite.d.ts +84 -2
  8. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/data-access/dist/index.js +3 -0
  9. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/data-access/dist/index2.js +89 -0
  10. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/data-access/dist/index3.js +19 -0
  11. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/index.js +4 -0
  12. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js +159 -0
  13. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js +31 -0
  14. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/testIds.js +12 -0
  15. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/analytics/events.js +3 -0
  16. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/balanceHistoryView/balanceHistoryRange.js +39 -0
  17. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/balanceHistoryView/buildBalanceHistoryView.js +70 -0
  18. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index.js +3 -0
  19. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index2.js +93 -0
  20. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index3.js +19 -0
  21. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index4.js +176 -0
  22. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
  23. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +115 -115
  24. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +199 -175
  25. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js +2 -2
  27. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +28 -19
  28. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
1
  // ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.11.111", n = "c9f4cedd2892385ba9474ce978173ba4665107f2", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.113", n = "860d8fe9c734b30d9d3d12d1cd6fdf0c82f5d333", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -8,14 +8,14 @@ function i({ title: i, action: a, bodyClassName: o, className: s, children: c, .
8
8
  className: t("ttw:@container/widget ttw:flex ttw:w-full ttw:flex-col ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:text-card-foreground", s),
9
9
  ...l,
10
10
  children: [u ? /* @__PURE__ */ r("div", {
11
- className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:px-4 ttw:py-3",
11
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3 ttw:px-4 ttw:py-3",
12
12
  children: [i === void 0 ? null : /* @__PURE__ */ n(e, {
13
13
  component: "h2",
14
14
  variant: "h6",
15
15
  className: "ttw:min-w-0 ttw:font-semibold ttw:text-foreground",
16
16
  children: i
17
17
  }), a == null ? null : /* @__PURE__ */ n("div", {
18
- className: "ttw:ml-auto ttw:flex ttw:shrink-0 ttw:items-center ttw:justify-end ttw:gap-2",
18
+ className: "ttw:ml-auto ttw:flex ttw:min-w-0 ttw:flex-wrap ttw:items-center ttw:justify-end ttw:gap-2",
19
19
  children: a
20
20
  })]
21
21
  }) : null, /* @__PURE__ */ n("div", {
@@ -9,28 +9,37 @@ import { hasAnyScope as r } from "../../../../../../shared/data-access/dist/lib/
9
9
  import { Scope as i } from "../../../../../../shared/data-access/dist/lib/scopes.js";
10
10
  import "../../../../../../shared/data-access/dist/index.js";
11
11
  import { DashboardQuickActions as a } from "./DashboardQuickActions.js";
12
- import { BalancesWidget as o } from "../../../../../../balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetFeature.js";
12
+ import { BalanceHistoryWidget as o } from "../../../../../../balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js";
13
+ import "../../../../../../balance-history-widget/feature/dist/index.js";
14
+ import { BalancesWidget as s } from "../../../../../../balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetFeature.js";
13
15
  import "../../../../../../balances-widget/feature/dist/index.js";
14
- import { InsightsWidget as s } from "../../../../../../insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
16
+ import { InsightsWidget as c } from "../../../../../../insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
15
17
  import "../../../../../../insights-widget/feature/dist/index.js";
16
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
18
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
17
19
  // ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js
18
- function u() {
19
- let { grantedScopes: u, availableSections: d, labels: f, navigate: p, openAccount: m } = n(), h = r(u, [i.BankAccountReadOrg]), g = d.includes(t.Accounts), _ = d.includes(t.Transfers), v = g ? () => p(t.Accounts) : void 0;
20
- return /* @__PURE__ */ l("div", {
20
+ function d() {
21
+ let { grantedScopes: d, availableSections: f, labels: p, navigate: m, openAccount: h } = n(), g = r(d, [i.BankAccountReadOrg]), _ = f.includes(t.Accounts), v = f.includes(t.Transfers), y = _ ? () => m(t.Accounts) : void 0, b = v ? () => m(t.Transfers) : void 0;
22
+ return /* @__PURE__ */ u("div", {
21
23
  className: "ttw:flex ttw:flex-col ttw:gap-6",
22
- children: [/* @__PURE__ */ c(a, {}), /* @__PURE__ */ l("div", {
23
- className: e("ttw:grid ttw:gap-4", h && "ttw:md:grid-cols-2"),
24
- children: [h && /* @__PURE__ */ c(o, {
25
- ...f.sections.dashboard.balances,
26
- onViewAllAccountsClick: v,
27
- onBalanceRowClick: g ? m : void 0
28
- }), /* @__PURE__ */ c(s, {
29
- ...f.sections.dashboard.insights,
30
- onLinkExternalAccountClick: _ ? () => p(t.Transfers) : void 0
31
- })]
32
- })]
24
+ children: [
25
+ /* @__PURE__ */ l(a, {}),
26
+ /* @__PURE__ */ l(o, {
27
+ ...p.sections.dashboard.balanceHistory,
28
+ onTransferFromExternalClick: b
29
+ }),
30
+ /* @__PURE__ */ u("div", {
31
+ className: e("ttw:grid ttw:gap-4", g && "ttw:md:grid-cols-2"),
32
+ children: [g && /* @__PURE__ */ l(s, {
33
+ ...p.sections.dashboard.balances,
34
+ onViewAllAccountsClick: y,
35
+ onBalanceRowClick: _ ? h : void 0
36
+ }), /* @__PURE__ */ l(c, {
37
+ ...p.sections.dashboard.insights,
38
+ onLinkExternalAccountClick: b
39
+ })]
40
+ })
41
+ ]
33
42
  });
34
43
  }
35
- var d = { Content: u };
36
- export { u as DashboardSection, d as dashboardSection };
44
+ var f = { Content: d };
45
+ export { d as DashboardSection, f as dashboardSection };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.11.111",
3
+ "version": "0.11.113",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -265,6 +265,7 @@
265
265
  "react-error-boundary": "^6.1.6",
266
266
  "react-pdf": "11.0.0",
267
267
  "react-webcam": "^7.2.0",
268
+ "recharts": "^3.10.1",
268
269
  "sonner": "^2.0.8",
269
270
  "tailwind-merge": "^3.7.0",
270
271
  "tailwind-variants": "^3.3.1",