@shopgate/engage 7.32.0-beta.4 → 7.32.0-beta.6
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/back-in-stock/components/Subscriptions/components/Subscription/index.js +2 -5
- package/cart/components/CartItem/CartItemProductLayout.js +1 -1
- package/cart/components/CartItem/CartItemProductLayoutWide.js +2 -2
- package/category/components/CategoryImage/index.js +11 -15
- package/components/constants.d.ts +6 -0
- package/components/constants.d.ts.map +1 -0
- package/core/helpers/getFullImageSource.d.ts +5 -1
- package/core/helpers/getFullImageSource.d.ts.map +1 -1
- package/core/helpers/getFullImageSource.js +30 -14
- package/core/helpers/i18n.d.ts +4 -0
- package/core/helpers/i18n.d.ts.map +1 -1
- package/core/helpers/i18n.js +3 -0
- package/core/hooks/html/useLoadImage.d.ts +3 -3
- package/core/hooks/html/useLoadImage.d.ts.map +1 -1
- package/core/hooks/html/useLoadImage.js +2 -2
- package/favorites/components/Item/Item.d.ts.map +1 -1
- package/favorites/components/Item/Item.js +2 -5
- package/favorites/components/List/List.d.ts +1 -1
- package/locations/components/StoreList/StoreListProduct.js +2 -3
- package/package.json +8 -8
- package/page/components/NotFound.d.ts +7 -0
- package/page/components/NotFound.d.ts.map +1 -0
- package/page/components/NotFound.js +1 -2
- package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.d.ts +52 -0
- package/page/components/ResponsiveWidgetImage/ResponsiveWidgetImage.d.ts.map +1 -0
- package/page/components/ResponsiveWidgetImage/index.d.ts +2 -0
- package/page/components/ResponsiveWidgetImage/index.d.ts.map +1 -0
- package/page/components/WidgetRichText/WidgetRichText.d.ts +25 -0
- package/page/components/WidgetRichText/WidgetRichText.d.ts.map +1 -0
- package/page/components/WidgetRichText/index.d.ts +2 -0
- package/page/components/WidgetRichText/index.d.ts.map +1 -0
- package/page/components/WidgetVideo/WidgetVideo.d.ts +43 -0
- package/page/components/WidgetVideo/WidgetVideo.d.ts.map +1 -0
- package/page/components/WidgetVideo/WidgetVideo.js +33 -39
- package/page/components/WidgetVideo/index.d.ts +2 -0
- package/page/components/WidgetVideo/index.d.ts.map +1 -0
- package/page/components/Widgets/Overlay.d.ts +17 -0
- package/page/components/Widgets/Overlay.d.ts.map +1 -0
- package/page/components/Widgets/Overlay.js +24 -38
- package/page/components/Widgets/Tooltip.d.ts +20 -0
- package/page/components/Widgets/Tooltip.d.ts.map +1 -0
- package/page/components/Widgets/Tooltip.js +6 -10
- package/page/components/Widgets/Widget.d.ts +32 -0
- package/page/components/Widgets/Widget.d.ts.map +1 -0
- package/page/components/Widgets/Widget.js +7 -18
- package/page/components/Widgets/WidgetContext.d.ts +32 -38
- package/page/components/Widgets/WidgetContext.d.ts.map +1 -0
- package/page/components/Widgets/WidgetContext.js +2 -8
- package/page/components/Widgets/WidgetProvider.d.ts +25 -0
- package/page/components/Widgets/WidgetProvider.d.ts.map +1 -0
- package/page/components/Widgets/WidgetProvider.js +5 -12
- package/page/components/Widgets/Widgets.d.ts +16 -0
- package/page/components/Widgets/Widgets.d.ts.map +1 -0
- package/page/components/Widgets/Widgets.js +5 -12
- package/page/components/Widgets/WidgetsPreviewContext.d.ts +21 -0
- package/page/components/Widgets/WidgetsPreviewContext.d.ts.map +1 -0
- package/page/components/Widgets/WidgetsPreviewContext.js +5 -7
- package/page/components/Widgets/WidgetsPreviewProvider.d.ts +18 -0
- package/page/components/Widgets/WidgetsPreviewProvider.d.ts.map +1 -0
- package/page/components/Widgets/WidgetsPreviewProvider.js +5 -6
- package/page/components/Widgets/constants.d.ts +5 -0
- package/page/components/Widgets/constants.d.ts.map +1 -0
- package/page/components/Widgets/constants.js +3 -1
- package/page/components/Widgets/events.d.ts +38 -0
- package/page/components/Widgets/events.d.ts.map +1 -0
- package/page/components/Widgets/events.js +8 -12
- package/page/components/Widgets/helpers.d.ts +50 -0
- package/page/components/Widgets/helpers.d.ts.map +1 -0
- package/page/components/Widgets/helpers.js +8 -13
- package/page/components/Widgets/hooks.d.ts +13 -0
- package/page/components/Widgets/hooks.d.ts.map +1 -0
- package/page/components/Widgets/hooks.js +13 -11
- package/page/components/Widgets/index.d.ts +3 -0
- package/page/components/Widgets/index.d.ts.map +1 -0
- package/page/components/Widgets/types.d.ts +111 -113
- package/page/components/Widgets/types.d.ts.map +1 -0
- package/page/components/Widgets/types.js +1 -0
- package/page/components/index.d.ts +5 -0
- package/page/components/index.d.ts.map +1 -0
- package/page/constants/actionTypes.d.ts +4 -0
- package/page/constants/actionTypes.d.ts.map +1 -0
- package/page/constants/index.d.ts +25 -0
- package/page/constants/index.d.ts.map +1 -0
- package/page/helpers/index.d.ts +67 -62
- package/page/helpers/index.d.ts.map +1 -0
- package/page/helpers/index.js +24 -25
- package/page/hooks/index.d.ts +54 -53
- package/page/hooks/index.d.ts.map +1 -0
- package/page/hooks/index.js +20 -15
- package/page/selectors/index.d.ts +32 -0
- package/page/selectors/index.d.ts.map +1 -0
- package/page/widgets/ProductSlider/ProductSlider.js +1 -15
- package/page/widgets/Video/Video.d.ts +6 -0
- package/page/widgets/Video/Video.d.ts.map +1 -0
- package/page/widgets/Video/Video.js +0 -2
- package/page/widgets/Video/hooks.d.ts +53 -0
- package/page/widgets/Video/hooks.d.ts.map +1 -0
- package/page/widgets/Video/hooks.js +4 -12
- package/page/widgets/Video/index.d.ts +2 -0
- package/page/widgets/Video/index.d.ts.map +1 -0
- package/product/components/Media/FeaturedMedia.js +7 -1
- package/product/components/Media/MediaImage.js +24 -23
- package/product/components/Media/MediaPlaceholder.js +4 -7
- package/product/components/MediaSlider/components/MediaImage/index.js +6 -2
- package/product/components/MediaSlider/constants.js +1 -12
- package/product/components/ProductCard/index.js +3 -10
- package/product/components/ProductGrid/components/Item/components/ItemImage/index.js +2 -5
- package/product/components/ProductGrid/constants.d.ts +2 -0
- package/product/components/ProductGrid/constants.d.ts.map +1 -0
- package/product/components/ProductGrid/constants.js +1 -0
- package/product/components/ProductGrid/hooks.d.ts +11 -0
- package/product/components/ProductGrid/hooks.d.ts.map +1 -0
- package/product/components/ProductGrid/hooks.js +48 -0
- package/product/components/ProductGrid/index.js +3 -6
- package/product/components/ProductGrid/spec.js +3 -0
- package/product/components/ProductImage/ProductImage.d.ts +42 -0
- package/product/components/ProductImage/ProductImage.d.ts.map +1 -0
- package/product/components/ProductImage/ProductImage.js +153 -0
- package/product/components/ProductImage/ProductImagePlaceholder.d.ts +23 -0
- package/product/components/ProductImage/ProductImagePlaceholder.d.ts.map +1 -0
- package/product/components/ProductImage/ProductImagePlaceholder.js +9 -14
- package/product/components/ProductImage/constants.d.ts +7 -0
- package/product/components/ProductImage/constants.d.ts.map +1 -0
- package/product/components/ProductImage/constants.js +6 -0
- package/product/components/ProductImage/hooks.d.ts +8 -0
- package/product/components/ProductImage/hooks.d.ts.map +1 -0
- package/product/components/ProductImage/hooks.js +32 -0
- package/product/components/ProductImage/index.d.ts +3 -0
- package/product/components/ProductImage/index.d.ts.map +1 -0
- package/product/components/ProductImage/index.js +1 -201
- package/product/components/ProductImage/spec.js +115 -60
- package/product/components/ProductList/components/Item/index.js +5 -3
- package/product/components/ProductRatingStars/ProductRatingStars.js +2 -4
- package/product/components/ProductSlider/constants.d.ts +3 -0
- package/product/components/ProductSlider/constants.d.ts.map +1 -0
- package/product/components/ProductSlider/constants.js +2 -0
- package/product/components/ProductSlider/hooks.d.ts +7 -0
- package/product/components/ProductSlider/hooks.d.ts.map +1 -0
- package/product/components/ProductSlider/hooks.js +40 -0
- package/product/components/ProductSlider/index.js +4 -6
- package/product/components/ProductSlider/spec.js +2 -2
- package/product/components/Rating/index.js +2 -4
- package/product/helpers/index.js +29 -11
- package/product/hooks/index.js +3 -1
- package/product/hooks/useLoadProductImage.js +4 -2
- package/product/hooks/useShowEmptyRatingStars.d.ts +7 -0
- package/product/hooks/useShowEmptyRatingStars.d.ts.map +1 -0
- package/product/hooks/useShowEmptyRatingStars.js +21 -0
- package/product/index.js +0 -1
- package/settings/constants/appSettings.d.ts +3 -0
- package/settings/constants/appSettings.d.ts.map +1 -1
- package/settings/constants/appSettings.js +6 -1
- package/settings/constants/imageSettings.d.ts +52 -0
- package/settings/constants/imageSettings.d.ts.map +1 -0
- package/settings/constants/imageSettings.js +69 -0
- package/settings/helpers/index.d.ts +3 -0
- package/settings/helpers/index.d.ts.map +1 -0
- package/settings/helpers/index.js +1 -0
- package/settings/helpers/resolveImageSettings.d.ts +70 -0
- package/settings/helpers/resolveImageSettings.d.ts.map +1 -0
- package/settings/helpers/resolveImageSettings.js +171 -0
- package/settings/helpers/toImageQuality.d.ts +7 -0
- package/settings/helpers/toImageQuality.d.ts.map +1 -0
- package/settings/helpers/toImageQuality.js +44 -0
- package/settings/helpers/toThumborColor.d.ts +15 -0
- package/settings/helpers/toThumborColor.d.ts.map +1 -0
- package/settings/helpers/toThumborColor.js +51 -0
- package/settings/hooks/index.d.ts +2 -0
- package/settings/hooks/index.d.ts.map +1 -0
- package/settings/hooks/index.js +1 -0
- package/settings/hooks/useImageSettings.d.ts +28 -0
- package/settings/hooks/useImageSettings.d.ts.map +1 -0
- package/settings/hooks/useImageSettings.js +39 -0
- package/settings/reducers/appSettings.d.ts.map +1 -1
- package/settings/reducers/appSettings.js +66 -4
- package/settings/reducers/index.d.ts +2 -2
- package/settings/selectors/appSettings.d.ts +46 -0
- package/settings/selectors/appSettings.d.ts.map +1 -1
- package/settings/selectors/appSettings.js +26 -1
- package/settings/types/appSettings.d.ts +156 -0
- package/settings/types/appSettings.d.ts.map +1 -1
- package/styles/reset/root.js +23 -4
- package/styles/reset/typographyCustomProps.d.ts +12 -0
- package/styles/reset/typographyCustomProps.d.ts.map +1 -0
- package/styles/reset/typographyCustomProps.js +11 -0
- package/styles/theme/createTheme/createTypography.js +1 -0
- package/styles/theme/createTheme/helpers/cssVarsParser.d.ts.map +1 -1
- package/styles/theme/createTheme/helpers/cssVarsParser.js +10 -3
- package/product/collections/index.js +0 -1
- package/product/components/EffectivityDates/constants.d.ts +0 -3
- package/product/components/EffectivityDates/constants.d.ts.map +0 -1
- package/product/components/EffectivityDates/helpers.d.ts +0 -6
- package/product/components/EffectivityDates/helpers.d.ts.map +0 -1
- package/product/components/Media/helpers.d.ts +0 -2
- package/product/components/Media/helpers.d.ts.map +0 -1
- package/product/components/ProductImage/connector.js +0 -12
- package/product/helpers/index.d.ts +0 -13
- package/product/helpers/index.d.ts.map +0 -1
- package/product/helpers/redirects.d.ts +0 -2
- package/product/helpers/redirects.d.ts.map +0 -1
- package/product/selectors/helpers/filterProperties.d.ts +0 -8
- package/product/selectors/helpers/filterProperties.d.ts.map +0 -1
- package/product/selectors/helpers/index.d.ts +0 -3
- package/product/selectors/helpers/index.d.ts.map +0 -1
- package/product/selectors/helpers/wrapMemoizedSelector.d.ts +0 -2
- package/product/selectors/helpers/wrapMemoizedSelector.d.ts.map +0 -1
- package/product/selectors/product.d.ts +0 -112
- package/product/selectors/product.d.ts.map +0 -1
|
@@ -28,6 +28,9 @@ export declare const getTabBarSettings: ((state: AppSettingsState) => {
|
|
|
28
28
|
fixed: {
|
|
29
29
|
borderEnabled: boolean;
|
|
30
30
|
};
|
|
31
|
+
favorites: {
|
|
32
|
+
showCounter: boolean;
|
|
33
|
+
};
|
|
31
34
|
}) & import("reselect").OutputSelectorFields<(args_0: AppSettingsSlice) => {
|
|
32
35
|
variant: "fixed" | "floating";
|
|
33
36
|
transition: "fade" | "slide";
|
|
@@ -36,9 +39,52 @@ export declare const getTabBarSettings: ((state: AppSettingsState) => {
|
|
|
36
39
|
fixed: {
|
|
37
40
|
borderEnabled: boolean;
|
|
38
41
|
};
|
|
42
|
+
favorites: {
|
|
43
|
+
showCounter: boolean;
|
|
44
|
+
};
|
|
39
45
|
}, {
|
|
40
46
|
clearCache: () => void;
|
|
41
47
|
}> & {
|
|
42
48
|
clearCache: () => void;
|
|
43
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Selects the ProductGrid columns setting (keyed by breakpoint).
|
|
52
|
+
*/
|
|
53
|
+
export declare const getProductGridColumns: ((state: AppSettingsState) => Partial<Record<import("../types/appSettings").ScreenSize, number>>) & import("reselect").OutputSelectorFields<(args_0: AppSettingsSlice) => Partial<Record<import("../types/appSettings").ScreenSize, number>>, {
|
|
54
|
+
clearCache: () => void;
|
|
55
|
+
}> & {
|
|
56
|
+
clearCache: () => void;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Selects the ProductSlider slidesPerView setting (keyed by breakpoint).
|
|
60
|
+
*/
|
|
61
|
+
export declare const getProductSliderSlidesPerView: ((state: AppSettingsState) => Partial<Record<import("../types/appSettings").ScreenSize, number>>) & import("reselect").OutputSelectorFields<(args_0: AppSettingsSlice) => Partial<Record<import("../types/appSettings").ScreenSize, number>>, {
|
|
62
|
+
clearCache: () => void;
|
|
63
|
+
}> & {
|
|
64
|
+
clearCache: () => void;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Selects whether the favorites tab bar icon shows the number of favorites within its badge.
|
|
68
|
+
*/
|
|
69
|
+
export declare const getShowFavoritesCounter: ((state: AppSettingsState) => boolean) & import("reselect").OutputSelectorFields<(args_0: AppSettingsSlice) => boolean, {
|
|
70
|
+
clearCache: () => void;
|
|
71
|
+
}> & {
|
|
72
|
+
clearCache: () => void;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Selects whether rating stars are also shown for products without a rating.
|
|
76
|
+
*/
|
|
77
|
+
export declare const getShowEmptyRatingStars: ((state: AppSettingsState) => boolean) & import("reselect").OutputSelectorFields<(args_0: AppSettingsSlice) => boolean, {
|
|
78
|
+
clearCache: () => void;
|
|
79
|
+
}> & {
|
|
80
|
+
clearCache: () => void;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Selects the image settings.
|
|
84
|
+
*/
|
|
85
|
+
export declare const getImageSettings: ((state: AppSettingsState) => import("../types/appSettings").ImageSettings) & import("reselect").OutputSelectorFields<(args_0: AppSettingsSlice) => import("../types/appSettings").ImageSettings, {
|
|
86
|
+
clearCache: () => void;
|
|
87
|
+
}> & {
|
|
88
|
+
clearCache: () => void;
|
|
89
|
+
};
|
|
44
90
|
//# sourceMappingURL=appSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appSettings.d.ts","sourceRoot":"","sources":["../../../settings/selectors/appSettings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG/E;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,gBAAgB,KAAG,gBACR,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;;CAGrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"appSettings.d.ts","sourceRoot":"","sources":["../../../settings/selectors/appSettings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG/E;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,gBAAgB,KAAG,gBACR,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;;CAGrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;CAG7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;CAGjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;CAGzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;CAGnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;CAGnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAG5B,CAAC"}
|
|
@@ -20,4 +20,29 @@ export const getAreAppSettingsHydrated = createSelector(getAppSettingsState, app
|
|
|
20
20
|
/**
|
|
21
21
|
* Selects the tab bar settings.
|
|
22
22
|
*/
|
|
23
|
-
export const getTabBarSettings = createSelector(getAppSettingsState, appSettings => appSettings.navigation.tabBar);
|
|
23
|
+
export const getTabBarSettings = createSelector(getAppSettingsState, appSettings => appSettings.navigation.tabBar);
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Selects the ProductGrid columns setting (keyed by breakpoint).
|
|
27
|
+
*/
|
|
28
|
+
export const getProductGridColumns = createSelector(getAppSettingsState, appSettings => appSettings.product.grid.columns);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Selects the ProductSlider slidesPerView setting (keyed by breakpoint).
|
|
32
|
+
*/
|
|
33
|
+
export const getProductSliderSlidesPerView = createSelector(getAppSettingsState, appSettings => appSettings.product.slider.slidesPerView);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Selects whether the favorites tab bar icon shows the number of favorites within its badge.
|
|
37
|
+
*/
|
|
38
|
+
export const getShowFavoritesCounter = createSelector(getAppSettingsState, appSettings => appSettings.navigation.tabBar.favorites.showCounter);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Selects whether rating stars are also shown for products without a rating.
|
|
42
|
+
*/
|
|
43
|
+
export const getShowEmptyRatingStars = createSelector(getAppSettingsState, appSettings => appSettings.product.rating.showEmptyStars);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Selects the image settings.
|
|
47
|
+
*/
|
|
48
|
+
export const getImageSettings = createSelector(getAppSettingsState, appSettings => appSettings.images);
|
|
@@ -3,6 +3,151 @@ export interface AppSettingsState {
|
|
|
3
3
|
appSettings: AppSettingsSlice;
|
|
4
4
|
};
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* The merchant-facing screen sizes for the product list types. Each maps to a theme
|
|
8
|
+
* breakpoint inside the consuming hook (small → xs, medium → sm, large → md).
|
|
9
|
+
*/
|
|
10
|
+
export type ScreenSize = 'small' | 'medium' | 'large';
|
|
11
|
+
/**
|
|
12
|
+
* A value keyed by screen size. Partial: any unset size cascades down to the next smaller
|
|
13
|
+
* defined value (see useResponsiveValue).
|
|
14
|
+
*/
|
|
15
|
+
export type PerScreenSize = Partial<Record<ScreenSize, number>>;
|
|
16
|
+
/**
|
|
17
|
+
* Number of product columns to render, keyed by screen size.
|
|
18
|
+
*/
|
|
19
|
+
export type ProductColumns = PerScreenSize;
|
|
20
|
+
/**
|
|
21
|
+
* Settings for the ProductGrid list type.
|
|
22
|
+
*/
|
|
23
|
+
export interface ProductGridSettings {
|
|
24
|
+
columns: ProductColumns;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Number of slides to render side by side, keyed by screen size. Fractional values are allowed.
|
|
28
|
+
*/
|
|
29
|
+
export type SlidesPerView = PerScreenSize;
|
|
30
|
+
/**
|
|
31
|
+
* Settings for the ProductSlider list type.
|
|
32
|
+
*/
|
|
33
|
+
export interface ProductSliderSettings {
|
|
34
|
+
slidesPerView: SlidesPerView;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Settings for the product rating stars.
|
|
38
|
+
*/
|
|
39
|
+
export interface ProductRatingSettings {
|
|
40
|
+
/**
|
|
41
|
+
* Whether rating stars are also rendered for products that have no rating yet.
|
|
42
|
+
*/
|
|
43
|
+
showEmptyStars: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Settings for product presentation across the app.
|
|
47
|
+
*/
|
|
48
|
+
export interface ProductSettings {
|
|
49
|
+
grid: ProductGridSettings;
|
|
50
|
+
slider: ProductSliderSettings;
|
|
51
|
+
rating: ProductRatingSettings;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* An aspect ratio expressed as width and height parts. Only the proportion matters -
|
|
55
|
+
* { width: 4, height: 5 } and { width: 8, height: 10 } are equivalent.
|
|
56
|
+
*/
|
|
57
|
+
export interface AspectRatio {
|
|
58
|
+
/**
|
|
59
|
+
* The width part of the proportion.
|
|
60
|
+
*/
|
|
61
|
+
width: number;
|
|
62
|
+
/**
|
|
63
|
+
* The height part of the proportion.
|
|
64
|
+
*/
|
|
65
|
+
height: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A single image resolution requested from the image service.
|
|
69
|
+
*/
|
|
70
|
+
export interface ImageResolution {
|
|
71
|
+
/**
|
|
72
|
+
* Width in pixels.
|
|
73
|
+
*/
|
|
74
|
+
width: number;
|
|
75
|
+
/**
|
|
76
|
+
* Height in pixels, derived from the configured aspect ratio.
|
|
77
|
+
*/
|
|
78
|
+
height: number;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The product image contexts. pdp drives the product detail page, gallery the fullscreen gallery,
|
|
82
|
+
* and list every grid, slider, list and row tile.
|
|
83
|
+
*/
|
|
84
|
+
export type ProductImageContext = 'pdp' | 'gallery' | 'list';
|
|
85
|
+
/**
|
|
86
|
+
* Settings for a single product image context. The pixel dimensions are not configurable - they
|
|
87
|
+
* are derived from the built-in base widths for the context (see PRODUCT_IMAGE_BASE_WIDTHS) so
|
|
88
|
+
* that image weight stays under the theme's control.
|
|
89
|
+
*/
|
|
90
|
+
export interface ProductImageContextSettings {
|
|
91
|
+
/**
|
|
92
|
+
* The aspect ratio images in this context are rendered at.
|
|
93
|
+
*/
|
|
94
|
+
ratio: AspectRatio;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Settings for the product image contexts.
|
|
98
|
+
*/
|
|
99
|
+
export interface ProductImageSettings {
|
|
100
|
+
/**
|
|
101
|
+
* The aspect ratio applied to every context that does not override it.
|
|
102
|
+
*/
|
|
103
|
+
ratio: AspectRatio;
|
|
104
|
+
/**
|
|
105
|
+
* Whether product images get an inset shadow. Applies to the image and to the placeholder that
|
|
106
|
+
* stands in for it, so both keep the same silhouette.
|
|
107
|
+
*/
|
|
108
|
+
showInnerShadow: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Overrides for the product detail page.
|
|
111
|
+
*/
|
|
112
|
+
pdp?: ProductImageContextSettings;
|
|
113
|
+
/**
|
|
114
|
+
* Overrides for the fullscreen gallery.
|
|
115
|
+
*/
|
|
116
|
+
gallery?: ProductImageContextSettings;
|
|
117
|
+
/**
|
|
118
|
+
* Overrides for grid, slider, list and row tiles.
|
|
119
|
+
*/
|
|
120
|
+
list?: ProductImageContextSettings;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Settings for images that are served through the image service.
|
|
124
|
+
*
|
|
125
|
+
* quality, fillColor and fillTransparent sit here rather than under product because they are not
|
|
126
|
+
* product specific - getFullImageSource applies them to every image that goes through the image
|
|
127
|
+
* service, including category images, carrier logos and page builder widget images.
|
|
128
|
+
*/
|
|
129
|
+
export interface ImageSettings {
|
|
130
|
+
/**
|
|
131
|
+
* Compression quality passed to the image service, 1 to 100.
|
|
132
|
+
*/
|
|
133
|
+
quality: number;
|
|
134
|
+
/**
|
|
135
|
+
* The color the image service fills letterboxed areas with. A source may send any CSS color -
|
|
136
|
+
* named, hex 3/6/8, rgb(), rgba(), hsl() - or one of Thumbor's own keywords: 'auto', 'blur',
|
|
137
|
+
* 'transparent'. The value reaches the store untouched and the reducer converts it into a
|
|
138
|
+
* Thumbor color token, so everything reading this field gets a wire-ready value.
|
|
139
|
+
*/
|
|
140
|
+
fillColor: string;
|
|
141
|
+
/**
|
|
142
|
+
* Thumbor's fill_transparent argument - whether transparent areas of the source image are
|
|
143
|
+
* filled too. True is what the legacy 'FFFFFF,1' config expressed.
|
|
144
|
+
*/
|
|
145
|
+
fillTransparent: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Aspect ratios for the product image contexts.
|
|
148
|
+
*/
|
|
149
|
+
product: ProductImageSettings;
|
|
150
|
+
}
|
|
6
151
|
export interface AppSettings {
|
|
7
152
|
navigation: {
|
|
8
153
|
tabBar: {
|
|
@@ -13,8 +158,19 @@ export interface AppSettings {
|
|
|
13
158
|
fixed: {
|
|
14
159
|
borderEnabled: boolean;
|
|
15
160
|
};
|
|
161
|
+
favorites: {
|
|
162
|
+
/**
|
|
163
|
+
* Whether the favorites tab bar icon renders the number of favorites within its badge.
|
|
164
|
+
*/
|
|
165
|
+
showCounter: boolean;
|
|
166
|
+
};
|
|
16
167
|
};
|
|
17
168
|
};
|
|
169
|
+
product: ProductSettings;
|
|
170
|
+
/**
|
|
171
|
+
* Settings for images that are served through the image service.
|
|
172
|
+
*/
|
|
173
|
+
images: ImageSettings;
|
|
18
174
|
}
|
|
19
175
|
/**
|
|
20
176
|
* The stored app settings slice. Extends the raw {@link AppSettings} values
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appSettings.d.ts","sourceRoot":"","sources":["../../../settings/types/appSettings.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE;QACR,WAAW,EAAE,gBAAgB,CAAC;KAC/B,CAAC;CACH;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE;QACV,MAAM,EAAE;YACN,OAAO,EAAE,OAAO,GAAG,UAAU,CAAA;YAC7B,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;YAC7B,UAAU,EAAE,OAAO,CAAC;YACpB,YAAY,EAAE,OAAO,CAAC;YACtB,KAAK,EAAE;gBACL,aAAa,EAAE,OAAO,CAAC;aACxB,CAAA;SACF,CAAA;KACF,CAAA;
|
|
1
|
+
{"version":3,"file":"appSettings.d.ts","sourceRoot":"","sources":["../../../settings/types/appSettings.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE;QACR,WAAW,EAAE,gBAAgB,CAAC;KAC/B,CAAC;CACH;AAED;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE,qBAAqB,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;AAE7D;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,GAAG,CAAC,EAAE,2BAA2B,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,2BAA2B,CAAC;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,2BAA2B,CAAC;CACpC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,OAAO,EAAE,oBAAoB,CAAC;CAC/B;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE;QACV,MAAM,EAAE;YACN,OAAO,EAAE,OAAO,GAAG,UAAU,CAAA;YAC7B,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;YAC7B,UAAU,EAAE,OAAO,CAAC;YACpB,YAAY,EAAE,OAAO,CAAC;YACtB,KAAK,EAAE;gBACL,aAAa,EAAE,OAAO,CAAC;aACxB,CAAA;YACD,SAAS,EAAE;gBACT;;mBAEG;gBACH,WAAW,EAAE,OAAO,CAAC;aACtB,CAAA;SACF,CAAA;KACF,CAAA;IACD,OAAO,EAAE,eAAe,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
package/styles/reset/root.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import "core-js/modules/es.array.includes.js";
|
|
2
2
|
import { applyScrollContainer, hasWebBridge, isIOSTheme } from '@shopgate/engage/core/helpers';
|
|
3
|
+
import { configuration } from '@shopgate/engage/core/collections';
|
|
4
|
+
import { CONFIGURATION_COLLECTION_KEY_HAS_ROOT_TYPOGRAPHY } from '@shopgate/engage/core/constants';
|
|
3
5
|
import { themeConfig } from '@shopgate/engage';
|
|
4
6
|
import { injectGlobal } from '..';
|
|
7
|
+
import { CSS_ROOT_FONT_FAMILY, CSS_ROOT_FONT_SIZE } from "./typographyCustomProps";
|
|
5
8
|
const {
|
|
6
9
|
typography
|
|
7
10
|
} = themeConfig;
|
|
8
11
|
const iosThemeActive = isIOSTheme();
|
|
12
|
+
|
|
13
|
+
// Flag (for feature-detecting extensions) that base typography uses the `--sg-root-*` custom
|
|
14
|
+
// properties and the `body1` variant.
|
|
15
|
+
configuration.set(CONFIGURATION_COLLECTION_KEY_HAS_ROOT_TYPOGRAPHY, true);
|
|
9
16
|
injectGlobal({
|
|
10
17
|
'*, *:before, *:after': {
|
|
11
18
|
boxSizing: 'border-box'
|
|
@@ -23,6 +30,14 @@ injectGlobal({
|
|
|
23
30
|
backgroundColor: 'var(--page-background-color)'
|
|
24
31
|
},
|
|
25
32
|
html: {
|
|
33
|
+
// Publish the shared font family (used by every variant) and the rem anchor here. The base body
|
|
34
|
+
// text itself is the `body1` variant, applied to `<body>` below. A higher-specificity `:root`
|
|
35
|
+
// override (admin css / live preview / extension) wins. The family default is the property
|
|
36
|
+
// value, not a `var()` fallback (a comma list can't be a fallback). Roboto is an iOS fallback.
|
|
37
|
+
[CSS_ROOT_FONT_FAMILY]: `${typography.family}${iosThemeActive && !(typography.family || '').includes('Roboto') ? ', Roboto' : ''}`,
|
|
38
|
+
[CSS_ROOT_FONT_SIZE]: `${typography.rootSize}px`,
|
|
39
|
+
fontSize: `var(${CSS_ROOT_FONT_SIZE})`,
|
|
40
|
+
color: 'var(--sg-palette-text-primary, var(--color-text-high-emphasis))',
|
|
26
41
|
overflow: applyScrollContainer() ? 'hidden' : 'inherit',
|
|
27
42
|
MozOsxFontSmoothing: 'grayscale',
|
|
28
43
|
WebkitFontSmoothing: 'antialiased',
|
|
@@ -31,14 +46,18 @@ injectGlobal({
|
|
|
31
46
|
minHeight: '100%'
|
|
32
47
|
},
|
|
33
48
|
body: {
|
|
34
|
-
//
|
|
35
|
-
|
|
49
|
+
// Base body text = the `body1` variant. Family is the shared root var; weight/size/line-height
|
|
50
|
+
// come from the theme's `body1` css vars, with fallbacks so there is no flash before the theme
|
|
51
|
+
// injects them. Configuring `body1` drives both this base text and the variant.
|
|
52
|
+
fontFamily: `var(${CSS_ROOT_FONT_FAMILY})`,
|
|
53
|
+
fontWeight: 'var(--sg-typography-body1-fontWeight, 400)',
|
|
54
|
+
fontSize: 'var(--sg-typography-body1-fontSize, 1rem)',
|
|
55
|
+
lineHeight: 'var(--sg-typography-body1-lineHeight, 1.5)',
|
|
36
56
|
overflow: 'auto',
|
|
37
57
|
margin: 0,
|
|
38
58
|
WebkitOverflowScrolling: 'touch',
|
|
39
59
|
WebkitUserSelect: hasWebBridge() ? 'inherit' : 'none',
|
|
40
|
-
userSelect: hasWebBridge() ? 'inherit' : 'none'
|
|
41
|
-
color: 'var(--sg-palette-text-primary, var(--color-text-high-emphasis))'
|
|
60
|
+
userSelect: hasWebBridge() ? 'inherit' : 'none'
|
|
42
61
|
},
|
|
43
62
|
'[data-pattern]': {
|
|
44
63
|
height: '100% !important'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS custom property names for the shared base typography. Internal to the styles layer: the css
|
|
3
|
+
* reset publishes them on `<html>` — `--sg-root-font-family` is the shared family used by every
|
|
4
|
+
* typography variant, `--sg-root-font-size` is the rem anchor. They're an optional override layer: a
|
|
5
|
+
* higher-specificity `:root` rule (admin css file / live preview / an extension) overrides the
|
|
6
|
+
* shipped default. The base body text itself is the `body1` variant, applied to `<body>` by the reset.
|
|
7
|
+
*
|
|
8
|
+
* Not re-exported from the styles barrel - import from this module directly where needed.
|
|
9
|
+
*/
|
|
10
|
+
export declare const CSS_ROOT_FONT_FAMILY = "--sg-root-font-family";
|
|
11
|
+
export declare const CSS_ROOT_FONT_SIZE = "--sg-root-font-size";
|
|
12
|
+
//# sourceMappingURL=typographyCustomProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typographyCustomProps.d.ts","sourceRoot":"","sources":["../../../styles/reset/typographyCustomProps.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eAAO,MAAM,kBAAkB,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS custom property names for the shared base typography. Internal to the styles layer: the css
|
|
3
|
+
* reset publishes them on `<html>` — `--sg-root-font-family` is the shared family used by every
|
|
4
|
+
* typography variant, `--sg-root-font-size` is the rem anchor. They're an optional override layer: a
|
|
5
|
+
* higher-specificity `:root` rule (admin css file / live preview / an extension) overrides the
|
|
6
|
+
* shipped default. The base body text itself is the `body1` variant, applied to `<body>` by the reset.
|
|
7
|
+
*
|
|
8
|
+
* Not re-exported from the styles barrel - import from this module directly where needed.
|
|
9
|
+
*/
|
|
10
|
+
export const CSS_ROOT_FONT_FAMILY = '--sg-root-font-family';
|
|
11
|
+
export const CSS_ROOT_FONT_SIZE = '--sg-root-font-size';
|
|
@@ -32,6 +32,7 @@ export default function createTypography(palette, typography) {
|
|
|
32
32
|
} = typeof typography === 'function' ? typography(palette) : typography;
|
|
33
33
|
if (isDev) {
|
|
34
34
|
if (typeof fontSize !== 'number') {
|
|
35
|
+
// eslint-disable-next-line no-console
|
|
35
36
|
console.error('Shopgate Theme: `fontSize` is required to be a number.');
|
|
36
37
|
}
|
|
37
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cssVarsParser.d.ts","sourceRoot":"","sources":["../../../../../styles/theme/createTheme/helpers/cssVarsParser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"cssVarsParser.d.ts","sourceRoot":"","sources":["../../../../../styles/theme/createTheme/helpers/cssVarsParser.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA6IH,KAAK,oBAAoB,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uBAAuB,CAAC,EAAE,CAAC,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,OAAO,CAAC;CAC9F,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI;IACxC;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACrC;;;OAGG;IACH,IAAI,EAAE,CAAC,CAAC;IACR;;;OAGG;IACH,gBAAgB,EAAE,CAAC,CAAC;IACpB;;;OAGG;IACH,QAAQ,EAAE,CAAC,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,CAAC,SAAS,MAAM,EACpD,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,oBAAoB,GAC7B,wBAAwB,CAAC,CAAC,CAAC,CA+D7B"}
|
|
@@ -85,11 +85,18 @@ const walkObjectDeep = (obj, callback, shouldSkipPaths) => {
|
|
|
85
85
|
*/
|
|
86
86
|
const getCssValue = (keys, value) => {
|
|
87
87
|
if (typeof value === 'number') {
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
const lastKey = keys[keys.length - 1];
|
|
89
|
+
if (['lineHeight', 'fontWeight', 'opacity', 'zIndex', 'fontWeightLight', 'fontWeightRegular', 'fontWeightMedium', 'fontWeightBold'].some(prop => lastKey === prop)) {
|
|
90
|
+
// CSS properties that are unitless
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// `typography.fontSize` is MUI's base font-size coefficient and stays unitless, but variant
|
|
95
|
+
// font sizes (e.g. `typography.body2.fontSize`) are lengths and need a `px` unit - otherwise a
|
|
96
|
+
// numeric override would produce an invalid `font-size: 12` custom property.
|
|
97
|
+
if (lastKey === 'fontSize' && keys[keys.length - 2] === 'typography') {
|
|
90
98
|
return value;
|
|
91
99
|
}
|
|
92
|
-
const lastKey = keys[keys.length - 1];
|
|
93
100
|
if (lastKey.toLowerCase().includes('opacity')) {
|
|
94
101
|
// opacity values are unitless
|
|
95
102
|
return value;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as productImageFormats } from '@shopgate/pwa-common-commerce/product/collections/ProductImageFormats';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../product/components/EffectivityDates/constants.js"],"names":[],"mappings":"AAAA,qBAAsB,QAAQ,CAAC;AAC/B,oBAAqB,OAAO,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export function buildShowScheduledParams(): Object | {
|
|
2
|
-
showScheduled: string;
|
|
3
|
-
};
|
|
4
|
-
export function showScheduledLabel(startDate: Date, settings?: Object): boolean;
|
|
5
|
-
export function showExpiringLabel(endDate: Date, settings?: Object): boolean;
|
|
6
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../product/components/EffectivityDates/helpers.js"],"names":[],"mappings":"AAUO,4CAFM,MAAM,GAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAC,CAuB1C;AAQM,8CAJI,IAAI,aACJ,MAAM,GACJ,OAAO,CA6BnB;AAQM,2CAJI,IAAI,aACJ,MAAM,GACJ,OAAO,CAyBnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../product/components/Media/helpers.js"],"names":[],"mappings":"AAsBO,wCAJI,MAAM,WACN,MAAM,GACJ,MAAM,CAiBlB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { connect } from 'react-redux';
|
|
2
|
-
import { getProductImagePlaceholder } from "../../../core";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Maps the current application state to the component props.
|
|
6
|
-
* @param {Object} state The current application state.
|
|
7
|
-
* @return {Object} The populated component props.
|
|
8
|
-
*/
|
|
9
|
-
const mapStateToProps = state => ({
|
|
10
|
-
placeholderSrc: getProductImagePlaceholder(state)
|
|
11
|
-
});
|
|
12
|
-
export default connect(mapStateToProps);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from "@shopgate/pwa-common-commerce/product/helpers";
|
|
2
|
-
export * from "../components/Media/helpers";
|
|
3
|
-
export * from "./redirects";
|
|
4
|
-
export function buildFetchCategoryProductsParams(): undefined | {
|
|
5
|
-
params: Object;
|
|
6
|
-
};
|
|
7
|
-
export function buildFetchSearchResultsParams(): undefined | {
|
|
8
|
-
params: Object;
|
|
9
|
-
};
|
|
10
|
-
export function setDefaultProductFetchParams(): void;
|
|
11
|
-
export function getProductImageSettings(): Object;
|
|
12
|
-
export function loadProductImage(src: string, resolution?: Object): Promise<any>;
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../product/helpers/index.js"],"names":[],"mappings":";;;AAcO,oDAFM,SAAS,GAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,CAkBtC;AAhBM,iDAFM,SAAS,GAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,CAkBtC;AAWM,qDAON;AAMM,2CAFK,MAAM,CAoCjB;AAQM,sCAJI,MAAM,eACN,MAAM,gBAWhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"redirects.d.ts","sourceRoot":"","sources":["../../../product/helpers/redirects.js"],"names":[],"mappings":"AAUO,yCAFM,IAAI,CA4BhB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reads the setting for product properties whitelisting/blacklisting
|
|
3
|
-
* and filters the properties accordingly.
|
|
4
|
-
* @param {Array} properties Array of properties with label and value attributes.
|
|
5
|
-
* @return {Array} Filtered properties.
|
|
6
|
-
*/
|
|
7
|
-
export function filterProperties(properties: any[]): any[];
|
|
8
|
-
//# sourceMappingURL=filterProperties.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filterProperties.d.ts","sourceRoot":"","sources":["../../../../product/selectors/helpers/filterProperties.js"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,2DAyBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../product/selectors/helpers/index.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wrapMemoizedSelector.d.ts","sourceRoot":"","sources":["../../../../product/selectors/helpers/wrapMemoizedSelector.js"],"names":[],"mappings":"AAKO,mEAMN"}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates the selector to get a product's properties from the state filtered via
|
|
3
|
-
* positive / negative list.
|
|
4
|
-
* @returns {Function}
|
|
5
|
-
*/
|
|
6
|
-
export function makeGetProductProperties(): Function;
|
|
7
|
-
/**
|
|
8
|
-
* Creates the selector to get a product's effectivity dates.
|
|
9
|
-
* @returns {Function}
|
|
10
|
-
*/
|
|
11
|
-
export function makeGetProductEffectivityDates(): Function;
|
|
12
|
-
/**
|
|
13
|
-
* Creates a selector to return product characteristics.
|
|
14
|
-
* @returns {Function}
|
|
15
|
-
*/
|
|
16
|
-
export function makeGetProductCharacteristics(): Function;
|
|
17
|
-
/**
|
|
18
|
-
* Creates a selector to return product featured media.
|
|
19
|
-
* @returns {Function}
|
|
20
|
-
*/
|
|
21
|
-
export function makeGetProductFeaturedMedia(): Function;
|
|
22
|
-
export function getProductState(state: Object): Object;
|
|
23
|
-
/**
|
|
24
|
-
* Selects the product properties state.
|
|
25
|
-
* @param {Object} state The current application state.
|
|
26
|
-
* @param {Object} props The component props.
|
|
27
|
-
* @return {Object} The product properties state.
|
|
28
|
-
*/
|
|
29
|
-
export const getProductPropertiesState: ((state: Object) => any) & import("reselect").OutputSelectorFields<(args_0: Object) => any, {
|
|
30
|
-
clearCache: () => void;
|
|
31
|
-
}> & {
|
|
32
|
-
clearCache: () => void;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Selects all products from the store.
|
|
36
|
-
* @param {Object} state The current application state.
|
|
37
|
-
* @return {Object} The collection of products.
|
|
38
|
-
*/
|
|
39
|
-
export const getProducts: ((state: Object) => any) & import("reselect").OutputSelectorFields<(args_0: Object) => any, {
|
|
40
|
-
clearCache: () => void;
|
|
41
|
-
}> & {
|
|
42
|
-
clearCache: () => void;
|
|
43
|
-
};
|
|
44
|
-
export function getProductId(state: Object, props?: Object): string | null;
|
|
45
|
-
/**
|
|
46
|
-
* Retrieves the product data for the passed productId from the store.
|
|
47
|
-
* @param {Object} state The current application state.
|
|
48
|
-
* @param {Object} props The component props.
|
|
49
|
-
* @return {Object} The current product.
|
|
50
|
-
*/
|
|
51
|
-
export const getProduct: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, {
|
|
52
|
-
clearCache: () => void;
|
|
53
|
-
}> & {
|
|
54
|
-
clearCache: () => void;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Retrieves a product by id from state. Different to getProduct() which returns the product
|
|
58
|
-
* entity data if available, this selector returns the pure state entry for a given productId.
|
|
59
|
-
* So the expires and the isFetching property is processable.
|
|
60
|
-
* @param {Object} state The current application state.
|
|
61
|
-
* @param {Object} props The component props.
|
|
62
|
-
* @return {Object|null} The dedicated product.
|
|
63
|
-
*/
|
|
64
|
-
export const getProductById: ((state: any, ...params: any[]) => any) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => any, {
|
|
65
|
-
clearCache: () => void;
|
|
66
|
-
}> & {
|
|
67
|
-
clearCache: () => void;
|
|
68
|
-
};
|
|
69
|
-
export const getProductDataById: ((state: any, ...params: any[]) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, {
|
|
70
|
-
clearCache: () => void;
|
|
71
|
-
}> & {
|
|
72
|
-
clearCache: () => void;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Determines a baseProductId for the products which are referenced within the props.
|
|
76
|
-
* When a variantId is passed, the selector will return the id of the related base product.
|
|
77
|
-
* @param {Object} state The current application state.
|
|
78
|
-
* @param {Object} props The component props.
|
|
79
|
-
* @return {string|null}
|
|
80
|
-
*/
|
|
81
|
-
export const getBaseProductId: ((state: any, ...params: any[]) => any) & import("reselect").OutputSelectorFields<(...args: readonly unknown[]) => any, {
|
|
82
|
-
clearCache: () => void;
|
|
83
|
-
}> & {
|
|
84
|
-
clearCache: () => void;
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Retrieves the base product data for the passed productId from the store.
|
|
88
|
-
* @param {Object} state The current application state.
|
|
89
|
-
* @returns {Object|null} The current product.
|
|
90
|
-
*/
|
|
91
|
-
export const getBaseProduct: ((state: any) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, {
|
|
92
|
-
clearCache: () => void;
|
|
93
|
-
}> & {
|
|
94
|
-
clearCache: () => void;
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* END of the copied block
|
|
98
|
-
*/
|
|
99
|
-
/**
|
|
100
|
-
* Selects the is fetching state of the active product.
|
|
101
|
-
*/
|
|
102
|
-
export const getProductIsFetching: ((state: Object, props?: Object | undefined) => any) & import("reselect").OutputSelectorFields<(...args: any) => any, {
|
|
103
|
-
clearCache: () => void;
|
|
104
|
-
}> & {
|
|
105
|
-
clearCache: () => void;
|
|
106
|
-
};
|
|
107
|
-
export function makeGetProductPropertiesUnfiltered(): Function;
|
|
108
|
-
export function makeIsProductActive(returnNullIfProductMissing?: boolean): Function;
|
|
109
|
-
export function makeIsBaseProductActive(returnNullIfProductMissing?: boolean): Function;
|
|
110
|
-
export function makeGetCurrentProductPropertyByLabel(): Function;
|
|
111
|
-
export function makeGetProductType(): Function;
|
|
112
|
-
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../product/selectors/product.js"],"names":[],"mappings":"AAgLA;;;;GAIG;AACH,qDAcC;AAmBD;;;GAGG;AACH,2DAkBC;AAED;;;GAGG;AACH,0DAKC;AAED;;;GAGG;AACH,wDAWC;AArPM,uCAHI,MAAM,GACL,MAAM,CAE0D;AAE5E;;;;;GAKG;AACH;;;;EAGE;AAEF;;;;GAIG;AACH;;;;EAGE;AASK,oCAJI,MAAM,UACN,MAAM,GACL,MAAM,GAAC,IAAI,CAuBtB;AAED;;;;;GAKG;AACH;;;;EAOE;AAEF;;;;;;;GAOG;AACH;;;;EAeE;AAEF;;;;EAGE;AAEF;;;;;;GAMG;AACH;;;;EAkBE;AAEF;;;;GAIG;AACH;;;;EAYE;AAEF;;GAEG;AAEH;;GAEG;AACH;;;;EAIE;AA2BK,+DAWN;AA+DM,iEANI,OAAO,YAejB;AAWM,qEANI,OAAO,YAejB;AAMM,iEAeN;AAOM,+CAGN"}
|