@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,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  export type UpdateWarehouseData = {
3
3
  warehouseId: string;
4
4
  } & Partial<SE.Warehouse>;
@@ -1,15 +1,15 @@
1
1
  export declare const useManageWarehouses: () => {
2
- createWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<import("@shipengine/alchemy").Warehouse, import("@shipengine/alchemy").CodedError[], Partial<import("@shipengine/alchemy").Warehouse>, unknown>;
3
- createWarehouseErrors: import("@shipengine/alchemy").CodedError[] | null;
4
- deleteWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<void, import("@shipengine/alchemy").CodedError[], import("@shipengine/alchemy").DeleteWarehouseData, unknown>;
5
- deleteWarehouseErrors: import("@shipengine/alchemy").CodedError[] | null;
2
+ createWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<import("@shipengine/react-api").Warehouse, import("@shipengine/react-api").CodedError[], Partial<import("@shipengine/react-api").Warehouse>, unknown>;
3
+ createWarehouseErrors: import("@shipengine/react-api").CodedError[] | null;
4
+ deleteWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<void, import("@shipengine/react-api").CodedError[], import("@shipengine/react-api").DeleteWarehouseData, unknown>;
5
+ deleteWarehouseErrors: import("@shipengine/react-api").CodedError[] | null;
6
6
  isCreatingWarehouse: boolean;
7
7
  isDeletingWarehouse: boolean;
8
8
  isLoadingWarehouses: boolean;
9
9
  isUpdatingWarehouse: boolean;
10
- listWarehouseErrors: import("@shipengine/alchemy").CodedError[] | null;
11
- refreshListWarehouses: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/alchemy").Warehouse[], import("@shipengine/alchemy").CodedError[]>>;
12
- updateWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<void, import("@shipengine/alchemy").CodedError[], import("@shipengine/alchemy").UpdateWarehouseData, unknown>;
13
- updateWarehouseErrors: import("@shipengine/alchemy").CodedError[] | null;
14
- warehouses: import("@shipengine/alchemy").Warehouse[] | undefined;
10
+ listWarehouseErrors: import("@shipengine/react-api").CodedError[] | null;
11
+ refreshListWarehouses: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/react-api").Warehouse[], import("@shipengine/react-api").CodedError[]>>;
12
+ updateWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<void, import("@shipengine/react-api").CodedError[], import("@shipengine/react-api").UpdateWarehouseData, unknown>;
13
+ updateWarehouseErrors: import("@shipengine/react-api").CodedError[] | null;
14
+ warehouses: import("@shipengine/react-api").Warehouse[] | undefined;
15
15
  };
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  type WarehouseDisplayProps = {
3
3
  warehouse: SE.Warehouse;
4
4
  };
@@ -17,4 +17,7 @@
17
17
  *
18
18
  * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<PaymentMethodSettings />` component}
19
19
  */
20
- export declare const PaymentMethodSettings: () => import("@emotion/react/jsx-runtime").JSX.Element;
20
+ export type PaymentMethodSettingsProps = {
21
+ onRedirectToOnboarding: () => void;
22
+ };
23
+ export declare const PaymentMethodSettings: ({ onRedirectToOnboarding }: PaymentMethodSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./transaction-history";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @namespace TransactionHistory
3
+ *
4
+ * # Wallet History
5
+ */
6
+ export declare const TransactionHistory: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  export type UnitSettingsProps = {
3
3
  accountSettings?: SE.AccountSettings;
4
4
  getVatSettingsErrors?: SE.CodedError[] | null;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  export declare const useUnitSettings: () => {
3
3
  accountSettings: SE.AccountSettings | undefined;
4
4
  getVatSettingsErrors: SE.CodedError[] | null;
@@ -1,8 +1,8 @@
1
1
  export declare const useVatSettings: () => {
2
- getVatSettingsErrors: import("@shipengine/alchemy").CodedError[] | null;
2
+ getVatSettingsErrors: import("@shipengine/react-api").CodedError[] | null;
3
3
  isLoading: boolean;
4
- refreshVatSettings: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/alchemy").AccountSettings, import("@shipengine/alchemy").CodedError[]>>;
5
- updateVatSettings: import("@tanstack/react-query").UseMutateAsyncFunction<import("@shipengine/alchemy").AccountSettings, import("@shipengine/alchemy").CodedError[], Partial<import("@shipengine/alchemy").AccountSettings>, unknown>;
6
- updateVatSettingsErrors: import("@shipengine/alchemy").CodedError[] | null;
7
- vatSettings: import("@shipengine/alchemy").AccountSettings | undefined;
4
+ refreshVatSettings: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/react-api").AccountSettings, import("@shipengine/react-api").CodedError[]>>;
5
+ updateVatSettings: import("@tanstack/react-query").UseMutateAsyncFunction<import("@shipengine/react-api").AccountSettings, import("@shipengine/react-api").CodedError[], Partial<import("@shipengine/react-api").AccountSettings>, unknown>;
6
+ updateVatSettingsErrors: import("@shipengine/react-api").CodedError[] | null;
7
+ vatSettings: import("@shipengine/react-api").AccountSettings | undefined;
8
8
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="heremaps" />
2
- import { HereTokenResponse } from "@shipengine/alchemy";
2
+ import { HereTokenResponse } from "@shipengine/js-api";
3
3
  export declare const initHerePlatform: (token: HereTokenResponse) => H.service.Platform;
4
4
  export declare const initDefaultLayers: (platform: H.service.Platform) => Record<string, any>;
5
5
  export declare const initInteractiveBehaviors: (map: H.Map) => H.mapevents.Behavior;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  interface InsuranceFeatures {
3
3
  includeShipsuranceInsurance?: boolean;
4
4
  includeThirdPartyInsurance?: boolean;
@@ -1,5 +1,5 @@
1
- import { SE } from "@shipengine/alchemy";
2
- import { SelectCategory } from "../../components/field/select";
1
+ import { SE } from "@shipengine/react-api";
2
+ import { SelectCategory } from "../../components/field/select/select-with-categories";
3
3
  /**
4
4
  * @internal
5
5
  *
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  import { PreferredRateAcknowledgementMessage, PreferredRatesResponse } from "../../types";
3
3
  /**
4
4
  * @internal
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  import { SelectCategory } from "../../components/field/select";
3
3
  /**
4
4
  * @internal
@@ -1,4 +1,4 @@
1
- import { ListServicePointsOptionAddress, ListServicePointsOptionAddressQuery, ListServicePointsOptionCoordinates, Rate, SE } from "@shipengine/alchemy";
1
+ import { ListServicePointsOptionAddress, ListServicePointsOptionAddressQuery, ListServicePointsOptionCoordinates, Rate, SE } from "@shipengine/react-api";
2
2
  export type ServicePointSearchQuery = ListServicePointsOptionAddress["address"] | ListServicePointsOptionAddressQuery["addressQuery"] | ListServicePointsOptionCoordinates;
3
3
  export declare const useServicePoints: (rates?: Rate[], shipment?: SE.SalesOrderShipment) => {
4
4
  fetchServicePoints: (searchQuery?: ServicePointSearchQuery) => void;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  import { ShippingPreset } from "../../types";
3
3
  /**
4
4
  * @internal
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -6,7 +6,9 @@ import { SE } from "@shipengine/alchemy";
6
6
  *
7
7
  * @category Hooks
8
8
  */
9
- export declare const useWarehouseOptions: (warehouses?: SE.Warehouse[]) => {
9
+ export declare const useWarehouseOptions: (warehouses?: SE.Warehouse[], rightContentAction?: ((warehouseId: string) => void) | undefined) => {
10
10
  label: string;
11
+ rightContent: import("@emotion/react/jsx-runtime").JSX.Element;
12
+ subLabel: string;
11
13
  value: string;
12
14
  }[] | undefined;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  import { ValidationPreference } from "../components/address-preference-context";
4
4
  /**
5
5
  * @internal
@@ -1,7 +1,7 @@
1
- import { SalesOrderShipment } from "@shipengine/alchemy";
1
+ import { SalesOrderShipment } from "@shipengine/react-api";
2
2
  export declare const useGetOrCreateShipment: (onShipmentUpdated: ((shipment: SalesOrderShipment) => void | Promise<void>) | undefined, shipmentId?: string) => {
3
- errors: import("@shipengine/alchemy").CodedError[] | undefined;
3
+ errors: import("@shipengine/react-api").CodedError[] | undefined;
4
4
  isLoading: boolean;
5
- refetchShipment: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<SalesOrderShipment, import("@shipengine/alchemy").CodedError[]>>;
5
+ refetchShipment: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<SalesOrderShipment, import("@shipengine/react-api").CodedError[]>>;
6
6
  shipment: SalesOrderShipment | undefined;
7
7
  };
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  type UseScrubErrorsProps = {
3
3
  errors?: SE.CodedError[];
4
4
  predicate?: (e: SE.CodedError) => boolean;
package/src/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./components";
2
2
  export * from "./constants";
3
+ export * from "./create-element";
3
4
  export * from "./elements";
4
5
  export * from "./extensions";
5
6
  export * from "./hooks";
@@ -7,3 +8,4 @@ export * from "./schemas";
7
8
  export * from "./types";
8
9
  export * from "./utilities";
9
10
  export * from "./workflows";
11
+ export * from "./elements-provider";
@@ -94,7 +94,7 @@ declare const _default: {
94
94
  genericText: string;
95
95
  };
96
96
  };
97
- "shipengine-carriers": {
97
+ "manage-carriers": {
98
98
  title: string;
99
99
  headers: {
100
100
  accountCarriers: string;
@@ -172,6 +172,7 @@ declare const _default: {
172
172
  title: string;
173
173
  };
174
174
  };
175
+ noFundingSource: string;
175
176
  };
176
177
  "rate-details": {
177
178
  total: string;
@@ -356,6 +357,12 @@ declare const _default: {
356
357
  subtitle: string;
357
358
  inlineMessage: string;
358
359
  };
360
+ errors: {
361
+ noCarriers: {
362
+ title: string;
363
+ subtitle: string;
364
+ };
365
+ };
359
366
  success: {
360
367
  title: string;
361
368
  subtitle: string;
@@ -401,6 +408,7 @@ declare const _default: {
401
408
  returnToAddressIsDifferent: string;
402
409
  setDefault: string;
403
410
  shipFrom: string;
411
+ noWarehouses: string;
404
412
  };
405
413
  "manage-funding": {
406
414
  actions: {
@@ -448,6 +456,7 @@ declare const _default: {
448
456
  errors: {
449
457
  balanceUnknown: string;
450
458
  unableToFindBalance: string;
459
+ noFundingSource: string;
451
460
  };
452
461
  byoc: {
453
462
  invoiceNotification: string;
@@ -547,6 +556,9 @@ declare const _default: {
547
556
  toastTitle: string;
548
557
  toastBody: string;
549
558
  };
559
+ deleteCarrierErrorTitle: string;
560
+ deleteCarrierErrorMessage: string;
561
+ loadingDeletingCarrier: string;
550
562
  };
551
563
  common: {
552
564
  actions: {
@@ -649,6 +661,7 @@ declare const _default: {
649
661
  };
650
662
  customs: {
651
663
  addDeclaration: string;
664
+ noResults: string;
652
665
  contents: {
653
666
  documents: string;
654
667
  gift: string;
@@ -656,6 +669,14 @@ declare const _default: {
656
669
  returnedGoods: string;
657
670
  sample: string;
658
671
  };
672
+ taxIds: {
673
+ sectionTitle: string;
674
+ addTaxId: string;
675
+ sectionTitleTooltip: string;
676
+ entityTypeTooltipText: string;
677
+ entityTypeTooltipPointOne: string;
678
+ entityTypeTooltipPointTwo: string;
679
+ };
659
680
  currencyChange: string;
660
681
  declarations: string;
661
682
  descriptionTooltip: {
@@ -673,6 +694,11 @@ declare const _default: {
673
694
  sku: string;
674
695
  value: string;
675
696
  valueQuantity: string;
697
+ taxId: string;
698
+ taxIdType: string;
699
+ taxIdTypeValue: string;
700
+ taxIssuingAuthority: string;
701
+ entityType: string;
676
702
  };
677
703
  nonDelivery: {
678
704
  returnToSender: string;
@@ -745,6 +771,8 @@ declare const _default: {
745
771
  shipment: string;
746
772
  shipments: string;
747
773
  warehouses: string;
774
+ funding: string;
775
+ paymentMethod: string;
748
776
  };
749
777
  months: {
750
778
  january: string;
@@ -823,6 +851,16 @@ declare const _default: {
823
851
  gram: string;
824
852
  kilogram: string;
825
853
  };
854
+ actionsMenu: {
855
+ menuTitle: string;
856
+ actions: {
857
+ printLabel: string;
858
+ voidLabel: string;
859
+ printForms: string;
860
+ edit: string;
861
+ remove: string;
862
+ };
863
+ };
826
864
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
827
865
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
828
866
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
@@ -838,7 +876,11 @@ declare const _default: {
838
876
  };
839
877
  "account-settings": {
840
878
  messages: {
841
- noFundingSources: string;
879
+ transactionHistory: {
880
+ noTransactions: string;
881
+ };
882
+ noFundingSourceDescription: string;
883
+ noFundingSourceAction: string;
842
884
  };
843
885
  title: string;
844
886
  sections: {
@@ -1,5 +1,5 @@
1
1
  import { DeepPartial } from "fishery";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  export type CreateCarrierHandlersParams = {
4
4
  get?: DeepPartial<SE.Carrier>;
5
5
  list?: [count: number, listParams?: DeepPartial<SE.Carrier>];
@@ -1,5 +1,5 @@
1
1
  import { DeepPartial } from "fishery";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  export type CreateWarehouseHandlersParams = {
4
4
  get?: DeepPartial<SE.Warehouse>;
5
5
  list?: [count: number, listParams?: DeepPartial<SE.Warehouse>];
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  /**
4
4
  * @internal
5
5
  *
@@ -1,7 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { prettyFormat as __ } from "@testing-library/dom/types/pretty-dom";
2
+ import { RenderOptions } from "@testing-library/react";
3
3
  import { UserEvent } from "@testing-library/user-event/dist/types/setup/setup";
4
4
  import { IconNames, Theme } from "@shipengine/giger-theme";
5
+ import { ElementsTestProviderProps } from "../elements-provider/elements-test-provider";
5
6
  import server, { baseUrl } from "../mocks/server";
6
7
  declare const theme: Theme;
7
8
  declare const delayedFn: () => Promise<void>;
@@ -170,6 +171,9 @@ declare const customWithin: (element: HTMLElement) => {
170
171
  export * from "@testing-library/react";
171
172
  export { rest } from "msw";
172
173
  export { baseUrl, customScreen as screen, customWithin as within, delayedFn, server, theme };
174
+ export declare const ContentWrapper: ({ children }: {
175
+ children: JSX.Element;
176
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
173
177
  export declare const renderWithProviders: (component: any) => {
174
178
  readonly user: UserEvent;
175
179
  view: import("@testing-library/react").RenderResult<{
@@ -234,7 +238,7 @@ export declare const renderWithProviders: (component: any) => {
234
238
  * This allows components to simulate usage in an Element via `decorators: [withAllProviders]`
235
239
  **/
236
240
  export declare const renderWithAllProviders: (component: any) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
237
- export declare const renderWithAlchemy: (component: any) => {
241
+ export declare const renderWithElements: (component: any, features?: ElementsTestProviderProps["features"]) => {
238
242
  user: UserEvent;
239
243
  container: HTMLElement;
240
244
  baseElement: HTMLElement;
@@ -291,3 +295,4 @@ export declare const renderWithAlchemy: (component: any) => {
291
295
  findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
292
296
  findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
293
297
  };
298
+ export declare const renderWithContent: (ui: React.ReactElement, options?: Omit<RenderOptions, "wrapper">) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
@@ -0,0 +1,3 @@
1
+ import { CustomThemeData } from "@shipengine/giger-theme";
2
+ declare const fallbackThemeData: CustomThemeData;
3
+ export default fallbackThemeData;
@@ -0,0 +1,4 @@
1
+ declare const themeData: {
2
+ fallback: import("@shipengine/giger-theme/dist/lib/ThemeTypes").CustomThemeData;
3
+ };
4
+ export default themeData;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  export type PreferredRateAcknowledgementMessage = {
3
3
  link?: {
4
4
  text: string;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  export type ShippingPreset = {
3
3
  confirmation?: SE.ConfirmationType;
4
4
  dimensions?: SE.DimensionsWithUnit;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -0,0 +1,18 @@
1
+ import { ElementsFeatureFlags } from "./types";
2
+ declare const defaultFeatureFlags: Required<ElementsFeatureFlags>;
3
+ /**
4
+ * @internal
5
+ *
6
+ * # Feature Flags - featureFlagComponentNameLookup
7
+ */
8
+ export declare const featureFlagComponentNameLookup: (componentName: string) => string;
9
+ /**
10
+ * @internal
11
+ *
12
+ * # Feature Flags - getFeatures
13
+ */
14
+ export declare const getDefaultFeatures: (elements: Array<keyof typeof defaultFeatureFlags>) => ElementsFeatureFlags[keyof typeof defaultFeatureFlags];
15
+ export type FeatureObject = Record<string, unknown>;
16
+ export declare const isObject: (item: unknown) => item is FeatureObject;
17
+ export declare function deepMergeFeatures<T extends FeatureObject>(defaults: T, custom?: T): T;
18
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./feature-flags";
2
+ export * from "./types";
@@ -0,0 +1,141 @@
1
+ import { CountryCode } from "../../constants";
2
+ export type EnabledExternalCarriers = ("apc" | "asendia" | "better_trucks" | "canpar" | "chronopost" | "couriers_please" | "courierpost" | "dpd" | "hermes_germany" | "intelliquick_delivery" | "lso" | "ontrac" | "seko" | "ups" | "yodel")[];
3
+ export type EnabledShipEngineCarriers = ("aramex_au_walleted" | "canada_post_walleted" | "canpar_walleted" | "couriersplease_walleted" | "sendle_walleted" | "dhl_express_walleted" | "dhl_express_worldwide" | "dpd_germany_walleted" | "dpdwallet" | "globalpost" | "hermes" | "purolator_walleted" | "stamps_com" | "ups_walleted" | "ups" | "yodel_walleted")[];
4
+ export type RateFormFeatures = {
5
+ /**
6
+ * Enables the `funding` section of the rate form.
7
+ */
8
+ enableFunding?: boolean;
9
+ /**
10
+ * Enables the `global post filtering` on all rates fetched in the rates form.
11
+ */
12
+ enableGlobalPostFiltering?: boolean;
13
+ /**
14
+ * Enables the Pick Up/Drop Off tabs UI in the Rate Form to separate rates with PUDO capability by type.
15
+ */
16
+ enablePudoUI?: boolean;
17
+ /**
18
+ * Enables the `label layout` section of the Purchase Label element.
19
+ */
20
+ labelLayout?: boolean;
21
+ /**
22
+ * Enables showing the `carrier nickname` when rates are fetched.
23
+ */
24
+ nicknameRate?: boolean;
25
+ /**
26
+ * Enables the `DHL terms acknowledgement` when rates are fetched.
27
+ */
28
+ requireDhlTermsAcknowledgement?: boolean;
29
+ /**
30
+ * Enables the `save rate` button in the rate form. This allows users to save a `rateId` for a shipment to be purchased later.
31
+ */
32
+ saveRate?: boolean;
33
+ };
34
+ export type ShipmentFormFeatures = {
35
+ /**
36
+ * Enables the `Add-Ons` section of the shipment form. This allows users to add additional services to their shipment such as
37
+ * delivery confirmation and insurance.
38
+ */
39
+ addOns?: boolean;
40
+ /**
41
+ * Enables the `browse rates` button in the shipment form. This allows users to browse rates for a shipment with
42
+ * varying shipment configurations. This is useful for rate shopping.
43
+ */
44
+ browseRates?: boolean;
45
+ /**
46
+ * Enables the `shipsurance insurance` feature, allowing users to select Shipsurance when insuring their shipment.
47
+ */
48
+ includeShipsuranceInsurance?: boolean;
49
+ /**
50
+ * Enables the `third party insurance` feature, allowing users to opt for third party insurance when insuring their shipment.
51
+ */
52
+ includeThirdPartyInsurance?: boolean;
53
+ /**
54
+ * Enables the `select service` feature, allowing users to select a service when rate shopping across multiple carrier providers.
55
+ */
56
+ selectService?: boolean;
57
+ /**
58
+ * Enables the `shipping presets` feature, allowing users to pass in a set of shipping presets they wish to use within the
59
+ * shipment form of the PurchaseLabel element.
60
+ */
61
+ shippingPresets?: boolean;
62
+ };
63
+ export type ShipmentSummaryFeatures = {
64
+ schedulePickup?: boolean;
65
+ };
66
+ export type PurchaseLabelFeatures = {
67
+ /**
68
+ * List of all supported `countries` available in ShipEngine Elements.
69
+ */
70
+ compatibleCountryCodes?: CountryCode[];
71
+ /**
72
+ * When enabled will modify the default behavior of creating a new shipment for a salesorder to throwing an error
73
+ */
74
+ enableErrorWhenShipmentCancelled?: boolean;
75
+ /**
76
+ * @internal
77
+ *
78
+ * `partnerMessages` enables the partner consuming elements to specify override messages in specific cases.
79
+ */
80
+ partnerMessages?: {
81
+ incompleteLabelPurchaseRequirements?: string;
82
+ };
83
+ /**
84
+ * All scoped feature flags for the `rate form` section of the PurchaseLabel element.
85
+ */
86
+ rateForm?: RateFormFeatures;
87
+ /**
88
+ * All scoped feature flags for the `shipment form` section of the PurchaseLabel element.
89
+ */
90
+ shipmentForm?: ShipmentFormFeatures;
91
+ };
92
+ export type AccountSettingsFeatures = {
93
+ /**
94
+ * Whether or not to display the ShipEngine Carriers section on the Account Settings element.
95
+ */
96
+ showCarrierServices?: boolean;
97
+ /**
98
+ * Whether or not to display the External Carriers section on the Account Settings element.
99
+ */
100
+ showExternalCarriers?: boolean;
101
+ /**
102
+ * Whether or not to display the Shipping Label Layout section on the Account Settings element.
103
+ */
104
+ showLabelLayout?: boolean;
105
+ /**
106
+ * Whether or not to display the Ship From Locations section on the Account Settings element.
107
+ */
108
+ showManageWarehouses?: boolean;
109
+ /**
110
+ * Whether or not to display the Units of Measure section on the Account Settings element.
111
+ */
112
+ showUnitSettings?: boolean;
113
+ /**
114
+ * Whether or not to display the Taxes section on the Account Settings element.
115
+ */
116
+ showVatSettings?: boolean;
117
+ };
118
+ export type GlobalFeatures = {
119
+ /**
120
+ * Availible "Bring your own carrier" carrier codes for carriers that may be added. If this is omitted, new carriers may not be added by this element.
121
+ */
122
+ enabledExternalCarriers?: EnabledExternalCarriers;
123
+ /**
124
+ * list of all walleted carriers that are enabled for use in Elements.
125
+ */
126
+ enabledShipEngineCarriers?: EnabledShipEngineCarriers;
127
+ /**
128
+ * Enables the `Powered by ShipEngine` logo in the footer various elements.
129
+ */
130
+ poweredByShipEngine?: boolean;
131
+ /**
132
+ * Enable the VAT settings to be shown
133
+ */
134
+ showVatSettings?: boolean;
135
+ };
136
+ export type ElementsFeatureFlags = {
137
+ accountSettingsFeatures?: AccountSettingsFeatures;
138
+ globalFeatures?: GlobalFeatures;
139
+ purchaseLabelFeatures?: PurchaseLabelFeatures;
140
+ shipmentSummaryFeatures?: ShipmentSummaryFeatures;
141
+ };
@@ -6,5 +6,7 @@
6
6
  * - This is a utility function that `capitalizes` the first letter of a given string.
7
7
  */
8
8
  export declare const capitalizeFirstLetter: (str: string) => string;
9
+ export declare const capitalizeFirstLetterOfEachWord: (str: string) => string;
9
10
  export declare const pascalize: (str: string) => string;
11
+ export declare const replaceSpacesWithDashes: (str?: string) => string | undefined;
10
12
  export declare const addSpaceBetweenWords: (str: string) => string;
@@ -12,3 +12,4 @@ export * from "./formatString";
12
12
  export * from "./styles";
13
13
  export * from "./tracking-status-formatter";
14
14
  export * from "./validation";
15
+ export * from "./pudo";