react-reason-editor 1.0.218 → 1.0.219
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-R5Y-9JWK.js → BubbleMenus-ZMPb9Od0.js} +1 -1
- package/dist/BubbleMenus-ZredOeYS.cjs +1 -0
- package/dist/ImportWord-BORiAJrS.js +1 -0
- package/dist/ImportWord.cjs +1 -1
- package/dist/ImportWord.js +1 -1
- package/dist/{ReasonDocs-BoQDZu4x.cjs → ReasonDocs-C1zz9xmB.cjs} +1 -1
- package/dist/{ReasonDocs-DtHAJ_OK.js → ReasonDocs-YkMuYR4D.js} +1 -1
- package/dist/{RichTextProvider-B9V-6yCh.js → RichTextProvider-CdeOWC8F.js} +1 -1
- package/dist/{RichTextProvider-5tJ58Jd3.cjs → RichTextProvider-QAfBo9eE.cjs} +1 -1
- package/dist/docs-agent.cjs +1 -1
- package/dist/docs-agent.js +1 -1
- package/dist/docx-to-html-B6AIGs_u.cjs +1 -0
- package/dist/docx-to-html-Bv2lR4Xz-CL6zpfFL.cjs +1 -0
- package/dist/docx-to-html-Bv2lR4Xz.js +1 -0
- package/dist/editor-kit.cjs +1 -1
- package/dist/editor-kit.js +1 -1
- package/dist/{editorConfig-CDQ1cqBk.js → editorConfig-BMRYlaWx.js} +1 -1
- package/dist/editorConfig-DkUDrWsV.cjs +1 -0
- package/dist/{html-to-docx.esm-BXXvDBHn-Ck2Lm2Rn.cjs → html-to-docx.esm-BXXvDBHn-DGAz8oTP.cjs} +1 -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-B5gdLvGB.js → reason-toolbar-skin-DaSuLMFL.js} +1 -1
- package/dist/{reason-toolbar-skin-O4Jwi3SZ.cjs → reason-toolbar-skin-HVXjepID.cjs} +1 -1
- package/package.json +2 -2
- package/dist/BubbleMenus-DqztkDbh.cjs +0 -1
- package/dist/ImportWord-DtON-y5N.js +0 -1
- package/dist/editorConfig-Nlnbb5zI.cjs +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const e=require("./editorConfig-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const e=require("./editorConfig-DkUDrWsV.cjs"),o=require("./ReasonDocs-C1zz9xmB.cjs"),r=require("./RichTextProvider-QAfBo9eE.cjs"),t=require("./externalLibsMode-aLfijcGX.cjs");exports.NovelEditor=e.NovelEditor,exports.ReasonDocs=o.Index,exports.RichTextProvider=r.RichTextProvider,exports.externalLibsModeActions=t.externalLibsModeActions,exports.getExternalLibsMode=t.getExternalLibsMode,exports.useExternalLibsMode=t.useExternalLibsMode,exports.useNovelEditor=e.useNovelEditor;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o,s}from"./editorConfig-
|
|
1
|
+
import{o,s}from"./editorConfig-BMRYlaWx.js";import{t as r}from"./ReasonDocs-YkMuYR4D.js";import{t as a}from"./RichTextProvider-CdeOWC8F.js";import{n as t,r as e,t as i}from"./externalLibsMode-DEDBnK98.js";export{o as NovelEditor,r as ReasonDocs,a as RichTextProvider,i as externalLibsModeActions,t as getExternalLibsMode,e as useExternalLibsMode,s as useNovelEditor};
|
package/dist/reason-docs.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const e=require("./ReasonDocs-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const e=require("./ReasonDocs-C1zz9xmB.cjs");exports.ReasonDocs=e.Index;
|
package/dist/reason-docs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o}from"./ReasonDocs-
|
|
1
|
+
import{t as o}from"./ReasonDocs-YkMuYR4D.js";export{o as ReasonDocs};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,n as t,o as n,r as i,t as r}from"./rolldown-runtime-Drgf5FY8.js";import{o as a,t as o}from"./dist-DmY5xFkC.js";import{i as s,n as l,r as c,t as u}from"./tooltip-G11f5UOp.js";import{a as d,c as f,g as p,h,i as m}from"./editorConfig-
|
|
1
|
+
import{a as e,n as t,o as n,r as i,t as r}from"./rolldown-runtime-Drgf5FY8.js";import{o as a,t as o}from"./dist-DmY5xFkC.js";import{i as s,n as l,r as c,t as u}from"./tooltip-G11f5UOp.js";import{a as d,c as f,g as p,h,i as m}from"./editorConfig-BMRYlaWx.js";import{t as g}from"./separator-CVKC9LXg.js";import{c as y,l as v,s as k,u as b}from"./Comment-DcnVhRwn.js";import{n as w,t as _}from"./button-D_m2J53A.js";import{t as x}from"./checkbox-3vQdQTmi.js";import{a as C,c as E,i as D,l as S,n as A,o as z,r as F,s as B,t as T}from"./floating-ui.dom-CdG_EzIc.js";import{a as O,c as N,f as P,h as I,i as j,l as R,m as M,n as L,o as q,p as V,r as H,s as U,t as W,u as $}from"./dropdown-menu-tmQwCqOR.js";import{i as K,n as G,r as J,t as Q}from"./popover-Bgd9XvwH.js";import{c as Y,d as Z,f as X,g as ee,h as te,l as ne,m as ie,o as re,p as ae}from"./Ai-DOAuz6ZE.js";import{r as oe}from"./ExportWord-DAZyykON.js";import*as se from"react";import le,{Component as ce,Fragment as ue,Suspense as de,cloneElement as fe,createContext as pe,createElement as he,forwardRef as me,isValidElement as ge,lazy as ye,memo as ve,useCallback as ke,useContext as be,useDebugValue as we,useEffect as _e,useId as xe,useLayoutEffect as Ce,useMemo as Ee,useReducer as De,useRef as Se,useState as Ae}from"react";import{Slot as ze,createSlot as Fe}from"@radix-ui/react-slot";import Be,{clsx as Te}from"clsx";import{Fragment as Oe,jsx as Ne,jsxs as Pe}from"react/jsx-runtime";import{AlignCenterIcon as Ie,AlignJustifyIcon as je,AlignLeftIcon as Re,AlignRightIcon as Me,AppleIcon as Le,ArrowDown as qe,ArrowDownToLineIcon as Ve,ArrowLeft as He,ArrowRight as Ue,ArrowUp as We,ArrowUpToLineIcon as $e,AudioLinesIcon as Ke,BaselineIcon as Ge,BoldIcon as Je,BracesIcon as Qe,CalendarIcon as Ye,Check as Ze,CheckIcon as Xe,ChevronDown as et,ChevronRight as tt,ChevronRightIcon as nt,ClockIcon as it,Code2 as rt,Code2Icon as at,Columns3Icon as ot,Combine as st,CombineIcon as lt,CompassIcon as ct,Copy as ut,CopyIcon as dt,CornerDownLeftIcon as ft,CornerDownRight as pt,EraserIcon as ht,ExternalLink as mt,FileUp as gt,FileUpIcon as yt,FilmIcon as vt,FlagIcon as kt,Grid2X2Icon as bt,Grid3x3Icon as wt,GripHorizontal as _t,GripVertical as xt,Heading1Icon as Ct,Heading2Icon as Et,Heading3Icon as Dt,Heading4Icon as St,Heading5Icon as At,Heading6Icon as zt,HighlighterIcon as Ft,ImageIcon as Bt,IndentIcon as Tt,ItalicIcon as Ot,KeyboardIcon as Nt,LeafIcon as Pt,LightbulbIcon as It,Link as jt,Link2Icon as Rt,List as Mt,ListCollapseIcon as Lt,ListIcon as qt,ListOrdered as Vt,ListTodoIcon as Ht,Loader2 as Ut,MicIcon as Wt,Minus as $t,MinusIcon as Kt,MoreHorizontalIcon as Gt,MusicIcon as Jt,OutdentIcon as Qt,PaintBucketIcon as Yt,PenToolIcon as Zt,PilcrowIcon as Xt,Plus as en,PlusIcon as tn,Quote as nn,RadicalIcon as rn,Redo2Icon as an,RotateCcw as on,Search as sn,SearchIcon as ln,SmileIcon as cn,Sparkles as un,SparklesIcon as dn,Square as fn,SquareIcon as pn,SquareSplitHorizontalIcon as hn,StarIcon as mn,StrikethroughIcon as gn,SubscriptIcon as yn,SuperscriptIcon as vn,Table as kn,TableOfContentsIcon as bn,Text as wn,Trash2Icon as _n,UnderlineIcon as xn,Undo2Icon as Cn,Ungroup as En,Unlink as Dn,WrapText as Sn,X as An,XIcon as zn}from"lucide-react";import*as Fn from"react-dom";import Bn,{createPortal as Tn,flushSync as On}from"react-dom";import{DropdownMenuItemIndicator as Nn}from"@radix-ui/react-dropdown-menu";import*as Pn from"@radix-ui/react-popover";import"@radix-ui/react-separator";import*as In from"@radix-ui/react-tooltip";import{Toggle as jn}from"@radix-ui/react-toggle";import Rn from"use-sync-external-store/shim/with-selector.js";import Mn from"katex";import{Tweet as Ln}from"react-tweet";import qn from"scroll-into-view-if-needed";import{c as Vn}from"react-compiler-runtime";import Hn from"react-textarea-autosize";import{all as Un,createLowlight as Wn}from"lowlight";import{useSyncExternalStore as $n}from"use-sync-external-store/shim";import{LiveTranscriber as Kn,isTranscriptionSupported as Gn}from"use-voice-control/client";var Jn=Object.defineProperty,Qn=(e,t)=>Jn(e,"name",{value:t,configurable:!0}),Yn=!("undefined"==typeof window||!window.document||!window.document.createElement);function Zn(e,t,{checkForDefaultPrevented:n=!0}={}){/* @__PURE__ */
|
|
2
2
|
return Qn(function(i){if(e?.(i),!1===n||!i||!i.defaultPrevented)return t?.(i)},"handleEvent")}function Xn(e){if(!Yn)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function ei(e){return"IFRAME"===e.tagName}Qn(Zn,"composeEventHandlers"),Qn(function(e){if(!Yn)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),Qn(Xn,"getOwnerDocument"),Qn(function e(t,n=!1){const{activeElement:i}=Xn(t);if(!i?.nodeName)return null;if(ei(i)&&i.contentDocument)return e(i.contentDocument.body,n);if(n){const e=i.getAttribute("aria-activedescendant");if(e){const t=Xn(i).getElementById(e);if(t)return t}}return i},"getActiveElement"),Qn(ei,"isFrame");var ti=Object.defineProperty,ni=(e,t)=>ti(e,"name",{value:t,configurable:!0});function ii(e){const t=e+"CollectionProvider",[n,i]=b(t),[r,a]=n(t,{collectionRef:{current:null},itemMap:/* @__PURE__ */new Map}),o=/* @__PURE__ */ni(e=>{const{scope:t,children:n}=e,i=se.useRef(null),a=se.useRef(/* @__PURE__ */new Map).current;/* @__PURE__ */
|
|
3
3
|
return Ne(r,{scope:t,itemMap:a,collectionRef:i,children:n})},"CollectionProvider");o.displayName=t;const s=e+"CollectionSlot",l=Fe(s),c=se.forwardRef((e,t)=>{const{scope:n,children:i}=e,r=a(s,n),o=p(t,r.collectionRef);/* @__PURE__ */
|
|
4
4
|
return Ne(l,{ref:o,children:i})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=Fe(u),h=se.forwardRef((e,t)=>{const{scope:n,children:i,...r}=e,o=se.useRef(null),s=p(t,o),l=a(u,n);return se.useEffect(()=>(l.itemMap.set(o,{ref:o,...r}),()=>{l.itemMap.delete(o)})),/* @__PURE__ */Ne(f,{[d]:"",ref:s,children:i})});function m(t){const n=a(e+"CollectionConsumer",t);return se.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return h.displayName=u,ni(m,"useCollection"),[{Provider:o,Slot:c,ItemSlot:h},m,i]}ni(ii,"createCollection");var ri=/* @__PURE__ */new WeakMap,ai=class e extends Map{static{ni(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],ri.set(this,!0)}set(e,t){return ri.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){const i=this.has(t),r=this.#e.length,a=li(e);let o=a>=0?a:r+a;const s=o<0||o>=r?-1:o;if(s===this.size||i&&s===this.size-1||-1===s)return this.set(t,n),this;const l=this.size+(i?0:1);a<0&&o++;const c=[...this.#e];let u,d=!1;for(let f=o;f<l;f++)if(o===f){let e=c[f];c[f]===t&&(e=c[f+1]),i&&this.delete(t),u=this.get(e),this.set(t,n)}else{d||c[f-1]!==t||(d=!0);const e=c[d?f:f-1],n=u;u=this.get(e),this.delete(e),this.set(e,n)}return this}with(t,n,i){const r=new e(this);return r.insert(t,n,i),r}before(e){const t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){const i=this.#e.indexOf(e);return-1===i?this:this.insert(i,t,n)}after(e){let t=this.#e.indexOf(e);if(t=-1===t||t===this.size-1?-1:t+1,-1!==t)return this.entryAt(t)}setAfter(e,t,n){const i=this.#e.indexOf(e);return-1===i?this:this.insert(i+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){const t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){const t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){const t=oi(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){const t=oi(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return oi(this.#e,e)}from(e,t){const n=this.indexOf(e);if(-1===n)return;let i=n+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,t){const n=this.indexOf(e);if(-1===n)return;let i=n+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(e,t){let n=0;for(const i of this){if(Reflect.apply(e,t,[i,n,this]))return i;n++}}findIndex(e,t){let n=0;for(const i of this){if(Reflect.apply(e,t,[i,n,this]))return n;n++}return-1}filter(t,n){const i=[];let r=0;for(const e of this)Reflect.apply(t,n,[e,r,this])&&i.push(e),r++;return new e(i)}map(t,n){const i=[];let r=0;for(const e of this)i.push([e[0],Reflect.apply(t,n,[e,r,this])]),r++;return new e(i)}reduce(...e){const[t,n]=e;let i=0,r=n??this.at(0);for(const a of this)r=0===i&&1===e.length?a:Reflect.apply(t,this,[r,a,i,this]),i++;return r}reduceRight(...e){const[t,n]=e;let i=n??this.at(-1);for(let r=this.size-1;r>=0;r--){const n=this.at(r);i=r===this.size-1&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this])}return i}toSorted(t){const n=[...this.entries()].sort(t);return new e(n)}toReversed(){const t=new e;for(let e=this.size-1;e>=0;e--){const n=this.keyAt(e),i=this.get(n);t.set(n,i)}return t}toSpliced(...t){const n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){const i=new e;let r=this.size-1;if(void 0===t)return i;t<0&&(t+=this.size),void 0!==n&&n>0&&(r=n-1);for(let e=t;e<=r;e++){const t=this.keyAt(e),n=this.get(t);i.set(t,n)}return i}every(e,t){let n=0;for(const i of this){if(!Reflect.apply(e,t,[i,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(const i of this){if(Reflect.apply(e,t,[i,n,this]))return!0;n++}return!1}};function oi(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=si(e,t);return-1===n?void 0:e[n]}function si(e,t){const n=e.length,i=li(t),r=i>=0?i:n+i;return r<0||r>=n?-1:r}function li(e){return e!=e||0===e?0:Math.trunc(e)}function ci(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null==e||null==t)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(const r of n){if(!Object.prototype.hasOwnProperty.call(t,r))return!1;if(e[r]!==t[r])return!1}return!0}function ui(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function di(e,t){return e[1].element&&t[1].element?ui(e[1].element,t[1].element)?-1:1:0}function fi(e){return new MutationObserver(t=>{for(const n of t)if("childList"===n.type)return void e()})}ni(oi,"at"),ni(si,"toSafeIndex"),ni(li,"toSafeInteger"),ni(function(e){const t=e+"CollectionProvider",[n,i]=b(t),[r,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ai,setItemMap:/* @__PURE__ */ni(()=>{},"setItemMap")}),o=/* @__PURE__ */ni(({state:e,...t})=>e?/* @__PURE__ */Ne(l,{...t,state:e}):/* @__PURE__ */Ne(s,{...t}),"CollectionProvider");o.displayName=t;const s=/* @__PURE__ */ni(e=>{const t=y();/* @__PURE__ */
|