@shipengine/elements 1.7.0 → 1.9.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 (147) hide show
  1. package/address-8f8119f4.js +1 -0
  2. package/carrier-2abb4760.js +1 -0
  3. package/carrier-logo-1b6c767e.js +1 -0
  4. package/components.js +1 -0
  5. package/constants.js +1 -0
  6. package/elements.js +1 -0
  7. package/extensions.js +1 -0
  8. package/feature-flags-3e03717c.js +1 -0
  9. package/formatString-413ec7c7.js +1 -0
  10. package/hooks.js +1 -0
  11. package/index.js +1 -25135
  12. package/money-fbc4d0b3.js +1 -0
  13. package/package.json +48 -6
  14. package/payment-method-settings-element-595cc38d.js +1 -0
  15. package/phone-87dd7bd8.js +1 -0
  16. package/schemas.js +1 -0
  17. package/shipment-90d35708.js +1 -0
  18. package/src/components/address-preference-context/address-preference-context.d.ts +5 -2
  19. package/src/components/carrier-icon/carrier-icon.d.ts +9 -9
  20. package/src/components/carrier-logo/carrier-logo.d.ts +2 -1
  21. package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +2 -3
  22. package/src/components/display-term/display-term.d.ts +2 -2
  23. package/src/components/display-term/display-term.styles.d.ts +2 -0
  24. package/src/components/field/date-picker/date-picker.d.ts +1 -1
  25. package/src/components/field/rate-card/rate-card.d.ts +2 -1
  26. package/src/components/field/rate-card/rate-card.styles.d.ts +0 -1
  27. package/src/components/field/rate-select/rate-select.d.ts +6 -1
  28. package/src/components/fund-and-purchase/fund-and-purchase.d.ts +4 -1
  29. package/src/components/here-map/here-map.d.ts +16 -0
  30. package/src/components/here-map/here-map.styles.d.ts +23 -0
  31. package/src/components/index.d.ts +7 -5
  32. package/src/components/modal/modal.d.ts +2 -1
  33. package/src/components/rate-details/index.d.ts +1 -0
  34. package/src/components/rate-details/rate-details.d.ts +17 -0
  35. package/src/components/rate-details/rate-details.styles.d.ts +23 -0
  36. package/src/components/search-bar/index.d.ts +1 -0
  37. package/src/components/search-bar/search-bar.d.ts +8 -0
  38. package/src/components/service-point-display/operating-hours.d.ts +6 -0
  39. package/src/components/service-point-display/operating-hours.styles.d.ts +44 -0
  40. package/src/components/service-point-display/service-point-display.d.ts +6 -6
  41. package/src/components/service-point-display/service-point-display.styles.d.ts +13 -19
  42. package/src/components/service-points/service-points.d.ts +2 -1
  43. package/src/components/tabs/tabs.d.ts +5 -1
  44. package/src/components/tabs/tabs.styles.d.ts +3 -2
  45. package/src/components/templates/index.d.ts +1 -1
  46. package/src/components/templates/label/label.styles.d.ts +21 -1
  47. package/src/components/templates/product-form/product-form-schema.d.ts +12 -0
  48. package/src/components/templates/pudo-rate-tabs/index.d.ts +0 -1
  49. package/src/components/templates/pudo-rate-tabs/pudo-list-view/pudo-list-view.d.ts +5 -0
  50. package/src/components/templates/pudo-rate-tabs/pudo-map-view/pudo-map-view.d.ts +15 -0
  51. package/src/components/templates/pudo-rate-tabs/pudo-rate-tabs.d.ts +17 -15
  52. package/src/components/templates/rate-form/rate-form.d.ts +10 -2
  53. package/src/components/templates/register-funding-source-carrier-form/index.d.ts +2 -0
  54. package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.d.ts +13 -0
  55. package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.styles.d.ts +25 -0
  56. package/src/components/templates/{add-carrier-form/add-carrier-form-schema.d.ts → register-funding-source-carrier-form/register-funding-source-carrier-schema.d.ts} +42 -88
  57. package/src/components/templates/shipment/shipment.d.ts +2 -1
  58. package/src/components/templates/wallet-form/wallet-form.d.ts +3 -1
  59. package/src/components/templates/wallet-form/wallet-form.styles.d.ts +3 -0
  60. package/src/components/vat-form/index.d.ts +1 -0
  61. package/src/components/vat-form/vat-form-schema.d.ts +10 -0
  62. package/src/components/vat-form/vat-form.d.ts +6 -0
  63. package/src/components/vat-form/vat-form.styles.d.ts +9 -0
  64. package/src/elements/external-carriers/external-carriers.d.ts +198 -101
  65. package/src/elements/label-layout/label-layout-element.d.ts +150 -77
  66. package/src/elements/labels-grid/labels-grid.d.ts +150 -77
  67. package/src/elements/manage-funding/manage-funding-element.d.ts +150 -77
  68. package/src/elements/manage-warehouses/manage-warehouses.d.ts +150 -77
  69. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +150 -77
  70. package/src/elements/purchase-label/configure-shipment.d.ts +2 -1
  71. package/src/elements/purchase-label/hooks/use-rates-form.d.ts +5 -0
  72. package/src/elements/purchase-label/purchase-label.d.ts +170 -80
  73. package/src/elements/shipengine-carriers/shipengine-carriers.d.ts +173 -100
  74. package/src/elements/shipments-grid/shipments-grid.d.ts +150 -77
  75. package/src/elements/theme-creator/theme-creator.d.ts +150 -77
  76. package/src/elements/theme-creator/themeData/themeData.d.ts +0 -1
  77. package/src/elements/unit-settings/unit-settings-element.d.ts +150 -77
  78. package/src/elements/vat-settings/index.d.ts +1 -0
  79. package/src/elements/vat-settings/vat-settings-element.d.ts +864 -0
  80. package/src/elements/view-shipment/view-shipment.d.ts +181 -100
  81. package/src/elements/void-label/components/actions/actions.d.ts +3 -3
  82. package/src/elements/void-label/components/message/message.d.ts +3 -2
  83. package/src/elements/void-label/void-label.d.ts +183 -96
  84. package/src/elements/wallet-history/wallet-history-element.d.ts +150 -77
  85. package/src/factories/shipengine/label.d.ts +2 -0
  86. package/src/features/external-carriers/external-carriers.d.ts +2 -1
  87. package/src/features/index.d.ts +5 -4
  88. package/src/features/shipengine-carriers/hooks/index.d.ts +2 -1
  89. package/src/features/shipengine-carriers/hooks/use-carrier-metadata.d.ts +2 -13
  90. package/src/features/shipengine-carriers/hooks/{use-list-connected-carriers.d.ts → use-list-funding-source-carriers.d.ts} +3 -3
  91. package/src/features/shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts +9 -7
  92. package/src/features/unit-settings/unit-settings.d.ts +2 -2
  93. package/src/features/unit-settings/use-unit-settings.d.ts +1 -1
  94. package/src/features/vat-settings/index.d.ts +2 -0
  95. package/src/features/vat-settings/use-vat-settings.d.ts +8 -0
  96. package/src/features/vat-settings/vat-settings.d.ts +9 -0
  97. package/src/features/vat-settings/vat-settings.styles.d.ts +29 -0
  98. package/src/hooks/here-map/init.d.ts +6 -0
  99. package/src/hooks/here-map/use-here-map-ui.d.ts +10 -0
  100. package/src/hooks/here-map/use-here-map.d.ts +5 -0
  101. package/src/hooks/index.d.ts +3 -3
  102. package/src/hooks/options/use-service-points.d.ts +5 -3
  103. package/src/locales/en/index.d.ts +150 -77
  104. package/src/testing/test-utils.d.ts +1 -0
  105. package/src/types/carrier-metadata.d.ts +7 -11
  106. package/src/types/index.d.ts +0 -1
  107. package/src/utilities/date.d.ts +1 -2
  108. package/src/utilities/feature-flags.d.ts +12 -2
  109. package/src/utilities/shipengine/carrier.d.ts +8 -0
  110. package/src/utilities/shipengine/index.d.ts +1 -0
  111. package/src/utilities/shipengine/shipment.d.ts +11 -0
  112. package/src/workflows/account-settings/account-settings.d.ts +153 -82
  113. package/src/workflows/connect-carrier/connect-carrier.d.ts +150 -77
  114. package/src/workflows/manage-wallet-workflow/manage-wallet-workflow.d.ts +155 -81
  115. package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +3 -0
  116. package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form.d.ts +3 -4
  117. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +3 -1
  118. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +2 -3
  119. package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +2 -2
  120. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +3 -4
  121. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.d.ts +6 -7
  122. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +3 -4
  123. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +3 -0
  124. package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +5 -10
  125. package/src/workflows/onboarding/onboarding.d.ts +151 -78
  126. package/story-notes-ce2d8cca.js +1 -0
  127. package/suspend-text-c8c7b6b6.js +1 -0
  128. package/types.js +1 -0
  129. package/use-page-layout-93ffae78.js +1 -0
  130. package/use-scrub-errors-2c4db406.js +1 -0
  131. package/use-toggle-838d2ebd.js +1 -0
  132. package/utilities.js +1 -0
  133. package/validation-b941a548.js +1 -0
  134. package/vite.config.d.ts +1 -1
  135. package/wallet-form-3981400b.js +1 -0
  136. package/wallet-history-5b34c856.js +1 -0
  137. package/warehouse-form-c0b3ea78.js +34 -0
  138. package/warehouses-dfcdce23.js +1 -0
  139. package/workflows.js +1 -0
  140. package/zod-60def96c.js +1 -0
  141. package/index.cjs +0 -25349
  142. package/src/components/templates/add-carrier-form/add-carrier-form-test.d.ts +0 -1
  143. package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +0 -10
  144. package/src/components/templates/add-carrier-form/index.d.ts +0 -2
  145. package/src/components/templates/pudo-rate-tabs/service-points-search-bar/index.d.ts +0 -1
  146. package/src/components/templates/pudo-rate-tabs/service-points-search-bar/service-points-search-bar.d.ts +0 -6
  147. package/src/types/patch.d.ts +0 -13
@@ -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;
@@ -55,6 +56,7 @@ export declare const Element: ({ resources, ...props }: object & {
55
56
  schedulePickup: string;
56
57
  showItems: string;
57
58
  void: string;
59
+ download: string;
58
60
  };
59
61
  fields: {
60
62
  dimensions: string;
@@ -74,9 +76,42 @@ export declare const Element: ({ resources, ...props }: object & {
74
76
  multipleShippingServices: string;
75
77
  sections: {
76
78
  labels: string;
79
+ shipmentSummary: string;
77
80
  };
78
81
  noLabels: string;
79
82
  };
83
+ "vat-settings": {
84
+ addNew: string;
85
+ vatNumber: string;
86
+ vatRegistrationTooltip: string;
87
+ vatFormText: string;
88
+ vatFormRegisterLater: string;
89
+ vatNumberInputHint: string;
90
+ vatNumberInputPlaceholder: string;
91
+ verifiedVat: string;
92
+ vatFormErrors: {
93
+ invalidFieldValue: string;
94
+ verificationFailure: string;
95
+ forbidden: string;
96
+ connectionNotSupported: string;
97
+ genericTitle: string;
98
+ genericText: string;
99
+ };
100
+ };
101
+ "shipengine-carriers": {
102
+ title: string;
103
+ headers: {
104
+ accountCarriers: string;
105
+ carriers: string;
106
+ settings: string;
107
+ };
108
+ actions: {
109
+ status: {
110
+ connected: string;
111
+ notConnected: string;
112
+ };
113
+ };
114
+ };
80
115
  "register-wallet": {
81
116
  sections: {
82
117
  setup: {
@@ -92,6 +127,9 @@ export declare const Element: ({ resources, ...props }: object & {
92
127
  addressSubTitle: string;
93
128
  info: string;
94
129
  };
130
+ vatSettings: {
131
+ title: string;
132
+ };
95
133
  carriers: {
96
134
  title: string;
97
135
  subtitle: string;
@@ -128,8 +166,48 @@ export declare const Element: ({ resources, ...props }: object & {
128
166
  };
129
167
  };
130
168
  "register-carrier": {
131
- formTitle: string;
132
- agreeToTerms: string;
169
+ formTitle: {
170
+ default: string;
171
+ new: string;
172
+ edit: string;
173
+ };
174
+ notifications: {
175
+ error: {
176
+ title: string;
177
+ };
178
+ };
179
+ };
180
+ "rate-details": {
181
+ total: string;
182
+ subtotal: string;
183
+ registerVat: string;
184
+ concepts: {
185
+ confirmation: string;
186
+ uncategorized: string;
187
+ shipping: string;
188
+ insurance: string;
189
+ confirm: string;
190
+ discount: string;
191
+ fuel_charge: string;
192
+ additional_fees: string;
193
+ tariff: string;
194
+ tax: string;
195
+ delivery: string;
196
+ handling: string;
197
+ special_goods: string;
198
+ pickup: string;
199
+ location_fee: string;
200
+ oversize: string;
201
+ returns: string;
202
+ notifications: string;
203
+ tip: string;
204
+ duties_and_taxes: string;
205
+ brokerage_fee: string;
206
+ admin_fee: string;
207
+ adjustment: string;
208
+ auctane_service_fee: string;
209
+ product_price: string;
210
+ };
133
211
  };
134
212
  "purchase-label": {
135
213
  title: string;
@@ -218,6 +296,7 @@ export declare const Element: ({ resources, ...props }: object & {
218
296
  rateSavings: string;
219
297
  upsGroundSaverTermsAcknowledgement: string;
220
298
  dhlExpressTermsAcknowledgement: string;
299
+ noRateService: string;
221
300
  };
222
301
  requirements: {
223
302
  noWarehouse: string;
@@ -241,7 +320,10 @@ export declare const Element: ({ resources, ...props }: object & {
241
320
  today: string;
242
321
  viewMap: string;
243
322
  otherLocations: string;
244
- noServicePointsFound: string;
323
+ noServicePointsForService: string;
324
+ error: string;
325
+ paperless: string;
326
+ localTimeDisclaimer: string;
245
327
  };
246
328
  shipToAddressFormFields: string;
247
329
  sections: {
@@ -284,6 +366,8 @@ export declare const Element: ({ resources, ...props }: object & {
284
366
  action: string;
285
367
  };
286
368
  termsAndAgreementLinkText: {
369
+ shipEngineToS: string;
370
+ auctanePrivacyPolicy: string;
287
371
  aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
288
372
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
289
373
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
@@ -308,42 +392,6 @@ export declare const Element: ({ resources, ...props }: object & {
308
392
  UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
309
393
  };
310
394
  };
311
- "manage-defaults": {
312
- label: {
313
- title: string;
314
- letter: {
315
- title: string;
316
- description: string;
317
- };
318
- purchase: {
319
- title: string;
320
- description: string;
321
- };
322
- thermal: {
323
- title: string;
324
- description: string;
325
- };
326
- };
327
- status: {
328
- saving: string;
329
- saved: string;
330
- savingFailed: string;
331
- };
332
- units: {
333
- title: string;
334
- dimensions: {
335
- title: string;
336
- standard: string;
337
- metric: string;
338
- };
339
- weight: {
340
- title: string;
341
- standard: string;
342
- g: string;
343
- kg: string;
344
- };
345
- };
346
- };
347
395
  "manage-warehouses": {
348
396
  title: string;
349
397
  addNew: string;
@@ -411,6 +459,42 @@ export declare const Element: ({ resources, ...props }: object & {
411
459
  currentBalance: string;
412
460
  maximumBalanceAmount: string;
413
461
  };
462
+ "manage-defaults": {
463
+ label: {
464
+ title: string;
465
+ letter: {
466
+ title: string;
467
+ description: string;
468
+ };
469
+ purchase: {
470
+ title: string;
471
+ description: string;
472
+ };
473
+ thermal: {
474
+ title: string;
475
+ description: string;
476
+ };
477
+ };
478
+ status: {
479
+ saving: string;
480
+ saved: string;
481
+ savingFailed: string;
482
+ };
483
+ units: {
484
+ title: string;
485
+ dimensions: {
486
+ title: string;
487
+ standard: string;
488
+ metric: string;
489
+ };
490
+ weight: {
491
+ title: string;
492
+ standard: string;
493
+ g: string;
494
+ kg: string;
495
+ };
496
+ };
497
+ };
414
498
  "list-shipments": {
415
499
  title: string;
416
500
  headers: {
@@ -441,18 +525,31 @@ export declare const Element: ({ resources, ...props }: object & {
441
525
  };
442
526
  };
443
527
  };
444
- "shipengine-carriers": {
445
- title: string;
446
- headers: {
447
- accountCarriers: string;
448
- carriers: string;
449
- settings: string;
450
- };
528
+ "connect-carrier": {
451
529
  actions: {
452
- status: {
453
- connected: string;
454
- notConnected: string;
455
- };
530
+ cancel: string;
531
+ carrierSettings: string;
532
+ connectCarriers: string;
533
+ disconnect: string;
534
+ disconnectCarrier: string;
535
+ };
536
+ noCarriersDescription: string;
537
+ registrationForm: {
538
+ error: string;
539
+ title: string;
540
+ betaWarning: string;
541
+ };
542
+ search: string;
543
+ settingsModal: {
544
+ closeDialog: string;
545
+ header: string;
546
+ };
547
+ status: {
548
+ connected: string;
549
+ };
550
+ disconnectDropdown: {
551
+ toastTitle: string;
552
+ toastBody: string;
456
553
  };
457
554
  };
458
555
  common: {
@@ -639,6 +736,7 @@ export declare const Element: ({ resources, ...props }: object & {
639
736
  accountSettings: string;
640
737
  carrier: string;
641
738
  carriers: string;
739
+ carrierServices: string;
642
740
  connectCarrierForm: string;
643
741
  connectingCarriers: string;
644
742
  creatingFundingSource: string;
@@ -729,6 +827,7 @@ export declare const Element: ({ resources, ...props }: object & {
729
827
  gram: string;
730
828
  kilogram: string;
731
829
  };
830
+ ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
732
831
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
733
832
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
734
833
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
@@ -741,33 +840,6 @@ export declare const Element: ({ resources, ...props }: object & {
741
840
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
742
841
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
743
842
  };
744
- "connect-carrier": {
745
- actions: {
746
- cancel: string;
747
- carrierSettings: string;
748
- connectCarriers: string;
749
- disconnect: string;
750
- disconnectCarrier: string;
751
- };
752
- noCarriersDescription: string;
753
- registrationForm: {
754
- error: string;
755
- title: string;
756
- betaWarning: string;
757
- };
758
- search: string;
759
- settingsModal: {
760
- closeDialog: string;
761
- header: string;
762
- };
763
- status: {
764
- connected: string;
765
- };
766
- disconnectDropdown: {
767
- toastTitle: string;
768
- toastBody: string;
769
- };
770
- };
771
843
  "account-settings": {
772
844
  messages: {
773
845
  noFundingSources: string;
@@ -783,6 +855,7 @@ export declare const Element: ({ resources, ...props }: object & {
783
855
  externalCarriers: string;
784
856
  labelLayout: string;
785
857
  unitSettings: string;
858
+ vatSettings: string;
786
859
  };
787
860
  };
788
861
  };
@@ -2,7 +2,9 @@ import { Factory } from "fishery";
2
2
  import { SE } from "@shipengine/alchemy";
3
3
  export type LabelTransientParams = {
4
4
  carrier: SE.Carrier;
5
+ rateDetails?: SE.RateDetail[];
5
6
  shipment: SE.SalesOrderShipment;
7
+ shippingRuleId?: string;
6
8
  };
7
9
  /**
8
10
  * @category Factories
@@ -6,5 +6,6 @@ export type ExternalCarriersProps = {
6
6
  * new carriers may not be added by this element.
7
7
  */
8
8
  features?: ExternalCarriersFeatures;
9
+ isModalFullScreen?: boolean;
9
10
  };
10
- export declare const ExternalCarriers: ({ features }: ExternalCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const ExternalCarriers: ({ features, isModalFullScreen, }: ExternalCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -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";
5
+ export * from "./payment-method-settings";
7
6
  export * from "./shipengine-carriers";
8
- export * from "./external-carriers";
7
+ export * from "./unit-settings";
8
+ export * from "./vat-settings";
9
+ export * from "./wallet-history";
@@ -1,2 +1,3 @@
1
1
  export * from "./use-carrier-metadata";
2
- export * from "./use-list-connected-carriers";
2
+ export * from "./use-list-funding-source-carriers";
3
+ export * from "./use-carrier-metadata";
@@ -1,13 +1,2 @@
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[];
1
+ import { CarrierMetadata } from "../../../types";
2
+ export declare const useCarrierMetadata: () => CarrierMetadata;
@@ -1,9 +1,9 @@
1
- import { CarrierMetadata } from "../../../types";
1
+ import { CarrierMetadataFromFundingSource } from "../../../types";
2
2
  export type ConnectedCarrierMetadata = {
3
- carrier: CarrierMetadata;
3
+ carrier: CarrierMetadataFromFundingSource;
4
4
  isConnected: boolean;
5
5
  };
6
- export declare const useListConnectedCarriers: () => {
6
+ export declare const useListFundingSourceCarriers: () => {
7
7
  data: ConnectedCarrierMetadata[];
8
8
  error: import("@shipengine/alchemy").CodedError[] | null;
9
9
  isLoading: boolean;
@@ -1,9 +1,11 @@
1
- import { CodedError } from "@shipengine/alchemy";
2
- import { AddCarrierFormPayload } from "../../../components/templates/add-carrier-form";
3
- import { ConnectedCarrierMetadata } from "../hooks/use-list-connected-carriers";
1
+ import { SE } from "@shipengine/alchemy";
2
+ import { RegisterFundingSourceCarrierPayload } from "../../../components/templates";
3
+ import { ConnectedCarrierMetadata } from "../hooks/use-list-funding-source-carriers";
4
4
  export type ShipEngineCarriersRowProps = {
5
- connectedCarrier: ConnectedCarrierMetadata;
6
- registerCarrier: (payload?: AddCarrierFormPayload) => Promise<void>;
7
- registerCarrierErrors?: CodedError[] | null;
5
+ address?: SE.Address;
6
+ carrierToConnect?: string;
7
+ fundingSourceCarrier: ConnectedCarrierMetadata;
8
+ registerCarrier: (payload?: RegisterFundingSourceCarrierPayload) => Promise<void>;
9
+ setCarrierToConnect: (carrierCode: string) => void;
8
10
  };
9
- export declare const ShipEngineCarriersRow: ({ connectedCarrier: { carrier, isConnected }, registerCarrier, registerCarrierErrors, }: ShipEngineCarriersRowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const ShipEngineCarriersRow: ({ fundingSourceCarrier: { carrier, isConnected }, registerCarrier, address, carrierToConnect, setCarrierToConnect, }: ShipEngineCarriersRowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
2
  export type UnitSettingsProps = {
3
3
  accountSettings?: SE.AccountSettings;
4
- getAccountSettingsErrors?: SE.CodedError[] | null;
4
+ getVatSettingsErrors?: SE.CodedError[] | null;
5
5
  isLoading: boolean;
6
6
  refreshAccountSettings: () => void;
7
7
  updateAccountSettings: (payload: Partial<SE.AccountSettings>) => void;
8
8
  };
9
- export declare const UnitSettings: ({ accountSettings, getAccountSettingsErrors: errors, isLoading, refreshAccountSettings, updateAccountSettings, }: UnitSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export declare const UnitSettings: ({ accountSettings, getVatSettingsErrors: errors, isLoading, refreshAccountSettings, updateAccountSettings, }: UnitSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
2
  export declare const useUnitSettings: () => {
3
3
  accountSettings: SE.AccountSettings | undefined;
4
- getAccountSettingsErrors: SE.CodedError[] | null;
4
+ getVatSettingsErrors: SE.CodedError[] | null;
5
5
  isLoading: boolean;
6
6
  isUpdatingUnitSettings: boolean;
7
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[]>>;
@@ -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
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="heremaps" />
2
+ import { HereTokenResponse } from "@shipengine/alchemy";
3
+ export declare const initHerePlatform: (token: HereTokenResponse) => H.service.Platform;
4
+ export declare const initDefaultLayers: (platform: H.service.Platform) => Record<string, any>;
5
+ export declare const initInteractiveBehaviors: (map: H.Map) => H.mapevents.Behavior;
6
+ export declare const initDefaultUI: (map: H.Map, zoomControlPosition: H.ui.LayoutAlignment | undefined, defaultLayers: Record<string, any>, showZoomControl: boolean, showMapSettingsControl?: boolean, showScaleBarControl?: boolean, locale?: string) => H.ui.UI;
@@ -0,0 +1,10 @@
1
+ /// <reference types="heremaps" />
2
+ /// <reference types="react" />
3
+ export type MarkerData = {
4
+ coordinates: H.geo.IPoint;
5
+ data?: React.ReactNode;
6
+ icon: string | Element;
7
+ key?: string;
8
+ zIndex: number;
9
+ };
10
+ export declare const useHereMapUI: (defaultLayers: Record<string, any> | null, map: H.Map | null, mapOptions: H.Map.Options, markersRef: import("react").MutableRefObject<H.map.DomMarker[]>, showZoomControl: boolean, showMapSettingsControl: boolean, showScaleBarControl: boolean, zoomControlPosition?: H.ui.LayoutAlignment, markerData?: MarkerData[], onClickMarker?: ((markerData: MarkerData) => void) | undefined, onMapCenterChange?: () => void) => void;
@@ -0,0 +1,5 @@
1
+ /// <reference types="heremaps" />
2
+ export declare const useHereMap: (mapRef: React.RefObject<HTMLDivElement>, mapOptions: H.Map.Options, scriptsLoaded?: boolean) => {
3
+ defaultLayers: Record<string, any> | null;
4
+ hereMap: H.Map | null;
5
+ };
@@ -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";
@@ -1,8 +1,10 @@
1
- import { Rate, SE } from "@shipengine/alchemy";
1
+ import { ListServicePointsOptionAddress, ListServicePointsOptionAddressQuery, ListServicePointsOptionCoordinates, Rate, SE } from "@shipengine/alchemy";
2
+ export type ServicePointSearchQuery = ListServicePointsOptionAddress["address"] | ListServicePointsOptionAddressQuery["addressQuery"] | ListServicePointsOptionCoordinates;
2
3
  export declare const useServicePoints: (rates?: Rate[], shipment?: SE.SalesOrderShipment) => {
3
- fetchServicePointsByPostalCode: (postalCode: string) => void;
4
+ fetchServicePoints: (searchQuery?: ServicePointSearchQuery) => void;
4
5
  listServicePointsErrors: SE.CodedError[] | null;
5
6
  nestedServicePointErrors: SE.CodedError[] | SE.ServicePointCustomError[] | undefined;
6
- servicePoints: SE.ServicePoint[];
7
+ servicePointSearchQuery: ServicePointSearchQuery | undefined;
7
8
  servicePointsFetching: boolean;
9
+ servicePointsResponse: SE.ServicePointsListResponse | undefined;
8
10
  };