@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.
Files changed (71) hide show
  1. package/dist/lib/monite-sdk.d.ts +2 -44
  2. package/dist/lib/monite-sdk.js +9 -12
  3. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +10 -13
  4. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +0 -7
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +1 -2
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +8 -12
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +1 -5
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +21 -13
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +72 -22
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +19 -1
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +20 -21
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +5 -51
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +10 -64
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +11 -167
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +133 -1
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +5 -184
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +8 -1
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +3 -41
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +221 -4
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +11 -21
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +33 -74
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +180 -15
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +201 -17
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +98 -4
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +63 -9
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +55 -11
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +89 -128
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +40 -5
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +75 -4
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +87 -5
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +12 -220
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +23 -11
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +17 -36
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +5 -184
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +20 -202
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +1 -102
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +60 -66
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +28 -53
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +2 -92
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +33 -40
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +14 -75
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +28 -82
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +28 -11
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +2 -26
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +97 -17
  48. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index10.js +39 -39
  49. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index11.js +32 -30
  50. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index12.js +77 -72
  51. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index5.js +9 -1
  52. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index6.js +27 -23
  53. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index7.js +21 -13
  54. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js +64 -48
  55. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js +107 -92
  56. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index4.js +23 -15
  57. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
  59. package/package.json +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +0 -5
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +0 -24
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +0 -1
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +0 -64
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +0 -32
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +0 -4
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +0 -36
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +0 -18
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +0 -33
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +0 -31
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +0 -2
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +0 -97
@@ -2,63 +2,79 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { computeNextOcrAutoTagging as e } from "./index6.js";
6
- import { useDeleteTagMutation as t } from "../../data-access/dist/index6.js";
7
- import { useUpdateEntitySettingsMutation as n } from "../../data-access/dist/index9.js";
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 r, useEffect as i, useRef as a, useState as o } from "react";
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 s({ selectedTag: s, setSelectedTag: c, settings: l, canWrite: u, canMutate: d }) {
12
- let { entityId: f, requireFreshSettings: p } = l, m = t(), h = n(), [g, _] = o(!1), v = a(0), y = r(() => {
13
- v.current += 1;
14
- }, []);
15
- i(() => {
16
- u || (y(), _(!1));
17
- }, [u, y]);
18
- let b = a(d);
19
- b.current = d;
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
- u,
24
- y,
25
- c
26
- ]), S = r((e) => {
27
- e || (y(), _(!1));
28
- }, [y]), C = r(() => {
29
- y(), _(!1);
30
- }, [y]);
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: g,
33
- requestDelete: x,
34
- onOpenChange: S,
35
- confirm: r(async () => {
36
- if (!d || !s) return;
37
- let t = v.current, n = () => v.current === t;
38
- try {
39
- let t = f ? await p() : void 0;
40
- if (!b.current) return;
41
- if (await m.mutateAsync({ path: { tag_id: s.id } }), f && t) {
42
- let { changed: n, next: r } = e(t.payables_ocr_auto_tagging, s.id, []);
43
- n && b.current && await h.mutateAsync({
44
- path: { entity_id: f },
45
- body: { payables_ocr_auto_tagging: r }
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
- n() && (_(!1), c(void 0));
49
- } catch {}
62
+ });
50
63
  }, [
51
- d,
52
- s,
53
- f,
54
- p,
55
- m,
56
64
  h,
57
- c
65
+ u,
66
+ g,
67
+ _,
68
+ v,
69
+ b,
70
+ x,
71
+ d,
72
+ p
58
73
  ]),
59
- cancel: C,
60
- isDeleting: m.isPending
74
+ cancel: j,
75
+ isDeleting: b.isPending,
76
+ confirmDisabled: y
61
77
  };
62
78
  }
63
79
  //#endregion
64
- export { s as useTagDelete };
80
+ export { u as useTagDelete };
@@ -2,130 +2,145 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { EMPTY_FORM_VALUES as e } from "./index4.js";
6
- import { buildKeywordsByTagId as t, computeNextOcrAutoTagging as n, getCategoryOptions as r, hasFormErrors as i, resolveTagSubmitError as a, validateTagForm as o } from "./index6.js";
7
- import { useCreateTagMutation as s } from "../../data-access/dist/index4.js";
8
- import { useUpdateTagMutation as c } from "../../data-access/dist/index5.js";
9
- import { useUpdateEntitySettingsMutation as l } from "../../data-access/dist/index9.js";
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 u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
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 h({ selectedTag: h, setSelectedTag: g, settings: _, messages: v, canWrite: y, canMutate: b }) {
14
- let { entityId: x, settingsData: S, refetchSettings: C, requireFreshSettings: w } = _, T = s(), E = c(), D = l(), [O, k] = m(!1), [A, j] = m("create"), [M, N] = m(e), [P, F] = m({}), I = f(() => r(), []), L = p(0), R = T.isPending || E.isPending || D.isPending, z = u(() => {
15
- L.current += 1;
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
- d(() => {
18
- y || k(!1);
19
- }, [y]);
20
- let B = p(y);
21
- B.current = y;
22
- let V = p(b);
23
- return V.current = b, {
24
- open: O,
25
- mode: A,
26
- values: M,
27
- errors: P,
28
- categoryOptions: I,
29
- isSubmitting: R,
30
- openCreate: u(() => {
31
- y && (z(), j("create"), g(void 0), N(e), F({}), k(!0));
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
- y,
34
- z,
35
- g
35
+ x,
36
+ U,
37
+ v
36
38
  ]),
37
- openEdit: u((e) => {
38
- y && (z(), (async () => {
39
- let n = S ?? await C();
40
- if (!B.current) return;
41
- let r = t(n?.payables_ocr_auto_tagging);
42
- g(e), j("edit"), N({
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: r[e.id] ?? [],
50
+ keywords: i[e.id] ?? [],
46
51
  keywordsInput: ""
47
- }), F({}), k(!0);
48
- })());
52
+ }), z({}), N(!0);
53
+ })();
49
54
  }, [
50
- y,
51
- z,
52
- S,
53
- C,
54
- g
55
+ x,
56
+ U,
57
+ w,
58
+ T,
59
+ v
55
60
  ]),
56
- onOpenChange: u((e) => {
57
- e || (z(), k(!1));
58
- }, [z]),
59
- close: u(() => {
60
- z(), k(!1);
61
- }, [z]),
62
- onNameChange: u((e) => N((t) => ({
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: u((e) => N((t) => ({
71
+ onCategoryChange: f((e) => L((t) => ({
67
72
  ...t,
68
73
  category: e
69
74
  })), []),
70
- onKeywordsChange: u((e) => N((t) => ({
75
+ onKeywordsChange: f((e) => L((t) => ({
71
76
  ...t,
72
77
  keywords: e
73
78
  })), []),
74
- onKeywordsInputChange: u((e) => N((t) => ({
79
+ onKeywordsInputChange: f((e) => L((t) => ({
75
80
  ...t,
76
81
  keywordsInput: e
77
82
  })), []),
78
- submit: u(async () => {
79
- if (!b) return;
80
- let e = o(M, v);
81
- if (i(e)) {
82
- F(e);
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
- F({});
86
- let t = M.name.trim(), r = M.category === "" ? void 0 : M.category, s = {
87
- name: t,
88
- ...r ? { category: r } : {}
89
- }, c = L.current, l = () => L.current === c;
90
- try {
91
- let e = M.keywords.length > 0 || A === "edit", t = x && e ? await w() : void 0;
92
- if (!V.current) return;
93
- let r = A === "edit" && h ? await E.mutateAsync({
94
- path: { tag_id: h.id },
95
- body: s
96
- }) : await T.mutateAsync({ body: s });
97
- if (x && t) {
98
- let { changed: e, next: i } = n(t.payables_ocr_auto_tagging, r.id, M.keywords);
99
- if (e) {
100
- if (!V.current) {
101
- l() && (g(r), j("edit"), F({ form: v.keywordsNotSaved }));
102
- return;
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
- l() && k(!1);
111
- } catch (e) {
112
- l() && F(a(e, v, { preferApiMessage: !0 }));
113
- }
127
+ });
114
128
  }, [
115
- b,
116
- M,
129
+ S,
130
+ I,
131
+ P,
132
+ F,
133
+ v,
134
+ _,
135
+ C,
136
+ k,
117
137
  A,
118
138
  j,
119
- g,
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 { h as useTagForm };
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, confirmDisabled: m, onConfirm: h, onCancel: g, labels: _ }) {
6
- let v = {
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: [/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: v.title.replace("{name}", f) }), /* @__PURE__ */ c(n, { children: v.message })] }), /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
14
- variant: "ghost",
15
- onClick: g,
16
- disabled: p,
17
- children: v.cancelButton
18
- }), /* @__PURE__ */ c(o, {
19
- variant: "destructive",
20
- onClick: h,
21
- disabled: p || m,
22
- loading: p,
23
- children: v.confirmButton
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
@@ -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.150", n = "de1720601f4aa895be5279b264351172850f2150", r = Object.freeze({
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/index599.js";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.150",
3
+ "version": "0.5.153",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {
@@ -1,5 +0,0 @@
1
- import "./index575.js";
2
- import "./index581.js";
3
- import "./index583.js";
4
- import "./index588.js";
5
- import "./index589.js";
@@ -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 };