@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,19 +1,18 @@
1
1
  /// <reference types="react" />
2
- import { SE } from "@shipengine/alchemy";
3
- import { ShipmentFeatures } from "../../components/templates/shipment";
4
- import { VatSettingsFeatures } from "../../features";
2
+ import { SE } from "@shipengine/react-api";
3
+ import { ShipmentSummaryFeatures } from "../../utilities";
5
4
  /**
6
- * # View Shipment Component Props
5
+ * # Shipment Summary Component Props
7
6
  *
8
- * - These are the base props that will be passed into the `<ViewShipment />` component.
7
+ * - These are the base props that will be passed into the `<ShipmentSummary />` component.
9
8
  *
10
- * @see {@link ViewShipment.Component | This prop types usage in the `<ViewShipment />` component}
9
+ * @see {@link ShipmentSummary.Component | This prop types usage in the `<ShipmentSummary />` component}
11
10
  */
12
11
  export type ComponentProps = {
13
12
  /**
14
13
  * `features` is a set of feature flags you would like to enable or disable in this component.
15
14
  */
16
- features?: ShipmentFeatures & VatSettingsFeatures;
15
+ features?: ShipmentSummaryFeatures;
17
16
  /**
18
17
  * `onClickPrintLabel` is a callback function that will be invoked when the user clicks the
19
18
  * `Print Label` button.
@@ -35,21 +34,21 @@ export type ComponentProps = {
35
34
  shipmentId?: string;
36
35
  };
37
36
  /**
38
- * # View Shipment Component
37
+ * # Shipment Summary Component
39
38
  *
40
- * - The `<ViewShipment />` component is used to for viewing the shipment's tracking number, printing the label that
39
+ * - The `<ShipmentSummary />` component is used to for viewing the shipment's tracking number, printing the label that
41
40
  * was created, and the option to void the label. When a label is voided, you can see a list of the
42
41
  * previously voided labels for a given shipment using this component.
43
42
  *
44
- * @param ComponentProps The base props that will be passed into the `<ViewShipment />` component.
43
+ * @param ComponentProps The base props that will be passed into the `<ShipmentSummary />` component.
45
44
  *
46
- * @returns Element An EmotionJSX.Element that will render the `<ViewShipment />` component
45
+ * @returns Element An EmotionJSX.Element that will render the `<ShipmentSummary />` component
47
46
  * with all the appropriate wrappers.
48
47
  *
49
48
  * @example
50
49
  * You can see how the `<Component />` is used in the `createElement` function call below.
51
50
  * ```tsx
52
- * export const Element = alchemy.createElement(Component, ErrorFallback, {
51
+ * export const Element = createElement(Component, ErrorFallback, {
53
52
  * css: { height: "100%", maxWidth: "800px", minWidth: "440px", width: "100%" },
54
53
  * resources: { en },
55
54
  * });
@@ -57,23 +56,23 @@ export type ComponentProps = {
57
56
  *
58
57
  * <br />
59
58
  *
60
- * @see {@link ViewShipment.Element | The **Element** created to render `<ViewShipment />`}
59
+ * @see {@link ShipmentSummary.Element | The **Element** created to render `<ShipmentSummary />`}
61
60
  */
62
61
  export declare const Component: ({ features, onClickPrintLabel, onClickPurchaseLabel, onClickVoidLabel, shipmentId, }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
63
62
  /**
64
- * # Registered View Shipment Element
63
+ * # Registered Shipment Summary Element
65
64
  *
66
- * - This is the registered `<ViewShipment />` element that will be used to render the
67
- * `<ViewShipment.Element />` component.
65
+ * - This is the registered `<ShipmentSummary />` element that will be used to render the
66
+ * `<ShipmentSummary.Element />` component.
68
67
  *
69
68
  * @param ElementProps The props, callbacks, and resources necessary to render
70
- * the `<ViewShipment.Element />` component.
69
+ * the `<ShipmentSummary.Element />` component.
71
70
  *
72
71
  * @example
73
- * The `<Component />` is the source JSX that is rendered when you make use of the `ViewShipment`
72
+ * The `<Component />` is the source JSX that is rendered when you make use of the `ShipmentSummary`
74
73
  * Element directly. Here is a brief example of how you would use it within your application.
75
74
  * ```tsx
76
- * <ViewShipment.Element
75
+ * <ShipmentSummary.Element
77
76
  * onClickPurchaseLabel={({ salesOrderId }) => {
78
77
  * console.log('sales order ID', salesOrderId);
79
78
  * }}
@@ -86,7 +85,7 @@ export declare const Component: ({ features, onClickPrintLabel, onClickPurchaseL
86
85
  *
87
86
  * <br />
88
87
  *
89
- * @see {@link ViewShipment.ComponentProps | The **props** that can be passed into the `<ViewShipment.Element />` component}
88
+ * @see {@link ShipmentSummary.ComponentProps | The **props** that can be passed into the `<ShipmentSummary.Element />` component}
90
89
  *
91
90
  * @see {@link VoidLabel.Element | The next step in the label purchase workflow `<VoidLabel.Element />`}
92
91
  **/
@@ -158,9 +157,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
158
157
  shipDate: string;
159
158
  shipTo: string;
160
159
  warehouse: string;
161
- weight: string; /**
162
- * `features` is a set of feature flags you would like to enable or disable in this component.
163
- */
160
+ weight: string;
164
161
  insuredValue: string;
165
162
  deliveryConfirmation: string;
166
163
  };
@@ -168,10 +165,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
168
165
  multipleShippingServices: string;
169
166
  sections: {
170
167
  labels: string;
171
- shipmentSummary: string; /**
172
- * `onClickVoidLabel` is a callback function that will be invoked when the user clicks the
173
- * `Void Label` button.
174
- */
168
+ shipmentSummary: string;
175
169
  };
176
170
  noLabels: string;
177
171
  };
@@ -193,7 +187,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
193
187
  genericText: string;
194
188
  };
195
189
  };
196
- "shipengine-carriers": {
190
+ "manage-carriers": {
197
191
  title: string;
198
192
  headers: {
199
193
  accountCarriers: string;
@@ -239,6 +233,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
239
233
  };
240
234
  poBox: {
241
235
  title: string;
236
+ /**
237
+ * `onClickVoidLabel` is a callback function that will be invoked when the user clicks the
238
+ * `Void Label` button.
239
+ */
242
240
  description: string;
243
241
  };
244
242
  carrier: {
@@ -271,6 +269,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
271
269
  title: string;
272
270
  };
273
271
  };
272
+ noFundingSource: string;
274
273
  };
275
274
  "rate-details": {
276
275
  total: string;
@@ -295,13 +294,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
295
294
  oversize: string;
296
295
  returns: string;
297
296
  notifications: string;
298
- tip: string;
297
+ tip: string; /**
298
+ * `features` is a set of feature flags you would like to enable or disable in this component.
299
+ */
299
300
  duties_and_taxes: string;
300
301
  brokerage_fee: string;
301
- admin_fee: string; /**
302
- * `onClickPrintLabel` is a callback function that will be invoked when the user clicks the
303
- * `Print Label` button.
304
- */
302
+ admin_fee: string;
305
303
  adjustment: string;
306
304
  auctane_service_fee: string;
307
305
  product_price: string;
@@ -418,7 +416,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
418
416
  today: string;
419
417
  viewMap: string;
420
418
  otherLocations: string;
421
- noServicePointsForService: string;
419
+ noServicePointsForService: string; /**
420
+ * # Shipment Summary Element Props
421
+ *
422
+ * - These are the base props that will be passed into the `<ShipmentSummary />` element.
423
+ *
424
+ * @see {@link ShipmentSummary.Element | See the full type that `typeof Element` will return}
425
+ */
422
426
  error: string;
423
427
  paperless: string;
424
428
  localTimeDisclaimer: string;
@@ -458,6 +462,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
458
462
  subtitle: string;
459
463
  inlineMessage: string;
460
464
  };
465
+ errors: {
466
+ noCarriers: {
467
+ title: string;
468
+ subtitle: string;
469
+ };
470
+ };
461
471
  success: {
462
472
  title: string;
463
473
  subtitle: string;
@@ -503,6 +513,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
503
513
  returnToAddressIsDifferent: string;
504
514
  setDefault: string;
505
515
  shipFrom: string;
516
+ noWarehouses: string;
506
517
  };
507
518
  "manage-funding": {
508
519
  actions: {
@@ -517,30 +528,19 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
517
528
  error: {
518
529
  title: string;
519
530
  message: string;
520
- }; /**
521
- * # View Shipment Component Props
522
- *
523
- * - These are the base props that will be passed into the `<ViewShipment />` component.
524
- *
525
- * @see {@link ViewShipment.Component | This prop types usage in the `<ViewShipment />` component}
526
- */
531
+ };
527
532
  isEnabledCTA: string;
528
533
  isEnabled: string;
529
534
  isLoading: string;
530
535
  lowBalancePurchaseThreshold: string;
531
- maximumPurchasesPerDay: string; /**
532
- * `features` is a set of feature flags you would like to enable or disable in this component.
533
- */
536
+ maximumPurchasesPerDay: string;
534
537
  purchaseAmount: string;
535
538
  readSettings: string;
536
539
  };
537
540
  addFunds: {
538
541
  custom: string;
539
542
  error: {
540
- title: string; /**
541
- * `onClickPurchaseLabel` is a callback function that will be invoked when the user clicks the
542
- * `Purchase Label` button.
543
- */
543
+ title: string;
544
544
  message: string;
545
545
  };
546
546
  isLoading: string;
@@ -561,6 +561,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
561
561
  errors: {
562
562
  balanceUnknown: string;
563
563
  unableToFindBalance: string;
564
+ noFundingSource: string;
564
565
  };
565
566
  byoc: {
566
567
  invoiceNotification: string;
@@ -660,6 +661,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
660
661
  toastTitle: string;
661
662
  toastBody: string;
662
663
  };
664
+ deleteCarrierErrorTitle: string;
665
+ deleteCarrierErrorMessage: string;
666
+ loadingDeletingCarrier: string;
663
667
  };
664
668
  common: {
665
669
  actions: {
@@ -709,7 +713,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
709
713
  modified: string;
710
714
  title: string;
711
715
  originalAddress: string;
712
- matchedAddress: string;
716
+ matchedAddress: string; /**
717
+ * `shipmentId` is the unique identifier for the shipment you wish to view.
718
+ */
713
719
  unableToValidate: string;
714
720
  use: {
715
721
  originalAddress: string;
@@ -762,6 +768,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
762
768
  };
763
769
  customs: {
764
770
  addDeclaration: string;
771
+ noResults: string;
765
772
  contents: {
766
773
  documents: string;
767
774
  gift: string;
@@ -769,6 +776,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
769
776
  returnedGoods: string;
770
777
  sample: string;
771
778
  };
779
+ taxIds: {
780
+ sectionTitle: string;
781
+ addTaxId: string;
782
+ sectionTitleTooltip: string;
783
+ entityTypeTooltipText: string;
784
+ entityTypeTooltipPointOne: string;
785
+ entityTypeTooltipPointTwo: string;
786
+ };
772
787
  currencyChange: string;
773
788
  declarations: string;
774
789
  descriptionTooltip: {
@@ -786,6 +801,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
786
801
  sku: string;
787
802
  value: string;
788
803
  valueQuantity: string;
804
+ taxId: string;
805
+ taxIdType: string;
806
+ taxIdTypeValue: string;
807
+ taxIssuingAuthority: string;
808
+ entityType: string;
789
809
  };
790
810
  nonDelivery: {
791
811
  returnToSender: string;
@@ -798,13 +818,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
798
818
  invalidNameOrCompany: string;
799
819
  parsingFailure: string;
800
820
  incompleteLabelPurchaseRequirements: string;
801
- /**
802
- * # View Shipment Element Props
803
- *
804
- * - These are the base props that will be passed into the `<ViewShipment />` element.
805
- *
806
- * @see {@link ViewShipment.Element | See the full type that `typeof Element` will return}
807
- */
808
821
  shipmentCancelled: string;
809
822
  unableToLoad: {
810
823
  accountSettings: string;
@@ -865,6 +878,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
865
878
  shipment: string;
866
879
  shipments: string;
867
880
  warehouses: string;
881
+ funding: string;
882
+ paymentMethod: string;
868
883
  };
869
884
  months: {
870
885
  january: string;
@@ -943,6 +958,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
943
958
  gram: string;
944
959
  kilogram: string;
945
960
  };
961
+ actionsMenu: {
962
+ menuTitle: string;
963
+ actions: {
964
+ printLabel: string;
965
+ voidLabel: string;
966
+ printForms: string;
967
+ edit: string;
968
+ remove: string;
969
+ };
970
+ };
946
971
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
947
972
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
948
973
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
@@ -958,7 +983,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
958
983
  };
959
984
  "account-settings": {
960
985
  messages: {
961
- noFundingSources: string;
986
+ transactionHistory: {
987
+ noTransactions: string;
988
+ };
989
+ noFundingSourceDescription: string;
990
+ noFundingSourceAction: string;
962
991
  };
963
992
  title: string;
964
993
  sections: {
@@ -978,10 +1007,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
978
1007
  } | undefined;
979
1008
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
980
1009
  /**
981
- * # View Shipment Element Props
1010
+ * # Shipment Summary Element Props
982
1011
  *
983
- * - These are the base props that will be passed into the `<ViewShipment />` element.
1012
+ * - These are the base props that will be passed into the `<ShipmentSummary />` element.
984
1013
  *
985
- * @see {@link ViewShipment.Element | See the full type that `typeof Element` will return}
1014
+ * @see {@link ShipmentSummary.Element | See the full type that `typeof Element` will return}
986
1015
  */
987
1016
  export type ElementProps = React.ComponentProps<typeof Element>;
@@ -1,4 +1,4 @@
1
- import { Shipment, ShipmentStatus } from "@shipengine/alchemy";
1
+ import { Shipment, ShipmentStatus } from "@shipengine/react-api";
2
2
  type ShipmentsGridProps = {
3
3
  onRowClick?: (data: Shipment) => void;
4
4
  shipmentStatus?: ShipmentStatus;
@@ -101,7 +101,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
101
101
  genericText: string;
102
102
  };
103
103
  };
104
- "shipengine-carriers": {
104
+ "manage-carriers": {
105
105
  title: string;
106
106
  headers: {
107
107
  accountCarriers: string;
@@ -179,6 +179,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
179
179
  title: string;
180
180
  };
181
181
  };
182
+ noFundingSource: string;
182
183
  };
183
184
  "rate-details": {
184
185
  total: string;
@@ -363,6 +364,12 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
363
364
  subtitle: string;
364
365
  inlineMessage: string;
365
366
  };
367
+ errors: {
368
+ noCarriers: {
369
+ title: string;
370
+ subtitle: string;
371
+ };
372
+ };
366
373
  success: {
367
374
  title: string;
368
375
  subtitle: string;
@@ -408,6 +415,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
408
415
  returnToAddressIsDifferent: string;
409
416
  setDefault: string;
410
417
  shipFrom: string;
418
+ noWarehouses: string;
411
419
  };
412
420
  "manage-funding": {
413
421
  actions: {
@@ -455,6 +463,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
455
463
  errors: {
456
464
  balanceUnknown: string;
457
465
  unableToFindBalance: string;
466
+ noFundingSource: string;
458
467
  };
459
468
  byoc: {
460
469
  invoiceNotification: string;
@@ -554,6 +563,9 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
554
563
  toastTitle: string;
555
564
  toastBody: string;
556
565
  };
566
+ deleteCarrierErrorTitle: string;
567
+ deleteCarrierErrorMessage: string;
568
+ loadingDeletingCarrier: string;
557
569
  };
558
570
  common: {
559
571
  actions: {
@@ -656,6 +668,7 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
656
668
  };
657
669
  customs: {
658
670
  addDeclaration: string;
671
+ noResults: string;
659
672
  contents: {
660
673
  documents: string;
661
674
  gift: string;
@@ -663,6 +676,14 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
663
676
  returnedGoods: string;
664
677
  sample: string;
665
678
  };
679
+ taxIds: {
680
+ sectionTitle: string;
681
+ addTaxId: string;
682
+ sectionTitleTooltip: string;
683
+ entityTypeTooltipText: string;
684
+ entityTypeTooltipPointOne: string;
685
+ entityTypeTooltipPointTwo: string;
686
+ };
666
687
  currencyChange: string;
667
688
  declarations: string;
668
689
  descriptionTooltip: {
@@ -680,6 +701,11 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
680
701
  sku: string;
681
702
  value: string;
682
703
  valueQuantity: string;
704
+ taxId: string;
705
+ taxIdType: string;
706
+ taxIdTypeValue: string;
707
+ taxIssuingAuthority: string;
708
+ entityType: string;
683
709
  };
684
710
  nonDelivery: {
685
711
  returnToSender: string;
@@ -752,6 +778,8 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
752
778
  shipment: string;
753
779
  shipments: string;
754
780
  warehouses: string;
781
+ funding: string;
782
+ paymentMethod: string;
755
783
  };
756
784
  months: {
757
785
  january: string;
@@ -830,6 +858,16 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
830
858
  gram: string;
831
859
  kilogram: string;
832
860
  };
861
+ actionsMenu: {
862
+ menuTitle: string;
863
+ actions: {
864
+ printLabel: string;
865
+ voidLabel: string;
866
+ printForms: string;
867
+ edit: string;
868
+ remove: string;
869
+ };
870
+ };
833
871
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
834
872
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
835
873
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
@@ -845,7 +883,11 @@ export declare const Element: ({ resources, ...props }: ShipmentsGridProps & {
845
883
  };
846
884
  "account-settings": {
847
885
  messages: {
848
- noFundingSources: string;
886
+ transactionHistory: {
887
+ noTransactions: string;
888
+ };
889
+ noFundingSourceDescription: string;
890
+ noFundingSourceAction: string;
849
891
  };
850
892
  title: string;
851
893
  sections: {
@@ -111,7 +111,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
111
111
  genericText: string;
112
112
  };
113
113
  };
114
- "shipengine-carriers": {
114
+ "manage-carriers": {
115
115
  title: string;
116
116
  headers: {
117
117
  accountCarriers: string;
@@ -189,6 +189,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
189
189
  title: string;
190
190
  };
191
191
  };
192
+ noFundingSource: string;
192
193
  };
193
194
  "rate-details": {
194
195
  total: string;
@@ -373,6 +374,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
373
374
  subtitle: string;
374
375
  inlineMessage: string;
375
376
  };
377
+ errors: {
378
+ noCarriers: {
379
+ title: string;
380
+ subtitle: string;
381
+ };
382
+ };
376
383
  success: {
377
384
  title: string;
378
385
  subtitle: string;
@@ -418,6 +425,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
418
425
  returnToAddressIsDifferent: string;
419
426
  setDefault: string;
420
427
  shipFrom: string;
428
+ noWarehouses: string;
421
429
  };
422
430
  "manage-funding": {
423
431
  actions: {
@@ -465,6 +473,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
465
473
  errors: {
466
474
  balanceUnknown: string;
467
475
  unableToFindBalance: string;
476
+ noFundingSource: string;
468
477
  };
469
478
  byoc: {
470
479
  invoiceNotification: string;
@@ -564,6 +573,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
564
573
  toastTitle: string;
565
574
  toastBody: string;
566
575
  };
576
+ deleteCarrierErrorTitle: string;
577
+ deleteCarrierErrorMessage: string;
578
+ loadingDeletingCarrier: string;
567
579
  };
568
580
  common: {
569
581
  actions: {
@@ -666,6 +678,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
666
678
  };
667
679
  customs: {
668
680
  addDeclaration: string;
681
+ noResults: string;
669
682
  contents: {
670
683
  documents: string;
671
684
  gift: string;
@@ -673,6 +686,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
673
686
  returnedGoods: string;
674
687
  sample: string;
675
688
  };
689
+ taxIds: {
690
+ sectionTitle: string;
691
+ addTaxId: string;
692
+ sectionTitleTooltip: string;
693
+ entityTypeTooltipText: string;
694
+ entityTypeTooltipPointOne: string;
695
+ entityTypeTooltipPointTwo: string;
696
+ };
676
697
  currencyChange: string;
677
698
  declarations: string;
678
699
  descriptionTooltip: {
@@ -690,6 +711,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
690
711
  sku: string;
691
712
  value: string;
692
713
  valueQuantity: string;
714
+ taxId: string;
715
+ taxIdType: string;
716
+ taxIdTypeValue: string;
717
+ taxIssuingAuthority: string;
718
+ entityType: string;
693
719
  };
694
720
  nonDelivery: {
695
721
  returnToSender: string;
@@ -762,6 +788,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
762
788
  shipment: string;
763
789
  shipments: string;
764
790
  warehouses: string;
791
+ funding: string;
792
+ paymentMethod: string;
765
793
  };
766
794
  months: {
767
795
  january: string;
@@ -840,6 +868,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
840
868
  gram: string;
841
869
  kilogram: string;
842
870
  };
871
+ actionsMenu: {
872
+ menuTitle: string;
873
+ actions: {
874
+ printLabel: string;
875
+ voidLabel: string;
876
+ printForms: string;
877
+ edit: string;
878
+ remove: string;
879
+ };
880
+ };
843
881
  ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
844
882
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
845
883
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
@@ -855,7 +893,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
855
893
  };
856
894
  "account-settings": {
857
895
  messages: {
858
- noFundingSources: string;
896
+ transactionHistory: {
897
+ noTransactions: string;
898
+ };
899
+ noFundingSourceDescription: string;
900
+ noFundingSourceAction: string;
859
901
  };
860
902
  title: string;
861
903
  sections: {
@@ -0,0 +1 @@
1
+ export * as TransactionHistory from "./transaction-history-element";