@tesouro/embedded-components-react 0.5.305 → 0.6.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 +18 -33
- package/dist/index.d.ts +2 -3
- package/dist/index.js +27 -28
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/scenarios/index.d.ts +2 -21
- package/dist/scenarios/index.js +2 -4
- package/package.json +1 -1
- package/dist/lib/UploadReceiptWidget.d.ts +0 -29
- package/dist/lib/UploadReceiptWidget.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/mocks/labels.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/mocks/uploadReceipt.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/scenarios.js +0 -2
package/README.md
CHANGED
|
@@ -365,39 +365,24 @@ A complete expenses surface: My and Team transactions tabs with Action Items, a
|
|
|
365
365
|
|
|
366
366
|
#### Props
|
|
367
367
|
|
|
368
|
-
| Prop | Type | Default | Description
|
|
369
|
-
| --------------------------------- | ---------------------------------------------- | ----------- |
|
|
370
|
-
| `bankDisplayName` | `string` | `undefined` | Bank name shown in the attribution header.
|
|
371
|
-
| `bankLogoSrc` | `string` | `undefined` | URL for the bank logo in the attribution header.
|
|
372
|
-
| `bankLogoAlt` | `string` | `undefined` | Alt text for the bank logo.
|
|
373
|
-
| `isBankingTaglineVisible` | `boolean` | `undefined` | Shows the "Business Banking provided by" tagline beside the header.
|
|
374
|
-
| `onSettingsClick` | `() => void` | `undefined` | Renders a scope-gated settings entry point in the header; navigate from this callback.
|
|
375
|
-
| `receiptUpload` | `
|
|
376
|
-
| `screenLabels` | `Partial<ExpensesScreenLabels>` | English | Tab labels and other screen shell copy.
|
|
377
|
-
| `headerLabels` | `Partial<ExpensesHeaderLabels>` | English | Bank-attribution header copy.
|
|
378
|
-
| `transactionsTableLabels` | `Partial<ExpensesTransactionsTableLabels>` | English | Transactions table column headers and empty/loading copy.
|
|
379
|
-
| `filterBarLabels` | `Partial<ExpensesTransactionsFilterBarLabels>` | English | Search/filter bar copy.
|
|
380
|
-
| `actionItemsLabels` | `Partial<ActionItemsListLabels>` | English | Action Items list copy.
|
|
381
|
-
| `statusBadgeLabels` | `Partial<ExpenseStatusBadgeLabels>` | English | Status pill copy, shared between the table and the review dialog.
|
|
382
|
-
| `transactionDetailsLabels` | `Partial<TransactionDetailsLabels>` | English | Review dialog copy.
|
|
383
|
-
| `transactionDetailsCardLabels` | `Partial<AccordionItemCardLabels>` | English | Copy for the accordion cards inside the review dialog.
|
|
384
|
-
| `transactionDetailsActionsLabels` | `Partial<TransactionDetailsActionsLabels>` | English | Copy for the review dialog's action buttons.
|
|
385
|
-
| `fileViewerLabels` | `Partial<FileViewerLabels>` | English | Copy for the receipt/attachment file viewer inside the review dialog.
|
|
386
|
-
|
|
387
|
-
### UploadReceiptWidget
|
|
388
|
-
|
|
389
|
-
An "Upload receipts" button that opens a popover with a drag-and-drop file picker and a copyable forwarding email address. It makes no network calls: your `onFileUpload` does the upload, and the widget shows progress and result toasts.
|
|
390
|
-
|
|
391
|
-
_Standalone presentational widget — it does not take the shared auth/scope props._
|
|
392
|
-
|
|
393
|
-
#### Props
|
|
394
|
-
|
|
395
|
-
| Prop | Type | Default | Description |
|
|
396
|
-
| ----------------- | --------------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
397
|
-
| `emailAddress` | `string` | `undefined` | Forwarding email address shown with a copy button. Omit it to hide the email option. |
|
|
398
|
-
| `onFileUpload` | `(file: File) => unknown \| Promise<unknown>` | `undefined` | Called once per selected file and awaited; a rejection counts as a failed upload. Omit to disable uploading. |
|
|
399
|
-
| `onAwaitMatching` | `(uploadedCount: number) => Promise<ReceiptMatchSummary>` | `undefined` | Awaited after every file in a batch uploads. Resolve once matching finishes. Omit to stop at upload. |
|
|
400
|
-
| `isUploading` | `boolean` | `false` | Host loading flag. While `true` (or while a batch runs) the popover shows a processing state and blocks new uploads. |
|
|
368
|
+
| Prop | Type | Default | Description |
|
|
369
|
+
| --------------------------------- | ---------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
370
|
+
| `bankDisplayName` | `string` | `undefined` | Bank name shown in the attribution header. |
|
|
371
|
+
| `bankLogoSrc` | `string` | `undefined` | URL for the bank logo in the attribution header. |
|
|
372
|
+
| `bankLogoAlt` | `string` | `undefined` | Alt text for the bank logo. |
|
|
373
|
+
| `isBankingTaglineVisible` | `boolean` | `undefined` | Shows the "Business Banking provided by" tagline beside the header. |
|
|
374
|
+
| `onSettingsClick` | `() => void` | `undefined` | Renders a scope-gated settings entry point in the header; navigate from this callback. |
|
|
375
|
+
| `receiptUpload` | `object` | `undefined` | Overrides the receipt-upload control's props, such as `onFileUpload` / `onAwaitMatching`; see Receipt upload. |
|
|
376
|
+
| `screenLabels` | `Partial<ExpensesScreenLabels>` | English | Tab labels and other screen shell copy. |
|
|
377
|
+
| `headerLabels` | `Partial<ExpensesHeaderLabels>` | English | Bank-attribution header copy. |
|
|
378
|
+
| `transactionsTableLabels` | `Partial<ExpensesTransactionsTableLabels>` | English | Transactions table column headers and empty/loading copy. |
|
|
379
|
+
| `filterBarLabels` | `Partial<ExpensesTransactionsFilterBarLabels>` | English | Search/filter bar copy. |
|
|
380
|
+
| `actionItemsLabels` | `Partial<ActionItemsListLabels>` | English | Action Items list copy. |
|
|
381
|
+
| `statusBadgeLabels` | `Partial<ExpenseStatusBadgeLabels>` | English | Status pill copy, shared between the table and the review dialog. |
|
|
382
|
+
| `transactionDetailsLabels` | `Partial<TransactionDetailsLabels>` | English | Review dialog copy. |
|
|
383
|
+
| `transactionDetailsCardLabels` | `Partial<AccordionItemCardLabels>` | English | Copy for the accordion cards inside the review dialog. |
|
|
384
|
+
| `transactionDetailsActionsLabels` | `Partial<TransactionDetailsActionsLabels>` | English | Copy for the review dialog's action buttons. |
|
|
385
|
+
| `fileViewerLabels` | `Partial<FileViewerLabels>` | English | Copy for the receipt/attachment file viewer inside the review dialog. |
|
|
401
386
|
|
|
402
387
|
### BalancesWidget
|
|
403
388
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3293,7 +3293,6 @@ interface UploadReceiptWidgetProps {
|
|
|
3293
3293
|
onAwaitMatching?: (uploadedCount: number) => Promise<ReceiptMatchSummary>;
|
|
3294
3294
|
isUploading?: boolean;
|
|
3295
3295
|
}
|
|
3296
|
-
declare function UploadReceiptWidget({ emailAddress, onFileUpload, onAwaitMatching, isUploading, }: UploadReceiptWidgetProps): React.JSX.Element;
|
|
3297
3296
|
|
|
3298
3297
|
interface ExpenseManagementWidgetOwnProps {
|
|
3299
3298
|
screenLabels?: Partial<Labels$2>;
|
|
@@ -6128,5 +6127,5 @@ interface CheckAmountAndDetailScreenProps {
|
|
|
6128
6127
|
|
|
6129
6128
|
type PendingFeatureStyleSources = CheckAmountAndDetailScreenProps | GapCoverageAlertProps | NoPolicyBannerProps;
|
|
6130
6129
|
|
|
6131
|
-
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MARKETING_WIDGET_STATUS_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, DEFAULT_FEATURE_LABELS as TRANSFERS_FEATURE_LABELS_EN, TRANSFERS_WIDGET_LABELS_EN, TransfersWidget, UIFramework,
|
|
6132
|
-
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, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, 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, MarketingStatusLabelValues, MarketingStatusNoticeLabels, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MarketingWidgetStatusLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps,
|
|
6130
|
+
export { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, ADDITIONAL_OWNERS_LABELS_EN, APPLICATION_STATUS_LABELS_EN, AcceptDisclosuresWidget, BALANCES_WIDGET_LABELS_EN, BUSINESS_DETAILS_LABELS_EN, BalancesWidget, BankAccountOnboardingWidget, BankAccountsWidget, BillPayWidget, CardDetailsWidget, CounterpartsWidget, CreditCardsWidget, CustomersWidget, DebitCardsWidget, ERROR_STATE_ID, ExpenseManagementWidget, HELP_FAQ_EN, INSIGHTS_FEATURE_LABELS_EN, INSIGHTS_WIDGET_LABELS_EN, Implementation, InsightsWidget, LinkedAccountsWidget, MARKETING_WIDGET_LABELS_EN, MARKETING_WIDGET_STATUS_LABELS_EN, MarketingBenefitIcon, MarketingWidget, PERSONAL_DETAILS_LABELS_EN, ProductsWidget, RESULT_LABELS_EN, ReceivablesWidget, RefreshingRootWidgetProvider, RootWidgetProvider, SINGLE_INSIGHT_LABELS_EN, Scope, SettingsSection, SettingsWidget, 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, getGlobalWidgetConfig, getGlobalWidgetInitState, isScope, registerDesignSystemEnsurer, registerUIRenderers, setGlobalWidgetConfig, subscribeToGlobalWidgetInitState, updateGlobalWidgetConfig, useDisclosuresAcceptanceSurface, useOwnWidgetConfig, useRefetchWidget, useWidgetConfig, useWidgetError, useWidgetInitStaleForToken, useWidgetLoading, useWidgetToken };
|
|
6131
|
+
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, BillPayWidgetProps, BusinessDetailsLabels, BusinessDetailsValues, CardDetailsFeatureLabels, CardDetailsPanelLabels as CardDetailsWidgetLabels, CardDetailsWidgetProps, CardsFeatureLabels, CardsListLabels as CardsLabels, CardsPagination, CompanyStructureValue, ConfirmDeleteDialogLabels, CounterpartActionTarget, CounterpartDetailsSheetLabels, CounterpartFormSheetLabels, CounterpartMessageLabels, CounterpartMode, CounterpartsScreenLabels, CounterpartsWidgetProps, CreditCardsWidgetProps, 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, MarketingStatusLabelValues, MarketingStatusNoticeLabels, MarketingWidgetBenefit, MarketingWidgetContent, MarketingWidgetHowItWorksStep, MarketingWidgetImage, MarketingWidgetLabels, MarketingWidgetProps, MarketingWidgetStatusLabels, MeasureUnitDeleteDialogLabels, MeasureUnitsManagerLabels, PendingFeatureStyleSources, PersonalDetailsLabels, PersonalDetailsValues, ProductDeleteDialogLabels, ProductDetailsSheetLabels, ProductFormSheetLabels, ProductMessageLabels, ProductsScreenLabels, ProductsWidgetProps, ReceivableActionDialogLabels, ReceivableActionsModalLabels, ReceivableAuditHistoryLabels, ReceivableBankAttribution, 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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -24,31 +24,30 @@ import { INSIGHTS_FEATURE_LABELS_EN as P } from "./libs/tesouro-embedded-compone
|
|
|
24
24
|
import { INSIGHTS_WIDGET_LABELS_EN as F } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/labels.js";
|
|
25
25
|
import { SINGLE_INSIGHT_LABELS_EN as I } from "./libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/labels.js";
|
|
26
26
|
import { InsightsWidget as L } from "./libs/tesouro-embedded-components-react/insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
|
|
54
|
-
export { J as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, X as ADDITIONAL_OWNERS_LABELS_EN, ee as APPLICATION_STATUS_LABELS_EN, Y as AcceptDisclosuresWidget, M as BALANCES_WIDGET_LABELS_EN, Z as BUSINESS_DETAILS_LABELS_EN, N as BalancesWidget, te as BankAccountOnboardingWidget, D as BankAccountsWidget, O as BillPayWidget, k as CardDetailsWidget, re as CounterpartsWidget, A as CreditCardsWidget, ie as CustomersWidget, j as DebitCardsWidget, l as ERROR_STATE_ID, z as ExpenseManagementWidget, H as HELP_FAQ_EN, P as INSIGHTS_FEATURE_LABELS_EN, F as INSIGHTS_WIDGET_LABELS_EN, u as Implementation, L as InsightsWidget, W as LinkedAccountsWidget, oe as MARKETING_WIDGET_LABELS_EN, ae as MARKETING_WIDGET_STATUS_LABELS_EN, se as MarketingBenefitIcon, ce as MarketingWidget, Q as PERSONAL_DETAILS_LABELS_EN, le as ProductsWidget, $ as RESULT_LABELS_EN, B as ReceivablesWidget, y as RefreshingRootWidgetProvider, g as RootWidgetProvider, I as SINGLE_INSIGHT_LABELS_EN, i as Scope, V as SettingsSection, U as SettingsWidget, G as TRANSFERS_FEATURE_LABELS_EN, K as TRANSFERS_WIDGET_LABELS_EN, q as TransfersWidget, o as UIFramework, R as UploadReceiptWidget, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, ue as WidgetProvider, ne as WidgetSuite, n as WidgetSuiteSectionId, _ as WidgetTokenRefreshProvider, r as cloneEmbeddedClient, d as getGlobalWidgetConfig, m as getGlobalWidgetInitState, a as isScope, s as registerDesignSystemEnsurer, c as registerUIRenderers, f as setGlobalWidgetConfig, h as subscribeToGlobalWidgetInitState, p as updateGlobalWidgetConfig, b as useDisclosuresAcceptanceSurface, x as useOwnWidgetConfig, S as useRefetchWidget, C as useWidgetConfig, w as useWidgetError, T as useWidgetInitStaleForToken, E as useWidgetLoading, v as useWidgetToken };
|
|
27
|
+
import { ExpenseManagementWidget as R } from "./libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js";
|
|
28
|
+
import { ReceivablesWidget as z } from "./libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js";
|
|
29
|
+
import { SettingsSection as B } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/sections.js";
|
|
30
|
+
import { HELP_FAQ_EN as V } from "./libs/tesouro-embedded-components-react/settings-widget/help/ui/contract/dist/index3.js";
|
|
31
|
+
import { SettingsWidget as H } from "./libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js";
|
|
32
|
+
import { LinkedAccountsWidget as U } from "./libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js";
|
|
33
|
+
import { DEFAULT_FEATURE_LABELS as W } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/featureLabels.js";
|
|
34
|
+
import { TRANSFERS_WIDGET_LABELS_EN as G } from "./libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js";
|
|
35
|
+
import { TransfersWidget as K } from "./libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetFeature.js";
|
|
36
|
+
import { ACCEPT_DISCLOSURES_WIDGET_LABELS_EN as q } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js";
|
|
37
|
+
import { AcceptDisclosuresWidget as J } from "./libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js";
|
|
38
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as Y } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js";
|
|
39
|
+
import { BUSINESS_DETAILS_LABELS_EN as X } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js";
|
|
40
|
+
import { PERSONAL_DETAILS_LABELS_EN as Z } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js";
|
|
41
|
+
import { RESULT_LABELS_EN as Q } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js";
|
|
42
|
+
import { APPLICATION_STATUS_LABELS_EN as $ } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js";
|
|
43
|
+
import { BankAccountOnboardingWidget as ee } from "./libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js";
|
|
44
|
+
import { WidgetSuite as te } from "./libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js";
|
|
45
|
+
import { CounterpartsWidget as ne } from "./lib/CounterpartsWidgetPublic.js";
|
|
46
|
+
import { CustomersWidget as re } from "./libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js";
|
|
47
|
+
import { MARKETING_WIDGET_STATUS_LABELS_EN as ie } from "./libs/tesouro-embedded-components-react/marketing-widget/feature/dist/lib/MarketingWidget/labels.js";
|
|
48
|
+
import { MARKETING_WIDGET_LABELS_EN as ae } from "./libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js";
|
|
49
|
+
import { MarketingBenefitIcon as oe } from "./libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js";
|
|
50
|
+
import { MarketingWidget as se } from "./libs/tesouro-embedded-components-react/marketing-widget/feature/dist/lib/MarketingWidget/MarketingWidget.js";
|
|
51
|
+
import { ProductsWidget as ce } from "./libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/ProductsWidget.js";
|
|
52
|
+
import { WidgetProvider as le } from "./lib/WidgetProviderPublic.js";
|
|
53
|
+
export { q as ACCEPT_DISCLOSURES_WIDGET_LABELS_EN, Y as ADDITIONAL_OWNERS_LABELS_EN, $ as APPLICATION_STATUS_LABELS_EN, J as AcceptDisclosuresWidget, M as BALANCES_WIDGET_LABELS_EN, X as BUSINESS_DETAILS_LABELS_EN, N as BalancesWidget, ee as BankAccountOnboardingWidget, D as BankAccountsWidget, O as BillPayWidget, k as CardDetailsWidget, ne as CounterpartsWidget, A as CreditCardsWidget, re as CustomersWidget, j as DebitCardsWidget, l as ERROR_STATE_ID, R as ExpenseManagementWidget, V as HELP_FAQ_EN, P as INSIGHTS_FEATURE_LABELS_EN, F as INSIGHTS_WIDGET_LABELS_EN, u as Implementation, L as InsightsWidget, U as LinkedAccountsWidget, ae as MARKETING_WIDGET_LABELS_EN, ie as MARKETING_WIDGET_STATUS_LABELS_EN, oe as MarketingBenefitIcon, se as MarketingWidget, Z as PERSONAL_DETAILS_LABELS_EN, ce as ProductsWidget, Q as RESULT_LABELS_EN, z as ReceivablesWidget, y as RefreshingRootWidgetProvider, g as RootWidgetProvider, I as SINGLE_INSIGHT_LABELS_EN, i as Scope, B as SettingsSection, H as SettingsWidget, W as TRANSFERS_FEATURE_LABELS_EN, G as TRANSFERS_WIDGET_LABELS_EN, K as TransfersWidget, o as UIFramework, t as WIDGET_SUITE_DEFAULT_SECTIONS, e as WIDGET_SUITE_LABELS_EN, le as WidgetProvider, te as WidgetSuite, n as WidgetSuiteSectionId, _ as WidgetTokenRefreshProvider, r as cloneEmbeddedClient, d as getGlobalWidgetConfig, m as getGlobalWidgetInitState, a as isScope, s as registerDesignSystemEnsurer, c as registerUIRenderers, f as setGlobalWidgetConfig, h as subscribeToGlobalWidgetInitState, p as updateGlobalWidgetConfig, b as useDisclosuresAcceptanceSurface, x as useOwnWidgetConfig, S as useRefetchWidget, C as useWidgetConfig, w as useWidgetError, T as useWidgetInitStaleForToken, E as useWidgetLoading, v as useWidgetToken };
|
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.6.0", n = "947e500add32c04895a1eb8ed9e24fb04e86bfbd", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -554,30 +554,11 @@ declare const settingsScenarios: Scenario<SettingsDemoProps>[];
|
|
|
554
554
|
|
|
555
555
|
declare const transfersScenarios: Scenario[];
|
|
556
556
|
|
|
557
|
-
interface ReceiptMatchSummary {
|
|
558
|
-
total: number;
|
|
559
|
-
matched: number;
|
|
560
|
-
unmatched: number;
|
|
561
|
-
unreadable: number;
|
|
562
|
-
stillProcessing: number;
|
|
563
|
-
}
|
|
564
|
-
interface UploadReceiptWidgetProps {
|
|
565
|
-
emailAddress?: string;
|
|
566
|
-
onFileUpload?: (file: File) => unknown | Promise<unknown>;
|
|
567
|
-
onAwaitMatching?: (uploadedCount: number) => Promise<ReceiptMatchSummary>;
|
|
568
|
-
isUploading?: boolean;
|
|
569
|
-
}
|
|
570
|
-
interface UploadReceiptDemoProps extends UploadReceiptWidgetProps {
|
|
571
|
-
/** Callbacks that hold state, built once per mount by whoever renders the widget. */
|
|
572
|
-
perMount?: () => Partial<UploadReceiptWidgetProps>;
|
|
573
|
-
}
|
|
574
|
-
declare const uploadReceiptScenarios: Scenario<UploadReceiptDemoProps>[];
|
|
575
|
-
|
|
576
557
|
type SectionId = 'dashboard' | 'accounts' | 'cards' | 'transfers' | 'bill-pay' | 'invoicing' | 'expenses' | 'settings';
|
|
577
558
|
interface WidgetSuiteDemoProps {
|
|
578
559
|
sections?: readonly SectionId[];
|
|
579
560
|
}
|
|
580
561
|
declare const widgetSuiteScenarios: Scenario<WidgetSuiteDemoProps>[];
|
|
581
562
|
|
|
582
|
-
export { CARDS_PAGING, CARD_DETAILS_CARD_ID, CROSS_CUTTING_KEYS, EMBEDDED_PAGING, FINOPS, FINOPS_PAGING, IDENTITY, INIT, LOADING_DELAY_MS, PROXY, SCENARIO_LABELS, acceptDisclosuresScenarios, answer, answerFrom, balancesScenarios, bankAccountOnboardingScenarios, bankAccountsScenarios, billPayScenarios, bodyOf, cardDetailsScenarios, composeScenarios, counterpartsScenarios, creditCardsScenarios, crossCuttingScenarios, counterpartsScenarios as customersScenarios, debitCardsScenarios, defaultScenario, endpoint, expenseManagementScenarios, finopsPage, initRoute, insightsScenarios, invoicingScenarios, json, linkedAccountsScenarios, marketingScenarios, matchPath, noContent, page, paged, problem, productsScenarios, readRoute, receivablesScenarios, routesOf, scenarioFetch, settingsScenarios, templatePath, transfersScenarios,
|
|
583
|
-
export type { ConfigClient, CrossCuttingKey, CrossCuttingSpec, PagingStyle, PrimaryRead, RequestSummary, Route, RouteRequest, Scenario, ScenarioCopy, SettingsDemoProps,
|
|
563
|
+
export { CARDS_PAGING, CARD_DETAILS_CARD_ID, CROSS_CUTTING_KEYS, EMBEDDED_PAGING, FINOPS, FINOPS_PAGING, IDENTITY, INIT, LOADING_DELAY_MS, PROXY, SCENARIO_LABELS, acceptDisclosuresScenarios, answer, answerFrom, balancesScenarios, bankAccountOnboardingScenarios, bankAccountsScenarios, billPayScenarios, bodyOf, cardDetailsScenarios, composeScenarios, counterpartsScenarios, creditCardsScenarios, crossCuttingScenarios, counterpartsScenarios as customersScenarios, debitCardsScenarios, defaultScenario, endpoint, expenseManagementScenarios, finopsPage, initRoute, insightsScenarios, invoicingScenarios, json, linkedAccountsScenarios, marketingScenarios, matchPath, noContent, page, paged, problem, productsScenarios, readRoute, receivablesScenarios, routesOf, scenarioFetch, settingsScenarios, templatePath, transfersScenarios, wait, widgetSuiteScenarios };
|
|
564
|
+
export type { ConfigClient, CrossCuttingKey, CrossCuttingSpec, PagingStyle, PrimaryRead, RequestSummary, Route, RouteRequest, Scenario, ScenarioCopy, SettingsDemoProps, UploadedFile, WidgetInit, WidgetSuiteDemoProps };
|
package/dist/scenarios/index.js
CHANGED
|
@@ -35,8 +35,6 @@ import { settingsScenarios as q } from "../libs/tesouro-embedded-components-reac
|
|
|
35
35
|
import "../libs/tesouro-embedded-components-react/settings-widget/feature/dist/scenarios.js";
|
|
36
36
|
import { transfersScenarios as J } from "../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/transfers.js";
|
|
37
37
|
import "../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/scenarios.js";
|
|
38
|
-
import {
|
|
39
|
-
import "../libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/scenarios.js";
|
|
40
|
-
import { widgetSuiteScenarios as X } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js";
|
|
38
|
+
import { widgetSuiteScenarios as Y } from "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js";
|
|
41
39
|
import "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/scenarios.js";
|
|
42
|
-
export { n as CARDS_PAGING, B as CARD_DETAILS_CARD_ID, e as CROSS_CUTTING_KEYS, r as EMBEDDED_PAGING, i as FINOPS, a as FINOPS_PAGING, o as IDENTITY, s as INIT, c as LOADING_DELAY_MS, l as PROXY, t as SCENARIO_LABELS, R as acceptDisclosuresScenarios, u as answer, d as answerFrom, z as balancesScenarios, F as bankAccountOnboardingScenarios, L as bankAccountsScenarios, I as billPayScenarios, f as bodyOf, V as cardDetailsScenarios, p as composeScenarios, j as counterpartsScenarios, H as creditCardsScenarios, m as crossCuttingScenarios, j as customersScenarios, U as debitCardsScenarios, h as defaultScenario, g as endpoint, P as expenseManagementScenarios, _ as finopsPage, v as initRoute, W as insightsScenarios, A as invoicingScenarios, y as json, G as linkedAccountsScenarios, K as marketingScenarios, b as matchPath, x as noContent, S as page, C as paged, w as problem, M as productsScenarios, T as readRoute, N as receivablesScenarios, E as routesOf, D as scenarioFetch, q as settingsScenarios, O as templatePath, J as transfersScenarios,
|
|
40
|
+
export { n as CARDS_PAGING, B as CARD_DETAILS_CARD_ID, e as CROSS_CUTTING_KEYS, r as EMBEDDED_PAGING, i as FINOPS, a as FINOPS_PAGING, o as IDENTITY, s as INIT, c as LOADING_DELAY_MS, l as PROXY, t as SCENARIO_LABELS, R as acceptDisclosuresScenarios, u as answer, d as answerFrom, z as balancesScenarios, F as bankAccountOnboardingScenarios, L as bankAccountsScenarios, I as billPayScenarios, f as bodyOf, V as cardDetailsScenarios, p as composeScenarios, j as counterpartsScenarios, H as creditCardsScenarios, m as crossCuttingScenarios, j as customersScenarios, U as debitCardsScenarios, h as defaultScenario, g as endpoint, P as expenseManagementScenarios, _ as finopsPage, v as initRoute, W as insightsScenarios, A as invoicingScenarios, y as json, G as linkedAccountsScenarios, K as marketingScenarios, b as matchPath, x as noContent, S as page, C as paged, w as problem, M as productsScenarios, T as readRoute, N as receivablesScenarios, E as routesOf, D as scenarioFetch, q as settingsScenarios, O as templatePath, J as transfersScenarios, k as wait, Y as widgetSuiteScenarios };
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Aggregate outcome of a receipt batch after the backend finishes OCR and
|
|
5
|
-
* auto-matching. `stillProcessing` counts receipts that never reached a terminal
|
|
6
|
-
* state inside the host's budget, which is a neutral state, not a failure.
|
|
7
|
-
*/
|
|
8
|
-
interface ReceiptMatchSummary {
|
|
9
|
-
total: number;
|
|
10
|
-
matched: number;
|
|
11
|
-
unmatched: number;
|
|
12
|
-
unreadable: number;
|
|
13
|
-
stillProcessing: number;
|
|
14
|
-
}
|
|
15
|
-
interface UploadReceiptWidgetProps {
|
|
16
|
-
emailAddress?: string;
|
|
17
|
-
onFileUpload?: (file: File) => unknown | Promise<unknown>;
|
|
18
|
-
/**
|
|
19
|
-
* Awaited after every file in the batch has uploaded. Resolve once the backend
|
|
20
|
-
* has finished OCR and auto-matching so the widget can report the outcome in
|
|
21
|
-
* its batch toast. Omit it and the widget stops at "Uploaded N attachments".
|
|
22
|
-
*/
|
|
23
|
-
onAwaitMatching?: (uploadedCount: number) => Promise<ReceiptMatchSummary>;
|
|
24
|
-
isUploading?: boolean;
|
|
25
|
-
}
|
|
26
|
-
declare function UploadReceiptWidget({ emailAddress, onFileUpload, onAwaitMatching, isUploading, }: UploadReceiptWidgetProps): react.JSX.Element;
|
|
27
|
-
|
|
28
|
-
export { UploadReceiptWidget };
|
|
29
|
-
export type { ReceiptMatchSummary, UploadReceiptWidgetProps };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { UploadReceiptWidget as e } from "../libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js";
|
|
2
|
-
import "../libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/index.js";
|
|
3
|
-
export { e as UploadReceiptWidget };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/mocks/labels.js
|
|
2
|
-
var e = { scenarios: {
|
|
3
|
-
"all-matched": {
|
|
4
|
-
label: "Upload and match",
|
|
5
|
-
blurb: "Press Upload receipts to open the popover with the drop zone and the receipts inbox address. Pick one or more PDF, PNG or JPG files: the toast reads Uploading, then Matching, then says every receipt matched a transaction. This widget makes no requests of its own, so the request log stays empty; the host does the upload and the matching."
|
|
6
|
-
},
|
|
7
|
-
"partly-matched": {
|
|
8
|
-
label: "Some left unmatched",
|
|
9
|
-
blurb: "Every file uploads, but the host reports one receipt it could not match, so the toast ends with how many matched and points to the receipt inbox for the rest."
|
|
10
|
-
},
|
|
11
|
-
"still-processing": {
|
|
12
|
-
label: "Matching unfinished",
|
|
13
|
-
blurb: "Every file uploads, but the host’s matching budget runs out before any receipt is read, so the toast says matching continues in the background."
|
|
14
|
-
},
|
|
15
|
-
"upload-fails": {
|
|
16
|
-
label: "Upload fails",
|
|
17
|
-
blurb: "The first file in every batch fails to upload. Pick one file to see Upload failed, or two or more to see Uploaded 1 of 2 attachments."
|
|
18
|
-
},
|
|
19
|
-
"upload-only": {
|
|
20
|
-
label: "No inbox, no matching",
|
|
21
|
-
blurb: "The host passes no inbox address and does not track matching. The popover shows only the drop zone, and the toast stops at Uploaded, with no matching step."
|
|
22
|
-
},
|
|
23
|
-
"host-uploading": {
|
|
24
|
-
label: "Host upload in progress",
|
|
25
|
-
blurb: "The host reports an upload already in flight. Press Upload receipts: the popover shows the processing message in place of the drop zone."
|
|
26
|
-
}
|
|
27
|
-
} };
|
|
28
|
-
//#endregion
|
|
29
|
-
export { e as UPLOAD_RECEIPT_LABELS };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { initRoute as e, wait as t } from "../../../../shared/data-access-mocks/dist/mocks/scenarios/scenario.js";
|
|
2
|
-
import { UPLOAD_RECEIPT_LABELS as n } from "./labels.js";
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/mocks/uploadReceipt.js
|
|
4
|
-
var r = "receipts@example.test", i = 700, a = 1500, o = async () => {
|
|
5
|
-
await t(i);
|
|
6
|
-
}, s = (e, t) => ({
|
|
7
|
-
total: e,
|
|
8
|
-
matched: 0,
|
|
9
|
-
unmatched: 0,
|
|
10
|
-
unreadable: 0,
|
|
11
|
-
stillProcessing: 0,
|
|
12
|
-
...t
|
|
13
|
-
}), c = (e) => async (n) => (await t(a), s(n, e(n))), l = () => {
|
|
14
|
-
let e = 0;
|
|
15
|
-
return {
|
|
16
|
-
onFileUpload: async () => {
|
|
17
|
-
if (await t(i), e += 1, e === 1) throw Error("Upload failed");
|
|
18
|
-
},
|
|
19
|
-
onAwaitMatching: async (t) => (e = 0, s(t, { matched: t }))
|
|
20
|
-
};
|
|
21
|
-
}, u = (t, r) => ({
|
|
22
|
-
key: t,
|
|
23
|
-
...n.scenarios[t],
|
|
24
|
-
routes: [e([])],
|
|
25
|
-
props: r
|
|
26
|
-
}), d = [
|
|
27
|
-
u("all-matched", {
|
|
28
|
-
emailAddress: r,
|
|
29
|
-
onFileUpload: o,
|
|
30
|
-
onAwaitMatching: c((e) => ({ matched: e }))
|
|
31
|
-
}),
|
|
32
|
-
u("partly-matched", {
|
|
33
|
-
emailAddress: r,
|
|
34
|
-
onFileUpload: o,
|
|
35
|
-
onAwaitMatching: c((e) => ({
|
|
36
|
-
matched: e - 1,
|
|
37
|
-
unmatched: 1
|
|
38
|
-
}))
|
|
39
|
-
}),
|
|
40
|
-
u("still-processing", {
|
|
41
|
-
emailAddress: r,
|
|
42
|
-
onFileUpload: o,
|
|
43
|
-
onAwaitMatching: c((e) => ({ stillProcessing: e }))
|
|
44
|
-
}),
|
|
45
|
-
u("upload-fails", {
|
|
46
|
-
emailAddress: r,
|
|
47
|
-
perMount: l
|
|
48
|
-
}),
|
|
49
|
-
u("upload-only", { onFileUpload: o }),
|
|
50
|
-
u("host-uploading", {
|
|
51
|
-
emailAddress: r,
|
|
52
|
-
onFileUpload: o,
|
|
53
|
-
isUploading: !0
|
|
54
|
-
})
|
|
55
|
-
];
|
|
56
|
-
//#endregion
|
|
57
|
-
export { d as uploadReceiptScenarios };
|