@ikas/code-components-mcp 2.7.0 → 2.8.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.
@@ -9,15 +9,16 @@ import {
9
9
  cartStore,
10
10
  waitForCartStoreInit,
11
11
  } from "@ikas/bp-storefront";
12
- import { runInAction } from "mobx";
13
12
  import { adjustBundleProductQuantity } from "../utils/bundle";
14
13
 
14
+ // No mobx action wrapper needed: adjustments go through the public
15
+ // setBundleProductQuantity API (plain mutation, same as the SDK's own usage
16
+ // examples), and keeping the theme free of direct mobx imports lets the
17
+ // scaffold install cleanly under pnpm's strict node_modules layout.
15
18
  function adjustBundleQuantities(products: IkasBundleProduct[]) {
16
- runInAction(() => {
17
- for (const bp of products) {
18
- adjustBundleProductQuantity(bp);
19
- }
20
- });
19
+ for (const bp of products) {
20
+ adjustBundleProductQuantity(bp);
21
+ }
21
22
  }
22
23
 
23
24
  export function useBundleProducts(product: IkasProduct | null | undefined) {
@@ -9,15 +9,16 @@ import {
9
9
  cartStore,
10
10
  waitForCartStoreInit,
11
11
  } from "@ikas/bp-storefront";
12
- import { runInAction } from "mobx";
13
12
  import { adjustBundleProductQuantity } from "../utils/bundle";
14
13
 
14
+ // No mobx action wrapper needed: adjustments go through the public
15
+ // setBundleProductQuantity API (plain mutation, same as the SDK's own usage
16
+ // examples), and keeping the theme free of direct mobx imports lets the
17
+ // scaffold install cleanly under pnpm's strict node_modules layout.
15
18
  function adjustBundleQuantities(products: IkasBundleProduct[]) {
16
- runInAction(() => {
17
- for (const bp of products) {
18
- adjustBundleProductQuantity(bp);
19
- }
20
- });
19
+ for (const bp of products) {
20
+ adjustBundleProductQuantity(bp);
21
+ }
21
22
  }
22
23
 
23
24
  export function useBundleProducts(product: IkasProduct | null | undefined) {
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-07-27T13:33:15.430Z",
2
+ "generatedAt": "2026-08-06T12:38:22.802Z",
3
3
  "functions": [
4
4
  {
5
5
  "name": "apiListProductBrand",
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-07-27T13:33:15.460Z",
2
+ "generatedAt": "2026-08-06T12:38:22.835Z",
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": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "MCP server for ikas code components documentation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",