@shipengine/elements 1.6.0 → 1.8.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 (89) hide show
  1. package/index.cjs +17376 -16774
  2. package/index.js +17372 -16776
  3. package/package.json +3 -3
  4. package/src/components/collapsible-panel/collapsible-panel.d.ts +6 -1
  5. package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +3 -4
  6. package/src/components/display-term/display-term.d.ts +2 -2
  7. package/src/components/display-term/display-term.styles.d.ts +2 -0
  8. package/src/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
  9. package/src/components/index.d.ts +6 -5
  10. package/src/components/templates/address-form/address-schema.d.ts +2 -0
  11. package/src/components/templates/index.d.ts +1 -1
  12. package/src/components/templates/rate-form/rate-form.d.ts +2 -1
  13. package/src/components/templates/wallet-form/wallet-form.d.ts +3 -1
  14. package/src/components/templates/wallet-form/wallet-form.styles.d.ts +3 -0
  15. package/src/components/templates/wallet-form/wallet-schema.d.ts +46 -2
  16. package/src/components/vat-form/index.d.ts +1 -0
  17. package/src/components/vat-form/vat-form-schema.d.ts +10 -0
  18. package/src/components/vat-form/vat-form.d.ts +6 -0
  19. package/src/components/vat-form/vat-form.styles.d.ts +9 -0
  20. package/src/elements/external-carriers/external-carriers.d.ts +130 -101
  21. package/src/elements/index.d.ts +2 -1
  22. package/src/elements/label-layout/label-layout-element.d.ts +107 -74
  23. package/src/elements/labels-grid/labels-grid.d.ts +107 -74
  24. package/src/elements/manage-funding/manage-funding-element.d.ts +107 -74
  25. package/src/elements/manage-warehouses/manage-warehouses.d.ts +110 -117
  26. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +107 -74
  27. package/src/elements/purchase-label/purchase-label.d.ts +131 -81
  28. package/src/elements/shipengine-carriers/index.d.ts +1 -0
  29. package/src/elements/shipengine-carriers/shipengine-carriers.d.ts +881 -0
  30. package/src/elements/shipments-grid/shipments-grid.d.ts +107 -74
  31. package/src/elements/theme-creator/theme-creator.d.ts +107 -74
  32. package/src/elements/unit-settings/unit-settings-element.d.ts +107 -74
  33. package/src/elements/vat-settings/index.d.ts +1 -0
  34. package/src/elements/vat-settings/vat-settings-element.d.ts +818 -0
  35. package/src/elements/view-shipment/view-shipment.d.ts +121 -89
  36. package/src/elements/void-label/components/message/message.d.ts +3 -2
  37. package/src/elements/void-label/void-label.d.ts +134 -93
  38. package/src/elements/wallet-history/wallet-history-element.d.ts +107 -74
  39. package/src/features/index.d.ts +6 -5
  40. package/src/features/label-layout/label-layout.d.ts +6 -1
  41. package/src/features/label-layout/use-label-layout.d.ts +3 -3
  42. package/src/features/manage-warehouses/index.d.ts +1 -0
  43. package/src/features/manage-warehouses/manage-warehouses.d.ts +16 -1
  44. package/src/features/manage-warehouses/use-manage-warehouses.d.ts +15 -0
  45. package/src/features/shipengine-carriers/hooks/use-carrier-metadata.d.ts +13 -0
  46. package/src/features/shipengine-carriers/index.d.ts +1 -0
  47. package/src/features/shipengine-carriers/shipengine-carriers-row/index.d.ts +1 -0
  48. package/src/features/{list-carriers/list-carriers-row/list-carriers-row.d.ts → shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts} +2 -2
  49. package/src/features/shipengine-carriers/shipengine-carriers.d.ts +10 -0
  50. package/src/features/unit-settings/index.d.ts +1 -0
  51. package/src/features/unit-settings/unit-settings.d.ts +9 -1
  52. package/src/features/unit-settings/use-unit-settings.d.ts +10 -0
  53. package/src/features/vat-settings/index.d.ts +2 -0
  54. package/src/features/vat-settings/use-vat-settings.d.ts +8 -0
  55. package/src/features/vat-settings/vat-settings.d.ts +9 -0
  56. package/src/features/vat-settings/vat-settings.styles.d.ts +29 -0
  57. package/src/hooks/index.d.ts +3 -3
  58. package/src/locales/en/index.d.ts +107 -74
  59. package/src/types/carrier-metadata.d.ts +3 -0
  60. package/src/types/patch.d.ts +1 -12
  61. package/src/utilities/feature-flags.d.ts +15 -2
  62. package/src/utilities/shipengine/index.d.ts +1 -0
  63. package/src/utilities/shipengine/shipment.d.ts +11 -0
  64. package/src/workflows/account-settings/account-settings.d.ts +111 -83
  65. package/src/workflows/account-settings/use-get-panel-props.d.ts +7 -1
  66. package/src/workflows/connect-carrier/connect-carrier.d.ts +107 -74
  67. package/src/workflows/manage-wallet-workflow/index.d.ts +1 -0
  68. package/src/{elements/list-carriers/list-carriers.d.ts → workflows/manage-wallet-workflow/manage-wallet-workflow.d.ts} +122 -111
  69. package/src/workflows/manage-wallet-workflow/use-get-wallet-panel-props.d.ts +4 -0
  70. package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +3 -0
  71. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +3 -1
  72. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +2 -2
  73. package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +3 -3
  74. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +4 -4
  75. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.d.ts +6 -7
  76. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +3 -4
  77. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +3 -0
  78. package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +7 -7
  79. package/src/workflows/onboarding/onboarding.d.ts +111 -79
  80. package/vite.config.d.ts +1 -1
  81. package/src/elements/list-carriers/index.d.ts +0 -1
  82. package/src/features/list-carriers/hooks/use-carrier-metadata.d.ts +0 -10
  83. package/src/features/list-carriers/index.d.ts +0 -1
  84. package/src/features/list-carriers/list-carriers-row/index.d.ts +0 -1
  85. package/src/features/list-carriers/list-carriers.d.ts +0 -9
  86. /package/src/features/{list-carriers → shipengine-carriers}/hooks/index.d.ts +0 -0
  87. /package/src/features/{list-carriers → shipengine-carriers}/hooks/use-list-connected-carriers.d.ts +0 -0
  88. /package/src/features/{list-carriers/list-carriers-row/list-carriers-row.styles.d.ts → shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.styles.d.ts} +0 -0
  89. /package/src/features/{list-carriers/list-carriers.styles.d.ts → shipengine-carriers/shipengine-carriers.styles.d.ts} +0 -0
@@ -36,6 +36,7 @@ export declare const Element: ({ resources, ...props }: object & {
36
36
  resultMessages: {
37
37
  approved: string;
38
38
  rejected: string;
39
+ dpdwallet: string;
39
40
  };
40
41
  refund_process: string;
41
42
  refund_rules: string;
@@ -77,11 +78,44 @@ export declare const Element: ({ resources, ...props }: object & {
77
78
  };
78
79
  noLabels: string;
79
80
  };
81
+ "vat-settings": {
82
+ addNew: string;
83
+ vatNumber: string;
84
+ vatRegistrationTooltip: string;
85
+ vatFormText: string;
86
+ vatFormRegisterLater: string;
87
+ vatNumberInputHint: string;
88
+ vatNumberInputPlaceholder: string;
89
+ verifiedVat: string;
90
+ vatFormErrors: {
91
+ invalidFieldValue: string;
92
+ verificationFailure: string;
93
+ forbidden: string;
94
+ connectionNotSupported: string;
95
+ genericTitle: string;
96
+ genericText: string;
97
+ };
98
+ };
99
+ "shipengine-carriers": {
100
+ title: string;
101
+ headers: {
102
+ accountCarriers: string;
103
+ carriers: string;
104
+ settings: string;
105
+ };
106
+ actions: {
107
+ status: {
108
+ connected: string;
109
+ notConnected: string;
110
+ };
111
+ };
112
+ };
80
113
  "register-wallet": {
81
114
  sections: {
82
115
  setup: {
83
116
  title: string;
84
117
  subtitle: string;
118
+ hiddenTermsSubtitle: string;
85
119
  descriptionTitle: string;
86
120
  description: string;
87
121
  };
@@ -91,6 +125,9 @@ export declare const Element: ({ resources, ...props }: object & {
91
125
  addressSubTitle: string;
92
126
  info: string;
93
127
  };
128
+ vatSettings: {
129
+ title: string;
130
+ };
94
131
  carriers: {
95
132
  title: string;
96
133
  subtitle: string;
@@ -211,11 +248,13 @@ export declare const Element: ({ resources, ...props }: object & {
211
248
  needToAcknowledge: string;
212
249
  };
213
250
  rates: {
251
+ requestedShippingNotification: string;
214
252
  uspsMediaMailAcknowledgement: string;
215
253
  uspsFirstClassMailAcknowledgement_leof: string;
216
254
  rateSavings: string;
217
255
  upsGroundSaverTermsAcknowledgement: string;
218
256
  dhlExpressTermsAcknowledgement: string;
257
+ noRateService: string;
219
258
  };
220
259
  requirements: {
221
260
  noWarehouse: string;
@@ -282,6 +321,8 @@ export declare const Element: ({ resources, ...props }: object & {
282
321
  action: string;
283
322
  };
284
323
  termsAndAgreementLinkText: {
324
+ shipEngineToS: string;
325
+ auctanePrivacyPolicy: string;
285
326
  aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
286
327
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
287
328
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
@@ -293,6 +334,8 @@ export declare const Element: ({ resources, ...props }: object & {
293
334
  aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
294
335
  "aHR0cHM6Ly93d3cuZHBkLmNvLnVrL3N0YW5kYXJkX3Rlcm1zX2FuZF9jb25kaXRpb25zLmpzcA==": string;
295
336
  aHR0cHM6Ly93d3cuZ29nbG9iYWxwb3N0LmNvbS9jb25kaXRpb25z: string;
337
+ aHR0cHM6Ly93d3cucHVyb2xhdG9yLmNvbS9mci9tb2RhbGl0ZXMtZXQtY29uZGl0aW9ucy1kZS1zZXJ2aWNl: string;
338
+ aHR0cHM6Ly93d3cucHVyb2xhdG9yLmNvbS9lbi90ZXJtcy1hbmQtY29uZGl0aW9ucy1zZXJ2aWNl: string;
296
339
  };
297
340
  termsAndAgreementTitles: {
298
341
  "WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
@@ -300,42 +343,8 @@ export declare const Element: ({ resources, ...props }: object & {
300
343
  "VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
301
344
  RFBEIFN0YW5kYXJkIFRlcm1zIGFuZCBDb25kaXRpb25z: string;
302
345
  "R2xvYmFsUG9zdCBUZXJtcyBhbmQgQ29uZGl0aW9ucw==": string;
303
- };
304
- };
305
- "manage-defaults": {
306
- label: {
307
- title: string;
308
- letter: {
309
- title: string;
310
- description: string;
311
- };
312
- purchase: {
313
- title: string;
314
- description: string;
315
- };
316
- thermal: {
317
- title: string;
318
- description: string;
319
- };
320
- };
321
- status: {
322
- saving: string;
323
- saved: string;
324
- savingFailed: string;
325
- };
326
- units: {
327
- title: string;
328
- dimensions: {
329
- title: string;
330
- standard: string;
331
- metric: string;
332
- };
333
- weight: {
334
- title: string;
335
- standard: string;
336
- g: string;
337
- kg: string;
338
- };
346
+ "UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": string;
347
+ UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
339
348
  };
340
349
  };
341
350
  "manage-warehouses": {
@@ -405,6 +414,42 @@ export declare const Element: ({ resources, ...props }: object & {
405
414
  currentBalance: string;
406
415
  maximumBalanceAmount: string;
407
416
  };
417
+ "manage-defaults": {
418
+ label: {
419
+ title: string;
420
+ letter: {
421
+ title: string;
422
+ description: string;
423
+ };
424
+ purchase: {
425
+ title: string;
426
+ description: string;
427
+ };
428
+ thermal: {
429
+ title: string;
430
+ description: string;
431
+ };
432
+ };
433
+ status: {
434
+ saving: string;
435
+ saved: string;
436
+ savingFailed: string;
437
+ };
438
+ units: {
439
+ title: string;
440
+ dimensions: {
441
+ title: string;
442
+ standard: string;
443
+ metric: string;
444
+ };
445
+ weight: {
446
+ title: string;
447
+ standard: string;
448
+ g: string;
449
+ kg: string;
450
+ };
451
+ };
452
+ };
408
453
  "list-shipments": {
409
454
  title: string;
410
455
  headers: {
@@ -435,18 +480,31 @@ export declare const Element: ({ resources, ...props }: object & {
435
480
  };
436
481
  };
437
482
  };
438
- "list-carriers": {
439
- title: string;
440
- headers: {
441
- accountCarriers: string;
442
- carriers: string;
443
- settings: string;
444
- };
483
+ "connect-carrier": {
445
484
  actions: {
446
- status: {
447
- connected: string;
448
- notConnected: string;
449
- };
485
+ cancel: string;
486
+ carrierSettings: string;
487
+ connectCarriers: string;
488
+ disconnect: string;
489
+ disconnectCarrier: string;
490
+ };
491
+ noCarriersDescription: string;
492
+ registrationForm: {
493
+ error: string;
494
+ title: string;
495
+ betaWarning: string;
496
+ };
497
+ search: string;
498
+ settingsModal: {
499
+ closeDialog: string;
500
+ header: string;
501
+ };
502
+ status: {
503
+ connected: string;
504
+ };
505
+ disconnectDropdown: {
506
+ toastTitle: string;
507
+ toastBody: string;
450
508
  };
451
509
  };
452
510
  common: {
@@ -633,6 +691,7 @@ export declare const Element: ({ resources, ...props }: object & {
633
691
  accountSettings: string;
634
692
  carrier: string;
635
693
  carriers: string;
694
+ carrierServices: string;
636
695
  connectCarrierForm: string;
637
696
  connectingCarriers: string;
638
697
  creatingFundingSource: string;
@@ -735,33 +794,6 @@ export declare const Element: ({ resources, ...props }: object & {
735
794
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
736
795
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
737
796
  };
738
- "connect-carrier": {
739
- actions: {
740
- cancel: string;
741
- carrierSettings: string;
742
- connectCarriers: string;
743
- disconnect: string;
744
- disconnectCarrier: string;
745
- };
746
- noCarriersDescription: string;
747
- registrationForm: {
748
- error: string;
749
- title: string;
750
- betaWarning: string;
751
- };
752
- search: string;
753
- settingsModal: {
754
- closeDialog: string;
755
- header: string;
756
- };
757
- status: {
758
- connected: string;
759
- };
760
- disconnectDropdown: {
761
- toastTitle: string;
762
- toastBody: string;
763
- };
764
- };
765
797
  "account-settings": {
766
798
  messages: {
767
799
  noFundingSources: string;
@@ -777,6 +809,7 @@ export declare const Element: ({ resources, ...props }: object & {
777
809
  externalCarriers: string;
778
810
  labelLayout: string;
779
811
  unitSettings: string;
812
+ vatSettings: string;
780
813
  };
781
814
  };
782
815
  };
@@ -1,8 +1,9 @@
1
- export * from "./wallet-history";
1
+ export * from "./external-carriers";
2
2
  export * from "./label-layout";
3
3
  export * from "./manage-funding";
4
- export * from "./unit-settings";
5
- export * from "./payment-method-settings";
6
4
  export * from "./manage-warehouses";
7
- export * from "./list-carriers";
8
- export * from "./external-carriers";
5
+ export * from "./payment-method-settings";
6
+ export * from "./shipengine-carriers";
7
+ export * from "./unit-settings";
8
+ export * from "./vat-settings";
9
+ export * from "./wallet-history";
@@ -1,2 +1,7 @@
1
- export declare const Settings: () => import("@emotion/react/jsx-runtime").JSX.Element;
1
+ import { SE } from "@shipengine/alchemy";
2
+ export type LabelLayoutSettingsProps = {
3
+ accountSettings?: SE.AccountSettings;
4
+ updateAccountSettings: (newAccountSetting: Partial<SE.AccountSettings>) => Promise<void>;
5
+ };
6
+ export declare const Settings: ({ accountSettings, updateAccountSettings }: LabelLayoutSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
7
  export declare const Purchase: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
2
  export declare const useLabelLayout: () => {
3
3
  accountSettings: SE.AccountSettings | undefined;
4
- errors: SE.CodedError[] | null;
5
- loading: boolean;
6
- updateAccountSettings: (newLabelLayout: SE.LabelLayout) => Promise<void>;
4
+ isUpdatingLabelLayout: boolean;
5
+ updateAccountSettings: (newAccountSetting: Partial<SE.AccountSettings>) => Promise<void>;
6
+ updateLabelLayoutErrors: SE.CodedError[] | null;
7
7
  };
@@ -1 +1,2 @@
1
1
  export * from "./manage-warehouses";
2
+ export * from "./use-manage-warehouses";
@@ -1 +1,16 @@
1
- export declare const ManageWarehouses: () => import("@emotion/react/jsx-runtime").JSX.Element;
1
+ import { SE } from "@shipengine/alchemy";
2
+ export type UpdateWarehouseData = {
3
+ warehouseId: string;
4
+ } & Partial<SE.Warehouse>;
5
+ export type ManageWarehousesProps = {
6
+ createWarehouse: (params: Partial<SE.Warehouse>) => Promise<any>;
7
+ deleteWarehouse: (params: {
8
+ warehouseId: string;
9
+ }) => Promise<void>;
10
+ isLoadingWarehouses: boolean;
11
+ listWarehouseErrors: SE.CodedError[] | null;
12
+ refreshListWarehouses: () => void;
13
+ updateWarehouse: (params: UpdateWarehouseData) => Promise<void>;
14
+ warehouses?: SE.Warehouse[];
15
+ };
16
+ export declare const ManageWarehouses: ({ createWarehouse, deleteWarehouse, isLoadingWarehouses, listWarehouseErrors, refreshListWarehouses, updateWarehouse, warehouses, }: ManageWarehousesProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ export declare const useManageWarehouses: () => {
2
+ createWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<import("@shipengine/alchemy").Warehouse, import("@shipengine/alchemy").CodedError[], Partial<import("@shipengine/alchemy").Warehouse>, unknown>;
3
+ createWarehouseErrors: import("@shipengine/alchemy").CodedError[] | null;
4
+ deleteWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<void, import("@shipengine/alchemy").CodedError[], import("@shipengine/alchemy").DeleteWarehouseData, unknown>;
5
+ deleteWarehouseErrors: import("@shipengine/alchemy").CodedError[] | null;
6
+ isCreatingWarehouse: boolean;
7
+ isDeletingWarehouse: boolean;
8
+ isLoadingWarehouses: boolean;
9
+ isUpdatingWarehouse: boolean;
10
+ listWarehouseErrors: import("@shipengine/alchemy").CodedError[] | null;
11
+ refreshListWarehouses: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/alchemy").Warehouse[], import("@shipengine/alchemy").CodedError[]>>;
12
+ updateWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<void, import("@shipengine/alchemy").CodedError[], import("@shipengine/alchemy").UpdateWarehouseData, unknown>;
13
+ updateWarehouseErrors: import("@shipengine/alchemy").CodedError[] | null;
14
+ warehouses: import("@shipengine/alchemy").Warehouse[] | undefined;
15
+ };
@@ -0,0 +1,13 @@
1
+ import { CarrierConnection } from "@shipengine/alchemy";
2
+ export type CarrierMetadataHook = {
3
+ carrierCodes?: CarrierConnection["carrierCode"][];
4
+ countryCode?: string;
5
+ };
6
+ /**
7
+ * @internal
8
+ *
9
+ * # Carrier Metadata Hook
10
+ *
11
+ * @category Hooks
12
+ */
13
+ export declare const useCarrierMetadata: ({ carrierCodes, countryCode }: CarrierMetadataHook) => import("../../../types").CarrierMetadata[];
@@ -0,0 +1 @@
1
+ export * from "./shipengine-carriers";
@@ -0,0 +1 @@
1
+ export * from "./shipengine-carriers-row";
@@ -1,9 +1,9 @@
1
1
  import { CodedError } from "@shipengine/alchemy";
2
2
  import { AddCarrierFormPayload } from "../../../components/templates/add-carrier-form";
3
3
  import { ConnectedCarrierMetadata } from "../hooks/use-list-connected-carriers";
4
- export type ListCarriersRowProps = {
4
+ export type ShipEngineCarriersRowProps = {
5
5
  connectedCarrier: ConnectedCarrierMetadata;
6
6
  registerCarrier: (payload?: AddCarrierFormPayload) => Promise<void>;
7
7
  registerCarrierErrors?: CodedError[] | null;
8
8
  };
9
- export declare const ListCarriersRow: ({ connectedCarrier: { carrier, isConnected }, registerCarrier, registerCarrierErrors, }: ListCarriersRowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export declare const ShipEngineCarriersRow: ({ connectedCarrier: { carrier, isConnected }, registerCarrier, registerCarrierErrors, }: ShipEngineCarriersRowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export type ShipEngineCarriersFeatures = {
2
+ carriers: {
3
+ enabledCarriers: ("aramex_au_walleted" | "canada_post_walleted" | "canpar_walleted" | "couriersplease_walleted" | "sendle_walleted" | "dhl_express_walleted" | "dhl_express_worldwide" | "dpd_germany_walleted" | "dpdwallet" | "globalpost" | "hermes" | "purolator_walleted" | "stamps_com" | "ups_walleted" | "ups" | "yodel_walleted")[];
4
+ };
5
+ };
6
+ export type ShipEngineCarriersProps = {
7
+ features?: ShipEngineCarriersFeatures;
8
+ showFunds?: boolean;
9
+ };
10
+ export declare const ShipEngineCarriers: ({ features, showFunds, }: ShipEngineCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1 +1,2 @@
1
1
  export * from "./unit-settings";
2
+ export * from "./use-unit-settings";
@@ -1 +1,9 @@
1
- export declare const UnitSettings: () => import("@emotion/react/jsx-runtime").JSX.Element;
1
+ import { SE } from "@shipengine/alchemy";
2
+ export type UnitSettingsProps = {
3
+ accountSettings?: SE.AccountSettings;
4
+ getVatSettingsErrors?: SE.CodedError[] | null;
5
+ isLoading: boolean;
6
+ refreshAccountSettings: () => void;
7
+ updateAccountSettings: (payload: Partial<SE.AccountSettings>) => void;
8
+ };
9
+ export declare const UnitSettings: ({ accountSettings, getVatSettingsErrors: errors, isLoading, refreshAccountSettings, updateAccountSettings, }: UnitSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { SE } from "@shipengine/alchemy";
2
+ export declare const useUnitSettings: () => {
3
+ accountSettings: SE.AccountSettings | undefined;
4
+ getVatSettingsErrors: SE.CodedError[] | null;
5
+ isLoading: boolean;
6
+ isUpdatingUnitSettings: boolean;
7
+ refreshAccountSettings: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<SE.AccountSettings, SE.CodedError[]>>;
8
+ updateAccountSettings: (newAccountSetting: Partial<SE.AccountSettings>) => Promise<void>;
9
+ updateUnitSettingsErrors: SE.CodedError[] | null;
10
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./vat-settings";
2
+ export * from "./use-vat-settings";
@@ -0,0 +1,8 @@
1
+ export declare const useVatSettings: () => {
2
+ getVatSettingsErrors: import("@shipengine/alchemy").CodedError[] | null;
3
+ isLoading: boolean;
4
+ refreshVatSettings: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/alchemy").AccountSettings, import("@shipengine/alchemy").CodedError[]>>;
5
+ updateVatSettings: import("@tanstack/react-query").UseMutateAsyncFunction<import("@shipengine/alchemy").AccountSettings, import("@shipengine/alchemy").CodedError[], Partial<import("@shipengine/alchemy").AccountSettings>, unknown>;
6
+ updateVatSettingsErrors: import("@shipengine/alchemy").CodedError[] | null;
7
+ vatSettings: import("@shipengine/alchemy").AccountSettings | undefined;
8
+ };
@@ -0,0 +1,9 @@
1
+ export type VatSettingsFeatures = {
2
+ vatSettings: {
3
+ showVatSettings?: boolean;
4
+ };
5
+ };
6
+ export type VatSettingsProps = {
7
+ showRegisterLaterText?: boolean;
8
+ };
9
+ export declare const VatSettings: ({ showRegisterLaterText }: VatSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ export declare const styles: {
2
+ addVatSection: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
+ alignItems: "center";
4
+ display: "flex";
5
+ justifyContent: "space-between";
6
+ paddingBottom: number;
7
+ };
8
+ buttonIcon: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
9
+ marginLeft: number;
10
+ };
11
+ infoIcon: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
12
+ color: string;
13
+ };
14
+ registrationText: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
15
+ alignItems: "center";
16
+ display: "flex";
17
+ gap: number;
18
+ minHeight: number;
19
+ width: string;
20
+ };
21
+ tooltipContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
22
+ maxWidth: string;
23
+ };
24
+ vatText: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
25
+ alignItems: "center";
26
+ display: "flex";
27
+ gap: number;
28
+ };
29
+ };
@@ -1,9 +1,9 @@
1
1
  export * from "./options";
2
+ export * from "./use-address-validation";
3
+ export * from "./use-black-box-detection";
2
4
  export * from "./use-nested-form";
3
5
  export * from "./use-page-layout";
4
6
  export * from "./use-root-portal";
5
7
  export * from "./use-run-once-on-true";
6
- export * from "./use-toggle";
7
- export * from "./use-address-validation";
8
- export * from "./use-black-box-detection";
9
8
  export * from "./use-scrub-errors";
9
+ export * from "./use-toggle";