@shipengine/elements 0.21.3 → 0.21.5

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 (133) hide show
  1. package/index.cjs +787 -1057
  2. package/index.js +694 -955
  3. package/package.json +2 -6
  4. package/src/components/error-fallback/error-fallback.d.ts +9 -0
  5. package/src/components/error-fallback/index.d.ts +1 -0
  6. package/src/components/field/money-input/hooks/use-utils.d.ts +1 -1
  7. package/src/components/field/money-input/money-input.d.ts +1 -1
  8. package/src/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
  9. package/src/components/field/rate-card/rate-card.d.ts +1 -2
  10. package/src/components/history/history-card/history-card.d.ts +1 -1
  11. package/src/components/index.d.ts +1 -1
  12. package/src/components/items-breakdown/items-breakdown.d.ts +1 -1
  13. package/src/components/label-layout/label-layout-purchase.d.ts +1 -1
  14. package/src/components/label-layout/label-layout-settings.d.ts +1 -1
  15. package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +1 -1
  16. package/src/components/templates/address-display/address-display.d.ts +1 -1
  17. package/src/components/templates/address-form/address-form.d.ts +1 -1
  18. package/src/components/templates/address-preference-display/address-preference-display.d.ts +1 -1
  19. package/src/components/templates/address-preference-select/address-preference-select.d.ts +1 -1
  20. package/src/components/templates/carrier-recovery-form/carrier-recovery-form.d.ts +1 -1
  21. package/src/components/templates/carrier-terms-form/carrier-terms-form.d.ts +1 -1
  22. package/src/components/templates/customs-item-form/customs-item-form.d.ts +1 -1
  23. package/src/components/templates/customs-items-display/customs-items-display.d.ts +1 -1
  24. package/src/components/templates/label/label.d.ts +1 -1
  25. package/src/components/templates/list-carriers/list-carriers.d.ts +2 -2
  26. package/src/components/templates/list-carriers-row/list-carriers-row.d.ts +2 -2
  27. package/src/components/templates/manage-warehouses/manage-warehouses.d.ts +1 -1
  28. package/src/components/templates/onboarding/onboarding.d.ts +1 -1
  29. package/src/components/templates/rate-form/rate-form.d.ts +1 -1
  30. package/src/components/templates/shipment/shipment.d.ts +1 -1
  31. package/src/components/templates/shipment-form/shipment-form.d.ts +1 -1
  32. package/src/components/templates/shipment-form/shipment-schema.d.ts +1 -1
  33. package/src/components/templates/suspend-sales-order/suspend-sales-order.d.ts +1 -1
  34. package/src/components/templates/suspend-shipment/suspend-shipment.d.ts +1 -1
  35. package/src/components/templates/void-label/void-label.d.ts +1 -1
  36. package/src/components/templates/wallet-form/edit-wallet-address-form.d.ts +1 -1
  37. package/src/components/templates/wallet-form/wallet-form.d.ts +1 -1
  38. package/src/components/templates/wallet-form/wallet-schema.d.ts +1 -1
  39. package/src/components/templates/warehouse-display/warehouse-display.d.ts +1 -1
  40. package/src/components/templates/warehouse-form/warehouse-form.d.ts +1 -1
  41. package/src/elements/{components/configure-shipment → configure-shipment}/configure-shipment.d.ts +3 -3
  42. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-address.d.ts +3 -3
  43. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-customs.d.ts +1 -1
  44. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-presets.d.ts +2 -2
  45. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-rates-form.d.ts +1 -1
  46. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-request-rates.d.ts +1 -1
  47. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-shipment-form.d.ts +5 -5
  48. package/src/elements/index.d.ts +6 -6
  49. package/src/elements/{components/list-carriers → list-carriers}/hooks/use-list-connected-carriers.d.ts +3 -3
  50. package/src/elements/list-carriers/index.d.ts +1 -0
  51. package/src/elements/list-carriers/list-carriers.d.ts +578 -0
  52. package/src/elements/manage-warehouses/index.d.ts +1 -0
  53. package/src/elements/manage-warehouses/manage-warehouses.d.ts +582 -0
  54. package/src/elements/onboarding/index.d.ts +1 -0
  55. package/src/elements/onboarding/onboarding.d.ts +581 -0
  56. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-configure-shipment.d.ts +1 -1
  57. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-import-sales-order.d.ts +2 -2
  58. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-load-shipment.d.ts +3 -3
  59. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-pending-shipment.d.ts +1 -1
  60. package/src/elements/purchase-label/index.d.ts +1 -0
  61. package/src/elements/{components/purchase-label → purchase-label}/purchase-label-by-sales-order.d.ts +1 -1
  62. package/src/elements/purchase-label/purchase-label.d.ts +584 -0
  63. package/src/elements/view-shipment/index.d.ts +1 -0
  64. package/src/elements/view-shipment/view-shipment.d.ts +590 -0
  65. package/src/elements/void-label/index.d.ts +1 -0
  66. package/src/elements/void-label/void-label.d.ts +585 -0
  67. package/src/factories/shipengine/address.d.ts +1 -1
  68. package/src/factories/shipengine/carrier.d.ts +1 -1
  69. package/src/factories/shipengine/label.d.ts +1 -1
  70. package/src/factories/shipengine/money.d.ts +1 -1
  71. package/src/factories/shipengine/order-source.d.ts +1 -1
  72. package/src/factories/shipengine/package.d.ts +1 -1
  73. package/src/factories/shipengine/resource.d.ts +1 -1
  74. package/src/factories/shipengine/sales-order.d.ts +1 -1
  75. package/src/factories/shipengine/service.d.ts +1 -1
  76. package/src/factories/shipengine/shipment.d.ts +1 -1
  77. package/src/factories/shipengine/wallet-history.d.ts +1 -1
  78. package/src/factories/shipengine/warehouse.d.ts +1 -1
  79. package/src/factories/shipengine/weight.d.ts +1 -1
  80. package/src/hooks/index.d.ts +0 -1
  81. package/src/hooks/options/use-confirmation-options.d.ts +1 -1
  82. package/src/hooks/options/use-customs-contents-options.d.ts +1 -1
  83. package/src/hooks/options/use-customs-non-delivery-options.d.ts +1 -1
  84. package/src/hooks/options/use-insurance-provider-options.d.ts +1 -1
  85. package/src/hooks/options/use-package-options.d.ts +1 -1
  86. package/src/hooks/options/use-rate-options.d.ts +1 -1
  87. package/src/hooks/options/use-service-code-options.d.ts +1 -1
  88. package/src/hooks/options/use-warehouse-options.d.ts +1 -1
  89. package/src/hooks/use-address-validation.d.ts +1 -1
  90. package/src/hooks/use-carrier-metadata.d.ts +1 -1
  91. package/src/hooks/use-elements.d.ts +1 -1
  92. package/src/hooks/use-scrub-errors.d.ts +1 -1
  93. package/src/index.d.ts +0 -2
  94. package/src/mocks/carriers/handlers.d.ts +1 -1
  95. package/src/mocks/warehouses/handlers.d.ts +1 -1
  96. package/src/schemas/shipengine/money.d.ts +1 -1
  97. package/src/types/carrier-metadata.d.ts +1 -1
  98. package/src/types/shipping-preset/shipping-preset.d.ts +1 -1
  99. package/src/utilities/money.d.ts +1 -1
  100. package/src/utilities/rates.d.ts +1 -1
  101. package/src/utilities/shipengine/address.d.ts +1 -1
  102. package/src/utilities/shipengine/dimensions.d.ts +1 -1
  103. package/src/utilities/shipengine/sales-order.d.ts +1 -1
  104. package/src/utilities/shipengine/shipment.d.ts +1 -1
  105. package/src/utilities/shipengine/weight.d.ts +1 -1
  106. package/src/components/error-boundary/error-boundary.d.ts +0 -31
  107. package/src/components/error-boundary/index.d.ts +0 -1
  108. package/src/elements/components/index.d.ts +0 -7
  109. package/src/elements/components/list-carriers/index.d.ts +0 -1
  110. package/src/elements/components/list-carriers/list-carriers.d.ts +0 -1
  111. package/src/elements/components/manage-warehouses/index.d.ts +0 -1
  112. package/src/elements/components/manage-warehouses/manage-warehouses.d.ts +0 -5
  113. package/src/elements/components/onboarding/index.d.ts +0 -1
  114. package/src/elements/components/onboarding/onboarding.d.ts +0 -4
  115. package/src/elements/components/purchase-label/index.d.ts +0 -3
  116. package/src/elements/components/purchase-label/purchase-label.d.ts +0 -6
  117. package/src/elements/components/shipment/index.d.ts +0 -1
  118. package/src/elements/components/shipment/shipment.d.ts +0 -13
  119. package/src/elements/components/void-label/index.d.ts +0 -1
  120. package/src/elements/components/void-label/void-label.d.ts +0 -8
  121. package/src/elements/list-carriers.d.ts +0 -1
  122. package/src/elements/manage-warehouses.d.ts +0 -1
  123. package/src/elements/onboarding.d.ts +0 -1
  124. package/src/elements/purchase-label.d.ts +0 -3
  125. package/src/elements/view-shipment.d.ts +0 -1
  126. package/src/elements/void-label.d.ts +0 -1
  127. package/src/providers/giger-provider.d.ts +0 -8
  128. package/src/providers/index.d.ts +0 -1
  129. package/src/register.d.ts +0 -16
  130. /package/src/elements/{components/configure-shipment → configure-shipment}/hooks/index.d.ts +0 -0
  131. /package/src/elements/{components/configure-shipment → configure-shipment}/index.d.ts +0 -0
  132. /package/src/elements/{components/purchase-label → purchase-label}/hooks/index.d.ts +0 -0
  133. /package/src/elements/{components/purchase-label → purchase-label}/purchase-label-by-shipment.d.ts +0 -0
@@ -0,0 +1,585 @@
1
+ /// <reference types="react" />
2
+ import { SE } from "@shipengine/alchemy";
3
+ export type ComponentProps = {
4
+ labelId?: string;
5
+ onComplete: (request: SE.VoidRequest, shipment: SE.SalesOrderShipment) => void;
6
+ onSuccess?: (label: SE.Label, shipment: SE.SalesOrderShipment) => void;
7
+ onViewShipment: (shipment: SE.SalesOrderShipment) => void;
8
+ };
9
+ export declare const Component: ({ labelId, onComplete, onSuccess, onViewShipment }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export declare const Element: ({ resources, ...props }: ComponentProps & {
11
+ resources?: {
12
+ en: {
13
+ "wallet-history": {
14
+ actions: {
15
+ downloadCsv: string;
16
+ chooseDate: string;
17
+ };
18
+ dateRange: string;
19
+ historyOptions: {
20
+ custom: string;
21
+ last30days: string;
22
+ thisMonth: string;
23
+ lastMonth: string;
24
+ };
25
+ };
26
+ "void-label": {
27
+ actions: {
28
+ complete: string;
29
+ confirmVoid: string;
30
+ viewShipment: string;
31
+ };
32
+ resultMessages: {
33
+ approved: string;
34
+ rejected: string;
35
+ };
36
+ refund_process: string;
37
+ refund_rules: string;
38
+ resultTitles: {
39
+ approved: string;
40
+ rejected: string;
41
+ };
42
+ sections: {
43
+ salesOrder: string;
44
+ };
45
+ };
46
+ "view-shipment": {
47
+ actions: {
48
+ buyAnotherLabel: string;
49
+ hideItems: string;
50
+ printForms: string;
51
+ printLabel: string;
52
+ schedulePickup: string;
53
+ showItems: string;
54
+ void: string;
55
+ };
56
+ fields: {
57
+ dimensions: string;
58
+ estimatedShipping: string;
59
+ items: string;
60
+ orderDate: string;
61
+ orderValue: string;
62
+ requestedShipping: string;
63
+ shipDate: string;
64
+ shipTo: string;
65
+ warehouse: string;
66
+ weight: string;
67
+ insuredValue: string;
68
+ deliveryConfirmation: string;
69
+ };
70
+ highVolumeForms: string;
71
+ multipleShippingServices: string;
72
+ sections: {
73
+ labels: string;
74
+ };
75
+ };
76
+ "register-wallet": {
77
+ sections: {
78
+ setup: {
79
+ title: string;
80
+ subtitle: string;
81
+ descriptionTitle: string;
82
+ description: string;
83
+ };
84
+ billing: {
85
+ title: string;
86
+ cardSubTitle: string;
87
+ addressSubTitle: string;
88
+ info: string;
89
+ };
90
+ carriers: {
91
+ title: string;
92
+ subtitle: string;
93
+ };
94
+ notifications: {
95
+ error: {
96
+ title: string;
97
+ };
98
+ info: {
99
+ title: string;
100
+ description: string;
101
+ };
102
+ poBox: {
103
+ title: string;
104
+ description: string;
105
+ };
106
+ carrier: {
107
+ title: string;
108
+ confirmAddress: string;
109
+ description: string;
110
+ };
111
+ };
112
+ };
113
+ settings: {
114
+ title: string;
115
+ billing: {
116
+ title: string;
117
+ subtitle: string;
118
+ };
119
+ };
120
+ };
121
+ "register-carrier": {
122
+ formTitle: string;
123
+ agreeToTerms: string;
124
+ };
125
+ "purchase-label": {
126
+ actions: {
127
+ calculateRates_one: string;
128
+ calculateRates_other: string;
129
+ hideItems: string;
130
+ purchaseLabel: string;
131
+ purchaseNow: string;
132
+ showItems: string;
133
+ showMoreRates: string;
134
+ showFewerRates: string;
135
+ saveRate: string;
136
+ };
137
+ balance: {
138
+ currentBalance: string;
139
+ insufficientBalanceCTA: string;
140
+ };
141
+ cta: {
142
+ addPackageDetails: string;
143
+ };
144
+ errorMessages: {
145
+ customsItemsRequired: string;
146
+ invalidAddress: string;
147
+ noRates: string;
148
+ salesOrderNotLoaded: string;
149
+ unsupportedAddress: string;
150
+ };
151
+ errorTypes: {
152
+ results: string;
153
+ };
154
+ fields: {
155
+ addOns: string;
156
+ contentDescription: string;
157
+ confirmation: string;
158
+ dimensions: {
159
+ length: string;
160
+ width: string;
161
+ height: string;
162
+ };
163
+ dimensionsGroup: string;
164
+ estimatedShipping: string;
165
+ insurance: string;
166
+ insuranceProvider: string;
167
+ insuredValue: string;
168
+ items: string;
169
+ orderDate: string;
170
+ orderValue: string;
171
+ packageCode: string;
172
+ requestedShipping: string;
173
+ shipDate: string;
174
+ service: string;
175
+ shipTo: string;
176
+ warehouse: string;
177
+ weight: {
178
+ whole: string;
179
+ fractional: string;
180
+ };
181
+ weightGroup: string;
182
+ };
183
+ hints: {
184
+ contentDescription: string;
185
+ };
186
+ loading: {
187
+ calculatingRates: string;
188
+ };
189
+ modes: {
190
+ browseRates: string;
191
+ selectService: string;
192
+ };
193
+ multipleShippingServices: string;
194
+ recommendedRates: {
195
+ recommended: string;
196
+ stayInformed: string;
197
+ };
198
+ schemaErrors: {
199
+ shipFromUnitedStatesOnly: string;
200
+ shipFromAddressRequired: string;
201
+ needToAcknowledge: string;
202
+ };
203
+ rates: {
204
+ uspsMediaMailAcknowledgement: string;
205
+ };
206
+ shipToAddressFormFields: string;
207
+ sections: {
208
+ customsForm: string;
209
+ shipment: string;
210
+ rate_one: string;
211
+ rate_other: string;
212
+ };
213
+ };
214
+ onboarding: {
215
+ inlineTitle: string;
216
+ landing: {
217
+ action: string;
218
+ title: string;
219
+ subtitle: string;
220
+ welcome: string;
221
+ messageLine1: string;
222
+ messageLine2: string;
223
+ };
224
+ steps: {
225
+ login: string;
226
+ carriers: string;
227
+ addresses: string;
228
+ payment: string;
229
+ };
230
+ warehouse: {
231
+ title: string;
232
+ subtitle: string;
233
+ inlineMessage: string;
234
+ };
235
+ success: {
236
+ title: string;
237
+ subtitle: string;
238
+ action: string;
239
+ };
240
+ };
241
+ "manage-defaults": {
242
+ units: {
243
+ title: string;
244
+ dimensions: {
245
+ title: string;
246
+ standard: string;
247
+ metric: string;
248
+ };
249
+ weight: {
250
+ title: string;
251
+ standard: string;
252
+ g: string;
253
+ kg: string;
254
+ };
255
+ };
256
+ label: {
257
+ letter: {
258
+ title: string;
259
+ description: string;
260
+ };
261
+ purchase: {
262
+ title: string;
263
+ description: string;
264
+ };
265
+ thermal: {
266
+ title: string;
267
+ description: string;
268
+ };
269
+ title: string;
270
+ };
271
+ };
272
+ "manage-warehouses": {
273
+ addNew: string;
274
+ editWarehouse: string;
275
+ contactName: string;
276
+ default: string;
277
+ isDefault: string;
278
+ locationName: string;
279
+ residentialAddress: string;
280
+ returnTo: string;
281
+ returnToAddressIsDifferent: string;
282
+ setDefault: string;
283
+ shipFrom: string;
284
+ };
285
+ "manage-funding": {
286
+ actions: {
287
+ addFunds: string;
288
+ addFundsAndPurchase: string;
289
+ addNow: string;
290
+ saveRule: string;
291
+ };
292
+ autoFunding: {
293
+ edit: string;
294
+ editSettings: string;
295
+ error: {
296
+ title: string;
297
+ message: string;
298
+ };
299
+ isEnabledCTA: string;
300
+ isEnabled: string;
301
+ isLoading: string;
302
+ lowBalancePurchaseThreshold: string;
303
+ maximumPurchasesPerDay: string;
304
+ purchaseAmount: string;
305
+ readSettings: string;
306
+ };
307
+ addFunds: {
308
+ custom: string;
309
+ error: {
310
+ title: string;
311
+ message: string;
312
+ };
313
+ isLoading: string;
314
+ labels: {
315
+ amount: string;
316
+ };
317
+ minimumPurchaseAmount: string;
318
+ other: string;
319
+ };
320
+ fundAndPurchase: {
321
+ finalBalance: string;
322
+ insufficientFunds: string;
323
+ insufficientFundsTitle: string;
324
+ negativeBalance: string;
325
+ negativeBalanceTitle: string;
326
+ newBalance: string;
327
+ };
328
+ errors: {
329
+ balanceUnknown: string;
330
+ unableToFindBalance: string;
331
+ };
332
+ currentBalance: string;
333
+ maximumBalanceAmount: string;
334
+ };
335
+ "list-carriers": {
336
+ headers: {
337
+ accountCarriers: string;
338
+ carriers: string;
339
+ settings: string;
340
+ };
341
+ actions: {
342
+ status: {
343
+ connected: string;
344
+ notConnected: string;
345
+ };
346
+ };
347
+ };
348
+ common: {
349
+ actions: {
350
+ add: string;
351
+ cancel: string;
352
+ close: string;
353
+ confirm: string;
354
+ continue: string;
355
+ delete: string;
356
+ edit: string;
357
+ hide: string;
358
+ parse: string;
359
+ purchase: string;
360
+ remove: string;
361
+ save: string;
362
+ skipForNow: string;
363
+ submit: string;
364
+ tryAgain: string;
365
+ };
366
+ address: {
367
+ fields: {
368
+ name: string;
369
+ company: string;
370
+ countryCode: string;
371
+ addressLine1: string;
372
+ addressLine2: string;
373
+ cityLocality: string;
374
+ stateProvince: string;
375
+ postalCode: string;
376
+ phone: string;
377
+ email: string;
378
+ addressResidentialIndicator: string;
379
+ };
380
+ noResults: string;
381
+ subFields: {
382
+ optional: string;
383
+ };
384
+ parserFields: {
385
+ fullAddress: string;
386
+ };
387
+ paste: string;
388
+ preference: {
389
+ confirm: string;
390
+ addressNotValidated: string;
391
+ modified: string;
392
+ title: string;
393
+ originalAddress: string;
394
+ matchedAddress: string;
395
+ unableToValidate: string;
396
+ use: {
397
+ originalAddress: string;
398
+ matchedAddress: string;
399
+ };
400
+ };
401
+ validation: {
402
+ notValidated: string;
403
+ validated: string;
404
+ };
405
+ };
406
+ billing: {
407
+ fields: {
408
+ differentBillingAddress: string;
409
+ name: string;
410
+ cardNumber: string;
411
+ expiration: string;
412
+ cvv: string;
413
+ cvvPlaceholder: string;
414
+ expirationPlaceholder: string;
415
+ cardNumberPlaceholder: string;
416
+ };
417
+ };
418
+ carriers: {
419
+ fields: {
420
+ agreement: string;
421
+ };
422
+ terms: {
423
+ agreeToTerms: string;
424
+ title: string;
425
+ };
426
+ };
427
+ charsetWarnings: {
428
+ name: {
429
+ message: string;
430
+ };
431
+ address: {
432
+ message: string;
433
+ title: string;
434
+ };
435
+ };
436
+ confirmationTypes: {
437
+ adultSignature: string;
438
+ delivery: string;
439
+ deliveryMailed: string;
440
+ directSignature: string;
441
+ none: string;
442
+ signature: string;
443
+ verbalConfirmation: string;
444
+ };
445
+ customs: {
446
+ addDeclaration: string;
447
+ contents: {
448
+ documents: string;
449
+ gift: string;
450
+ merchandise: string;
451
+ returnedGoods: string;
452
+ sample: string;
453
+ };
454
+ declarations: string;
455
+ each: string;
456
+ fields: {
457
+ contentsType: string;
458
+ countryOfOrigin: string;
459
+ description: string;
460
+ harmonizedTariffCode: string;
461
+ ifDeliveryFails: string;
462
+ quantity: string;
463
+ sku: string;
464
+ value: string;
465
+ valueQuantity: string;
466
+ };
467
+ nonDelivery: {
468
+ returnToSender: string;
469
+ treatAsAbandoned: string;
470
+ };
471
+ removeAllDeclarations: string;
472
+ total: string;
473
+ };
474
+ errorMessages: {
475
+ invalidNameOrCompany: string;
476
+ noWarehouses: string;
477
+ unableToLoad: {
478
+ autoFundingSettings: string;
479
+ carrier: string;
480
+ carriers: string;
481
+ salesOrder: string;
482
+ shipment: string;
483
+ warehouses: string;
484
+ };
485
+ unknown: string;
486
+ noRatesAvailable: string;
487
+ };
488
+ errorTypes: {
489
+ accountStatus: string;
490
+ businessRules: string;
491
+ integrations: string;
492
+ purchase: string;
493
+ rateInvalid: string;
494
+ security: string;
495
+ system: string;
496
+ unknown: string;
497
+ validation: string;
498
+ };
499
+ insuranceProviders: {
500
+ carrier: string;
501
+ none: string;
502
+ shipsurance: string;
503
+ thirdParty: string;
504
+ };
505
+ loading: {
506
+ carrier: string;
507
+ carriers: string;
508
+ data: string;
509
+ importingSalesOrder: string;
510
+ onboarding: string;
511
+ salesOrder: string;
512
+ shipment: string;
513
+ warehouses: string;
514
+ };
515
+ months: {
516
+ january: string;
517
+ february: string;
518
+ march: string;
519
+ april: string;
520
+ may: string;
521
+ june: string;
522
+ july: string;
523
+ august: string;
524
+ september: string;
525
+ october: string;
526
+ november: string;
527
+ december: string;
528
+ };
529
+ packageCategories: {
530
+ browseRates: string;
531
+ myCustomPackages: string;
532
+ };
533
+ packageCodes: {
534
+ package: string;
535
+ };
536
+ schema: {
537
+ optionalLabel: string;
538
+ };
539
+ schemaErrors: {
540
+ notAValidPhoneNumber: string;
541
+ mustAgreeToTerms: string;
542
+ group: {
543
+ allMeasurementsOrNone: string;
544
+ };
545
+ invalidAddressName: string;
546
+ invalidAddressPoBox: string;
547
+ invalidCreditCardType: string;
548
+ invalidExpiration: string;
549
+ invalidPostalCode: string;
550
+ invalidStateProvince: string;
551
+ invalidString: string;
552
+ nonnegative: string;
553
+ nonnegativeList: string;
554
+ positive: string;
555
+ positiveList: string;
556
+ required: string;
557
+ requiredList: string;
558
+ tooFewCharacters: string;
559
+ tooManyCharacters: string;
560
+ };
561
+ shippingPresets: {
562
+ apply: string;
563
+ platform: string;
564
+ user: string;
565
+ };
566
+ weight: {
567
+ ounces: string;
568
+ pounds_one: string;
569
+ pounds_other: string;
570
+ };
571
+ units: {
572
+ in: string;
573
+ lbs: string;
574
+ oz: string;
575
+ };
576
+ "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
577
+ "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
578
+ QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnN1ZmZpY2llbnQgYWNjb3VudCBiYWxhbmNlLiBBY2NvdW50IGV4Y2VwdGlvbiBFeGNlcHRpb24gd2l0aCBjb2RlIDB4MDA1NjAxMDE7IG1vZHVsZSA4NiwgY2F0ZWdvcnkgMSwgaXRlbSAx: string;
579
+ "QWRkcmVzcyBub3QgZm91bmQ=": string;
580
+ QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBVUFMgd2VpZ2h0IGxpbWl0IHBlciBwYWNrYWdlIGlzIDE1MCBsYnMu: string;
581
+ };
582
+ };
583
+ } | undefined;
584
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
585
+ export type ElementProps = React.ComponentProps<typeof Element>;
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  import { Templates } from "../../components";
4
4
  export type AddressTransientParams = {
5
5
  isInternational?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  /**
4
4
  * @category Factories
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  export type LabelTransientParams = {
4
4
  carrier: SE.Carrier;
5
5
  shipment: SE.SalesOrderShipment;
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  export type MoneyTransientParams = {
4
4
  isInternational?: boolean;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  export declare const randomOrderSourceCode: () => SE.OrderSourceCode;
4
4
  /**
5
5
  * @category Factories
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  export type PackageTransientParams = {
4
4
  noDimensions?: boolean;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  /**
4
4
  * @category Factories
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  import { MoneyTransientParams } from "./money";
4
4
  export declare const randomPaymentStatus: () => SE.PaymentStatus;
5
5
  export declare const randomFulfillmentStatus: () => SE.FulfillmentStatus;
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  export type ServiceTransientParams = {
4
4
  carrier?: SE.Carrier;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  import { MoneyTransientParams } from "./money";
4
4
  export declare const randomDeliveryConfirmation: () => SE.ConfirmationType;
5
5
  export declare const randomInsuranceProvider: (allowNone?: boolean) => SE.InsuranceProviderType;
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/react-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  /**
4
4
  * Wallet Transaction Factory
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  /**
4
4
  * @category Factories
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  export declare const randomWeightUnit: () => SE.WeightUnit;
4
4
  /**
5
5
  * @category Factories