@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
@@ -12,19 +12,21 @@ export declare const styles: {
12
12
  disconnectCarrierOption: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
13
13
  color: string;
14
14
  };
15
- dropdownOptionList: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
16
- minWidth: number;
17
- };
18
- iconButton: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
19
- "&:hover": {
20
- backgroundColor: "transparent !important";
21
- color: `${string} !important`;
22
- };
23
- backgroundColor: "transparent";
24
- border: number;
15
+ disconnectTitle: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
16
+ alignItems: "center";
25
17
  color: string;
26
- cursor: "pointer";
27
- padding: number;
18
+ display: "flex";
19
+ gap: number;
20
+ };
21
+ dropdownContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
22
+ display: "flex";
23
+ flexDirection: "column";
24
+ gap: number;
25
+ padding: string;
26
+ };
27
+ iconButton: {
28
+ padding: string;
29
+ verticalAlign: string;
28
30
  };
29
31
  logoContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
30
32
  alignItems: "center";
@@ -37,6 +39,11 @@ export declare const styles: {
37
39
  display: "flex";
38
40
  flexDirection: "column";
39
41
  };
42
+ rightContentContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
43
+ alignItems: "center";
44
+ display: "flex";
45
+ gap: number;
46
+ };
40
47
  rowContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
41
48
  alignItems: "center";
42
49
  display: "flex";
@@ -5,7 +5,7 @@ export * from "./address-parser";
5
5
  export * from "./address-preference-display";
6
6
  export * from "./address-preference-select";
7
7
  export * from "./label";
8
- export * from "../../features/shipengine-carriers";
8
+ export * from "../../features/manage-carriers";
9
9
  export * from "./product-form";
10
10
  export * from "./rate-form";
11
11
  export * from "./shipment-form";
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  export type LabelProps = {
3
3
  label: SE.Label & {
4
4
  carrier?: SE.Carrier;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  export type ProductFormProps<T = undefined> = {
4
4
  currency: SE.Currency;
5
5
  expectedCurrency?: SE.Currency;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  type ProductsDisplayProps = {
3
3
  currency: SE.Currency;
4
4
  onUpdate: (products: SE.Product[]) => Promise<void>;
@@ -1,10 +1,10 @@
1
1
  export declare const styles: {
2
- actions: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
2
+ actions: () => {
3
3
  background: string;
4
4
  display: "flex";
5
5
  flexDirection: "column";
6
6
  };
7
- actionsButton: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
7
+ actionsButton: () => {
8
8
  padding: string;
9
9
  verticalAlign: string;
10
10
  };
@@ -21,7 +21,10 @@ export declare const styles: {
21
21
  fontWeight: number;
22
22
  paddingLeft: string;
23
23
  };
24
- header: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
24
+ form: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
25
+ marginBottom: number;
26
+ };
27
+ header: () => {
25
28
  "& > tr > th": {
26
29
  "&:after": {
27
30
  borderBottom: string;
@@ -82,12 +85,17 @@ export declare const styles: {
82
85
  textAlign: "right";
83
86
  width: number;
84
87
  };
88
+ section: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
89
+ marginBottom: number;
90
+ width: string;
91
+ };
85
92
  subtitle: () => {
86
93
  letterSpacing: string;
87
94
  };
88
- table: () => {
95
+ table: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
89
96
  border: string;
90
97
  borderRadius: string;
91
98
  boxShadow: "none";
99
+ marginBottom: number;
92
100
  };
93
101
  };
@@ -1,8 +1,7 @@
1
- import { SE } from "@shipengine/alchemy";
2
- import { ConfigureShipmentFeatures } from "../../../elements/purchase-label/configure-shipment";
3
- import { VatSettingsFeatures } from "../../../features";
1
+ import { SE } from "@shipengine/react-api";
4
2
  import { ServicePointSearchQuery } from "../../../hooks";
5
3
  import { PreferredRatesResponse } from "../../../types";
4
+ import { RateFormFeatures } from "../../../utilities";
6
5
  export type RateFormProps = {
7
6
  carriers?: SE.Carrier[];
8
7
  currency: SE.Currency;
@@ -11,7 +10,7 @@ export type RateFormProps = {
11
10
  displayableSaveRateErrors?: string[];
12
11
  displayableShipmentErrors?: string[];
13
12
  errors?: SE.CodedError[];
14
- features?: ConfigureShipmentFeatures & VatSettingsFeatures;
13
+ features?: RateFormFeatures;
15
14
  fetchServicePoints: (searchQuery: string) => void;
16
15
  isLoading?: boolean;
17
16
  labelErrors?: string[];
@@ -1,17 +1,9 @@
1
- import { SE } from "@shipengine/alchemy";
2
- import { VatSettingsFeatures } from "../../../features";
1
+ import { SE } from "@shipengine/react-api";
2
+ import { ShipmentSummaryFeatures } from "../../../utilities";
3
3
  export declare const schedulePickupForCarrier: (carrierCode?: string, plaftformSchedulePickupUrl?: string) => string | undefined;
4
- export type ShipmentFeatures = {
5
- presentation?: {
6
- poweredByShipEngine?: boolean;
7
- };
8
- shipment?: {
9
- schedulePickup?: boolean;
10
- };
11
- };
12
4
  export type ShipmentProps = {
13
5
  carriers?: SE.Carrier[];
14
- features?: ShipmentFeatures & VatSettingsFeatures;
6
+ features?: ShipmentSummaryFeatures;
15
7
  labels?: SE.Label[];
16
8
  onClickPrintLabel?: () => void;
17
9
  onClickPurchaseLabel?: (order: SE.SalesOrder) => void;
@@ -0,0 +1,2 @@
1
+ export { TaxIds } from "./tax-ids";
2
+ export type { TaxIdFormSchema } from "./tax-ids";
@@ -0,0 +1,3 @@
1
+ export { getTaxIdSchema } from "./schema";
2
+ export { entityTypeOptions, taxIdTypesOptions } from "./values";
3
+ export type { TaxIdFormSchema } from "./schema";
@@ -0,0 +1,38 @@
1
+ import { z } from "zod";
2
+ import { SE } from "@shipengine/react-api";
3
+ export type TaxIdFormSchema = {
4
+ entityType: SE.TaxableEntityType;
5
+ issuingAuthority: string;
6
+ tax: {
7
+ type: SE.TaxableIdentifierType;
8
+ value: string;
9
+ };
10
+ };
11
+ export declare const getTaxIdSchema: () => z.ZodObject<{
12
+ entityType: z.ZodString;
13
+ issuingAuthority: z.ZodString;
14
+ tax: z.ZodObject<{
15
+ type: z.ZodString;
16
+ value: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ value: string;
19
+ type: string;
20
+ }, {
21
+ value: string;
22
+ type: string;
23
+ }>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ entityType: string;
26
+ issuingAuthority: string;
27
+ tax: {
28
+ value: string;
29
+ type: string;
30
+ };
31
+ }, {
32
+ entityType: string;
33
+ issuingAuthority: string;
34
+ tax: {
35
+ value: string;
36
+ type: string;
37
+ };
38
+ }>;
@@ -0,0 +1,12 @@
1
+ import { SE } from "@shipengine/react-api";
2
+ type TaxIdTypeOption = {
3
+ label: string;
4
+ value: SE.TaxableIdentifierType;
5
+ };
6
+ type EntityTypeOption = {
7
+ label: string;
8
+ value: SE.TaxableEntityType;
9
+ };
10
+ export declare const taxIdTypesOptions: TaxIdTypeOption[];
11
+ export declare const entityTypeOptions: EntityTypeOption[];
12
+ export {};
@@ -0,0 +1,2 @@
1
+ export { TaxIds } from "./tax-ids";
2
+ export type { TaxIdFormSchema } from "./form";
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { SE } from "@shipengine/react-api";
3
+ import { TaxIdFormSchema } from "./form";
4
+ export declare const FormID = "tax-id-form";
5
+ type TaxIdFormProps = {
6
+ onCancel?: () => void;
7
+ onSubmit: (values: TaxIdFormSchema) => void;
8
+ taxIdToEdit?: SE.TaxIdentifier;
9
+ } & ({
10
+ formId: string;
11
+ portalRef: React.RefObject<HTMLElement>;
12
+ } | {
13
+ formId?: string;
14
+ portalRef?: never;
15
+ });
16
+ export declare const TaxIdForm: ({ portalRef, taxIdToEdit, onSubmit, onCancel }: TaxIdFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,12 @@
1
+ import { SE } from "@shipengine/react-api";
2
+ import { Actions } from "../../../../../../../components";
3
+ type TaxIdListProps = {
4
+ /** Callback when the user selects one option from the Actions Menu */
5
+ handleActionsClick: (selectedIndex: number) => (action: Actions) => Promise<void>;
6
+ /** Flag to set the ActionsMenu as loading of the desired index */
7
+ itemIndexLoading?: number;
8
+ /** List of SE.TaxIdentifier to render */
9
+ taxIdItems: SE.TaxIdentifier[];
10
+ };
11
+ export declare const TaxIdList: ({ taxIdItems, itemIndexLoading, handleActionsClick }: TaxIdListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import { SE } from "@shipengine/react-api";
2
+ type TaxIdsProps = {
3
+ onDirty: () => void;
4
+ onUpdateTaxableIds?: (taxIds: SE.TaxIdentifier[], onError: (errors: SE.CodedError[]) => void) => Promise<SE.SalesOrderShipment>;
5
+ shipment: SE.SalesOrderShipment;
6
+ };
7
+ export declare const TaxIds: ({ shipment, onUpdateTaxableIds, onDirty }: TaxIdsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,70 @@
1
+ export declare const styles: {
2
+ addTaxIdLink: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
+ alignSelf: "end";
4
+ fontWeight: number;
5
+ };
6
+ addTaxIdLinkOpened: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
7
+ ":hover": {
8
+ color: string;
9
+ };
10
+ color: string;
11
+ };
12
+ addTaxIdTitleWrapper: () => {
13
+ alignItems: "center";
14
+ display: "flex";
15
+ };
16
+ iconTooltip: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
17
+ color: string;
18
+ marginLeft: number;
19
+ };
20
+ section: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
21
+ marginBottom: number;
22
+ };
23
+ taxIdFormSection: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
24
+ backgroundColor: string;
25
+ padding: number;
26
+ };
27
+ taxIdList: () => {
28
+ listStyle: "none";
29
+ };
30
+ taxIdListItem: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
31
+ ":first-of-type:nth-last-child(n+2)": {
32
+ borderBottomLeftRadius: number;
33
+ borderBottomRightRadius: number;
34
+ };
35
+ ":not(:first-of-type)": {
36
+ borderTop: number;
37
+ borderTopLeftRadius: number;
38
+ borderTopRightRadius: number;
39
+ };
40
+ ":not(:first-of-type):not(:last-child)": {
41
+ borderBottomLeftRadius: number;
42
+ borderBottomRightRadius: number;
43
+ };
44
+ border: string;
45
+ borderRadius: string;
46
+ display: "flex";
47
+ justifyContent: "space-between";
48
+ padding: number;
49
+ };
50
+ taxIdListItemAuthorityTag: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
51
+ marginRight: number;
52
+ };
53
+ taxIdListItemAuthorityText: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
54
+ color: string;
55
+ };
56
+ taxIdListItemAuthorityWrapper: () => {
57
+ alignItems: "center";
58
+ display: "flex";
59
+ };
60
+ taxIdListItemIdentifier: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
61
+ marginRight: number;
62
+ };
63
+ tooltipContainer: () => {
64
+ textAlign: "left";
65
+ width: number;
66
+ };
67
+ tooltipList: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
68
+ paddingLeft: number;
69
+ };
70
+ };
@@ -0,0 +1,10 @@
1
+ import { UseFormReturn } from "react-hook-form";
2
+ import { SE } from "@shipengine/react-api";
3
+ import { ShipmentFormProps } from "../../shipment-form";
4
+ import { ShipmentFormFields } from "../../shipment-schema";
5
+ type CustomsFormsProps = {
6
+ form: UseFormReturn<ShipmentFormFields>;
7
+ shipment: SE.SalesOrderShipment;
8
+ } & Pick<ShipmentFormProps, "currency" | "onDirty" | "onUpdateCustoms" | "onUpdateTaxableIds">;
9
+ export declare const CustomsForms: ({ form, currency, onUpdateCustoms, onUpdateTaxableIds, shipment, onDirty, }: CustomsFormsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1 @@
1
+ export { CustomsForms } from "./customs-forms";
@@ -0,0 +1 @@
1
+ export { CustomsForms } from "./customs-forms";
@@ -1,21 +1,14 @@
1
1
  import React from "react";
2
- import { SE } from "@shipengine/alchemy";
2
+ import { SE } from "@shipengine/react-api";
3
3
  import { UseShippingPresetsOptionsProps } from "../../../hooks";
4
4
  import { ShippingPreset } from "../../../types";
5
+ import { ShipmentFormFeatures } from "../../../utilities";
5
6
  import { AddressParserPayload } from "../address-parser";
6
7
  import { AddressPreference, AddressPreferenceDisplayProps } from "../address-preference-display";
7
8
  export type OnChangeAddressOptions = {
8
9
  shouldValidate?: boolean;
9
10
  };
10
11
  export type ShipmentFormMode = "browse_rates" | "select_service";
11
- export type ShipmentFormFeatures = {
12
- addOns?: boolean;
13
- browseRates?: boolean;
14
- includeShipsuranceInsurance?: boolean;
15
- includeThirdPartyInsurance?: boolean;
16
- selectService?: boolean;
17
- shippingPresets?: boolean;
18
- };
19
12
  export type ShipmentFormProps = {
20
13
  accountSettings?: SE.AccountSettings;
21
14
  addressLoading: boolean;
@@ -42,6 +35,7 @@ export type ShipmentFormProps = {
42
35
  onSubmitParseShipTo: (payload: AddressParserPayload) => Promise<SE.AddressExtraction | undefined>;
43
36
  onToggleAddressPreferenceDisclosure?: AddressPreferenceDisplayProps["onToggleDisclosure"];
44
37
  onUpdateCustoms?: (customs: SE.Customs, products: SE.Product[]) => Promise<SE.SalesOrderShipment | undefined>;
38
+ onUpdateTaxableIds?: (taxIds: SE.TaxIdentifier[], onError: (errors: SE.CodedError[]) => void) => Promise<SE.SalesOrderShipment>;
45
39
  parseAddressErrors?: SE.CodedError[];
46
40
  resetParseAddress?: () => void;
47
41
  salesOrder?: SE.SalesOrder;
@@ -55,4 +49,4 @@ export type CharsetWarning = {
55
49
  message: string;
56
50
  title?: string;
57
51
  };
58
- export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, currency, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onChangeWarehouse, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, parseAddressErrors, resetParseAddress, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
52
+ export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, currency, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onChangeWarehouse, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, onUpdateTaxableIds, parseAddressErrors, resetParseAddress, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ export declare const styles: {
2
+ header: {
3
+ textAlign: "left";
4
+ };
5
+ well: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
6
+ backgroundColor: string;
7
+ padding: number;
8
+ };
9
+ };
@@ -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
  type GetShipmentSchemaOptions = {
4
4
  dimensionsUnit?: SE.DimensionUnit;
5
5
  isContentDescriptionRequired?: boolean;
@@ -1,5 +1,5 @@
1
- import { SE } from "@shipengine/alchemy";
2
1
  import { WithChildrenCommonProps } from "@shipengine/giger";
2
+ import { SE } from "@shipengine/react-api";
3
3
  export type SuspendSalesOrderProps = WithChildrenCommonProps<{
4
4
  errors?: SE.CodedError[];
5
5
  isLoading?: boolean;
@@ -1,5 +1,5 @@
1
- import { SE } from "@shipengine/alchemy";
2
1
  import { WithChildrenCommonProps } from "@shipengine/giger";
2
+ import { SE } from "@shipengine/react-api";
3
3
  export type SuspendShipmentProps = WithChildrenCommonProps<{
4
4
  errors?: SE.CodedError[];
5
5
  isLoading?: boolean;
@@ -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 { BillingAddressPayload } from "./wallet-schema";
4
4
  export type EditWalletAddressFormProps<T = undefined> = {
5
5
  address?: SE.Address;
@@ -1,5 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
2
- import { VatSettingsFeatures } from "../../../features";
1
+ import { SE } from "@shipengine/react-api";
3
2
  export type WalletFormFeatures = {};
4
3
  export type WalletPayload = {
5
4
  address: SE.Address;
@@ -9,7 +8,6 @@ export type WalletPayload = {
9
8
  export type WalletFormProps = {
10
9
  address: SE.Address;
11
10
  errors?: SE.CodedError[] | null;
12
- features?: VatSettingsFeatures;
13
11
  onSubmit: (payload: WalletPayload) => Promise<void>;
14
12
  };
15
- export declare const WalletForm: ({ address, errors, onSubmit, features }: WalletFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
13
+ export declare const WalletForm: ({ address, errors, onSubmit }: WalletFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { Provider } from "@shipengine/alchemy";
2
+ import { Provider } from "@shipengine/react-api";
3
3
  export declare const walletEmailSchemas: {
4
4
  emailOptional: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
5
5
  emailRequired: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/react-api";
2
2
  export type WalletCardProps = {
3
3
  fundingSource?: SE.FundingSource;
4
4
  onEdit: () => void;
@@ -1,6 +1,7 @@
1
- import { SE } from "@shipengine/alchemy";
1
+ /// <reference types="react" />
2
+ import { SE } from "@shipengine/react-api";
2
3
  export type WarehousePayload = Partial<SE.Warehouse> & Pick<SE.Warehouse, "name" | "originAddress" | "isDefault">;
3
- export type WarehouseFormProps = {
4
+ export type WarehouseFormProps<T = undefined> = {
4
5
  onCancel?: () => void;
5
6
  onDelete?: () => void;
6
7
  onSubmit: (payload: WarehousePayload) => void;
@@ -8,5 +9,11 @@ export type WarehouseFormProps = {
8
9
  submitButtonTitle: string;
9
10
  useStrictSchema?: boolean;
10
11
  warehouse?: SE.Warehouse | Pick<SE.Warehouse, "name" | "isDefault" | "originAddress" | "returnAddress">;
11
- };
12
- export declare const WarehouseForm: ({ onCancel, onDelete, onSubmit, submitButtonTitle, warehouse, shouldForceDefault, useStrictSchema, }: WarehouseFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
+ } & ({
13
+ formId: string;
14
+ portalRef: React.RefObject<T>;
15
+ } | {
16
+ formId?: string;
17
+ portalRef?: never;
18
+ });
19
+ export declare const WarehouseForm: <T extends Element>({ onCancel, formId, onDelete, onSubmit, portalRef, submitButtonTitle, warehouse, shouldForceDefault, useStrictSchema, }: WarehouseFormProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { LinkActionProps } from "../link-action";
2
+ export type ZeroStateProps = {
3
+ description?: string;
4
+ showLinkAction?: LinkActionProps;
5
+ };
6
+ export declare const ZeroState: ({ description, showLinkAction }: ZeroStateProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ export declare const styles: {
2
+ container: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
3
+ alignItems: "center";
4
+ borderColor: string;
5
+ borderRadius: string;
6
+ borderStyle: "dashed";
7
+ borderWidth: string;
8
+ display: "flex";
9
+ flexDirection: "column";
10
+ gap: number;
11
+ padding: string;
12
+ textAlign: "center";
13
+ };
14
+ };
@@ -0,0 +1,10 @@
1
+ import { Theme } from "@emotion/react";
2
+ import { Interpolation } from "@emotion/serialize";
3
+ import { ElementComponent, ElementFallbackComponent, TranslationResources } from "./element";
4
+ export interface CreateElementOptions<T extends TranslationResources> {
5
+ css?: Interpolation<Theme>;
6
+ resources?: T;
7
+ }
8
+ export declare const createElement: <P extends object, T extends TranslationResources<import("./element").TranslationNamespaces>>(Component: ElementComponent<P>, fallback: ElementFallbackComponent, options?: CreateElementOptions<T> | undefined) => ({ resources, ...props }: P & {
9
+ resources?: T | undefined;
10
+ }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { WithConditionalCSSProp } from "@emotion/react/types/jsx-namespace";
3
+ import { TranslationResources } from "./hooks";
4
+ export type ElementComponentProps = object & WithConditionalCSSProp<object>;
5
+ export type ElementComponent<P extends ElementComponentProps> = React.ComponentType<P>;
6
+ export type ElementFallbackComponentProps = {
7
+ error: Error;
8
+ };
9
+ export type ElementFallbackComponent = React.ComponentType<ElementFallbackComponentProps>;
10
+ export interface ElementProps {
11
+ children: React.ReactElement<ElementComponentProps>;
12
+ className?: string;
13
+ fallback: ElementFallbackComponent;
14
+ resources?: TranslationResources;
15
+ }
16
+ export declare const Element: ({ children, className, fallback: FallbackComponent, resources, }: ElementProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./use-i18n";
@@ -0,0 +1,12 @@
1
+ export type TranslationNamespaces = {
2
+ [key: string]: Record<string, any>;
3
+ common: Record<string, any>;
4
+ };
5
+ export type TranslationResources<Namespaces = TranslationNamespaces> = {
6
+ [key: string]: Namespaces;
7
+ en: Namespaces;
8
+ };
9
+ export interface UseI18nProps {
10
+ resources?: TranslationResources;
11
+ }
12
+ export declare const useI18n: ({ resources }: UseI18nProps) => import("i18next").i18n;
@@ -0,0 +1,3 @@
1
+ export * from "./element";
2
+ export * from "./hooks";
3
+ export * from "./utils";
@@ -0,0 +1,2 @@
1
+ import { EmotionCache } from "@emotion/react";
2
+ export declare const getEmotionCache: (scope: string, container?: HTMLElement) => EmotionCache;
@@ -0,0 +1 @@
1
+ export * from "./get-emotion-cache";
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ import { ElementsErrorHandler } from "../../elements-provider";
3
+ export interface ErrorProps {
4
+ error: Error;
5
+ }
6
+ export type ErrorBoundaryProps = {
7
+ children: React.ReactNode;
8
+ fallback: React.ComponentType<{
9
+ error: Error;
10
+ }>;
11
+ onError: ElementsErrorHandler;
12
+ };
13
+ type ErrorBoundaryState = {
14
+ error?: Error;
15
+ };
16
+ declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
17
+ constructor(props: ErrorBoundaryProps);
18
+ componentDidCatch(error: Error, context: React.ErrorInfo): void;
19
+ render(): string | number | boolean | React.ReactFragment | import("@emotion/react/jsx-runtime").JSX.Element | null | undefined;
20
+ }
21
+ export { ErrorBoundary };
@@ -0,0 +1 @@
1
+ export * from "./error-boundary";
@@ -0,0 +1 @@
1
+ export * from "./create-element";
@@ -1,15 +1,16 @@
1
- export * from "./shipengine-carriers";
1
+ export * from "./manage-carriers";
2
2
  export * from "./manage-warehouses";
3
3
  export * from "./purchase-label";
4
- export * from "./external-carriers";
4
+ export * from "./manage-external-carriers";
5
5
  export * from "./labels-grid";
6
6
  export * from "./shipments-grid";
7
7
  export * from "./theme-creator";
8
- export * from "./view-shipment";
8
+ export * from "./shipment-summary";
9
9
  export * from "./void-label";
10
10
  export * from "./unit-settings";
11
11
  export * from "./manage-funding";
12
12
  export * from "./label-layout";
13
13
  export * from "./payment-method-settings";
14
14
  export * from "./label-layout";
15
- export * from "../workflows/manage-wallet-workflow";
15
+ export * from "../workflows/carrier-services";
16
+ export * from "./transaction-history";