@tesouro/embedded-components-react 0.5.297 → 0.5.298

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.
@@ -3,11 +3,78 @@ import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react
3
3
  import { PartialDeep } from 'type-fest';
4
4
  import { FallbackProps } from 'react-error-boundary';
5
5
 
6
- type ALIGN_DIALOG_TYPES = 'left' | 'right';
7
- declare module '@mui/material/transitions' {
8
- interface TransitionProps {
9
- alignDialog?: ALIGN_DIALOG_TYPES;
10
- }
6
+ interface LabelLabels {
7
+ /**
8
+ * How the field name and its requirement fragment compose. `{label}` is the
9
+ * name, `{marker}` the asterisk or the note — reorder them freely, and note
10
+ * that the space between them is part of this string.
11
+ */
12
+ composition: string;
13
+ /** In the label's own colour, deliberately not `destructive`. */
14
+ requiredMarker: string;
15
+ /**
16
+ * Screen-reader-only stand-in for the marker, for a control whose role does
17
+ * not take `aria-required` — a popover trigger is a `button`, which does
18
+ * not. Render it hidden and name it from the control's `aria-labelledby`.
19
+ */
20
+ requiredAccessibleText: string;
21
+ optionalNote: string;
22
+ /** "This has no meaning here", as against `optionalNote`'s "may be blank". */
23
+ notApplicableNote: string;
24
+ }
25
+
26
+ interface RequiredFieldsLegendLabels {
27
+ /**
28
+ * One string, so a translator can move the marker into whatever clause the
29
+ * language wants. `{marker}` is substituted with `marker`, rendered
30
+ * semi-bold; keep the placeholder when overriding.
31
+ */
32
+ instruction: string;
33
+ marker: string;
34
+ }
35
+
36
+ interface FilterMenuButtonLabels {
37
+ /** Button text, followed by "(N)" when `activeCount` is set. */
38
+ filters: string;
39
+ }
40
+
41
+ interface FilterTagLabels {
42
+ /**
43
+ * Accessible name for the editable tag body. `{label}` is substituted with
44
+ * the tag's own text; keep the placeholder when overriding.
45
+ */
46
+ edit: string;
47
+ /** Accessible name for the × dismiss button. `{label}` is substituted. */
48
+ remove: string;
49
+ }
50
+
51
+ interface DateRangePickerLabels {
52
+ /**
53
+ * Name of the preset field, rendered before the select (a `:` is appended by
54
+ * the component). Owners showing more than one date field pass the one that
55
+ * names theirs, e.g. "Due date range".
56
+ */
57
+ fieldLabel: string;
58
+ /** Select placeholder shown while the range matches no preset. */
59
+ presetPlaceholder: string;
60
+ }
61
+
62
+ interface AmountFilterLabels {
63
+ /**
64
+ * Rendered next to the min input. Owners pass the wording that matches their
65
+ * bound semantics — "No less than" for inclusive, "Greater than" for not.
66
+ */
67
+ min: string;
68
+ /** Rendered next to the max input. See {@link min}. */
69
+ max: string;
70
+ /** Amount-mode radio options. */
71
+ modeAny: string;
72
+ modeExact: string;
73
+ modeRange: string;
74
+ /** Flow-direction radio options, shown only when `showFlowDirection`. */
75
+ flowAny: string;
76
+ flowIn: string;
77
+ flowOut: string;
11
78
  }
12
79
 
13
80
  type AuthToken = string | undefined;
@@ -339,80 +406,6 @@ type EmbeddedClient = Client;
339
406
  type ExtractLiterals<T> = T extends string ? string extends T ? never : T : never;
340
407
  type BaseUrl = ExtractLiterals<ClientOptions['baseUrl']>;
341
408
 
342
- interface LabelLabels {
343
- /**
344
- * How the field name and its requirement fragment compose. `{label}` is the
345
- * name, `{marker}` the asterisk or the note — reorder them freely, and note
346
- * that the space between them is part of this string.
347
- */
348
- composition: string;
349
- /** In the label's own colour, deliberately not `destructive`. */
350
- requiredMarker: string;
351
- /**
352
- * Screen-reader-only stand-in for the marker, for a control whose role does
353
- * not take `aria-required` — a popover trigger is a `button`, which does
354
- * not. Render it hidden and name it from the control's `aria-labelledby`.
355
- */
356
- requiredAccessibleText: string;
357
- optionalNote: string;
358
- /** "This has no meaning here", as against `optionalNote`'s "may be blank". */
359
- notApplicableNote: string;
360
- }
361
-
362
- interface RequiredFieldsLegendLabels {
363
- /**
364
- * One string, so a translator can move the marker into whatever clause the
365
- * language wants. `{marker}` is substituted with `marker`, rendered
366
- * semi-bold; keep the placeholder when overriding.
367
- */
368
- instruction: string;
369
- marker: string;
370
- }
371
-
372
- interface FilterMenuButtonLabels {
373
- /** Button text, followed by "(N)" when `activeCount` is set. */
374
- filters: string;
375
- }
376
-
377
- interface FilterTagLabels {
378
- /**
379
- * Accessible name for the editable tag body. `{label}` is substituted with
380
- * the tag's own text; keep the placeholder when overriding.
381
- */
382
- edit: string;
383
- /** Accessible name for the × dismiss button. `{label}` is substituted. */
384
- remove: string;
385
- }
386
-
387
- interface DateRangePickerLabels {
388
- /**
389
- * Name of the preset field, rendered before the select (a `:` is appended by
390
- * the component). Owners showing more than one date field pass the one that
391
- * names theirs, e.g. "Due date range".
392
- */
393
- fieldLabel: string;
394
- /** Select placeholder shown while the range matches no preset. */
395
- presetPlaceholder: string;
396
- }
397
-
398
- interface AmountFilterLabels {
399
- /**
400
- * Rendered next to the min input. Owners pass the wording that matches their
401
- * bound semantics — "No less than" for inclusive, "Greater than" for not.
402
- */
403
- min: string;
404
- /** Rendered next to the max input. See {@link min}. */
405
- max: string;
406
- /** Amount-mode radio options. */
407
- modeAny: string;
408
- modeExact: string;
409
- modeRange: string;
410
- /** Flow-direction radio options, shown only when `showFlowDirection`. */
411
- flowAny: string;
412
- flowIn: string;
413
- flowOut: string;
414
- }
415
-
416
409
  type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
417
410
  children?: ReactNode;
418
411
  };
@@ -1,3 +1,2 @@
1
- import { InvoicingWidget as e } from "./lib/ReceivablesWidgetMonite/ReceivablesWidgetMonite.js";
2
- import { ReceivablesWidget as t } from "./lib/ReceivablesWidget/ReceivablesWidget.js";
3
- export { e as InvoicingWidget, t as ReceivablesWidget };
1
+ import { ReceivablesWidget as e } from "./lib/ReceivablesWidget/ReceivablesWidget.js";
2
+ export { e as ReceivablesWidget };
@@ -5,43 +5,37 @@
5
5
  import { hasAnyScope as e } from "../../../../../shared/data-access/dist/lib/hasAnyScope.js";
6
6
  import { Scope as t } from "../../../../../shared/data-access/dist/lib/scopes.js";
7
7
  import "../../../../../shared/data-access/dist/index.js";
8
- import { useAnalyticsTrack as n } from "../../../../../shared/feature/dist/lib/analytics/hooks.js";
9
- import { useRefetchWidget as r, useWidgetConfig as i, useWidgetError as ee, useWidgetInitStaleForToken as te, useWidgetLoading as ne } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
8
+ import { useRefetchWidget as n, useWidgetConfig as r, useWidgetError as i, useWidgetInitStaleForToken as ee, useWidgetLoading as te } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
9
  import "../../../../../shared/feature/dist/index.js";
11
- import { ReceivablesWidgetAnalyticsEvent as re } from "./analytics/events.js";
12
- import { RECEIVABLE_STATUS_BADGE_LABELS_EN as ie } from "../../../../ui/dist/index14.js";
10
+ import { RECEIVABLE_STATUS_BADGE_LABELS_EN as ne } from "../../../../ui/dist/index14.js";
13
11
  import "../../../../ui/dist/index.js";
14
- import { hasSelectedText as ae } from "../../../../../shared/product-catalog/feature/dist/lib/helpers.js";
12
+ import { hasSelectedText as re } from "../../../../../shared/product-catalog/feature/dist/lib/helpers.js";
15
13
  import "../../../../../shared/product-catalog/feature/dist/index.js";
16
- import { getCreateFollowUp as oe } from "./actionsModal.js";
17
- import { getDocumentTitle as se } from "./helpers.js";
18
- import { RECEIVABLE_MESSAGE_LABELS_EN as ce } from "./labels.js";
19
- import { getReceivablePermissions as le } from "./permissions.js";
20
- import { useReceivableActions as ue } from "./useReceivableActions.js";
21
- import { useReceivableActionsModal as de } from "./useReceivableActionsModal.js";
22
- import { useReceivableDetails as fe } from "./useReceivableDetails.js";
23
- import { useReceivableForm as pe } from "./useReceivableForm.js";
24
- import { useReceivablesTable as me } from "./useReceivablesTable.js";
14
+ import { getCreateFollowUp as ie } from "./actionsModal.js";
15
+ import { getDocumentTitle as ae } from "./helpers.js";
16
+ import { RECEIVABLE_MESSAGE_LABELS_EN as oe } from "./labels.js";
17
+ import { getReceivablePermissions as se } from "./permissions.js";
18
+ import { useReceivableActions as ce } from "./useReceivableActions.js";
19
+ import { useReceivableActionsModal as le } from "./useReceivableActionsModal.js";
20
+ import { useReceivableDetails as ue } from "./useReceivableDetails.js";
21
+ import { useReceivableForm as de } from "./useReceivableForm.js";
22
+ import { useReceivablesTable as fe } from "./useReceivablesTable.js";
25
23
  import { useCallback as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
26
24
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js
27
- function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankName: ge, filterLabels: _e, initialCounterpartId: f, initialView: p, messageLabels: m, onReceivableCreated: h, onReceivableOpened: g, pageSizeOptions: ve, screenLabels: ye }) {
28
- let _ = n();
29
- o(() => {
30
- _(re.Mounted);
31
- }, [_]);
32
- let { initResponse: v, widgetToken: be } = i(), y = ne(), xe = ee(), Se = r(), b = te(), x = !!v && !b, S = s(() => le(v?.scopes), [v?.scopes]), Ce = !!v && b, C = !!v && S.canRead, w = !!v && S.canWrite, T = x && S.canRead, E = x && S.canWrite, D = !!xe && !x && !y, O = !x && !D && !!(be || y), k = s(() => ({
33
- ...ce,
25
+ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankName: me, filterLabels: he, initialCounterpartId: f, initialView: p, messageLabels: m, onReceivableCreated: h, onReceivableOpened: g, pageSizeOptions: ge, screenLabels: _e }) {
26
+ let { initResponse: _, widgetToken: ve } = r(), v = te(), ye = i(), be = n(), y = ee(), b = !!_ && !y, x = s(() => se(_?.scopes), [_?.scopes]), xe = !!_ && y, S = !!_ && x.canRead, C = !!_ && x.canWrite, w = b && x.canRead, T = b && x.canWrite, E = !!ye && !b && !v, D = !b && !E && !!(ve || v), O = s(() => ({
27
+ ...oe,
34
28
  ...m
35
- }), [m]), A = ye?.statusBadge, j = s(() => ({
36
- ...ie,
37
- ...A
38
- }), [A]), [M, N] = l(), [P, F] = l(!1), [I, we] = l(M);
39
- M && M !== I && we(M);
40
- let [L, R] = l(!1), [Te, z] = l(), B = e(v?.scopes, [t.CounterpartReadOrg]), Ee = a(() => z(void 0), []), [V, H] = l(!1), De = a(() => H(!0), []), U = a(() => H(!1), []), Oe = a((e) => {
41
- N(e), F(!0);
42
- }, []), W = de({ messages: k }), G = W.open, ke = a((e, t, n) => {
43
- let r = oe(n);
44
- r.openDetails && (N(e), F(!0)), r.actionsModal && G({
29
+ }), [m]), k = _e?.statusBadge, A = s(() => ({
30
+ ...ne,
31
+ ...k
32
+ }), [k]), [j, M] = l(), [N, P] = l(!1), [F, Se] = l(j);
33
+ j && j !== F && Se(j);
34
+ let [I, L] = l(!1), [Ce, R] = l(), z = e(_?.scopes, [t.CounterpartReadOrg]), we = a(() => R(void 0), []), [B, V] = l(!1), Te = a(() => V(!0), []), H = a(() => V(!1), []), Ee = a((e) => {
35
+ M(e), P(!0);
36
+ }, []), U = le({ messages: O }), W = U.open, De = a((e, t, n) => {
37
+ let r = ie(n);
38
+ r.openDetails && (M(e), P(!0)), r.actionsModal && W({
45
39
  action: n.mode,
46
40
  receivableId: e,
47
41
  documentType: t,
@@ -49,28 +43,28 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
49
43
  inlineItems: n.inlineItems,
50
44
  showEmailStep: r.actionsModal.showEmailStep
51
45
  }), h?.(e, t);
52
- }, [h, G]), K = me({
46
+ }, [h, W]), G = fe({
53
47
  initialCounterpartId: p === "create" ? void 0 : f,
54
- messages: k,
55
- statusLabels: j,
56
- filterLabels: _e,
57
- pageSizeOptions: ve,
58
- enabled: T,
59
- visible: C
60
- }), Ae = a((e) => {
61
- N(e), F(!0), g?.(e, "invoice");
62
- }, [g]), q = fe({
63
- selectedReceivableId: M,
64
- enabled: P && T,
65
- canWrite: w,
66
- messages: k,
67
- statusLabels: j,
48
+ messages: O,
49
+ statusLabels: A,
50
+ filterLabels: he,
51
+ pageSizeOptions: ge,
52
+ enabled: w,
53
+ visible: S
54
+ }), Oe = a((e) => {
55
+ M(e), P(!0), g?.(e, "invoice");
56
+ }, [g]), K = ue({
57
+ selectedReceivableId: j,
58
+ enabled: N && w,
59
+ canWrite: C,
60
+ messages: O,
61
+ statusLabels: A,
68
62
  auditHistoryLabels: u,
69
- onOpenReceivable: Ae,
70
- onOpenCustomer: B ? z : void 0
71
- }), J = c("edit"), je = a((e, t, n) => {
72
- let r = n.mode === "issue", i = r && J.current !== "issue" && n.hasCustomerEmail;
73
- (i || n.inlineItems.length !== 0) && G({
63
+ onOpenReceivable: Oe,
64
+ onOpenCustomer: z ? R : void 0
65
+ }), q = c("edit"), ke = a((e, t, n) => {
66
+ let r = n.mode === "issue", i = r && q.current !== "issue" && n.hasCustomerEmail;
67
+ (i || n.inlineItems.length !== 0) && W({
74
68
  action: r || n.mode === "recurrence" ? n.mode : "update",
75
69
  receivableId: e,
76
70
  documentType: t,
@@ -78,36 +72,36 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
78
72
  inlineItems: n.inlineItems,
79
73
  showEmailStep: i
80
74
  });
81
- }, [G]), Y = pe({
82
- messages: k,
83
- counterpartMessageLabels: he,
84
- embeddedBankName: ge,
85
- canCreateCustomer: S.canCreateCustomer,
86
- onCreated: ke,
87
- onUpdated: je
88
- }), Me = a(() => {
89
- E && Y.openCreate("invoice");
90
- }, [E, Y.openCreate]), X = c(!1);
75
+ }, [W]), J = de({
76
+ messages: O,
77
+ counterpartMessageLabels: pe,
78
+ embeddedBankName: me,
79
+ canCreateCustomer: x.canCreateCustomer,
80
+ onCreated: De,
81
+ onUpdated: ke
82
+ }), Ae = a(() => {
83
+ T && J.openCreate("invoice");
84
+ }, [T, J.openCreate]), Y = c(!1);
91
85
  o(() => {
92
- X.current || p === "create" && E && (X.current = !0, Y.openCreate("invoice", { customerId: f }));
86
+ Y.current || p === "create" && T && (Y.current = !0, J.openCreate("invoice", { customerId: f }));
93
87
  }, [
94
- E,
95
- Y.openCreate,
88
+ T,
89
+ J.openCreate,
96
90
  f,
97
91
  p
98
92
  ]);
99
- let Z = ue({
100
- selectedReceivable: q.receivable,
101
- selectedRecurrence: q.recurrence,
102
- messages: k,
103
- onCreated: Oe,
93
+ let X = ce({
94
+ selectedReceivable: K.receivable,
95
+ selectedRecurrence: K.recurrence,
96
+ messages: O,
97
+ onCreated: Ee,
104
98
  onDeleted: (e) => {
105
- e === M && (N(void 0), F(!1));
99
+ e === j && (M(void 0), P(!1));
106
100
  },
107
101
  onCompleteBeforeIssue: (e, t) => {
108
- J.current = t, Y.openEdit(e, { highlightForIssue: !0 }), P && R(!0), F(!1);
102
+ q.current = t, J.openEdit(e, { highlightForIssue: !0 }), N && L(!0), P(!1);
109
103
  },
110
- onIssuedForSend: (e, t) => G({
104
+ onIssuedForSend: (e, t) => W({
111
105
  action: "issue",
112
106
  receivableId: e,
113
107
  documentType: "invoice",
@@ -115,7 +109,7 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
115
109
  inlineItems: [],
116
110
  showEmailStep: !0
117
111
  }),
118
- onResend: (e, t) => G({
112
+ onResend: (e, t) => W({
119
113
  action: "issue",
120
114
  receivableId: e,
121
115
  documentType: "invoice",
@@ -126,109 +120,109 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
126
120
  })
127
121
  });
128
122
  o(() => {
129
- Y.open || (J.current = "edit");
130
- }, [Y.open]), o(() => {
131
- Y.open || W.isOpen || !L || (R(!1), F(!0));
123
+ J.open || (q.current = "edit");
124
+ }, [J.open]), o(() => {
125
+ J.open || U.isOpen || !I || (L(!1), P(!0));
132
126
  }, [
133
- W.isOpen,
134
- Y.open,
135
- L
127
+ U.isOpen,
128
+ J.open,
129
+ I
136
130
  ]);
137
- let Q = x && !S.canWrite, $ = Y.open || Y.counterpartView !== "none" || !!Z.actionTarget || Z.payment.isOpen || W.isOpen || V, Ne = Y.close, Pe = Y.counterpartForm.close, { closeAction: Fe } = Z, Ie = Z.payment.close, Le = W.close;
131
+ let Z = b && !x.canWrite, Q = J.open || J.counterpartView !== "none" || !!X.actionTarget || X.payment.isOpen || U.isOpen || B, $ = J.close, je = J.counterpartForm.close, { closeAction: Me } = X, Ne = X.payment.close, Pe = U.close;
138
132
  o(() => {
139
- Q && $ && (Ne(), Pe(), Fe(), Ie(), Le(), U());
133
+ Z && Q && ($(), je(), Me(), Ne(), Pe(), H());
140
134
  }, [
141
- Fe,
142
- Le,
135
+ Me,
143
136
  Pe,
144
- Ne,
145
- U,
146
- Ie,
137
+ je,
147
138
  $,
148
- Q
139
+ H,
140
+ Ne,
141
+ Q,
142
+ Z
149
143
  ]);
150
- let Re = a((e) => {
151
- ae() || (N(e.id), F(!0), g?.(e.id, e.type));
152
- }, [g]), ze = a(() => {
153
- F(!1), N(void 0), z(void 0);
154
- }, []), Be = a((e, t) => {
155
- if (E) {
144
+ let Fe = a((e) => {
145
+ re() || (M(e.id), P(!0), g?.(e.id, e.type));
146
+ }, [g]), Ie = a(() => {
147
+ P(!1), M(void 0), R(void 0);
148
+ }, []), Le = a((e, t) => {
149
+ if (T) {
156
150
  if (e === "edit") {
157
- q.receivable && (J.current = "edit", Y.openEdit(q.receivable), R(!0), F(!1));
151
+ K.receivable && (q.current = "edit", J.openEdit(K.receivable), L(!0), P(!1));
158
152
  return;
159
153
  }
160
- Z.openAction(e, {
154
+ X.openAction(e, {
161
155
  id: t.id,
162
- title: q.receivable ? se(q.receivable, k) : t.title,
156
+ title: K.receivable ? ae(K.receivable, O) : t.title,
163
157
  type: t.type
164
- }, q.receivable ?? null);
158
+ }, K.receivable ?? null);
165
159
  }
166
160
  }, [
167
- Z,
168
- E,
169
- q.receivable,
170
- Y.openEdit,
171
- k
161
+ X,
162
+ T,
163
+ K.receivable,
164
+ J.openEdit,
165
+ O
172
166
  ]);
173
167
  return {
174
- canWrite: w,
175
- canEditSettings: C && S.canEditSettings,
176
- actionsSuspended: Ce,
177
- isAccessRestricted: x && !S.canRead,
178
- table: C ? K : {
179
- ...K,
168
+ canWrite: C,
169
+ canEditSettings: S && x.canEditSettings,
170
+ actionsSuspended: xe,
171
+ isAccessRestricted: b && !x.canRead,
172
+ table: S ? G : {
173
+ ...G,
180
174
  rows: [],
181
175
  statusCards: void 0,
182
176
  isError: !1
183
177
  },
184
- isTableLoading: C ? K.isLoading || O && K.rows.length === 0 : O,
185
- isError: D || C && K.isError,
186
- onRetry: D ? Se : K.onRetry,
187
- details: q,
188
- detailsOpen: P && C,
189
- closeDetails: ze,
190
- detailsPanelKey: I,
191
- customerDetailsId: Te,
192
- closeCustomerDetails: Ee,
193
- openCustomerDetails: B ? z : void 0,
194
- canCreateCustomer: S.canCreateCustomer,
195
- messages: k,
178
+ isTableLoading: S ? G.isLoading || D && G.rows.length === 0 : D,
179
+ isError: E || S && G.isError,
180
+ onRetry: E ? be : G.onRetry,
181
+ details: K,
182
+ detailsOpen: N && S,
183
+ closeDetails: Ie,
184
+ detailsPanelKey: F,
185
+ customerDetailsId: Ce,
186
+ closeCustomerDetails: we,
187
+ openCustomerDetails: z ? R : void 0,
188
+ canCreateCustomer: x.canCreateCustomer,
189
+ messages: O,
196
190
  form: {
197
- ...Y,
198
- open: w && Y.open,
199
- counterpartView: w ? Y.counterpartView : "none",
191
+ ...J,
192
+ open: C && J.open,
193
+ counterpartView: C ? J.counterpartView : "none",
200
194
  counterpartForm: {
201
- ...Y.counterpartForm,
202
- submit: d(E, Y.counterpartForm.submit)
195
+ ...J.counterpartForm,
196
+ submit: d(T, J.counterpartForm.submit)
203
197
  },
204
- submit: d(E, Y.submit),
205
- submitDraft: d(E, Y.submitDraft),
206
- submitPrimary: d(E, Y.submitPrimary)
198
+ submit: d(T, J.submit),
199
+ submitDraft: d(T, J.submitDraft),
200
+ submitPrimary: d(T, J.submitPrimary)
207
201
  },
208
- openCreate: Me,
209
- measureUnitsOpen: w && V,
210
- openMeasureUnits: De,
211
- closeMeasureUnits: U,
202
+ openCreate: Ae,
203
+ measureUnitsOpen: C && B,
204
+ openMeasureUnits: Te,
205
+ closeMeasureUnits: H,
212
206
  actions: {
213
- ...Z,
214
- actionDialog: w ? Z.actionDialog : void 0,
215
- openAction: d(E, Z.openAction),
216
- confirmAction: d(E, Z.confirmAction),
207
+ ...X,
208
+ actionDialog: C ? X.actionDialog : void 0,
209
+ openAction: d(T, X.openAction),
210
+ confirmAction: d(T, X.confirmAction),
217
211
  payment: {
218
- ...Z.payment,
219
- isOpen: w && Z.payment.isOpen,
220
- save: d(E, Z.payment.save),
221
- confirm: d(E, Z.payment.confirm)
212
+ ...X.payment,
213
+ isOpen: C && X.payment.isOpen,
214
+ save: d(T, X.payment.save),
215
+ confirm: d(T, X.payment.confirm)
222
216
  }
223
217
  },
224
218
  actionsModal: {
225
- ...W,
226
- isOpen: w && W.isOpen,
227
- send: d(E, W.send),
228
- saveItems: d(E, W.saveItems)
219
+ ...U,
220
+ isOpen: C && U.isOpen,
221
+ send: d(T, U.send),
222
+ saveItems: d(T, U.saveItems)
229
223
  },
230
- handleRowClick: Re,
231
- handleDetailsActionClick: Be
224
+ handleRowClick: Fe,
225
+ handleDetailsActionClick: Le
232
226
  };
233
227
  }
234
228
  function d(e, t) {
@@ -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.297", n = "b60862dfcde39815da8b341ec487571c5728ac16", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.298", n = "d92815559b211a2b13703877b83e8b03b7480d48", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -4,12 +4,12 @@
4
4
  "use client";
5
5
  import { Scope as e } from "../../../../../../shared/data-access/dist/lib/scopes.js";
6
6
  import "../../../../../../shared/data-access/dist/index.js";
7
- import { InvoicingWidget as t } from "../../../../../../invoicing-widget/feature/dist/lib/ReceivablesWidgetMonite/ReceivablesWidgetMonite.js";
7
+ import { ReceivablesWidget as t } from "../../../../../../invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
8
8
  import "../../../../../../invoicing-widget/feature/dist/index.js";
9
9
  import { jsx as n } from "react/jsx-runtime";
10
10
  //#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/InvoicingSection.js
11
11
  function r({ renderTitle: e } = {}) {
12
- return /* @__PURE__ */ n(t, { pageTitleComponent: e });
12
+ return /* @__PURE__ */ n(t, { headerStart: e?.() });
13
13
  }
14
14
  var i = {
15
15
  anyOfScopes: [e.InvoiceReadOrg],
@@ -1,5 +1,5 @@
1
1
  import { INIT as e, answer as t, composeScenarios as n, problem as r, routesOf as i } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/scenario.js";
2
- import { invoicingScenarios as a } from "../../../../invoicing-widget/feature/dist/mocks/invoicing.js";
2
+ import { receivablesScenarios as a } from "../../../../invoicing-widget/feature/dist/mocks/receivables.js";
3
3
  import "../../../../invoicing-widget/feature/dist/scenarios.js";
4
4
  import { expenseManagementScenarios as o } from "../../../../expense-management-widget/feature/dist/mocks/expenseManagement.js";
5
5
  import "../../../../expense-management-widget/feature/dist/scenarios.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.297",
3
+ "version": "0.5.298",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [