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/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
- /** 主栏导入按钮。默认只吃 .md,宿主传 onImportDocument 后可扩展格式。 */
33
+ /** 主栏导入下拉触发器上的短文案(对齐 style / fontSize)。 */
34
34
  importDocument: string;
35
- /** 导入进行中的按钮 title(未区分阶段时的兜底)。 */
35
+ /** 导入触发器 title / aria-label。 */
36
+ importDocumentHint: string;
37
+ /** 未传 importMenuItems、但传了 onImportDocument + importAccept 时的第二项。 */
38
+ importDocumentOther: string;
39
+ /** 导入进行中的按钮 title。 */
36
40
  importDocumentBusy: string;
37
- /** 上传阶段按钮 title,传入 0–100。 */
41
+ /** 光标占位:上传阶段,传入 0–100。 */
38
42
  importDocumentUploading: (percent: number) => string;
39
- /** 转换阶段按钮 title,不要百分比。 */
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
- /** @deprecated 导入入口已移到主栏,改用 `importDocument`。 */
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-Dft8DJ1g.js";
2
- import { c, R, i, e, l, a, m } from "./extractToc-Dft8DJ1g.js";
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";