@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.
@@ -1 +1 @@
1
- import{d as a,f as d,S as p,H as c,i as f}from"./PuckPrototypeRoute-CIpO3h9H.js";import{a as g}from"./index-DaRt8zrp.js";import{j as h}from"./index-CM2p2yNB.js";import"./index-Cqq_JD7D.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-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-CIpO3h9H.js";import{a as f}from"./index-DaRt8zrp.js";import{j as m}from"./index-CM2p2yNB.js";import"./index-Cqq_JD7D.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-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-CIpO3h9H.js";import{a as p}from"./index-DaRt8zrp.js";import{j as m}from"./index-CM2p2yNB.js";import"./index-Cqq_JD7D.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-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};
@@ -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-CM2p2yNB.js"></script>
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.0",
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.0"
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'",