@ikas/code-components-mcp 0.115.0 → 0.117.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 +1 -1
- package/data/storefront-types.json +1 -1
- package/package.json +1 -1
|
@@ -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) {
|
|
@@ -7,23 +7,23 @@
|
|
|
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": "Page Not Found",
|
|
14
14
|
"groupId": "content"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "description",
|
|
18
|
-
"displayName": "
|
|
18
|
+
"displayName": "Description",
|
|
19
19
|
"type": "TEXT",
|
|
20
20
|
"required": false,
|
|
21
|
-
"defaultValue": "
|
|
21
|
+
"defaultValue": "The page you're looking for doesn't exist or may have been moved.",
|
|
22
22
|
"groupId": "content"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "button",
|
|
26
|
-
"displayName": "
|
|
26
|
+
"displayName": "Button",
|
|
27
27
|
"type": "LINK",
|
|
28
28
|
"required": false,
|
|
29
29
|
"groupId": "action"
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"propGroups": [
|
|
40
40
|
{
|
|
41
41
|
"id": "content",
|
|
42
|
-
"name": "
|
|
43
|
-
"description": "
|
|
42
|
+
"name": "Content",
|
|
43
|
+
"description": "Page title and description text settings"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"id": "action",
|
|
47
|
-
"name": "
|
|
48
|
-
"description": "
|
|
47
|
+
"name": "Redirect",
|
|
48
|
+
"description": "Button settings that redirect the user"
|
|
49
49
|
}
|
|
50
50
|
]
|
|
51
51
|
}
|
|
@@ -7,37 +7,37 @@
|
|
|
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": "addToCartButtonText",
|
|
16
|
-
"displayName": "
|
|
16
|
+
"displayName": "Add to Cart Button Text",
|
|
17
17
|
"type": "TEXT",
|
|
18
18
|
"required": false,
|
|
19
|
-
"defaultValue": "
|
|
19
|
+
"defaultValue": "Add to Cart",
|
|
20
20
|
"groupId": "texts"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "addingToCartText",
|
|
24
|
-
"displayName": "
|
|
24
|
+
"displayName": "Adding to Cart Text",
|
|
25
25
|
"type": "TEXT",
|
|
26
26
|
"required": false,
|
|
27
|
-
"defaultValue": "
|
|
27
|
+
"defaultValue": "Adding...",
|
|
28
28
|
"groupId": "texts"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "outOfStockText",
|
|
32
|
-
"displayName": "
|
|
32
|
+
"displayName": "Sold Out Text",
|
|
33
33
|
"type": "TEXT",
|
|
34
34
|
"required": false,
|
|
35
|
-
"defaultValue": "
|
|
35
|
+
"defaultValue": "Sold Out",
|
|
36
36
|
"groupId": "texts"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "mobileMarginTop",
|
|
40
|
-
"displayName": "
|
|
40
|
+
"displayName": "Top Spacing",
|
|
41
41
|
"type": "TYPE",
|
|
42
42
|
"required": false,
|
|
43
43
|
"groupId": "mobile",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "mobileMarginBottom",
|
|
48
|
-
"displayName": "
|
|
48
|
+
"displayName": "Bottom Spacing",
|
|
49
49
|
"type": "TYPE",
|
|
50
50
|
"required": false,
|
|
51
51
|
"groupId": "mobile",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"name": "desktopMarginTop",
|
|
56
|
-
"displayName": "
|
|
56
|
+
"displayName": "Top Spacing",
|
|
57
57
|
"type": "TYPE",
|
|
58
58
|
"required": false,
|
|
59
59
|
"groupId": "desktop",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"name": "desktopMarginBottom",
|
|
64
|
-
"displayName": "
|
|
64
|
+
"displayName": "Bottom Spacing",
|
|
65
65
|
"type": "TYPE",
|
|
66
66
|
"required": false,
|
|
67
67
|
"groupId": "desktop",
|
|
@@ -69,71 +69,71 @@
|
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"name": "hideQuantityInput",
|
|
72
|
-
"displayName": "
|
|
72
|
+
"displayName": "Hide Quantity Selector",
|
|
73
73
|
"type": "BOOLEAN",
|
|
74
74
|
"required": false,
|
|
75
75
|
"groupId": "settings"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"name": "errorMessage",
|
|
79
|
-
"displayName": "
|
|
79
|
+
"displayName": "Error Message",
|
|
80
80
|
"type": "TEXT",
|
|
81
81
|
"required": false,
|
|
82
|
-
"defaultValue": "
|
|
82
|
+
"defaultValue": "Failed to add product to cart",
|
|
83
83
|
"groupId": "texts"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"name": "optionSetErrorMessage",
|
|
87
|
-
"displayName": "
|
|
87
|
+
"displayName": "Option Set Error Message",
|
|
88
88
|
"type": "TEXT",
|
|
89
89
|
"required": false,
|
|
90
|
-
"defaultValue": "
|
|
90
|
+
"defaultValue": "Please fill in the required options",
|
|
91
91
|
"groupId": "texts"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"name": "updateCartButtonText",
|
|
95
|
-
"displayName": "
|
|
95
|
+
"displayName": "Update Cart Button Text",
|
|
96
96
|
"type": "TEXT",
|
|
97
97
|
"required": false,
|
|
98
|
-
"defaultValue": "
|
|
98
|
+
"defaultValue": "Update",
|
|
99
99
|
"groupId": "texts"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"name": "updatingCartText",
|
|
103
|
-
"displayName": "
|
|
103
|
+
"displayName": "Updating Cart Text",
|
|
104
104
|
"type": "TEXT",
|
|
105
105
|
"required": false,
|
|
106
|
-
"defaultValue": "
|
|
106
|
+
"defaultValue": "Updating...",
|
|
107
107
|
"groupId": "texts"
|
|
108
108
|
}
|
|
109
109
|
],
|
|
110
110
|
"propGroups": [
|
|
111
111
|
{
|
|
112
112
|
"id": "appearance",
|
|
113
|
-
"name": "
|
|
113
|
+
"name": "Appearance Settings",
|
|
114
114
|
"children": [
|
|
115
115
|
{
|
|
116
116
|
"id": "mobile",
|
|
117
|
-
"name": "
|
|
118
|
-
"description": "
|
|
117
|
+
"name": "Mobile View",
|
|
118
|
+
"description": "Margin settings for mobile devices"
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
"id": "desktop",
|
|
122
|
-
"name": "
|
|
123
|
-
"description": "
|
|
122
|
+
"name": "Desktop View",
|
|
123
|
+
"description": "Margin settings for desktop devices"
|
|
124
124
|
}
|
|
125
125
|
],
|
|
126
|
-
"description": "
|
|
126
|
+
"description": "Component mobile and desktop view settings"
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"id": "texts",
|
|
130
|
-
"name": "
|
|
131
|
-
"description": "
|
|
130
|
+
"name": "Texts",
|
|
131
|
+
"description": "Button and status texts"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"id": "settings",
|
|
135
|
-
"name": "
|
|
136
|
-
"description": "
|
|
135
|
+
"name": "Settings",
|
|
136
|
+
"description": "Settings that control component behavior"
|
|
137
137
|
}
|
|
138
138
|
]
|
|
139
139
|
}
|
package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/index.tsx
CHANGED
|
@@ -21,13 +21,13 @@ import { showToast } from "../../utils/toast";
|
|
|
21
21
|
|
|
22
22
|
export function ProductDetailAddToCart({
|
|
23
23
|
product,
|
|
24
|
-
addToCartButtonText = "
|
|
25
|
-
addingToCartText = "
|
|
26
|
-
outOfStockText = "
|
|
27
|
-
errorMessage = "
|
|
28
|
-
optionSetErrorMessage = "
|
|
29
|
-
updateCartButtonText = "
|
|
30
|
-
updatingCartText = "
|
|
24
|
+
addToCartButtonText = "Add to Cart",
|
|
25
|
+
addingToCartText = "Adding...",
|
|
26
|
+
outOfStockText = "Sold Out",
|
|
27
|
+
errorMessage = "Failed to add product to cart",
|
|
28
|
+
optionSetErrorMessage = "Please fill in the required options",
|
|
29
|
+
updateCartButtonText = "Update",
|
|
30
|
+
updatingCartText = "Updating...",
|
|
31
31
|
hideQuantityInput = false,
|
|
32
32
|
mobileMarginTop,
|
|
33
33
|
mobileMarginBottom,
|
|
@@ -7,77 +7,77 @@
|
|
|
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": "productContentTitle",
|
|
16
|
-
"displayName": "
|
|
16
|
+
"displayName": "Product Contents Title",
|
|
17
17
|
"type": "TEXT",
|
|
18
18
|
"required": false,
|
|
19
|
-
"defaultValue": "
|
|
19
|
+
"defaultValue": "Product Contents",
|
|
20
20
|
"groupId": "texts"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "partsLabel",
|
|
24
|
-
"displayName": "
|
|
24
|
+
"displayName": "Parts Label",
|
|
25
25
|
"type": "TEXT",
|
|
26
26
|
"required": false,
|
|
27
|
-
"defaultValue": "
|
|
27
|
+
"defaultValue": "Parts",
|
|
28
28
|
"groupId": "texts"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "unitPriceLabel",
|
|
32
|
-
"displayName": "
|
|
32
|
+
"displayName": "Unit Price Label",
|
|
33
33
|
"type": "TEXT",
|
|
34
34
|
"required": false,
|
|
35
|
-
"defaultValue": "
|
|
35
|
+
"defaultValue": "Unit Price",
|
|
36
36
|
"groupId": "texts"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "quantityLabel",
|
|
40
|
-
"displayName": "
|
|
40
|
+
"displayName": "Quantity Label",
|
|
41
41
|
"type": "TEXT",
|
|
42
42
|
"required": false,
|
|
43
|
-
"defaultValue": "
|
|
43
|
+
"defaultValue": "Quantity",
|
|
44
44
|
"groupId": "texts"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "featuresLabel",
|
|
48
|
-
"displayName": "
|
|
48
|
+
"displayName": "Specifications Label",
|
|
49
49
|
"type": "TEXT",
|
|
50
50
|
"required": false,
|
|
51
|
-
"defaultValue": "
|
|
51
|
+
"defaultValue": "Specifications",
|
|
52
52
|
"groupId": "texts"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"name": "totalPriceLabel",
|
|
56
|
-
"displayName": "
|
|
56
|
+
"displayName": "Total Price Label",
|
|
57
57
|
"type": "TEXT",
|
|
58
58
|
"required": false,
|
|
59
|
-
"defaultValue": "
|
|
59
|
+
"defaultValue": "Total Price",
|
|
60
60
|
"groupId": "texts"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"name": "outOfStockText",
|
|
64
|
-
"displayName": "
|
|
64
|
+
"displayName": "Out of Stock Text",
|
|
65
65
|
"type": "TEXT",
|
|
66
66
|
"required": false,
|
|
67
|
-
"defaultValue": "
|
|
67
|
+
"defaultValue": "Out of Stock",
|
|
68
68
|
"groupId": "texts"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"name": "addProductItemText",
|
|
72
|
-
"displayName": "
|
|
72
|
+
"displayName": "Add Product Text",
|
|
73
73
|
"type": "TEXT",
|
|
74
74
|
"required": false,
|
|
75
|
-
"defaultValue": "
|
|
75
|
+
"defaultValue": "Add Product",
|
|
76
76
|
"groupId": "texts"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"name": "mobileMarginTop",
|
|
80
|
-
"displayName": "
|
|
80
|
+
"displayName": "Top Spacing",
|
|
81
81
|
"type": "TYPE",
|
|
82
82
|
"required": false,
|
|
83
83
|
"groupId": "mobile",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"name": "mobileMarginBottom",
|
|
88
|
-
"displayName": "
|
|
88
|
+
"displayName": "Bottom Spacing",
|
|
89
89
|
"type": "TYPE",
|
|
90
90
|
"required": false,
|
|
91
91
|
"groupId": "mobile",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"name": "desktopMarginTop",
|
|
96
|
-
"displayName": "
|
|
96
|
+
"displayName": "Top Spacing",
|
|
97
97
|
"type": "TYPE",
|
|
98
98
|
"required": false,
|
|
99
99
|
"groupId": "desktop",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"name": "desktopMarginBottom",
|
|
104
|
-
"displayName": "
|
|
104
|
+
"displayName": "Bottom Spacing",
|
|
105
105
|
"type": "TYPE",
|
|
106
106
|
"required": false,
|
|
107
107
|
"groupId": "desktop",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"name": "aspectRatio",
|
|
112
|
-
"displayName": "
|
|
112
|
+
"displayName": "Aspect Ratio",
|
|
113
113
|
"type": "ENUM",
|
|
114
114
|
"required": false,
|
|
115
115
|
"groupId": "appearance",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"name": "objectFit",
|
|
120
|
-
"displayName": "
|
|
120
|
+
"displayName": "Image Fit",
|
|
121
121
|
"type": "ENUM",
|
|
122
122
|
"required": false,
|
|
123
123
|
"groupId": "appearance",
|
|
@@ -127,30 +127,30 @@
|
|
|
127
127
|
"propGroups": [
|
|
128
128
|
{
|
|
129
129
|
"id": "texts",
|
|
130
|
-
"name": "
|
|
131
|
-
"description": "
|
|
130
|
+
"name": "Texts",
|
|
131
|
+
"description": "Text labels displayed in the component"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"id": "margins",
|
|
135
|
-
"name": "
|
|
135
|
+
"name": "Margins",
|
|
136
136
|
"children": [
|
|
137
137
|
{
|
|
138
138
|
"id": "mobile",
|
|
139
|
-
"name": "
|
|
140
|
-
"description": "
|
|
139
|
+
"name": "Mobile View",
|
|
140
|
+
"description": "Margin settings for mobile devices"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"id": "desktop",
|
|
144
|
-
"name": "
|
|
145
|
-
"description": "
|
|
144
|
+
"name": "Desktop View",
|
|
145
|
+
"description": "Margin settings for desktop devices"
|
|
146
146
|
}
|
|
147
147
|
],
|
|
148
|
-
"description": "
|
|
148
|
+
"description": "Component mobile and desktop margin settings"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
"id": "appearance",
|
|
152
|
-
"name": "
|
|
153
|
-
"description": "
|
|
152
|
+
"name": "Appearance",
|
|
153
|
+
"description": "Image ratio and fit settings"
|
|
154
154
|
}
|
|
155
155
|
]
|
|
156
156
|
}
|
|
@@ -12,14 +12,14 @@ export function ProductDetailBundleFurniture({
|
|
|
12
12
|
mobileMarginBottom,
|
|
13
13
|
desktopMarginTop,
|
|
14
14
|
desktopMarginBottom,
|
|
15
|
-
productContentTitle = "
|
|
16
|
-
partsLabel = "
|
|
17
|
-
unitPriceLabel = "
|
|
18
|
-
quantityLabel = "
|
|
19
|
-
featuresLabel = "
|
|
20
|
-
totalPriceLabel = "
|
|
21
|
-
outOfStockText = "
|
|
22
|
-
addProductItemText = "
|
|
15
|
+
productContentTitle = "Product Contents",
|
|
16
|
+
partsLabel = "Parts",
|
|
17
|
+
unitPriceLabel = "Unit Price",
|
|
18
|
+
quantityLabel = "Quantity",
|
|
19
|
+
featuresLabel = "Specifications",
|
|
20
|
+
totalPriceLabel = "Total Price",
|
|
21
|
+
outOfStockText = "Out of Stock",
|
|
22
|
+
addProductItemText = "Add Product",
|
|
23
23
|
aspectRatio,
|
|
24
24
|
objectFit,
|
|
25
25
|
}: Props) {
|
|
@@ -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,45 +45,45 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"name": "isBundleFurniture",
|
|
48
|
-
"displayName": "
|
|
48
|
+
"displayName": "Furniture Bundle Mode",
|
|
49
49
|
"type": "BOOLEAN",
|
|
50
50
|
"required": false,
|
|
51
51
|
"groupId": "settings"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"name": "bundleProductWithoutLink",
|
|
55
|
-
"displayName": "
|
|
55
|
+
"displayName": "Disable Product Link",
|
|
56
56
|
"type": "BOOLEAN",
|
|
57
57
|
"required": false,
|
|
58
58
|
"groupId": "settings"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"name": "quantityLabel",
|
|
62
|
-
"displayName": "
|
|
62
|
+
"displayName": "Quantity Label",
|
|
63
63
|
"type": "TEXT",
|
|
64
64
|
"required": false,
|
|
65
|
-
"defaultValue": "
|
|
65
|
+
"defaultValue": "Quantity",
|
|
66
66
|
"groupId": "texts"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"name": "outOfStockText",
|
|
70
|
-
"displayName": "
|
|
70
|
+
"displayName": "Out of Stock Text",
|
|
71
71
|
"type": "TEXT",
|
|
72
72
|
"required": false,
|
|
73
|
-
"defaultValue": "
|
|
73
|
+
"defaultValue": "Out of Stock",
|
|
74
74
|
"groupId": "texts"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"name": "productContentTitle",
|
|
78
|
-
"displayName": "
|
|
78
|
+
"displayName": "Set Contents Title",
|
|
79
79
|
"type": "TEXT",
|
|
80
80
|
"required": false,
|
|
81
|
-
"defaultValue": "
|
|
81
|
+
"defaultValue": "Set Contents",
|
|
82
82
|
"groupId": "texts"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"name": "aspectRatio",
|
|
86
|
-
"displayName": "
|
|
86
|
+
"displayName": "Aspect Ratio",
|
|
87
87
|
"type": "ENUM",
|
|
88
88
|
"required": false,
|
|
89
89
|
"groupId": "appearance",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"name": "objectFit",
|
|
94
|
-
"displayName": "
|
|
94
|
+
"displayName": "Image Fit",
|
|
95
95
|
"type": "ENUM",
|
|
96
96
|
"required": false,
|
|
97
97
|
"groupId": "appearance",
|
|
@@ -101,30 +101,30 @@
|
|
|
101
101
|
"propGroups": [
|
|
102
102
|
{
|
|
103
103
|
"id": "appearance",
|
|
104
|
-
"name": "
|
|
104
|
+
"name": "Appearance Settings",
|
|
105
105
|
"children": [
|
|
106
106
|
{
|
|
107
107
|
"id": "mobile",
|
|
108
|
-
"name": "
|
|
109
|
-
"description": "
|
|
108
|
+
"name": "Mobile View",
|
|
109
|
+
"description": "Margin settings for mobile devices"
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
"id": "desktop",
|
|
113
|
-
"name": "
|
|
114
|
-
"description": "
|
|
113
|
+
"name": "Desktop View",
|
|
114
|
+
"description": "Margin settings for desktop devices"
|
|
115
115
|
}
|
|
116
116
|
],
|
|
117
|
-
"description": "
|
|
117
|
+
"description": "Component mobile and desktop view settings"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"id": "settings",
|
|
121
|
-
"name": "
|
|
122
|
-
"description": "
|
|
121
|
+
"name": "Settings",
|
|
122
|
+
"description": "Settings that control bundle behavior"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"id": "texts",
|
|
126
|
-
"name": "
|
|
127
|
-
"description": "
|
|
126
|
+
"name": "Texts",
|
|
127
|
+
"description": "Text labels displayed in the component"
|
|
128
128
|
}
|
|
129
129
|
]
|
|
130
130
|
}
|
package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/index.tsx
CHANGED
|
@@ -41,9 +41,9 @@ export function ProductDetailBundleProduct({
|
|
|
41
41
|
desktopMarginBottom,
|
|
42
42
|
isBundleFurniture,
|
|
43
43
|
bundleProductWithoutLink,
|
|
44
|
-
quantityLabel = "
|
|
45
|
-
outOfStockText = "
|
|
46
|
-
productContentTitle = "
|
|
44
|
+
quantityLabel = "Quantity",
|
|
45
|
+
outOfStockText = "Out of Stock",
|
|
46
|
+
productContentTitle = "Set Contents",
|
|
47
47
|
aspectRatio,
|
|
48
48
|
objectFit,
|
|
49
49
|
}: Props) {
|