@ikas/code-components-mcp 2.8.0 → 2.9.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.
Files changed (75) hide show
  1. package/data/framework.json +53 -26
  2. package/data/section-templates/account-info-section/children/AccountFavorites/ikas-config-snippet.json +13 -0
  3. package/data/section-templates/account-info-section/children/AccountOrders/index.tsx +1 -1
  4. package/data/section-templates/account-info-section/ikas-config-snippet.json +19 -0
  5. package/data/section-templates/add-to-cart/ikas-config-snippet.json +17 -0
  6. package/data/section-templates/add-to-cart/utils/cartLimits.ts +4 -3
  7. package/data/section-templates/blog-home-section/ikas-config-snippet.json +2 -0
  8. package/data/section-templates/blog-home-section/index.tsx +2 -1
  9. package/data/section-templates/blog-post-section/ikas-config-snippet.json +2 -0
  10. package/data/section-templates/blog-post-section/index.tsx +3 -2
  11. package/data/section-templates/bundle-products/ikas-config-snippet.json +20 -0
  12. package/data/section-templates/cart-section/components/EmptyState/index.tsx +1 -1
  13. package/data/section-templates/cart-section/sub-components/CartItem/index.tsx +9 -0
  14. package/data/section-templates/cart-section/utils/cartLimits.ts +24 -0
  15. package/data/section-templates/cart-section/utils/cartLineLimits.ts +100 -0
  16. package/data/section-templates/category-images-section/children/CategoryImageItem/ikas-config-snippet.json +4 -0
  17. package/data/section-templates/category-images-section/ikas-config-snippet.json +15 -0
  18. package/data/section-templates/category-list-section/children/CardProductName/ikas-config-snippet.json +2 -1
  19. package/data/section-templates/category-list-section/ikas-config-snippet.json +21 -0
  20. package/data/section-templates/category-list-section/index.tsx +2 -1
  21. package/data/section-templates/component-renderer/additional/ProductDetail/index.tsx +5 -1
  22. package/data/section-templates/component-renderer/ikas-config-snippet.json +13 -0
  23. package/data/section-templates/favorites/ikas-config-snippet.json +18 -1
  24. package/data/section-templates/features-section/ikas-config-snippet.json +13 -0
  25. package/data/section-templates/footer-section/ikas-config-snippet.json +15 -0
  26. package/data/section-templates/forgot-password-section/components/ForgotPasswordForm/index.tsx +1 -1
  27. package/data/section-templates/header-section/children/Announcements/ikas-config-snippet.json +7 -0
  28. package/data/section-templates/header-section/children/CookieBar/ikas-config-snippet.json +3 -0
  29. package/data/section-templates/header-section/children/Navbar/components/CartSidebar/index.tsx +2 -1
  30. package/data/section-templates/header-section/children/Navbar/components/SearchModal/index.tsx +2 -1
  31. package/data/section-templates/header-section/children/Navbar/ikas-config-snippet.json +27 -0
  32. package/data/section-templates/header-section/children/Navbar/index.tsx +6 -5
  33. package/data/section-templates/header-section/ikas-config-snippet.json +13 -0
  34. package/data/section-templates/header-section/sub-components/CartItem/index.tsx +9 -0
  35. package/data/section-templates/header-section/utils/cartLimits.ts +24 -0
  36. package/data/section-templates/header-section/utils/cartLineLimits.ts +100 -0
  37. package/data/section-templates/hero-slider-section/children/HeroSliderItem/ikas-config-snippet.json +18 -0
  38. package/data/section-templates/hero-slider-section/children/HeroSliderItem/index.tsx +12 -7
  39. package/data/section-templates/hero-slider-section/ikas-config-snippet.json +13 -0
  40. package/data/section-templates/image-handling/ikas-config-snippet.json +52 -0
  41. package/data/section-templates/image-handling/index.tsx +5 -1
  42. package/data/section-templates/login-section/ikas-config-snippet.json +2 -0
  43. package/data/section-templates/navigation/components/CartSidebar/index.tsx +2 -1
  44. package/data/section-templates/navigation/components/SearchModal/index.tsx +2 -1
  45. package/data/section-templates/navigation/ikas-config-snippet.json +27 -0
  46. package/data/section-templates/navigation/index.tsx +6 -5
  47. package/data/section-templates/navigation/sub-components/CartItem/index.tsx +9 -0
  48. package/data/section-templates/navigation/utils/cartLimits.ts +24 -0
  49. package/data/section-templates/navigation/utils/cartLineLimits.ts +100 -0
  50. package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/ikas-config-snippet.json +17 -0
  51. package/data/section-templates/product-detail-section/children/ProductDetailBackInStock/ikas-config-snippet.json +16 -0
  52. package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/ikas-config-snippet.json +18 -0
  53. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/ikas-config-snippet.json +20 -0
  54. package/data/section-templates/product-detail-section/children/ProductDetailDescription/ikas-config-snippet.json +27 -0
  55. package/data/section-templates/product-detail-section/children/ProductDetailFeatures/ikas-config-snippet.json +29 -0
  56. package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/ikas-config-snippet.json +18 -1
  57. package/data/section-templates/product-detail-section/children/ProductDetailOffer/ikas-config-snippet.json +20 -0
  58. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/ikas-config-snippet.json +16 -0
  59. package/data/section-templates/product-detail-section/children/ProductDetailPrices/ikas-config-snippet.json +16 -0
  60. package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/ikas-config-snippet.json +16 -0
  61. package/data/section-templates/product-detail-section/children/ProductDetailSku/ikas-config-snippet.json +16 -0
  62. package/data/section-templates/product-detail-section/children/ProductDetailVariant/ikas-config-snippet.json +17 -0
  63. package/data/section-templates/product-detail-section/ikas-config-snippet.json +52 -0
  64. package/data/section-templates/product-detail-section/index.tsx +5 -1
  65. package/data/section-templates/product-detail-section/utils/cartLimits.ts +4 -3
  66. package/data/section-templates/product-pricing/ikas-config-snippet.json +16 -0
  67. package/data/section-templates/product-slider-section/children/CardProductName/ikas-config-snippet.json +2 -1
  68. package/data/section-templates/product-slider-section/ikas-config-snippet.json +17 -0
  69. package/data/section-templates/register-section/ikas-config-snippet.json +2 -0
  70. package/data/section-templates/variant-selection/ikas-config-snippet.json +17 -0
  71. package/data/storefront-api.json +301 -17
  72. package/data/storefront-types.json +221 -20
  73. package/dist/index.js +408 -26
  74. package/dist/index.js.map +1 -1
  75. package/package.json +1 -1
@@ -16,6 +16,10 @@
16
16
  "displayName": "Top Spacing",
17
17
  "type": "TYPE",
18
18
  "required": false,
19
+ "defaultValue": {
20
+ "value": 0,
21
+ "unit": "px"
22
+ },
19
23
  "groupId": "mobile",
20
24
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
21
25
  },
@@ -24,6 +28,10 @@
24
28
  "displayName": "Bottom Spacing",
25
29
  "type": "TYPE",
26
30
  "required": false,
31
+ "defaultValue": {
32
+ "value": 0,
33
+ "unit": "px"
34
+ },
27
35
  "groupId": "mobile",
28
36
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
29
37
  },
@@ -32,6 +40,10 @@
32
40
  "displayName": "Top Spacing",
33
41
  "type": "TYPE",
34
42
  "required": false,
43
+ "defaultValue": {
44
+ "value": 0,
45
+ "unit": "px"
46
+ },
35
47
  "groupId": "desktop",
36
48
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
37
49
  },
@@ -40,6 +52,10 @@
40
52
  "displayName": "Bottom Spacing",
41
53
  "type": "TYPE",
42
54
  "required": false,
55
+ "defaultValue": {
56
+ "value": 0,
57
+ "unit": "px"
58
+ },
43
59
  "groupId": "desktop",
44
60
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
45
61
  },
@@ -48,6 +64,7 @@
48
64
  "displayName": "Furniture Bundle Mode",
49
65
  "type": "BOOLEAN",
50
66
  "required": false,
67
+ "defaultValue": false,
51
68
  "groupId": "settings"
52
69
  },
53
70
  {
@@ -55,6 +72,7 @@
55
72
  "displayName": "Disable Product Link",
56
73
  "type": "BOOLEAN",
57
74
  "required": false,
75
+ "defaultValue": false,
58
76
  "groupId": "settings"
59
77
  },
60
78
  {
@@ -86,6 +104,7 @@
86
104
  "displayName": "Aspect Ratio",
87
105
  "type": "ENUM",
88
106
  "required": false,
107
+ "defaultValue": "Square",
89
108
  "groupId": "appearance",
90
109
  "enumTypeId": "{{ENUM_ID:AspectRatio}}"
91
110
  },
@@ -94,6 +113,7 @@
94
113
  "displayName": "Image Fit",
95
114
  "type": "ENUM",
96
115
  "required": false,
116
+ "defaultValue": "Cover",
97
117
  "groupId": "appearance",
98
118
  "enumTypeId": "{{ENUM_ID:ObjectFit}}"
99
119
  }
@@ -16,6 +16,10 @@
16
16
  "displayName": "Top Spacing",
17
17
  "type": "TYPE",
18
18
  "required": false,
19
+ "defaultValue": {
20
+ "value": 0,
21
+ "unit": "px"
22
+ },
19
23
  "groupId": "mobile",
20
24
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
21
25
  },
@@ -24,6 +28,10 @@
24
28
  "displayName": "Bottom Spacing",
25
29
  "type": "TYPE",
26
30
  "required": false,
31
+ "defaultValue": {
32
+ "value": 0,
33
+ "unit": "px"
34
+ },
27
35
  "groupId": "mobile",
28
36
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
29
37
  },
@@ -32,6 +40,10 @@
32
40
  "displayName": "Top Spacing",
33
41
  "type": "TYPE",
34
42
  "required": false,
43
+ "defaultValue": {
44
+ "value": 0,
45
+ "unit": "px"
46
+ },
35
47
  "groupId": "desktop",
36
48
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
37
49
  },
@@ -40,6 +52,10 @@
40
52
  "displayName": "Bottom Spacing",
41
53
  "type": "TYPE",
42
54
  "required": false,
55
+ "defaultValue": {
56
+ "value": 0,
57
+ "unit": "px"
58
+ },
43
59
  "groupId": "desktop",
44
60
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
45
61
  },
@@ -56,6 +72,7 @@
56
72
  "displayName": "Description Open by Default",
57
73
  "type": "BOOLEAN",
58
74
  "required": false,
75
+ "defaultValue": false,
59
76
  "groupId": "settings"
60
77
  },
61
78
  {
@@ -63,6 +80,16 @@
63
80
  "displayName": "Components",
64
81
  "type": "COMPONENT_LIST",
65
82
  "required": false,
83
+ "defaultValue": {
84
+ "components": [
85
+ {
86
+ "codeComponentId": "nb34u3yu-collapsible-content"
87
+ },
88
+ {
89
+ "codeComponentId": "nb34u3yu-collapsible-content"
90
+ }
91
+ ]
92
+ },
66
93
  "filteredComponentIds": [
67
94
  "<id-of-CollapsibleContent>"
68
95
  ]
@@ -10,6 +10,10 @@
10
10
  "displayName": "Top Spacing",
11
11
  "type": "TYPE",
12
12
  "required": false,
13
+ "defaultValue": {
14
+ "value": 0,
15
+ "unit": "px"
16
+ },
13
17
  "groupId": "mobile",
14
18
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
15
19
  },
@@ -18,6 +22,10 @@
18
22
  "displayName": "Bottom Spacing",
19
23
  "type": "TYPE",
20
24
  "required": false,
25
+ "defaultValue": {
26
+ "value": 0,
27
+ "unit": "px"
28
+ },
21
29
  "groupId": "mobile",
22
30
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
23
31
  },
@@ -26,6 +34,10 @@
26
34
  "displayName": "Top Spacing",
27
35
  "type": "TYPE",
28
36
  "required": false,
37
+ "defaultValue": {
38
+ "value": 0,
39
+ "unit": "px"
40
+ },
29
41
  "groupId": "desktop",
30
42
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
31
43
  },
@@ -34,6 +46,10 @@
34
46
  "displayName": "Bottom Spacing",
35
47
  "type": "TYPE",
36
48
  "required": false,
49
+ "defaultValue": {
50
+ "value": 0,
51
+ "unit": "px"
52
+ },
37
53
  "groupId": "desktop",
38
54
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
39
55
  },
@@ -42,6 +58,19 @@
42
58
  "displayName": "Specifications",
43
59
  "type": "COMPONENT_LIST",
44
60
  "required": false,
61
+ "defaultValue": {
62
+ "components": [
63
+ {
64
+ "codeComponentId": "nb34u3yu-product-detail-feature-item"
65
+ },
66
+ {
67
+ "codeComponentId": "nb34u3yu-product-detail-feature-item"
68
+ },
69
+ {
70
+ "codeComponentId": "nb34u3yu-product-detail-feature-item"
71
+ }
72
+ ]
73
+ },
45
74
  "filteredComponentIds": [
46
75
  "<id-of-ProductDetailFeatureItem>"
47
76
  ]
@@ -16,6 +16,10 @@
16
16
  "displayName": "Top Spacing",
17
17
  "type": "TYPE",
18
18
  "required": false,
19
+ "defaultValue": {
20
+ "value": 0,
21
+ "unit": "px"
22
+ },
19
23
  "groupId": "mobile",
20
24
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
21
25
  },
@@ -24,6 +28,10 @@
24
28
  "displayName": "Bottom Spacing",
25
29
  "type": "TYPE",
26
30
  "required": false,
31
+ "defaultValue": {
32
+ "value": 0,
33
+ "unit": "px"
34
+ },
27
35
  "groupId": "mobile",
28
36
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
29
37
  },
@@ -32,6 +40,10 @@
32
40
  "displayName": "Top Spacing",
33
41
  "type": "TYPE",
34
42
  "required": false,
43
+ "defaultValue": {
44
+ "value": 0,
45
+ "unit": "px"
46
+ },
35
47
  "groupId": "desktop",
36
48
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
37
49
  },
@@ -40,6 +52,10 @@
40
52
  "displayName": "Bottom Spacing",
41
53
  "type": "TYPE",
42
54
  "required": false,
55
+ "defaultValue": {
56
+ "value": 0,
57
+ "unit": "px"
58
+ },
43
59
  "groupId": "desktop",
44
60
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
45
61
  },
@@ -47,7 +63,8 @@
47
63
  "name": "hideFavoriteButton",
48
64
  "displayName": "Hide Favorite Button",
49
65
  "type": "BOOLEAN",
50
- "required": false
66
+ "required": false,
67
+ "defaultValue": false
51
68
  }
52
69
  ],
53
70
  "propGroups": [
@@ -16,6 +16,7 @@
16
16
  "displayName": "Auto Select Offers",
17
17
  "type": "BOOLEAN",
18
18
  "required": false,
19
+ "defaultValue": false,
19
20
  "groupId": "layout"
20
21
  },
21
22
  {
@@ -71,6 +72,7 @@
71
72
  "displayName": "Image Aspect Ratio",
72
73
  "type": "ENUM",
73
74
  "required": false,
75
+ "defaultValue": "Square",
74
76
  "groupId": "image",
75
77
  "enumTypeId": "{{ENUM_ID:AspectRatio}}"
76
78
  },
@@ -79,6 +81,7 @@
79
81
  "displayName": "Image Fit",
80
82
  "type": "ENUM",
81
83
  "required": false,
84
+ "defaultValue": "Cover",
82
85
  "groupId": "image",
83
86
  "enumTypeId": "{{ENUM_ID:ObjectFit}}"
84
87
  },
@@ -95,6 +98,7 @@
95
98
  "displayName": "Compact View",
96
99
  "type": "BOOLEAN",
97
100
  "required": false,
101
+ "defaultValue": false,
98
102
  "groupId": "layout"
99
103
  },
100
104
  {
@@ -102,6 +106,10 @@
102
106
  "displayName": "Top Spacing",
103
107
  "type": "TYPE",
104
108
  "required": false,
109
+ "defaultValue": {
110
+ "value": 0,
111
+ "unit": "px"
112
+ },
105
113
  "groupId": "mobile",
106
114
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
107
115
  },
@@ -110,6 +118,10 @@
110
118
  "displayName": "Bottom Spacing",
111
119
  "type": "TYPE",
112
120
  "required": false,
121
+ "defaultValue": {
122
+ "value": 0,
123
+ "unit": "px"
124
+ },
113
125
  "groupId": "mobile",
114
126
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
115
127
  },
@@ -118,6 +130,10 @@
118
130
  "displayName": "Top Spacing",
119
131
  "type": "TYPE",
120
132
  "required": false,
133
+ "defaultValue": {
134
+ "value": 0,
135
+ "unit": "px"
136
+ },
121
137
  "groupId": "desktop",
122
138
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
123
139
  },
@@ -126,6 +142,10 @@
126
142
  "displayName": "Bottom Spacing",
127
143
  "type": "TYPE",
128
144
  "required": false,
145
+ "defaultValue": {
146
+ "value": 0,
147
+ "unit": "px"
148
+ },
129
149
  "groupId": "desktop",
130
150
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
131
151
  },
@@ -80,6 +80,10 @@
80
80
  "displayName": "Top Spacing",
81
81
  "type": "TYPE",
82
82
  "required": false,
83
+ "defaultValue": {
84
+ "value": 0,
85
+ "unit": "px"
86
+ },
83
87
  "groupId": "mobile",
84
88
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
85
89
  },
@@ -88,6 +92,10 @@
88
92
  "displayName": "Bottom Spacing",
89
93
  "type": "TYPE",
90
94
  "required": false,
95
+ "defaultValue": {
96
+ "value": 0,
97
+ "unit": "px"
98
+ },
91
99
  "groupId": "mobile",
92
100
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
93
101
  },
@@ -96,6 +104,10 @@
96
104
  "displayName": "Top Spacing",
97
105
  "type": "TYPE",
98
106
  "required": false,
107
+ "defaultValue": {
108
+ "value": 0,
109
+ "unit": "px"
110
+ },
99
111
  "groupId": "desktop",
100
112
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
101
113
  },
@@ -104,6 +116,10 @@
104
116
  "displayName": "Bottom Spacing",
105
117
  "type": "TYPE",
106
118
  "required": false,
119
+ "defaultValue": {
120
+ "value": 0,
121
+ "unit": "px"
122
+ },
107
123
  "groupId": "desktop",
108
124
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
109
125
  },
@@ -16,6 +16,10 @@
16
16
  "displayName": "Top Spacing",
17
17
  "type": "TYPE",
18
18
  "required": false,
19
+ "defaultValue": {
20
+ "value": 0,
21
+ "unit": "px"
22
+ },
19
23
  "groupId": "mobile",
20
24
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
21
25
  },
@@ -24,6 +28,10 @@
24
28
  "displayName": "Bottom Spacing",
25
29
  "type": "TYPE",
26
30
  "required": false,
31
+ "defaultValue": {
32
+ "value": 0,
33
+ "unit": "px"
34
+ },
27
35
  "groupId": "mobile",
28
36
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
29
37
  },
@@ -32,6 +40,10 @@
32
40
  "displayName": "Top Spacing",
33
41
  "type": "TYPE",
34
42
  "required": false,
43
+ "defaultValue": {
44
+ "value": 0,
45
+ "unit": "px"
46
+ },
35
47
  "groupId": "desktop",
36
48
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
37
49
  },
@@ -40,6 +52,10 @@
40
52
  "displayName": "Bottom Spacing",
41
53
  "type": "TYPE",
42
54
  "required": false,
55
+ "defaultValue": {
56
+ "value": 0,
57
+ "unit": "px"
58
+ },
43
59
  "groupId": "desktop",
44
60
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
45
61
  }
@@ -16,6 +16,10 @@
16
16
  "displayName": "Top Spacing",
17
17
  "type": "TYPE",
18
18
  "required": false,
19
+ "defaultValue": {
20
+ "value": 0,
21
+ "unit": "px"
22
+ },
19
23
  "groupId": "mobile",
20
24
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
21
25
  },
@@ -24,6 +28,10 @@
24
28
  "displayName": "Bottom Spacing",
25
29
  "type": "TYPE",
26
30
  "required": false,
31
+ "defaultValue": {
32
+ "value": 0,
33
+ "unit": "px"
34
+ },
27
35
  "groupId": "mobile",
28
36
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
29
37
  },
@@ -32,6 +40,10 @@
32
40
  "displayName": "Top Spacing",
33
41
  "type": "TYPE",
34
42
  "required": false,
43
+ "defaultValue": {
44
+ "value": 0,
45
+ "unit": "px"
46
+ },
35
47
  "groupId": "desktop",
36
48
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
37
49
  },
@@ -40,6 +52,10 @@
40
52
  "displayName": "Bottom Spacing",
41
53
  "type": "TYPE",
42
54
  "required": false,
55
+ "defaultValue": {
56
+ "value": 0,
57
+ "unit": "px"
58
+ },
43
59
  "groupId": "desktop",
44
60
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
45
61
  }
@@ -24,6 +24,10 @@
24
24
  "displayName": "Top Spacing",
25
25
  "type": "TYPE",
26
26
  "required": false,
27
+ "defaultValue": {
28
+ "value": 0,
29
+ "unit": "px"
30
+ },
27
31
  "groupId": "mobile",
28
32
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
29
33
  },
@@ -32,6 +36,10 @@
32
36
  "displayName": "Bottom Spacing",
33
37
  "type": "TYPE",
34
38
  "required": false,
39
+ "defaultValue": {
40
+ "value": 0,
41
+ "unit": "px"
42
+ },
35
43
  "groupId": "mobile",
36
44
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
37
45
  },
@@ -40,6 +48,10 @@
40
48
  "displayName": "Top Spacing",
41
49
  "type": "TYPE",
42
50
  "required": false,
51
+ "defaultValue": {
52
+ "value": 0,
53
+ "unit": "px"
54
+ },
43
55
  "groupId": "desktop",
44
56
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
45
57
  },
@@ -48,6 +60,10 @@
48
60
  "displayName": "Bottom Spacing",
49
61
  "type": "TYPE",
50
62
  "required": false,
63
+ "defaultValue": {
64
+ "value": 0,
65
+ "unit": "px"
66
+ },
51
67
  "groupId": "desktop",
52
68
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
53
69
  }
@@ -16,6 +16,10 @@
16
16
  "displayName": "Top Spacing",
17
17
  "type": "TYPE",
18
18
  "required": false,
19
+ "defaultValue": {
20
+ "value": 0,
21
+ "unit": "px"
22
+ },
19
23
  "groupId": "mobile",
20
24
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
21
25
  },
@@ -24,6 +28,10 @@
24
28
  "displayName": "Bottom Spacing",
25
29
  "type": "TYPE",
26
30
  "required": false,
31
+ "defaultValue": {
32
+ "value": 0,
33
+ "unit": "px"
34
+ },
27
35
  "groupId": "mobile",
28
36
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
29
37
  },
@@ -32,6 +40,10 @@
32
40
  "displayName": "Top Spacing",
33
41
  "type": "TYPE",
34
42
  "required": false,
43
+ "defaultValue": {
44
+ "value": 0,
45
+ "unit": "px"
46
+ },
35
47
  "groupId": "desktop",
36
48
  "typeId": "@ikas/bp-storefront-models-MarginTopStyleType"
37
49
  },
@@ -40,6 +52,10 @@
40
52
  "displayName": "Bottom Spacing",
41
53
  "type": "TYPE",
42
54
  "required": false,
55
+ "defaultValue": {
56
+ "value": 0,
57
+ "unit": "px"
58
+ },
43
59
  "groupId": "desktop",
44
60
  "typeId": "@ikas/bp-storefront-models-MarginBottomStyleType"
45
61
  },
@@ -48,6 +64,7 @@
48
64
  "displayName": "Image Variant",
49
65
  "type": "BOOLEAN",
50
66
  "required": false,
67
+ "defaultValue": false,
51
68
  "description": "Use product images for color variant."
52
69
  }
53
70
  ],
@@ -16,6 +16,7 @@
16
16
  "displayName": "Aspect Ratio",
17
17
  "type": "ENUM",
18
18
  "required": false,
19
+ "defaultValue": "Square",
19
20
  "groupId": "image-settings",
20
21
  "enumTypeId": "{{ENUM_ID:AspectRatio}}"
21
22
  },
@@ -24,6 +25,7 @@
24
25
  "displayName": "Image Fit",
25
26
  "type": "ENUM",
26
27
  "required": false,
28
+ "defaultValue": "Cover",
27
29
  "groupId": "image-settings",
28
30
  "enumTypeId": "{{ENUM_ID:ObjectFit}}"
29
31
  },
@@ -32,6 +34,46 @@
32
34
  "displayName": "Info Components",
33
35
  "type": "COMPONENT_LIST",
34
36
  "required": false,
37
+ "defaultValue": {
38
+ "components": [
39
+ {
40
+ "codeComponentId": "nb34u3yu-product-detail-name-favorite"
41
+ },
42
+ {
43
+ "codeComponentId": "nb34u3yu-product-detail-sku"
44
+ },
45
+ {
46
+ "codeComponentId": "nb34u3yu-product-detail-prices"
47
+ },
48
+ {
49
+ "codeComponentId": "nb34u3yu-product-detail-product-group"
50
+ },
51
+ {
52
+ "codeComponentId": "nb34u3yu-product-detail-bundle-product"
53
+ },
54
+ {
55
+ "codeComponentId": "nb34u3yu-product-detail-variant"
56
+ },
57
+ {
58
+ "codeComponentId": "nb34u3yu-product-detail-option-set"
59
+ },
60
+ {
61
+ "codeComponentId": "nb34u3yu-product-detail-add-to-cart"
62
+ },
63
+ {
64
+ "codeComponentId": "nb34u3yu-product-detail-back-in-stock"
65
+ },
66
+ {
67
+ "codeComponentId": "nb34u3yu-product-detail-offer"
68
+ },
69
+ {
70
+ "codeComponentId": "nb34u3yu-product-detail-features"
71
+ },
72
+ {
73
+ "codeComponentId": "nb34u3yu-product-detail-description"
74
+ }
75
+ ]
76
+ },
35
77
  "filteredComponentIds": [
36
78
  "<id-of-ProductDetailNameFavorite>",
37
79
  "<id-of-ProductDetailSku>",
@@ -52,6 +94,16 @@
52
94
  "displayName": "Sub Components",
53
95
  "type": "COMPONENT_LIST",
54
96
  "required": false,
97
+ "defaultValue": {
98
+ "components": [
99
+ {
100
+ "codeComponentId": "nb34u3yu-product-detail-bundle-furniture"
101
+ },
102
+ {
103
+ "codeComponentId": "nb34u3yu-product-detail-offer"
104
+ }
105
+ ]
106
+ },
55
107
  "filteredComponentIds": [
56
108
  "<id-of-ProductDetailBundleFurniture>",
57
109
  "<id-of-ProductDetailOffer>"
@@ -6,6 +6,7 @@ import {
6
6
  IkasImage,
7
7
  isNotEmpty,
8
8
  IkasComponentRenderer,
9
+ withRoutePrefix,
9
10
  } from "@ikas/bp-storefront";
10
11
  import { Props } from "./types";
11
12
  import Breadcrumb from "../../sub-components/Breadcrumb";
@@ -42,7 +43,10 @@ export function ProductDetail(props: Props) {
42
43
  <div className="kombos-container kombos-pd__container">
43
44
  <Breadcrumb
44
45
  items={[
45
- { label: homepageText, href: "/" } as BreadcrumbItem,
46
+ {
47
+ label: homepageText,
48
+ href: withRoutePrefix("/"),
49
+ } as BreadcrumbItem,
46
50
  ...(isNotEmpty(categoryPath)
47
51
  ? categoryPath.map(
48
52
  (pathItem: any) =>
@@ -8,9 +8,10 @@ export interface CartQuantityLimits {
8
8
  /**
9
9
  * Resolve the per-cart quantity limits for a product from its active sales
10
10
  * channel. Falls back to a minimum of 1 and no maximum when the channel or its
11
- * limits are not set. `addItemToCart` clamps to the same limits internally, so
12
- * applying these in the stepper keeps the UI honest instead of letting the
13
- * quantity snap silently.
11
+ * limits are not set. `addItemToCart` clamps to the same limits internally only
12
+ * when it creates a NEW cart line — incrementing an existing line goes through
13
+ * `changeItemQuantity`, which never clamps — so enforcing these in the stepper
14
+ * is the only guard that covers both paths.
14
15
  */
15
16
  export function getProductCartLimits(product: IkasProduct): CartQuantityLimits {
16
17
  const channel = product.salesChannels?.find(