@tesouro/embedded-components-react 0.5.44 → 0.5.46
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 +7 -5
- package/dist/index.d.ts +54 -24
- package/dist/lib/BankAccountOnboardingWidget.d.ts +15 -1
- package/dist/lib/BillPayWidget.d.ts +16 -1
- package/dist/lib/SettingsWidget.d.ts +1 -0
- package/dist/lib/WidgetSuite.d.ts +1 -0
- package/dist/lib/monite-sdk.d.ts +2 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +233 -211
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +387 -387
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +119 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +55 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +163 -151
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +77 -77
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ExpenseApprovalsPage.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index3.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +29 -28
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1933 -1906
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/scopes.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -15,12 +15,12 @@ import "../../../ui/dist/index.js";
|
|
|
15
15
|
import { useMemo as c } from "react";
|
|
16
16
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
17
17
|
//#region ../../libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js
|
|
18
|
-
function d({ labels: d, componentLabels: f, headingComponent: p = "h3" } = {}) {
|
|
19
|
-
let
|
|
18
|
+
function d({ labels: d, componentLabels: f, headingComponent: p = "h3", showHeaderTitle: m = !0 } = {}) {
|
|
19
|
+
let h = c(() => ({
|
|
20
20
|
...n,
|
|
21
21
|
...d
|
|
22
|
-
}), [d]),
|
|
23
|
-
labels:
|
|
22
|
+
}), [d]), g = i({
|
|
23
|
+
labels: h,
|
|
24
24
|
componentLabels: f
|
|
25
25
|
});
|
|
26
26
|
return /* @__PURE__ */ u("div", {
|
|
@@ -29,31 +29,32 @@ function d({ labels: d, componentLabels: f, headingComponent: p = "h3" } = {}) {
|
|
|
29
29
|
/* @__PURE__ */ l(a, {
|
|
30
30
|
labels: f?.header,
|
|
31
31
|
headingComponent: p,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
showTitle: m,
|
|
33
|
+
onAddRule: g.items.length > 0 && !g.isError ? g.onAddRule : void 0,
|
|
34
|
+
addRuleDisabled: g.isBusy || g.editingId !== null || g.addRuleDisabledReason !== void 0,
|
|
35
|
+
addRuleDisabledReason: g.addRuleDisabledReason,
|
|
35
36
|
testIds: {
|
|
36
37
|
addRuleButton: r.addRuleButton,
|
|
37
38
|
addRuleBlocked: r.addRuleBlocked
|
|
38
39
|
}
|
|
39
40
|
}),
|
|
40
|
-
|
|
41
|
-
title:
|
|
42
|
-
description:
|
|
43
|
-
retryLabel:
|
|
44
|
-
onRetry:
|
|
41
|
+
g.isError ? /* @__PURE__ */ l(t, {
|
|
42
|
+
title: h.loadErrorTitle,
|
|
43
|
+
description: h.loadErrorDescription,
|
|
44
|
+
retryLabel: h.loadErrorRetry,
|
|
45
|
+
onRetry: g.onRetry
|
|
45
46
|
}) : /* @__PURE__ */ l(s, {
|
|
46
|
-
items:
|
|
47
|
-
editingId:
|
|
48
|
-
onAddRule:
|
|
49
|
-
gaps:
|
|
50
|
-
onSelectGap:
|
|
51
|
-
unlistedPoliciesHeading:
|
|
52
|
-
unlistedPoliciesBlockAmounts:
|
|
53
|
-
unlistedPoliciesStillApply:
|
|
54
|
-
createRuleDisabledReason:
|
|
55
|
-
isLoading:
|
|
56
|
-
disabled:
|
|
47
|
+
items: g.items,
|
|
48
|
+
editingId: g.editingId,
|
|
49
|
+
onAddRule: g.onAddRule,
|
|
50
|
+
gaps: g.gaps,
|
|
51
|
+
onSelectGap: g.onSelectGap,
|
|
52
|
+
unlistedPoliciesHeading: g.unlistedPoliciesHeading,
|
|
53
|
+
unlistedPoliciesBlockAmounts: g.unlistedPoliciesBlockAmounts,
|
|
54
|
+
unlistedPoliciesStillApply: g.unlistedPoliciesStillApply,
|
|
55
|
+
createRuleDisabledReason: g.addRuleDisabledReason,
|
|
56
|
+
isLoading: g.isLoading,
|
|
57
|
+
disabled: g.isBusy,
|
|
57
58
|
labels: f?.list,
|
|
58
59
|
testIds: {
|
|
59
60
|
root: r.list,
|
|
@@ -68,11 +69,11 @@ function d({ labels: d, componentLabels: f, headingComponent: p = "h3" } = {}) {
|
|
|
68
69
|
}
|
|
69
70
|
}),
|
|
70
71
|
/* @__PURE__ */ l(o, {
|
|
71
|
-
open:
|
|
72
|
-
onOpenChange:
|
|
73
|
-
onConfirm:
|
|
74
|
-
onCancel:
|
|
75
|
-
isDeleting:
|
|
72
|
+
open: g.deleteDialog.open,
|
|
73
|
+
onOpenChange: g.deleteDialog.onOpenChange,
|
|
74
|
+
onConfirm: g.deleteDialog.onConfirm,
|
|
75
|
+
onCancel: g.deleteDialog.onCancel,
|
|
76
|
+
isDeleting: g.deleteDialog.isDeleting,
|
|
76
77
|
labels: f?.deleteDialog,
|
|
77
78
|
testIds: {
|
|
78
79
|
root: r.deleteDialog,
|
package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js
CHANGED
|
@@ -4,45 +4,45 @@ import { useMemo as s } from "react";
|
|
|
4
4
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
5
|
import { Plus as u } from "lucide-react";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js
|
|
7
|
-
var d = ({ onAddRule: d, addRuleDisabled: f, addRuleDisabledReason: p, labels: m, headingComponent: h = "h2",
|
|
8
|
-
let
|
|
7
|
+
var d = ({ onAddRule: d, addRuleDisabled: f, addRuleDisabledReason: p, labels: m, headingComponent: h = "h2", showTitle: g = !0, testIds: _ }) => {
|
|
8
|
+
let v = s(() => ({
|
|
9
9
|
...o,
|
|
10
10
|
...m
|
|
11
|
-
}), [m]),
|
|
11
|
+
}), [m]), y = d ? /* @__PURE__ */ l(e, {
|
|
12
12
|
type: "button",
|
|
13
13
|
variant: "outline",
|
|
14
14
|
size: "sm",
|
|
15
15
|
onClick: d,
|
|
16
16
|
disabled: f,
|
|
17
|
-
"data-testid":
|
|
17
|
+
"data-testid": _?.addRuleButton,
|
|
18
18
|
className: "ttw:shrink-0",
|
|
19
|
-
children: [/* @__PURE__ */ c(u, {}),
|
|
19
|
+
children: [/* @__PURE__ */ c(u, {}), v.AddRule]
|
|
20
20
|
}) : null;
|
|
21
21
|
return /* @__PURE__ */ l("div", {
|
|
22
22
|
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-4",
|
|
23
23
|
children: [/* @__PURE__ */ l("div", {
|
|
24
24
|
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
25
|
-
children: [/* @__PURE__ */ c(a, {
|
|
25
|
+
children: [g ? /* @__PURE__ */ c(a, {
|
|
26
26
|
variant: "h3",
|
|
27
27
|
component: h,
|
|
28
|
-
children:
|
|
29
|
-
}), /* @__PURE__ */ c(a, {
|
|
28
|
+
children: v.Title
|
|
29
|
+
}) : null, /* @__PURE__ */ c(a, {
|
|
30
30
|
variant: "body2",
|
|
31
31
|
color: "muted",
|
|
32
|
-
children:
|
|
32
|
+
children: v.Description
|
|
33
33
|
})]
|
|
34
|
-
}),
|
|
34
|
+
}), y && f && p ? /* @__PURE__ */ c(r, { children: /* @__PURE__ */ l(t, { children: [/* @__PURE__ */ c(i, {
|
|
35
35
|
asChild: !0,
|
|
36
36
|
children: /* @__PURE__ */ c("span", {
|
|
37
37
|
tabIndex: 0,
|
|
38
38
|
className: "ttw:inline-flex ttw:shrink-0 ttw:cursor-not-allowed ttw:rounded-md",
|
|
39
|
-
"data-testid":
|
|
40
|
-
children:
|
|
39
|
+
"data-testid": _?.addRuleBlocked,
|
|
40
|
+
children: y
|
|
41
41
|
})
|
|
42
42
|
}), /* @__PURE__ */ c(n, {
|
|
43
43
|
side: "top",
|
|
44
44
|
children: p
|
|
45
|
-
})] }) }) :
|
|
45
|
+
})] }) }) : y]
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|