@shipengine/elements 0.26.18 → 0.28.0

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