@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.
- package/dist/experimental/BalanceHistoryWidget.d.ts +702 -0
- package/dist/experimental/BalanceHistoryWidget.js +5 -0
- package/dist/experimental/index.d.ts +93 -2
- package/dist/experimental/index.js +7 -4
- package/dist/index.css +9 -0
- package/dist/index.d.ts +84 -2
- package/dist/lib/WidgetSuite.d.ts +84 -2
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/data-access/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/data-access/dist/index2.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/data-access/dist/index3.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/index.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/testIds.js +12 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/analytics/events.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/balanceHistoryView/balanceHistoryRange.js +39 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/balanceHistoryView/buildBalanceHistoryView.js +70 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index2.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index3.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index4.js +176 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +115 -115
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +199 -175
- 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/ui/dist/lib/WidgetFrame/WidgetFrame.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +28 -19
- package/package.json +2 -1
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -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.
|
|
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
|
package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js
CHANGED
|
@@ -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:
|
|
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 {
|
|
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
|
|
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
|
|
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
|
|
19
|
-
let { grantedScopes:
|
|
20
|
-
return /* @__PURE__ */
|
|
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: [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
...
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
|
36
|
-
export {
|
|
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.
|
|
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",
|