@tesouro/embedded-components-react 0.4.6 → 0.4.10
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.d.ts +10 -60
- package/dist/lib/AcceptDisclosuresWidget.d.ts +1 -3
- package/dist/lib/BankAccountOnboardingWidget.d.ts +1 -4
- package/dist/lib/CardDetailsWidget.d.ts +1 -13
- package/dist/lib/CounterpartsWidget.d.ts +1 -3
- package/dist/lib/CreditCardsWidget.d.ts +6 -38
- package/dist/lib/DebitCardsWidget.d.ts +6 -38
- package/dist/lib/WidgetSuite.d.ts +7 -47
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.json.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, PropsWithChildren, ErrorInfo, ReactElement } from 'react';
|
|
3
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
|
+
import { PartialDeep } from 'type-fest';
|
|
4
5
|
|
|
5
6
|
type AuthToken = string | undefined;
|
|
6
7
|
interface Auth {
|
|
@@ -1546,14 +1547,6 @@ interface BankAccountsWidgetProps extends WidgetProviderProps {
|
|
|
1546
1547
|
}
|
|
1547
1548
|
declare function BankAccountsWidget({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: BankAccountsWidgetProps): React.JSX.Element;
|
|
1548
1549
|
|
|
1549
|
-
/**
|
|
1550
|
-
* Every key of `T` optional, recursively, so a consumer can override one nested
|
|
1551
|
-
* label without restating its siblings. Defined locally because the repo has no
|
|
1552
|
-
* shared deep-partial type and does not depend on `type-fest`.
|
|
1553
|
-
*/
|
|
1554
|
-
type PartialDeep$7<T> = {
|
|
1555
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$7<T[K]> : T[K];
|
|
1556
|
-
};
|
|
1557
1550
|
interface CardsListColumnHeaderLabels {
|
|
1558
1551
|
cardName: string;
|
|
1559
1552
|
fundingAccount: string;
|
|
@@ -1784,19 +1777,6 @@ interface ActivateCardPanelLabels {
|
|
|
1784
1777
|
status: ActivateCardStatusLabels;
|
|
1785
1778
|
}
|
|
1786
1779
|
|
|
1787
|
-
/**
|
|
1788
|
-
* Deep partial for label overrides.
|
|
1789
|
-
*
|
|
1790
|
-
* Both label surfaces this widget exposes have nested groups, and a shallow
|
|
1791
|
-
* `Partial` would let a consumer who overrides one nested string drop the rest
|
|
1792
|
-
* of that group. The repo has no shared `PartialDeep` and does not depend on
|
|
1793
|
-
* `type-fest`, so each labels module defines its own — `card-details-widget/ui`
|
|
1794
|
-
* has an identical one for the panel's labels, and this declaration also types
|
|
1795
|
-
* that prop here so the widget carries one such helper rather than two.
|
|
1796
|
-
*/
|
|
1797
|
-
type PartialDeep$6<T> = {
|
|
1798
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$6<T[K]> : T[K];
|
|
1799
|
-
};
|
|
1800
1780
|
/**
|
|
1801
1781
|
* Copy the **feature** layer owns, as opposed to the panel's own
|
|
1802
1782
|
* `CardDetailsPanelLabels`.
|
|
@@ -1889,11 +1869,11 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
|
|
|
1889
1869
|
*/
|
|
1890
1870
|
onClose?: () => void;
|
|
1891
1871
|
/** Overrides for the panel's own copy. */
|
|
1892
|
-
labels?: PartialDeep
|
|
1872
|
+
labels?: PartialDeep<CardDetailsPanelLabels>;
|
|
1893
1873
|
/** Overrides for the Activate Card form's copy. */
|
|
1894
|
-
activateLabels?: PartialDeep
|
|
1874
|
+
activateLabels?: PartialDeep<ActivateCardPanelLabels>;
|
|
1895
1875
|
/** Overrides for the copy this layer resolves — see `CardDetailsFeatureLabels`. */
|
|
1896
|
-
featureLabels?: PartialDeep
|
|
1876
|
+
featureLabels?: PartialDeep<CardDetailsFeatureLabels>;
|
|
1897
1877
|
/**
|
|
1898
1878
|
* Bank logo for the card face. The widget ships no bank artwork of its own and
|
|
1899
1879
|
* resolves none from the init response: an embeddable library must not depend
|
|
@@ -1947,9 +1927,6 @@ interface CardControlsLabels {
|
|
|
1947
1927
|
};
|
|
1948
1928
|
}
|
|
1949
1929
|
|
|
1950
|
-
type PartialDeep$5<T> = {
|
|
1951
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$5<T[K]> : T[K];
|
|
1952
|
-
};
|
|
1953
1930
|
interface CreateCardWidgetLabels {
|
|
1954
1931
|
header: {
|
|
1955
1932
|
title: string;
|
|
@@ -2078,7 +2055,7 @@ interface CreateCardFeatureLabels {
|
|
|
2078
2055
|
type CreateCardWidgetProps = WidgetProviderProps & {
|
|
2079
2056
|
/** Static card plastic image URL (no overlays). Host / white-label supplied. */
|
|
2080
2057
|
cardArtSrc: string;
|
|
2081
|
-
labels?: PartialDeep
|
|
2058
|
+
labels?: PartialDeep<CreateCardWidgetLabels>;
|
|
2082
2059
|
featureLabels?: Partial<{
|
|
2083
2060
|
toast: Partial<CreateCardFeatureLabels['toast']>;
|
|
2084
2061
|
untitledFundingAccount: string;
|
|
@@ -2093,15 +2070,6 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
2093
2070
|
onViewCard?: (cardId: string) => void;
|
|
2094
2071
|
};
|
|
2095
2072
|
|
|
2096
|
-
/**
|
|
2097
|
-
* Every key of `T` optional, recursively, so a consumer can override one nested
|
|
2098
|
-
* label without restating its siblings. Defined locally because the repo has no
|
|
2099
|
-
* shared deep-partial type and does not depend on `type-fest` — same helper the
|
|
2100
|
-
* two card `ui` libs declare.
|
|
2101
|
-
*/
|
|
2102
|
-
type PartialDeep$4<T> = {
|
|
2103
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$4<T[K]> : T[K];
|
|
2104
|
-
};
|
|
2105
2073
|
/**
|
|
2106
2074
|
* Strings this layer produces rather than passes through.
|
|
2107
2075
|
*
|
|
@@ -2200,7 +2168,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
2200
2168
|
* `ui` lib's own deep-partial helper (each labels module declares one — the
|
|
2201
2169
|
* repo has no shared version) so this prop follows that library's contract.
|
|
2202
2170
|
*/
|
|
2203
|
-
labels?: PartialDeep
|
|
2171
|
+
labels?: PartialDeep<CardsListLabels>;
|
|
2204
2172
|
/**
|
|
2205
2173
|
* Overrides for the copy this layer produces rather than passes through — the
|
|
2206
2174
|
* status and form-factor vocabulary, the empty-cell placeholder, the nickname
|
|
@@ -2208,7 +2176,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
2208
2176
|
* the list library receives those values already formatted and so has no key
|
|
2209
2177
|
* for them; `BankAccountsWidget.featureLabels` is the same split.
|
|
2210
2178
|
*/
|
|
2211
|
-
featureLabels?: PartialDeep
|
|
2179
|
+
featureLabels?: PartialDeep<CardsFeatureLabels>;
|
|
2212
2180
|
/**
|
|
2213
2181
|
* The card whose details panel is open. Supply with `onSelectedCardIdChange`
|
|
2214
2182
|
* when the host owns that state — a deep-linked `/cards/[id]`, say. `null`
|
|
@@ -2742,14 +2710,6 @@ interface WidgetSuiteShellLabels {
|
|
|
2742
2710
|
body: string;
|
|
2743
2711
|
};
|
|
2744
2712
|
}
|
|
2745
|
-
/**
|
|
2746
|
-
* `Labels` has a nested group, so a shallow `{ ...defaults, ...overrides }`
|
|
2747
|
-
* would let a consumer overriding one `emptyState` string drop the other. The
|
|
2748
|
-
* repo has no shared deep-partial type, so each labels module declares its own.
|
|
2749
|
-
*/
|
|
2750
|
-
type PartialDeep$3<T> = {
|
|
2751
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$3<T[K]> : T[K];
|
|
2752
|
-
};
|
|
2753
2713
|
|
|
2754
2714
|
/**
|
|
2755
2715
|
* The section id vocabulary, and the shape of a registry entry.
|
|
@@ -2929,7 +2889,7 @@ interface WidgetSuiteLabels {
|
|
|
2929
2889
|
* (`PartialDeep` maps a function-valued label to `{}`). The two suite-owned
|
|
2930
2890
|
* groups under it are made partial one level for the same reason.
|
|
2931
2891
|
*/
|
|
2932
|
-
type WidgetSuiteLabelOverrides = PartialDeep
|
|
2892
|
+
type WidgetSuiteLabelOverrides = PartialDeep<Omit<WidgetSuiteLabels, 'sections'>> & {
|
|
2933
2893
|
sections?: Partial<Omit<WidgetSuiteSectionContentLabels, 'cards' | 'expenses'>> & {
|
|
2934
2894
|
cards?: Partial<WidgetSuiteCardsLabels>;
|
|
2935
2895
|
expenses?: Partial<WidgetSuiteExpensesLabels>;
|
|
@@ -3033,9 +2993,6 @@ interface WidgetSuiteProps extends WidgetProviderProps {
|
|
|
3033
2993
|
*/
|
|
3034
2994
|
declare function WidgetSuite({ baseUrl, widgetToken, organizationId, configClient, gatewayRouting, linkComponent, implementation, uiFramework, errorFallback, onError, analytics, disclosuresAcceptance, providerLabels, ...innerProps }: WidgetSuiteProps): React.JSX.Element;
|
|
3035
2995
|
|
|
3036
|
-
type PartialDeep$2<T> = {
|
|
3037
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$2<T[K]> : T[K];
|
|
3038
|
-
};
|
|
3039
2996
|
interface AcceptDisclosuresWidgetLabels {
|
|
3040
2997
|
title: string;
|
|
3041
2998
|
acceptButton: string;
|
|
@@ -3154,7 +3111,7 @@ interface AcceptDisclosuresWidgetProps$1 {
|
|
|
3154
3111
|
isAccepted?: boolean;
|
|
3155
3112
|
/** Inline error shown under Accept; omit or empty when there is no error. */
|
|
3156
3113
|
errorMessage?: string;
|
|
3157
|
-
labels?: PartialDeep
|
|
3114
|
+
labels?: PartialDeep<AcceptDisclosuresWidgetLabels>;
|
|
3158
3115
|
testIds?: AcceptDisclosuresWidgetTestIds;
|
|
3159
3116
|
}
|
|
3160
3117
|
|
|
@@ -3206,9 +3163,6 @@ interface AchFieldGroupLabels {
|
|
|
3206
3163
|
routingNumber: string;
|
|
3207
3164
|
accountNumber: string;
|
|
3208
3165
|
}
|
|
3209
|
-
type PartialDeep$1<T> = {
|
|
3210
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$1<T[K]> : T[K];
|
|
3211
|
-
};
|
|
3212
3166
|
interface CounterpartFormSheetLabels {
|
|
3213
3167
|
createTitleOrganization: string;
|
|
3214
3168
|
createTitleIndividual: string;
|
|
@@ -3697,7 +3651,7 @@ interface CounterpartsWidgetOwnProps {
|
|
|
3697
3651
|
*/
|
|
3698
3652
|
onViewAllDocuments?: () => void;
|
|
3699
3653
|
screenLabels?: Partial<CounterpartsScreenLabels>;
|
|
3700
|
-
formLabels?: PartialDeep
|
|
3654
|
+
formLabels?: PartialDeep<CounterpartFormSheetLabels>;
|
|
3701
3655
|
detailsLabels?: Partial<CounterpartDetailsSheetLabels>;
|
|
3702
3656
|
bankAccountLabels?: Partial<BankAccountFormSheetLabels>;
|
|
3703
3657
|
addressLabels?: Partial<AddressFormSheetLabels>;
|
|
@@ -4433,10 +4387,6 @@ interface DisclosureLinks {
|
|
|
4433
4387
|
patriotActHref?: string;
|
|
4434
4388
|
}
|
|
4435
4389
|
|
|
4436
|
-
/** Nested keys are individually optional — see AGENTS.md labels guidance. */
|
|
4437
|
-
type PartialDeep<T> = {
|
|
4438
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
4439
|
-
};
|
|
4440
4390
|
interface BankAccountOnboardingWidgetLabels {
|
|
4441
4391
|
stepIndicator: {
|
|
4442
4392
|
business: string;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode, ComponentType, AnchorHTMLAttributes, ErrorInfo } from 'react';
|
|
3
|
+
import { PartialDeep } from 'type-fest';
|
|
3
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
5
|
|
|
5
|
-
type PartialDeep<T> = {
|
|
6
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
7
|
-
};
|
|
8
6
|
interface AcceptDisclosuresWidgetLabels {
|
|
9
7
|
title: string;
|
|
10
8
|
acceptButton: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
+
import { PartialDeep } from 'type-fest';
|
|
3
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
5
|
|
|
5
6
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
@@ -908,10 +909,6 @@ interface DisclosureLinks {
|
|
|
908
909
|
patriotActHref?: string;
|
|
909
910
|
}
|
|
910
911
|
|
|
911
|
-
/** Nested keys are individually optional — see AGENTS.md labels guidance. */
|
|
912
|
-
type PartialDeep<T> = {
|
|
913
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
914
|
-
};
|
|
915
912
|
interface BankAccountOnboardingWidgetLabels {
|
|
916
913
|
stepIndicator: {
|
|
917
914
|
business: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
+
import { PartialDeep } from 'type-fest';
|
|
3
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
5
|
|
|
5
6
|
/** Accessible copy for the panel header's controls. */
|
|
@@ -830,19 +831,6 @@ type CardStatus = CreditCardStatus;
|
|
|
830
831
|
*/
|
|
831
832
|
type CardType = CreditCardType;
|
|
832
833
|
|
|
833
|
-
/**
|
|
834
|
-
* Deep partial for label overrides.
|
|
835
|
-
*
|
|
836
|
-
* Both label surfaces this widget exposes have nested groups, and a shallow
|
|
837
|
-
* `Partial` would let a consumer who overrides one nested string drop the rest
|
|
838
|
-
* of that group. The repo has no shared `PartialDeep` and does not depend on
|
|
839
|
-
* `type-fest`, so each labels module defines its own — `card-details-widget/ui`
|
|
840
|
-
* has an identical one for the panel's labels, and this declaration also types
|
|
841
|
-
* that prop here so the widget carries one such helper rather than two.
|
|
842
|
-
*/
|
|
843
|
-
type PartialDeep<T> = {
|
|
844
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
845
|
-
};
|
|
846
834
|
/**
|
|
847
835
|
* Copy the **feature** layer owns, as opposed to the panel's own
|
|
848
836
|
* `CardDetailsPanelLabels`.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
+
import { PartialDeep } from 'type-fest';
|
|
3
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
5
|
|
|
5
6
|
type AuthToken = string | undefined;
|
|
@@ -643,9 +644,6 @@ interface AchFieldGroupLabels {
|
|
|
643
644
|
routingNumber: string;
|
|
644
645
|
accountNumber: string;
|
|
645
646
|
}
|
|
646
|
-
type PartialDeep<T> = {
|
|
647
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
648
|
-
};
|
|
649
647
|
interface CounterpartFormSheetLabels {
|
|
650
648
|
createTitleOrganization: string;
|
|
651
649
|
createTitleIndividual: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
+
import { PartialDeep } from 'type-fest';
|
|
3
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
5
|
|
|
5
6
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
@@ -29,14 +30,6 @@ interface PaginationFooterLabels {
|
|
|
29
30
|
nextPageButton: string;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
/**
|
|
33
|
-
* Every key of `T` optional, recursively, so a consumer can override one nested
|
|
34
|
-
* label without restating its siblings. Defined locally because the repo has no
|
|
35
|
-
* shared deep-partial type and does not depend on `type-fest`.
|
|
36
|
-
*/
|
|
37
|
-
type PartialDeep$3<T> = {
|
|
38
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$3<T[K]> : T[K];
|
|
39
|
-
};
|
|
40
33
|
interface CardsListColumnHeaderLabels {
|
|
41
34
|
cardName: string;
|
|
42
35
|
fundingAccount: string;
|
|
@@ -919,19 +912,6 @@ interface ActivateCardPanelLabels {
|
|
|
919
912
|
status: ActivateCardStatusLabels;
|
|
920
913
|
}
|
|
921
914
|
|
|
922
|
-
/**
|
|
923
|
-
* Deep partial for label overrides.
|
|
924
|
-
*
|
|
925
|
-
* Both label surfaces this widget exposes have nested groups, and a shallow
|
|
926
|
-
* `Partial` would let a consumer who overrides one nested string drop the rest
|
|
927
|
-
* of that group. The repo has no shared `PartialDeep` and does not depend on
|
|
928
|
-
* `type-fest`, so each labels module defines its own — `card-details-widget/ui`
|
|
929
|
-
* has an identical one for the panel's labels, and this declaration also types
|
|
930
|
-
* that prop here so the widget carries one such helper rather than two.
|
|
931
|
-
*/
|
|
932
|
-
type PartialDeep$2<T> = {
|
|
933
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$2<T[K]> : T[K];
|
|
934
|
-
};
|
|
935
915
|
/**
|
|
936
916
|
* Copy the **feature** layer owns, as opposed to the panel's own
|
|
937
917
|
* `CardDetailsPanelLabels`.
|
|
@@ -1024,11 +1004,11 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
|
|
|
1024
1004
|
*/
|
|
1025
1005
|
onClose?: () => void;
|
|
1026
1006
|
/** Overrides for the panel's own copy. */
|
|
1027
|
-
labels?: PartialDeep
|
|
1007
|
+
labels?: PartialDeep<CardDetailsPanelLabels>;
|
|
1028
1008
|
/** Overrides for the Activate Card form's copy. */
|
|
1029
|
-
activateLabels?: PartialDeep
|
|
1009
|
+
activateLabels?: PartialDeep<ActivateCardPanelLabels>;
|
|
1030
1010
|
/** Overrides for the copy this layer resolves — see `CardDetailsFeatureLabels`. */
|
|
1031
|
-
featureLabels?: PartialDeep
|
|
1011
|
+
featureLabels?: PartialDeep<CardDetailsFeatureLabels>;
|
|
1032
1012
|
/**
|
|
1033
1013
|
* Bank logo for the card face. The widget ships no bank artwork of its own and
|
|
1034
1014
|
* resolves none from the init response: an embeddable library must not depend
|
|
@@ -1067,9 +1047,6 @@ interface CardControlsLabels {
|
|
|
1067
1047
|
};
|
|
1068
1048
|
}
|
|
1069
1049
|
|
|
1070
|
-
type PartialDeep$1<T> = {
|
|
1071
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$1<T[K]> : T[K];
|
|
1072
|
-
};
|
|
1073
1050
|
interface CreateCardWidgetLabels {
|
|
1074
1051
|
header: {
|
|
1075
1052
|
title: string;
|
|
@@ -1198,7 +1175,7 @@ interface CreateCardFeatureLabels {
|
|
|
1198
1175
|
type CreateCardWidgetProps = WidgetProviderProps & {
|
|
1199
1176
|
/** Static card plastic image URL (no overlays). Host / white-label supplied. */
|
|
1200
1177
|
cardArtSrc: string;
|
|
1201
|
-
labels?: PartialDeep
|
|
1178
|
+
labels?: PartialDeep<CreateCardWidgetLabels>;
|
|
1202
1179
|
featureLabels?: Partial<{
|
|
1203
1180
|
toast: Partial<CreateCardFeatureLabels['toast']>;
|
|
1204
1181
|
untitledFundingAccount: string;
|
|
@@ -1213,15 +1190,6 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
1213
1190
|
onViewCard?: (cardId: string) => void;
|
|
1214
1191
|
};
|
|
1215
1192
|
|
|
1216
|
-
/**
|
|
1217
|
-
* Every key of `T` optional, recursively, so a consumer can override one nested
|
|
1218
|
-
* label without restating its siblings. Defined locally because the repo has no
|
|
1219
|
-
* shared deep-partial type and does not depend on `type-fest` — same helper the
|
|
1220
|
-
* two card `ui` libs declare.
|
|
1221
|
-
*/
|
|
1222
|
-
type PartialDeep<T> = {
|
|
1223
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
1224
|
-
};
|
|
1225
1193
|
/**
|
|
1226
1194
|
* Strings this layer produces rather than passes through.
|
|
1227
1195
|
*
|
|
@@ -1320,7 +1288,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
1320
1288
|
* `ui` lib's own deep-partial helper (each labels module declares one — the
|
|
1321
1289
|
* repo has no shared version) so this prop follows that library's contract.
|
|
1322
1290
|
*/
|
|
1323
|
-
labels?: PartialDeep
|
|
1291
|
+
labels?: PartialDeep<CardsListLabels>;
|
|
1324
1292
|
/**
|
|
1325
1293
|
* Overrides for the copy this layer produces rather than passes through — the
|
|
1326
1294
|
* status and form-factor vocabulary, the empty-cell placeholder, the nickname
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo } from 'react';
|
|
3
|
+
import { PartialDeep } from 'type-fest';
|
|
3
4
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
5
|
|
|
5
6
|
type LinkComponentProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
@@ -29,14 +30,6 @@ interface PaginationFooterLabels {
|
|
|
29
30
|
nextPageButton: string;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
/**
|
|
33
|
-
* Every key of `T` optional, recursively, so a consumer can override one nested
|
|
34
|
-
* label without restating its siblings. Defined locally because the repo has no
|
|
35
|
-
* shared deep-partial type and does not depend on `type-fest`.
|
|
36
|
-
*/
|
|
37
|
-
type PartialDeep$3<T> = {
|
|
38
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$3<T[K]> : T[K];
|
|
39
|
-
};
|
|
40
33
|
interface CardsListColumnHeaderLabels {
|
|
41
34
|
cardName: string;
|
|
42
35
|
fundingAccount: string;
|
|
@@ -919,19 +912,6 @@ interface ActivateCardPanelLabels {
|
|
|
919
912
|
status: ActivateCardStatusLabels;
|
|
920
913
|
}
|
|
921
914
|
|
|
922
|
-
/**
|
|
923
|
-
* Deep partial for label overrides.
|
|
924
|
-
*
|
|
925
|
-
* Both label surfaces this widget exposes have nested groups, and a shallow
|
|
926
|
-
* `Partial` would let a consumer who overrides one nested string drop the rest
|
|
927
|
-
* of that group. The repo has no shared `PartialDeep` and does not depend on
|
|
928
|
-
* `type-fest`, so each labels module defines its own — `card-details-widget/ui`
|
|
929
|
-
* has an identical one for the panel's labels, and this declaration also types
|
|
930
|
-
* that prop here so the widget carries one such helper rather than two.
|
|
931
|
-
*/
|
|
932
|
-
type PartialDeep$2<T> = {
|
|
933
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$2<T[K]> : T[K];
|
|
934
|
-
};
|
|
935
915
|
/**
|
|
936
916
|
* Copy the **feature** layer owns, as opposed to the panel's own
|
|
937
917
|
* `CardDetailsPanelLabels`.
|
|
@@ -1024,11 +1004,11 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
|
|
|
1024
1004
|
*/
|
|
1025
1005
|
onClose?: () => void;
|
|
1026
1006
|
/** Overrides for the panel's own copy. */
|
|
1027
|
-
labels?: PartialDeep
|
|
1007
|
+
labels?: PartialDeep<CardDetailsPanelLabels>;
|
|
1028
1008
|
/** Overrides for the Activate Card form's copy. */
|
|
1029
|
-
activateLabels?: PartialDeep
|
|
1009
|
+
activateLabels?: PartialDeep<ActivateCardPanelLabels>;
|
|
1030
1010
|
/** Overrides for the copy this layer resolves — see `CardDetailsFeatureLabels`. */
|
|
1031
|
-
featureLabels?: PartialDeep
|
|
1011
|
+
featureLabels?: PartialDeep<CardDetailsFeatureLabels>;
|
|
1032
1012
|
/**
|
|
1033
1013
|
* Bank logo for the card face. The widget ships no bank artwork of its own and
|
|
1034
1014
|
* resolves none from the init response: an embeddable library must not depend
|
|
@@ -1067,9 +1047,6 @@ interface CardControlsLabels {
|
|
|
1067
1047
|
};
|
|
1068
1048
|
}
|
|
1069
1049
|
|
|
1070
|
-
type PartialDeep$1<T> = {
|
|
1071
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$1<T[K]> : T[K];
|
|
1072
|
-
};
|
|
1073
1050
|
interface CreateCardWidgetLabels {
|
|
1074
1051
|
header: {
|
|
1075
1052
|
title: string;
|
|
@@ -1198,7 +1175,7 @@ interface CreateCardFeatureLabels {
|
|
|
1198
1175
|
type CreateCardWidgetProps = WidgetProviderProps & {
|
|
1199
1176
|
/** Static card plastic image URL (no overlays). Host / white-label supplied. */
|
|
1200
1177
|
cardArtSrc: string;
|
|
1201
|
-
labels?: PartialDeep
|
|
1178
|
+
labels?: PartialDeep<CreateCardWidgetLabels>;
|
|
1202
1179
|
featureLabels?: Partial<{
|
|
1203
1180
|
toast: Partial<CreateCardFeatureLabels['toast']>;
|
|
1204
1181
|
untitledFundingAccount: string;
|
|
@@ -1213,15 +1190,6 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
1213
1190
|
onViewCard?: (cardId: string) => void;
|
|
1214
1191
|
};
|
|
1215
1192
|
|
|
1216
|
-
/**
|
|
1217
|
-
* Every key of `T` optional, recursively, so a consumer can override one nested
|
|
1218
|
-
* label without restating its siblings. Defined locally because the repo has no
|
|
1219
|
-
* shared deep-partial type and does not depend on `type-fest` — same helper the
|
|
1220
|
-
* two card `ui` libs declare.
|
|
1221
|
-
*/
|
|
1222
|
-
type PartialDeep<T> = {
|
|
1223
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
1224
|
-
};
|
|
1225
1193
|
/**
|
|
1226
1194
|
* Strings this layer produces rather than passes through.
|
|
1227
1195
|
*
|
|
@@ -1320,7 +1288,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
1320
1288
|
* `ui` lib's own deep-partial helper (each labels module declares one — the
|
|
1321
1289
|
* repo has no shared version) so this prop follows that library's contract.
|
|
1322
1290
|
*/
|
|
1323
|
-
labels?: PartialDeep
|
|
1291
|
+
labels?: PartialDeep<CardsListLabels>;
|
|
1324
1292
|
/**
|
|
1325
1293
|
* Overrides for the copy this layer produces rather than passes through — the
|
|
1326
1294
|
* status and form-factor vocabulary, the empty-cell placeholder, the nickname
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, AnchorHTMLAttributes, ReactNode, ErrorInfo, ReactElement } from 'react';
|
|
3
3
|
import { FallbackProps } from 'react-error-boundary';
|
|
4
|
+
import { PartialDeep } from 'type-fest';
|
|
4
5
|
|
|
5
6
|
type AuthToken = string | undefined;
|
|
6
7
|
interface Auth {
|
|
@@ -850,14 +851,6 @@ interface BankAccountsWidgetProps extends WidgetProviderProps {
|
|
|
850
851
|
onSelectedAccountIdChange?: (accountId: string | null) => void;
|
|
851
852
|
}
|
|
852
853
|
|
|
853
|
-
/**
|
|
854
|
-
* Every key of `T` optional, recursively, so a consumer can override one nested
|
|
855
|
-
* label without restating its siblings. Defined locally because the repo has no
|
|
856
|
-
* shared deep-partial type and does not depend on `type-fest`.
|
|
857
|
-
*/
|
|
858
|
-
type PartialDeep$4<T> = {
|
|
859
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$4<T[K]> : T[K];
|
|
860
|
-
};
|
|
861
854
|
interface CardsListColumnHeaderLabels {
|
|
862
855
|
cardName: string;
|
|
863
856
|
fundingAccount: string;
|
|
@@ -1088,19 +1081,6 @@ interface ActivateCardPanelLabels {
|
|
|
1088
1081
|
status: ActivateCardStatusLabels;
|
|
1089
1082
|
}
|
|
1090
1083
|
|
|
1091
|
-
/**
|
|
1092
|
-
* Deep partial for label overrides.
|
|
1093
|
-
*
|
|
1094
|
-
* Both label surfaces this widget exposes have nested groups, and a shallow
|
|
1095
|
-
* `Partial` would let a consumer who overrides one nested string drop the rest
|
|
1096
|
-
* of that group. The repo has no shared `PartialDeep` and does not depend on
|
|
1097
|
-
* `type-fest`, so each labels module defines its own — `card-details-widget/ui`
|
|
1098
|
-
* has an identical one for the panel's labels, and this declaration also types
|
|
1099
|
-
* that prop here so the widget carries one such helper rather than two.
|
|
1100
|
-
*/
|
|
1101
|
-
type PartialDeep$3<T> = {
|
|
1102
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$3<T[K]> : T[K];
|
|
1103
|
-
};
|
|
1104
1084
|
/**
|
|
1105
1085
|
* Copy the **feature** layer owns, as opposed to the panel's own
|
|
1106
1086
|
* `CardDetailsPanelLabels`.
|
|
@@ -1193,11 +1173,11 @@ interface CardDetailsWidgetProps extends WidgetProviderProps {
|
|
|
1193
1173
|
*/
|
|
1194
1174
|
onClose?: () => void;
|
|
1195
1175
|
/** Overrides for the panel's own copy. */
|
|
1196
|
-
labels?: PartialDeep
|
|
1176
|
+
labels?: PartialDeep<CardDetailsPanelLabels>;
|
|
1197
1177
|
/** Overrides for the Activate Card form's copy. */
|
|
1198
|
-
activateLabels?: PartialDeep
|
|
1178
|
+
activateLabels?: PartialDeep<ActivateCardPanelLabels>;
|
|
1199
1179
|
/** Overrides for the copy this layer resolves — see `CardDetailsFeatureLabels`. */
|
|
1200
|
-
featureLabels?: PartialDeep
|
|
1180
|
+
featureLabels?: PartialDeep<CardDetailsFeatureLabels>;
|
|
1201
1181
|
/**
|
|
1202
1182
|
* Bank logo for the card face. The widget ships no bank artwork of its own and
|
|
1203
1183
|
* resolves none from the init response: an embeddable library must not depend
|
|
@@ -1236,9 +1216,6 @@ interface CardControlsLabels {
|
|
|
1236
1216
|
};
|
|
1237
1217
|
}
|
|
1238
1218
|
|
|
1239
|
-
type PartialDeep$2<T> = {
|
|
1240
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$2<T[K]> : T[K];
|
|
1241
|
-
};
|
|
1242
1219
|
interface CreateCardWidgetLabels {
|
|
1243
1220
|
header: {
|
|
1244
1221
|
title: string;
|
|
@@ -1367,7 +1344,7 @@ interface CreateCardFeatureLabels {
|
|
|
1367
1344
|
type CreateCardWidgetProps = WidgetProviderProps & {
|
|
1368
1345
|
/** Static card plastic image URL (no overlays). Host / white-label supplied. */
|
|
1369
1346
|
cardArtSrc: string;
|
|
1370
|
-
labels?: PartialDeep
|
|
1347
|
+
labels?: PartialDeep<CreateCardWidgetLabels>;
|
|
1371
1348
|
featureLabels?: Partial<{
|
|
1372
1349
|
toast: Partial<CreateCardFeatureLabels['toast']>;
|
|
1373
1350
|
untitledFundingAccount: string;
|
|
@@ -1382,15 +1359,6 @@ type CreateCardWidgetProps = WidgetProviderProps & {
|
|
|
1382
1359
|
onViewCard?: (cardId: string) => void;
|
|
1383
1360
|
};
|
|
1384
1361
|
|
|
1385
|
-
/**
|
|
1386
|
-
* Every key of `T` optional, recursively, so a consumer can override one nested
|
|
1387
|
-
* label without restating its siblings. Defined locally because the repo has no
|
|
1388
|
-
* shared deep-partial type and does not depend on `type-fest` — same helper the
|
|
1389
|
-
* two card `ui` libs declare.
|
|
1390
|
-
*/
|
|
1391
|
-
type PartialDeep$1<T> = {
|
|
1392
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep$1<T[K]> : T[K];
|
|
1393
|
-
};
|
|
1394
1362
|
/**
|
|
1395
1363
|
* Strings this layer produces rather than passes through.
|
|
1396
1364
|
*
|
|
@@ -1489,7 +1457,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
1489
1457
|
* `ui` lib's own deep-partial helper (each labels module declares one — the
|
|
1490
1458
|
* repo has no shared version) so this prop follows that library's contract.
|
|
1491
1459
|
*/
|
|
1492
|
-
labels?: PartialDeep
|
|
1460
|
+
labels?: PartialDeep<CardsListLabels>;
|
|
1493
1461
|
/**
|
|
1494
1462
|
* Overrides for the copy this layer produces rather than passes through — the
|
|
1495
1463
|
* status and form-factor vocabulary, the empty-cell placeholder, the nickname
|
|
@@ -1497,7 +1465,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
|
|
|
1497
1465
|
* the list library receives those values already formatted and so has no key
|
|
1498
1466
|
* for them; `BankAccountsWidget.featureLabels` is the same split.
|
|
1499
1467
|
*/
|
|
1500
|
-
featureLabels?: PartialDeep
|
|
1468
|
+
featureLabels?: PartialDeep<CardsFeatureLabels>;
|
|
1501
1469
|
/**
|
|
1502
1470
|
* The card whose details panel is open. Supply with `onSelectedCardIdChange`
|
|
1503
1471
|
* when the host owns that state — a deep-linked `/cards/[id]`, say. `null`
|
|
@@ -1987,14 +1955,6 @@ interface WidgetSuiteShellLabels {
|
|
|
1987
1955
|
body: string;
|
|
1988
1956
|
};
|
|
1989
1957
|
}
|
|
1990
|
-
/**
|
|
1991
|
-
* `Labels` has a nested group, so a shallow `{ ...defaults, ...overrides }`
|
|
1992
|
-
* would let a consumer overriding one `emptyState` string drop the other. The
|
|
1993
|
-
* repo has no shared deep-partial type, so each labels module declares its own.
|
|
1994
|
-
*/
|
|
1995
|
-
type PartialDeep<T> = {
|
|
1996
|
-
[K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
|
|
1997
|
-
};
|
|
1998
1958
|
|
|
1999
1959
|
/**
|
|
2000
1960
|
* The section id vocabulary, and the shape of a registry entry.
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js
CHANGED
|
@@ -1829,6 +1829,7 @@ var ji = e.object({
|
|
|
1829
1829
|
quantity: e.number().gte(0).nullish(),
|
|
1830
1830
|
subtotal: e.int().nullish(),
|
|
1831
1831
|
tax: e.int().gte(0).lte(1e4).nullish(),
|
|
1832
|
+
tax_amount: e.int().nullish(),
|
|
1832
1833
|
total: e.int().nullish(),
|
|
1833
1834
|
unit: e.string().nullish(),
|
|
1834
1835
|
unit_price: e.int().nullish()
|
|
@@ -1847,7 +1848,10 @@ e.object({
|
|
|
1847
1848
|
ledger_account_id: e.uuid().nullish(),
|
|
1848
1849
|
name: e.string().nullish(),
|
|
1849
1850
|
quantity: e.number().gte(0).nullish(),
|
|
1851
|
+
subtotal: e.int().nullish(),
|
|
1850
1852
|
tax: e.int().gte(0).lte(1e4).nullish(),
|
|
1853
|
+
tax_amount: e.int().nullish(),
|
|
1854
|
+
total: e.int().nullish(),
|
|
1851
1855
|
unit: e.string().nullish(),
|
|
1852
1856
|
unit_price: e.int().nullish()
|
|
1853
1857
|
});
|
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.4.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.4.10", n = "c028b4cd9c6a78c46380ee7a52dbc3dc02e8d9dd", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tesouro/embedded-components-react",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageDepSync": {
|
|
@@ -214,6 +214,7 @@
|
|
|
214
214
|
"sonner": "^2.0.8",
|
|
215
215
|
"tailwind-merge": "^3.6.0",
|
|
216
216
|
"tailwind-variants": "^3.3.1",
|
|
217
|
+
"type-fest": "^4.41.0",
|
|
217
218
|
"zod": "^4.4.3"
|
|
218
219
|
},
|
|
219
220
|
"peerDependencies": {
|