react-reason-editor 1.0.80 → 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-Cwj6pAAY.js → ReasonDocs-D-vS87iT.js} +104 -105
- package/dist/{ReasonDocs-CXj3ne3U.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-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
|
@@ -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{m as d,o as f,p}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{m as d,o as f,p}from"./editorConfig-DqEFArGq.js";import{t as h}from"./separator-CVKC9LXg.js";import{c as m,l as g,s as y,u as v}from"./Comment-DcnVhRwn.js";import{n as k,t as b}from"./button-D_m2J53A.js";import{t as w}from"./checkbox-3vQdQTmi.js";import{a as _,c as x,i as C,l as E,n as D,o as S,r as A,s as F,t as z}from"./floating-ui.dom-CdG_EzIc.js";import{a as B,c as T,f as O,h as P,i as N,l as I,m as j,n as R,o as M,p as L,r as V,s as q,t as W,u as H}from"./dropdown-menu-tmQwCqOR.js";import{i as U,n as $,r as K,t as G}from"./popover-Bgd9XvwH.js";import{t as J}from"./esm-B5g-F24S.js";import{r as Q}from"./ExportWord-BM4ogH_i.js";import*as Z from"react";import X,{Component as Y,Fragment as ee,Suspense as te,cloneElement as ne,createContext as ie,createElement as re,forwardRef as ae,isValidElement as oe,lazy as se,memo as le,useCallback as ce,useContext as ue,useDebugValue as de,useEffect as fe,useId as pe,useLayoutEffect as he,useMemo as me,useReducer as ge,useRef as ye,useState as ve}from"react";import{Slot as ke,createSlot as be}from"@radix-ui/react-slot";import we,{clsx as _e}from"clsx";import{Fragment as xe,jsx as Ce,jsxs as Ee}from"react/jsx-runtime";import{AlignCenterIcon as De,AlignJustifyIcon as Se,AlignLeftIcon as Ae,AlignRightIcon as Fe,AppleIcon as ze,ArrowDown as Be,ArrowDownToLineIcon as Te,ArrowLeft as Oe,ArrowRight as Pe,ArrowUp as Ne,ArrowUpToLineIcon as Ie,AudioLinesIcon as je,BaselineIcon as Re,BoldIcon as Me,BracesIcon as Le,CalendarIcon as Ve,Check as qe,CheckIcon as We,ChevronDown as He,ChevronRight as Ue,ChevronRightIcon as $e,ClockIcon as Ke,Code2 as Ge,Code2Icon as Je,Columns3Icon as Qe,Combine as Ze,CombineIcon as Xe,CompassIcon as Ye,CopyIcon as et,CornerDownLeftIcon as tt,EraserIcon as nt,ExternalLink as it,FileUp as rt,FileUpIcon as at,FilmIcon as ot,FlagIcon as st,Grid2X2Icon as lt,Grid3x3Icon as ct,GripHorizontal as ut,GripVertical as dt,Heading1Icon as ft,Heading2Icon as pt,Heading3Icon as ht,Heading4Icon as mt,Heading5Icon as gt,Heading6Icon as yt,HighlighterIcon as vt,ImageIcon as kt,IndentIcon as bt,ItalicIcon as wt,KeyboardIcon as _t,LeafIcon as xt,LightbulbIcon as Ct,Link as Et,Link2Icon as Dt,List as St,ListCollapseIcon as At,ListIcon as Ft,ListOrdered as zt,ListTodoIcon as Bt,MicIcon as Tt,Minus as Ot,MinusIcon as Pt,MoreHorizontalIcon as Nt,MusicIcon as It,OutdentIcon as jt,PaintBucketIcon as Rt,PenToolIcon as Mt,PilcrowIcon as Lt,Plus as Vt,PlusIcon as qt,Quote as Wt,RadicalIcon as Ht,Redo2Icon as Ut,Search as $t,SearchIcon as Kt,SmileIcon as Gt,SparklesIcon as Jt,Square as Qt,SquareIcon as Zt,SquareSplitHorizontalIcon as Xt,StarIcon as Yt,StrikethroughIcon as en,SubscriptIcon as tn,SuperscriptIcon as nn,Table as rn,TableOfContentsIcon as an,Text as on,Trash2Icon as sn,UnderlineIcon as ln,Undo2Icon as cn,Ungroup as un,Unlink as dn,WrapText as fn,XIcon as pn}from"lucide-react";import*as hn from"react-dom";import mn,{createPortal as gn,flushSync as yn}from"react-dom";import{DropdownMenuItemIndicator as vn}from"@radix-ui/react-dropdown-menu";import*as kn from"@radix-ui/react-popover";import"@radix-ui/react-separator";import*as bn from"@radix-ui/react-tooltip";import{Toggle as wn}from"@radix-ui/react-toggle";import _n from"use-sync-external-store/shim/with-selector.js";import xn from"katex";import{Tweet as Cn}from"react-tweet";import En from"scroll-into-view-if-needed";import{c as Dn}from"react-compiler-runtime";import{all as Sn,createLowlight as An}from"lowlight";import{useSyncExternalStore as Fn}from"use-sync-external-store/shim";import{LiveTranscriber as zn,isTranscriptionSupported as Bn}from"use-voice-control/client";var Tn=Object.defineProperty,On=(e,t)=>Tn(e,"name",{value:t,configurable:!0}),Pn=!("undefined"==typeof window||!window.document||!window.document.createElement);function Nn(e,t,{checkForDefaultPrevented:n=!0}={}){/* @__PURE__ */
|
|
2
2
|
return On(function(i){if(e?.(i),!1===n||!i||!i.defaultPrevented)return t?.(i)},"handleEvent")}function In(e){if(!Pn)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function jn(e){return"IFRAME"===e.tagName}On(Nn,"composeEventHandlers"),On(function(e){if(!Pn)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),On(In,"getOwnerDocument"),On(function e(t,n=!1){const{activeElement:i}=In(t);if(!i?.nodeName)return null;if(jn(i)&&i.contentDocument)return e(i.contentDocument.body,n);if(n){const e=i.getAttribute("aria-activedescendant");if(e){const t=In(i).getElementById(e);if(t)return t}}return i},"getActiveElement"),On(jn,"isFrame");var Rn=Object.defineProperty,Mn=(e,t)=>Rn(e,"name",{value:t,configurable:!0});function Ln(e){const t=e+"CollectionProvider",[n,i]=v(t),[r,a]=n(t,{collectionRef:{current:null},itemMap:/* @__PURE__ */new Map}),o=/* @__PURE__ */Mn(e=>{const{scope:t,children:n}=e,i=Z.useRef(null),a=Z.useRef(/* @__PURE__ */new Map).current;/* @__PURE__ */
|
|
3
3
|
return Ce(r,{scope:t,itemMap:a,collectionRef:i,children:n})},"CollectionProvider");o.displayName=t;const s=e+"CollectionSlot",l=be(s),c=Z.forwardRef((e,t)=>{const{scope:n,children:i}=e,r=a(s,n),o=d(t,r.collectionRef);/* @__PURE__ */
|
|
4
4
|
return Ce(l,{ref:o,children:i})});c.displayName=s;const u=e+"CollectionItemSlot",f="data-radix-collection-item",p=be(u),h=Z.forwardRef((e,t)=>{const{scope:n,children:i,...r}=e,o=Z.useRef(null),s=d(t,o),l=a(u,n);return Z.useEffect(()=>(l.itemMap.set(o,{ref:o,...r}),()=>{l.itemMap.delete(o)})),/* @__PURE__ */Ce(p,{[f]:"",ref:s,children:i})});function m(t){const n=a(e+"CollectionConsumer",t);return Z.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`));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,Mn(m,"useCollection"),[{Provider:o,Slot:c,ItemSlot:h},m,i]}Mn(Ln,"createCollection");var Vn=/* @__PURE__ */new WeakMap,qn=class e extends Map{static{Mn(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],Vn.set(this,!0)}set(e,t){return Vn.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=Un(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=Wn(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){const t=Wn(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Wn(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 Wn(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=Hn(e,t);return-1===n?void 0:e[n]}function Hn(e,t){const n=e.length,i=Un(t),r=i>=0?i:n+i;return r<0||r>=n?-1:r}function Un(e){return e!=e||0===e?0:Math.trunc(e)}function $n(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 Kn(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Gn(e,t){return e[1].element&&t[1].element?Kn(e[1].element,t[1].element)?-1:1:0}function Jn(e){return new MutationObserver(t=>{for(const n of t)if("childList"===n.type)return void e()})}Mn(Wn,"at"),Mn(Hn,"toSafeIndex"),Mn(Un,"toSafeInteger"),Mn(function(e){const t=e+"CollectionProvider",[n,i]=v(t),[r,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new qn,setItemMap:/* @__PURE__ */Mn(()=>{},"setItemMap")}),o=/* @__PURE__ */Mn(({state:e,...t})=>e?/* @__PURE__ */Ce(l,{...t,state:e}):/* @__PURE__ */Ce(s,{...t}),"CollectionProvider");o.displayName=t;const s=/* @__PURE__ */Mn(e=>{const t=y();/* @__PURE__ */
|