@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
|
@@ -7,120 +7,120 @@
|
|
|
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": "Sign In",
|
|
14
14
|
"groupId": "content"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "subtitle",
|
|
18
|
-
"displayName": "
|
|
18
|
+
"displayName": "Subtitle",
|
|
19
19
|
"type": "RICH_TEXT",
|
|
20
20
|
"required": false,
|
|
21
|
-
"defaultValue": "<p>
|
|
21
|
+
"defaultValue": "<p>Sign in to your account to track your orders and continue shopping.</p>",
|
|
22
22
|
"groupId": "content"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "emailLabel",
|
|
26
|
-
"displayName": "
|
|
26
|
+
"displayName": "Email Label",
|
|
27
27
|
"type": "TEXT",
|
|
28
28
|
"required": false,
|
|
29
|
-
"defaultValue": "
|
|
29
|
+
"defaultValue": "Email",
|
|
30
30
|
"groupId": "email"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "emailPlaceholder",
|
|
34
|
-
"displayName": "
|
|
34
|
+
"displayName": "Email Placeholder",
|
|
35
35
|
"type": "TEXT",
|
|
36
36
|
"required": false,
|
|
37
|
-
"defaultValue": "
|
|
37
|
+
"defaultValue": "example@email.com",
|
|
38
38
|
"groupId": "email"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"name": "passwordLabel",
|
|
42
|
-
"displayName": "
|
|
42
|
+
"displayName": "Password Label",
|
|
43
43
|
"type": "TEXT",
|
|
44
44
|
"required": false,
|
|
45
|
-
"defaultValue": "
|
|
45
|
+
"defaultValue": "Password",
|
|
46
46
|
"groupId": "password"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"name": "passwordPlaceholder",
|
|
50
|
-
"displayName": "
|
|
50
|
+
"displayName": "Password Placeholder",
|
|
51
51
|
"type": "TEXT",
|
|
52
52
|
"required": false,
|
|
53
|
-
"defaultValue": "
|
|
53
|
+
"defaultValue": "Enter your password",
|
|
54
54
|
"groupId": "password"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"name": "submitButtonText",
|
|
58
|
-
"displayName": "
|
|
58
|
+
"displayName": "Login Button Text",
|
|
59
59
|
"type": "TEXT",
|
|
60
60
|
"required": false,
|
|
61
|
-
"defaultValue": "
|
|
61
|
+
"defaultValue": "Sign In",
|
|
62
62
|
"groupId": "buttons"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"name": "submittingButtonText",
|
|
66
|
-
"displayName": "
|
|
66
|
+
"displayName": "Signing In Text",
|
|
67
67
|
"type": "TEXT",
|
|
68
68
|
"required": false,
|
|
69
|
-
"defaultValue": "
|
|
69
|
+
"defaultValue": "Signing in...",
|
|
70
70
|
"groupId": "buttons"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"name": "forgotPasswordText",
|
|
74
|
-
"displayName": "
|
|
74
|
+
"displayName": "Forgot Password Text",
|
|
75
75
|
"type": "TEXT",
|
|
76
76
|
"required": false,
|
|
77
|
-
"defaultValue": "
|
|
77
|
+
"defaultValue": "Forgot my password",
|
|
78
78
|
"groupId": "buttons"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"name": "createAccountText",
|
|
82
|
-
"displayName": "
|
|
82
|
+
"displayName": "Create Account Text",
|
|
83
83
|
"type": "TEXT",
|
|
84
84
|
"required": false,
|
|
85
|
-
"defaultValue": "
|
|
85
|
+
"defaultValue": "Create new account",
|
|
86
86
|
"groupId": "buttons"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"name": "showGoogleLogin",
|
|
90
|
-
"displayName": "Google
|
|
90
|
+
"displayName": "Google Login",
|
|
91
91
|
"type": "BOOLEAN",
|
|
92
92
|
"required": false,
|
|
93
93
|
"groupId": "google"
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
"name": "googleButtonText",
|
|
97
|
-
"displayName": "Google
|
|
97
|
+
"displayName": "Google Button Text",
|
|
98
98
|
"type": "TEXT",
|
|
99
99
|
"required": false,
|
|
100
|
-
"defaultValue": "
|
|
100
|
+
"defaultValue": "Sign in with Google",
|
|
101
101
|
"groupId": "google"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"name": "showFacebookLogin",
|
|
105
|
-
"displayName": "Facebook
|
|
105
|
+
"displayName": "Facebook Login",
|
|
106
106
|
"type": "BOOLEAN",
|
|
107
107
|
"required": false,
|
|
108
108
|
"groupId": "facebook"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"name": "facebookButtonText",
|
|
112
|
-
"displayName": "Facebook
|
|
112
|
+
"displayName": "Facebook Button Text",
|
|
113
113
|
"type": "TEXT",
|
|
114
114
|
"required": false,
|
|
115
|
-
"defaultValue": "
|
|
115
|
+
"defaultValue": "Sign in with Facebook",
|
|
116
116
|
"groupId": "facebook"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"name": "dividerText",
|
|
120
|
-
"displayName": "
|
|
120
|
+
"displayName": "Divider Text",
|
|
121
121
|
"type": "TEXT",
|
|
122
122
|
"required": false,
|
|
123
|
-
"defaultValue": "
|
|
123
|
+
"defaultValue": "or",
|
|
124
124
|
"groupId": "socialLogin"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
@@ -134,33 +134,33 @@
|
|
|
134
134
|
"propGroups": [
|
|
135
135
|
{
|
|
136
136
|
"id": "content",
|
|
137
|
-
"name": "
|
|
138
|
-
"description": "
|
|
137
|
+
"name": "Content",
|
|
138
|
+
"description": "Page title and description"
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"id": "formFields",
|
|
142
|
-
"name": "Form
|
|
143
|
-
"description": "
|
|
142
|
+
"name": "Form Fields",
|
|
143
|
+
"description": "Login form label and placeholder texts",
|
|
144
144
|
"children": [
|
|
145
145
|
{
|
|
146
146
|
"id": "email",
|
|
147
|
-
"name": "
|
|
147
|
+
"name": "Email"
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"id": "password",
|
|
151
|
-
"name": "
|
|
151
|
+
"name": "Password"
|
|
152
152
|
}
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
"id": "buttons",
|
|
157
|
-
"name": "
|
|
158
|
-
"description": "
|
|
157
|
+
"name": "Buttons",
|
|
158
|
+
"description": "Button and link texts"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"id": "socialLogin",
|
|
162
|
-
"name": "
|
|
163
|
-
"description": "Google
|
|
162
|
+
"name": "Social Login",
|
|
163
|
+
"description": "Google and Facebook login settings",
|
|
164
164
|
"children": [
|
|
165
165
|
{
|
|
166
166
|
"id": "google",
|
|
@@ -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,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
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"name": "logoSizeDesktop",
|
|
17
|
-
"displayName": "Logo
|
|
17
|
+
"displayName": "Desktop Logo Size",
|
|
18
18
|
"type": "TYPE",
|
|
19
19
|
"required": false,
|
|
20
20
|
"groupId": "logo-settings",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "logoSizeMobile",
|
|
25
|
-
"displayName": "Logo
|
|
25
|
+
"displayName": "Mobile Logo Size",
|
|
26
26
|
"type": "TYPE",
|
|
27
27
|
"required": false,
|
|
28
28
|
"groupId": "logo-settings",
|
|
@@ -30,193 +30,193 @@
|
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "navigationLinks",
|
|
33
|
-
"displayName": "
|
|
33
|
+
"displayName": "Navigation Links",
|
|
34
34
|
"type": "LIST_OF_LINK",
|
|
35
35
|
"required": false,
|
|
36
36
|
"groupId": "navigation"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "navigationLinkColor",
|
|
40
|
-
"displayName": "
|
|
40
|
+
"displayName": "Link Color",
|
|
41
41
|
"type": "COLOR",
|
|
42
42
|
"required": false,
|
|
43
43
|
"groupId": "navigation"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"name": "coloredLinks",
|
|
47
|
-
"displayName": "
|
|
47
|
+
"displayName": "Links",
|
|
48
48
|
"type": "LIST_OF_LINK",
|
|
49
49
|
"required": false,
|
|
50
50
|
"groupId": "colored-links"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"name": "coloredLinkColor",
|
|
54
|
-
"displayName": "
|
|
54
|
+
"displayName": "Link Color",
|
|
55
55
|
"type": "COLOR",
|
|
56
56
|
"required": false,
|
|
57
57
|
"groupId": "colored-links"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"name": "cartTitle",
|
|
61
|
-
"displayName": "
|
|
61
|
+
"displayName": "Cart Title",
|
|
62
62
|
"type": "TEXT",
|
|
63
63
|
"required": false,
|
|
64
|
-
"defaultValue": "
|
|
64
|
+
"defaultValue": "My Cart",
|
|
65
65
|
"groupId": "cart-sidebar"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"name": "emptyCartText",
|
|
69
|
-
"displayName": "
|
|
69
|
+
"displayName": "Empty Cart Text",
|
|
70
70
|
"type": "TEXT",
|
|
71
71
|
"required": false,
|
|
72
|
-
"defaultValue": "
|
|
72
|
+
"defaultValue": "Your cart is empty",
|
|
73
73
|
"groupId": "cart-sidebar"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"name": "checkoutButtonText",
|
|
77
|
-
"displayName": "
|
|
77
|
+
"displayName": "Checkout Button Text",
|
|
78
78
|
"type": "TEXT",
|
|
79
79
|
"required": false,
|
|
80
|
-
"defaultValue": "
|
|
80
|
+
"defaultValue": "Proceed to Checkout",
|
|
81
81
|
"groupId": "cart-sidebar"
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
"name": "totalText",
|
|
85
|
-
"displayName": "
|
|
85
|
+
"displayName": "Total Text",
|
|
86
86
|
"type": "TEXT",
|
|
87
87
|
"required": false,
|
|
88
|
-
"defaultValue": "
|
|
88
|
+
"defaultValue": "Total",
|
|
89
89
|
"groupId": "cart-sidebar"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"name": "freeShippingText",
|
|
93
|
-
"displayName": "
|
|
93
|
+
"displayName": "Free Shipping Text",
|
|
94
94
|
"type": "TEXT",
|
|
95
95
|
"required": false,
|
|
96
|
-
"defaultValue": "
|
|
96
|
+
"defaultValue": "Free shipping on orders over $150",
|
|
97
97
|
"groupId": "cart-sidebar"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"name": "emptyCartButtonText",
|
|
101
|
-
"displayName": "
|
|
101
|
+
"displayName": "Empty Cart Button Text",
|
|
102
102
|
"type": "TEXT",
|
|
103
103
|
"required": false,
|
|
104
|
-
"defaultValue": "
|
|
104
|
+
"defaultValue": "Start Shopping",
|
|
105
105
|
"groupId": "cart-sidebar"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"name": "registerButtonText",
|
|
109
|
-
"displayName": "
|
|
109
|
+
"displayName": "Sign Up Button",
|
|
110
110
|
"type": "TEXT",
|
|
111
111
|
"required": false,
|
|
112
|
-
"defaultValue": "
|
|
112
|
+
"defaultValue": "Sign Up",
|
|
113
113
|
"groupId": "mobile-menu"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"name": "loginButtonText",
|
|
117
|
-
"displayName": "
|
|
117
|
+
"displayName": "Sign In Button",
|
|
118
118
|
"type": "TEXT",
|
|
119
119
|
"required": false,
|
|
120
|
-
"defaultValue": "
|
|
120
|
+
"defaultValue": "Sign In",
|
|
121
121
|
"groupId": "mobile-menu"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
"name": "logoutButtonText",
|
|
125
|
-
"displayName": "
|
|
125
|
+
"displayName": "Sign Out Button",
|
|
126
126
|
"type": "TEXT",
|
|
127
127
|
"required": false,
|
|
128
|
-
"defaultValue": "
|
|
128
|
+
"defaultValue": "Sign Out",
|
|
129
129
|
"groupId": "mobile-menu"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"name": "searchProductList",
|
|
133
|
-
"displayName": "
|
|
133
|
+
"displayName": "Search Product List",
|
|
134
134
|
"type": "PRODUCT_LIST",
|
|
135
135
|
"required": false,
|
|
136
136
|
"groupId": "search"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"name": "hideAddToCartButton",
|
|
140
|
-
"displayName": "
|
|
140
|
+
"displayName": "Hide Add to Cart Button",
|
|
141
141
|
"type": "BOOLEAN",
|
|
142
142
|
"required": false,
|
|
143
143
|
"groupId": "search-card-settings"
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
"name": "searchPlaceholder",
|
|
147
|
-
"displayName": "
|
|
147
|
+
"displayName": "Search Placeholder",
|
|
148
148
|
"type": "TEXT",
|
|
149
149
|
"required": false,
|
|
150
|
-
"defaultValue": "
|
|
150
|
+
"defaultValue": "What are you looking for?",
|
|
151
151
|
"groupId": "search-texts"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"name": "searchingText",
|
|
155
|
-
"displayName": "
|
|
155
|
+
"displayName": "Searching Text",
|
|
156
156
|
"type": "TEXT",
|
|
157
157
|
"required": false,
|
|
158
|
-
"defaultValue": "
|
|
158
|
+
"defaultValue": "Searching...",
|
|
159
159
|
"groupId": "search-texts"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"name": "noResultsText",
|
|
163
|
-
"displayName": "
|
|
163
|
+
"displayName": "No Results Text",
|
|
164
164
|
"type": "TEXT",
|
|
165
165
|
"required": false,
|
|
166
|
-
"defaultValue": "
|
|
166
|
+
"defaultValue": "No products found",
|
|
167
167
|
"groupId": "search-texts"
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
"name": "resultCountText",
|
|
171
|
-
"displayName": "
|
|
171
|
+
"displayName": "Result Count Text",
|
|
172
172
|
"type": "TEXT",
|
|
173
173
|
"required": false,
|
|
174
|
-
"defaultValue": "
|
|
174
|
+
"defaultValue": "Result",
|
|
175
175
|
"groupId": "search-texts"
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
"name": "addToCartText",
|
|
179
|
-
"displayName": "
|
|
179
|
+
"displayName": "Add to Cart Text",
|
|
180
180
|
"type": "TEXT",
|
|
181
181
|
"required": false,
|
|
182
|
-
"defaultValue": "
|
|
182
|
+
"defaultValue": "Add to Cart",
|
|
183
183
|
"groupId": "search-texts"
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
"name": "addedToCartText",
|
|
187
|
-
"displayName": "
|
|
187
|
+
"displayName": "Added to Cart Text",
|
|
188
188
|
"type": "TEXT",
|
|
189
189
|
"required": false,
|
|
190
|
-
"defaultValue": "
|
|
190
|
+
"defaultValue": "Added to Cart",
|
|
191
191
|
"groupId": "search-texts"
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
"name": "outOfStockText",
|
|
195
|
-
"displayName": "
|
|
195
|
+
"displayName": "Sold Out Text",
|
|
196
196
|
"type": "TEXT",
|
|
197
197
|
"required": false,
|
|
198
|
-
"defaultValue": "
|
|
198
|
+
"defaultValue": "Sold Out",
|
|
199
199
|
"groupId": "search-texts"
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
"name": "goToProductText",
|
|
203
|
-
"displayName": "
|
|
203
|
+
"displayName": "View Product Text",
|
|
204
204
|
"type": "TEXT",
|
|
205
205
|
"required": false,
|
|
206
|
-
"defaultValue": "
|
|
206
|
+
"defaultValue": "View Product",
|
|
207
207
|
"groupId": "search-texts"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
"name": "viewAllText",
|
|
211
|
-
"displayName": "
|
|
211
|
+
"displayName": "View All Text",
|
|
212
212
|
"type": "TEXT",
|
|
213
213
|
"required": false,
|
|
214
|
-
"defaultValue": "
|
|
214
|
+
"defaultValue": "View All",
|
|
215
215
|
"groupId": "search-texts"
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
"name": "components",
|
|
219
|
-
"displayName": "
|
|
219
|
+
"displayName": "Components",
|
|
220
220
|
"type": "COMPONENT_LIST",
|
|
221
221
|
"required": false,
|
|
222
222
|
"privateVarMap": {
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
"name": "imageAspectRatio",
|
|
236
|
-
"displayName": "
|
|
236
|
+
"displayName": "Image Ratio",
|
|
237
237
|
"type": "ENUM",
|
|
238
238
|
"required": false,
|
|
239
239
|
"groupId": "search-image",
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"name": "imageObjectFit",
|
|
244
|
-
"displayName": "
|
|
244
|
+
"displayName": "Image Fit",
|
|
245
245
|
"type": "ENUM",
|
|
246
246
|
"required": false,
|
|
247
247
|
"groupId": "search-image",
|
|
@@ -249,10 +249,10 @@
|
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
"name": "viewCartButtonText",
|
|
252
|
-
"displayName": "
|
|
252
|
+
"displayName": "View Cart Button Text",
|
|
253
253
|
"type": "TEXT",
|
|
254
254
|
"required": false,
|
|
255
|
-
"defaultValue": "
|
|
255
|
+
"defaultValue": "View Cart",
|
|
256
256
|
"groupId": "texts"
|
|
257
257
|
}
|
|
258
258
|
],
|
|
@@ -260,56 +260,56 @@
|
|
|
260
260
|
{
|
|
261
261
|
"id": "logo-settings",
|
|
262
262
|
"name": "Logo",
|
|
263
|
-
"description": "
|
|
263
|
+
"description": "Image and size settings"
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
"id": "navigation",
|
|
267
|
-
"name": "
|
|
268
|
-
"description": "
|
|
267
|
+
"name": "Navigation",
|
|
268
|
+
"description": "Links and colors"
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
271
|
"id": "colored-links",
|
|
272
|
-
"name": "
|
|
273
|
-
"description": "
|
|
272
|
+
"name": "Featured Links",
|
|
273
|
+
"description": "Featured links"
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
"id": "texts",
|
|
277
|
-
"name": "
|
|
278
|
-
"description": "
|
|
277
|
+
"name": "Texts",
|
|
278
|
+
"description": "Cart and mobile menu texts",
|
|
279
279
|
"children": [
|
|
280
280
|
{
|
|
281
281
|
"id": "cart-sidebar",
|
|
282
|
-
"name": "
|
|
283
|
-
"description": "
|
|
282
|
+
"name": "Cart",
|
|
283
|
+
"description": "Cart sidebar texts"
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
"id": "mobile-menu",
|
|
287
|
-
"name": "
|
|
288
|
-
"description": "
|
|
287
|
+
"name": "Mobile Menu",
|
|
288
|
+
"description": "Login, register, and logout buttons"
|
|
289
289
|
}
|
|
290
290
|
]
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
"id": "search",
|
|
294
|
-
"name": "
|
|
295
|
-
"description": "
|
|
294
|
+
"name": "Search",
|
|
295
|
+
"description": "Search modal settings",
|
|
296
296
|
"children": [
|
|
297
297
|
{
|
|
298
298
|
"id": "search-card-settings",
|
|
299
|
-
"name": "
|
|
300
|
-
"description": "
|
|
299
|
+
"name": "Product Card Settings",
|
|
300
|
+
"description": "Product card view settings in search results"
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
"id": "search-texts",
|
|
304
|
-
"name": "
|
|
305
|
-
"description": "
|
|
304
|
+
"name": "Texts",
|
|
305
|
+
"description": "Search modal text settings"
|
|
306
306
|
}
|
|
307
307
|
]
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
"id": "search-image",
|
|
311
|
-
"name": "
|
|
312
|
-
"description": "
|
|
311
|
+
"name": "Product Image Settings",
|
|
312
|
+
"description": "Product image ratio and fit settings"
|
|
313
313
|
}
|
|
314
314
|
]
|
|
315
315
|
}
|
|
@@ -26,28 +26,28 @@ export function Navbar(props: Props) {
|
|
|
26
26
|
navigationLinks,
|
|
27
27
|
logoSizeDesktop: rawLogoSizeDesktop,
|
|
28
28
|
logoSizeMobile: rawLogoSizeMobile,
|
|
29
|
-
cartTitle = "
|
|
30
|
-
emptyCartText = "
|
|
31
|
-
checkoutButtonText = "
|
|
32
|
-
totalText = "
|
|
29
|
+
cartTitle = "My Cart",
|
|
30
|
+
emptyCartText = "Your cart is empty",
|
|
31
|
+
checkoutButtonText = "Proceed to Checkout",
|
|
32
|
+
totalText = "Total",
|
|
33
33
|
navigationLinkColor,
|
|
34
34
|
coloredLinks,
|
|
35
35
|
coloredLinkColor,
|
|
36
|
-
registerButtonText = "
|
|
37
|
-
loginButtonText = "
|
|
38
|
-
logoutButtonText = "
|
|
39
|
-
freeShippingText = "
|
|
40
|
-
emptyCartButtonText = "
|
|
41
|
-
searchPlaceholder = "
|
|
42
|
-
searchingText = "
|
|
43
|
-
noResultsText = "
|
|
44
|
-
resultCountText = "
|
|
45
|
-
addToCartText = "
|
|
46
|
-
addedToCartText = "
|
|
47
|
-
outOfStockText = "
|
|
48
|
-
goToProductText = "
|
|
49
|
-
viewAllText = "
|
|
50
|
-
viewCartButtonText = "
|
|
36
|
+
registerButtonText = "Sign Up",
|
|
37
|
+
loginButtonText = "Sign In",
|
|
38
|
+
logoutButtonText = "Sign Out",
|
|
39
|
+
freeShippingText = "Free shipping on orders over $150",
|
|
40
|
+
emptyCartButtonText = "Start Shopping",
|
|
41
|
+
searchPlaceholder = "What are you looking for?",
|
|
42
|
+
searchingText = "Searching...",
|
|
43
|
+
noResultsText = "No products found",
|
|
44
|
+
resultCountText = "Result",
|
|
45
|
+
addToCartText = "Add to Cart",
|
|
46
|
+
addedToCartText = "Added to Cart",
|
|
47
|
+
outOfStockText = "Sold Out",
|
|
48
|
+
goToProductText = "View Product",
|
|
49
|
+
viewAllText = "View All",
|
|
50
|
+
viewCartButtonText = "View Cart",
|
|
51
51
|
searchProductList,
|
|
52
52
|
hideAddToCartButton,
|
|
53
53
|
imageAspectRatio,
|
|
@@ -16,7 +16,7 @@ const BundleProducts = observer(function BundleProducts({
|
|
|
16
16
|
item,
|
|
17
17
|
aspectRatio,
|
|
18
18
|
objectFit,
|
|
19
|
-
editButtonText = "
|
|
19
|
+
editButtonText = "Edit",
|
|
20
20
|
}: Props) {
|
|
21
21
|
const bundleProducts = (item.variant?.bundleProducts ?? []).filter(
|
|
22
22
|
(bp) => bp.quantity > 0,
|