@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.
- package/README.md +0 -4
- package/actions-menu.js +34 -0
- package/assertions.js +1 -0
- package/carrier-logo.js +1 -0
- package/components.js +1 -1
- package/constants.js +1 -1
- package/elements.js +1 -1
- package/extensions.js +1 -1
- package/formatString.js +1 -0
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/money.js +1 -0
- package/package.json +20 -46
- package/pudo.js +1 -0
- package/schemas.js +1 -1
- package/src/components/actions-menu/actions-menu.d.ts +19 -0
- package/src/components/actions-menu/index.d.ts +1 -0
- package/src/components/add-funds-form/add-funds-form.d.ts +1 -1
- 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/collapsible-panel/collapsible-panel.d.ts +1 -1
- package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +10 -13
- 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/checkbox-input/checkbox-input.d.ts +1 -0
- 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 +1 -1
- package/src/components/field/rate-card/rate-card.styles.d.ts +0 -1
- package/src/components/field/rate-select/rate-select.d.ts +1 -1
- package/src/components/field/select/index.d.ts +1 -0
- package/src/components/field/select/select-with-categories.d.ts +20 -0
- package/src/components/field/select/select.d.ts +5 -10
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +1 -1
- 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/pager/pager.d.ts +1 -1
- package/src/components/rate-details/rate-details.d.ts +1 -1
- package/src/components/save-status/save-status.d.ts +1 -1
- package/src/components/service-points/service-points.d.ts +1 -1
- 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/connected-carrier-list/connected-carrier-list.d.ts +4 -1
- package/src/components/templates/connected-carrier-list/connected-carrier-list.styles.d.ts +0 -10
- package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.d.ts +4 -1
- package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.styles.d.ts +19 -12
- package/src/components/templates/index.d.ts +1 -1
- package/src/components/templates/label/label.d.ts +1 -1
- 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/products-display/products-display.styles.d.ts +12 -4
- package/src/components/templates/rate-form/rate-form.d.ts +3 -4
- package/src/components/templates/shipment/shipment.d.ts +3 -11
- package/src/components/templates/shipment-form/sections/customs-forms/components/index.d.ts +2 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/index.d.ts +3 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/schema.d.ts +38 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/form/values.d.ts +12 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/index.d.ts +2 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-id-form.d.ts +17 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-id-list.d.ts +12 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-ids.d.ts +8 -0
- package/src/components/templates/shipment-form/sections/customs-forms/components/tax-ids/tax-ids.styles.d.ts +70 -0
- package/src/components/templates/shipment-form/sections/customs-forms/customs-forms.d.ts +10 -0
- package/src/components/templates/shipment-form/sections/customs-forms/index.d.ts +1 -0
- package/src/components/templates/shipment-form/sections/index.d.ts +1 -0
- package/src/components/templates/shipment-form/shipment-form.d.ts +4 -10
- package/src/components/templates/shipment-form/shipment-form.styles.d.ts +9 -0
- 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 +11 -4
- package/src/components/zero-state/zero-state.d.ts +6 -0
- package/src/components/zero-state/zero-state.styles.d.ts +14 -0
- 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 +44 -2
- package/src/elements/labels-grid/labels-grid.d.ts +45 -3
- 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} +99 -52
- 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} +74 -63
- package/src/elements/manage-funding/manage-funding-element.d.ts +47 -4
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +62 -3
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +47 -4
- package/src/elements/purchase-label/configure-shipment.d.ts +4 -27
- 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 +2 -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 +1 -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 +2 -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 +85 -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} +89 -60
- package/src/elements/shipments-grid/shipments-grid.d.ts +45 -3
- package/src/elements/theme-creator/theme-creator.d.ts +44 -2
- 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} +44 -2
- package/src/elements/unit-settings/unit-settings-element.d.ts +44 -2
- package/src/elements/vat-settings/vat-settings-element.d.ts +44 -2
- package/src/elements/void-label/components/actions/actions.d.ts +1 -1
- package/src/elements/void-label/components/message/message.d.ts +1 -1
- package/src/elements/void-label/void-label.d.ts +83 -52
- package/src/elements-provider/elements-context-provider.d.ts +44 -0
- package/src/elements-provider/elements-provider.d.ts +12 -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 +3 -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 +1 -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/{shipengine-carriers → manage-carriers}/hooks/use-list-funding-source-carriers.d.ts +3 -3
- 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/{shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts → manage-carriers/manage-carriers-row/manage-carriers-row.d.ts} +3 -3
- package/src/features/manage-carriers/manage-carriers.d.ts +5 -0
- package/src/features/manage-external-carriers/index.d.ts +2 -0
- package/src/features/manage-external-carriers/manage-external-carriers.d.ts +14 -0
- package/src/features/manage-external-carriers/use-manage-external-carriers.d.ts +12 -0
- package/src/features/manage-funding/manage-funding.d.ts +4 -1
- 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/payment-method-settings/payment-method-settings.d.ts +4 -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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +4 -2
- 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 +2 -0
- package/src/locales/en/index.d.ts +44 -2
- 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 +7 -2
- package/src/themes/fallback.d.ts +3 -0
- package/src/themes/index.d.ts +4 -0
- package/src/types/carrier-metadata.d.ts +1 -1
- package/src/types/preferred-rates.d.ts +1 -1
- package/src/types/shipping-preset/shipping-preset.d.ts +1 -1
- 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/formatString.d.ts +2 -0
- package/src/utilities/index.d.ts +1 -0
- package/src/utilities/money.d.ts +1 -1
- package/src/utilities/pudo.d.ts +3 -0
- package/src/utilities/rates.d.ts +1 -3
- package/src/utilities/shipengine/address.d.ts +1 -1
- package/src/utilities/shipengine/carrier.d.ts +4 -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 +52 -16
- package/src/workflows/account-settings/use-get-panel-props.d.ts +3 -3
- package/src/workflows/{manage-wallet-workflow/manage-wallet-workflow.d.ts → carrier-services/carrier-services.d.ts} +55 -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} +52 -37
- 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 +1 -1
- 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 +1 -1
- 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 +3 -2
- 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 +1 -1
- package/src/workflows/onboarding/onboarding.d.ts +65 -71
- package/story-notes.js +1 -0
- package/suspend-text.js +1 -0
- package/transaction-history-element.js +1 -0
- package/use-page-layout.js +1 -0
- package/use-scrub-errors.js +1 -0
- package/use-toggle.js +1 -0
- package/use-unit-settings.js +1 -0
- package/utilities.js +1 -1
- package/validation.js +1 -0
- package/wallet-form.js +1 -0
- package/warehouses.js +1 -0
- package/workflows.js +1 -1
- package/carrier-2abb4760.js +0 -1
- package/carrier-logo-1b6c767e.js +0 -1
- package/feature-flags-3e03717c.js +0 -1
- package/formatString-413ec7c7.js +0 -1
- package/money-fbc4d0b3.js +0 -1
- package/payment-method-settings-element-595cc38d.js +0 -1
- package/shipment-90d35708.js +0 -1
- 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/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 -11
- package/src/features/external-carriers/index.d.ts +0 -1
- 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.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/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/story-notes-ce2d8cca.js +0 -1
- package/suspend-text-c8c7b6b6.js +0 -1
- package/use-page-layout-93ffae78.js +0 -1
- package/use-scrub-errors-2c4db406.js +0 -1
- package/use-toggle-838d2ebd.js +0 -1
- package/validation-b941a548.js +0 -1
- package/wallet-form-3981400b.js +0 -1
- package/wallet-history-5b34c856.js +0 -1
- package/warehouse-form-c0b3ea78.js +0 -34
- package/warehouses-dfcdce23.js +0 -1
- /package/{address-8f8119f4.js → address.js} +0 -0
- /package/{phone-87dd7bd8.js → phone.js} +0 -0
- /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 → manage-carriers}/hooks/index.d.ts +0 -0
- /package/src/features/{shipengine-carriers → manage-carriers}/hooks/use-carrier-metadata.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
- /package/{zod-60def96c.js → zod.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export declare const useManageWarehouses: () => {
|
|
2
|
-
createWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<import("@shipengine/
|
|
3
|
-
createWarehouseErrors: import("@shipengine/
|
|
4
|
-
deleteWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<void, import("@shipengine/
|
|
5
|
-
deleteWarehouseErrors: import("@shipengine/
|
|
2
|
+
createWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<import("@shipengine/react-api").Warehouse, import("@shipengine/react-api").CodedError[], Partial<import("@shipengine/react-api").Warehouse>, unknown>;
|
|
3
|
+
createWarehouseErrors: import("@shipengine/react-api").CodedError[] | null;
|
|
4
|
+
deleteWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<void, import("@shipengine/react-api").CodedError[], import("@shipengine/react-api").DeleteWarehouseData, unknown>;
|
|
5
|
+
deleteWarehouseErrors: import("@shipengine/react-api").CodedError[] | null;
|
|
6
6
|
isCreatingWarehouse: boolean;
|
|
7
7
|
isDeletingWarehouse: boolean;
|
|
8
8
|
isLoadingWarehouses: boolean;
|
|
9
9
|
isUpdatingWarehouse: boolean;
|
|
10
|
-
listWarehouseErrors: import("@shipengine/
|
|
11
|
-
refreshListWarehouses: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/
|
|
12
|
-
updateWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<void, import("@shipengine/
|
|
13
|
-
updateWarehouseErrors: import("@shipengine/
|
|
14
|
-
warehouses: import("@shipengine/
|
|
10
|
+
listWarehouseErrors: import("@shipengine/react-api").CodedError[] | null;
|
|
11
|
+
refreshListWarehouses: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/react-api").Warehouse[], import("@shipengine/react-api").CodedError[]>>;
|
|
12
|
+
updateWarehouse: import("@tanstack/react-query").UseMutateAsyncFunction<void, import("@shipengine/react-api").CodedError[], import("@shipengine/react-api").UpdateWarehouseData, unknown>;
|
|
13
|
+
updateWarehouseErrors: import("@shipengine/react-api").CodedError[] | null;
|
|
14
|
+
warehouses: import("@shipengine/react-api").Warehouse[] | undefined;
|
|
15
15
|
};
|
|
@@ -17,4 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<PaymentMethodSettings />` component}
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export type PaymentMethodSettingsProps = {
|
|
21
|
+
onRedirectToOnboarding: () => void;
|
|
22
|
+
};
|
|
23
|
+
export declare const PaymentMethodSettings: ({ onRedirectToOnboarding }: PaymentMethodSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./transaction-history";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const useVatSettings: () => {
|
|
2
|
-
getVatSettingsErrors: import("@shipengine/
|
|
2
|
+
getVatSettingsErrors: import("@shipengine/react-api").CodedError[] | null;
|
|
3
3
|
isLoading: boolean;
|
|
4
|
-
refreshVatSettings: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/
|
|
5
|
-
updateVatSettings: import("@tanstack/react-query").UseMutateAsyncFunction<import("@shipengine/
|
|
6
|
-
updateVatSettingsErrors: import("@shipengine/
|
|
7
|
-
vatSettings: import("@shipengine/
|
|
4
|
+
refreshVatSettings: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@shipengine/react-api").AccountSettings, import("@shipengine/react-api").CodedError[]>>;
|
|
5
|
+
updateVatSettings: import("@tanstack/react-query").UseMutateAsyncFunction<import("@shipengine/react-api").AccountSettings, import("@shipengine/react-api").CodedError[], Partial<import("@shipengine/react-api").AccountSettings>, unknown>;
|
|
6
|
+
updateVatSettingsErrors: import("@shipengine/react-api").CodedError[] | null;
|
|
7
|
+
vatSettings: import("@shipengine/react-api").AccountSettings | undefined;
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="heremaps" />
|
|
2
|
-
import { HereTokenResponse } from "@shipengine/
|
|
2
|
+
import { HereTokenResponse } from "@shipengine/js-api";
|
|
3
3
|
export declare const initHerePlatform: (token: HereTokenResponse) => H.service.Platform;
|
|
4
4
|
export declare const initDefaultLayers: (platform: H.service.Platform) => Record<string, any>;
|
|
5
5
|
export declare const initInteractiveBehaviors: (map: H.Map) => H.mapevents.Behavior;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ListServicePointsOptionAddress, ListServicePointsOptionAddressQuery, ListServicePointsOptionCoordinates, Rate, SE } from "@shipengine/
|
|
1
|
+
import { ListServicePointsOptionAddress, ListServicePointsOptionAddressQuery, ListServicePointsOptionCoordinates, Rate, SE } from "@shipengine/react-api";
|
|
2
2
|
export type ServicePointSearchQuery = ListServicePointsOptionAddress["address"] | ListServicePointsOptionAddressQuery["addressQuery"] | ListServicePointsOptionCoordinates;
|
|
3
3
|
export declare const useServicePoints: (rates?: Rate[], shipment?: SE.SalesOrderShipment) => {
|
|
4
4
|
fetchServicePoints: (searchQuery?: ServicePointSearchQuery) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SE } from "@shipengine/
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*
|
|
@@ -6,7 +6,9 @@ import { SE } from "@shipengine/alchemy";
|
|
|
6
6
|
*
|
|
7
7
|
* @category Hooks
|
|
8
8
|
*/
|
|
9
|
-
export declare const useWarehouseOptions: (warehouses?: SE.Warehouse[]) => {
|
|
9
|
+
export declare const useWarehouseOptions: (warehouses?: SE.Warehouse[], rightContentAction?: ((warehouseId: string) => void) | undefined) => {
|
|
10
10
|
label: string;
|
|
11
|
+
rightContent: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
subLabel: string;
|
|
11
13
|
value: string;
|
|
12
14
|
}[] | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SalesOrderShipment } from "@shipengine/
|
|
1
|
+
import { SalesOrderShipment } from "@shipengine/react-api";
|
|
2
2
|
export declare const useGetOrCreateShipment: (onShipmentUpdated: ((shipment: SalesOrderShipment) => void | Promise<void>) | undefined, shipmentId?: string) => {
|
|
3
|
-
errors: import("@shipengine/
|
|
3
|
+
errors: import("@shipengine/react-api").CodedError[] | undefined;
|
|
4
4
|
isLoading: boolean;
|
|
5
|
-
refetchShipment: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<SalesOrderShipment, import("@shipengine/
|
|
5
|
+
refetchShipment: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<SalesOrderShipment, import("@shipengine/react-api").CodedError[]>>;
|
|
6
6
|
shipment: SalesOrderShipment | undefined;
|
|
7
7
|
};
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./components";
|
|
2
2
|
export * from "./constants";
|
|
3
|
+
export * from "./create-element";
|
|
3
4
|
export * from "./elements";
|
|
4
5
|
export * from "./extensions";
|
|
5
6
|
export * from "./hooks";
|
|
@@ -7,3 +8,4 @@ export * from "./schemas";
|
|
|
7
8
|
export * from "./types";
|
|
8
9
|
export * from "./utilities";
|
|
9
10
|
export * from "./workflows";
|
|
11
|
+
export * from "./elements-provider";
|
|
@@ -94,7 +94,7 @@ declare const _default: {
|
|
|
94
94
|
genericText: string;
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
|
-
"
|
|
97
|
+
"manage-carriers": {
|
|
98
98
|
title: string;
|
|
99
99
|
headers: {
|
|
100
100
|
accountCarriers: string;
|
|
@@ -172,6 +172,7 @@ declare const _default: {
|
|
|
172
172
|
title: string;
|
|
173
173
|
};
|
|
174
174
|
};
|
|
175
|
+
noFundingSource: string;
|
|
175
176
|
};
|
|
176
177
|
"rate-details": {
|
|
177
178
|
total: string;
|
|
@@ -356,6 +357,12 @@ declare const _default: {
|
|
|
356
357
|
subtitle: string;
|
|
357
358
|
inlineMessage: string;
|
|
358
359
|
};
|
|
360
|
+
errors: {
|
|
361
|
+
noCarriers: {
|
|
362
|
+
title: string;
|
|
363
|
+
subtitle: string;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
359
366
|
success: {
|
|
360
367
|
title: string;
|
|
361
368
|
subtitle: string;
|
|
@@ -401,6 +408,7 @@ declare const _default: {
|
|
|
401
408
|
returnToAddressIsDifferent: string;
|
|
402
409
|
setDefault: string;
|
|
403
410
|
shipFrom: string;
|
|
411
|
+
noWarehouses: string;
|
|
404
412
|
};
|
|
405
413
|
"manage-funding": {
|
|
406
414
|
actions: {
|
|
@@ -448,6 +456,7 @@ declare const _default: {
|
|
|
448
456
|
errors: {
|
|
449
457
|
balanceUnknown: string;
|
|
450
458
|
unableToFindBalance: string;
|
|
459
|
+
noFundingSource: string;
|
|
451
460
|
};
|
|
452
461
|
byoc: {
|
|
453
462
|
invoiceNotification: string;
|
|
@@ -547,6 +556,9 @@ declare const _default: {
|
|
|
547
556
|
toastTitle: string;
|
|
548
557
|
toastBody: string;
|
|
549
558
|
};
|
|
559
|
+
deleteCarrierErrorTitle: string;
|
|
560
|
+
deleteCarrierErrorMessage: string;
|
|
561
|
+
loadingDeletingCarrier: string;
|
|
550
562
|
};
|
|
551
563
|
common: {
|
|
552
564
|
actions: {
|
|
@@ -649,6 +661,7 @@ declare const _default: {
|
|
|
649
661
|
};
|
|
650
662
|
customs: {
|
|
651
663
|
addDeclaration: string;
|
|
664
|
+
noResults: string;
|
|
652
665
|
contents: {
|
|
653
666
|
documents: string;
|
|
654
667
|
gift: string;
|
|
@@ -656,6 +669,14 @@ declare const _default: {
|
|
|
656
669
|
returnedGoods: string;
|
|
657
670
|
sample: string;
|
|
658
671
|
};
|
|
672
|
+
taxIds: {
|
|
673
|
+
sectionTitle: string;
|
|
674
|
+
addTaxId: string;
|
|
675
|
+
sectionTitleTooltip: string;
|
|
676
|
+
entityTypeTooltipText: string;
|
|
677
|
+
entityTypeTooltipPointOne: string;
|
|
678
|
+
entityTypeTooltipPointTwo: string;
|
|
679
|
+
};
|
|
659
680
|
currencyChange: string;
|
|
660
681
|
declarations: string;
|
|
661
682
|
descriptionTooltip: {
|
|
@@ -673,6 +694,11 @@ declare const _default: {
|
|
|
673
694
|
sku: string;
|
|
674
695
|
value: string;
|
|
675
696
|
valueQuantity: string;
|
|
697
|
+
taxId: string;
|
|
698
|
+
taxIdType: string;
|
|
699
|
+
taxIdTypeValue: string;
|
|
700
|
+
taxIssuingAuthority: string;
|
|
701
|
+
entityType: string;
|
|
676
702
|
};
|
|
677
703
|
nonDelivery: {
|
|
678
704
|
returnToSender: string;
|
|
@@ -745,6 +771,8 @@ declare const _default: {
|
|
|
745
771
|
shipment: string;
|
|
746
772
|
shipments: string;
|
|
747
773
|
warehouses: string;
|
|
774
|
+
funding: string;
|
|
775
|
+
paymentMethod: string;
|
|
748
776
|
};
|
|
749
777
|
months: {
|
|
750
778
|
january: string;
|
|
@@ -823,6 +851,16 @@ declare const _default: {
|
|
|
823
851
|
gram: string;
|
|
824
852
|
kilogram: string;
|
|
825
853
|
};
|
|
854
|
+
actionsMenu: {
|
|
855
|
+
menuTitle: string;
|
|
856
|
+
actions: {
|
|
857
|
+
printLabel: string;
|
|
858
|
+
voidLabel: string;
|
|
859
|
+
printForms: string;
|
|
860
|
+
edit: string;
|
|
861
|
+
remove: string;
|
|
862
|
+
};
|
|
863
|
+
};
|
|
826
864
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
827
865
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
828
866
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
@@ -838,7 +876,11 @@ declare const _default: {
|
|
|
838
876
|
};
|
|
839
877
|
"account-settings": {
|
|
840
878
|
messages: {
|
|
841
|
-
|
|
879
|
+
transactionHistory: {
|
|
880
|
+
noTransactions: string;
|
|
881
|
+
};
|
|
882
|
+
noFundingSourceDescription: string;
|
|
883
|
+
noFundingSourceAction: string;
|
|
842
884
|
};
|
|
843
885
|
title: string;
|
|
844
886
|
sections: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeepPartial } from "fishery";
|
|
2
|
-
import { SE } from "@shipengine/
|
|
2
|
+
import { SE } from "@shipengine/react-api";
|
|
3
3
|
export type CreateCarrierHandlersParams = {
|
|
4
4
|
get?: DeepPartial<SE.Carrier>;
|
|
5
5
|
list?: [count: number, listParams?: DeepPartial<SE.Carrier>];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeepPartial } from "fishery";
|
|
2
|
-
import { SE } from "@shipengine/
|
|
2
|
+
import { SE } from "@shipengine/react-api";
|
|
3
3
|
export type CreateWarehouseHandlersParams = {
|
|
4
4
|
get?: DeepPartial<SE.Warehouse>;
|
|
5
5
|
list?: [count: number, listParams?: DeepPartial<SE.Warehouse>];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { prettyFormat as __ } from "@testing-library/dom/types/pretty-dom";
|
|
2
|
+
import { RenderOptions } from "@testing-library/react";
|
|
3
3
|
import { UserEvent } from "@testing-library/user-event/dist/types/setup/setup";
|
|
4
4
|
import { IconNames, Theme } from "@shipengine/giger-theme";
|
|
5
|
+
import { ElementsTestProviderProps } from "../elements-provider/elements-test-provider";
|
|
5
6
|
import server, { baseUrl } from "../mocks/server";
|
|
6
7
|
declare const theme: Theme;
|
|
7
8
|
declare const delayedFn: () => Promise<void>;
|
|
@@ -170,6 +171,9 @@ declare const customWithin: (element: HTMLElement) => {
|
|
|
170
171
|
export * from "@testing-library/react";
|
|
171
172
|
export { rest } from "msw";
|
|
172
173
|
export { baseUrl, customScreen as screen, customWithin as within, delayedFn, server, theme };
|
|
174
|
+
export declare const ContentWrapper: ({ children }: {
|
|
175
|
+
children: JSX.Element;
|
|
176
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
173
177
|
export declare const renderWithProviders: (component: any) => {
|
|
174
178
|
readonly user: UserEvent;
|
|
175
179
|
view: import("@testing-library/react").RenderResult<{
|
|
@@ -234,7 +238,7 @@ export declare const renderWithProviders: (component: any) => {
|
|
|
234
238
|
* This allows components to simulate usage in an Element via `decorators: [withAllProviders]`
|
|
235
239
|
**/
|
|
236
240
|
export declare const renderWithAllProviders: (component: any) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
237
|
-
export declare const
|
|
241
|
+
export declare const renderWithElements: (component: any, features?: ElementsTestProviderProps["features"]) => {
|
|
238
242
|
user: UserEvent;
|
|
239
243
|
container: HTMLElement;
|
|
240
244
|
baseElement: HTMLElement;
|
|
@@ -291,3 +295,4 @@ export declare const renderWithAlchemy: (component: any) => {
|
|
|
291
295
|
findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
|
|
292
296
|
findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
|
|
293
297
|
};
|
|
298
|
+
export declare const renderWithContent: (ui: React.ReactElement, options?: Omit<RenderOptions, "wrapper">) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
package/src/utilities/error.d.ts
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementsFeatureFlags } from "./types";
|
|
2
|
+
declare const defaultFeatureFlags: Required<ElementsFeatureFlags>;
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*
|
|
6
|
+
* # Feature Flags - featureFlagComponentNameLookup
|
|
7
|
+
*/
|
|
8
|
+
export declare const featureFlagComponentNameLookup: (componentName: string) => string;
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*
|
|
12
|
+
* # Feature Flags - getFeatures
|
|
13
|
+
*/
|
|
14
|
+
export declare const getDefaultFeatures: (elements: Array<keyof typeof defaultFeatureFlags>) => ElementsFeatureFlags[keyof typeof defaultFeatureFlags];
|
|
15
|
+
export type FeatureObject = Record<string, unknown>;
|
|
16
|
+
export declare const isObject: (item: unknown) => item is FeatureObject;
|
|
17
|
+
export declare function deepMergeFeatures<T extends FeatureObject>(defaults: T, custom?: T): T;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { CountryCode } from "../../constants";
|
|
2
|
+
export type EnabledExternalCarriers = ("apc" | "asendia" | "better_trucks" | "canpar" | "chronopost" | "couriers_please" | "courierpost" | "dpd" | "hermes_germany" | "intelliquick_delivery" | "lso" | "ontrac" | "seko" | "ups" | "yodel")[];
|
|
3
|
+
export type EnabledShipEngineCarriers = ("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
|
+
export type RateFormFeatures = {
|
|
5
|
+
/**
|
|
6
|
+
* Enables the `funding` section of the rate form.
|
|
7
|
+
*/
|
|
8
|
+
enableFunding?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Enables the `global post filtering` on all rates fetched in the rates form.
|
|
11
|
+
*/
|
|
12
|
+
enableGlobalPostFiltering?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Enables the Pick Up/Drop Off tabs UI in the Rate Form to separate rates with PUDO capability by type.
|
|
15
|
+
*/
|
|
16
|
+
enablePudoUI?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Enables the `label layout` section of the Purchase Label element.
|
|
19
|
+
*/
|
|
20
|
+
labelLayout?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Enables showing the `carrier nickname` when rates are fetched.
|
|
23
|
+
*/
|
|
24
|
+
nicknameRate?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Enables the `DHL terms acknowledgement` when rates are fetched.
|
|
27
|
+
*/
|
|
28
|
+
requireDhlTermsAcknowledgement?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Enables the `save rate` button in the rate form. This allows users to save a `rateId` for a shipment to be purchased later.
|
|
31
|
+
*/
|
|
32
|
+
saveRate?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type ShipmentFormFeatures = {
|
|
35
|
+
/**
|
|
36
|
+
* Enables the `Add-Ons` section of the shipment form. This allows users to add additional services to their shipment such as
|
|
37
|
+
* delivery confirmation and insurance.
|
|
38
|
+
*/
|
|
39
|
+
addOns?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Enables the `browse rates` button in the shipment form. This allows users to browse rates for a shipment with
|
|
42
|
+
* varying shipment configurations. This is useful for rate shopping.
|
|
43
|
+
*/
|
|
44
|
+
browseRates?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Enables the `shipsurance insurance` feature, allowing users to select Shipsurance when insuring their shipment.
|
|
47
|
+
*/
|
|
48
|
+
includeShipsuranceInsurance?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Enables the `third party insurance` feature, allowing users to opt for third party insurance when insuring their shipment.
|
|
51
|
+
*/
|
|
52
|
+
includeThirdPartyInsurance?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Enables the `select service` feature, allowing users to select a service when rate shopping across multiple carrier providers.
|
|
55
|
+
*/
|
|
56
|
+
selectService?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Enables the `shipping presets` feature, allowing users to pass in a set of shipping presets they wish to use within the
|
|
59
|
+
* shipment form of the PurchaseLabel element.
|
|
60
|
+
*/
|
|
61
|
+
shippingPresets?: boolean;
|
|
62
|
+
};
|
|
63
|
+
export type ShipmentSummaryFeatures = {
|
|
64
|
+
schedulePickup?: boolean;
|
|
65
|
+
};
|
|
66
|
+
export type PurchaseLabelFeatures = {
|
|
67
|
+
/**
|
|
68
|
+
* List of all supported `countries` available in ShipEngine Elements.
|
|
69
|
+
*/
|
|
70
|
+
compatibleCountryCodes?: CountryCode[];
|
|
71
|
+
/**
|
|
72
|
+
* When enabled will modify the default behavior of creating a new shipment for a salesorder to throwing an error
|
|
73
|
+
*/
|
|
74
|
+
enableErrorWhenShipmentCancelled?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*
|
|
78
|
+
* `partnerMessages` enables the partner consuming elements to specify override messages in specific cases.
|
|
79
|
+
*/
|
|
80
|
+
partnerMessages?: {
|
|
81
|
+
incompleteLabelPurchaseRequirements?: string;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* All scoped feature flags for the `rate form` section of the PurchaseLabel element.
|
|
85
|
+
*/
|
|
86
|
+
rateForm?: RateFormFeatures;
|
|
87
|
+
/**
|
|
88
|
+
* All scoped feature flags for the `shipment form` section of the PurchaseLabel element.
|
|
89
|
+
*/
|
|
90
|
+
shipmentForm?: ShipmentFormFeatures;
|
|
91
|
+
};
|
|
92
|
+
export type AccountSettingsFeatures = {
|
|
93
|
+
/**
|
|
94
|
+
* Whether or not to display the ShipEngine Carriers section on the Account Settings element.
|
|
95
|
+
*/
|
|
96
|
+
showCarrierServices?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Whether or not to display the External Carriers section on the Account Settings element.
|
|
99
|
+
*/
|
|
100
|
+
showExternalCarriers?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Whether or not to display the Shipping Label Layout section on the Account Settings element.
|
|
103
|
+
*/
|
|
104
|
+
showLabelLayout?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Whether or not to display the Ship From Locations section on the Account Settings element.
|
|
107
|
+
*/
|
|
108
|
+
showManageWarehouses?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Whether or not to display the Units of Measure section on the Account Settings element.
|
|
111
|
+
*/
|
|
112
|
+
showUnitSettings?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Whether or not to display the Taxes section on the Account Settings element.
|
|
115
|
+
*/
|
|
116
|
+
showVatSettings?: boolean;
|
|
117
|
+
};
|
|
118
|
+
export type GlobalFeatures = {
|
|
119
|
+
/**
|
|
120
|
+
* Availible "Bring your own carrier" carrier codes for carriers that may be added. If this is omitted, new carriers may not be added by this element.
|
|
121
|
+
*/
|
|
122
|
+
enabledExternalCarriers?: EnabledExternalCarriers;
|
|
123
|
+
/**
|
|
124
|
+
* list of all walleted carriers that are enabled for use in Elements.
|
|
125
|
+
*/
|
|
126
|
+
enabledShipEngineCarriers?: EnabledShipEngineCarriers;
|
|
127
|
+
/**
|
|
128
|
+
* Enables the `Powered by ShipEngine` logo in the footer various elements.
|
|
129
|
+
*/
|
|
130
|
+
poweredByShipEngine?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Enable the VAT settings to be shown
|
|
133
|
+
*/
|
|
134
|
+
showVatSettings?: boolean;
|
|
135
|
+
};
|
|
136
|
+
export type ElementsFeatureFlags = {
|
|
137
|
+
accountSettingsFeatures?: AccountSettingsFeatures;
|
|
138
|
+
globalFeatures?: GlobalFeatures;
|
|
139
|
+
purchaseLabelFeatures?: PurchaseLabelFeatures;
|
|
140
|
+
shipmentSummaryFeatures?: ShipmentSummaryFeatures;
|
|
141
|
+
};
|
|
@@ -6,5 +6,7 @@
|
|
|
6
6
|
* - This is a utility function that `capitalizes` the first letter of a given string.
|
|
7
7
|
*/
|
|
8
8
|
export declare const capitalizeFirstLetter: (str: string) => string;
|
|
9
|
+
export declare const capitalizeFirstLetterOfEachWord: (str: string) => string;
|
|
9
10
|
export declare const pascalize: (str: string) => string;
|
|
11
|
+
export declare const replaceSpacesWithDashes: (str?: string) => string | undefined;
|
|
10
12
|
export declare const addSpaceBetweenWords: (str: string) => string;
|
package/src/utilities/index.d.ts
CHANGED