reactjs-tiptap-editor 1.0.25 → 1.0.28
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/lib/{ActionMenuButton-8cTG45Ft.js → ActionMenuButton-BhiGvRJ7.js} +1 -1
- package/lib/{ActionMenuButton-CXeFhner.cjs → ActionMenuButton-qUxkZlQg.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.js +14 -14
- package/lib/Blockquote.cjs +5 -5
- package/lib/Blockquote.js +1497 -53
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +3 -3
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +2 -2
- package/lib/{Callout-ZlPQrMEt.js → Callout-B9uXfbP3.js} +20 -20
- package/lib/{Callout-DWOMZPiP.cjs → Callout-C_TXsss3.cjs} +1 -1
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +4 -4
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +2 -2
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +56 -39
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +8 -4
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +2 -2
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +3 -3
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +2 -2
- package/lib/{Drawer-TJY4NuHx.cjs → Drawer-D3B4lQJF.cjs} +1 -1
- package/lib/{Drawer-C-EO1uoK.js → Drawer-h401Yy6Y.js} +4 -4
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +4 -4
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +1797 -268
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +10 -10
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +2 -2
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +2 -2
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +5 -5
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +5 -5
- package/lib/FormatPainter.cjs +1 -0
- package/lib/FormatPainter.js +133 -0
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +15 -11
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +3 -3
- package/lib/History.cjs +7 -1
- package/lib/History.js +663 -569
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +2 -2
- package/lib/{Iframe-CGb6-2LD.js → Iframe-Dhn40BXx.js} +7 -7
- package/lib/{Iframe-5zx43DL4.cjs → Iframe-bvGuzYwC.cjs} +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +3 -3
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +9 -6
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +33 -33
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +5 -5
- package/lib/{Indent-CdMYsDNS.js → Indent-BK9DvCL7.js} +2 -2
- package/lib/{Indent-DuwV8s1t.cjs → Indent-IOByomps.cjs} +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +2 -2
- package/lib/{Katex-CCP_ZQz2.js → Katex-C_Ah9G9w.js} +5 -5
- package/lib/{Katex-D9FP7EUE.cjs → Katex-oLGrtLTf.cjs} +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +3 -3
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +4 -4
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/{LinkEditBlock-DQ8-iufJ.cjs → LinkEditBlock-BojxdGTm.cjs} +2 -2
- package/lib/{LinkEditBlock-B1m-TVMu.js → LinkEditBlock-DRdKXffy.js} +88 -57
- package/lib/MarkdownPaste.cjs +1 -1
- package/lib/MarkdownPaste.js +1 -1
- package/lib/Mention.cjs +1 -1
- package/lib/Mention.js +9 -5
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.js +14 -14
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +3 -3
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +2 -2
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +10 -10
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +7 -7
- package/lib/{SlashCommandNodeView-DNixmQGa.cjs → SlashCommandNodeView-Dai-O3aD.cjs} +1 -1
- package/lib/{SlashCommandNodeView-Dt6n1SP9.js → SlashCommandNodeView-qwW9cuYt.js} +10 -10
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +2 -2
- package/lib/{Table-DdEgaUwa.js → Table-BKM8SvVj.js} +115 -97
- package/lib/{Table-C5JxBXef.cjs → Table-CWI7tKme.cjs} +5 -5
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +2 -2
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +11 -11
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +3 -3
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +2 -2
- package/lib/Twitter-BfsPzA8_.cjs +1 -0
- package/lib/{Twitter-Dnz9qyW0.js → Twitter-CofLQ-zj.js} +191 -191
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +3 -3
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +3 -3
- package/lib/bubble.cjs +6 -6
- package/lib/bubble.js +2504 -2152
- package/lib/{clsx-D6gYQn3o.cjs → clsx-DJURdKPs.cjs} +2 -2
- package/lib/{clsx-0OU6n9va.js → clsx-b_2OwHLk.js} +28 -18
- package/lib/components/Bubble/RichTextBubbleCallout.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleCodeBlock.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleColumns.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleDrawer.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleExcalidraw.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleIframe.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleKatex.d.ts +2 -1
- package/lib/components/Bubble/RichTextBubbleLink.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleMedia.d.ts +3 -3
- package/lib/components/Bubble/RichTextBubbleMenuDragHandle.d.ts +2 -1
- package/lib/components/Bubble/RichTextBubbleMermaid.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleTable.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleText.d.ts +1 -1
- package/lib/components/Bubble/RichTextBubbleTwitter.d.ts +1 -1
- package/lib/components/ColorPicker.d.ts +1 -1
- package/lib/components/ReactBus.d.ts +1 -1
- package/lib/components/RichTextProvider.d.ts +1 -1
- package/lib/components/SlashDialogTrigger/RenderDialogUploadImage.d.ts +1 -1
- package/lib/components/SlashDialogTrigger/RenderDialogUploadVideo.d.ts +1 -1
- package/lib/components/SlashDialogTrigger/SlashDialogTrigger.d.ts +2 -1
- package/lib/components/icons/Activity.d.ts +2 -1
- package/lib/components/icons/Animas.d.ts +2 -1
- package/lib/components/icons/AspectRatio.d.ts +1 -1
- package/lib/components/icons/Blockquote.d.ts +1 -1
- package/lib/components/icons/CodeView.d.ts +1 -1
- package/lib/components/icons/ColumnAddLeft.d.ts +1 -1
- package/lib/components/icons/ColumnAddRight.d.ts +1 -1
- package/lib/components/icons/DeleteColumn.d.ts +1 -1
- package/lib/components/icons/DeleteRow.d.ts +1 -1
- package/lib/components/icons/Direction.d.ts +1 -1
- package/lib/components/icons/Excalidraw.d.ts +1 -1
- package/lib/components/icons/ExportPdf.d.ts +1 -1
- package/lib/components/icons/ExportWord.d.ts +2 -1
- package/lib/components/icons/FileWordOutline.d.ts +1 -1
- package/lib/components/icons/Flag.d.ts +2 -1
- package/lib/components/icons/Food.d.ts +2 -1
- package/lib/components/icons/GIfIcon.d.ts +1 -1
- package/lib/components/icons/Html.d.ts +1 -1
- package/lib/components/icons/Icon.d.ts +1 -1
- package/lib/components/icons/IconColorFill.d.ts +1 -1
- package/lib/components/icons/IconHighlightFill.d.ts +1 -1
- package/lib/components/icons/ImportWord.d.ts +2 -1
- package/lib/components/icons/LeftToRight.d.ts +1 -1
- package/lib/components/icons/LineHeight.d.ts +1 -1
- package/lib/components/icons/MenuDown.d.ts +1 -1
- package/lib/components/icons/Mermaid.d.ts +1 -1
- package/lib/components/icons/NoFill.d.ts +1 -1
- package/lib/components/icons/Object.d.ts +2 -1
- package/lib/components/icons/RightToLeft.d.ts +1 -1
- package/lib/components/icons/SizeL.d.ts +1 -1
- package/lib/components/icons/SizeM.d.ts +1 -1
- package/lib/components/icons/SizeS.d.ts +1 -1
- package/lib/components/icons/Symbol.d.ts +2 -1
- package/lib/components/icons/Travel.d.ts +2 -1
- package/lib/components/icons/Twitter.d.ts +1 -1
- package/lib/components/ui/dialog.d.ts +2 -2
- package/lib/components/ui/dropdown-menu.d.ts +1 -1
- package/lib/components/ui/emoji-picker.d.ts +4 -4
- package/lib/components/ui/toaster.d.ts +1 -1
- package/lib/{dropdown-menu-yQ-sQ1k4.cjs → dropdown-menu-CEMxzgnU.cjs} +1 -1
- package/lib/{dropdown-menu-ROihzXsP.js → dropdown-menu-CKAKsyqu.js} +1 -1
- package/lib/extensions/Attachment/components/NodeViewAttachment/FileIcon.d.ts +1 -1
- package/lib/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.d.ts +1 -1
- package/lib/extensions/Attachment/components/RichTextAttachment.d.ts +1 -1
- package/lib/extensions/Blockquote/components/RichTextBlockquote.d.ts +1 -1
- package/lib/extensions/Bold/components/RichTextBold.d.ts +1 -1
- package/lib/extensions/BulletList/components/RichTextBulletList.d.ts +1 -1
- package/lib/extensions/Callout/components/NodeViewCallout/NodeViewCallout.d.ts +1 -1
- package/lib/extensions/Callout/components/RichTextCallout.d.ts +1 -1
- package/lib/extensions/Clear/components/RichTextClear.d.ts +1 -1
- package/lib/extensions/Code/components/RichTextCode.d.ts +1 -1
- package/lib/extensions/CodeBlock/components/RichTextCodeBlock.d.ts +2 -1
- package/lib/extensions/CodeView/components/RichTextCodeView.d.ts +1 -1
- package/lib/extensions/Color/components/RichTextColor.d.ts +1 -1
- package/lib/extensions/Column/Column.d.ts +10 -2
- package/lib/extensions/Column/components/RichTextColumn.d.ts +1 -1
- package/lib/extensions/Drawer/components/ControlDrawer/ControlDrawer.d.ts +2 -1
- package/lib/extensions/Drawer/components/ControlDrawer/icon.d.ts +27 -27
- package/lib/extensions/Drawer/components/EditDrawerBlock.d.ts +1 -1
- package/lib/extensions/Drawer/components/NodeViewDrawer/NodeViewDrawer.d.ts +2 -1
- package/lib/extensions/Drawer/components/RichTextDrawer.d.ts +1 -1
- package/lib/extensions/Emoji/components/RichTextEmoji.d.ts +2 -1
- package/lib/extensions/Excalidraw/components/NodeViewExcalidraw/NodeViewExcalidraw.d.ts +2 -1
- package/lib/extensions/Excalidraw/components/RichTextExcalidraw.d.ts +1 -1
- package/lib/extensions/ExportPdf/components/RichTextExportPdf.d.ts +1 -1
- package/lib/extensions/ExportWord/components/RichTextExportWord.d.ts +1 -1
- package/lib/extensions/FontFamily/components/RichTextFontFamily.d.ts +1 -1
- package/lib/extensions/FontSize/components/RichTextFontSize.d.ts +1 -1
- package/lib/extensions/FormatPainter/FormatPainter.d.ts +17 -0
- package/lib/extensions/FormatPainter/components/RichTextFormatPainter.d.ts +1 -0
- package/lib/extensions/FormatPainter/index.d.ts +1 -0
- package/lib/extensions/Heading/components/RichTextHeading.d.ts +1 -1
- package/lib/extensions/Highlight/components/RichTextHighlight.d.ts +2 -1
- package/lib/extensions/History/components/RichTextHistory.d.ts +3 -2
- package/lib/extensions/HorizontalRule/components/RichTextHorizontalRule.d.ts +1 -1
- package/lib/extensions/Iframe/components/IframeNodeView.d.ts +1 -1
- package/lib/extensions/Iframe/components/RichTextIframe.d.ts +1 -1
- package/lib/extensions/Image/Image.d.ts +13 -1
- package/lib/extensions/Image/components/ImageCropper.d.ts +2 -1
- package/lib/extensions/Image/components/ImageView.d.ts +2 -1
- package/lib/extensions/Image/components/RichTextImage.d.ts +1 -1
- package/lib/extensions/ImageGif/components/ImageGifView.d.ts +2 -1
- package/lib/extensions/ImageGif/components/RichTextImageGif.d.ts +2 -1
- package/lib/extensions/ImportWord/components/RichTextImportWord.d.ts +1 -1
- package/lib/extensions/Indent/components/RichTextIndent.d.ts +1 -1
- package/lib/extensions/Italic/components/RichTextItalic.d.ts +1 -1
- package/lib/extensions/Katex/components/KatexWrapper.d.ts +1 -1
- package/lib/extensions/Katex/components/RichTextKatex.d.ts +1 -1
- package/lib/extensions/LineHeight/components/RichTextLightHeight.d.ts +1 -1
- package/lib/extensions/Link/components/LinkEditBlock.d.ts +1 -1
- package/lib/extensions/Link/components/LinkViewBlock.d.ts +2 -1
- package/lib/extensions/Link/components/RichTextLink.d.ts +1 -1
- package/lib/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid.d.ts +2 -1
- package/lib/extensions/Mermaid/components/RichTextMermaid.d.ts +1 -1
- package/lib/extensions/MoreMark/components/RichTextMoreMark.d.ts +1 -1
- package/lib/extensions/OrderedList/components/RichTextOrderedList.d.ts +1 -1
- package/lib/extensions/SearchAndReplace/components/RichTextSearchAndReplace.d.ts +1 -1
- package/lib/extensions/SlashCommand/components/SlashCommandList.d.ts +1 -1
- package/lib/extensions/Strike/components/RichTextStrike.d.ts +1 -1
- package/lib/extensions/Table/components/CreateTablePopover.d.ts +2 -1
- package/lib/extensions/Table/components/RichTextTable.d.ts +2 -1
- package/lib/extensions/TaskList/components/RichTextTaskList.d.ts +1 -1
- package/lib/extensions/TextAlign/components/RichTextAlign.d.ts +1 -1
- package/lib/extensions/TextDirection/components/RichTextTextDirection.d.ts +1 -1
- package/lib/extensions/TextUnderline/components/RichTextUnderline.d.ts +1 -1
- package/lib/extensions/Twitter/components/FormEditLinkTwitter.d.ts +1 -1
- package/lib/extensions/Twitter/components/NodeViewTweet.d.ts +1 -1
- package/lib/extensions/Twitter/components/RichTextTwitter.d.ts +1 -1
- package/lib/extensions/Video/components/RichTextVideo.d.ts +1 -1
- package/lib/index-BJQ1G8B1.js +311 -0
- package/lib/index-BO82_0q8.cjs +1 -0
- package/lib/{index-D-Ouz0vF.js → index-Bn_WPziX.js} +1 -1
- package/lib/index-CwbGrQFa.cjs +1 -0
- package/lib/{index-oj858lQO.js → index-DKruDABV.js} +209 -209
- package/lib/{index-BAb_UADw.cjs → index-DN-IR-K0.cjs} +1 -1
- package/lib/{index-X6WZUM9O.js → index-DRcwHivm.js} +1702 -1486
- package/lib/index-DUeBQoIA.cjs +1 -0
- package/lib/index-DeoYYWEA.js +1756 -0
- package/lib/{index-CUvjYuRp.cjs → index-Dgs2thVL.cjs} +1 -1
- package/lib/index-DjB2kNdz.js +1120 -0
- package/lib/{index-zw-Kd38i.js → index-DuWMq-Qs.js} +1 -1
- package/lib/index-EoGU7W4e.cjs +26 -0
- package/lib/index-MDz4NZcT.cjs +12 -0
- package/lib/{index-BblvcbTH.js → index-n4kM0Ll-.js} +1527 -1406
- package/lib/index-qZURFC5Q.cjs +2 -0
- package/lib/index.cjs +1 -1
- package/lib/index.js +2 -2
- package/lib/{jsx-runtime-CT7Pcg-t.js → jsx-runtime-DE8oVoME.js} +3 -1
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.js +1 -1
- package/lib/locales/index.d.ts +1 -1
- package/lib/{popover-BfWFqCIs.js → popover-Beieacfy.js} +1 -1
- package/lib/{popover-BPzkMuyi.cjs → popover-Bl1kxRJX.cjs} +1 -1
- package/lib/{renderNodeView-D--fDFov.cjs → renderNodeView-BIgT6Ghg.cjs} +1 -1
- package/lib/{renderNodeView-CfWJK4rG.js → renderNodeView-Bi58v3DZ.js} +2 -2
- package/lib/{separator-DpaS43Gt.cjs → separator-DMLtkcoo.cjs} +1 -1
- package/lib/{separator-CBPrZizK.js → separator-DfvK668q.js} +11 -11
- package/lib/store/EditorEditableReactive.d.ts +1 -1
- package/lib/store/ThemeColorReactive.d.ts +1 -1
- package/lib/style.css +1 -1
- package/lib/{textarea-wvARZKyA.cjs → textarea-DV9Fw3y1.cjs} +1 -1
- package/lib/{textarea-Bl64keav.js → textarea-GXaWJbm9.js} +1 -1
- package/lib/theme.cjs +1 -1
- package/lib/theme.js +1 -1
- package/lib/types.d.ts +2 -2
- package/lib/{updatePosition-BwzAsiY0.js → updatePosition-DY1jI7qb.js} +2 -2
- package/lib/{updatePosition-DGPtRfWN.cjs → updatePosition-D_D-TbEu.cjs} +1 -1
- package/package.json +86 -72
- package/lib/Twitter--tfifMt1.cjs +0 -1
- package/lib/index-BF3EVCB1.cjs +0 -2
- package/lib/index-BG0kQamI.js +0 -285
- package/lib/index-Bcj8cyOO.cjs +0 -24
- package/lib/index-CGjT-a9h.js +0 -1377
- package/lib/index-CPTpXLfX.cjs +0 -11
- package/lib/index-CWw4s87s.cjs +0 -1
- package/lib/index-Cal5SPfB.js +0 -779
- package/lib/index-Gi752TMk.cjs +0 -1
- package/lib/index-NsYff_Ni.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const S=require("react"),re=require("react-dom"),A=require("react/jsx-runtime"),P=require("./index-
|
|
1
|
+
"use strict";const S=require("react"),re=require("react-dom"),A=require("react/jsx-runtime"),P=require("./index-EoGU7W4e.cjs");var j={exports:{}},M={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* use-sync-external-store-shim.production.js
|
|
4
4
|
*
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Z;function Ze(){return Z||(Z=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=S,r=W(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,a=t.useRef,i=t.useEffect,s=t.useMemo,y=t.useDebugValue;G.useSyncExternalStoreWithSelector=function(c,h,p,v,l){var f=a(null);if(f.current===null){var m={hasValue:!1,value:null};f.current=m}else m=f.current;f=s(function(){function d(_){if(!E){if(E=!0,R=_,_=v(_),l!==void 0&&m.hasValue){var w=m.value;if(l(w,_))return O=w}return O=_}if(w=O,n(R,_))return w;var T=v(_);return l!==void 0&&l(w,T)?(R=_,w):(R=_,O=T)}var E=!1,R,O,g=p===void 0?null:p;return[function(){return d(h())},g===null?void 0:function(){return d(g())}]},[h,p,v,l]);var u=o(c,f[0],f[1]);return i(function(){m.hasValue=!0,m.value=u},[u]),y(u),u},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),G}var Q;function Qe(){return Q||(Q=1,process.env.NODE_ENV==="production"?D.exports=Xe():D.exports=Ze()),D.exports}var et=Qe(),tt=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},rt=({contentComponent:e})=>{const t=ne.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return A.jsx(A.Fragment,{children:Object.values(t)})};function nt(){const e=new Set;let t={};return{subscribe(r){return e.add(r),()=>{e.delete(r)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(r,n){t={...t,[r]:re.createPortal(n.reactElement,n.element,r)},e.forEach(o=>o())},removeRenderer(r){const n={...t};delete n[r],t=n,e.forEach(o=>o())}}}var ot=class extends S.Component{constructor(e){super(e),this.editorContentRef=S.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;const t=this.props.editor;if(t&&!t.isDestroyed&&((e=t.view.dom)!=null&&e.parentNode)){if(t.contentComponent)return;const r=this.editorContentRef.current;r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r}),t.contentComponent=nt(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;const t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!((e=t.view.dom)!=null&&e.parentNode))return;const r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){const{editor:e,innerRef:t,...r}=this.props;return A.jsxs(A.Fragment,{children:[A.jsx("div",{ref:tt(t,this.editorContentRef),...r}),(e==null?void 0:e.contentComponent)&&A.jsx(rt,{contentComponent:e.contentComponent})]})}},it=S.forwardRef((e,t)=>{const r=S.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return S.createElement(ot,{key:r,innerRef:t,...e})}),st=S.memo(it),ut=typeof window<"u"?S.useLayoutEffect:S.useEffect,at=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const t=()=>{this.transactionNumber+=1,this.subscribers.forEach(n=>n())},r=this.editor;return r.on("transaction",t),()=>{r.off("transaction",t)}}}};function ct(e){var t;const[r]=S.useState(()=>new at(e.editor)),n=et.useSyncExternalStoreWithSelector(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,(t=e.equalityFn)!=null?t:Je);return ut(()=>r.watch(e.editor),[e.editor,r]),S.useDebugValue(n),n}process.env.NODE_ENV;var V=S.createContext({editor:null});V.Consumer;var lt=()=>S.useContext(V),ie=S.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),dt=()=>S.useContext(ie),ft=S.forwardRef((e,t)=>{const{onDragStart:r}=dt(),n=e.as||"div";return A.jsx(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})});function ee(e){return!!(typeof e=="function"&&e.prototype&&e.prototype.isReactComponent)}function te(e){return!!(typeof e=="object"&&e.$$typeof&&(e.$$typeof.toString()==="Symbol(react.forward_ref)"||e.$$typeof.description==="react.forward_ref"))}function ht(e){return!!(typeof e=="object"&&e.$$typeof&&(e.$$typeof.toString()==="Symbol(react.memo)"||e.$$typeof.description==="react.memo"))}function pt(e){if(ee(e)||te(e))return!0;if(ht(e)){const t=e.type;if(t)return ee(t)||te(t)}return!1}function mt(){try{if(S.version)return parseInt(S.version.split(".")[0],10)>=19}catch{}return!1}var se=class{constructor(e,{editor:t,props:r={},as:n="div",className:o=""}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=e,this.editor=t,this.props=r,this.element=document.createElement(n),this.element.classList.add("react-renderer"),o&&this.element.classList.add(...o.split(" ")),this.editor.isEditorContentInitialized?re.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var e;if(this.destroyed)return;const t=this.component,r=this.props,n=this.editor,o=mt(),a=pt(t),i={...r};i.ref&&!(o||a)&&delete i.ref,!i.ref&&(o||a)&&(i.ref=s=>{this.ref=s}),this.reactElement=A.jsx(t,{...i}),(e=n==null?void 0:n.contentComponent)==null||e.setRenderer(this.id,this)}updateProps(e={}){if(this.destroyed)return;let t=!1;const r=Object.keys(e);for(let n=0;n<r.length;n+=1){const o=r[n];if(e[o]!==this.props[o]){t=!0;break}}t&&(this.props={...this.props,...e},this.render())}destroy(){var e;this.destroyed=!0;const t=this.editor;(e=t==null?void 0:t.contentComponent)==null||e.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}};S.createContext({markViewContentRef:()=>{}});var Et=class extends P.NodeView{constructor(e,t,r){if(super(e,t,r),this.selectionRafId=null,this.handlePositionUpdate=()=>{const n=this.getPos();typeof n!="number"||n===this.currentPos||(this.currentPos=n,this.renderer.updateProps({getPos:()=>this.getPos()}),typeof this.options.attrs=="function"&&this.updateElementAttributes())},this.cachedExtensionWithSyncedStorage=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const n=this.dom.querySelector("[data-node-view-content]");if(!n)return;n.appendChild(this.contentDOMElement)}this.options.trackNodeViewPosition&&this.editor.on("update",this.handlePositionUpdate)}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){const e=this.editor,t=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(t,{get(r,n,o){var a;return n==="storage"?(a=e.storage[t.name])!=null?a:{}:Reflect.get(r,n,o)}})}return this.cachedExtensionWithSyncedStorage}mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(c={})=>this.updateAttributes(c),deleteNode:()=>this.deleteNode(),ref:S.createRef()};if(!this.component.displayName){const c=h=>h.charAt(0).toUpperCase()+h.substring(1);this.component.displayName=c(this.extension.name)}const o={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:c=>{c&&this.contentDOMElement&&c.firstChild!==this.contentDOMElement&&(c.hasAttribute("data-node-view-wrapper")&&c.removeAttribute("data-node-view-wrapper"),c.appendChild(this.contentDOMElement))}},a=this.component,i=S.memo(c=>A.jsx(ie.Provider,{value:o,children:S.createElement(a,c)}));i.displayName="ReactNodeView";let s=this.node.isInline?"span":"div";this.options.as&&(s=this.options.as);const{className:y=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new se(i,{editor:this.editor,props:t,as:s,className:`node-${this.node.type.name} ${y}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes(),this.currentPos=this.getPos()}get dom(){var e;if(this.renderer.element.firstElementChild&&!((e=this.renderer.element.firstElementChild)!=null&&e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;const e=this.currentPos;if(typeof e!="number")return;if(P.isNodeViewSelected({selection:this.editor.state.selection,pos:e,nodeSize:this.node.nodeSize,selectedOnTextSelection:this.options.selectedOnTextSelection})){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(e,t,r){const n=s=>{this.renderer.updateProps(s),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const s=this.node,y=this.decorations,c=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=r,this.currentPos=this.getPos(),this.options.update({oldNode:s,oldDecorations:y,newNode:e,newDecorations:t,oldInnerDecorations:c,innerDecorations:r,updateProps:()=>n({node:e,decorations:t,innerDecorations:r,extension:this.extensionWithSyncedStorage})})}if(!(e!==this.node))return this.node=e,this.decorations=t,this.innerDecorations=r,!0;const a=this.getPos();this.node=e,this.decorations=t,this.innerDecorations=r,this.currentPos=a;const i={node:e,decorations:t,innerDecorations:r,extension:this.extensionWithSyncedStorage};return this.options.trackNodeViewPosition&&(i.getPos=()=>this.getPos()),n(i),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.options.trackNodeViewPosition&&this.editor.off("update",this.handlePositionUpdate),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let e={};if(typeof this.options.attrs=="function"){const t=this.editor.extensionManager.attributes,r=P.getRenderedAttributes(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:r})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}};function yt(e,t){return r=>r.editor.contentComponent?new Et(e,r,t):{}}var $=S.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});$.displayName="TiptapContext";var vt=()=>S.useContext($);function ue({editor:e,instance:t,children:r}){const n=e??t;if(!n)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const o=S.useMemo(()=>({editor:n}),[n]),a=S.useMemo(()=>({editor:n}),[n]);return A.jsx(V.Provider,{value:a,children:A.jsx($.Provider,{value:o,children:r})})}ue.displayName="Tiptap";function ae({...e}){const{editor:t}=vt();return A.jsx(st,{editor:t,...e})}ae.displayName="Tiptap.Content";Object.assign(ue,{Content:ae});function ce(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ce(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function St(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ce(e))&&(n&&(n+=" "),n+=t);return n}exports.EditorContext=V;exports.NodeViewWrapper=ft;exports.ReactNodeViewRenderer=yt;exports.ReactRenderer=se;exports.clsx=St;exports.shimExports=ne;exports.useCurrentEditor=lt;exports.useEditorState=ct;
|
|
33
|
+
*/var Z;function Ze(){return Z||(Z=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=S,r=W(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,a=t.useRef,i=t.useEffect,s=t.useMemo,y=t.useDebugValue;G.useSyncExternalStoreWithSelector=function(c,h,p,v,l){var f=a(null);if(f.current===null){var m={hasValue:!1,value:null};f.current=m}else m=f.current;f=s(function(){function d(_){if(!E){if(E=!0,R=_,_=v(_),l!==void 0&&m.hasValue){var w=m.value;if(l(w,_))return O=w}return O=_}if(w=O,n(R,_))return w;var T=v(_);return l!==void 0&&l(w,T)?(R=_,w):(R=_,O=T)}var E=!1,R,O,g=p===void 0?null:p;return[function(){return d(h())},g===null?void 0:function(){return d(g())}]},[h,p,v,l]);var u=o(c,f[0],f[1]);return i(function(){m.hasValue=!0,m.value=u},[u]),y(u),u},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),G}var Q;function Qe(){return Q||(Q=1,process.env.NODE_ENV==="production"?D.exports=Xe():D.exports=Ze()),D.exports}var et=Qe(),tt=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},rt=({contentComponent:e})=>{const t=ne.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return A.jsx(A.Fragment,{children:Object.values(t)})};function nt(){const e=new Set;let t={};return{subscribe(r){return e.add(r),()=>{e.delete(r)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(r,n){t={...t,[r]:re.createPortal(n.reactElement,n.element,r)},e.forEach(o=>o())},removeRenderer(r){const n={...t};delete n[r],t=n,e.forEach(o=>o())}}}var ot=class extends S.Component{constructor(e){super(e),this.editorContentRef=S.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;const t=this.props.editor;if(t&&!t.isDestroyed&&((e=t.view.dom)!=null&&e.parentNode)){if(t.contentComponent)return;const r=this.editorContentRef.current;r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r}),t.contentComponent=nt(),t.createNodeViews(),t.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var e;const t=this.props.editor;if(t){t.isEditorContentInitialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),t.contentComponent=null;try{if(!((e=t.view.dom)!=null&&e.parentNode))return;const r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){const{editor:e,innerRef:t,...r}=this.props;return A.jsxs(A.Fragment,{children:[A.jsx("div",{ref:tt(t,this.editorContentRef),...r}),(e==null?void 0:e.contentComponent)&&A.jsx(rt,{contentComponent:e.contentComponent})]})}},it=S.forwardRef((e,t)=>{const r=S.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return S.createElement(ot,{key:r,innerRef:t,...e})}),st=S.memo(it),ut=typeof window<"u"?S.useLayoutEffect:S.useEffect,at=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const t=()=>{this.transactionNumber+=1,this.subscribers.forEach(n=>n())},r=this.editor;return r.on("transaction",t),()=>{r.off("transaction",t)}}}};function ct(e){var t;const[r]=S.useState(()=>new at(e.editor)),n=et.useSyncExternalStoreWithSelector(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,(t=e.equalityFn)!=null?t:Je);return ut(()=>r.watch(e.editor),[e.editor,r]),S.useDebugValue(n),n}process.env.NODE_ENV;var V=S.createContext({editor:null});V.Consumer;var lt=()=>S.useContext(V),ie=S.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),dt=()=>S.useContext(ie),ft=S.forwardRef((e,t)=>{const{onDragStart:r}=dt(),n=e.as||"div";return A.jsx(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})});function ee(e){return!!(typeof e=="function"&&e.prototype&&e.prototype.isReactComponent)}function te(e){return!!(typeof e=="object"&&e.$$typeof&&(e.$$typeof.toString()==="Symbol(react.forward_ref)"||e.$$typeof.description==="react.forward_ref"))}function ht(e){return!!(typeof e=="object"&&e.$$typeof&&(e.$$typeof.toString()==="Symbol(react.memo)"||e.$$typeof.description==="react.memo"))}function pt(e){if(ee(e)||te(e))return!0;if(ht(e)){const t=e.type;if(t)return ee(t)||te(t)}return!1}function mt(){try{if(S.version)return parseInt(S.version.split(".")[0],10)>=19}catch{}return!1}var se=class{constructor(e,{editor:t,props:r={},as:n="div",className:o=""}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=e,this.editor=t,this.props=r,this.element=document.createElement(n),this.element.classList.add("react-renderer"),o&&this.element.classList.add(...o.split(" ")),this.editor.isEditorContentInitialized?re.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var e;if(this.destroyed)return;const t=this.component,r=this.props,n=this.editor,o=mt(),a=pt(t),i={...r};i.ref&&!(o||a)&&delete i.ref,!i.ref&&(o||a)&&(i.ref=s=>{this.ref=s}),this.reactElement=A.jsx(t,{...i}),(e=n==null?void 0:n.contentComponent)==null||e.setRenderer(this.id,this)}updateProps(e={}){if(this.destroyed)return;let t=!1;const r=Object.keys(e);for(let n=0;n<r.length;n+=1){const o=r[n];if(e[o]!==this.props[o]){t=!0;break}}t&&(this.props={...this.props,...e},this.render())}destroy(){var e;this.destroyed=!0;const t=this.editor;(e=t==null?void 0:t.contentComponent)==null||e.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}};S.createContext({markViewContentRef:()=>{}});var Et=class extends P.NodeView{constructor(e,t,r){if(super(e,t,r),this.selectionRafId=null,this.handlePositionUpdate=()=>{const n=this.getPos();typeof n!="number"||n===this.currentPos||(this.currentPos=n,this.renderer.updateProps({getPos:()=>this.getPos()}),typeof this.options.attrs=="function"&&this.updateElementAttributes())},this.cachedExtensionWithSyncedStorage=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const n=this.dom.querySelector("[data-node-view-content]");if(!n)return;n.appendChild(this.contentDOMElement)}this.options.trackNodeViewPosition&&this.editor.on("update",this.handlePositionUpdate)}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){const e=this.editor,t=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(t,{get(r,n,o){var a;return n==="storage"?(a=e.storage[t.name])!=null?a:{}:Reflect.get(r,n,o)}})}return this.cachedExtensionWithSyncedStorage}mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(c={})=>this.updateAttributes(c),deleteNode:()=>this.deleteNode(),ref:S.createRef()};if(!this.component.displayName){const c=h=>h.charAt(0).toUpperCase()+h.substring(1);this.component.displayName=c(this.extension.name)}const o={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:c=>{c&&this.contentDOMElement&&c.firstChild!==this.contentDOMElement&&(c.hasAttribute("data-node-view-wrapper")&&c.removeAttribute("data-node-view-wrapper"),c.appendChild(this.contentDOMElement))}},a=this.component,i=S.memo(c=>A.jsx(ie.Provider,{value:o,children:S.createElement(a,c)}));i.displayName="ReactNodeView";let s=this.node.isInline?"span":"div";this.options.as&&(s=this.options.as);const{className:y=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new se(i,{editor:this.editor,props:t,as:s,className:`node-${this.node.type.name} ${y}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes(),this.currentPos=this.getPos()}get dom(){var e;if(this.renderer.element.firstElementChild&&!((e=this.renderer.element.firstElementChild)!=null&&e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;const e=this.currentPos;if(typeof e!="number")return;if(P.isNodeViewSelected({selection:this.editor.state.selection,pos:e,nodeSize:this.node.nodeSize,selectedOnTextSelection:this.options.selectedOnTextSelection})){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(e,t,r){const n=s=>{this.renderer.updateProps(s),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const s=this.node,y=this.decorations,c=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=r,this.currentPos=this.getPos(),this.options.update({oldNode:s,oldDecorations:y,newNode:e,newDecorations:t,oldInnerDecorations:c,innerDecorations:r,updateProps:()=>n({node:e,decorations:t,innerDecorations:r,extension:this.extensionWithSyncedStorage})})}if(!(e!==this.node))return this.node=e,this.decorations=t,this.innerDecorations=r,!0;const a=this.getPos();this.node=e,this.decorations=t,this.innerDecorations=r,this.currentPos=a;const i={node:e,decorations:t,innerDecorations:r,extension:this.extensionWithSyncedStorage};return this.options.trackNodeViewPosition&&(i.getPos=()=>this.getPos()),n(i),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.options.trackNodeViewPosition&&this.editor.off("update",this.handlePositionUpdate),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let e={};if(typeof this.options.attrs=="function"){const t=this.editor.extensionManager.attributes,r=P.getRenderedAttributes(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:r})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}};function yt(e,t){return r=>r.editor.contentComponent?new Et(e,r,t):{}}var $=S.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});$.displayName="TiptapContext";var vt=()=>S.useContext($);function ue({children:e,...t}){const r="editor"in t?t.editor:t.instance;if(!r)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const n=S.useMemo(()=>({editor:r}),[r]),o=S.useMemo(()=>({editor:r}),[r]);return A.jsx(V.Provider,{value:o,children:A.jsx($.Provider,{value:n,children:e})})}ue.displayName="Tiptap";function ae({...e}){const{editor:t}=vt();return A.jsx(st,{editor:t,...e})}ae.displayName="Tiptap.Content";Object.assign(ue,{Content:ae});function ce(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ce(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function St(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ce(e))&&(n&&(n+=" "),n+=t);return n}exports.EditorContext=V;exports.NodeViewWrapper=ft;exports.ReactNodeViewRenderer=yt;exports.ReactRenderer=se;exports.clsx=St;exports.shimExports=ne;exports.useCurrentEditor=lt;exports.useEditorState=ct;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import A, { createContext as U, useContext as G, createRef as de, memo as fe, createElement as he, version as
|
|
1
|
+
import A, { createContext as U, useContext as G, createRef as de, memo as fe, createElement as he, version as $, useState as pe, useDebugValue as me, useLayoutEffect as Ee, useEffect as ye, forwardRef as ve, useMemo as z } from "react";
|
|
2
2
|
import Se, { flushSync as _e } from "react-dom";
|
|
3
3
|
import { jsx as b, jsxs as ge, Fragment as ie } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { a0 as Oe, a1 as we, a as Ae } from "./index-n4kM0Ll-.js";
|
|
5
5
|
var D = { exports: {} }, P = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
@@ -207,7 +207,7 @@ function Z(e, t, r) {
|
|
|
207
207
|
return !0;
|
|
208
208
|
}
|
|
209
209
|
const Be = T;
|
|
210
|
-
function
|
|
210
|
+
function ke(e, t, r) {
|
|
211
211
|
const n = X(e);
|
|
212
212
|
let o = n.length;
|
|
213
213
|
if (X(t).length !== o)
|
|
@@ -228,7 +228,7 @@ function N(e, t, r) {
|
|
|
228
228
|
return !1;
|
|
229
229
|
return !0;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function $e(e, t) {
|
|
232
232
|
return T(e.valueOf(), t.valueOf());
|
|
233
233
|
}
|
|
234
234
|
function ze(e, t) {
|
|
@@ -359,8 +359,8 @@ function ct({ circular: e, createCustomConfig: t, strict: r }) {
|
|
|
359
359
|
areFunctionsEqual: We,
|
|
360
360
|
areMapsEqual: r ? M(Z, N) : Z,
|
|
361
361
|
areNumbersEqual: Be,
|
|
362
|
-
areObjectsEqual: r ? N :
|
|
363
|
-
arePrimitiveWrappersEqual:
|
|
362
|
+
areObjectsEqual: r ? N : ke,
|
|
363
|
+
arePrimitiveWrappersEqual: $e,
|
|
364
364
|
areRegExpsEqual: ze,
|
|
365
365
|
areSetsEqual: r ? M(Q, N) : Q,
|
|
366
366
|
areTypedArraysEqual: r ? M(x, N) : x,
|
|
@@ -771,8 +771,8 @@ function Tt(e) {
|
|
|
771
771
|
}
|
|
772
772
|
function Ct() {
|
|
773
773
|
try {
|
|
774
|
-
if (
|
|
775
|
-
return parseInt(
|
|
774
|
+
if ($)
|
|
775
|
+
return parseInt($.split(".")[0], 10) >= 19;
|
|
776
776
|
} catch {
|
|
777
777
|
}
|
|
778
778
|
return !1;
|
|
@@ -904,7 +904,9 @@ var Dt = class extends Oe {
|
|
|
904
904
|
}
|
|
905
905
|
const o = { onDragStart: this.onDragStart.bind(this), nodeViewContentRef: (c) => {
|
|
906
906
|
c && this.contentDOMElement && c.firstChild !== this.contentDOMElement && (c.hasAttribute("data-node-view-wrapper") && c.removeAttribute("data-node-view-wrapper"), c.appendChild(this.contentDOMElement));
|
|
907
|
-
} }, u = this.component, i = fe(
|
|
907
|
+
} }, u = this.component, i = fe(
|
|
908
|
+
(c) => /* @__PURE__ */ b(ae.Provider, { value: o, children: he(u, c) })
|
|
909
|
+
);
|
|
908
910
|
i.displayName = "ReactNodeView";
|
|
909
911
|
let s = this.node.isInline ? "span" : "div";
|
|
910
912
|
this.options.as && (s = this.options.as);
|
|
@@ -978,7 +980,12 @@ var Dt = class extends Oe {
|
|
|
978
980
|
newDecorations: t,
|
|
979
981
|
oldInnerDecorations: c,
|
|
980
982
|
innerDecorations: r,
|
|
981
|
-
updateProps: () => n({
|
|
983
|
+
updateProps: () => n({
|
|
984
|
+
node: e,
|
|
985
|
+
decorations: t,
|
|
986
|
+
innerDecorations: r,
|
|
987
|
+
extension: this.extensionWithSyncedStorage
|
|
988
|
+
})
|
|
982
989
|
});
|
|
983
990
|
}
|
|
984
991
|
if (!(e !== this.node))
|
|
@@ -1036,19 +1043,22 @@ var Dt = class extends Oe {
|
|
|
1036
1043
|
function Ut(e, t) {
|
|
1037
1044
|
return (r) => r.editor.contentComponent ? new Dt(e, r, t) : {};
|
|
1038
1045
|
}
|
|
1039
|
-
var
|
|
1046
|
+
var k = U({
|
|
1040
1047
|
get editor() {
|
|
1041
1048
|
throw new Error("useTiptap must be used within a <Tiptap> provider");
|
|
1042
1049
|
}
|
|
1043
1050
|
});
|
|
1044
|
-
|
|
1045
|
-
var jt = () => G(
|
|
1046
|
-
function ue({
|
|
1047
|
-
const
|
|
1048
|
-
if (!
|
|
1051
|
+
k.displayName = "TiptapContext";
|
|
1052
|
+
var jt = () => G(k);
|
|
1053
|
+
function ue({ children: e, ...t }) {
|
|
1054
|
+
const r = "editor" in t ? t.editor : t.instance;
|
|
1055
|
+
if (!r)
|
|
1049
1056
|
throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");
|
|
1050
|
-
const
|
|
1051
|
-
|
|
1057
|
+
const n = z(
|
|
1058
|
+
() => ({ editor: r }),
|
|
1059
|
+
[r]
|
|
1060
|
+
), o = z(() => ({ editor: r }), [r]);
|
|
1061
|
+
return /* @__PURE__ */ b(B.Provider, { value: o, children: /* @__PURE__ */ b(k.Provider, { value: n, children: e }) });
|
|
1052
1062
|
}
|
|
1053
1063
|
ue.displayName = "Tiptap";
|
|
1054
1064
|
function ce({ ...e }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RichTextBubbleCallout(): import("react
|
|
1
|
+
export declare function RichTextBubbleCallout(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RichTextBubbleCodeBlock(): import("react
|
|
1
|
+
export declare function RichTextBubbleCodeBlock(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RichTextBubbleColumns(): import("react
|
|
1
|
+
export declare function RichTextBubbleColumns(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RichTextBubbleDrawer(): import("react
|
|
1
|
+
export declare function RichTextBubbleDrawer(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RichTextBubbleExcalidraw(): import("react
|
|
1
|
+
export declare function RichTextBubbleExcalidraw(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RichTextBubbleIframe(): import("react
|
|
1
|
+
export declare function RichTextBubbleIframe(): import("react").JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare function RichTextBubbleKatex(): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function RichTextBubbleImage(): import("react
|
|
2
|
-
declare function RichTextBubbleImageGif(): import("react
|
|
3
|
-
declare function RichTextBubbleVideo(): import("react
|
|
1
|
+
declare function RichTextBubbleImage(): import("react").JSX.Element;
|
|
2
|
+
declare function RichTextBubbleImageGif(): import("react").JSX.Element;
|
|
3
|
+
declare function RichTextBubbleVideo(): import("react").JSX.Element;
|
|
4
4
|
export { RichTextBubbleImage, RichTextBubbleVideo, RichTextBubbleImageGif };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare function RichTextBubbleMenuDragHandle(): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RichTextBubbleMermaid(): import("react
|
|
1
|
+
export declare function RichTextBubbleMermaid(): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface RichTextBubbleTableProps {
|
|
2
2
|
hiddenActions?: string[];
|
|
3
3
|
}
|
|
4
|
-
declare function RichTextBubbleTable({ hiddenActions }: RichTextBubbleTableProps): import("react
|
|
4
|
+
declare function RichTextBubbleTable({ hiddenActions }: RichTextBubbleTableProps): import("react").JSX.Element;
|
|
5
5
|
export { RichTextBubbleTable };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface RichTextBubbleTextProps {
|
|
2
2
|
buttonBubble?: React.ReactNode;
|
|
3
3
|
}
|
|
4
|
-
export declare function RichTextBubbleText({ buttonBubble }: RichTextBubbleTextProps): import("react
|
|
4
|
+
export declare function RichTextBubbleText({ buttonBubble }: RichTextBubbleTextProps): import("react").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RichTextBubbleTwitter(): import("react
|
|
1
|
+
export declare function RichTextBubbleTwitter(): import("react").JSX.Element;
|
|
@@ -7,5 +7,5 @@ export interface ColorPickerProps {
|
|
|
7
7
|
value?: string;
|
|
8
8
|
highlight?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare function ColorPicker(props: ColorPickerProps):
|
|
10
|
+
declare function ColorPicker(props: ColorPickerProps): React.JSX.Element;
|
|
11
11
|
export { ColorPicker };
|
|
@@ -4,5 +4,5 @@ interface IProviderRichTextProps {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
dark?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare function RichTextProvider({ editor, children }: IProviderRichTextProps): import("react
|
|
7
|
+
export declare function RichTextProvider({ editor, children }: IProviderRichTextProps): import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RenderDialogUploadImage(): import("react
|
|
1
|
+
export declare function RenderDialogUploadImage(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RenderDialogUploadVideo(): import("react
|
|
1
|
+
export declare function RenderDialogUploadVideo(): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
-
export declare function AspectRatio(props: SVGProps<SVGSVGElement>): import("react
|
|
2
|
+
export declare function AspectRatio(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
-
export declare function BlockquoteLeft(props: SVGProps<SVGSVGElement>): import("react
|
|
2
|
+
export declare function BlockquoteLeft(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function CodeView(): import("react
|
|
1
|
+
export declare function CodeView(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function ColumnAddLeft(): import("react
|
|
1
|
+
export declare function ColumnAddLeft(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function ColumnAddRight(): import("react
|
|
1
|
+
export declare function ColumnAddRight(): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function DeleteColumn(): import("react
|
|
1
|
+
declare function DeleteColumn(): import("react").JSX.Element;
|
|
2
2
|
export { DeleteColumn };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function DeleteRow(): import("react
|
|
1
|
+
declare function DeleteRow(): import("react").JSX.Element;
|
|
2
2
|
export { DeleteRow };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Direction(): import("react
|
|
1
|
+
export declare function Direction(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Excalidraw(): import("react
|
|
1
|
+
export declare function Excalidraw(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function ExportPdf(): import("react
|
|
1
|
+
export declare function ExportPdf(): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
-
export declare function FileWordOutline(props: SVGProps<SVGSVGElement>): import("react
|
|
2
|
+
export declare function FileWordOutline(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function GifIcon(): import("react
|
|
1
|
+
export declare function GifIcon(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Html(): import("react
|
|
1
|
+
export declare function Html(): import("react").JSX.Element;
|
|
@@ -4,5 +4,5 @@ export interface IconComponentProps {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
onClick?: React.MouseEventHandler<SVGElement>;
|
|
6
6
|
}
|
|
7
|
-
declare function IconComponent(props: IconComponentProps):
|
|
7
|
+
declare function IconComponent(props: IconComponentProps): React.JSX.Element | null;
|
|
8
8
|
export { IconComponent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function LeftToRight(): import("react
|
|
1
|
+
export declare function LeftToRight(): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
-
export declare function FormatLineHeight(props: SVGProps<SVGSVGElement>): import("react
|
|
2
|
+
export declare function FormatLineHeight(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
-
export declare function MenuDown(props: SVGProps<SVGSVGElement>): import("react
|
|
2
|
+
export declare function MenuDown(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Mermaid(): import("react
|
|
1
|
+
export declare function Mermaid(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function NoFill(): import("react
|
|
1
|
+
export declare function NoFill(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RightToLeft(): import("react
|
|
1
|
+
export declare function RightToLeft(): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
-
export declare function SizeL(props: SVGProps<SVGSVGElement>): import("react
|
|
2
|
+
export declare function SizeL(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
-
export declare function SizeM(props: SVGProps<SVGSVGElement>): import("react
|
|
2
|
+
export declare function SizeM(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
-
export declare function SizeS(props: SVGProps<SVGSVGElement>): import("react
|
|
2
|
+
export declare function SizeS(props: SVGProps<SVGSVGElement>): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Twitter(): import("react
|
|
1
|
+
export declare function Twitter(): import("react").JSX.Element;
|
|
@@ -6,11 +6,11 @@ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
|
6
6
|
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
9
|
+
declare function DialogHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
10
10
|
declare namespace DialogHeader {
|
|
11
11
|
var displayName: string;
|
|
12
12
|
}
|
|
13
|
-
declare function DialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>):
|
|
13
|
+
declare function DialogFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
14
14
|
declare namespace DialogFooter {
|
|
15
15
|
var displayName: string;
|
|
16
16
|
}
|
|
@@ -20,7 +20,7 @@ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMe
|
|
|
20
20
|
inset?: boolean;
|
|
21
21
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>):
|
|
23
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
24
24
|
declare namespace DropdownMenuShortcut {
|
|
25
25
|
var displayName: string;
|
|
26
26
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmojiPicker as EmojiPickerPrimitive } from 'frimousse';
|
|
2
2
|
import type * as React from 'react';
|
|
3
|
-
declare function EmojiPicker({ className, ...props }: React.ComponentProps<typeof EmojiPickerPrimitive.Root>):
|
|
4
|
-
declare function EmojiPickerSearch({ className, ...props }: React.ComponentProps<typeof EmojiPickerPrimitive.Search>):
|
|
5
|
-
declare function EmojiPickerContent({ className, ...props }: React.ComponentProps<typeof EmojiPickerPrimitive.Viewport>):
|
|
6
|
-
declare function EmojiPickerFooter({ className, ...props }: React.ComponentProps<'div'>):
|
|
3
|
+
declare function EmojiPicker({ className, ...props }: React.ComponentProps<typeof EmojiPickerPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function EmojiPickerSearch({ className, ...props }: React.ComponentProps<typeof EmojiPickerPrimitive.Search>): React.JSX.Element;
|
|
5
|
+
declare function EmojiPickerContent({ className, ...props }: React.ComponentProps<typeof EmojiPickerPrimitive.Viewport>): React.JSX.Element;
|
|
6
|
+
declare function EmojiPickerFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
7
7
|
export { EmojiPicker, EmojiPickerSearch, EmojiPickerContent, EmojiPickerFooter };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Toaster(): import("react
|
|
1
|
+
export declare function Toaster(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),w=require("@radix-ui/react-dropdown-menu"),d=require("lucide-react"),g=require("react"),a=require("./index-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),w=require("@radix-ui/react-dropdown-menu"),d=require("lucide-react"),g=require("react"),a=require("./index-BO82_0q8.cjs");function x(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>t[i]})}}return r.default=t,Object.freeze(r)}const e=x(w),n=x(g),y=e.Root,N=e.Trigger,D=e.Portal,M=e.Sub,h=n.forwardRef(({className:t,inset:r,children:i,...o},s)=>c.jsxs(e.SubTrigger,{ref:s,className:a.cn("richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none focus:richtext-bg-accent data-[state=open]:richtext-bg-accent",r&&"richtext-pl-8",t),...o,children:[i,c.jsx(d.ChevronRight,{className:"richtext-ml-auto richtext-size-4"})]}));h.displayName=e.SubTrigger.displayName;const l=n.forwardRef(({className:t,...r},i)=>c.jsx(e.SubContent,{"data-richtext-portal":!0,ref:i,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...r}));l.displayName=e.SubContent.displayName;const u=n.forwardRef(({className:t,sideOffset:r=4,...i},o)=>c.jsx(e.Portal,{"data-richtext-portal":!0,children:c.jsx(e.Content,{"data-richtext-portal":!0,ref:o,sideOffset:r,className:a.cn("richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border !richtext-border-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t),...i})}));u.displayName=e.Content.displayName;const p=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Item,{ref:o,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",r&&"richtext-pl-8",t),...i}));p.displayName=e.Item.displayName;const m=n.forwardRef(({className:t,children:r,checked:i,...o},s)=>c.jsxs(e.CheckboxItem,{checked:i,ref:s,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...o,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Check,{className:"richtext-size-4"})})}),r]}));m.displayName=e.CheckboxItem.displayName;const j=n.forwardRef(({className:t,children:r,...i},o)=>c.jsxs(e.RadioItem,{ref:o,className:a.cn("richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",t),...i,children:[c.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:c.jsx(e.ItemIndicator,{children:c.jsx(d.Circle,{className:"richtext-size-2 richtext-fill-current"})})}),r]}));j.displayName=e.RadioItem.displayName;const S=n.forwardRef(({className:t,inset:r,...i},o)=>c.jsx(e.Label,{ref:o,className:a.cn("richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",r&&"richtext-pl-8",t),...i}));S.displayName=e.Label.displayName;const f=n.forwardRef(({className:t,...r},i)=>c.jsx(e.Separator,{className:a.cn("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",t),ref:i,...r}));f.displayName=e.Separator.displayName;function b({className:t,...r}){return c.jsx("span",{className:a.cn("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",t),...r})}b.displayName="DropdownMenuShortcut";exports.DropdownMenu=y;exports.DropdownMenuCheckboxItem=m;exports.DropdownMenuContent=u;exports.DropdownMenuItem=p;exports.DropdownMenuPortal=D;exports.DropdownMenuSeparator=f;exports.DropdownMenuShortcut=b;exports.DropdownMenuSub=M;exports.DropdownMenuSubContent=l;exports.DropdownMenuSubTrigger=h;exports.DropdownMenuTrigger=N;
|
|
@@ -2,7 +2,7 @@ import { jsx as c, jsxs as x } from "react/jsx-runtime";
|
|
|
2
2
|
import * as t from "@radix-ui/react-dropdown-menu";
|
|
3
3
|
import { ChevronRight as d, Check as h, Circle as l } from "lucide-react";
|
|
4
4
|
import * as s from "react";
|
|
5
|
-
import { c as o } from "./index-
|
|
5
|
+
import { c as o } from "./index-DRcwHivm.js";
|
|
6
6
|
const R = t.Root, I = t.Trigger, S = t.Portal, C = t.Sub, m = s.forwardRef(({ className: e, inset: r, children: i, ...a }, n) => /* @__PURE__ */ x(
|
|
7
7
|
t.SubTrigger,
|
|
8
8
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getFileTypeIcon(fileType: string, forProseMirror?: boolean): any[] | import("react
|
|
1
|
+
export declare function getFileTypeIcon(fileType: string, forProseMirror?: boolean): any[] | import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function NodeViewAttachment({ editor, node, updateAttributes, deleteNode, extension }: any): import("react
|
|
1
|
+
export declare function NodeViewAttachment({ editor, node, updateAttributes, deleteNode, extension }: any): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function RichTextAttachment(): import("react
|
|
1
|
+
export declare function RichTextAttachment(): import("react").JSX.Element;
|