react-reason-editor 1.0.116 → 1.0.118

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 (28) hide show
  1. package/dist/{BubbleMenus-D8BicxJF.cjs → BubbleMenus-FfgNfh6Y.cjs} +1 -1
  2. package/dist/{BubbleMenus-DopOZm_P.js → BubbleMenus-R5Y-9JWK.js} +1 -1
  3. package/dist/{ExportWord--CMls-Qy.js → ExportWord-DAZyykON.js} +1 -1
  4. package/dist/ExportWord.cjs +1 -1
  5. package/dist/ExportWord.js +1 -1
  6. package/dist/{ReasonDocs-BCjyspDd.cjs → ReasonDocs-ChsTkp1F.cjs} +1 -1
  7. package/dist/{ReasonDocs-eAuJLZVg.js → ReasonDocs-lKBq553-.js} +1 -1
  8. package/dist/{RichTextProvider-C0V3hhy_.cjs → RichTextProvider-BPoiX8UM.cjs} +1 -1
  9. package/dist/{RichTextProvider-z_4PSTNH.js → RichTextProvider-C0vjZBR9.js} +1 -1
  10. package/dist/docs-agent.cjs +1 -1
  11. package/dist/docs-agent.js +1 -1
  12. package/dist/editor-kit.cjs +1 -1
  13. package/dist/editor-kit.js +1 -1
  14. package/dist/{editorConfig-DaUET9eN.cjs → editorConfig-BJeXCimT.cjs} +1 -1
  15. package/dist/{editorConfig-CpUHUq44.js → editorConfig-bKWvUr1h.js} +1 -1
  16. package/dist/html-to-docx.esm-BXXvDBHn-CEg-rexN.cjs +1 -0
  17. package/dist/html-to-docx.esm-BXXvDBHn.js +1 -0
  18. package/dist/html-to-docx.esm-oeykiqaU.cjs +1 -0
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/reason-docs.cjs +1 -1
  22. package/dist/reason-docs.js +1 -1
  23. package/dist/{reason-toolbar-skin-BQRPoci6.cjs → reason-toolbar-skin-D-0TbfOh.cjs} +1 -1
  24. package/dist/{reason-toolbar-skin-Beh6Q5Ra.js → reason-toolbar-skin-jaDSLX5e.js} +1 -1
  25. package/package.json +2 -2
  26. package/dist/html-to-docx.esm-BLUcO7pp-sCMiaq9J.cjs +0 -1
  27. package/dist/html-to-docx.esm-BLUcO7pp.js +0 -1
  28. package/dist/html-to-docx.esm-DFEdsNe8.cjs +0 -1
@@ -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-CpUHUq44.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 P,f as N,h as I,i as j,l as R,m as M,n as L,o as V,p as q,r as W,s as H,t as U,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 X,d as Y,f as Z,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--CMls-Qy.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 Pe,jsxs as Ne}from"react/jsx-runtime";import{AlignCenterIcon as Ie,AlignJustifyIcon as je,AlignLeftIcon as Re,AlignRightIcon as Me,AppleIcon as Le,ArrowDown as Ve,ArrowDownToLineIcon as qe,ArrowLeft as We,ArrowRight as He,ArrowUp as Ue,ArrowUpToLineIcon as $e,AudioLinesIcon as Ke,BaselineIcon as Ge,BoldIcon as Je,BracesIcon as Qe,CalendarIcon as Xe,Check as Ye,CheckIcon as Ze,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 Pt,LeafIcon as Nt,LightbulbIcon as It,Link as jt,Link2Icon as Rt,List as Mt,ListCollapseIcon as Lt,ListIcon as Vt,ListOrdered as qt,ListTodoIcon as Wt,Loader2 as Ht,MicIcon as Ut,Minus as $t,MinusIcon as Kt,MoreHorizontalIcon as Gt,MusicIcon as Jt,OutdentIcon as Qt,PaintBucketIcon as Xt,PenToolIcon as Yt,PilcrowIcon as Zt,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 Pn}from"@radix-ui/react-dropdown-menu";import*as Nn 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 Vn from"scroll-into-view-if-needed";import{c as qn}from"react-compiler-runtime";import{all as Wn,createLowlight as Hn}from"lowlight";import{useSyncExternalStore as Un}from"use-sync-external-store/shim";import{LiveTranscriber as $n,isTranscriptionSupported as Kn}from"use-voice-control/client";var Gn=Object.defineProperty,Jn=(e,t)=>Gn(e,"name",{value:t,configurable:!0}),Qn=!("undefined"==typeof window||!window.document||!window.document.createElement);function Xn(e,t,{checkForDefaultPrevented:n=!0}={}){/* @__PURE__ */
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-bKWvUr1h.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 P,f as N,h as I,i as j,l as R,m as M,n as L,o as V,p as q,r as W,s as H,t as U,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 X,d as Y,f as Z,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 Pe,jsxs as Ne}from"react/jsx-runtime";import{AlignCenterIcon as Ie,AlignJustifyIcon as je,AlignLeftIcon as Re,AlignRightIcon as Me,AppleIcon as Le,ArrowDown as Ve,ArrowDownToLineIcon as qe,ArrowLeft as We,ArrowRight as He,ArrowUp as Ue,ArrowUpToLineIcon as $e,AudioLinesIcon as Ke,BaselineIcon as Ge,BoldIcon as Je,BracesIcon as Qe,CalendarIcon as Xe,Check as Ye,CheckIcon as Ze,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 Pt,LeafIcon as Nt,LightbulbIcon as It,Link as jt,Link2Icon as Rt,List as Mt,ListCollapseIcon as Lt,ListIcon as Vt,ListOrdered as qt,ListTodoIcon as Wt,Loader2 as Ht,MicIcon as Ut,Minus as $t,MinusIcon as Kt,MoreHorizontalIcon as Gt,MusicIcon as Jt,OutdentIcon as Qt,PaintBucketIcon as Xt,PenToolIcon as Yt,PilcrowIcon as Zt,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 Pn}from"@radix-ui/react-dropdown-menu";import*as Nn 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 Vn from"scroll-into-view-if-needed";import{c as qn}from"react-compiler-runtime";import{all as Wn,createLowlight as Hn}from"lowlight";import{useSyncExternalStore as Un}from"use-sync-external-store/shim";import{LiveTranscriber as $n,isTranscriptionSupported as Kn}from"use-voice-control/client";var Gn=Object.defineProperty,Jn=(e,t)=>Gn(e,"name",{value:t,configurable:!0}),Qn=!("undefined"==typeof window||!window.document||!window.document.createElement);function Xn(e,t,{checkForDefaultPrevented:n=!0}={}){/* @__PURE__ */
2
2
  return Jn(function(i){if(e?.(i),!1===n||!i||!i.defaultPrevented)return t?.(i)},"handleEvent")}function Yn(e){if(!Qn)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function Zn(e){return"IFRAME"===e.tagName}Jn(Xn,"composeEventHandlers"),Jn(function(e){if(!Qn)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),Jn(Yn,"getOwnerDocument"),Jn(function e(t,n=!1){const{activeElement:i}=Yn(t);if(!i?.nodeName)return null;if(Zn(i)&&i.contentDocument)return e(i.contentDocument.body,n);if(n){const e=i.getAttribute("aria-activedescendant");if(e){const t=Yn(i).getElementById(e);if(t)return t}}return i},"getActiveElement"),Jn(Zn,"isFrame");var ei=Object.defineProperty,ti=(e,t)=>ei(e,"name",{value:t,configurable:!0});function ni(e){const t=e+"CollectionProvider",[n,i]=b(t),[r,a]=n(t,{collectionRef:{current:null},itemMap:/* @__PURE__ */new Map}),o=/* @__PURE__ */ti(e=>{const{scope:t,children:n}=e,i=se.useRef(null),a=se.useRef(/* @__PURE__ */new Map).current;/* @__PURE__ */
3
3
  return Pe(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 Pe(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__ */Pe(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,ti(m,"useCollection"),[{Provider:o,Slot:c,ItemSlot:h},m,i]}ti(ni,"createCollection");var ii=/* @__PURE__ */new WeakMap,ri=class e extends Map{static{ti(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],ii.set(this,!0)}set(e,t){return ii.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=si(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=ai(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){const t=ai(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return ai(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 ai(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=oi(e,t);return-1===n?void 0:e[n]}function oi(e,t){const n=e.length,i=si(t),r=i>=0?i:n+i;return r<0||r>=n?-1:r}function si(e){return e!=e||0===e?0:Math.trunc(e)}function li(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 ci(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function ui(e,t){return e[1].element&&t[1].element?ci(e[1].element,t[1].element)?-1:1:0}function di(e){return new MutationObserver(t=>{for(const n of t)if("childList"===n.type)return void e()})}ti(ai,"at"),ti(oi,"toSafeIndex"),ti(si,"toSafeInteger"),ti(function(e){const t=e+"CollectionProvider",[n,i]=b(t),[r,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ri,setItemMap:/* @__PURE__ */ti(()=>{},"setItemMap")}),o=/* @__PURE__ */ti(({state:e,...t})=>e?/* @__PURE__ */Pe(l,{...t,state:e}):/* @__PURE__ */Pe(s,{...t}),"CollectionProvider");o.displayName=t;const s=/* @__PURE__ */ti(e=>{const t=y();/* @__PURE__ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-reason-editor",
3
- "version": "1.0.116",
3
+ "version": "1.0.118",
4
4
  "description": "A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -919,7 +919,7 @@
919
919
  "react-image-crop": "^11.1.2",
920
920
  "react-lite-youtube-embed": "^3.7.0",
921
921
  "react-player": "3.4.0",
922
- "react-reason-editor-sidebar": "^0.1.33",
922
+ "react-reason-editor-sidebar": "^0.1.35",
923
923
  "react-split-pane": "^3.2.0",
924
924
  "react-textarea-autosize": "^8.5.9",
925
925
  "react-tweet": "^3.3.1",