@avocadostudio-ai/cli 0.17.1 → 0.18.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{o as u,r as o,ag as l,ah as b,ai as C,j as a,aj as E}from"./index-BTVMPQf_.js";import{v as S}from"./index-ConbXlR3.js";var g=(...n)=>t=>{n.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},w=({contentComponent:n})=>{const t=l.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getServerSnapshot);return a.jsx(a.Fragment,{children:Object.values(t)})};function y(){const n=new Set;let t={};return{subscribe(r){return n.add(r),()=>{n.delete(r)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(r,e){t={...t,[r]:E.createPortal(e.reactElement,e.element,r)},n.forEach(i=>i())},removeRenderer(r){const e={...t};delete e[r],t=e,n.forEach(i=>i())}}}var x=class extends u.Component{constructor(n){var t;super(n),this.editorContentRef=u.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!((t=n.editor)!=null&&t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var n;const t=this.props.editor;if(t&&!t.isDestroyed&&((n=t.view.dom)!=null&&n.parentNode)){if(t.contentComponent)return;const r=this.editorContentRef.current;r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r}),t.contentComponent=y(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var n;const t=this.props.editor;if(t){this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null;try{if(!((n=t.view.dom)!=null&&n.parentNode))return;const r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){const{editor:n,innerRef:t,...r}=this.props;return a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:g(t,this.editorContentRef),...r}),(n==null?void 0:n.contentComponent)&&a.jsx(w,{contentComponent:n.contentComponent})]})}},D=o.forwardRef((n,t)=>{const r=u.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[n.editor]);return u.createElement(x,{key:r,innerRef:t,...n})}),R=u.memo(D),T=typeof window<"u"?o.useLayoutEffect:o.useEffect,_=class{constructor(n){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=n,this.lastSnapshot={editor:n,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(n){return this.subscribers.add(n),()=>{this.subscribers.delete(n)}}watch(n){if(this.editor=n,this.editor){const t=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},r=this.editor;return r.on("transaction",t),()=>{r.off("transaction",t)}}}};function N(n){var t;const[r]=o.useState(()=>new _(n.editor)),e=b.useSyncExternalStoreWithSelector(r.subscribe,r.getSnapshot,r.getServerSnapshot,n.selector,(t=n.equalityFn)!=null?t:C);return T(()=>r.watch(n.editor),[n.editor,r]),o.useDebugValue(e),e}var I=!1,d=typeof window>"u",M=d||!!(typeof window<"u"&&window.next),j=class p{constructor(t){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=t,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(t){this.editor=t,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(r=>r())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?d||M?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const t={...this.options.current,onBeforeCreate:(...e)=>{var i,s;return(s=(i=this.options.current).onBeforeCreate)==null?void 0:s.call(i,...e)},onBlur:(...e)=>{var i,s;return(s=(i=this.options.current).onBlur)==null?void 0:s.call(i,...e)},onCreate:(...e)=>{var i,s;return(s=(i=this.options.current).onCreate)==null?void 0:s.call(i,...e)},onDestroy:(...e)=>{var i,s;return(s=(i=this.options.current).onDestroy)==null?void 0:s.call(i,...e)},onFocus:(...e)=>{var i,s;return(s=(i=this.options.current).onFocus)==null?void 0:s.call(i,...e)},onSelectionUpdate:(...e)=>{var i,s;return(s=(i=this.options.current).onSelectionUpdate)==null?void 0:s.call(i,...e)},onTransaction:(...e)=>{var i,s;return(s=(i=this.options.current).onTransaction)==null?void 0:s.call(i,...e)},onUpdate:(...e)=>{var i,s;return(s=(i=this.options.current).onUpdate)==null?void 0:s.call(i,...e)},onContentError:(...e)=>{var i,s;return(s=(i=this.options.current).onContentError)==null?void 0:s.call(i,...e)},onDrop:(...e)=>{var i,s;return(s=(i=this.options.current).onDrop)==null?void 0:s.call(i,...e)},onPaste:(...e)=>{var i,s;return(s=(i=this.options.current).onPaste)==null?void 0:s.call(i,...e)},onDelete:(...e)=>{var i,s;return(s=(i=this.options.current).onDelete)==null?void 0:s.call(i,...e)}};return new S(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(t){return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)}}static compareOptions(t,r){return Object.keys(t).every(e=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(e)?!0:e==="extensions"&&t.extensions&&r.extensions?t.extensions.length!==r.extensions.length?!1:t.extensions.every((i,s)=>{var h;return i===((h=r.extensions)==null?void 0:h[s])}):t[e]===r[e])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?p.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(t){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=t;return}if(this.previousDeps.length===t.length&&this.previousDeps.every((e,i)=>e===t[i]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=t}scheduleDestroy(){const t=this.instanceId,r=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===t){r&&r.setOptions(this.options.current);return}r&&!r.isDestroyed&&(r.destroy(),this.instanceId===t&&this.setEditor(null))},1)}};function z(n={},t=[]){const r=o.useRef(n);r.current=n;const[e]=o.useState(()=>new j(r)),i=l.useSyncExternalStore(e.subscribe,e.getEditor,e.getServerSnapshot);return o.useDebugValue(i),o.useEffect(e.onRender(t)),N({editor:i,selector:({transactionNumber:s})=>n.shouldRerenderOnTransaction===!1||n.shouldRerenderOnTransaction===void 0?null:n.immediatelyRender&&s===0?0:s+1}),i}var f=o.createContext({editor:null});f.Consumer;var O=o.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),V=()=>o.useContext(O);u.forwardRef((n,t)=>{const{onDragStart:r}=V(),e=n.as||"div";return a.jsx(e,{...n,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...n.style}})});u.createContext({markViewContentRef:()=>{}});var c=o.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});c.displayName="TiptapContext";var P=()=>o.useContext(c);function v({editor:n,instance:t,children:r}){const e=n??t;if(!e)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const i=o.useMemo(()=>({editor:e}),[e]),s=o.useMemo(()=>({editor:e}),[e]);return a.jsx(f.Provider,{value:s,children:a.jsx(c.Provider,{value:i,children:r})})}v.displayName="Tiptap";function m({...n}){const{editor:t}=P();return a.jsx(R,{editor:t,...n})}m.displayName="Tiptap.Content";Object.assign(v,{Content:m});export{R as E,N as a,z as u};
1
+ import{o as u,r as o,ag as l,ah as b,ai as C,j as a,aj as E}from"./index-CJPLcYvR.js";import{v as S}from"./index-BojQt5v5.js";var g=(...n)=>t=>{n.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},w=({contentComponent:n})=>{const t=l.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getServerSnapshot);return a.jsx(a.Fragment,{children:Object.values(t)})};function y(){const n=new Set;let t={};return{subscribe(r){return n.add(r),()=>{n.delete(r)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(r,e){t={...t,[r]:E.createPortal(e.reactElement,e.element,r)},n.forEach(i=>i())},removeRenderer(r){const e={...t};delete e[r],t=e,n.forEach(i=>i())}}}var x=class extends u.Component{constructor(n){var t;super(n),this.editorContentRef=u.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!((t=n.editor)!=null&&t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var n;const t=this.props.editor;if(t&&!t.isDestroyed&&((n=t.view.dom)!=null&&n.parentNode)){if(t.contentComponent)return;const r=this.editorContentRef.current;r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r}),t.contentComponent=y(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var n;const t=this.props.editor;if(t){this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null;try{if(!((n=t.view.dom)!=null&&n.parentNode))return;const r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){const{editor:n,innerRef:t,...r}=this.props;return a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:g(t,this.editorContentRef),...r}),(n==null?void 0:n.contentComponent)&&a.jsx(w,{contentComponent:n.contentComponent})]})}},D=o.forwardRef((n,t)=>{const r=u.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[n.editor]);return u.createElement(x,{key:r,innerRef:t,...n})}),R=u.memo(D),T=typeof window<"u"?o.useLayoutEffect:o.useEffect,_=class{constructor(n){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=n,this.lastSnapshot={editor:n,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(n){return this.subscribers.add(n),()=>{this.subscribers.delete(n)}}watch(n){if(this.editor=n,this.editor){const t=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},r=this.editor;return r.on("transaction",t),()=>{r.off("transaction",t)}}}};function N(n){var t;const[r]=o.useState(()=>new _(n.editor)),e=b.useSyncExternalStoreWithSelector(r.subscribe,r.getSnapshot,r.getServerSnapshot,n.selector,(t=n.equalityFn)!=null?t:C);return T(()=>r.watch(n.editor),[n.editor,r]),o.useDebugValue(e),e}var I=!1,d=typeof window>"u",M=d||!!(typeof window<"u"&&window.next),j=class p{constructor(t){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=t,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(t){this.editor=t,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(r=>r())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?d||M?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const t={...this.options.current,onBeforeCreate:(...e)=>{var i,s;return(s=(i=this.options.current).onBeforeCreate)==null?void 0:s.call(i,...e)},onBlur:(...e)=>{var i,s;return(s=(i=this.options.current).onBlur)==null?void 0:s.call(i,...e)},onCreate:(...e)=>{var i,s;return(s=(i=this.options.current).onCreate)==null?void 0:s.call(i,...e)},onDestroy:(...e)=>{var i,s;return(s=(i=this.options.current).onDestroy)==null?void 0:s.call(i,...e)},onFocus:(...e)=>{var i,s;return(s=(i=this.options.current).onFocus)==null?void 0:s.call(i,...e)},onSelectionUpdate:(...e)=>{var i,s;return(s=(i=this.options.current).onSelectionUpdate)==null?void 0:s.call(i,...e)},onTransaction:(...e)=>{var i,s;return(s=(i=this.options.current).onTransaction)==null?void 0:s.call(i,...e)},onUpdate:(...e)=>{var i,s;return(s=(i=this.options.current).onUpdate)==null?void 0:s.call(i,...e)},onContentError:(...e)=>{var i,s;return(s=(i=this.options.current).onContentError)==null?void 0:s.call(i,...e)},onDrop:(...e)=>{var i,s;return(s=(i=this.options.current).onDrop)==null?void 0:s.call(i,...e)},onPaste:(...e)=>{var i,s;return(s=(i=this.options.current).onPaste)==null?void 0:s.call(i,...e)},onDelete:(...e)=>{var i,s;return(s=(i=this.options.current).onDelete)==null?void 0:s.call(i,...e)}};return new S(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(t){return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)}}static compareOptions(t,r){return Object.keys(t).every(e=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(e)?!0:e==="extensions"&&t.extensions&&r.extensions?t.extensions.length!==r.extensions.length?!1:t.extensions.every((i,s)=>{var h;return i===((h=r.extensions)==null?void 0:h[s])}):t[e]===r[e])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?p.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(t){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=t;return}if(this.previousDeps.length===t.length&&this.previousDeps.every((e,i)=>e===t[i]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=t}scheduleDestroy(){const t=this.instanceId,r=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===t){r&&r.setOptions(this.options.current);return}r&&!r.isDestroyed&&(r.destroy(),this.instanceId===t&&this.setEditor(null))},1)}};function z(n={},t=[]){const r=o.useRef(n);r.current=n;const[e]=o.useState(()=>new j(r)),i=l.useSyncExternalStore(e.subscribe,e.getEditor,e.getServerSnapshot);return o.useDebugValue(i),o.useEffect(e.onRender(t)),N({editor:i,selector:({transactionNumber:s})=>n.shouldRerenderOnTransaction===!1||n.shouldRerenderOnTransaction===void 0?null:n.immediatelyRender&&s===0?0:s+1}),i}var f=o.createContext({editor:null});f.Consumer;var O=o.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),V=()=>o.useContext(O);u.forwardRef((n,t)=>{const{onDragStart:r}=V(),e=n.as||"div";return a.jsx(e,{...n,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...n.style}})});u.createContext({markViewContentRef:()=>{}});var c=o.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});c.displayName="TiptapContext";var P=()=>o.useContext(c);function v({editor:n,instance:t,children:r}){const e=n??t;if(!e)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const i=o.useMemo(()=>({editor:e}),[e]),s=o.useMemo(()=>({editor:e}),[e]);return a.jsx(f.Provider,{value:s,children:a.jsx(c.Provider,{value:i,children:r})})}v.displayName="Tiptap";function m({...n}){const{editor:t}=P();return a.jsx(R,{editor:t,...n})}m.displayName="Tiptap.Content";Object.assign(v,{Content:m});export{R as E,N as a,z as u};
@@ -1 +1 @@
1
- import{d as a,f as d,S as p,H as c,i as f}from"./PuckPrototypeRoute-4PdBTH7w.js";import{a as g}from"./index-CfIGLvHQ.js";import{j as h}from"./index-BTVMPQf_.js";import"./index-ConbXlR3.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-CrrOmaf8.js";import{a as g}from"./index-qsQHPHTW.js";import{j as h}from"./index-CJPLcYvR.js";import"./index-BojQt5v5.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-4PdBTH7w.js";import{a as f}from"./index-CfIGLvHQ.js";import{j as m}from"./index-BTVMPQf_.js";import"./index-ConbXlR3.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-CrrOmaf8.js";import{a as f}from"./index-qsQHPHTW.js";import{j as m}from"./index-CJPLcYvR.js";import"./index-BojQt5v5.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-4PdBTH7w.js";import{a as p}from"./index-CfIGLvHQ.js";import{j as m}from"./index-BTVMPQf_.js";import"./index-ConbXlR3.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-CrrOmaf8.js";import{a as p}from"./index-qsQHPHTW.js";import{j as m}from"./index-CJPLcYvR.js";import"./index-BojQt5v5.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,8 +5,8 @@
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-BTVMPQf_.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-CHZACj4K.css">
8
+ <script type="module" crossorigin src="/assets/index-CJPLcYvR.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-DgLEs9n7.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avocadostudio-ai/cli",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "description": "Self-host launcher for the Avocado Studio editor UI",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -40,7 +40,7 @@
40
40
  "esbuild": "^0.24.0",
41
41
  "tsx": "^4.19.0",
42
42
  "typescript": "^5.7.3",
43
- "@avocadostudio-ai/shared": "0.17.1"
43
+ "@avocadostudio-ai/shared": "0.18.0"
44
44
  },
45
45
  "scripts": {
46
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'",