@linker-design-plus/tiny-peony 1.4.35 → 1.4.37
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/foundation/contentManager/contentManager.d.ts +16 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +99 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5332 -3901
- package/dist/index.mjs.map +1 -1
- package/dist/intersection/components/editor/context.d.ts +3 -0
- package/dist/intersection/components/editor/editor.d.ts +6 -0
- package/dist/intersection/components/editor/index.d.ts +18 -0
- package/dist/intersection/components/icons/IconClose.vue.d.ts +1 -1
- package/dist/intersection/components/icons/IconPause.vue.d.ts +1 -1
- package/dist/intersection/components/icons/IconPlay.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/context.d.ts +3 -3
- package/dist/intersection/components/modals/Refine/icons/abort.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/icons/copy.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/icons/delete.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/icons/expand.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/icons/inexpand.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/icons/insert.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/icons/moreShortcut.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/icons/optimism.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/icons/prefix.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/icons/refresh.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/icons/replace.vue.d.ts +1 -1
- package/dist/intersection/components/modals/Refine/icons/send.vue.d.ts +1 -1
- package/dist/intersection/components/modals/contextMenu.vue.d.ts +1 -21
- package/dist/intersection/hooks/use-editor.d.ts +3 -0
- package/dist/plugins/HomophonesTagPlugin/homophoner.vue.d.ts +1 -1
- package/dist/plugins/PausationTagPlugin/pausationor.vue.d.ts +1 -1
- package/dist/typings/status/i-content-manager.d.ts +3 -0
- package/package.json +3 -2
|
@@ -9,6 +9,22 @@ export declare class ContentManager extends IContentManager {
|
|
|
9
9
|
getHtml(): string;
|
|
10
10
|
setContent(content: string): void;
|
|
11
11
|
setHtml(content: string): void;
|
|
12
|
+
setMarkdown(markdown: string): void;
|
|
13
|
+
appendMarkdown(markdown: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* 将 markdown 文本通过 marked 解析为编辑器所需的段落 HTML
|
|
16
|
+
* 所有块级元素内容都会被包裹在 <p class="PARAGRAPH_CLS"> 中
|
|
17
|
+
*/
|
|
18
|
+
private _markdownToEditorHtml;
|
|
19
|
+
/**
|
|
20
|
+
* 将编辑器当前内容转为 Markdown 格式
|
|
21
|
+
* 反向解析 _markdownToEditorHtml 产出的段落结构
|
|
22
|
+
*/
|
|
23
|
+
getMarkdownContent(): string;
|
|
24
|
+
/**
|
|
25
|
+
* 将段落内部的 HTML 标签转为 Markdown 内联语法
|
|
26
|
+
*/
|
|
27
|
+
private _htmlToMarkdownInline;
|
|
12
28
|
appendContent(content: string | string[], cb?: (para: HTMLElement) => void): void;
|
|
13
29
|
insert(content: string | Node): void;
|
|
14
30
|
delete(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,9 @@ declare const TinyPeony: {
|
|
|
82
82
|
innerRender: () => import("vue/jsx-runtime").JSX.Element;
|
|
83
83
|
innerGetContent: (_options?: import("./intersection/components/editor/context").ContentOptions) => string;
|
|
84
84
|
innerSetContent: (content: string) => Promise<void>;
|
|
85
|
+
innerSetMarkdown: (markdown: string) => Promise<void>;
|
|
86
|
+
innerAppendMarkdown: (markdown: string) => Promise<void>;
|
|
87
|
+
innerGetMarkdownContent: () => string;
|
|
85
88
|
innerAppendContent: (content: string | string[]) => Promise<void>;
|
|
86
89
|
innerGetTextContent: () => string[];
|
|
87
90
|
innerInsertContent: (content: string | Node) => void;
|
|
@@ -107,6 +110,9 @@ declare const TinyPeony: {
|
|
|
107
110
|
getHtml(options: import("./intersection/components/editor/context").ContentOptions): string;
|
|
108
111
|
setContent(content: string): Promise<void>;
|
|
109
112
|
setHtml(content: string): Promise<void>;
|
|
113
|
+
setMarkdown(markdown: string): Promise<void>;
|
|
114
|
+
appendMarkdown(markdown: string): Promise<void>;
|
|
115
|
+
getMarkdownContent(): string;
|
|
110
116
|
appendContent(content: string | string[]): Promise<void>;
|
|
111
117
|
getTextContent(): string[];
|
|
112
118
|
insertContent(content: string | Node): void;
|
|
@@ -239,6 +245,9 @@ declare const TinyPeony: {
|
|
|
239
245
|
innerRender: () => import("vue/jsx-runtime").JSX.Element;
|
|
240
246
|
innerGetContent: (_options?: import("./intersection/components/editor/context").ContentOptions) => string;
|
|
241
247
|
innerSetContent: (content: string) => Promise<void>;
|
|
248
|
+
innerSetMarkdown: (markdown: string) => Promise<void>;
|
|
249
|
+
innerAppendMarkdown: (markdown: string) => Promise<void>;
|
|
250
|
+
innerGetMarkdownContent: () => string;
|
|
242
251
|
innerAppendContent: (content: string | string[]) => Promise<void>;
|
|
243
252
|
innerGetTextContent: () => string[];
|
|
244
253
|
innerInsertContent: (content: string | Node) => void;
|
|
@@ -264,6 +273,9 @@ declare const TinyPeony: {
|
|
|
264
273
|
getHtml(options: import("./intersection/components/editor/context").ContentOptions): string;
|
|
265
274
|
setContent(content: string): Promise<void>;
|
|
266
275
|
setHtml(content: string): Promise<void>;
|
|
276
|
+
setMarkdown(markdown: string): Promise<void>;
|
|
277
|
+
appendMarkdown(markdown: string): Promise<void>;
|
|
278
|
+
getMarkdownContent(): string;
|
|
267
279
|
appendContent(content: string | string[]): Promise<void>;
|
|
268
280
|
getTextContent(): string[];
|
|
269
281
|
insertContent(content: string | Node): void;
|
|
@@ -386,6 +398,9 @@ declare const TinyPeony: {
|
|
|
386
398
|
innerRender: () => import("vue/jsx-runtime").JSX.Element;
|
|
387
399
|
innerGetContent: (_options?: import("./intersection/components/editor/context").ContentOptions) => string;
|
|
388
400
|
innerSetContent: (content: string) => Promise<void>;
|
|
401
|
+
innerSetMarkdown: (markdown: string) => Promise<void>;
|
|
402
|
+
innerAppendMarkdown: (markdown: string) => Promise<void>;
|
|
403
|
+
innerGetMarkdownContent: () => string;
|
|
389
404
|
innerAppendContent: (content: string | string[]) => Promise<void>;
|
|
390
405
|
innerGetTextContent: () => string[];
|
|
391
406
|
innerInsertContent: (content: string | Node) => void;
|
|
@@ -411,6 +426,9 @@ declare const TinyPeony: {
|
|
|
411
426
|
getHtml(options: import("./intersection/components/editor/context").ContentOptions): string;
|
|
412
427
|
setContent(content: string): Promise<void>;
|
|
413
428
|
setHtml(content: string): Promise<void>;
|
|
429
|
+
setMarkdown(markdown: string): Promise<void>;
|
|
430
|
+
appendMarkdown(markdown: string): Promise<void>;
|
|
431
|
+
getMarkdownContent(): string;
|
|
414
432
|
appendContent(content: string | string[]): Promise<void>;
|
|
415
433
|
getTextContent(): string[];
|
|
416
434
|
insertContent(content: string | Node): void;
|