@shipengine/elements 1.5.1 → 1.6.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.
- package/index.cjs +14231 -13991
- package/index.js +14251 -14020
- package/package.json +5 -7
- package/src/components/address-preference-context/address-preference-context.d.ts +2 -1
- package/src/components/auto-funding-form/auto-funding-form.styles.d.ts +4 -8
- package/src/components/date-range-select/date-range-select.d.ts +1 -2
- package/src/components/field/create-field-controller.d.ts +2 -1
- package/src/components/field/date-picker/date-picker.d.ts +2 -6
- package/src/components/field/rate-card/rate-card.d.ts +3 -1
- package/src/components/field/rate-card/rate-card.styles.d.ts +1 -0
- package/src/components/field-label/field-label.d.ts +2 -1
- package/src/components/history/history-card/history-card.d.ts +5 -2
- package/src/components/index.d.ts +5 -2
- package/src/components/service-point-display/service-point-display.d.ts +1 -1
- package/src/components/service-point-display/service-point-display.styles.d.ts +8 -0
- package/src/components/templates/address-display/address-display.d.ts +2 -1
- package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.styles.d.ts +17 -0
- package/src/components/templates/index.d.ts +1 -4
- package/src/components/templates/label/label.styles.d.ts +0 -6
- package/src/components/templates/product-form/product-form-schema.d.ts +0 -12
- package/src/components/templates/pudo-rate-tabs/pudo-rate-tabs.d.ts +6 -1
- package/src/components/templates/rate-form/rate-form.d.ts +2 -1
- package/src/components/templates/rate-form/rate-form.styles.d.ts +2 -4
- package/src/components/templates/shipment-form/shipment-schema.d.ts +0 -50
- package/src/components/{templates/warehouse-form → warehouse-form}/warehouse-form.d.ts +1 -1
- package/src/elements/external-carriers/external-carriers.d.ts +817 -9
- package/src/elements/index.d.ts +5 -2
- package/src/elements/label-layout/index.d.ts +1 -0
- package/src/elements/label-layout/label-layout-element.d.ts +785 -0
- package/src/elements/labels-grid/labels-grid.d.ts +9 -1
- package/src/elements/list-carriers/list-carriers.d.ts +810 -1
- package/src/elements/manage-funding/index.d.ts +1 -0
- package/src/elements/manage-funding/manage-funding-element.d.ts +785 -0
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +805 -1
- package/src/elements/payment-method-settings/index.d.ts +1 -0
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +785 -0
- package/src/elements/{configure-shipment → purchase-label}/configure-shipment.d.ts +1 -12
- package/src/elements/purchase-label/hooks/index.d.ts +8 -0
- package/src/elements/purchase-label/hooks/use-configure-shipment.d.ts +1 -1
- package/src/elements/{configure-shipment → purchase-label}/hooks/use-rates-form.d.ts +1 -1
- package/src/elements/{configure-shipment → purchase-label}/hooks/use-rates-with-cache.d.ts +1 -1
- package/src/elements/{configure-shipment → purchase-label}/hooks/use-request-preferred-rates.d.ts +1 -1
- package/src/elements/{configure-shipment → purchase-label}/hooks/use-request-rates.d.ts +2 -1
- package/src/elements/purchase-label/purchase-label.d.ts +29 -49
- package/src/elements/shipments-grid/shipments-grid.d.ts +9 -1
- package/src/elements/theme-creator/theme-creator.d.ts +9 -1
- package/src/elements/unit-settings/index.d.ts +1 -0
- package/src/elements/unit-settings/unit-settings-element.d.ts +785 -0
- package/src/elements/view-shipment/view-shipment.d.ts +12 -2
- package/src/elements/void-label/void-label.d.ts +9 -1
- package/src/elements/wallet-history/index.d.ts +1 -0
- package/src/elements/wallet-history/wallet-history-element.d.ts +785 -0
- package/src/features/external-carriers/external-carriers.d.ts +10 -0
- package/src/features/external-carriers/index.d.ts +1 -0
- package/src/features/index.d.ts +7 -0
- package/src/features/label-layout/index.d.ts +2 -0
- package/src/features/label-layout/label-layout.d.ts +2 -0
- package/src/features/label-layout/use-label-layout.d.ts +7 -0
- package/src/features/list-carriers/hooks/index.d.ts +2 -0
- package/src/{hooks → features/list-carriers/hooks}/use-carrier-metadata.d.ts +1 -1
- package/src/{components/templates → features/list-carriers}/list-carriers-row/list-carriers-row.d.ts +2 -2
- package/src/features/list-carriers/list-carriers.d.ts +9 -0
- package/src/features/manage-funding/manage-funding.d.ts +16 -0
- package/src/features/manage-warehouses/manage-warehouses.d.ts +1 -0
- package/src/{components → features}/unit-settings/unit-settings.d.ts +0 -5
- package/src/features/wallet-history/wallet-history.styles.d.ts +10 -10
- package/src/hooks/index.d.ts +0 -1
- package/src/hooks/options/use-rate-options.d.ts +1 -1
- package/src/locales/en/index.d.ts +9 -1
- package/src/types/index.d.ts +1 -0
- package/src/types/preferred-rates.d.ts +13 -0
- package/src/utilities/date.d.ts +2 -1
- package/src/utilities/feature-flags.d.ts +1 -1
- package/src/utilities/index.d.ts +1 -0
- package/src/utilities/tracking-status-formatter.d.ts +1 -0
- package/src/{elements → workflows}/account-settings/account-settings.d.ts +14 -50
- package/src/workflows/account-settings/use-get-panel-props.d.ts +4 -0
- package/src/{elements → workflows}/connect-carrier/connect-carrier.d.ts +9 -1
- package/src/workflows/index.d.ts +3 -0
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +1 -1
- package/src/workflows/onboarding/components/ship-from-address-step/ship-from-address-step.d.ts +1 -1
- package/src/workflows/onboarding/components/ship-from-address-step/use-ship-from-address-step.d.ts +1 -1
- package/src/workflows/onboarding/onboarding.d.ts +10 -2
- package/src/workflows/purchase-label-workflow/index.d.ts +1 -0
- package/src/{elements/shipengine-workflow/label-workflow.d.ts → workflows/purchase-label-workflow/purchase-label-workflow.d.ts} +19 -21
- package/src/components/date-range-select/date-range-select.styles.d.ts +0 -7
- package/src/components/field/date-picker/date-picker.styles.d.ts +0 -3
- package/src/components/label-layout/index.d.ts +0 -3
- package/src/components/label-layout/label-layout-purchase.d.ts +0 -5
- package/src/components/label-layout/label-layout-settings.d.ts +0 -7
- package/src/components/label-layout/label-layout.d.ts +0 -9
- package/src/components/manage-funding/manage-funding.d.ts +0 -35
- package/src/components/templates/account-settings/account-settings.d.ts +0 -10
- package/src/components/templates/account-settings/index.d.ts +0 -1
- package/src/components/templates/list-carriers/list-carriers.d.ts +0 -16
- package/src/components/templates/manage-warehouses/manage-warehouses.d.ts +0 -11
- package/src/elements/configure-shipment/hooks/index.d.ts +0 -8
- package/src/elements/configure-shipment/index.d.ts +0 -1
- package/src/elements/shipengine-workflow/index.d.ts +0 -1
- /package/src/components/{templates/edit-billing-form → edit-billing-form}/edit-billing-form.d.ts +0 -0
- /package/src/components/{templates/edit-billing-form → edit-billing-form}/edit-billing-form.styles.d.ts +0 -0
- /package/src/components/{templates/edit-billing-form → edit-billing-form}/index.d.ts +0 -0
- /package/src/components/{templates/wallet-card → wallet-card}/index.d.ts +0 -0
- /package/src/components/{templates/wallet-card → wallet-card}/wallet-card.d.ts +0 -0
- /package/src/components/{templates/wallet-card → wallet-card}/wallet-card.styles.d.ts +0 -0
- /package/src/components/{templates/warehouse-form → warehouse-form}/index.d.ts +0 -0
- /package/src/components/{templates/warehouse-form → warehouse-form}/warehouse-form-schema.d.ts +0 -0
- /package/src/elements/{configure-shipment → purchase-label}/hooks/use-address.d.ts +0 -0
- /package/src/elements/{configure-shipment → purchase-label}/hooks/use-customs.d.ts +0 -0
- /package/src/elements/{configure-shipment → purchase-label}/hooks/use-presets.d.ts +0 -0
- /package/src/elements/{configure-shipment → purchase-label}/hooks/use-shipment-form.d.ts +0 -0
- /package/src/{components → features}/label-layout/label-layout.styles.d.ts +0 -0
- /package/src/{elements → features}/list-carriers/hooks/use-list-connected-carriers.d.ts +0 -0
- /package/src/{components/templates → features}/list-carriers/index.d.ts +0 -0
- /package/src/{components/templates → features/list-carriers}/list-carriers-row/index.d.ts +0 -0
- /package/src/{components/templates → features/list-carriers}/list-carriers-row/list-carriers-row.styles.d.ts +0 -0
- /package/src/{components/templates → features}/list-carriers/list-carriers.styles.d.ts +0 -0
- /package/src/{components → features}/manage-funding/index.d.ts +0 -0
- /package/src/{components/templates → features}/manage-warehouses/index.d.ts +0 -0
- /package/src/{components/templates → features}/manage-warehouses/manage-warehouse.styles.d.ts +0 -0
- /package/src/{components/templates → features/manage-warehouses}/warehouse-display/index.d.ts +0 -0
- /package/src/{components/templates → features/manage-warehouses}/warehouse-display/warehouse-display.d.ts +0 -0
- /package/src/{components → features}/payment-method-settings/index.d.ts +0 -0
- /package/src/{components → features}/payment-method-settings/payment-method-settings.d.ts +0 -0
- /package/src/{components → features}/unit-settings/index.d.ts +0 -0
- /package/src/{elements → workflows}/account-settings/index.d.ts +0 -0
- /package/src/{elements → workflows}/connect-carrier/index.d.ts +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { SE } from "@shipengine/alchemy";
|
|
2
|
-
export type LabelLayoutPurchaseProps = {
|
|
3
|
-
onChange: (layout: SE.LabelLayout) => void;
|
|
4
|
-
};
|
|
5
|
-
export declare const LabelLayoutPurchase: ({ onChange }: LabelLayoutPurchaseProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SE } from "@shipengine/alchemy";
|
|
2
|
-
export type LabelLayoutSettingsProps = {
|
|
3
|
-
errors: SE.CodedError[] | null;
|
|
4
|
-
isSaving: boolean;
|
|
5
|
-
onChange: (layout: SE.LabelLayout) => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const LabelLayoutSettings: ({ errors, isSaving, onChange }: LabelLayoutSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type LabelLayoutProps = {
|
|
2
|
-
display: "settings" | "purchase";
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @namespace LabelLayout
|
|
6
|
-
*
|
|
7
|
-
* # Label Layout Component
|
|
8
|
-
*/
|
|
9
|
-
export declare const LabelLayout: ({ display }: LabelLayoutProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { SE } from "@shipengine/alchemy";
|
|
2
|
-
/**
|
|
3
|
-
# Manage Funding Props
|
|
4
|
-
*
|
|
5
|
-
* - These are the base props that will be passed into the `<ManageFunding />` component.
|
|
6
|
-
*
|
|
7
|
-
* @see {@link ManageFunding | The `<ManageFunding />` component}
|
|
8
|
-
*/
|
|
9
|
-
export type ManageFundingProps = {
|
|
10
|
-
/**
|
|
11
|
-
* `carrierId` is the unique identifier for the carrier provider you wish to manage funding for.
|
|
12
|
-
*/
|
|
13
|
-
carrierId: string;
|
|
14
|
-
/**
|
|
15
|
-
* Currency to be used for the input's placeholders
|
|
16
|
-
*/
|
|
17
|
-
currency: SE.Currency;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @namespace ManageFunding
|
|
21
|
-
*
|
|
22
|
-
* # Manage Funding Component
|
|
23
|
-
*
|
|
24
|
-
* - The `<ManageFunding />` component is used to manage funding rules and add funds to a carrier
|
|
25
|
-
* account, and is composed in the `<AccountSettings />` component.
|
|
26
|
-
*
|
|
27
|
-
* @param ManageFundingProps The base props that will be passed into the `<ManageFunding />` component.
|
|
28
|
-
*
|
|
29
|
-
* @returns Element A React element that renders the `<ManageFunding />` component allowing users
|
|
30
|
-
* manage funding rules and add funds to their carrier accounts.
|
|
31
|
-
*
|
|
32
|
-
* @see {@link ManageFundingProps | The props that are passed into the `<ManageFunding />` component}
|
|
33
|
-
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ManageFunding />` component}
|
|
34
|
-
*/
|
|
35
|
-
export declare const ManageFunding: ({ carrierId, currency }: ManageFundingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SE } from "@shipengine/alchemy";
|
|
2
|
-
import { ConnectCarrierFeatures } from "../../../elements/connect-carrier/connect-carrier";
|
|
3
|
-
import { ListCarriersFeatures } from "../list-carriers";
|
|
4
|
-
export type AccountSettingsFeatures = ListCarriersFeatures & ConnectCarrierFeatures;
|
|
5
|
-
export type AccountSettingsProps = {
|
|
6
|
-
carriers?: SE.Carrier[];
|
|
7
|
-
currency: SE.Currency;
|
|
8
|
-
features?: AccountSettingsFeatures;
|
|
9
|
-
};
|
|
10
|
-
export declare const AccountSettings: ({ features, carriers, currency, ...rest }: AccountSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./account-settings";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CarrierConnection, CodedError } from "@shipengine/alchemy";
|
|
2
|
-
import { ConnectedCarrierMetadata } from "../../../elements/list-carriers/hooks/use-list-connected-carriers";
|
|
3
|
-
export type ListCarriersFeatures = {
|
|
4
|
-
carriers: {
|
|
5
|
-
enabledCarriers: ("stamps_com" | "ups_walleted" | "ups" | "dhl_express_walleted" | "dhl_express_worldwide" | "hermes" | "yodel_walleted" | "dpdwallet")[];
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export type ListCarriersProps = {
|
|
9
|
-
carriers?: ConnectedCarrierMetadata[];
|
|
10
|
-
errors?: CodedError[] | null;
|
|
11
|
-
features?: ListCarriersFeatures;
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
onRegisterCarrier: (payload: CarrierConnection) => Promise<void>;
|
|
14
|
-
registerCarrierErrors?: CodedError[] | null;
|
|
15
|
-
};
|
|
16
|
-
export declare const ListCarriers: ({ carriers, errors, features, isLoading, onRegisterCarrier, registerCarrierErrors, }: ListCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SE } from "@shipengine/alchemy";
|
|
2
|
-
export type WarehousePayload = Partial<SE.Warehouse> & Pick<SE.Warehouse, "name" | "originAddress" | "isDefault">;
|
|
3
|
-
export type ManageWarehousesProps = {
|
|
4
|
-
errors?: SE.CodedError[];
|
|
5
|
-
onAdd: (payload: WarehousePayload) => Promise<void>;
|
|
6
|
-
onDelete: (warehouseId: string) => Promise<void>;
|
|
7
|
-
onEdit: (payload: WarehousePayload, warehouseId: string) => Promise<void>;
|
|
8
|
-
onSetDefault: (warehouse: Partial<SE.Warehouse>, warehouseId: string) => Promise<void>;
|
|
9
|
-
warehouses: SE.Warehouse[];
|
|
10
|
-
};
|
|
11
|
-
export declare const ManageWarehouses: ({ errors, onAdd, onDelete, onEdit, onSetDefault, warehouses, }: ManageWarehousesProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./use-address";
|
|
2
|
-
export * from "./use-customs";
|
|
3
|
-
export * from "./use-presets";
|
|
4
|
-
export * from "./use-rates-form";
|
|
5
|
-
export * from "./use-shipment-form";
|
|
6
|
-
export * from "./use-rates-with-cache";
|
|
7
|
-
export * from "./use-request-rates";
|
|
8
|
-
export * from "./use-request-preferred-rates";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./configure-shipment";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as LabelWorkflow from "./label-workflow";
|
/package/src/components/{templates/edit-billing-form → edit-billing-form}/edit-billing-form.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/components/{templates/warehouse-form → warehouse-form}/warehouse-form-schema.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/{components/templates → features}/manage-warehouses/manage-warehouse.styles.d.ts
RENAMED
|
File without changes
|
/package/src/{components/templates → features/manage-warehouses}/warehouse-display/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|