@tesouro/embedded-components-react 0.11.65 → 0.11.68

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 (48) hide show
  1. package/README.md +28 -28
  2. package/dist/index.css +6 -27
  3. package/dist/index.d.ts +29 -41
  4. package/dist/lib/CardDetailsWidget.d.ts +1 -1
  5. package/dist/lib/CounterpartsWidget.d.ts +26 -39
  6. package/dist/lib/CounterpartsWidgetPublic.d.ts +26 -39
  7. package/dist/lib/CreditCardsWidget.d.ts +2 -2
  8. package/dist/lib/CustomersWidget.d.ts +26 -39
  9. package/dist/lib/DebitCardsWidget.d.ts +2 -2
  10. package/dist/lib/ReceivablesWidget.d.ts +14 -4
  11. package/dist/lib/WidgetSuite.d.ts +2 -2
  12. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/CardDetailsWidget.js +0 -4
  13. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/cardDetailsView.js +7 -8
  14. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/ActivateCardPanel/ActivateCardPanel.js +37 -39
  15. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardDetailsPanel.js +72 -73
  16. package/dist/libs/tesouro-embedded-components-react/card-details-widget/ui/dist/lib/CardDetailsPanel/CardFace.js +16 -22
  17. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +8 -12
  18. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsPanel.js +93 -110
  19. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartsWidget.js +52 -52
  20. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsActions.js +72 -107
  21. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsSheetView.js +27 -27
  22. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js +112 -145
  23. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +13 -16
  24. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +3 -122
  25. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js +5 -5
  26. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +44 -65
  28. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +157 -134
  29. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +18 -14
  30. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index5.js +362 -55
  31. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +11 -11
  32. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +7 -7
  33. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.js +16 -9
  34. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +2 -66
  35. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useDeleteController.js +48 -46
  36. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +5 -5
  37. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +138 -149
  38. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +19 -20
  39. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index12.js +1 -0
  40. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js +21 -27
  41. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index3.js +0 -1
  43. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index8.js +2 -2
  44. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +30 -63
  45. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  46. package/package.json +1 -1
  47. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index6.js +0 -211
  48. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +0 -509
@@ -779,23 +779,33 @@ interface CounterpartMessageLabels {
779
779
  accountNumberInvalid: string;
780
780
  /** Shown for a non-field-specific submit failure. */
781
781
  genericError: string;
782
- /** Toasted when the list's billed/received/due analytics fail to load. */
782
+ /** @deprecated Unused; the list labels its own warning. */
783
783
  amountsUnavailable: string;
784
784
  /** Delete confirmation title; `{name}` is replaced with the entity name. */
785
785
  deleteTitle: string;
786
- /** Delete confirmation title for a bank account; `{account}` is display-ready. */
787
786
  deleteBankAccountTitle: string;
787
+ deleteBankAccountConfirm: string;
788
788
  deleteCounterpartMessage: string;
789
789
  deleteBankAccountMessage: string;
790
- /** Success toast after creating a counterpart; `{name}` is replaced with its name. */
790
+ /** @deprecated No longer shown. Use `customerAdded` / `vendorAdded`. */
791
791
  createSucceeded: string;
792
- /** Success toast after editing a counterpart; `{name}` is replaced with its name. */
792
+ /** @deprecated No longer shown. Use `customerUpdated` / `vendorUpdated`. */
793
793
  updateSucceeded: string;
794
+ customerAdded: string;
795
+ vendorAdded: string;
796
+ customerUpdated: string;
797
+ vendorUpdated: string;
794
798
  addressAdded: string;
795
799
  addressUpdated: string;
796
800
  bankAccountAdded: string;
797
801
  bankAccountUpdated: string;
802
+ /**
803
+ * @deprecated Used only when the delete controller gets no `counterpartType`;
804
+ * users never see the word "counterpart". Use `customerDeleted` / `vendorDeleted`.
805
+ */
798
806
  counterpartDeleted: string;
807
+ customerDeleted: string;
808
+ vendorDeleted: string;
799
809
  bankAccountDeleted: string;
800
810
  /** Error toast when a counterpart delete fails without an API message. */
801
811
  deleteCounterpartFailed: string;
@@ -834,8 +844,8 @@ interface CounterpartsScreenLabels {
834
844
  /** Vendor-mode create action. */
835
845
  vendorsCreateButton: string;
836
846
  columnName: string;
837
- sortByName: string;
838
847
  columnBilledAmount: string;
848
+ columnInvoicedAmount: string;
839
849
  columnReceivedAmount: string;
840
850
  columnAmountDue: string;
841
851
  columnTotalPaidToDate: string;
@@ -850,15 +860,14 @@ interface CounterpartsScreenLabels {
850
860
  unnamedCounterpart: string;
851
861
  searchPlaceholder: string;
852
862
  searchLabel: string;
853
- filtersButton: string;
854
- filterFieldType: string;
855
- /** Accessible name of a chip's dismiss button. `{label}` is the chip's text. */
863
+ entityFilterLabel: string;
864
+ entityFilterAll: string;
865
+ entityFilterOrganization: string;
866
+ entityFilterIndividual: string;
856
867
  filterChipRemove: string;
857
868
  typeChip: (value: string) => string;
858
869
  searchChip: (value: string) => string;
859
870
  clearAllFilters: string;
860
- entityFilterOrganization: string;
861
- entityFilterIndividual: string;
862
871
  customersEmptyTitle: string;
863
872
  customersEmptyDescription: string;
864
873
  customersEmptyAction: string;
@@ -876,14 +885,16 @@ interface CounterpartsScreenLabels {
876
885
  errorRetry: string;
877
886
  accessRestrictedTitle: string;
878
887
  accessRestrictedDescription: string;
888
+ amountsUnavailable: string;
889
+ amountsRetry: string;
879
890
  }
880
891
  interface CounterpartDetailsSheetLabels {
881
- hiddenDescription: string;
882
892
  loadingTitle: string;
883
893
  notFoundCustomerTitle: string;
884
894
  notFoundVendorTitle: string;
885
895
  notFoundCustomerDescription: string;
886
896
  notFoundVendorDescription: string;
897
+ reloadFailed: string;
887
898
  openActionsMenu: string;
888
899
  closeAction: string;
889
900
  deleteCustomerAction: string;
@@ -891,10 +902,12 @@ interface CounterpartDetailsSheetLabels {
891
902
  summaryAmountDue: string;
892
903
  summaryBalanceDue: string;
893
904
  summaryBilled: string;
905
+ summaryInvoiced: string;
894
906
  summaryReceived: string;
895
907
  summaryPaid: string;
896
908
  summaryRejected: string;
897
909
  overdueTag: string;
910
+ /** Vendor footer action ("Add a bill"); the key predates the copy. */
898
911
  sendPaymentAction: string;
899
912
  issueInvoiceAction: string;
900
913
  recentCustomerDocumentsHeading: string;
@@ -925,15 +938,12 @@ interface CounterpartDetailsSheetLabels {
925
938
  customerTaxIdHelp: string;
926
939
  vendorTaxIdHelp: string;
927
940
  addressHeading: string;
928
- /** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
929
- customerAddressHeading: string;
930
- addAddressAction: string;
931
- editAddressAction: string;
932
941
  noAddress: string;
933
942
  paymentMethodsHeading: string;
934
943
  paymentMethodsDescription: string;
935
944
  addPaymentMethodAction: string;
936
945
  editPaymentMethodAction: string;
946
+ paymentMethodActionsMenu: string;
937
947
  deletePaymentMethodAction: string;
938
948
  incompletePaymentMethod: string;
939
949
  accountHolderLabel: string;
@@ -941,32 +951,8 @@ interface CounterpartDetailsSheetLabels {
941
951
  routingNumberLabel: string;
942
952
  noPaymentMethods: string;
943
953
  editButton: string;
944
- /** Overrides for the shared bill status badge in recent documents. */
945
954
  billStatusBadge: Partial<BillStatusBadgeLabels>;
946
- /** Overrides for the shared invoice status badge in recent documents. */
947
955
  invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
948
- optionalSuffix: string;
949
- editingCustomerDetailsHeading: string;
950
- editingVendorDetailsHeading: string;
951
- firstNameLabel: string;
952
- lastNameLabel: string;
953
- businessNameLabel: string;
954
- remindersCheckboxLabel: string;
955
- remindersCheckboxDescription: string;
956
- taxIdSsnPlaceholder: string;
957
- taxIdEinPlaceholder: string;
958
- editingAddressHeading: string;
959
- addingAddressHeading: string;
960
- streetAddressLabel: string;
961
- addressLine2Label: string;
962
- cityLabel: string;
963
- stateLabel: string;
964
- statePlaceholder: string;
965
- postalCodeLabel: string;
966
- countryLabel: string;
967
- countryUnitedStates: string;
968
- cancelButton: string;
969
- saveButton: string;
970
956
  }
971
957
 
972
958
  /** Whether this widget is showing customers (receivables) or vendors (payables). */
@@ -1000,6 +986,7 @@ interface CounterpartsWidgetOwnProps {
1000
986
  formLabels?: PartialDeep<CounterpartFormSheetLabels>;
1001
987
  detailsLabels?: Partial<CounterpartDetailsSheetLabels>;
1002
988
  bankAccountLabels?: PartialDeep<BankAccountFormSheetLabels>;
989
+ /** @deprecated Unused; relabel the address through `formLabels.address`. */
1003
990
  addressLabels?: PartialDeep<AddressFormSheetLabels>;
1004
991
  deleteLabels?: Partial<ConfirmDeleteDialogLabels>;
1005
992
  /** Overrides for validation / error / delete-prompt messages. */
@@ -955,7 +955,7 @@ interface CardDetailsFeatureLabels {
955
955
  * refused for this session, which asking an admin for a role will not fix.
956
956
  */
957
957
  revealNotPermittedDescription: string;
958
- /** Program wording on the card face, keyed on the widget's `cardProgram`. */
958
+ /** @deprecated Unused: the card face no longer shows program wording. */
959
959
  programLabels: Record<CardProgram, string>;
960
960
  /** Status badge wording, keyed on the generated card status. */
961
961
  statusLabels: Record<CardStatus, string>;
@@ -1344,7 +1344,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
1344
1344
  cardDetailsLabels?: CardDetailsWidgetProps['labels'];
1345
1345
  /**
1346
1346
  * Overrides for the copy the panel's *feature* layer resolves — its status
1347
- * vocabulary, form-factor wording, program label and copy-success toast.
1347
+ * vocabulary, form-factor wording and toasts.
1348
1348
  *
1349
1349
  * Distinct from `featureLabels`, which covers the list's own vocabulary.
1350
1350
  * Without this prop the panel is unreachable for that copy, so a host that
@@ -767,23 +767,33 @@ interface CounterpartMessageLabels {
767
767
  accountNumberInvalid: string;
768
768
  /** Shown for a non-field-specific submit failure. */
769
769
  genericError: string;
770
- /** Toasted when the list's billed/received/due analytics fail to load. */
770
+ /** @deprecated Unused; the list labels its own warning. */
771
771
  amountsUnavailable: string;
772
772
  /** Delete confirmation title; `{name}` is replaced with the entity name. */
773
773
  deleteTitle: string;
774
- /** Delete confirmation title for a bank account; `{account}` is display-ready. */
775
774
  deleteBankAccountTitle: string;
775
+ deleteBankAccountConfirm: string;
776
776
  deleteCounterpartMessage: string;
777
777
  deleteBankAccountMessage: string;
778
- /** Success toast after creating a counterpart; `{name}` is replaced with its name. */
778
+ /** @deprecated No longer shown. Use `customerAdded` / `vendorAdded`. */
779
779
  createSucceeded: string;
780
- /** Success toast after editing a counterpart; `{name}` is replaced with its name. */
780
+ /** @deprecated No longer shown. Use `customerUpdated` / `vendorUpdated`. */
781
781
  updateSucceeded: string;
782
+ customerAdded: string;
783
+ vendorAdded: string;
784
+ customerUpdated: string;
785
+ vendorUpdated: string;
782
786
  addressAdded: string;
783
787
  addressUpdated: string;
784
788
  bankAccountAdded: string;
785
789
  bankAccountUpdated: string;
790
+ /**
791
+ * @deprecated Used only when the delete controller gets no `counterpartType`;
792
+ * users never see the word "counterpart". Use `customerDeleted` / `vendorDeleted`.
793
+ */
786
794
  counterpartDeleted: string;
795
+ customerDeleted: string;
796
+ vendorDeleted: string;
787
797
  bankAccountDeleted: string;
788
798
  /** Error toast when a counterpart delete fails without an API message. */
789
799
  deleteCounterpartFailed: string;
@@ -822,8 +832,8 @@ interface CounterpartsScreenLabels {
822
832
  /** Vendor-mode create action. */
823
833
  vendorsCreateButton: string;
824
834
  columnName: string;
825
- sortByName: string;
826
835
  columnBilledAmount: string;
836
+ columnInvoicedAmount: string;
827
837
  columnReceivedAmount: string;
828
838
  columnAmountDue: string;
829
839
  columnTotalPaidToDate: string;
@@ -838,15 +848,14 @@ interface CounterpartsScreenLabels {
838
848
  unnamedCounterpart: string;
839
849
  searchPlaceholder: string;
840
850
  searchLabel: string;
841
- filtersButton: string;
842
- filterFieldType: string;
843
- /** Accessible name of a chip's dismiss button. `{label}` is the chip's text. */
851
+ entityFilterLabel: string;
852
+ entityFilterAll: string;
853
+ entityFilterOrganization: string;
854
+ entityFilterIndividual: string;
844
855
  filterChipRemove: string;
845
856
  typeChip: (value: string) => string;
846
857
  searchChip: (value: string) => string;
847
858
  clearAllFilters: string;
848
- entityFilterOrganization: string;
849
- entityFilterIndividual: string;
850
859
  customersEmptyTitle: string;
851
860
  customersEmptyDescription: string;
852
861
  customersEmptyAction: string;
@@ -864,14 +873,16 @@ interface CounterpartsScreenLabels {
864
873
  errorRetry: string;
865
874
  accessRestrictedTitle: string;
866
875
  accessRestrictedDescription: string;
876
+ amountsUnavailable: string;
877
+ amountsRetry: string;
867
878
  }
868
879
  interface CounterpartDetailsSheetLabels {
869
- hiddenDescription: string;
870
880
  loadingTitle: string;
871
881
  notFoundCustomerTitle: string;
872
882
  notFoundVendorTitle: string;
873
883
  notFoundCustomerDescription: string;
874
884
  notFoundVendorDescription: string;
885
+ reloadFailed: string;
875
886
  openActionsMenu: string;
876
887
  closeAction: string;
877
888
  deleteCustomerAction: string;
@@ -879,10 +890,12 @@ interface CounterpartDetailsSheetLabels {
879
890
  summaryAmountDue: string;
880
891
  summaryBalanceDue: string;
881
892
  summaryBilled: string;
893
+ summaryInvoiced: string;
882
894
  summaryReceived: string;
883
895
  summaryPaid: string;
884
896
  summaryRejected: string;
885
897
  overdueTag: string;
898
+ /** Vendor footer action ("Add a bill"); the key predates the copy. */
886
899
  sendPaymentAction: string;
887
900
  issueInvoiceAction: string;
888
901
  recentCustomerDocumentsHeading: string;
@@ -913,15 +926,12 @@ interface CounterpartDetailsSheetLabels {
913
926
  customerTaxIdHelp: string;
914
927
  vendorTaxIdHelp: string;
915
928
  addressHeading: string;
916
- /** Customer mode's own section heading — vendor mode uses `addressHeading` as a `DetailLine` row label instead. */
917
- customerAddressHeading: string;
918
- addAddressAction: string;
919
- editAddressAction: string;
920
929
  noAddress: string;
921
930
  paymentMethodsHeading: string;
922
931
  paymentMethodsDescription: string;
923
932
  addPaymentMethodAction: string;
924
933
  editPaymentMethodAction: string;
934
+ paymentMethodActionsMenu: string;
925
935
  deletePaymentMethodAction: string;
926
936
  incompletePaymentMethod: string;
927
937
  accountHolderLabel: string;
@@ -929,32 +939,8 @@ interface CounterpartDetailsSheetLabels {
929
939
  routingNumberLabel: string;
930
940
  noPaymentMethods: string;
931
941
  editButton: string;
932
- /** Overrides for the shared bill status badge in recent documents. */
933
942
  billStatusBadge: Partial<BillStatusBadgeLabels>;
934
- /** Overrides for the shared invoice status badge in recent documents. */
935
943
  invoiceStatusBadge: Partial<ReceivableStatusBadgeLabels>;
936
- optionalSuffix: string;
937
- editingCustomerDetailsHeading: string;
938
- editingVendorDetailsHeading: string;
939
- firstNameLabel: string;
940
- lastNameLabel: string;
941
- businessNameLabel: string;
942
- remindersCheckboxLabel: string;
943
- remindersCheckboxDescription: string;
944
- taxIdSsnPlaceholder: string;
945
- taxIdEinPlaceholder: string;
946
- editingAddressHeading: string;
947
- addingAddressHeading: string;
948
- streetAddressLabel: string;
949
- addressLine2Label: string;
950
- cityLabel: string;
951
- stateLabel: string;
952
- statePlaceholder: string;
953
- postalCodeLabel: string;
954
- countryLabel: string;
955
- countryUnitedStates: string;
956
- cancelButton: string;
957
- saveButton: string;
958
944
  }
959
945
 
960
946
  /**
@@ -986,6 +972,7 @@ interface CustomersWidgetOwnProps {
986
972
  screenLabels?: Partial<CounterpartsScreenLabels>;
987
973
  formLabels?: PartialDeep<CounterpartFormSheetLabels>;
988
974
  detailsLabels?: Partial<CounterpartDetailsSheetLabels>;
975
+ /** @deprecated Unused; relabel the address through `formLabels.address`. */
989
976
  addressLabels?: PartialDeep<AddressFormSheetLabels>;
990
977
  deleteLabels?: Partial<ConfirmDeleteDialogLabels>;
991
978
  /** Overrides for validation / error / delete-prompt messages. */
@@ -955,7 +955,7 @@ interface CardDetailsFeatureLabels {
955
955
  * refused for this session, which asking an admin for a role will not fix.
956
956
  */
957
957
  revealNotPermittedDescription: string;
958
- /** Program wording on the card face, keyed on the widget's `cardProgram`. */
958
+ /** @deprecated Unused: the card face no longer shows program wording. */
959
959
  programLabels: Record<CardProgram, string>;
960
960
  /** Status badge wording, keyed on the generated card status. */
961
961
  statusLabels: Record<CardStatus, string>;
@@ -1344,7 +1344,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
1344
1344
  cardDetailsLabels?: CardDetailsWidgetProps['labels'];
1345
1345
  /**
1346
1346
  * Overrides for the copy the panel's *feature* layer resolves — its status
1347
- * vocabulary, form-factor wording, program label and copy-success toast.
1347
+ * vocabulary, form-factor wording and toasts.
1348
1348
  *
1349
1349
  * Distinct from `featureLabels`, which covers the list's own vocabulary.
1350
1350
  * Without this prop the panel is unreachable for that copy, so a host that
@@ -838,23 +838,33 @@ interface CounterpartMessageLabels {
838
838
  accountNumberInvalid: string;
839
839
  /** Shown for a non-field-specific submit failure. */
840
840
  genericError: string;
841
- /** Toasted when the list's billed/received/due analytics fail to load. */
841
+ /** @deprecated Unused; the list labels its own warning. */
842
842
  amountsUnavailable: string;
843
843
  /** Delete confirmation title; `{name}` is replaced with the entity name. */
844
844
  deleteTitle: string;
845
- /** Delete confirmation title for a bank account; `{account}` is display-ready. */
846
845
  deleteBankAccountTitle: string;
846
+ deleteBankAccountConfirm: string;
847
847
  deleteCounterpartMessage: string;
848
848
  deleteBankAccountMessage: string;
849
- /** Success toast after creating a counterpart; `{name}` is replaced with its name. */
849
+ /** @deprecated No longer shown. Use `customerAdded` / `vendorAdded`. */
850
850
  createSucceeded: string;
851
- /** Success toast after editing a counterpart; `{name}` is replaced with its name. */
851
+ /** @deprecated No longer shown. Use `customerUpdated` / `vendorUpdated`. */
852
852
  updateSucceeded: string;
853
+ customerAdded: string;
854
+ vendorAdded: string;
855
+ customerUpdated: string;
856
+ vendorUpdated: string;
853
857
  addressAdded: string;
854
858
  addressUpdated: string;
855
859
  bankAccountAdded: string;
856
860
  bankAccountUpdated: string;
861
+ /**
862
+ * @deprecated Used only when the delete controller gets no `counterpartType`;
863
+ * users never see the word "counterpart". Use `customerDeleted` / `vendorDeleted`.
864
+ */
857
865
  counterpartDeleted: string;
866
+ customerDeleted: string;
867
+ vendorDeleted: string;
858
868
  bankAccountDeleted: string;
859
869
  /** Error toast when a counterpart delete fails without an API message. */
860
870
  deleteCounterpartFailed: string;
@@ -1914,7 +1914,7 @@ interface CardDetailsFeatureLabels {
1914
1914
  * refused for this session, which asking an admin for a role will not fix.
1915
1915
  */
1916
1916
  revealNotPermittedDescription: string;
1917
- /** Program wording on the card face, keyed on the widget's `cardProgram`. */
1917
+ /** @deprecated Unused: the card face no longer shows program wording. */
1918
1918
  programLabels: Record<CardProgram, string>;
1919
1919
  /** Status badge wording, keyed on the generated card status. */
1920
1920
  statusLabels: Record<CardStatus, string>;
@@ -2303,7 +2303,7 @@ interface CardsWidgetProps extends WidgetProviderProps {
2303
2303
  cardDetailsLabels?: CardDetailsWidgetProps['labels'];
2304
2304
  /**
2305
2305
  * Overrides for the copy the panel's *feature* layer resolves — its status
2306
- * vocabulary, form-factor wording, program label and copy-success toast.
2306
+ * vocabulary, form-factor wording and toasts.
2307
2307
  *
2308
2308
  * Distinct from `featureLabels`, which covers the list's own vocabulary.
2309
2309
  * Without this prop the panel is unreachable for that copy, so a host that
@@ -73,11 +73,9 @@ function C({ cardId: i, cardProgram: f, onClose: C, labels: w, activateLabels: g
73
73
  hasCredentials: !!W.data
74
74
  }), K = y(() => B === "loaded" && I ? re({
75
75
  card: I,
76
- cardProgram: f,
77
76
  labels: N
78
77
  }) : void 0, [
79
78
  I,
80
- f,
81
79
  N,
82
80
  B
83
81
  ]), we = _(async (e) => {
@@ -156,7 +154,6 @@ function C({ cardId: i, cardProgram: f, onClose: C, labels: w, activateLabels: g
156
154
  bankLogoAlt: O,
157
155
  cardholderName: K?.cardholderName,
158
156
  maskedCardNumber: K?.maskedCardNumber,
159
- programLabel: K?.programLabel,
160
157
  lastFour: K?.lastFour,
161
158
  formFactorLabel: K?.formFactorLabel
162
159
  }) : /* @__PURE__ */ x(ue, {
@@ -173,7 +170,6 @@ function C({ cardId: i, cardProgram: f, onClose: C, labels: w, activateLabels: g
173
170
  bankLogoAlt: O,
174
171
  cardholderName: K?.cardholderName,
175
172
  maskedCardNumber: K?.maskedCardNumber,
176
- programLabel: K?.programLabel,
177
173
  billingAddress: K?.billingAddress,
178
174
  allowedCategories: K?.allowedCategories,
179
175
  spendLimitLabels: K?.spendLimitLabels,
@@ -21,20 +21,19 @@ function l({ panelState: t, cardProgram: n, cardStatus: r }) {
21
21
  function u({ isRevealRequested: e, isError: t, hasCredentials: n }) {
22
22
  return e ? t ? "errored" : n ? "revealed" : "revealing" : "hidden";
23
23
  }
24
- function d({ card: e, cardProgram: r, labels: a }) {
25
- let o = e.cardholderName.trim(), s = e.nickname?.trim();
24
+ function d({ card: e, labels: r }) {
25
+ let a = e.cardholderName.trim(), o = e.nickname?.trim();
26
26
  return {
27
- statusLabel: a.statusLabels[e.cardStatus],
27
+ statusLabel: r.statusLabels[e.cardStatus],
28
28
  statusTone: t[e.cardStatus],
29
- formFactorLabel: a.formFactorLabels[e.cardType],
30
- programLabel: a.programLabels[r],
29
+ formFactorLabel: r.formFactorLabels[e.cardType],
31
30
  maskedCardNumber: i(e.lastFourDigits),
32
31
  lastFour: e.lastFourDigits,
33
- cardholderName: o || void 0,
34
- nickname: s || void 0,
32
+ cardholderName: a || void 0,
33
+ nickname: o || void 0,
35
34
  billingAddress: n(e.billingAddress),
36
35
  allowedCategories: f(e.mccGroups),
37
- ...p(e.velocityControls, a)
36
+ ...p(e.velocityControls, r)
38
37
  };
39
38
  }
40
39
  function f(e) {
@@ -23,46 +23,45 @@ function O(e, t) {
23
23
  default: return;
24
24
  }
25
25
  }
26
- function k({ labels: m, state: h = "idle", values: k = g, onValuesChange: A, errors: j = D, isSubmitDisabled: M = !0, onSubmit: N, onClose: P, onDone: F, cardArtSrc: I, bankLogoSrc: L, bankLogoAlt: R, cardholderName: z, maskedCardNumber: B, programLabel: V, lastFour: H, formFactorLabel: U, testIds: W, className: G }) {
27
- let K = S(() => p(m), [m]), q = x(), J = x(), Y = x(), X = x(), Z = h === "submitting", Q = O(j.expirationDate, K.validation), $ = O(j.form, K.validation);
26
+ function k({ labels: m, state: h = "idle", values: k = g, onValuesChange: A, errors: j = D, isSubmitDisabled: M = !0, onSubmit: N, onClose: P, onDone: F, cardArtSrc: I, bankLogoSrc: L, bankLogoAlt: R, cardholderName: z, maskedCardNumber: B, lastFour: V, formFactorLabel: H, testIds: U, className: W }) {
27
+ let G = S(() => p(m), [m]), K = x(), q = x(), J = x(), Y = x(), X = h === "submitting", Z = O(j.expirationDate, G.validation), Q = O(j.form, G.validation);
28
28
  return /* @__PURE__ */ w("div", {
29
- "data-testid": W?.root,
30
- className: u("ttw:flex ttw:w-full ttw:flex-col", G),
29
+ "data-testid": U?.root,
30
+ className: u("ttw:flex ttw:w-full ttw:flex-col", W),
31
31
  children: [/* @__PURE__ */ w("div", {
32
32
  className: "ttw:flex ttw:items-start ttw:gap-2 ttw:px-6 ttw:pt-5 ttw:pb-4",
33
33
  children: [/* @__PURE__ */ C(t, {
34
34
  variant: "sheet",
35
35
  level: 2,
36
36
  className: "ttw:min-w-0 ttw:flex-1 ttw:text-foreground",
37
- children: K.header.title
37
+ children: G.header.title
38
38
  }), P ? /* @__PURE__ */ C(e, {
39
39
  type: "button",
40
40
  variant: "ghost",
41
41
  size: "icon-sm",
42
42
  className: "ttw:shrink-0 ttw:text-muted-foreground",
43
- "aria-label": K.header.closeAriaLabel,
43
+ "aria-label": G.header.closeAriaLabel,
44
44
  onClick: P,
45
45
  children: /* @__PURE__ */ C(E, { className: "ttw:size-4" })
46
46
  }) : null]
47
47
  }), h === "succeeded" ? /* @__PURE__ */ C(y, {
48
- labels: K.status,
48
+ labels: G.status,
49
49
  cardFace: /* @__PURE__ */ C(f, {
50
50
  cardArtSrc: I,
51
51
  bankLogoSrc: L,
52
- bankLogoAlt: R ?? K.cardFace.bankLogoAlt,
52
+ bankLogoAlt: R ?? G.cardFace.bankLogoAlt,
53
53
  cardholderName: z ?? "",
54
- maskedCardNumber: B ?? "",
55
- programLabel: V ?? ""
54
+ maskedCardNumber: B ?? ""
56
55
  }),
57
56
  cardholderName: z,
58
- lastFour: H,
59
- formFactorLabel: U,
57
+ lastFour: V,
58
+ formFactorLabel: H,
60
59
  onDone: F ?? P,
61
- testIds: W?.successView
60
+ testIds: U?.successView
62
61
  }) : /* @__PURE__ */ w("form", {
63
62
  noValidate: !0,
64
63
  onSubmit: (e) => {
65
- e.preventDefault(), !(M || Z) && N?.();
64
+ e.preventDefault(), !(M || X) && N?.();
66
65
  },
67
66
  className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:pb-6",
68
67
  children: [
@@ -71,35 +70,34 @@ function k({ labels: m, state: h = "idle", values: k = g, onValuesChange: A, err
71
70
  children: /* @__PURE__ */ C(f, {
72
71
  cardArtSrc: I,
73
72
  bankLogoSrc: L,
74
- bankLogoAlt: R ?? K.cardFace.bankLogoAlt,
73
+ bankLogoAlt: R ?? G.cardFace.bankLogoAlt,
75
74
  cardholderName: z ?? "",
76
75
  maskedCardNumber: B ?? "",
77
- programLabel: V ?? "",
78
- testIds: W?.cardFace
76
+ testIds: U?.cardFace
79
77
  })
80
78
  }),
81
79
  /* @__PURE__ */ w("div", {
82
80
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
83
81
  children: [
84
82
  /* @__PURE__ */ C(r, {
85
- htmlFor: q,
83
+ htmlFor: K,
86
84
  className: "ttw:text-sm ttw:font-medium",
87
- children: K.fields.expirationDate
85
+ children: G.fields.expirationDate
88
86
  }),
89
87
  /* @__PURE__ */ C(n, {
90
- id: q,
88
+ id: K,
91
89
  value: k.expirationDate,
92
- placeholder: K.fields.expirationDatePlaceholder,
93
- disabled: Z,
90
+ placeholder: G.fields.expirationDatePlaceholder,
91
+ disabled: X,
94
92
  inputMode: "numeric",
95
93
  autoComplete: "off",
96
- "aria-invalid": Q ? !0 : void 0,
97
- "aria-describedby": Q ? J : void 0,
94
+ "aria-invalid": Z ? !0 : void 0,
95
+ "aria-describedby": Z ? q : void 0,
98
96
  onChange: (e) => A?.({ expirationDate: v(e.target.value) })
99
97
  }),
100
98
  /* @__PURE__ */ C(b, {
101
- id: J,
102
- message: Q
99
+ id: q,
100
+ message: Z
103
101
  })
104
102
  ]
105
103
  }),
@@ -109,45 +107,45 @@ function k({ labels: m, state: h = "idle", values: k = g, onValuesChange: A, err
109
107
  /* @__PURE__ */ w("div", {
110
108
  className: "ttw:flex ttw:items-center ttw:gap-1.5",
111
109
  children: [/* @__PURE__ */ C(r, {
112
- htmlFor: Y,
110
+ htmlFor: J,
113
111
  className: "ttw:text-sm ttw:font-medium",
114
- children: K.fields.securityCode
112
+ children: G.fields.securityCode
115
113
  }), /* @__PURE__ */ C(c, { children: /* @__PURE__ */ w(o, { children: [/* @__PURE__ */ C(l, {
116
114
  type: "button",
117
115
  className: "ttw:inline-flex ttw:shrink-0 ttw:cursor-help ttw:text-muted-foreground",
118
- "aria-label": K.fields.securityCodeInfoAriaLabel,
116
+ "aria-label": G.fields.securityCodeInfoAriaLabel,
119
117
  children: /* @__PURE__ */ C(T, { className: "ttw:size-4" })
120
118
  }), /* @__PURE__ */ C(s, {
121
119
  className: "ttw:max-w-xs",
122
- children: K.fields.securityCodeInfo
120
+ children: G.fields.securityCodeInfo
123
121
  })] }) })]
124
122
  }),
125
123
  /* @__PURE__ */ C(n, {
126
- id: Y,
124
+ id: J,
127
125
  value: k.securityCode,
128
- placeholder: K.fields.securityCodePlaceholder,
129
- "aria-describedby": X,
130
- disabled: Z,
126
+ placeholder: G.fields.securityCodePlaceholder,
127
+ "aria-describedby": Y,
128
+ disabled: X,
131
129
  inputMode: "numeric",
132
130
  autoComplete: "off",
133
131
  maxLength: 4,
134
132
  onChange: (e) => A?.({ securityCode: _(e.target.value, 4) })
135
133
  }),
136
134
  /* @__PURE__ */ C("span", {
137
- id: X,
135
+ id: Y,
138
136
  className: "ttw:sr-only",
139
- children: K.fields.securityCodeInfo
137
+ children: G.fields.securityCodeInfo
140
138
  })
141
139
  ]
142
140
  }),
143
141
  /* @__PURE__ */ C(i, {}),
144
- h === "errored" || $ ? /* @__PURE__ */ C(d, { children: $ ?? K.status.errorDescription }) : null,
142
+ h === "errored" || Q ? /* @__PURE__ */ C(d, { children: Q ?? G.status.errorDescription }) : null,
145
143
  /* @__PURE__ */ C("div", {
146
144
  className: "ttw:flex ttw:justify-end",
147
145
  children: /* @__PURE__ */ w(e, {
148
146
  type: "submit",
149
- disabled: M || Z,
150
- children: [Z ? /* @__PURE__ */ C(a, { "aria-label": K.status.submittingAriaLabel }) : null, K.status.submit]
147
+ disabled: M || X,
148
+ children: [X ? /* @__PURE__ */ C(a, { "aria-label": G.status.submittingAriaLabel }) : null, G.status.submit]
151
149
  })
152
150
  })
153
151
  ]