@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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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) {
|
package/data/storefront-api.json
CHANGED