@shipengine/elements 1.9.0 → 2.1.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 (288) hide show
  1. package/README.md +0 -4
  2. package/actions-menu.js +34 -0
  3. package/assertions.js +1 -0
  4. package/carrier-logo.js +1 -0
  5. package/components.js +1 -1
  6. package/constants.js +1 -1
  7. package/elements.js +1 -1
  8. package/extensions.js +1 -1
  9. package/formatString.js +1 -0
  10. package/hooks.js +1 -1
  11. package/index.js +1 -1
  12. package/money.js +1 -0
  13. package/package.json +20 -46
  14. package/pudo.js +1 -0
  15. package/schemas.js +1 -1
  16. package/src/components/actions-menu/actions-menu.d.ts +19 -0
  17. package/src/components/actions-menu/index.d.ts +1 -0
  18. package/src/components/add-funds-form/add-funds-form.d.ts +1 -1
  19. package/src/components/auto-funding-form/auto-funding-form.d.ts +1 -1
  20. package/src/components/carrier-balance/carrier-balance.d.ts +1 -1
  21. package/src/components/collapsible-panel/collapsible-panel.d.ts +1 -1
  22. package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +10 -13
  23. package/src/components/display-term/display-term.d.ts +1 -1
  24. package/src/components/edit-billing-form/edit-billing-form.d.ts +1 -1
  25. package/src/components/field/checkbox-input/checkbox-input.d.ts +1 -0
  26. package/src/components/field/money-input/money-input.d.ts +1 -1
  27. package/src/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
  28. package/src/components/field/rate-card/rate-card.d.ts +1 -1
  29. package/src/components/field/rate-card/rate-card.styles.d.ts +0 -1
  30. package/src/components/field/rate-select/rate-select.d.ts +1 -1
  31. package/src/components/field/select/index.d.ts +1 -0
  32. package/src/components/field/select/select-with-categories.d.ts +20 -0
  33. package/src/components/field/select/select.d.ts +5 -10
  34. package/src/components/fund-and-purchase/fund-and-purchase.d.ts +1 -1
  35. package/src/components/history/history-card/history-card.d.ts +1 -1
  36. package/src/components/index.d.ts +1 -0
  37. package/src/components/items-breakdown/items-breakdown.d.ts +1 -1
  38. package/src/components/pager/pager.d.ts +1 -1
  39. package/src/components/rate-details/rate-details.d.ts +1 -1
  40. package/src/components/save-status/save-status.d.ts +1 -1
  41. package/src/components/service-points/service-points.d.ts +1 -1
  42. package/src/components/templates/address-display/address-display.d.ts +1 -1
  43. package/src/components/templates/address-preference-display/address-preference-display.d.ts +1 -1
  44. package/src/components/templates/address-preference-select/address-preference-select.d.ts +1 -1
  45. package/src/components/templates/connect-external-carrier-form/connect-external-carrier-form.d.ts +12 -0
  46. package/src/components/templates/connect-external-carrier-form/index.d.ts +1 -0
  47. package/src/components/templates/connected-carrier-list/connected-carrier-list.d.ts +4 -1
  48. package/src/components/templates/connected-carrier-list/connected-carrier-list.styles.d.ts +0 -10
  49. package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.d.ts +4 -1
  50. package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.styles.d.ts +19 -12
  51. package/src/components/templates/index.d.ts +1 -1
  52. package/src/components/templates/label/label.d.ts +1 -1
  53. package/src/components/templates/product-form/product-form.d.ts +1 -1
  54. package/src/components/templates/products-display/products-display.d.ts +1 -1
  55. package/src/components/templates/products-display/products-display.styles.d.ts +12 -4
  56. package/src/components/templates/rate-form/rate-form.d.ts +3 -4
  57. package/src/components/templates/shipment/shipment.d.ts +3 -11
  58. package/src/components/templates/shipment-form/sections/customs-forms/components/index.d.ts +2 -0
  59. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/index.d.ts +3 -0
  60. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/schema.d.ts +38 -0
  61. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/values.d.ts +12 -0
  62. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/index.d.ts +2 -0
  63. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-id-form.d.ts +17 -0
  64. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-id-list.d.ts +12 -0
  65. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-ids.d.ts +8 -0
  66. package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-ids.styles.d.ts +70 -0
  67. package/src/components/templates/shipment-form/sections/customs-forms/customs-forms.d.ts +10 -0
  68. package/src/components/templates/shipment-form/sections/customs-forms/index.d.ts +1 -0
  69. package/src/components/templates/shipment-form/sections/index.d.ts +1 -0
  70. package/src/components/templates/shipment-form/shipment-form.d.ts +4 -10
  71. package/src/components/templates/shipment-form/shipment-form.styles.d.ts +9 -0
  72. package/src/components/templates/shipment-form/shipment-schema.d.ts +1 -1
  73. package/src/components/templates/suspend-sales-order/suspend-sales-order.d.ts +1 -1
  74. package/src/components/templates/suspend-shipment/suspend-shipment.d.ts +1 -1
  75. package/src/components/templates/wallet-form/edit-wallet-address-form.d.ts +1 -1
  76. package/src/components/templates/wallet-form/wallet-form.d.ts +2 -4
  77. package/src/components/templates/wallet-form/wallet-schema.d.ts +1 -1
  78. package/src/components/wallet-card/wallet-card.d.ts +1 -1
  79. package/src/components/warehouse-form/warehouse-form.d.ts +11 -4
  80. package/src/components/zero-state/zero-state.d.ts +6 -0
  81. package/src/components/zero-state/zero-state.styles.d.ts +14 -0
  82. package/src/create-element/create-element.d.ts +10 -0
  83. package/src/create-element/element/element.d.ts +16 -0
  84. package/src/create-element/element/hooks/index.d.ts +1 -0
  85. package/src/create-element/element/hooks/use-i18n.d.ts +12 -0
  86. package/src/create-element/element/index.d.ts +3 -0
  87. package/src/create-element/element/utils/get-emotion-cache.d.ts +2 -0
  88. package/src/create-element/element/utils/index.d.ts +1 -0
  89. package/src/create-element/error-boundary/error-boundary.d.ts +21 -0
  90. package/src/create-element/error-boundary/index.d.ts +1 -0
  91. package/src/create-element/index.d.ts +1 -0
  92. package/src/elements/index.d.ts +5 -4
  93. package/src/elements/label-layout/label-layout-element.d.ts +44 -2
  94. package/src/elements/labels-grid/labels-grid.d.ts +45 -3
  95. package/src/elements/manage-carriers/index.d.ts +1 -0
  96. package/src/elements/{shipengine-carriers/shipengine-carriers.d.ts → manage-carriers/manage-carriers.d.ts} +99 -52
  97. package/src/elements/manage-external-carriers/index.d.ts +1 -0
  98. package/src/elements/{external-carriers/external-carriers.d.ts → manage-external-carriers/manage-external-carriers.d.ts} +74 -63
  99. package/src/elements/manage-funding/manage-funding-element.d.ts +47 -4
  100. package/src/elements/manage-warehouses/manage-warehouses.d.ts +62 -3
  101. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +47 -4
  102. package/src/elements/purchase-label/configure-shipment.d.ts +4 -27
  103. package/src/elements/purchase-label/hooks/use-address.d.ts +1 -1
  104. package/src/elements/purchase-label/hooks/use-configure-shipment.d.ts +1 -1
  105. package/src/elements/purchase-label/hooks/use-customs.d.ts +2 -1
  106. package/src/elements/purchase-label/hooks/use-import-sales-order.d.ts +2 -2
  107. package/src/elements/purchase-label/hooks/use-load-shipment.d.ts +3 -3
  108. package/src/elements/purchase-label/hooks/use-pending-shipment.d.ts +1 -1
  109. package/src/elements/purchase-label/hooks/use-presets.d.ts +1 -1
  110. package/src/elements/purchase-label/hooks/use-rates-form.d.ts +1 -1
  111. package/src/elements/purchase-label/hooks/use-rates-with-cache.d.ts +1 -1
  112. package/src/elements/purchase-label/hooks/use-request-preferred-rates.d.ts +1 -1
  113. package/src/elements/purchase-label/hooks/use-request-rates.d.ts +1 -1
  114. package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +2 -1
  115. package/src/elements/purchase-label/purchase-label-by-sales-order.d.ts +1 -1
  116. package/src/elements/purchase-label/purchase-label-by-shipment.d.ts +1 -1
  117. package/src/elements/purchase-label/purchase-label.d.ts +85 -44
  118. package/src/elements/shipment-summary/index.d.ts +1 -0
  119. package/src/elements/{view-shipment/view-shipment.d.ts → shipment-summary/shipment-summary.d.ts} +89 -60
  120. package/src/elements/shipments-grid/shipments-grid.d.ts +45 -3
  121. package/src/elements/theme-creator/theme-creator.d.ts +44 -2
  122. package/src/elements/transaction-history/index.d.ts +1 -0
  123. package/src/elements/{wallet-history/wallet-history-element.d.ts → transaction-history/transaction-history-element.d.ts} +44 -2
  124. package/src/elements/unit-settings/unit-settings-element.d.ts +44 -2
  125. package/src/elements/vat-settings/vat-settings-element.d.ts +44 -2
  126. package/src/elements/void-label/components/actions/actions.d.ts +1 -1
  127. package/src/elements/void-label/components/message/message.d.ts +1 -1
  128. package/src/elements/void-label/void-label.d.ts +83 -52
  129. package/src/elements-provider/elements-context-provider.d.ts +44 -0
  130. package/src/elements-provider/elements-provider.d.ts +12 -0
  131. package/src/elements-provider/elements-test-provider.d.ts +3 -0
  132. package/src/elements-provider/hooks/index.d.ts +1 -0
  133. package/src/elements-provider/hooks/use-load-icons.d.ts +7 -0
  134. package/src/elements-provider/index.d.ts +3 -0
  135. package/src/factories/shipengine/address.d.ts +1 -1
  136. package/src/factories/shipengine/carrier.d.ts +1 -1
  137. package/src/factories/shipengine/index.d.ts +1 -1
  138. package/src/factories/shipengine/label.d.ts +1 -1
  139. package/src/factories/shipengine/money.d.ts +1 -1
  140. package/src/factories/shipengine/order-source.d.ts +1 -1
  141. package/src/factories/shipengine/package.d.ts +1 -1
  142. package/src/factories/shipengine/resource.d.ts +1 -1
  143. package/src/factories/shipengine/sales-order.d.ts +1 -1
  144. package/src/factories/shipengine/service-point.d.ts +1 -1
  145. package/src/factories/shipengine/service.d.ts +1 -1
  146. package/src/factories/shipengine/shipment.d.ts +1 -1
  147. package/src/factories/shipengine/{wallet-history.d.ts → transaction-history.d.ts} +1 -1
  148. package/src/factories/shipengine/warehouse.d.ts +1 -1
  149. package/src/factories/shipengine/weight.d.ts +1 -1
  150. package/src/features/index.d.ts +3 -3
  151. package/src/features/label-layout/label-layout.d.ts +1 -1
  152. package/src/features/label-layout/use-label-layout.d.ts +1 -1
  153. package/src/features/{shipengine-carriers → manage-carriers}/hooks/use-list-funding-source-carriers.d.ts +3 -3
  154. package/src/features/manage-carriers/index.d.ts +1 -0
  155. package/src/features/manage-carriers/manage-carriers-row/index.d.ts +1 -0
  156. package/src/features/{shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts → manage-carriers/manage-carriers-row/manage-carriers-row.d.ts} +3 -3
  157. package/src/features/manage-carriers/manage-carriers.d.ts +5 -0
  158. package/src/features/manage-external-carriers/index.d.ts +2 -0
  159. package/src/features/manage-external-carriers/manage-external-carriers.d.ts +14 -0
  160. package/src/features/manage-external-carriers/use-manage-external-carriers.d.ts +12 -0
  161. package/src/features/manage-funding/manage-funding.d.ts +4 -1
  162. package/src/features/manage-warehouses/manage-warehouses.d.ts +1 -1
  163. package/src/features/manage-warehouses/use-manage-warehouses.d.ts +9 -9
  164. package/src/features/manage-warehouses/warehouse-display/warehouse-display.d.ts +1 -1
  165. package/src/features/payment-method-settings/payment-method-settings.d.ts +4 -1
  166. package/src/features/transaction-history/index.d.ts +1 -0
  167. package/src/features/transaction-history/transaction-history.d.ts +6 -0
  168. package/src/features/unit-settings/unit-settings.d.ts +1 -1
  169. package/src/features/unit-settings/use-unit-settings.d.ts +1 -1
  170. package/src/features/vat-settings/use-vat-settings.d.ts +5 -5
  171. package/src/hooks/here-map/init.d.ts +1 -1
  172. package/src/hooks/options/use-confirmation-options.d.ts +1 -1
  173. package/src/hooks/options/use-customs-contents-options.d.ts +1 -1
  174. package/src/hooks/options/use-customs-non-delivery-options.d.ts +1 -1
  175. package/src/hooks/options/use-insurance-provider-options.d.ts +1 -1
  176. package/src/hooks/options/use-package-options.d.ts +2 -2
  177. package/src/hooks/options/use-rate-options.d.ts +1 -1
  178. package/src/hooks/options/use-service-code-options.d.ts +1 -1
  179. package/src/hooks/options/use-service-points.d.ts +1 -1
  180. package/src/hooks/options/use-shipment-metadata.d.ts +1 -1
  181. package/src/hooks/options/use-shipping-presets-options.d.ts +1 -1
  182. package/src/hooks/options/use-warehouse-options.d.ts +4 -2
  183. package/src/hooks/use-address-validation.d.ts +1 -1
  184. package/src/hooks/use-get-or-create-shipment.d.ts +3 -3
  185. package/src/hooks/use-scrub-errors.d.ts +1 -1
  186. package/src/index.d.ts +2 -0
  187. package/src/locales/en/index.d.ts +44 -2
  188. package/src/mocks/carriers/handlers.d.ts +1 -1
  189. package/src/mocks/warehouses/handlers.d.ts +1 -1
  190. package/src/schemas/shipengine/money.d.ts +1 -1
  191. package/src/testing/test-utils.d.ts +7 -2
  192. package/src/themes/fallback.d.ts +3 -0
  193. package/src/themes/index.d.ts +4 -0
  194. package/src/types/carrier-metadata.d.ts +1 -1
  195. package/src/types/preferred-rates.d.ts +1 -1
  196. package/src/types/shipping-preset/shipping-preset.d.ts +1 -1
  197. package/src/utilities/error.d.ts +1 -1
  198. package/src/utilities/feature-flags/feature-flags.d.ts +18 -0
  199. package/src/utilities/feature-flags/index.d.ts +2 -0
  200. package/src/utilities/feature-flags/types.d.ts +141 -0
  201. package/src/utilities/formatString.d.ts +2 -0
  202. package/src/utilities/index.d.ts +1 -0
  203. package/src/utilities/money.d.ts +1 -1
  204. package/src/utilities/pudo.d.ts +3 -0
  205. package/src/utilities/rates.d.ts +1 -3
  206. package/src/utilities/shipengine/address.d.ts +1 -1
  207. package/src/utilities/shipengine/carrier.d.ts +4 -1
  208. package/src/utilities/shipengine/dimensions.d.ts +1 -1
  209. package/src/utilities/shipengine/sales-order.d.ts +1 -1
  210. package/src/utilities/shipengine/shipment.d.ts +1 -1
  211. package/src/utilities/shipengine/warehouses.d.ts +1 -1
  212. package/src/utilities/shipengine/weight.d.ts +1 -1
  213. package/src/workflows/account-settings/account-settings.d.ts +52 -16
  214. package/src/workflows/account-settings/use-get-panel-props.d.ts +3 -3
  215. package/src/workflows/{manage-wallet-workflow/manage-wallet-workflow.d.ts → carrier-services/carrier-services.d.ts} +55 -25
  216. package/src/workflows/carrier-services/index.d.ts +1 -0
  217. package/src/workflows/{connect-carrier/connect-carrier.d.ts → connect-external-carrier/connect-external-carrier.d.ts} +52 -37
  218. package/src/workflows/connect-external-carrier/index.d.ts +1 -0
  219. package/src/workflows/index.d.ts +3 -2
  220. package/src/workflows/label-workflow/index.d.ts +1 -0
  221. package/src/workflows/{purchase-label-workflow/purchase-label-workflow.d.ts → label-workflow/label-workflow.d.ts} +16 -34
  222. package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form.d.ts +1 -1
  223. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +2 -4
  224. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +1 -1
  225. package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +2 -9
  226. package/src/workflows/onboarding/components/ship-from-address-step/ship-from-address-step.d.ts +1 -1
  227. package/src/workflows/onboarding/components/ship-from-address-step/use-ship-from-address-step.d.ts +1 -1
  228. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +3 -2
  229. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +1 -1
  230. package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +1 -1
  231. package/src/workflows/onboarding/onboarding.d.ts +65 -71
  232. package/story-notes.js +1 -0
  233. package/suspend-text.js +1 -0
  234. package/transaction-history-element.js +1 -0
  235. package/use-page-layout.js +1 -0
  236. package/use-scrub-errors.js +1 -0
  237. package/use-toggle.js +1 -0
  238. package/use-unit-settings.js +1 -0
  239. package/utilities.js +1 -1
  240. package/validation.js +1 -0
  241. package/wallet-form.js +1 -0
  242. package/warehouses.js +1 -0
  243. package/workflows.js +1 -1
  244. package/carrier-2abb4760.js +0 -1
  245. package/carrier-logo-1b6c767e.js +0 -1
  246. package/feature-flags-3e03717c.js +0 -1
  247. package/formatString-413ec7c7.js +0 -1
  248. package/money-fbc4d0b3.js +0 -1
  249. package/payment-method-settings-element-595cc38d.js +0 -1
  250. package/shipment-90d35708.js +0 -1
  251. package/src/components/templates/connect-carrier-form/connect-carrier-form.d.ts +0 -12
  252. package/src/components/templates/connect-carrier-form/index.d.ts +0 -1
  253. package/src/elements/external-carriers/index.d.ts +0 -1
  254. package/src/elements/shipengine-carriers/index.d.ts +0 -1
  255. package/src/elements/view-shipment/index.d.ts +0 -1
  256. package/src/elements/wallet-history/index.d.ts +0 -1
  257. package/src/features/external-carriers/external-carriers.d.ts +0 -11
  258. package/src/features/external-carriers/index.d.ts +0 -1
  259. package/src/features/shipengine-carriers/index.d.ts +0 -1
  260. package/src/features/shipengine-carriers/shipengine-carriers-row/index.d.ts +0 -1
  261. package/src/features/shipengine-carriers/shipengine-carriers.d.ts +0 -10
  262. package/src/features/wallet-history/index.d.ts +0 -1
  263. package/src/features/wallet-history/wallet-history.d.ts +0 -6
  264. package/src/hooks/use-elements.d.ts +0 -35
  265. package/src/utilities/feature-flags.d.ts +0 -232
  266. package/src/workflows/connect-carrier/index.d.ts +0 -1
  267. package/src/workflows/manage-wallet-workflow/index.d.ts +0 -1
  268. package/src/workflows/purchase-label-workflow/index.d.ts +0 -1
  269. package/story-notes-ce2d8cca.js +0 -1
  270. package/suspend-text-c8c7b6b6.js +0 -1
  271. package/use-page-layout-93ffae78.js +0 -1
  272. package/use-scrub-errors-2c4db406.js +0 -1
  273. package/use-toggle-838d2ebd.js +0 -1
  274. package/validation-b941a548.js +0 -1
  275. package/wallet-form-3981400b.js +0 -1
  276. package/wallet-history-5b34c856.js +0 -1
  277. package/warehouse-form-c0b3ea78.js +0 -34
  278. package/warehouses-dfcdce23.js +0 -1
  279. /package/{address-8f8119f4.js → address.js} +0 -0
  280. /package/{phone-87dd7bd8.js → phone.js} +0 -0
  281. /package/src/components/templates/{connect-carrier-form/connect-carrier-form.styles.d.ts → connect-external-carrier-form/connect-external-carrier-form.styles.d.ts} +0 -0
  282. /package/src/features/{shipengine-carriers → manage-carriers}/hooks/index.d.ts +0 -0
  283. /package/src/features/{shipengine-carriers → manage-carriers}/hooks/use-carrier-metadata.d.ts +0 -0
  284. /package/src/features/{shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.styles.d.ts → manage-carriers/manage-carriers-row/manage-carriers-row.styles.d.ts} +0 -0
  285. /package/src/features/{shipengine-carriers/shipengine-carriers.styles.d.ts → manage-carriers/manage-carriers.styles.d.ts} +0 -0
  286. /package/src/features/{wallet-history/wallet-history.styles.d.ts → transaction-history/transaction-history.styles.d.ts} +0 -0
  287. /package/src/workflows/{manage-wallet-workflow → carrier-services}/use-get-wallet-panel-props.d.ts +0 -0
  288. /package/{zod-60def96c.js → zod.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  /**
4
4
  * # Void Label Component Props
5
5
  *
@@ -8,14 +8,6 @@ import { SE } from "@shipengine/alchemy";
8
8
  * @see {@link VoidLabel.Component | This prop types usage in the `<VoidLabel />` component}
9
9
  */
10
10
  export type ComponentProps = {
11
- /**
12
- * `features` is a set of feature flags you would like to enable or disable in this component.
13
- */
14
- features?: {
15
- presentation?: {
16
- poweredByShipEngine?: boolean;
17
- };
18
- };
19
11
  /**
20
12
  * `labelId` is the unique identifier for the label you wish to void.
21
13
  */
@@ -33,7 +25,7 @@ export type ComponentProps = {
33
25
  /**
34
26
  * `onViewShipment` is a callback function that will be invoked when the user clicks the
35
27
  * `View Shipment` button. This will take you back to the
36
- * {@link ViewShipment.Element | `View Shipment Element`} for the given shipment, where you
28
+ * {@link ShipmentSummary.Element | `Shipment Summary Element`} for the given shipment, where you
37
29
  * will be able to see the voided label listed.
38
30
  */
39
31
  onViewShipment: (shipment: SE.SalesOrderShipment) => void;
@@ -42,7 +34,7 @@ export type ComponentProps = {
42
34
  * # Void Label Component
43
35
  *
44
36
  * - The `<VoidLabel />` component is used to void a given shipping label. When a label is voided,
45
- * you then get the option to view the associated shipment via the `View Shipment` Element, or
37
+ * you then get the option to view the associated shipment via the `Shipment Summary` Element, or
46
38
  * you can purchase another label for the shipment via the `Purchase Label` Element.
47
39
  *
48
40
  * @param ComponentProps The base props that will be passed into the `<VoidLabel />` component.
@@ -53,7 +45,7 @@ export type ComponentProps = {
53
45
  * @example
54
46
  * You can see how the `<Component />` is used in the `createElement` function call below.
55
47
  * ```tsx
56
- * export const Element = alchemy.createElement(Component, ErrorFallback, {
48
+ * export const Element = createElement(Component, ErrorFallback, {
57
49
  * css: { height: "100%", maxWidth: "800px", minWidth: "440px", width: "100%" },
58
50
  * resources: { en },
59
51
  * });
@@ -63,7 +55,7 @@ export type ComponentProps = {
63
55
  *
64
56
  * @see {@link VoidLabel.Element | The **Element** created to render `<VoidLabel />`}
65
57
  */
66
- export declare const Component: ({ features, labelId, onComplete, onSuccess, onViewShipment, }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
58
+ export declare const Component: ({ labelId, onComplete, onSuccess, onViewShipment }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
67
59
  /**
68
60
  * # Registered Void Label Element
69
61
  *
@@ -134,10 +126,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
134
126
  dpdwallet: string;
135
127
  };
136
128
  refund_process: string;
137
- refund_rules: string; /**
138
- * `onComplete` is a callback function that will be invoked when the request to void a given
139
- * shipping label is completed.
140
- */
129
+ refund_rules: string;
141
130
  resultTitles: {
142
131
  approved: string;
143
132
  rejected: string;
@@ -169,10 +158,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
169
158
  weight: string;
170
159
  insuredValue: string;
171
160
  deliveryConfirmation: string;
172
- }; /**
173
- * `labelId` is the unique identifier for the label you wish to void.
174
- */
161
+ };
175
162
  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
+ */
176
167
  multipleShippingServices: string;
177
168
  sections: {
178
169
  labels: string;
@@ -184,13 +175,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
184
175
  addNew: string;
185
176
  vatNumber: string;
186
177
  vatRegistrationTooltip: string;
187
- vatFormText: string; /**
188
- * # Void Label Component Props
189
- *
190
- * - These are the base props that will be passed into the `<VoidLabel />` component.
191
- *
192
- * @see {@link VoidLabel.Component | This prop types usage in the `<VoidLabel />` component}
193
- */
178
+ vatFormText: string;
194
179
  vatFormRegisterLater: string;
195
180
  vatNumberInputHint: string;
196
181
  vatNumberInputPlaceholder: string;
@@ -204,7 +189,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
204
189
  genericText: string;
205
190
  };
206
191
  };
207
- "shipengine-carriers": {
192
+ "manage-carriers": {
208
193
  title: string;
209
194
  headers: {
210
195
  accountCarriers: string;
@@ -226,13 +211,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
226
211
  hiddenTermsSubtitle: string;
227
212
  descriptionTitle: string;
228
213
  description: string;
229
- }; /**
230
- * # Void Label Component Props
231
- *
232
- * - These are the base props that will be passed into the `<VoidLabel />` component.
233
- *
234
- * @see {@link VoidLabel.Component | This prop types usage in the `<VoidLabel />` component}
235
- */
214
+ };
236
215
  billing: {
237
216
  title: string;
238
217
  cardSubTitle: string;
@@ -246,15 +225,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
246
225
  title: string;
247
226
  subtitle: string;
248
227
  };
249
- /**
250
- * `labelId` is the unique identifier for the label you wish to void.
251
- */
252
228
  notifications: {
253
229
  error: {
254
- title: string; /**
255
- * `onComplete` is a callback function that will be invoked when the request to void a given
256
- * shipping label is completed.
257
- */
230
+ title: string;
258
231
  };
259
232
  info: {
260
233
  title: string;
@@ -294,6 +267,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
294
267
  title: string;
295
268
  };
296
269
  };
270
+ noFundingSource: string;
297
271
  };
298
272
  "rate-details": {
299
273
  total: string;
@@ -323,10 +297,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
323
297
  brokerage_fee: string;
324
298
  admin_fee: string;
325
299
  adjustment: string;
326
- auctane_service_fee: string; /**
327
- * `onComplete` is a callback function that will be invoked when the request to void a given
328
- * shipping label is completed.
329
- */
300
+ auctane_service_fee: string;
330
301
  product_price: string;
331
302
  };
332
303
  };
@@ -481,8 +452,23 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
481
452
  subtitle: string;
482
453
  inlineMessage: string;
483
454
  };
455
+ errors: {
456
+ noCarriers: {
457
+ /**
458
+ * `onSuccess` is a callback function that will be invoked when the request to void a given
459
+ * shipping label is successful.
460
+ */
461
+ title: string;
462
+ subtitle: string;
463
+ };
464
+ };
484
465
  success: {
485
- title: string;
466
+ title: string; /**
467
+ * `onViewShipment` is a callback function that will be invoked when the user clicks the
468
+ * `View Shipment` button. This will take you back to the
469
+ * {@link ShipmentSummary.Element | `Shipment Summary Element`} for the given shipment, where you
470
+ * will be able to see the voided label listed.
471
+ */
486
472
  subtitle: string;
487
473
  action: string;
488
474
  };
@@ -526,6 +512,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
526
512
  returnToAddressIsDifferent: string;
527
513
  setDefault: string;
528
514
  shipFrom: string;
515
+ noWarehouses: string;
529
516
  };
530
517
  "manage-funding": {
531
518
  actions: {
@@ -546,7 +533,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
546
533
  isLoading: string;
547
534
  lowBalancePurchaseThreshold: string;
548
535
  maximumPurchasesPerDay: string;
549
- purchaseAmount: string;
536
+ purchaseAmount: string; /**
537
+ * `labelId` is the unique identifier for the label you wish to void.
538
+ */
550
539
  readSettings: string;
551
540
  };
552
541
  addFunds: {
@@ -573,6 +562,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
573
562
  errors: {
574
563
  balanceUnknown: string;
575
564
  unableToFindBalance: string;
565
+ noFundingSource: string;
576
566
  };
577
567
  byoc: {
578
568
  invoiceNotification: string;
@@ -662,7 +652,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
662
652
  };
663
653
  search: string;
664
654
  settingsModal: {
665
- closeDialog: string;
655
+ closeDialog: string; /**
656
+ * `labelId` is the unique identifier for the label you wish to void.
657
+ */
666
658
  header: string;
667
659
  };
668
660
  status: {
@@ -672,6 +664,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
672
664
  toastTitle: string;
673
665
  toastBody: string;
674
666
  };
667
+ deleteCarrierErrorTitle: string;
668
+ deleteCarrierErrorMessage: string;
669
+ loadingDeletingCarrier: string;
675
670
  };
676
671
  common: {
677
672
  actions: {
@@ -713,7 +708,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
713
708
  };
714
709
  parserFields: {
715
710
  fullAddress: string;
716
- };
711
+ }; /**
712
+ * `onSuccess` is a callback function that will be invoked when the request to void a given
713
+ * shipping label is successful.
714
+ */
717
715
  paste: string;
718
716
  preference: {
719
717
  confirm: string;
@@ -774,6 +772,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
774
772
  };
775
773
  customs: {
776
774
  addDeclaration: string;
775
+ noResults: string;
777
776
  contents: {
778
777
  documents: string;
779
778
  gift: string;
@@ -781,6 +780,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
781
780
  returnedGoods: string;
782
781
  sample: string;
783
782
  };
783
+ taxIds: {
784
+ sectionTitle: string;
785
+ addTaxId: string;
786
+ sectionTitleTooltip: string;
787
+ entityTypeTooltipText: string;
788
+ entityTypeTooltipPointOne: string;
789
+ entityTypeTooltipPointTwo: string;
790
+ };
784
791
  currencyChange: string;
785
792
  declarations: string;
786
793
  descriptionTooltip: {
@@ -798,6 +805,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
798
805
  sku: string;
799
806
  value: string;
800
807
  valueQuantity: string;
808
+ taxId: string;
809
+ taxIdType: string;
810
+ taxIdTypeValue: string;
811
+ taxIssuingAuthority: string;
812
+ entityType: string;
801
813
  };
802
814
  nonDelivery: {
803
815
  returnToSender: string;
@@ -870,6 +882,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
870
882
  shipment: string;
871
883
  shipments: string;
872
884
  warehouses: string;
885
+ funding: string;
886
+ paymentMethod: string;
873
887
  };
874
888
  months: {
875
889
  january: string;
@@ -948,6 +962,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
948
962
  gram: string;
949
963
  kilogram: string;
950
964
  };
965
+ actionsMenu: {
966
+ menuTitle: string;
967
+ actions: {
968
+ printLabel: string;
969
+ voidLabel: string;
970
+ printForms: string;
971
+ edit: string;
972
+ remove: string;
973
+ };
974
+ };
951
975
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
952
976
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
953
977
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
@@ -963,7 +987,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
963
987
  };
964
988
  "account-settings": {
965
989
  messages: {
966
- noFundingSources: string;
990
+ transactionHistory: {
991
+ noTransactions: string;
992
+ };
993
+ noFundingSourceDescription: string;
994
+ noFundingSourceAction: string;
967
995
  };
968
996
  title: string;
969
997
  sections: {
@@ -977,7 +1005,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
977
1005
  labelLayout: string;
978
1006
  unitSettings: string;
979
1007
  vatSettings: string;
980
- };
1008
+ }; /**
1009
+ * `onComplete` is a callback function that will be invoked when the request to void a given
1010
+ * shipping label is completed.
1011
+ */
981
1012
  };
982
1013
  };
983
1014
  } | undefined;
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import { Theme } from "@shipengine/giger-theme";
3
+ import { ShipEngineAPIConfig, ShipEngineProps } from "@shipengine/react-api";
4
+ import { ElementsFeatureFlags, GlobalFeatures } from "../utilities";
5
+ export type ElementsErrorHandler = (err: Error) => void;
6
+ export interface ElementsContextValue {
7
+ baseURL: string;
8
+ cdnURL: string;
9
+ container?: HTMLElement;
10
+ getFeatures: (key: keyof ElementsFeatureFlags) => ElementsFeatureFlags[keyof ElementsFeatureFlags];
11
+ getToken: ShipEngineProps["getToken"];
12
+ globalFeatures: GlobalFeatures;
13
+ locale?: string;
14
+ onError: ElementsErrorHandler;
15
+ scope: string | null;
16
+ theme: Theme;
17
+ }
18
+ /**
19
+ * @category Contexts
20
+ */
21
+ export declare const ElementsContext: import("react").Context<ElementsContextValue | undefined>;
22
+ export type ElementsContextProviderProps = {
23
+ cdnURL?: string;
24
+ children: React.ReactNode;
25
+ container?: HTMLElement;
26
+ features?: ElementsFeatureFlags;
27
+ locale?: string;
28
+ onError?: ElementsErrorHandler;
29
+ /** Scope of the Elements Provider. Can be null to not specify a specific element */
30
+ scope?: string | null;
31
+ theme: Theme;
32
+ } & Pick<ShipEngineAPIConfig, "getToken" | "baseURL">;
33
+ /**
34
+ * @category Providers
35
+ */
36
+ export declare const ElementsContextProvider: ({ baseURL, cdnURL, children, container, features, getToken, locale: localeProp, onError, scope, theme, }: ElementsContextProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
37
+ /**
38
+ * Must be used within {@link ElementsProvider}
39
+ *
40
+ * @category Elements Hooks
41
+ *
42
+ * @see {@link registerElement}
43
+ */
44
+ export declare const useElements: () => ElementsContextValue;
@@ -0,0 +1,12 @@
1
+ import { DefaultOptions } from "@tanstack/react-query";
2
+ import { CustomThemeData } from "@shipengine/giger-theme";
3
+ import { ShipEngineAPIConfig } from "@shipengine/react-api";
4
+ import { ElementsContextProviderProps } from "./elements-context-provider";
5
+ export type ElementsProviderProps = Omit<ElementsContextProviderProps, "theme"> & ShipEngineAPIConfig & {
6
+ defaultQueryClientOptions?: DefaultOptions;
7
+ themeConfig?: CustomThemeData;
8
+ };
9
+ /**
10
+ * @category Providers
11
+ */
12
+ export declare const ElementsProvider: ({ baseURL, cdnURL, children, container, features, getToken, headers, locale, onApiError, onError, scope, themeConfig, defaultQueryClientOptions, }: ElementsProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { ElementsProviderProps } from "./elements-provider";
2
+ export type ElementsTestProviderProps = Pick<Required<ElementsProviderProps>, "baseURL" | "children" | "features">;
3
+ export declare const ElementsTestProvider: ({ baseURL, children, features, }: ElementsTestProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./use-load-icons";
@@ -0,0 +1,7 @@
1
+ export type IconIndex = {
2
+ [key: string]: string[];
3
+ };
4
+ export interface UseLoadIconsProps {
5
+ cdnURL?: string;
6
+ }
7
+ export declare const useLoadIcons: ({ cdnURL }: UseLoadIconsProps) => (iconName: string) => Promise<string>;
@@ -0,0 +1,3 @@
1
+ export * from "./elements-context-provider";
2
+ export * from "./elements-provider";
3
+ export * from "./elements-test-provider";
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  import { AddressValidationPreference } from "../../components/templates/address-preference-select";
4
4
  export type AddressTransientParams = {
5
5
  isInternational?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  /**
4
4
  * @category Factories
5
5
  */
@@ -8,6 +8,6 @@ export * from "./resource";
8
8
  export * from "./sales-order";
9
9
  export * from "./service";
10
10
  export * from "./shipment";
11
- export * from "./wallet-history";
11
+ export * from "./transaction-history";
12
12
  export * from "./warehouse";
13
13
  export * from "./weight";
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  export type LabelTransientParams = {
4
4
  carrier: SE.Carrier;
5
5
  rateDetails?: SE.RateDetail[];
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
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/alchemy";
2
+ import { SE } from "@shipengine/react-api";
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/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  /**
4
4
  * @internal
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  /**
4
4
  * @category Factories
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  import { MoneyTransientParams } from "./money";
4
4
  export declare const randomPaymentStatus: () => SE.PaymentStatus;
5
5
  export declare const randomFulfillmentStatus: () => SE.FulfillmentStatus;
@@ -1,3 +1,3 @@
1
1
  import { Factory } from "fishery";
2
- import type { SE } from "@shipengine/alchemy";
2
+ import type { SE } from "@shipengine/react-api";
3
3
  export declare const servicePointFactory: Factory<SE.ServicePoint, any, SE.ServicePoint>;
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
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/alchemy";
2
+ import { SE } from "@shipengine/react-api";
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/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  /**
4
4
  * Wallet Transaction Factory
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  /**
4
4
  * @category Factories
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { Factory } from "fishery";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  export declare const randomWeightUnit: () => SE.WeightUnit;
4
4
  /**
5
5
  * @category Factories
@@ -1,9 +1,9 @@
1
- export * from "./external-carriers";
2
1
  export * from "./label-layout";
2
+ export * from "./manage-carriers";
3
+ export * from "./manage-external-carriers";
3
4
  export * from "./manage-funding";
4
5
  export * from "./manage-warehouses";
5
6
  export * from "./payment-method-settings";
6
- export * from "./shipengine-carriers";
7
+ export * from "./transaction-history";
7
8
  export * from "./unit-settings";
8
9
  export * from "./vat-settings";
9
- export * from "./wallet-history";
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  export type LabelLayoutSettingsProps = {
3
3
  accountSettings?: SE.AccountSettings;
4
4
  updateAccountSettings: (newAccountSetting: Partial<SE.AccountSettings>) => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  export declare const useLabelLayout: () => {
3
3
  accountSettings: SE.AccountSettings | undefined;
4
4
  isUpdatingLabelLayout: boolean;
@@ -4,8 +4,8 @@ export type ConnectedCarrierMetadata = {
4
4
  isConnected: boolean;
5
5
  };
6
6
  export declare const useListFundingSourceCarriers: () => {
7
- data: ConnectedCarrierMetadata[];
8
- error: import("@shipengine/alchemy").CodedError[] | null;
7
+ data: ConnectedCarrierMetadata[] | undefined;
8
+ error: import("@shipengine/react-api").CodedError[] | null;
9
9
  isLoading: boolean;
10
- refetch: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/alchemy").Carrier[], import("@shipengine/alchemy").CodedError[]>>;
10
+ 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[]>>;
11
11
  };
@@ -0,0 +1 @@
1
+ export * from "./manage-carriers";
@@ -0,0 +1 @@
1
+ export * from "./manage-carriers-row";
@@ -1,11 +1,11 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  import { RegisterFundingSourceCarrierPayload } from "../../../components/templates";
3
3
  import { ConnectedCarrierMetadata } from "../hooks/use-list-funding-source-carriers";
4
- export type ShipEngineCarriersRowProps = {
4
+ export type ManageCarriersRowProps = {
5
5
  address?: SE.Address;
6
6
  carrierToConnect?: string;
7
7
  fundingSourceCarrier: ConnectedCarrierMetadata;
8
8
  registerCarrier: (payload?: RegisterFundingSourceCarrierPayload) => Promise<void>;
9
9
  setCarrierToConnect: (carrierCode: string) => void;
10
10
  };
11
- export declare const ShipEngineCarriersRow: ({ fundingSourceCarrier: { carrier, isConnected }, registerCarrier, address, carrierToConnect, setCarrierToConnect, }: ShipEngineCarriersRowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const ManageCarriersRow: ({ fundingSourceCarrier: { carrier, isConnected }, registerCarrier, address, carrierToConnect, setCarrierToConnect, }: ManageCarriersRowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export type ShipEngineCarriersProps = {
2
+ onRedirectToOnboarding?: () => void;
3
+ showFunds?: boolean;
4
+ };
5
+ export declare const ShipEngineCarriers: ({ showFunds, onRedirectToOnboarding, }: ShipEngineCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from "./manage-external-carriers";
2
+ export * from "./use-manage-external-carriers";
@@ -0,0 +1,14 @@
1
+ import { Carrier, CodedError, ListCarrierConnectionsResponse } from "@shipengine/js-api";
2
+ export type ExternalCarriersProps = {
3
+ carrierMetadata?: ListCarrierConnectionsResponse;
4
+ carrierMetadataLoading: boolean;
5
+ connectedExternalCarriers?: Carrier[];
6
+ deleteCarrier: (carrierId: string) => Promise<void>;
7
+ deleteCarrierErrors: CodedError[] | null;
8
+ isDeletingCarrier: boolean;
9
+ isListCarriersFetching: boolean;
10
+ isListCarriersLoading: boolean;
11
+ isModalFullScreen?: boolean;
12
+ refetchConnectedCarriers: () => void;
13
+ };
14
+ export declare const ExternalCarriers: ({ isModalFullScreen, carrierMetadata, carrierMetadataLoading, connectedExternalCarriers, deleteCarrier, isDeletingCarrier, isListCarriersFetching, isListCarriersLoading, deleteCarrierErrors, refetchConnectedCarriers, }: ExternalCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ export declare const useManageExternalCarriers: () => {
2
+ carrierMetadata: import("@shipengine/react-api").ListCarrierConnectionsResponse | undefined;
3
+ carrierMetadataLoading: boolean;
4
+ connectedExternalCarriers: import("@shipengine/react-api").Carrier[] | undefined;
5
+ deleteCarrier: import("@tanstack/react-query").UseMutateAsyncFunction<void, import("@shipengine/react-api").CodedError[], string, unknown>;
6
+ deleteCarrierErrors: import("@shipengine/react-api").CodedError[] | null;
7
+ deleteCarrierSuccess: boolean;
8
+ isDeletingCarrier: boolean;
9
+ isListCarriersFetching: boolean;
10
+ isListCarriersLoading: boolean;
11
+ refetchConnectedCarriers: <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
+ };
@@ -13,4 +13,7 @@
13
13
  *
14
14
  * @see {@link ManageFundingProps | The props that are passed into the `<ManageFunding />` component}
15
15
  */
16
- export declare const ManageFunding: () => import("@emotion/react/jsx-runtime").JSX.Element;
16
+ export type ManageFundingProps = {
17
+ onRedirectToOnboarding?: () => void;
18
+ };
19
+ export declare const ManageFunding: ({ onRedirectToOnboarding }: ManageFundingProps) => import("@emotion/react/jsx-runtime").JSX.Element;