@tesouro/embedded-components-loader 0.11.220 → 0.11.221

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
@@ -57,7 +57,7 @@ function satisfiesRange(version, range) {
57
57
  }
58
58
  // src/loader.ts
59
59
  /** Baked at build time: installing loader 1.2.3 pins hosted 1.2.3. */
60
- var LOADER_VERSION = "0.11.220";
60
+ var LOADER_VERSION = "0.11.221";
61
61
  var DEFAULT_BASE_URL = "https://widgets.tesouro.com";
62
62
  /** Frozen forever: every future loader must read what every past one wrote. */
63
63
  var LOADED_VERSION_MARKER = Symbol.for("tesouro.embedded.loadedVersion");
@@ -5876,7 +5876,7 @@ interface InvoicingTabLabels extends InvoicingTabsLabels {
5876
5876
  interface ReceivablesWidgetOwnProps {
5877
5877
  /** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
5878
5878
  embeddedBankName?: string;
5879
- /** Rendered above the tab row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
5879
+ /** Rendered above the tab row, and kept when an error or the disclosures gate replaces the tabs. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
5880
5880
  headerStart?: ReactNode;
5881
5881
  /** The active tab. Omit to let the widget track it, starting on Invoices. */
5882
5882
  selectedTab?: InvoicingTabId;
@@ -5916,7 +5916,7 @@ interface ReceivablesWidgetOwnProps {
5916
5916
 
5917
5917
  type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
5918
5918
 
5919
- declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
5919
+ declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, headerStart, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
5920
5920
 
5921
5921
  interface Labels$1 {
5922
5922
  title: string;
@@ -7173,11 +7173,12 @@ interface BillPayWidgetProps extends WidgetProviderProps {
7173
7173
  /** Bank shown as "Powered by {bank}" next to the source account when paying; omitted hides the badge. */
7174
7174
  poweredByBankName?: string;
7175
7175
  /**
7176
- * Opens the host's bill-pay settings surface, from a cog on the tab row
7177
- * beside the active tab's add button. Only rendered for a user whose scopes
7178
- * reach it.
7176
+ * Opens the host's bill-pay settings surface, from a cog at the top right,
7177
+ * on the `headerStart` line. Only rendered for a user whose scopes reach it.
7179
7178
  */
7180
7179
  onSettingsClick?: () => void;
7180
+ /** Rendered above the tab row, beside the settings cog, and kept when an error or the disclosures gate replaces the tabs. The widget renders no heading of its own, so pass your page title here (embedded ADR 0010). */
7181
+ headerStart?: ReactNode;
7181
7182
  /**
7182
7183
  * The active summary card on the Bills tab, or `null` for none. Applied on
7183
7184
  * mount and whenever it changes. Omit to let the widget track it.
@@ -639,11 +639,12 @@ interface BillPayWidgetProps extends WidgetProviderProps {
639
639
  /** Bank shown as "Powered by {bank}" next to the source account when paying; omitted hides the badge. */
640
640
  poweredByBankName?: string;
641
641
  /**
642
- * Opens the host's bill-pay settings surface, from a cog on the tab row
643
- * beside the active tab's add button. Only rendered for a user whose scopes
644
- * reach it.
642
+ * Opens the host's bill-pay settings surface, from a cog at the top right,
643
+ * on the `headerStart` line. Only rendered for a user whose scopes reach it.
645
644
  */
646
645
  onSettingsClick?: () => void;
646
+ /** Rendered above the tab row, beside the settings cog, and kept when an error or the disclosures gate replaces the tabs. The widget renders no heading of its own, so pass your page title here (embedded ADR 0010). */
647
+ headerStart?: ReactNode;
647
648
  /**
648
649
  * The active summary card on the Bills tab, or `null` for none. Applied on
649
650
  * mount and whenever it changes. Omit to let the widget track it.
@@ -2512,7 +2512,7 @@ interface InvoicingTabLabels extends InvoicingTabsLabels {
2512
2512
  interface ReceivablesWidgetOwnProps {
2513
2513
  /** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
2514
2514
  embeddedBankName?: string;
2515
- /** Rendered above the tab row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
2515
+ /** Rendered above the tab row, and kept when an error or the disclosures gate replaces the tabs. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
2516
2516
  headerStart?: ReactNode;
2517
2517
  /** The active tab. Omit to let the widget track it, starting on Invoices. */
2518
2518
  selectedTab?: InvoicingTabId;
@@ -2552,7 +2552,7 @@ interface ReceivablesWidgetOwnProps {
2552
2552
 
2553
2553
  type ReceivablesWidgetProps = WidgetProviderProps & ReceivablesWidgetOwnProps;
2554
2554
 
2555
- declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
2555
+ declare function ReceivablesWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, headerStart, ...innerProps }: ReceivablesWidgetProps): React.JSX.Element;
2556
2556
 
2557
2557
  export { InvoicingTab, ReceivableStatusCard, ReceivablesWidget };
2558
2558
  export type { CounterpartFormSheetLabels, CounterpartMessageLabels, InvoicesFilterBarLabelOverrides, InvoicesFilterBarLabels, InvoicesFilterLabelOverrides, InvoicesFilterLabels, InvoicingTabId, InvoicingTabLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, ProductFormSheetLabels, ProductMessageLabels, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableDetailsPanelLabelOverrides, ReceivableDetailsPanelLabels, ReceivableDocumentType, ReceivableFormDialogLabels, ReceivableFormSheetLabels, ReceivableMessageLabels, ReceivablePaymentDialogLabels, ReceivablePreviewLabels, ReceivableStatusBadgeLabels, ReceivablesScreenLabelOverrides, ReceivablesScreenLabels, ReceivablesWidgetProps, RecurringSeriesScreenLabelOverrides, RecurringSeriesScreenLabels };
@@ -4757,7 +4757,7 @@ interface InvoicingTabLabels extends InvoicingTabsLabels {
4757
4757
  interface ReceivablesWidgetOwnProps {
4758
4758
  /** Sponsor bank shown as "Powered by {bank}" beside embedded accounts. */
4759
4759
  embeddedBankName?: string;
4760
- /** Rendered above the tab row. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
4760
+ /** Rendered above the tab row, and kept when an error or the disclosures gate replaces the tabs. The widget renders no heading of its own (embedded ADR 0010), so pass the page title here. */
4761
4761
  headerStart?: ReactNode;
4762
4762
  /** The active tab. Omit to let the widget track it, starting on Invoices. */
4763
4763
  selectedTab?: InvoicingTabId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-loader",
3
- "version": "0.11.220",
3
+ "version": "0.11.221",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,