@avocadostudio-ai/cli 0.13.1 → 0.14.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.
@@ -1 +1 @@
1
- import{d as a,f as d,S as p,H as c,i as f}from"./PuckPrototypeRoute-_6Min3Bi.js";import{a as g}from"./index-Dj-sefm6.js";import{j as h}from"./index-t4GQF_RE.js";import"./index-5d4qIjDD.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
+ import{d as a,f as d,S as p,H as c,i as f}from"./PuckPrototypeRoute-B7q3SeBT.js";import{a as g}from"./index-CxCnZahh.js";import{j as h}from"./index-DanvInLA.js";import"./index-BbaDdHeb.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-_6Min3Bi.js";import{a as f}from"./index-Dj-sefm6.js";import{j as m}from"./index-t4GQF_RE.js";import"./index-5d4qIjDD.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
+ import{d as r,h as a,S as d,j as c,i as p}from"./PuckPrototypeRoute-B7q3SeBT.js";import{a as f}from"./index-CxCnZahh.js";import{j as m}from"./index-DanvInLA.js";import"./index-BbaDdHeb.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-_6Min3Bi.js";import{a as p}from"./index-Dj-sefm6.js";import{j as m}from"./index-t4GQF_RE.js";import"./index-5d4qIjDD.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};
1
+ import{d as u,e as f,S as g,A,i as v}from"./PuckPrototypeRoute-B7q3SeBT.js";import{a as p}from"./index-CxCnZahh.js";import{j as m}from"./index-DanvInLA.js";import"./index-BbaDdHeb.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};
@@ -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-t4GQF_RE.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-DanvInLA.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-COl-vK1T.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@avocadostudio-ai/cli",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "description": "Self-host launcher for the Avocado Studio editor UI",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "bin": {
8
+ "avocado-studio": "./dist/index.js",
8
9
  "avocadostudio": "./dist/index.js"
9
10
  },
10
11
  "files": [
@@ -39,12 +40,13 @@
39
40
  "esbuild": "^0.24.0",
40
41
  "tsx": "^4.19.0",
41
42
  "typescript": "^5.7.3",
42
- "@avocadostudio-ai/shared": "0.13.1"
43
+ "@avocadostudio-ai/shared": "0.14.0"
43
44
  },
44
45
  "scripts": {
45
46
  "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'",
46
47
  "dev": "tsx src/index.ts",
47
48
  "typecheck": "tsc --noEmit",
48
- "sync-editor": "rm -rf editor-dist && cp -R ../../apps/editor/dist editor-dist"
49
+ "sync-editor": "rm -rf editor-dist && cp -R ../../apps/editor/dist editor-dist",
50
+ "test": "NODE_ENV=test node ../../scripts/run-tests.mjs"
49
51
  }
50
52
  }