@tesouro/embedded-components-react 0.2.308 → 0.2.309
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -19
- package/dist/experimental/WidgetSuite.d.ts +15 -17
- package/dist/experimental/index.d.ts +15 -17
- package/dist/index.d.ts +7 -0
- package/dist/lib/SettingsWidget.d.ts +7 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/UploadReceiptWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +33 -33
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -546,25 +546,26 @@ A composite settings widget that combines Monite document settings, tags, GL cod
|
|
|
546
546
|
|
|
547
547
|
#### Props
|
|
548
548
|
|
|
549
|
-
| Prop | Type | Default | Description
|
|
550
|
-
| ------------------------- | -------------------------------------------- | --------------------------------- |
|
|
551
|
-
| `acceptInviteRedirectUri` | `string` | Same-origin `/accept-invite` | Forwarded to the Team section's widget — allowlisted URL invite emails link to. Defaults to `${window.location.origin}/accept-invite`; set it when the host app's registered landing route differs from the widget's same-origin default, or the origin is not on the OIDC redirect-URI allowlist (preview/localhost).
|
|
552
|
-
| `labels` | `Partial<Labels>` | English labels | Overrides the settings heading copy.
|
|
553
|
-
| `featureLabels` | `Partial<FeatureLabels>` | English labels | Overrides section labels.
|
|
554
|
-
| `profileContent` | `ReactNode` | Profile widget | Replaces the profile section content.
|
|
555
|
-
| `teamContent` | `ReactNode` | Empty | Supplies the team section content.
|
|
556
|
-
| `invoiceContent` | `ReactNode` | Monite template settings | Replaces invoice settings content.
|
|
557
|
-
| `billPayContent` | `ReactNode` | Monite approval policies | Replaces bill-pay settings content.
|
|
558
|
-
| `accountingContent` | `ReactNode` | GL code table widget | Replaces accounting content.
|
|
559
|
-
| `tagsContent` | `ReactNode` | Monite tags | Replaces tags content.
|
|
560
|
-
| `expenseContent` | `ReactNode` | Expense policies and requirements | Replaces expense content.
|
|
561
|
-
| `profileContactUrl` | `string` | `undefined` | Forwarded to the Profile section's widget — where its "to change this information, contact your bank" line links. Left unset, the card shows the plain unlinked sentence instead; the bank name comes from widget init.
|
|
562
|
-
| `selectedSection` | `SettingsWidgetSectionId` | `undefined` | The section to show. Leave unset to let the widget own the selection; supply it (with `onSelectedSectionChange`) to drive navigation from a route or search param. A section the user's scopes hide falls back to the first visible one.
|
|
563
|
-
| `
|
|
564
|
-
| `
|
|
565
|
-
| `
|
|
566
|
-
| `
|
|
567
|
-
| `
|
|
549
|
+
| Prop | Type | Default | Description |
|
|
550
|
+
| ------------------------- | -------------------------------------------- | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
551
|
+
| `acceptInviteRedirectUri` | `string` | Same-origin `/accept-invite` | Forwarded to the Team section's widget — allowlisted URL invite emails link to. Defaults to `${window.location.origin}/accept-invite`; set it when the host app's registered landing route differs from the widget's same-origin default, or the origin is not on the OIDC redirect-URI allowlist (preview/localhost). |
|
|
552
|
+
| `labels` | `Partial<Labels>` | English labels | Overrides the settings heading copy. |
|
|
553
|
+
| `featureLabels` | `Partial<FeatureLabels>` | English labels | Overrides section labels. |
|
|
554
|
+
| `profileContent` | `ReactNode` | Profile widget | Replaces the profile section content. |
|
|
555
|
+
| `teamContent` | `ReactNode` | Empty | Supplies the team section content. |
|
|
556
|
+
| `invoiceContent` | `ReactNode` | Monite template settings | Replaces invoice settings content. |
|
|
557
|
+
| `billPayContent` | `ReactNode` | Monite approval policies | Replaces bill-pay settings content. |
|
|
558
|
+
| `accountingContent` | `ReactNode` | GL code table widget | Replaces accounting content. |
|
|
559
|
+
| `tagsContent` | `ReactNode` | Monite tags | Replaces tags content. |
|
|
560
|
+
| `expenseContent` | `ReactNode` | Expense policies and requirements | Replaces expense content. |
|
|
561
|
+
| `profileContactUrl` | `string` | `undefined` | Forwarded to the Profile section's widget — where its "to change this information, contact your bank" line links. Left unset, the card shows the plain unlinked sentence instead; the bank name comes from widget init. |
|
|
562
|
+
| `selectedSection` | `SettingsWidgetSectionId` | `undefined` | The section to show. Leave unset to let the widget own the selection; supply it (with `onSelectedSectionChange`) to drive navigation from a route or search param. A section the user's scopes hide falls back to the first visible one. |
|
|
563
|
+
| `defaultSelectedSection` | `SettingsWidgetSectionId` | First visible section | The section to open on, for a host that wants a deep link without owning the selection. Read once per mount and ignored when `selectedSection` is supplied. Scopes arrive with widget init, so a section this names opens as soon as it becomes visible; one the user's scopes never grant leaves the first visible section on screen. |
|
|
564
|
+
| `onSelectedSectionChange` | `(section: SettingsWidgetSectionId) => void` | `undefined` | Called with the id of the section the user selected. Fires whether or not `selectedSection` is supplied, so a host can mirror the selection into its URL without taking ownership of it. |
|
|
565
|
+
| `additionalSections` | `SettingsWidgetAdditionalSection[]` | `undefined` | Host-owned sections rendered alongside the built-in ones. Each is `{ id, label, content }` plus an optional `after` naming the built-in section to place it behind. Unlike the built-ins, these are not scope-gated. |
|
|
566
|
+
| `helpContactUrl` | `string` | `undefined` | Forwarded to the Help section's widget — where its "Contact Us" line links (a support page URL or a `mailto:`). The line is hidden while unset, since the package has no tenant-agnostic support address to fall back on; the bank name in that line comes from widget init. |
|
|
567
|
+
| `helpContent` | `ReactNode` | Help widget | Replaces the help section content. |
|
|
568
|
+
| `finopsThemeColors` | `FinopsThemeColors` | `undefined` | Optional Monite theme color overrides. |
|
|
568
569
|
|
|
569
570
|
### TagsWidget
|
|
570
571
|
|
|
@@ -784,11 +784,13 @@ interface WidgetSuiteCardsSelection {
|
|
|
784
784
|
}
|
|
785
785
|
interface WidgetSuiteSettingsSelection {
|
|
786
786
|
/**
|
|
787
|
-
* The settings section on screen.
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
*
|
|
791
|
-
* value
|
|
787
|
+
* The settings section on screen. The suite holds this one, so it survives
|
|
788
|
+
* leaving the section — but hands it down as the widget's
|
|
789
|
+
* `defaultSelectedSection`, never its controlled `selectedSection`. The widget
|
|
790
|
+
* substitutes another section when this one is not available to the user and
|
|
791
|
+
* reports nothing when it does, so a controlled value could disagree with the
|
|
792
|
+
* screen with no way to recover; an initial one just loses a deep link the
|
|
793
|
+
* user could never have reached.
|
|
792
794
|
*/
|
|
793
795
|
section?: SettingsWidgetSectionId;
|
|
794
796
|
}
|
|
@@ -814,14 +816,11 @@ interface WidgetSuiteSelection {
|
|
|
814
816
|
settings?: WidgetSuiteSettingsSelection;
|
|
815
817
|
}
|
|
816
818
|
/**
|
|
817
|
-
* Where the suite can *open*, which is
|
|
818
|
-
*
|
|
819
|
-
*
|
|
820
|
-
*
|
|
821
|
-
* Derived rather than hand-written, so each key stays in exactly one of the two
|
|
822
|
-
* types as the widgets behind them gain the props they are missing.
|
|
819
|
+
* Where the suite can *open*, which is narrower than what it can be driven to
|
|
820
|
+
* whenever a key's widget takes no initial value. Every key has both halves
|
|
821
|
+
* today, so nothing is omitted; this is where the next controlled-only key goes.
|
|
823
822
|
*/
|
|
824
|
-
type WidgetSuiteDefaultSelection =
|
|
823
|
+
type WidgetSuiteDefaultSelection = WidgetSuiteSelection;
|
|
825
824
|
interface WidgetSuiteCardsSelectionSnapshot {
|
|
826
825
|
cardId: string | null;
|
|
827
826
|
pagination: CardsWidgetPaginationInput | undefined;
|
|
@@ -871,8 +870,7 @@ interface WidgetSuiteProps extends WidgetProviderProps {
|
|
|
871
870
|
* Where the suite opens, for a host that wants a deep link but not ownership.
|
|
872
871
|
* Read once per mount, and ignored per key when `selection` names that key.
|
|
873
872
|
*
|
|
874
|
-
* Carries every key `selection` does
|
|
875
|
-
* {@link WidgetSuiteDefaultSelection}.
|
|
873
|
+
* Carries every key `selection` does — see {@link WidgetSuiteDefaultSelection}.
|
|
876
874
|
*/
|
|
877
875
|
defaultSelection?: WidgetSuiteDefaultSelection;
|
|
878
876
|
/**
|
|
@@ -938,9 +936,9 @@ interface WidgetSuiteProps extends WidgetProviderProps {
|
|
|
938
936
|
* Navigation is one `selection` object a host can drive key by key, published to
|
|
939
937
|
* the sections through `WidgetSuiteProvider`. Only the open panel is mounted, so
|
|
940
938
|
* a key the suite holds survives leaving a section and coming back and a key it
|
|
941
|
-
* does not hold is lost: today Accounts remembers its open account
|
|
942
|
-
* open card, while Bill Pay forgets its tab
|
|
943
|
-
* list its cursor. That split is the widgets' current shape rather than a
|
|
939
|
+
* does not hold is lost: today Accounts remembers its open account, Cards its
|
|
940
|
+
* open card and Settings its section, while Bill Pay forgets its tab and each
|
|
941
|
+
* card list its cursor. That split is the widgets' current shape rather than a
|
|
944
942
|
* decision — see `WidgetSuiteSelection` for the ticket behind each gap.
|
|
945
943
|
*/
|
|
946
944
|
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
|
|
@@ -784,11 +784,13 @@ interface WidgetSuiteCardsSelection {
|
|
|
784
784
|
}
|
|
785
785
|
interface WidgetSuiteSettingsSelection {
|
|
786
786
|
/**
|
|
787
|
-
* The settings section on screen.
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
*
|
|
791
|
-
* value
|
|
787
|
+
* The settings section on screen. The suite holds this one, so it survives
|
|
788
|
+
* leaving the section — but hands it down as the widget's
|
|
789
|
+
* `defaultSelectedSection`, never its controlled `selectedSection`. The widget
|
|
790
|
+
* substitutes another section when this one is not available to the user and
|
|
791
|
+
* reports nothing when it does, so a controlled value could disagree with the
|
|
792
|
+
* screen with no way to recover; an initial one just loses a deep link the
|
|
793
|
+
* user could never have reached.
|
|
792
794
|
*/
|
|
793
795
|
section?: SettingsWidgetSectionId;
|
|
794
796
|
}
|
|
@@ -814,14 +816,11 @@ interface WidgetSuiteSelection {
|
|
|
814
816
|
settings?: WidgetSuiteSettingsSelection;
|
|
815
817
|
}
|
|
816
818
|
/**
|
|
817
|
-
* Where the suite can *open*, which is
|
|
818
|
-
*
|
|
819
|
-
*
|
|
820
|
-
*
|
|
821
|
-
* Derived rather than hand-written, so each key stays in exactly one of the two
|
|
822
|
-
* types as the widgets behind them gain the props they are missing.
|
|
819
|
+
* Where the suite can *open*, which is narrower than what it can be driven to
|
|
820
|
+
* whenever a key's widget takes no initial value. Every key has both halves
|
|
821
|
+
* today, so nothing is omitted; this is where the next controlled-only key goes.
|
|
823
822
|
*/
|
|
824
|
-
type WidgetSuiteDefaultSelection =
|
|
823
|
+
type WidgetSuiteDefaultSelection = WidgetSuiteSelection;
|
|
825
824
|
interface WidgetSuiteCardsSelectionSnapshot {
|
|
826
825
|
cardId: string | null;
|
|
827
826
|
pagination: CardsWidgetPaginationInput | undefined;
|
|
@@ -871,8 +870,7 @@ interface WidgetSuiteProps extends WidgetProviderProps {
|
|
|
871
870
|
* Where the suite opens, for a host that wants a deep link but not ownership.
|
|
872
871
|
* Read once per mount, and ignored per key when `selection` names that key.
|
|
873
872
|
*
|
|
874
|
-
* Carries every key `selection` does
|
|
875
|
-
* {@link WidgetSuiteDefaultSelection}.
|
|
873
|
+
* Carries every key `selection` does — see {@link WidgetSuiteDefaultSelection}.
|
|
876
874
|
*/
|
|
877
875
|
defaultSelection?: WidgetSuiteDefaultSelection;
|
|
878
876
|
/**
|
|
@@ -938,9 +936,9 @@ interface WidgetSuiteProps extends WidgetProviderProps {
|
|
|
938
936
|
* Navigation is one `selection` object a host can drive key by key, published to
|
|
939
937
|
* the sections through `WidgetSuiteProvider`. Only the open panel is mounted, so
|
|
940
938
|
* a key the suite holds survives leaving a section and coming back and a key it
|
|
941
|
-
* does not hold is lost: today Accounts remembers its open account
|
|
942
|
-
* open card, while Bill Pay forgets its tab
|
|
943
|
-
* list its cursor. That split is the widgets' current shape rather than a
|
|
939
|
+
* does not hold is lost: today Accounts remembers its open account, Cards its
|
|
940
|
+
* open card and Settings its section, while Bill Pay forgets its tab and each
|
|
941
|
+
* card list its cursor. That split is the widgets' current shape rather than a
|
|
944
942
|
* decision — see `WidgetSuiteSelection` for the ticket behind each gap.
|
|
945
943
|
*/
|
|
946
944
|
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -4271,6 +4271,13 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
4271
4271
|
* drive navigation from a route, a search param, or host state. A section
|
|
4272
4272
|
* hidden by the user's scopes falls back to the first visible one. */
|
|
4273
4273
|
selectedSection?: SettingsWidgetSectionId;
|
|
4274
|
+
/** The section to open on, for a host that wants a deep link without taking
|
|
4275
|
+
* ownership of the selection. Ignored when
|
|
4276
|
+
* {@link SettingsWidgetProps.selectedSection} is supplied; defaults to the
|
|
4277
|
+
* first visible section. Scopes arrive with the init response, so a section
|
|
4278
|
+
* this names opens as soon as it becomes visible, and one the user's scopes
|
|
4279
|
+
* never grant leaves the first visible section on screen. */
|
|
4280
|
+
defaultSelectedSection?: SettingsWidgetSectionId;
|
|
4274
4281
|
/** Called with the id of the section the user selected. Fires whether or not
|
|
4275
4282
|
* {@link SettingsWidgetProps.selectedSection} is supplied, so a host can mirror
|
|
4276
4283
|
* the selection into its URL without taking ownership of it. */
|
|
@@ -697,6 +697,13 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
697
697
|
* drive navigation from a route, a search param, or host state. A section
|
|
698
698
|
* hidden by the user's scopes falls back to the first visible one. */
|
|
699
699
|
selectedSection?: SettingsWidgetSectionId;
|
|
700
|
+
/** The section to open on, for a host that wants a deep link without taking
|
|
701
|
+
* ownership of the selection. Ignored when
|
|
702
|
+
* {@link SettingsWidgetProps.selectedSection} is supplied; defaults to the
|
|
703
|
+
* first visible section. Scopes arrive with the init response, so a section
|
|
704
|
+
* this names opens as soon as it becomes visible, and one the user's scopes
|
|
705
|
+
* never grant leaves the first visible section on screen. */
|
|
706
|
+
defaultSelectedSection?: SettingsWidgetSectionId;
|
|
700
707
|
/** Called with the id of the section the user selected. Fires whether or not
|
|
701
708
|
* {@link SettingsWidgetProps.selectedSection} is supplied, so a host can mirror
|
|
702
709
|
* the selection into its URL without taking ownership of it. */
|
|
@@ -24,7 +24,7 @@ var r = {
|
|
|
24
24
|
UploadedPartial: (e, t) => `Uploaded ${e} of ${t} attachments`,
|
|
25
25
|
TooManyFiles: (e) => `You can only upload up to ${e} files at a time`,
|
|
26
26
|
Matching: (e) => e === 1 ? "Matching 1 receipt to a transaction" : `Matching ${e} receipts to transactions`,
|
|
27
|
-
MatchedAll: (e) => e === 1 ? "
|
|
27
|
+
MatchedAll: (e) => e === 1 ? "1 of 1 receipt matched to a transaction" : `${e} of ${e} receipts matched to transactions`,
|
|
28
28
|
MatchedPartial: (e, t) => `${e} of ${t} receipts matched. Match the rest from the receipt inbox.`,
|
|
29
29
|
MatchingUnfinished: (e) => e === 1 ? "Still processing 1 receipt. Matching continues in the background." : `Still processing ${e} receipts. Matching continues in the background.`
|
|
30
30
|
};
|
|
@@ -43,73 +43,73 @@ var S = {
|
|
|
43
43
|
[d.Expense]: [t.ApprovalPolicyWriteOrg, t.ExpenseWriteOrg],
|
|
44
44
|
[d.Help]: []
|
|
45
45
|
};
|
|
46
|
-
function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: m, helpContactUrl: C, profileContactUrl: w, selectedSection: T,
|
|
47
|
-
let
|
|
46
|
+
function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: m, helpContactUrl: C, profileContactUrl: w, selectedSection: T, defaultSelectedSection: E, onSelectedSectionChange: D, additionalSections: O, profileContent: k, teamContent: A, billPayContent: j, helpContent: M, expenseContent: N, accountingContent: P, tagsContent: F, invoiceContent: I }) {
|
|
47
|
+
let L = {
|
|
48
48
|
...u,
|
|
49
49
|
...o
|
|
50
|
-
},
|
|
50
|
+
}, R = n();
|
|
51
51
|
y(() => {
|
|
52
|
-
|
|
53
|
-
}, [
|
|
54
|
-
let { initResponse:
|
|
52
|
+
R(p.Mounted);
|
|
53
|
+
}, [R]);
|
|
54
|
+
let { initResponse: z } = r(), B = z?.scopes, V = [
|
|
55
55
|
{
|
|
56
56
|
id: d.Profile,
|
|
57
|
-
label:
|
|
58
|
-
content:
|
|
57
|
+
label: L.profileSection,
|
|
58
|
+
content: k ?? /* @__PURE__ */ b(l, { contactUrl: w })
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
id: d.Team,
|
|
62
|
-
label:
|
|
63
|
-
content:
|
|
64
|
-
title:
|
|
62
|
+
label: L.teamSection,
|
|
63
|
+
content: A ?? /* @__PURE__ */ b(_, {
|
|
64
|
+
title: L.teamSection,
|
|
65
65
|
acceptInviteRedirectUri: m
|
|
66
66
|
})
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
id: d.Invoice,
|
|
70
|
-
label:
|
|
71
|
-
content:
|
|
70
|
+
label: L.invoiceSection,
|
|
71
|
+
content: I ?? /* @__PURE__ */ b(a, {})
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
id: d.Expense,
|
|
75
|
-
label:
|
|
76
|
-
content:
|
|
77
|
-
sectionTitle:
|
|
78
|
-
approvalsLabel:
|
|
79
|
-
requirementsLabel:
|
|
75
|
+
label: L.expenseSection,
|
|
76
|
+
content: N ?? /* @__PURE__ */ b(h, {
|
|
77
|
+
sectionTitle: L.expenseSection,
|
|
78
|
+
approvalsLabel: L.expenseApprovalsTab,
|
|
79
|
+
requirementsLabel: L.expenseRequirementsTab
|
|
80
80
|
})
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
id: d.BillPay,
|
|
84
|
-
label:
|
|
85
|
-
content:
|
|
84
|
+
label: L.billPaySection,
|
|
85
|
+
content: j ?? /* @__PURE__ */ b(i, {})
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
id: d.Accounting,
|
|
89
|
-
label:
|
|
90
|
-
content:
|
|
89
|
+
label: L.accountingSection,
|
|
90
|
+
content: P ?? /* @__PURE__ */ b(s, { title: L.accountingSection })
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
id: d.Tags,
|
|
94
|
-
label:
|
|
95
|
-
content:
|
|
94
|
+
label: L.tagsSection,
|
|
95
|
+
content: F ?? /* @__PURE__ */ b(g, {})
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
id: d.Help,
|
|
99
|
-
label:
|
|
100
|
-
content:
|
|
99
|
+
label: L.helpSection,
|
|
100
|
+
content: M ?? /* @__PURE__ */ b(c, { contactUrl: C })
|
|
101
101
|
}
|
|
102
|
-
],
|
|
102
|
+
], H = f(V.filter((t) => S[t.id].every((t) => e(B, [t]))), O ?? []), U = H[0]?.id ?? "", [W, G] = x({
|
|
103
103
|
prop: T,
|
|
104
|
-
defaultProp:
|
|
105
|
-
onChange:
|
|
104
|
+
defaultProp: E ?? U,
|
|
105
|
+
onChange: D,
|
|
106
106
|
caller: "SettingsWidget"
|
|
107
|
-
}),
|
|
107
|
+
}), K = H.some((e) => e.id === W) ? W : U;
|
|
108
108
|
return /* @__PURE__ */ b(v, {
|
|
109
109
|
labels: t,
|
|
110
|
-
sections:
|
|
111
|
-
selectedSectionId:
|
|
112
|
-
onSectionChange:
|
|
110
|
+
sections: H,
|
|
111
|
+
selectedSectionId: K,
|
|
112
|
+
onSectionChange: G
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f, disclosuresAcceptance: p, ...h }) {
|
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.2.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.2.309", n = "e9a1adea1040e9c1a91acd86aa3e25dcd18a3ebf", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -48,7 +48,7 @@ function o({ selection: i, defaultSelection: a, sections: o }) {
|
|
|
48
48
|
caller: r
|
|
49
49
|
}), [y, b] = n({
|
|
50
50
|
prop: i?.settings?.section,
|
|
51
|
-
defaultProp:
|
|
51
|
+
defaultProp: a?.settings?.section,
|
|
52
52
|
caller: r
|
|
53
53
|
}), x = e((e) => {
|
|
54
54
|
"section" in e && c(e.section), e.accounts && "accountId" in e.accounts && u(e.accounts.accountId ?? null), e.creditCards && ("cardId" in e.creditCards && f(e.creditCards.cardId ?? null), "pagination" in e.creditCards && g(e.creditCards.pagination)), e.debitCards && ("cardId" in e.debitCards && m(e.debitCards.cardId ?? null), "pagination" in e.debitCards && v(e.debitCards.pagination)), e.settings && "section" in e.settings && b(e.settings.section);
|
|
@@ -105,10 +105,11 @@ function C() {
|
|
|
105
105
|
return /* @__PURE__ */ f(m, { children: e.expensePlaceholders.expensesUnavailable });
|
|
106
106
|
}
|
|
107
107
|
function w() {
|
|
108
|
-
let { selection: e,
|
|
108
|
+
let { selection: e, resolvedSelection: t, navigate: n } = d();
|
|
109
109
|
return /* @__PURE__ */ f(l, {
|
|
110
110
|
selectedSection: e?.settings?.section,
|
|
111
|
-
|
|
111
|
+
defaultSelectedSection: t.settings.section,
|
|
112
|
+
onSelectedSectionChange: (e) => n({ settings: { section: e } })
|
|
112
113
|
});
|
|
113
114
|
}
|
|
114
115
|
var T = {
|