@shipengine/elements 2.9.1 → 2.10.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 (93) hide show
  1. package/actions-menu.js +5 -5
  2. package/carrier.js +1 -1
  3. package/components.js +1 -1
  4. package/elements.js +1 -1
  5. package/hooks.js +1 -1
  6. package/index.js +1 -1
  7. package/{warehouses.js → insurance.js} +1 -1
  8. package/package.json +3 -3
  9. package/shipment.js +1 -1
  10. package/src/components/add-funds-form/add-funds-form.d.ts +2 -1
  11. package/src/components/enable-insurance-banner/enable-insurance-banner.d.ts +8 -0
  12. package/src/components/enable-insurance-banner/enable-insurance-banner.styles.d.ts +37 -0
  13. package/src/components/enable-insurance-banner/index.d.ts +1 -0
  14. package/src/components/field/rate-card/insurance-popover/index.d.ts +1 -0
  15. package/src/components/field/rate-card/insurance-popover/insurance-popover.d.ts +11 -0
  16. package/src/components/field/rate-card/insurance-popover/insurance-popover.styles.d.ts +14 -0
  17. package/src/components/field/rate-card/rate-card.d.ts +1 -1
  18. package/src/components/field/rate-card/rate-card.styles.d.ts +1 -0
  19. package/src/components/fund-and-purchase/fund-and-purchase.d.ts +2 -1
  20. package/src/components/templates/index.d.ts +1 -0
  21. package/src/components/templates/label/label.d.ts +1 -0
  22. package/src/components/templates/rate-form/rate-form.styles.d.ts +3 -0
  23. package/src/components/templates/rate-form/rate-view.d.ts +36 -0
  24. package/src/components/templates/register-funding-source-insurance-form/index.d.ts +2 -0
  25. package/src/components/templates/register-funding-source-insurance-form/register-funding-source-insurance-form-shema.d.ts +10 -0
  26. package/src/components/templates/register-funding-source-insurance-form/register-funding-source-insurance-form.d.ts +15 -0
  27. package/src/components/templates/register-funding-source-insurance-form/register-funding-source-insurance-from.styles.d.ts +14 -0
  28. package/src/components/templates/shipment/shipment.d.ts +1 -1
  29. package/src/components/templates/shipment-form/sections/customs-forms/components/index.d.ts +1 -0
  30. package/src/components/templates/shipment-form/sections/customs-forms/components/windsor-framework/windsor-framework.d.ts +7 -0
  31. package/src/components/templates/shipment-form/sections/customs-forms/components/windsor-framework/windsor-framework.styles.d.ts +20 -0
  32. package/src/components/templates/shipment-form/sections/customs-forms/customs-forms.d.ts +2 -1
  33. package/src/components/templates/shipment-form/shipment-form.styles.d.ts +20 -0
  34. package/src/components/templates/shipment-form/shipment-schema.d.ts +201 -13
  35. package/src/elements/label-layout/label-layout-element.d.ts +59 -6
  36. package/src/elements/labels-grid/labels-grid.d.ts +67 -15
  37. package/src/elements/manage-carriers/manage-carriers.d.ts +59 -6
  38. package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +81 -27
  39. package/src/elements/manage-funding/manage-funding-element.d.ts +59 -6
  40. package/src/elements/manage-warehouses/manage-warehouses.d.ts +59 -6
  41. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +59 -6
  42. package/src/elements/purchase-label/purchase-label.d.ts +83 -22
  43. package/src/elements/shipment-summary/shipment-summary.d.ts +102 -27
  44. package/src/elements/shipments-grid/hooks/use-shipments-grid.d.ts +4 -0
  45. package/src/elements/shipments-grid/shipments-grid.d.ts +61 -13
  46. package/src/elements/theme-creator/theme-creator.d.ts +59 -6
  47. package/src/elements/transaction-history/transaction-history-element.d.ts +59 -6
  48. package/src/elements/unit-settings/unit-settings-element.d.ts +59 -6
  49. package/src/elements/vat-settings/vat-settings-element.d.ts +59 -6
  50. package/src/elements/void-label/void-label.d.ts +73 -57
  51. package/src/features/manage-carriers/hooks/use-list-funding-source-carriers.d.ts +3 -1
  52. package/src/features/manage-carriers/manage-insurance-provider-row/index.d.ts +1 -0
  53. package/src/features/manage-carriers/manage-insurance-provider-row/info-popover.d.ts +10 -0
  54. package/src/features/manage-carriers/manage-insurance-provider-row/manage-insurance-provider-row.d.ts +7 -0
  55. package/src/features/manage-carriers/manage-insurance-provider-row/manage-insurance-provider-row.styles.d.ts +37 -0
  56. package/src/hooks/index.d.ts +1 -0
  57. package/src/hooks/insurance/index.d.ts +2 -0
  58. package/src/hooks/insurance/use-get-funding-source-insurance-provider.d.ts +14 -0
  59. package/src/hooks/insurance/use-manage-funding-source-insurance.d.ts +10 -0
  60. package/src/hooks/options/index.d.ts +2 -0
  61. package/src/hooks/options/use-insurance-provider-options.d.ts +8 -3
  62. package/src/hooks/options/use-movement-indicator-options.d.ts +12 -0
  63. package/src/hooks/options/use-rate-options.d.ts +4 -1
  64. package/src/hooks/options/use-windsor-framework.d.ts +9 -0
  65. package/src/locales/en/index.d.ts +59 -6
  66. package/src/types/index.d.ts +1 -0
  67. package/src/types/insurance-metadata.d.ts +25 -0
  68. package/src/utilities/feature-flags/types.d.ts +8 -0
  69. package/src/utilities/shipengine/carrier.d.ts +16 -0
  70. package/src/utilities/shipengine/index.d.ts +1 -0
  71. package/src/utilities/shipengine/insurance.d.ts +17 -0
  72. package/src/workflows/account-settings/account-settings.d.ts +86 -7
  73. package/src/workflows/carrier-services/carrier-services.d.ts +59 -6
  74. package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +59 -6
  75. package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.d.ts +18 -18
  76. package/src/workflows/onboarding/components/confirmation-and-submission-step/use-confirmation-and-submission-step.d.ts +4 -2
  77. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +2 -1
  78. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +4 -3
  79. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +4 -0
  80. package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +3 -3
  81. package/src/workflows/onboarding/onboarding.d.ts +60 -7
  82. package/suspend-text.js +1 -1
  83. package/transaction-history-element.js +1 -1
  84. package/use-run-once-on-true.js +1 -0
  85. package/use-scrub-errors.js +1 -1
  86. package/use-toggle.js +1 -1
  87. package/use-unit-settings.js +1 -1
  88. package/usePager.js +1 -1
  89. package/utilities.js +1 -1
  90. package/vat.js +1 -1
  91. package/wallet-form.js +1 -1
  92. package/workflows.js +1 -1
  93. package/carrier-logo.js +0 -1
@@ -57,6 +57,7 @@ export declare const Element: ({ resources, ...props }: object & {
57
57
  showItems: string;
58
58
  void: string;
59
59
  download: string;
60
+ fileClaim: string;
60
61
  };
61
62
  fields: {
62
63
  dimensions: string;
@@ -72,6 +73,20 @@ export declare const Element: ({ resources, ...props }: object & {
72
73
  insuredValue: string;
73
74
  deliveryConfirmation: string;
74
75
  };
76
+ insurance: {
77
+ parcelguard: {
78
+ title: string;
79
+ description: string;
80
+ cta: {
81
+ title: string;
82
+ description: string;
83
+ };
84
+ registerSuccess: {
85
+ title: string;
86
+ description: string;
87
+ };
88
+ };
89
+ };
75
90
  highVolumeForms: string;
76
91
  multipleShippingServices: string;
77
92
  sections: {
@@ -114,12 +129,6 @@ export declare const Element: ({ resources, ...props }: object & {
114
129
  };
115
130
  "register-wallet": {
116
131
  sections: {
117
- setup: {
118
- title: string;
119
- subtitle: string;
120
- descriptionTitle: string;
121
- description: string;
122
- };
123
132
  billing: {
124
133
  title: string;
125
134
  cardSubTitle: string;
@@ -132,6 +141,17 @@ export declare const Element: ({ resources, ...props }: object & {
132
141
  title: string;
133
142
  subtitle: string;
134
143
  };
144
+ insuranceProviders: {
145
+ parcelguard: {
146
+ description: string;
147
+ terms: string;
148
+ termsLink: string;
149
+ popover: {
150
+ title: string;
151
+ description: string;
152
+ };
153
+ };
154
+ };
135
155
  notifications: {
136
156
  error: {
137
157
  title: string;
@@ -226,6 +246,7 @@ export declare const Element: ({ resources, ...props }: object & {
226
246
  };
227
247
  cta: {
228
248
  addPackageDetails: string;
249
+ parcelguard: string;
229
250
  };
230
251
  errorMessages: {
231
252
  customsItemsRequired: string;
@@ -296,6 +317,17 @@ export declare const Element: ({ resources, ...props }: object & {
296
317
  dhlExpressTermsAcknowledgement: string;
297
318
  noRateService: string;
298
319
  };
320
+ windsorFramework: {
321
+ movementIndicator: string;
322
+ movementIndicators: {
323
+ b2c: string;
324
+ c2b: string;
325
+ c2c: string;
326
+ b2b: string;
327
+ };
328
+ notAtRisk: string;
329
+ notAtRiskShipmentTootip: string;
330
+ };
299
331
  requirements: {
300
332
  noWarehouse: string;
301
333
  noCarrier: string;
@@ -326,6 +358,7 @@ export declare const Element: ({ resources, ...props }: object & {
326
358
  shipToAddressFormFields: string;
327
359
  sections: {
328
360
  customsForm: string;
361
+ windsorFramework: string;
329
362
  shipment: string;
330
363
  rate_one: string;
331
364
  rate_other: string;
@@ -350,6 +383,10 @@ export declare const Element: ({ resources, ...props }: object & {
350
383
  shipFromAddress: string;
351
384
  fundingAndCarrierConnection: string;
352
385
  };
386
+ termsAgreement: {
387
+ title: string;
388
+ subtitle: string;
389
+ };
353
390
  warehouse: {
354
391
  title: string;
355
392
  subtitle: string;
@@ -626,6 +663,7 @@ export declare const Element: ({ resources, ...props }: object & {
626
663
  continue: string;
627
664
  delete: string;
628
665
  edit: string;
666
+ enable: string;
629
667
  hide: string;
630
668
  parse: string;
631
669
  purchase: string;
@@ -786,6 +824,14 @@ export declare const Element: ({ resources, ...props }: object & {
786
824
  unknown: string;
787
825
  noRatesAvailable: string;
788
826
  refreshAndTryAgain: string;
827
+ windsorFramework: {
828
+ doNotConform: string;
829
+ pleaseAddTheFollowingTaxIds: string;
830
+ windsorFrameworkDefaultMessage: string;
831
+ shipperEori: string;
832
+ recipientEori: string;
833
+ ukims: string;
834
+ };
789
835
  };
790
836
  errorTypes: {
791
837
  accountStatus: string;
@@ -799,6 +845,7 @@ export declare const Element: ({ resources, ...props }: object & {
799
845
  system: string;
800
846
  unknown: string;
801
847
  validation: string;
848
+ windsorFramework: string;
802
849
  };
803
850
  grid: {
804
851
  "row-count_one": string;
@@ -825,8 +872,10 @@ export declare const Element: ({ resources, ...props }: object & {
825
872
  insuranceProviders: {
826
873
  carrier: string;
827
874
  none: string;
875
+ parcelguard: string;
828
876
  shipsurance: string;
829
877
  thirdParty: string;
878
+ x_cover: string;
830
879
  };
831
880
  loading: {
832
881
  accountSettings: string;
@@ -904,6 +953,9 @@ export declare const Element: ({ resources, ...props }: object & {
904
953
  platform: string;
905
954
  user: string;
906
955
  };
956
+ tags: {
957
+ new: string;
958
+ };
907
959
  terms: {
908
960
  fields: {
909
961
  agreement: string;
@@ -911,6 +963,7 @@ export declare const Element: ({ resources, ...props }: object & {
911
963
  agreeToTerms: string;
912
964
  carriersTitle: string;
913
965
  fundingSourceTitle: string;
966
+ insuranceProvidersTitle: string;
914
967
  shipEngineTitle: string;
915
968
  };
916
969
  weight: {
@@ -144,6 +144,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
144
144
  showItems: string;
145
145
  void: string;
146
146
  download: string;
147
+ fileClaim: string;
147
148
  };
148
149
  fields: {
149
150
  dimensions: string;
@@ -159,11 +160,21 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
159
160
  insuredValue: string;
160
161
  deliveryConfirmation: string;
161
162
  };
163
+ insurance: {
164
+ parcelguard: {
165
+ title: string;
166
+ description: string;
167
+ cta: {
168
+ title: string;
169
+ description: string;
170
+ };
171
+ registerSuccess: {
172
+ title: string;
173
+ description: string;
174
+ };
175
+ };
176
+ };
162
177
  highVolumeForms: string;
163
- /**
164
- * `onSuccess` is a callback function that will be invoked when the request to void a given
165
- * shipping label is successful.
166
- */
167
178
  multipleShippingServices: string;
168
179
  sections: {
169
180
  labels: string;
@@ -205,12 +216,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
205
216
  };
206
217
  "register-wallet": {
207
218
  sections: {
208
- setup: {
209
- title: string;
210
- subtitle: string;
211
- descriptionTitle: string;
212
- description: string;
213
- };
214
219
  billing: {
215
220
  title: string;
216
221
  cardSubTitle: string;
@@ -223,6 +228,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
223
228
  title: string;
224
229
  subtitle: string;
225
230
  };
231
+ insuranceProviders: {
232
+ parcelguard: {
233
+ description: string;
234
+ terms: string;
235
+ termsLink: string;
236
+ popover: {
237
+ title: string;
238
+ description: string;
239
+ };
240
+ };
241
+ };
226
242
  notifications: {
227
243
  error: {
228
244
  title: string;
@@ -233,10 +249,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
233
249
  poBox: {
234
250
  title: string;
235
251
  description: string;
236
- }; /**
237
- * `onSuccess` is a callback function that will be invoked when the request to void a given
238
- * shipping label is successful.
239
- */
252
+ };
240
253
  carrier: {
241
254
  title: string;
242
255
  confirmAddress: string;
@@ -320,6 +333,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
320
333
  };
321
334
  cta: {
322
335
  addPackageDetails: string;
336
+ parcelguard: string;
323
337
  };
324
338
  errorMessages: {
325
339
  customsItemsRequired: string;
@@ -390,41 +404,22 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
390
404
  dhlExpressTermsAcknowledgement: string;
391
405
  noRateService: string;
392
406
  };
407
+ windsorFramework: {
408
+ movementIndicator: string;
409
+ movementIndicators: {
410
+ b2c: string;
411
+ c2b: string;
412
+ c2c: string;
413
+ b2b: string;
414
+ };
415
+ notAtRisk: string;
416
+ notAtRiskShipmentTootip: string;
417
+ };
393
418
  requirements: {
394
419
  noWarehouse: string;
395
420
  noCarrier: string;
396
421
  noWarehouseOrCarrier: string;
397
- }; /**
398
- * # Registered Void Label Element
399
- *
400
- * - This is the registered `<VoidLabel />` element that will be used to render the
401
- * `<VoidLabel.Element />` component.
402
- *
403
- * @param ElementProps The props, callbacks, and resources necessary to render
404
- * the `<VoidLabel.Element />` component.
405
- *
406
- * @example
407
- * The `<Component />` is the source JSX that is rendered when you make use of the `VoidLabel`
408
- * Element directly. Here is a brief example of how you would use it within your application.
409
- * ```tsx
410
- * <VoidLabel.Element
411
- * labelId="se-1234567"
412
- * onComplete={() => console.log('onComplete')}
413
- * onSuccess={(_, { salesOrderIds: [salesOrderId] }) =>
414
- * console.log('sales order ID', salesOrderId)
415
- * }
416
- * onViewShipment={({ shipmentId }) => {
417
- * console.log('onViewShipment', shipmentId);
418
- * }}
419
- * />
420
- * ```
421
- *
422
- * <br />
423
- *
424
- * @see {@link VoidLabel.ComponentProps | The **props** that can be passed into the `<VoidLabel.Element />` component}
425
- *
426
- * @see {@link PurchaseLabel.Element | Go back to the frst step in the label purchase workflow `<PurchaseLabel.Element />`}
427
- */
422
+ };
428
423
  servicePoints: {
429
424
  searchLabel: string;
430
425
  noRatesForType: string;
@@ -450,6 +445,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
450
445
  shipToAddressFormFields: string;
451
446
  sections: {
452
447
  customsForm: string;
448
+ windsorFramework: string;
453
449
  shipment: string;
454
450
  rate_one: string;
455
451
  rate_other: string;
@@ -474,15 +470,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
474
470
  shipFromAddress: string;
475
471
  fundingAndCarrierConnection: string;
476
472
  };
473
+ termsAgreement: {
474
+ title: string;
475
+ subtitle: string;
476
+ };
477
477
  warehouse: {
478
478
  title: string;
479
- /**
480
- * # Void Label Component Props
481
- *
482
- * - These are the base props that will be passed into the `<VoidLabel />` component.
483
- *
484
- * @see {@link VoidLabel.Component | This prop types usage in the `<VoidLabel />` component}
485
- */
486
479
  subtitle: string;
487
480
  inlineMessage: string;
488
481
  };
@@ -493,7 +486,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
493
486
  };
494
487
  };
495
488
  success: {
496
- title: string;
489
+ title: string; /**
490
+ * `onSuccess` is a callback function that will be invoked when the request to void a given
491
+ * shipping label is successful.
492
+ */
497
493
  subtitle: string;
498
494
  action: string;
499
495
  };
@@ -761,6 +757,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
761
757
  continue: string;
762
758
  delete: string;
763
759
  edit: string;
760
+ enable: string;
764
761
  hide: string;
765
762
  parse: string;
766
763
  purchase: string;
@@ -771,6 +768,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
771
768
  tryAgain: string;
772
769
  };
773
770
  address: {
771
+ /**
772
+ * # Void Label Component Props
773
+ *
774
+ * - These are the base props that will be passed into the `<VoidLabel />` component.
775
+ *
776
+ * @see {@link VoidLabel.Component | This prop types usage in the `<VoidLabel />` component}
777
+ */
774
778
  fields: {
775
779
  name: string;
776
780
  company: string;
@@ -791,10 +795,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
791
795
  };
792
796
  parserFields: {
793
797
  fullAddress: string;
794
- }; /**
795
- * `onSuccess` is a callback function that will be invoked when the request to void a given
796
- * shipping label is successful.
797
- */
798
+ };
798
799
  paste: string;
799
800
  preference: {
800
801
  confirm: string;
@@ -924,6 +925,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
924
925
  unknown: string;
925
926
  noRatesAvailable: string;
926
927
  refreshAndTryAgain: string;
928
+ windsorFramework: {
929
+ doNotConform: string;
930
+ pleaseAddTheFollowingTaxIds: string;
931
+ windsorFrameworkDefaultMessage: string;
932
+ shipperEori: string;
933
+ recipientEori: string;
934
+ ukims: string;
935
+ };
927
936
  };
928
937
  errorTypes: {
929
938
  accountStatus: string;
@@ -937,6 +946,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
937
946
  system: string;
938
947
  unknown: string;
939
948
  validation: string;
949
+ windsorFramework: string;
940
950
  };
941
951
  grid: {
942
952
  "row-count_one": string;
@@ -963,8 +973,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
963
973
  insuranceProviders: {
964
974
  carrier: string;
965
975
  none: string;
976
+ parcelguard: string;
966
977
  shipsurance: string;
967
978
  thirdParty: string;
979
+ x_cover: string;
968
980
  };
969
981
  loading: {
970
982
  accountSettings: string;
@@ -1042,6 +1054,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
1042
1054
  platform: string;
1043
1055
  user: string;
1044
1056
  };
1057
+ tags: {
1058
+ new: string;
1059
+ };
1045
1060
  terms: {
1046
1061
  fields: {
1047
1062
  agreement: string;
@@ -1049,6 +1064,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
1049
1064
  agreeToTerms: string;
1050
1065
  carriersTitle: string;
1051
1066
  fundingSourceTitle: string;
1067
+ insuranceProvidersTitle: string;
1052
1068
  shipEngineTitle: string;
1053
1069
  };
1054
1070
  weight: {
@@ -1,4 +1,4 @@
1
- import { CarrierMetadataFromFundingSource } from "../../../types";
1
+ import { CarrierMetadataFromFundingSource, InsuranceProviderProfile } from "../../../types";
2
2
  export type ConnectedCarrierMetadata = {
3
3
  carrier: CarrierMetadataFromFundingSource;
4
4
  isConnected: boolean;
@@ -6,6 +6,8 @@ export type ConnectedCarrierMetadata = {
6
6
  export declare const useListFundingSourceCarriers: () => {
7
7
  data: ConnectedCarrierMetadata[] | undefined;
8
8
  error: import("@shipengine/react-api").CodedError[] | null;
9
+ insuranceProviderProfiles: InsuranceProviderProfile[];
9
10
  isLoading: boolean;
10
11
  refetch: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/react-api").Carrier[], import("@shipengine/react-api").CodedError[]>>;
12
+ refetchInsuranceProviderAcceptedTerms: <TPageData_1>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData_1>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/react-api").InsuranceFundingSourceAcceptedTermsResponse, import("@shipengine/react-api").CodedError[]>>;
11
13
  };
@@ -0,0 +1 @@
1
+ export * from "./manage-insurance-provider-row";
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { SE } from "@shipengine/js-api";
3
+ type InfoPopoverProps = {
4
+ iconRef: React.RefObject<HTMLElement>;
5
+ insuranceProvider: SE.FundingSourceInsuranceProvider;
6
+ isOpen: boolean;
7
+ toggleIsOpen: () => void;
8
+ };
9
+ export declare const InfoPopover: ({ insuranceProvider, iconRef, toggleIsOpen, isOpen, }: InfoPopoverProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ import { InsuranceProviderProfile } from "../../../types";
2
+ export * from "./manage-insurance-provider-row";
3
+ export type ManageInsuranceProviderRowProps = {
4
+ insuranceProviderProfile: InsuranceProviderProfile;
5
+ registerProvider: (p: InsuranceProviderProfile) => Promise<void>;
6
+ };
7
+ export declare const ManageInsuranceProviderRow: ({ registerProvider, insuranceProviderProfile, }: ManageInsuranceProviderRowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,37 @@
1
+ export declare const styles: {
2
+ container: {
3
+ display: "flex";
4
+ flexDirection: "column";
5
+ };
6
+ formContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
7
+ backgroundColor: string;
8
+ padding: number;
9
+ };
10
+ getConnectButton: (isConnected?: boolean) => (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
11
+ backgroundColor?: string | undefined;
12
+ borderRadius?: string | undefined;
13
+ color?: string | undefined;
14
+ padding: string;
15
+ };
16
+ link: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
17
+ "&:visited": {
18
+ color: string;
19
+ };
20
+ cursor: "pointer";
21
+ fontWeight: number;
22
+ };
23
+ logoContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
24
+ alignItems: "center";
25
+ columnGap: string;
26
+ display: "flex";
27
+ };
28
+ popover: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
29
+ fontSize: string;
30
+ };
31
+ rowContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
32
+ alignItems: "center";
33
+ display: "flex";
34
+ justifyContent: "space-between";
35
+ padding: string;
36
+ };
37
+ };
@@ -1,4 +1,5 @@
1
1
  export * from "./options";
2
+ export * from "./insurance";
2
3
  export * from "./use-address-validation";
3
4
  export * from "./use-black-box-detection";
4
5
  export * from "./use-get-service-name";
@@ -0,0 +1,2 @@
1
+ export * from "./use-get-funding-source-insurance-provider";
2
+ export * from "./use-manage-funding-source-insurance";
@@ -0,0 +1,14 @@
1
+ import { SE } from "@shipengine/react-api";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Get Funding Source Insurance Providers
6
+ *
7
+ * - description: This hook is used to get the enabled funding source insurance provider
8
+ *
9
+ * @example
10
+ */
11
+ export declare const useGetFundingSourceInsuranceProvider: () => {
12
+ fundingSourceInsuranceProvider: SE.FundingSourceInsuranceProvider | undefined;
13
+ refetchInsuranceAcceptedTerms: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<SE.InsuranceFundingSourceAcceptedTermsResponse, SE.CodedError[]>>;
14
+ };
@@ -0,0 +1,10 @@
1
+ import { SE } from "@shipengine/react-api";
2
+ import { InsuranceProviderProfile } from "../../types";
3
+ export declare const useManageFundingSourceInsurance: () => {
4
+ hasInsuranceToRegister: boolean;
5
+ insuranceAcceptedTerms: SE.Term[] | undefined;
6
+ insuranceProviderProfiles: InsuranceProviderProfile[] | undefined;
7
+ loading: boolean;
8
+ registerInsuranceProvider: () => Promise<void>;
9
+ registerInsuranceProviderSuccess: boolean;
10
+ };
@@ -5,6 +5,7 @@ export * from "./use-customs-non-delivery-options";
5
5
  export * from "./use-date-range-options";
6
6
  export * from "./use-expiration-month-options";
7
7
  export * from "./use-insurance-provider-options";
8
+ export * from "./use-movement-indicator-options";
8
9
  export * from "./use-package-options";
9
10
  export * from "./use-rate-options";
10
11
  export * from "./use-service-code-options";
@@ -13,3 +14,4 @@ export * from "./use-shipping-presets-options";
13
14
  export * from "./use-state-code-options";
14
15
  export * from "./use-warehouse-options";
15
16
  export * from "./use-service-points";
17
+ export * from "./use-windsor-framework";
@@ -1,5 +1,6 @@
1
1
  import { SE } from "@shipengine/react-api";
2
2
  interface InsuranceFeatures {
3
+ includeCarrierInsurance?: boolean;
3
4
  includeShipsuranceInsurance?: boolean;
4
5
  includeThirdPartyInsurance?: boolean;
5
6
  }
@@ -11,7 +12,11 @@ interface InsuranceFeatures {
11
12
  * @category Hooks
12
13
  */
13
14
  export declare const useInsuranceProviderOptions: (insuranceAccount?: SE.InsuranceAccount, features?: InsuranceFeatures) => {
14
- label: string;
15
- value: SE.InsuranceProviderType;
16
- }[];
15
+ fundingSourceInsuranceProvider: SE.FundingSourceInsuranceProvider | undefined;
16
+ insuranceProviderOptions: {
17
+ label: string;
18
+ value: SE.InsuranceProviderType;
19
+ }[];
20
+ refetchInsuranceAcceptedTerms: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<SE.InsuranceFundingSourceAcceptedTermsResponse, SE.CodedError[]>>;
21
+ };
17
22
  export {};
@@ -0,0 +1,12 @@
1
+ import { SE } from "@shipengine/react-api";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Customs Non-Delivery Options Hooks
6
+ *
7
+ * @category Hooks
8
+ */
9
+ export declare const useMovementIndicatorOptions: () => {
10
+ label: string;
11
+ value: SE.MovementIndicator;
12
+ }[];
@@ -16,6 +16,9 @@ export declare enum PudoType {
16
16
  */
17
17
  export type RateOption = Omit<SE.Rate, "warningMessages"> & {
18
18
  balance?: number;
19
+ insuranceClaim?: SE.LinkedResource;
20
+ insuranceProvider?: SE.InsuranceProviderType;
21
+ insuredValue?: SE.Money;
19
22
  messages: string[];
20
23
  pudoType?: PudoType;
21
24
  rateAcknowledgementMessage?: PreferredRateAcknowledgementMessage;
@@ -29,4 +32,4 @@ export type RateOption = Omit<SE.Rate, "warningMessages"> & {
29
32
  *
30
33
  * # Rate Options Hook
31
34
  */
32
- export declare const useRateOptions: (rates?: SE.Rate[], preferredRates?: PreferredRatesResponse, carriers?: SE.Carrier[], shipment?: SE.SalesOrderShipment, servicePoints?: SE.ServicePoint[], enableGlobalPostFiltering?: boolean, requireDhlTermsAcknowledgement?: boolean) => RateOption[];
35
+ export declare const useRateOptions: (rates?: SE.Rate[], preferredRates?: PreferredRatesResponse, carriers?: SE.Carrier[], shipment?: SE.SalesOrderShipment, servicePoints?: SE.ServicePoint[], enableGlobalPostFiltering?: boolean, requireDhlTermsAcknowledgement?: boolean, windsorFrameworkEnabled?: boolean) => RateOption[];
@@ -0,0 +1,9 @@
1
+ import { SE } from "@shipengine/react-api";
2
+ export declare const useWindsorFramework: (shipment?: SE.SalesOrderShipment, enabled?: boolean) => {
3
+ isWindsorFrameworkInvalid: {
4
+ isInvalid: boolean;
5
+ messages?: string[] | undefined;
6
+ };
7
+ movementIndicator: SE.MovementIndicator | undefined;
8
+ requiresWindsorFramework: boolean | undefined;
9
+ };