react-reason-editor 1.0.79 → 1.0.81
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/{BubbleMenus-vqNuXWlm.cjs → BubbleMenus-D1uFJJL1.cjs} +1 -1
- package/dist/{BubbleMenus-CIOMgQ-M.js → BubbleMenus-DIKbCm67.js} +1 -1
- package/dist/FontSize.cjs +1 -1
- package/dist/FontSize.js +1 -1
- package/dist/{Heading-Bcrl3eKU.js → Heading-BCa-LW8o.js} +1 -1
- package/dist/Heading.cjs +1 -1
- package/dist/Heading.js +1 -1
- package/dist/LineHeight.cjs +1 -1
- package/dist/LineHeight.js +1 -1
- package/dist/{MoreMark-Bfsa3STU.js → MoreMark-DOhnB4xI.js} +1 -1
- package/dist/MoreMark.cjs +1 -1
- package/dist/MoreMark.js +1 -1
- package/dist/{ReasonDocs-_hTAa8-q.js → ReasonDocs-D-vS87iT.js} +171 -172
- package/dist/{ReasonDocs-Bjefr26w.cjs → ReasonDocs-UxpbwteO.cjs} +1 -1
- package/dist/{RichTextProvider-BuTrDlZY.cjs → RichTextProvider-COW59xhl.cjs} +1 -1
- package/dist/{RichTextProvider-D9EtjDKS.js → RichTextProvider-ChSp_ZVC.js} +1 -1
- package/dist/{bubble-BhkjoWdo.js → bubble-BrxMujzD.js} +1 -1
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.js +1 -1
- package/dist/docs-agent.cjs +1 -1
- package/dist/docs-agent.js +1 -1
- package/dist/dropdown-menu-By9VjdjW.cjs +1 -0
- package/dist/dropdown-menu-tmQwCqOR.js +2 -0
- package/dist/editor/RightPanel.d.ts +7 -1
- package/dist/editor-kit.cjs +1 -1
- package/dist/editor-kit.js +1 -1
- package/dist/editorConfig-BAZYamPM.cjs +1 -0
- package/dist/{editorConfig-BR7z-P0e.js → editorConfig-DqEFArGq.js} +1 -1
- package/dist/features/settings/sections/FileSourcesSection.d.ts +5 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/reason-docs.cjs +1 -1
- package/dist/reason-docs.js +1 -1
- package/dist/{reason-toolbar-skin-CD4T53He.cjs → reason-toolbar-skin-C5X8hUwr.cjs} +1 -1
- package/dist/{reason-toolbar-skin-BNYK97ET.js → reason-toolbar-skin-e9MfqS7c.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/dropdown-menu-BNKyUimd.cjs +0 -1
- package/dist/dropdown-menu-BhMqMb9N.js +0 -2
- package/dist/editorConfig-CHBSp2KG.cjs +0 -1
- package/dist/features/settings/sections/StorageSection.d.ts +0 -6
package/dist/docs-agent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,o as t,t as n}from"./rolldown-runtime-Drgf5FY8.js";import{o as r}from"./dist-DmY5xFkC.js";import{i,n as o,r as s,t as a}from"./tooltip-G11f5UOp.js";import{i as c,n as l,t as d}from"./editorConfig-BR7z-P0e.js";import{$ as u,A as h,B as f,C as p,D as g,E as m,F as y,G as b,H as w,I as v,J as _,K as C,L as S,M as E,N as k,O as T,P as R,Q as A,R as x,S as O,T as D,U as N,V as P,W as M,X as L,Y as I,Z as j,_ as U,a as B,at as F,b as W,c as H,ct as q,d as z,et as V,f as $,g as Y,h as G,i as K,it as Q,j as J,k as X,l as Z,m as ee,n as te,nt as ne,o as re,ot as ie,p as oe,q as se,r as ae,rt as ce,s as le,t as de,tt as ue,u as he,v as fe,w as pe,x as ge,y as me,z as ye}from"./reason-toolbar-skin-BNYK97ET.js";import{a as be,f as we,h as ve,m as _e,o as Ce,p as Se,r as Ee,s as ke,t as Te,u as Re}from"./dropdown-menu-BhMqMb9N.js";import{getTranscribeStorage as Ae,isTranscriptionSupported as xe,subscribeTranscribe as Oe}from"./Transcribe.js";import{$ as De,A as Ne,B as Pe,C as Me,D as Le,E as Ie,F as je,G as Ue,H as Be,I as Fe,J as We,K as He,L as qe,M as ze,N as Ve,O as $e,P as Ye,Q as Ge,R as Ke,S as Qe,T as Je,U as Xe,V as Ze,W as et,X as tt,Y as nt,Z as rt,_ as it,at as ot,b as st,c as at,ct,d as lt,dt,et as ut,f as ht,ft,g as pt,h as gt,i as mt,it as yt,j as bt,k as wt,l as vt,lt as _t,m as Ct,nt as St,o as Et,ot as kt,p as Tt,q as Rt,rt as At,st as xt,t as Ot,tt as Dt,u as Nt,ut as Pt,v as Mt,w as Lt,x as It,y as jt,z as Ut}from"./dist-CdI_LoyT.js";import*as Bt from"react";import Ft,{Component as Wt,Fragment as Ht,createContext as qt,forwardRef as zt,memo as Vt,useCallback as $t,useContext as Yt,useEffect as Gt,useLayoutEffect as Kt,useMemo as Qt,useReducer as Jt,useRef as Xt,useState as Zt}from"react";import{Extension as en}from"@tiptap/core";import{Plugin as tn,PluginKey as nn}from"@tiptap/pm/state";import{Fragment as rn,jsx as on,jsxs as sn}from"react/jsx-runtime";import{AlignCenter as an,AlignJustify as cn,AlignLeft as ln,AlignRight as dn,Baseline as un,Bold as hn,Braces as fn,Code as pn,Code2 as gn,Columns2 as mn,Eraser as yn,FileText as bn,Heading1 as wn,Heading2 as vn,Heading3 as _n,Heading4 as Cn,Heading5 as Sn,Heading6 as En,Highlighter as kn,Image as Tn,IndentDecrease as Rn,IndentIncrease as An,Info as xn,Italic as On,Link2 as Dn,List as Nn,ListChecks as Pn,ListOrdered as Mn,Mic as Ln,Minus as In,Pencil as jn,Pilcrow as Un,Plus as Bn,Quote as Fn,Redo2 as Wn,Rows3 as Hn,Sigma as qn,Smile as zn,Strikethrough as Vn,Subscript as $n,Superscript as Yn,Table2 as Gn,Trash2 as Kn,Type as Qn,Underline as Jn,Undo2 as Xn,Video as Zn}from"lucide-react";import er from"react-dom";import tr from"scroll-into-view-if-needed";import{useSyncExternalStore as nr}from"use-sync-external-store/shim";import"use-sync-external-store/shim/with-selector";var rr=class extends _t{constructor(e){super(),this.doc=e,this.clientID=e.clientID,this.states=/* @__PURE__ */new Map,this.meta=/* @__PURE__ */new Map,this._checkInterval=setInterval(()=>{const e=Ut();null!==this.getLocalState()&&15e3<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const t=[];this.meta.forEach((n,r)=>{r!==this.clientID&&3e4<=e-n.lastUpdated&&this.states.has(r)&&t.push(r)}),t.length>0&&ir(this,t,"timeout")},kt(3e3)),e.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(e){const t=this.clientID,n=this.meta.get(t),r=void 0===n?0:n.clock+1,i=this.states.get(t);null===e?this.states.delete(t):this.states.set(t,e),this.meta.set(t,{clock:r,lastUpdated:Ut()});const o=[],s=[],a=[],c=[];null===e?c.push(t):null==i?null!=e&&o.push(t):(s.push(t),ze(i,e)||a.push(t)),(o.length>0||a.length>0||c.length>0)&&this.emit("change",[{added:o,updated:a,removed:c},"local"]),this.emit("update",[{added:o,updated:s,removed:c},"local"])}setLocalStateField(e,t){const n=this.getLocalState();null!==n&&this.setLocalState({...n,[e]:t})}getStates(){return this.states}},ir=(e,t,n)=>{const r=[];for(let i=0;i<t.length;i++){const n=t[i];if(e.states.has(n)){if(e.states.delete(n),n===e.clientID){const t=e.meta.get(n);e.meta.set(n,{clock:t.clock+1,lastUpdated:Ut()})}r.push(n)}}r.length>0&&(e.emit("change",[{added:[],updated:[],removed:r},n]),e.emit("update",[{added:[],updated:[],removed:r},n]))},or=(e,t,n=e.states)=>{const r=t.length,i=rt();At(i,r);for(let o=0;o<r;o++){const r=t[o],s=n.get(r)||null,a=e.meta.get(r).clock;At(i,r),At(i,a),St(i,JSON.stringify(s))}return De(i)},sr=(e,t,n)=>{const r=Be(t),i=Ut(),o=[],s=[],a=[],c=[],l=We(r);for(let d=0;d<l;d++){const t=We(r);let n=We(r);const l=JSON.parse(Rt(r)),d=e.meta.get(t),u=e.states.get(t),h=void 0===d?0:d.clock;(h<n||h===n&&null===l&&e.states.has(t))&&(null===l?t===e.clientID&&null!=e.getLocalState()?n++:e.states.delete(t):e.states.set(t,l),e.meta.set(t,{clock:n,lastUpdated:i}),void 0===d&&null!==l?o.push(t):void 0!==d&&null===l?c.push(t):null!==l&&(ze(l,u)||a.push(t),s.push(t)))}(o.length>0||a.length>0||c.length>0)&&e.emit("change",[{added:o,updated:a,removed:c},n]),(o.length>0||s.length>0||c.length>0)&&e.emit("update",[{added:o,updated:s,removed:c},n])};function ar(e){return{engine:e,execute(){},isActive:()=>!1,isEnabled:()=>!1,getValue(){},subscribe:()=>()=>{}}}var cr=[{kind:"button",id:"undo",label:"Undo",icon:Xn,shortcut:"⌘Z"},{kind:"button",id:"redo",label:"Redo",icon:Wn,shortcut:"⇧⌘Z"},{kind:"separator",id:"history-divider"},{kind:"button",id:"bold",label:"Bold",icon:hn,shortcut:"⌘B"},{kind:"button",id:"italic",label:"Italic",icon:On,shortcut:"⌘I"},{kind:"button",id:"underline",label:"Underline",icon:Jn,shortcut:"⌘U"},{kind:"button",id:"highlight",label:"Highlight",icon:kn,shortcut:"⌘⇧H"},{kind:"separator",id:"marks-divider"},{kind:"menu",id:"block-format",label:"Block Format",icon:Hn,children:[{kind:"button",id:"paragraph",label:"Paragraph",icon:Un},{kind:"button",id:"heading-1",label:"Heading 1",icon:wn,shortcut:"Ctrl+Alt+1"},{kind:"button",id:"heading-2",label:"Heading 2",icon:vn,shortcut:"Ctrl+Alt+2"},{kind:"button",id:"heading-3",label:"Heading 3",icon:_n,shortcut:"Ctrl+Alt+3"},{kind:"button",id:"heading-4",label:"Heading 4",icon:Cn,shortcut:"Ctrl+Alt+4"},{kind:"button",id:"heading-5",label:"Heading 5",icon:Sn,shortcut:"Ctrl+Alt+5"},{kind:"button",id:"heading-6",label:"Heading 6",icon:En,shortcut:"Ctrl+Alt+6"},{kind:"separator",id:"block-format-lists-divider"},{kind:"button",id:"bullet-list",label:"Bullet List",icon:Nn,shortcut:"Ctrl+Shift+8"},{kind:"button",id:"ordered-list",label:"Ordered List",icon:Mn,shortcut:"Ctrl+Shift+7"},{kind:"button",id:"task-list",label:"Check List",icon:Pn,shortcut:"Ctrl+Shift+9"},{kind:"separator",id:"block-format-quote-divider"},{kind:"button",id:"blockquote",label:"Blockquote",icon:Fn,shortcut:"Ctrl+Shift+B"},{kind:"button",id:"code-block",label:"Code Block",icon:gn,shortcut:"Ctrl+Alt+C"},{kind:"separator",id:"block-format-clear-divider"},{kind:"button",id:"clear-formatting",label:"Clear Format",icon:yn}]},{kind:"menu",id:"text-styles",label:"Text Styles",icon:Qn,children:[{kind:"group-label",id:"text-styles-label",label:"Text Styles"},{kind:"button",id:"strike",label:"Strikethrough",icon:Vn,shortcut:"Ctrl+Shift+S"},{kind:"button",id:"code",label:"Inline Code",icon:pn,shortcut:"Ctrl+E"},{kind:"button",id:"text-color",label:"Text Color",icon:un,shortcut:"Alt+Shift+C"},{kind:"button",id:"superscript",label:"Superscript",icon:Yn,shortcut:"Ctrl+."},{kind:"button",id:"subscript",label:"Subscript",icon:$n,shortcut:"Ctrl+,"},{kind:"separator",id:"text-styles-indent-divider"},{kind:"button",id:"indent",label:"Indent",icon:An},{kind:"button",id:"outdent",label:"Outdent",icon:Rn},{kind:"menu",id:"alignment",label:"Alignment",icon:ln,children:[{kind:"button",id:"align-left",label:"Align Left",icon:ln},{kind:"button",id:"align-center",label:"Align Center",icon:an},{kind:"button",id:"align-right",label:"Align Right",icon:dn},{kind:"button",id:"align-justify",label:"Justify",icon:cn}]}]},{kind:"menu",id:"insert",label:"Insert",icon:Bn,children:[{kind:"group-label",id:"insert-label",label:"Insert"},{kind:"button",id:"link",label:"Link",icon:Dn},{kind:"button",id:"emoji",label:"Emoji",icon:zn},{kind:"button",id:"table",label:"Table",icon:Gn},{kind:"button",id:"image",label:"Image",icon:Tn},{kind:"button",id:"columns",label:"Columns",icon:mn,shortcut:"Ctrl+Alt+G"},{kind:"button",id:"callout",label:"Callout",icon:xn},{kind:"button",id:"horizontal-rule",label:"Divider",icon:In,shortcut:"Ctrl+Alt+S"},{kind:"button",id:"video",label:"Video",icon:Zn},{kind:"button",id:"math",label:"Math",icon:qn}]},{kind:"separator",id:"voice-divider"},{kind:"button",id:"transcribe",label:"Dictate",icon:Ln,shortcut:"Ctrl+Shift+D"},{kind:"menu",id:"table-tools",label:"Table",icon:Gn,visibleWhenActive:"table",children:[{kind:"group-label",id:"table-rows-label",label:"Rows"},{kind:"button",id:"table.add-row-before",label:"Insert Row Above",icon:Hn},{kind:"button",id:"table.add-row-after",label:"Insert Row Below",icon:Hn},{kind:"button",id:"table.delete-row",label:"Delete Row",icon:Kn},{kind:"separator",id:"table-columns-divider"},{kind:"group-label",id:"table-columns-label",label:"Columns"},{kind:"button",id:"table.add-column-before",label:"Insert Column Left",icon:mn},{kind:"button",id:"table.add-column-after",label:"Insert Column Right",icon:mn},{kind:"button",id:"table.delete-column",label:"Delete Column",icon:Kn},{kind:"separator",id:"table-cells-divider"},{kind:"group-label",id:"table-cells-label",label:"Cells"},{kind:"button",id:"table.merge-cells",label:"Merge Cells",icon:fn},{kind:"button",id:"table.split-cell",label:"Split Cell",icon:fn},{kind:"button",id:"table.toggle-header-row",label:"Toggle Header Row",icon:Hn},{kind:"separator",id:"table-delete-divider"},{kind:"button",id:"table.delete",label:"Delete Table",icon:Kn}]}];function lr(e=cr){const t=[];for(const n of e)"button"===n.kind&&t.push(n.id),"menu"===n.kind&&t.push(...lr(n.children));return t}var dr="flex items-center justify-center rounded p-1.5 text-gray-600 transition-colors dark:text-gray-300 disabled:cursor-not-allowed disabled:opacity-40 hover:enabled:bg-gray-100 dark:hover:enabled:bg-slate-800",ur="bg-gray-200 text-gray-900 dark:bg-slate-700 dark:text-white",hr="flex w-full cursor-pointer items-center gap-2 text-xs data-disabled:cursor-not-allowed data-disabled:opacity-40";function fr({shortcut:e}){return e?/* @__PURE__ */on("span",{className:"ml-auto pl-4 text-[10px] tracking-widest text-gray-400 dark:text-gray-500",children:e}):null}function pr({items:e,adapter:t}){/* @__PURE__ */
|
|
1
|
+
import{i as e,o as t,t as n}from"./rolldown-runtime-Drgf5FY8.js";import{o as r}from"./dist-DmY5xFkC.js";import{i,n as o,r as s,t as a}from"./tooltip-G11f5UOp.js";import{i as c,n as l,t as d}from"./editorConfig-DqEFArGq.js";import{$ as u,A as h,B as f,C as p,D as g,E as m,F as y,G as b,H as w,I as v,J as _,K as C,L as S,M as E,N as k,O as T,P as R,Q as A,R as x,S as O,T as D,U as N,V as P,W as M,X as L,Y as I,Z as j,_ as U,a as B,at as F,b as W,c as H,ct as q,d as z,et as V,f as $,g as Y,h as G,i as K,it as Q,j as J,k as X,l as Z,m as ee,n as te,nt as ne,o as re,ot as ie,p as oe,q as se,r as ae,rt as ce,s as le,t as de,tt as ue,u as he,v as fe,w as pe,x as ge,y as me,z as ye}from"./reason-toolbar-skin-e9MfqS7c.js";import{a as be,f as we,h as ve,m as _e,o as Ce,p as Se,r as Ee,s as ke,t as Te,u as Re}from"./dropdown-menu-tmQwCqOR.js";import{getTranscribeStorage as Ae,isTranscriptionSupported as xe,subscribeTranscribe as Oe}from"./Transcribe.js";import{$ as De,A as Ne,B as Pe,C as Me,D as Le,E as Ie,F as je,G as Ue,H as Be,I as Fe,J as We,K as He,L as qe,M as ze,N as Ve,O as $e,P as Ye,Q as Ge,R as Ke,S as Qe,T as Je,U as Xe,V as Ze,W as et,X as tt,Y as nt,Z as rt,_ as it,at as ot,b as st,c as at,ct,d as lt,dt,et as ut,f as ht,ft,g as pt,h as gt,i as mt,it as yt,j as bt,k as wt,l as vt,lt as _t,m as Ct,nt as St,o as Et,ot as kt,p as Tt,q as Rt,rt as At,st as xt,t as Ot,tt as Dt,u as Nt,ut as Pt,v as Mt,w as Lt,x as It,y as jt,z as Ut}from"./dist-CdI_LoyT.js";import*as Bt from"react";import Ft,{Component as Wt,Fragment as Ht,createContext as qt,forwardRef as zt,memo as Vt,useCallback as $t,useContext as Yt,useEffect as Gt,useLayoutEffect as Kt,useMemo as Qt,useReducer as Jt,useRef as Xt,useState as Zt}from"react";import{Extension as en}from"@tiptap/core";import{Plugin as tn,PluginKey as nn}from"@tiptap/pm/state";import{Fragment as rn,jsx as on,jsxs as sn}from"react/jsx-runtime";import{AlignCenter as an,AlignJustify as cn,AlignLeft as ln,AlignRight as dn,Baseline as un,Bold as hn,Braces as fn,Code as pn,Code2 as gn,Columns2 as mn,Eraser as yn,FileText as bn,Heading1 as wn,Heading2 as vn,Heading3 as _n,Heading4 as Cn,Heading5 as Sn,Heading6 as En,Highlighter as kn,Image as Tn,IndentDecrease as Rn,IndentIncrease as An,Info as xn,Italic as On,Link2 as Dn,List as Nn,ListChecks as Pn,ListOrdered as Mn,Mic as Ln,Minus as In,Pencil as jn,Pilcrow as Un,Plus as Bn,Quote as Fn,Redo2 as Wn,Rows3 as Hn,Sigma as qn,Smile as zn,Strikethrough as Vn,Subscript as $n,Superscript as Yn,Table2 as Gn,Trash2 as Kn,Type as Qn,Underline as Jn,Undo2 as Xn,Video as Zn}from"lucide-react";import er from"react-dom";import tr from"scroll-into-view-if-needed";import{useSyncExternalStore as nr}from"use-sync-external-store/shim";import"use-sync-external-store/shim/with-selector";var rr=class extends _t{constructor(e){super(),this.doc=e,this.clientID=e.clientID,this.states=/* @__PURE__ */new Map,this.meta=/* @__PURE__ */new Map,this._checkInterval=setInterval(()=>{const e=Ut();null!==this.getLocalState()&&15e3<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const t=[];this.meta.forEach((n,r)=>{r!==this.clientID&&3e4<=e-n.lastUpdated&&this.states.has(r)&&t.push(r)}),t.length>0&&ir(this,t,"timeout")},kt(3e3)),e.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(e){const t=this.clientID,n=this.meta.get(t),r=void 0===n?0:n.clock+1,i=this.states.get(t);null===e?this.states.delete(t):this.states.set(t,e),this.meta.set(t,{clock:r,lastUpdated:Ut()});const o=[],s=[],a=[],c=[];null===e?c.push(t):null==i?null!=e&&o.push(t):(s.push(t),ze(i,e)||a.push(t)),(o.length>0||a.length>0||c.length>0)&&this.emit("change",[{added:o,updated:a,removed:c},"local"]),this.emit("update",[{added:o,updated:s,removed:c},"local"])}setLocalStateField(e,t){const n=this.getLocalState();null!==n&&this.setLocalState({...n,[e]:t})}getStates(){return this.states}},ir=(e,t,n)=>{const r=[];for(let i=0;i<t.length;i++){const n=t[i];if(e.states.has(n)){if(e.states.delete(n),n===e.clientID){const t=e.meta.get(n);e.meta.set(n,{clock:t.clock+1,lastUpdated:Ut()})}r.push(n)}}r.length>0&&(e.emit("change",[{added:[],updated:[],removed:r},n]),e.emit("update",[{added:[],updated:[],removed:r},n]))},or=(e,t,n=e.states)=>{const r=t.length,i=rt();At(i,r);for(let o=0;o<r;o++){const r=t[o],s=n.get(r)||null,a=e.meta.get(r).clock;At(i,r),At(i,a),St(i,JSON.stringify(s))}return De(i)},sr=(e,t,n)=>{const r=Be(t),i=Ut(),o=[],s=[],a=[],c=[],l=We(r);for(let d=0;d<l;d++){const t=We(r);let n=We(r);const l=JSON.parse(Rt(r)),d=e.meta.get(t),u=e.states.get(t),h=void 0===d?0:d.clock;(h<n||h===n&&null===l&&e.states.has(t))&&(null===l?t===e.clientID&&null!=e.getLocalState()?n++:e.states.delete(t):e.states.set(t,l),e.meta.set(t,{clock:n,lastUpdated:i}),void 0===d&&null!==l?o.push(t):void 0!==d&&null===l?c.push(t):null!==l&&(ze(l,u)||a.push(t),s.push(t)))}(o.length>0||a.length>0||c.length>0)&&e.emit("change",[{added:o,updated:a,removed:c},n]),(o.length>0||s.length>0||c.length>0)&&e.emit("update",[{added:o,updated:s,removed:c},n])};function ar(e){return{engine:e,execute(){},isActive:()=>!1,isEnabled:()=>!1,getValue(){},subscribe:()=>()=>{}}}var cr=[{kind:"button",id:"undo",label:"Undo",icon:Xn,shortcut:"⌘Z"},{kind:"button",id:"redo",label:"Redo",icon:Wn,shortcut:"⇧⌘Z"},{kind:"separator",id:"history-divider"},{kind:"button",id:"bold",label:"Bold",icon:hn,shortcut:"⌘B"},{kind:"button",id:"italic",label:"Italic",icon:On,shortcut:"⌘I"},{kind:"button",id:"underline",label:"Underline",icon:Jn,shortcut:"⌘U"},{kind:"button",id:"highlight",label:"Highlight",icon:kn,shortcut:"⌘⇧H"},{kind:"separator",id:"marks-divider"},{kind:"menu",id:"block-format",label:"Block Format",icon:Hn,children:[{kind:"button",id:"paragraph",label:"Paragraph",icon:Un},{kind:"button",id:"heading-1",label:"Heading 1",icon:wn,shortcut:"Ctrl+Alt+1"},{kind:"button",id:"heading-2",label:"Heading 2",icon:vn,shortcut:"Ctrl+Alt+2"},{kind:"button",id:"heading-3",label:"Heading 3",icon:_n,shortcut:"Ctrl+Alt+3"},{kind:"button",id:"heading-4",label:"Heading 4",icon:Cn,shortcut:"Ctrl+Alt+4"},{kind:"button",id:"heading-5",label:"Heading 5",icon:Sn,shortcut:"Ctrl+Alt+5"},{kind:"button",id:"heading-6",label:"Heading 6",icon:En,shortcut:"Ctrl+Alt+6"},{kind:"separator",id:"block-format-lists-divider"},{kind:"button",id:"bullet-list",label:"Bullet List",icon:Nn,shortcut:"Ctrl+Shift+8"},{kind:"button",id:"ordered-list",label:"Ordered List",icon:Mn,shortcut:"Ctrl+Shift+7"},{kind:"button",id:"task-list",label:"Check List",icon:Pn,shortcut:"Ctrl+Shift+9"},{kind:"separator",id:"block-format-quote-divider"},{kind:"button",id:"blockquote",label:"Blockquote",icon:Fn,shortcut:"Ctrl+Shift+B"},{kind:"button",id:"code-block",label:"Code Block",icon:gn,shortcut:"Ctrl+Alt+C"},{kind:"separator",id:"block-format-clear-divider"},{kind:"button",id:"clear-formatting",label:"Clear Format",icon:yn}]},{kind:"menu",id:"text-styles",label:"Text Styles",icon:Qn,children:[{kind:"group-label",id:"text-styles-label",label:"Text Styles"},{kind:"button",id:"strike",label:"Strikethrough",icon:Vn,shortcut:"Ctrl+Shift+S"},{kind:"button",id:"code",label:"Inline Code",icon:pn,shortcut:"Ctrl+E"},{kind:"button",id:"text-color",label:"Text Color",icon:un,shortcut:"Alt+Shift+C"},{kind:"button",id:"superscript",label:"Superscript",icon:Yn,shortcut:"Ctrl+."},{kind:"button",id:"subscript",label:"Subscript",icon:$n,shortcut:"Ctrl+,"},{kind:"separator",id:"text-styles-indent-divider"},{kind:"button",id:"indent",label:"Indent",icon:An},{kind:"button",id:"outdent",label:"Outdent",icon:Rn},{kind:"menu",id:"alignment",label:"Alignment",icon:ln,children:[{kind:"button",id:"align-left",label:"Align Left",icon:ln},{kind:"button",id:"align-center",label:"Align Center",icon:an},{kind:"button",id:"align-right",label:"Align Right",icon:dn},{kind:"button",id:"align-justify",label:"Justify",icon:cn}]}]},{kind:"menu",id:"insert",label:"Insert",icon:Bn,children:[{kind:"group-label",id:"insert-label",label:"Insert"},{kind:"button",id:"link",label:"Link",icon:Dn},{kind:"button",id:"emoji",label:"Emoji",icon:zn},{kind:"button",id:"table",label:"Table",icon:Gn},{kind:"button",id:"image",label:"Image",icon:Tn},{kind:"button",id:"columns",label:"Columns",icon:mn,shortcut:"Ctrl+Alt+G"},{kind:"button",id:"callout",label:"Callout",icon:xn},{kind:"button",id:"horizontal-rule",label:"Divider",icon:In,shortcut:"Ctrl+Alt+S"},{kind:"button",id:"video",label:"Video",icon:Zn},{kind:"button",id:"math",label:"Math",icon:qn}]},{kind:"separator",id:"voice-divider"},{kind:"button",id:"transcribe",label:"Dictate",icon:Ln,shortcut:"Ctrl+Shift+D"},{kind:"menu",id:"table-tools",label:"Table",icon:Gn,visibleWhenActive:"table",children:[{kind:"group-label",id:"table-rows-label",label:"Rows"},{kind:"button",id:"table.add-row-before",label:"Insert Row Above",icon:Hn},{kind:"button",id:"table.add-row-after",label:"Insert Row Below",icon:Hn},{kind:"button",id:"table.delete-row",label:"Delete Row",icon:Kn},{kind:"separator",id:"table-columns-divider"},{kind:"group-label",id:"table-columns-label",label:"Columns"},{kind:"button",id:"table.add-column-before",label:"Insert Column Left",icon:mn},{kind:"button",id:"table.add-column-after",label:"Insert Column Right",icon:mn},{kind:"button",id:"table.delete-column",label:"Delete Column",icon:Kn},{kind:"separator",id:"table-cells-divider"},{kind:"group-label",id:"table-cells-label",label:"Cells"},{kind:"button",id:"table.merge-cells",label:"Merge Cells",icon:fn},{kind:"button",id:"table.split-cell",label:"Split Cell",icon:fn},{kind:"button",id:"table.toggle-header-row",label:"Toggle Header Row",icon:Hn},{kind:"separator",id:"table-delete-divider"},{kind:"button",id:"table.delete",label:"Delete Table",icon:Kn}]}];function lr(e=cr){const t=[];for(const n of e)"button"===n.kind&&t.push(n.id),"menu"===n.kind&&t.push(...lr(n.children));return t}var dr="flex items-center justify-center rounded p-1.5 text-gray-600 transition-colors dark:text-gray-300 disabled:cursor-not-allowed disabled:opacity-40 hover:enabled:bg-gray-100 dark:hover:enabled:bg-slate-800",ur="bg-gray-200 text-gray-900 dark:bg-slate-700 dark:text-white",hr="flex w-full cursor-pointer items-center gap-2 text-xs data-disabled:cursor-not-allowed data-disabled:opacity-40";function fr({shortcut:e}){return e?/* @__PURE__ */on("span",{className:"ml-auto pl-4 text-[10px] tracking-widest text-gray-400 dark:text-gray-500",children:e}):null}function pr({items:e,adapter:t}){/* @__PURE__ */
|
|
2
2
|
return on(rn,{children:e.map(e=>{if("separator"===e.kind)/* @__PURE__ */return on(Re,{},e.id);if("group-label"===e.kind)/* @__PURE__ */return on(Ce,{className:"px-2 py-1 text-[10px] font-semibold uppercase tracking-wide text-gray-400",children:e.label},e.id);if("menu"===e.kind){const n=e.icon;/* @__PURE__ */
|
|
3
3
|
return sn(we,{children:[/* @__PURE__ */sn(_e,{className:hr,children:[/* @__PURE__ */on(n,{className:"size-3.5 shrink-0 text-gray-500 dark:text-gray-400"}),e.label]}),/* @__PURE__ */on(ke,{children:/* @__PURE__ */on(Se,{className:"min-w-[200px]",children:/* @__PURE__ */on(pr,{items:e.children,adapter:t})})})]},e.id)}const n=e.icon,i=t.isActive(e.id);/* @__PURE__ */
|
|
4
4
|
return sn(be,{"aria-pressed":i,className:r(hr,i&&ur),"data-command":e.id,"data-state":i?"active":"inactive",disabled:!t.isEnabled(e.id),onSelect:()=>{t.execute(e.id)},children:[
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-BeavJI0R.cjs"),t=require("./dist-2-kjLBhJ.cjs");let r=require("react"),i=e.__toESM(r,1);r=e.__toESM(r);let c=require("react/jsx-runtime"),n=require("lucide-react"),a=require("@radix-ui/react-dropdown-menu");a=e.__toESM(a,1);var o=a.Root,s=a.Trigger,x=a.Group,d=a.Portal,h=a.Sub,l=a.RadioGroup,u=i.forwardRef(({className:e,inset:r,children:i,...o},s)=>(0,c.jsxs)(a.SubTrigger,{ref:s,className:t.cn("richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-gap-2 richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none focus:richtext-bg-accent data-[state=open]:richtext-bg-accent [&_svg]:richtext-pointer-events-none [&_svg]:richtext-shrink-0 [&_svg:not([class*=size-])]:richtext-size-4",r&&"richtext-pl-8",e),...o,children:[i,(0,c.jsx)(n.ChevronRight,{className:"richtext-ml-auto richtext-size-4"})]}));u.displayName=a.SubTrigger.displayName;var p=i.forwardRef(({className:e,...r},i)=>(0,c.jsx)(a.SubContent,{collisionPadding:8,"data-richtext-menu":!0,"data-richtext-portal":!0,ref:i,className:t.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-backdrop-blur-md richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",e),...r}));p.displayName=a.SubContent.displayName;var m=i.forwardRef(({className:e,sideOffset:r=4,...i},n)=>(0,c.jsx)(a.Portal,{"data-richtext-portal":!0,children:(0,c.jsx)(a.Content,{collisionPadding:8,"data-richtext-menu":!0,"data-richtext-portal":!0,ref:n,sideOffset:r,className:t.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-backdrop-blur-md richtext-p-1 richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",e),...i})}));m.displayName=a.Content.displayName;var f=i.forwardRef(({className:e,inset:r,...i},n)=>(0,c.jsx)(a.Item,{ref:n,className:t.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-gap-2 richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50 [&_svg]:richtext-pointer-events-none [&_svg]:richtext-shrink-0 [&_svg:not([class*=size-])]:richtext-size-4",r&&"richtext-pl-8",e),...i}));f.displayName=a.Item.displayName;var b=i.forwardRef(({className:e,children:r,checked:i,...o},s)=>(0,c.jsxs)(a.CheckboxItem,{checked:i,ref:s,className:t.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-gap-2 richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50 [&_svg]:richtext-pointer-events-none [&_svg]:richtext-shrink-0 [&_svg:not([class*=size-])]:richtext-size-4",e),...o,children:[(0,c.jsx)("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:(0,c.jsx)(a.ItemIndicator,{children:(0,c.jsx)(n.Check,{className:"richtext-size-4"})})}),r]}));b.displayName=a.CheckboxItem.displayName;var g=i.forwardRef(({className:e,children:r,...i},o)=>(0,c.jsxs)(a.RadioItem,{ref:o,className:t.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-gap-2 richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50 [&_svg]:richtext-pointer-events-none [&_svg]:richtext-shrink-0 [&_svg:not([class*=size-])]:richtext-size-4",e),...i,children:[(0,c.jsx)("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:(0,c.jsx)(a.ItemIndicator,{children:(0,c.jsx)(n.Circle,{className:"richtext-size-2 richtext-fill-current"})})}),r]}));g.displayName=a.RadioItem.displayName;var y=i.forwardRef(({className:e,inset:r,...i},n)=>(0,c.jsx)(a.Label,{ref:n,className:t.cn("richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",r&&"richtext-pl-8",e),...i}));y.displayName=a.Label.displayName;var N=i.forwardRef(({className:e,...r},i)=>(0,c.jsx)(a.Separator,{className:t.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",e),ref:i,...r}));function j({className:e,...r}){return(0,c.jsx)("span",{className:t.cn("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",e),...r})}N.displayName=a.Separator.displayName,j.displayName="DropdownMenuShortcut",Object.defineProperty(exports,"DropdownMenu",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"DropdownMenuCheckboxItem",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"DropdownMenuContent",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"DropdownMenuGroup",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"DropdownMenuItem",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"DropdownMenuLabel",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"DropdownMenuPortal",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"DropdownMenuRadioGroup",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"DropdownMenuRadioItem",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"DropdownMenuSeparator",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"DropdownMenuShortcut",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"DropdownMenuSub",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"DropdownMenuSubContent",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"DropdownMenuSubTrigger",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"DropdownMenuTrigger",{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{o as t}from"./dist-DmY5xFkC.js";import*as e from"react";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{Check as a,ChevronRight as c,Circle as s}from"lucide-react";import*as o from"@radix-ui/react-dropdown-menu";var h=o.Root,x=o.Trigger,d=o.Group,n=o.Portal,l=o.Sub,m=o.RadioGroup,p=e.forwardRef(({className:e,inset:a,children:s,...h},x)=>/* @__PURE__ */i(o.SubTrigger,{ref:x,className:t("richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-gap-2 richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none focus:richtext-bg-accent data-[state=open]:richtext-bg-accent [&_svg]:richtext-pointer-events-none [&_svg]:richtext-shrink-0 [&_svg:not([class*=size-])]:richtext-size-4",a&&"richtext-pl-8",e),...h,children:[s,/* @__PURE__ */r(c,{className:"richtext-ml-auto richtext-size-4"})]}));p.displayName=o.SubTrigger.displayName;var f=e.forwardRef(({className:e,...i},a)=>/* @__PURE__ */r(o.SubContent,{collisionPadding:8,"data-richtext-menu":!0,"data-richtext-portal":!0,ref:a,className:t("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-backdrop-blur-md richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",e),...i}));f.displayName=o.SubContent.displayName;var u=e.forwardRef(({className:e,sideOffset:i=4,...a},c)=>/* @__PURE__ */r(o.Portal,{"data-richtext-portal":!0,children:/* @__PURE__ */r(o.Content,{collisionPadding:8,"data-richtext-menu":!0,"data-richtext-portal":!0,ref:c,sideOffset:i,className:t("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-backdrop-blur-md richtext-p-1 richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",e),...a})}));u.displayName=o.Content.displayName;var g=e.forwardRef(({className:e,inset:i,...a},c)=>/* @__PURE__ */r(o.Item,{ref:c,className:t("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-gap-2 richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50 [&_svg]:richtext-pointer-events-none [&_svg]:richtext-shrink-0 [&_svg:not([class*=size-])]:richtext-size-4",i&&"richtext-pl-8",e),...a}));g.displayName=o.Item.displayName;var b=e.forwardRef(({className:e,children:c,checked:s,...h},x)=>/* @__PURE__ */i(o.CheckboxItem,{checked:s,ref:x,className:t("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-gap-2 richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50 [&_svg]:richtext-pointer-events-none [&_svg]:richtext-shrink-0 [&_svg:not([class*=size-])]:richtext-size-4",e),...h,children:[/* @__PURE__ */r("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:/* @__PURE__ */r(o.ItemIndicator,{children:/* @__PURE__ */r(a,{className:"richtext-size-4"})})}),c]}));b.displayName=o.CheckboxItem.displayName;var N=e.forwardRef(({className:e,children:a,...c},h)=>/* @__PURE__ */i(o.RadioItem,{ref:h,className:t("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-gap-2 richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50 [&_svg]:richtext-pointer-events-none [&_svg]:richtext-shrink-0 [&_svg:not([class*=size-])]:richtext-size-4",e),...c,children:[/* @__PURE__ */r("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:/* @__PURE__ */r(o.ItemIndicator,{children:/* @__PURE__ */r(s,{className:"richtext-size-2 richtext-fill-current"})})}),a]}));N.displayName=o.RadioItem.displayName;var v=e.forwardRef(({className:e,inset:i,...a},c)=>/* @__PURE__ */r(o.Label,{ref:c,className:t("richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",i&&"richtext-pl-8",e),...a}));v.displayName=o.Label.displayName;var y=e.forwardRef(({className:e,...i},a)=>/* @__PURE__ */r(o.Separator,{className:t("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",e),ref:a,...i}));function z({className:e,...i}){/* @__PURE__ */
|
|
2
|
+
return r("span",{className:t("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",e),...i})}y.displayName=o.Separator.displayName,z.displayName="DropdownMenuShortcut";export{g as a,m as c,z as d,l as f,x as h,d as i,N as l,p as m,b as n,v as o,f as p,u as r,n as s,h as t,y as u};
|
|
@@ -14,6 +14,12 @@ interface RightPanelProps {
|
|
|
14
14
|
onDelete: (id: string) => void;
|
|
15
15
|
onDuplicate: (id: string) => void;
|
|
16
16
|
onMove: (draggedId: string, targetId: string | null, position: 'before' | 'after' | 'child') => void;
|
|
17
|
+
/**
|
|
18
|
+
* Persists the file tree's expanded folders. Without it a Files panel
|
|
19
|
+
* stacked on this side keeps its expansion only in the tree's local state,
|
|
20
|
+
* so the next document change throws away a stepped expand/collapse.
|
|
21
|
+
*/
|
|
22
|
+
onSetExpandedFolders?: (folderIds: string[]) => void;
|
|
17
23
|
onManageTags?: (id: string) => void;
|
|
18
24
|
onRename?: (id: string, newTitle: string) => void;
|
|
19
25
|
headings: TocEntry[];
|
|
@@ -50,5 +56,5 @@ interface RightPanelProps {
|
|
|
50
56
|
* by dragging its left edge; its body renders whichever panels are enabled
|
|
51
57
|
* for the right sidebar.
|
|
52
58
|
*/
|
|
53
|
-
export declare function RightPanel({ SidebarContentComponent, panels, documents, activeId, activeDocument, onSelect, onAdd, onDelete, onDuplicate, onMove, onManageTags, onRename, headings, onNavigate, openTabs, activeTab, onTabChange, onTabClose, onTabsClose, onTabRename, onSplitRight, onReopenLastClosed, canReopenLastClosed, outlineRef, editorRef, tabItems, onNewChat, aiProps, tipsProps, topicsProps, onClose, isMobile, isOpen, onOpenChange, }: RightPanelProps): import("react").JSX.Element;
|
|
59
|
+
export declare function RightPanel({ SidebarContentComponent, panels, documents, activeId, activeDocument, onSelect, onAdd, onDelete, onDuplicate, onSetExpandedFolders, onMove, onManageTags, onRename, headings, onNavigate, openTabs, activeTab, onTabChange, onTabClose, onTabsClose, onTabRename, onSplitRight, onReopenLastClosed, canReopenLastClosed, outlineRef, editorRef, tabItems, onNewChat, aiProps, tipsProps, topicsProps, onClose, isMobile, isOpen, onOpenChange, }: RightPanelProps): import("react").JSX.Element;
|
|
54
60
|
export {};
|
package/dist/editor-kit.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const e=require("./tooltip-DSRLxJD_.cjs"),t=require("./editorConfig-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const e=require("./tooltip-DSRLxJD_.cjs"),t=require("./editorConfig-BAZYamPM.cjs"),r=require("./BubbleMenus-D1uFJJL1.cjs"),o=require("./RichTextProvider-COW59xhl.cjs"),s=require("./externalLibsMode-Dm8a-Jd9.cjs");exports.BubbleMenus=r.BubbleMenus,exports.NovelEditor=t.NovelEditor,exports.RichTextProvider=o.RichTextProvider,exports.RichTextToolbar=r.RichTextToolbar,exports.SHORTCUTS_STORAGE_KEY=e.SHORTCUTS_STORAGE_KEY,exports.SHORTCUT_ACTIONS=e.SHORTCUT_ACTIONS,exports.ShortcutOverrides=t.ShortcutOverrides,exports.buildExtensions=t.buildExtensions,exports.createDefaultConfig=t.createDefaultConfig,exports.debounce=t.debounce,exports.externalLibsModeActions=s.externalLibsModeActions,exports.findActionByCurrentKeys=e.findActionByCurrentKeys,exports.findActionByDefaultKeys=e.findActionByDefaultKeys,exports.getExternalLibsMode=s.getExternalLibsMode,exports.getShortcutAction=e.getShortcutAction,exports.getShortcutBinding=e.getShortcutBinding,exports.getShortcutOverrides=e.getShortcutOverrides,exports.handleShortcutKeyDown=t.handleShortcutKeyDown,exports.hasCommandModifier=e.hasCommandModifier,exports.isShortcutOverridden=e.isShortcutOverridden,exports.keysFromEvent=e.keysFromEvent,exports.normalizeKeys=e.normalizeKeys,exports.resetAllShortcuts=e.resetAllShortcuts,exports.serializeKeys=e.serializeKeys,exports.setShortcutBinding=e.setShortcutBinding,exports.subscribeShortcuts=e.subscribeShortcuts,exports.useExternalLibsMode=s.useExternalLibsMode,exports.useLiveShortcutKeys=e.useLiveShortcutKeys,exports.useNovelEditor=t.useNovelEditor,exports.useShortcutOverrides=e.useShortcutOverrides;
|
package/dist/editor-kit.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as s,S as a,_ as o,b as r,c as t,d as i,f as m,g as e,h as p,l as f,m as n,p as j,u as b,v as d,w as l,x,y as g}from"./tooltip-G11f5UOp.js";import{a as h,g as u,h as c,i as v,n as w,r as C,t as M}from"./editorConfig-
|
|
1
|
+
import{C as s,S as a,_ as o,b as r,c as t,d as i,f as m,g as e,h as p,l as f,m as n,p as j,u as b,v as d,w as l,x,y as g}from"./tooltip-G11f5UOp.js";import{a as h,g as u,h as c,i as v,n as w,r as C,t as M}from"./editorConfig-DqEFArGq.js";import{n as y,t as B}from"./BubbleMenus-DIKbCm67.js";import{t as L}from"./RichTextProvider-ChSp_ZVC.js";import{n as P,r as R,t as S}from"./externalLibsMode-DEDBnK98.js";export{B as BubbleMenus,v as NovelEditor,L as RichTextProvider,y as RichTextToolbar,t as SHORTCUTS_STORAGE_KEY,f as SHORTCUT_ACTIONS,c as ShortcutOverrides,M as buildExtensions,w as createDefaultConfig,C as debounce,S as externalLibsModeActions,b as findActionByCurrentKeys,i as findActionByDefaultKeys,P as getExternalLibsMode,m as getShortcutAction,j as getShortcutBinding,n as getShortcutOverrides,u as handleShortcutKeyDown,p as hasCommandModifier,e as isShortcutOverridden,o as keysFromEvent,d as normalizeKeys,g as resetAllShortcuts,r as serializeKeys,x as setShortcutBinding,a as subscribeShortcuts,R as useExternalLibsMode,s as useLiveShortcutKeys,h as useNovelEditor,l as useShortcutOverrides};
|