@mulmochat-plugin/ui-image 0.4.0 → 0.4.1
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.
- package/README.md +6 -1
- package/dist/index.cjs +1 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -48,4 +48,9 @@ interface ImageToolData {
|
|
|
48
48
|
imageData: string; // Base64 encoded image data URL
|
|
49
49
|
prompt?: string; // Optional prompt used to generate the image
|
|
50
50
|
}
|
|
51
|
-
```
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Related
|
|
54
|
+
|
|
55
|
+
- Protocol spec: [gui-chat-protocol](https://github.com/receptron/gui-chat-protocol)
|
|
56
|
+
- Reference implementations using this protocol: [mulmoclaude](https://github.com/receptron/mulmoclaude) · [MulmoChat](https://github.com/receptron/MulmoChat)
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("vue");var t={class:`w-full h-full overflow-y-auto`},n={class:`min-h-full flex flex-col items-center justify-center p-4`},r={class:`flex-1 flex items-center justify-center min-h-0`},i=[`src`],a={key:0,class:`mt-4 p-3 bg-gray-100 dark:bg-gray-800 rounded-lg max-w-full flex-shrink-0`},o={class:`text-sm text-gray-700 dark:text-gray-300`},s=(0,e.defineComponent)({__name:`ImageView`,props:{selectedResult:{}},setup(s){return(c,l)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,t,[(0,e.createElementVNode)(`div`,n,[(0,e.createElementVNode)(`div`,r,[(0,e.createElementVNode)(`img`,{src:s.selectedResult.data?.imageData,class:`max-w-full max-h-full object-contain rounded`,alt:`Current generated image`},null,8,i)]),s.selectedResult.data?.prompt?((0,e.openBlock)(),(0,e.createElementBlock)(`div`,a,[(0,e.createElementVNode)(`p`,o,[l[0]||=(0,e.createElementVNode)(`span`,{class:`font-medium`},`Prompt:`,-1),(0,e.createTextVNode)(` `+(0,e.toDisplayString)(s.selectedResult.data.prompt),1)])])):(0,e.createCommentVNode)(``,!0)])]))}}),c={class:`min-h-24 flex items-center justify-center`},l=[`src`],u={key:1,class:`text-gray-400 text-sm`},d=(0,e.defineComponent)({__name:`ImagePreview`,props:{result:{}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createElementBlock)(`div`,c,[t.result.data?.imageData?((0,e.openBlock)(),(0,e.createElementBlock)(`img`,{key:0,src:t.result.data.imageData,class:`max-w-full h-auto rounded`,alt:`Generated image`},null,8,l)):((0,e.openBlock)(),(0,e.createElementBlock)(`div`,u,`No image yet`))]))}});exports.ImagePreview=d,exports.ImageView=s;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mulmochat-plugin/ui-image",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Shared image UI components for MulmoChat plugins",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@eslint/js": "^10.0.1",
|
|
30
|
-
"@tailwindcss/vite": "^4.2
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
32
|
-
"@typescript-eslint/parser": "^8.
|
|
33
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
34
|
-
"eslint": "^10.
|
|
35
|
-
"eslint-plugin-vue": "^10.9.
|
|
36
|
-
"globals": "^17.
|
|
37
|
-
"tailwindcss": "^4.2
|
|
30
|
+
"@tailwindcss/vite": "^4.3.2",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^8.64.0",
|
|
32
|
+
"@typescript-eslint/parser": "^8.64.0",
|
|
33
|
+
"@vitejs/plugin-vue": "^6.0.8",
|
|
34
|
+
"eslint": "^10.7.0",
|
|
35
|
+
"eslint-plugin-vue": "^10.9.2",
|
|
36
|
+
"globals": "^17.7.0",
|
|
37
|
+
"tailwindcss": "^4.3.2",
|
|
38
38
|
"typescript": "~6.0.3",
|
|
39
|
-
"vite": "^8.
|
|
40
|
-
"vue": "^3.5.
|
|
41
|
-
"vue-eslint-parser": "^10.4.
|
|
42
|
-
"vue-tsc": "^3.
|
|
39
|
+
"vite": "^8.1.4",
|
|
40
|
+
"vue": "^3.5.39",
|
|
41
|
+
"vue-eslint-parser": "^10.4.1",
|
|
42
|
+
"vue-tsc": "^3.3.7"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [
|
|
45
45
|
"mulmochat",
|