@ikas/code-components-mcp 1.4.0-beta.83 → 1.4.0-beta.84

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-06-22T22:22:59.546Z",
2
+ "generatedAt": "2026-06-23T09:48:26.240Z",
3
3
  "functions": [
4
4
  {
5
5
  "name": "apiListProductBrand",
@@ -2815,7 +2815,7 @@
2815
2815
  {
2816
2816
  "name": "getSrc",
2817
2817
  "signature": "function getSrc(image: IkasImage, size: number): string",
2818
- "description": "Generates the full CDN source URL for an image or video at the specified size, handling both legacy path-based and merchant-scoped ID formats.",
2818
+ "description": "Generates the full CDN source URL for an image or video at the specified size, handling both legacy path-based and merchant-scoped ID formats.\n\nNOTE: For videos (`image.isVideo === true`) the `size` argument is IGNORED — the original .mp4 is always returned.\nSo `getSrc(item, 240)` and `getDefaultSrc(item)` produce the identical URL for a video. PREFER `getDefaultSrc(item)`\nfor video `src` (no size param) — do NOT pass an arbitrary size like `getSrc(item, 240)`, it is misleading.",
2819
2819
  "params": [
2820
2820
  {
2821
2821
  "name": "image",
@@ -2823,12 +2823,12 @@
2823
2823
  },
2824
2824
  {
2825
2825
  "name": "size",
2826
- "description": "- The desired image width in pixels for the generated URL."
2826
+ "description": "- The desired image width in pixels. Ignored for videos."
2827
2827
  }
2828
2828
  ],
2829
2829
  "returns": "The full CDN URL string for the image or video.",
2830
2830
  "returnType": "string",
2831
- "example": "```typescript\nimport { getSrc } from \"@ikas/bp-storefront\";\n\nconst src = getSrc(image, 640);\nconsole.log(src); // \"https://cdn.example.com/images/.../640/image.webp\"\n```",
2831
+ "example": "```typescript\nimport { getSrc, getDefaultSrc } from \"@ikas/bp-storefront\";\n\nconst src = getSrc(image, 640);\nconsole.log(src); // \"https://cdn.example.com/images/.../640/image.webp\"\n\n// For a video, use getDefaultSrc (size is ignored anyway):\n<video src={getDefaultSrc(item)} muted playsInline preload=\"metadata\" />\n```",
2832
2832
  "categories": [
2833
2833
  "Image"
2834
2834
  ],
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-06-22T22:22:59.620Z",
2
+ "generatedAt": "2026-06-23T09:48:26.260Z",
3
3
  "types": [
4
4
  {
5
5
  "name": "IkasProductAttributeDetail",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/code-components-mcp",
3
- "version": "1.4.0-beta.83",
3
+ "version": "1.4.0-beta.84",
4
4
  "description": "MCP server for ikas code components documentation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",