@shipengine/elements 2.3.1 → 2.4.0

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 (53) hide show
  1. package/actions-menu.js +3 -12
  2. package/components.js +1 -1
  3. package/elements.js +1 -1
  4. package/hooks.js +1 -1
  5. package/index.js +1 -1
  6. package/package.json +5 -3
  7. package/src/components/field/create-field-controller.d.ts +2 -1
  8. package/src/components/field-label/field-label.d.ts +2 -1
  9. package/src/components/field-label/field-label.styles.d.ts +16 -0
  10. package/src/components/grid-controller/grid-controller.d.ts +20 -2
  11. package/src/components/grid-controller/grid-controller.styles.d.ts +18 -6
  12. package/src/components/grid-controller/grid-footer.d.ts +27 -0
  13. package/src/components/grid-controller/index.d.ts +2 -0
  14. package/src/components/grid-filters/grid-filters.d.ts +30 -0
  15. package/src/components/grid-filters/grid-filters.styles.d.ts +11 -0
  16. package/src/components/grid-filters/index.d.ts +2 -0
  17. package/src/components/grid-filters/shipment-id-filter-shema.d.ts +9 -0
  18. package/src/components/grid-filters/shipment-id-filter.d.ts +23 -0
  19. package/src/components/index.d.ts +1 -0
  20. package/src/elements/label-layout/label-layout-element.d.ts +33 -7
  21. package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +67 -0
  22. package/src/elements/labels-grid/index.d.ts +1 -0
  23. package/src/elements/labels-grid/labels-grid.d.ts +88 -19
  24. package/src/elements/labels-grid/labels-grid.styles.d.ts +5 -0
  25. package/src/elements/manage-carriers/manage-carriers.d.ts +33 -7
  26. package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +33 -7
  27. package/src/elements/manage-funding/manage-funding-element.d.ts +33 -7
  28. package/src/elements/manage-warehouses/manage-warehouses.d.ts +33 -7
  29. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +33 -7
  30. package/src/elements/purchase-label/purchase-label.d.ts +34 -45
  31. package/src/elements/shipment-summary/shipment-summary.d.ts +33 -7
  32. package/src/elements/shipments-grid/shipments-grid.d.ts +33 -7
  33. package/src/elements/theme-creator/theme-creator.d.ts +33 -7
  34. package/src/elements/transaction-history/transaction-history-element.d.ts +33 -7
  35. package/src/elements/unit-settings/unit-settings-element.d.ts +33 -7
  36. package/src/elements/vat-settings/vat-settings-element.d.ts +33 -7
  37. package/src/elements/void-label/void-label.d.ts +33 -7
  38. package/src/hooks/index.d.ts +1 -0
  39. package/src/hooks/use-get-service-name.d.ts +4 -0
  40. package/src/locales/en/index.d.ts +33 -7
  41. package/src/workflows/account-settings/account-settings.d.ts +33 -7
  42. package/src/workflows/carrier-services/carrier-services.d.ts +33 -7
  43. package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +33 -7
  44. package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.d.ts +18 -18
  45. package/src/workflows/onboarding/onboarding.d.ts +33 -7
  46. package/suspend-text.js +1 -1
  47. package/transaction-history-element.js +1 -1
  48. package/use-get-service-name.js +1 -0
  49. package/use-unit-settings.js +1 -1
  50. package/usePager.js +1 -0
  51. package/vat.js +1 -1
  52. package/wallet-form.js +1 -1
  53. package/story-notes.js +0 -1
@@ -526,15 +526,33 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
526
526
  title: string;
527
527
  headers: {
528
528
  created: string;
529
- download: string;
530
- labelId: string;
531
- service: string;
532
- shipTo: string;
529
+ shipmentId: string;
530
+ parcels: string;
531
+ recipient: string;
532
+ shipping: string;
533
+ shipDate: string;
534
+ status: string;
535
+ };
536
+ empty: {
537
+ title: string;
538
+ subtitle: string;
539
+ };
540
+ emptyWithFilters: {
541
+ title: string;
542
+ subtitle: string;
543
+ button: string;
544
+ };
545
+ status: {
546
+ voided: string;
547
+ error: string;
548
+ completed: string;
549
+ processing: string;
533
550
  };
534
551
  actions: {
535
- download: {
536
- pdf: string;
537
- };
552
+ title: string;
553
+ print: string;
554
+ void: string;
555
+ printForms: string;
538
556
  };
539
557
  };
540
558
  "connect-carrier": {
@@ -754,6 +772,13 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
754
772
  "row-count_one": string;
755
773
  "row-count_other": string;
756
774
  rows: string;
775
+ clearAll: string;
776
+ shipmentId: string;
777
+ shipmentIdFilter: string;
778
+ apply: string;
779
+ clear: string;
780
+ search: string;
781
+ shipmentIdHint: string;
757
782
  };
758
783
  insuranceProviders: {
759
784
  carrier: string;
@@ -829,6 +854,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
829
854
  requiredList: string;
830
855
  tooFewCharacters: string;
831
856
  tooManyCharacters: string;
857
+ requiredShipmentId: string;
832
858
  };
833
859
  shippingPresets: {
834
860
  apply: string;
@@ -536,15 +536,33 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
536
536
  title: string;
537
537
  headers: {
538
538
  created: string;
539
- download: string;
540
- labelId: string;
541
- service: string;
542
- shipTo: string;
539
+ shipmentId: string;
540
+ parcels: string;
541
+ recipient: string;
542
+ shipping: string;
543
+ shipDate: string;
544
+ status: string;
545
+ };
546
+ empty: {
547
+ title: string;
548
+ subtitle: string;
549
+ };
550
+ emptyWithFilters: {
551
+ title: string;
552
+ subtitle: string;
553
+ button: string;
554
+ };
555
+ status: {
556
+ voided: string;
557
+ error: string;
558
+ completed: string;
559
+ processing: string;
543
560
  };
544
561
  actions: {
545
- download: {
546
- pdf: string;
547
- };
562
+ title: string;
563
+ print: string;
564
+ void: string;
565
+ printForms: string;
548
566
  };
549
567
  };
550
568
  "connect-carrier": {
@@ -764,6 +782,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
764
782
  "row-count_one": string;
765
783
  "row-count_other": string;
766
784
  rows: string;
785
+ clearAll: string;
786
+ shipmentId: string;
787
+ shipmentIdFilter: string;
788
+ apply: string;
789
+ clear: string;
790
+ search: string;
791
+ shipmentIdHint: string;
767
792
  };
768
793
  insuranceProviders: {
769
794
  carrier: string;
@@ -839,6 +864,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
839
864
  requiredList: string;
840
865
  tooFewCharacters: string;
841
866
  tooManyCharacters: string;
867
+ requiredShipmentId: string;
842
868
  };
843
869
  shippingPresets: {
844
870
  apply: string;
@@ -523,15 +523,33 @@ export declare const Element: ({ resources, ...props }: object & {
523
523
  title: string;
524
524
  headers: {
525
525
  created: string;
526
- download: string;
527
- labelId: string;
528
- service: string;
529
- shipTo: string;
526
+ shipmentId: string;
527
+ parcels: string;
528
+ recipient: string;
529
+ shipping: string;
530
+ shipDate: string;
531
+ status: string;
532
+ };
533
+ empty: {
534
+ title: string;
535
+ subtitle: string;
536
+ };
537
+ emptyWithFilters: {
538
+ title: string;
539
+ subtitle: string;
540
+ button: string;
541
+ };
542
+ status: {
543
+ voided: string;
544
+ error: string;
545
+ completed: string;
546
+ processing: string;
530
547
  };
531
548
  actions: {
532
- download: {
533
- pdf: string;
534
- };
549
+ title: string;
550
+ print: string;
551
+ void: string;
552
+ printForms: string;
535
553
  };
536
554
  };
537
555
  "connect-carrier": {
@@ -751,6 +769,13 @@ export declare const Element: ({ resources, ...props }: object & {
751
769
  "row-count_one": string;
752
770
  "row-count_other": string;
753
771
  rows: string;
772
+ clearAll: string;
773
+ shipmentId: string;
774
+ shipmentIdFilter: string;
775
+ apply: string;
776
+ clear: string;
777
+ search: string;
778
+ shipmentIdHint: string;
754
779
  };
755
780
  insuranceProviders: {
756
781
  carrier: string;
@@ -826,6 +851,7 @@ export declare const Element: ({ resources, ...props }: object & {
826
851
  requiredList: string;
827
852
  tooFewCharacters: string;
828
853
  tooManyCharacters: string;
854
+ requiredShipmentId: string;
829
855
  };
830
856
  shippingPresets: {
831
857
  apply: string;
@@ -523,15 +523,33 @@ export declare const Element: ({ resources, ...props }: object & {
523
523
  title: string;
524
524
  headers: {
525
525
  created: string;
526
- download: string;
527
- labelId: string;
528
- service: string;
529
- shipTo: string;
526
+ shipmentId: string;
527
+ parcels: string;
528
+ recipient: string;
529
+ shipping: string;
530
+ shipDate: string;
531
+ status: string;
532
+ };
533
+ empty: {
534
+ title: string;
535
+ subtitle: string;
536
+ };
537
+ emptyWithFilters: {
538
+ title: string;
539
+ subtitle: string;
540
+ button: string;
541
+ };
542
+ status: {
543
+ voided: string;
544
+ error: string;
545
+ completed: string;
546
+ processing: string;
530
547
  };
531
548
  actions: {
532
- download: {
533
- pdf: string;
534
- };
549
+ title: string;
550
+ print: string;
551
+ void: string;
552
+ printForms: string;
535
553
  };
536
554
  };
537
555
  "connect-carrier": {
@@ -751,6 +769,13 @@ export declare const Element: ({ resources, ...props }: object & {
751
769
  "row-count_one": string;
752
770
  "row-count_other": string;
753
771
  rows: string;
772
+ clearAll: string;
773
+ shipmentId: string;
774
+ shipmentIdFilter: string;
775
+ apply: string;
776
+ clear: string;
777
+ search: string;
778
+ shipmentIdHint: string;
754
779
  };
755
780
  insuranceProviders: {
756
781
  carrier: string;
@@ -826,6 +851,7 @@ export declare const Element: ({ resources, ...props }: object & {
826
851
  requiredList: string;
827
852
  tooFewCharacters: string;
828
853
  tooManyCharacters: string;
854
+ requiredShipmentId: string;
829
855
  };
830
856
  shippingPresets: {
831
857
  apply: string;
@@ -523,15 +523,33 @@ export declare const Element: ({ resources, ...props }: object & {
523
523
  title: string;
524
524
  headers: {
525
525
  created: string;
526
- download: string;
527
- labelId: string;
528
- service: string;
529
- shipTo: string;
526
+ shipmentId: string;
527
+ parcels: string;
528
+ recipient: string;
529
+ shipping: string;
530
+ shipDate: string;
531
+ status: string;
532
+ };
533
+ empty: {
534
+ title: string;
535
+ subtitle: string;
536
+ };
537
+ emptyWithFilters: {
538
+ title: string;
539
+ subtitle: string;
540
+ button: string;
541
+ };
542
+ status: {
543
+ voided: string;
544
+ error: string;
545
+ completed: string;
546
+ processing: string;
530
547
  };
531
548
  actions: {
532
- download: {
533
- pdf: string;
534
- };
549
+ title: string;
550
+ print: string;
551
+ void: string;
552
+ printForms: string;
535
553
  };
536
554
  };
537
555
  "connect-carrier": {
@@ -751,6 +769,13 @@ export declare const Element: ({ resources, ...props }: object & {
751
769
  "row-count_one": string;
752
770
  "row-count_other": string;
753
771
  rows: string;
772
+ clearAll: string;
773
+ shipmentId: string;
774
+ shipmentIdFilter: string;
775
+ apply: string;
776
+ clear: string;
777
+ search: string;
778
+ shipmentIdHint: string;
754
779
  };
755
780
  insuranceProviders: {
756
781
  carrier: string;
@@ -826,6 +851,7 @@ export declare const Element: ({ resources, ...props }: object & {
826
851
  requiredList: string;
827
852
  tooFewCharacters: string;
828
853
  tooManyCharacters: string;
854
+ requiredShipmentId: string;
829
855
  };
830
856
  shippingPresets: {
831
857
  apply: string;
@@ -655,15 +655,33 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
655
655
  title: string;
656
656
  headers: {
657
657
  created: string;
658
- download: string;
659
- labelId: string;
660
- service: string;
661
- shipTo: string;
658
+ shipmentId: string;
659
+ parcels: string;
660
+ recipient: string;
661
+ shipping: string;
662
+ shipDate: string;
663
+ status: string;
664
+ };
665
+ empty: {
666
+ title: string;
667
+ subtitle: string;
668
+ };
669
+ emptyWithFilters: {
670
+ title: string;
671
+ subtitle: string;
672
+ button: string;
673
+ };
674
+ status: {
675
+ voided: string;
676
+ error: string;
677
+ completed: string;
678
+ processing: string;
662
679
  };
663
680
  actions: {
664
- download: {
665
- pdf: string;
666
- };
681
+ title: string;
682
+ print: string;
683
+ void: string;
684
+ printForms: string;
667
685
  };
668
686
  };
669
687
  "connect-carrier": {
@@ -888,6 +906,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
888
906
  "row-count_one": string;
889
907
  "row-count_other": string;
890
908
  rows: string;
909
+ clearAll: string;
910
+ shipmentId: string;
911
+ shipmentIdFilter: string;
912
+ apply: string;
913
+ clear: string;
914
+ search: string;
915
+ shipmentIdHint: string;
891
916
  };
892
917
  insuranceProviders: {
893
918
  carrier: string;
@@ -963,6 +988,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
963
988
  requiredList: string;
964
989
  tooFewCharacters: string;
965
990
  tooManyCharacters: string;
991
+ requiredShipmentId: string;
966
992
  };
967
993
  shippingPresets: {
968
994
  apply: string;
@@ -1,6 +1,7 @@
1
1
  export * from "./options";
2
2
  export * from "./use-address-validation";
3
3
  export * from "./use-black-box-detection";
4
+ export * from "./use-get-service-name";
4
5
  export * from "./use-helpers";
5
6
  export * from "./use-nested-form";
6
7
  export * from "./use-page-layout";
@@ -0,0 +1,4 @@
1
+ import { SE } from '@shipengine/js-api';
2
+ export declare const useGetServiceName: () => {
3
+ getServiceName: (itemSelected: SE.Label | SE.Shipment) => string | undefined | null;
4
+ };
@@ -519,15 +519,33 @@ declare const _default: {
519
519
  title: string;
520
520
  headers: {
521
521
  created: string;
522
- download: string;
523
- labelId: string;
524
- service: string;
525
- shipTo: string;
522
+ shipmentId: string;
523
+ parcels: string;
524
+ recipient: string;
525
+ shipping: string;
526
+ shipDate: string;
527
+ status: string;
528
+ };
529
+ empty: {
530
+ title: string;
531
+ subtitle: string;
532
+ };
533
+ emptyWithFilters: {
534
+ title: string;
535
+ subtitle: string;
536
+ button: string;
537
+ };
538
+ status: {
539
+ voided: string;
540
+ error: string;
541
+ completed: string;
542
+ processing: string;
526
543
  };
527
544
  actions: {
528
- download: {
529
- pdf: string;
530
- };
545
+ title: string;
546
+ print: string;
547
+ void: string;
548
+ printForms: string;
531
549
  };
532
550
  };
533
551
  "connect-carrier": {
@@ -747,6 +765,13 @@ declare const _default: {
747
765
  "row-count_one": string;
748
766
  "row-count_other": string;
749
767
  rows: string;
768
+ clearAll: string;
769
+ shipmentId: string;
770
+ shipmentIdFilter: string;
771
+ apply: string;
772
+ clear: string;
773
+ search: string;
774
+ shipmentIdHint: string;
750
775
  };
751
776
  insuranceProviders: {
752
777
  carrier: string;
@@ -822,6 +847,7 @@ declare const _default: {
822
847
  requiredList: string;
823
848
  tooFewCharacters: string;
824
849
  tooManyCharacters: string;
850
+ requiredShipmentId: string;
825
851
  };
826
852
  shippingPresets: {
827
853
  apply: string;
@@ -557,15 +557,33 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
557
557
  title: string;
558
558
  headers: {
559
559
  created: string;
560
- download: string;
561
- labelId: string;
562
- service: string;
563
- shipTo: string;
560
+ shipmentId: string;
561
+ parcels: string;
562
+ recipient: string;
563
+ shipping: string;
564
+ shipDate: string;
565
+ status: string;
566
+ };
567
+ empty: {
568
+ title: string;
569
+ subtitle: string;
570
+ };
571
+ emptyWithFilters: {
572
+ title: string;
573
+ subtitle: string;
574
+ button: string;
575
+ };
576
+ status: {
577
+ voided: string;
578
+ error: string;
579
+ completed: string;
580
+ processing: string;
564
581
  };
565
582
  actions: {
566
- download: {
567
- pdf: string;
568
- };
583
+ title: string;
584
+ print: string;
585
+ void: string;
586
+ printForms: string;
569
587
  };
570
588
  };
571
589
  "connect-carrier": {
@@ -785,6 +803,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
785
803
  "row-count_one": string;
786
804
  "row-count_other": string;
787
805
  rows: string;
806
+ clearAll: string;
807
+ shipmentId: string;
808
+ shipmentIdFilter: string;
809
+ apply: string;
810
+ clear: string;
811
+ search: string;
812
+ shipmentIdHint: string;
788
813
  };
789
814
  insuranceProviders: {
790
815
  carrier: string;
@@ -860,6 +885,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
860
885
  requiredList: string;
861
886
  tooFewCharacters: string;
862
887
  tooManyCharacters: string;
888
+ requiredShipmentId: string;
863
889
  };
864
890
  shippingPresets: {
865
891
  apply: string;
@@ -549,15 +549,33 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
549
549
  title: string;
550
550
  headers: {
551
551
  created: string;
552
- download: string;
553
- labelId: string;
554
- service: string;
555
- shipTo: string;
552
+ shipmentId: string;
553
+ parcels: string;
554
+ recipient: string;
555
+ shipping: string;
556
+ shipDate: string;
557
+ status: string;
558
+ };
559
+ empty: {
560
+ title: string;
561
+ subtitle: string;
562
+ };
563
+ emptyWithFilters: {
564
+ title: string;
565
+ subtitle: string;
566
+ button: string;
567
+ };
568
+ status: {
569
+ voided: string;
570
+ error: string;
571
+ completed: string;
572
+ processing: string;
556
573
  };
557
574
  actions: {
558
- download: {
559
- pdf: string;
560
- };
575
+ title: string;
576
+ print: string;
577
+ void: string;
578
+ printForms: string;
561
579
  };
562
580
  };
563
581
  "connect-carrier": {
@@ -777,6 +795,13 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
777
795
  "row-count_one": string;
778
796
  "row-count_other": string;
779
797
  rows: string;
798
+ clearAll: string;
799
+ shipmentId: string;
800
+ shipmentIdFilter: string;
801
+ apply: string;
802
+ clear: string;
803
+ search: string;
804
+ shipmentIdHint: string;
780
805
  };
781
806
  insuranceProviders: {
782
807
  carrier: string;
@@ -852,6 +877,7 @@ export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
852
877
  requiredList: string;
853
878
  tooFewCharacters: string;
854
879
  tooManyCharacters: string;
880
+ requiredShipmentId: string;
855
881
  };
856
882
  shippingPresets: {
857
883
  apply: string;
@@ -556,15 +556,33 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
556
556
  title: string;
557
557
  headers: {
558
558
  created: string;
559
- download: string;
560
- labelId: string;
561
- service: string;
562
- shipTo: string;
559
+ shipmentId: string;
560
+ parcels: string;
561
+ recipient: string;
562
+ shipping: string;
563
+ shipDate: string;
564
+ status: string;
565
+ };
566
+ empty: {
567
+ title: string;
568
+ subtitle: string;
569
+ };
570
+ emptyWithFilters: {
571
+ title: string;
572
+ subtitle: string;
573
+ button: string;
574
+ };
575
+ status: {
576
+ voided: string;
577
+ error: string;
578
+ completed: string;
579
+ processing: string;
563
580
  };
564
581
  actions: {
565
- download: {
566
- pdf: string;
567
- };
582
+ title: string;
583
+ print: string;
584
+ void: string;
585
+ printForms: string;
568
586
  };
569
587
  };
570
588
  "connect-carrier": {
@@ -784,6 +802,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
784
802
  "row-count_one": string;
785
803
  "row-count_other": string;
786
804
  rows: string;
805
+ clearAll: string;
806
+ shipmentId: string;
807
+ shipmentIdFilter: string;
808
+ apply: string;
809
+ clear: string;
810
+ search: string;
811
+ shipmentIdHint: string;
787
812
  };
788
813
  insuranceProviders: {
789
814
  carrier: string;
@@ -859,6 +884,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
859
884
  requiredList: string;
860
885
  tooFewCharacters: string;
861
886
  tooManyCharacters: string;
887
+ requiredShipmentId: string;
862
888
  };
863
889
  shippingPresets: {
864
890
  apply: string;