@sonic-equipment/ui 214.0.0 → 216.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/address-info-display/address-info-display.js +1 -1
- package/dist/algolia/algolia-insights-provider.d.ts +1 -1
- package/dist/buttons/button/button.d.ts +1 -1
- package/dist/buttons/link/link.d.ts +1 -1
- package/dist/buttons/print-button/print-button.d.ts +2 -1
- package/dist/buttons/print-button/print-button.js +2 -2
- package/dist/cards/product-card/product-card.js +1 -1
- package/dist/cards/table-card/table-card.d.ts +1 -1
- package/dist/cards/table-card/table-card.js +5 -3
- package/dist/carousel/carousel-navigation-button.d.ts +1 -1
- package/dist/cart-totals/cart-totals.js +1 -1
- package/dist/collapsables/accordion/accordion-item.js +3 -1
- package/dist/collapsables/cascading-component/cascading-component-container-context.d.ts +1 -1
- package/dist/collapsables/show-all/show-all.js +4 -2
- package/dist/collapsables/unmounter/unmounter.d.ts +1 -1
- package/dist/cookies/cookie-context.d.ts +1 -1
- package/dist/country-select/country-select.js +3 -1
- package/dist/country-selector/country-selector-trigger/country-selector-trigger.js +3 -1
- package/dist/exports.d.ts +13 -1
- package/dist/filters/active-filters/active-filters.js +1 -1
- package/dist/forms/elements/field-error/field-error.js +3 -1
- package/dist/forms/fields/number-field/number-field.d.ts +1 -1
- package/dist/forms/partials/address-form/address-form.js +6 -2
- package/dist/header/buttons/account/connected-account-button.js +1 -1
- package/dist/index.js +15 -3
- package/dist/intl/formatted-message.d.ts +3 -2
- package/dist/intl/formatted-message.js +25 -5
- package/dist/intl/intl-context.d.ts +1 -1
- package/dist/intl/intl-context.js +1 -10
- package/dist/intl/translation-id.d.ts +1 -1
- package/dist/intl/types.d.ts +27 -15
- package/dist/intl/types.js +7 -1
- package/dist/intl/use-formatted-message.d.ts +2 -2
- package/dist/intl/use-formatted-message.js +5 -5
- package/dist/intl/use-intl.js +4 -1
- package/dist/intl/utils.js +1 -1
- package/dist/lists/menu-list/menu-list-provider.d.ts +1 -1
- package/dist/modals/confirmation/confirmation-dialog.d.ts +3 -2
- package/dist/modals/dialog/dialog.js +1 -1
- package/dist/notifications/announcements/announcement.d.ts +1 -1
- package/dist/observers/intersection-observer.js +1 -1
- package/dist/pages/my-sonic/actions/change-password/change-password.js +1 -1
- package/dist/pages/my-sonic/actions/edit-bill-to-address/connected-edit-bill-to-address-form.js +1 -1
- package/dist/pages/my-sonic/actions/edit-ship-to-address/connected-edit-ship-to-address-form.js +1 -1
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.d.ts +4 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.js +9 -0
- package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.module.css.js +1 -1
- package/dist/pages/my-sonic/navigation/connected-my-sonic-navigation.js +2 -2
- package/dist/pages/my-sonic/navigation/my-sonic-desktop-navigation.js +3 -1
- package/dist/pages/my-sonic/navigation/my-sonic-mobile-navigation.js +4 -2
- package/dist/pages/my-sonic/navigation/my-sonic-navigation-items.d.ts +1 -1
- package/dist/pages/my-sonic/navigation/my-sonic-navigation-items.js +3 -3
- package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.d.ts +7 -0
- package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.js +29 -0
- package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.d.ts +7 -0
- package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.js +29 -0
- package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.d.ts +9 -0
- package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.js +29 -0
- package/dist/pages/my-sonic/pages/favorites/favorites-page.d.ts +2 -0
- package/dist/pages/my-sonic/pages/favorites/favorites-page.js +23 -0
- package/dist/pages/my-sonic/pages/my-account/my-account-page.d.ts +2 -0
- package/dist/pages/my-sonic/pages/my-account/my-account-page.js +30 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-content.d.ts +8 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-content.js +69 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-content.module.css.js +3 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-page.d.ts +8 -0
- package/dist/pages/my-sonic/pages/order-details/order-details-page.js +41 -0
- package/dist/pages/my-sonic/pages/order-history/order-history-page.d.ts +2 -0
- package/dist/pages/my-sonic/pages/order-history/{order-history.js → order-history-page.js} +25 -7
- package/dist/pages/my-sonic/pages/order-history/order-history-page.module.css.js +3 -0
- package/dist/pages/my-sonic/widgets/connected-address-book-widget.js +8 -6
- package/dist/pages/product/product-listing-page/product-listing-page-provider/product-listing-page-context.d.ts +1 -1
- package/dist/shared/api/storefront/hooks/orders/use-fetch-order-by-id.d.ts +1 -0
- package/dist/shared/api/storefront/hooks/orders/use-fetch-order-by-id.js +14 -0
- package/dist/shared/api/storefront/model/storefront.model.d.ts +2 -1
- package/dist/shared/api/storefront/services/order-service.d.ts +3 -1
- package/dist/shared/api/storefront/services/order-service.js +12 -1
- package/dist/shared/data/order.d.ts +2 -0
- package/dist/shared/data/order.js +41 -0
- package/dist/shared/hooks/use-inert.d.ts +3 -0
- package/dist/shared/hooks/use-inert.js +16 -0
- package/dist/shared/model/address.d.ts +1 -1
- package/dist/shared/providers/global-state-provider.d.ts +1 -1
- package/dist/shared/routing/route-context.d.ts +1 -1
- package/dist/shared/routing/types.d.ts +1 -1
- package/dist/shared/routing/use-route-link-element.d.ts +1 -1
- package/dist/shared/routing/use-route-link.d.ts +1 -1
- package/dist/shared/routing/with-routing.d.ts +2 -2
- package/dist/sidebar/sidebar.js +4 -2
- package/dist/styles.css +129 -48
- package/dist/table/elements/table-context.d.ts +1 -1
- package/dist/table/elements/table-row-context.d.ts +1 -1
- package/dist/table/elements/types.d.ts +1 -0
- package/dist/text/status-text/status-text.d.ts +6 -0
- package/dist/text/status-text/status-text.js +8 -0
- package/dist/text/status-text/status-text.module.css.js +3 -0
- package/dist/toast/toast.d.ts +1 -1
- package/dist/typography/heading/heading.d.ts +2 -2
- package/package.json +7 -7
- package/dist/pages/my-sonic/pages/order-history/order-history.d.ts +0 -1
- package/dist/pages/my-sonic/pages/order-history/order-history.module.css.js +0 -3
|
@@ -4,7 +4,7 @@ import styles from './address-info-display.module.css.js';
|
|
|
4
4
|
|
|
5
5
|
function AddressInfoDisplay({ address, 'data-test-selector': dataTestSelector, }) {
|
|
6
6
|
const { address1, address2, address3, city, companyName, country, email, firstName, lastName, phone, postalCode, } = address;
|
|
7
|
-
return (jsxs("address", { className: styles.address, "data-test-selector": dataTestSelector, children: [(firstName || lastName) && (jsxs("p", { "data-test-selector": "addressInfoDisplay_name", children: [jsx("span", { "data-test-selector": "addressInfoDisplay_name_firstName", children: firstName }), ` `, jsx("span", { "data-test-selector": "addressInfoDisplay_name_lastName", children: lastName })] })), companyName && (jsx("p", { "data-test-selector": "addressInfoDisplay_companyName", children: companyName })), address1 && (jsx("p", { "data-test-selector": "addressInfoDisplay_address1", children: address1 })), address2 && (jsx("p", { "data-test-selector": "addressInfoDisplay_address2", children: address2 })), address3 && (jsx("p", { "data-test-selector": "addressInfoDisplay_address3", children: address3 })), (postalCode || city) && (jsxs("p", { children: [postalCode && (jsxs(Fragment, { children: [jsx("span", { "data-test-selector": "addressInfoDisplay_postalCode", children: postalCode }), ' '] })), city && (jsx("span", { "data-test-selector": "addressInfoDisplay_city", children: city }))] })), country && (jsx("p", { "data-test-selector": "addressInfoDisplay_country", children: country.name })), phone && jsx("p", { "data-test-selector": "addressInfoDisplay_phone", children: phone }), email && jsx("p", { "data-test-selector": "addressInfoDisplay_email", children: email })] }));
|
|
7
|
+
return (jsxs("address", { className: styles.address, "data-test-selector": dataTestSelector, children: [(firstName || lastName) && (jsxs("p", { "data-test-selector": "addressInfoDisplay_name", children: [jsx("span", { "data-test-selector": "addressInfoDisplay_name_firstName", children: firstName }), ` `, jsx("span", { "data-test-selector": "addressInfoDisplay_name_lastName", children: lastName })] })), companyName && (jsx("p", { "data-test-selector": "addressInfoDisplay_companyName", children: companyName })), address1 && (jsx("p", { "data-test-selector": "addressInfoDisplay_address1", children: address1 })), address2 && (jsx("p", { "data-test-selector": "addressInfoDisplay_address2", children: address2 })), address3 && (jsx("p", { "data-test-selector": "addressInfoDisplay_address3", children: address3 })), (postalCode || city) && (jsxs("p", { children: [postalCode && (jsxs(Fragment, { children: [jsx("span", { "data-test-selector": "addressInfoDisplay_postalCode", children: postalCode }), ' '] })), city && (jsx("span", { "data-test-selector": "addressInfoDisplay_city", children: city }))] })), country && (jsx("p", { "data-test-selector": "addressInfoDisplay_country", children: typeof country === 'string' ? country : country.name })), phone && jsx("p", { "data-test-selector": "addressInfoDisplay_phone", children: phone }), email && jsx("p", { "data-test-selector": "addressInfoDisplay_email", children: email })] }));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export { AddressInfoDisplay };
|
|
@@ -4,7 +4,7 @@ export interface AlgoliaInsightsProviderState extends AlgoliaInsightsProviderGlo
|
|
|
4
4
|
objectId?: string | string[] | undefined;
|
|
5
5
|
position?: number | number[] | undefined;
|
|
6
6
|
}
|
|
7
|
-
export declare const AlgoliaInsightsProviderContext:
|
|
7
|
+
export declare const AlgoliaInsightsProviderContext: React.Context<AlgoliaInsightsProviderState>;
|
|
8
8
|
export declare function AlgoliaInsightsProvider({ children, value, }: {
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
value?: AlgoliaInsightsProviderState;
|
|
@@ -25,4 +25,4 @@ export interface ButtonProps {
|
|
|
25
25
|
variant?: 'solid' | 'outline' | 'ghost';
|
|
26
26
|
withArrow?: boolean;
|
|
27
27
|
}
|
|
28
|
-
export declare const Button:
|
|
28
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -16,4 +16,4 @@ export interface LinkProps {
|
|
|
16
16
|
target?: string;
|
|
17
17
|
title?: string;
|
|
18
18
|
}
|
|
19
|
-
export declare const Link:
|
|
19
|
+
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ButtonProps } from '../button/button';
|
|
2
|
+
export declare function PrintButton(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,8 +3,8 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { FormattedMessage } from '../../intl/formatted-message.js';
|
|
4
4
|
import { Button } from '../button/button.js';
|
|
5
5
|
|
|
6
|
-
function PrintButton() {
|
|
7
|
-
return (jsx(Button, { color: "secondary", onClick: () => window?.print(), variant: "outline", children: jsx(FormattedMessage, { id: "Print" }) }));
|
|
6
|
+
function PrintButton(props) {
|
|
7
|
+
return (jsx(Button, { color: "secondary", onClick: () => window?.print(), variant: "outline", ...props, children: jsx(FormattedMessage, { id: "Print" }) }));
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export { PrintButton };
|
|
@@ -13,7 +13,7 @@ function ProductCard({ addToCartButton: AddToCartButton, favoriteButton: Favorit
|
|
|
13
13
|
if (!price.currencyCode) {
|
|
14
14
|
logger.error(`Product '${sku}' does not have a currency code`);
|
|
15
15
|
}
|
|
16
|
-
return (jsx("div", { className: styles['product-card-container'], children: jsxs("article", { "aria-labelledby": `title-${id}`, className: styles['product-card'], "data-product-id": sku, id: id, children: [jsx(Link, { className: styles.title, href: href, id: `title-${id}`, onClick: onClick, route: route, children: title }), tags && tags.length > 0 && (jsx("div", { className: styles.tags, children: tags.map(tag => (jsx(Tag, { children: jsx(FormattedMessage, { fallbackValue: tag, id: `tag.${tag.toLowerCase()}` }) }, tag))) })), jsx(ProductSku, { className: styles.sku, sku: sku }), price.currencyCode && (jsx(Price, { className: styles.price, currencyCode: price.currencyCode, isVatIncluded: price.isVatIncluded, originalPrice: price.originalPrice, price: price.price, variant: "sonic" })), jsx("div", { className: styles['image-container'], children: jsx(Image, { ...image, fit: "contain" }) }), jsx("div", { className: styles['add-to-cart-button'], children: AddToCartButton }), jsx("div", { className: styles['favorite-button'], children: FavoriteButton && FavoriteButton })] }) }));
|
|
16
|
+
return (jsx("div", { className: styles['product-card-container'], children: jsxs("article", { "aria-labelledby": `title-${id}`, className: styles['product-card'], "data-product-id": sku, id: id, children: [jsx(Link, { className: styles.title, href: href, id: `title-${id}`, onClick: onClick, route: route, children: title }), tags && tags.length > 0 && (jsx("div", { className: styles.tags, children: tags.map(tag => (jsx(Tag, { children: jsx(FormattedMessage, { noTranslationId: true, fallbackValue: tag, id: `tag.${tag.toLowerCase()}` }) }, tag))) })), jsx(ProductSku, { className: styles.sku, sku: sku }), price.currencyCode && (jsx(Price, { className: styles.price, currencyCode: price.currencyCode, isVatIncluded: price.isVatIncluded, originalPrice: price.originalPrice, price: price.price, variant: "sonic" })), jsx("div", { className: styles['image-container'], children: jsx(Image, { ...image, fit: "contain" }) }), jsx("div", { className: styles['add-to-cart-button'], children: AddToCartButton }), jsx("div", { className: styles['favorite-button'], children: FavoriteButton && FavoriteButton })] }) }));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export { ProductCard };
|
|
@@ -12,4 +12,4 @@ export interface TableCardProps {
|
|
|
12
12
|
stickyHeader?: boolean;
|
|
13
13
|
title?: TranslationId;
|
|
14
14
|
}
|
|
15
|
-
export declare
|
|
15
|
+
export declare const TableCard: React.ForwardRefExoticComponent<TableCardProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
5
|
import { FormattedMessage } from '../../intl/formatted-message.js';
|
|
5
6
|
import { UnauthorizedRequestError } from '../../shared/fetch/request.js';
|
|
6
7
|
import { Heading } from '../../typography/heading/heading.js';
|
|
7
8
|
import styles from './table-card.module.css.js';
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
return (jsxs("section", { className: clsx(styles['table-card-container'], stickyHeader && styles['sticky-header'], className), "data-test-selector": dataTestSelector, id: id, children: [title && (jsx(Heading, { className: styles.title, size: "xxs", tag: "h3", children: jsx(FormattedMessage, { id: title }) })), jsx("div", { className: styles['table-card'], children: showError ? (jsx("div", { className: styles['error-container'], children: showError instanceof UnauthorizedRequestError ? (jsx(FormattedMessage, { id: "You are not authorized to access this information." })) : typeof showError === 'string' ? (jsx(FormattedMessage, { id: showError })) : (jsx(FormattedMessage, { id: "An unexpected error occured" })) })) : (jsxs(Fragment, { children: [Boolean(actions?.length) && (jsx("div", { className: styles['actions'], children: actions })), results === 0 && !isLoading && (jsx("div", { className: clsx(styles['no-data-container']), children: jsx(FormattedMessage, { id: "There is no information to display" }) })), jsx("div", { className: styles['data'], children: children }), paging && jsx("div", { className: styles['paging'], children: paging })] })) }), jsx("div", { className: styles['sticky-bar'], role: "presentation" })] }));
|
|
11
|
-
}
|
|
10
|
+
const TableCard = forwardRef(({ actions, children, className, 'data-test-selector': dataTestSelector, id, isLoading, paging, results = 0, showError = false, stickyHeader = false, title, }, ref) => {
|
|
11
|
+
return (jsxs("section", { ref: ref, className: clsx(styles['table-card-container'], stickyHeader && styles['sticky-header'], className), "data-test-selector": dataTestSelector, id: id, children: [title && (jsx(Heading, { className: styles.title, size: "xxs", tag: "h3", children: jsx(FormattedMessage, { id: title }) })), jsx("div", { className: styles['table-card'], children: showError ? (jsx("div", { className: styles['error-container'], children: showError instanceof UnauthorizedRequestError ? (jsx(FormattedMessage, { id: "You are not authorized to access this information." })) : typeof showError === 'string' ? (jsx(FormattedMessage, { id: showError })) : (jsx(FormattedMessage, { id: "An unexpected error occured" })) })) : (jsxs(Fragment, { children: [Boolean(actions?.length) && (jsx("div", { className: styles['actions'], children: actions })), results === 0 && !isLoading && (jsx("div", { className: clsx(styles['no-data-container']), children: jsx(FormattedMessage, { id: "There is no information to display" }) })), jsx("div", { className: styles['data'], children: children }), paging && jsx("div", { className: styles['paging'], children: paging })] })) }), jsx("div", { className: styles['sticky-bar'], role: "presentation" })] }));
|
|
12
|
+
});
|
|
13
|
+
TableCard.displayName = 'TableCard';
|
|
12
14
|
|
|
13
15
|
export { TableCard };
|
|
@@ -4,5 +4,5 @@ interface CarouselNavigationButtonProps {
|
|
|
4
4
|
direction: SwipeDirection;
|
|
5
5
|
onClick?: (direction: SwipeDirection) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const CarouselNavigationButton:
|
|
7
|
+
export declare const CarouselNavigationButton: React.ForwardRefExoticComponent<CarouselNavigationButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
8
|
export {};
|
|
@@ -9,7 +9,7 @@ import styles from './cart-totals.module.css.js';
|
|
|
9
9
|
const formatDisplayPriceToSymbolSpaceValue = (displayPrice) => displayPrice.replace(/^(\D)([\d,.]*$)/, (_, symbol, value) => `${symbol} ${value}`);
|
|
10
10
|
function CartTotals({ currencyCode, deliveryDate, fulfillmentMethod, isPayByInvoice, orderNumber, shippingCost, subtotal, tax, total, vatPercentage, }) {
|
|
11
11
|
const t = useFormattedMessage();
|
|
12
|
-
return (jsxs("div", { className: styles['cart-totals'], children: [orderNumber && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Order number" }) }), jsx("div", { children: jsx("div", { className: styles.line, children: jsx("p", { className: styles.label, "data-test-selector": "orderConfirmation_orderNumber", children: orderNumber }) }) })] })), deliveryDate !== undefined && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Delivery date" }) }), jsx("div", { children: jsx("div", { className: styles.line, children: jsx("p", { className: styles.label, "data-test-selector": "deliveryDate", children: deliveryDate || t('As soon as possible') }) }) })] })), fulfillmentMethod && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Fulfillment method" }) }), jsx("div", { children: jsx("div", { className: styles.line, children: jsx("p", { className: styles.label, "data-test-selector": "fulfillmentMethod", children: jsx(FormattedMessage, { id: `fulfillmentmethod.${fulfillmentMethod}` }) }) }) })] })), isPayByInvoice && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Payment method" }) }), jsx("div", { children: jsx("div", { className: styles.line, children: jsx("p", { className: styles.label, "data-test-selector": "paymentMethod", children: jsx(FormattedMessage, { id: "Pay by invoice" }) }) }) })] })), jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Cost overview" }) }), jsxs("div", { children: [jsxs("div", { className: styles.line, children: [jsxs("p", { className: styles.label, children: [jsx(FormattedMessage, { id: "Subtotal" }), " (", jsx(FormattedMessage, { id: "Excl. VAT" }), ")"] }), jsx(Price, { className: styles.value, currencyCode: currencyCode, "data-test-selector": "cartTotal_subTotal", price: subtotal })] }), jsxs("div", { className: styles.line, children: [jsx("p", { className: styles.label, children: jsx(FormattedMessage, { id: "Shipping and handling" }) }), jsx(Price, { className: styles.value, currencyCode: currencyCode, "data-test-selector": "shippingCost", price: shippingCost })] }), jsxs("div", { className: styles.line, children: [jsxs("p", { className: styles.label, children: [jsx(FormattedMessage, { id: "VAT" }), ' ', vatPercentage ? `${vatPercentage}%` : ''] }), jsx(Price, { className: styles.value, currencyCode: currencyCode, "data-test-selector": "vatAmount", price: tax })] })] })] }), jsx("section", { className: styles.totals, children: jsxs("div", { className: styles.line, children: [jsx("p", { className: styles.label, children: jsx(FormattedMessage, { id: "Total" }) }), jsx(Price, { className: styles.value, currencyCode: currencyCode, "data-test-selector": "cartTotal_orderGrandTotalDisplay", price: total })] }) })] }));
|
|
12
|
+
return (jsxs("div", { className: styles['cart-totals'], children: [orderNumber && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Order number" }) }), jsx("div", { children: jsx("div", { className: styles.line, children: jsx("p", { className: styles.label, "data-test-selector": "orderConfirmation_orderNumber", children: orderNumber }) }) })] })), deliveryDate !== undefined && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Delivery date" }) }), jsx("div", { children: jsx("div", { className: styles.line, children: jsx("p", { className: styles.label, "data-test-selector": "deliveryDate", children: deliveryDate || t('As soon as possible') }) }) })] })), fulfillmentMethod && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Fulfillment method" }) }), jsx("div", { children: jsx("div", { className: styles.line, children: jsx("p", { className: styles.label, "data-test-selector": "fulfillmentMethod", children: jsx(FormattedMessage, { noTranslationId: true, id: `fulfillmentmethod.${fulfillmentMethod}` }) }) }) })] })), isPayByInvoice && (jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Payment method" }) }), jsx("div", { children: jsx("div", { className: styles.line, children: jsx("p", { className: styles.label, "data-test-selector": "paymentMethod", children: jsx(FormattedMessage, { id: "Pay by invoice" }) }) }) })] })), jsxs("section", { className: styles.section, children: [jsx(Heading, { className: styles['section-header'], size: "xxxs", tag: "h3", children: jsx(FormattedMessage, { id: "Cost overview" }) }), jsxs("div", { children: [jsxs("div", { className: styles.line, children: [jsxs("p", { className: styles.label, children: [jsx(FormattedMessage, { id: "Subtotal" }), " (", jsx(FormattedMessage, { id: "Excl. VAT" }), ")"] }), jsx(Price, { className: styles.value, currencyCode: currencyCode, "data-test-selector": "cartTotal_subTotal", price: subtotal })] }), jsxs("div", { className: styles.line, children: [jsx("p", { className: styles.label, children: jsx(FormattedMessage, { id: "Shipping and handling" }) }), jsx(Price, { className: styles.value, currencyCode: currencyCode, "data-test-selector": "shippingCost", price: shippingCost })] }), jsxs("div", { className: styles.line, children: [jsxs("p", { className: styles.label, children: [jsx(FormattedMessage, { id: "VAT" }), ' ', vatPercentage ? `${vatPercentage}%` : ''] }), jsx(Price, { className: styles.value, currencyCode: currencyCode, "data-test-selector": "vatAmount", price: tax })] })] })] }), jsx("section", { className: styles.totals, children: jsxs("div", { className: styles.line, children: [jsx("p", { className: styles.label, children: jsx(FormattedMessage, { id: "Total" }) }), jsx(Price, { className: styles.value, currencyCode: currencyCode, "data-test-selector": "cartTotal_orderGrandTotalDisplay", price: total })] }) })] }));
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export { CartTotals, formatDisplayPriceToSymbolSpaceValue };
|
|
@@ -5,12 +5,14 @@ import clsx from 'clsx';
|
|
|
5
5
|
import { GlyphsChevronsBoldDownIcon } from '../../icons/glyph/glyphs-chevrons-bold-down-icon.js';
|
|
6
6
|
import { GlyphsChevronsSlimDownIcon } from '../../icons/glyph/glyphs-chevrons-slim-down-icon.js';
|
|
7
7
|
import { useDisclosure } from '../../shared/hooks/use-disclosure.js';
|
|
8
|
+
import { useInert } from '../../shared/hooks/use-inert.js';
|
|
8
9
|
import { ensureArray } from '../../shared/utils/array.js';
|
|
9
10
|
import { Heading } from '../../typography/heading/heading.js';
|
|
10
11
|
import styles from './accordion.module.css.js';
|
|
11
12
|
|
|
12
13
|
function AccordionItem({ _pseudo = 'none', allowCollapse = true, allowToggle = true, borderType = 'bottom', children, className, 'data-test-selector': dataTestSelector, id, initialIsOpen = false, isDisabled = false, size, title, }) {
|
|
13
14
|
const { close, isOpen, open, toggle } = useDisclosure(initialIsOpen);
|
|
15
|
+
const { ref: panelRef } = useInert(isOpen);
|
|
14
16
|
useEffect(() => {
|
|
15
17
|
if (initialIsOpen) {
|
|
16
18
|
open();
|
|
@@ -29,7 +31,7 @@ function AccordionItem({ _pseudo = 'none', allowCollapse = true, allowToggle = t
|
|
|
29
31
|
}), disabled: isDisabled, id: id, onClick: () => {
|
|
30
32
|
if (allowToggle && allowCollapse)
|
|
31
33
|
toggle();
|
|
32
|
-
}, tabIndex: allowToggle ? 0 : -1, type: "button", children: [title, jsx("span", { className: styles.icon, children: size === 'lg' ? (jsx(GlyphsChevronsBoldDownIcon, {})) : (jsx(GlyphsChevronsSlimDownIcon, {})) })] }) }), jsx("div", { "aria-hidden": !isOpen, "aria-labelledby": id, className: styles.panel, id: panelId,
|
|
34
|
+
}, tabIndex: allowToggle ? 0 : -1, type: "button", children: [title, jsx("span", { className: styles.icon, children: size === 'lg' ? (jsx(GlyphsChevronsBoldDownIcon, {})) : (jsx(GlyphsChevronsSlimDownIcon, {})) })] }) }), jsx("div", { ref: panelRef, "aria-hidden": !isOpen.toString(), "aria-labelledby": id, className: styles.panel, id: panelId, role: "region", children: children })] }));
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
export { AccordionItem };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CascadingComponentContainerContextType } from './types';
|
|
2
|
-
export declare const CascadingComponentContainerContext:
|
|
2
|
+
export declare const CascadingComponentContainerContext: React.Context<CascadingComponentContainerContextType | null>;
|
|
@@ -6,6 +6,7 @@ import { Link } from '../../buttons/link/link.js';
|
|
|
6
6
|
import { GlyphsChevronsSlimDownIcon } from '../../icons/glyph/glyphs-chevrons-slim-down-icon.js';
|
|
7
7
|
import { FormattedMessage } from '../../intl/formatted-message.js';
|
|
8
8
|
import { useDisclosure } from '../../shared/hooks/use-disclosure.js';
|
|
9
|
+
import { useInert } from '../../shared/hooks/use-inert.js';
|
|
9
10
|
import { useResizeObserver } from '../../shared/hooks/use-resize-observer.js';
|
|
10
11
|
import styles from './show-all.module.css.js';
|
|
11
12
|
|
|
@@ -14,6 +15,7 @@ function ShowAll({ children, hasTransparency = true, initialHeight = 0, initialI
|
|
|
14
15
|
const { isOpen, toggle } = useDisclosure(initialIsOpen);
|
|
15
16
|
const showAllRef = useRef(null);
|
|
16
17
|
const isReallyOpen = isControlled ? isControlledOpen : isOpen;
|
|
18
|
+
const { ref: panelRef } = useInert(isReallyOpen);
|
|
17
19
|
const [contentFits, setContentFits] = useState(false);
|
|
18
20
|
const { ref } = useResizeObserver((_target, size) => {
|
|
19
21
|
setContentFits((size.height || 0) <= initialHeight);
|
|
@@ -21,9 +23,9 @@ function ShowAll({ children, hasTransparency = true, initialHeight = 0, initialI
|
|
|
21
23
|
return (jsxs("div", { ref: showAllRef, className: clsx(styles['show-all'], {
|
|
22
24
|
[styles['content-fits']]: contentFits,
|
|
23
25
|
[styles['is-open']]: isReallyOpen,
|
|
24
|
-
}), style: contentFits ? undefined : { '--initial-height': `${initialHeight}px` }, children: [jsx("div", { className: styles.panel, children: jsx("div", { className: clsx(styles.content, {
|
|
26
|
+
}), style: contentFits ? undefined : { '--initial-height': `${initialHeight}px` }, children: [jsx("div", { className: styles.panel, children: jsx("div", { ref: panelRef, className: clsx(styles.content, {
|
|
25
27
|
[styles['has-transparency']]: !contentFits && hasTransparency,
|
|
26
|
-
}), children: jsx("div", { ref: ref, "aria-hidden": !isReallyOpen,
|
|
28
|
+
}), children: jsx("div", { ref: ref, "aria-hidden": !isReallyOpen.toString(), children: children }) }) }), !contentFits && (jsxs(Link, { className: styles.button, color: "secondary", onClick: () => {
|
|
27
29
|
if (isControlled)
|
|
28
30
|
return onToggle(!isControlled);
|
|
29
31
|
toggle();
|
|
@@ -4,7 +4,7 @@ export interface UnmounterContextType {
|
|
|
4
4
|
unmount: boolean;
|
|
5
5
|
unregisterChild: () => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const UnmounterContext:
|
|
7
|
+
export declare const UnmounterContext: React.Context<UnmounterContextType | null>;
|
|
8
8
|
export declare function useUnmount(): UnmounterContextType | null;
|
|
9
9
|
export declare function Unmounter({ children: children, onUnmounted, onUnmountReady, unmount: _unmount, }: {
|
|
10
10
|
children: ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CookieContextValue } from './types';
|
|
2
|
-
export declare const CookieContext:
|
|
2
|
+
export declare const CookieContext: React.Context<CookieContextValue | undefined>;
|
|
@@ -12,7 +12,9 @@ function CountrySelect({ countries, countryNameInLanguageOfCountry = false, 'dat
|
|
|
12
12
|
const countryOptions = useMemo(() => countries
|
|
13
13
|
.map((country) => [
|
|
14
14
|
country.id,
|
|
15
|
-
t(`${translationPrefix}.${country.abbreviation}
|
|
15
|
+
t(`${translationPrefix}.${country.abbreviation}`, {
|
|
16
|
+
noTranslationId: true,
|
|
17
|
+
}),
|
|
16
18
|
])
|
|
17
19
|
.sort(([, labelA], [, labelB]) => labelA.localeCompare(labelB))
|
|
18
20
|
.reduce((acc, [id, label]) => ({
|
|
@@ -10,7 +10,9 @@ function CountrySelectorTrigger({ onClick, selectedCountry, selectedLanguage, sh
|
|
|
10
10
|
return;
|
|
11
11
|
const abbreviation = selectedCountry.abbreviation.toLowerCase();
|
|
12
12
|
const flagSrc = `https://res.cloudinary.com/dkz9eknwh/image/upload/v1729678637/images/flags/${abbreviation}.svg`;
|
|
13
|
-
return (jsxs("button", { "aria-label": "Open country selector dialog", className: styles['country-selector-trigger'], onClick: onClick, type: "button", children: [jsx(Image, { className: styles.flag, height: 24, image: { 1: flagSrc, 2: flagSrc, 3: flagSrc, altText: abbreviation }, title: abbreviation, width: 24 }), jsxs("div", { className: styles.text, children: [showCountry && (jsxs(Fragment, { children: [jsx("span", { children: t(`clSelector.${selectedCountry.abbreviation}
|
|
13
|
+
return (jsxs("button", { "aria-label": "Open country selector dialog", className: styles['country-selector-trigger'], onClick: onClick, type: "button", children: [jsx(Image, { className: styles.flag, height: 24, image: { 1: flagSrc, 2: flagSrc, 3: flagSrc, altText: abbreviation }, title: abbreviation, width: 24 }), jsxs("div", { className: styles.text, children: [showCountry && (jsxs(Fragment, { children: [jsx("span", { children: t(`clSelector.${selectedCountry.abbreviation}`, {
|
|
14
|
+
noTranslationId: true,
|
|
15
|
+
}) }), jsx("span", { className: styles.divider, children: "-" })] })), jsx("span", { children: selectedLanguage.description })] })] }));
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
export { CountrySelectorTrigger };
|
package/dist/exports.d.ts
CHANGED
|
@@ -263,6 +263,7 @@ export * from './pages/my-sonic/actions/edit-user-info/edit-user-info';
|
|
|
263
263
|
export * from './pages/my-sonic/actions/edit-user-info/edit-user-info-dialog';
|
|
264
264
|
export * from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout';
|
|
265
265
|
export * from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-aside';
|
|
266
|
+
export * from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb';
|
|
266
267
|
export * from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-main';
|
|
267
268
|
export * from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-page';
|
|
268
269
|
export * from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-pre-aside';
|
|
@@ -271,7 +272,14 @@ export * from './pages/my-sonic/navigation/connected-my-sonic-navigation';
|
|
|
271
272
|
export * from './pages/my-sonic/navigation/my-sonic-desktop-navigation';
|
|
272
273
|
export * from './pages/my-sonic/navigation/my-sonic-mobile-navigation';
|
|
273
274
|
export * from './pages/my-sonic/navigation/my-sonic-navigation-items';
|
|
274
|
-
export * from './pages/my-sonic/pages/
|
|
275
|
+
export * from './pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page';
|
|
276
|
+
export * from './pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page';
|
|
277
|
+
export * from './pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page';
|
|
278
|
+
export * from './pages/my-sonic/pages/favorites/favorites-page';
|
|
279
|
+
export * from './pages/my-sonic/pages/my-account/my-account-page';
|
|
280
|
+
export * from './pages/my-sonic/pages/order-details/order-details-content';
|
|
281
|
+
export * from './pages/my-sonic/pages/order-details/order-details-page';
|
|
282
|
+
export * from './pages/my-sonic/pages/order-history/order-history-page';
|
|
275
283
|
export * from './pages/my-sonic/widgets/components/address-data-card';
|
|
276
284
|
export * from './pages/my-sonic/widgets/connected-address-book-widget';
|
|
277
285
|
export * from './pages/my-sonic/widgets/connected-bill-to-address-widget';
|
|
@@ -346,6 +354,7 @@ export * from './shared/api/storefront/hooks/customer/use-fetch-ship-to-addresse
|
|
|
346
354
|
export * from './shared/api/storefront/hooks/customer/use-patch-bill-to-address';
|
|
347
355
|
export * from './shared/api/storefront/hooks/customer/use-patch-ship-to-address';
|
|
348
356
|
export * from './shared/api/storefront/hooks/customer/use-post-ship-to-address';
|
|
357
|
+
export * from './shared/api/storefront/hooks/orders/use-fetch-order-by-id';
|
|
349
358
|
export * from './shared/api/storefront/hooks/orders/use-fetch-orders';
|
|
350
359
|
export * from './shared/api/storefront/hooks/payment/use-create-adyen-session';
|
|
351
360
|
export * from './shared/api/storefront/hooks/payment/use-fetch-adyen-config';
|
|
@@ -377,6 +386,7 @@ export * from './shared/api/storefront/services/wishlist-service';
|
|
|
377
386
|
export * from './shared/data/cart.data';
|
|
378
387
|
export * from './shared/data/countries-languages.data';
|
|
379
388
|
export * from './shared/data/navigation';
|
|
389
|
+
export * from './shared/data/order';
|
|
380
390
|
export * from './shared/feature-flags/use-feature-flags';
|
|
381
391
|
export * from './shared/fetch/request';
|
|
382
392
|
export * from './shared/ga/data-layer';
|
|
@@ -390,6 +400,7 @@ export * from './shared/hooks/use-debounced-callback';
|
|
|
390
400
|
export * from './shared/hooks/use-disclosure';
|
|
391
401
|
export * from './shared/hooks/use-enable-mobile-zoom';
|
|
392
402
|
export * from './shared/hooks/use-global-disclosure';
|
|
403
|
+
export * from './shared/hooks/use-inert';
|
|
393
404
|
export * from './shared/hooks/use-intersection-observer';
|
|
394
405
|
export * from './shared/hooks/use-is-breakpoint';
|
|
395
406
|
export * from './shared/hooks/use-is-scrolled-beyond-element';
|
|
@@ -467,6 +478,7 @@ export * from './table/elements/use-table-row';
|
|
|
467
478
|
export * from './table/elements/use-td';
|
|
468
479
|
export * from './table/elements/use-th';
|
|
469
480
|
export * from './text/highlight-text/highlight-text';
|
|
481
|
+
export * from './text/status-text/status-text';
|
|
470
482
|
export * from './text/truncated/truncated';
|
|
471
483
|
export * from './toast/toast';
|
|
472
484
|
export * from './toast/toast-provider';
|
|
@@ -14,7 +14,7 @@ const ActiveFilters = ({ onClearAllFilters, onClearFilter, selectedFilterCategor
|
|
|
14
14
|
const t = useFormattedMessage();
|
|
15
15
|
if (selectedFilterCategories.length === 0)
|
|
16
16
|
return null;
|
|
17
|
-
return (jsx(FilterSection, { button: jsx(Link, { onClick: onClearAllFilters, children: jsx(FormattedMessage, { id: "Clear filters" }) }), title: t('Chosen filters'), variant: "with-action", children: selectedFilterCategories.map(category => category.filters.map(filter => (jsxs("div", { className: clsx(filterSectionStyles['filter-section-item'], styles['active-filter-item']), children: [jsxs("span", { children: [jsxs("span", { children: [jsx(FormattedMessage, { id: `facet.${category.label.toLowerCase()}` }), jsx("span", { children: ": " })] }), jsx("span", { className: styles['active-filter-value'], children: filter.label })] }), jsx(IconButton, { className: styles['clear-filter-button'], color: "secondary", onClick: () => onClearFilter(category.label, filter), children: jsx(StrokeCloseboxIcon, {}) })] }, `${category.label}-${filter.value}`)))) }));
|
|
17
|
+
return (jsx(FilterSection, { button: jsx(Link, { onClick: onClearAllFilters, children: jsx(FormattedMessage, { id: "Clear filters" }) }), title: t('Chosen filters'), variant: "with-action", children: selectedFilterCategories.map(category => category.filters.map(filter => (jsxs("div", { className: clsx(filterSectionStyles['filter-section-item'], styles['active-filter-item']), children: [jsxs("span", { children: [jsxs("span", { children: [jsx(FormattedMessage, { noTranslationId: true, id: `facet.${category.label.toLowerCase()}` }), jsx("span", { children: ": " })] }), jsx("span", { className: styles['active-filter-value'], children: filter.label })] }), jsx(IconButton, { className: styles['clear-filter-button'], color: "secondary", onClick: () => onClearFilter(category.label, filter), children: jsx(StrokeCloseboxIcon, {}) })] }, `${category.label}-${filter.value}`)))) }));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { ActiveFilters };
|
|
@@ -17,7 +17,9 @@ function FieldError({ children, className }) {
|
|
|
17
17
|
.filter(([, value]) => value)
|
|
18
18
|
.map(([key]) => key)[0];
|
|
19
19
|
if (validationErrorType)
|
|
20
|
-
return t(`validation.${validationErrorType}
|
|
20
|
+
return t(`validation.${validationErrorType}`, {
|
|
21
|
+
noTranslationId: true,
|
|
22
|
+
});
|
|
21
23
|
return t('validation.invalid');
|
|
22
24
|
}) }));
|
|
23
25
|
}
|
|
@@ -31,4 +31,4 @@ export interface NumberFieldProps {
|
|
|
31
31
|
value?: number;
|
|
32
32
|
withButtons?: boolean;
|
|
33
33
|
}
|
|
34
|
-
export declare const NumberField:
|
|
34
|
+
export declare const NumberField: React.ForwardRefExoticComponent<NumberFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -13,12 +13,16 @@ function AddressForm({ address, countries, currentCountry: _currentCountry, isLo
|
|
|
13
13
|
const t = useFormattedMessage();
|
|
14
14
|
const [companyName, setCompanyName] = useState(address?.companyName || '');
|
|
15
15
|
const [lastName, setLastName] = useState(address?.lastName || '');
|
|
16
|
-
const currentCountry = countries.find(c =>
|
|
16
|
+
const currentCountry = countries.find(c => address?.country
|
|
17
|
+
? typeof address.country === 'string'
|
|
18
|
+
? false
|
|
19
|
+
: c.id === address.country.id
|
|
20
|
+
: undefined) || _currentCountry;
|
|
17
21
|
const [selectedCountry, setSelectedCountry] = useState(currentCountry);
|
|
18
22
|
const currencyHasChanged = Boolean(currentCountry) &&
|
|
19
23
|
selectedCountry?.currencyCode !== currentCountry?.currencyCode;
|
|
20
24
|
if (countries.length === 0) {
|
|
21
|
-
return (jsx(Message, { type: "danger", children: jsx(FormattedMessage, {
|
|
25
|
+
return (jsx(Message, { type: "danger", children: jsx(FormattedMessage, { id: "No countries available. Unable to change address." }) }));
|
|
22
26
|
}
|
|
23
27
|
return (jsxs(Fragment, { children: [jsx(TextField, { defaultValue: address?.firstName, isDisabled: isLoading || isReadonly, label: t('First name'), name: "firstName", showLabel: true }), jsx(TextField, { isDisabled: isLoading || isReadonly, isRequired: !companyName, label: t('Last name'), minLength: 3, name: "lastName", onChange: setLastName, showLabel: true, value: lastName }, `lastname-${Boolean(companyName)}`), jsx(TextField, { defaultValue: address?.companyName, isDisabled: isLoading || isReadonly, label: t('Company name'), name: "companyName", onChange: setCompanyName, showLabel: true, value: companyName }), jsx(TextField, { defaultValue: address?.attention, isDisabled: isLoading || isReadonly, label: t('Attention'), name: "attention", showLabel: true }), jsx("div", { className: formStyles['span-2'], children: jsx(TextField, { isRequired: true, defaultValue: address?.address1, isDisabled: isLoading || isReadonly, label: `${t('Address')} 1`, maxLength: 30, minLength: 3, name: "address1", showLabel: true }) }), jsx("div", { className: formStyles['span-2'], children: jsx(TextField, { defaultValue: address?.address2, isDisabled: isLoading || isReadonly, label: `${t('Address')} 2`, maxLength: 30, minLength: 3, name: "address2", showLabel: true }) }), jsx("div", { className: formStyles['span-2'], children: jsx(TextField, { defaultValue: address?.address3, isDisabled: isLoading || isReadonly, label: `${t('Address')} 3`, maxLength: 30, minLength: 3, name: "address3", showLabel: true }) }), jsx(TextField, { isRequired: true, defaultValue: address?.postalCode, isDisabled: isLoading || isReadonly, label: t('Postal Code'), maxLength: 10, minLength: 4, name: "postalCode", showLabel: true }), jsx(TextField, { isRequired: true, defaultValue: address?.city, isDisabled: isLoading || isReadonly, label: t('City'), maxLength: 30, minLength: 3, name: "city", showLabel: true }), jsxs("div", { className: formStyles['span-2'], children: [jsx(CountrySelect, { isRequired: true, countries: countries, "data-test-selector": "countrySelect", isDisabled: isLoading || isReadonly, name: "countrySelect", onCountryChange: setSelectedCountry, selectedCountry: selectedCountry }), showCurrencyChangeWarning && currencyHasChanged && (jsx(Message, { className: formStyles['currency-warning'], type: "warning", children: jsx(FormattedMessage, { id: "Selecting this country will result in your cart to be converted to the currency {0}", replacementValues: {
|
|
24
28
|
'0': selectedCountry?.currencyCode || t('Unknown'),
|
|
@@ -13,7 +13,7 @@ function ConnectedAccountButton({ className, 'data-test-selector': dataTestSelec
|
|
|
13
13
|
const isAuthenticated = useIsAuthenticated();
|
|
14
14
|
const { href } = useLocation();
|
|
15
15
|
return (jsx(IconButton, { className: className, "data-authenticated": isAuthenticated ? true : false, "data-test-selector": dataTestSelector, href: isAuthenticated
|
|
16
|
-
? paths.
|
|
16
|
+
? paths.MY_SONIC
|
|
17
17
|
: `${paths.SIGN_IN}${href ? `?returnUrl=${encodeURIComponent(href)}` : ''}`, isDisabled: isAuthenticated === undefined, onClick: onClick, children: jsx(AccountIcon, { "aria-label": isAuthenticated ? t('My Sonic') : t('Sign in or create account'), isAuthenticated: isAuthenticated }) }));
|
|
18
18
|
}
|
|
19
19
|
|
package/dist/index.js
CHANGED
|
@@ -165,7 +165,7 @@ export { FormattedMessage } from './intl/formatted-message.js';
|
|
|
165
165
|
export { IntlContext } from './intl/intl-context.js';
|
|
166
166
|
export { IntlProvider } from './intl/intl-provider.js';
|
|
167
167
|
export { MissingTranslationProvider } from './intl/missing-translation-provider.js';
|
|
168
|
-
export { isCountryCode, isCultureCode, isCurrencyCode, isLanguageCode } from './intl/types.js';
|
|
168
|
+
export { isCountryCode, isCultureCode, isCurrencyCode, isFormattedMessageWithTranslationIdProps, isFormattedMessageWithUnknownTranslationIdProps, isLanguageCode } from './intl/types.js';
|
|
169
169
|
export { useCountryCode, useUpdateCountryCode } from './intl/use-country-code.js';
|
|
170
170
|
export { useCultureCode, useUpdateCultureCode } from './intl/use-culture-code.js';
|
|
171
171
|
export { useCurrencyCode, useUpdateCurrencyCode } from './intl/use-currency-code.js';
|
|
@@ -265,6 +265,7 @@ export { EditUserInfo } from './pages/my-sonic/actions/edit-user-info/edit-user-
|
|
|
265
265
|
export { EditUserInfoDialog } from './pages/my-sonic/actions/edit-user-info/edit-user-info-dialog.js';
|
|
266
266
|
export { MySonicLayout } from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.js';
|
|
267
267
|
export { MySonicLayoutAside } from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-aside.js';
|
|
268
|
+
export { MySonicLayoutBreadcrumb } from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.js';
|
|
268
269
|
export { MySonicLayoutMain } from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-main.js';
|
|
269
270
|
export { MySonicLayoutPage } from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-page.js';
|
|
270
271
|
export { MySonicLayoutPreAside } from './pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-pre-aside.js';
|
|
@@ -273,7 +274,14 @@ export { ConnectedMySonicNavigation } from './pages/my-sonic/navigation/connecte
|
|
|
273
274
|
export { MySonicDesktopNavigation } from './pages/my-sonic/navigation/my-sonic-desktop-navigation.js';
|
|
274
275
|
export { MySonicMobileNavigation } from './pages/my-sonic/navigation/my-sonic-mobile-navigation.js';
|
|
275
276
|
export { useMySonicNavigationItems } from './pages/my-sonic/navigation/my-sonic-navigation-items.js';
|
|
276
|
-
export {
|
|
277
|
+
export { CreateShipToAddressDetailsPage, CreateShipToAddressDetailsPageBreadcrumb } from './pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.js';
|
|
278
|
+
export { EditBillToAddressDetailsPage, EditBillToAddressDetailsPageBreadcrumb } from './pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.js';
|
|
279
|
+
export { EditShipToAddressDetailsPage, EditShipToAddressDetailsPageBreadcrumb } from './pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.js';
|
|
280
|
+
export { FavoritesPage, FavoritesPageBreadcrumb } from './pages/my-sonic/pages/favorites/favorites-page.js';
|
|
281
|
+
export { MyAccountPage, MyAccountPageBreadcrumb } from './pages/my-sonic/pages/my-account/my-account-page.js';
|
|
282
|
+
export { OrderDetailsContent, statusMap } from './pages/my-sonic/pages/order-details/order-details-content.js';
|
|
283
|
+
export { OrderDetailsPage, OrderDetailsPageBreadcrumb } from './pages/my-sonic/pages/order-details/order-details-page.js';
|
|
284
|
+
export { OrderHistoryPage, OrderHistoryPageBreadcrumb } from './pages/my-sonic/pages/order-history/order-history-page.js';
|
|
277
285
|
export { AddressDataCard } from './pages/my-sonic/widgets/components/address-data-card.js';
|
|
278
286
|
export { ConnectedAddressBookWidget } from './pages/my-sonic/widgets/connected-address-book-widget.js';
|
|
279
287
|
export { ConnectedBillToAddressWidget } from './pages/my-sonic/widgets/connected-bill-to-address-widget.js';
|
|
@@ -347,6 +355,7 @@ export { useFetchShipToAddresses } from './shared/api/storefront/hooks/customer/
|
|
|
347
355
|
export { usePatchBillToAddress } from './shared/api/storefront/hooks/customer/use-patch-bill-to-address.js';
|
|
348
356
|
export { usePatchShipToAddress } from './shared/api/storefront/hooks/customer/use-patch-ship-to-address.js';
|
|
349
357
|
export { usePostShipToAddress } from './shared/api/storefront/hooks/customer/use-post-ship-to-address.js';
|
|
358
|
+
export { useFetchOrderById } from './shared/api/storefront/hooks/orders/use-fetch-order-by-id.js';
|
|
350
359
|
export { useFetchOrders } from './shared/api/storefront/hooks/orders/use-fetch-orders.js';
|
|
351
360
|
export { useCreateAdyenSession } from './shared/api/storefront/hooks/payment/use-create-adyen-session.js';
|
|
352
361
|
export { useFetchAdyenConfig } from './shared/api/storefront/hooks/payment/use-fetch-adyen-config.js';
|
|
@@ -369,7 +378,7 @@ export { InvalidPasswordError, NonUniquePasswordError, createSession, fetchSessi
|
|
|
369
378
|
export { addProductToCurrentCart, convertToMinorUnits, deleteCartLineById, deleteCurrentCart, fetchCart, fetchCurrentCart, fetchCurrentCartLines, fetchCurrentCartProductAtp, fetchCurrentCartPromotions, fetchCurrentCheckoutAtp, getAdyenPaymentDetails, patchCartLineById, postAdyenPayment } from './shared/api/storefront/services/cart-service.js';
|
|
370
379
|
export { fetchBillToAddress, fetchBillToAddresses, fetchCurrentBillToAddress, fetchCurrentShipToAddress, fetchFulfillmentMethods, fetchPagedShipToAddresses, fetchShipToAddress, fetchShipToAddresses, patchBillToAddress, patchShipToAddress, postShipToAddress } from './shared/api/storefront/services/customer-service.js';
|
|
371
380
|
export { validateVATNumber } from './shared/api/storefront/services/finance-service.js';
|
|
372
|
-
export { fetchOrders } from './shared/api/storefront/services/order-service.js';
|
|
381
|
+
export { fetchOrderById, fetchOrders } from './shared/api/storefront/services/order-service.js';
|
|
373
382
|
export { createAdyenSession, fetchAdyenConfig } from './shared/api/storefront/services/payment-service.js';
|
|
374
383
|
export { markProductAsRecentlyViewed } from './shared/api/storefront/services/product-service.js';
|
|
375
384
|
export { fetchTranslations } from './shared/api/storefront/services/translation-service.js';
|
|
@@ -378,6 +387,7 @@ export { WishListNameAlreadyExistsError, addWishListItemToWishList, createWishLi
|
|
|
378
387
|
export { cart } from './shared/data/cart.data.js';
|
|
379
388
|
export { countries, dutch, english, france, french, german, germany, languages, netherlands, switzerland, unitedKingdom } from './shared/data/countries-languages.data.js';
|
|
380
389
|
export { navigationData } from './shared/data/navigation.js';
|
|
390
|
+
export { orderModel } from './shared/data/order.js';
|
|
381
391
|
export { useFeatureFlags } from './shared/feature-flags/use-feature-flags.js';
|
|
382
392
|
export { BadRequestError, ForbiddenRequestError, InternalServerErrorRequestError, NotFoundRequestError, RequestError, TimeoutRequestError, UnauthorizedRequestError, UnprocessableContentRequestError, isFormData, isJsonBody, isRequestError, request } from './shared/fetch/request.js';
|
|
383
393
|
export { dataLayer } from './shared/ga/data-layer.js';
|
|
@@ -391,6 +401,7 @@ export { useDebouncedCallback } from './shared/hooks/use-debounced-callback.js';
|
|
|
391
401
|
export { useDisclosure } from './shared/hooks/use-disclosure.js';
|
|
392
402
|
export { useEnableMobileZoom } from './shared/hooks/use-enable-mobile-zoom.js';
|
|
393
403
|
export { useGlobalDisclosure } from './shared/hooks/use-global-disclosure.js';
|
|
404
|
+
export { useInert } from './shared/hooks/use-inert.js';
|
|
394
405
|
export { useIntersectionObserver } from './shared/hooks/use-intersection-observer.js';
|
|
395
406
|
export { useIsBreakpoint } from './shared/hooks/use-is-breakpoint.js';
|
|
396
407
|
export { useIsScrolledBeyondElement } from './shared/hooks/use-is-scrolled-beyond-element.js';
|
|
@@ -464,6 +475,7 @@ export { useTableRow } from './table/elements/use-table-row.js';
|
|
|
464
475
|
export { useTD } from './table/elements/use-td.js';
|
|
465
476
|
export { useTH } from './table/elements/use-th.js';
|
|
466
477
|
export { HighlightText } from './text/highlight-text/highlight-text.js';
|
|
478
|
+
export { StatusText } from './text/status-text/status-text.js';
|
|
467
479
|
export { Truncated } from './text/truncated/truncated.js';
|
|
468
480
|
export { Toast } from './toast/toast.js';
|
|
469
481
|
export { ToastProvider } from './toast/toast-provider.js';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare
|
|
1
|
+
import { FormattedMessagePropsWithKnownTranslationId, FormattedMessagePropsWithUnknownTranslationId } from './types';
|
|
2
|
+
export declare function FormattedMessage(props: FormattedMessagePropsWithUnknownTranslationId): string;
|
|
3
|
+
export declare function FormattedMessage(props: FormattedMessagePropsWithKnownTranslationId): string;
|
|
@@ -1,10 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { isFormattedMessageWithUnknownTranslationIdProps, isFormattedMessageWithTranslationIdProps } from './types.js';
|
|
2
3
|
import { useFormattedMessage } from './use-formatted-message.js';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
fallbackValue,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
5
|
+
function FormattedMessage(props) {
|
|
6
|
+
const { fallbackValue, optional, replacementValues } = props;
|
|
7
|
+
const t = useFormattedMessage();
|
|
8
|
+
if (isFormattedMessageWithUnknownTranslationIdProps(props)) {
|
|
9
|
+
const { id } = props;
|
|
10
|
+
return t(id, {
|
|
11
|
+
fallbackValue,
|
|
12
|
+
noTranslationId: true,
|
|
13
|
+
optional,
|
|
14
|
+
replacementValues,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
else if (isFormattedMessageWithTranslationIdProps(props)) {
|
|
18
|
+
const { id } = props;
|
|
19
|
+
return t(id, {
|
|
20
|
+
fallbackValue,
|
|
21
|
+
optional,
|
|
22
|
+
replacementValues,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
throw new Error('Invalid props for FormattedMessage, unknown translation type');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
9
29
|
|
|
10
30
|
export { FormattedMessage };
|
|
@@ -11,4 +11,4 @@ export interface IntlContextType {
|
|
|
11
11
|
updateCultureCode?: UpdateCultureCode;
|
|
12
12
|
updateCurrencyCode?: UpdateCurrencyCode;
|
|
13
13
|
}
|
|
14
|
-
export declare const IntlContext:
|
|
14
|
+
export declare const IntlContext: React.Context<IntlContextType | undefined>;
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createContext } from 'react';
|
|
3
|
-
import { voidFunction } from '../shared/model/defaults.js';
|
|
4
3
|
|
|
5
|
-
const IntlContext = createContext(
|
|
6
|
-
countryCode: 'NL',
|
|
7
|
-
cultureCode: 'en-GB',
|
|
8
|
-
currencyCode: 'EUR',
|
|
9
|
-
formattedMessage: id => id,
|
|
10
|
-
updateCountryCode: voidFunction,
|
|
11
|
-
updateCultureCode: voidFunction,
|
|
12
|
-
updateCurrencyCode: voidFunction,
|
|
13
|
-
});
|
|
4
|
+
const IntlContext = createContext(undefined);
|
|
14
5
|
|
|
15
6
|
export { IntlContext };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TranslationId = "'{0}' in all products" | "Try 'Search' and try to find the product you're looking for" | "Unfortnately, We found no articles for your search '{0}'" | ' to your account to manage your lists.' | 'Access denied.' | 'Account' | 'active' | 'Add address' | 'Add order notes' | 'Add to cart' | 'Add to list' | 'Address 1' | 'Address 2' | 'Address 3' | 'Address 4' | 'Address not found' | 'Address' | 'Address book' | 'addressProperty.Default' | 'addressProperty.Company Name' | 'addressProperty.Address Line' | 'addressProperty.Postal Code' | 'addressProperty.City' | 'addressProperty.Country' | 'All payment methods are unavailable at this time. Please contact customer support.' | 'Amount: {0}' | 'An error occurred while changing the customer.' | 'An error occurred while fetching customers. Please try again later.' | 'An error occurred while processing your payment. Please try again.' | 'An unexpected error occured' | 'An unexpected error occured. Please try again.' | 'Are you looking for information about our service? Please visit our customer support page' | 'Are you sure you want to remove all items from your cart?' | 'Are you sure you want to remove this item from your cart?' | 'article' | 'articles' | 'As soon as possible' | 'ASC' | 'Attention' | 'Availability unknown, please contact customer support for lead time or alternatives.' | 'Back' | 'Billing address' | 'Billing and shipping address' | 'Billing and shipping information' | 'Billing' | 'Cancel' | 'Cart' | 'Change customer' | 'Change password' | 'Changing your address is currently not possible. Please contact customer support to change your address.' | 'Checkout order' | 'Chosen filters' | 'City' | 'Clear filters' | 'Create' | 'Clear' | 'Click the button below to continue shopping.' | 'Client cases' | 'Close' | 'CoC number' | 'Company name' | 'Conceal value' | 'Confirm password' | 'Continue shopping' | 'Continue to sign in' | 'Continue' | 'Copyright © Sonic Equipment B.V.' | 'Cost overview' | 'Country' | 'create account' | 'Create new list' | 'Currency Change' | 'Current page' | 'Current Password is invalid' | 'Date' | 'Decrease' | 'Default shipping address' | 'Delivery date' | 'Delivery expected on {0}' | 'DESC' | 'Double check your spelling' | 'Downloads' | 'Easily add your favorite products' | 'Edit billing address' | 'Edit shipping address' | 'Edit Sonic account' | 'Edit' | 'Email' | 'Enter your email address and we will send you an email that will allow you to recover your password.' | 'Excl. VAT' | 'Explore by categories' | 'Exploring our products by category' | 'facet.categories' | 'facet.height' | 'facet.weight' | 'Favorites' | 'Features' | 'Filter order status' | 'Finalize order' | 'Finalize payment' | 'First name' | 'Forgot password?' | 'Fulfillment method' | 'General' | 'Hide filters' | 'Home' | 'If an account matches the email address you entered, instructions on how to recover the password will be sent to that email address shortly. If you do not receive this email, please contact Customer Support.' | 'If you want to proceed, click the continue button. If you want to change your country, close this message and select a different country.' | 'Incl. VAT' | 'Includes' | 'Increase' | 'Industry' | 'industry.AG' | 'industry.AU' | 'industry.AV' | 'industry.BC' | 'industry.MA' | 'industry.MC' | 'industry.OT' | 'industry.PP' | 'industry.TR' | 'Information' | 'Language' | 'Last name' | 'List name already exists' | 'Log out' | 'Main menu' | 'Make this the default customer' | 'Make this the default ship to address' | 'More than {0} articles' | 'My Sonic' | 'Name' | 'Navigate to...' | 'Navigation' | 'New list name' | 'New Password is required and must be different than Current Password' | 'New password' | 'New user?' | 'Next' | 'No orders found.' | 'No results found. Please refine your search.' | 'Number of favorites' | 'Number of products' | 'of' | 'OK' | 'Or continue as guest' | 'Order confirmation' | 'Order date' | 'Order
|
|
1
|
+
export type TranslationId = "'{0}' in all products" | "Try 'Search' and try to find the product you're looking for" | "Unfortnately, We found no articles for your search '{0}'" | ' to your account to manage your lists.' | 'Access denied.' | 'Account' | 'active' | 'Add address' | 'Add order notes' | 'Add to cart' | 'Add to list' | 'Address 1' | 'Address 2' | 'Address 3' | 'Address 4' | 'Address not found' | 'Address' | 'Address book' | 'addressProperty.Default' | 'addressProperty.Company Name' | 'addressProperty.Address Line' | 'addressProperty.Postal Code' | 'addressProperty.City' | 'addressProperty.Country' | 'All payment methods are unavailable at this time. Please contact customer support.' | 'Amount: {0}' | 'An error occurred while changing the customer.' | 'An error occurred while fetching customers. Please try again later.' | 'An error occurred while processing your payment. Please try again.' | 'An unexpected error occured' | 'An unexpected error occured. Please try again.' | 'Are you looking for information about our service? Please visit our customer support page' | 'Are you sure you want to remove all items from your cart?' | 'Are you sure you want to remove this item from your cart?' | 'article' | 'articles' | 'As soon as possible' | 'ASC' | 'Attention' | 'Availability unknown, please contact customer support for lead time or alternatives.' | 'Back' | 'Billing address' | 'Billing and shipping address' | 'Billing and shipping information' | 'Billing' | 'Cancel' | 'Cart' | 'Change customer' | 'Change password' | 'Changing your address is currently not possible. Please contact customer support to change your address.' | 'Checkout order' | 'Chosen filters' | 'City' | 'Clear filters' | 'Create' | 'Clear' | 'Click the button below to continue shopping.' | 'Client cases' | 'Close' | 'CoC number' | 'Company name' | 'Conceal value' | 'Confirm password' | 'Continue shopping' | 'Continue to sign in' | 'Continue' | 'Copyright © Sonic Equipment B.V.' | 'Cost overview' | 'Country' | 'create account' | 'Create new list' | 'Currency Change' | 'Current page' | 'Current Password is invalid' | 'Date' | 'Decrease' | 'Default shipping address' | 'Delivery date' | 'Delivery expected on {0}' | 'DESC' | 'Double check your spelling' | 'Downloads' | 'Easily add your favorite products' | 'Edit billing address' | 'Edit shipping address' | 'Edit Sonic account' | 'Edit' | 'Email' | 'Enter your email address and we will send you an email that will allow you to recover your password.' | 'Excl. VAT' | 'Explore by categories' | 'Exploring our products by category' | 'facet.categories' | 'facet.height' | 'facet.weight' | 'Favorites' | 'Features' | 'Filter order status' | 'Finalize order' | 'Finalize payment' | 'First name' | 'Forgot password?' | 'Fulfillment method' | 'General' | 'Hide filters' | 'Home' | 'If an account matches the email address you entered, instructions on how to recover the password will be sent to that email address shortly. If you do not receive this email, please contact Customer Support.' | 'If you want to proceed, click the continue button. If you want to change your country, close this message and select a different country.' | 'Incl. VAT' | 'Includes' | 'Increase' | 'Industry' | 'industry.AG' | 'industry.AU' | 'industry.AV' | 'industry.BC' | 'industry.MA' | 'industry.MC' | 'industry.OT' | 'industry.PP' | 'industry.TR' | 'Information' | 'Language' | 'Last name' | 'List name already exists' | 'Log out' | 'Main menu' | 'Make this the default customer' | 'Make this the default ship to address' | 'More than {0} articles' | 'My account' | 'My Sonic' | 'Name' | 'Navigate to...' | 'Navigation' | 'New list name' | 'New Password is required and must be different than Current Password' | 'New password' | 'New user?' | 'Next' | 'No countries available. Unable to change address.' | 'No orders found.' | 'No results found. Please refine your search.' | 'Number of favorites' | 'Number of products' | 'of' | 'OK' | 'Or continue as guest' | 'Order confirmation' | 'Order date' | 'Order details' | 'Order history' | 'Order number' | 'Order#' | 'Order' | 'orderProperty.Date' | 'orderProperty.Number' | 'orderProperty.PO Number' | 'orderProperty.Price' | 'orderProperty.Shipping Address' | 'orderProperty.Status' | 'Orders' | 'orderStatus.Any' | 'orderStatus.Cancelled' | 'orderStatus.ForwardToReseller' | 'orderStatus.Fulfilled' | 'orderStatus.Partially fulfilled' | 'orderStatus.Processing' | 'orderStatus.Saved' | 'orderStatus.Waiting for customer service' | 'Our products' | 'Overview' | 'Password changed. Please sign in again.' | 'Password does not meet requirements' | 'Password' | 'Passwords do not match' | 'Pay by invoice' | 'Payment method' | 'Payment' | 'pc' | 'Phone' | 'Pick up' | 'Pickup address' | 'Please enter a valid email address' | 'Please enter a valid phone number' | 'please go back to your cart.' | 'Please Sign In' | 'PO Number' | 'Popular searches' | 'Postal Code' | 'Previous' | 'Print' | 'Private account' | 'Processing' | 'Product Features' | 'Product' | 'Products' | 'Quantity' | 'Quick access' | 'Recent searches' | 'Recently viewed' | 'Recover your password' | 'Remember me' | 'Remove' | 'Remove all' | 'Reorder' | 'Requested delivery date' | 'Results' | 'Reveal value' | 'Review and payment' | 'Save order' | 'Save' | 'Saved' | 'Saved cart for later.' | 'Saving' | 'Search for a customer' | 'Search' | 'Searching again using more general terms' | 'Search orders' | 'See all results' | 'Select a country' | 'Select a desired delivery date' | 'Select a language' | 'Select a list' | 'Select an industry' | 'Select other customer' | 'Selected customer' | 'Selecting As Soon As Possible will enable us to send the products to you as they become available.' | 'Selecting this country will result in your cart to be converted to the currency {0}' | 'Share your favorite list with others' | 'Ship' | 'Shipping address' | 'Shipping and handling' | 'Shipping details' | 'Shop more efficiently and quicker with a favorites list' | 'Shopping cart' | 'Show all' | 'Show filters' | 'Show less' | 'Show' | 'Sign in or create account' | 'sign in' | 'Sign me up for newsletters and product updates' | 'Signed in' | 'Signed out' | 'Signing in…' | 'Sonic account' | 'Sonic address' | 'Sonic Equipment' | 'Sorry, there are no products found' | 'Sorry, we could not find matches for' | 'Sort by' | 'sort.newest' | 'sort.price_asc' | 'sort.price_desc' | 'sort.relevance' | 'sort.ASC' | 'sort.DESC' | 'sort.NONE' | 'Specifications' | 'Start checkout' | 'Status' | 'Submenu' | 'Submit email address' | 'Submit' | 'Submitting…' | 'Subtotal' | 'Suggestions' | 'Support' | 'tag.limited' | 'tag.new' | 'The email address you entered is already associated with an existing account. Please sign in to this account or contact Customer Support.' | 'The expected delivery is an indication based on the product availability and the shipping location.' | 'The product has been added to your cart.' | 'The product has been removed from your cart.' | 'The product has been updated in your cart.' | 'There are more customers, please refine your search if needed.' | 'There are no products in your shopping cart.' | 'There is no information to display' | 'This email is already in use' | 'Toggle navigation menu' | 'Total amount is' | 'Total' | 'Try another search' | 'Unable to add the product to your cart.' | 'Unable to empty your cart.' | 'Unable to remove the product from your cart.' | 'Unable to save cart for later.' | 'Unable to update the product in your cart.' | 'Unknown' | 'Updating address' | 'Use billing address' | 'Use fewer keywords' | 'Username' | 'Validating' | 'validation.badInput' | 'validation.customError' | 'validation.invalid' | 'validation.patternMismatch' | 'validation.rangeOverflow' | 'validation.rangeUnderflow' | 'validation.stepMismatch' | 'validation.tooLong' | 'validation.tooShort' | 'validation.typeMismatch' | 'validation.valid' | 'validation.valueMissing' | 'VAT Number' | 'VAT' | 'Welcome to Sonic Equipment. Please choose your country and language below.' | 'What are you searching for?' | 'You are not authorized to access this information.' | 'You are not authorized to perform this action' | 'You are not authorized to view customers. Please log in or contact support.' | 'You could try checking the spelling of your search query' | 'You could try exploring our products by category' | 'You could try' | 'You have reached the end of the results, but there may be more articles available. Adjust your filters or search to discover more!' | 'You must ' | 'You selected a country where we invoice in a different currency. This will result in your cart being converted to the new currency. If you would like to review your order, ' | 'Your cart has been emptied.' | 'Your email and password were not recognized.' | 'Your favorites are available on multiple devices' | 'Your new Sonic Equipment account was succesfully created. You should receive an email soon with further instructions on how to activate this account. If you do not receive this email, please contact Customer Support.' | 'Your shopping cart is still empty';
|