@ikas/code-components-mcp 0.116.0 → 0.118.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/data/section-templates/account-info-section/children/AccountAddresses/components/AddressModal/index.tsx +6 -9
- package/data/section-templates/account-info-section/children/AccountAddresses/components/AddressModal/styles.css +1 -0
- package/data/section-templates/account-info-section/children/AccountAddresses/ikas-config-snippet.json +30 -30
- package/data/section-templates/account-info-section/children/AccountAddresses/index.tsx +12 -12
- package/data/section-templates/account-info-section/children/AccountAddresses/types.ts +1 -0
- package/data/section-templates/account-info-section/children/AccountFavorites/ikas-config-snippet.json +9 -9
- package/data/section-templates/account-info-section/children/AccountFavorites/index.tsx +3 -3
- package/data/section-templates/account-info-section/children/AccountFavorites/types.ts +1 -0
- package/data/section-templates/account-info-section/children/AccountInfoContent/ikas-config-snippet.json +16 -16
- package/data/section-templates/account-info-section/children/AccountInfoContent/index.tsx +5 -5
- package/data/section-templates/account-info-section/children/AccountInfoContent/types.ts +1 -0
- package/data/section-templates/account-info-section/children/AccountOrderDetail/ikas-config-snippet.json +74 -74
- package/data/section-templates/account-info-section/children/AccountOrderDetail/index.tsx +29 -29
- package/data/section-templates/account-info-section/children/AccountOrderDetail/types.ts +1 -0
- package/data/section-templates/account-info-section/children/AccountOrders/ikas-config-snippet.json +20 -20
- package/data/section-templates/account-info-section/children/AccountOrders/index.tsx +8 -8
- package/data/section-templates/account-info-section/children/AccountOrders/types.ts +1 -0
- package/data/section-templates/account-info-section/global-types.ts +0 -2
- package/data/section-templates/account-info-section/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/account-info-section/ikas-config-snippet.json +13 -13
- package/data/section-templates/account-info-section/index.tsx +5 -5
- package/data/section-templates/account-info-section/sub-components/Modal/index.tsx +4 -2
- package/data/section-templates/account-info-section/sub-components/ProductCard/index.tsx +4 -4
- package/data/section-templates/account-info-section/types.ts +1 -0
- package/data/section-templates/add-to-cart/ikas-config-snippet.json +30 -30
- package/data/section-templates/add-to-cart/index.tsx +7 -7
- package/data/section-templates/add-to-cart/types.ts +1 -0
- package/data/section-templates/blog-home-section/global-types.ts +0 -2
- package/data/section-templates/blog-home-section/ikas-config-snippet.json +18 -18
- package/data/section-templates/blog-home-section/index.tsx +3 -3
- package/data/section-templates/blog-home-section/types.ts +1 -0
- package/data/section-templates/blog-post-section/global-types.ts +0 -2
- package/data/section-templates/blog-post-section/ikas-config-snippet.json +15 -15
- package/data/section-templates/blog-post-section/index.tsx +3 -3
- package/data/section-templates/blog-post-section/types.ts +1 -0
- package/data/section-templates/bundle-products/global-types.ts +0 -2
- package/data/section-templates/bundle-products/ikas-config-snippet.json +25 -25
- package/data/section-templates/bundle-products/index.tsx +3 -3
- package/data/section-templates/bundle-products/types.ts +1 -0
- package/data/section-templates/cart-section/global-types.ts +0 -2
- package/data/section-templates/cart-section/ikas-config-snippet.json +32 -32
- package/data/section-templates/cart-section/index.tsx +13 -13
- package/data/section-templates/cart-section/sub-components/CartItem/components/BundleProducts/index.tsx +1 -1
- package/data/section-templates/cart-section/types.ts +1 -0
- package/data/section-templates/category-images-section/children/CategoryImageItem/ikas-config-snippet.json +12 -12
- package/data/section-templates/category-images-section/children/CategoryImageItem/types.ts +1 -0
- package/data/section-templates/category-images-section/global-types.ts +0 -2
- package/data/section-templates/category-images-section/ikas-config-snippet.json +11 -11
- package/data/section-templates/category-images-section/types.ts +1 -0
- package/data/section-templates/category-list-section/children/CardProductName/ikas-config-snippet.json +2 -2
- package/data/section-templates/category-list-section/children/CardProductName/types.ts +1 -0
- package/data/section-templates/category-list-section/children/CardProductPrice/ikas-config-snippet.json +1 -1
- package/data/section-templates/category-list-section/children/CardProductPrice/types.ts +1 -0
- package/data/section-templates/category-list-section/children/CardProductVariants/ikas-config-snippet.json +1 -1
- package/data/section-templates/category-list-section/children/CardProductVariants/types.ts +1 -0
- package/data/section-templates/category-list-section/components/CategoryListControls/index.tsx +1 -1
- package/data/section-templates/category-list-section/global-types.ts +0 -2
- package/data/section-templates/category-list-section/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/category-list-section/ikas-config-snippet.json +50 -50
- package/data/section-templates/category-list-section/index.tsx +13 -13
- package/data/section-templates/category-list-section/sub-components/ProductCard/index.tsx +4 -4
- package/data/section-templates/category-list-section/types.ts +1 -0
- package/data/section-templates/component-renderer/additional/Features/types.ts +1 -0
- package/data/section-templates/component-renderer/additional/ProductDetail/index.tsx +1 -1
- package/data/section-templates/component-renderer/additional/ProductDetail/types.ts +1 -0
- package/data/section-templates/component-renderer/global-types.ts +0 -2
- package/data/section-templates/component-renderer/ikas-config-snippet.json +5 -5
- package/data/section-templates/component-renderer/types.ts +1 -0
- package/data/section-templates/email-verification-section/ikas-config-snippet.json +36 -36
- package/data/section-templates/email-verification-section/index.tsx +14 -14
- package/data/section-templates/email-verification-section/types.ts +1 -0
- package/data/section-templates/favorites/ikas-config-snippet.json +12 -12
- package/data/section-templates/favorites/types.ts +1 -0
- package/data/section-templates/features-section/children/FeatureItem/ikas-config-snippet.json +2 -2
- package/data/section-templates/features-section/children/FeatureItem/types.ts +1 -0
- package/data/section-templates/features-section/ikas-config-snippet.json +2 -2
- package/data/section-templates/features-section/types.ts +1 -0
- package/data/section-templates/footer-section/children/SocialMediaIcon/ikas-config-snippet.json +1 -1
- package/data/section-templates/footer-section/children/SocialMediaIcon/types.ts +1 -0
- package/data/section-templates/footer-section/ikas-config-snippet.json +19 -19
- package/data/section-templates/footer-section/index.tsx +3 -3
- package/data/section-templates/footer-section/types.ts +1 -0
- package/data/section-templates/forgot-password-section/components/ForgotPasswordForm/index.tsx +10 -10
- package/data/section-templates/forgot-password-section/ikas-config-snippet.json +29 -29
- package/data/section-templates/forgot-password-section/types.ts +1 -0
- package/data/section-templates/header-section/children/Announcements/ikas-config-snippet.json +9 -9
- package/data/section-templates/header-section/children/Announcements/types.ts +1 -0
- package/data/section-templates/header-section/children/CookieBar/ikas-config-snippet.json +15 -15
- package/data/section-templates/header-section/children/CookieBar/types.ts +1 -0
- package/data/section-templates/header-section/children/Navbar/components/MobileMenu/index.tsx +1 -1
- package/data/section-templates/header-section/children/Navbar/ikas-config-snippet.json +68 -68
- package/data/section-templates/header-section/children/Navbar/index.tsx +19 -19
- package/data/section-templates/header-section/children/Navbar/types.ts +1 -0
- package/data/section-templates/header-section/global-types.ts +0 -2
- package/data/section-templates/header-section/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/header-section/ikas-config-snippet.json +5 -5
- package/data/section-templates/header-section/sub-components/CartItem/components/BundleProducts/index.tsx +1 -1
- package/data/section-templates/header-section/sub-components/ProductCard/index.tsx +4 -4
- package/data/section-templates/header-section/types.ts +1 -0
- package/data/section-templates/hero-slider-section/children/HeroSliderItem/ikas-config-snippet.json +34 -34
- package/data/section-templates/hero-slider-section/children/HeroSliderItem/types.ts +1 -0
- package/data/section-templates/hero-slider-section/global-types.ts +0 -2
- package/data/section-templates/hero-slider-section/ikas-config-snippet.json +10 -10
- package/data/section-templates/hero-slider-section/types.ts +1 -0
- package/data/section-templates/image-handling/global-types.ts +0 -2
- package/data/section-templates/image-handling/ikas-config-snippet.json +16 -16
- package/data/section-templates/image-handling/index.tsx +1 -1
- package/data/section-templates/image-handling/types.ts +1 -0
- package/data/section-templates/login-section/components/LoginForm/index.tsx +13 -13
- package/data/section-templates/login-section/ikas-config-snippet.json +38 -38
- package/data/section-templates/login-section/types.ts +1 -0
- package/data/section-templates/navigation/components/MobileMenu/index.tsx +1 -1
- package/data/section-templates/navigation/global-types.ts +0 -2
- package/data/section-templates/navigation/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/navigation/ikas-config-snippet.json +68 -68
- package/data/section-templates/navigation/index.tsx +19 -19
- package/data/section-templates/navigation/sub-components/CartItem/components/BundleProducts/index.tsx +1 -1
- package/data/section-templates/navigation/sub-components/ProductCard/index.tsx +4 -4
- package/data/section-templates/navigation/types.ts +1 -0
- package/data/section-templates/not-found-section/ikas-config-snippet.json +9 -9
- package/data/section-templates/not-found-section/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/ikas-config-snippet.json +30 -30
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/index.tsx +7 -7
- package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/ikas-config-snippet.json +33 -33
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/index.tsx +8 -8
- package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/ikas-config-snippet.json +25 -25
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/index.tsx +3 -3
- package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailDescription/ikas-config-snippet.json +19 -19
- package/data/section-templates/product-detail-section/children/ProductDetailDescription/index.tsx +1 -1
- package/data/section-templates/product-detail-section/children/ProductDetailDescription/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailFeatures/ikas-config-snippet.json +11 -11
- package/data/section-templates/product-detail-section/children/ProductDetailFeatures/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/ikas-config-snippet.json +12 -12
- package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/components/OfferCard/index.tsx +2 -2
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/ikas-config-snippet.json +39 -39
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/index.tsx +9 -9
- package/data/section-templates/product-detail-section/children/ProductDetailOffer/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/ikas-config-snippet.json +31 -31
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/index.tsx +7 -7
- package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailPrices/ikas-config-snippet.json +11 -11
- package/data/section-templates/product-detail-section/children/ProductDetailPrices/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/ikas-config-snippet.json +11 -11
- package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailSku/ikas-config-snippet.json +15 -15
- package/data/section-templates/product-detail-section/children/ProductDetailSku/index.tsx +1 -1
- package/data/section-templates/product-detail-section/children/ProductDetailSku/types.ts +1 -0
- package/data/section-templates/product-detail-section/children/ProductDetailVariant/ikas-config-snippet.json +13 -13
- package/data/section-templates/product-detail-section/children/ProductDetailVariant/types.ts +2 -1
- package/data/section-templates/product-detail-section/global-types.ts +0 -2
- package/data/section-templates/product-detail-section/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/product-detail-section/ikas-config-snippet.json +16 -16
- package/data/section-templates/product-detail-section/index.tsx +1 -1
- package/data/section-templates/product-detail-section/types.ts +1 -0
- package/data/section-templates/product-pricing/ikas-config-snippet.json +11 -11
- package/data/section-templates/product-pricing/types.ts +1 -0
- package/data/section-templates/product-reviews-section/hooks/useScrollLock.ts +0 -4
- package/data/section-templates/product-reviews-section/ikas-config-snippet.json +6 -6
- package/data/section-templates/product-reviews-section/sub-components/Modal/index.tsx +4 -2
- package/data/section-templates/product-reviews-section/types.ts +1 -0
- package/data/section-templates/product-slider-section/children/CardProductName/ikas-config-snippet.json +2 -2
- package/data/section-templates/product-slider-section/children/CardProductName/types.ts +1 -0
- package/data/section-templates/product-slider-section/children/CardProductPrice/ikas-config-snippet.json +1 -1
- package/data/section-templates/product-slider-section/children/CardProductPrice/types.ts +1 -0
- package/data/section-templates/product-slider-section/children/CardProductVariants/ikas-config-snippet.json +1 -1
- package/data/section-templates/product-slider-section/children/CardProductVariants/types.ts +1 -0
- package/data/section-templates/product-slider-section/global-types.ts +0 -2
- package/data/section-templates/product-slider-section/ikas-config-snippet.json +22 -22
- package/data/section-templates/product-slider-section/index.tsx +4 -4
- package/data/section-templates/product-slider-section/sub-components/ProductCard/index.tsx +4 -4
- package/data/section-templates/product-slider-section/types.ts +1 -0
- package/data/section-templates/recover-password-section/components/RecoverPasswordForm/index.tsx +10 -10
- package/data/section-templates/recover-password-section/ikas-config-snippet.json +42 -42
- package/data/section-templates/recover-password-section/types.ts +1 -0
- package/data/section-templates/register-section/components/RegisterForm/index.tsx +15 -15
- package/data/section-templates/register-section/ikas-config-snippet.json +54 -54
- package/data/section-templates/register-section/types.ts +1 -0
- package/data/section-templates/rich-text-section/ikas-config-snippet.json +3 -3
- package/data/section-templates/rich-text-section/types.ts +1 -0
- package/data/section-templates/variant-selection/ikas-config-snippet.json +13 -13
- package/data/section-templates/variant-selection/types.ts +2 -1
- package/data/storefront-api.json +12 -1
- package/data/storefront-types.json +1 -1
- package/dist/index.js +2 -355
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/data/migration-examples/complex-header-migration/_meta.json +0 -4
- package/data/migration-examples/complex-header-migration/after-config-snippet.json +0 -55
- package/data/migration-examples/complex-header-migration/after-section.tsx +0 -64
- package/data/migration-examples/complex-header-migration/before-props-summary.json +0 -42
- package/data/migration-examples/custom-dynamic-list-to-component-list/_meta.json +0 -4
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-child-styles.css +0 -38
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-child.tsx +0 -22
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-config-snippet.json +0 -31
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-section-styles.css +0 -25
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-section.tsx +0 -17
- package/data/migration-examples/custom-dynamic-list-to-component-list/before-component.tsx +0 -32
- package/data/migration-examples/custom-dynamic-list-to-component-list/before-theme-snippet.json +0 -53
- package/data/migration-examples/full-component-with-tailwind/_meta.json +0 -4
- package/data/migration-examples/full-component-with-tailwind/after-component.tsx +0 -43
- package/data/migration-examples/full-component-with-tailwind/after-config-snippet.json +0 -25
- package/data/migration-examples/full-component-with-tailwind/after-styles.css +0 -99
- package/data/migration-examples/full-component-with-tailwind/before-component.tsx +0 -60
- package/data/migration-examples/object-custom-to-inline-props/_meta.json +0 -4
- package/data/migration-examples/object-custom-to-inline-props/after-component.tsx +0 -34
- package/data/migration-examples/object-custom-to-inline-props/after-config-snippet.json +0 -23
- package/data/migration-examples/object-custom-to-inline-props/after-styles.css +0 -38
- package/data/migration-examples/object-custom-to-inline-props/before-component.tsx +0 -30
- package/data/migration-examples/object-custom-to-inline-props/before-theme-snippet.json +0 -26
- package/data/migration-examples/slider-library-replacement/_meta.json +0 -4
- package/data/migration-examples/slider-library-replacement/after-child.tsx +0 -13
- package/data/migration-examples/slider-library-replacement/after-config-snippet.json +0 -29
- package/data/migration-examples/slider-library-replacement/after-section.tsx +0 -38
- package/data/migration-examples/slider-library-replacement/after-styles.css +0 -43
- package/data/migration-examples/slider-library-replacement/before-component.tsx +0 -39
- package/data/migration-examples/slider-library-replacement/before-types-snippet.ts +0 -14
- package/data/migration.json +0 -65
|
@@ -7,14 +7,10 @@ export function useScrollLock(
|
|
|
7
7
|
) {
|
|
8
8
|
useEffect(() => {
|
|
9
9
|
if (!enabled) return;
|
|
10
|
-
const scrollbarWidth =
|
|
11
|
-
window.innerWidth - document.documentElement.clientWidth;
|
|
12
10
|
document.body.style.overflow = "hidden";
|
|
13
|
-
document.body.style.paddingRight = `${scrollbarWidth}px`;
|
|
14
11
|
return () => {
|
|
15
12
|
if (skipCleanupRef?.current) return;
|
|
16
13
|
document.body.style.overflow = "";
|
|
17
|
-
document.body.style.paddingRight = "";
|
|
18
14
|
};
|
|
19
15
|
}, [enabled]);
|
|
20
16
|
}
|
|
@@ -7,122 +7,122 @@
|
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
9
9
|
"name": "productList",
|
|
10
|
-
"displayName": "
|
|
10
|
+
"displayName": "Product List",
|
|
11
11
|
"type": "PRODUCT_LIST",
|
|
12
12
|
"required": true,
|
|
13
13
|
"groupId": "data"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "pageTitle",
|
|
17
|
-
"displayName": "
|
|
17
|
+
"displayName": "Page Title",
|
|
18
18
|
"type": "TEXT",
|
|
19
19
|
"required": false,
|
|
20
20
|
"groupId": "texts"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "productCountText",
|
|
24
|
-
"displayName": "
|
|
24
|
+
"displayName": "Product Count Text",
|
|
25
25
|
"type": "TEXT",
|
|
26
26
|
"required": false,
|
|
27
|
-
"defaultValue": "
|
|
27
|
+
"defaultValue": "product",
|
|
28
28
|
"groupId": "texts"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "emptyMessage",
|
|
32
|
-
"displayName": "
|
|
32
|
+
"displayName": "Empty State Message",
|
|
33
33
|
"type": "TEXT",
|
|
34
34
|
"required": false,
|
|
35
|
-
"defaultValue": "
|
|
35
|
+
"defaultValue": "No products found.",
|
|
36
36
|
"groupId": "texts"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "searchPlaceholder",
|
|
40
|
-
"displayName": "
|
|
40
|
+
"displayName": "Search Placeholder",
|
|
41
41
|
"type": "TEXT",
|
|
42
42
|
"required": false,
|
|
43
|
-
"defaultValue": "
|
|
43
|
+
"defaultValue": "Search",
|
|
44
44
|
"groupId": "texts"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "clearFiltersText",
|
|
48
|
-
"displayName": "
|
|
48
|
+
"displayName": "Clear Filters Text",
|
|
49
49
|
"type": "TEXT",
|
|
50
50
|
"required": false,
|
|
51
|
-
"defaultValue": "
|
|
51
|
+
"defaultValue": "Clear Filters",
|
|
52
52
|
"groupId": "texts"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"name": "addToCartText",
|
|
56
|
-
"displayName": "
|
|
56
|
+
"displayName": "Add to Cart Text",
|
|
57
57
|
"type": "TEXT",
|
|
58
58
|
"required": false,
|
|
59
|
-
"defaultValue": "
|
|
59
|
+
"defaultValue": "Add to Cart",
|
|
60
60
|
"groupId": "texts"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"name": "addedToCartText",
|
|
64
|
-
"displayName": "
|
|
64
|
+
"displayName": "Added to Cart Text",
|
|
65
65
|
"type": "TEXT",
|
|
66
66
|
"required": false,
|
|
67
|
-
"defaultValue": "
|
|
67
|
+
"defaultValue": "Added",
|
|
68
68
|
"groupId": "texts"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"name": "outOfStockText",
|
|
72
|
-
"displayName": "
|
|
72
|
+
"displayName": "Sold Out Text",
|
|
73
73
|
"type": "TEXT",
|
|
74
74
|
"required": false,
|
|
75
|
-
"defaultValue": "
|
|
75
|
+
"defaultValue": "Sold Out",
|
|
76
76
|
"groupId": "texts"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"name": "showProductsText",
|
|
80
|
-
"displayName": "
|
|
80
|
+
"displayName": "View Product Text",
|
|
81
81
|
"type": "TEXT",
|
|
82
82
|
"required": false,
|
|
83
|
-
"defaultValue": "
|
|
83
|
+
"defaultValue": "VIEW PRODUCT",
|
|
84
84
|
"groupId": "texts"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"name": "filtersText",
|
|
88
|
-
"displayName": "
|
|
88
|
+
"displayName": "Filters Text",
|
|
89
89
|
"type": "TEXT",
|
|
90
90
|
"required": false,
|
|
91
|
-
"defaultValue": "
|
|
91
|
+
"defaultValue": "Filters",
|
|
92
92
|
"groupId": "texts"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"name": "homepageText",
|
|
96
|
-
"displayName": "
|
|
96
|
+
"displayName": "Home Text",
|
|
97
97
|
"type": "TEXT",
|
|
98
98
|
"required": false,
|
|
99
|
-
"defaultValue": "
|
|
99
|
+
"defaultValue": "Home",
|
|
100
100
|
"groupId": "texts"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"name": "badgeText",
|
|
104
|
-
"displayName": "
|
|
104
|
+
"displayName": "Badge Text",
|
|
105
105
|
"type": "TEXT",
|
|
106
106
|
"required": false,
|
|
107
107
|
"groupId": "texts"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"name": "showFilters",
|
|
111
|
-
"displayName": "
|
|
111
|
+
"displayName": "Show Filters",
|
|
112
112
|
"type": "BOOLEAN",
|
|
113
113
|
"required": false,
|
|
114
114
|
"groupId": "filters"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"name": "showSearch",
|
|
118
|
-
"displayName": "
|
|
118
|
+
"displayName": "Show Search",
|
|
119
119
|
"type": "BOOLEAN",
|
|
120
120
|
"required": false,
|
|
121
121
|
"groupId": "filters"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
"name": "aspectRatio",
|
|
125
|
-
"displayName": "
|
|
125
|
+
"displayName": "Image Aspect Ratio",
|
|
126
126
|
"type": "ENUM",
|
|
127
127
|
"required": false,
|
|
128
128
|
"groupId": "image-settings",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"name": "objectFit",
|
|
133
|
-
"displayName": "
|
|
133
|
+
"displayName": "Image Fit",
|
|
134
134
|
"type": "ENUM",
|
|
135
135
|
"required": false,
|
|
136
136
|
"groupId": "image-settings",
|
|
@@ -138,37 +138,37 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"name": "isInfinity",
|
|
141
|
-
"displayName": "
|
|
141
|
+
"displayName": "Infinite Scroll",
|
|
142
142
|
"type": "BOOLEAN",
|
|
143
143
|
"required": false,
|
|
144
144
|
"groupId": "pagination"
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"name": "columnText",
|
|
148
|
-
"displayName": "
|
|
148
|
+
"displayName": "Column Text",
|
|
149
149
|
"type": "TEXT",
|
|
150
150
|
"required": false,
|
|
151
|
-
"defaultValue": "
|
|
151
|
+
"defaultValue": "Column",
|
|
152
152
|
"groupId": "texts"
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
"name": "loadPrevPageText",
|
|
156
|
-
"displayName": "
|
|
156
|
+
"displayName": "Load Previous Page Text",
|
|
157
157
|
"type": "TEXT",
|
|
158
158
|
"required": false,
|
|
159
|
-
"defaultValue": "
|
|
159
|
+
"defaultValue": "Load previous page",
|
|
160
160
|
"groupId": "texts"
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"name": "hideAddToCartButton",
|
|
164
|
-
"displayName": "
|
|
164
|
+
"displayName": "Hide Add to Cart Button",
|
|
165
165
|
"type": "BOOLEAN",
|
|
166
166
|
"required": false,
|
|
167
167
|
"groupId": "card-settings"
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
"name": "components",
|
|
171
|
-
"displayName": "
|
|
171
|
+
"displayName": "Components",
|
|
172
172
|
"type": "COMPONENT_LIST",
|
|
173
173
|
"required": false,
|
|
174
174
|
"privateVarMap": {
|
|
@@ -185,14 +185,14 @@
|
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
"name": "hideBreadcrumb",
|
|
188
|
-
"displayName": "Breadcrumb
|
|
188
|
+
"displayName": "Hide Breadcrumb",
|
|
189
189
|
"type": "BOOLEAN",
|
|
190
190
|
"required": false,
|
|
191
191
|
"groupId": "appearance"
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
"name": "isBrandPage",
|
|
195
|
-
"displayName": "
|
|
195
|
+
"displayName": "Is This a Brand Page?",
|
|
196
196
|
"type": "BOOLEAN",
|
|
197
197
|
"required": false,
|
|
198
198
|
"groupId": "data"
|
|
@@ -208,40 +208,40 @@
|
|
|
208
208
|
"propGroups": [
|
|
209
209
|
{
|
|
210
210
|
"id": "data",
|
|
211
|
-
"name": "
|
|
212
|
-
"description": "
|
|
211
|
+
"name": "Data",
|
|
212
|
+
"description": "Product list data source"
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
"id": "appearance",
|
|
216
|
-
"name": "
|
|
217
|
-
"description": "
|
|
216
|
+
"name": "Appearance",
|
|
217
|
+
"description": "Background color, product card image ratio, and overlay settings",
|
|
218
218
|
"children": [
|
|
219
219
|
{
|
|
220
220
|
"id": "image-settings",
|
|
221
|
-
"name": "
|
|
222
|
-
"description": "
|
|
221
|
+
"name": "Image Settings",
|
|
222
|
+
"description": "Product card image ratio and fit settings"
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
225
|
"id": "card-settings",
|
|
226
|
-
"name": "
|
|
227
|
-
"description": "
|
|
226
|
+
"name": "Product Card Settings",
|
|
227
|
+
"description": "Product card view settings"
|
|
228
228
|
}
|
|
229
229
|
]
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
"id": "filters",
|
|
233
|
-
"name": "
|
|
234
|
-
"description": "
|
|
233
|
+
"name": "Filters",
|
|
234
|
+
"description": "Toggle product filtering and search features"
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"id": "pagination",
|
|
238
|
-
"name": "
|
|
239
|
-
"description": "
|
|
238
|
+
"name": "Pagination",
|
|
239
|
+
"description": "Classic pagination or infinite scroll behavior"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"id": "texts",
|
|
243
|
-
"name": "
|
|
244
|
-
"description": "
|
|
243
|
+
"name": "Texts",
|
|
244
|
+
"description": "Button labels, empty state messages, and UI texts"
|
|
245
245
|
}
|
|
246
246
|
]
|
|
247
247
|
}
|
|
@@ -39,25 +39,25 @@ import { usePageTracking } from "../../hooks/usePageTracking";
|
|
|
39
39
|
export function CategoryList(props: Props) {
|
|
40
40
|
const {
|
|
41
41
|
productList,
|
|
42
|
-
emptyMessage = "
|
|
43
|
-
searchPlaceholder = "
|
|
44
|
-
clearFiltersText = "
|
|
45
|
-
addToCartText = "
|
|
46
|
-
addedToCartText = "
|
|
47
|
-
outOfStockText = "
|
|
48
|
-
showProductsText = "
|
|
49
|
-
filtersText = "
|
|
50
|
-
columnText = "
|
|
42
|
+
emptyMessage = "No products found.",
|
|
43
|
+
searchPlaceholder = "Search",
|
|
44
|
+
clearFiltersText = "Clear Filters",
|
|
45
|
+
addToCartText = "Add to Cart",
|
|
46
|
+
addedToCartText = "Added",
|
|
47
|
+
outOfStockText = "Sold Out",
|
|
48
|
+
showProductsText = "VIEW PRODUCT",
|
|
49
|
+
filtersText = "Filters",
|
|
50
|
+
columnText = "Column",
|
|
51
51
|
badgeText,
|
|
52
|
-
homepageText = "
|
|
52
|
+
homepageText = "Home",
|
|
53
53
|
showFilters = false,
|
|
54
54
|
showSearch = false,
|
|
55
55
|
aspectRatio,
|
|
56
56
|
objectFit,
|
|
57
57
|
isInfinity = false,
|
|
58
|
-
loadPrevPageText = "
|
|
58
|
+
loadPrevPageText = "Load previous page",
|
|
59
59
|
pageTitle: pageTitleProp,
|
|
60
|
-
productCountText = "
|
|
60
|
+
productCountText = "product",
|
|
61
61
|
hideAddToCartButton,
|
|
62
62
|
hideBreadcrumb = false,
|
|
63
63
|
isBrandPage = false,
|
|
@@ -259,7 +259,7 @@ export function CategoryList(props: Props) {
|
|
|
259
259
|
|
|
260
260
|
return (
|
|
261
261
|
<div
|
|
262
|
-
key={
|
|
262
|
+
key={product.id}
|
|
263
263
|
className="kombos-category-list__card"
|
|
264
264
|
>
|
|
265
265
|
<ProductCard
|
|
@@ -49,9 +49,9 @@ interface Props {
|
|
|
49
49
|
const ProductCard = observer(function ProductCard({
|
|
50
50
|
product,
|
|
51
51
|
addToCartText,
|
|
52
|
-
addedToCartText = "
|
|
53
|
-
outOfStockText = "
|
|
54
|
-
goToProductText = "
|
|
52
|
+
addedToCartText = "Added to Cart",
|
|
53
|
+
outOfStockText = "Sold Out",
|
|
54
|
+
goToProductText = "View Product",
|
|
55
55
|
showFavorite = true,
|
|
56
56
|
hideAddToCartButton = false,
|
|
57
57
|
badgeText,
|
|
@@ -60,7 +60,7 @@ const ProductCard = observer(function ProductCard({
|
|
|
60
60
|
dataPage,
|
|
61
61
|
sizes = "(max-width: 767px) calc(50vw - 24px), (max-width: 1023px) calc(50vw - 44px), 300px",
|
|
62
62
|
openCartOnAdd = true,
|
|
63
|
-
errorMessage = "
|
|
63
|
+
errorMessage = "Failed to add product to cart",
|
|
64
64
|
onFavoriteRemove,
|
|
65
65
|
priority = false,
|
|
66
66
|
}: Props) {
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
/** Enum type: {{ENUM_ID:AspectRatio}} */
|
|
5
5
|
export type AspectRatio = "Square" | "Portrait" | "Landscape" | "Video";
|
|
6
|
-
/** Enum type: __breakpointsEnum__ */
|
|
7
|
-
export type Breakpoints = "desktop";
|
|
8
6
|
/** Enum type: {{ENUM_ID:NumberOfColumns}} */
|
|
9
7
|
export type NumberOfColumns = "One" | "Two" | "Three" | "Four" | "Five";
|
|
10
8
|
/** Enum type: {{ENUM_ID:ObjectFit}} */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
9
9
|
"name": "backgroundColor",
|
|
10
|
-
"displayName": "
|
|
10
|
+
"displayName": "Background Color",
|
|
11
11
|
"type": "COLOR",
|
|
12
12
|
"required": false,
|
|
13
13
|
"defaultValue": "#ffffff",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "borderColor",
|
|
18
|
-
"displayName": "
|
|
18
|
+
"displayName": "Border Color",
|
|
19
19
|
"type": "COLOR",
|
|
20
20
|
"required": false,
|
|
21
21
|
"defaultValue": "#f6f6f6",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "components",
|
|
26
|
-
"displayName": "
|
|
26
|
+
"displayName": "Components",
|
|
27
27
|
"type": "COMPONENT_LIST",
|
|
28
28
|
"required": false,
|
|
29
29
|
"filteredComponentIds": [
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"propGroups": [
|
|
38
38
|
{
|
|
39
39
|
"id": "appearance",
|
|
40
|
-
"name": "
|
|
41
|
-
"description": "
|
|
40
|
+
"name": "Appearance",
|
|
41
|
+
"description": "Background and border colors"
|
|
42
42
|
}
|
|
43
43
|
]
|
|
44
44
|
}
|
|
@@ -7,114 +7,114 @@
|
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
9
9
|
"name": "title",
|
|
10
|
-
"displayName": "
|
|
10
|
+
"displayName": "Title",
|
|
11
11
|
"type": "TEXT",
|
|
12
12
|
"required": false,
|
|
13
|
-
"defaultValue": "
|
|
13
|
+
"defaultValue": "Account Activation",
|
|
14
14
|
"groupId": "loading"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "successTitle",
|
|
18
|
-
"displayName": "
|
|
18
|
+
"displayName": "Success Title",
|
|
19
19
|
"type": "TEXT",
|
|
20
20
|
"required": false,
|
|
21
|
-
"defaultValue": "
|
|
21
|
+
"defaultValue": "Your Account Has Been Activated!",
|
|
22
22
|
"groupId": "success"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "successMessage",
|
|
26
|
-
"displayName": "
|
|
26
|
+
"displayName": "Success Message",
|
|
27
27
|
"type": "TEXT",
|
|
28
28
|
"required": false,
|
|
29
|
-
"defaultValue": "
|
|
29
|
+
"defaultValue": "Your account has been successfully activated. You can sign in and start shopping.",
|
|
30
30
|
"groupId": "success"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "errorTitle",
|
|
34
|
-
"displayName": "
|
|
34
|
+
"displayName": "Error Title",
|
|
35
35
|
"type": "TEXT",
|
|
36
36
|
"required": false,
|
|
37
|
-
"defaultValue": "
|
|
37
|
+
"defaultValue": "Activation Failed",
|
|
38
38
|
"groupId": "error"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"name": "errorMessage",
|
|
42
|
-
"displayName": "
|
|
42
|
+
"displayName": "Error Message",
|
|
43
43
|
"type": "TEXT",
|
|
44
44
|
"required": false,
|
|
45
|
-
"defaultValue": "
|
|
45
|
+
"defaultValue": "Your activation link may be invalid or expired.",
|
|
46
46
|
"groupId": "error"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"name": "loadingMessage",
|
|
50
|
-
"displayName": "
|
|
50
|
+
"displayName": "Loading Message",
|
|
51
51
|
"type": "TEXT",
|
|
52
52
|
"required": false,
|
|
53
|
-
"defaultValue": "
|
|
53
|
+
"defaultValue": "Activating your account...",
|
|
54
54
|
"groupId": "loading"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"name": "loginButtonText",
|
|
58
|
-
"displayName": "
|
|
58
|
+
"displayName": "Login Button Text",
|
|
59
59
|
"type": "TEXT",
|
|
60
60
|
"required": false,
|
|
61
|
-
"defaultValue": "
|
|
61
|
+
"defaultValue": "Sign In",
|
|
62
62
|
"groupId": "success"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"name": "resendTitle",
|
|
66
|
-
"displayName": "
|
|
66
|
+
"displayName": "Resend Title",
|
|
67
67
|
"type": "TEXT",
|
|
68
68
|
"required": false,
|
|
69
|
-
"defaultValue": "
|
|
69
|
+
"defaultValue": "Resend Activation Email",
|
|
70
70
|
"groupId": "resend"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"name": "emailLabel",
|
|
74
|
-
"displayName": "
|
|
74
|
+
"displayName": "Email Label",
|
|
75
75
|
"type": "TEXT",
|
|
76
76
|
"required": false,
|
|
77
|
-
"defaultValue": "
|
|
77
|
+
"defaultValue": "Email",
|
|
78
78
|
"groupId": "resend"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"name": "emailPlaceholder",
|
|
82
|
-
"displayName": "
|
|
82
|
+
"displayName": "Email Placeholder",
|
|
83
83
|
"type": "TEXT",
|
|
84
84
|
"required": false,
|
|
85
|
-
"defaultValue": "
|
|
85
|
+
"defaultValue": "example@email.com",
|
|
86
86
|
"groupId": "resend"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"name": "resendButtonText",
|
|
90
|
-
"displayName": "
|
|
90
|
+
"displayName": "Resend Button Text",
|
|
91
91
|
"type": "TEXT",
|
|
92
92
|
"required": false,
|
|
93
|
-
"defaultValue": "
|
|
93
|
+
"defaultValue": "Resend",
|
|
94
94
|
"groupId": "resend"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"name": "resendingButtonText",
|
|
98
|
-
"displayName": "
|
|
98
|
+
"displayName": "Sending Button Text",
|
|
99
99
|
"type": "TEXT",
|
|
100
100
|
"required": false,
|
|
101
|
-
"defaultValue": "
|
|
101
|
+
"defaultValue": "Sending...",
|
|
102
102
|
"groupId": "resend"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"name": "resendSuccessMessage",
|
|
106
|
-
"displayName": "
|
|
106
|
+
"displayName": "Resend Success Message",
|
|
107
107
|
"type": "TEXT",
|
|
108
108
|
"required": false,
|
|
109
|
-
"defaultValue": "
|
|
109
|
+
"defaultValue": "Activation email has been resent. Please check your inbox.",
|
|
110
110
|
"groupId": "resend"
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"name": "resendErrorMessage",
|
|
114
|
-
"displayName": "
|
|
114
|
+
"displayName": "Resend Error Message",
|
|
115
115
|
"type": "TEXT",
|
|
116
116
|
"required": false,
|
|
117
|
-
"defaultValue": "
|
|
117
|
+
"defaultValue": "Failed to send email. Please try again.",
|
|
118
118
|
"groupId": "resend"
|
|
119
119
|
},
|
|
120
120
|
{
|
|
@@ -128,23 +128,23 @@
|
|
|
128
128
|
"propGroups": [
|
|
129
129
|
{
|
|
130
130
|
"id": "loading",
|
|
131
|
-
"name": "
|
|
132
|
-
"description": "
|
|
131
|
+
"name": "Loading",
|
|
132
|
+
"description": "Title and message texts shown during email verification process"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"id": "success",
|
|
136
|
-
"name": "
|
|
137
|
-
"description": "
|
|
136
|
+
"name": "Success",
|
|
137
|
+
"description": "Title, message, and login button texts shown when verification is successful"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"id": "error",
|
|
141
|
-
"name": "
|
|
142
|
-
"description": "
|
|
141
|
+
"name": "Error",
|
|
142
|
+
"description": "Title and error message texts shown when verification fails"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
"id": "resend",
|
|
146
|
-
"name": "
|
|
147
|
-
"description": "
|
|
146
|
+
"name": "Resend",
|
|
147
|
+
"description": "Form field, button, and status message texts for resending the verification email"
|
|
148
148
|
}
|
|
149
149
|
]
|
|
150
150
|
}
|