@tesouro/embedded-components-react 0.11.70 → 0.11.72

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 (97) hide show
  1. package/README.md +1 -0
  2. package/dist/index.css +41 -192
  3. package/dist/index.d.ts +93 -73
  4. package/dist/lib/SettingsWidget.d.ts +5 -1
  5. package/dist/lib/WidgetSuite.d.ts +22 -2
  6. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index3.js +8 -7
  7. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index4.js +4 -1
  8. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index6.js +196 -131
  9. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index.js +4 -4
  10. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index3.js +11 -1
  11. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index4.js +5 -3
  12. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index5.js +38 -32
  13. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index6.js +103 -75
  14. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index7.js +140 -168
  15. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index8.js +97 -87
  16. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +11 -7
  17. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index8.js +0 -1
  18. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index2.js +3 -1
  19. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index3.js +134 -177
  20. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index4.js +110 -176
  21. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index5.js +28 -38
  22. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/ExpenseSettingsTabs/ExpenseSettingsTabs.js +13 -10
  23. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js +28 -24
  24. package/dist/libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index3.js +35 -31
  25. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +2 -0
  26. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -5
  27. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +3 -0
  28. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index11.js +2 -1
  29. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index12.js +22 -36
  30. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index16.js +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index17.js +54 -60
  32. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index20.js +75 -60
  33. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index3.js +42 -27
  34. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index6.js +89 -82
  35. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index9.js +39 -38
  36. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +32 -32
  37. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/ui/dist/index2.js +1 -1
  38. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/ui/dist/index3.js +56 -71
  39. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +3 -0
  40. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +86 -66
  41. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index13.js +51 -51
  42. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index15.js +146 -132
  43. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +95 -99
  44. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index3.js +1 -0
  45. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index4.js +8 -27
  46. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +69 -72
  47. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index6.js +51 -51
  48. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index.js +9 -11
  49. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index10.js +83 -298
  50. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index11.js +13 -13
  51. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index12.js +122 -75
  52. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index13.js +41 -15
  53. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index14.js +7 -131
  54. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index15.js +147 -48
  55. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index16.js +240 -11
  56. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index17.js +15 -173
  57. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index2.js +38 -10
  58. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index3.js +5 -46
  59. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index4.js +52 -45
  60. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index5.js +101 -25
  61. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index6.js +40 -98
  62. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index7.js +415 -40
  63. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index8.js +261 -332
  64. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index9.js +15 -8
  65. package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +2 -2
  66. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +9 -8
  67. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +136 -122
  68. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index.js +9 -8
  69. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +16 -17
  70. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +99 -100
  71. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index16.js +1 -1
  72. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index17.js +8 -8
  73. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index18.js +10 -55
  74. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index19.js +34 -8
  75. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index20.js +8 -84
  76. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index21.js +86 -0
  77. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +13 -13
  78. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index5.js +17 -18
  79. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index7.js +33 -42
  80. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  81. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +24 -24
  82. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/FileDropZone/FileDropZone.js +62 -0
  83. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/LoadingRegion/LoadingRegion.js +1 -0
  84. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuiteProvider.js +12 -4
  85. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/labels.js +9 -0
  86. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/BillPaySection.js +12 -9
  87. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/CardsSection.js +25 -23
  88. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardQuickActions.js +74 -0
  89. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +20 -16
  90. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/InvoicingSection.js +15 -9
  91. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/SettingsSection.js +15 -8
  92. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/TransfersSection.js +23 -21
  93. package/dist/packages/shared-ui-shadcn/dist/index.js +2336 -2274
  94. package/package.json +1 -1
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index18.js +0 -291
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index19.js +0 -22
  97. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/avatarSwatch.js +0 -26
package/dist/index.d.ts CHANGED
@@ -3687,6 +3687,76 @@ type ExpenseManagementWidgetProps = WidgetProviderProps & ExpenseManagementWidge
3687
3687
  */
3688
3688
  declare function ExpenseManagementWidget({ screenLabels, headerLabels, transactionsTableLabels, filterBarLabels, actionItemsLabels, statusBadgeLabels, transactionDetailsLabels, transactionDetailsCardLabels, transactionDetailsActionsLabels, fileViewerLabels, receiptUpload, bankDisplayName, bankLogoSrc, bankLogoAlt, isBankingTaglineVisible, onSettingsClick, ...widgetProviderProps }: ExpenseManagementWidgetProps): React.JSX.Element;
3689
3689
 
3690
+ interface NoPolicyBannerLabels {
3691
+ Title: string;
3692
+ Body: string;
3693
+ /**
3694
+ * Heading for an org that *has* rules, none of which this editor can show. The
3695
+ * plain `Title` would contradict the notice sitting directly above it, which
3696
+ * has just said how many rules exist.
3697
+ */
3698
+ TitleWithUnlistedRules: string;
3699
+ /** Body for that case. The notice above already explains the why. */
3700
+ BodyWithUnlistedRules: string;
3701
+ CreateRule: string;
3702
+ }
3703
+
3704
+ interface NoPolicyBannerTestIds {
3705
+ root?: string;
3706
+ createRuleButton?: string;
3707
+ /** The disabled-reason wrapper shown in place of the button. */
3708
+ createRuleBlocked?: string;
3709
+ }
3710
+ interface NoPolicyBannerProps {
3711
+ onCreateRule: () => void;
3712
+ disabled?: boolean;
3713
+ /**
3714
+ * Why Create rule is off, shown on hover and on keyboard focus. Omit it for the
3715
+ * transient reasons that explain themselves on screen (a write in flight).
3716
+ */
3717
+ createRuleDisabledReason?: string;
3718
+ /**
3719
+ * Whether the org has rules that simply are not shown here. Switches the copy
3720
+ * off the "none created yet" claim, which would contradict the notice that
3721
+ * sits above this banner and has just counted them.
3722
+ */
3723
+ hasUnlistedRules?: boolean;
3724
+ labels?: Partial<NoPolicyBannerLabels>;
3725
+ testIds?: NoPolicyBannerTestIds;
3726
+ }
3727
+
3728
+ interface GapCoverageAlertLabels {
3729
+ Title: string;
3730
+ Footer: string;
3731
+ }
3732
+
3733
+ /**
3734
+ * One uncovered bill-amount range. `label` is pre-formatted by the caller
3735
+ * (e.g. "$10.01 to $99.99" or "$500.01 or more") — this component renders it
3736
+ * as-is rather than composing range/currency copy itself.
3737
+ */
3738
+ interface GapRange {
3739
+ id: string;
3740
+ label: string;
3741
+ /**
3742
+ * Why a new rule cannot take this range, for the link's tooltip. A range can be
3743
+ * uncovered today and still be spoken for — a rule whose schedule has not
3744
+ * started covers nothing yet but claims its range — in which case starting a
3745
+ * rule here only ever ends in a rejected save. Omit for a range that is free.
3746
+ */
3747
+ blockedReason?: string;
3748
+ }
3749
+ interface GapCoverageAlertTestIds {
3750
+ root?: string;
3751
+ }
3752
+ interface GapCoverageAlertProps {
3753
+ gaps: GapRange[];
3754
+ onSelectGap: (id: string) => void;
3755
+ disabled?: boolean;
3756
+ labels?: Partial<GapCoverageAlertLabels>;
3757
+ testIds?: GapCoverageAlertTestIds;
3758
+ }
3759
+
3690
3760
  interface InsightsWidgetLabels {
3691
3761
  widgetTitle: string;
3692
3762
  filterTabsLabel: string;
@@ -4037,6 +4107,10 @@ interface SettingsWidgetProps extends WidgetProviderProps {
4037
4107
  * falls back to a plain, unlinked sentence when unset, for the same reason
4038
4108
  * {@link SettingsWidgetProps.helpContactUrl} does. */
4039
4109
  profileContactUrl?: string;
4110
+ /** Forwarded to the embedded Profile section's {@link ProfileWidget} —
4111
+ * whether it paints its decorative header band, a soft wash of the theme's
4112
+ * primary color. Defaults to `true`; pass `false` to drop it. */
4113
+ showProfileHeader?: boolean;
4040
4114
  /** The section to show. Leave unset to let the widget own the selection;
4041
4115
  * supply it (with {@link SettingsWidgetProps.onSelectedSectionChange}) to
4042
4116
  * drive navigation from a route, a search param, or host state. A section
@@ -4064,7 +4138,7 @@ interface SettingsWidgetProps extends WidgetProviderProps {
4064
4138
  invoiceContent?: ReactNode;
4065
4139
  legalContent?: ReactNode;
4066
4140
  }
4067
- declare function SettingsWidget({ labels, featureLabels, acceptInviteRedirectUri, teamInitialView, helpContactUrl, helpFaq, profileContactUrl, selectedSection, defaultSelectedSection, onSelectedSectionChange, additionalSections, profileContent, teamContent, billPayContent, helpContent, expenseContent, accountingContent, invoiceContent, legalContent, ...widgetProviderProps }: SettingsWidgetProps): React.JSX.Element;
4141
+ declare function SettingsWidget({ labels, featureLabels, acceptInviteRedirectUri, teamInitialView, helpContactUrl, helpFaq, profileContactUrl, showProfileHeader, selectedSection, defaultSelectedSection, onSelectedSectionChange, additionalSections, profileContent, teamContent, billPayContent, helpContent, expenseContent, accountingContent, invoiceContent, legalContent, ...widgetProviderProps }: SettingsWidgetProps): React.JSX.Element;
4068
4142
 
4069
4143
  interface TransfersWidgetLabels {
4070
4144
  widgetTitle: string;
@@ -4336,6 +4410,21 @@ interface WidgetSuiteSectionTitleLabels {
4336
4410
  * Both are places the gate cannot proceed, and neither is reachable by a correct
4337
4411
  * integration against a healthy API.
4338
4412
  */
4413
+ /**
4414
+ * The quick actions row atop the Dashboard section. Suite-owned rather than
4415
+ * taken from the dashboards' `QuickActions`, which lives outside the embedded
4416
+ * scope; the wording is kept the same so the three surfaces read alike.
4417
+ */
4418
+ interface WidgetSuiteQuickActionsLabels {
4419
+ /** Accessible name of the button group. */
4420
+ groupLabel: string;
4421
+ transferMoney: string;
4422
+ payBill: string;
4423
+ createInvoice: string;
4424
+ uploadReceipt: string;
4425
+ issueCard: string;
4426
+ inviteTeammate: string;
4427
+ }
4339
4428
  interface WidgetSuiteDisclosureLabels {
4340
4429
  /**
4341
4430
  * The first init fetch failed before the disclosure flags were known. The suite
@@ -4463,7 +4552,7 @@ interface WidgetSuiteSectionContentLabels {
4463
4552
  * Every string the suite puts on screen, including the copy inside the widgets
4464
4553
  * it mounts. Two kinds of group, differing in who holds the default:
4465
4554
  *
4466
- * - **Suite-owned** — `shell`, `menu`, `sectionTitle`, `disclosure`,
4555
+ * - **Suite-owned** — `shell`, `menu`, `sectionTitle`, `quickActions`, `disclosure`,
4467
4556
  * `onboardingGate`, and the two card-list titles. Defaulted in
4468
4557
  * {@link WIDGET_SUITE_LABELS_EN}, with an override merged over it.
4469
4558
  * - **Forwarded** — `onboarding`, and every other key under `sections`.
@@ -4480,6 +4569,7 @@ interface WidgetSuiteLabels {
4480
4569
  shell: WidgetSuiteShellLabels;
4481
4570
  menu: WidgetSuiteMenuLabels;
4482
4571
  sectionTitle: WidgetSuiteSectionTitleLabels;
4572
+ quickActions: WidgetSuiteQuickActionsLabels;
4483
4573
  disclosure: WidgetSuiteDisclosureLabels;
4484
4574
  onboardingGate: WidgetSuiteOnboardingGateLabels;
4485
4575
  /** Forwarded to the entry-point onboarding widget, untouched. No default. */
@@ -5031,76 +5121,6 @@ interface ReceivableStatusBadgeLabels {
5031
5121
  unknown: string;
5032
5122
  }
5033
5123
 
5034
- interface NoPolicyBannerLabels {
5035
- Title: string;
5036
- Body: string;
5037
- /**
5038
- * Heading for an org that *has* rules, none of which this editor can show. The
5039
- * plain `Title` would contradict the notice sitting directly above it, which
5040
- * has just said how many rules exist.
5041
- */
5042
- TitleWithUnlistedRules: string;
5043
- /** Body for that case. The notice above already explains the why. */
5044
- BodyWithUnlistedRules: string;
5045
- CreateRule: string;
5046
- }
5047
-
5048
- interface NoPolicyBannerTestIds {
5049
- root?: string;
5050
- createRuleButton?: string;
5051
- /** The disabled-reason wrapper shown in place of the button. */
5052
- createRuleBlocked?: string;
5053
- }
5054
- interface NoPolicyBannerProps {
5055
- onCreateRule: () => void;
5056
- disabled?: boolean;
5057
- /**
5058
- * Why Create rule is off, shown on hover and on keyboard focus. Omit it for the
5059
- * transient reasons that explain themselves on screen (a write in flight).
5060
- */
5061
- createRuleDisabledReason?: string;
5062
- /**
5063
- * Whether the org has rules that simply are not shown here. Switches the copy
5064
- * off the "none created yet" claim, which would contradict the notice that
5065
- * sits above this banner and has just counted them.
5066
- */
5067
- hasUnlistedRules?: boolean;
5068
- labels?: Partial<NoPolicyBannerLabels>;
5069
- testIds?: NoPolicyBannerTestIds;
5070
- }
5071
-
5072
- interface GapCoverageAlertLabels {
5073
- Title: string;
5074
- Footer: string;
5075
- }
5076
-
5077
- /**
5078
- * One uncovered bill-amount range. `label` is pre-formatted by the caller
5079
- * (e.g. "$10.01 to $99.99" or "$500.01 or more") — this component renders it
5080
- * as-is rather than composing range/currency copy itself.
5081
- */
5082
- interface GapRange {
5083
- id: string;
5084
- label: string;
5085
- /**
5086
- * Why a new rule cannot take this range, for the link's tooltip. A range can be
5087
- * uncovered today and still be spoken for — a rule whose schedule has not
5088
- * started covers nothing yet but claims its range — in which case starting a
5089
- * rule here only ever ends in a rejected save. Omit for a range that is free.
5090
- */
5091
- blockedReason?: string;
5092
- }
5093
- interface GapCoverageAlertTestIds {
5094
- root?: string;
5095
- }
5096
- interface GapCoverageAlertProps {
5097
- gaps: GapRange[];
5098
- onSelectGap: (id: string) => void;
5099
- disabled?: boolean;
5100
- labels?: Partial<GapCoverageAlertLabels>;
5101
- testIds?: GapCoverageAlertTestIds;
5102
- }
5103
-
5104
5124
  interface CounterpartsScreenLabels {
5105
5125
  /** Customer-mode create action. */
5106
5126
  createButton: string;
@@ -6583,4 +6603,4 @@ interface CheckAmountAndDetailScreenProps {
6583
6603
  type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
6584
6604
 
6585
6605
  export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BANKING_COMPLIANCE_BANNER_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BankingComplianceBannerWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, InsightsWidget, LinkedAccountsWidget, OFFER_WIDGET_LABELS_EN, OFFER_WIDGET_STATUS_LABELS_EN, OfferBenefitIcon, OfferWidget, OnboardingSuppressionReason, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, THEME_TOKEN_NAMES, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework, WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetProvider, WidgetSuite, WidgetSuiteSectionId, WidgetTokenRefreshProvider, cloneEmbeddedClient, configureCsp, createTheme, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, themeIssues, themeToCss, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
6586
- export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, ThemeInput, ThemeIssue, ThemeTokenKey, ThemeTokenName, ThemeTokens, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
6606
+ export type { AcceptDisclosuresWidgetLabels, AcceptDisclosuresWidgetProps, AccordionItemCardLabels, Labels$3 as AccountDetailsWidgetLabels, ActivateCardPanelLabels, AdditionalOwner, AdditionalOwnersLabels, AddressFormSheetLabels, ApplicationStatusLabelValues, ApplicationStatusLabels, ApplicationStatusNoticeLabels, BalancesWidgetLabels, BalancesWidgetProps, BankAccountFormSheetLabels, BankAccountOnboardingWidgetLabels, BankAccountOnboardingWidgetProps, FeatureLabels$3 as BankAccountsWidgetFeatureLabels, Labels$4 as BankAccountsWidgetLabels, BankAccountsWidgetProps, BankingComplianceBannerLabels, BankingComplianceBannerWidgetProps, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, CspConfig, CustomersWidgetOwnProps, CustomersWidgetProps, DebitCardsWidgetProps, DisclosureLinks, EmbeddedClient, Labels$2 as ExpenseManagementWidgetLabels, ExpenseManagementWidgetProps, ExpenseStatusBadgeLabels, FileViewerLabels, HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, InsightsFeatureLabels, InsightsWidgetLabels, InsightsWidgetProps, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, LinkComponent, LinkComponentProps, FeatureLabels$2 as LinkedAccountsWidgetFeatureLabels, Labels$1 as LinkedAccountsWidgetLabels, LinkedAccountsWidgetProps, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, OfferStatusLabelValues, OfferStatusNoticeLabels, OfferWidgetBenefit, OfferWidgetContent, OfferWidgetHowItWorksStep, OfferWidgetImage, OfferWidgetLabels, OfferWidgetProps, OfferWidgetStatusLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RefreshingRootWidgetProviderProps, ResultLabels, RootWidgetProviderProps, SettingsWidgetAdditionalSection, FeatureLabels$1 as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId, SingleInsightLabels, ThemeInput, ThemeIssue, ThemeTokenKey, ThemeTokenName, ThemeTokens, TransactionDetailsActionsLabels, TransactionDetailsLabels, FeatureLabels as TransfersWidgetFeatureLabels, TransfersWidgetLabels, TransfersWidgetProps, WidgetConfig, WidgetConfigInput, WidgetInitResponse, WidgetInitState, WidgetProviderLabels, WidgetProviderProps, WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels, WidgetTokenFetcher, WidgetTokenManager, WidgetTokenRefreshProviderProps, WidgetTokenState };
@@ -744,6 +744,10 @@ interface SettingsWidgetProps extends WidgetProviderProps {
744
744
  * falls back to a plain, unlinked sentence when unset, for the same reason
745
745
  * {@link SettingsWidgetProps.helpContactUrl} does. */
746
746
  profileContactUrl?: string;
747
+ /** Forwarded to the embedded Profile section's {@link ProfileWidget} —
748
+ * whether it paints its decorative header band, a soft wash of the theme's
749
+ * primary color. Defaults to `true`; pass `false` to drop it. */
750
+ showProfileHeader?: boolean;
747
751
  /** The section to show. Leave unset to let the widget own the selection;
748
752
  * supply it (with {@link SettingsWidgetProps.onSelectedSectionChange}) to
749
753
  * drive navigation from a route, a search param, or host state. A section
@@ -771,7 +775,7 @@ interface SettingsWidgetProps extends WidgetProviderProps {
771
775
  invoiceContent?: ReactNode;
772
776
  legalContent?: ReactNode;
773
777
  }
774
- declare function SettingsWidget({ labels, featureLabels, acceptInviteRedirectUri, teamInitialView, helpContactUrl, helpFaq, profileContactUrl, selectedSection, defaultSelectedSection, onSelectedSectionChange, additionalSections, profileContent, teamContent, billPayContent, helpContent, expenseContent, accountingContent, invoiceContent, legalContent, ...widgetProviderProps }: SettingsWidgetProps): React.JSX.Element;
778
+ declare function SettingsWidget({ labels, featureLabels, acceptInviteRedirectUri, teamInitialView, helpContactUrl, helpFaq, profileContactUrl, showProfileHeader, selectedSection, defaultSelectedSection, onSelectedSectionChange, additionalSections, profileContent, teamContent, billPayContent, helpContent, expenseContent, accountingContent, invoiceContent, legalContent, ...widgetProviderProps }: SettingsWidgetProps): React.JSX.Element;
775
779
 
776
780
  export { HELP_FAQ_EN, SettingsSection, SettingsWidget };
777
781
  export type { HelpFaqAnswer, HelpFaqBullet, HelpFaqBulletType, HelpFaqItem, HelpFaqSection, SettingsWidgetAdditionalSection, FeatureLabels as SettingsWidgetFeatureLabels, Labels as SettingsWidgetLabels, SettingsWidgetProps, SettingsWidgetSection, SettingsWidgetSectionId };
@@ -2960,6 +2960,10 @@ interface SettingsWidgetProps extends WidgetProviderProps {
2960
2960
  * falls back to a plain, unlinked sentence when unset, for the same reason
2961
2961
  * {@link SettingsWidgetProps.helpContactUrl} does. */
2962
2962
  profileContactUrl?: string;
2963
+ /** Forwarded to the embedded Profile section's {@link ProfileWidget} —
2964
+ * whether it paints its decorative header band, a soft wash of the theme's
2965
+ * primary color. Defaults to `true`; pass `false` to drop it. */
2966
+ showProfileHeader?: boolean;
2963
2967
  /** The section to show. Leave unset to let the widget own the selection;
2964
2968
  * supply it (with {@link SettingsWidgetProps.onSelectedSectionChange}) to
2965
2969
  * drive navigation from a route, a search param, or host state. A section
@@ -3255,6 +3259,21 @@ interface WidgetSuiteSectionTitleLabels {
3255
3259
  * Both are places the gate cannot proceed, and neither is reachable by a correct
3256
3260
  * integration against a healthy API.
3257
3261
  */
3262
+ /**
3263
+ * The quick actions row atop the Dashboard section. Suite-owned rather than
3264
+ * taken from the dashboards' `QuickActions`, which lives outside the embedded
3265
+ * scope; the wording is kept the same so the three surfaces read alike.
3266
+ */
3267
+ interface WidgetSuiteQuickActionsLabels {
3268
+ /** Accessible name of the button group. */
3269
+ groupLabel: string;
3270
+ transferMoney: string;
3271
+ payBill: string;
3272
+ createInvoice: string;
3273
+ uploadReceipt: string;
3274
+ issueCard: string;
3275
+ inviteTeammate: string;
3276
+ }
3258
3277
  interface WidgetSuiteDisclosureLabels {
3259
3278
  /**
3260
3279
  * The first init fetch failed before the disclosure flags were known. The suite
@@ -3382,7 +3401,7 @@ interface WidgetSuiteSectionContentLabels {
3382
3401
  * Every string the suite puts on screen, including the copy inside the widgets
3383
3402
  * it mounts. Two kinds of group, differing in who holds the default:
3384
3403
  *
3385
- * - **Suite-owned** — `shell`, `menu`, `sectionTitle`, `disclosure`,
3404
+ * - **Suite-owned** — `shell`, `menu`, `sectionTitle`, `quickActions`, `disclosure`,
3386
3405
  * `onboardingGate`, and the two card-list titles. Defaulted in
3387
3406
  * {@link WIDGET_SUITE_LABELS_EN}, with an override merged over it.
3388
3407
  * - **Forwarded** — `onboarding`, and every other key under `sections`.
@@ -3399,6 +3418,7 @@ interface WidgetSuiteLabels {
3399
3418
  shell: WidgetSuiteShellLabels;
3400
3419
  menu: WidgetSuiteMenuLabels;
3401
3420
  sectionTitle: WidgetSuiteSectionTitleLabels;
3421
+ quickActions: WidgetSuiteQuickActionsLabels;
3402
3422
  disclosure: WidgetSuiteDisclosureLabels;
3403
3423
  onboardingGate: WidgetSuiteOnboardingGateLabels;
3404
3424
  /** Forwarded to the entry-point onboarding widget, untouched. No default. */
@@ -3546,4 +3566,4 @@ interface WidgetSuiteProps extends WidgetProviderProps {
3546
3566
  declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
3547
3567
 
3548
3568
  export { WIDGET_SUITE_DEFAULT_SECTIONS, WIDGET_SUITE_LABELS_EN, WidgetSuite, WidgetSuiteSectionId };
3549
- export type { WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels };
3569
+ export type { WidgetSuiteCardsLabels, WidgetSuiteDashboardLabels, WidgetSuiteDisclosureLabels, WidgetSuiteExpensesLabels, WidgetSuiteLabelOverrides, WidgetSuiteLabels, WidgetSuiteMenuLabels, WidgetSuiteOnboardingGateLabels, WidgetSuiteOnboardingLabels, WidgetSuiteProps, WidgetSuiteQuickActionsLabels, WidgetSuiteSectionContentLabels, WidgetSuiteSectionTitleLabels };
@@ -234,18 +234,19 @@ function b(t = {}) {
234
234
  return v("error"), !1;
235
235
  }
236
236
  }, [p, C.mutateAsync]), k = c(async (e) => {
237
- if (p) {
238
- b.current && clearTimeout(b.current), v("saving");
239
- try {
240
- await w.mutateAsync({ path: { approval_policy_id: e } }), v("success"), E();
241
- } catch {
242
- v("error");
243
- }
237
+ if (!p) return !1;
238
+ b.current && clearTimeout(b.current), v("saving");
239
+ try {
240
+ return await w.mutateAsync({ path: { approval_policy_id: e } }), v("success"), E(), !0;
241
+ } catch {
242
+ return v("error"), !1;
244
243
  }
245
244
  }, [p, w.mutateAsync]);
246
245
  return {
247
246
  rules: T,
248
247
  isLoading: x.isFetching,
248
+ isError: x.isError,
249
+ refetch: x.refetch,
249
250
  hasLoaded: x.data !== void 0,
250
251
  saveStatus: _,
251
252
  createRule: D,
@@ -15,7 +15,10 @@ var e = {
15
15
  }, n = {
16
16
  MissingRolePermissionTitle: "Approval policies unavailable",
17
17
  MissingRolePermissionDescription: "Your access token is missing the permissions required to manage approval policies. Contact your administrator to update your access.",
18
+ Retry: "Try again",
19
+ PoliciesUnavailableTitle: "Approval policies unavailable",
20
+ PoliciesUnavailableDescription: "Approval policies could not be loaded. Please try again.",
18
21
  RolesUnavailableTitle: "Roles unavailable",
19
- RolesUnavailableDescription: "Approver roles could not be loaded. Refresh the page to try again."
22
+ RolesUnavailableDescription: "Approver roles could not be loaded. Please try again."
20
23
  };
21
24
  export { e as ApproverOptionLabels, n as PermissionErrorLabels, t as ValidationErrorLabels };