@ikas/code-components-mcp 2.12.0 → 2.13.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-10-14T12:32:20.866Z",
2
+ "generatedAt": "2026-10-21T07:48:05.474Z",
3
3
  "functions": [
4
4
  {
5
5
  "name": "apiListProductBrand",
@@ -5909,6 +5909,34 @@
5909
5909
  "IkasProductStockLocations"
5910
5910
  ]
5911
5911
  },
5912
+ {
5913
+ "name": "updateProductPrices",
5914
+ "displayName": "updatePrices",
5915
+ "signature": "async function updateProductPrices(product: IkasProduct): Promise<void>",
5916
+ "description": "Re-fetch the latest variant prices of a product and apply them in place.\nUseful when the page is served from cache but prices change frequently (e.g. gold prices),\ncall it once the product is mounted on the browser.",
5917
+ "params": [
5918
+ {
5919
+ "name": "product",
5920
+ "description": "- The product to refresh prices for (modified in place)"
5921
+ }
5922
+ ],
5923
+ "returns": "void",
5924
+ "returnType": "Promise<void>",
5925
+ "example": "```typescript\nimport { updateProductPrices } from \"@ikas/bp-storefront\";\n\nuseEffect(() => {\n updateProductPrices(product);\n}, [product]);\n```",
5926
+ "categories": [
5927
+ "Product",
5928
+ "Pricing"
5929
+ ],
5930
+ "related": [
5931
+ "updateProductListPrices",
5932
+ "getProductVariantFormattedFinalPrice"
5933
+ ],
5934
+ "isAsync": true,
5935
+ "isClass": false,
5936
+ "parameterTypes": [
5937
+ "IkasProduct"
5938
+ ]
5939
+ },
5912
5940
  {
5913
5941
  "name": "getProductOptionSet",
5914
5942
  "signature": "async function getProductOptionSet(product: IkasProduct): Promise<boolean>",
@@ -9338,6 +9366,34 @@
9338
9366
  "IkasProductList"
9339
9367
  ]
9340
9368
  },
9369
+ {
9370
+ "name": "updateProductListPrices",
9371
+ "displayName": "updatePrices",
9372
+ "signature": "async function updateProductListPrices(list: IkasProductList): Promise<void>",
9373
+ "description": "Re-fetches the latest variant prices of the products in the list and applies them in place.\nUseful when the page is served from cache but prices change frequently (e.g. gold prices),\ncall it once the list is mounted on the browser.",
9374
+ "params": [
9375
+ {
9376
+ "name": "list",
9377
+ "description": "- The product list to refresh prices for"
9378
+ }
9379
+ ],
9380
+ "returns": "void",
9381
+ "returnType": "Promise<void>",
9382
+ "example": "```typescript\nimport { updateProductListPrices } from \"@ikas/bp-storefront\";\n\nuseEffect(() => {\n updateProductListPrices(productList);\n}, [productList]);\n```",
9383
+ "categories": [
9384
+ "ProductList",
9385
+ "Pricing"
9386
+ ],
9387
+ "related": [
9388
+ "updateProductPrices",
9389
+ "getProductListPage"
9390
+ ],
9391
+ "isAsync": true,
9392
+ "isClass": false,
9393
+ "parameterTypes": [
9394
+ "IkasProductList"
9395
+ ]
9396
+ },
9341
9397
  {
9342
9398
  "name": "setSortType",
9343
9399
  "signature": "async function setSortType(list: IkasProductList, sortType: IkasProductListSortType): Promise<void>",
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-10-14T12:32:20.962Z",
2
+ "generatedAt": "2026-10-21T07:48:05.500Z",
3
3
  "types": [
4
4
  {
5
5
  "name": "TextElementTagTypes",
@@ -10139,6 +10139,7 @@
10139
10139
  "selectVariantValue",
10140
10140
  "getProductCampaigns",
10141
10141
  "getProductAvailableStockLocations",
10142
+ "updateProductPrices",
10142
10143
  "getProductOptionSet",
10143
10144
  "initBundleProducts",
10144
10145
  "getBundleProductsOfVariant",
@@ -11678,6 +11679,7 @@
11678
11679
  "getProductListPrevPage",
11679
11680
  "getProductListNextPage",
11680
11681
  "getProductListPage",
11682
+ "updateProductListPrices",
11681
11683
  "setSortType",
11682
11684
  "getProductListSortTypeTranslation",
11683
11685
  "translateProductListSortType",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/code-components-mcp",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "MCP server for ikas code components documentation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",