@lyfie/luthor 2.3.5 → 2.3.6

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.
Files changed (30) hide show
  1. package/dist/{ExtensiveEditor-B6-CSbLk.d.ts → ExtensiveEditor-B25Uedf2.d.ts} +1 -0
  2. package/dist/{chunk-ZOJRS76F.js → chunk-DOJY2XR6.js} +1 -1
  3. package/dist/{chunk-2SROC2VV.js → chunk-HSXFJCQA.js} +1 -1
  4. package/dist/{chunk-CVPFQYT5.js → chunk-QR6IHW2C.js} +1 -1
  5. package/dist/{chunk-KONCQ6HU.js → chunk-RLHHVHV7.js} +1 -1
  6. package/dist/{chunk-PS7U4ZTC.js → chunk-TID3K24V.js} +1 -1
  7. package/dist/{chunk-GWK276NY.js → chunk-TTLFSMFF.js} +1 -1
  8. package/dist/{chunk-P62SLPUX.js → chunk-U3MVQLAN.js} +1 -1
  9. package/dist/{chunk-WDHLBTRY.js → chunk-WU54BL4Y.js} +3 -3
  10. package/dist/{index-Gx4quPv5.d.ts → index-CUB1ColU.d.ts} +1 -1
  11. package/dist/index.css +1 -1
  12. package/dist/index.d.ts +4 -4
  13. package/dist/index.js +1 -1
  14. package/dist/presets/chat-window/index.d.ts +1 -1
  15. package/dist/presets/chat-window/index.js +1 -1
  16. package/dist/presets/email-compose/index.d.ts +1 -1
  17. package/dist/presets/email-compose/index.js +1 -1
  18. package/dist/presets/extensive/index.d.ts +2 -2
  19. package/dist/presets/extensive/index.js +1 -1
  20. package/dist/presets/md-text/index.d.ts +1 -1
  21. package/dist/presets/md-text/index.js +1 -1
  22. package/dist/presets/notes/index.d.ts +1 -1
  23. package/dist/presets/notes/index.js +1 -1
  24. package/dist/presets/notion-like/index.d.ts +1 -1
  25. package/dist/presets/notion-like/index.js +1 -1
  26. package/dist/presets/rich-text-box/index.d.ts +1 -1
  27. package/dist/presets/rich-text-box/index.js +1 -1
  28. package/dist/presets/simple-text/index.d.ts +1 -1
  29. package/dist/presets/simple-text/index.js +1 -1
  30. package/package.json +2 -2
@@ -405,6 +405,7 @@ interface ExtensiveEditorProps {
405
405
  className?: string;
406
406
  onReady?: (methods: ExtensiveEditorRef) => void;
407
407
  initialTheme?: "light" | "dark";
408
+ onThemeChange?: (theme: "light" | "dark") => void;
408
409
  theme?: Partial<LuthorTheme>;
409
410
  defaultContent?: string;
410
411
  showDefaultContent?: boolean;
@@ -1 +1 @@
1
- import {pa,Ba}from'./chunk-WDHLBTRY.js';import {a}from'./chunk-MDSRHDWB.js';import {jsxs,jsx}from'react/jsx-runtime';function o({className:l,variantClassName:n,showTitle:d=true,title:f="",onTitleChange:m,showActions:c=true,onPin:u,onArchive:p,onColorChange:b,colorOptions:g=["#fef3c7","#dbeafe","#dcfce7"],...E}){return jsxs("div",{className:["luthor-preset-notes",l].filter(Boolean).join(" "),children:[d&&jsx("input",{"data-testid":"notes-title",className:"luthor-notes-title",placeholder:"Title",value:f,onChange:e=>m?.(e.target.value)}),c&&jsxs("div",{className:"luthor-notes-actions","data-testid":"notes-actions",children:[jsx("button",{type:"button",onClick:u,"aria-label":"Pin note",children:"Pin"}),jsx("button",{type:"button",onClick:p,"aria-label":"Archive note",children:"Archive"}),jsx("select",{"aria-label":"Change note color",onChange:e=>b?.(e.target.value),children:g.map(e=>jsx("option",{value:e,children:e},e))})]}),jsx(Ba,{...E,variantClassName:["luthor-preset-notes__variant",n].filter(Boolean).join(" "),featureFlags:{bold:true,italic:true,underline:true,strikethrough:false,link:true,list:true,blockFormat:false,table:false,image:false,iframeEmbed:false,youTubeEmbed:false,commandPalette:false,slashCommand:false,draggableBlock:false,customNode:false,emoji:false},isToolbarEnabled:false})]})}var v={id:"notes",label:"Notes",description:"Compact notes editor with title and actions.",extensions:pa({featureFlags:{list:true,image:false,table:false,iframeEmbed:false,youTubeEmbed:false,commandPalette:false,slashCommand:false,draggableBlock:false,customNode:false}}),components:{Editor:o},toolbar:[],config:a("notes","Take a note..."),css:"notes/styles.css"};export{o as a,v as b};
1
+ import {pa,Ba}from'./chunk-WU54BL4Y.js';import {a}from'./chunk-MDSRHDWB.js';import {jsxs,jsx}from'react/jsx-runtime';function o({className:l,variantClassName:n,showTitle:d=true,title:f="",onTitleChange:m,showActions:c=true,onPin:u,onArchive:p,onColorChange:b,colorOptions:g=["#fef3c7","#dbeafe","#dcfce7"],...E}){return jsxs("div",{className:["luthor-preset-notes",l].filter(Boolean).join(" "),children:[d&&jsx("input",{"data-testid":"notes-title",className:"luthor-notes-title",placeholder:"Title",value:f,onChange:e=>m?.(e.target.value)}),c&&jsxs("div",{className:"luthor-notes-actions","data-testid":"notes-actions",children:[jsx("button",{type:"button",onClick:u,"aria-label":"Pin note",children:"Pin"}),jsx("button",{type:"button",onClick:p,"aria-label":"Archive note",children:"Archive"}),jsx("select",{"aria-label":"Change note color",onChange:e=>b?.(e.target.value),children:g.map(e=>jsx("option",{value:e,children:e},e))})]}),jsx(Ba,{...E,variantClassName:["luthor-preset-notes__variant",n].filter(Boolean).join(" "),featureFlags:{bold:true,italic:true,underline:true,strikethrough:false,link:true,list:true,blockFormat:false,table:false,image:false,iframeEmbed:false,youTubeEmbed:false,commandPalette:false,slashCommand:false,draggableBlock:false,customNode:false,emoji:false},isToolbarEnabled:false})]})}var v={id:"notes",label:"Notes",description:"Compact notes editor with title and actions.",extensions:pa({featureFlags:{list:true,image:false,table:false,iframeEmbed:false,youTubeEmbed:false,commandPalette:false,slashCommand:false,draggableBlock:false,customNode:false}}),components:{Editor:o},toolbar:[],config:a("notes","Take a note..."),css:"notes/styles.css"};export{o as a,v as b};
@@ -1 +1 @@
1
- import {Ba,pa}from'./chunk-WDHLBTRY.js';import {a}from'./chunk-MDSRHDWB.js';import {forwardRef}from'react';import {jsx}from'react/jsx-runtime';var n={bold:true,italic:true,underline:true,strikethrough:true,list:true,history:true,link:true,blockFormat:true,codeFormat:true,image:false,table:false,iframeEmbed:false,youTubeEmbed:false,emoji:false,floatingToolbar:false,contextMenu:false,commandPalette:false,slashCommand:false,draggableBlock:false,customNode:false},e=forwardRef(({className:a,variantClassName:s,compactToolbar:t=false,toolbarClassName:l,featureFlags:d,...f},x)=>jsx(Ba,{ref:x,...f,className:["luthor-preset-rich-text-box",a].filter(Boolean).join(" "),variantClassName:[t?"luthor-preset-rich-text-box--compact":"",s].filter(Boolean).join(" "),toolbarClassName:[t?"luthor-preset-rich-text-box__toolbar--compact":"",l].filter(Boolean).join(" "),featureFlags:{...n,...d??{}}}));e.displayName="RichTextBoxEditor";var u={id:"rich-text-box",label:"Rich Text Box",description:"Inline formatting and list-focused rich text editing.",extensions:pa({featureFlags:{image:false,table:false,iframeEmbed:false,youTubeEmbed:false,emoji:false,commandPalette:false,slashCommand:false,draggableBlock:false}}),components:{Editor:e},toolbar:["bold","italic","underline","strikethrough","unorderedList","orderedList","checkList","undo","redo"],config:a("rich-text-box","Write rich text..."),css:"rich-text-box/styles.css"};export{e as a,u as b};
1
+ import {Ba,pa}from'./chunk-WU54BL4Y.js';import {a}from'./chunk-MDSRHDWB.js';import {forwardRef}from'react';import {jsx}from'react/jsx-runtime';var n={bold:true,italic:true,underline:true,strikethrough:true,list:true,history:true,link:true,blockFormat:true,codeFormat:true,image:false,table:false,iframeEmbed:false,youTubeEmbed:false,emoji:false,floatingToolbar:false,contextMenu:false,commandPalette:false,slashCommand:false,draggableBlock:false,customNode:false},e=forwardRef(({className:a,variantClassName:s,compactToolbar:t=false,toolbarClassName:l,featureFlags:d,...f},x)=>jsx(Ba,{ref:x,...f,className:["luthor-preset-rich-text-box",a].filter(Boolean).join(" "),variantClassName:[t?"luthor-preset-rich-text-box--compact":"",s].filter(Boolean).join(" "),toolbarClassName:[t?"luthor-preset-rich-text-box__toolbar--compact":"",l].filter(Boolean).join(" "),featureFlags:{...n,...d??{}}}));e.displayName="RichTextBoxEditor";var u={id:"rich-text-box",label:"Rich Text Box",description:"Inline formatting and list-focused rich text editing.",extensions:pa({featureFlags:{image:false,table:false,iframeEmbed:false,youTubeEmbed:false,emoji:false,commandPalette:false,slashCommand:false,draggableBlock:false}}),components:{Editor:e},toolbar:["bold","italic","underline","strikethrough","unorderedList","orderedList","checkList","undo","redo"],config:a("rich-text-box","Write rich text..."),css:"rich-text-box/styles.css"};export{e as a,u as b};
@@ -1 +1 @@
1
- import {Ba,pa}from'./chunk-WDHLBTRY.js';import {a}from'./chunk-MDSRHDWB.js';import {forwardRef}from'react';import {jsx}from'react/jsx-runtime';var d={bold:false,italic:false,underline:false,strikethrough:false,fontFamily:false,fontSize:false,lineHeight:false,textColor:false,textHighlight:false,subscript:false,superscript:false,link:false,horizontalRule:false,table:false,list:false,image:false,blockFormat:false,code:false,codeIntelligence:false,codeFormat:false,iframeEmbed:false,youTubeEmbed:false,floatingToolbar:false,contextMenu:false,commandPalette:false,slashCommand:false,emoji:false,draggableBlock:false,customNode:false,themeToggle:false},e=forwardRef(({className:s,variantClassName:i,hideToolbarByDefault:o=true,isToolbarEnabled:r,...f},m)=>jsx(Ba,{ref:m,...f,className:["luthor-preset-simple-text",s].filter(Boolean).join(" "),variantClassName:["luthor-preset-simple-text__variant",i].filter(Boolean).join(" "),availableModes:["visual"],initialMode:"visual",isToolbarEnabled:o?false:r,featureFlags:d}));e.displayName="SimpleTextEditor";var x={id:"simple-text",label:"Simple Text",description:"Plain text writing with rich formatting disabled.",extensions:pa({featureFlags:{bold:false,italic:false,underline:false,strikethrough:false,link:false,list:false,blockFormat:false,image:false,table:false,code:false,codeFormat:false,commandPalette:false,slashCommand:false,emoji:false,draggableBlock:false}}),components:{Editor:e},toolbar:[],config:a("simple-text","Write plain text..."),css:"simple-text/styles.css"};export{e as a,x as b};
1
+ import {Ba,pa}from'./chunk-WU54BL4Y.js';import {a}from'./chunk-MDSRHDWB.js';import {forwardRef}from'react';import {jsx}from'react/jsx-runtime';var d={bold:false,italic:false,underline:false,strikethrough:false,fontFamily:false,fontSize:false,lineHeight:false,textColor:false,textHighlight:false,subscript:false,superscript:false,link:false,horizontalRule:false,table:false,list:false,image:false,blockFormat:false,code:false,codeIntelligence:false,codeFormat:false,iframeEmbed:false,youTubeEmbed:false,floatingToolbar:false,contextMenu:false,commandPalette:false,slashCommand:false,emoji:false,draggableBlock:false,customNode:false,themeToggle:false},e=forwardRef(({className:s,variantClassName:i,hideToolbarByDefault:o=true,isToolbarEnabled:r,...f},m)=>jsx(Ba,{ref:m,...f,className:["luthor-preset-simple-text",s].filter(Boolean).join(" "),variantClassName:["luthor-preset-simple-text__variant",i].filter(Boolean).join(" "),availableModes:["visual"],initialMode:"visual",isToolbarEnabled:o?false:r,featureFlags:d}));e.displayName="SimpleTextEditor";var x={id:"simple-text",label:"Simple Text",description:"Plain text writing with rich formatting disabled.",extensions:pa({featureFlags:{bold:false,italic:false,underline:false,strikethrough:false,link:false,list:false,blockFormat:false,image:false,table:false,code:false,codeFormat:false,commandPalette:false,slashCommand:false,emoji:false,draggableBlock:false}}),components:{Editor:e},toolbar:[],config:a("simple-text","Write plain text..."),css:"simple-text/styles.css"};export{e as a,x as b};
@@ -1 +1 @@
1
- import {pa,Ba}from'./chunk-WDHLBTRY.js';import {a}from'./chunk-MDSRHDWB.js';import {useRef,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';function i({className:m,variantClassName:h,onSend:o,submitOnEnter:s=true,allowShiftEnter:l=true,showVoiceButton:b=false,showImageButton:p=true,showSendButton:w=true,...E}){let n=useRef(null),a=useCallback(()=>{if(!o)return;let e=n.current?.getJSON()??"";o({json:e});},[o]),g=useCallback(e=>{!s||e.key!=="Enter"||e.nativeEvent.isComposing||e.shiftKey&&l||(e.preventDefault(),a());},[l,a,s]);return jsxs("div",{className:["luthor-preset-chat-window",m].filter(Boolean).join(" "),onKeyDownCapture:g,children:[jsx(Ba,{ref:n,...E,variantClassName:["luthor-preset-chat-window__variant",h].filter(Boolean).join(" "),isToolbarEnabled:false,availableModes:["visual"],initialMode:"visual",featureFlags:{bold:false,italic:false,underline:false,strikethrough:false,fontFamily:false,fontSize:false,lineHeight:false,textColor:false,textHighlight:false,subscript:false,superscript:false,link:true,horizontalRule:false,table:false,list:true,image:false,blockFormat:false,code:false,codeIntelligence:false,codeFormat:false,iframeEmbed:false,youTubeEmbed:false,floatingToolbar:false,contextMenu:false,commandPalette:false,slashCommand:false,emoji:true,draggableBlock:false,customNode:false,themeToggle:false}}),jsxs("div",{className:"luthor-chat-window-actions","data-testid":"chat-actions",children:[b&&jsx("button",{type:"button",className:"luthor-chat-window-action","data-testid":"chat-voice-button","aria-label":"Voice input",children:"Voice"}),p&&jsx("button",{type:"button",className:"luthor-chat-window-action","data-testid":"chat-image-button","aria-label":"Add image",children:"Image"}),w&&jsx("button",{type:"button",className:"luthor-chat-window-action luthor-chat-window-action-send","data-testid":"chat-send-button",onClick:a,"aria-label":"Send message",children:"Send"})]})]})}var C={id:"chat-window",label:"Chat Window",description:"Chat composer with action row and send controls.",extensions:pa({featureFlags:{bold:false,italic:false,underline:false,strikethrough:false,table:false,image:false,blockFormat:false,code:false,codeIntelligence:false,codeFormat:false,iframeEmbed:false,youTubeEmbed:false,commandPalette:false,slashCommand:false,draggableBlock:false,customNode:false}}),components:{Editor:i},toolbar:[],config:a("chat-window","Write a message..."),css:"chat-window/styles.css"};export{i as a,C as b};
1
+ import {pa,Ba}from'./chunk-WU54BL4Y.js';import {a}from'./chunk-MDSRHDWB.js';import {useRef,useCallback}from'react';import {jsxs,jsx}from'react/jsx-runtime';function i({className:m,variantClassName:h,onSend:o,submitOnEnter:s=true,allowShiftEnter:l=true,showVoiceButton:b=false,showImageButton:p=true,showSendButton:w=true,...E}){let n=useRef(null),a=useCallback(()=>{if(!o)return;let e=n.current?.getJSON()??"";o({json:e});},[o]),g=useCallback(e=>{!s||e.key!=="Enter"||e.nativeEvent.isComposing||e.shiftKey&&l||(e.preventDefault(),a());},[l,a,s]);return jsxs("div",{className:["luthor-preset-chat-window",m].filter(Boolean).join(" "),onKeyDownCapture:g,children:[jsx(Ba,{ref:n,...E,variantClassName:["luthor-preset-chat-window__variant",h].filter(Boolean).join(" "),isToolbarEnabled:false,availableModes:["visual"],initialMode:"visual",featureFlags:{bold:false,italic:false,underline:false,strikethrough:false,fontFamily:false,fontSize:false,lineHeight:false,textColor:false,textHighlight:false,subscript:false,superscript:false,link:true,horizontalRule:false,table:false,list:true,image:false,blockFormat:false,code:false,codeIntelligence:false,codeFormat:false,iframeEmbed:false,youTubeEmbed:false,floatingToolbar:false,contextMenu:false,commandPalette:false,slashCommand:false,emoji:true,draggableBlock:false,customNode:false,themeToggle:false}}),jsxs("div",{className:"luthor-chat-window-actions","data-testid":"chat-actions",children:[b&&jsx("button",{type:"button",className:"luthor-chat-window-action","data-testid":"chat-voice-button","aria-label":"Voice input",children:"Voice"}),p&&jsx("button",{type:"button",className:"luthor-chat-window-action","data-testid":"chat-image-button","aria-label":"Add image",children:"Image"}),w&&jsx("button",{type:"button",className:"luthor-chat-window-action luthor-chat-window-action-send","data-testid":"chat-send-button",onClick:a,"aria-label":"Send message",children:"Send"})]})]})}var C={id:"chat-window",label:"Chat Window",description:"Chat composer with action row and send controls.",extensions:pa({featureFlags:{bold:false,italic:false,underline:false,strikethrough:false,table:false,image:false,blockFormat:false,code:false,codeIntelligence:false,codeFormat:false,iframeEmbed:false,youTubeEmbed:false,commandPalette:false,slashCommand:false,draggableBlock:false,customNode:false}}),components:{Editor:i},toolbar:[],config:a("chat-window","Write a message..."),css:"chat-window/styles.css"};export{i as a,C as b};
@@ -1 +1 @@
1
- import {pa,xa,Ba,Aa,ya,za,ha}from'./chunk-WDHLBTRY.js';import {a}from'./chunk-MDSRHDWB.js';import {useRef,useState}from'react';import {jsonToMarkdown,markdownToJSON}from'@lyfie/luthor-headless';import {jsxs,jsx}from'react/jsx-runtime';function p({className:C,variantClassName:D,initialMode:P="visual",...S}){let n=useRef(null),a=useRef(xa(["visual"])),d=useRef(""),i=useRef(null),[r,O]=useState(P),[x,l]=useState(""),[E,v]=useState(null),M=e=>{if(e!==r)try{if(v(null),e==="markdown")if(za(a.current,"markdown"))l(d.current);else {let t=n.current?.getJSON()??"",u=t?JSON.parse(t):void 0,k=ha(jsonToMarkdown(u));d.current=k,l(k),Aa(a.current,"markdown");}if(e==="visual"){let t=markdownToJSON(x);i.current=JSON.stringify(t);}O(e),e==="visual"&&setTimeout(()=>{i.current&&(n.current?.injectJSON(i.current),i.current=null);},0);}catch(t){let u=t instanceof Error?t.message:"Failed to parse markdown";v(u);}};return jsxs("div",{className:["luthor-preset-md-text",C].filter(Boolean).join(" "),onInputCapture:()=>{r==="visual"&&ya(a.current,["visual"]);},children:[jsxs("div",{className:"luthor-md-text-tabs",children:[jsx("button",{type:"button",className:r==="visual"?"active":"",onClick:()=>M("visual"),children:"Visual"}),jsx("button",{type:"button",className:r==="markdown"?"active":"",onClick:()=>M("markdown"),children:"Markdown"})]}),r==="visual"&&jsx(Ba,{ref:n,...S,className:"luthor-preset-md-text__editor",variantClassName:["luthor-preset-md-text__variant",D].filter(Boolean).join(" "),availableModes:["visual"],initialMode:"visual",featureFlags:{table:false,image:false,iframeEmbed:false,youTubeEmbed:false,customNode:false}}),r==="markdown"&&jsxs("div",{className:"luthor-md-text-source-shell",children:[jsx("textarea",{className:"luthor-md-text-source",value:x,onChange:e=>{l(e.target.value),d.current=e.target.value,Aa(a.current,"markdown");},placeholder:"Write markdown..."}),E&&jsx("p",{className:"luthor-md-text-error",children:E})]})]})}var j={id:"md-text",label:"MD Text",description:"Visual and markdown editing with conversion bridge.",extensions:pa({featureFlags:{table:false,image:false,iframeEmbed:false,youTubeEmbed:false,customNode:false}}),components:{Editor:p},toolbar:["bold","italic","underline","strikethrough","link","unorderedList","orderedList"],config:a("md-text","Write markdown..."),css:"md-text/styles.css"};export{p as a,j as b};
1
+ import {pa,xa,Ba,Aa,ya,za,ha}from'./chunk-WU54BL4Y.js';import {a}from'./chunk-MDSRHDWB.js';import {useRef,useState}from'react';import {jsonToMarkdown,markdownToJSON}from'@lyfie/luthor-headless';import {jsxs,jsx}from'react/jsx-runtime';function p({className:C,variantClassName:D,initialMode:P="visual",...S}){let n=useRef(null),a=useRef(xa(["visual"])),d=useRef(""),i=useRef(null),[r,O]=useState(P),[x,l]=useState(""),[E,v]=useState(null),M=e=>{if(e!==r)try{if(v(null),e==="markdown")if(za(a.current,"markdown"))l(d.current);else {let t=n.current?.getJSON()??"",u=t?JSON.parse(t):void 0,k=ha(jsonToMarkdown(u));d.current=k,l(k),Aa(a.current,"markdown");}if(e==="visual"){let t=markdownToJSON(x);i.current=JSON.stringify(t);}O(e),e==="visual"&&setTimeout(()=>{i.current&&(n.current?.injectJSON(i.current),i.current=null);},0);}catch(t){let u=t instanceof Error?t.message:"Failed to parse markdown";v(u);}};return jsxs("div",{className:["luthor-preset-md-text",C].filter(Boolean).join(" "),onInputCapture:()=>{r==="visual"&&ya(a.current,["visual"]);},children:[jsxs("div",{className:"luthor-md-text-tabs",children:[jsx("button",{type:"button",className:r==="visual"?"active":"",onClick:()=>M("visual"),children:"Visual"}),jsx("button",{type:"button",className:r==="markdown"?"active":"",onClick:()=>M("markdown"),children:"Markdown"})]}),r==="visual"&&jsx(Ba,{ref:n,...S,className:"luthor-preset-md-text__editor",variantClassName:["luthor-preset-md-text__variant",D].filter(Boolean).join(" "),availableModes:["visual"],initialMode:"visual",featureFlags:{table:false,image:false,iframeEmbed:false,youTubeEmbed:false,customNode:false}}),r==="markdown"&&jsxs("div",{className:"luthor-md-text-source-shell",children:[jsx("textarea",{className:"luthor-md-text-source",value:x,onChange:e=>{l(e.target.value),d.current=e.target.value,Aa(a.current,"markdown");},placeholder:"Write markdown..."}),E&&jsx("p",{className:"luthor-md-text-error",children:E})]})]})}var j={id:"md-text",label:"MD Text",description:"Visual and markdown editing with conversion bridge.",extensions:pa({featureFlags:{table:false,image:false,iframeEmbed:false,youTubeEmbed:false,customNode:false}}),components:{Editor:p},toolbar:["bold","italic","underline","strikethrough","link","unorderedList","orderedList"],config:a("md-text","Write markdown..."),css:"md-text/styles.css"};export{p as a,j as b};
@@ -1 +1 @@
1
- import {pa,Ba}from'./chunk-WDHLBTRY.js';import {a}from'./chunk-MDSRHDWB.js';import {jsx}from'react/jsx-runtime';var f={slashCommand:true,draggableBlock:true,commandPalette:true,floatingToolbar:false,contextMenu:false};function o({className:r,variantClassName:a,slashVisibility:s,isDraggableEnabled:l=true,featureFlags:n,isToolbarEnabled:d=false,...m}){return jsx(Ba,{...m,className:["luthor-preset-notion-like",r].filter(Boolean).join(" "),variantClassName:["luthor-preset-notion-like__variant",a].filter(Boolean).join(" "),isToolbarEnabled:d,slashCommandVisibility:s,featureFlags:{...f,draggableBlock:l,...n??{}}})}var b={id:"notion-like",label:"Notion Like",description:"Slash-first writing with draggable block defaults.",extensions:pa({featureFlags:{slashCommand:true,draggableBlock:true,floatingToolbar:false,contextMenu:false}}),components:{Editor:o},toolbar:[],config:a("notion-like","Type '/' for commands..."),css:"notion-like/styles.css"};export{o as a,b};
1
+ import {pa,Ba}from'./chunk-WU54BL4Y.js';import {a}from'./chunk-MDSRHDWB.js';import {jsx}from'react/jsx-runtime';var f={slashCommand:true,draggableBlock:true,commandPalette:true,floatingToolbar:false,contextMenu:false};function o({className:r,variantClassName:a,slashVisibility:s,isDraggableEnabled:l=true,featureFlags:n,isToolbarEnabled:d=false,...m}){return jsx(Ba,{...m,className:["luthor-preset-notion-like",r].filter(Boolean).join(" "),variantClassName:["luthor-preset-notion-like__variant",a].filter(Boolean).join(" "),isToolbarEnabled:d,slashCommandVisibility:s,featureFlags:{...f,draggableBlock:l,...n??{}}})}var b={id:"notion-like",label:"Notion Like",description:"Slash-first writing with draggable block defaults.",extensions:pa({featureFlags:{slashCommand:true,draggableBlock:true,floatingToolbar:false,contextMenu:false}}),components:{Editor:o},toolbar:[],config:a("notion-like","Type '/' for commands..."),css:"notion-like/styles.css"};export{o as a,b};
@@ -1 +1 @@
1
- import {pa,Ba}from'./chunk-WDHLBTRY.js';import {a}from'./chunk-MDSRHDWB.js';import {jsxs,jsx}from'react/jsx-runtime';function t({className:r,variantClassName:i,showTo:m=true,showCc:p=false,showBcc:n=false,showSubject:d=true,...u}){return jsxs("div",{className:["luthor-preset-email-compose",r].filter(Boolean).join(" "),children:[jsxs("div",{className:"luthor-email-compose-shell",children:[m&&jsxs("label",{className:"luthor-email-compose-row","data-testid":"email-row-to",children:[jsx("span",{children:"To"}),jsx("input",{type:"text",readOnly:true,value:""})]}),p&&jsxs("label",{className:"luthor-email-compose-row","data-testid":"email-row-cc",children:[jsx("span",{children:"Cc"}),jsx("input",{type:"text",readOnly:true,value:""})]}),n&&jsxs("label",{className:"luthor-email-compose-row","data-testid":"email-row-bcc",children:[jsx("span",{children:"Bcc"}),jsx("input",{type:"text",readOnly:true,value:""})]}),d&&jsxs("label",{className:"luthor-email-compose-row","data-testid":"email-row-subject",children:[jsx("span",{children:"Subject"}),jsx("input",{type:"text",readOnly:true,value:""})]})]}),jsx(Ba,{...u,variantClassName:["luthor-preset-email-compose__variant",i].filter(Boolean).join(" "),featureFlags:{bold:true,italic:true,underline:true,strikethrough:false,link:true,list:true,history:true,blockFormat:true,table:false,image:false,iframeEmbed:false,youTubeEmbed:false,emoji:true,customNode:false}})]})}var c={id:"email-compose",label:"Email Compose",description:"Compose shell with rich email body editing.",extensions:pa({featureFlags:{table:false,image:false,iframeEmbed:false,youTubeEmbed:false,customNode:false}}),components:{Editor:t},toolbar:["bold","italic","underline","link","unorderedList","orderedList","undo","redo"],config:a("email-compose","Write your email..."),css:"email-compose/styles.css"};export{t as a,c as b};
1
+ import {pa,Ba}from'./chunk-WU54BL4Y.js';import {a}from'./chunk-MDSRHDWB.js';import {jsxs,jsx}from'react/jsx-runtime';function t({className:r,variantClassName:i,showTo:m=true,showCc:p=false,showBcc:n=false,showSubject:d=true,...u}){return jsxs("div",{className:["luthor-preset-email-compose",r].filter(Boolean).join(" "),children:[jsxs("div",{className:"luthor-email-compose-shell",children:[m&&jsxs("label",{className:"luthor-email-compose-row","data-testid":"email-row-to",children:[jsx("span",{children:"To"}),jsx("input",{type:"text",readOnly:true,value:""})]}),p&&jsxs("label",{className:"luthor-email-compose-row","data-testid":"email-row-cc",children:[jsx("span",{children:"Cc"}),jsx("input",{type:"text",readOnly:true,value:""})]}),n&&jsxs("label",{className:"luthor-email-compose-row","data-testid":"email-row-bcc",children:[jsx("span",{children:"Bcc"}),jsx("input",{type:"text",readOnly:true,value:""})]}),d&&jsxs("label",{className:"luthor-email-compose-row","data-testid":"email-row-subject",children:[jsx("span",{children:"Subject"}),jsx("input",{type:"text",readOnly:true,value:""})]})]}),jsx(Ba,{...u,variantClassName:["luthor-preset-email-compose__variant",i].filter(Boolean).join(" "),featureFlags:{bold:true,italic:true,underline:true,strikethrough:false,link:true,list:true,history:true,blockFormat:true,table:false,image:false,iframeEmbed:false,youTubeEmbed:false,emoji:true,customNode:false}})]})}var c={id:"email-compose",label:"Email Compose",description:"Compose shell with rich email body editing.",extensions:pa({featureFlags:{table:false,image:false,iframeEmbed:false,youTubeEmbed:false,customNode:false}}),components:{Editor:t},toolbar:["bold","italic","underline","link","unorderedList","orderedList","undo","redo"],config:a("email-compose","Write your email..."),css:"email-compose/styles.css"};export{t as a,c as b};