@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
@@ -98,7 +98,7 @@ export declare const Element: ({ resources, ...props }: object & {
98
98
  genericText: string;
99
99
  };
100
100
  };
101
- "shipengine-carriers": {
101
+ "manage-carriers": {
102
102
  title: string;
103
103
  headers: {
104
104
  accountCarriers: string;
@@ -176,6 +176,7 @@ export declare const Element: ({ resources, ...props }: object & {
176
176
  title: string;
177
177
  };
178
178
  };
179
+ noFundingSource: string;
179
180
  };
180
181
  "rate-details": {
181
182
  total: string;
@@ -360,6 +361,12 @@ export declare const Element: ({ resources, ...props }: object & {
360
361
  subtitle: string;
361
362
  inlineMessage: string;
362
363
  };
364
+ errors: {
365
+ noCarriers: {
366
+ title: string;
367
+ subtitle: string;
368
+ };
369
+ };
363
370
  success: {
364
371
  title: string;
365
372
  subtitle: string;
@@ -405,6 +412,7 @@ export declare const Element: ({ resources, ...props }: object & {
405
412
  returnToAddressIsDifferent: string;
406
413
  setDefault: string;
407
414
  shipFrom: string;
415
+ noWarehouses: string;
408
416
  };
409
417
  "manage-funding": {
410
418
  actions: {
@@ -452,6 +460,7 @@ export declare const Element: ({ resources, ...props }: object & {
452
460
  errors: {
453
461
  balanceUnknown: string;
454
462
  unableToFindBalance: string;
463
+ noFundingSource: string;
455
464
  };
456
465
  byoc: {
457
466
  invoiceNotification: string;
@@ -551,6 +560,9 @@ export declare const Element: ({ resources, ...props }: object & {
551
560
  toastTitle: string;
552
561
  toastBody: string;
553
562
  };
563
+ deleteCarrierErrorTitle: string;
564
+ deleteCarrierErrorMessage: string;
565
+ loadingDeletingCarrier: string;
554
566
  };
555
567
  common: {
556
568
  actions: {
@@ -653,6 +665,7 @@ export declare const Element: ({ resources, ...props }: object & {
653
665
  };
654
666
  customs: {
655
667
  addDeclaration: string;
668
+ noResults: string;
656
669
  contents: {
657
670
  documents: string;
658
671
  gift: string;
@@ -660,6 +673,14 @@ export declare const Element: ({ resources, ...props }: object & {
660
673
  returnedGoods: string;
661
674
  sample: string;
662
675
  };
676
+ taxIds: {
677
+ sectionTitle: string;
678
+ addTaxId: string;
679
+ sectionTitleTooltip: string;
680
+ entityTypeTooltipText: string;
681
+ entityTypeTooltipPointOne: string;
682
+ entityTypeTooltipPointTwo: string;
683
+ };
663
684
  currencyChange: string;
664
685
  declarations: string;
665
686
  descriptionTooltip: {
@@ -677,6 +698,11 @@ export declare const Element: ({ resources, ...props }: object & {
677
698
  sku: string;
678
699
  value: string;
679
700
  valueQuantity: string;
701
+ taxId: string;
702
+ taxIdType: string;
703
+ taxIdTypeValue: string;
704
+ taxIssuingAuthority: string;
705
+ entityType: string;
680
706
  };
681
707
  nonDelivery: {
682
708
  returnToSender: string;
@@ -749,6 +775,8 @@ export declare const Element: ({ resources, ...props }: object & {
749
775
  shipment: string;
750
776
  shipments: string;
751
777
  warehouses: string;
778
+ funding: string;
779
+ paymentMethod: string;
752
780
  };
753
781
  months: {
754
782
  january: string;
@@ -827,6 +855,16 @@ export declare const Element: ({ resources, ...props }: object & {
827
855
  gram: string;
828
856
  kilogram: string;
829
857
  };
858
+ actionsMenu: {
859
+ menuTitle: string;
860
+ actions: {
861
+ printLabel: string;
862
+ voidLabel: string;
863
+ printForms: string;
864
+ edit: string;
865
+ remove: string;
866
+ };
867
+ };
830
868
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
831
869
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
832
870
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
@@ -842,7 +880,11 @@ export declare const Element: ({ resources, ...props }: object & {
842
880
  };
843
881
  "account-settings": {
844
882
  messages: {
845
- noFundingSources: string;
883
+ transactionHistory: {
884
+ noTransactions: string;
885
+ };
886
+ noFundingSourceDescription: string;
887
+ noFundingSourceAction: string;
846
888
  };
847
889
  title: string;
848
890
  sections: {
@@ -1,4 +1,4 @@
1
- import { Label } from "@shipengine/alchemy";
1
+ import { Label } from "@shipengine/react-api";
2
2
  type ComponentProps = {
3
3
  onRowClick: (data: Label) => void;
4
4
  };
@@ -100,7 +100,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
100
100
  genericText: string;
101
101
  };
102
102
  };
103
- "shipengine-carriers": {
103
+ "manage-carriers": {
104
104
  title: string;
105
105
  headers: {
106
106
  accountCarriers: string;
@@ -178,6 +178,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
178
178
  title: string;
179
179
  };
180
180
  };
181
+ noFundingSource: string;
181
182
  };
182
183
  "rate-details": {
183
184
  total: string;
@@ -362,6 +363,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
362
363
  subtitle: string;
363
364
  inlineMessage: string;
364
365
  };
366
+ errors: {
367
+ noCarriers: {
368
+ title: string;
369
+ subtitle: string;
370
+ };
371
+ };
365
372
  success: {
366
373
  title: string;
367
374
  subtitle: string;
@@ -407,6 +414,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
407
414
  returnToAddressIsDifferent: string;
408
415
  setDefault: string;
409
416
  shipFrom: string;
417
+ noWarehouses: string;
410
418
  };
411
419
  "manage-funding": {
412
420
  actions: {
@@ -454,6 +462,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
454
462
  errors: {
455
463
  balanceUnknown: string;
456
464
  unableToFindBalance: string;
465
+ noFundingSource: string;
457
466
  };
458
467
  byoc: {
459
468
  invoiceNotification: string;
@@ -553,6 +562,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
553
562
  toastTitle: string;
554
563
  toastBody: string;
555
564
  };
565
+ deleteCarrierErrorTitle: string;
566
+ deleteCarrierErrorMessage: string;
567
+ loadingDeletingCarrier: string;
556
568
  };
557
569
  common: {
558
570
  actions: {
@@ -655,6 +667,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
655
667
  };
656
668
  customs: {
657
669
  addDeclaration: string;
670
+ noResults: string;
658
671
  contents: {
659
672
  documents: string;
660
673
  gift: string;
@@ -662,6 +675,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
662
675
  returnedGoods: string;
663
676
  sample: string;
664
677
  };
678
+ taxIds: {
679
+ sectionTitle: string;
680
+ addTaxId: string;
681
+ sectionTitleTooltip: string;
682
+ entityTypeTooltipText: string;
683
+ entityTypeTooltipPointOne: string;
684
+ entityTypeTooltipPointTwo: string;
685
+ };
665
686
  currencyChange: string;
666
687
  declarations: string;
667
688
  descriptionTooltip: {
@@ -679,6 +700,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
679
700
  sku: string;
680
701
  value: string;
681
702
  valueQuantity: string;
703
+ taxId: string;
704
+ taxIdType: string;
705
+ taxIdTypeValue: string;
706
+ taxIssuingAuthority: string;
707
+ entityType: string;
682
708
  };
683
709
  nonDelivery: {
684
710
  returnToSender: string;
@@ -751,6 +777,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
751
777
  shipment: string;
752
778
  shipments: string;
753
779
  warehouses: string;
780
+ funding: string;
781
+ paymentMethod: string;
754
782
  };
755
783
  months: {
756
784
  january: string;
@@ -829,6 +857,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
829
857
  gram: string;
830
858
  kilogram: string;
831
859
  };
860
+ actionsMenu: {
861
+ menuTitle: string;
862
+ actions: {
863
+ printLabel: string;
864
+ voidLabel: string;
865
+ printForms: string;
866
+ edit: string;
867
+ remove: string;
868
+ };
869
+ };
832
870
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
833
871
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
834
872
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
@@ -844,7 +882,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
844
882
  };
845
883
  "account-settings": {
846
884
  messages: {
847
- noFundingSources: string;
885
+ transactionHistory: {
886
+ noTransactions: string;
887
+ };
888
+ noFundingSourceDescription: string;
889
+ noFundingSourceAction: string;
848
890
  };
849
891
  title: string;
850
892
  sections: {
@@ -0,0 +1 @@
1
+ export * as ManageCarriers from "./manage-carriers";
@@ -1,22 +1,11 @@
1
1
  /// <reference types="react" />
2
- import { ShipEngineCarriersFeatures } from "../../features/shipengine-carriers";
2
+ import { ShipEngineCarriersProps } from "../../features/manage-carriers";
3
3
  /**
4
- * # ShipEngine-Carriers Props
4
+ * # Manage-Carriers Element
5
5
  *
6
- * @see {@link ShipEngineCarriers.Element | The `<ShipEngine-Carriers />` component}
7
- */
8
- export type ComponentProps = {
9
- /**
10
- * `features` is a set of feature flags you would like to enable or disable in this component.
11
- */
12
- features?: ShipEngineCarriersFeatures;
13
- };
14
- /**
15
- * # ShipEngine-Carriers Element
16
- *
17
- * @param ComponentProps The base props that will be passed into the `<ShipEngine-Carriers />` component.
6
+ * @param ComponentProps The base props that will be passed into the `<ManageCarriers />` component.
18
7
  *
19
- * @returns Element A React element that renders the `<ShipEngine-Carriers />` component allowing users
8
+ * @returns Element A React element that renders the `<ManageCarriers />` component allowing users
20
9
  * to view a list of carriers that are connected to their ShipEngine account. This component is
21
10
  * composed in the `<AccountSettings />` Element.
22
11
  *
@@ -25,17 +14,17 @@ export type ComponentProps = {
25
14
  * (() => {
26
15
  * const features = useFeatures("Global");
27
16
  *
28
- * return <ShipEngineCarriers.Element features={features} />;
17
+ * return <ManageCarriers.Element features={features} />;
29
18
  * })();
30
19
  * ```
31
20
  *
32
21
  * <br />
33
22
  *
34
- * @see {@link ShipEngineCarriers.ComponentProps | The props that are passed into the `<ShipEngine-Carriers />` component}
35
- * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ShipEngine-Carriers />` component}
23
+ * @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
24
+ * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
36
25
  */
37
- export declare const Component: ({ features }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
38
- export declare const Element: ({ resources, ...props }: ComponentProps & {
26
+ export declare const Component: ({ onRedirectToOnboarding }: ShipEngineCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
27
+ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps & {
39
28
  resources?: {
40
29
  en: {
41
30
  "wallet-history": {
@@ -133,7 +122,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
133
122
  genericText: string;
134
123
  };
135
124
  };
136
- "shipengine-carriers": {
125
+ "manage-carriers": {
137
126
  title: string;
138
127
  headers: {
139
128
  accountCarriers: string;
@@ -209,8 +198,31 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
209
198
  notifications: {
210
199
  error: {
211
200
  title: string;
212
- };
201
+ }; /**
202
+ * # Manage-Carriers Element
203
+ *
204
+ * @param ComponentProps The base props that will be passed into the `<ManageCarriers />` component.
205
+ *
206
+ * @returns Element A React element that renders the `<ManageCarriers />` component allowing users
207
+ * to view a list of carriers that are connected to their ShipEngine account. This component is
208
+ * composed in the `<AccountSettings />` Element.
209
+ *
210
+ * @example
211
+ * ```tsx
212
+ * (() => {
213
+ * const features = useFeatures("Global");
214
+ *
215
+ * return <ManageCarriers.Element features={features} />;
216
+ * })();
217
+ * ```
218
+ *
219
+ * <br />
220
+ *
221
+ * @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
222
+ * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
223
+ */
213
224
  };
225
+ noFundingSource: string;
214
226
  };
215
227
  "rate-details": {
216
228
  total: string;
@@ -395,6 +407,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
395
407
  subtitle: string;
396
408
  inlineMessage: string;
397
409
  };
410
+ errors: {
411
+ noCarriers: {
412
+ title: string;
413
+ subtitle: string;
414
+ };
415
+ };
398
416
  success: {
399
417
  title: string;
400
418
  subtitle: string;
@@ -440,6 +458,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
440
458
  returnToAddressIsDifferent: string;
441
459
  setDefault: string;
442
460
  shipFrom: string;
461
+ noWarehouses: string;
443
462
  };
444
463
  "manage-funding": {
445
464
  actions: {
@@ -450,11 +469,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
450
469
  };
451
470
  autoFunding: {
452
471
  edit: string;
453
- /**
454
- * # ShipEngine-Carriers Props
455
- *
456
- * @see {@link ShipEngineCarriers.Element | The `<ShipEngine-Carriers />` component}
457
- */
458
472
  editSettings: string;
459
473
  error: {
460
474
  title: string;
@@ -492,6 +506,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
492
506
  errors: {
493
507
  balanceUnknown: string;
494
508
  unableToFindBalance: string;
509
+ noFundingSource: string;
495
510
  };
496
511
  byoc: {
497
512
  invoiceNotification: string;
@@ -577,29 +592,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
577
592
  registrationForm: {
578
593
  error: string;
579
594
  title: string;
580
- /**
581
- * # ShipEngine-Carriers Element
582
- *
583
- * @param ComponentProps The base props that will be passed into the `<ShipEngine-Carriers />` component.
584
- *
585
- * @returns Element A React element that renders the `<ShipEngine-Carriers />` component allowing users
586
- * to view a list of carriers that are connected to their ShipEngine account. This component is
587
- * composed in the `<AccountSettings />` Element.
588
- *
589
- * @example
590
- * ```tsx
591
- * (() => {
592
- * const features = useFeatures("Global");
593
- *
594
- * return <ShipEngineCarriers.Element features={features} />;
595
- * })();
596
- * ```
597
- *
598
- * <br />
599
- *
600
- * @see {@link ShipEngineCarriers.ComponentProps | The props that are passed into the `<ShipEngine-Carriers />` component}
601
- * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ShipEngine-Carriers />` component}
602
- */
603
595
  betaWarning: string;
604
596
  };
605
597
  search: string;
@@ -614,6 +606,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
614
606
  toastTitle: string;
615
607
  toastBody: string;
616
608
  };
609
+ deleteCarrierErrorTitle: string;
610
+ deleteCarrierErrorMessage: string;
611
+ loadingDeletingCarrier: string;
617
612
  };
618
613
  common: {
619
614
  actions: {
@@ -624,7 +619,29 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
624
619
  connect: string;
625
620
  continue: string;
626
621
  delete: string;
627
- edit: string;
622
+ edit: string; /**
623
+ * # Manage-Carriers Element
624
+ *
625
+ * @param ComponentProps The base props that will be passed into the `<ManageCarriers />` component.
626
+ *
627
+ * @returns Element A React element that renders the `<ManageCarriers />` component allowing users
628
+ * to view a list of carriers that are connected to their ShipEngine account. This component is
629
+ * composed in the `<AccountSettings />` Element.
630
+ *
631
+ * @example
632
+ * ```tsx
633
+ * (() => {
634
+ * const features = useFeatures("Global");
635
+ *
636
+ * return <ManageCarriers.Element features={features} />;
637
+ * })();
638
+ * ```
639
+ *
640
+ * <br />
641
+ *
642
+ * @see {@link ManageCarriers.ComponentProps | The props that are passed into the `<ManageCarriers />` component}
643
+ * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageCarriers />` component}
644
+ */
628
645
  hide: string;
629
646
  parse: string;
630
647
  purchase: string;
@@ -716,6 +733,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
716
733
  };
717
734
  customs: {
718
735
  addDeclaration: string;
736
+ noResults: string;
719
737
  contents: {
720
738
  documents: string;
721
739
  gift: string;
@@ -723,6 +741,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
723
741
  returnedGoods: string;
724
742
  sample: string;
725
743
  };
744
+ taxIds: {
745
+ sectionTitle: string;
746
+ addTaxId: string;
747
+ sectionTitleTooltip: string;
748
+ entityTypeTooltipText: string;
749
+ entityTypeTooltipPointOne: string;
750
+ entityTypeTooltipPointTwo: string;
751
+ };
726
752
  currencyChange: string;
727
753
  declarations: string;
728
754
  descriptionTooltip: {
@@ -740,6 +766,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
740
766
  sku: string;
741
767
  value: string;
742
768
  valueQuantity: string;
769
+ taxId: string;
770
+ taxIdType: string;
771
+ taxIdTypeValue: string;
772
+ taxIssuingAuthority: string;
773
+ entityType: string;
743
774
  };
744
775
  nonDelivery: {
745
776
  returnToSender: string;
@@ -812,6 +843,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
812
843
  shipment: string;
813
844
  shipments: string;
814
845
  warehouses: string;
846
+ funding: string;
847
+ paymentMethod: string;
815
848
  };
816
849
  months: {
817
850
  january: string;
@@ -890,6 +923,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
890
923
  gram: string;
891
924
  kilogram: string;
892
925
  };
926
+ actionsMenu: {
927
+ menuTitle: string;
928
+ actions: {
929
+ printLabel: string;
930
+ voidLabel: string;
931
+ printForms: string;
932
+ edit: string;
933
+ remove: string;
934
+ };
935
+ };
893
936
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
894
937
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
895
938
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
@@ -905,7 +948,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
905
948
  };
906
949
  "account-settings": {
907
950
  messages: {
908
- noFundingSources: string;
951
+ transactionHistory: {
952
+ noTransactions: string;
953
+ };
954
+ noFundingSourceDescription: string;
955
+ noFundingSourceAction: string;
909
956
  };
910
957
  title: string;
911
958
  sections: {
@@ -0,0 +1 @@
1
+ export * as ManageExternalCarriers from "./manage-external-carriers";