@tesouro/embedded-components-react 0.5.31 → 0.5.33

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 (26) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/SettingsWidget.js +1 -2
  3. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js +9 -8
  4. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index8.js +45 -45
  5. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ReceiptMatchWidget/lib/ReceiptInboxStep.js +8 -1
  6. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ReceiptMatchWidget/lib/TransactionsMatchStep.js +7 -1
  7. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ReceiptMatchWidget/lib/labels.js +2 -0
  8. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index.js +3 -2
  9. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index7.js +3 -0
  11. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index2.js +5 -0
  12. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/feature/dist/index3.js +7 -7
  13. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/contract/dist/index2.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/contract/dist/index3.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index4.js +4 -0
  16. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/contract/dist/index5.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/shadcn/dist/index2.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/shadcn/dist/index3.js +4 -4
  19. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  20. package/package.json +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index2.js +0 -4
  22. package/dist/libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index4.js +0 -4
  23. /package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/feature/dist/index.js +0 -0
  24. /package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/contract/dist/index.js +0 -0
  25. /package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/shadcn/dist/index.js +0 -0
  26. /package/dist/libs/tesouro-embedded-components-react/{help-widget → settings-widget/help}/ui/shadcn/dist/index4.js +0 -0
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ import { ReceivablesWidget as R } from "./libs/tesouro-embedded-components-react
29
29
  import { SettingsSection as z } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
30
30
  import { UploadReceiptWidget as B } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index7.js";
31
31
  import { ExpenseManagementWidget as V } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js";
32
- import { HELP_FAQ_EN as H } from "./libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index3.js";
32
+ import { HELP_FAQ_EN as H } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
33
33
  import { SettingsWidget as U } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
34
34
  import { DEFAULT_FEATURE_LABELS as W } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index3.js";
35
35
  import { TRANSFERS_WIDGET_LABELS_EN as G } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
@@ -1,6 +1,5 @@
1
1
  import { SettingsSection as e } from "../libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
2
- import { HELP_FAQ_EN as t } from "../libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index3.js";
3
- import "../libs/tesouro-embedded-components-react/help-widget/feature/dist/index.js";
2
+ import { HELP_FAQ_EN as t } from "../libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
4
3
  import { SettingsWidget as n } from "../libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
5
4
  import "../libs/tesouro-embedded-components-react/settings-widget/feature/dist/index.js";
6
5
  export { t as HELP_FAQ_EN, e as SettingsSection, n as SettingsWidget };
@@ -46,7 +46,7 @@ function m({ isOpen: e, onClose: t, ...n }) {
46
46
  ...n
47
47
  }) : null;
48
48
  }
49
- function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f, disclosuresAcceptance: p, providerLabels: h, isOpen: g, preSelectedReceiptIds: _, onClose: v, targetTransactionId: y, onSingleTransactionUpdate: b }) {
49
+ function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f, analytics: p, disclosuresAcceptance: h, providerLabels: g, isOpen: _, preSelectedReceiptIds: v, onClose: y, targetTransactionId: b, onSingleTransactionUpdate: x }) {
50
50
  return /* @__PURE__ */ d(n, {
51
51
  widgetName: o,
52
52
  baseUrl: e,
@@ -59,14 +59,15 @@ function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
59
59
  uiFramework: l,
60
60
  errorFallback: u,
61
61
  onError: f,
62
- disclosuresAcceptance: p,
63
- providerLabels: h,
62
+ analytics: p,
63
+ disclosuresAcceptance: h,
64
+ providerLabels: g,
64
65
  children: /* @__PURE__ */ d(m, {
65
- isOpen: g,
66
- preSelectedReceiptIds: _,
67
- onClose: v,
68
- targetTransactionId: y,
69
- onSingleTransactionUpdate: b
66
+ isOpen: _,
67
+ preSelectedReceiptIds: v,
68
+ onClose: y,
69
+ targetTransactionId: b,
70
+ onSingleTransactionUpdate: x
70
71
  })
71
72
  });
72
73
  }
@@ -10,12 +10,12 @@ import { ReceiptMatchLabels as r } from "../../ui/dist/lib/ReceiptMatchWidget/li
10
10
  import "../../ui/dist/index.js";
11
11
  import { useGetReceiptsQuery as i } from "../../data-access/dist/index2.js";
12
12
  import { useGetTransactionsQuery as a } from "../../data-access/dist/index3.js";
13
- import { usePatchReceiptMutation as ee } from "../../data-access/dist/index5.js";
14
- import { useDeleteReceiptMutation as te } from "../../data-access/dist/index6.js";
13
+ import { usePatchReceiptMutation as o } from "../../data-access/dist/index5.js";
14
+ import { useDeleteReceiptMutation as ee } from "../../data-access/dist/index6.js";
15
15
  import "../../data-access/dist/index.js";
16
- import { useCallback as o, useEffect as ne, useMemo as s, useState as c } from "react";
16
+ import { useCallback as s, useEffect as c, useMemo as l, useState as u } from "react";
17
17
  //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index8.js
18
- function l(e, t) {
18
+ function d(e, t) {
19
19
  if (typeof e == "object" && e) {
20
20
  let t = e.error;
21
21
  if (typeof t == "object" && t) {
@@ -25,7 +25,7 @@ function l(e, t) {
25
25
  }
26
26
  return e instanceof Error && e.message ? e.message : t;
27
27
  }
28
- function u(e, t) {
28
+ function f(e, t) {
29
29
  let n = e / 100;
30
30
  try {
31
31
  return new Intl.NumberFormat("en-US", {
@@ -36,7 +36,7 @@ function u(e, t) {
36
36
  return `${t} ${n.toFixed(2)}`;
37
37
  }
38
38
  }
39
- function d(e) {
39
+ function p(e) {
40
40
  if (!e) return "";
41
41
  let t = new Date(e);
42
42
  return Number.isNaN(t.getTime()) ? "" : t.toLocaleDateString("en-US", {
@@ -45,7 +45,7 @@ function d(e) {
45
45
  year: "numeric"
46
46
  });
47
47
  }
48
- function re(e) {
48
+ function te(e) {
49
49
  if (!e) return "";
50
50
  let t = new Date(e);
51
51
  return Number.isNaN(t.getTime()) ? "" : t.toLocaleDateString("en-US", {
@@ -54,7 +54,7 @@ function re(e) {
54
54
  year: "numeric"
55
55
  });
56
56
  }
57
- function f(e) {
57
+ function m(e) {
58
58
  if (!e) return "";
59
59
  let t = new Date(e);
60
60
  return Number.isNaN(t.getTime()) ? "" : t.toLocaleTimeString("en-US", {
@@ -64,26 +64,26 @@ function f(e) {
64
64
  hour12: !0
65
65
  });
66
66
  }
67
- function ie(e) {
67
+ function ne(e) {
68
68
  let t = e.ocr_status === "processing";
69
69
  return {
70
70
  id: e.id,
71
71
  primaryText: t ? r.ReceiptScanningTitle : e.merchant_name?.trim() || r.ReceiptScanningTitle,
72
- secondaryText: t ? r.ReceiptScanningSubtitle : d(e.issued_at),
72
+ secondaryText: t ? r.ReceiptScanningSubtitle : p(e.issued_at),
73
73
  thumbnailUrl: e.file_url ?? void 0
74
74
  };
75
75
  }
76
- function p(e) {
76
+ function re(e) {
77
77
  return {
78
78
  id: e.id,
79
79
  merchantName: e.merchant_name,
80
- date: d(e.started_at),
81
- formattedAmount: u(e.amount, e.currency)
80
+ date: p(e.started_at),
81
+ formattedAmount: f(e.amount, e.currency)
82
82
  };
83
83
  }
84
- var m = .5, h = 3, g = .25, _ = 5e3, v = !1;
85
- function y({ preSelectedIds: d, onClose: y, targetTransactionId: b, onSingleTransactionUpdate: x }) {
86
- let { initResponse: S } = t(), C = n(), w = S?.userId ?? void 0, T = !!w && !C, [E, D] = c(1), [O, k] = c(0), [A, j] = c([]), [M, N] = c(() => d), [P, F] = c(""), [I, L] = c([]), R = s(() => I.map((e) => e.id), [I]), [z, B] = c(1), V = i({
84
+ var h = .5, g = 3, _ = .25, ie = 5e3, v = !1;
85
+ function y({ preSelectedIds: p, onClose: y, targetTransactionId: b, onSingleTransactionUpdate: x }) {
86
+ let { initResponse: S } = t(), C = n(), w = S?.userId ?? void 0, T = !!w && !C, [E, D] = u(1), [O, k] = u(0), [A, j] = u([]), [M, N] = u(() => p), [P, F] = u(""), [I, L] = u([]), R = l(() => I.map((e) => e.id), [I]), [z, B] = u(1), V = i({
87
87
  has_transaction: !1,
88
88
  created_by_entity_user_id: w,
89
89
  enabled: T
@@ -91,49 +91,49 @@ function y({ preSelectedIds: d, onClose: y, targetTransactionId: b, onSingleTran
91
91
  merchant_name__icontains: P || void 0,
92
92
  has_receipt: !1,
93
93
  enabled: E === 2
94
- }), U = ee(), W = te(), G = V.data?.data ?? [], K = s(() => w ? G.filter((e) => e.created_by_entity_user_id == null || e.created_by_entity_user_id === w) : [], [G, w]);
95
- ne(() => {
94
+ }), U = o(), W = ee(), G = V.data?.data ?? [], K = l(() => w ? G.filter((e) => e.created_by_entity_user_id == null || e.created_by_entity_user_id === w) : [], [G, w]);
95
+ c(() => {
96
96
  if (!K.some((e) => e.ocr_status === "processing")) return;
97
97
  let e = window.setInterval(() => {
98
98
  V.isFetching || V.refetch();
99
- }, _);
99
+ }, ie);
100
100
  return () => window.clearInterval(e);
101
101
  }, [
102
102
  V.isFetching,
103
103
  V.refetch,
104
104
  K
105
105
  ]);
106
- let q = s(() => K.map(ie), [K]), J = s(() => new Set(A.flatMap((e) => e.transactionIds)), [A]), ae = s(() => (H.data?.data ?? []).filter((e) => !J.has(e.id)).map(p), [H.data, J]), Y = H.data?.data ?? [], X = M[O], Z = s(() => K.find((e) => e.id === X), [K, X]), oe = Z?.file_url ?? void 0, se = Z?.file_name ?? void 0, ce = s(() => {
106
+ let q = l(() => K.map(ne), [K]), J = l(() => new Set(A.flatMap((e) => e.transactionIds)), [A]), ae = l(() => (H.data?.data ?? []).filter((e) => !J.has(e.id)).map(re), [H.data, J]), Y = H.data?.data ?? [], X = M[O], Z = l(() => K.find((e) => e.id === X), [K, X]), oe = Z?.file_url ?? void 0, se = Z?.file_name ?? void 0, ce = l(() => {
107
107
  if (b) return "Attach";
108
108
  if (!(M.length <= 1)) return `Review (${O + 1}/${M.length})`;
109
109
  }, [
110
110
  b,
111
111
  M.length,
112
112
  O
113
- ]), le = s(() => A.filter((e) => e.receiptId === X).flatMap((e) => e.transactionDetails), [A, X]), ue = O >= M.length - 1 ? r.Done : r.ReviewNextReceipt(O + 2, M.length), Q = o(() => {
113
+ ]), le = l(() => A.filter((e) => e.receiptId === X).flatMap((e) => e.transactionDetails), [A, X]), ue = O >= M.length - 1 ? r.Done : r.ReviewNextReceipt(O + 2, M.length), Q = s(() => {
114
114
  F(""), L([]), B(1);
115
- }, []), de = o((e) => {
115
+ }, []), de = s((e) => {
116
116
  if (b) {
117
117
  N((t) => t.includes(e) ? [] : [e]);
118
118
  return;
119
119
  }
120
120
  N((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
121
- }, [b]), fe = o(() => {
121
+ }, [b]), fe = s(() => {
122
122
  N(q.map((e) => e.id));
123
- }, [q]), pe = o(() => {
123
+ }, [q]), pe = s(() => {
124
124
  N([]);
125
- }, []), me = o((e) => {
125
+ }, []), me = s((e) => {
126
126
  let t = K.find((t) => t.id === e);
127
127
  t?.file_url && window.open(t.file_url, "_blank", "noopener,noreferrer");
128
- }, [K]), $ = o(async (t) => {
128
+ }, [K]), $ = s(async (t) => {
129
129
  try {
130
130
  await W.mutateAsync({ path: { receipt_id: t } });
131
131
  } catch (t) {
132
- e.error(l(t, "Failed to delete receipt"));
132
+ e.error(d(t, "Failed to delete receipt"));
133
133
  return;
134
134
  }
135
135
  N((e) => e.filter((e) => e !== t));
136
- }, [W]), he = o(async () => {
136
+ }, [W]), he = s(async () => {
137
137
  if (M.length !== 0) {
138
138
  if (b) {
139
139
  try {
@@ -142,7 +142,7 @@ function y({ preSelectedIds: d, onClose: y, targetTransactionId: b, onSingleTran
142
142
  body: { transaction_id: b }
143
143
  }), x?.(), y();
144
144
  } catch (t) {
145
- e.error(l(t, "Failed to attach receipt"));
145
+ e.error(d(t, "Failed to attach receipt"));
146
146
  }
147
147
  return;
148
148
  }
@@ -155,21 +155,21 @@ function y({ preSelectedIds: d, onClose: y, targetTransactionId: b, onSingleTran
155
155
  x,
156
156
  y,
157
157
  Q
158
- ]), ge = o((e) => {
158
+ ]), ge = s((e) => {
159
159
  F(e);
160
- }, []), _e = o((e) => {
160
+ }, []), _e = s((e) => {
161
161
  L((t) => {
162
162
  let n = t.find((t) => t.id === e), r = Y.find((t) => t.id === e);
163
163
  return n ? [] : r ? [r] : [];
164
164
  });
165
- }, [Y]), ve = o(async () => {
165
+ }, [Y]), ve = s(async () => {
166
166
  if (I.length === 0 || !X) return;
167
167
  let t = I, n = (e) => ({
168
168
  merchant: e.merchant_name,
169
169
  location: e.merchant_location,
170
- date: re(e.started_at),
171
- time: f(e.started_at),
172
- formattedAmount: u(e.amount, e.currency)
170
+ date: te(e.started_at),
171
+ time: m(e.started_at),
172
+ formattedAmount: f(e.amount, e.currency)
173
173
  }), r = [], i = [];
174
174
  for (let a of t) try {
175
175
  await U.mutateAsync({
@@ -181,7 +181,7 @@ function y({ preSelectedIds: d, onClose: y, targetTransactionId: b, onSingleTran
181
181
  receiptId: X,
182
182
  transactionIds: r,
183
183
  transactionDetails: i
184
- }]), L((e) => e.filter((e) => !r.includes(e.id))), e.error(l(t, "Failed to match receipt"));
184
+ }]), L((e) => e.filter((e) => !r.includes(e.id))), e.error(d(t, "Failed to match receipt"));
185
185
  return;
186
186
  }
187
187
  j((e) => [...e, {
@@ -193,11 +193,11 @@ function y({ preSelectedIds: d, onClose: y, targetTransactionId: b, onSingleTran
193
193
  I,
194
194
  X,
195
195
  U
196
- ]), ye = o(() => {
197
- B((e) => Math.min(e + g, h));
198
- }, []), be = o(() => {
199
- B((e) => Math.max(e - g, m));
200
- }, []), xe = o(() => {
196
+ ]), ye = s(() => {
197
+ B((e) => Math.min(e + _, g));
198
+ }, []), be = s(() => {
199
+ B((e) => Math.max(e - _, h));
200
+ }, []), xe = s(() => {
201
201
  let e = O + 1;
202
202
  if (e < M.length) {
203
203
  k(e), Q(), D(2);
@@ -209,7 +209,7 @@ function y({ preSelectedIds: d, onClose: y, targetTransactionId: b, onSingleTran
209
209
  M.length,
210
210
  Q,
211
211
  y
212
- ]), Se = o(() => {
212
+ ]), Se = s(() => {
213
213
  if (A.length > 0) {
214
214
  let e = new Set(A.map((e) => e.receiptId));
215
215
  N((t) => t.filter((t) => !e.has(t)));
@@ -226,7 +226,7 @@ function y({ preSelectedIds: d, onClose: y, targetTransactionId: b, onSingleTran
226
226
  onViewAttachment: me,
227
227
  onDeleteReceipt: $,
228
228
  onReview: he,
229
- isReceiptsLoading: V.isLoading,
229
+ isReceiptsLoading: V.isLoading || C && !S,
230
230
  showSelectAllButton: !b,
231
231
  receiptPreviewUrl: oe,
232
232
  receiptFileName: se,
@@ -242,8 +242,8 @@ function y({ preSelectedIds: d, onClose: y, targetTransactionId: b, onSingleTran
242
242
  zoom: z,
243
243
  onZoomIn: ye,
244
244
  onZoomOut: be,
245
- canZoomIn: z < h,
246
- canZoomOut: z > m,
245
+ canZoomIn: z < g,
246
+ canZoomOut: z > h,
247
247
  matchedTransactions: le,
248
248
  primaryLabel: ue,
249
249
  onPrimary: xe,
@@ -43,7 +43,14 @@ function u({ receipts: t, selectedReceiptIds: u, onSelectAll: f, onReset: p, onR
43
43
  }),
44
44
  /* @__PURE__ */ i("div", {
45
45
  className: "ttw:flex-1 ttw:overflow-y-auto ttw:flex ttw:flex-col ttw:gap-2 ttw:px-6 ttw:py-3",
46
- children: b ? Array.from({ length: l }).map((e, t) => /* @__PURE__ */ i(d, {}, t)) : t.length === 0 ? /* @__PURE__ */ a("div", {
46
+ children: b ? /* @__PURE__ */ a("div", {
47
+ role: "status",
48
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
49
+ children: [/* @__PURE__ */ i("span", {
50
+ className: "ttw:sr-only",
51
+ children: n.LoadingReceipts
52
+ }), Array.from({ length: l }).map((e, t) => /* @__PURE__ */ i(d, {}, t))]
53
+ }) : t.length === 0 ? /* @__PURE__ */ a("div", {
47
54
  className: "ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-3 ttw:flex-1 ttw:py-12",
48
55
  children: [/* @__PURE__ */ i("div", {
49
56
  className: "ttw:w-14 ttw:h-14 ttw:rounded-full ttw:bg-muted ttw:flex ttw:items-center ttw:justify-center",
@@ -97,7 +97,13 @@ function m({ receiptPreviewUrl: n, receiptFileName: m, transactions: g, selected
97
97
  /* @__PURE__ */ a("div", {
98
98
  className: "ttw:flex-1 ttw:overflow-y-auto",
99
99
  children: [
100
- N && Array.from({ length: p }).map((e, t) => /* @__PURE__ */ i(h, {}, t)),
100
+ N && /* @__PURE__ */ a("div", {
101
+ role: "status",
102
+ children: [/* @__PURE__ */ i("span", {
103
+ className: "ttw:sr-only",
104
+ children: r.LoadingTransactions
105
+ }), Array.from({ length: p }).map((e, t) => /* @__PURE__ */ i(h, {}, t))]
106
+ }),
101
107
  !N && g.length === 0 && /* @__PURE__ */ a("div", {
102
108
  className: "ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-3 ttw:h-full ttw:py-12",
103
109
  children: [/* @__PURE__ */ i("div", {
@@ -36,6 +36,8 @@ var e = {
36
36
  NoTransactionsSubtitle: "Go directly to transactions to modify receipt data if necessary.",
37
37
  MatchConfirmedTitle: "Match confirmed",
38
38
  MatchConfirmedSubtitle: "Your receipt has been matched to",
39
+ LoadingReceipts: "Loading receipts",
40
+ LoadingTransactions: "Loading transactions",
39
41
  Close: "Close",
40
42
  ZoomIn: "Zoom in",
41
43
  ZoomOut: "Zoom out",
@@ -1,5 +1,6 @@
1
1
  import "./index3.js";
2
2
  import { SettingsSection as e } from "./index4.js";
3
- import { SettingsWidget as t } from "./index6.js";
3
+ import { HELP_FAQ_EN as t } from "../../help/ui/contract/dist/index3.js";
4
+ import { SettingsWidget as n } from "./index6.js";
4
5
  import "./index7.js";
5
- export { e as SettingsSection, t as SettingsWidget };
6
+ export { t as HELP_FAQ_EN, e as SettingsSection, n as SettingsWidget };
@@ -27,8 +27,8 @@ import { SettingsWidgetUi as g } from "../../ui/dist/lib/SettingsWidgetUi/Settin
27
27
  import "../../ui/dist/index.js";
28
28
  import { ChartOfAccountsWidget as _ } from "../../chart-of-accounts/feature/dist/index8.js";
29
29
  import "../../chart-of-accounts/feature/dist/index.js";
30
- import { HelpWidget as v } from "../../../help-widget/feature/dist/index3.js";
31
- import "../../../help-widget/feature/dist/index.js";
30
+ import { HelpWidget as v } from "../../help/feature/dist/index3.js";
31
+ import "../../help/feature/dist/index.js";
32
32
  import { ProfileWidget as y } from "../../profile/feature/dist/index4.js";
33
33
  import "../../profile/feature/dist/index.js";
34
34
  import { useEffect as b } from "react";
@@ -1,3 +1,6 @@
1
1
  import "./index3.js";
2
2
  import "./index4.js";
3
+ import { HELP_FAQ_EN as e } from "../../help/ui/contract/dist/index3.js";
4
+ import "../../help/feature/dist/index.js";
3
5
  import "./index6.js";
6
+ export { e as HELP_FAQ_EN };
@@ -0,0 +1,5 @@
1
+ import { SETTINGS_WIDGET_NAME as e } from "../../../shared/util/dist/lib/widgetName.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index2.js
3
+ var t = `${e}.help_widget`, n = { Mounted: `${t}.mounted` };
4
+ //#endregion
5
+ export { n as HelpWidgetAnalyticsEvent, t as WIDGET_NAME };
@@ -2,12 +2,12 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useFrameworkRenderer as e } from "../../../shared/ui/dist/lib/UIContext/uiRendererRegistry.js";
6
- import "../../../shared/ui/dist/index.js";
7
- import { useAnalyticsTrack as t } from "../../../shared/feature/dist/lib/analytics/hooks.js";
8
- import { WidgetProvider as n } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
9
- import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
- import "../../../shared/feature/dist/index.js";
5
+ import { useFrameworkRenderer as e } from "../../../../shared/ui/dist/lib/UIContext/uiRendererRegistry.js";
6
+ import "../../../../shared/ui/dist/index.js";
7
+ import { useAnalyticsTrack as t } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
8
+ import { WidgetProvider as n } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
9
+ import { useWidgetConfig as r } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
+ import "../../../../shared/feature/dist/index.js";
11
11
  import { HelpWidgetAnalyticsEvent as i, WIDGET_NAME as a } from "./index2.js";
12
12
  import { HELP_FAQ_EN as o } from "../../ui/contract/dist/index3.js";
13
13
  import "../../ui/contract/dist/index4.js";
@@ -16,7 +16,7 @@ import { HelpWidgetShadcn as s } from "../../ui/shadcn/dist/index3.js";
16
16
  import "../../ui/shadcn/dist/index.js";
17
17
  import { useEffect as c } from "react";
18
18
  import { jsx as l } from "react/jsx-runtime";
19
- //#region ../../libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js
19
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/feature/dist/index3.js
20
20
  function u({ faq: n = o, bankName: a, ...u }) {
21
21
  let d = t();
22
22
  c(() => {
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index2.js
1
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index2.js
2
2
  var e = {
3
3
  title: "Frequently asked questions",
4
4
  contactUsTitle: "Contact Us",
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index3.js
1
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js
2
2
  var e = [
3
3
  {
4
4
  title: "Security & Access",
@@ -0,0 +1,4 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index4.js
2
+ var e = "help-widget";
3
+ //#endregion
4
+ export { e as HELP_WIDGET_ID };
@@ -1,6 +1,6 @@
1
1
  import { Fragment as e } from "react";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- //#region ../../libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index5.js
3
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index5.js
4
4
  function n(n) {
5
5
  return n.includes("<bold>") ? n.split(/(<bold>.*?<\/bold>)/g).map((n, r) => {
6
6
  let i = n.match(/<bold>(.*?)<\/bold>/);
@@ -2,7 +2,7 @@ import { renderRichText as e } from "../../contract/dist/index5.js";
2
2
  import "../../contract/dist/index.js";
3
3
  import { Fragment as t } from "react";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
- //#region ../../libs/tesouro-embedded-components-react/help-widget/ui/shadcn/dist/index2.js
5
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index2.js
6
6
  function i({ bullets: t, type: a, nested: o = !1 }) {
7
7
  let s = a === "numeric";
8
8
  return /* @__PURE__ */ n(s ? "ol" : "ul", {
@@ -1,11 +1,11 @@
1
- import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { SectionHeading as i } from "../../../../shared/ui/dist/lib/SectionHeading/SectionHeading.js";
3
- import "../../../../shared/ui/dist/index.js";
1
+ import { Accordion as e, AccordionContent as t, AccordionItem as n, AccordionTrigger as r } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { SectionHeading as i } from "../../../../../shared/ui/dist/lib/SectionHeading/SectionHeading.js";
3
+ import "../../../../../shared/ui/dist/index.js";
4
4
  import { HELP_WIDGET_LABELS_EN as a } from "../../contract/dist/index2.js";
5
5
  import "../../contract/dist/index.js";
6
6
  import { AnswerBlocks as o } from "./index2.js";
7
7
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
8
- //#region ../../libs/tesouro-embedded-components-react/help-widget/ui/shadcn/dist/index3.js
8
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index3.js
9
9
  var u = "ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-6";
10
10
  function d({ faq: d, bankName: f, contactUrl: p, labels: m }) {
11
11
  let h = {
@@ -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.31", n = "c07219435de2aa7cc613f43fc993c42d9f6c739d", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.33", n = "d2bf1c463706f63126d1097ec1642e7596396066", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.31",
3
+ "version": "0.5.33",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {
@@ -1,4 +0,0 @@
1
- //#region ../../libs/tesouro-embedded-components-react/help-widget/feature/dist/index2.js
2
- var e = { Mounted: "help_widget.mounted" }, t = "help_widget";
3
- //#endregion
4
- export { e as HelpWidgetAnalyticsEvent, t as WIDGET_NAME };
@@ -1,4 +0,0 @@
1
- //#region ../../libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index4.js
2
- var e = "help-widget";
3
- //#endregion
4
- export { e as HELP_WIDGET_ID };