@shipengine/elements 0.27.0 → 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.
@@ -1,607 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { Templates } from "../../components";
3
2
  export type ComponentProps = {
4
3
  onWarehouseAddressValidation?: (originAddressPreference: Templates.AddressPreference, returnAddressPreference?: Templates.AddressPreference) => Promise<void> | void;
5
4
  };
6
5
  export declare const Component: ({ onWarehouseAddressValidation }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
7
- export declare const Element: ({ resources, ...props }: ComponentProps & {
8
- resources?: {
9
- en: {
10
- "wallet-history": {
11
- actions: {
12
- downloadCsv: string;
13
- chooseDate: string;
14
- };
15
- dateRange: string;
16
- historyOptions: {
17
- custom: string;
18
- last30days: string;
19
- thisMonth: string;
20
- lastMonth: string;
21
- };
22
- };
23
- "void-label": {
24
- title: string;
25
- actions: {
26
- complete: string;
27
- confirmVoid: string;
28
- viewShipment: string;
29
- };
30
- errorMessages: {
31
- labelIdRequired: string;
32
- };
33
- resultMessages: {
34
- approved: string;
35
- rejected: string;
36
- };
37
- refund_process: string;
38
- refund_rules: string;
39
- resultTitles: {
40
- approved: string;
41
- rejected: string;
42
- };
43
- voidedOn: string;
44
- };
45
- "view-shipment": {
46
- title: string;
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
- subtitleCard: string;
118
- subtitleBilling: string;
119
- };
120
- };
121
- };
122
- "register-carrier": {
123
- formTitle: string;
124
- agreeToTerms: string;
125
- };
126
- "purchase-label": {
127
- title: string;
128
- actions: {
129
- calculateRates_one: string;
130
- calculateRates_other: string;
131
- hideItems: string;
132
- purchaseLabel: string;
133
- purchaseNow: string;
134
- showItems: string;
135
- showMoreRates: string;
136
- showFewerRates: string;
137
- saveRate: string;
138
- };
139
- balance: {
140
- currentBalance: string;
141
- insufficientBalanceCTA: string;
142
- };
143
- cta: {
144
- addPackageDetails: string;
145
- };
146
- errorMessages: {
147
- customsItemsRequired: string;
148
- invalidAddress: string;
149
- noRates: string;
150
- salesOrderNotLoaded: string;
151
- unsupportedAddress: string;
152
- saveRateFailedMessage: string;
153
- saveRateFailedTitle: string;
154
- };
155
- errorTypes: {
156
- results: string;
157
- };
158
- fields: {
159
- "requires-additional-handling": string;
160
- addOns: string;
161
- contentDescription: string;
162
- confirmation: string;
163
- dimensions: {
164
- length: string;
165
- width: string;
166
- height: string;
167
- };
168
- dimensionsGroup: string;
169
- estimatedShipping: string;
170
- insurance: string;
171
- insuranceProvider: string;
172
- insuredValue: string;
173
- items: string;
174
- orderDate: string;
175
- orderValue: string;
176
- packageCode: string;
177
- requestedShipping: string;
178
- shipDate: string;
179
- service: string;
180
- shipTo: string;
181
- addShipToAddress: string;
182
- warehouse: string;
183
- weight: {
184
- whole: string;
185
- fractional: string;
186
- };
187
- weightGroup: string;
188
- today: string;
189
- };
190
- hints: {
191
- contentDescription: string;
192
- };
193
- loading: {
194
- calculatingRates: string;
195
- };
196
- modes: {
197
- browseRates: string;
198
- selectService: string;
199
- };
200
- multipleShippingServices: string;
201
- schemaErrors: {
202
- shipFromUnitedStatesOnly: string;
203
- shipFromAddressRequired: string;
204
- needToAcknowledge: string;
205
- };
206
- rates: {
207
- uspsMediaMailAcknowledgement: string;
208
- uspsFirstClassMailAcknowledgement_leof: string;
209
- };
210
- shipToAddressFormFields: string;
211
- sections: {
212
- customsForm: string;
213
- shipment: string;
214
- rate_one: string;
215
- rate_other: string;
216
- };
217
- };
218
- "payment-method": {
219
- title: string;
220
- };
221
- onboarding: {
222
- title: string;
223
- inlineTitle: string;
224
- landing: {
225
- action: string;
226
- title: string;
227
- subtitle: string;
228
- welcome: string;
229
- messageLine1: string;
230
- messageLine2: string;
231
- };
232
- steps: {
233
- login: string;
234
- carriers: string;
235
- addresses: string;
236
- payment: string;
237
- };
238
- warehouse: {
239
- title: string;
240
- subtitle: string;
241
- inlineMessage: string;
242
- };
243
- success: {
244
- title: string;
245
- subtitle: string;
246
- action: string;
247
- };
248
- };
249
- "manage-defaults": {
250
- label: {
251
- title: string;
252
- letter: {
253
- title: string;
254
- description: string;
255
- };
256
- purchase: {
257
- title: string;
258
- description: string;
259
- };
260
- thermal: {
261
- title: string;
262
- description: string;
263
- };
264
- };
265
- status: {
266
- saving: string;
267
- saved: string;
268
- savingFailed: string;
269
- };
270
- units: {
271
- title: string;
272
- dimensions: {
273
- title: string;
274
- standard: string;
275
- metric: string;
276
- };
277
- weight: {
278
- title: string;
279
- standard: string;
280
- g: string;
281
- kg: string;
282
- };
283
- };
284
- };
285
- "manage-warehouses": {
286
- title: string;
287
- addNew: string;
288
- editWarehouse: string;
289
- contactName: string;
290
- default: string;
291
- isDefault: string;
292
- locationName: string;
293
- residentialAddress: string;
294
- returnTo: string;
295
- returnToAddressIsDifferent: string;
296
- setDefault: string;
297
- shipFrom: string;
298
- };
299
- "manage-funding": {
300
- actions: {
301
- addFunds: string;
302
- addFundsAndPurchase: string;
303
- addNow: string;
304
- saveRule: string;
305
- };
306
- autoFunding: {
307
- edit: string;
308
- editSettings: string;
309
- error: {
310
- title: string;
311
- message: string;
312
- };
313
- isEnabledCTA: string;
314
- isEnabled: string;
315
- isLoading: string;
316
- lowBalancePurchaseThreshold: string;
317
- maximumPurchasesPerDay: string;
318
- purchaseAmount: string;
319
- readSettings: string;
320
- };
321
- addFunds: {
322
- custom: string;
323
- error: {
324
- title: string;
325
- message: string;
326
- };
327
- isLoading: string;
328
- labels: {
329
- amount: string;
330
- };
331
- minimumPurchaseAmount: string;
332
- other: string;
333
- };
334
- fundAndPurchase: {
335
- finalBalance: string;
336
- insufficientFunds: string;
337
- insufficientFundsTitle: string;
338
- negativeBalance: string;
339
- negativeBalanceTitle: string;
340
- newBalance: string;
341
- };
342
- errors: {
343
- balanceUnknown: string;
344
- unableToFindBalance: string;
345
- };
346
- currentBalance: string;
347
- maximumBalanceAmount: string;
348
- };
349
- "list-carriers": {
350
- title: string;
351
- headers: {
352
- accountCarriers: string;
353
- carriers: string;
354
- settings: string;
355
- };
356
- actions: {
357
- status: {
358
- connected: string;
359
- notConnected: string;
360
- };
361
- };
362
- };
363
- common: {
364
- actions: {
365
- add: string;
366
- cancel: string;
367
- close: string;
368
- confirm: string;
369
- continue: string;
370
- delete: string;
371
- edit: string;
372
- hide: string;
373
- parse: string;
374
- purchase: string;
375
- remove: string;
376
- save: string;
377
- skipForNow: string;
378
- submit: string;
379
- tryAgain: string;
380
- };
381
- address: {
382
- fields: {
383
- name: string;
384
- company: string;
385
- countryCode: string;
386
- addressLine1: string;
387
- addressLine2: string;
388
- cityLocality: string;
389
- stateProvince: string;
390
- postalCode: string;
391
- phone: string;
392
- email: string;
393
- addressResidentialIndicator: string;
394
- };
395
- noResults: string;
396
- subFields: {
397
- optional: string;
398
- };
399
- parserFields: {
400
- fullAddress: string;
401
- };
402
- paste: string;
403
- preference: {
404
- confirm: string;
405
- addressNotValidated: string;
406
- modified: string;
407
- title: string;
408
- originalAddress: string;
409
- matchedAddress: string;
410
- unableToValidate: string;
411
- use: {
412
- originalAddress: string;
413
- matchedAddress: string;
414
- };
415
- };
416
- validation: {
417
- notValidated: string;
418
- validated: string;
419
- };
420
- };
421
- billing: {
422
- fields: {
423
- differentBillingAddress: string;
424
- name: string;
425
- cardNumber: string;
426
- expiration: string;
427
- cvv: string;
428
- cvvPlaceholder: string;
429
- expirationPlaceholder: string;
430
- cardNumberPlaceholder: string;
431
- };
432
- };
433
- carriers: {
434
- fields: {
435
- agreement: string;
436
- };
437
- terms: {
438
- agreeToTerms: string;
439
- title: string;
440
- };
441
- };
442
- charsetWarnings: {
443
- name: {
444
- message: string;
445
- };
446
- address: {
447
- message: string;
448
- title: string;
449
- };
450
- };
451
- confirmationTypes: {
452
- adultSignature: string;
453
- delivery: string;
454
- deliveryMailed: string;
455
- directSignature: string;
456
- none: string;
457
- signature: string;
458
- verbalConfirmation: string;
459
- };
460
- customs: {
461
- addDeclaration: string;
462
- contents: {
463
- documents: string;
464
- gift: string;
465
- merchandise: string;
466
- returnedGoods: string;
467
- sample: string;
468
- };
469
- declarations: string;
470
- each: string;
471
- fields: {
472
- contentsType: string;
473
- countryOfOrigin: string;
474
- description: string;
475
- harmonizedTariffCode: string;
476
- ifDeliveryFails: string;
477
- quantity: string;
478
- sku: string;
479
- value: string;
480
- valueQuantity: string;
481
- };
482
- nonDelivery: {
483
- returnToSender: string;
484
- treatAsAbandoned: string;
485
- };
486
- removeAllDeclarations: string;
487
- total: string;
488
- };
489
- errorMessages: {
490
- invalidNameOrCompany: string;
491
- noWarehouses: string;
492
- unableToLoad: {
493
- accountSettings: string;
494
- autoFundingSettings: string;
495
- carrier: string;
496
- carriers: string;
497
- label: string;
498
- salesOrder: string;
499
- shipment: string;
500
- warehouses: string;
501
- };
502
- unknown: string;
503
- noRatesAvailable: string;
504
- };
505
- errorTypes: {
506
- accountStatus: string;
507
- businessRules: string;
508
- integrations: string;
509
- purchase: string;
510
- rateInvalid: string;
511
- security: string;
512
- system: string;
513
- unknown: string;
514
- validation: string;
515
- };
516
- insuranceProviders: {
517
- carrier: string;
518
- none: string;
519
- shipsurance: string;
520
- thirdParty: string;
521
- };
522
- loading: {
523
- accountSettings: string;
524
- carrier: string;
525
- carriers: string;
526
- data: string;
527
- importingSalesOrder: string;
528
- label: string;
529
- onboarding: string;
530
- salesOrder: string;
531
- shipment: string;
532
- warehouses: string;
533
- };
534
- months: {
535
- january: string;
536
- february: string;
537
- march: string;
538
- april: string;
539
- may: string;
540
- june: string;
541
- july: string;
542
- august: string;
543
- september: string;
544
- october: string;
545
- november: string;
546
- december: string;
547
- };
548
- packageCategories: {
549
- browseRates: string;
550
- myCustomPackages: string;
551
- };
552
- packageCodes: {
553
- package: string;
554
- };
555
- "powered-by": string;
556
- schema: {
557
- optionalLabel: string;
558
- };
559
- schemaErrors: {
560
- notAValidPhoneNumber: string;
561
- mustAgreeToTerms: string;
562
- group: {
563
- allMeasurementsOrNone: string;
564
- };
565
- invalidAddressName: string;
566
- invalidAddressPoBox: string;
567
- invalidCreditCardType: string;
568
- invalidExpiration: string;
569
- invalidPostalCode: string;
570
- invalidStateProvince: string;
571
- invalidString: string;
572
- nonnegative: string;
573
- nonnegativeList: string;
574
- positive: string;
575
- positiveList: string;
576
- required: string;
577
- requiredList: string;
578
- tooFewCharacters: string;
579
- tooManyCharacters: string;
580
- };
581
- shippingPresets: {
582
- apply: string;
583
- platform: string;
584
- user: string;
585
- };
586
- weight: {
587
- ounces: string;
588
- pounds_one: string;
589
- pounds_other: string;
590
- };
591
- units: {
592
- in: string;
593
- lbs: string;
594
- oz: string;
595
- };
596
- "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
597
- "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
598
- QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnN1ZmZpY2llbnQgYWNjb3VudCBiYWxhbmNlLiBBY2NvdW50IGV4Y2VwdGlvbiBFeGNlcHRpb24gd2l0aCBjb2RlIDB4MDA1NjAxMDE7IG1vZHVsZSA4NiwgY2F0ZWdvcnkgMSwgaXRlbSAx: string;
599
- "QWRkcmVzcyBub3QgZm91bmQ=": string;
600
- QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBVUFMgd2VpZ2h0IGxpbWl0IHBlciBwYWNrYWdlIGlzIDE1MCBsYnMu: string;
601
- UGxlYXNlIGFkZCBhIFN0YW1wcy5jb20gYWNjb3VudCB0byBTaGlwRW5naW5lIGluIG9yZGVyIHRvIGNyZWF0ZSBzaGlwcGluZyBsYWJlbHMu: string;
602
- QSBzaGlwcGluZyBlcnJvciBvY2N1cnJlZDogTWlzc2luZyBvciBpbnZhbGlkIHNoaXBwZXIgbnVtYmVy: string;
603
- };
604
- };
605
- } | undefined;
606
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
607
- export type ElementProps = React.ComponentProps<typeof Element>;
@@ -601,6 +601,21 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
601
601
  QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBVUFMgd2VpZ2h0IGxpbWl0IHBlciBwYWNrYWdlIGlzIDE1MCBsYnMu: string;
602
602
  UGxlYXNlIGFkZCBhIFN0YW1wcy5jb20gYWNjb3VudCB0byBTaGlwRW5naW5lIGluIG9yZGVyIHRvIGNyZWF0ZSBzaGlwcGluZyBsYWJlbHMu: string;
603
603
  QSBzaGlwcGluZyBlcnJvciBvY2N1cnJlZDogTWlzc2luZyBvciBpbnZhbGlkIHNoaXBwZXIgbnVtYmVy: string;
604
+ "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
605
+ "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
606
+ };
607
+ "account-settings": {
608
+ title: string;
609
+ sections: {
610
+ accountBalance: string;
611
+ paymentMethod: string;
612
+ transactionHistory: string;
613
+ adjustmentHistory: string;
614
+ warehouses: string;
615
+ carriers: string;
616
+ labelLayout: string;
617
+ unitSettings: string;
618
+ };
604
619
  };
605
620
  };
606
621
  } | undefined;
@@ -620,6 +620,21 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
620
620
  QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBVUFMgd2VpZ2h0IGxpbWl0IHBlciBwYWNrYWdlIGlzIDE1MCBsYnMu: string;
621
621
  UGxlYXNlIGFkZCBhIFN0YW1wcy5jb20gYWNjb3VudCB0byBTaGlwRW5naW5lIGluIG9yZGVyIHRvIGNyZWF0ZSBzaGlwcGluZyBsYWJlbHMu: string;
622
622
  QSBzaGlwcGluZyBlcnJvciBvY2N1cnJlZDogTWlzc2luZyBvciBpbnZhbGlkIHNoaXBwZXIgbnVtYmVy: string;
623
+ "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
624
+ "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
625
+ };
626
+ "account-settings": {
627
+ title: string;
628
+ sections: {
629
+ accountBalance: string;
630
+ paymentMethod: string;
631
+ transactionHistory: string;
632
+ adjustmentHistory: string;
633
+ warehouses: string;
634
+ carriers: string;
635
+ labelLayout: string;
636
+ unitSettings: string;
637
+ };
623
638
  };
624
639
  };
625
640
  } | undefined;
@@ -605,6 +605,21 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
605
605
  QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBVUFMgd2VpZ2h0IGxpbWl0IHBlciBwYWNrYWdlIGlzIDE1MCBsYnMu: string;
606
606
  UGxlYXNlIGFkZCBhIFN0YW1wcy5jb20gYWNjb3VudCB0byBTaGlwRW5naW5lIGluIG9yZGVyIHRvIGNyZWF0ZSBzaGlwcGluZyBsYWJlbHMu: string;
607
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
+ };
608
623
  };
609
624
  };
610
625
  } | undefined;
@@ -608,6 +608,21 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
608
608
  QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBVUFMgd2VpZ2h0IGxpbWl0IHBlciBwYWNrYWdlIGlzIDE1MCBsYnMu: string;
609
609
  UGxlYXNlIGFkZCBhIFN0YW1wcy5jb20gYWNjb3VudCB0byBTaGlwRW5naW5lIGluIG9yZGVyIHRvIGNyZWF0ZSBzaGlwcGluZyBsYWJlbHMu: string;
610
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
+ };
611
626
  };
612
627
  };
613
628
  } | undefined;