tiptap-markdown-react 0.8.8 → 0.8.10
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 +4 -3
- package/dist/components/EditorToolbar.d.ts +12 -4
- package/dist/{extractToc-Dft8DJ1g.js → extractToc-DiY1iu1J.js} +3 -3
- package/dist/{extractToc-Dft8DJ1g.js.map → extractToc-DiY1iu1J.js.map} +1 -1
- package/dist/importMenu.d.ts +16 -0
- package/dist/importMenu.test.d.ts +1 -0
- package/dist/importPlaceholder.d.ts +12 -0
- package/dist/importPlaceholder.test.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +206 -78
- package/dist/index.js.map +1 -1
- package/dist/labels.d.ts +9 -7
- package/dist/server.js +2 -2
- package/dist/style.css +120 -113
- package/package.json +1 -1
package/dist/labels.d.ts
CHANGED
|
@@ -30,16 +30,18 @@ export interface ToolbarLabels {
|
|
|
30
30
|
imageUploadFailed: string;
|
|
31
31
|
/** Markdown 文件导入失败(与图片上传共用 onError 回调时,便于宿主区分文案)。 */
|
|
32
32
|
importMarkdownFailed: string;
|
|
33
|
-
/**
|
|
33
|
+
/** 主栏导入下拉触发器上的短文案(对齐 style / fontSize)。 */
|
|
34
34
|
importDocument: string;
|
|
35
|
-
/**
|
|
35
|
+
/** 导入触发器 title / aria-label。 */
|
|
36
|
+
importDocumentHint: string;
|
|
37
|
+
/** 未传 importMenuItems、但传了 onImportDocument + importAccept 时的第二项。 */
|
|
38
|
+
importDocumentOther: string;
|
|
39
|
+
/** 导入进行中的按钮 title。 */
|
|
36
40
|
importDocumentBusy: string;
|
|
37
|
-
/**
|
|
41
|
+
/** 光标占位:上传阶段,传入 0–100。 */
|
|
38
42
|
importDocumentUploading: (percent: number) => string;
|
|
39
|
-
/**
|
|
43
|
+
/** 光标占位:转换阶段,不要百分比。 */
|
|
40
44
|
importDocumentConverting: string;
|
|
41
|
-
/** 导入进行中的取消按钮。 */
|
|
42
|
-
importDocumentCancel: string;
|
|
43
45
|
/** 非 Markdown 文件导入失败(onError 的 source === 'import')。 */
|
|
44
46
|
importDocumentFailed: string;
|
|
45
47
|
blockquote: string;
|
|
@@ -49,7 +51,7 @@ export interface ToolbarLabels {
|
|
|
49
51
|
more: string;
|
|
50
52
|
codeBlock: string;
|
|
51
53
|
hr: string;
|
|
52
|
-
/**
|
|
54
|
+
/** 导入下拉里的 Markdown 项。 */
|
|
53
55
|
importMarkdown: string;
|
|
54
56
|
tableInsert: string;
|
|
55
57
|
tableAddColumnBefore: string;
|
package/dist/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as stabilizeMarkdown, h as applyCitationSources, b as baseExtensions, p as pureCodeBlock, f as pureImage, C as CitationRef, d as makeTocGetId, n as renderMathElementHtml, j as extractToc } from "./extractToc-
|
|
2
|
-
import { c, R, i, e, l, a, m } from "./extractToc-
|
|
1
|
+
import { k as stabilizeMarkdown, h as applyCitationSources, b as baseExtensions, p as pureCodeBlock, f as pureImage, C as CitationRef, d as makeTocGetId, n as renderMathElementHtml, j as extractToc } from "./extractToc-DiY1iu1J.js";
|
|
2
|
+
import { c, R, i, e, l, a, m } from "./extractToc-DiY1iu1J.js";
|
|
3
3
|
import { TableOfContents, generateTocIds } from "@tiptap/extension-table-of-contents";
|
|
4
4
|
import { MarkdownManager } from "@tiptap/markdown";
|
|
5
5
|
import { renderToHTMLString } from "@tiptap/static-renderer";
|