reactjs-tiptap-editor 1.0.19 → 1.0.21
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-D3b_bcin.cjs → ActionMenuButton-BVaZBdL3.cjs} +1 -1
- package/lib/{ActionMenuButton-B1Nfn5Hm.js → ActionMenuButton-Cpla3oSm.js} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.js +23 -23
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.js +2 -2
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +2 -2
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +2 -2
- package/lib/Callout-JL3mm4GU.cjs +1 -0
- package/lib/Callout-mb31jDcR.js +340 -0
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +8 -222
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +2 -2
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +2 -2
- package/lib/CodeBlock.cjs +20 -44
- package/lib/CodeBlock.js +1385 -4011
- 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-kEO7KzzC.cjs → Drawer-94nAoli4.cjs} +1 -1
- package/lib/{Drawer-B1-7Y4HB.js → Drawer-d9e69c7G.js} +20 -20
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +4 -4
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +12 -12
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +7 -7
- 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 +4 -4
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +4 -4
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +9 -9
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +3 -3
- package/lib/History.cjs +1 -1
- package/lib/History.js +3 -3
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +2 -2
- package/lib/{Iframe-XlAb03_r.js → Iframe-CkUClxtI.js} +7 -7
- package/lib/{Iframe-Bk5OIlvy.cjs → Iframe-qCivhCR5.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 +6 -6
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +36 -36
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +13 -13
- package/lib/{Indent-ruPuj5xn.js → Indent-BTzj50Sf.js} +2 -2
- package/lib/{Indent-XaZNTsOk.cjs → Indent-DtgugDpq.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-DKspCn-p.js → Katex-BuFwL_MA.js} +401 -422
- package/lib/Katex-RcbH2O5p.cjs +4 -0
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +3 -3
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +3 -3
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/{LinkEditBlock-DhesHreq.cjs → LinkEditBlock-CSKh_5n7.cjs} +1 -1
- package/lib/{LinkEditBlock-BWm2Ypt2.js → LinkEditBlock-DYOmu7jQ.js} +26 -26
- package/lib/MarkdownPaste.cjs +1 -1
- package/lib/MarkdownPaste.js +1 -1
- package/lib/Mention.cjs +1 -1
- package/lib/Mention.js +4 -4
- package/lib/Mermaid.cjs +2 -2
- package/lib/Mermaid.js +44 -43
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +5 -5
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +2 -2
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +8 -8
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +6 -6
- package/lib/{SlashCommandNodeView-Hf2DX4km.js → SlashCommandNodeView-CT_-28t6.js} +6 -6
- package/lib/{SlashCommandNodeView-CojfS61Q.cjs → SlashCommandNodeView-CYdYVjeb.cjs} +1 -1
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +2 -2
- package/lib/{Table-BTkFUATL.js → Table-CEHV8gmO.js} +35 -35
- package/lib/{Table-C1_xLqV0.cjs → Table-DOl6C6To.cjs} +1 -1
- 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 +3 -3
- 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-Cj-0yyQQ.cjs → Twitter-DDuJwWdF.cjs} +1 -1
- package/lib/{Twitter-D5mUTILj.js → Twitter-DxqKzo3U.js} +9 -9
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +3 -3
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +4 -4
- package/lib/_commonjsHelpers-B4e78b8K.js +28 -0
- package/lib/_commonjsHelpers-BTDuMlIz.cjs +1 -0
- package/lib/bubble.cjs +6 -6
- package/lib/bubble.js +1841 -1701
- package/lib/{clsx-OumA9x-8.js → clsx-Bg-2aTKh.js} +11 -11
- package/lib/{clsx-BSBE1eoY.cjs → clsx-DSAWW32g.cjs} +1 -1
- package/lib/components/Bubble/RichTextBubbleCodeBlock.d.ts +1 -0
- package/lib/components/Bubble/index.d.ts +1 -0
- package/lib/{dropdown-menu-Bragdu5m.js → dropdown-menu-BYbds8yQ.js} +1 -1
- package/lib/{dropdown-menu-CUeq1boX.cjs → dropdown-menu-CoZZaqv5.cjs} +1 -1
- package/lib/extensions/CodeBlock/CodeBlock.d.ts +3 -18
- package/lib/{index-CDFAs4RT.js → index-B1SzsIsE.js} +1020 -1149
- package/lib/{index-CnePcUeF.cjs → index-C3dgmjIF.cjs} +1 -1
- package/lib/{index-DwSnESy-.cjs → index-C4WLt4NA.cjs} +4 -4
- package/lib/{index-BKlbc8Qo.js → index-CbkpBnTX.js} +1 -1
- package/lib/{index-CZ1_8JQQ.js → index-CjLxMm5d.js} +1 -1
- package/lib/{index-BVRHx_ha.js → index-D0EmqTpe.js} +74 -64
- package/lib/{index-cPEuL4Zr.js → index-DXtVL0al.js} +1 -1
- package/lib/index-DirFiHQ6.cjs +1 -0
- package/lib/{index-CMLwKzI0.cjs → index-DlxZt4_j.cjs} +1 -1
- package/lib/{index-B-7eHzaO.js → index-P5_MyY0i.js} +1 -1
- package/lib/{index-D7wfvzJg.cjs → index-TcJ2UKnv.cjs} +1 -1
- package/lib/{index-COCTP78Y.cjs → index-fbGGohBT.cjs} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.js +12 -12
- package/lib/{popover-DCJpsZx0.cjs → popover-BaAurWOZ.cjs} +1 -1
- package/lib/{popover-C2BbhsXH.js → popover-CK54Ip2N.js} +1 -1
- package/lib/{renderNodeView-CmnUEfby.js → renderNodeView-CbxCTni3.js} +2 -2
- package/lib/{renderNodeView-DQjWzXDA.cjs → renderNodeView-DFVrJy0l.cjs} +1 -1
- package/lib/{separator-BuG1zwKa.cjs → separator-ByK1SKWn.cjs} +1 -1
- package/lib/{separator-lkMWuUvf.js → separator-XZA3-egy.js} +14 -14
- package/lib/style.css +1 -1
- package/lib/textarea--IMIy9VF.js +20 -0
- package/lib/textarea-mwHtiXJV.cjs +1 -0
- package/lib/{updatePosition-DYuAiqx-.js → updatePosition-BGD41Hbg.js} +2 -2
- package/lib/{updatePosition-D6AScA-1.cjs → updatePosition-CQE1ct18.cjs} +1 -1
- package/package.json +4 -2
- package/lib/Katex-BFIYLrwm.cjs +0 -4
- package/lib/delete-node-CosiBes5.cjs +0 -1
- package/lib/delete-node-eQHsyyhR.js +0 -24
- package/lib/extensions/CodeBlock/components/NodeViewCodeBlock/NodeViewCodeBlock.d.ts +0 -1
- package/lib/index-BLrMslr7.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import w, { createContext as G, useContext as U, 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 k } from "react";
|
|
2
2
|
import Se, { flushSync as _e } from "react-dom";
|
|
3
3
|
import { jsx as A, jsxs as Oe, Fragment as ie } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { Z as ge, g as be } from "./index-D0EmqTpe.js";
|
|
5
5
|
var D = { exports: {} }, M = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
@@ -152,7 +152,7 @@ const je = (
|
|
|
152
152
|
function C(e, t) {
|
|
153
153
|
return e === t || !e && !t && e !== e && t !== t;
|
|
154
154
|
}
|
|
155
|
-
const Le = "__v", xe = "__o", Me = "_owner", { getOwnPropertyDescriptor:
|
|
155
|
+
const Le = "__v", xe = "__o", Me = "_owner", { getOwnPropertyDescriptor: Z, keys: J } = Object;
|
|
156
156
|
function Ie(e, t) {
|
|
157
157
|
return e.byteLength === t.byteLength && x(new Uint8Array(e), new Uint8Array(t));
|
|
158
158
|
}
|
|
@@ -177,7 +177,7 @@ function Ge(e, t) {
|
|
|
177
177
|
function Ue(e, t) {
|
|
178
178
|
return e === t;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function X(e, t, r) {
|
|
181
181
|
const n = e.size;
|
|
182
182
|
if (n !== t.size)
|
|
183
183
|
return !1;
|
|
@@ -208,9 +208,9 @@ function Z(e, t, r) {
|
|
|
208
208
|
}
|
|
209
209
|
const We = C;
|
|
210
210
|
function Be(e, t, r) {
|
|
211
|
-
const n =
|
|
211
|
+
const n = J(e);
|
|
212
212
|
let o = n.length;
|
|
213
|
-
if (
|
|
213
|
+
if (J(t).length !== o)
|
|
214
214
|
return !1;
|
|
215
215
|
for (; o-- > 0; )
|
|
216
216
|
if (!se(e, t, r, n[o]))
|
|
@@ -224,7 +224,7 @@ function N(e, t, r) {
|
|
|
224
224
|
return !1;
|
|
225
225
|
let s, i, u;
|
|
226
226
|
for (; o-- > 0; )
|
|
227
|
-
if (s = n[o], !se(e, t, r, s) || (i =
|
|
227
|
+
if (s = n[o], !se(e, t, r, s) || (i = Z(e, s), u = Z(t, s), (i || u) && (!i || !u || i.configurable !== u.configurable || i.enumerable !== u.enumerable || i.writable !== u.writable)))
|
|
228
228
|
return !1;
|
|
229
229
|
return !0;
|
|
230
230
|
}
|
|
@@ -272,7 +272,7 @@ function ke(e, t) {
|
|
|
272
272
|
function se(e, t, r, n) {
|
|
273
273
|
return (n === Me || n === xe || n === Le) && (e.$$typeof || t.$$typeof) ? !0 : je(t, n) && r.equals(e[n], t[n], n, n, e, t, r);
|
|
274
274
|
}
|
|
275
|
-
const He = "[object ArrayBuffer]", Ke = "[object Arguments]", Fe = "[object Boolean]", Ye = "[object DataView]",
|
|
275
|
+
const He = "[object ArrayBuffer]", Ke = "[object Arguments]", Fe = "[object Boolean]", Ye = "[object DataView]", Ze = "[object Date]", Je = "[object Error]", Xe = "[object Map]", Qe = "[object Number]", et = "[object Object]", tt = "[object RegExp]", rt = "[object Set]", nt = "[object String]", ot = {
|
|
276
276
|
"[object Int8Array]": !0,
|
|
277
277
|
"[object Uint8Array]": !0,
|
|
278
278
|
"[object Uint8ClampedArray]": !0,
|
|
@@ -313,11 +313,11 @@ function at({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: r,
|
|
|
313
313
|
if (O === Set)
|
|
314
314
|
return h(a, l, y);
|
|
315
315
|
const _ = st.call(a);
|
|
316
|
-
if (_ ===
|
|
316
|
+
if (_ === Ze)
|
|
317
317
|
return n(a, l, y);
|
|
318
318
|
if (_ === tt)
|
|
319
319
|
return p(a, l, y);
|
|
320
|
-
if (_ ===
|
|
320
|
+
if (_ === Xe)
|
|
321
321
|
return i(a, l, y);
|
|
322
322
|
if (_ === rt)
|
|
323
323
|
return h(a, l, y);
|
|
@@ -325,7 +325,7 @@ function at({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: r,
|
|
|
325
325
|
return typeof a.then != "function" && typeof l.then != "function" && d(a, l, y);
|
|
326
326
|
if (_ === it)
|
|
327
327
|
return c(a, l, y);
|
|
328
|
-
if (_ ===
|
|
328
|
+
if (_ === Je)
|
|
329
329
|
return o(a, l, y);
|
|
330
330
|
if (_ === Ke)
|
|
331
331
|
return d(a, l, y);
|
|
@@ -357,7 +357,7 @@ function ut({ circular: e, createCustomConfig: t, strict: r }) {
|
|
|
357
357
|
areDatesEqual: Pe,
|
|
358
358
|
areErrorsEqual: Ge,
|
|
359
359
|
areFunctionsEqual: Ue,
|
|
360
|
-
areMapsEqual: r ? V(
|
|
360
|
+
areMapsEqual: r ? V(X, N) : X,
|
|
361
361
|
areNumbersEqual: We,
|
|
362
362
|
areObjectsEqual: r ? N : Be,
|
|
363
363
|
arePrimitiveWrappersEqual: ze,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const S=require("react"),re=require("react-dom"),R=require("react/jsx-runtime"),B=require("./index-
|
|
1
|
+
"use strict";const S=require("react"),re=require("react-dom"),R=require("react/jsx-runtime"),B=require("./index-C4WLt4NA.cjs");var j={exports:{}},V={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* use-sync-external-store-shim.production.js
|
|
4
4
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function RichTextBubbleCodeBlock(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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-B1SzsIsE.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
|
-
"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-DirFiHQ6.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;
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeBlockLowlightOptions } from '@tiptap/extension-code-block-lowlight';
|
|
2
2
|
import { GeneralOptions } from '../../types';
|
|
3
3
|
export * from './components/RichTextCodeBlock';
|
|
4
|
-
export interface CodeBlockOptions extends GeneralOptions<CodeBlockOptions> {
|
|
4
|
+
export interface CodeBlockOptions extends CodeBlockLowlightOptions, GeneralOptions<CodeBlockOptions> {
|
|
5
5
|
}
|
|
6
|
-
declare
|
|
7
|
-
interface Commands<ReturnType> {
|
|
8
|
-
setCodeBlock: {
|
|
9
|
-
setCodeBlock: (options?: any) => ReturnType;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Matches a code block with backticks.
|
|
15
|
-
*/
|
|
16
|
-
export declare const backtickInputRegex: RegExp;
|
|
17
|
-
/**
|
|
18
|
-
* Matches a code block with tildes.
|
|
19
|
-
*/
|
|
20
|
-
export declare const tildeInputRegex: RegExp;
|
|
21
|
-
export declare const CodeBlock: Node<any, any>;
|
|
6
|
+
export declare const CodeBlock: import('@tiptap/core').Node<CodeBlockOptions, any>;
|