@ikas/code-components-mcp 2.1.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.
Files changed (54) hide show
  1. package/data/framework.json +22 -5
  2. package/data/migration-examples/complex-header-migration/_meta.json +4 -0
  3. package/data/migration-examples/complex-header-migration/after-config-snippet.json +55 -0
  4. package/data/migration-examples/complex-header-migration/after-section.tsx +64 -0
  5. package/data/migration-examples/complex-header-migration/before-props-summary.json +42 -0
  6. package/data/migration-examples/custom-dynamic-list-to-component-list/_meta.json +4 -0
  7. package/data/migration-examples/custom-dynamic-list-to-component-list/after-child-styles.css +38 -0
  8. package/data/migration-examples/custom-dynamic-list-to-component-list/after-child.tsx +22 -0
  9. package/data/migration-examples/custom-dynamic-list-to-component-list/after-config-snippet.json +31 -0
  10. package/data/migration-examples/custom-dynamic-list-to-component-list/after-section-styles.css +25 -0
  11. package/data/migration-examples/custom-dynamic-list-to-component-list/after-section.tsx +17 -0
  12. package/data/migration-examples/custom-dynamic-list-to-component-list/before-component.tsx +32 -0
  13. package/data/migration-examples/custom-dynamic-list-to-component-list/before-theme-snippet.json +53 -0
  14. package/data/migration-examples/full-component-with-tailwind/_meta.json +4 -0
  15. package/data/migration-examples/full-component-with-tailwind/after-component.tsx +43 -0
  16. package/data/migration-examples/full-component-with-tailwind/after-config-snippet.json +25 -0
  17. package/data/migration-examples/full-component-with-tailwind/after-styles.css +99 -0
  18. package/data/migration-examples/full-component-with-tailwind/before-component.tsx +60 -0
  19. package/data/migration-examples/object-custom-to-inline-props/_meta.json +4 -0
  20. package/data/migration-examples/object-custom-to-inline-props/after-component.tsx +34 -0
  21. package/data/migration-examples/object-custom-to-inline-props/after-config-snippet.json +23 -0
  22. package/data/migration-examples/object-custom-to-inline-props/after-styles.css +38 -0
  23. package/data/migration-examples/object-custom-to-inline-props/before-component.tsx +30 -0
  24. package/data/migration-examples/object-custom-to-inline-props/before-theme-snippet.json +26 -0
  25. package/data/migration-examples/slider-library-replacement/_meta.json +4 -0
  26. package/data/migration-examples/slider-library-replacement/after-child.tsx +13 -0
  27. package/data/migration-examples/slider-library-replacement/after-config-snippet.json +29 -0
  28. package/data/migration-examples/slider-library-replacement/after-section.tsx +38 -0
  29. package/data/migration-examples/slider-library-replacement/after-styles.css +43 -0
  30. package/data/migration-examples/slider-library-replacement/before-component.tsx +39 -0
  31. package/data/migration-examples/slider-library-replacement/before-types-snippet.ts +14 -0
  32. package/data/migration.json +260 -0
  33. package/data/section-templates/account-info-section/children/AccountFavorites/ikas-config-snippet.json +3 -3
  34. package/data/section-templates/account-info-section/ikas-config-snippet.json +5 -5
  35. package/data/section-templates/category-images-section/ikas-config-snippet.json +1 -1
  36. package/data/section-templates/category-list-section/ikas-config-snippet.json +3 -3
  37. package/data/section-templates/component-renderer/ikas-config-snippet.json +3 -3
  38. package/data/section-templates/features-section/ikas-config-snippet.json +1 -1
  39. package/data/section-templates/footer-section/ikas-config-snippet.json +1 -1
  40. package/data/section-templates/header-section/children/Announcements/ikas-config-snippet.json +1 -1
  41. package/data/section-templates/header-section/children/Navbar/ikas-config-snippet.json +3 -3
  42. package/data/section-templates/header-section/ikas-config-snippet.json +3 -3
  43. package/data/section-templates/hero-slider-section/ikas-config-snippet.json +1 -1
  44. package/data/section-templates/image-handling/ikas-config-snippet.json +13 -13
  45. package/data/section-templates/navigation/ikas-config-snippet.json +3 -3
  46. package/data/section-templates/product-detail-section/children/ProductDetailDescription/ikas-config-snippet.json +1 -1
  47. package/data/section-templates/product-detail-section/children/ProductDetailFeatures/ikas-config-snippet.json +1 -1
  48. package/data/section-templates/product-detail-section/ikas-config-snippet.json +13 -13
  49. package/data/section-templates/product-slider-section/ikas-config-snippet.json +3 -3
  50. package/data/storefront-api.json +27 -1
  51. package/data/storefront-types.json +2 -1
  52. package/dist/index.js +1737 -47
  53. package/dist/index.js.map +1 -1
  54. package/package.json +1 -1
@@ -33,17 +33,17 @@
33
33
  "type": "COMPONENT_LIST",
34
34
  "required": false,
35
35
  "filteredComponentIds": [
36
- "{{PROJECT_ID}}-product-detail-name-favorite",
37
- "{{PROJECT_ID}}-product-detail-sku",
38
- "{{PROJECT_ID}}-product-detail-prices",
39
- "{{PROJECT_ID}}-product-detail-product-group",
40
- "{{PROJECT_ID}}-product-detail-variant",
41
- "{{PROJECT_ID}}-product-detail-add-to-cart",
42
- "{{PROJECT_ID}}-product-detail-features",
43
- "{{PROJECT_ID}}-product-detail-description",
44
- "{{PROJECT_ID}}-product-detail-bundle-product",
45
- "{{PROJECT_ID}}-product-detail-option-set",
46
- "{{PROJECT_ID}}-product-detail-offer"
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
- "{{PROJECT_ID}}-product-detail-bundle-furniture",
56
- "{{PROJECT_ID}}-product-detail-offer"
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
- "{{PROJECT_ID}}-card-product-price",
230
- "{{PROJECT_ID}}-card-product-variants",
231
- "{{PROJECT_ID}}-card-product-name"
229
+ "<id-of-CardProductPrice>",
230
+ "<id-of-CardProductVariants>",
231
+ "<id-of-CardProductName>"
232
232
  ]
233
233
  },
234
234
  {
@@ -64,7 +64,7 @@
64
64
  "type": "COMPONENT_LIST",
65
65
  "required": false,
66
66
  "filteredComponentIds": [
67
- "{{PROJECT_ID}}-collapsible-content"
67
+ "<id-of-CollapsibleContent>"
68
68
  ]
69
69
  }
70
70
  ],
@@ -43,7 +43,7 @@
43
43
  "type": "COMPONENT_LIST",
44
44
  "required": false,
45
45
  "filteredComponentIds": [
46
- "{{PROJECT_ID}}-product-detail-feature-item"
46
+ "<id-of-ProductDetailFeatureItem>"
47
47
  ]
48
48
  }
49
49
  ],
@@ -33,17 +33,17 @@
33
33
  "type": "COMPONENT_LIST",
34
34
  "required": false,
35
35
  "filteredComponentIds": [
36
- "{{PROJECT_ID}}-product-detail-name-favorite",
37
- "{{PROJECT_ID}}-product-detail-sku",
38
- "{{PROJECT_ID}}-product-detail-prices",
39
- "{{PROJECT_ID}}-product-detail-product-group",
40
- "{{PROJECT_ID}}-product-detail-variant",
41
- "{{PROJECT_ID}}-product-detail-add-to-cart",
42
- "{{PROJECT_ID}}-product-detail-features",
43
- "{{PROJECT_ID}}-product-detail-description",
44
- "{{PROJECT_ID}}-product-detail-bundle-product",
45
- "{{PROJECT_ID}}-product-detail-option-set",
46
- "{{PROJECT_ID}}-product-detail-offer"
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
- "{{PROJECT_ID}}-product-detail-bundle-furniture",
56
- "{{PROJECT_ID}}-product-detail-offer"
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
- "{{PROJECT_ID}}-card-product-price",
99
- "{{PROJECT_ID}}-card-product-variants",
100
- "{{PROJECT_ID}}-card-product-name"
98
+ "<id-of-CardProductPrice>",
99
+ "<id-of-CardProductVariants>",
100
+ "<id-of-CardProductName>"
101
101
  ]
102
102
  },
103
103
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-05-08T10:27:55.222Z",
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-08T10:27:55.248Z",
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"