@faststore/core 2.1.33 → 2.1.36
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/.turbo/turbo-build.log +7 -7
- package/package.json +3 -3
- package/src/components/common/Alert/Alert.tsx +5 -8
- package/src/components/navigation/Navbar/Navbar.tsx +22 -22
- package/src/components/navigation/NavbarLinks/NavbarLinks.tsx +8 -7
- package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +15 -14
- package/src/components/product/ProductGrid/ProductGrid.tsx +5 -10
- package/src/components/region/RegionBar/RegionBar.tsx +27 -13
- package/src/components/search/Filter/Filter.tsx +6 -11
- package/src/components/sections/Alert/Alert.tsx +17 -13
- package/src/components/sections/Alert/Overrides.tsx +13 -25
- package/src/components/sections/BannerText/BannerText.tsx +24 -20
- package/src/components/sections/BannerText/Overrides.tsx +11 -23
- package/src/components/sections/Breadcrumb/Overrides.tsx +13 -25
- package/src/components/sections/EmptyState/EmptyState.tsx +6 -8
- package/src/components/sections/EmptyState/Overrides.tsx +12 -24
- package/src/components/sections/Hero/Hero.tsx +15 -12
- package/src/components/sections/Hero/Overrides.tsx +12 -24
- package/src/components/sections/Navbar/Overrides.tsx +43 -31
- package/src/components/sections/Newsletter/Overrides.tsx +28 -26
- package/src/components/sections/ProductDetails/Overrides.tsx +51 -38
- package/src/components/sections/ProductDetails/ProductDetails.tsx +22 -30
- package/src/components/sections/ProductGallery/Overrides.tsx +44 -35
- package/src/components/sections/ProductShelf/Overrides.tsx +14 -28
- package/src/components/sections/RegionBar/Overrides.tsx +12 -24
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +9 -7
- package/src/components/ui/ImageGallery/ImageGallery.tsx +13 -19
- package/src/components/ui/Newsletter/Newsletter.tsx +23 -24
- package/src/components/ui/ProductDetails/ProductDetailsSettings.tsx +21 -17
- package/src/components/ui/ProductGallery/ProductGallery.tsx +31 -38
- package/src/components/ui/ProductShelf/ProductShelf.tsx +11 -16
- package/src/components/ui/ShippingSimulation/ShippingSimulation.tsx +2 -3
- package/src/components/ui/SkuSelector/Selectors.tsx +8 -7
- package/src/customizations/components/overrides/Alert.tsx +3 -7
- package/src/customizations/components/overrides/BannerText.tsx +3 -7
- package/src/customizations/components/overrides/Breadcrumb.tsx +3 -7
- package/src/customizations/components/overrides/EmptyState.tsx +3 -6
- package/src/customizations/components/overrides/Hero.tsx +3 -8
- package/src/customizations/components/overrides/Navbar.tsx +3 -16
- package/src/customizations/components/overrides/Newsletter.tsx +3 -11
- package/src/customizations/components/overrides/ProductDetails.tsx +3 -18
- package/src/customizations/components/overrides/ProductGallery.tsx +3 -16
- package/src/customizations/components/overrides/ProductShelf.tsx +3 -8
- package/src/customizations/components/overrides/RegionBar.tsx +3 -8
- package/src/typings/overrideDefinitionUtils.ts +40 -0
- package/src/typings/overrides.ts +267 -0
- package/src/utils/overrides.ts +53 -0
- package/src/typings/overrides.d.ts +0 -97
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
export const SECTIONS = {
|
|
2
|
-
Hero: {
|
|
3
|
-
components: ['Hero', 'HeroImage', 'HeroHeader'],
|
|
4
|
-
},
|
|
5
|
-
BannerText: {
|
|
6
|
-
components: ['BannerText', 'BannerTextContent'],
|
|
7
|
-
},
|
|
8
|
-
ProductDetails: {
|
|
9
|
-
components: [
|
|
10
|
-
'ProductTitle',
|
|
11
|
-
'DiscountBadge',
|
|
12
|
-
'BuyButton',
|
|
13
|
-
'Icon',
|
|
14
|
-
'Price',
|
|
15
|
-
'QuantitySelector',
|
|
16
|
-
'SkuSelector',
|
|
17
|
-
'ShippingSimulation',
|
|
18
|
-
'ImageGallery',
|
|
19
|
-
'ImageZoom',
|
|
20
|
-
'__experimentalImageGalleryImage',
|
|
21
|
-
'__experimentalImageGallery',
|
|
22
|
-
'__experimentalShippingSimulation',
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
ProductShelf: {
|
|
26
|
-
components: [
|
|
27
|
-
'ProductShelf',
|
|
28
|
-
'__experimentalCarousel',
|
|
29
|
-
'__experimentalProductCard',
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
Navbar: {
|
|
33
|
-
components: [
|
|
34
|
-
'Navbar',
|
|
35
|
-
'NavbarLinks',
|
|
36
|
-
'NavbarLinksList',
|
|
37
|
-
'NavbarSlider',
|
|
38
|
-
'NavbarSliderHeader',
|
|
39
|
-
'NavbarSliderContent',
|
|
40
|
-
'NavbarSliderFooter',
|
|
41
|
-
'NavbarHeader',
|
|
42
|
-
'NavbarRow',
|
|
43
|
-
'NavbarButtons',
|
|
44
|
-
'IconButton',
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
Breadcrumb: {
|
|
48
|
-
components: ['Breadcrumb', 'Icon'],
|
|
49
|
-
},
|
|
50
|
-
ProductGallery: {
|
|
51
|
-
components: [
|
|
52
|
-
'Button',
|
|
53
|
-
'FilterIcon',
|
|
54
|
-
'PrevIcon',
|
|
55
|
-
'ResultsCountSkeleton',
|
|
56
|
-
'SortSkeleton',
|
|
57
|
-
'FilterButtonSkeleton',
|
|
58
|
-
'LinkButtonPrev',
|
|
59
|
-
'LinkButtonNext',
|
|
60
|
-
'__experimentalFilterDesktop',
|
|
61
|
-
'__experimentalFilterSlider',
|
|
62
|
-
'__experimentalProductCard',
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
|
-
Alert: {
|
|
66
|
-
components: ['Alert', 'Icon'],
|
|
67
|
-
},
|
|
68
|
-
EmptyState: {
|
|
69
|
-
components: ['EmptyState'],
|
|
70
|
-
},
|
|
71
|
-
RegionBar: {
|
|
72
|
-
components: ['RegionBar', 'LocationIcon', 'ButtonIcon'],
|
|
73
|
-
},
|
|
74
|
-
Newsletter: {
|
|
75
|
-
components: [
|
|
76
|
-
'ToastIconSuccess',
|
|
77
|
-
'ToastIconError',
|
|
78
|
-
'HeaderIcon',
|
|
79
|
-
'InputFieldName',
|
|
80
|
-
'InputFieldEmail',
|
|
81
|
-
'Button',
|
|
82
|
-
],
|
|
83
|
-
},
|
|
84
|
-
} as const
|
|
85
|
-
|
|
86
|
-
// export type ComponentOrProps =
|
|
87
|
-
// | { Component: React.ElementType }
|
|
88
|
-
// | { props: Record<string, unknown> };
|
|
89
|
-
|
|
90
|
-
export type SectionOverride = {
|
|
91
|
-
[K in keyof typeof SECTIONS]: {
|
|
92
|
-
name: K
|
|
93
|
-
components: {
|
|
94
|
-
[ComponentKey in (typeof SECTIONS)[K]['components'][number]]?: any
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|