tiptap-markdown-react 1.2.0 → 1.3.0
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/dist/{ReportContent-B7okwVW0.js → ReportContent-Cb67MCs9.js} +291 -14
- package/dist/ReportContent-Cb67MCs9.js.map +1 -0
- package/dist/ReportContentWithCharts-B-K-EiAG.js +2164 -0
- package/dist/ReportContentWithCharts-B-K-EiAG.js.map +1 -0
- package/dist/components/ImageAlignTools.d.ts +2 -2
- package/dist/components/ImageCropStage.d.ts +18 -0
- package/dist/components/ImageLightbox.d.ts +12 -0
- package/dist/{extractToc-B50WvHao.js → extractToc-H9otRa3G.js} +10 -188
- package/dist/extractToc-H9otRa3G.js.map +1 -0
- package/dist/icons/index.d.ts +14 -0
- package/dist/imageCrop.d.ts +50 -0
- package/dist/imageCrop.dom.test.d.ts +1 -0
- package/dist/imageCropLayout.d.ts +38 -0
- package/dist/imageMarkdown.d.ts +49 -9
- package/dist/imagePreview.d.ts +49 -0
- package/dist/imagePreview.dom.test.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +878 -563
- package/dist/index.js.map +1 -1
- package/dist/labels.d.ts +24 -0
- package/dist/reader.js +2 -2
- package/dist/resetImageSize.d.ts +2 -1
- package/dist/server.js +4 -4
- package/dist/style-inline.css +723 -404
- package/dist/style.css +723 -404
- package/package.json +1 -1
- package/dist/ReportContent-B7okwVW0.js.map +0 -1
- package/dist/ReportContentWithCharts-DHdD1BaH.js +0 -1322
- package/dist/ReportContentWithCharts-DHdD1BaH.js.map +0 -1
- package/dist/extractToc-B50WvHao.js.map +0 -1
package/dist/labels.d.ts
CHANGED
|
@@ -63,6 +63,30 @@ export interface ToolbarLabels {
|
|
|
63
63
|
imageCaption: string;
|
|
64
64
|
/** 描述输入框的占位与无障碍名。 */
|
|
65
65
|
imageCaptionPlaceholder: string;
|
|
66
|
+
/** 图片裁剪按钮的 title / aria-label。 */
|
|
67
|
+
imageCrop: string;
|
|
68
|
+
/** 裁剪面板「应用」按钮。 */
|
|
69
|
+
imageCropApply: string;
|
|
70
|
+
/** 裁剪面板「取消」按钮。 */
|
|
71
|
+
imageCropCancel: string;
|
|
72
|
+
/** 裁剪面板「重置」按钮:去掉裁剪,回到整张原图。 */
|
|
73
|
+
imageCropReset: string;
|
|
74
|
+
/** 编辑态工具条「预览」按钮:打开大图灯箱。 */
|
|
75
|
+
imagePreview: string;
|
|
76
|
+
/** 灯箱关闭按钮。 */
|
|
77
|
+
imagePreviewClose: string;
|
|
78
|
+
/** 灯箱上一张。 */
|
|
79
|
+
imagePreviewPrev: string;
|
|
80
|
+
/** 灯箱下一张。 */
|
|
81
|
+
imagePreviewNext: string;
|
|
82
|
+
/** 灯箱缩小。 */
|
|
83
|
+
imagePreviewZoomOut: string;
|
|
84
|
+
/** 灯箱放大。 */
|
|
85
|
+
imagePreviewZoomIn: string;
|
|
86
|
+
/** 灯箱「自适应」:缩回当前视口。 */
|
|
87
|
+
imagePreviewFit: string;
|
|
88
|
+
/** 灯箱顺时针旋转。 */
|
|
89
|
+
imagePreviewRotate: string;
|
|
66
90
|
/** Markdown 文件导入失败(与图片上传共用 onError 回调时,便于宿主区分文案)。 */
|
|
67
91
|
importMarkdownFailed: string;
|
|
68
92
|
/** 主栏导入下拉触发器上的短文案(对齐 style / fontSize)。 */
|
package/dist/reader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C, a, R, b, c, f, m, r, s } from "./ReportContentWithCharts-
|
|
3
|
-
import { a as a2, e, b as b2 } from "./ReportContent-
|
|
2
|
+
import { C, a, R, b, c, f, m, r, s } from "./ReportContentWithCharts-B-K-EiAG.js";
|
|
3
|
+
import { a as a2, e, b as b2 } from "./ReportContent-Cb67MCs9.js";
|
|
4
4
|
export {
|
|
5
5
|
C as ChartMount,
|
|
6
6
|
a as CitationInteractive,
|
package/dist/resetImageSize.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import { Editor } from '@tiptap/core';
|
|
|
5
5
|
*
|
|
6
6
|
* 拖拽缩放只有入口没有出口:拖过尺寸的图在 markdown 里是 `<img …>`,想在保存形态上
|
|
7
7
|
* 反悔(比如拖歪了、想恢复原图全尺寸)时——undo 之外没有别的路。这个工具补上出口:
|
|
8
|
-
* 宿主可以接自己的按钮 / 菜单(库内暂不渲染 UI
|
|
8
|
+
* 宿主可以接自己的按钮 / 菜单(库内暂不渲染 UI)。裁剪一并清掉,否则撤掉尺寸后
|
|
9
|
+
* `data-crop` 还在,预览没有宽高可撑开裁剪框。
|
|
9
10
|
*
|
|
10
11
|
* @returns 是否找到并重置了图片。没找到图(光标不在图旁)时返回 false。
|
|
11
12
|
*/
|
package/dist/server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as stabilizeMarkdown, p as prepareChartMarkdown, b as baseExtensions, a as pureCodeBlock, c as pureImage, d as pureChart, C as CitationRef, m as makeTocGetId, r as renderMathElementHtml, e as extractToc } from "./extractToc-
|
|
2
|
-
import { f, g, l, h, i, j } from "./extractToc-
|
|
3
|
-
import { a as applyCitationSources } from "./ReportContent-
|
|
4
|
-
import { R, e, s } from "./ReportContent-
|
|
1
|
+
import { s as stabilizeMarkdown, p as prepareChartMarkdown, b as baseExtensions, a as pureCodeBlock, c as pureImage, d as pureChart, C as CitationRef, m as makeTocGetId, r as renderMathElementHtml, e as extractToc } from "./extractToc-H9otRa3G.js";
|
|
2
|
+
import { f, g, l, h, i, j } from "./extractToc-H9otRa3G.js";
|
|
3
|
+
import { a as applyCitationSources } from "./ReportContent-Cb67MCs9.js";
|
|
4
|
+
import { R, e, s } from "./ReportContent-Cb67MCs9.js";
|
|
5
5
|
import { TableOfContents, generateTocIds } from "@tiptap/extension-table-of-contents";
|
|
6
6
|
import { MarkdownManager } from "@tiptap/markdown";
|
|
7
7
|
import { renderToHTMLString } from "@tiptap/static-renderer";
|