@ikas/code-components-mcp 1.4.0-beta.157 → 1.4.0-beta.159

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 (46) hide show
  1. package/data/framework.json +10 -4
  2. package/data/section-templates/account-info-section/children/AccountFavorites/ikas-config-snippet.json +13 -0
  3. package/data/section-templates/account-info-section/ikas-config-snippet.json +19 -0
  4. package/data/section-templates/add-to-cart/ikas-config-snippet.json +17 -0
  5. package/data/section-templates/blog-home-section/ikas-config-snippet.json +2 -0
  6. package/data/section-templates/blog-post-section/ikas-config-snippet.json +2 -0
  7. package/data/section-templates/bundle-products/ikas-config-snippet.json +20 -0
  8. package/data/section-templates/category-images-section/children/CategoryImageItem/ikas-config-snippet.json +4 -0
  9. package/data/section-templates/category-images-section/ikas-config-snippet.json +15 -0
  10. package/data/section-templates/category-list-section/children/CardProductName/ikas-config-snippet.json +2 -1
  11. package/data/section-templates/category-list-section/ikas-config-snippet.json +21 -0
  12. package/data/section-templates/component-renderer/ikas-config-snippet.json +13 -0
  13. package/data/section-templates/favorites/ikas-config-snippet.json +18 -1
  14. package/data/section-templates/features-section/ikas-config-snippet.json +13 -0
  15. package/data/section-templates/footer-section/ikas-config-snippet.json +15 -0
  16. package/data/section-templates/header-section/children/Announcements/ikas-config-snippet.json +7 -0
  17. package/data/section-templates/header-section/children/CookieBar/ikas-config-snippet.json +3 -0
  18. package/data/section-templates/header-section/children/Navbar/ikas-config-snippet.json +27 -0
  19. package/data/section-templates/header-section/ikas-config-snippet.json +13 -0
  20. package/data/section-templates/hero-slider-section/children/HeroSliderItem/ikas-config-snippet.json +18 -0
  21. package/data/section-templates/hero-slider-section/ikas-config-snippet.json +13 -0
  22. package/data/section-templates/image-handling/ikas-config-snippet.json +52 -0
  23. package/data/section-templates/login-section/ikas-config-snippet.json +2 -0
  24. package/data/section-templates/navigation/ikas-config-snippet.json +27 -0
  25. package/data/section-templates/product-detail-section/children/ProductDetailAddToCart/ikas-config-snippet.json +17 -0
  26. package/data/section-templates/product-detail-section/children/ProductDetailBackInStock/ikas-config-snippet.json +16 -0
  27. package/data/section-templates/product-detail-section/children/ProductDetailBundleFurniture/ikas-config-snippet.json +18 -0
  28. package/data/section-templates/product-detail-section/children/ProductDetailBundleProduct/ikas-config-snippet.json +20 -0
  29. package/data/section-templates/product-detail-section/children/ProductDetailDescription/ikas-config-snippet.json +27 -0
  30. package/data/section-templates/product-detail-section/children/ProductDetailFeatures/ikas-config-snippet.json +29 -0
  31. package/data/section-templates/product-detail-section/children/ProductDetailNameFavorite/ikas-config-snippet.json +18 -1
  32. package/data/section-templates/product-detail-section/children/ProductDetailOffer/ikas-config-snippet.json +20 -0
  33. package/data/section-templates/product-detail-section/children/ProductDetailOptionSet/ikas-config-snippet.json +16 -0
  34. package/data/section-templates/product-detail-section/children/ProductDetailPrices/ikas-config-snippet.json +16 -0
  35. package/data/section-templates/product-detail-section/children/ProductDetailProductGroup/ikas-config-snippet.json +16 -0
  36. package/data/section-templates/product-detail-section/children/ProductDetailSku/ikas-config-snippet.json +16 -0
  37. package/data/section-templates/product-detail-section/children/ProductDetailVariant/ikas-config-snippet.json +17 -0
  38. package/data/section-templates/product-detail-section/ikas-config-snippet.json +52 -0
  39. package/data/section-templates/product-pricing/ikas-config-snippet.json +16 -0
  40. package/data/section-templates/product-slider-section/children/CardProductName/ikas-config-snippet.json +2 -1
  41. package/data/section-templates/product-slider-section/ikas-config-snippet.json +17 -0
  42. package/data/section-templates/register-section/ikas-config-snippet.json +2 -0
  43. package/data/section-templates/variant-selection/ikas-config-snippet.json +17 -0
  44. package/data/storefront-api.json +33 -1
  45. package/data/storefront-types.json +1 -1
  46. package/package.json +1 -1
@@ -57,6 +57,7 @@
57
57
  "displayName": "Column Count",
58
58
  "type": "ENUM",
59
59
  "required": false,
60
+ "defaultValue": "Four",
60
61
  "groupId": "appearance",
61
62
  "enumTypeId": "{{ENUM_ID:NumberOfColumns}}"
62
63
  },
@@ -65,6 +66,7 @@
65
66
  "displayName": "Aspect Ratio",
66
67
  "type": "ENUM",
67
68
  "required": false,
69
+ "defaultValue": "Square",
68
70
  "groupId": "appearance",
69
71
  "enumTypeId": "{{ENUM_ID:AspectRatio}}"
70
72
  },
@@ -73,6 +75,7 @@
73
75
  "displayName": "Image Fit",
74
76
  "type": "ENUM",
75
77
  "required": false,
78
+ "defaultValue": "Cover",
76
79
  "groupId": "appearance",
77
80
  "enumTypeId": "{{ENUM_ID:ObjectFit}}"
78
81
  },
@@ -81,6 +84,7 @@
81
84
  "displayName": "Hide Add to Cart Button",
82
85
  "type": "BOOLEAN",
83
86
  "required": false,
87
+ "defaultValue": false,
84
88
  "groupId": "appearance"
85
89
  },
86
90
  {
@@ -88,6 +92,19 @@
88
92
  "displayName": "Components",
89
93
  "type": "COMPONENT_LIST",
90
94
  "required": false,
95
+ "defaultValue": {
96
+ "components": [
97
+ {
98
+ "codeComponentId": "nb34u3yu-card-product-name"
99
+ },
100
+ {
101
+ "codeComponentId": "nb34u3yu-card-product-variants"
102
+ },
103
+ {
104
+ "codeComponentId": "nb34u3yu-card-product-price"
105
+ }
106
+ ]
107
+ },
91
108
  "privateVarMap": {
92
109
  "product": {
93
110
  "id": "pvm_1772803530689_1",
@@ -142,6 +142,7 @@
142
142
  "displayName": "Google Login",
143
143
  "type": "BOOLEAN",
144
144
  "required": false,
145
+ "defaultValue": false,
145
146
  "groupId": "google"
146
147
  },
147
148
  {
@@ -157,6 +158,7 @@
157
158
  "displayName": "Facebook Login",
158
159
  "type": "BOOLEAN",
159
160
  "required": false,
161
+ "defaultValue": false,
160
162
  "groupId": "facebook"
161
163
  },
162
164
  {
@@ -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
  ],
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-08-06T07:34:39.149Z",
2
+ "generatedAt": "2026-08-07T13:07:57.580Z",
3
3
  "functions": [
4
4
  {
5
5
  "name": "apiListProductBrand",
@@ -15273,6 +15273,38 @@
15273
15273
  "IkasComponentRendererProps"
15274
15274
  ]
15275
15275
  },
15276
+ {
15277
+ "name": "formatCurrency",
15278
+ "signature": "function formatCurrency(price: number, currencyCode: string, currencySymbol: string | null): string",
15279
+ "description": "Format a free-standing amount with the merchant's currency format settings. Use this for\namounts that are NOT tied to a model (remaining amount to free shipping, gift wrap threshold,\nbulk discount limits, cart limit warnings). For model-bound prices, prefer the\n`get*FormattedPrice` helpers — they call this function internally.\n\nApplies the merchant's `currencyFormats` entry for the given currency code (symbol,\nsymbolPosition, thousandSeparator, decimalSeparator, omitZeroDecimal). Behavior details:\nalways two decimal places, and a space between the symbol and the number. `omitZeroDecimal`\ndrops the fraction only when it is exactly `00`.\n\nDo NOT use `Intl.NumberFormat` for currency — it falls back to the browser locale and\nproduces a format that conflicts with platform-formatted prices on the same screen.",
15280
+ "params": [
15281
+ {
15282
+ "name": "price",
15283
+ "description": "- The amount to format"
15284
+ },
15285
+ {
15286
+ "name": "currencyCode",
15287
+ "description": "- Currency code used to look up the merchant format settings (e.g. \"TRY\", \"USD\")"
15288
+ },
15289
+ {
15290
+ "name": "currencySymbol",
15291
+ "description": "- Fallback symbol used when the merchant has no format entry for the code.\nAlways pass the symbol from the model you took the amount from (e.g. `cart.currencySymbol`) —\npassing `null` can render the amount with no symbol at all."
15292
+ }
15293
+ ],
15294
+ "returns": "The amount formatted with the merchant's currency format (e.g. \"₺ 1,950.00\")",
15295
+ "returnType": "string",
15296
+ "example": "```typescript\nimport { cartStore, formatCurrency } from \"@ikas/bp-storefront\";\n\nfunction FreeShippingBar({ threshold }: { threshold: number }) {\n const cart = cartStore.cart;\n if (!cart) return null;\n\n const remaining = threshold - cart.totalFinalPrice;\n if (remaining <= 0) return <span>Free shipping unlocked!</span>;\n\n return <span>Add {formatCurrency(remaining, cart.currencyCode, cart.currencySymbol)} more for free shipping</span>;\n}\n```",
15297
+ "categories": [
15298
+ "Pricing"
15299
+ ],
15300
+ "related": [
15301
+ "getProductVariantFormattedFinalPrice",
15302
+ "getOrderLineItemFormattedFinalPrice",
15303
+ "getIkasOrderFormattedTotalFinalPrice"
15304
+ ],
15305
+ "isAsync": false,
15306
+ "isClass": false
15307
+ },
15276
15308
  {
15277
15309
  "name": "httpRequest",
15278
15310
  "signature": "async function httpRequest(url: string, method: HttpMethod, body?: Record<string, any>, headers?: Record<string, string>): Promise<FetchResponse>",
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-08-06T07:34:39.174Z",
2
+ "generatedAt": "2026-08-07T13:07:57.610Z",
3
3
  "types": [
4
4
  {
5
5
  "name": "TextElementTagTypes",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/code-components-mcp",
3
- "version": "1.4.0-beta.157",
3
+ "version": "1.4.0-beta.159",
4
4
  "description": "MCP server for ikas code components documentation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",