@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
|
@@ -12,19 +12,21 @@ export declare const styles: {
|
|
|
12
12
|
disconnectCarrierOption: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
13
13
|
color: string;
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
iconButton: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
19
|
-
"&:hover": {
|
|
20
|
-
backgroundColor: "transparent !important";
|
|
21
|
-
color: `${string} !important`;
|
|
22
|
-
};
|
|
23
|
-
backgroundColor: "transparent";
|
|
24
|
-
border: number;
|
|
15
|
+
disconnectTitle: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
16
|
+
alignItems: "center";
|
|
25
17
|
color: string;
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
display: "flex";
|
|
19
|
+
gap: number;
|
|
20
|
+
};
|
|
21
|
+
dropdownContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
22
|
+
display: "flex";
|
|
23
|
+
flexDirection: "column";
|
|
24
|
+
gap: number;
|
|
25
|
+
padding: string;
|
|
26
|
+
};
|
|
27
|
+
iconButton: {
|
|
28
|
+
padding: string;
|
|
29
|
+
verticalAlign: string;
|
|
28
30
|
};
|
|
29
31
|
logoContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
30
32
|
alignItems: "center";
|
|
@@ -37,6 +39,11 @@ export declare const styles: {
|
|
|
37
39
|
display: "flex";
|
|
38
40
|
flexDirection: "column";
|
|
39
41
|
};
|
|
42
|
+
rightContentContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
43
|
+
alignItems: "center";
|
|
44
|
+
display: "flex";
|
|
45
|
+
gap: number;
|
|
46
|
+
};
|
|
40
47
|
rowContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
41
48
|
alignItems: "center";
|
|
42
49
|
display: "flex";
|
|
@@ -5,7 +5,7 @@ export * from "./address-parser";
|
|
|
5
5
|
export * from "./address-preference-display";
|
|
6
6
|
export * from "./address-preference-select";
|
|
7
7
|
export * from "./label";
|
|
8
|
-
export * from "../../features/
|
|
8
|
+
export * from "../../features/manage-carriers";
|
|
9
9
|
export * from "./product-form";
|
|
10
10
|
export * from "./rate-form";
|
|
11
11
|
export * from "./shipment-form";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const styles: {
|
|
2
|
-
actions: (
|
|
2
|
+
actions: () => {
|
|
3
3
|
background: string;
|
|
4
4
|
display: "flex";
|
|
5
5
|
flexDirection: "column";
|
|
6
6
|
};
|
|
7
|
-
actionsButton: (
|
|
7
|
+
actionsButton: () => {
|
|
8
8
|
padding: string;
|
|
9
9
|
verticalAlign: string;
|
|
10
10
|
};
|
|
@@ -21,7 +21,10 @@ export declare const styles: {
|
|
|
21
21
|
fontWeight: number;
|
|
22
22
|
paddingLeft: string;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
form: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
25
|
+
marginBottom: number;
|
|
26
|
+
};
|
|
27
|
+
header: () => {
|
|
25
28
|
"& > tr > th": {
|
|
26
29
|
"&:after": {
|
|
27
30
|
borderBottom: string;
|
|
@@ -82,12 +85,17 @@ export declare const styles: {
|
|
|
82
85
|
textAlign: "right";
|
|
83
86
|
width: number;
|
|
84
87
|
};
|
|
88
|
+
section: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
89
|
+
marginBottom: number;
|
|
90
|
+
width: string;
|
|
91
|
+
};
|
|
85
92
|
subtitle: () => {
|
|
86
93
|
letterSpacing: string;
|
|
87
94
|
};
|
|
88
|
-
table: () => {
|
|
95
|
+
table: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
89
96
|
border: string;
|
|
90
97
|
borderRadius: string;
|
|
91
98
|
boxShadow: "none";
|
|
99
|
+
marginBottom: number;
|
|
92
100
|
};
|
|
93
101
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { SE } from "@shipengine/
|
|
2
|
-
import { ConfigureShipmentFeatures } from "../../../elements/purchase-label/configure-shipment";
|
|
3
|
-
import { VatSettingsFeatures } from "../../../features";
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
4
2
|
import { ServicePointSearchQuery } from "../../../hooks";
|
|
5
3
|
import { PreferredRatesResponse } from "../../../types";
|
|
4
|
+
import { RateFormFeatures } from "../../../utilities";
|
|
6
5
|
export type RateFormProps = {
|
|
7
6
|
carriers?: SE.Carrier[];
|
|
8
7
|
currency: SE.Currency;
|
|
@@ -11,7 +10,7 @@ export type RateFormProps = {
|
|
|
11
10
|
displayableSaveRateErrors?: string[];
|
|
12
11
|
displayableShipmentErrors?: string[];
|
|
13
12
|
errors?: SE.CodedError[];
|
|
14
|
-
features?:
|
|
13
|
+
features?: RateFormFeatures;
|
|
15
14
|
fetchServicePoints: (searchQuery: string) => void;
|
|
16
15
|
isLoading?: boolean;
|
|
17
16
|
labelErrors?: string[];
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { SE } from "@shipengine/
|
|
2
|
-
import {
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
|
+
import { ShipmentSummaryFeatures } from "../../../utilities";
|
|
3
3
|
export declare const schedulePickupForCarrier: (carrierCode?: string, plaftformSchedulePickupUrl?: string) => string | undefined;
|
|
4
|
-
export type ShipmentFeatures = {
|
|
5
|
-
presentation?: {
|
|
6
|
-
poweredByShipEngine?: boolean;
|
|
7
|
-
};
|
|
8
|
-
shipment?: {
|
|
9
|
-
schedulePickup?: boolean;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
4
|
export type ShipmentProps = {
|
|
13
5
|
carriers?: SE.Carrier[];
|
|
14
|
-
features?:
|
|
6
|
+
features?: ShipmentSummaryFeatures;
|
|
15
7
|
labels?: SE.Label[];
|
|
16
8
|
onClickPrintLabel?: () => void;
|
|
17
9
|
onClickPurchaseLabel?: (order: SE.SalesOrder) => void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { SE } from "@shipengine/react-api";
|
|
3
|
+
export type TaxIdFormSchema = {
|
|
4
|
+
entityType: SE.TaxableEntityType;
|
|
5
|
+
issuingAuthority: string;
|
|
6
|
+
tax: {
|
|
7
|
+
type: SE.TaxableIdentifierType;
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const getTaxIdSchema: () => z.ZodObject<{
|
|
12
|
+
entityType: z.ZodString;
|
|
13
|
+
issuingAuthority: z.ZodString;
|
|
14
|
+
tax: z.ZodObject<{
|
|
15
|
+
type: z.ZodString;
|
|
16
|
+
value: z.ZodString;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
value: string;
|
|
19
|
+
type: string;
|
|
20
|
+
}, {
|
|
21
|
+
value: string;
|
|
22
|
+
type: string;
|
|
23
|
+
}>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
entityType: string;
|
|
26
|
+
issuingAuthority: string;
|
|
27
|
+
tax: {
|
|
28
|
+
value: string;
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
entityType: string;
|
|
33
|
+
issuingAuthority: string;
|
|
34
|
+
tax: {
|
|
35
|
+
value: string;
|
|
36
|
+
type: string;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
|
+
type TaxIdTypeOption = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: SE.TaxableIdentifierType;
|
|
5
|
+
};
|
|
6
|
+
type EntityTypeOption = {
|
|
7
|
+
label: string;
|
|
8
|
+
value: SE.TaxableEntityType;
|
|
9
|
+
};
|
|
10
|
+
export declare const taxIdTypesOptions: TaxIdTypeOption[];
|
|
11
|
+
export declare const entityTypeOptions: EntityTypeOption[];
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SE } from "@shipengine/react-api";
|
|
3
|
+
import { TaxIdFormSchema } from "./form";
|
|
4
|
+
export declare const FormID = "tax-id-form";
|
|
5
|
+
type TaxIdFormProps = {
|
|
6
|
+
onCancel?: () => void;
|
|
7
|
+
onSubmit: (values: TaxIdFormSchema) => void;
|
|
8
|
+
taxIdToEdit?: SE.TaxIdentifier;
|
|
9
|
+
} & ({
|
|
10
|
+
formId: string;
|
|
11
|
+
portalRef: React.RefObject<HTMLElement>;
|
|
12
|
+
} | {
|
|
13
|
+
formId?: string;
|
|
14
|
+
portalRef?: never;
|
|
15
|
+
});
|
|
16
|
+
export declare const TaxIdForm: ({ portalRef, taxIdToEdit, onSubmit, onCancel }: TaxIdFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
|
+
import { Actions } from "../../../../../../../components";
|
|
3
|
+
type TaxIdListProps = {
|
|
4
|
+
/** Callback when the user selects one option from the Actions Menu */
|
|
5
|
+
handleActionsClick: (selectedIndex: number) => (action: Actions) => Promise<void>;
|
|
6
|
+
/** Flag to set the ActionsMenu as loading of the desired index */
|
|
7
|
+
itemIndexLoading?: number;
|
|
8
|
+
/** List of SE.TaxIdentifier to render */
|
|
9
|
+
taxIdItems: SE.TaxIdentifier[];
|
|
10
|
+
};
|
|
11
|
+
export declare const TaxIdList: ({ taxIdItems, itemIndexLoading, handleActionsClick }: TaxIdListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
2
|
+
type TaxIdsProps = {
|
|
3
|
+
onDirty: () => void;
|
|
4
|
+
onUpdateTaxableIds?: (taxIds: SE.TaxIdentifier[], onError: (errors: SE.CodedError[]) => void) => Promise<SE.SalesOrderShipment>;
|
|
5
|
+
shipment: SE.SalesOrderShipment;
|
|
6
|
+
};
|
|
7
|
+
export declare const TaxIds: ({ shipment, onUpdateTaxableIds, onDirty }: TaxIdsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
addTaxIdLink: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
|
+
alignSelf: "end";
|
|
4
|
+
fontWeight: number;
|
|
5
|
+
};
|
|
6
|
+
addTaxIdLinkOpened: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
7
|
+
":hover": {
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
color: string;
|
|
11
|
+
};
|
|
12
|
+
addTaxIdTitleWrapper: () => {
|
|
13
|
+
alignItems: "center";
|
|
14
|
+
display: "flex";
|
|
15
|
+
};
|
|
16
|
+
iconTooltip: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
17
|
+
color: string;
|
|
18
|
+
marginLeft: number;
|
|
19
|
+
};
|
|
20
|
+
section: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
21
|
+
marginBottom: number;
|
|
22
|
+
};
|
|
23
|
+
taxIdFormSection: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
24
|
+
backgroundColor: string;
|
|
25
|
+
padding: number;
|
|
26
|
+
};
|
|
27
|
+
taxIdList: () => {
|
|
28
|
+
listStyle: "none";
|
|
29
|
+
};
|
|
30
|
+
taxIdListItem: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
31
|
+
":first-of-type:nth-last-child(n+2)": {
|
|
32
|
+
borderBottomLeftRadius: number;
|
|
33
|
+
borderBottomRightRadius: number;
|
|
34
|
+
};
|
|
35
|
+
":not(:first-of-type)": {
|
|
36
|
+
borderTop: number;
|
|
37
|
+
borderTopLeftRadius: number;
|
|
38
|
+
borderTopRightRadius: number;
|
|
39
|
+
};
|
|
40
|
+
":not(:first-of-type):not(:last-child)": {
|
|
41
|
+
borderBottomLeftRadius: number;
|
|
42
|
+
borderBottomRightRadius: number;
|
|
43
|
+
};
|
|
44
|
+
border: string;
|
|
45
|
+
borderRadius: string;
|
|
46
|
+
display: "flex";
|
|
47
|
+
justifyContent: "space-between";
|
|
48
|
+
padding: number;
|
|
49
|
+
};
|
|
50
|
+
taxIdListItemAuthorityTag: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
51
|
+
marginRight: number;
|
|
52
|
+
};
|
|
53
|
+
taxIdListItemAuthorityText: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
54
|
+
color: string;
|
|
55
|
+
};
|
|
56
|
+
taxIdListItemAuthorityWrapper: () => {
|
|
57
|
+
alignItems: "center";
|
|
58
|
+
display: "flex";
|
|
59
|
+
};
|
|
60
|
+
taxIdListItemIdentifier: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
61
|
+
marginRight: number;
|
|
62
|
+
};
|
|
63
|
+
tooltipContainer: () => {
|
|
64
|
+
textAlign: "left";
|
|
65
|
+
width: number;
|
|
66
|
+
};
|
|
67
|
+
tooltipList: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
68
|
+
paddingLeft: number;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UseFormReturn } from "react-hook-form";
|
|
2
|
+
import { SE } from "@shipengine/react-api";
|
|
3
|
+
import { ShipmentFormProps } from "../../shipment-form";
|
|
4
|
+
import { ShipmentFormFields } from "../../shipment-schema";
|
|
5
|
+
type CustomsFormsProps = {
|
|
6
|
+
form: UseFormReturn<ShipmentFormFields>;
|
|
7
|
+
shipment: SE.SalesOrderShipment;
|
|
8
|
+
} & Pick<ShipmentFormProps, "currency" | "onDirty" | "onUpdateCustoms" | "onUpdateTaxableIds">;
|
|
9
|
+
export declare const CustomsForms: ({ form, currency, onUpdateCustoms, onUpdateTaxableIds, shipment, onDirty, }: CustomsFormsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CustomsForms } from "./customs-forms";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CustomsForms } from "./customs-forms";
|
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { SE } from "@shipengine/
|
|
2
|
+
import { SE } from "@shipengine/react-api";
|
|
3
3
|
import { UseShippingPresetsOptionsProps } from "../../../hooks";
|
|
4
4
|
import { ShippingPreset } from "../../../types";
|
|
5
|
+
import { ShipmentFormFeatures } from "../../../utilities";
|
|
5
6
|
import { AddressParserPayload } from "../address-parser";
|
|
6
7
|
import { AddressPreference, AddressPreferenceDisplayProps } from "../address-preference-display";
|
|
7
8
|
export type OnChangeAddressOptions = {
|
|
8
9
|
shouldValidate?: boolean;
|
|
9
10
|
};
|
|
10
11
|
export type ShipmentFormMode = "browse_rates" | "select_service";
|
|
11
|
-
export type ShipmentFormFeatures = {
|
|
12
|
-
addOns?: boolean;
|
|
13
|
-
browseRates?: boolean;
|
|
14
|
-
includeShipsuranceInsurance?: boolean;
|
|
15
|
-
includeThirdPartyInsurance?: boolean;
|
|
16
|
-
selectService?: boolean;
|
|
17
|
-
shippingPresets?: boolean;
|
|
18
|
-
};
|
|
19
12
|
export type ShipmentFormProps = {
|
|
20
13
|
accountSettings?: SE.AccountSettings;
|
|
21
14
|
addressLoading: boolean;
|
|
@@ -42,6 +35,7 @@ export type ShipmentFormProps = {
|
|
|
42
35
|
onSubmitParseShipTo: (payload: AddressParserPayload) => Promise<SE.AddressExtraction | undefined>;
|
|
43
36
|
onToggleAddressPreferenceDisclosure?: AddressPreferenceDisplayProps["onToggleDisclosure"];
|
|
44
37
|
onUpdateCustoms?: (customs: SE.Customs, products: SE.Product[]) => Promise<SE.SalesOrderShipment | undefined>;
|
|
38
|
+
onUpdateTaxableIds?: (taxIds: SE.TaxIdentifier[], onError: (errors: SE.CodedError[]) => void) => Promise<SE.SalesOrderShipment>;
|
|
45
39
|
parseAddressErrors?: SE.CodedError[];
|
|
46
40
|
resetParseAddress?: () => void;
|
|
47
41
|
salesOrder?: SE.SalesOrder;
|
|
@@ -55,4 +49,4 @@ export type CharsetWarning = {
|
|
|
55
49
|
message: string;
|
|
56
50
|
title?: string;
|
|
57
51
|
};
|
|
58
|
-
export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, currency, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onChangeWarehouse, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, parseAddressErrors, resetParseAddress, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare const ShipmentForm: ({ accountSettings, addressLoading, addressPreference, charsetWarning, carriers, customPackageTypes, currency, features, hydrateRef, insuranceAccount, isLoading, onApplyPreset, onChangeAddress, onChangeMode, onChangeWarehouse, onDirty, onSubmit, onSubmitParseShipTo, onToggleAddressPreferenceDisclosure, onUpdateCustoms, onUpdateTaxableIds, parseAddressErrors, resetParseAddress, salesOrder, shipment, shippingPresets, warehouseId, warehouses, }: ShipmentFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SE } from "@shipengine/
|
|
2
|
-
import { VatSettingsFeatures } from "../../../features";
|
|
1
|
+
import { SE } from "@shipengine/react-api";
|
|
3
2
|
export type WalletFormFeatures = {};
|
|
4
3
|
export type WalletPayload = {
|
|
5
4
|
address: SE.Address;
|
|
@@ -9,7 +8,6 @@ export type WalletPayload = {
|
|
|
9
8
|
export type WalletFormProps = {
|
|
10
9
|
address: SE.Address;
|
|
11
10
|
errors?: SE.CodedError[] | null;
|
|
12
|
-
features?: VatSettingsFeatures;
|
|
13
11
|
onSubmit: (payload: WalletPayload) => Promise<void>;
|
|
14
12
|
};
|
|
15
|
-
export declare const WalletForm: ({ address, errors, onSubmit
|
|
13
|
+
export declare const WalletForm: ({ address, errors, onSubmit }: WalletFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { Provider } from "@shipengine/
|
|
2
|
+
import { Provider } from "@shipengine/react-api";
|
|
3
3
|
export declare const walletEmailSchemas: {
|
|
4
4
|
emailOptional: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
5
5
|
emailRequired: z.ZodString;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SE } from "@shipengine/react-api";
|
|
2
3
|
export type WarehousePayload = Partial<SE.Warehouse> & Pick<SE.Warehouse, "name" | "originAddress" | "isDefault">;
|
|
3
|
-
export type WarehouseFormProps = {
|
|
4
|
+
export type WarehouseFormProps<T = undefined> = {
|
|
4
5
|
onCancel?: () => void;
|
|
5
6
|
onDelete?: () => void;
|
|
6
7
|
onSubmit: (payload: WarehousePayload) => void;
|
|
@@ -8,5 +9,11 @@ export type WarehouseFormProps = {
|
|
|
8
9
|
submitButtonTitle: string;
|
|
9
10
|
useStrictSchema?: boolean;
|
|
10
11
|
warehouse?: SE.Warehouse | Pick<SE.Warehouse, "name" | "isDefault" | "originAddress" | "returnAddress">;
|
|
11
|
-
}
|
|
12
|
-
|
|
12
|
+
} & ({
|
|
13
|
+
formId: string;
|
|
14
|
+
portalRef: React.RefObject<T>;
|
|
15
|
+
} | {
|
|
16
|
+
formId?: string;
|
|
17
|
+
portalRef?: never;
|
|
18
|
+
});
|
|
19
|
+
export declare const WarehouseForm: <T extends Element>({ onCancel, formId, onDelete, onSubmit, portalRef, submitButtonTitle, warehouse, shouldForceDefault, useStrictSchema, }: WarehouseFormProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LinkActionProps } from "../link-action";
|
|
2
|
+
export type ZeroStateProps = {
|
|
3
|
+
description?: string;
|
|
4
|
+
showLinkAction?: LinkActionProps;
|
|
5
|
+
};
|
|
6
|
+
export declare const ZeroState: ({ description, showLinkAction }: ZeroStateProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
container: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
|
|
3
|
+
alignItems: "center";
|
|
4
|
+
borderColor: string;
|
|
5
|
+
borderRadius: string;
|
|
6
|
+
borderStyle: "dashed";
|
|
7
|
+
borderWidth: string;
|
|
8
|
+
display: "flex";
|
|
9
|
+
flexDirection: "column";
|
|
10
|
+
gap: number;
|
|
11
|
+
padding: string;
|
|
12
|
+
textAlign: "center";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Theme } from "@emotion/react";
|
|
2
|
+
import { Interpolation } from "@emotion/serialize";
|
|
3
|
+
import { ElementComponent, ElementFallbackComponent, TranslationResources } from "./element";
|
|
4
|
+
export interface CreateElementOptions<T extends TranslationResources> {
|
|
5
|
+
css?: Interpolation<Theme>;
|
|
6
|
+
resources?: T;
|
|
7
|
+
}
|
|
8
|
+
export declare const createElement: <P extends object, T extends TranslationResources<import("./element").TranslationNamespaces>>(Component: ElementComponent<P>, fallback: ElementFallbackComponent, options?: CreateElementOptions<T> | undefined) => ({ resources, ...props }: P & {
|
|
9
|
+
resources?: T | undefined;
|
|
10
|
+
}) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WithConditionalCSSProp } from "@emotion/react/types/jsx-namespace";
|
|
3
|
+
import { TranslationResources } from "./hooks";
|
|
4
|
+
export type ElementComponentProps = object & WithConditionalCSSProp<object>;
|
|
5
|
+
export type ElementComponent<P extends ElementComponentProps> = React.ComponentType<P>;
|
|
6
|
+
export type ElementFallbackComponentProps = {
|
|
7
|
+
error: Error;
|
|
8
|
+
};
|
|
9
|
+
export type ElementFallbackComponent = React.ComponentType<ElementFallbackComponentProps>;
|
|
10
|
+
export interface ElementProps {
|
|
11
|
+
children: React.ReactElement<ElementComponentProps>;
|
|
12
|
+
className?: string;
|
|
13
|
+
fallback: ElementFallbackComponent;
|
|
14
|
+
resources?: TranslationResources;
|
|
15
|
+
}
|
|
16
|
+
export declare const Element: ({ children, className, fallback: FallbackComponent, resources, }: ElementProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./use-i18n";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type TranslationNamespaces = {
|
|
2
|
+
[key: string]: Record<string, any>;
|
|
3
|
+
common: Record<string, any>;
|
|
4
|
+
};
|
|
5
|
+
export type TranslationResources<Namespaces = TranslationNamespaces> = {
|
|
6
|
+
[key: string]: Namespaces;
|
|
7
|
+
en: Namespaces;
|
|
8
|
+
};
|
|
9
|
+
export interface UseI18nProps {
|
|
10
|
+
resources?: TranslationResources;
|
|
11
|
+
}
|
|
12
|
+
export declare const useI18n: ({ resources }: UseI18nProps) => import("i18next").i18n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./get-emotion-cache";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ElementsErrorHandler } from "../../elements-provider";
|
|
3
|
+
export interface ErrorProps {
|
|
4
|
+
error: Error;
|
|
5
|
+
}
|
|
6
|
+
export type ErrorBoundaryProps = {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
fallback: React.ComponentType<{
|
|
9
|
+
error: Error;
|
|
10
|
+
}>;
|
|
11
|
+
onError: ElementsErrorHandler;
|
|
12
|
+
};
|
|
13
|
+
type ErrorBoundaryState = {
|
|
14
|
+
error?: Error;
|
|
15
|
+
};
|
|
16
|
+
declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
17
|
+
constructor(props: ErrorBoundaryProps);
|
|
18
|
+
componentDidCatch(error: Error, context: React.ErrorInfo): void;
|
|
19
|
+
render(): string | number | boolean | React.ReactFragment | import("@emotion/react/jsx-runtime").JSX.Element | null | undefined;
|
|
20
|
+
}
|
|
21
|
+
export { ErrorBoundary };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./error-boundary";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./create-element";
|
package/src/elements/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./manage-carriers";
|
|
2
2
|
export * from "./manage-warehouses";
|
|
3
3
|
export * from "./purchase-label";
|
|
4
|
-
export * from "./external-carriers";
|
|
4
|
+
export * from "./manage-external-carriers";
|
|
5
5
|
export * from "./labels-grid";
|
|
6
6
|
export * from "./shipments-grid";
|
|
7
7
|
export * from "./theme-creator";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./shipment-summary";
|
|
9
9
|
export * from "./void-label";
|
|
10
10
|
export * from "./unit-settings";
|
|
11
11
|
export * from "./manage-funding";
|
|
12
12
|
export * from "./label-layout";
|
|
13
13
|
export * from "./payment-method-settings";
|
|
14
14
|
export * from "./label-layout";
|
|
15
|
-
export * from "../workflows/
|
|
15
|
+
export * from "../workflows/carrier-services";
|
|
16
|
+
export * from "./transaction-history";
|