var r=globalThis.__LEPTOS_TIPTAP_BRIDGE__;if(r==null||r.modules==null)throw new Error("leptos-tiptap bridge bindings are unavailable");var e=r.modules["@tiptap/core"];if(e==null)throw new Error('leptos-tiptap bridge module "@tiptap/core" is unavailable');var k=e.CommandManager,b=e.Editor,l=e.Extension,y=e.InputRule,E=e.Mark,h=e.Node,f=e.NodePos,R=e.NodeView,P=e.PasteRule,C=e.Tracker,a=e.callOrReturn,T=e.canInsertNode,S=e.combineTransactionSteps,A=e.createChainableState,w=e.createDocument,N=e.createNodeFromContent,O=e.createStyleTag,B=e.defaultBlockAt,v=e.deleteProps,I=e.elementFromString,M=e.escapeForRegEx,F=e.extensions,D=e.findChildren,j=e.findChildrenInRange,G=e.findDuplicates,L=e.findParentNode,K=e.findParentNodeClosestToPos,q=e.fromString,H=e.generateHTML,z=e.generateJSON,J=e.generateText,U=e.getAttributes,V=e.getAttributesFromExtensions,Y=e.getChangedRanges,Q=e.getDebugJSON,d=e.getExtensionField,W=e.getHTMLFromFragment,X=e.getMarkAttributes,Z=e.getMarkRange,$=e.getMarkType,ee=e.getMarksBetween,te=e.getNodeAtPosition,ne=e.getNodeAttributes,oe=e.getNodeType,re=e.getRenderedAttributes,ie=e.getSchema,se=e.getSchemaByResolvedExtensions,le=e.getSchemaTypeByName,ae=e.getSchemaTypeNameByName,de=e.getSplittedAttributes,pe=e.getText,ce=e.getTextBetween,ue=e.getTextContentFromNodes,ge=e.getTextSerializersFromSchema,_e=e.injectExtensionAttributesToParseRule,xe=e.inputRulesPlugin,me=e.isActive,ke=e.isAtEndOfNode,be=e.isAtStartOfNode,ye=e.isEmptyObject,Ee=e.isExtensionRulesEnabled,he=e.isFunction,fe=e.isList,Re=e.isMacOS,Pe=e.isMarkActive,Ce=e.isNodeActive,Te=e.isNodeEmpty,Se=e.isNodeSelection,Ae=e.isNumber,we=e.isPlainObject,Ne=e.isRegExp,Oe=e.isSafari,Be=e.isString,ve=e.isTextSelection,Ie=e.isiOS,Me=e.markInputRule,Fe=e.markPasteRule,De=e.mergeAttributes,je=e.mergeDeep,Ge=e.minMax,Le=e.nodeInputRule,Ke=e.nodePasteRule,qe=e.objectIncludes,He=e.pasteRulesPlugin,ze=e.posToDOMRect,Je=e.removeDuplicates,Ue=e.resolveFocusPosition,Ve=e.rewriteUnknownContent,Ye=e.selectionToInsertionEnd,Qe=e.splitExtensions,We=e.textInputRule,Xe=e.textPasteRule,Ze=e.textblockTypeInputRule,$e=e.wrappingInputRule;var i=globalThis.__LEPTOS_TIPTAP_BRIDGE__;if(i==null||i.modules==null)throw new Error("leptos-tiptap bridge bindings are unavailable");var s=i.modules["@tiptap/pm/gapcursor"];if(s==null)throw new Error('leptos-tiptap bridge module "@tiptap/pm/gapcursor" is unavailable');var tt=s.GapCursor,p=s.gapCursor;var c=l.create({name:"gapCursor",addProseMirrorPlugins(){return[p()]},extendNodeSchema(t){var n;let o={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(n=a(d(t,"allowGapCursor",o)))!==null&&n!==void 0?n:null}}});var u="__LEPTOS_TIPTAP_BRIDGE__";function x(){let t=globalThis,n=t[u];if(n!=null)return n;let o={modules:{},registerExtension:()=>{throw new Error("leptos-tiptap bridge runtime is not initialized")}};return t[u]=o,o}function g(){return x()}function _(t){g().registerExtension(t)}var m={name:"gapcursor",create:()=>c};function ct(){_(m)}export{ct as register_gapcursor};
