@shipengine/elements 0.21.3 → 0.21.4

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 (133) hide show
  1. package/index.cjs +787 -1057
  2. package/index.js +694 -955
  3. package/package.json +2 -6
  4. package/src/components/error-fallback/error-fallback.d.ts +9 -0
  5. package/src/components/error-fallback/index.d.ts +1 -0
  6. package/src/components/field/money-input/hooks/use-utils.d.ts +1 -1
  7. package/src/components/field/money-input/money-input.d.ts +1 -1
  8. package/src/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
  9. package/src/components/field/rate-card/rate-card.d.ts +1 -2
  10. package/src/components/history/history-card/history-card.d.ts +1 -1
  11. package/src/components/index.d.ts +1 -1
  12. package/src/components/items-breakdown/items-breakdown.d.ts +1 -1
  13. package/src/components/label-layout/label-layout-purchase.d.ts +1 -1
  14. package/src/components/label-layout/label-layout-settings.d.ts +1 -1
  15. package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +1 -1
  16. package/src/components/templates/address-display/address-display.d.ts +1 -1
  17. package/src/components/templates/address-form/address-form.d.ts +1 -1
  18. package/src/components/templates/address-preference-display/address-preference-display.d.ts +1 -1
  19. package/src/components/templates/address-preference-select/address-preference-select.d.ts +1 -1
  20. package/src/components/templates/carrier-recovery-form/carrier-recovery-form.d.ts +1 -1
  21. package/src/components/templates/carrier-terms-form/carrier-terms-form.d.ts +1 -1
  22. package/src/components/templates/customs-item-form/customs-item-form.d.ts +1 -1
  23. package/src/components/templates/customs-items-display/customs-items-display.d.ts +1 -1
  24. package/src/components/templates/label/label.d.ts +1 -1
  25. package/src/components/templates/list-carriers/list-carriers.d.ts +2 -2
  26. package/src/components/templates/list-carriers-row/list-carriers-row.d.ts +2 -2
  27. package/src/components/templates/manage-warehouses/manage-warehouses.d.ts +1 -1
  28. package/src/components/templates/onboarding/onboarding.d.ts +1 -1
  29. package/src/components/templates/rate-form/rate-form.d.ts +1 -1
  30. package/src/components/templates/shipment/shipment.d.ts +1 -1
  31. package/src/components/templates/shipment-form/shipment-form.d.ts +1 -1
  32. package/src/components/templates/shipment-form/shipment-schema.d.ts +1 -1
  33. package/src/components/templates/suspend-sales-order/suspend-sales-order.d.ts +1 -1
  34. package/src/components/templates/suspend-shipment/suspend-shipment.d.ts +1 -1
  35. package/src/components/templates/void-label/void-label.d.ts +1 -1
  36. package/src/components/templates/wallet-form/edit-wallet-address-form.d.ts +1 -1
  37. package/src/components/templates/wallet-form/wallet-form.d.ts +1 -1
  38. package/src/components/templates/wallet-form/wallet-schema.d.ts +1 -1
  39. package/src/components/templates/warehouse-display/warehouse-display.d.ts +1 -1
  40. package/src/components/templates/warehouse-form/warehouse-form.d.ts +1 -1
  41. package/src/elements/{components/configure-shipment → configure-shipment}/configure-shipment.d.ts +3 -3
  42. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-address.d.ts +3 -3
  43. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-customs.d.ts +1 -1
  44. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-presets.d.ts +2 -2
  45. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-rates-form.d.ts +1 -1
  46. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-request-rates.d.ts +1 -1
  47. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-shipment-form.d.ts +5 -5
  48. package/src/elements/index.d.ts +6 -6
  49. package/src/elements/{components/list-carriers → list-carriers}/hooks/use-list-connected-carriers.d.ts +3 -3
  50. package/src/elements/list-carriers/index.d.ts +1 -0
  51. package/src/elements/list-carriers/list-carriers.d.ts +578 -0
  52. package/src/elements/manage-warehouses/index.d.ts +1 -0
  53. package/src/elements/manage-warehouses/manage-warehouses.d.ts +582 -0
  54. package/src/elements/onboarding/index.d.ts +1 -0
  55. package/src/elements/onboarding/onboarding.d.ts +581 -0
  56. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-configure-shipment.d.ts +1 -1
  57. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-import-sales-order.d.ts +2 -2
  58. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-load-shipment.d.ts +3 -3
  59. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-pending-shipment.d.ts +1 -1
  60. package/src/elements/purchase-label/index.d.ts +1 -0
  61. package/src/elements/{components/purchase-label → purchase-label}/purchase-label-by-sales-order.d.ts +1 -1
  62. package/src/elements/purchase-label/purchase-label.d.ts +584 -0
  63. package/src/elements/view-shipment/index.d.ts +1 -0
  64. package/src/elements/view-shipment/view-shipment.d.ts +590 -0
  65. package/src/elements/void-label/index.d.ts +1 -0
  66. package/src/elements/void-label/void-label.d.ts +585 -0
  67. package/src/factories/shipengine/address.d.ts +1 -1
  68. package/src/factories/shipengine/carrier.d.ts +1 -1
  69. package/src/factories/shipengine/label.d.ts +1 -1
  70. package/src/factories/shipengine/money.d.ts +1 -1
  71. package/src/factories/shipengine/order-source.d.ts +1 -1
  72. package/src/factories/shipengine/package.d.ts +1 -1
  73. package/src/factories/shipengine/resource.d.ts +1 -1
  74. package/src/factories/shipengine/sales-order.d.ts +1 -1
  75. package/src/factories/shipengine/service.d.ts +1 -1
  76. package/src/factories/shipengine/shipment.d.ts +1 -1
  77. package/src/factories/shipengine/wallet-history.d.ts +1 -1
  78. package/src/factories/shipengine/warehouse.d.ts +1 -1
  79. package/src/factories/shipengine/weight.d.ts +1 -1
  80. package/src/hooks/index.d.ts +0 -1
  81. package/src/hooks/options/use-confirmation-options.d.ts +1 -1
  82. package/src/hooks/options/use-customs-contents-options.d.ts +1 -1
  83. package/src/hooks/options/use-customs-non-delivery-options.d.ts +1 -1
  84. package/src/hooks/options/use-insurance-provider-options.d.ts +1 -1
  85. package/src/hooks/options/use-package-options.d.ts +1 -1
  86. package/src/hooks/options/use-rate-options.d.ts +1 -1
  87. package/src/hooks/options/use-service-code-options.d.ts +1 -1
  88. package/src/hooks/options/use-warehouse-options.d.ts +1 -1
  89. package/src/hooks/use-address-validation.d.ts +1 -1
  90. package/src/hooks/use-carrier-metadata.d.ts +1 -1
  91. package/src/hooks/use-elements.d.ts +1 -1
  92. package/src/hooks/use-scrub-errors.d.ts +1 -1
  93. package/src/index.d.ts +0 -2
  94. package/src/mocks/carriers/handlers.d.ts +1 -1
  95. package/src/mocks/warehouses/handlers.d.ts +1 -1
  96. package/src/schemas/shipengine/money.d.ts +1 -1
  97. package/src/types/carrier-metadata.d.ts +1 -1
  98. package/src/types/shipping-preset/shipping-preset.d.ts +1 -1
  99. package/src/utilities/money.d.ts +1 -1
  100. package/src/utilities/rates.d.ts +1 -1
  101. package/src/utilities/shipengine/address.d.ts +1 -1
  102. package/src/utilities/shipengine/dimensions.d.ts +1 -1
  103. package/src/utilities/shipengine/sales-order.d.ts +1 -1
  104. package/src/utilities/shipengine/shipment.d.ts +1 -1
  105. package/src/utilities/shipengine/weight.d.ts +1 -1
  106. package/src/components/error-boundary/error-boundary.d.ts +0 -31
  107. package/src/components/error-boundary/index.d.ts +0 -1
  108. package/src/elements/components/index.d.ts +0 -7
  109. package/src/elements/components/list-carriers/index.d.ts +0 -1
  110. package/src/elements/components/list-carriers/list-carriers.d.ts +0 -1
  111. package/src/elements/components/manage-warehouses/index.d.ts +0 -1
  112. package/src/elements/components/manage-warehouses/manage-warehouses.d.ts +0 -5
  113. package/src/elements/components/onboarding/index.d.ts +0 -1
  114. package/src/elements/components/onboarding/onboarding.d.ts +0 -4
  115. package/src/elements/components/purchase-label/index.d.ts +0 -3
  116. package/src/elements/components/purchase-label/purchase-label.d.ts +0 -6
  117. package/src/elements/components/shipment/index.d.ts +0 -1
  118. package/src/elements/components/shipment/shipment.d.ts +0 -13
  119. package/src/elements/components/void-label/index.d.ts +0 -1
  120. package/src/elements/components/void-label/void-label.d.ts +0 -8
  121. package/src/elements/list-carriers.d.ts +0 -1
  122. package/src/elements/manage-warehouses.d.ts +0 -1
  123. package/src/elements/onboarding.d.ts +0 -1
  124. package/src/elements/purchase-label.d.ts +0 -3
  125. package/src/elements/view-shipment.d.ts +0 -1
  126. package/src/elements/void-label.d.ts +0 -1
  127. package/src/providers/giger-provider.d.ts +0 -8
  128. package/src/providers/index.d.ts +0 -1
  129. package/src/register.d.ts +0 -16
  130. /package/src/elements/{components/configure-shipment → configure-shipment}/hooks/index.d.ts +0 -0
  131. /package/src/elements/{components/configure-shipment → configure-shipment}/index.d.ts +0 -0
  132. /package/src/elements/{components/purchase-label → purchase-label}/hooks/index.d.ts +0 -0
  133. /package/src/elements/{components/purchase-label → purchase-label}/purchase-label-by-shipment.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/elements",
3
- "version": "0.21.3",
3
+ "version": "0.21.4",
4
4
  "typedoc": {
5
5
  "entryPoint": "./src/index.ts",
6
6
  "readmeFile": "../../README.md",
@@ -22,23 +22,20 @@
22
22
  "type": "module",
23
23
  "types": "./src/index.d.ts",
24
24
  "dependencies": {
25
- "@emotion/cache": "11.10.5",
26
25
  "@emotion/css": "11.10.5",
27
- "@emotion/memoize": "0.8.0",
28
26
  "@emotion/react": "11.10.0",
29
27
  "@emotion/serialize": "1.1.1",
30
28
  "@faker-js/faker": "7.6.0",
31
29
  "@hookform/resolvers": "2.9.1",
32
30
  "@packlink/brands": "3.24.0",
33
31
  "@packlink/giger-theme": "1.3.1",
32
+ "@shipengine/alchemy": "0.4.7",
34
33
  "@shipengine/js-api": "0.6.2",
35
- "@shipengine/react-api": "0.4.8",
36
34
  "@storybook/manager-api": "7.0.0-rc.1",
37
35
  "@storybook/theming": "7.0.0-rc.1",
38
36
  "axios": "0.26.1",
39
37
  "card-validator": "8.1.1",
40
38
  "humps": "2.0.1",
41
- "i18next-browser-languagedetector": "6.1.8",
42
39
  "js-base64": "3.7.3",
43
40
  "libphonenumber-js": "1.10.14",
44
41
  "lodash": "4.17.21",
@@ -47,7 +44,6 @@
47
44
  "react-dom": "18.2.0",
48
45
  "react-hook-form": "7.40.0",
49
46
  "react-query": "3.39.3",
50
- "stylis": "4.1.3",
51
47
  "zod": "3.19.1"
52
48
  }
53
49
  }
@@ -0,0 +1,9 @@
1
+ export interface ErrorFallbackProps {
2
+ error: Error | string;
3
+ }
4
+ /**
5
+ * Fallback component for the Elements ErrorBoundary
6
+ *
7
+ * @see {@link registerElement}
8
+ */
9
+ export declare const ErrorFallback: ({ error }: ErrorFallbackProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./error-fallback";
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  type UseUtils = {
3
3
  getCurrencySymbol: (currency: SE.Currency) => string | undefined;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { InputProps } from "@packlink/giger";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  import { ControlledField } from "../create-field-controller";
4
4
  export declare const transform: {
5
5
  in: ({ amount, currency }?: Partial<{
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  export interface CostBreakdownProps {
4
4
  confirmationAmount?: SE.Money;
5
5
  insuranceAmount?: SE.Money;
@@ -1,7 +1,6 @@
1
1
  import { WithCommonProps } from "@packlink/giger";
2
2
  import { RateOption } from "../../../hooks";
3
3
  export type RateCardProps = Partial<RateOption> & WithCommonProps<{
4
- displayNickname?: boolean;
5
4
  isAcknowledged?: boolean;
6
5
  onClick?: (rateId: string) => void;
7
6
  onClickAcknowledgement?: (isAcknowledged: boolean) => void;
@@ -9,4 +8,4 @@ export type RateCardProps = Partial<RateOption> & WithCommonProps<{
9
8
  selected?: boolean;
10
9
  voided?: boolean;
11
10
  }>;
12
- export declare const RateCard: ({ carrierCode, carrierFriendlyName, carrierNickname, children, className, confirmationAmount, deliveryDays, insuranceAmount, isAcknowledged, messages, displayNickname, onClick, onClickAcknowledgement, otherAmount, rateId, recommended, requiresAcknowledgement, selected, serviceCode, serviceType, shippingAmount, taxAmount, voided, }: RateCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const RateCard: ({ carrierCode, carrierFriendlyName, carrierNickname, children, className, confirmationAmount, deliveryDays, insuranceAmount, isAcknowledged, messages, onClick, onClickAcknowledgement, otherAmount, rateId, recommended, requiresAcknowledgement, selected, serviceCode, serviceType, shippingAmount, taxAmount, voided, }: RateCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { WalletTransaction } from "@shipengine/js-api";
1
+ import { WalletTransaction } from "@shipengine/alchemy";
2
2
  export type HistoryCardProps = {
3
3
  transaction: WalletTransaction;
4
4
  };
@@ -6,7 +6,7 @@ export * from "./carrier-balance";
6
6
  export * from "./cube";
7
7
  export * from "./date-range-combo";
8
8
  export * from "./date-range-select";
9
- export * from "./error-boundary";
9
+ export * from "./error-fallback";
10
10
  export * from "./field";
11
11
  export * from "./field-label";
12
12
  export * from "./form-portal";
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type Item = {
3
3
  detail: string;
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type LabelLayoutPurchaseProps = {
3
3
  onChange: (layout: SE.LabelLayout) => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type LabelLayoutSettingsProps = {
3
3
  onChange: (layout: SE.LabelLayout) => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { CodedError } from "@shipengine/js-api";
1
+ import { CodedError } from "@shipengine/alchemy";
2
2
  import { CarrierTerms } from "../../../types";
3
3
  import { AddCarrierFormPayload } from "./add-carrier-form-schema";
4
4
  export type AddCarrierFormProps = {
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  type AddressDisplayProps = {
3
3
  address: SE.Address;
4
4
  decoratorText?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  import { AddressParserPayload } from "../address-parser";
4
4
  export type AddressFormProps<T = undefined> = {
5
5
  address?: SE.Address;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type AddressPreference = SE.AddressValidation & {
3
3
  alternative?: SE.Address;
4
4
  alternativeSource: "originalAddress" | "matchedAddress";
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type AddressSuggested = {
3
3
  validation: SE.AddressValidation;
4
4
  validationType: "SUGGESTED";
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  import { CarrierRecoveryFormPayload } from "./carrier-recovery-form-schema";
3
3
  export type CarrierRecoveryFormProps = {
4
4
  address?: SE.Address;
@@ -1,4 +1,4 @@
1
- import { CarrierConnection } from "@shipengine/js-api";
1
+ import { CarrierConnection } from "@shipengine/alchemy";
2
2
  export type CarrierTermsProps = {
3
3
  carrierCodes: CarrierConnection["carrierCode"][];
4
4
  onSubmit: (agreement: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  export type CustomsItemFormProps<T = undefined> = {
4
4
  customsItem?: SE.CustomsItem;
5
5
  onCancel?: () => void;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  type CustomsItemsDisplayProps = {
3
3
  onUpdate: (customsItems: SE.CustomsItem[]) => Promise<void>;
4
4
  shipment: SE.SalesOrderShipment;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type LabelProps = {
3
3
  label: SE.Label & {
4
4
  carrier?: SE.Carrier;
@@ -1,5 +1,5 @@
1
- import { CarrierConnection, CodedError } from "@shipengine/js-api";
2
- import { ConnectedCarrierMetadata } from "../../../elements/components/list-carriers/hooks/use-list-connected-carriers";
1
+ import { CarrierConnection, CodedError } from "@shipengine/alchemy";
2
+ import { ConnectedCarrierMetadata } from "../../../elements/list-carriers/hooks/use-list-connected-carriers";
3
3
  export type ListCarriersProps = {
4
4
  carriers?: ConnectedCarrierMetadata[];
5
5
  errors?: CodedError[] | null;
@@ -1,5 +1,5 @@
1
- import { CodedError } from "@shipengine/js-api";
2
- import { ConnectedCarrierMetadata } from "../../../elements/components/list-carriers/hooks/use-list-connected-carriers";
1
+ import { CodedError } from "@shipengine/alchemy";
2
+ import { ConnectedCarrierMetadata } from "../../../elements/list-carriers/hooks/use-list-connected-carriers";
3
3
  import { AddCarrierFormPayload } from "../add-carrier-form";
4
4
  export type ListCarriersRowProps = {
5
5
  connectedCarrier: ConnectedCarrierMetadata;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type WarehousePayload = Partial<SE.Warehouse> & Pick<SE.Warehouse, "name" | "originAddress" | "isDefault">;
3
3
  export type ManageWarehousesProps = {
4
4
  errors?: SE.CodedError[];
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  import { Templates } from "../../../components";
3
3
  export type ValidateWarehouse = {
4
4
  type: "warehouse";
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type RateFormFeatures = {
3
3
  enableFunding?: boolean;
4
4
  enableGlobalPostFiltering?: boolean;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export declare const schedulePickupForCarrier: (carrierCode?: string, plaftformSchedulePickupUrl?: string) => string | undefined;
3
3
  export type ShipmentFeatures = {
4
4
  schedulePickup?: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  import { UseShippingPresetsOptionsProps } from "../../../hooks";
4
4
  import { ShippingPreset } from "../../../types";
5
5
  import { AddressParserPayload } from "../address-parser";
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  type GetShipmentSchemaOptions = {
4
4
  allowInternationalShipFrom?: boolean;
5
5
  isContentDescriptionRequired?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { WithChildrenCommonProps } from "@packlink/giger";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  export type SuspendSalesOrderProps = WithChildrenCommonProps<{
4
4
  errors?: SE.CodedError[];
5
5
  isLoading?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { WithChildrenCommonProps } from "@packlink/giger";
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  export type SuspendShipmentProps = WithChildrenCommonProps<{
4
4
  errors?: SE.CodedError[];
5
5
  isLoading?: boolean;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type VoidLabelProps = {
3
3
  onComplete: (request: SE.VoidRequest, shipment: SE.SalesOrderShipment) => void;
4
4
  onSubmit: () => Promise<void>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SE } from "@shipengine/js-api";
2
+ import { SE } from "@shipengine/alchemy";
3
3
  import { BillingAddressPayload } from "./wallet-schema";
4
4
  export type EditWalletAddressFormProps<T = undefined> = {
5
5
  address?: SE.Address;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type WalletFormFeatures = {};
3
3
  export type WalletPayload = {
4
4
  address: SE.Address;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { CreditCardVendor } from "@shipengine/js-api";
2
+ import { CreditCardVendor } from "@shipengine/alchemy";
3
3
  export declare const billingAddressSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<z.extendShape<{
4
4
  addressLine1: z.ZodString;
5
5
  addressLine2: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  type WarehouseDisplayProps = {
3
3
  warehouse: SE.Warehouse;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  import { WarehousePayload } from "../manage-warehouses";
3
3
  export type WarehouseFormProps = {
4
4
  isOnboarding?: boolean;
@@ -1,6 +1,6 @@
1
- import { SE } from "@shipengine/js-api";
2
- import { Templates } from "../../../components";
3
- import { UseShippingPresetsOptionsProps } from "../../../hooks";
1
+ import { SE } from "@shipengine/alchemy";
2
+ import { Templates } from "../../components";
3
+ import { UseShippingPresetsOptionsProps } from "../../hooks";
4
4
  import { UseRatesFormProps, UseShipmentFormProps } from "./hooks";
5
5
  export type ShipmentFormMode = "browse_rates" | "select_service";
6
6
  export type ConfigureShipmentFeatures = {
@@ -1,6 +1,6 @@
1
- import { SE } from "@shipengine/js-api";
2
- import { Templates } from "../../../../components";
3
- import { CountryCode } from "../../../../constants";
1
+ import { SE } from "@shipengine/alchemy";
2
+ import { Templates } from "../../../components";
3
+ import { CountryCode } from "../../../constants";
4
4
  export type UseAddressProps = {
5
5
  compatibleCountryCodes?: CountryCode[];
6
6
  onChange?: (oldShipment: SE.SalesOrderShipment, updatedShipment: SE.SalesOrderShipment) => Promise<void> | void;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type UseCustomsProps = {
3
3
  onUpdate?: (shipment: SE.SalesOrderShipment) => Promise<void> | void;
4
4
  shipment?: SE.SalesOrderShipment;
@@ -1,5 +1,5 @@
1
- import { SE } from "@shipengine/js-api";
2
- import { ShippingPreset } from "../../../../types";
1
+ import { SE } from "@shipengine/alchemy";
2
+ import { ShippingPreset } from "../../../types";
3
3
  export type UsePresetsProps = {
4
4
  onApply?: (preset: ShippingPreset, shipment: SE.SalesOrderShipment) => Promise<void> | void;
5
5
  shipment?: SE.SalesOrderShipment;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  import { UseRequestRatesProps } from "./use-request-rates";
3
3
  export type UseRatesFormProps = {
4
4
  onBeforeLabelCreate?: (rate: SE.Rate, shipment: SE.SalesOrderShipment) => Promise<void> | void;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type UseRequestRatesProps = {
3
3
  onRatesCalculated?: (rates: SE.Rate[], shipment: SE.SalesOrderShipment) => Promise<void> | void;
4
4
  };
@@ -1,5 +1,5 @@
1
- import { SE } from "@shipengine/js-api";
2
- import { ShippingPreset } from "../../../../types";
1
+ import { SE } from "@shipengine/alchemy";
2
+ import { ShippingPreset } from "../../../types";
3
3
  import { UseAddressProps } from "./use-address";
4
4
  import { UsePresetsProps } from "./use-presets";
5
5
  export type UseShipmentFormProps = {
@@ -13,14 +13,14 @@ export type UseShipmentFormProps = {
13
13
  shipment?: SE.SalesOrderShipment;
14
14
  };
15
15
  export declare const useShipmentForm: ({ compatibleCountryCodes, onAddressValidation, onApplyPreset, onChangeAddress, onShipmentUpdated, onSubmit, salesOrder, shipment, }: UseShipmentFormProps) => {
16
- addressPreference: import("../../../../components/templates").AddressPreference | undefined;
16
+ addressPreference: import("../../../components/templates").AddressPreference | undefined;
17
17
  carriers: SE.Carrier[] | undefined;
18
- charsetWarning: import("../../../../components/templates").CharsetWarning | undefined;
18
+ charsetWarning: import("../../../components/templates").CharsetWarning | undefined;
19
19
  customPackageTypes: SE.CustomPackage[] | undefined;
20
20
  displayableErrors: string[] | undefined;
21
21
  errors: SE.CodedError[] | undefined;
22
22
  onApplyPreset: (preset: ShippingPreset) => Promise<void>;
23
- onChangeAddress: (shipTo: SE.Address, { shouldValidate }: import("../../../../components/templates").OnChangeAddressOptions) => Promise<SE.SalesOrderShipment>;
23
+ onChangeAddress: (shipTo: SE.Address, { shouldValidate }: import("../../../components/templates").OnChangeAddressOptions) => Promise<SE.SalesOrderShipment>;
24
24
  onSubmit: (values: Partial<SE.SalesOrderShipment>) => Promise<SE.SalesOrderShipment>;
25
25
  onSubmitParseShipTo: ({ fullAddress }: {
26
26
  fullAddress: string;
@@ -1,6 +1,6 @@
1
- export { Element as ListCarriers } from "./list-carriers";
2
- export { Element as ManageWarehouses } from "./manage-warehouses";
3
- export { Element as PurchaseLabel } from "./purchase-label";
4
- export { Element as Onboarding } from "./onboarding";
5
- export { Element as ViewShipment } from "./view-shipment";
6
- export { Element as VoidLabel } from "./void-label";
1
+ export * from "./list-carriers";
2
+ export * from "./manage-warehouses";
3
+ export * from "./onboarding";
4
+ export * from "./purchase-label";
5
+ export * from "./view-shipment";
6
+ export * from "./void-label";
@@ -1,11 +1,11 @@
1
- import { CarrierMetadata } from "../../../../types";
1
+ import { CarrierMetadata } from "../../../types";
2
2
  export type ConnectedCarrierMetadata = {
3
3
  carrier: CarrierMetadata;
4
4
  isConnected: boolean;
5
5
  };
6
6
  export declare const useListConnectedCarriers: () => {
7
7
  data: ConnectedCarrierMetadata[];
8
- error: import("@shipengine/react-api").CodedError[] | null;
8
+ error: import("@shipengine/alchemy").CodedError[] | null;
9
9
  isLoading: boolean;
10
- refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<import("@shipengine/react-api").Carrier[], import("@shipengine/react-api").CodedError[]>>;
10
+ refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<import("@shipengine/alchemy").Carrier[], import("@shipengine/alchemy").CodedError[]>>;
11
11
  };
@@ -0,0 +1 @@
1
+ export * as ListCarriers from "./list-carriers";