@tesouro/embedded-components-react 0.5.109 → 0.5.110
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 +29 -10
- package/dist/index.css +0 -3
- package/dist/lib/monite-sdk.d.ts +2 -29
- package/dist/lib/monite-sdk.js +4 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +5 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +1 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +64 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +32 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +2 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +33 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +29 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +29 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +93 -18
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +2 -6
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +0 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +0 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +0 -80
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index612.js +0 -146
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index613.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index614.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index615.js +0 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index617.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +0 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index619.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index620.js +0 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index621.js +0 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index622.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index623.js +0 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index624.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index625.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index626.js +0 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index627.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index628.js +0 -97
package/README.md
CHANGED
|
@@ -49,13 +49,13 @@ boundary.
|
|
|
49
49
|
|
|
50
50
|
### Entry points
|
|
51
51
|
|
|
52
|
-
| Import path | What you get
|
|
53
|
-
| ------------------------------------------------- |
|
|
54
|
-
| `@tesouro/embedded-components-react` | All widgets, `WidgetSuite`, plus `RootWidgetProvider` / `WidgetProvider`.
|
|
55
|
-
| `@tesouro/embedded-components-react/styles.css` | The widget stylesheet — see [About the stylesheet](#about-the-stylesheet).
|
|
56
|
-
| `@tesouro/embedded-components-react/core` | Framework-agnostic token utilities (`createWidgetTokenManager`).
|
|
57
|
-
| `@tesouro/embedded-components-react/monite-sdk` | Monite
|
|
58
|
-
| `@tesouro/embedded-components-react/experimental` | Work in progress — no compatibility promise. See [below](#experimental-entry-point).
|
|
52
|
+
| Import path | What you get |
|
|
53
|
+
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
54
|
+
| `@tesouro/embedded-components-react` | All widgets, `WidgetSuite`, plus `RootWidgetProvider` / `WidgetProvider`. |
|
|
55
|
+
| `@tesouro/embedded-components-react/styles.css` | The widget stylesheet — see [About the stylesheet](#about-the-stylesheet). |
|
|
56
|
+
| `@tesouro/embedded-components-react/core` | Framework-agnostic token utilities (`createWidgetTokenManager`). |
|
|
57
|
+
| `@tesouro/embedded-components-react/monite-sdk` | Legacy Monite surface, being removed — no compatibility promise. See [below](#monite-sdk-entry-point). |
|
|
58
|
+
| `@tesouro/embedded-components-react/experimental` | Work in progress — no compatibility promise. See [below](#experimental-entry-point). |
|
|
59
59
|
|
|
60
60
|
### Experimental entry point
|
|
61
61
|
|
|
@@ -74,9 +74,28 @@ is **outside this package's semver contract**:
|
|
|
74
74
|
Use it only when we have pointed you at a specific module, and pin the package
|
|
75
75
|
to an exact version if you do.
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
The supported surface — the main entry point, `./core`, `./lib/*` and the
|
|
78
|
+
stylesheet — carries the normal compatibility promise and is unaffected by churn
|
|
79
|
+
on this path. `./monite-sdk` does not; see below.
|
|
80
|
+
|
|
81
|
+
### Monite SDK entry point
|
|
82
|
+
|
|
83
|
+
`@tesouro/embedded-components-react/monite-sdk` is a **legacy compatibility
|
|
84
|
+
export, not an integration surface.** It exists because an earlier generation of
|
|
85
|
+
Tesouro's own apps mounted Monite components directly. It was never meant for
|
|
86
|
+
anyone else to build on, and it is **outside this package's compatibility
|
|
87
|
+
promise**, on the same footing as `./experimental`:
|
|
88
|
+
|
|
89
|
+
- Its exports are **being removed**, surface by surface, as each Monite-backed
|
|
90
|
+
screen is replaced by a native Tesouro widget. Names disappear from it with no
|
|
91
|
+
deprecation window.
|
|
92
|
+
- It is deliberately undocumented here — no prop tables, no reference entries.
|
|
93
|
+
- The subpath itself goes away once nothing needs it.
|
|
94
|
+
|
|
95
|
+
Every Monite-backed widget on the main entry point already wraps Monite for you
|
|
96
|
+
and exposes Tesouro props. That is the surface to build on. Reach for
|
|
97
|
+
`./monite-sdk` only if we have pointed you at it, and pin an exact version if
|
|
98
|
+
you do.
|
|
80
99
|
|
|
81
100
|
### About the stylesheet
|
|
82
101
|
|
package/dist/index.css
CHANGED
|
@@ -2742,9 +2742,6 @@
|
|
|
2742
2742
|
.ttw\:bg-zinc-100 {
|
|
2743
2743
|
background-color: var(--ttw-color-zinc-100);
|
|
2744
2744
|
}
|
|
2745
|
-
.ttw\:bg-zinc-200 {
|
|
2746
|
-
background-color: var(--ttw-color-zinc-200);
|
|
2747
|
-
}
|
|
2748
2745
|
.ttw\:bg-zinc-300 {
|
|
2749
2746
|
background-color: var(--ttw-color-zinc-300);
|
|
2750
2747
|
}
|
package/dist/lib/monite-sdk.d.ts
CHANGED
|
@@ -72336,9 +72336,6 @@ interface CreateReceivablesProps {
|
|
|
72336
72336
|
*/
|
|
72337
72337
|
declare const CreateReceivables: (props: CreateReceivablesProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
72338
72338
|
|
|
72339
|
-
type ARDocumentType = 'invoice' | 'quote' | 'credit_note' | 'delivery_note';
|
|
72340
|
-
type APDocumentType = 'purchase_order';
|
|
72341
|
-
|
|
72342
72339
|
interface IconWrapperEvents {
|
|
72343
72340
|
onHover?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
72344
72341
|
onFocus?: (event: FocusEvent<HTMLButtonElement>) => void;
|
|
@@ -72493,17 +72490,6 @@ interface FinancingSettings {
|
|
|
72493
72490
|
*/
|
|
72494
72491
|
financeSteps: FinanceStep[];
|
|
72495
72492
|
}
|
|
72496
|
-
/** TemplateSettings now only supports 2 settings */
|
|
72497
|
-
interface TemplateSettings$1 {
|
|
72498
|
-
/**
|
|
72499
|
-
* List of available AR documents for customisation, defaults to all of the documents.
|
|
72500
|
-
*/
|
|
72501
|
-
availableARDocuments: ARDocumentType[];
|
|
72502
|
-
/**
|
|
72503
|
-
* List of available AP documents for customisation, defaults to all of the documents.
|
|
72504
|
-
*/
|
|
72505
|
-
availableAPDocuments: APDocumentType[];
|
|
72506
|
-
}
|
|
72507
72493
|
/**
|
|
72508
72494
|
* Action handlers for custom payment flows in payable operations.
|
|
72509
72495
|
*
|
|
@@ -72627,7 +72613,6 @@ interface ComponentSettings {
|
|
|
72627
72613
|
} & TablePaginationSettings;
|
|
72628
72614
|
onboarding: Partial<OnboardingSettings>;
|
|
72629
72615
|
financing: Partial<FinancingSettings>;
|
|
72630
|
-
templateSettings: Partial<TemplateSettings$1>;
|
|
72631
72616
|
}
|
|
72632
72617
|
|
|
72633
72618
|
type UsePayableDetailsProps = {
|
|
@@ -74477,18 +74462,6 @@ declare const Dialog: ({ ref, ...props }: MoniteDialogProps & {
|
|
|
74477
74462
|
|
|
74478
74463
|
declare function Integrations(): _emotion_react_jsx_runtime.JSX.Element;
|
|
74479
74464
|
|
|
74480
|
-
type TemplateSettingsProps = {
|
|
74481
|
-
/** Flag that controls whether settings are shown inside a side panel or not */
|
|
74482
|
-
isDialog?: boolean;
|
|
74483
|
-
/** The Settings shell can own the section title when this is embedded there. */
|
|
74484
|
-
showHeader?: boolean;
|
|
74485
|
-
/** Flag that controls whether dialog is open or not. It's meant to be passed in when isDialog is true */
|
|
74486
|
-
isOpen?: boolean;
|
|
74487
|
-
/** Callback function that is called when you close the dialog. It's meant to be passed in when isDialog is true */
|
|
74488
|
-
handleCloseDialog?: () => void;
|
|
74489
|
-
};
|
|
74490
|
-
declare const TemplateSettings: (props: TemplateSettingsProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
74491
|
-
|
|
74492
74465
|
declare const FinanceBanner: (props: FinanceBannerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
74493
74466
|
type FinanceBannerProps = {
|
|
74494
74467
|
/** `enableServicingBanner` is a boolean flag that enables the `FinanceBanner` to be a small summarized version of the financing tab, but only works when entity is onboarded and is servicing. */
|
|
@@ -75007,5 +74980,5 @@ declare const MoniteAPIProvider: ({ children, APIContext, }: {
|
|
|
75007
74980
|
APIContext: Context<QraftContextValue>;
|
|
75008
74981
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
75009
74982
|
|
|
75010
|
-
export { schema_d as APISchema, ApprovalPolicies, ApprovalPoliciesTable, ApprovalPolicyDetails, ApprovalRequests, ApprovalRequestsTable, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, CounterpartAutocomplete, CounterpartDetails, Counterparts, CreateProduct, CreateReceivables, CreditNotesTable, CustomersTable, Dialog, FinanceBanner, FinanceIntegrationCard, FinanceInvoice, FinanceTab, Integrations, InvoicesTable, LOGO_MAX_FILE_SIZE_IN_MB, LOGO_SUPPORTED_FORMATS, MoniteAPIProvider, MoniteProvider, MoniteScopedProviders, OCR_SUPPORTED_FORMATS, PageHeader, PayableDetails, Payables, PayablesTable, ProductDetails, Products, ProductsTable, QuotesTable, Receivables, ReceivablesTable, ReceivablesTableTabEnum, RootElementsProvider, TagFormModal, Tags, TagsTable,
|
|
75011
|
-
export type { ApprovalPolicyDetailsProps, ComponentSettings, CounterpartResponse, CounterpartsAutocompleteOptionProps, CountriesType, CountryType, CreateMoniteAPIClientOptions, CreateMoniteAPIClientResult, CreateProductProps, CreateReceivableResult, CreateReceivableSubmitMode, CreateReceivablesProps, CreditNotesTableSortModel, CurrenciesType, CurrencyGroup, CurrencyType, CustomersTableProps, InvoicesTableProps, MoniteApprovalRequestStatusChipProps, MoniteApprovalStatusChipProps, MoniteCounterpartStatusChipProps, MoniteDialogProps, MoniteInvoiceRecurrenceIterationStatusChipProps, MoniteInvoiceRecurrenceStatusChipProps, MoniteInvoiceStatusChipProps, MonitePayableStatusChipProps, MoniteReceivablesTableProps, MoniteSettings, PaginationLayout, PaginationPosition, PayActionHandlers, PayablesDetailsProps, PayablesProps, ProductDetailsProps, ProductTableProps, ProductsProps, QuotesTableSortModel, ReceivableGridSortModel, ReceivablesProps, ReceivablesTableProps,
|
|
74983
|
+
export { schema_d as APISchema, ApprovalPolicies, ApprovalPoliciesTable, ApprovalPolicyDetails, ApprovalRequests, ApprovalRequestsTable, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, CounterpartAutocomplete, CounterpartDetails, Counterparts, CreateProduct, CreateReceivables, CreditNotesTable, CustomersTable, Dialog, FinanceBanner, FinanceIntegrationCard, FinanceInvoice, FinanceTab, Integrations, InvoicesTable, LOGO_MAX_FILE_SIZE_IN_MB, LOGO_SUPPORTED_FORMATS, MoniteAPIProvider, MoniteProvider, MoniteScopedProviders, OCR_SUPPORTED_FORMATS, PageHeader, PayableDetails, Payables, PayablesTable, ProductDetails, Products, ProductsTable, QuotesTable, Receivables, ReceivablesTable, ReceivablesTableTabEnum, RootElementsProvider, TagFormModal, Tags, TagsTable, VendorsTable, breakpoints, countryCurrencyList, createAPIClient, dateStringToLocalDate, defaultAvailableCountries, defaultAvailableCurrencies, defaultCounterpartColumnWidth, filterOptions, formatDateRangeFilterChip, formatFilterChipMultiSelectValueSegment, getCounterpartName, getCountries, getCountriesArray, getCurrencies, getCurrenciesArray, getEntityName, getGroupTitleForOption, getIndividualName, getIndividualNameWithFallback, getPayableRefetchInterval, getUserDisplayName, rateMajorToMinor, rateMinorToMajor, sortCurrencyOptionsByGroup, useApprovalPolicyById, useAreCounterpartsLoading, useAutosizeGridColumns, useCancelPayableById, useComboboxAnchor, useComponentSettings, useCounterpartAddresses, useCounterpartById, useCounterpartContactList, useCounterpartList, useCounterpartVatList, useCreatePayable, useCreatePayableLineItem, useCreatePaymentRecord, useCurrencies, useDebounce, useDebounceCallback, useDeletePayable, useDeletePayableLineItem, useDialog, useEntitySettings, useEntityUserByAuthToken, useEntityUserById, useEntityUserNames, useFileById, useFileInput, useForceApprovePayable, useForceRejectPayable, useFormPersist, useGetPayableApprovalRequests, useGetPayableById, useGetPayableCounterpart, useGetPayableLineItems, useGetPayablesAnalytics, useGetReceivableById, useIsDesktopScreen, useIsExtraLargeDesktopScreen, useIsLargeDesktopScreen, useIsLargerThan, useIsMobile, useIsMobileScreen, useIsMounted, useIsSmallerThan, useIsTabletScreen, useLedgerAccounts, useLocalStorageFields, useMe, useMediaQuery, useMenuButton, useMoniteContext, useMyEntity, useOptionalFields, usePatchEntitiesIdSettings, usePayButtonVisibility, usePayableCallbacks, usePayableDetailsThemeProps, usePayablePaymentIntentsAndRecords, usePaymentIntentById, usePaymentRecordById, usePaymentRecords, useReceivablesTableProps, useReopenPayable, useRootElements, useSubmitPayableForApproval, useUpdatePayable, useUpdatePayableLineItem };
|
|
74984
|
+
export type { ApprovalPolicyDetailsProps, ComponentSettings, CounterpartResponse, CounterpartsAutocompleteOptionProps, CountriesType, CountryType, CreateMoniteAPIClientOptions, CreateMoniteAPIClientResult, CreateProductProps, CreateReceivableResult, CreateReceivableSubmitMode, CreateReceivablesProps, CreditNotesTableSortModel, CurrenciesType, CurrencyGroup, CurrencyType, CustomersTableProps, InvoicesTableProps, MoniteApprovalRequestStatusChipProps, MoniteApprovalStatusChipProps, MoniteCounterpartStatusChipProps, MoniteDialogProps, MoniteInvoiceRecurrenceIterationStatusChipProps, MoniteInvoiceRecurrenceStatusChipProps, MoniteInvoiceStatusChipProps, MonitePayableStatusChipProps, MoniteReceivablesTableProps, MoniteSettings, PaginationLayout, PaginationPosition, PayActionHandlers, PayablesDetailsProps, PayablesProps, ProductDetailsProps, ProductTableProps, ProductsProps, QuotesTableSortModel, ReceivableGridSortModel, ReceivablesProps, ReceivablesTableProps, UseEntityUserNamesParams, UseFileInputOptions, VendorDetailsProps, VendorsTableProps };
|
package/dist/lib/monite-sdk.js
CHANGED
|
@@ -87,9 +87,8 @@ import { FinanceIntegrationCard as Mt } from "../libs/tesouro-embedded-component
|
|
|
87
87
|
import { FinanceInvoice as Nt } from "../libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js";
|
|
88
88
|
import { FinanceTab as Pt } from "../libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js";
|
|
89
89
|
import { Integrations as Ft } from "../libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js";
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import { toast as zt } from "../libs/tesouro-embedded-components-react/monite-sdk/dist/index627.js";
|
|
90
|
+
import { MoniteAPIProvider as It } from "../libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js";
|
|
91
|
+
import { MoniteProvider as Lt } from "../libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js";
|
|
92
|
+
import { toast as Rt } from "../libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js";
|
|
94
93
|
import "../libs/tesouro-embedded-components-react/monite-sdk/dist/index.js";
|
|
95
|
-
export { Ge as ApprovalPolicies, Ue as ApprovalPoliciesTable, He as ApprovalPolicyDetails, qe as ApprovalRequests, Ke as ApprovalRequestsTable, w as Combobox, T as ComboboxChip, E as ComboboxChips, D as ComboboxChipsInput, O as ComboboxCollection, k as ComboboxContent, A as ComboboxEmpty, j as ComboboxGroup, M as ComboboxInput, N as ComboboxItem, P as ComboboxLabel, F as ComboboxList, I as ComboboxSeparator, L as ComboboxTrigger, R as ComboboxValue, Be as CounterpartAutocomplete, Ie as CounterpartDetails, ze as Counterparts, Dt as CreateProduct, bt as CreateReceivables, yt as CreditNotesTable, Le as CustomersTable, Ne as Dialog, jt as FinanceBanner, Mt as FinanceIntegrationCard, Nt as FinanceInvoice, Pt as FinanceTab, Ft as Integrations, _t as InvoicesTable, de as LOGO_MAX_FILE_SIZE_IN_MB, fe as LOGO_SUPPORTED_FORMATS,
|
|
94
|
+
export { Ge as ApprovalPolicies, Ue as ApprovalPoliciesTable, He as ApprovalPolicyDetails, qe as ApprovalRequests, Ke as ApprovalRequestsTable, w as Combobox, T as ComboboxChip, E as ComboboxChips, D as ComboboxChipsInput, O as ComboboxCollection, k as ComboboxContent, A as ComboboxEmpty, j as ComboboxGroup, M as ComboboxInput, N as ComboboxItem, P as ComboboxLabel, F as ComboboxList, I as ComboboxSeparator, L as ComboboxTrigger, R as ComboboxValue, Be as CounterpartAutocomplete, Ie as CounterpartDetails, ze as Counterparts, Dt as CreateProduct, bt as CreateReceivables, yt as CreditNotesTable, Le as CustomersTable, Ne as Dialog, jt as FinanceBanner, Mt as FinanceIntegrationCard, Nt as FinanceInvoice, Pt as FinanceTab, Ft as Integrations, _t as InvoicesTable, de as LOGO_MAX_FILE_SIZE_IN_MB, fe as LOGO_SUPPORTED_FORMATS, It as MoniteAPIProvider, Lt as MoniteProvider, Fe as MoniteScopedProviders, pe as OCR_SUPPORTED_FORMATS, We as PageHeader, mt as PayableDetails, gt as Payables, ht as PayablesTable, Et as ProductDetails, Ot as Products, Tt as ProductsTable, vt as QuotesTable, wt as Receivables, xt as ReceivablesTable, St as ReceivablesTableTabEnum, ce as RootElementsProvider, Ve as TagFormModal, At as Tags, kt as TagsTable, Re as VendorsTable, we as breakpoints, t as countryCurrencyList, e as createAPIClient, g as dateStringToLocalDate, n as defaultAvailableCountries, a as defaultAvailableCurrencies, he as defaultCounterpartColumnWidth, o as filterOptions, _ as formatDateRangeFilterChip, v as formatFilterChipMultiSelectValueSegment, S as getCounterpartName, r as getCountries, i as getCountriesArray, s as getCurrencies, c as getCurrenciesArray, X as getEntityName, l as getGroupTitleForOption, p as getIndividualName, m as getIndividualNameWithFallback, $e as getPayableRefetchInterval, h as getUserDisplayName, u as rateMajorToMinor, d as rateMinorToMajor, f as sortCurrencyOptionsByGroup, Rt as toast, J as useApprovalPolicyById, ge as useAreCounterpartsLoading, _e as useAutosizeGridColumns, ct as useCancelPayableById, z as useComboboxAnchor, Ce as useComponentSettings, H as useCounterpartAddresses, x as useCounterpartById, W as useCounterpartContactList, V as useCounterpartList, U as useCounterpartVatList, rt as useCreatePayable, at as useCreatePayableLineItem, $ as useCreatePaymentRecord, C as useCurrencies, be as useDebounce, xe as useDebounceCallback, pt as useDeletePayable, st as useDeletePayableLineItem, Pe as useDialog, ie as useEntitySettings, G as useEntityUserByAuthToken, K as useEntityUserById, q as useEntityUserNames, Y as useFileById, me as useFileInput, dt as useForceApprovePayable, ut as useForceRejectPayable, ve as useFormPersist, nt as useGetPayableApprovalRequests, et as useGetPayableById, Je as useGetPayableCounterpart, tt as useGetPayableLineItems, B as useGetPayablesAnalytics, oe as useGetReceivableById, Te as useIsDesktopScreen, Ee as useIsExtraLargeDesktopScreen, De as useIsLargeDesktopScreen, Oe as useIsLargerThan, Se as useIsMobile, ke as useIsMobileScreen, y as useIsMounted, Ae as useIsSmallerThan, je as useIsTabletScreen, Qe as useLedgerAccounts, ye as useLocalStorageFields, Z as useMe, Me as useMediaQuery, ue as useMenuButton, b as useMoniteContext, Q as useMyEntity, se as useOptionalFields, ae as usePatchEntitiesIdSettings, Ze as usePayButtonVisibility, Xe as usePayableCallbacks, Ye as usePayableDetailsThemeProps, ee as usePayablePaymentIntentsAndRecords, re as usePaymentIntentById, te as usePaymentRecordById, ne as usePaymentRecords, Ct as useReceivablesTableProps, ft as useReopenPayable, le as useRootElements, lt as useSubmitPayableForApproval, it as useUpdatePayable, ot as useUpdatePayableLineItem };
|
|
@@ -91,9 +91,8 @@ import { FinanceIntegrationCard as Mt } from "./index588.js";
|
|
|
91
91
|
import { FinanceInvoice as Nt } from "./index590.js";
|
|
92
92
|
import { FinanceTab as Pt } from "./index595.js";
|
|
93
93
|
import { Integrations as Ft } from "./index598.js";
|
|
94
|
-
import
|
|
95
|
-
import "./
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
|
|
99
|
-
export { Ge as ApprovalPolicies, Ue as ApprovalPoliciesTable, He as ApprovalPolicyDetails, qe as ApprovalRequests, Ke as ApprovalRequestsTable, w as Combobox, T as ComboboxChip, E as ComboboxChips, D as ComboboxChipsInput, O as ComboboxCollection, k as ComboboxContent, A as ComboboxEmpty, j as ComboboxGroup, M as ComboboxInput, N as ComboboxItem, P as ComboboxLabel, F as ComboboxList, I as ComboboxSeparator, L as ComboboxTrigger, R as ComboboxValue, Be as CounterpartAutocomplete, Ie as CounterpartDetails, ze as Counterparts, Dt as CreateProduct, bt as CreateReceivables, yt as CreditNotesTable, Le as CustomersTable, Ne as Dialog, jt as FinanceBanner, Mt as FinanceIntegrationCard, Nt as FinanceInvoice, Pt as FinanceTab, Ft as Integrations, _t as InvoicesTable, de as LOGO_MAX_FILE_SIZE_IN_MB, fe as LOGO_SUPPORTED_FORMATS, Lt as MoniteAPIProvider, Rt as MoniteProvider, Fe as MoniteScopedProviders, pe as OCR_SUPPORTED_FORMATS, We as PageHeader, mt as PayableDetails, gt as Payables, ht as PayablesTable, Et as ProductDetails, Ot as Products, Tt as ProductsTable, vt as QuotesTable, wt as Receivables, xt as ReceivablesTable, St as ReceivablesTableTabEnum, ce as RootElementsProvider, Ve as TagFormModal, At as Tags, kt as TagsTable, It as TemplateSettings, Re as VendorsTable, we as breakpoints, t as countryCurrencyList, e as createAPIClient, g as dateStringToLocalDate, n as defaultAvailableCountries, a as defaultAvailableCurrencies, he as defaultCounterpartColumnWidth, o as filterOptions, _ as formatDateRangeFilterChip, v as formatFilterChipMultiSelectValueSegment, S as getCounterpartName, r as getCountries, i as getCountriesArray, s as getCurrencies, c as getCurrenciesArray, X as getEntityName, l as getGroupTitleForOption, p as getIndividualName, m as getIndividualNameWithFallback, $e as getPayableRefetchInterval, h as getUserDisplayName, u as rateMajorToMinor, d as rateMinorToMajor, f as sortCurrencyOptionsByGroup, zt as toast, J as useApprovalPolicyById, ge as useAreCounterpartsLoading, _e as useAutosizeGridColumns, ct as useCancelPayableById, z as useComboboxAnchor, Ce as useComponentSettings, H as useCounterpartAddresses, x as useCounterpartById, W as useCounterpartContactList, V as useCounterpartList, U as useCounterpartVatList, rt as useCreatePayable, at as useCreatePayableLineItem, $ as useCreatePaymentRecord, C as useCurrencies, be as useDebounce, xe as useDebounceCallback, pt as useDeletePayable, st as useDeletePayableLineItem, Pe as useDialog, ie as useEntitySettings, G as useEntityUserByAuthToken, K as useEntityUserById, q as useEntityUserNames, Y as useFileById, me as useFileInput, dt as useForceApprovePayable, ut as useForceRejectPayable, ve as useFormPersist, nt as useGetPayableApprovalRequests, et as useGetPayableById, Je as useGetPayableCounterpart, tt as useGetPayableLineItems, B as useGetPayablesAnalytics, oe as useGetReceivableById, Te as useIsDesktopScreen, Ee as useIsExtraLargeDesktopScreen, De as useIsLargeDesktopScreen, Oe as useIsLargerThan, Se as useIsMobile, ke as useIsMobileScreen, y as useIsMounted, Ae as useIsSmallerThan, je as useIsTabletScreen, Qe as useLedgerAccounts, ye as useLocalStorageFields, Z as useMe, Me as useMediaQuery, ue as useMenuButton, b as useMoniteContext, Q as useMyEntity, se as useOptionalFields, ae as usePatchEntitiesIdSettings, Ze as usePayButtonVisibility, Xe as usePayableCallbacks, Ye as usePayableDetailsThemeProps, ee as usePayablePaymentIntentsAndRecords, re as usePaymentIntentById, te as usePaymentRecordById, ne as usePaymentRecords, Ct as useReceivablesTableProps, ft as useReopenPayable, le as useRootElements, lt as useSubmitPayableForApproval, it as useUpdatePayable, ot as useUpdatePayableLineItem };
|
|
94
|
+
import "./index600.js";
|
|
95
|
+
import { MoniteAPIProvider as It } from "./index605.js";
|
|
96
|
+
import { MoniteProvider as Lt } from "./index606.js";
|
|
97
|
+
import { toast as Rt } from "./index607.js";
|
|
98
|
+
export { Ge as ApprovalPolicies, Ue as ApprovalPoliciesTable, He as ApprovalPolicyDetails, qe as ApprovalRequests, Ke as ApprovalRequestsTable, w as Combobox, T as ComboboxChip, E as ComboboxChips, D as ComboboxChipsInput, O as ComboboxCollection, k as ComboboxContent, A as ComboboxEmpty, j as ComboboxGroup, M as ComboboxInput, N as ComboboxItem, P as ComboboxLabel, F as ComboboxList, I as ComboboxSeparator, L as ComboboxTrigger, R as ComboboxValue, Be as CounterpartAutocomplete, Ie as CounterpartDetails, ze as Counterparts, Dt as CreateProduct, bt as CreateReceivables, yt as CreditNotesTable, Le as CustomersTable, Ne as Dialog, jt as FinanceBanner, Mt as FinanceIntegrationCard, Nt as FinanceInvoice, Pt as FinanceTab, Ft as Integrations, _t as InvoicesTable, de as LOGO_MAX_FILE_SIZE_IN_MB, fe as LOGO_SUPPORTED_FORMATS, It as MoniteAPIProvider, Lt as MoniteProvider, Fe as MoniteScopedProviders, pe as OCR_SUPPORTED_FORMATS, We as PageHeader, mt as PayableDetails, gt as Payables, ht as PayablesTable, Et as ProductDetails, Ot as Products, Tt as ProductsTable, vt as QuotesTable, wt as Receivables, xt as ReceivablesTable, St as ReceivablesTableTabEnum, ce as RootElementsProvider, Ve as TagFormModal, At as Tags, kt as TagsTable, Re as VendorsTable, we as breakpoints, t as countryCurrencyList, e as createAPIClient, g as dateStringToLocalDate, n as defaultAvailableCountries, a as defaultAvailableCurrencies, he as defaultCounterpartColumnWidth, o as filterOptions, _ as formatDateRangeFilterChip, v as formatFilterChipMultiSelectValueSegment, S as getCounterpartName, r as getCountries, i as getCountriesArray, s as getCurrencies, c as getCurrenciesArray, X as getEntityName, l as getGroupTitleForOption, p as getIndividualName, m as getIndividualNameWithFallback, $e as getPayableRefetchInterval, h as getUserDisplayName, u as rateMajorToMinor, d as rateMinorToMajor, f as sortCurrencyOptionsByGroup, Rt as toast, J as useApprovalPolicyById, ge as useAreCounterpartsLoading, _e as useAutosizeGridColumns, ct as useCancelPayableById, z as useComboboxAnchor, Ce as useComponentSettings, H as useCounterpartAddresses, x as useCounterpartById, W as useCounterpartContactList, V as useCounterpartList, U as useCounterpartVatList, rt as useCreatePayable, at as useCreatePayableLineItem, $ as useCreatePaymentRecord, C as useCurrencies, be as useDebounce, xe as useDebounceCallback, pt as useDeletePayable, st as useDeletePayableLineItem, Pe as useDialog, ie as useEntitySettings, G as useEntityUserByAuthToken, K as useEntityUserById, q as useEntityUserNames, Y as useFileById, me as useFileInput, dt as useForceApprovePayable, ut as useForceRejectPayable, ve as useFormPersist, nt as useGetPayableApprovalRequests, et as useGetPayableById, Je as useGetPayableCounterpart, tt as useGetPayableLineItems, B as useGetPayablesAnalytics, oe as useGetReceivableById, Te as useIsDesktopScreen, Ee as useIsExtraLargeDesktopScreen, De as useIsLargeDesktopScreen, Oe as useIsLargerThan, Se as useIsMobile, ke as useIsMobileScreen, y as useIsMounted, Ae as useIsSmallerThan, je as useIsTabletScreen, Qe as useLedgerAccounts, ye as useLocalStorageFields, Z as useMe, Me as useMediaQuery, ue as useMenuButton, b as useMoniteContext, Q as useMyEntity, se as useOptionalFields, ae as usePatchEntitiesIdSettings, Ze as usePayButtonVisibility, Xe as usePayableCallbacks, Ye as usePayableDetailsThemeProps, ee as usePayablePaymentIntentsAndRecords, re as usePaymentIntentById, te as usePaymentRecordById, ne as usePaymentRecords, Ct as useReceivablesTableProps, ft as useReopenPayable, le as useRootElements, lt as useSubmitPayableForApproval, it as useUpdatePayable, ot as useUpdatePayableLineItem };
|
|
@@ -120,16 +120,7 @@ var a = [10, 25], o = (o, s) => ({
|
|
|
120
120
|
onWorkingCapitalOnboardingComplete: s?.onboarding?.onWorkingCapitalOnboardingComplete,
|
|
121
121
|
onPaymentsOnboardingComplete: s?.onboarding?.onPaymentsOnboardingComplete
|
|
122
122
|
},
|
|
123
|
-
financing: s?.financing ?? {}
|
|
124
|
-
templateSettings: {
|
|
125
|
-
availableARDocuments: s?.templateSettings?.availableARDocuments ?? [
|
|
126
|
-
"invoice",
|
|
127
|
-
"credit_note",
|
|
128
|
-
"quote",
|
|
129
|
-
"delivery_note"
|
|
130
|
-
],
|
|
131
|
-
availableAPDocuments: s?.templateSettings?.availableAPDocuments ?? ["purchase_order"]
|
|
132
|
-
}
|
|
123
|
+
financing: s?.financing ?? {}
|
|
133
124
|
});
|
|
134
125
|
//#endregion
|
|
135
126
|
export { o as getDefaultComponentSettings };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Suspense as e, lazy as t, useEffect as n, useState as r } from "react";
|
|
2
2
|
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js
|
|
4
|
-
var a = t(() => import("./
|
|
4
|
+
var a = t(() => import("./index608.js")), o = ({ url: e, mimetype: t, name: n, showCloseButton: r, onClose: a }) => t === "application/pdf" ? /* @__PURE__ */ i(s, {
|
|
5
5
|
url: e,
|
|
6
6
|
showCloseButton: r,
|
|
7
7
|
onClose: a
|
|
@@ -1,24 +1,64 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import "./index52.js";
|
|
2
|
+
import "./index119.js";
|
|
3
|
+
import "./index234.js";
|
|
4
|
+
import "./index235.js";
|
|
5
|
+
import "./index244.js";
|
|
6
|
+
import "./index257.js";
|
|
7
|
+
import "./index258.js";
|
|
8
|
+
import "./index260.js";
|
|
9
|
+
import "./index262.js";
|
|
10
|
+
import "./index313.js";
|
|
11
|
+
import "./index323.js";
|
|
12
|
+
import "./index339.js";
|
|
13
|
+
import "./index341.js";
|
|
14
|
+
import "./index342.js";
|
|
15
|
+
import "./index358.js";
|
|
16
|
+
import "./index360.js";
|
|
17
|
+
import "./index363.js";
|
|
18
|
+
import "./index364.js";
|
|
19
|
+
import "./index365.js";
|
|
20
|
+
import "./index366.js";
|
|
21
|
+
import "./index367.js";
|
|
22
|
+
import "./index368.js";
|
|
23
|
+
import "./index369.js";
|
|
24
|
+
import "./index370.js";
|
|
25
|
+
import "./index371.js";
|
|
26
|
+
import "./index372.js";
|
|
27
|
+
import "./index373.js";
|
|
28
|
+
import "./index374.js";
|
|
29
|
+
import "./index375.js";
|
|
30
|
+
import "./index376.js";
|
|
31
|
+
import "./index377.js";
|
|
32
|
+
import "./index378.js";
|
|
33
|
+
import "./index379.js";
|
|
34
|
+
import "./index380.js";
|
|
35
|
+
import "./index381.js";
|
|
36
|
+
import "./index429.js";
|
|
37
|
+
import "./index442.js";
|
|
38
|
+
import "./index447.js";
|
|
39
|
+
import "./index453.js";
|
|
40
|
+
import "./index458.js";
|
|
41
|
+
import "./index459.js";
|
|
42
|
+
import "./index517.js";
|
|
43
|
+
import "./index548.js";
|
|
44
|
+
import "./index549.js";
|
|
45
|
+
import "./index556.js";
|
|
46
|
+
import "./index560.js";
|
|
47
|
+
import "./index561.js";
|
|
48
|
+
import "./index562.js";
|
|
49
|
+
import "./index567.js";
|
|
50
|
+
import "./index569.js";
|
|
51
|
+
import "./index582.js";
|
|
52
|
+
import "./index588.js";
|
|
53
|
+
import "./index590.js";
|
|
54
|
+
import "./index595.js";
|
|
55
|
+
import "./index597.js";
|
|
56
|
+
import "./index598.js";
|
|
57
|
+
import "./index263.js";
|
|
58
|
+
import "./index343.js";
|
|
59
|
+
import "./index361.js";
|
|
60
|
+
import "./index448.js";
|
|
61
|
+
import "./index550.js";
|
|
62
|
+
import "./index563.js";
|
|
63
|
+
import "./index570.js";
|
|
64
|
+
import "./index599.js";
|
|
@@ -1,4 +1,32 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "react";
|
|
3
|
-
import "
|
|
4
|
-
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Toaster as t } from "react-hot-toast";
|
|
3
|
+
import { useTheme as n } from "@mui/material";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js
|
|
5
|
+
var r = () => {
|
|
6
|
+
let r = n();
|
|
7
|
+
return /* @__PURE__ */ e(t, {
|
|
8
|
+
toastOptions: {
|
|
9
|
+
className: "ttw:[&>[role=status]]:min-w-0",
|
|
10
|
+
style: {
|
|
11
|
+
padding: "8px 12px",
|
|
12
|
+
borderRadius: "4px",
|
|
13
|
+
fontFamily: r.typography.body1.fontFamily,
|
|
14
|
+
fontWeight: 500,
|
|
15
|
+
fontSize: "14px",
|
|
16
|
+
lineHeight: "20px",
|
|
17
|
+
background: r.palette.grey[900],
|
|
18
|
+
color: r.palette.grey[50]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
gutter: 8,
|
|
22
|
+
position: "bottom-left",
|
|
23
|
+
containerStyle: {
|
|
24
|
+
top: 40,
|
|
25
|
+
left: 40,
|
|
26
|
+
bottom: 40,
|
|
27
|
+
right: 40
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { r as GlobalToast };
|