@shipengine/elements 0.26.18 → 0.28.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 (38) hide show
  1. package/index.cjs +10541 -9095
  2. package/index.js +10679 -9241
  3. package/package.json +3 -3
  4. package/src/components/address-preference-context/address-preference-context.d.ts +2 -2
  5. package/src/components/collapsible-panel/collapsible-panel.d.ts +9 -0
  6. package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +27 -0
  7. package/src/components/collapsible-panel/index.d.ts +1 -0
  8. package/src/components/index.d.ts +2 -0
  9. package/src/components/payment-method-settings/index.d.ts +1 -0
  10. package/src/components/payment-method-settings/payment-method-settings.d.ts +1 -0
  11. package/src/components/save-status/save-status.d.ts +3 -3
  12. package/src/components/templates/account-settings/account-settings.d.ts +6 -0
  13. package/src/components/templates/account-settings/index.d.ts +1 -0
  14. package/src/components/templates/carrier-recovery-form/carrier-recovery-form.d.ts +3 -2
  15. package/src/components/templates/edit-billing-form/edit-billing-form.d.ts +4 -3
  16. package/src/components/templates/index.d.ts +1 -0
  17. package/src/components/templates/onboarding/onboarding.d.ts +8 -8
  18. package/src/components/templates/wallet-form/wallet-form.d.ts +1 -1
  19. package/src/components/templates/wallet-form/wallet-schema.d.ts +10 -8
  20. package/src/elements/account-settings/account-settings.d.ts +621 -0
  21. package/src/elements/account-settings/index.d.ts +1 -0
  22. package/src/elements/index.d.ts +2 -0
  23. package/src/elements/list-carriers/list-carriers.d.ts +0 -597
  24. package/src/elements/manage-warehouses/manage-warehouses.d.ts +0 -597
  25. package/src/elements/onboarding/onboarding.d.ts +21 -1
  26. package/src/elements/purchase-label/purchase-label.d.ts +21 -1
  27. package/src/elements/shipengine-workflow/index.d.ts +1 -0
  28. package/src/elements/shipengine-workflow/label-workflow.d.ts +25 -0
  29. package/src/elements/view-shipment/view-shipment.d.ts +21 -1
  30. package/src/elements/void-label/void-label.d.ts +21 -1
  31. package/src/locales/en/index.d.ts +21 -1
  32. package/src/types/carrier-metadata.d.ts +2 -0
  33. package/src/utilities/feature-flags.d.ts +3 -0
  34. package/src/utilities/index.d.ts +1 -0
  35. package/src/utilities/shipengine/carrier.d.ts +2 -0
  36. package/src/components/templates/manage-wallet/index.d.ts +0 -1
  37. package/src/components/templates/manage-wallet/manage-wallet.d.ts +0 -1
  38. package/src/components/templates/manage-wallet/manage-wallet.styles.d.ts +0 -21
@@ -0,0 +1,25 @@
1
+ import { Shipment } from "@shipengine/js-api";
2
+ type LabelWorkflowProps = {
3
+ callbacks?: {
4
+ onLabelCreateSuccess?: (label: {
5
+ labelId: string;
6
+ }, shipment: Shipment) => void;
7
+ };
8
+ features: any;
9
+ labelId?: string;
10
+ multiplexedId: ({
11
+ orderSourceCode: string;
12
+ } & ({
13
+ externalOrderNumber: string;
14
+ } | {
15
+ externalOrderId: string;
16
+ })) | {
17
+ salesOrderId: string;
18
+ } | {
19
+ shipmentId: string;
20
+ } | {
21
+ oneOff: true;
22
+ };
23
+ };
24
+ export declare const Element: ({ multiplexedId: _multiplexedId, labelId: _labelId, features: propFeatures, callbacks, }: LabelWorkflowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
25
+ export {};
@@ -119,7 +119,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
119
119
  title: string;
120
120
  billing: {
121
121
  title: string;
122
- subtitle: string;
122
+ subtitleCard: string;
123
+ subtitleBilling: string;
123
124
  };
124
125
  };
125
126
  };
@@ -219,6 +220,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
219
220
  rate_other: string;
220
221
  };
221
222
  };
223
+ "payment-method": {
224
+ title: string;
225
+ };
222
226
  onboarding: {
223
227
  title: string;
224
228
  inlineTitle: string;
@@ -600,6 +604,22 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
600
604
  "QWRkcmVzcyBub3QgZm91bmQ=": string;
601
605
  QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBVUFMgd2VpZ2h0IGxpbWl0IHBlciBwYWNrYWdlIGlzIDE1MCBsYnMu: string;
602
606
  UGxlYXNlIGFkZCBhIFN0YW1wcy5jb20gYWNjb3VudCB0byBTaGlwRW5naW5lIGluIG9yZGVyIHRvIGNyZWF0ZSBzaGlwcGluZyBsYWJlbHMu: string;
607
+ QSBzaGlwcGluZyBlcnJvciBvY2N1cnJlZDogTWlzc2luZyBvciBpbnZhbGlkIHNoaXBwZXIgbnVtYmVy: string;
608
+ "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
609
+ "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
610
+ };
611
+ "account-settings": {
612
+ title: string;
613
+ sections: {
614
+ accountBalance: string;
615
+ paymentMethod: string;
616
+ transactionHistory: string;
617
+ adjustmentHistory: string;
618
+ warehouses: string;
619
+ carriers: string;
620
+ labelLayout: string;
621
+ unitSettings: string;
622
+ };
603
623
  };
604
624
  };
605
625
  } | undefined;
@@ -122,7 +122,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
122
122
  title: string;
123
123
  billing: {
124
124
  title: string;
125
- subtitle: string;
125
+ subtitleCard: string;
126
+ subtitleBilling: string;
126
127
  };
127
128
  };
128
129
  };
@@ -222,6 +223,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
222
223
  rate_other: string;
223
224
  };
224
225
  };
226
+ "payment-method": {
227
+ title: string;
228
+ };
225
229
  onboarding: {
226
230
  title: string;
227
231
  inlineTitle: string;
@@ -603,6 +607,22 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
603
607
  "QWRkcmVzcyBub3QgZm91bmQ=": string;
604
608
  QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBVUFMgd2VpZ2h0IGxpbWl0IHBlciBwYWNrYWdlIGlzIDE1MCBsYnMu: string;
605
609
  UGxlYXNlIGFkZCBhIFN0YW1wcy5jb20gYWNjb3VudCB0byBTaGlwRW5naW5lIGluIG9yZGVyIHRvIGNyZWF0ZSBzaGlwcGluZyBsYWJlbHMu: string;
610
+ QSBzaGlwcGluZyBlcnJvciBvY2N1cnJlZDogTWlzc2luZyBvciBpbnZhbGlkIHNoaXBwZXIgbnVtYmVy: string;
611
+ "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
612
+ "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
613
+ };
614
+ "account-settings": {
615
+ title: string;
616
+ sections: {
617
+ accountBalance: string;
618
+ paymentMethod: string;
619
+ transactionHistory: string;
620
+ adjustmentHistory: string;
621
+ warehouses: string;
622
+ carriers: string;
623
+ labelLayout: string;
624
+ unitSettings: string;
625
+ };
606
626
  };
607
627
  };
608
628
  } | undefined;
@@ -106,7 +106,8 @@ declare const _default: {
106
106
  title: string;
107
107
  billing: {
108
108
  title: string;
109
- subtitle: string;
109
+ subtitleCard: string;
110
+ subtitleBilling: string;
110
111
  };
111
112
  };
112
113
  };
@@ -206,6 +207,9 @@ declare const _default: {
206
207
  rate_other: string;
207
208
  };
208
209
  };
210
+ "payment-method": {
211
+ title: string;
212
+ };
209
213
  onboarding: {
210
214
  title: string;
211
215
  inlineTitle: string;
@@ -587,6 +591,22 @@ declare const _default: {
587
591
  "QWRkcmVzcyBub3QgZm91bmQ=": string;
588
592
  QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBVUFMgd2VpZ2h0IGxpbWl0IHBlciBwYWNrYWdlIGlzIDE1MCBsYnMu: string;
589
593
  UGxlYXNlIGFkZCBhIFN0YW1wcy5jb20gYWNjb3VudCB0byBTaGlwRW5naW5lIGluIG9yZGVyIHRvIGNyZWF0ZSBzaGlwcGluZyBsYWJlbHMu: string;
594
+ QSBzaGlwcGluZyBlcnJvciBvY2N1cnJlZDogTWlzc2luZyBvciBpbnZhbGlkIHNoaXBwZXIgbnVtYmVy: string;
595
+ "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
596
+ "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
597
+ };
598
+ "account-settings": {
599
+ title: string;
600
+ sections: {
601
+ accountBalance: string;
602
+ paymentMethod: string;
603
+ transactionHistory: string;
604
+ adjustmentHistory: string;
605
+ warehouses: string;
606
+ carriers: string;
607
+ labelLayout: string;
608
+ unitSettings: string;
609
+ };
590
610
  };
591
611
  };
592
612
  export default _default;
@@ -2,7 +2,9 @@ import { CarrierConnection, SE } from "@shipengine/alchemy";
2
2
  export type CarrierTerm = {
3
3
  description: string;
4
4
  name: string;
5
+ termType: string;
5
6
  url: string;
7
+ version: string;
6
8
  };
7
9
  export type CarrierTerms = {
8
10
  content: string[];
@@ -0,0 +1,3 @@
1
+ export declare const featureFlagComponentNameLookup: (componentName: string) => string;
2
+ export declare const getFeatures: (...element: string[]) => any;
3
+ export declare const useFeatures: (...element: string[]) => any;
@@ -9,3 +9,4 @@ export * from "./shipengine";
9
9
  export * from "./string";
10
10
  export * from "./styles";
11
11
  export * from "./validation";
12
+ export * from "./feature-flags";
@@ -1,2 +1,4 @@
1
+ import { SE } from "@shipengine/alchemy";
1
2
  export declare const isUspsCarrier: (carrierCode: string) => boolean;
2
3
  export declare const isUpsCarrier: (carrierCode: string) => boolean;
4
+ export declare const getCarrierIdByCarrierCode: (carriers: SE.Carrier[] | undefined, carrierCode: string) => string | undefined;
@@ -1 +0,0 @@
1
- export * from "./manage-wallet";
@@ -1 +0,0 @@
1
- export declare const ManageWallet: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- export declare const styles: {
2
- container: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
3
- padding: string;
4
- };
5
- headingContainer: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
6
- backgroundColor: string;
7
- padding: number;
8
- position: "relative";
9
- width: string;
10
- };
11
- subtitle: (theme: import("@packlink/giger-theme/dist/lib/Theme").Theme) => {
12
- backgroundColor: string;
13
- marginBottom: number;
14
- padding: number;
15
- position: "absolute";
16
- textAlign: "left";
17
- top: string;
18
- transform: "translateY(-50%)";
19
- width: string;
20
- };
21
- };