@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
package/src/utilities/money.d.ts
CHANGED
package/src/utilities/rates.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*
|
|
@@ -29,5 +29,3 @@ export declare const getTotalRateAmount: (rateCosts?: {
|
|
|
29
29
|
* @category Utilities
|
|
30
30
|
*/
|
|
31
31
|
export declare const overrideCarrierCodes: (carrier: string, overrides: object) => never;
|
|
32
|
-
export declare const isPudoEligibleRate: (rate: Rate) => boolean;
|
|
33
|
-
export declare const isCollectionService: (carrier: string, serviceCode: string) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SE } from "@shipengine/
|
|
1
|
+
import { MetadataCarrierProfile, SE } from "@shipengine/react-api";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*
|
|
@@ -31,3 +31,6 @@ export declare const getCarrierIdByCarrierCode: (carriers: SE.Carrier[] | undefi
|
|
|
31
31
|
* @category Utilities
|
|
32
32
|
*/
|
|
33
33
|
export declare const getLogoOrIconByCarrierCode: (carrierCode: string, type: "logo" | "icon") => string;
|
|
34
|
+
export declare const isGlobalPostEligible: (region?: string) => boolean;
|
|
35
|
+
export declare const isSendleEligible: (region?: string) => boolean;
|
|
36
|
+
export declare const filterFundingSourceCarriers: (carriers?: MetadataCarrierProfile[], fundingSourceRegion?: string) => MetadataCarrierProfile[] | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SE } from "@shipengine/
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
2
|
export declare const getDefaultWarehouse: (warehouses: SE.Warehouse[]) => SE.Warehouse;
|
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { ConnectCarrier } from "../connect-carrier";
|
|
4
|
-
export type AccountSettingsFeatures = ShipEngineCarriersFeatures & ConnectCarrier.ConnectCarrierFeatures & VatSettingsFeatures;
|
|
5
|
-
/**
|
|
6
|
-
* # Account Settings Component Props
|
|
7
|
-
*
|
|
8
|
-
* - These are the base props that will be passed into the `<AccountSettings />` component.
|
|
9
|
-
*
|
|
10
|
-
* @see {@link AccountSettings.Component | This prop types usage in the `<AccountSettings /> component`}
|
|
11
|
-
*/
|
|
2
|
+
import { AccountSettingsFeatures } from "../../utilities";
|
|
12
3
|
export type ComponentProps = {
|
|
13
4
|
/**
|
|
14
|
-
*
|
|
5
|
+
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
15
6
|
*/
|
|
16
7
|
features?: AccountSettingsFeatures;
|
|
8
|
+
onRedirectToOnboarding?: () => void;
|
|
17
9
|
};
|
|
18
|
-
export declare const Component: ({ features }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Component: ({ features, onRedirectToOnboarding }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
11
|
/**
|
|
20
12
|
* # Registered Account Settings Element
|
|
21
13
|
*
|
|
@@ -35,7 +27,7 @@ export declare const Component: ({ features }: ComponentProps) => import("@emoti
|
|
|
35
27
|
* <br />
|
|
36
28
|
*
|
|
37
29
|
* @see {@link AccountSettings.ComponentProps | The **props** that can be passed into the `<AccountSettings.Element />` component}
|
|
38
|
-
* @see {@link
|
|
30
|
+
* @see {@link CarrierServices.Element | The `<CarrierServices />` component used to view connected carriers and manage funding}
|
|
39
31
|
* @see {@link ManageWarehouses.Component | The `<ManageWarehouses />` component used to add, update, or remove warehouses}
|
|
40
32
|
* @see {@link PaymentMethodSettings | The `<PaymentMethodSettings />` component used to manage payment methods}
|
|
41
33
|
* @see {@link ManageFunding | The `<ManageFunding />` component used to manage funding rules and add funds to a carrier account}
|
|
@@ -138,7 +130,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
138
130
|
genericText: string;
|
|
139
131
|
};
|
|
140
132
|
};
|
|
141
|
-
"
|
|
133
|
+
"manage-carriers": {
|
|
142
134
|
title: string;
|
|
143
135
|
headers: {
|
|
144
136
|
accountCarriers: string;
|
|
@@ -216,6 +208,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
216
208
|
title: string;
|
|
217
209
|
};
|
|
218
210
|
};
|
|
211
|
+
noFundingSource: string;
|
|
219
212
|
};
|
|
220
213
|
"rate-details": {
|
|
221
214
|
total: string;
|
|
@@ -270,7 +263,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
270
263
|
addPackageDetails: string;
|
|
271
264
|
};
|
|
272
265
|
errorMessages: {
|
|
273
|
-
customsItemsRequired: string;
|
|
266
|
+
customsItemsRequired: string; /**
|
|
267
|
+
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
268
|
+
*/
|
|
274
269
|
invalidAddress: string;
|
|
275
270
|
noRates: string;
|
|
276
271
|
salesOrderNotLoaded: string;
|
|
@@ -400,6 +395,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
400
395
|
subtitle: string;
|
|
401
396
|
inlineMessage: string;
|
|
402
397
|
};
|
|
398
|
+
errors: {
|
|
399
|
+
noCarriers: {
|
|
400
|
+
title: string;
|
|
401
|
+
subtitle: string;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
403
404
|
success: {
|
|
404
405
|
title: string;
|
|
405
406
|
subtitle: string;
|
|
@@ -445,6 +446,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
445
446
|
returnToAddressIsDifferent: string;
|
|
446
447
|
setDefault: string;
|
|
447
448
|
shipFrom: string;
|
|
449
|
+
noWarehouses: string;
|
|
448
450
|
};
|
|
449
451
|
"manage-funding": {
|
|
450
452
|
actions: {
|
|
@@ -492,6 +494,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
492
494
|
errors: {
|
|
493
495
|
balanceUnknown: string;
|
|
494
496
|
unableToFindBalance: string;
|
|
497
|
+
noFundingSource: string;
|
|
495
498
|
};
|
|
496
499
|
byoc: {
|
|
497
500
|
invoiceNotification: string;
|
|
@@ -591,6 +594,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
591
594
|
toastTitle: string;
|
|
592
595
|
toastBody: string;
|
|
593
596
|
};
|
|
597
|
+
deleteCarrierErrorTitle: string;
|
|
598
|
+
deleteCarrierErrorMessage: string;
|
|
599
|
+
loadingDeletingCarrier: string;
|
|
594
600
|
};
|
|
595
601
|
common: {
|
|
596
602
|
actions: {
|
|
@@ -693,6 +699,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
693
699
|
};
|
|
694
700
|
customs: {
|
|
695
701
|
addDeclaration: string;
|
|
702
|
+
noResults: string;
|
|
696
703
|
contents: {
|
|
697
704
|
documents: string;
|
|
698
705
|
gift: string;
|
|
@@ -700,6 +707,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
700
707
|
returnedGoods: string;
|
|
701
708
|
sample: string;
|
|
702
709
|
};
|
|
710
|
+
taxIds: {
|
|
711
|
+
sectionTitle: string;
|
|
712
|
+
addTaxId: string;
|
|
713
|
+
sectionTitleTooltip: string;
|
|
714
|
+
entityTypeTooltipText: string;
|
|
715
|
+
entityTypeTooltipPointOne: string;
|
|
716
|
+
entityTypeTooltipPointTwo: string;
|
|
717
|
+
};
|
|
703
718
|
currencyChange: string;
|
|
704
719
|
declarations: string;
|
|
705
720
|
descriptionTooltip: {
|
|
@@ -717,6 +732,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
717
732
|
sku: string;
|
|
718
733
|
value: string;
|
|
719
734
|
valueQuantity: string;
|
|
735
|
+
taxId: string;
|
|
736
|
+
taxIdType: string;
|
|
737
|
+
taxIdTypeValue: string;
|
|
738
|
+
taxIssuingAuthority: string;
|
|
739
|
+
entityType: string;
|
|
720
740
|
};
|
|
721
741
|
nonDelivery: {
|
|
722
742
|
returnToSender: string;
|
|
@@ -789,6 +809,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
789
809
|
shipment: string;
|
|
790
810
|
shipments: string;
|
|
791
811
|
warehouses: string;
|
|
812
|
+
funding: string;
|
|
813
|
+
paymentMethod: string;
|
|
792
814
|
};
|
|
793
815
|
months: {
|
|
794
816
|
january: string;
|
|
@@ -867,6 +889,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
867
889
|
gram: string;
|
|
868
890
|
kilogram: string;
|
|
869
891
|
};
|
|
892
|
+
actionsMenu: {
|
|
893
|
+
menuTitle: string;
|
|
894
|
+
actions: {
|
|
895
|
+
printLabel: string;
|
|
896
|
+
voidLabel: string;
|
|
897
|
+
printForms: string;
|
|
898
|
+
edit: string;
|
|
899
|
+
remove: string;
|
|
900
|
+
};
|
|
901
|
+
};
|
|
870
902
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
871
903
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
872
904
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
@@ -882,7 +914,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
882
914
|
};
|
|
883
915
|
"account-settings": {
|
|
884
916
|
messages: {
|
|
885
|
-
|
|
917
|
+
transactionHistory: {
|
|
918
|
+
noTransactions: string;
|
|
919
|
+
};
|
|
920
|
+
noFundingSourceDescription: string;
|
|
921
|
+
noFundingSourceAction: string;
|
|
886
922
|
};
|
|
887
923
|
title: string;
|
|
888
924
|
sections: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CollapsiblePanelProps } from "../../components";
|
|
2
|
-
import { UnitSettingsProps } from "../../features";
|
|
2
|
+
import { ExternalCarriersProps, UnitSettingsProps } from "../../features";
|
|
3
3
|
import { LabelLayoutSettingsProps } from "../../features/label-layout/label-layout";
|
|
4
4
|
import { ManageWarehousesProps } from "../../features/manage-warehouses/";
|
|
5
|
-
type SettingProps = LabelLayoutSettingsProps | UnitSettingsProps | ManageWarehousesProps;
|
|
6
|
-
export type SettingPropsIntersection = LabelLayoutSettingsProps & UnitSettingsProps & ManageWarehousesProps;
|
|
5
|
+
type SettingProps = ExternalCarriersProps | LabelLayoutSettingsProps | UnitSettingsProps | ManageWarehousesProps;
|
|
6
|
+
export type SettingPropsIntersection = ExternalCarriersProps & LabelLayoutSettingsProps & UnitSettingsProps & ManageWarehousesProps;
|
|
7
7
|
export declare const useGetPanelProps: () => {
|
|
8
8
|
getSettingPanelProps: (setting: string) => [panelProps?: CollapsiblePanelProps, settingProps?: SettingProps];
|
|
9
9
|
};
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ShipEngineCarriersFeatures } from "../../features/shipengine-carriers";
|
|
3
2
|
/**
|
|
4
|
-
* #
|
|
3
|
+
* # Carrier-Services Component
|
|
5
4
|
*
|
|
6
|
-
* @
|
|
7
|
-
*/
|
|
8
|
-
export type ComponentProps = {
|
|
9
|
-
/**
|
|
10
|
-
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
11
|
-
*/
|
|
12
|
-
features?: ShipEngineCarriersFeatures;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* # Manage-Wallet-Workflow Component
|
|
16
|
-
*
|
|
17
|
-
* @param ComponentProps The base props that will be passed into the `<Manage-Wallet-Workflow />` component.
|
|
5
|
+
* @param ComponentProps The base props that will be passed into the `<CarrierServices />` component.
|
|
18
6
|
*
|
|
19
|
-
* @returns Element A React element that renders the `<
|
|
7
|
+
* @returns Element A React element that renders the `<CarrierServices />` component allowing users
|
|
20
8
|
* to view a list of carriers that are connected to their ShipEngine account, add funds to their wallet, view transaction history, and manage their payment method. This component is
|
|
21
9
|
* composed in the `<AccountSettings />` Element.
|
|
22
10
|
*
|
|
@@ -25,17 +13,20 @@ export type ComponentProps = {
|
|
|
25
13
|
* (() => {
|
|
26
14
|
* const features = useFeatures("Global");
|
|
27
15
|
*
|
|
28
|
-
* return <
|
|
16
|
+
* return <CarrierServices.Element features={features} />;
|
|
29
17
|
* })();
|
|
30
18
|
* ```
|
|
31
19
|
*
|
|
32
20
|
* <br />
|
|
33
21
|
*
|
|
34
|
-
* @see {@link
|
|
35
|
-
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<
|
|
22
|
+
* @see {@link CarrierServices.ComponentProps | The props that are passed into the `<CarrierServices />` component}
|
|
23
|
+
* @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<CarrierServices />` component}
|
|
36
24
|
*/
|
|
37
|
-
export
|
|
38
|
-
|
|
25
|
+
export type CarrierServicesProps = {
|
|
26
|
+
onRedirectToOnboarding?: () => void;
|
|
27
|
+
};
|
|
28
|
+
export declare const Component: ({ onRedirectToOnboarding }: CarrierServicesProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const Element: ({ resources, ...props }: CarrierServicesProps & {
|
|
39
30
|
resources?: {
|
|
40
31
|
en: {
|
|
41
32
|
"wallet-history": {
|
|
@@ -133,7 +124,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
133
124
|
genericText: string;
|
|
134
125
|
};
|
|
135
126
|
};
|
|
136
|
-
"
|
|
127
|
+
"manage-carriers": {
|
|
137
128
|
title: string;
|
|
138
129
|
headers: {
|
|
139
130
|
accountCarriers: string;
|
|
@@ -211,6 +202,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
211
202
|
title: string;
|
|
212
203
|
};
|
|
213
204
|
};
|
|
205
|
+
noFundingSource: string;
|
|
214
206
|
};
|
|
215
207
|
"rate-details": {
|
|
216
208
|
total: string;
|
|
@@ -385,9 +377,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
385
377
|
messageLine2: string;
|
|
386
378
|
};
|
|
387
379
|
stepLabel: {
|
|
388
|
-
/**
|
|
389
|
-
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
390
|
-
*/
|
|
391
380
|
accountRegistration: string;
|
|
392
381
|
termsAgreement: string;
|
|
393
382
|
shipFromAddress: string;
|
|
@@ -398,6 +387,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
398
387
|
subtitle: string;
|
|
399
388
|
inlineMessage: string;
|
|
400
389
|
};
|
|
390
|
+
errors: {
|
|
391
|
+
noCarriers: {
|
|
392
|
+
title: string;
|
|
393
|
+
subtitle: string;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
401
396
|
success: {
|
|
402
397
|
title: string;
|
|
403
398
|
subtitle: string;
|
|
@@ -443,6 +438,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
443
438
|
returnToAddressIsDifferent: string;
|
|
444
439
|
setDefault: string;
|
|
445
440
|
shipFrom: string;
|
|
441
|
+
noWarehouses: string;
|
|
446
442
|
};
|
|
447
443
|
"manage-funding": {
|
|
448
444
|
actions: {
|
|
@@ -490,6 +486,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
490
486
|
errors: {
|
|
491
487
|
balanceUnknown: string;
|
|
492
488
|
unableToFindBalance: string;
|
|
489
|
+
noFundingSource: string;
|
|
493
490
|
};
|
|
494
491
|
byoc: {
|
|
495
492
|
invoiceNotification: string;
|
|
@@ -589,6 +586,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
589
586
|
toastTitle: string;
|
|
590
587
|
toastBody: string;
|
|
591
588
|
};
|
|
589
|
+
deleteCarrierErrorTitle: string;
|
|
590
|
+
deleteCarrierErrorMessage: string;
|
|
591
|
+
loadingDeletingCarrier: string;
|
|
592
592
|
};
|
|
593
593
|
common: {
|
|
594
594
|
actions: {
|
|
@@ -691,6 +691,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
691
691
|
};
|
|
692
692
|
customs: {
|
|
693
693
|
addDeclaration: string;
|
|
694
|
+
noResults: string;
|
|
694
695
|
contents: {
|
|
695
696
|
documents: string;
|
|
696
697
|
gift: string;
|
|
@@ -698,6 +699,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
698
699
|
returnedGoods: string;
|
|
699
700
|
sample: string;
|
|
700
701
|
};
|
|
702
|
+
taxIds: {
|
|
703
|
+
sectionTitle: string;
|
|
704
|
+
addTaxId: string;
|
|
705
|
+
sectionTitleTooltip: string;
|
|
706
|
+
entityTypeTooltipText: string;
|
|
707
|
+
entityTypeTooltipPointOne: string;
|
|
708
|
+
entityTypeTooltipPointTwo: string;
|
|
709
|
+
};
|
|
701
710
|
currencyChange: string;
|
|
702
711
|
declarations: string;
|
|
703
712
|
descriptionTooltip: {
|
|
@@ -715,6 +724,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
715
724
|
sku: string;
|
|
716
725
|
value: string;
|
|
717
726
|
valueQuantity: string;
|
|
727
|
+
taxId: string;
|
|
728
|
+
taxIdType: string;
|
|
729
|
+
taxIdTypeValue: string;
|
|
730
|
+
taxIssuingAuthority: string;
|
|
731
|
+
entityType: string;
|
|
718
732
|
};
|
|
719
733
|
nonDelivery: {
|
|
720
734
|
returnToSender: string;
|
|
@@ -787,6 +801,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
787
801
|
shipment: string;
|
|
788
802
|
shipments: string;
|
|
789
803
|
warehouses: string;
|
|
804
|
+
funding: string;
|
|
805
|
+
paymentMethod: string;
|
|
790
806
|
};
|
|
791
807
|
months: {
|
|
792
808
|
january: string;
|
|
@@ -865,6 +881,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
865
881
|
gram: string;
|
|
866
882
|
kilogram: string;
|
|
867
883
|
};
|
|
884
|
+
actionsMenu: {
|
|
885
|
+
menuTitle: string;
|
|
886
|
+
actions: {
|
|
887
|
+
printLabel: string;
|
|
888
|
+
voidLabel: string;
|
|
889
|
+
printForms: string;
|
|
890
|
+
edit: string;
|
|
891
|
+
remove: string;
|
|
892
|
+
};
|
|
893
|
+
};
|
|
868
894
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
869
895
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
870
896
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
@@ -880,7 +906,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
880
906
|
};
|
|
881
907
|
"account-settings": {
|
|
882
908
|
messages: {
|
|
883
|
-
|
|
909
|
+
transactionHistory: {
|
|
910
|
+
noTransactions: string;
|
|
911
|
+
};
|
|
912
|
+
noFundingSourceDescription: string;
|
|
913
|
+
noFundingSourceAction: string;
|
|
884
914
|
};
|
|
885
915
|
title: string;
|
|
886
916
|
sections: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as CarrierServices from "./carrier-services";
|
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export type ConnectCarrierFeatures = {
|
|
3
|
-
availableCarrierConnections?: string[];
|
|
4
|
-
};
|
|
5
2
|
/**
|
|
6
|
-
* #
|
|
3
|
+
* # ConnectExternalCarrier Props
|
|
7
4
|
*
|
|
8
|
-
* @see {@link
|
|
5
|
+
* @see {@link ConnectExternalCarrier.Component | The `<ConnectExternalCarrier />` component}
|
|
9
6
|
*/
|
|
10
7
|
export type ComponentProps = {
|
|
11
8
|
carrierName?: string;
|
|
12
|
-
features?: ConnectCarrierFeatures;
|
|
13
9
|
onCancel?: () => void;
|
|
14
10
|
onCarrierConnected?: (carrierId: string) => void;
|
|
15
11
|
};
|
|
16
12
|
/**
|
|
17
|
-
* #
|
|
13
|
+
* # ConnectExternalCarrier Component
|
|
18
14
|
*
|
|
19
|
-
* @param ComponentProps The base props that will be passed into the `<
|
|
15
|
+
* @param ComponentProps The base props that will be passed into the `<ConnectExternalCarrier />` component.
|
|
20
16
|
*
|
|
21
|
-
* @returns Element A React element that renders the `<
|
|
17
|
+
* @returns Element A React element that renders the `<ConnectExternalCarrier />` component allowing users
|
|
22
18
|
* to connect their own existing carrier account. If no carrier is provided, the user may
|
|
23
19
|
* select from a list of carriers specified by `features.availableCarrierConnections`.
|
|
24
20
|
* This component is composed in the `<AccountSettings />` Element.
|
|
@@ -28,15 +24,15 @@ export type ComponentProps = {
|
|
|
28
24
|
* (() => {
|
|
29
25
|
* const features = useFeatures("CarrierConnections");
|
|
30
26
|
*
|
|
31
|
-
* return <
|
|
27
|
+
* return <ConnectExternalCarrier.Component features={features} />;
|
|
32
28
|
* })();
|
|
33
29
|
* ```
|
|
34
30
|
*
|
|
35
31
|
* <br />
|
|
36
32
|
*
|
|
37
|
-
* @see {@link
|
|
33
|
+
* @see {@link ConnectExternalCarrier.ComponentProps | The props that are passed into the `<ConnectExternalCarrier />` component}
|
|
38
34
|
*/
|
|
39
|
-
export declare const Component: ({ carrierName,
|
|
35
|
+
export declare const Component: ({ carrierName, onCancel, onCarrierConnected }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
40
36
|
export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
41
37
|
resources?: {
|
|
42
38
|
en: {
|
|
@@ -135,7 +131,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
135
131
|
genericText: string;
|
|
136
132
|
};
|
|
137
133
|
};
|
|
138
|
-
"
|
|
134
|
+
"manage-carriers": {
|
|
139
135
|
title: string;
|
|
140
136
|
headers: {
|
|
141
137
|
accountCarriers: string;
|
|
@@ -213,6 +209,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
213
209
|
title: string;
|
|
214
210
|
};
|
|
215
211
|
};
|
|
212
|
+
noFundingSource: string;
|
|
216
213
|
};
|
|
217
214
|
"rate-details": {
|
|
218
215
|
total: string;
|
|
@@ -397,6 +394,12 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
397
394
|
subtitle: string;
|
|
398
395
|
inlineMessage: string;
|
|
399
396
|
};
|
|
397
|
+
errors: {
|
|
398
|
+
noCarriers: {
|
|
399
|
+
title: string;
|
|
400
|
+
subtitle: string;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
400
403
|
success: {
|
|
401
404
|
title: string;
|
|
402
405
|
subtitle: string;
|
|
@@ -442,6 +445,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
442
445
|
returnToAddressIsDifferent: string;
|
|
443
446
|
setDefault: string;
|
|
444
447
|
shipFrom: string;
|
|
448
|
+
noWarehouses: string;
|
|
445
449
|
};
|
|
446
450
|
"manage-funding": {
|
|
447
451
|
actions: {
|
|
@@ -489,6 +493,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
489
493
|
errors: {
|
|
490
494
|
balanceUnknown: string;
|
|
491
495
|
unableToFindBalance: string;
|
|
496
|
+
noFundingSource: string;
|
|
492
497
|
};
|
|
493
498
|
byoc: {
|
|
494
499
|
invoiceNotification: string;
|
|
@@ -588,6 +593,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
588
593
|
toastTitle: string;
|
|
589
594
|
toastBody: string;
|
|
590
595
|
};
|
|
596
|
+
deleteCarrierErrorTitle: string;
|
|
597
|
+
deleteCarrierErrorMessage: string;
|
|
598
|
+
loadingDeletingCarrier: string;
|
|
591
599
|
};
|
|
592
600
|
common: {
|
|
593
601
|
actions: {
|
|
@@ -621,29 +629,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
621
629
|
postalCode: string;
|
|
622
630
|
phone: string;
|
|
623
631
|
email: string;
|
|
624
|
-
/**
|
|
625
|
-
* # Connect-Carriers Component
|
|
626
|
-
*
|
|
627
|
-
* @param ComponentProps The base props that will be passed into the `<ConnectCarrier />` component.
|
|
628
|
-
*
|
|
629
|
-
* @returns Element A React element that renders the `<ConnectCarrier />` component allowing users
|
|
630
|
-
* to connect their own existing carrier account. If no carrier is provided, the user may
|
|
631
|
-
* select from a list of carriers specified by `features.availableCarrierConnections`.
|
|
632
|
-
* This component is composed in the `<AccountSettings />` Element.
|
|
633
|
-
*
|
|
634
|
-
* @example
|
|
635
|
-
* ```tsx
|
|
636
|
-
* (() => {
|
|
637
|
-
* const features = useFeatures("CarrierConnections");
|
|
638
|
-
*
|
|
639
|
-
* return <ConnectCarrier.Component features={features} />;
|
|
640
|
-
* })();
|
|
641
|
-
* ```
|
|
642
|
-
*
|
|
643
|
-
* <br />
|
|
644
|
-
*
|
|
645
|
-
* @see {@link ConnectCarrier.ComponentProps | The props that are passed into the `<ConnectCarrier />` component}
|
|
646
|
-
*/
|
|
647
632
|
addressResidentialIndicator: string;
|
|
648
633
|
};
|
|
649
634
|
noResults: string;
|
|
@@ -713,6 +698,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
713
698
|
};
|
|
714
699
|
customs: {
|
|
715
700
|
addDeclaration: string;
|
|
701
|
+
noResults: string;
|
|
716
702
|
contents: {
|
|
717
703
|
documents: string;
|
|
718
704
|
gift: string;
|
|
@@ -720,6 +706,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
720
706
|
returnedGoods: string;
|
|
721
707
|
sample: string;
|
|
722
708
|
};
|
|
709
|
+
taxIds: {
|
|
710
|
+
sectionTitle: string;
|
|
711
|
+
addTaxId: string;
|
|
712
|
+
sectionTitleTooltip: string;
|
|
713
|
+
entityTypeTooltipText: string;
|
|
714
|
+
entityTypeTooltipPointOne: string;
|
|
715
|
+
entityTypeTooltipPointTwo: string;
|
|
716
|
+
};
|
|
723
717
|
currencyChange: string;
|
|
724
718
|
declarations: string;
|
|
725
719
|
descriptionTooltip: {
|
|
@@ -737,6 +731,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
737
731
|
sku: string;
|
|
738
732
|
value: string;
|
|
739
733
|
valueQuantity: string;
|
|
734
|
+
taxId: string;
|
|
735
|
+
taxIdType: string;
|
|
736
|
+
taxIdTypeValue: string;
|
|
737
|
+
taxIssuingAuthority: string;
|
|
738
|
+
entityType: string;
|
|
740
739
|
};
|
|
741
740
|
nonDelivery: {
|
|
742
741
|
returnToSender: string;
|
|
@@ -809,6 +808,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
809
808
|
shipment: string;
|
|
810
809
|
shipments: string;
|
|
811
810
|
warehouses: string;
|
|
811
|
+
funding: string;
|
|
812
|
+
paymentMethod: string;
|
|
812
813
|
};
|
|
813
814
|
months: {
|
|
814
815
|
january: string;
|
|
@@ -887,6 +888,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
887
888
|
gram: string;
|
|
888
889
|
kilogram: string;
|
|
889
890
|
};
|
|
891
|
+
actionsMenu: {
|
|
892
|
+
menuTitle: string;
|
|
893
|
+
actions: {
|
|
894
|
+
printLabel: string;
|
|
895
|
+
voidLabel: string;
|
|
896
|
+
printForms: string;
|
|
897
|
+
edit: string;
|
|
898
|
+
remove: string;
|
|
899
|
+
};
|
|
900
|
+
};
|
|
890
901
|
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
891
902
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
892
903
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
@@ -902,7 +913,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
902
913
|
};
|
|
903
914
|
"account-settings": {
|
|
904
915
|
messages: {
|
|
905
|
-
|
|
916
|
+
transactionHistory: {
|
|
917
|
+
noTransactions: string;
|
|
918
|
+
};
|
|
919
|
+
noFundingSourceDescription: string;
|
|
920
|
+
noFundingSourceAction: string;
|
|
906
921
|
};
|
|
907
922
|
title: string;
|
|
908
923
|
sections: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as ConnectExternalCarrier from "./connect-external-carrier";
|