tiptap-markdown-react 1.5.0 → 1.6.1
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/README.md +1 -1
- package/dist/{ReportContentWithCharts-CMMUE51M.js → ReportContentWithCharts-BaBitkZX.js} +21 -10
- package/dist/ReportContentWithCharts-BaBitkZX.js.map +1 -0
- package/dist/components/EditorToolbar.d.ts +17 -1
- package/dist/fullscreen.d.ts +20 -0
- package/dist/icons/index.d.ts +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +235 -66
- package/dist/index.js.map +1 -1
- package/dist/labels.d.ts +4 -0
- package/dist/reader.js +1 -1
- package/dist/style-inline.css +154 -95
- package/dist/style.css +154 -95
- package/package.json +1 -1
- package/dist/ReportContentWithCharts-CMMUE51M.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Markdown, MarkdownManager } from "@tiptap/markdown";
|
|
3
|
-
import { g as getLocaleBundle, S as SearchIcon, d as ChevronUpIcon, e as ChevronDownIcon, X as XIcon, h as ReplaceIcon, i as ReplaceAllIcon, j as renderOrUpdateChart, k as destroyChart, l as CheckIcon, T as TrashIcon, n as CopyIcon, o as ChevronsUpDownIcon, G as GripIcon, E as EraserIcon, D as DownloadIcon, u as useIsMobile, K as KeyboardIcon, p as EditorToc, I as ImagePreviewHost, q as sameTocItems$1, A as AlignRightIcon, t as AlignCenterIcon, v as AlignLeftIcon, w as CropIcon, x as CaptionsIcon, y as ExpandIcon, z as requestImagePreview, B as RotateCcwIcon, F as ExternalLinkIcon, H as TableDeleteIcon, J as ColumnBeforeIcon, L as ColumnAfterIcon, M as ColumnDeleteIcon, N as RowBeforeIcon, O as RowAfterIcon, P as RowDeleteIcon, U as UndoIcon, Q as RedoIcon, V as PaintbrushIcon, W as BoldIcon, Y as ItalicIcon, Z as UnderlineIcon, _ as StrikethroughIcon, $ as CodeIcon, a0 as LinkIcon, a1 as ImageIcon, a2 as DetailsIcon, a3 as AlignJustifyIcon, a4 as IndentIncreaseIcon, a5 as IndentDecreaseIcon, a6 as LineHeightIcon, a7 as ListUnorderedIcon, a8 as ListOrderedIcon, a9 as ListChecksIcon } from "./ReportContentWithCharts-
|
|
4
|
-
import { C,
|
|
3
|
+
import { g as getLocaleBundle, S as SearchIcon, d as ChevronUpIcon, e as ChevronDownIcon, X as XIcon, h as ReplaceIcon, i as ReplaceAllIcon, j as renderOrUpdateChart, k as destroyChart, l as CheckIcon, T as TrashIcon, n as CopyIcon, o as ChevronsUpDownIcon, G as GripIcon, E as EraserIcon, D as DownloadIcon, u as useIsMobile, K as KeyboardIcon, p as EditorToc, I as ImagePreviewHost, q as sameTocItems$1, A as AlignRightIcon, t as AlignCenterIcon, v as AlignLeftIcon, w as CropIcon, x as CaptionsIcon, y as ExpandIcon, z as requestImagePreview, B as RotateCcwIcon, F as ExternalLinkIcon, H as TableDeleteIcon, J as ColumnBeforeIcon, L as ColumnAfterIcon, M as ColumnDeleteIcon, N as RowBeforeIcon, O as RowAfterIcon, P as RowDeleteIcon, U as UndoIcon, Q as RedoIcon, V as PaintbrushIcon, W as BoldIcon, Y as ItalicIcon, Z as UnderlineIcon, _ as StrikethroughIcon, $ as CodeIcon, a0 as LinkIcon, a1 as ImageIcon, a2 as DetailsIcon, a3 as AlignJustifyIcon, a4 as IndentIncreaseIcon, a5 as IndentDecreaseIcon, a6 as LineHeightIcon, a7 as ListUnorderedIcon, a8 as ListOrderedIcon, a9 as ListChecksIcon, aa as MinimizeIcon } from "./ReportContentWithCharts-BaBitkZX.js";
|
|
4
|
+
import { C, ab, ac, a, ad, ae, af, ag, b, c, ah, ai, aj, f, m, r, s } from "./ReportContentWithCharts-BaBitkZX.js";
|
|
5
5
|
import { jsx, jsxs, Fragment as Fragment$2 } from "react/jsx-runtime";
|
|
6
6
|
import CodeBlockLowlight from "@tiptap/extension-code-block-lowlight";
|
|
7
7
|
import FindAndReplace, { FindAndReplacePluginKey, createSearchRegex } from "@tiptap/extension-find-and-replace";
|
|
@@ -4224,6 +4224,146 @@ function MarkdownPreview({
|
|
|
4224
4224
|
) })
|
|
4225
4225
|
] });
|
|
4226
4226
|
}
|
|
4227
|
+
const FULLSCREEN_ATTR = "data-tmr-fullscreen";
|
|
4228
|
+
const ROOT_ATTR = "data-tmr-fullscreen-root";
|
|
4229
|
+
const ESCAPE_GUARDS = [
|
|
4230
|
+
"[data-radix-popper-content-wrapper]",
|
|
4231
|
+
"[data-table-menu]",
|
|
4232
|
+
"[data-block-drag-menu]",
|
|
4233
|
+
"[data-find-bar]",
|
|
4234
|
+
"[data-image-lightbox]",
|
|
4235
|
+
"[data-crop-box]",
|
|
4236
|
+
'[role="dialog"]',
|
|
4237
|
+
'[role="listbox"]',
|
|
4238
|
+
'[role="menu"]'
|
|
4239
|
+
].join(",");
|
|
4240
|
+
const POPUP_MENU_ROOT = "[data-radix-popper-content-wrapper], .ant-menu-submenu-popup, .ant-dropdown, .ant-select-dropdown, .ant-cascader-menus, .ant-picker-dropdown, .ant-popover";
|
|
4241
|
+
function isShown(el) {
|
|
4242
|
+
let current = el;
|
|
4243
|
+
while (current && current !== document.documentElement) {
|
|
4244
|
+
if (!(current instanceof HTMLElement)) return false;
|
|
4245
|
+
if (current.hidden || current.getAttribute("aria-hidden") === "true") return false;
|
|
4246
|
+
const style = window.getComputedStyle(current);
|
|
4247
|
+
if (style.display === "none" || style.visibility === "hidden") return false;
|
|
4248
|
+
current = current.parentElement;
|
|
4249
|
+
}
|
|
4250
|
+
return true;
|
|
4251
|
+
}
|
|
4252
|
+
function isEscapeLayer(node) {
|
|
4253
|
+
if (!isShown(node)) return false;
|
|
4254
|
+
if (node.getAttribute("role") !== "menu") return true;
|
|
4255
|
+
if (node.closest(POPUP_MENU_ROOT)) return true;
|
|
4256
|
+
if (node.classList.contains("ant-menu-root") || node.closest('nav, [role="navigation"], aside, .ant-layout-sider')) {
|
|
4257
|
+
return false;
|
|
4258
|
+
}
|
|
4259
|
+
return true;
|
|
4260
|
+
}
|
|
4261
|
+
function escapeLayerOpen() {
|
|
4262
|
+
return [...document.querySelectorAll(ESCAPE_GUARDS)].some(isEscapeLayer);
|
|
4263
|
+
}
|
|
4264
|
+
let savedBodyOverflow = null;
|
|
4265
|
+
function readExplicitTarget(target) {
|
|
4266
|
+
if (typeof target === "function") return target();
|
|
4267
|
+
if (target instanceof HTMLElement) return target;
|
|
4268
|
+
if (target && typeof target === "object" && "current" in target) {
|
|
4269
|
+
return target.current instanceof HTMLElement ? target.current : null;
|
|
4270
|
+
}
|
|
4271
|
+
return null;
|
|
4272
|
+
}
|
|
4273
|
+
function defaultFullscreenElement(toolbarRoot) {
|
|
4274
|
+
let node = toolbarRoot.parentElement;
|
|
4275
|
+
while (node && node !== document.body && node !== document.documentElement) {
|
|
4276
|
+
if (node.querySelector(".ProseMirror")) return node;
|
|
4277
|
+
node = node.parentElement;
|
|
4278
|
+
}
|
|
4279
|
+
return toolbarRoot.parentElement;
|
|
4280
|
+
}
|
|
4281
|
+
function resolveFullscreenElement(target, toolbarRoot) {
|
|
4282
|
+
const explicit = readExplicitTarget(target);
|
|
4283
|
+
if (explicit) return explicit;
|
|
4284
|
+
if (!toolbarRoot) return null;
|
|
4285
|
+
return defaultFullscreenElement(toolbarRoot);
|
|
4286
|
+
}
|
|
4287
|
+
function enterFullscreen(el) {
|
|
4288
|
+
el.setAttribute(FULLSCREEN_ATTR, "");
|
|
4289
|
+
document.documentElement.setAttribute(ROOT_ATTR, "");
|
|
4290
|
+
if (savedBodyOverflow === null) {
|
|
4291
|
+
savedBodyOverflow = document.body.style.overflow;
|
|
4292
|
+
document.body.style.overflow = "hidden";
|
|
4293
|
+
}
|
|
4294
|
+
}
|
|
4295
|
+
function leaveFullscreen(el) {
|
|
4296
|
+
el == null ? void 0 : el.removeAttribute(FULLSCREEN_ATTR);
|
|
4297
|
+
if (document.querySelector(`[${FULLSCREEN_ATTR}]`)) return;
|
|
4298
|
+
document.documentElement.removeAttribute(ROOT_ATTR);
|
|
4299
|
+
if (savedBodyOverflow !== null) {
|
|
4300
|
+
document.body.style.overflow = savedBodyOverflow;
|
|
4301
|
+
savedBodyOverflow = null;
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4304
|
+
function useToolbarFullscreen({
|
|
4305
|
+
enabled,
|
|
4306
|
+
target,
|
|
4307
|
+
toolbarRootRef,
|
|
4308
|
+
editor,
|
|
4309
|
+
onChange
|
|
4310
|
+
}) {
|
|
4311
|
+
const [fullscreen, setFullscreen] = useState(false);
|
|
4312
|
+
const activeRef = useRef(null);
|
|
4313
|
+
const onChangeRef = useRef(onChange);
|
|
4314
|
+
onChangeRef.current = onChange;
|
|
4315
|
+
const exit = useCallback(() => {
|
|
4316
|
+
var _a;
|
|
4317
|
+
if (!activeRef.current) return;
|
|
4318
|
+
leaveFullscreen(activeRef.current);
|
|
4319
|
+
activeRef.current = null;
|
|
4320
|
+
setFullscreen(false);
|
|
4321
|
+
(_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, false);
|
|
4322
|
+
}, []);
|
|
4323
|
+
const toggleFullscreen = useCallback(() => {
|
|
4324
|
+
var _a;
|
|
4325
|
+
if (activeRef.current) {
|
|
4326
|
+
exit();
|
|
4327
|
+
return;
|
|
4328
|
+
}
|
|
4329
|
+
const el = resolveFullscreenElement(target, toolbarRootRef.current);
|
|
4330
|
+
if (!el) return;
|
|
4331
|
+
enterFullscreen(el);
|
|
4332
|
+
activeRef.current = el;
|
|
4333
|
+
setFullscreen(true);
|
|
4334
|
+
(_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, true);
|
|
4335
|
+
if (!editor.isDestroyed) editor.commands.focus();
|
|
4336
|
+
}, [editor, exit, target, toolbarRootRef]);
|
|
4337
|
+
useEffect(() => {
|
|
4338
|
+
if (enabled) return;
|
|
4339
|
+
exit();
|
|
4340
|
+
}, [enabled, exit]);
|
|
4341
|
+
useEffect(() => {
|
|
4342
|
+
if (!fullscreen) return;
|
|
4343
|
+
const onKey = (event) => {
|
|
4344
|
+
if (event.key !== "Escape" || isComposingKeyEvent(event)) return;
|
|
4345
|
+
if (escapeLayerOpen()) return;
|
|
4346
|
+
if (!editor.isDestroyed && editor.view.dom.classList.contains("tmr-format-painter")) {
|
|
4347
|
+
return;
|
|
4348
|
+
}
|
|
4349
|
+
event.preventDefault();
|
|
4350
|
+
event.stopPropagation();
|
|
4351
|
+
exit();
|
|
4352
|
+
};
|
|
4353
|
+
document.addEventListener("keydown", onKey, true);
|
|
4354
|
+
return () => document.removeEventListener("keydown", onKey, true);
|
|
4355
|
+
}, [fullscreen, editor, exit]);
|
|
4356
|
+
useEffect(() => {
|
|
4357
|
+
return () => {
|
|
4358
|
+
var _a;
|
|
4359
|
+
if (!activeRef.current) return;
|
|
4360
|
+
leaveFullscreen(activeRef.current);
|
|
4361
|
+
activeRef.current = null;
|
|
4362
|
+
(_a = onChangeRef.current) == null ? void 0 : _a.call(onChangeRef, false);
|
|
4363
|
+
};
|
|
4364
|
+
}, []);
|
|
4365
|
+
return { fullscreen, toggleFullscreen };
|
|
4366
|
+
}
|
|
4227
4367
|
const MD_FILE_RE = /\.(md|markdown)$/i;
|
|
4228
4368
|
const MD_ACCEPT = ".md,.markdown,text/markdown";
|
|
4229
4369
|
function resolveImportMenuItems({
|
|
@@ -4292,61 +4432,61 @@ function splitTopLevelBlocks(markdown) {
|
|
|
4292
4432
|
function stripToPlainText(markdown) {
|
|
4293
4433
|
return markdown.replace(/!\[[^\]]*\]\([^)]+\)/g, "").replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/^#{1,6}\s+/gm, "").replace(/^[ \t]*[-*+]\s+/gm, "").replace(/^[ \t]*\d+\.\s+/gm, "").replace(/[*_~`]+/g, "").replace(/<[^>]+>/g, "").replace(/\|/g, " ").replace(/\s+/g, " ").trim();
|
|
4294
4434
|
}
|
|
4295
|
-
const toolbar = "
|
|
4296
|
-
const inner = "
|
|
4297
|
-
const btn$2 = "
|
|
4298
|
-
const btnActive$1 = "
|
|
4299
|
-
const txtIcon = "
|
|
4300
|
-
const colorIcon = "
|
|
4301
|
-
const colorIconGlyph = "
|
|
4302
|
-
const colorIconBar = "
|
|
4303
|
-
const scriptTrigger = "
|
|
4304
|
-
const scriptTriggerGlyph = "
|
|
4305
|
-
const divider$2 = "
|
|
4306
|
-
const styleTrigger = "
|
|
4307
|
-
const styleTriggerLabel = "
|
|
4308
|
-
const styleTriggerStable = "
|
|
4309
|
-
const styleTriggerLabelStable = "
|
|
4310
|
-
const styleTriggerSizer = "
|
|
4311
|
-
const styleTriggerValue = "
|
|
4312
|
-
const styleTriggerCaret = "
|
|
4313
|
-
const iconTrigger = "
|
|
4314
|
-
const styleItem = "
|
|
4315
|
-
const styleIcon = "
|
|
4316
|
-
const scriptGlyph = "
|
|
4317
|
-
const menu = "
|
|
4318
|
-
const menuItem = "
|
|
4319
|
-
const menuItemSelected = "
|
|
4320
|
-
const listSplit = "
|
|
4321
|
-
const listSplitActive = "
|
|
4322
|
-
const numberingCaret = "
|
|
4323
|
-
const numberingCaretActive = "
|
|
4324
|
-
const numberingMenu = "
|
|
4325
|
-
const numberingGrid = "
|
|
4326
|
-
const numberingOption = "
|
|
4327
|
-
const numberingOptionActive = "
|
|
4328
|
-
const numberingPreview = "
|
|
4329
|
-
const numberingPreviewRow = "
|
|
4330
|
-
const numberingPreviewMarker = "
|
|
4331
|
-
const numberingPreviewLine = "
|
|
4332
|
-
const tableInsertCaret = "
|
|
4333
|
-
const tableSizePicker = "
|
|
4334
|
-
const tableSizeGrid = "
|
|
4335
|
-
const tableSizeCell = "
|
|
4336
|
-
const tableSizeCellActive = "
|
|
4337
|
-
const tableSizeLabel = "
|
|
4338
|
-
const popoverContent$1 = "
|
|
4339
|
-
const mathLayer = "
|
|
4340
|
-
const mathStack = "
|
|
4341
|
-
const mathStackBlock = "
|
|
4342
|
-
const mathHint = "
|
|
4343
|
-
const mathHintBlock = "
|
|
4344
|
-
const mathHintIcon = "
|
|
4345
|
-
const mathField = "
|
|
4346
|
-
const mathFieldBlock = "
|
|
4347
|
-
const mathInput = "
|
|
4348
|
-
const mathDone = "
|
|
4349
|
-
const mathDoneKbd = "
|
|
4435
|
+
const toolbar = "_toolbar_1y8hn_2";
|
|
4436
|
+
const inner = "_inner_1y8hn_20";
|
|
4437
|
+
const btn$2 = "_btn_1y8hn_47";
|
|
4438
|
+
const btnActive$1 = "_btnActive_1y8hn_70";
|
|
4439
|
+
const txtIcon = "_txtIcon_1y8hn_86";
|
|
4440
|
+
const colorIcon = "_colorIcon_1y8hn_94";
|
|
4441
|
+
const colorIconGlyph = "_colorIconGlyph_1y8hn_102";
|
|
4442
|
+
const colorIconBar = "_colorIconBar_1y8hn_108";
|
|
4443
|
+
const scriptTrigger = "_scriptTrigger_1y8hn_115";
|
|
4444
|
+
const scriptTriggerGlyph = "_scriptTriggerGlyph_1y8hn_135";
|
|
4445
|
+
const divider$2 = "_divider_1y8hn_143";
|
|
4446
|
+
const styleTrigger = "_styleTrigger_1y8hn_152";
|
|
4447
|
+
const styleTriggerLabel = "_styleTriggerLabel_1y8hn_185";
|
|
4448
|
+
const styleTriggerStable = "_styleTriggerStable_1y8hn_195";
|
|
4449
|
+
const styleTriggerLabelStable = "_styleTriggerLabelStable_1y8hn_199";
|
|
4450
|
+
const styleTriggerSizer = "_styleTriggerSizer_1y8hn_204";
|
|
4451
|
+
const styleTriggerValue = "_styleTriggerValue_1y8hn_205";
|
|
4452
|
+
const styleTriggerCaret = "_styleTriggerCaret_1y8hn_220";
|
|
4453
|
+
const iconTrigger = "_iconTrigger_1y8hn_227";
|
|
4454
|
+
const styleItem = "_styleItem_1y8hn_235";
|
|
4455
|
+
const styleIcon = "_styleIcon_1y8hn_241";
|
|
4456
|
+
const scriptGlyph = "_scriptGlyph_1y8hn_251";
|
|
4457
|
+
const menu = "_menu_1y8hn_263";
|
|
4458
|
+
const menuItem = "_menuItem_1y8hn_274";
|
|
4459
|
+
const menuItemSelected = "_menuItemSelected_1y8hn_301";
|
|
4460
|
+
const listSplit = "_listSplit_1y8hn_316";
|
|
4461
|
+
const listSplitActive = "_listSplitActive_1y8hn_322";
|
|
4462
|
+
const numberingCaret = "_numberingCaret_1y8hn_334";
|
|
4463
|
+
const numberingCaretActive = "_numberingCaretActive_1y8hn_364";
|
|
4464
|
+
const numberingMenu = "_numberingMenu_1y8hn_368";
|
|
4465
|
+
const numberingGrid = "_numberingGrid_1y8hn_378";
|
|
4466
|
+
const numberingOption = "_numberingOption_1y8hn_384";
|
|
4467
|
+
const numberingOptionActive = "_numberingOptionActive_1y8hn_399";
|
|
4468
|
+
const numberingPreview = "_numberingPreview_1y8hn_404";
|
|
4469
|
+
const numberingPreviewRow = "_numberingPreviewRow_1y8hn_410";
|
|
4470
|
+
const numberingPreviewMarker = "_numberingPreviewMarker_1y8hn_425";
|
|
4471
|
+
const numberingPreviewLine = "_numberingPreviewLine_1y8hn_433";
|
|
4472
|
+
const tableInsertCaret = "_tableInsertCaret_1y8hn_439";
|
|
4473
|
+
const tableSizePicker = "_tableSizePicker_1y8hn_447";
|
|
4474
|
+
const tableSizeGrid = "_tableSizeGrid_1y8hn_457";
|
|
4475
|
+
const tableSizeCell = "_tableSizeCell_1y8hn_462";
|
|
4476
|
+
const tableSizeCellActive = "_tableSizeCellActive_1y8hn_472";
|
|
4477
|
+
const tableSizeLabel = "_tableSizeLabel_1y8hn_477";
|
|
4478
|
+
const popoverContent$1 = "_popoverContent_1y8hn_486";
|
|
4479
|
+
const mathLayer = "_mathLayer_1y8hn_490";
|
|
4480
|
+
const mathStack = "_mathStack_1y8hn_495";
|
|
4481
|
+
const mathStackBlock = "_mathStackBlock_1y8hn_502";
|
|
4482
|
+
const mathHint = "_mathHint_1y8hn_507";
|
|
4483
|
+
const mathHintBlock = "_mathHintBlock_1y8hn_519";
|
|
4484
|
+
const mathHintIcon = "_mathHintIcon_1y8hn_525";
|
|
4485
|
+
const mathField = "_mathField_1y8hn_556";
|
|
4486
|
+
const mathFieldBlock = "_mathFieldBlock_1y8hn_568";
|
|
4487
|
+
const mathInput = "_mathInput_1y8hn_575";
|
|
4488
|
+
const mathDone = "_mathDone_1y8hn_593";
|
|
4489
|
+
const mathDoneKbd = "_mathDoneKbd_1y8hn_618";
|
|
4350
4490
|
const styles$6 = {
|
|
4351
4491
|
toolbar,
|
|
4352
4492
|
inner,
|
|
@@ -6470,6 +6610,7 @@ function MenuPopover({
|
|
|
6470
6610
|
function MenuItem({
|
|
6471
6611
|
selected,
|
|
6472
6612
|
disabled,
|
|
6613
|
+
label,
|
|
6473
6614
|
onSelect,
|
|
6474
6615
|
children
|
|
6475
6616
|
}) {
|
|
@@ -6479,6 +6620,8 @@ function MenuItem({
|
|
|
6479
6620
|
{
|
|
6480
6621
|
type: "button",
|
|
6481
6622
|
disabled,
|
|
6623
|
+
"aria-label": label,
|
|
6624
|
+
"aria-pressed": selected || void 0,
|
|
6482
6625
|
className: `${styles$6.menuItem} ${selected ? styles$6.menuItemSelected : ""}`,
|
|
6483
6626
|
onMouseDown: (e2) => e2.preventDefault(),
|
|
6484
6627
|
onClick: () => {
|
|
@@ -6672,10 +6815,21 @@ function EditorToolbar({
|
|
|
6672
6815
|
locale = "en",
|
|
6673
6816
|
onSearch,
|
|
6674
6817
|
searchActive = false,
|
|
6818
|
+
showFullscreen = true,
|
|
6819
|
+
fullscreenTarget,
|
|
6820
|
+
onFullscreenChange,
|
|
6675
6821
|
extraToolbarItems,
|
|
6676
6822
|
className
|
|
6677
6823
|
}) {
|
|
6678
6824
|
const t = getLocaleBundle(locale).toolbar;
|
|
6825
|
+
const toolbarRootRef = useRef(null);
|
|
6826
|
+
const { fullscreen, toggleFullscreen } = useToolbarFullscreen({
|
|
6827
|
+
enabled: showFullscreen,
|
|
6828
|
+
target: fullscreenTarget,
|
|
6829
|
+
toolbarRootRef,
|
|
6830
|
+
editor,
|
|
6831
|
+
onChange: onFullscreenChange
|
|
6832
|
+
});
|
|
6679
6833
|
const state = useEditorState({
|
|
6680
6834
|
editor,
|
|
6681
6835
|
selector: ({ editor: e2 }) => ({
|
|
@@ -6962,6 +7116,8 @@ function EditorToolbar({
|
|
|
6962
7116
|
/* @__PURE__ */ jsx(
|
|
6963
7117
|
"div",
|
|
6964
7118
|
{
|
|
7119
|
+
ref: toolbarRootRef,
|
|
7120
|
+
"data-tmr-toolbar": "",
|
|
6965
7121
|
className: className ? `${styles$6.toolbar} ${className}` : styles$6.toolbar,
|
|
6966
7122
|
children: /* @__PURE__ */ jsxs("div", { className: styles$6.inner, children: [
|
|
6967
7123
|
/* @__PURE__ */ jsx(
|
|
@@ -7530,6 +7686,18 @@ function EditorToolbar({
|
|
|
7530
7686
|
onInsert: (rows, cols) => chain().insertTable({ rows, cols, withHeaderRow: true }).run()
|
|
7531
7687
|
}
|
|
7532
7688
|
),
|
|
7689
|
+
showFullscreen ? /* @__PURE__ */ jsx(
|
|
7690
|
+
MenuItem,
|
|
7691
|
+
{
|
|
7692
|
+
selected: fullscreen,
|
|
7693
|
+
label: fullscreen ? t.exitFullscreen : t.fullscreen,
|
|
7694
|
+
onSelect: toggleFullscreen,
|
|
7695
|
+
children: /* @__PURE__ */ jsxs("span", { className: styles$6.styleItem, children: [
|
|
7696
|
+
/* @__PURE__ */ jsx("span", { className: styles$6.styleIcon, children: fullscreen ? /* @__PURE__ */ jsx(MinimizeIcon, { size: 14 }) : /* @__PURE__ */ jsx(ExpandIcon, { size: 14 }) }),
|
|
7697
|
+
fullscreen ? t.exitFullscreen : t.fullscreen
|
|
7698
|
+
] })
|
|
7699
|
+
}
|
|
7700
|
+
) : null,
|
|
7533
7701
|
extraToolbarItems == null ? void 0 : extraToolbarItems.map((item2) => /* @__PURE__ */ jsx(
|
|
7534
7702
|
MenuItem,
|
|
7535
7703
|
{
|
|
@@ -7760,8 +7928,8 @@ export {
|
|
|
7760
7928
|
C as ChartMount,
|
|
7761
7929
|
CheckIcon,
|
|
7762
7930
|
ChevronDownIcon,
|
|
7763
|
-
|
|
7764
|
-
|
|
7931
|
+
ab as ChevronLeftIcon,
|
|
7932
|
+
ac as ChevronRightIcon,
|
|
7765
7933
|
ChevronUpIcon,
|
|
7766
7934
|
ChevronsUpDownIcon,
|
|
7767
7935
|
a as CitationInteractive,
|
|
@@ -7785,12 +7953,12 @@ export {
|
|
|
7785
7953
|
FIND_DEBOUNCE_MS,
|
|
7786
7954
|
default2 as FindAndReplace,
|
|
7787
7955
|
FindReplaceBar,
|
|
7788
|
-
|
|
7956
|
+
ad as FitIcon,
|
|
7789
7957
|
GripIcon,
|
|
7790
7958
|
ImageAlignTools,
|
|
7791
7959
|
ImageIcon,
|
|
7792
7960
|
ImageUploadNode,
|
|
7793
|
-
|
|
7961
|
+
ae as ImportIcon,
|
|
7794
7962
|
ImportPlaceholder,
|
|
7795
7963
|
IndentDecreaseIcon,
|
|
7796
7964
|
IndentIncreaseIcon,
|
|
@@ -7802,12 +7970,13 @@ export {
|
|
|
7802
7970
|
ListChecksIcon,
|
|
7803
7971
|
ListOrderedIcon,
|
|
7804
7972
|
ListUnorderedIcon,
|
|
7805
|
-
|
|
7973
|
+
af as LockIcon,
|
|
7806
7974
|
MarkdownFileDrop,
|
|
7807
7975
|
MarkdownPaste,
|
|
7808
7976
|
MarkdownPreview,
|
|
7809
7977
|
MarkdownWysiwygEditor,
|
|
7810
|
-
|
|
7978
|
+
ag as MenuIcon,
|
|
7979
|
+
MinimizeIcon,
|
|
7811
7980
|
PENDING_ANCHOR_CLASS,
|
|
7812
7981
|
PaintbrushIcon,
|
|
7813
7982
|
P as ParagraphStyles,
|
|
@@ -7818,7 +7987,7 @@ export {
|
|
|
7818
7987
|
b as ReportContentInteractive,
|
|
7819
7988
|
c as ReportContentWithCharts,
|
|
7820
7989
|
RotateCcwIcon,
|
|
7821
|
-
|
|
7990
|
+
ah as RotateCwIcon,
|
|
7822
7991
|
RowAfterIcon,
|
|
7823
7992
|
RowBeforeIcon,
|
|
7824
7993
|
RowDeleteIcon,
|
|
@@ -7831,8 +8000,8 @@ export {
|
|
|
7831
8000
|
UnderlineIcon,
|
|
7832
8001
|
UndoIcon,
|
|
7833
8002
|
XIcon,
|
|
7834
|
-
|
|
7835
|
-
|
|
8003
|
+
ai as ZoomInIcon,
|
|
8004
|
+
aj as ZoomOutIcon,
|
|
7836
8005
|
a2 as applyCitationSources,
|
|
7837
8006
|
applyCommentAnchorsToEditor,
|
|
7838
8007
|
applyLink,
|