@tesouro/embedded-components-react 0.7.16 → 0.7.17

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.
Files changed (22) hide show
  1. package/dist/index.css +6 -12
  2. package/dist/index.d.ts +20 -12
  3. package/dist/lib/LinkedAccountsWidget.d.ts +20 -12
  4. package/dist/lib/WidgetSuite.d.ts +20 -12
  5. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/forms.js +2 -1
  6. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/labels.js +11 -1
  7. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/summary.js +22 -0
  8. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +182 -162
  9. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/linkedAccounts.js +1 -0
  10. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index10.js +36 -86
  11. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js +17 -23
  13. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +6 -6
  14. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +14 -17
  15. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js +3 -6
  16. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +168 -35
  17. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +70 -83
  18. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index7.js +11 -112
  19. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index8.js +6 -12
  20. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js +82 -7
  21. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  22. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -948,6 +948,9 @@
948
948
  .ttw\:max-h-\[80vh\] {
949
949
  max-height: 80vh;
950
950
  }
951
+ .ttw\:max-h-\[90dvh\] {
952
+ max-height: 90dvh;
953
+ }
951
954
  .ttw\:max-h-\[90vh\] {
952
955
  max-height: 90vh;
953
956
  }
@@ -960,9 +963,6 @@
960
963
  .ttw\:max-h-\[300px\] {
961
964
  max-height: 300px;
962
965
  }
963
- .ttw\:max-h-\[min\(90vh\,48rem\)\] {
964
- max-height: min(90vh, 48rem);
965
- }
966
966
  .ttw\:max-h-\[min\(calc\(--spacing\(96\)---spacing\(9\)\)\,calc\(var\(--available-height\)---spacing\(9\)\)\)\] {
967
967
  max-height: min(calc(calc(var(--ttw-spacing) * 96) - calc(var(--ttw-spacing) * 9)), calc(var(--available-height) - calc(var(--ttw-spacing) * 9)));
968
968
  }
@@ -3230,6 +3230,9 @@
3230
3230
  .ttw\:pt-0 {
3231
3231
  padding-top: 0px;
3232
3232
  }
3233
+ .ttw\:pt-0\.5 {
3234
+ padding-top: calc(var(--ttw-spacing) * 0.5);
3235
+ }
3233
3236
  .ttw\:pt-1 {
3234
3237
  padding-top: var(--ttw-spacing);
3235
3238
  }
@@ -4754,9 +4757,6 @@
4754
4757
  .ttw\:hover\:bg-emerald-50:hover {
4755
4758
  background-color: var(--ttw-color-emerald-50);
4756
4759
  }
4757
- .ttw\:hover\:bg-emerald-100:hover {
4758
- background-color: var(--ttw-color-emerald-100);
4759
- }
4760
4760
  .ttw\:hover\:bg-emerald-700:hover {
4761
4761
  background-color: var(--ttw-color-emerald-700);
4762
4762
  }
@@ -4908,9 +4908,6 @@
4908
4908
  .ttw\:hover\:text-destructive:hover {
4909
4909
  color: var(--ttw-destructive);
4910
4910
  }
4911
- .ttw\:hover\:text-emerald-700:hover {
4912
- color: var(--ttw-color-emerald-700);
4913
- }
4914
4911
  .ttw\:hover\:text-foreground:hover {
4915
4912
  color: var(--ttw-foreground);
4916
4913
  }
@@ -5610,9 +5607,6 @@
5610
5607
  .ttw\:data-\[size\=default\]\:h-14[data-size="default"] {
5611
5608
  height: calc(var(--ttw-spacing) * 14);
5612
5609
  }
5613
- .ttw\:data-\[size\=default\]\:h-auto[data-size="default"] {
5614
- height: auto;
5615
- }
5616
5610
  .ttw\:data-\[size\=lg\]\:size-10[data-size="lg"] {
5617
5611
  width: calc(var(--ttw-spacing) * 10);
5618
5612
  height: calc(var(--ttw-spacing) * 10);
package/dist/index.d.ts CHANGED
@@ -3442,8 +3442,13 @@ interface Labels$1 {
3442
3442
  accountNumberLabel: string;
3443
3443
  routingNumberLabel: string;
3444
3444
  routingNumberError: string;
3445
+ nicknamePlaceholder: string;
3446
+ holderTypeLabel: string;
3447
+ personalOption: string;
3448
+ personalOptionDescription: string;
3449
+ businessOption: string;
3450
+ businessOptionDescription: string;
3445
3451
  typeLabel: string;
3446
- accountTypePlaceholder: string;
3447
3452
  checkingOption: string;
3448
3453
  savingsOption: string;
3449
3454
  cancelButton: string;
@@ -3459,20 +3464,12 @@ interface Labels$1 {
3459
3464
  teamMembersLoadingLabel: string;
3460
3465
  teamMembersErrorTitle: string;
3461
3466
  teamMembersEmptyLabel: string;
3462
- summaryCompletedHeading: string;
3467
+ summaryTitle: string;
3468
+ summaryAccountAddedTitle: string;
3463
3469
  summaryNextStepsHeading: string;
3464
3470
  summaryAccountPrefix: string;
3465
- summaryStep1Title: string;
3466
- summaryStep1Description: string;
3467
- summaryStep2Title: string;
3468
- summaryStep2Description: string;
3469
- summaryStep3Title: string;
3470
- summaryStep3Description: string;
3471
- summaryStep4Title: string;
3472
- summaryStep4Description: string;
3473
- statusComplete: string;
3474
- statusTodo: string;
3475
3471
  backToTransfersButton: string;
3472
+ doneButton: string;
3476
3473
  saveButton: string;
3477
3474
  editButton: string;
3478
3475
  verifyButton: string;
@@ -3506,6 +3503,17 @@ interface FeatureLabels$2 {
3506
3503
  pendingStatus: string;
3507
3504
  editSuccessToast: string;
3508
3505
  unlinkSuccessToast: string;
3506
+ personalCheckingType: string;
3507
+ personalSavingsType: string;
3508
+ businessCheckingType: string;
3509
+ businessSavingsType: string;
3510
+ /** `{type}` and `{last4}` are placeholders in the summary copy. */
3511
+ summaryDescription: string;
3512
+ summaryAccountAddedDescription: string;
3513
+ summaryCheckBankTitle: string;
3514
+ summaryCheckBankDescription: string;
3515
+ summaryVerifyTitle: string;
3516
+ summaryVerifyDescription: string;
3509
3517
  }
3510
3518
 
3511
3519
  interface LinkedAccountsWidgetProps extends WidgetProviderProps {
@@ -12,8 +12,13 @@ interface Labels {
12
12
  accountNumberLabel: string;
13
13
  routingNumberLabel: string;
14
14
  routingNumberError: string;
15
+ nicknamePlaceholder: string;
16
+ holderTypeLabel: string;
17
+ personalOption: string;
18
+ personalOptionDescription: string;
19
+ businessOption: string;
20
+ businessOptionDescription: string;
15
21
  typeLabel: string;
16
- accountTypePlaceholder: string;
17
22
  checkingOption: string;
18
23
  savingsOption: string;
19
24
  cancelButton: string;
@@ -29,20 +34,12 @@ interface Labels {
29
34
  teamMembersLoadingLabel: string;
30
35
  teamMembersErrorTitle: string;
31
36
  teamMembersEmptyLabel: string;
32
- summaryCompletedHeading: string;
37
+ summaryTitle: string;
38
+ summaryAccountAddedTitle: string;
33
39
  summaryNextStepsHeading: string;
34
40
  summaryAccountPrefix: string;
35
- summaryStep1Title: string;
36
- summaryStep1Description: string;
37
- summaryStep2Title: string;
38
- summaryStep2Description: string;
39
- summaryStep3Title: string;
40
- summaryStep3Description: string;
41
- summaryStep4Title: string;
42
- summaryStep4Description: string;
43
- statusComplete: string;
44
- statusTodo: string;
45
41
  backToTransfersButton: string;
42
+ doneButton: string;
46
43
  saveButton: string;
47
44
  editButton: string;
48
45
  verifyButton: string;
@@ -701,6 +698,17 @@ interface FeatureLabels {
701
698
  pendingStatus: string;
702
699
  editSuccessToast: string;
703
700
  unlinkSuccessToast: string;
701
+ personalCheckingType: string;
702
+ personalSavingsType: string;
703
+ businessCheckingType: string;
704
+ businessSavingsType: string;
705
+ /** `{type}` and `{last4}` are placeholders in the summary copy. */
706
+ summaryDescription: string;
707
+ summaryAccountAddedDescription: string;
708
+ summaryCheckBankTitle: string;
709
+ summaryCheckBankDescription: string;
710
+ summaryVerifyTitle: string;
711
+ summaryVerifyDescription: string;
704
712
  }
705
713
 
706
714
  interface LinkedAccountsWidgetProps extends WidgetProviderProps {
@@ -2490,8 +2490,13 @@ interface Labels$1 {
2490
2490
  accountNumberLabel: string;
2491
2491
  routingNumberLabel: string;
2492
2492
  routingNumberError: string;
2493
+ nicknamePlaceholder: string;
2494
+ holderTypeLabel: string;
2495
+ personalOption: string;
2496
+ personalOptionDescription: string;
2497
+ businessOption: string;
2498
+ businessOptionDescription: string;
2493
2499
  typeLabel: string;
2494
- accountTypePlaceholder: string;
2495
2500
  checkingOption: string;
2496
2501
  savingsOption: string;
2497
2502
  cancelButton: string;
@@ -2507,20 +2512,12 @@ interface Labels$1 {
2507
2512
  teamMembersLoadingLabel: string;
2508
2513
  teamMembersErrorTitle: string;
2509
2514
  teamMembersEmptyLabel: string;
2510
- summaryCompletedHeading: string;
2515
+ summaryTitle: string;
2516
+ summaryAccountAddedTitle: string;
2511
2517
  summaryNextStepsHeading: string;
2512
2518
  summaryAccountPrefix: string;
2513
- summaryStep1Title: string;
2514
- summaryStep1Description: string;
2515
- summaryStep2Title: string;
2516
- summaryStep2Description: string;
2517
- summaryStep3Title: string;
2518
- summaryStep3Description: string;
2519
- summaryStep4Title: string;
2520
- summaryStep4Description: string;
2521
- statusComplete: string;
2522
- statusTodo: string;
2523
2519
  backToTransfersButton: string;
2520
+ doneButton: string;
2524
2521
  saveButton: string;
2525
2522
  editButton: string;
2526
2523
  verifyButton: string;
@@ -2554,6 +2551,17 @@ interface FeatureLabels$2 {
2554
2551
  pendingStatus: string;
2555
2552
  editSuccessToast: string;
2556
2553
  unlinkSuccessToast: string;
2554
+ personalCheckingType: string;
2555
+ personalSavingsType: string;
2556
+ businessCheckingType: string;
2557
+ businessSavingsType: string;
2558
+ /** `{type}` and `{last4}` are placeholders in the summary copy. */
2559
+ summaryDescription: string;
2560
+ summaryAccountAddedDescription: string;
2561
+ summaryCheckBankTitle: string;
2562
+ summaryCheckBankDescription: string;
2563
+ summaryVerifyTitle: string;
2564
+ summaryVerifyDescription: string;
2557
2565
  }
2558
2566
 
2559
2567
  interface LinkedAccountsWidgetProps extends WidgetProviderProps {
@@ -1,5 +1,6 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/forms.js
2
2
  var e = {
3
+ accountHolderType: "",
3
4
  nickname: "",
4
5
  accountNumber: "",
5
6
  routingNumber: "",
@@ -20,7 +21,7 @@ function n(e) {
20
21
  return r % 10 == 0;
21
22
  }
22
23
  function r(e) {
23
- return e.type !== "" && e.nickname.trim() !== "" && e.accountNumber.trim() !== "" && n(e.routingNumber);
24
+ return e.accountHolderType !== "" && e.type !== "" && e.nickname.trim() !== "" && e.accountNumber.trim() !== "" && n(e.routingNumber);
24
25
  }
25
26
  var i = {
26
27
  nickname: "",
@@ -4,7 +4,17 @@ var e = {
4
4
  accountLabel: "Account #:",
5
5
  pendingStatus: "in process.",
6
6
  editSuccessToast: "Bank account nickname updated successfully",
7
- unlinkSuccessToast: "External account unlinked successfully"
7
+ unlinkSuccessToast: "External account unlinked successfully",
8
+ personalCheckingType: "personal checking",
9
+ personalSavingsType: "personal savings",
10
+ businessCheckingType: "business checking",
11
+ businessSavingsType: "business savings",
12
+ summaryDescription: "We sent two small deposits to your {type} account ending in {last4}.",
13
+ summaryAccountAddedDescription: "Your {type} account ending in {last4} was added. Someone with permission to send verification deposits can start verification from Transfers.",
14
+ summaryCheckBankTitle: "Check your bank account ending in {last4}",
15
+ summaryCheckBankDescription: "Look for two small deposits on your statement.",
16
+ summaryVerifyTitle: "Verify the amounts",
17
+ summaryVerifyDescription: "Return to Transfers and enter both amounts to start making transfers."
8
18
  };
9
19
  //#endregion
10
20
  export { e as DEFAULT_FEATURE_LABELS };
@@ -0,0 +1,22 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/summary.js
2
+ function e(e) {
3
+ return e === "business" ? "BUSINESS" : "INDIVIDUAL";
4
+ }
5
+ function t(e) {
6
+ return e === "BUSINESS" ? "business" : "personal";
7
+ }
8
+ function n(e, t, n) {
9
+ let r = t === "SAVINGS";
10
+ return e === "business" ? r ? n.businessSavingsType : n.businessCheckingType : r ? n.personalSavingsType : n.personalCheckingType;
11
+ }
12
+ function r(e, t) {
13
+ return e.split(/\{(\w+)\}/).map((e, n) => n % 2 == 0 ? {
14
+ text: e,
15
+ emphasized: !1
16
+ } : t[e] ?? {
17
+ text: `{${e}}`,
18
+ emphasized: !1
19
+ }).filter((e) => e.text !== "");
20
+ }
21
+ //#endregion
22
+ export { t as fromApiAccountHolderType, e as toApiAccountHolderType, n as toSummaryTypeLabel, r as toTextParts };