@shipengine/elements 1.8.0 → 2.0.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/README.md +0 -4
- package/address-8f8119f4.js +1 -0
- package/assertions-dfa95b4d.js +1 -0
- package/carrier-c2a5ed53.js +1 -0
- package/carrier-logo-330e926f.js +1 -0
- package/components.js +1 -0
- package/constants.js +1 -0
- package/elements.js +1 -0
- package/extensions.js +1 -0
- package/formatString-413ec7c7.js +1 -0
- package/hooks.js +1 -0
- package/index.js +1 -25578
- package/money-d4f3d7c3.js +1 -0
- package/package.json +53 -7
- package/phone-87dd7bd8.js +1 -0
- package/schemas.js +1 -0
- package/shipment-150160e0.js +1 -0
- package/src/components/add-funds-form/add-funds-form.d.ts +1 -1
- package/src/components/address-preference-context/address-preference-context.d.ts +5 -2
- package/src/components/auto-funding-form/auto-funding-form.d.ts +1 -1
- package/src/components/carrier-balance/carrier-balance.d.ts +1 -1
- package/src/components/carrier-icon/carrier-icon.d.ts +9 -9
- package/src/components/carrier-logo/carrier-logo.d.ts +2 -1
- package/src/components/collapsible-panel/collapsible-panel.d.ts +1 -1
- package/src/components/display-term/display-term.d.ts +1 -1
- package/src/components/edit-billing-form/edit-billing-form.d.ts +1 -1
- package/src/components/field/date-picker/date-picker.d.ts +1 -1
- package/src/components/field/money-input/money-input.d.ts +1 -1
- package/src/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
- package/src/components/field/rate-card/rate-card.d.ts +3 -2
- package/src/components/field/rate-card/rate-card.styles.d.ts +0 -1
- package/src/components/field/rate-select/rate-select.d.ts +7 -2
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +5 -2
- package/src/components/here-map/here-map.d.ts +16 -0
- package/src/components/here-map/here-map.styles.d.ts +23 -0
- package/src/components/history/history-card/history-card.d.ts +1 -1
- package/src/components/index.d.ts +1 -0
- package/src/components/items-breakdown/items-breakdown.d.ts +1 -1
- package/src/components/modal/modal.d.ts +2 -1
- package/src/components/pager/pager.d.ts +1 -1
- package/src/components/rate-details/index.d.ts +1 -0
- package/src/components/rate-details/rate-details.d.ts +17 -0
- package/src/components/rate-details/rate-details.styles.d.ts +23 -0
- package/src/components/save-status/save-status.d.ts +1 -1
- package/src/components/search-bar/index.d.ts +1 -0
- package/src/components/search-bar/search-bar.d.ts +8 -0
- package/src/components/service-point-display/operating-hours.d.ts +6 -0
- package/src/components/service-point-display/operating-hours.styles.d.ts +44 -0
- package/src/components/service-point-display/service-point-display.d.ts +6 -6
- package/src/components/service-point-display/service-point-display.styles.d.ts +13 -19
- package/src/components/service-points/service-points.d.ts +3 -2
- package/src/components/tabs/tabs.d.ts +5 -1
- package/src/components/tabs/tabs.styles.d.ts +3 -2
- package/src/components/templates/address-display/address-display.d.ts +1 -1
- package/src/components/templates/address-preference-display/address-preference-display.d.ts +1 -1
- package/src/components/templates/address-preference-select/address-preference-select.d.ts +1 -1
- package/src/components/templates/connect-external-carrier-form/connect-external-carrier-form.d.ts +12 -0
- package/src/components/templates/connect-external-carrier-form/index.d.ts +1 -0
- package/src/components/templates/index.d.ts +2 -2
- package/src/components/templates/label/label.d.ts +1 -1
- package/src/components/templates/label/label.styles.d.ts +21 -1
- package/src/components/templates/product-form/product-form-schema.d.ts +12 -0
- package/src/components/templates/product-form/product-form.d.ts +1 -1
- package/src/components/templates/products-display/products-display.d.ts +1 -1
- package/src/components/templates/pudo-rate-tabs/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/pudo-list-view/pudo-list-view.d.ts +5 -0
- package/src/components/templates/pudo-rate-tabs/pudo-map-view/pudo-map-view.d.ts +15 -0
- package/src/components/templates/pudo-rate-tabs/pudo-rate-tabs.d.ts +17 -15
- package/src/components/templates/rate-form/rate-form.d.ts +11 -4
- package/src/components/templates/register-funding-source-carrier-form/index.d.ts +2 -0
- package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.d.ts +13 -0
- package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.styles.d.ts +25 -0
- package/src/components/templates/{add-carrier-form/add-carrier-form-schema.d.ts → register-funding-source-carrier-form/register-funding-source-carrier-schema.d.ts} +42 -88
- package/src/components/templates/shipment/shipment.d.ts +3 -10
- package/src/components/templates/shipment-form/shipment-form.d.ts +2 -9
- package/src/components/templates/shipment-form/shipment-schema.d.ts +1 -1
- package/src/components/templates/suspend-sales-order/suspend-sales-order.d.ts +1 -1
- package/src/components/templates/suspend-shipment/suspend-shipment.d.ts +1 -1
- package/src/components/templates/wallet-form/edit-wallet-address-form.d.ts +1 -1
- package/src/components/templates/wallet-form/wallet-form.d.ts +2 -4
- package/src/components/templates/wallet-form/wallet-schema.d.ts +1 -1
- package/src/components/wallet-card/wallet-card.d.ts +1 -1
- package/src/components/warehouse-form/warehouse-form.d.ts +1 -1
- package/src/create-element/create-element.d.ts +10 -0
- package/src/create-element/element/element.d.ts +16 -0
- package/src/create-element/element/hooks/index.d.ts +1 -0
- package/src/create-element/element/hooks/use-i18n.d.ts +12 -0
- package/src/create-element/element/index.d.ts +3 -0
- package/src/create-element/element/utils/get-emotion-cache.d.ts +2 -0
- package/src/create-element/element/utils/index.d.ts +1 -0
- package/src/create-element/error-boundary/error-boundary.d.ts +21 -0
- package/src/create-element/error-boundary/index.d.ts +1 -0
- package/src/create-element/index.d.ts +1 -0
- package/src/elements/index.d.ts +5 -4
- package/src/elements/label-layout/label-layout-element.d.ts +50 -4
- package/src/elements/labels-grid/labels-grid.d.ts +51 -5
- package/src/elements/manage-carriers/index.d.ts +1 -0
- package/src/elements/{shipengine-carriers/shipengine-carriers.d.ts → manage-carriers/manage-carriers.d.ts} +101 -49
- package/src/elements/manage-external-carriers/index.d.ts +1 -0
- package/src/elements/{external-carriers/external-carriers.d.ts → manage-external-carriers/manage-external-carriers.d.ts} +58 -41
- package/src/elements/manage-funding/manage-funding-element.d.ts +50 -4
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +68 -5
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +50 -4
- package/src/elements/purchase-label/configure-shipment.d.ts +4 -26
- package/src/elements/purchase-label/hooks/use-address.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-configure-shipment.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-customs.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-import-sales-order.d.ts +2 -2
- package/src/elements/purchase-label/hooks/use-load-shipment.d.ts +3 -3
- package/src/elements/purchase-label/hooks/use-pending-shipment.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-presets.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-rates-form.d.ts +6 -1
- package/src/elements/purchase-label/hooks/use-rates-with-cache.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-request-preferred-rates.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-request-rates.d.ts +1 -1
- package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +1 -1
- package/src/elements/purchase-label/purchase-label-by-sales-order.d.ts +1 -1
- package/src/elements/purchase-label/purchase-label-by-shipment.d.ts +1 -1
- package/src/elements/purchase-label/purchase-label.d.ts +67 -44
- package/src/elements/shipment-summary/index.d.ts +1 -0
- package/src/elements/{view-shipment/view-shipment.d.ts → shipment-summary/shipment-summary.d.ts} +87 -51
- package/src/elements/shipments-grid/shipments-grid.d.ts +51 -5
- package/src/elements/theme-creator/theme-creator.d.ts +50 -4
- package/src/elements/theme-creator/themeData/themeData.d.ts +0 -1
- package/src/elements/transaction-history/index.d.ts +1 -0
- package/src/elements/{wallet-history/wallet-history-element.d.ts → transaction-history/transaction-history-element.d.ts} +50 -4
- package/src/elements/unit-settings/unit-settings-element.d.ts +50 -4
- package/src/elements/vat-settings/vat-settings-element.d.ts +50 -4
- package/src/elements/void-label/components/actions/actions.d.ts +4 -4
- package/src/elements/void-label/components/message/message.d.ts +1 -1
- package/src/elements/void-label/void-label.d.ts +80 -45
- package/src/elements-provider/elements-provider.d.ts +46 -0
- package/src/elements-provider/elements-test-provider.d.ts +3 -0
- package/src/elements-provider/hooks/index.d.ts +1 -0
- package/src/elements-provider/hooks/use-load-icons.d.ts +7 -0
- package/src/elements-provider/index.d.ts +1 -0
- package/src/factories/shipengine/address.d.ts +1 -1
- package/src/factories/shipengine/carrier.d.ts +1 -1
- package/src/factories/shipengine/index.d.ts +1 -1
- package/src/factories/shipengine/label.d.ts +3 -1
- package/src/factories/shipengine/money.d.ts +1 -1
- package/src/factories/shipengine/order-source.d.ts +1 -1
- package/src/factories/shipengine/package.d.ts +1 -1
- package/src/factories/shipengine/resource.d.ts +1 -1
- package/src/factories/shipengine/sales-order.d.ts +1 -1
- package/src/factories/shipengine/service-point.d.ts +1 -1
- package/src/factories/shipengine/service.d.ts +1 -1
- package/src/factories/shipengine/shipment.d.ts +1 -1
- package/src/factories/shipengine/{wallet-history.d.ts → transaction-history.d.ts} +1 -1
- package/src/factories/shipengine/warehouse.d.ts +1 -1
- package/src/factories/shipengine/weight.d.ts +1 -1
- package/src/features/index.d.ts +3 -3
- package/src/features/label-layout/label-layout.d.ts +1 -1
- package/src/features/label-layout/use-label-layout.d.ts +1 -1
- package/src/features/manage-carriers/hooks/index.d.ts +3 -0
- package/src/features/manage-carriers/hooks/use-carrier-metadata.d.ts +2 -0
- package/src/features/manage-carriers/hooks/use-list-funding-source-carriers.d.ts +11 -0
- package/src/features/manage-carriers/index.d.ts +1 -0
- package/src/features/manage-carriers/manage-carriers-row/index.d.ts +1 -0
- package/src/features/manage-carriers/manage-carriers-row/manage-carriers-row.d.ts +11 -0
- package/src/features/manage-carriers/manage-carriers.d.ts +4 -0
- package/src/features/manage-external-carriers/index.d.ts +1 -0
- package/src/features/manage-external-carriers/manage-external-carriers.d.ts +4 -0
- package/src/features/manage-warehouses/manage-warehouses.d.ts +1 -1
- package/src/features/manage-warehouses/use-manage-warehouses.d.ts +9 -9
- package/src/features/manage-warehouses/warehouse-display/warehouse-display.d.ts +1 -1
- package/src/features/transaction-history/index.d.ts +1 -0
- package/src/features/transaction-history/transaction-history.d.ts +6 -0
- package/src/features/unit-settings/unit-settings.d.ts +1 -1
- package/src/features/unit-settings/use-unit-settings.d.ts +1 -1
- package/src/features/vat-settings/use-vat-settings.d.ts +5 -5
- package/src/hooks/here-map/init.d.ts +6 -0
- package/src/hooks/here-map/use-here-map-ui.d.ts +10 -0
- package/src/hooks/here-map/use-here-map.d.ts +5 -0
- package/src/hooks/options/use-confirmation-options.d.ts +1 -1
- package/src/hooks/options/use-customs-contents-options.d.ts +1 -1
- package/src/hooks/options/use-customs-non-delivery-options.d.ts +1 -1
- package/src/hooks/options/use-insurance-provider-options.d.ts +1 -1
- package/src/hooks/options/use-package-options.d.ts +1 -1
- package/src/hooks/options/use-rate-options.d.ts +1 -1
- package/src/hooks/options/use-service-code-options.d.ts +1 -1
- package/src/hooks/options/use-service-points.d.ts +5 -3
- package/src/hooks/options/use-shipment-metadata.d.ts +1 -1
- package/src/hooks/options/use-shipping-presets-options.d.ts +1 -1
- package/src/hooks/options/use-warehouse-options.d.ts +1 -1
- package/src/hooks/use-address-validation.d.ts +1 -1
- package/src/hooks/use-get-or-create-shipment.d.ts +3 -3
- package/src/hooks/use-scrub-errors.d.ts +1 -1
- package/src/index.d.ts +1 -0
- package/src/locales/en/index.d.ts +50 -4
- package/src/mocks/carriers/handlers.d.ts +1 -1
- package/src/mocks/warehouses/handlers.d.ts +1 -1
- package/src/schemas/shipengine/money.d.ts +1 -1
- package/src/testing/test-utils.d.ts +8 -1
- package/src/themes/fallback.d.ts +3 -0
- package/src/themes/index.d.ts +4 -0
- package/src/types/carrier-metadata.d.ts +7 -11
- package/src/types/index.d.ts +0 -1
- package/src/types/preferred-rates.d.ts +1 -1
- package/src/types/shipping-preset/shipping-preset.d.ts +1 -1
- package/src/utilities/date.d.ts +1 -2
- package/src/utilities/error.d.ts +1 -1
- package/src/utilities/feature-flags/feature-flags.d.ts +18 -0
- package/src/utilities/feature-flags/index.d.ts +2 -0
- package/src/utilities/feature-flags/types.d.ts +141 -0
- package/src/utilities/money.d.ts +1 -1
- package/src/utilities/rates.d.ts +1 -1
- package/src/utilities/shipengine/address.d.ts +1 -1
- package/src/utilities/shipengine/carrier.d.ts +9 -1
- package/src/utilities/shipengine/dimensions.d.ts +1 -1
- package/src/utilities/shipengine/sales-order.d.ts +1 -1
- package/src/utilities/shipengine/shipment.d.ts +1 -1
- package/src/utilities/shipengine/warehouses.d.ts +1 -1
- package/src/utilities/shipengine/weight.d.ts +1 -1
- package/src/workflows/account-settings/account-settings.d.ts +56 -17
- package/src/workflows/{manage-wallet-workflow/manage-wallet-workflow.d.ts → carrier-services/carrier-services.d.ts} +79 -25
- package/src/workflows/carrier-services/index.d.ts +1 -0
- package/src/workflows/{connect-carrier/connect-carrier.d.ts → connect-external-carrier/connect-external-carrier.d.ts} +58 -39
- package/src/workflows/connect-external-carrier/index.d.ts +1 -0
- package/src/workflows/index.d.ts +3 -2
- package/src/workflows/label-workflow/index.d.ts +1 -0
- package/src/workflows/{purchase-label-workflow/purchase-label-workflow.d.ts → label-workflow/label-workflow.d.ts} +16 -34
- package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form.d.ts +4 -5
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +2 -4
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +2 -3
- package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +2 -9
- 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/components/terms-agreement-form/terms-agreement-form.d.ts +1 -1
- package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +1 -1
- package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +2 -7
- package/src/workflows/onboarding/onboarding.d.ts +71 -73
- package/story-notes-c714d2ed.js +1 -0
- package/suspend-text-cad3a977.js +1 -0
- package/transaction-history-element-cbfe487c.js +1 -0
- package/types.js +1 -0
- package/use-page-layout-8cb5075f.js +1 -0
- package/use-scrub-errors-9870a6f3.js +1 -0
- package/use-toggle-866d7938.js +1 -0
- package/use-unit-settings-a5bae16e.js +1 -0
- package/utilities.js +1 -0
- package/validation-528e7834.js +1 -0
- package/wallet-form-9e4bfaea.js +1 -0
- package/warehouse-form-da6a7ac5.js +34 -0
- package/warehouses-a83188ab.js +1 -0
- package/workflows.js +1 -0
- package/zod-60def96c.js +1 -0
- package/index.cjs +0 -25795
- package/src/components/templates/add-carrier-form/add-carrier-form-test.d.ts +0 -1
- package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +0 -10
- package/src/components/templates/add-carrier-form/index.d.ts +0 -2
- package/src/components/templates/connect-carrier-form/connect-carrier-form.d.ts +0 -12
- package/src/components/templates/connect-carrier-form/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/service-points-search-bar.d.ts +0 -6
- package/src/elements/external-carriers/index.d.ts +0 -1
- package/src/elements/shipengine-carriers/index.d.ts +0 -1
- package/src/elements/view-shipment/index.d.ts +0 -1
- package/src/elements/wallet-history/index.d.ts +0 -1
- package/src/features/external-carriers/external-carriers.d.ts +0 -10
- package/src/features/external-carriers/index.d.ts +0 -1
- package/src/features/shipengine-carriers/hooks/index.d.ts +0 -2
- package/src/features/shipengine-carriers/hooks/use-carrier-metadata.d.ts +0 -13
- package/src/features/shipengine-carriers/hooks/use-list-connected-carriers.d.ts +0 -11
- package/src/features/shipengine-carriers/index.d.ts +0 -1
- package/src/features/shipengine-carriers/shipengine-carriers-row/index.d.ts +0 -1
- package/src/features/shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts +0 -9
- package/src/features/shipengine-carriers/shipengine-carriers.d.ts +0 -10
- package/src/features/wallet-history/index.d.ts +0 -1
- package/src/features/wallet-history/wallet-history.d.ts +0 -6
- package/src/hooks/use-elements.d.ts +0 -35
- package/src/types/patch.d.ts +0 -2
- package/src/utilities/feature-flags.d.ts +0 -232
- package/src/workflows/connect-carrier/index.d.ts +0 -1
- package/src/workflows/manage-wallet-workflow/index.d.ts +0 -1
- package/src/workflows/purchase-label-workflow/index.d.ts +0 -1
- /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
- /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
- /package/src/features/{shipengine-carriers/shipengine-carriers.styles.d.ts → manage-carriers/manage-carriers.styles.d.ts} +0 -0
- /package/src/features/{wallet-history/wallet-history.styles.d.ts → transaction-history/transaction-history.styles.d.ts} +0 -0
- /package/src/workflows/{manage-wallet-workflow → carrier-services}/use-get-wallet-panel-props.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CodedError } from "@shipengine/alchemy";
|
|
2
|
-
import { CarrierTerms } from "../../../types";
|
|
3
|
-
import { AddCarrierFormPayload } from "./add-carrier-form-schema";
|
|
4
|
-
export type AddCarrierFormProps = {
|
|
5
|
-
carrierTerms?: CarrierTerms;
|
|
6
|
-
onCancel?: () => void;
|
|
7
|
-
onSubmit: (payload: AddCarrierFormPayload) => Promise<void>;
|
|
8
|
-
registerCarrierErrors?: CodedError[] | null;
|
|
9
|
-
};
|
|
10
|
-
export declare const AddCarrierForm: ({ carrierTerms, onCancel, onSubmit, registerCarrierErrors, }: AddCarrierFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RJSFSchema, UiSchema } from "@rjsf/utils";
|
|
2
|
-
export type ConnectCarrierFormProps = {
|
|
3
|
-
carrierName: string;
|
|
4
|
-
displayName: string;
|
|
5
|
-
iconUrl: string;
|
|
6
|
-
isBeta?: boolean;
|
|
7
|
-
jsonSchema: RJSFSchema;
|
|
8
|
-
onCancel?: () => void;
|
|
9
|
-
onCarrierConnected?: (carrierId: string) => void;
|
|
10
|
-
uiSchema: UiSchema;
|
|
11
|
-
};
|
|
12
|
-
export declare const ConnectCarrierForm: ({ carrierName, displayName, iconUrl, isBeta, jsonSchema, uiSchema, onCancel, onCarrierConnected, }: ConnectCarrierFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./connect-carrier-form";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./service-points-search-bar";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
type ServicePointsSearchBarProps = {
|
|
2
|
-
onSearch: (postalCode: string) => void | Promise<void>;
|
|
3
|
-
postalCode?: string;
|
|
4
|
-
};
|
|
5
|
-
export declare const ServicePointsSearchBar: ({ postalCode, onSearch }: ServicePointsSearchBarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as ExternalCarriers from "./external-carriers";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as ShipEngineCarriers from "./shipengine-carriers";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as ViewShipment from "./view-shipment";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as WalletHistory from "./wallet-history-element";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ConnectCarrier } from "../../workflows";
|
|
2
|
-
export type ExternalCarriersFeatures = ConnectCarrier.ConnectCarrierFeatures;
|
|
3
|
-
export type ExternalCarriersProps = {
|
|
4
|
-
/**
|
|
5
|
-
* `availableCarrierConnections` is a set of carrier codes for carriers that may be added. If this is omitted,
|
|
6
|
-
* new carriers may not be added by this element.
|
|
7
|
-
*/
|
|
8
|
-
features?: ExternalCarriersFeatures;
|
|
9
|
-
};
|
|
10
|
-
export declare const ExternalCarriers: ({ features }: ExternalCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./external-carriers";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CarrierConnection } from "@shipengine/alchemy";
|
|
2
|
-
export type CarrierMetadataHook = {
|
|
3
|
-
carrierCodes?: CarrierConnection["carrierCode"][];
|
|
4
|
-
countryCode?: string;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*
|
|
9
|
-
* # Carrier Metadata Hook
|
|
10
|
-
*
|
|
11
|
-
* @category Hooks
|
|
12
|
-
*/
|
|
13
|
-
export declare const useCarrierMetadata: ({ carrierCodes, countryCode }: CarrierMetadataHook) => import("../../../types").CarrierMetadata[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CarrierMetadata } from "../../../types";
|
|
2
|
-
export type ConnectedCarrierMetadata = {
|
|
3
|
-
carrier: CarrierMetadata;
|
|
4
|
-
isConnected: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare const useListConnectedCarriers: () => {
|
|
7
|
-
data: ConnectedCarrierMetadata[];
|
|
8
|
-
error: import("@shipengine/alchemy").CodedError[] | null;
|
|
9
|
-
isLoading: boolean;
|
|
10
|
-
refetch: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/alchemy").Carrier[], import("@shipengine/alchemy").CodedError[]>>;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./shipengine-carriers";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./shipengine-carriers-row";
|
package/src/features/shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CodedError } from "@shipengine/alchemy";
|
|
2
|
-
import { AddCarrierFormPayload } from "../../../components/templates/add-carrier-form";
|
|
3
|
-
import { ConnectedCarrierMetadata } from "../hooks/use-list-connected-carriers";
|
|
4
|
-
export type ShipEngineCarriersRowProps = {
|
|
5
|
-
connectedCarrier: ConnectedCarrierMetadata;
|
|
6
|
-
registerCarrier: (payload?: AddCarrierFormPayload) => Promise<void>;
|
|
7
|
-
registerCarrierErrors?: CodedError[] | null;
|
|
8
|
-
};
|
|
9
|
-
export declare const ShipEngineCarriersRow: ({ connectedCarrier: { carrier, isConnected }, registerCarrier, registerCarrierErrors, }: ShipEngineCarriersRowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type ShipEngineCarriersFeatures = {
|
|
2
|
-
carriers: {
|
|
3
|
-
enabledCarriers: ("aramex_au_walleted" | "canada_post_walleted" | "canpar_walleted" | "couriersplease_walleted" | "sendle_walleted" | "dhl_express_walleted" | "dhl_express_worldwide" | "dpd_germany_walleted" | "dpdwallet" | "globalpost" | "hermes" | "purolator_walleted" | "stamps_com" | "ups_walleted" | "ups" | "yodel_walleted")[];
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
export type ShipEngineCarriersProps = {
|
|
7
|
-
features?: ShipEngineCarriersFeatures;
|
|
8
|
-
showFunds?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare const ShipEngineCarriers: ({ features, showFunds, }: ShipEngineCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./wallet-history";
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ShipEngineProps } from "@shipengine/alchemy";
|
|
3
|
-
export type ElementsEnvironment = `dde:${string}` | "development" | "staging" | "production";
|
|
4
|
-
export type ElementsErrorHandler = (err: Error, context: {
|
|
5
|
-
componentStack: string;
|
|
6
|
-
element?: string;
|
|
7
|
-
}) => void;
|
|
8
|
-
export interface ElementsContextValue {
|
|
9
|
-
environment: ElementsEnvironment;
|
|
10
|
-
onError?: ElementsErrorHandler;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @category Contexts
|
|
14
|
-
*/
|
|
15
|
-
export declare const ElementsContext: import("react").Context<ElementsContextValue | undefined>;
|
|
16
|
-
export interface ElementsProviderProps {
|
|
17
|
-
baseURL?: string;
|
|
18
|
-
children: JSX.Element;
|
|
19
|
-
environment?: ElementsEnvironment;
|
|
20
|
-
getToken: ShipEngineProps["getToken"];
|
|
21
|
-
onError?: ElementsErrorHandler;
|
|
22
|
-
proxyTarget?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @category Providers
|
|
26
|
-
*/
|
|
27
|
-
export declare const ElementsProvider: ({ baseURL, children, environment, getToken, onError, }: ElementsProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
|
-
/**
|
|
29
|
-
* Must be used within {@link ElementsProvider}
|
|
30
|
-
*
|
|
31
|
-
* @category Elements Hooks
|
|
32
|
-
*
|
|
33
|
-
* @see {@link registerElement}
|
|
34
|
-
*/
|
|
35
|
-
export declare const useElements: () => ElementsContextValue;
|
package/src/types/patch.d.ts
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @namespace featureFlags
|
|
3
|
-
*
|
|
4
|
-
* - The `featureFlags` namespace contains all the feature flags available throughout the
|
|
5
|
-
* application. All features are scoped by name to the component they are intended for.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* export const featureFlags = {
|
|
10
|
-
* ConfigureSalesOrderShipment: {
|
|
11
|
-
* compatibleCountryCodes: ["AU", "CA", "FR", "DE", "GB", "IL", "IT", "NO", "ES", "SE", "US"],
|
|
12
|
-
* rateForm: {
|
|
13
|
-
* enableFunding: false,
|
|
14
|
-
* enableGlobalPostFiltering: false,
|
|
15
|
-
* labelLayout: false,
|
|
16
|
-
* nicknameRate: true,
|
|
17
|
-
* saveRate: true,
|
|
18
|
-
* },
|
|
19
|
-
* shipmentForm: {
|
|
20
|
-
* browseRates: true,
|
|
21
|
-
* includeShipsuranceInsurance: true,
|
|
22
|
-
* includeThirdPartyInsurance: true,
|
|
23
|
-
* selectService: true,
|
|
24
|
-
* shippingPresets: false,
|
|
25
|
-
* },
|
|
26
|
-
* },
|
|
27
|
-
* Global: {
|
|
28
|
-
* carriers: {
|
|
29
|
-
* enabledCarriers: ["stamps_com", "ups", "dhl_express_walleted"],
|
|
30
|
-
* },
|
|
31
|
-
* presentation: {
|
|
32
|
-
* poweredByShipEngine: false,
|
|
33
|
-
* },
|
|
34
|
-
* },
|
|
35
|
-
* ViewShipment: {
|
|
36
|
-
* shipment: {
|
|
37
|
-
* schedulePickup: true,
|
|
38
|
-
* },
|
|
39
|
-
* },
|
|
40
|
-
* } as const;
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
export declare const featureFlags: {
|
|
44
|
-
/**
|
|
45
|
-
* `CarrierConnections` all scoped feature flags for "Bring your own carrier" connections.
|
|
46
|
-
*/
|
|
47
|
-
readonly CarrierConnections: {
|
|
48
|
-
readonly availableCarrierConnections: readonly ["apc", "asendia", "better_trucks", "canpar", "chronopost", "couriers_please", "courierpost", "dpd", "hermes_germany", "intelliquick_delivery", "lso", "ontrac", "seko", "ups", "yodel"];
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* `ConfigureSalesOrderShipment` all scoped feature flags for the shipment configuration
|
|
52
|
-
* section of the `<PurchaseLabel />` element.
|
|
53
|
-
*/
|
|
54
|
-
readonly ConfigureSalesOrderShipment: {
|
|
55
|
-
/**
|
|
56
|
-
* `compatibleCountryCodes` is a list of all supported `countries` available in ShipEngine
|
|
57
|
-
* Elements.
|
|
58
|
-
*/
|
|
59
|
-
readonly compatibleCountryCodes: readonly ["AU", "CA", "FR", "DE", "GB", "IL", "IT", "NO", "ES", "SE", "US"];
|
|
60
|
-
/**
|
|
61
|
-
* `configureShipment` is a group of flags related to the useConfigureShipment functionality
|
|
62
|
-
*/
|
|
63
|
-
readonly configureShipment: {
|
|
64
|
-
/**
|
|
65
|
-
* `enableErrorWhenShipmentCancelled` when enabled will modify the default behavior of creating a new shipment for a salesorder to throwing an error
|
|
66
|
-
*/
|
|
67
|
-
readonly enableErrorWhenShipmentCancelled: false;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*
|
|
72
|
-
* `partnerMessages` enables the partner consuming elements to specify override messages in specific cases.
|
|
73
|
-
*/
|
|
74
|
-
readonly partnerMessages: {
|
|
75
|
-
readonly incompleteLabelPurchaseRequirements: undefined;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* `rateForm` all scoped feature flags for the `rate form` section of the `<PurchaseLabel />`
|
|
79
|
-
* element.
|
|
80
|
-
*/
|
|
81
|
-
readonly rateForm: {
|
|
82
|
-
/**
|
|
83
|
-
* `enableFunding` enables the `funding` section of the rate form.
|
|
84
|
-
*/
|
|
85
|
-
readonly enableFunding: true;
|
|
86
|
-
/**
|
|
87
|
-
* `enableGlobalPostFiltering` enables the `global post filtering` on all rates fetched
|
|
88
|
-
* in the rates form.
|
|
89
|
-
*/
|
|
90
|
-
readonly enableGlobalPostFiltering: false;
|
|
91
|
-
/**
|
|
92
|
-
`enablePudoUI` enables the Pick Up/Drop Off tabs UI in the Rate Form to separate rates with PUDO capability by type.
|
|
93
|
-
*/
|
|
94
|
-
readonly enablePudoUI: false;
|
|
95
|
-
/**
|
|
96
|
-
* `labelLayout` enables the `label layout` section of the `<PurchaseLabel /> element.
|
|
97
|
-
*/
|
|
98
|
-
readonly labelLayout: false;
|
|
99
|
-
/**
|
|
100
|
-
* `nicknameRate` enables showing the `carrier nickname` when rates are fetched.
|
|
101
|
-
*/
|
|
102
|
-
readonly nicknameRate: true;
|
|
103
|
-
/**
|
|
104
|
-
* `requireDhlTermsAcknowledgement` enables the `DHL terms acknowledgement` when rates are fetched.
|
|
105
|
-
*/
|
|
106
|
-
readonly requireDhlTermsAcknowledgement: false;
|
|
107
|
-
/**
|
|
108
|
-
* `saveRate` enables the `save rate` button in the rate form. This allows users to save a
|
|
109
|
-
* `rateId` for a shipment to be purchased later.
|
|
110
|
-
*/
|
|
111
|
-
readonly saveRate: true;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* `shipmentForm` all scoped feature flags for the `shipment form` section of the
|
|
115
|
-
* `<PurchaseLabel />` element.
|
|
116
|
-
*/
|
|
117
|
-
readonly shipmentForm: {
|
|
118
|
-
/**
|
|
119
|
-
* `addOns` enables the `Add-Ons` section of the shipment form. This allows users to
|
|
120
|
-
* add additional services to their shipment such as delivery confirmation and insurance.
|
|
121
|
-
*/
|
|
122
|
-
readonly addOns: true;
|
|
123
|
-
/**
|
|
124
|
-
* `browseRates` enables the `browse rates` button in the shipment form. This allows users
|
|
125
|
-
* to browse rates for a shipment with varying shipment configurations. This is useful for
|
|
126
|
-
* rate shopping.
|
|
127
|
-
*/
|
|
128
|
-
readonly browseRates: true;
|
|
129
|
-
/**
|
|
130
|
-
* `includeShipsuranceInsurance` enables the `shipsurance insurance` feature, allowing users
|
|
131
|
-
* to select Shipsurance when insuring their shipment.
|
|
132
|
-
*/
|
|
133
|
-
readonly includeShipsuranceInsurance: true;
|
|
134
|
-
/**
|
|
135
|
-
* `includeThirdPartyInsurance` enables the `third party insurance` feature, allowing users
|
|
136
|
-
* to opt for third party insurance when insuring their shipment.
|
|
137
|
-
*/
|
|
138
|
-
readonly includeThirdPartyInsurance: true;
|
|
139
|
-
/**
|
|
140
|
-
* `selectService` enables the `select service` feature, allowing users to select a service
|
|
141
|
-
* when rate shopping across multiple carrier providers.
|
|
142
|
-
*/
|
|
143
|
-
readonly selectService: true;
|
|
144
|
-
/**
|
|
145
|
-
* `shippingPresets` enables the `shipping presets` feature, allowing users to pass in a set
|
|
146
|
-
* of shipping presets they wish to use within the shipment form of the `<PurchaseLabel />`
|
|
147
|
-
* element.
|
|
148
|
-
*/
|
|
149
|
-
readonly shippingPresets: false;
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* `Global` all feature flags that are intended for use anywhere in ShipEngine Elements.
|
|
154
|
-
*/
|
|
155
|
-
readonly Global: {
|
|
156
|
-
/**
|
|
157
|
-
* All global `carrier` related feature flags.
|
|
158
|
-
*/
|
|
159
|
-
readonly carriers: {
|
|
160
|
-
/**
|
|
161
|
-
* `enabledCarriers` is a list of all `carriers` that are enabled for use in ShipEngine
|
|
162
|
-
* Elements.
|
|
163
|
-
*/
|
|
164
|
-
readonly enabledCarriers: readonly ["aramex_au_walleted", "canada_post_walleted", "canpar_walleted", "couriersplease_walleted", "dhl_express_walleted", "dpd_germany_walleted", "dpdwallet", "globalpost", "hermes", "purolator_walleted", "sendle_walleted", "stamps_com", "ups_walleted", "ups", "yodel_walleted"];
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* All global `presentation` related feature flags.
|
|
168
|
-
*/
|
|
169
|
-
readonly presentation: {
|
|
170
|
-
/**
|
|
171
|
-
* `poweredByShipEngine` enables the `powered by ShipEngine` logo in the footer various
|
|
172
|
-
* elements.
|
|
173
|
-
*/
|
|
174
|
-
readonly poweredByShipEngine: false;
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* All global `vatSettings` related feature flags.
|
|
178
|
-
*/
|
|
179
|
-
readonly vatSettings: {
|
|
180
|
-
/**
|
|
181
|
-
* `showVatSettings` enables the `vatSettings feature` in AccountSettings/Onboarding/LabelPurchase
|
|
182
|
-
* This flag is meant to be used while development and removed once the feature is live
|
|
183
|
-
*/
|
|
184
|
-
readonly showVatSettings: true;
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* `ViewShipment` all scoped feature flags for the `<ViewShipment />` element.
|
|
189
|
-
*/
|
|
190
|
-
readonly ViewShipment: {
|
|
191
|
-
/**
|
|
192
|
-
* `shipment` all shipment related features available in the `<ViewShipment />` element.
|
|
193
|
-
*/
|
|
194
|
-
readonly shipment: {
|
|
195
|
-
/**
|
|
196
|
-
* `schedulePickup` enables the `schedule pickup` button in the `<ViewShipment />` element,
|
|
197
|
-
* allowing users to schedule pick-ups for their shipments.
|
|
198
|
-
*/
|
|
199
|
-
readonly schedulePickup: true;
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* @internal
|
|
205
|
-
*
|
|
206
|
-
* # Feature Flags - featureFlagComponentNameLookup
|
|
207
|
-
*/
|
|
208
|
-
export declare const featureFlagComponentNameLookup: (componentName: string) => string;
|
|
209
|
-
/**
|
|
210
|
-
* @internal
|
|
211
|
-
*
|
|
212
|
-
* # Feature Flags - getFeatures
|
|
213
|
-
*/
|
|
214
|
-
export declare const getFeatures: (...element: string[]) => any;
|
|
215
|
-
/**
|
|
216
|
-
* # Feature Flags - useFeatures
|
|
217
|
-
*
|
|
218
|
-
* - The `useFeatures` hook is used to retrieve the feature flags for a given component.
|
|
219
|
-
*
|
|
220
|
-
* @example
|
|
221
|
-
* ```tsx
|
|
222
|
-
* const features = useFeatures("Global");
|
|
223
|
-
* ```
|
|
224
|
-
*
|
|
225
|
-
* <br />
|
|
226
|
-
*
|
|
227
|
-
* @see {@link featureFlags | All available `Feature Flags`}
|
|
228
|
-
*/
|
|
229
|
-
export declare const useFeatures: (...element: string[]) => any;
|
|
230
|
-
export type FeatureObject = Record<string, unknown>;
|
|
231
|
-
export declare const isObject: (item: unknown) => item is FeatureObject;
|
|
232
|
-
export declare function deepMergeFeatures<T extends FeatureObject>(defaults: T, custom?: T): T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as ConnectCarrier from "./connect-carrier";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as ManageWalletWorkflow from "./manage-wallet-workflow";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as PurchaseLabelWorkflow from "./purchase-label-workflow";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/workflows/{manage-wallet-workflow → carrier-services}/use-get-wallet-panel-props.d.ts
RENAMED
|
File without changes
|