@ikas/code-components-mcp 2.0.0 → 2.2.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/framework.json +22 -5
- package/data/migration-examples/complex-header-migration/_meta.json +4 -0
- package/data/migration-examples/complex-header-migration/after-config-snippet.json +55 -0
- package/data/migration-examples/complex-header-migration/after-section.tsx +64 -0
- package/data/migration-examples/complex-header-migration/before-props-summary.json +42 -0
- package/data/migration-examples/custom-dynamic-list-to-component-list/_meta.json +4 -0
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-child-styles.css +38 -0
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-child.tsx +22 -0
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-config-snippet.json +31 -0
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-section-styles.css +25 -0
- package/data/migration-examples/custom-dynamic-list-to-component-list/after-section.tsx +17 -0
- package/data/migration-examples/custom-dynamic-list-to-component-list/before-component.tsx +32 -0
- package/data/migration-examples/custom-dynamic-list-to-component-list/before-theme-snippet.json +53 -0
- package/data/migration-examples/full-component-with-tailwind/_meta.json +4 -0
- package/data/migration-examples/full-component-with-tailwind/after-component.tsx +43 -0
- package/data/migration-examples/full-component-with-tailwind/after-config-snippet.json +25 -0
- package/data/migration-examples/full-component-with-tailwind/after-styles.css +99 -0
- package/data/migration-examples/full-component-with-tailwind/before-component.tsx +60 -0
- package/data/migration-examples/object-custom-to-inline-props/_meta.json +4 -0
- package/data/migration-examples/object-custom-to-inline-props/after-component.tsx +34 -0
- package/data/migration-examples/object-custom-to-inline-props/after-config-snippet.json +23 -0
- package/data/migration-examples/object-custom-to-inline-props/after-styles.css +38 -0
- package/data/migration-examples/object-custom-to-inline-props/before-component.tsx +30 -0
- package/data/migration-examples/object-custom-to-inline-props/before-theme-snippet.json +26 -0
- package/data/migration-examples/slider-library-replacement/_meta.json +4 -0
- package/data/migration-examples/slider-library-replacement/after-child.tsx +13 -0
- package/data/migration-examples/slider-library-replacement/after-config-snippet.json +29 -0
- package/data/migration-examples/slider-library-replacement/after-section.tsx +38 -0
- package/data/migration-examples/slider-library-replacement/after-styles.css +43 -0
- package/data/migration-examples/slider-library-replacement/before-component.tsx +39 -0
- package/data/migration-examples/slider-library-replacement/before-types-snippet.ts +14 -0
- package/data/migration.json +260 -0
- package/data/section-templates/account-info-section/children/AccountFavorites/ikas-config-snippet.json +3 -3
- package/data/section-templates/account-info-section/ikas-config-snippet.json +5 -5
- package/data/section-templates/category-images-section/ikas-config-snippet.json +1 -1
- package/data/section-templates/category-list-section/ikas-config-snippet.json +3 -3
- package/data/section-templates/component-renderer/ikas-config-snippet.json +3 -3
- package/data/section-templates/features-section/ikas-config-snippet.json +1 -1
- package/data/section-templates/footer-section/ikas-config-snippet.json +1 -1
- package/data/section-templates/header-section/children/Announcements/ikas-config-snippet.json +1 -1
- package/data/section-templates/header-section/children/Navbar/ikas-config-snippet.json +3 -3
- package/data/section-templates/header-section/ikas-config-snippet.json +3 -3
- package/data/section-templates/hero-slider-section/ikas-config-snippet.json +1 -1
- package/data/section-templates/image-handling/ikas-config-snippet.json +13 -13
- package/data/section-templates/navigation/ikas-config-snippet.json +3 -3
- package/data/section-templates/product-detail-section/children/ProductDetailDescription/ikas-config-snippet.json +1 -1
- package/data/section-templates/product-detail-section/children/ProductDetailFeatures/ikas-config-snippet.json +1 -1
- package/data/section-templates/product-detail-section/ikas-config-snippet.json +13 -13
- package/data/section-templates/product-slider-section/ikas-config-snippet.json +3 -3
- package/data/storefront-api.json +27 -1
- package/data/storefront-types.json +2 -1
- package/dist/index.js +1737 -47
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"type": "COMPONENT_LIST",
|
|
34
34
|
"required": false,
|
|
35
35
|
"filteredComponentIds": [
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
36
|
+
"<id-of-ProductDetailNameFavorite>",
|
|
37
|
+
"<id-of-ProductDetailSku>",
|
|
38
|
+
"<id-of-ProductDetailPrices>",
|
|
39
|
+
"<id-of-ProductDetailProductGroup>",
|
|
40
|
+
"<id-of-ProductDetailVariant>",
|
|
41
|
+
"<id-of-ProductDetailAddToCart>",
|
|
42
|
+
"<id-of-ProductDetailFeatures>",
|
|
43
|
+
"<id-of-ProductDetailDescription>",
|
|
44
|
+
"<id-of-ProductDetailBundleProduct>",
|
|
45
|
+
"<id-of-ProductDetailOptionSet>",
|
|
46
|
+
"<id-of-ProductDetailOffer>"
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"type": "COMPONENT_LIST",
|
|
53
53
|
"required": false,
|
|
54
54
|
"filteredComponentIds": [
|
|
55
|
-
"
|
|
56
|
-
"
|
|
55
|
+
"<id-of-ProductDetailBundleFurniture>",
|
|
56
|
+
"<id-of-ProductDetailOffer>"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
{
|
|
@@ -226,9 +226,9 @@
|
|
|
226
226
|
}
|
|
227
227
|
},
|
|
228
228
|
"filteredComponentIds": [
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
"
|
|
229
|
+
"<id-of-CardProductPrice>",
|
|
230
|
+
"<id-of-CardProductVariants>",
|
|
231
|
+
"<id-of-CardProductName>"
|
|
232
232
|
]
|
|
233
233
|
},
|
|
234
234
|
{
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"type": "COMPONENT_LIST",
|
|
34
34
|
"required": false,
|
|
35
35
|
"filteredComponentIds": [
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
36
|
+
"<id-of-ProductDetailNameFavorite>",
|
|
37
|
+
"<id-of-ProductDetailSku>",
|
|
38
|
+
"<id-of-ProductDetailPrices>",
|
|
39
|
+
"<id-of-ProductDetailProductGroup>",
|
|
40
|
+
"<id-of-ProductDetailVariant>",
|
|
41
|
+
"<id-of-ProductDetailAddToCart>",
|
|
42
|
+
"<id-of-ProductDetailFeatures>",
|
|
43
|
+
"<id-of-ProductDetailDescription>",
|
|
44
|
+
"<id-of-ProductDetailBundleProduct>",
|
|
45
|
+
"<id-of-ProductDetailOptionSet>",
|
|
46
|
+
"<id-of-ProductDetailOffer>"
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
{
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"type": "COMPONENT_LIST",
|
|
53
53
|
"required": false,
|
|
54
54
|
"filteredComponentIds": [
|
|
55
|
-
"
|
|
56
|
-
"
|
|
55
|
+
"<id-of-ProductDetailBundleFurniture>",
|
|
56
|
+
"<id-of-ProductDetailOffer>"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
59
|
{
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
"filteredComponentIds": [
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
98
|
+
"<id-of-CardProductPrice>",
|
|
99
|
+
"<id-of-CardProductVariants>",
|
|
100
|
+
"<id-of-CardProductName>"
|
|
101
101
|
]
|
|
102
102
|
},
|
|
103
103
|
{
|
package/data/storefront-api.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-05-
|
|
2
|
+
"generatedAt": "2026-05-14T08:27:37.378Z",
|
|
3
3
|
"functions": [
|
|
4
4
|
{
|
|
5
5
|
"name": "fbp_initAdvancedMatching",
|
|
@@ -7622,6 +7622,32 @@
|
|
|
7622
7622
|
"IkasProductOption"
|
|
7623
7623
|
]
|
|
7624
7624
|
},
|
|
7625
|
+
{
|
|
7626
|
+
"name": "hasDisplayedOptions",
|
|
7627
|
+
"signature": "function hasDisplayedOptions(optionSet: IkasProductOptionSet): boolean",
|
|
7628
|
+
"description": "Checks whether the option set has any displayed (top-level) options.",
|
|
7629
|
+
"params": [
|
|
7630
|
+
{
|
|
7631
|
+
"name": "optionSet",
|
|
7632
|
+
"description": "- The product option set to check."
|
|
7633
|
+
}
|
|
7634
|
+
],
|
|
7635
|
+
"returns": "True if there is at least one displayed option, false otherwise.",
|
|
7636
|
+
"returnType": "boolean",
|
|
7637
|
+
"example": "```typescript\nimport { hasDisplayedOptions } from \"@ikas/bp-storefront\";\nif (hasDisplayedOptions(product.optionSet)) {\n // render option selector\n}\n```",
|
|
7638
|
+
"categories": [
|
|
7639
|
+
"ProductOptionSet"
|
|
7640
|
+
],
|
|
7641
|
+
"related": [
|
|
7642
|
+
"getDisplayedOptions",
|
|
7643
|
+
"hasValidProductOptionSetValues"
|
|
7644
|
+
],
|
|
7645
|
+
"isAsync": false,
|
|
7646
|
+
"isClass": false,
|
|
7647
|
+
"parameterTypes": [
|
|
7648
|
+
"IkasProductOptionSet"
|
|
7649
|
+
]
|
|
7650
|
+
},
|
|
7625
7651
|
{
|
|
7626
7652
|
"name": "initProductOptionSetValues",
|
|
7627
7653
|
"displayName": "initValues",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-05-
|
|
2
|
+
"generatedAt": "2026-05-14T08:27:37.404Z",
|
|
3
3
|
"types": [
|
|
4
4
|
{
|
|
5
5
|
"name": "IkasProductAttributeDetail",
|
|
@@ -8030,6 +8030,7 @@
|
|
|
8030
8030
|
"setChildOptions",
|
|
8031
8031
|
"initOptionValues",
|
|
8032
8032
|
"getDisplayedOptions",
|
|
8033
|
+
"hasDisplayedOptions",
|
|
8033
8034
|
"initProductOptionSetValues",
|
|
8034
8035
|
"hasValidProductOptionSetValues",
|
|
8035
8036
|
"initIkasProductOptionSet"
|