@tesouro/embedded-components-react 0.3.62 → 0.4.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/dist/index.js CHANGED
@@ -32,25 +32,14 @@ import { UploadReceiptWidget as B } from "./libs/tesouro-embedded-components-rea
32
32
  import { ExpenseRequirementsWidget as V } from "./libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js";
33
33
  import { ExpenseManagementWidget as H } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js";
34
34
  import { ReceiptMatchWidget as U } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js";
35
- import { TagsWidget as W } from "./libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js";
36
- import { TeamWidget as G } from "./libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js";
37
- import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as K } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index5.js";
38
- import { ACCOUNT_DELETE_DIALOG_LABELS_EN as q, ACCOUNT_FORM_SHEET_LABELS_EN as J, CHART_OF_ACCOUNTS_LABELS_EN as Y } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index2.js";
39
- import { ChartOfAccountsTable as X } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index3.js";
40
- import { AccountFormSheet as Z } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index4.js";
41
- import { AccountDeleteDialog as Q } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index5.js";
42
- import { ChartOfAccountsWidget as $ } from "./libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js";
43
- import { HELP_WIDGET_LABELS_EN as ee } from "./libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index2.js";
44
- import { HELP_FAQ_EN as te } from "./libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index3.js";
45
- import { HelpWidget as ne } from "./libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js";
46
- import { ProfileWidget as re } from "./libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js";
47
- import { SettingsWidget as ie } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
48
- import { DEFAULT_FEATURE_LABELS as ae } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index3.js";
49
- import { TRANSFERS_WIDGET_LABELS_EN as oe } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
50
- import { TransfersWidget as se } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index7.js";
51
- import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as ce } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
52
- import { AcceptDisclosuresWidget as le } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js";
53
- import { WidgetSuite as ue } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js";
35
+ import { HELP_FAQ_EN as W } from "./libs/tesouro-embedded-components-react/help-widget/ui/contract/dist/index3.js";
36
+ import { SettingsWidget as G } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
37
+ import { DEFAULT_FEATURE_LABELS as K } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index3.js";
38
+ import { TRANSFERS_WIDGET_LABELS_EN as q } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
39
+ import { TransfersWidget as J } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index7.js";
40
+ import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as Y } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
41
+ import { AcceptDisclosuresWidget as X } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js";
42
+ import { WidgetSuite as Z } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js";
54
43
  import "./lib/WidgetSuite.js";
55
44
  import "./lib/AcceptDisclosuresWidget.js";
56
45
  import "./lib/BankAccountsWidget.js";
@@ -64,27 +53,22 @@ import "./lib/ExpenseApprovalPoliciesWidget.js";
64
53
  import "./lib/ExpenseRequirementsWidget.js";
65
54
  import "./lib/BalancesWidget.js";
66
55
  import "./lib/InsightsWidget.js";
67
- import "./lib/ChartOfAccountsWidget.js";
68
- import "./lib/HelpWidget.js";
69
56
  import "./lib/InvoicingWidget.js";
70
- import { LinkedAccountsWidget as de } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index10.js";
57
+ import { LinkedAccountsWidget as Q } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index10.js";
71
58
  import "./lib/LinkedAccountsWidget.js";
72
- import { ADDITIONAL_OWNERS_LABELS_EN as fe } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js";
73
- import { BUSINESS_DETAILS_LABELS_EN as pe } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js";
74
- import { PERSONAL_DETAILS_LABELS_EN as me } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js";
75
- import { RESULT_LABELS_EN as he } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
76
- import { BankAccountOnboardingWidget as ge } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js";
59
+ import { ADDITIONAL_OWNERS_LABELS_EN as $ } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js";
60
+ import { BUSINESS_DETAILS_LABELS_EN as ee } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js";
61
+ import { PERSONAL_DETAILS_LABELS_EN as te } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js";
62
+ import { RESULT_LABELS_EN as ne } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js";
63
+ import { BankAccountOnboardingWidget as re } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js";
77
64
  import "./lib/BankAccountOnboardingWidget.js";
78
- import { ProductsWidget as _e } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js";
65
+ import { ProductsWidget as ie } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js";
79
66
  import "./lib/ProductsWidget.js";
80
- import "./lib/ProfileWidget.js";
81
67
  import "./lib/ReceivablesWidget.js";
82
68
  import "./lib/ReceiptMatchWidget.js";
83
69
  import "./lib/SettingsWidget.js";
84
- import "./lib/TagsWidget.js";
85
- import "./lib/TeamWidget.js";
86
70
  import "./lib/TransfersWidget.js";
87
71
  import "./lib/UploadReceiptWidget.js";
88
- import { WidgetProvider as ve } from "./lib/WidgetProviderPublic.js";
72
+ import { WidgetProvider as ae } from "./lib/WidgetProviderPublic.js";
89
73
  import "./lib/WidgetProvider.js";
90
- export { ce as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, q as ACCOUNT_DELETE_DIALOG_LABELS_EN, J as ACCOUNT_FORM_SHEET_LABELS_EN, fe as ADDITIONAL_OWNERS_LABELS_EN, le as AcceptDisclosuresWidget, Q as AccountDeleteDialog, Z as AccountFormSheet, A as BALANCES_WIDGET_LABELS_EN, pe as BUSINESS_DETAILS_LABELS_EN, j as BalancesWidget, ge as BankAccountOnboardingWidget, w as BankAccountsWidget, E as BillPayWidget, Y as CHART_OF_ACCOUNTS_LABELS_EN, K as CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, D as CardDetailsWidget, X as ChartOfAccountsTable, $ as ChartOfAccountsWidget, T as CounterpartsWidget, O as CreditCardsWidget, k as DebitCardsWidget, s as ERROR_STATE_ID, z as ExpenseApprovalPoliciesWidget, H as ExpenseManagementWidget, V as ExpenseRequirementsWidget, te as HELP_FAQ_EN, ee as HELP_WIDGET_LABELS_EN, ne as HelpWidget, M as INSIGHTS_FEATURE_LABELS_EN, N as INSIGHTS_WIDGET_LABELS_EN, c as Implementation, F as InsightsWidget, I as InvoicingWidget, de as LinkedAccountsWidget, me as PERSONAL_DETAILS_LABELS_EN, _e as ProductsWidget, re as ProfileWidget, he as RESULT_LABELS_EN, U as ReceiptMatchWidget, L as ReceivablesWidget, _ as RefreshingRootWidgetProvider, m as RootWidgetProvider, P as SINGLE_INSIGHT_LABELS_EN, R as SettingsSection, ie as SettingsWidget, ae as TRANSFERS_FEATURE_LABELS_EN, oe as TRANSFERS_WIDGET_LABELS_EN, W as TagsWidget, G as TeamWidget, se as TransfersWidget, i as UIFramework, B as UploadReceiptWidget, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, ve as WidgetProvider, ue as WidgetSuite, n as WidgetSuiteSectionId, h as WidgetTokenRefreshProvider, r as cloneEmbeddedClient, l as getGlobalWidgetConfig, f as getGlobalWidgetInitState, a as registerDesignSystemEnsurer, o as registerUIRenderers, u as setGlobalWidgetConfig, p as subscribeToGlobalWidgetInitState, d as updateGlobalWidgetConfig, v as useDisclosuresAcceptanceSurface, y as useOwnWidgetConfig, b as useRefetchWidget, x as useWidgetConfig, S as useWidgetError, C as useWidgetLoading, g as useWidgetToken };
74
+ export { Y as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, $ as ADDITIONAL_OWNERS_LABELS_EN, X as AcceptDisclosuresWidget, A as BALANCES_WIDGET_LABELS_EN, ee as BUSINESS_DETAILS_LABELS_EN, j as BalancesWidget, re as BankAccountOnboardingWidget, w as BankAccountsWidget, E as BillPayWidget, D as CardDetailsWidget, T as CounterpartsWidget, O as CreditCardsWidget, k as DebitCardsWidget, s as ERROR_STATE_ID, z as ExpenseApprovalPoliciesWidget, H as ExpenseManagementWidget, V as ExpenseRequirementsWidget, W as HELP_FAQ_EN, M as INSIGHTS_FEATURE_LABELS_EN, N as INSIGHTS_WIDGET_LABELS_EN, c as Implementation, F as InsightsWidget, I as InvoicingWidget, Q as LinkedAccountsWidget, te as PERSONAL_DETAILS_LABELS_EN, ie as ProductsWidget, ne as RESULT_LABELS_EN, U as ReceiptMatchWidget, L as ReceivablesWidget, _ as RefreshingRootWidgetProvider, m as RootWidgetProvider, P as SINGLE_INSIGHT_LABELS_EN, R as SettingsSection, G as SettingsWidget, K as TRANSFERS_FEATURE_LABELS_EN, q as TRANSFERS_WIDGET_LABELS_EN, J as TransfersWidget, i as UIFramework, B as UploadReceiptWidget, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, ae as WidgetProvider, Z as WidgetSuite, n as WidgetSuiteSectionId, h as WidgetTokenRefreshProvider, r as cloneEmbeddedClient, l as getGlobalWidgetConfig, f as getGlobalWidgetInitState, a as registerDesignSystemEnsurer, o as registerUIRenderers, u as setGlobalWidgetConfig, p as subscribeToGlobalWidgetInitState, d as updateGlobalWidgetConfig, v as useDisclosuresAcceptanceSurface, y as useOwnWidgetConfig, b as useRefetchWidget, x as useWidgetConfig, S as useWidgetError, C as useWidgetLoading, g as useWidgetToken };
@@ -12,13 +12,46 @@ interface SettingsWidgetSection {
12
12
  content: ReactNode;
13
13
  }
14
14
 
15
- interface FinopsThemeColors {
16
- primary?: string;
17
- primaryForeground?: string;
15
+ /**
16
+ * Static FAQ content for the Help widget.
17
+ *
18
+ * The shape mirrors the original MUI `HelpPage` rich-text model so the renderer
19
+ * can reproduce paragraphs, ordered/unordered bullet lists, nested bullets, and
20
+ * inline `<bold>…</bold>` runs. Callers may supply their own `HelpFaqSection[]`
21
+ * to override the default content below.
22
+ */
23
+ /** Which list marker to render for a group of bullet points. */
24
+ type HelpFaqBulletType = 'bullet' | 'numeric';
25
+ /** A single bullet point, optionally with its own nested list. */
26
+ interface HelpFaqBullet {
27
+ text: string;
28
+ bulletPointType?: HelpFaqBulletType;
29
+ bulletPoints?: HelpFaqBullet[];
18
30
  }
19
- interface MoniteWrapperProps {
20
- finopsThemeColors?: FinopsThemeColors;
31
+ /** One answer block: a paragraph, optionally followed by a bullet list. */
32
+ interface HelpFaqAnswer {
33
+ text: string;
34
+ bulletPointType?: HelpFaqBulletType;
35
+ bulletPoints?: HelpFaqBullet[];
36
+ }
37
+ /** A question and its ordered list of answer blocks. */
38
+ interface HelpFaqItem {
39
+ question: string;
40
+ answers: HelpFaqAnswer[];
41
+ }
42
+ /** A titled group of questions rendered as a single card. */
43
+ interface HelpFaqSection {
44
+ title: string;
45
+ items: HelpFaqItem[];
21
46
  }
47
+ /**
48
+ * Default English FAQ content, ported from the original
49
+ * `embedded-banking-dashboard-settings` Help page (`defaultWidgetFaqContent` —
50
+ * the embedded-widget variant, which omits the password-management questions
51
+ * since embedded users authenticate through the provider). A stray "Testing 1"
52
+ * placeholder bullet from the source has been dropped.
53
+ */
54
+ declare const HELP_FAQ_EN: HelpFaqSection[];
22
55
 
23
56
  type AuthToken = string | undefined;
24
57
  interface Auth {
@@ -645,6 +678,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
645
678
  providerLabels?: Partial<WidgetProviderLabels>;
646
679
  }
647
680
 
681
+ interface FinopsThemeColors {
682
+ primary?: string;
683
+ primaryForeground?: string;
684
+ }
685
+ interface MoniteWrapperProps {
686
+ finopsThemeColors?: FinopsThemeColors;
687
+ }
688
+
648
689
  type MoniteRegionProviderProps = WidgetProviderProps & MoniteWrapperProps;
649
690
 
650
691
  interface FeatureLabels {
@@ -715,6 +756,11 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
715
756
  * support address to fall back on. The bank name in that line comes from
716
757
  * widget init, so this is the only value a host needs to supply. */
717
758
  helpContactUrl?: string;
759
+ /** Forwarded to the embedded Help section's {@link HelpWidget} — the FAQ it
760
+ * renders. Defaults to the package's own list. A host that owns surfaces the
761
+ * package cannot answer for (passwords, say) supplies an extended list here;
762
+ * it is the reason a host does not need `helpContent` just to change copy. */
763
+ helpFaq?: HelpFaqSection[];
718
764
  /** Forwarded to the embedded Profile section's {@link ProfileWidget} — where
719
765
  * its "to change this information, contact your bank" line links. The line
720
766
  * falls back to a plain, unlinked sentence when unset, for the same reason
@@ -749,5 +795,5 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
749
795
  }
750
796
  declare function SettingsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, finopsThemeColors, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: SettingsWidgetProps): React.JSX.Element;
751
797
 
752
- export { SettingsSection, SettingsWidget };
753
- export type { SettingsWidgetAdditionalSection, FeatureLabels as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId };
798
+ export { HELP_FAQ_EN, SettingsSection, SettingsWidget };
799
+ export type { HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, SettingsWidgetAdditionalSection, FeatureLabels as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId };
@@ -1,4 +1,6 @@
1
1
  import { SettingsSection as e } from "../libs/tesouro-embedded-components-react/settings-widget/feature/dist/index4.js";
2
- import { SettingsWidget as t } from "../libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.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";
4
+ import { SettingsWidget as n } from "../libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js";
3
5
  import "../libs/tesouro-embedded-components-react/settings-widget/feature/dist/index.js";
4
- export { e as SettingsSection, t as SettingsWidget };
6
+ export { t as HELP_FAQ_EN, e as SettingsSection, n as SettingsWidget };
@@ -1718,6 +1718,39 @@ interface SettingsWidgetSection {
1718
1718
  content: ReactNode;
1719
1719
  }
1720
1720
 
1721
+ /**
1722
+ * Static FAQ content for the Help widget.
1723
+ *
1724
+ * The shape mirrors the original MUI `HelpPage` rich-text model so the renderer
1725
+ * can reproduce paragraphs, ordered/unordered bullet lists, nested bullets, and
1726
+ * inline `<bold>…</bold>` runs. Callers may supply their own `HelpFaqSection[]`
1727
+ * to override the default content below.
1728
+ */
1729
+ /** Which list marker to render for a group of bullet points. */
1730
+ type HelpFaqBulletType = 'bullet' | 'numeric';
1731
+ /** A single bullet point, optionally with its own nested list. */
1732
+ interface HelpFaqBullet {
1733
+ text: string;
1734
+ bulletPointType?: HelpFaqBulletType;
1735
+ bulletPoints?: HelpFaqBullet[];
1736
+ }
1737
+ /** One answer block: a paragraph, optionally followed by a bullet list. */
1738
+ interface HelpFaqAnswer {
1739
+ text: string;
1740
+ bulletPointType?: HelpFaqBulletType;
1741
+ bulletPoints?: HelpFaqBullet[];
1742
+ }
1743
+ /** A question and its ordered list of answer blocks. */
1744
+ interface HelpFaqItem {
1745
+ question: string;
1746
+ answers: HelpFaqAnswer[];
1747
+ }
1748
+ /** A titled group of questions rendered as a single card. */
1749
+ interface HelpFaqSection {
1750
+ title: string;
1751
+ items: HelpFaqItem[];
1752
+ }
1753
+
1721
1754
  interface FinopsThemeColors {
1722
1755
  primary?: string;
1723
1756
  primaryForeground?: string;
@@ -1796,6 +1829,11 @@ interface SettingsWidgetProps extends MoniteRegionProviderProps {
1796
1829
  * support address to fall back on. The bank name in that line comes from
1797
1830
  * widget init, so this is the only value a host needs to supply. */
1798
1831
  helpContactUrl?: string;
1832
+ /** Forwarded to the embedded Help section's {@link HelpWidget} — the FAQ it
1833
+ * renders. Defaults to the package's own list. A host that owns surfaces the
1834
+ * package cannot answer for (passwords, say) supplies an extended list here;
1835
+ * it is the reason a host does not need `helpContent` just to change copy. */
1836
+ helpFaq?: HelpFaqSection[];
1799
1837
  /** Forwarded to the embedded Profile section's {@link ProfileWidget} — where
1800
1838
  * its "to change this information, contact your bank" line links. The line
1801
1839
  * falls back to a plain, unlinked sentence when unset, for the same reason
@@ -1,3 +1,3 @@
1
- import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as e } from "./index5.js";
2
- import { ChartOfAccountsWidget as t } from "./index8.js";
3
- export { e as CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN, t as ChartOfAccountsWidget };
1
+ import "./index5.js";
2
+ import { ChartOfAccountsWidget as e } from "./index8.js";
3
+ export { e as ChartOfAccountsWidget };
@@ -1,5 +1,5 @@
1
- import { ACCOUNT_DELETE_DIALOG_LABELS_EN as e, ACCOUNT_FORM_SHEET_LABELS_EN as t, CHART_OF_ACCOUNTS_LABELS_EN as n } from "./index2.js";
2
- import { ChartOfAccountsTable as r } from "./index3.js";
3
- import { AccountFormSheet as i } from "./index4.js";
4
- import { AccountDeleteDialog as a } from "./index5.js";
5
- export { e as ACCOUNT_DELETE_DIALOG_LABELS_EN, t as ACCOUNT_FORM_SHEET_LABELS_EN, a as AccountDeleteDialog, i as AccountFormSheet, n as CHART_OF_ACCOUNTS_LABELS_EN, r as ChartOfAccountsTable };
1
+ import { ACCOUNT_DELETE_DIALOG_LABELS_EN as e, ACCOUNT_FORM_SHEET_LABELS_EN as t } from "./index2.js";
2
+ import { ChartOfAccountsTable as n } from "./index3.js";
3
+ import { AccountFormSheet as r } from "./index4.js";
4
+ import { AccountDeleteDialog as i } from "./index5.js";
5
+ export { e as ACCOUNT_DELETE_DIALOG_LABELS_EN, t as ACCOUNT_FORM_SHEET_LABELS_EN, i as AccountDeleteDialog, r as AccountFormSheet, n as ChartOfAccountsTable };
@@ -1,2 +1,4 @@
1
- import { HelpWidget as e } from "./index3.js";
2
- export { e as HelpWidget };
1
+ import { HELP_FAQ_EN as e } from "../../ui/contract/dist/index3.js";
2
+ import "../../ui/contract/dist/index.js";
3
+ import { HelpWidget as t } from "./index3.js";
4
+ export { e as HELP_FAQ_EN, t as HelpWidget };
@@ -1,6 +1,6 @@
1
- import { HELP_WIDGET_LABELS_EN as e } from "../../contract/dist/index2.js";
2
- import { HELP_FAQ_EN as t } from "../../contract/dist/index3.js";
1
+ import "../../contract/dist/index2.js";
2
+ import "../../contract/dist/index3.js";
3
3
  import "../../contract/dist/index4.js";
4
- import { HelpWidgetShadcn as n } from "./index3.js";
4
+ import { HelpWidgetShadcn as e } from "./index3.js";
5
5
  import "./index4.js";
6
- export { t as HELP_FAQ_EN, e as HELP_WIDGET_LABELS_EN, n as HelpWidgetShadcn };
6
+ export { e as HelpWidgetShadcn };
@@ -1,6 +1,5 @@
1
- import { HELP_WIDGET_LABELS_EN as e } from "../../contract/dist/index2.js";
2
- import { HELP_FAQ_EN as t } from "../../contract/dist/index3.js";
1
+ import "../../contract/dist/index2.js";
2
+ import "../../contract/dist/index3.js";
3
3
  import "../../contract/dist/index4.js";
4
4
  import "../../contract/dist/index.js";
5
5
  import "./index3.js";
6
- export { t as HELP_FAQ_EN, e as HELP_WIDGET_LABELS_EN };
@@ -43,69 +43,72 @@ var S = {
43
43
  [c.Expense]: [t.ApprovalPolicyWriteOrg, t.ExpenseWriteOrg],
44
44
  [c.Help]: []
45
45
  };
46
- function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: d, 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 = {
46
+ function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: d, helpContactUrl: C, helpFaq: w, profileContactUrl: T, selectedSection: E, defaultSelectedSection: D, onSelectedSectionChange: O, additionalSections: k, profileContent: A, teamContent: j, billPayContent: M, helpContent: N, expenseContent: P, accountingContent: F, tagsContent: I, invoiceContent: L }) {
47
+ let R = {
48
48
  ...s,
49
49
  ...o
50
- }, R = n();
50
+ }, z = n();
51
51
  y(() => {
52
- R(u.Mounted);
53
- }, [R]);
54
- let { initResponse: z } = r(), B = z?.scopes, V = [
52
+ z(u.Mounted);
53
+ }, [z]);
54
+ let { initResponse: B } = r(), V = B?.scopes, H = [
55
55
  {
56
56
  id: c.Profile,
57
- label: L.profileSection,
58
- content: k ?? /* @__PURE__ */ b(v, { contactUrl: w })
57
+ label: R.profileSection,
58
+ content: A ?? /* @__PURE__ */ b(v, { contactUrl: T })
59
59
  },
60
60
  {
61
61
  id: c.Team,
62
- label: L.teamSection,
63
- content: A ?? /* @__PURE__ */ b(m, { acceptInviteRedirectUri: d })
62
+ label: R.teamSection,
63
+ content: j ?? /* @__PURE__ */ b(m, { acceptInviteRedirectUri: d })
64
64
  },
65
65
  {
66
66
  id: c.Invoice,
67
- label: L.invoiceSection,
68
- content: I ?? /* @__PURE__ */ b(a, {})
67
+ label: R.invoiceSection,
68
+ content: L ?? /* @__PURE__ */ b(a, {})
69
69
  },
70
70
  {
71
71
  id: c.Expense,
72
- label: L.expenseSection,
73
- content: N ?? /* @__PURE__ */ b(f, {
74
- approvalsLabel: L.expenseApprovalsTab,
75
- requirementsLabel: L.expenseRequirementsTab
72
+ label: R.expenseSection,
73
+ content: P ?? /* @__PURE__ */ b(f, {
74
+ approvalsLabel: R.expenseApprovalsTab,
75
+ requirementsLabel: R.expenseRequirementsTab
76
76
  })
77
77
  },
78
78
  {
79
79
  id: c.BillPay,
80
- label: L.billPaySection,
81
- content: j ?? /* @__PURE__ */ b(i, {})
80
+ label: R.billPaySection,
81
+ content: M ?? /* @__PURE__ */ b(i, {})
82
82
  },
83
83
  {
84
84
  id: c.Accounting,
85
- label: L.accountingSection,
86
- content: P ?? /* @__PURE__ */ b(g, {})
85
+ label: R.accountingSection,
86
+ content: F ?? /* @__PURE__ */ b(g, {})
87
87
  },
88
88
  {
89
89
  id: c.Tags,
90
- label: L.tagsSection,
91
- content: F ?? /* @__PURE__ */ b(p, {})
90
+ label: R.tagsSection,
91
+ content: I ?? /* @__PURE__ */ b(p, {})
92
92
  },
93
93
  {
94
94
  id: c.Help,
95
- label: L.helpSection,
96
- content: M ?? /* @__PURE__ */ b(_, { contactUrl: C })
95
+ label: R.helpSection,
96
+ content: N ?? /* @__PURE__ */ b(_, {
97
+ contactUrl: C,
98
+ faq: w
99
+ })
97
100
  }
98
- ], H = l(V.filter((t) => S[t.id].every((t) => e(B, [t]))), O ?? []), U = H[0]?.id ?? "", [W, G] = x({
99
- prop: T,
100
- defaultProp: E ?? U,
101
- onChange: D,
101
+ ], U = l(H.filter((t) => S[t.id].every((t) => e(V, [t]))), k ?? []), W = U[0]?.id ?? "", [G, K] = x({
102
+ prop: E,
103
+ defaultProp: D ?? W,
104
+ onChange: O,
102
105
  caller: "SettingsWidget"
103
- }), K = H.some((e) => e.id === W) ? W : U;
106
+ }), q = U.some((e) => e.id === G) ? G : W;
104
107
  return /* @__PURE__ */ b(h, {
105
108
  labels: t,
106
- sections: H,
107
- selectedSectionId: K,
108
- onSectionChange: G
109
+ sections: U,
110
+ selectedSectionId: q,
111
+ onSectionChange: K
109
112
  });
110
113
  }
111
114
  function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {