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