@tesouro/embedded-components-react 0.5.150 → 0.5.153
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/lib/monite-sdk.d.ts +2 -44
- package/dist/lib/monite-sdk.js +9 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +10 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +21 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +72 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +19 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +20 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +5 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +10 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +11 -167
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +133 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +5 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +3 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +221 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +11 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +33 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +180 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +201 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +98 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +63 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +55 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +89 -128
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +40 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +75 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +87 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +12 -220
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +17 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +5 -184
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +20 -202
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +60 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +28 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +2 -92
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +33 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +14 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +28 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +28 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +2 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +97 -17
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index10.js +39 -39
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index11.js +32 -30
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index12.js +77 -72
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index5.js +9 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index6.js +27 -23
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index7.js +21 -13
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js +64 -48
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js +107 -92
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index4.js +23 -15
- 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/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +0 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +0 -97
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js
CHANGED
|
@@ -2,63 +2,79 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
5
|
+
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import "../../../../shared/ui/dist/index.js";
|
|
7
|
+
import { extractApiErrorMessage as t } from "../../../../shared/util/dist/lib/apiErrors.js";
|
|
8
|
+
import { computeNextOcrAutoTagging as n, withTagName as r } from "./index6.js";
|
|
9
|
+
import { useDeleteTagMutation as i } from "../../data-access/dist/index6.js";
|
|
10
|
+
import { useUpdateEntitySettingsMutation as a } from "../../data-access/dist/index9.js";
|
|
8
11
|
import "../../data-access/dist/index.js";
|
|
9
|
-
import { useCallback as
|
|
12
|
+
import { useCallback as o, useEffect as s, useRef as c, useState as l } from "react";
|
|
10
13
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js
|
|
11
|
-
function
|
|
12
|
-
let { entityId:
|
|
13
|
-
|
|
14
|
-
}, []);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}, [
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
let x = r((e) => {
|
|
21
|
-
u && (y(), c(e), _(!0));
|
|
14
|
+
function u({ selectedTag: u, setSelectedTag: d, settings: f, messages: p, canWrite: m, canMutate: h }) {
|
|
15
|
+
let { entityId: g, requireFreshSettings: _, withSettingsLock: v, settingsBusy: y } = f, b = i(), x = a(), [S, C] = l(!1), [w, T] = l(), E = c(0), D = o(() => {
|
|
16
|
+
E.current += 1;
|
|
17
|
+
}, []), O = c(h);
|
|
18
|
+
O.current = h, s(() => {
|
|
19
|
+
m || (D(), C(!1));
|
|
20
|
+
}, [m, D]);
|
|
21
|
+
let k = o((e) => {
|
|
22
|
+
m && (D(), d(e), T(void 0), C(!0));
|
|
22
23
|
}, [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
]),
|
|
27
|
-
e || (
|
|
28
|
-
}, [
|
|
29
|
-
|
|
30
|
-
}, [
|
|
24
|
+
m,
|
|
25
|
+
D,
|
|
26
|
+
d
|
|
27
|
+
]), A = o((e) => {
|
|
28
|
+
e || (D(), T(void 0), C(!1));
|
|
29
|
+
}, [D]), j = o(() => {
|
|
30
|
+
D(), T(void 0), C(!1);
|
|
31
|
+
}, [D]);
|
|
31
32
|
return {
|
|
32
|
-
open:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
33
|
+
open: S,
|
|
34
|
+
error: w,
|
|
35
|
+
requestDelete: k,
|
|
36
|
+
onOpenChange: A,
|
|
37
|
+
confirm: o(async () => {
|
|
38
|
+
if (!h || !u) return;
|
|
39
|
+
let i = u;
|
|
40
|
+
T(void 0);
|
|
41
|
+
let a = E.current, o = () => E.current === a;
|
|
42
|
+
await v(async () => {
|
|
43
|
+
let a;
|
|
44
|
+
try {
|
|
45
|
+
if (a = g ? await _() : void 0, !O.current) return;
|
|
46
|
+
await b.mutateAsync({ path: { tag_id: i.id } });
|
|
47
|
+
} catch (n) {
|
|
48
|
+
let r = t(n) ?? p.deleteError;
|
|
49
|
+
o() ? T(r) : e.error(r);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (e.success(r(p.tagDeleted, i.name)), o() && (C(!1), d(void 0)), !g || !a) return;
|
|
53
|
+
let { changed: s, next: c } = n(a.payables_ocr_auto_tagging, i.id, []);
|
|
54
|
+
if (s && O.current) try {
|
|
55
|
+
await x.mutateAsync({
|
|
56
|
+
path: { entity_id: g },
|
|
57
|
+
body: { payables_ocr_auto_tagging: c }
|
|
46
58
|
});
|
|
59
|
+
} catch {
|
|
60
|
+
e.error(r(p.keywordCleanupError, i.name));
|
|
47
61
|
}
|
|
48
|
-
|
|
49
|
-
} catch {}
|
|
62
|
+
});
|
|
50
63
|
}, [
|
|
51
|
-
d,
|
|
52
|
-
s,
|
|
53
|
-
f,
|
|
54
|
-
p,
|
|
55
|
-
m,
|
|
56
64
|
h,
|
|
57
|
-
|
|
65
|
+
u,
|
|
66
|
+
g,
|
|
67
|
+
_,
|
|
68
|
+
v,
|
|
69
|
+
b,
|
|
70
|
+
x,
|
|
71
|
+
d,
|
|
72
|
+
p
|
|
58
73
|
]),
|
|
59
|
-
cancel:
|
|
60
|
-
isDeleting:
|
|
74
|
+
cancel: j,
|
|
75
|
+
isDeleting: b.isPending,
|
|
76
|
+
confirmDisabled: y
|
|
61
77
|
};
|
|
62
78
|
}
|
|
63
79
|
//#endregion
|
|
64
|
-
export {
|
|
80
|
+
export { u as useTagDelete };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js
CHANGED
|
@@ -2,130 +2,145 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import "../../../../shared/ui/dist/index.js";
|
|
7
|
+
import { EMPTY_FORM_VALUES as t } from "./index4.js";
|
|
8
|
+
import { buildKeywordsByTagId as n, computeNextOcrAutoTagging as r, getCategoryOptions as i, hasFormErrors as a, resolveTagSubmitError as o, validateTagForm as s, withTagName as c } from "./index6.js";
|
|
9
|
+
import { useCreateTagMutation as l } from "../../data-access/dist/index4.js";
|
|
10
|
+
import { useUpdateTagMutation as u } from "../../data-access/dist/index5.js";
|
|
11
|
+
import { useUpdateEntitySettingsMutation as d } from "../../data-access/dist/index9.js";
|
|
10
12
|
import "../../data-access/dist/index.js";
|
|
11
|
-
import { useCallback as
|
|
13
|
+
import { useCallback as f, useEffect as p, useMemo as m, useRef as h, useState as g } from "react";
|
|
12
14
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js
|
|
13
|
-
function
|
|
14
|
-
let { entityId:
|
|
15
|
-
|
|
15
|
+
function _({ selectedTag: _, setSelectedTag: v, settings: y, messages: b, canWrite: x, canMutate: S }) {
|
|
16
|
+
let { entityId: C, settingsData: w, refetchSettings: T, requireFreshSettings: E, withSettingsLock: D, settingsBusy: O } = y, k = l(), A = u(), j = d(), [M, N] = g(!1), [P, F] = g("create"), [I, L] = g(t), [R, z] = g({}), B = m(() => i(), []), V = h(0), H = O || k.isPending || A.isPending || j.isPending, U = f(() => {
|
|
17
|
+
V.current += 1;
|
|
16
18
|
}, []);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, [
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
let
|
|
23
|
-
return
|
|
24
|
-
open:
|
|
25
|
-
mode:
|
|
26
|
-
values:
|
|
27
|
-
errors:
|
|
28
|
-
categoryOptions:
|
|
29
|
-
isSubmitting:
|
|
30
|
-
openCreate:
|
|
31
|
-
|
|
19
|
+
p(() => {
|
|
20
|
+
x || (U(), N(!1));
|
|
21
|
+
}, [x, U]);
|
|
22
|
+
let W = h(x);
|
|
23
|
+
W.current = x;
|
|
24
|
+
let G = h(S);
|
|
25
|
+
return G.current = S, {
|
|
26
|
+
open: M,
|
|
27
|
+
mode: P,
|
|
28
|
+
values: I,
|
|
29
|
+
errors: R,
|
|
30
|
+
categoryOptions: B,
|
|
31
|
+
isSubmitting: H,
|
|
32
|
+
openCreate: f(() => {
|
|
33
|
+
x && (U(), F("create"), v(void 0), L(t), z({}), N(!0));
|
|
32
34
|
}, [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
x,
|
|
36
|
+
U,
|
|
37
|
+
v
|
|
36
38
|
]),
|
|
37
|
-
openEdit:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
openEdit: f((e) => {
|
|
40
|
+
if (!x) return;
|
|
41
|
+
U();
|
|
42
|
+
let t = V.current;
|
|
43
|
+
(async () => {
|
|
44
|
+
let r = w ?? await T();
|
|
45
|
+
if (!W.current || V.current !== t) return;
|
|
46
|
+
let i = n(r?.payables_ocr_auto_tagging);
|
|
47
|
+
v(e), F("edit"), L({
|
|
43
48
|
name: e.name,
|
|
44
49
|
category: e.category ?? "",
|
|
45
|
-
keywords:
|
|
50
|
+
keywords: i[e.id] ?? [],
|
|
46
51
|
keywordsInput: ""
|
|
47
|
-
}),
|
|
48
|
-
})()
|
|
52
|
+
}), z({}), N(!0);
|
|
53
|
+
})();
|
|
49
54
|
}, [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
x,
|
|
56
|
+
U,
|
|
57
|
+
w,
|
|
58
|
+
T,
|
|
59
|
+
v
|
|
55
60
|
]),
|
|
56
|
-
onOpenChange:
|
|
57
|
-
e || (
|
|
58
|
-
}, [
|
|
59
|
-
close:
|
|
60
|
-
|
|
61
|
-
}, [
|
|
62
|
-
onNameChange:
|
|
61
|
+
onOpenChange: f((e) => {
|
|
62
|
+
e || (U(), N(!1));
|
|
63
|
+
}, [U]),
|
|
64
|
+
close: f(() => {
|
|
65
|
+
U(), N(!1);
|
|
66
|
+
}, [U]),
|
|
67
|
+
onNameChange: f((e) => L((t) => ({
|
|
63
68
|
...t,
|
|
64
69
|
name: e
|
|
65
70
|
})), []),
|
|
66
|
-
onCategoryChange:
|
|
71
|
+
onCategoryChange: f((e) => L((t) => ({
|
|
67
72
|
...t,
|
|
68
73
|
category: e
|
|
69
74
|
})), []),
|
|
70
|
-
onKeywordsChange:
|
|
75
|
+
onKeywordsChange: f((e) => L((t) => ({
|
|
71
76
|
...t,
|
|
72
77
|
keywords: e
|
|
73
78
|
})), []),
|
|
74
|
-
onKeywordsInputChange:
|
|
79
|
+
onKeywordsInputChange: f((e) => L((t) => ({
|
|
75
80
|
...t,
|
|
76
81
|
keywordsInput: e
|
|
77
82
|
})), []),
|
|
78
|
-
submit:
|
|
79
|
-
if (!
|
|
80
|
-
let
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
+
submit: f(async () => {
|
|
84
|
+
if (!S) return;
|
|
85
|
+
let t = s(I, b);
|
|
86
|
+
if (a(t)) {
|
|
87
|
+
z(t);
|
|
83
88
|
return;
|
|
84
89
|
}
|
|
85
|
-
|
|
86
|
-
let
|
|
87
|
-
name:
|
|
88
|
-
...
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
90
|
+
z({});
|
|
91
|
+
let n = I.name.trim(), i = I.category === "" ? void 0 : I.category, l = {
|
|
92
|
+
name: n,
|
|
93
|
+
...i ? { category: i } : {}
|
|
94
|
+
}, u = V.current, d = () => V.current === u, f = (t) => {
|
|
95
|
+
d() ? (v(t), F("edit"), z({ form: b.keywordsNotSaved })) : e.error(c(b.keywordSyncError, n));
|
|
96
|
+
}, p;
|
|
97
|
+
await D(async () => {
|
|
98
|
+
try {
|
|
99
|
+
let t = I.keywords.length > 0 || P === "edit", i = C && t ? await E() : void 0;
|
|
100
|
+
if (!G.current) return;
|
|
101
|
+
let a = P === "edit" && _ ? await A.mutateAsync({
|
|
102
|
+
path: { tag_id: _.id },
|
|
103
|
+
body: l
|
|
104
|
+
}) : await k.mutateAsync({ body: l });
|
|
105
|
+
if (p = a, C && i) {
|
|
106
|
+
let { changed: e, next: t } = r(i.payables_ocr_auto_tagging, a.id, I.keywords);
|
|
107
|
+
if (e) {
|
|
108
|
+
if (!G.current) {
|
|
109
|
+
f(a);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
await j.mutateAsync({
|
|
113
|
+
path: { entity_id: C },
|
|
114
|
+
body: { payables_ocr_auto_tagging: t }
|
|
115
|
+
});
|
|
103
116
|
}
|
|
104
|
-
await D.mutateAsync({
|
|
105
|
-
path: { entity_id: x },
|
|
106
|
-
body: { payables_ocr_auto_tagging: i }
|
|
107
|
-
});
|
|
108
117
|
}
|
|
118
|
+
e.success(c(P === "edit" ? b.tagUpdated : b.tagCreated, n)), d() && N(!1);
|
|
119
|
+
} catch (t) {
|
|
120
|
+
if (p) {
|
|
121
|
+
f(p);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
let n = o(t, b, { preferApiMessage: !0 });
|
|
125
|
+
d() ? z(n) : e.error(n.form ?? n.name ?? b.genericError);
|
|
109
126
|
}
|
|
110
|
-
|
|
111
|
-
} catch (e) {
|
|
112
|
-
l() && F(a(e, v, { preferApiMessage: !0 }));
|
|
113
|
-
}
|
|
127
|
+
});
|
|
114
128
|
}, [
|
|
115
|
-
|
|
116
|
-
|
|
129
|
+
S,
|
|
130
|
+
I,
|
|
131
|
+
P,
|
|
132
|
+
F,
|
|
133
|
+
v,
|
|
134
|
+
_,
|
|
135
|
+
C,
|
|
136
|
+
k,
|
|
117
137
|
A,
|
|
118
138
|
j,
|
|
119
|
-
|
|
120
|
-
h,
|
|
121
|
-
x,
|
|
122
|
-
T,
|
|
139
|
+
b,
|
|
123
140
|
E,
|
|
124
|
-
D
|
|
125
|
-
v,
|
|
126
|
-
w
|
|
141
|
+
D
|
|
127
142
|
])
|
|
128
143
|
};
|
|
129
144
|
}
|
|
130
145
|
//#endregion
|
|
131
|
-
export {
|
|
146
|
+
export { _ as useTagForm };
|
|
@@ -2,26 +2,34 @@ import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n,
|
|
|
2
2
|
import { TAG_DELETE_DIALOG_LABELS_EN as s } from "./index2.js";
|
|
3
3
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index4.js
|
|
5
|
-
function u({ open: u, onOpenChange: d, tagName: f, isDeleting: p,
|
|
6
|
-
let
|
|
5
|
+
function u({ open: u, onOpenChange: d, tagName: f, isDeleting: p, error: m, confirmDisabled: h, onConfirm: g, onCancel: _, labels: v }) {
|
|
6
|
+
let y = {
|
|
7
7
|
...s,
|
|
8
|
-
...
|
|
8
|
+
...v
|
|
9
9
|
};
|
|
10
10
|
return /* @__PURE__ */ c(e, {
|
|
11
11
|
open: u,
|
|
12
12
|
onOpenChange: d,
|
|
13
|
-
children: /* @__PURE__ */ l(t, { children: [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
children: /* @__PURE__ */ l(t, { children: [
|
|
14
|
+
/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: y.title.replace("{name}", f) }), /* @__PURE__ */ c(n, { children: y.message })] }),
|
|
15
|
+
m ? /* @__PURE__ */ c("p", {
|
|
16
|
+
role: "alert",
|
|
17
|
+
className: "ttw:text-sm ttw:text-destructive",
|
|
18
|
+
children: m
|
|
19
|
+
}) : null,
|
|
20
|
+
/* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
21
|
+
variant: "ghost",
|
|
22
|
+
onClick: _,
|
|
23
|
+
disabled: p,
|
|
24
|
+
children: y.cancelButton
|
|
25
|
+
}), /* @__PURE__ */ c(o, {
|
|
26
|
+
variant: "destructive",
|
|
27
|
+
onClick: g,
|
|
28
|
+
disabled: p || h,
|
|
29
|
+
loading: p,
|
|
30
|
+
children: y.confirmButton
|
|
31
|
+
})] })
|
|
32
|
+
] })
|
|
25
33
|
});
|
|
26
34
|
}
|
|
27
35
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -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.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.153", n = "f06280c7baf8f6802d2d9107d05f2c8a2ca1736f", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -7,7 +7,7 @@ import "../../../../data-access/dist/index.js";
|
|
|
7
7
|
import { useOptionalWidgetToken as t } from "../../../../feature/dist/lib/WidgetProvider/useWidgetToken.js";
|
|
8
8
|
import { useWidgetConfig as n, useWidgetError as r, useWidgetInitStaleForToken as i } from "../../../../feature/dist/lib/WidgetProvider/hooks.js";
|
|
9
9
|
import "../../../../feature/dist/index.js";
|
|
10
|
-
import { MoniteProvider as a } from "../../../../../monite-sdk/dist/
|
|
10
|
+
import { MoniteProvider as a } from "../../../../../monite-sdk/dist/index587.js";
|
|
11
11
|
import "../../../../../monite-sdk/dist/index.js";
|
|
12
12
|
import { useMemo as o, useState as s } from "react";
|
|
13
13
|
import { jsx as c } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { MoniteScopedProviders as e } from "./index241.js";
|
|
2
|
-
import { PageHeader as t } from "./index330.js";
|
|
3
|
-
import { FinanceIntegrationCard as n } from "./index581.js";
|
|
4
|
-
import "./index590.js";
|
|
5
|
-
import { Fragment as r, jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { Box as o } from "@mui/material";
|
|
7
|
-
import { useLingui as s } from "@lingui/react";
|
|
8
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js
|
|
9
|
-
function c() {
|
|
10
|
-
return /* @__PURE__ */ i(e, { children: /* @__PURE__ */ i(l, {}) });
|
|
11
|
-
}
|
|
12
|
-
function l() {
|
|
13
|
-
let { i18n: e } = s();
|
|
14
|
-
return /* @__PURE__ */ a(o, { children: [/* @__PURE__ */ i(t, { title: /* @__PURE__ */ i(r, { children: e._("Integrations") }) }), /* @__PURE__ */ i(o, {
|
|
15
|
-
sx: {
|
|
16
|
-
display: "grid",
|
|
17
|
-
gridTemplateColumns: "minmax(360px, 480px) minmax(360px, 480px)",
|
|
18
|
-
gap: 2
|
|
19
|
-
},
|
|
20
|
-
children: /* @__PURE__ */ i(n, {})
|
|
21
|
-
})] });
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { c as Integrations };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./index591.js";
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import "./index52.js";
|
|
2
|
-
import "./index119.js";
|
|
3
|
-
import "./index234.js";
|
|
4
|
-
import "./index235.js";
|
|
5
|
-
import "./index244.js";
|
|
6
|
-
import "./index257.js";
|
|
7
|
-
import "./index258.js";
|
|
8
|
-
import "./index260.js";
|
|
9
|
-
import "./index262.js";
|
|
10
|
-
import "./index313.js";
|
|
11
|
-
import "./index328.js";
|
|
12
|
-
import "./index330.js";
|
|
13
|
-
import "./index331.js";
|
|
14
|
-
import "./index347.js";
|
|
15
|
-
import "./index349.js";
|
|
16
|
-
import "./index352.js";
|
|
17
|
-
import "./index353.js";
|
|
18
|
-
import "./index354.js";
|
|
19
|
-
import "./index355.js";
|
|
20
|
-
import "./index356.js";
|
|
21
|
-
import "./index357.js";
|
|
22
|
-
import "./index358.js";
|
|
23
|
-
import "./index359.js";
|
|
24
|
-
import "./index360.js";
|
|
25
|
-
import "./index361.js";
|
|
26
|
-
import "./index362.js";
|
|
27
|
-
import "./index363.js";
|
|
28
|
-
import "./index364.js";
|
|
29
|
-
import "./index365.js";
|
|
30
|
-
import "./index366.js";
|
|
31
|
-
import "./index367.js";
|
|
32
|
-
import "./index368.js";
|
|
33
|
-
import "./index369.js";
|
|
34
|
-
import "./index370.js";
|
|
35
|
-
import "./index416.js";
|
|
36
|
-
import "./index429.js";
|
|
37
|
-
import "./index434.js";
|
|
38
|
-
import "./index440.js";
|
|
39
|
-
import "./index445.js";
|
|
40
|
-
import "./index446.js";
|
|
41
|
-
import "./index505.js";
|
|
42
|
-
import "./index536.js";
|
|
43
|
-
import "./index537.js";
|
|
44
|
-
import "./index544.js";
|
|
45
|
-
import "./index548.js";
|
|
46
|
-
import "./index549.js";
|
|
47
|
-
import "./index550.js";
|
|
48
|
-
import "./index558.js";
|
|
49
|
-
import "./index560.js";
|
|
50
|
-
import "./index562.js";
|
|
51
|
-
import "./index575.js";
|
|
52
|
-
import "./index581.js";
|
|
53
|
-
import "./index583.js";
|
|
54
|
-
import "./index588.js";
|
|
55
|
-
import "./index590.js";
|
|
56
|
-
import "./index591.js";
|
|
57
|
-
import "./index263.js";
|
|
58
|
-
import "./index332.js";
|
|
59
|
-
import "./index350.js";
|
|
60
|
-
import "./index435.js";
|
|
61
|
-
import "./index538.js";
|
|
62
|
-
import "./index551.js";
|
|
63
|
-
import "./index563.js";
|
|
64
|
-
import "./index592.js";
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import { Toaster as t } from "react-hot-toast";
|
|
3
|
-
import { useTheme as n } from "@mui/material";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js
|
|
5
|
-
var r = () => {
|
|
6
|
-
let r = n();
|
|
7
|
-
return /* @__PURE__ */ e(t, {
|
|
8
|
-
toastOptions: {
|
|
9
|
-
className: "ttw:[&>[role=status]]:min-w-0",
|
|
10
|
-
style: {
|
|
11
|
-
padding: "8px 12px",
|
|
12
|
-
borderRadius: "4px",
|
|
13
|
-
fontFamily: r.typography.body1.fontFamily,
|
|
14
|
-
fontWeight: 500,
|
|
15
|
-
fontSize: "14px",
|
|
16
|
-
lineHeight: "20px",
|
|
17
|
-
background: r.palette.grey[900],
|
|
18
|
-
color: r.palette.grey[50]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
gutter: 8,
|
|
22
|
-
position: "bottom-left",
|
|
23
|
-
containerStyle: {
|
|
24
|
-
top: 40,
|
|
25
|
-
left: 40,
|
|
26
|
-
bottom: 40,
|
|
27
|
-
right: 40
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { r as GlobalToast };
|