@tesouro/embedded-components-react 0.6.5 → 0.7.0
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 +0 -1
- package/dist/index.d.ts +12 -12
- package/dist/lib/SettingsWidget.d.ts +2 -12
- package/dist/lib/WidgetSuite.d.ts +1 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -536,7 +536,6 @@ A single navigable settings surface combining profile, team, invoice, bill-pay,
|
|
|
536
536
|
| `helpContactUrl` | `string` | `undefined` | Link (URL or `mailto:`) for the Help section's "Contact Us" line; hidden when unset. |
|
|
537
537
|
| `helpFaq` | `HelpFaqSection[]` | `HELP_FAQ_EN` | FAQ shown in the Help section. Extend the exported `HELP_FAQ_EN` to add your own questions. |
|
|
538
538
|
| `helpContent` | `ReactNode` | Help widget | Replaces the help section content. |
|
|
539
|
-
| `finopsThemeColors` | `FinopsThemeColors` | `undefined` | Legacy theme overrides; currently has no effect. |
|
|
540
539
|
|
|
541
540
|
### TransfersWidget
|
|
542
541
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3562,16 +3562,6 @@ interface HelpFaqSection {
|
|
|
3562
3562
|
*/
|
|
3563
3563
|
declare const HELP_FAQ_EN: HelpFaqSection[];
|
|
3564
3564
|
|
|
3565
|
-
interface FinopsThemeColors {
|
|
3566
|
-
primary?: string;
|
|
3567
|
-
primaryForeground?: string;
|
|
3568
|
-
}
|
|
3569
|
-
interface MoniteWrapperProps {
|
|
3570
|
-
finopsThemeColors?: FinopsThemeColors;
|
|
3571
|
-
}
|
|
3572
|
-
|
|
3573
|
-
type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
|
|
3574
|
-
|
|
3575
3565
|
interface FeatureLabels$1 {
|
|
3576
3566
|
profileSection: string;
|
|
3577
3567
|
teamSection: string;
|
|
@@ -3626,7 +3616,7 @@ interface SettingsWidgetAdditionalSection extends SettingsWidgetSection {
|
|
|
3626
3616
|
after?: SettingsSection;
|
|
3627
3617
|
}
|
|
3628
3618
|
|
|
3629
|
-
interface SettingsWidgetProps extends
|
|
3619
|
+
interface SettingsWidgetProps extends WidgetProviderProps {
|
|
3630
3620
|
labels?: Partial<Labels>;
|
|
3631
3621
|
featureLabels?: Partial<FeatureLabels$1>;
|
|
3632
3622
|
/** Forwarded to the embedded Team section's {@link TeamWidget} — the
|
|
@@ -3678,7 +3668,7 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
3678
3668
|
invoiceContent?: ReactNode;
|
|
3679
3669
|
legalContent?: ReactNode;
|
|
3680
3670
|
}
|
|
3681
|
-
declare function SettingsWidget({
|
|
3671
|
+
declare function SettingsWidget({ labels, featureLabels, acceptInviteRedirectUri, helpContactUrl, helpFaq, profileContactUrl, selectedSection, defaultSelectedSection, onSelectedSectionChange, additionalSections, profileContent, teamContent, billPayContent, helpContent, expenseContent, accountingContent, invoiceContent, legalContent, ...widgetProviderProps }: SettingsWidgetProps): React.JSX.Element;
|
|
3682
3672
|
|
|
3683
3673
|
interface TransfersWidgetLabels {
|
|
3684
3674
|
widgetTitle: string;
|
|
@@ -4449,6 +4439,16 @@ declare module '@mui/material/transitions' {
|
|
|
4449
4439
|
}
|
|
4450
4440
|
}
|
|
4451
4441
|
|
|
4442
|
+
interface FinopsThemeColors {
|
|
4443
|
+
primary?: string;
|
|
4444
|
+
primaryForeground?: string;
|
|
4445
|
+
}
|
|
4446
|
+
interface MoniteWrapperProps {
|
|
4447
|
+
finopsThemeColors?: FinopsThemeColors;
|
|
4448
|
+
}
|
|
4449
|
+
|
|
4450
|
+
type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
|
|
4451
|
+
|
|
4452
4452
|
type BillPayWidgetMoniteProps = MoniteRegionProviderProps & Omit<PayablesProps, 'pageTitleComponent'> & {
|
|
4453
4453
|
pageTitleComponent?: PayablesProps['pageTitleComponent'];
|
|
4454
4454
|
};
|
|
@@ -678,16 +678,6 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
678
678
|
providerLabels?: Partial<WidgetProviderLabels>;
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
-
interface FinopsThemeColors {
|
|
682
|
-
primary?: string;
|
|
683
|
-
primaryForeground?: string;
|
|
684
|
-
}
|
|
685
|
-
interface MoniteWrapperProps {
|
|
686
|
-
finopsThemeColors?: FinopsThemeColors;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
|
|
690
|
-
|
|
691
681
|
interface FeatureLabels {
|
|
692
682
|
profileSection: string;
|
|
693
683
|
teamSection: string;
|
|
@@ -742,7 +732,7 @@ interface SettingsWidgetAdditionalSection extends SettingsWidgetSection {
|
|
|
742
732
|
after?: SettingsSection;
|
|
743
733
|
}
|
|
744
734
|
|
|
745
|
-
interface SettingsWidgetProps extends
|
|
735
|
+
interface SettingsWidgetProps extends WidgetProviderProps {
|
|
746
736
|
labels?: Partial<Labels>;
|
|
747
737
|
featureLabels?: Partial<FeatureLabels>;
|
|
748
738
|
/** Forwarded to the embedded Team section's {@link TeamWidget} — the
|
|
@@ -794,7 +784,7 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
|
|
|
794
784
|
invoiceContent?: ReactNode;
|
|
795
785
|
legalContent?: ReactNode;
|
|
796
786
|
}
|
|
797
|
-
declare function SettingsWidget({
|
|
787
|
+
declare function SettingsWidget({ labels, featureLabels, acceptInviteRedirectUri, helpContactUrl, helpFaq, profileContactUrl, selectedSection, defaultSelectedSection, onSelectedSectionChange, additionalSections, profileContent, teamContent, billPayContent, helpContent, expenseContent, accountingContent, invoiceContent, legalContent, ...widgetProviderProps }: SettingsWidgetProps): React.JSX.Element;
|
|
798
788
|
|
|
799
789
|
export { HELP_FAQ_EN, SettingsSection, SettingsWidget };
|
|
800
790
|
export type { HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, SettingsWidgetAdditionalSection, FeatureLabels as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId };
|
|
@@ -2601,16 +2601,6 @@ interface HelpFaqSection {
|
|
|
2601
2601
|
items: HelpFaqItem[];
|
|
2602
2602
|
}
|
|
2603
2603
|
|
|
2604
|
-
interface FinopsThemeColors {
|
|
2605
|
-
primary?: string;
|
|
2606
|
-
primaryForeground?: string;
|
|
2607
|
-
}
|
|
2608
|
-
interface MoniteWrapperProps {
|
|
2609
|
-
finopsThemeColors?: FinopsThemeColors;
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
|
|
2613
|
-
|
|
2614
2604
|
interface FeatureLabels$1 {
|
|
2615
2605
|
profileSection: string;
|
|
2616
2606
|
teamSection: string;
|
|
@@ -2665,7 +2655,7 @@ interface SettingsWidgetAdditionalSection extends SettingsWidgetSection {
|
|
|
2665
2655
|
after?: SettingsSection;
|
|
2666
2656
|
}
|
|
2667
2657
|
|
|
2668
|
-
interface SettingsWidgetProps extends
|
|
2658
|
+
interface SettingsWidgetProps extends WidgetProviderProps {
|
|
2669
2659
|
labels?: Partial<Labels>;
|
|
2670
2660
|
featureLabels?: Partial<FeatureLabels$1>;
|
|
2671
2661
|
/** Forwarded to the embedded Team section's {@link TeamWidget} — the
|
|
@@ -6,10 +6,9 @@ import { hasAnyScope as e } from "../../../../../shared/data-access/dist/lib/has
|
|
|
6
6
|
import { Scope as t } from "../../../../../shared/data-access/dist/lib/scopes.js";
|
|
7
7
|
import "../../../../../shared/data-access/dist/index.js";
|
|
8
8
|
import { useAnalyticsTrack as n } from "../../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
9
|
-
import {
|
|
9
|
+
import { WidgetProvider as r } from "../../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
10
|
+
import { useWidgetConfig as i } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
11
|
import "../../../../../shared/feature/dist/index.js";
|
|
11
|
-
import { MoniteRegionProvider as i } from "../../../../../shared/monite-wrapper/feature/dist/lib/MoniteRegionProvider.js";
|
|
12
|
-
import "../../../../../shared/monite-wrapper/feature/dist/index.js";
|
|
13
12
|
import { ApprovalPoliciesSettings as a } from "../../../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
|
|
14
13
|
import "../../../../../shared/approval-policy/feature/dist/index.js";
|
|
15
14
|
import { DEFAULT_FEATURE_LABELS as o } from "./labels.js";
|
|
@@ -49,15 +48,15 @@ var w = {
|
|
|
49
48
|
[s.Legal]: [],
|
|
50
49
|
[s.Help]: []
|
|
51
50
|
};
|
|
52
|
-
function T({ labels: t, featureLabels:
|
|
51
|
+
function T({ labels: t, featureLabels: r, acceptInviteRedirectUri: u, helpContactUrl: T, helpFaq: E, profileContactUrl: D, selectedSection: O, defaultSelectedSection: k, onSelectedSectionChange: A, additionalSections: j, profileContent: M, teamContent: N, billPayContent: P, helpContent: F, expenseContent: I, accountingContent: L, invoiceContent: R, legalContent: z }) {
|
|
53
52
|
let B = {
|
|
54
53
|
...o,
|
|
55
|
-
...
|
|
54
|
+
...r
|
|
56
55
|
}, V = x(null), H = n();
|
|
57
56
|
b(() => {
|
|
58
57
|
H(l.Mounted);
|
|
59
58
|
}, [H]);
|
|
60
|
-
let { initResponse: U } =
|
|
59
|
+
let { initResponse: U } = i(), W = U?.scopes, G = [
|
|
61
60
|
{
|
|
62
61
|
id: s.Profile,
|
|
63
62
|
label: B.profileSection,
|
|
@@ -129,24 +128,30 @@ function T({ labels: t, featureLabels: i, acceptInviteRedirectUri: u, helpContac
|
|
|
129
128
|
onSectionChange: Z
|
|
130
129
|
});
|
|
131
130
|
}
|
|
132
|
-
function E({
|
|
133
|
-
return /* @__PURE__ */ S(
|
|
131
|
+
function E({ labels: e, featureLabels: t, acceptInviteRedirectUri: n, helpContactUrl: i, helpFaq: a, profileContactUrl: o, selectedSection: s, defaultSelectedSection: c, onSelectedSectionChange: l, additionalSections: d, profileContent: f, teamContent: p, billPayContent: m, helpContent: h, expenseContent: g, accountingContent: _, invoiceContent: v, legalContent: y, ...b }) {
|
|
132
|
+
return /* @__PURE__ */ S(r, {
|
|
133
|
+
...b,
|
|
134
134
|
widgetName: u,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
135
|
+
children: /* @__PURE__ */ S(T, {
|
|
136
|
+
labels: e,
|
|
137
|
+
featureLabels: t,
|
|
138
|
+
acceptInviteRedirectUri: n,
|
|
139
|
+
helpContactUrl: i,
|
|
140
|
+
helpFaq: a,
|
|
141
|
+
profileContactUrl: o,
|
|
142
|
+
selectedSection: s,
|
|
143
|
+
defaultSelectedSection: c,
|
|
144
|
+
onSelectedSectionChange: l,
|
|
145
|
+
additionalSections: d,
|
|
146
|
+
profileContent: f,
|
|
147
|
+
teamContent: p,
|
|
148
|
+
billPayContent: m,
|
|
149
|
+
helpContent: h,
|
|
150
|
+
expenseContent: g,
|
|
151
|
+
accountingContent: _,
|
|
152
|
+
invoiceContent: v,
|
|
153
|
+
legalContent: y
|
|
154
|
+
})
|
|
150
155
|
});
|
|
151
156
|
}
|
|
152
157
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.7.0", n = "72322e581dc64f93e281c2e19cc22d6683d79a6a", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|