@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,13 +7,13 @@
|
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
9
9
|
"name": "product",
|
|
10
|
-
"displayName": "
|
|
10
|
+
"displayName": "Product",
|
|
11
11
|
"type": "PRODUCT",
|
|
12
12
|
"required": false
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "mobileMarginTop",
|
|
16
|
-
"displayName": "
|
|
16
|
+
"displayName": "Top Spacing",
|
|
17
17
|
"type": "TYPE",
|
|
18
18
|
"required": false,
|
|
19
19
|
"groupId": "mobile",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "mobileMarginBottom",
|
|
24
|
-
"displayName": "
|
|
24
|
+
"displayName": "Bottom Spacing",
|
|
25
25
|
"type": "TYPE",
|
|
26
26
|
"required": false,
|
|
27
27
|
"groupId": "mobile",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "desktopMarginTop",
|
|
32
|
-
"displayName": "
|
|
32
|
+
"displayName": "Top Spacing",
|
|
33
33
|
"type": "TYPE",
|
|
34
34
|
"required": false,
|
|
35
35
|
"groupId": "desktop",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "desktopMarginBottom",
|
|
40
|
-
"displayName": "
|
|
40
|
+
"displayName": "Bottom Spacing",
|
|
41
41
|
"type": "TYPE",
|
|
42
42
|
"required": false,
|
|
43
43
|
"groupId": "desktop",
|
|
@@ -45,22 +45,22 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "title",
|
|
48
|
-
"displayName": "
|
|
48
|
+
"displayName": "Title",
|
|
49
49
|
"type": "TEXT",
|
|
50
50
|
"required": false,
|
|
51
|
-
"defaultValue": "
|
|
51
|
+
"defaultValue": "Product Details",
|
|
52
52
|
"groupId": "texts"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"name": "defaultOpen",
|
|
56
|
-
"displayName": "
|
|
56
|
+
"displayName": "Description Open by Default",
|
|
57
57
|
"type": "BOOLEAN",
|
|
58
58
|
"required": false,
|
|
59
59
|
"groupId": "settings"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"name": "components",
|
|
63
|
-
"displayName": "
|
|
63
|
+
"displayName": "Components",
|
|
64
64
|
"type": "COMPONENT_LIST",
|
|
65
65
|
"required": false,
|
|
66
66
|
"filteredComponentIds": [
|
|
@@ -71,30 +71,30 @@
|
|
|
71
71
|
"propGroups": [
|
|
72
72
|
{
|
|
73
73
|
"id": "appearance",
|
|
74
|
-
"name": "
|
|
74
|
+
"name": "Appearance Settings",
|
|
75
75
|
"children": [
|
|
76
76
|
{
|
|
77
77
|
"id": "mobile",
|
|
78
|
-
"name": "
|
|
79
|
-
"description": "
|
|
78
|
+
"name": "Mobile View",
|
|
79
|
+
"description": "Margin settings for mobile devices"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
"id": "desktop",
|
|
83
|
-
"name": "
|
|
84
|
-
"description": "
|
|
83
|
+
"name": "Desktop View",
|
|
84
|
+
"description": "Margin settings for desktop devices"
|
|
85
85
|
}
|
|
86
86
|
],
|
|
87
|
-
"description": "
|
|
87
|
+
"description": "Component mobile and desktop view settings"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"id": "texts",
|
|
91
|
-
"name": "
|
|
92
|
-
"description": "
|
|
91
|
+
"name": "Texts",
|
|
92
|
+
"description": "Text settings displayed in the component"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"id": "settings",
|
|
96
|
-
"name": "
|
|
97
|
-
"description": "
|
|
96
|
+
"name": "Settings",
|
|
97
|
+
"description": "Component behavior settings"
|
|
98
98
|
}
|
|
99
99
|
]
|
|
100
100
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
9
9
|
"name": "mobileMarginTop",
|
|
10
|
-
"displayName": "
|
|
10
|
+
"displayName": "Top Spacing",
|
|
11
11
|
"type": "TYPE",
|
|
12
12
|
"required": false,
|
|
13
13
|
"groupId": "mobile",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "mobileMarginBottom",
|
|
18
|
-
"displayName": "
|
|
18
|
+
"displayName": "Bottom Spacing",
|
|
19
19
|
"type": "TYPE",
|
|
20
20
|
"required": false,
|
|
21
21
|
"groupId": "mobile",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "desktopMarginTop",
|
|
26
|
-
"displayName": "
|
|
26
|
+
"displayName": "Top Spacing",
|
|
27
27
|
"type": "TYPE",
|
|
28
28
|
"required": false,
|
|
29
29
|
"groupId": "desktop",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "desktopMarginBottom",
|
|
34
|
-
"displayName": "
|
|
34
|
+
"displayName": "Bottom Spacing",
|
|
35
35
|
"type": "TYPE",
|
|
36
36
|
"required": false,
|
|
37
37
|
"groupId": "desktop",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"name": "components",
|
|
42
|
-
"displayName": "
|
|
42
|
+
"displayName": "Specifications",
|
|
43
43
|
"type": "COMPONENT_LIST",
|
|
44
44
|
"required": false,
|
|
45
45
|
"filteredComponentIds": [
|
|
@@ -50,20 +50,20 @@
|
|
|
50
50
|
"propGroups": [
|
|
51
51
|
{
|
|
52
52
|
"id": "appearance",
|
|
53
|
-
"name": "
|
|
53
|
+
"name": "Appearance Settings",
|
|
54
54
|
"children": [
|
|
55
55
|
{
|
|
56
56
|
"id": "mobile",
|
|
57
|
-
"name": "
|
|
58
|
-
"description": "
|
|
57
|
+
"name": "Mobile View",
|
|
58
|
+
"description": "Margin settings for mobile devices"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"id": "desktop",
|
|
62
|
-
"name": "
|
|
63
|
-
"description": "
|
|
62
|
+
"name": "Desktop View",
|
|
63
|
+
"description": "Margin settings for desktop devices"
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
|
-
"description": "
|
|
66
|
+
"description": "Component mobile and desktop view settings"
|
|
67
67
|
}
|
|
68
68
|
]
|
|
69
69
|
}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
9
9
|
"name": "product",
|
|
10
|
-
"displayName": "
|
|
10
|
+
"displayName": "Product",
|
|
11
11
|
"type": "PRODUCT",
|
|
12
12
|
"required": false
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "mobileMarginTop",
|
|
16
|
-
"displayName": "
|
|
16
|
+
"displayName": "Top Spacing",
|
|
17
17
|
"type": "TYPE",
|
|
18
18
|
"required": false,
|
|
19
19
|
"groupId": "mobile",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "mobileMarginBottom",
|
|
24
|
-
"displayName": "
|
|
24
|
+
"displayName": "Bottom Spacing",
|
|
25
25
|
"type": "TYPE",
|
|
26
26
|
"required": false,
|
|
27
27
|
"groupId": "mobile",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "desktopMarginTop",
|
|
32
|
-
"displayName": "
|
|
32
|
+
"displayName": "Top Spacing",
|
|
33
33
|
"type": "TYPE",
|
|
34
34
|
"required": false,
|
|
35
35
|
"groupId": "desktop",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "desktopMarginBottom",
|
|
40
|
-
"displayName": "
|
|
40
|
+
"displayName": "Bottom Spacing",
|
|
41
41
|
"type": "TYPE",
|
|
42
42
|
"required": false,
|
|
43
43
|
"groupId": "desktop",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "hideFavoriteButton",
|
|
48
|
-
"displayName": "
|
|
48
|
+
"displayName": "Hide Favorite Button",
|
|
49
49
|
"type": "BOOLEAN",
|
|
50
50
|
"required": false
|
|
51
51
|
}
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
"propGroups": [
|
|
54
54
|
{
|
|
55
55
|
"id": "appearance",
|
|
56
|
-
"name": "
|
|
56
|
+
"name": "Appearance Settings",
|
|
57
57
|
"children": [
|
|
58
58
|
{
|
|
59
59
|
"id": "mobile",
|
|
60
|
-
"name": "
|
|
61
|
-
"description": "
|
|
60
|
+
"name": "Mobile View",
|
|
61
|
+
"description": "Margin settings for mobile devices"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"id": "desktop",
|
|
65
|
-
"name": "
|
|
66
|
-
"description": "
|
|
65
|
+
"name": "Desktop View",
|
|
66
|
+
"description": "Margin settings for desktop devices"
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
|
-
"description": "
|
|
69
|
+
"description": "Component mobile and desktop view settings"
|
|
70
70
|
}
|
|
71
71
|
]
|
|
72
72
|
}
|
|
@@ -30,8 +30,8 @@ interface Props {
|
|
|
30
30
|
|
|
31
31
|
const OfferCard = observer(function OfferCard({
|
|
32
32
|
offer,
|
|
33
|
-
outOfStockText = "
|
|
34
|
-
addedToCartBannerText = "
|
|
33
|
+
outOfStockText = "Sold Out",
|
|
34
|
+
addedToCartBannerText = "Added to cart",
|
|
35
35
|
imageAspectRatio,
|
|
36
36
|
imageObjectFit,
|
|
37
37
|
}: Props) {
|
|
@@ -7,68 +7,68 @@
|
|
|
7
7
|
"props": [
|
|
8
8
|
{
|
|
9
9
|
"name": "product",
|
|
10
|
-
"displayName": "
|
|
10
|
+
"displayName": "Product",
|
|
11
11
|
"type": "PRODUCT",
|
|
12
12
|
"required": false
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "preselectOffers",
|
|
16
|
-
"displayName": "
|
|
16
|
+
"displayName": "Auto Select Offers",
|
|
17
17
|
"type": "BOOLEAN",
|
|
18
18
|
"required": false,
|
|
19
19
|
"groupId": "layout"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"name": "addToCartTogetherText",
|
|
23
|
-
"displayName": "
|
|
23
|
+
"displayName": "Add Together to Cart Text",
|
|
24
24
|
"type": "TEXT",
|
|
25
25
|
"required": false,
|
|
26
|
-
"defaultValue": "
|
|
26
|
+
"defaultValue": "Add Together to Cart",
|
|
27
27
|
"groupId": "texts"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "addingToCartText",
|
|
31
|
-
"displayName": "
|
|
31
|
+
"displayName": "Adding Text",
|
|
32
32
|
"type": "TEXT",
|
|
33
33
|
"required": false,
|
|
34
|
-
"defaultValue": "
|
|
34
|
+
"defaultValue": "Adding...",
|
|
35
35
|
"groupId": "texts"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "offerInfoText",
|
|
39
|
-
"displayName": "
|
|
39
|
+
"displayName": "Offer Info Text",
|
|
40
40
|
"type": "TEXT",
|
|
41
41
|
"required": false,
|
|
42
|
-
"defaultValue": "
|
|
42
|
+
"defaultValue": "Add selected products together to your cart and enjoy the discount.",
|
|
43
43
|
"groupId": "texts"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"name": "totalText",
|
|
47
|
-
"displayName": "
|
|
47
|
+
"displayName": "Total Text",
|
|
48
48
|
"type": "TEXT",
|
|
49
49
|
"required": false,
|
|
50
|
-
"defaultValue": "
|
|
50
|
+
"defaultValue": "Total",
|
|
51
51
|
"groupId": "texts"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"name": "advantageousTotalText",
|
|
55
|
-
"displayName": "
|
|
55
|
+
"displayName": "Discounted Total Text",
|
|
56
56
|
"type": "TEXT",
|
|
57
57
|
"required": false,
|
|
58
|
-
"defaultValue": "
|
|
58
|
+
"defaultValue": "Discounted Total",
|
|
59
59
|
"groupId": "texts"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"name": "outOfStockText",
|
|
63
|
-
"displayName": "
|
|
63
|
+
"displayName": "Sold Out Text",
|
|
64
64
|
"type": "TEXT",
|
|
65
65
|
"required": false,
|
|
66
|
-
"defaultValue": "
|
|
66
|
+
"defaultValue": "Sold Out",
|
|
67
67
|
"groupId": "texts"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
"name": "imageAspectRatio",
|
|
71
|
-
"displayName": "
|
|
71
|
+
"displayName": "Image Aspect Ratio",
|
|
72
72
|
"type": "ENUM",
|
|
73
73
|
"required": false,
|
|
74
74
|
"groupId": "image",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"name": "imageObjectFit",
|
|
79
|
-
"displayName": "
|
|
79
|
+
"displayName": "Image Fit",
|
|
80
80
|
"type": "ENUM",
|
|
81
81
|
"required": false,
|
|
82
82
|
"groupId": "image",
|
|
@@ -84,22 +84,22 @@
|
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"name": "addedToCartBannerText",
|
|
87
|
-
"displayName": "
|
|
87
|
+
"displayName": "Added to Cart Text",
|
|
88
88
|
"type": "TEXT",
|
|
89
89
|
"required": false,
|
|
90
|
-
"defaultValue": "
|
|
90
|
+
"defaultValue": "Added to cart",
|
|
91
91
|
"groupId": "texts"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"name": "compactView",
|
|
95
|
-
"displayName": "
|
|
95
|
+
"displayName": "Compact View",
|
|
96
96
|
"type": "BOOLEAN",
|
|
97
97
|
"required": false,
|
|
98
98
|
"groupId": "layout"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"name": "mobileMarginTop",
|
|
102
|
-
"displayName": "
|
|
102
|
+
"displayName": "Top Spacing",
|
|
103
103
|
"type": "TYPE",
|
|
104
104
|
"required": false,
|
|
105
105
|
"groupId": "mobile",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
"name": "mobileMarginBottom",
|
|
110
|
-
"displayName": "
|
|
110
|
+
"displayName": "Bottom Spacing",
|
|
111
111
|
"type": "TYPE",
|
|
112
112
|
"required": false,
|
|
113
113
|
"groupId": "mobile",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"name": "desktopMarginTop",
|
|
118
|
-
"displayName": "
|
|
118
|
+
"displayName": "Top Spacing",
|
|
119
119
|
"type": "TYPE",
|
|
120
120
|
"required": false,
|
|
121
121
|
"groupId": "desktop",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"name": "desktopMarginBottom",
|
|
126
|
-
"displayName": "
|
|
126
|
+
"displayName": "Bottom Spacing",
|
|
127
127
|
"type": "TYPE",
|
|
128
128
|
"required": false,
|
|
129
129
|
"groupId": "desktop",
|
|
@@ -131,51 +131,51 @@
|
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"name": "errorMessage",
|
|
134
|
-
"displayName": "
|
|
134
|
+
"displayName": "Error Message",
|
|
135
135
|
"type": "TEXT",
|
|
136
136
|
"required": false,
|
|
137
|
-
"defaultValue": "
|
|
137
|
+
"defaultValue": "Failed to add product to cart",
|
|
138
138
|
"groupId": "texts"
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"name": "optionSetErrorMessage",
|
|
142
|
-
"displayName": "
|
|
142
|
+
"displayName": "Option Set Error Message",
|
|
143
143
|
"type": "TEXT",
|
|
144
144
|
"required": false,
|
|
145
|
-
"defaultValue": "
|
|
145
|
+
"defaultValue": "Please fill in the required options",
|
|
146
146
|
"groupId": "texts"
|
|
147
147
|
}
|
|
148
148
|
],
|
|
149
149
|
"propGroups": [
|
|
150
150
|
{
|
|
151
151
|
"id": "texts",
|
|
152
|
-
"name": "
|
|
153
|
-
"description": "
|
|
152
|
+
"name": "Texts",
|
|
153
|
+
"description": "All text content visible to the user"
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
"id": "layout",
|
|
157
|
-
"name": "
|
|
158
|
-
"description": "
|
|
157
|
+
"name": "Layout",
|
|
158
|
+
"description": "Component layout and behavior settings"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"id": "image",
|
|
162
|
-
"name": "
|
|
163
|
-
"description": "
|
|
162
|
+
"name": "Image",
|
|
163
|
+
"description": "Image size and fit settings"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"id": "appearance",
|
|
167
|
-
"name": "
|
|
168
|
-
"description": "
|
|
167
|
+
"name": "Appearance Settings",
|
|
168
|
+
"description": "Component mobile and desktop view settings",
|
|
169
169
|
"children": [
|
|
170
170
|
{
|
|
171
171
|
"id": "mobile",
|
|
172
|
-
"name": "
|
|
173
|
-
"description": "
|
|
172
|
+
"name": "Mobile View",
|
|
173
|
+
"description": "Margin settings for mobile devices"
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
"id": "desktop",
|
|
177
|
-
"name": "
|
|
178
|
-
"description": "
|
|
177
|
+
"name": "Desktop View",
|
|
178
|
+
"description": "Margin settings for desktop devices"
|
|
179
179
|
}
|
|
180
180
|
]
|
|
181
181
|
}
|
|
@@ -20,17 +20,17 @@ export function ProductDetailOffer({
|
|
|
20
20
|
product,
|
|
21
21
|
compactView = false,
|
|
22
22
|
preselectOffers = false,
|
|
23
|
-
addToCartTogetherText = "
|
|
24
|
-
addingToCartText = "
|
|
25
|
-
offerInfoText = "
|
|
26
|
-
totalText = "
|
|
27
|
-
advantageousTotalText = "
|
|
28
|
-
outOfStockText = "
|
|
23
|
+
addToCartTogetherText = "Add Together to Cart",
|
|
24
|
+
addingToCartText = "Adding...",
|
|
25
|
+
offerInfoText = "Add selected products together to your cart and enjoy the discount.",
|
|
26
|
+
totalText = "Total",
|
|
27
|
+
advantageousTotalText = "Discounted Total",
|
|
28
|
+
outOfStockText = "Sold Out",
|
|
29
29
|
imageAspectRatio,
|
|
30
30
|
imageObjectFit,
|
|
31
|
-
addedToCartBannerText = "
|
|
32
|
-
errorMessage = "
|
|
33
|
-
optionSetErrorMessage = "
|
|
31
|
+
addedToCartBannerText = "Added to cart",
|
|
32
|
+
errorMessage = "Failed to add product to cart",
|
|
33
|
+
optionSetErrorMessage = "Please fill in the required options",
|
|
34
34
|
mobileMarginTop,
|
|
35
35
|
mobileMarginBottom,
|
|
36
36
|
desktopMarginTop,
|