@tesouro/embedded-components-react 0.9.26 → 0.9.29
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.css +26 -11
- package/dist/index.d.ts +23 -3
- package/dist/lib/BankAccountOnboardingWidget.d.ts +23 -3
- package/dist/lib/WidgetSuite.d.ts +23 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +366 -350
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index34.js +46 -0
- 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/ui/dist/lib/OnboardingShell/OnboardingShell.js +62 -51
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellScrollRegion.js +25 -45
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js +38 -48
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/useScrollHintContainer.js +10 -11
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -312,9 +312,6 @@
|
|
|
312
312
|
.ttw\:z-\[1\] {
|
|
313
313
|
z-index: 1;
|
|
314
314
|
}
|
|
315
|
-
.ttw\:z-\[2\] {
|
|
316
|
-
z-index: 2;
|
|
317
|
-
}
|
|
318
315
|
.ttw\:z-\[1300\] {
|
|
319
316
|
z-index: 1300;
|
|
320
317
|
}
|
|
@@ -1634,9 +1631,6 @@
|
|
|
1634
1631
|
.ttw\:grid-cols-\[minmax\(0\,1fr\)_auto\] {
|
|
1635
1632
|
grid-template-columns: minmax(0,1fr) auto;
|
|
1636
1633
|
}
|
|
1637
|
-
.ttw\:grid-rows-\[1fr\] {
|
|
1638
|
-
grid-template-rows: 1fr;
|
|
1639
|
-
}
|
|
1640
1634
|
.ttw\:grid-rows-\[auto_1fr_auto\] {
|
|
1641
1635
|
grid-template-rows: auto 1fr auto;
|
|
1642
1636
|
}
|
|
@@ -3145,9 +3139,6 @@
|
|
|
3145
3139
|
.ttw\:text-\[10px\] {
|
|
3146
3140
|
font-size: 10px;
|
|
3147
3141
|
}
|
|
3148
|
-
.ttw\:text-\[13px\] {
|
|
3149
|
-
font-size: 13px;
|
|
3150
|
-
}
|
|
3151
3142
|
.ttw\:text-\[30px\] {
|
|
3152
3143
|
font-size: 30px;
|
|
3153
3144
|
}
|
|
@@ -3851,6 +3842,10 @@
|
|
|
3851
3842
|
--tw-ease: linear;
|
|
3852
3843
|
transition-timing-function: linear;
|
|
3853
3844
|
}
|
|
3845
|
+
.ttw\:contain-inline-size {
|
|
3846
|
+
--tw-contain-size: inline-size;
|
|
3847
|
+
contain: var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,);
|
|
3848
|
+
}
|
|
3854
3849
|
.ttw\:animation-duration-300 {
|
|
3855
3850
|
--tw-animation-duration: calc(300*1ms);
|
|
3856
3851
|
animation-duration: calc(300*1ms);
|
|
@@ -4274,8 +4269,8 @@
|
|
|
4274
4269
|
.ttw\:last\:mt-0:last-child {
|
|
4275
4270
|
margin-top: 0px;
|
|
4276
4271
|
}
|
|
4277
|
-
.ttw\:last\:flex-
|
|
4278
|
-
flex:
|
|
4272
|
+
.ttw\:last\:flex-initial:last-child {
|
|
4273
|
+
flex: 0 auto;
|
|
4279
4274
|
}
|
|
4280
4275
|
.ttw\:last\:border-b:last-child {
|
|
4281
4276
|
border-bottom-style: var(--tw-border-style);
|
|
@@ -6690,6 +6685,22 @@
|
|
|
6690
6685
|
syntax: "*";
|
|
6691
6686
|
inherits: false;
|
|
6692
6687
|
}
|
|
6688
|
+
@property --tw-contain-size {
|
|
6689
|
+
syntax: "*";
|
|
6690
|
+
inherits: false;
|
|
6691
|
+
}
|
|
6692
|
+
@property --tw-contain-layout {
|
|
6693
|
+
syntax: "*";
|
|
6694
|
+
inherits: false;
|
|
6695
|
+
}
|
|
6696
|
+
@property --tw-contain-paint {
|
|
6697
|
+
syntax: "*";
|
|
6698
|
+
inherits: false;
|
|
6699
|
+
}
|
|
6700
|
+
@property --tw-contain-style {
|
|
6701
|
+
syntax: "*";
|
|
6702
|
+
inherits: false;
|
|
6703
|
+
}
|
|
6693
6704
|
@property --tw-content {
|
|
6694
6705
|
syntax: "*";
|
|
6695
6706
|
initial-value: "";
|
|
@@ -6812,6 +6823,10 @@
|
|
|
6812
6823
|
--tw-backdrop-sepia: initial;
|
|
6813
6824
|
--tw-duration: initial;
|
|
6814
6825
|
--tw-ease: initial;
|
|
6826
|
+
--tw-contain-size: initial;
|
|
6827
|
+
--tw-contain-layout: initial;
|
|
6828
|
+
--tw-contain-paint: initial;
|
|
6829
|
+
--tw-contain-style: initial;
|
|
6815
6830
|
--tw-content: "";
|
|
6816
6831
|
--tw-outline-style: solid;
|
|
6817
6832
|
--tw-animation-delay: 0s;
|
package/dist/index.d.ts
CHANGED
|
@@ -2041,6 +2041,13 @@ interface DeleteApplicationDialogLabels {
|
|
|
2041
2041
|
close: string;
|
|
2042
2042
|
}
|
|
2043
2043
|
|
|
2044
|
+
interface ApplicationDeletedScreenLabels {
|
|
2045
|
+
title: string;
|
|
2046
|
+
body: string;
|
|
2047
|
+
/** Restarts the flow on a fresh, empty application. */
|
|
2048
|
+
startNewApplicationButton: string;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2044
2051
|
/**
|
|
2045
2052
|
* Values the application-status copy can interpolate. The bank name comes from
|
|
2046
2053
|
* widget init with `fallbackBankName` applied, so it is never missing. The rest
|
|
@@ -2122,6 +2129,8 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
2122
2129
|
* defaults to `saveAndClose`, so it names the footer's save control.
|
|
2123
2130
|
*/
|
|
2124
2131
|
deleteApplicationDialog: Partial<DeleteApplicationDialogLabels>;
|
|
2132
|
+
/** The screen shown in place of the form once the application is deleted. */
|
|
2133
|
+
applicationDeleted: Partial<ApplicationDeletedScreenLabels>;
|
|
2125
2134
|
/** Visible text of the footer's Back control on every step. */
|
|
2126
2135
|
back: string;
|
|
2127
2136
|
/**
|
|
@@ -2146,7 +2155,11 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
2146
2155
|
saveAndClose: string;
|
|
2147
2156
|
/** The destructive footer control that opens the delete prompt. */
|
|
2148
2157
|
deleteApplication: string;
|
|
2149
|
-
/**
|
|
2158
|
+
/**
|
|
2159
|
+
* @deprecated No longer shown: a confirmed delete now replaces the form with
|
|
2160
|
+
* a confirmation screen, labelled through `applicationDeleted`. Kept so
|
|
2161
|
+
* existing overrides still compile.
|
|
2162
|
+
*/
|
|
2150
2163
|
applicationDeletedToast: string;
|
|
2151
2164
|
/** Shown after "Save and continue later" or the close prompt's "Save changes" writes the application. */
|
|
2152
2165
|
applicationSavedToast: string;
|
|
@@ -2248,7 +2261,8 @@ interface BankAccountOnboardingWidgetInnerProps {
|
|
|
2248
2261
|
} | null) => void;
|
|
2249
2262
|
/**
|
|
2250
2263
|
* Called once the applicant has deleted the application, so the session
|
|
2251
|
-
* scope can start a fresh one. Set by the
|
|
2264
|
+
* scope can show the deleted screen and later start a fresh one. Set by the
|
|
2265
|
+
* session scope, not by hosts.
|
|
2252
2266
|
*/
|
|
2253
2267
|
onApplicationDeleted?: () => void;
|
|
2254
2268
|
/**
|
|
@@ -2257,6 +2271,12 @@ interface BankAccountOnboardingWidgetInnerProps {
|
|
|
2257
2271
|
* the card was showing. Set by the session scope, not by hosts.
|
|
2258
2272
|
*/
|
|
2259
2273
|
onNoticeReplacedByForm?: () => void;
|
|
2274
|
+
/**
|
|
2275
|
+
* Moves focus to the form's title when it mounts. Set by the session scope
|
|
2276
|
+
* after "Start a new application", whose button unmounts with the deleted
|
|
2277
|
+
* screen. Not set by hosts.
|
|
2278
|
+
*/
|
|
2279
|
+
focusFormOnMount?: boolean;
|
|
2260
2280
|
bankLogoSrc?: string;
|
|
2261
2281
|
/**
|
|
2262
2282
|
* Host-resolved disclosure URLs for the business-details agreement step.
|
|
@@ -2285,7 +2305,7 @@ interface BankAccountOnboardingWidgetInnerProps {
|
|
|
2285
2305
|
*/
|
|
2286
2306
|
onResultPhaseChange?: (isInResultPhase: boolean) => void;
|
|
2287
2307
|
}
|
|
2288
|
-
type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm'> & {
|
|
2308
|
+
type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm' | 'focusFormOnMount'> & {
|
|
2289
2309
|
initialBusinessDetails?: Partial<HostSupplied<BusinessDetailsValues>>;
|
|
2290
2310
|
initialPersonalDetails?: Partial<HostSupplied<PersonalDetailsValues>>;
|
|
2291
2311
|
initialAdditionalOwners?: HostSuppliedOwner[];
|
|
@@ -1037,6 +1037,13 @@ interface DeleteApplicationDialogLabels {
|
|
|
1037
1037
|
close: string;
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
|
+
interface ApplicationDeletedScreenLabels {
|
|
1041
|
+
title: string;
|
|
1042
|
+
body: string;
|
|
1043
|
+
/** Restarts the flow on a fresh, empty application. */
|
|
1044
|
+
startNewApplicationButton: string;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1040
1047
|
/**
|
|
1041
1048
|
* Values the application-status copy can interpolate. The bank name comes from
|
|
1042
1049
|
* widget init with `fallbackBankName` applied, so it is never missing. The rest
|
|
@@ -1118,6 +1125,8 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
1118
1125
|
* defaults to `saveAndClose`, so it names the footer's save control.
|
|
1119
1126
|
*/
|
|
1120
1127
|
deleteApplicationDialog: Partial<DeleteApplicationDialogLabels>;
|
|
1128
|
+
/** The screen shown in place of the form once the application is deleted. */
|
|
1129
|
+
applicationDeleted: Partial<ApplicationDeletedScreenLabels>;
|
|
1121
1130
|
/** Visible text of the footer's Back control on every step. */
|
|
1122
1131
|
back: string;
|
|
1123
1132
|
/**
|
|
@@ -1142,7 +1151,11 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
1142
1151
|
saveAndClose: string;
|
|
1143
1152
|
/** The destructive footer control that opens the delete prompt. */
|
|
1144
1153
|
deleteApplication: string;
|
|
1145
|
-
/**
|
|
1154
|
+
/**
|
|
1155
|
+
* @deprecated No longer shown: a confirmed delete now replaces the form with
|
|
1156
|
+
* a confirmation screen, labelled through `applicationDeleted`. Kept so
|
|
1157
|
+
* existing overrides still compile.
|
|
1158
|
+
*/
|
|
1146
1159
|
applicationDeletedToast: string;
|
|
1147
1160
|
/** Shown after "Save and continue later" or the close prompt's "Save changes" writes the application. */
|
|
1148
1161
|
applicationSavedToast: string;
|
|
@@ -1244,7 +1257,8 @@ interface BankAccountOnboardingWidgetInnerProps {
|
|
|
1244
1257
|
} | null) => void;
|
|
1245
1258
|
/**
|
|
1246
1259
|
* Called once the applicant has deleted the application, so the session
|
|
1247
|
-
* scope can start a fresh one. Set by the
|
|
1260
|
+
* scope can show the deleted screen and later start a fresh one. Set by the
|
|
1261
|
+
* session scope, not by hosts.
|
|
1248
1262
|
*/
|
|
1249
1263
|
onApplicationDeleted?: () => void;
|
|
1250
1264
|
/**
|
|
@@ -1253,6 +1267,12 @@ interface BankAccountOnboardingWidgetInnerProps {
|
|
|
1253
1267
|
* the card was showing. Set by the session scope, not by hosts.
|
|
1254
1268
|
*/
|
|
1255
1269
|
onNoticeReplacedByForm?: () => void;
|
|
1270
|
+
/**
|
|
1271
|
+
* Moves focus to the form's title when it mounts. Set by the session scope
|
|
1272
|
+
* after "Start a new application", whose button unmounts with the deleted
|
|
1273
|
+
* screen. Not set by hosts.
|
|
1274
|
+
*/
|
|
1275
|
+
focusFormOnMount?: boolean;
|
|
1256
1276
|
bankLogoSrc?: string;
|
|
1257
1277
|
/**
|
|
1258
1278
|
* Host-resolved disclosure URLs for the business-details agreement step.
|
|
@@ -1281,7 +1301,7 @@ interface BankAccountOnboardingWidgetInnerProps {
|
|
|
1281
1301
|
*/
|
|
1282
1302
|
onResultPhaseChange?: (isInResultPhase: boolean) => void;
|
|
1283
1303
|
}
|
|
1284
|
-
type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm'> & {
|
|
1304
|
+
type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm' | 'focusFormOnMount'> & {
|
|
1285
1305
|
initialBusinessDetails?: Partial<HostSupplied<BusinessDetailsValues>>;
|
|
1286
1306
|
initialPersonalDetails?: Partial<HostSupplied<PersonalDetailsValues>>;
|
|
1287
1307
|
initialAdditionalOwners?: HostSuppliedOwner[];
|
|
@@ -1087,6 +1087,13 @@ interface DeleteApplicationDialogLabels {
|
|
|
1087
1087
|
close: string;
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
+
interface ApplicationDeletedScreenLabels {
|
|
1091
|
+
title: string;
|
|
1092
|
+
body: string;
|
|
1093
|
+
/** Restarts the flow on a fresh, empty application. */
|
|
1094
|
+
startNewApplicationButton: string;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1090
1097
|
/**
|
|
1091
1098
|
* Values the application-status copy can interpolate. The bank name comes from
|
|
1092
1099
|
* widget init with `fallbackBankName` applied, so it is never missing. The rest
|
|
@@ -1167,6 +1174,8 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
1167
1174
|
* defaults to `saveAndClose`, so it names the footer's save control.
|
|
1168
1175
|
*/
|
|
1169
1176
|
deleteApplicationDialog: Partial<DeleteApplicationDialogLabels>;
|
|
1177
|
+
/** The screen shown in place of the form once the application is deleted. */
|
|
1178
|
+
applicationDeleted: Partial<ApplicationDeletedScreenLabels>;
|
|
1170
1179
|
/** Visible text of the footer's Back control on every step. */
|
|
1171
1180
|
back: string;
|
|
1172
1181
|
/**
|
|
@@ -1191,7 +1200,11 @@ interface BankAccountOnboardingWidgetLabels {
|
|
|
1191
1200
|
saveAndClose: string;
|
|
1192
1201
|
/** The destructive footer control that opens the delete prompt. */
|
|
1193
1202
|
deleteApplication: string;
|
|
1194
|
-
/**
|
|
1203
|
+
/**
|
|
1204
|
+
* @deprecated No longer shown: a confirmed delete now replaces the form with
|
|
1205
|
+
* a confirmation screen, labelled through `applicationDeleted`. Kept so
|
|
1206
|
+
* existing overrides still compile.
|
|
1207
|
+
*/
|
|
1195
1208
|
applicationDeletedToast: string;
|
|
1196
1209
|
/** Shown after "Save and continue later" or the close prompt's "Save changes" writes the application. */
|
|
1197
1210
|
applicationSavedToast: string;
|
|
@@ -1293,7 +1306,8 @@ interface BankAccountOnboardingWidgetInnerProps {
|
|
|
1293
1306
|
} | null) => void;
|
|
1294
1307
|
/**
|
|
1295
1308
|
* Called once the applicant has deleted the application, so the session
|
|
1296
|
-
* scope can start a fresh one. Set by the
|
|
1309
|
+
* scope can show the deleted screen and later start a fresh one. Set by the
|
|
1310
|
+
* session scope, not by hosts.
|
|
1297
1311
|
*/
|
|
1298
1312
|
onApplicationDeleted?: () => void;
|
|
1299
1313
|
/**
|
|
@@ -1302,6 +1316,12 @@ interface BankAccountOnboardingWidgetInnerProps {
|
|
|
1302
1316
|
* the card was showing. Set by the session scope, not by hosts.
|
|
1303
1317
|
*/
|
|
1304
1318
|
onNoticeReplacedByForm?: () => void;
|
|
1319
|
+
/**
|
|
1320
|
+
* Moves focus to the form's title when it mounts. Set by the session scope
|
|
1321
|
+
* after "Start a new application", whose button unmounts with the deleted
|
|
1322
|
+
* screen. Not set by hosts.
|
|
1323
|
+
*/
|
|
1324
|
+
focusFormOnMount?: boolean;
|
|
1305
1325
|
bankLogoSrc?: string;
|
|
1306
1326
|
/**
|
|
1307
1327
|
* Host-resolved disclosure URLs for the business-details agreement step.
|
|
@@ -1330,7 +1350,7 @@ interface BankAccountOnboardingWidgetInnerProps {
|
|
|
1330
1350
|
*/
|
|
1331
1351
|
onResultPhaseChange?: (isInResultPhase: boolean) => void;
|
|
1332
1352
|
}
|
|
1333
|
-
type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm'> & {
|
|
1353
|
+
type BankAccountOnboardingWidgetProps = WidgetProviderProps & Omit<BankAccountOnboardingWidgetInnerProps, 'initialApplicationId' | 'initialBoundAuthEpoch' | 'initialBusinessDetails' | 'initialPersonalDetails' | 'initialAdditionalOwners' | 'onEditableDraftChange' | 'onApplicationDeleted' | 'onNoticeReplacedByForm' | 'focusFormOnMount'> & {
|
|
1334
1354
|
initialBusinessDetails?: Partial<HostSupplied<BusinessDetailsValues>>;
|
|
1335
1355
|
initialPersonalDetails?: Partial<HostSupplied<PersonalDetailsValues>>;
|
|
1336
1356
|
initialAdditionalOwners?: HostSuppliedOwner[];
|