@avocadostudio-ai/cli 0.2.0 → 0.2.3
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/dist/index.js +27 -2
- package/editor-dist/assets/{Editor-EPSED64A-5GXOZwWs.js → Editor-EPSED64A-YtSBgaS_.js} +1 -1
- package/editor-dist/assets/{PuckPrototypeRoute-CIpO3h9H.js → PuckPrototypeRoute-BwddMbpI.js} +4 -4
- package/editor-dist/assets/{Render-CU35UAWV-C1VtWmg6.js → Render-CU35UAWV-CdB4j8Zf.js} +1 -1
- package/editor-dist/assets/{chunk-2CNEFIQP-W9Nm3hTe.js → chunk-2CNEFIQP-BEvjYAzz.js} +1 -1
- package/editor-dist/assets/{full-N67EAB2Q-5hqHUblQ.js → full-N67EAB2Q-BE3ta1QL.js} +1 -1
- package/editor-dist/assets/{index-Cqq_JD7D.js → index-BIO9LV_Q.js} +1 -1
- package/editor-dist/assets/{index-DaRt8zrp.js → index-Ch2BbKKJ.js} +1 -1
- package/editor-dist/assets/{index-CM2p2yNB.js → index-Dk7FjLY8.js} +155 -155
- package/editor-dist/assets/{loaded-F37CNCVG-Cg4RQXYq.js → loaded-F37CNCVG-DSy1ncMG.js} +1 -1
- package/editor-dist/assets/{loaded-H325ZSK5-VDlQcHWH.js → loaded-H325ZSK5-DgxKelp8.js} +1 -1
- package/editor-dist/assets/{loaded-MIY725CK-DUPDdSS5.js → loaded-MIY725CK-CdGqnWHz.js} +1 -1
- package/editor-dist/index.html +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as a,f as d,S as p,H as c,i as f}from"./PuckPrototypeRoute-
|
|
1
|
+
import{d as a,f as d,S as p,H as c,i as f}from"./PuckPrototypeRoute-BwddMbpI.js";import{a as g}from"./index-Ch2BbKKJ.js";import{j as h}from"./index-Dk7FjLY8.js";import"./index-BIO9LV_Q.js";f();function x(){const{options:s}=a(),l=d(s),{editor:r}=a(),i=g({editor:r,selector:t=>{var e,n;if((e=t.editor)!=null&&e.isActive("paragraph"))return"p";for(let o=1;o<=6;o++)if((n=t.editor)!=null&&n.isActive("heading",{level:o}))return`h${o}`;return"p"}}),u=t=>{const e=r==null?void 0:r.chain();if(t==="p")e==null||e.focus().setParagraph().run();else{const n=parseInt(t.replace("h",""),10);e==null||e.focus().toggleHeading({level:n}).run()}};return h.jsx(p,{options:l,onChange:u,value:i??"p",defaultValue:"p",renderDefaultIcon:c})}export{x as HeadingSelectLoaded};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as r,h as a,S as d,j as c,i as p}from"./PuckPrototypeRoute-
|
|
1
|
+
import{d as r,h as a,S as d,j as c,i as p}from"./PuckPrototypeRoute-BwddMbpI.js";import{a as f}from"./index-Ch2BbKKJ.js";import{j as m}from"./index-Dk7FjLY8.js";import"./index-BIO9LV_Q.js";p();function C(){const{options:s}=r(),l=a(s),{editor:e}=r(),i=f({editor:e,selector:o=>{var t,n;return(t=o.editor)!=null&&t.isActive("bulletList")?"ul":(n=o.editor)!=null&&n.isActive("orderedList")?"ol":"p"}}),u=o=>{const t=e==null?void 0:e.chain();o==="p"?t==null||t.focus().setParagraph().run():o==="ol"?t==null||t.focus().toggleOrderedList().run():o==="ul"&&(t==null||t.focus().toggleBulletList().run())};return m.jsx(d,{options:l,onChange:u,value:i??"p",defaultValue:"p",renderDefaultIcon:c})}export{C as ListSelectLoaded};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as u,e as f,S as g,A,i as v}from"./PuckPrototypeRoute-
|
|
1
|
+
import{d as u,e as f,S as g,A,i as v}from"./PuckPrototypeRoute-BwddMbpI.js";import{a as p}from"./index-Ch2BbKKJ.js";import{j as m}from"./index-Dk7FjLY8.js";import"./index-BIO9LV_Q.js";v();function C(){var l;const{options:n}=u(),a=f(n),{editor:i}=u(),c=(l=p({editor:i,selector:t=>{var e,o,r,s;return(e=t.editor)!=null&&e.isActive({textAlign:"center"})?"center":(o=t.editor)!=null&&o.isActive({textAlign:"right"})?"right":(r=t.editor)!=null&&r.isActive({textAlign:"justify"})?"justify":n!=null&&n.textAlign&&(s=n.textAlign.defaultAlignment)!=null?s:"left"}}))!=null?l:"left",d=t=>{const e=i==null?void 0:i.chain();e==null||e.focus().setTextAlign(t).run()};return m.jsx(g,{options:a,onChange:d,value:c,defaultValue:"left",renderDefaultIcon:A})}export{C as AlignSelectLoaded};
|
package/editor-dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
7
7
|
<title>Avocado Studio</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-Dk7FjLY8.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-C0aP_ANq.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avocadostudio-ai/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Self-host launcher for the Avocado Studio editor UI",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"esbuild": "^0.24.0",
|
|
45
45
|
"tsx": "^4.19.0",
|
|
46
46
|
"typescript": "^5.7.3",
|
|
47
|
-
"@avocadostudio-ai/shared": "0.2.
|
|
47
|
+
"@avocadostudio-ai/shared": "0.2.3"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "rm -rf dist && esbuild src/index.ts --bundle --platform=node --target=node22 --format=esm --outfile=dist/index.js --banner:js='#!/usr/bin/env node'",
|