markstream-vue 0.0.10 → 0.0.11

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.
Files changed (134) hide show
  1. package/README.md +21 -0
  2. package/README.zh-CN.md +21 -0
  3. package/dist/CodeBlockNode.js +1 -1
  4. package/dist/exports.js +1 -1
  5. package/dist/extended.js +1 -0
  6. package/dist/index.css +1 -1
  7. package/dist/index.d.ts +1635 -98
  8. package/dist/index.js +1 -1
  9. package/dist/index.px.css +1 -1
  10. package/dist/index.tailwind.css +1 -1
  11. package/dist/index2.js +1 -1
  12. package/dist/index3.js +1 -1
  13. package/dist/index4.js +1 -1
  14. package/dist/index5.js +1 -1
  15. package/dist/index6.js +1 -1
  16. package/dist/tailwind.ts +0 -0
  17. package/package.json +2 -1
  18. package/dist/languageIconExtended.js +0 -1
  19. package/dist/types/components/AdmonitionNode/AdmonitionNode.vue.d.ts +0 -26
  20. package/dist/types/components/AdmonitionNode/index.d.ts +0 -2
  21. package/dist/types/components/BlockquoteNode/BlockquoteNode.vue.d.ts +0 -23
  22. package/dist/types/components/BlockquoteNode/index.d.ts +0 -2
  23. package/dist/types/components/CheckboxNode/CheckboxNode.vue.d.ts +0 -9
  24. package/dist/types/components/CheckboxNode/index.d.ts +0 -2
  25. package/dist/types/components/CodeBlockNode/CodeBlockNode.vue.d.ts +0 -55
  26. package/dist/types/components/CodeBlockNode/HtmlPreviewFrame.vue.d.ts +0 -8
  27. package/dist/types/components/CodeBlockNode/index.d.ts +0 -2
  28. package/dist/types/components/CodeBlockNode/monaco.d.ts +0 -57
  29. package/dist/types/components/CodeBlockNode/monacoThemeScheduler.d.ts +0 -4
  30. package/dist/types/components/D2BlockNode/D2BlockNode.vue.d.ts +0 -16
  31. package/dist/types/components/D2BlockNode/d2.d.ts +0 -6
  32. package/dist/types/components/D2BlockNode/index.d.ts +0 -2
  33. package/dist/types/components/DefinitionListNode/DefinitionListNode.vue.d.ts +0 -29
  34. package/dist/types/components/DefinitionListNode/index.d.ts +0 -2
  35. package/dist/types/components/EmojiNode/EmojiNode.vue.d.ts +0 -10
  36. package/dist/types/components/EmojiNode/index.d.ts +0 -2
  37. package/dist/types/components/EmphasisNode/EmphasisNode.vue.d.ts +0 -16
  38. package/dist/types/components/EmphasisNode/index.d.ts +0 -2
  39. package/dist/types/components/FootnoteAnchorNode/FootnoteAnchorNode.vue.d.ts +0 -9
  40. package/dist/types/components/FootnoteAnchorNode/index.d.ts +0 -2
  41. package/dist/types/components/FootnoteNode/FootnoteNode.vue.d.ts +0 -21
  42. package/dist/types/components/FootnoteNode/index.d.ts +0 -2
  43. package/dist/types/components/FootnoteReferenceNode/FootnoteReferenceNode.vue.d.ts +0 -10
  44. package/dist/types/components/FootnoteReferenceNode/index.d.ts +0 -2
  45. package/dist/types/components/HardBreakNode/HardBreakNode.vue.d.ts +0 -9
  46. package/dist/types/components/HardBreakNode/index.d.ts +0 -2
  47. package/dist/types/components/HeadingNode/HeadingNode.vue.d.ts +0 -19
  48. package/dist/types/components/HeadingNode/index.d.ts +0 -2
  49. package/dist/types/components/HighlightNode/HighlightNode.vue.d.ts +0 -16
  50. package/dist/types/components/HighlightNode/index.d.ts +0 -2
  51. package/dist/types/components/HtmlBlockNode/HtmlBlockNode.vue.d.ts +0 -39
  52. package/dist/types/components/HtmlBlockNode/index.d.ts +0 -2
  53. package/dist/types/components/HtmlInlineNode/HtmlInlineNode.vue.d.ts +0 -12
  54. package/dist/types/components/HtmlInlineNode/index.d.ts +0 -2
  55. package/dist/types/components/ImageNode/ImageNode.vue.d.ts +0 -59
  56. package/dist/types/components/ImageNode/index.d.ts +0 -2
  57. package/dist/types/components/InfographicBlockNode/InfographicBlockNode.vue.d.ts +0 -46
  58. package/dist/types/components/InfographicBlockNode/index.d.ts +0 -2
  59. package/dist/types/components/InfographicBlockNode/infographic.d.ts +0 -3
  60. package/dist/types/components/InlineCodeNode/InlineCodeNode.vue.d.ts +0 -9
  61. package/dist/types/components/InlineCodeNode/index.d.ts +0 -2
  62. package/dist/types/components/InsertNode/InsertNode.vue.d.ts +0 -16
  63. package/dist/types/components/InsertNode/index.d.ts +0 -2
  64. package/dist/types/components/LinkNode/LinkNode.vue.d.ts +0 -5
  65. package/dist/types/components/LinkNode/index.d.ts +0 -2
  66. package/dist/types/components/ListItemNode/ListItemNode.vue.d.ts +0 -30
  67. package/dist/types/components/ListItemNode/index.d.ts +0 -2
  68. package/dist/types/components/ListNode/ListNode.vue.d.ts +0 -29
  69. package/dist/types/components/ListNode/index.d.ts +0 -2
  70. package/dist/types/components/MarkdownCodeBlockNode/MarkdownCodeBlockNode.vue.d.ts +0 -90
  71. package/dist/types/components/MarkdownCodeBlockNode/index.d.ts +0 -2
  72. package/dist/types/components/MathBlockNode/MathBlockNode.vue.d.ts +0 -5
  73. package/dist/types/components/MathBlockNode/index.d.ts +0 -2
  74. package/dist/types/components/MathInlineNode/MathInlineNode.vue.d.ts +0 -24
  75. package/dist/types/components/MathInlineNode/index.d.ts +0 -2
  76. package/dist/types/components/MathInlineNode/katex.d.ts +0 -7
  77. package/dist/types/components/MermaidBlockNode/MermaidBlockNode.vue.d.ts +0 -62
  78. package/dist/types/components/MermaidBlockNode/index.d.ts +0 -2
  79. package/dist/types/components/MermaidBlockNode/mermaid.d.ts +0 -6
  80. package/dist/types/components/NodeRenderer/FallbackComponent.vue.d.ts +0 -7
  81. package/dist/types/components/NodeRenderer/NodeRenderer.vue.d.ts +0 -34
  82. package/dist/types/components/NodeRenderer/asyncComponent.d.ts +0 -32
  83. package/dist/types/components/NodeRenderer/index.d.ts +0 -2
  84. package/dist/types/components/NodeRenderer/preloadMonaco.d.ts +0 -1
  85. package/dist/types/components/ParagraphNode/ParagraphNode.vue.d.ts +0 -17
  86. package/dist/types/components/ParagraphNode/index.d.ts +0 -2
  87. package/dist/types/components/PreCodeNode/PreCodeNode.vue.d.ts +0 -3
  88. package/dist/types/components/PreCodeNode/index.d.ts +0 -2
  89. package/dist/types/components/ReferenceNode/ReferenceNode.vue.d.ts +0 -19
  90. package/dist/types/components/ReferenceNode/index.d.ts +0 -2
  91. package/dist/types/components/StrikethroughNode/StrikethroughNode.vue.d.ts +0 -16
  92. package/dist/types/components/StrikethroughNode/index.d.ts +0 -2
  93. package/dist/types/components/StrongNode/StrongNode.vue.d.ts +0 -16
  94. package/dist/types/components/StrongNode/index.d.ts +0 -2
  95. package/dist/types/components/SubscriptNode/SubscriptNode.vue.d.ts +0 -16
  96. package/dist/types/components/SubscriptNode/index.d.ts +0 -2
  97. package/dist/types/components/SuperscriptNode/SuperscriptNode.vue.d.ts +0 -16
  98. package/dist/types/components/SuperscriptNode/index.d.ts +0 -2
  99. package/dist/types/components/TableNode/TableNode.vue.d.ts +0 -52
  100. package/dist/types/components/TableNode/index.d.ts +0 -2
  101. package/dist/types/components/TextNode/TextNode.vue.d.ts +0 -14
  102. package/dist/types/components/TextNode/index.d.ts +0 -2
  103. package/dist/types/components/ThematicBreakNode/ThematicBreakNode.vue.d.ts +0 -2
  104. package/dist/types/components/ThematicBreakNode/index.d.ts +0 -2
  105. package/dist/types/components/Tooltip/Tooltip.vue.d.ts +0 -15
  106. package/dist/types/components/Tooltip/index.d.ts +0 -2
  107. package/dist/types/components/VmrContainerNode/VmrContainerNode.vue.d.ts +0 -20
  108. package/dist/types/components/VmrContainerNode/index.d.ts +0 -2
  109. package/dist/types/components/__tests__/htmlNodes.integration.test.d.ts +0 -4
  110. package/dist/types/composables/rendererContext.d.ts +0 -19
  111. package/dist/types/composables/useKatexReady.d.ts +0 -1
  112. package/dist/types/composables/useSafeI18n.d.ts +0 -10
  113. package/dist/types/composables/useSingletonTooltip.d.ts +0 -11
  114. package/dist/types/composables/viewportPriority.d.ts +0 -21
  115. package/dist/types/exports.d.ts +0 -381
  116. package/dist/types/internal/heightEstimationExperiment.d.ts +0 -84
  117. package/dist/types/types/component-props.d.ts +0 -305
  118. package/dist/types/types/index.d.ts +0 -272
  119. package/dist/types/types/node-renderer-props.d.ts +0 -81
  120. package/dist/types/utils/__tests__/htmlRenderer.test.d.ts +0 -4
  121. package/dist/types/utils/htmlRenderer.d.ts +0 -20
  122. package/dist/types/utils/index.d.ts +0 -6
  123. package/dist/types/utils/katex-threshold.d.ts +0 -20
  124. package/dist/types/utils/languageIcon.d.ts +0 -8
  125. package/dist/types/utils/languageIconExtended.d.ts +0 -1
  126. package/dist/types/utils/nodeComponents.d.ts +0 -20
  127. package/dist/types/utils/performance-monitor.d.ts +0 -121
  128. package/dist/types/utils/safeRaf.d.ts +0 -2
  129. package/dist/types/workers/katexCdnWorker.d.ts +0 -52
  130. package/dist/types/workers/katexRenderer.worker.d.ts +0 -0
  131. package/dist/types/workers/katexWorkerClient.d.ts +0 -48
  132. package/dist/types/workers/mermaidCdnWorker.d.ts +0 -35
  133. package/dist/types/workers/mermaidParser.worker.d.ts +0 -1
  134. package/dist/types/workers/mermaidWorkerClient.d.ts +0 -21
@@ -1,16 +0,0 @@
1
- interface NodeChild {
2
- type: string;
3
- raw: string;
4
- [key: string]: unknown;
5
- }
6
- type __VLS_Props = {
7
- node: {
8
- type: 'emphasis';
9
- children: NodeChild[];
10
- raw: string;
11
- };
12
- customId?: string;
13
- indexKey?: number | string;
14
- };
15
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
16
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as EmphasisNode } from './EmphasisNode.vue';
2
- export default EmphasisNode;
@@ -1,9 +0,0 @@
1
- type __VLS_Props = {
2
- node: {
3
- type: 'footnote_anchor';
4
- id: string;
5
- raw?: string;
6
- };
7
- };
8
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLAnchorElement>;
9
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as FootnoteAnchorNode } from './FootnoteAnchorNode.vue';
2
- export default FootnoteAnchorNode;
@@ -1,21 +0,0 @@
1
- interface FootnoteNode {
2
- type: 'footnote';
3
- id: string;
4
- children: {
5
- type: string;
6
- raw: string;
7
- }[];
8
- raw: string;
9
- }
10
- type __VLS_Props = {
11
- node: FootnoteNode;
12
- indexKey: string | number;
13
- typewriter?: boolean;
14
- customId?: string;
15
- };
16
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
- copy: (...args: any[]) => void;
18
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
19
- onCopy?: (...args: any[]) => any;
20
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as FootnoteNode } from './FootnoteNode.vue';
2
- export default FootnoteNode;
@@ -1,10 +0,0 @@
1
- interface FootnoteReferenceNode {
2
- type: 'footnote_reference';
3
- id: string;
4
- raw: string;
5
- }
6
- type __VLS_Props = {
7
- node: FootnoteReferenceNode;
8
- };
9
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
10
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as FootnoteReferenceNode } from './FootnoteReferenceNode.vue';
2
- export default FootnoteReferenceNode;
@@ -1,9 +0,0 @@
1
- interface HardBreakNode {
2
- type: 'hardbreak';
3
- raw: string;
4
- }
5
- type __VLS_Props = {
6
- node: HardBreakNode;
7
- };
8
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLBRElement>;
9
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as HardBreakNode } from './HardBreakNode.vue';
2
- export default HardBreakNode;
@@ -1,19 +0,0 @@
1
- interface NodeChild {
2
- type: string;
3
- raw: string;
4
- [key: string]: unknown;
5
- }
6
- type __VLS_Props = {
7
- node: {
8
- type: 'heading';
9
- level: number;
10
- text: string;
11
- attrs?: Record<string, string | boolean>;
12
- children: NodeChild[];
13
- raw: string;
14
- };
15
- customId?: string;
16
- indexKey?: number | string;
17
- };
18
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _HeadingNode: any;
2
- export default _HeadingNode;
@@ -1,16 +0,0 @@
1
- interface NodeChild {
2
- type: string;
3
- raw: string;
4
- [key: string]: unknown;
5
- }
6
- type __VLS_Props = {
7
- node: {
8
- type: 'highlight';
9
- children: NodeChild[];
10
- raw: string;
11
- };
12
- customId?: string;
13
- indexKey?: number | string;
14
- };
15
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
16
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as HighlightNode } from './HighlightNode.vue';
2
- export default HighlightNode;
@@ -1,39 +0,0 @@
1
- type __VLS_Props = {
2
- node: {
3
- content: string;
4
- raw?: string;
5
- tag?: string;
6
- attrs?: [string, string][] | null;
7
- loading?: boolean;
8
- };
9
- customId?: string;
10
- };
11
- declare function __VLS_template(): {
12
- attrs: Partial<{}>;
13
- slots: {
14
- placeholder?(_: {
15
- node: {
16
- content: string;
17
- raw?: string;
18
- tag?: string;
19
- attrs?: [string, string][] | null;
20
- loading?: boolean;
21
- };
22
- }): any;
23
- };
24
- refs: {
25
- htmlRef: HTMLDivElement;
26
- };
27
- rootEl: HTMLDivElement;
28
- };
29
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
31
- htmlRef: HTMLDivElement;
32
- }, HTMLDivElement>;
33
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
- export default _default;
35
- type __VLS_WithTemplateSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };
@@ -1,2 +0,0 @@
1
- import { default as HtmlBlockNode } from './HtmlBlockNode.vue';
2
- export default HtmlBlockNode;
@@ -1,12 +0,0 @@
1
- type __VLS_Props = {
2
- node: {
3
- type: 'html_inline';
4
- tag?: string;
5
- content: string;
6
- loading?: boolean;
7
- autoClosed?: boolean;
8
- };
9
- customId?: string;
10
- };
11
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as HtmlInlineNode } from './HtmlInlineNode.vue';
2
- export default HtmlInlineNode;
@@ -1,59 +0,0 @@
1
- import { ImageNodeProps } from '../../types/component-props';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- placeholder?(_: {
6
- node: {
7
- type: "image";
8
- src: string;
9
- alt: string;
10
- title: string | null;
11
- raw: string;
12
- loading?: boolean;
13
- };
14
- displaySrc: string;
15
- imageLoaded: boolean;
16
- hasError: boolean;
17
- fallbackSrc: string;
18
- lazy: boolean;
19
- }): any;
20
- error?(_: {
21
- node: {
22
- type: "image";
23
- src: string;
24
- alt: string;
25
- title: string | null;
26
- raw: string;
27
- loading?: boolean;
28
- };
29
- displaySrc: string;
30
- imageLoaded: boolean;
31
- hasError: true;
32
- fallbackSrc: string;
33
- lazy: boolean;
34
- }): any;
35
- };
36
- refs: {};
37
- rootEl: any;
38
- };
39
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
40
- declare const __VLS_component: import('vue').DefineComponent<ImageNodeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
41
- click: (payload: [Event, string]) => any;
42
- error: (src: string) => any;
43
- load: (src: string) => any;
44
- }, string, import('vue').PublicProps, Readonly<ImageNodeProps> & Readonly<{
45
- onClick?: (payload: [Event, string]) => any;
46
- onError?: (src: string) => any;
47
- onLoad?: (src: string) => any;
48
- }>, {
49
- fallbackSrc: string;
50
- lazy: boolean;
51
- usePlaceholder: boolean;
52
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
53
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
54
- export default _default;
55
- type __VLS_WithTemplateSlots<T, S> = T & {
56
- new (): {
57
- $slots: S;
58
- };
59
- };
@@ -1,2 +0,0 @@
1
- import { default as ImageNode } from './ImageNode.vue';
2
- export default ImageNode;
@@ -1,46 +0,0 @@
1
- import { InfographicBlockNodeProps } from '../../types/component-props';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- 'header-left'?(_: {}): any;
6
- 'header-center'?(_: {}): any;
7
- 'header-right'?(_: {}): any;
8
- };
9
- refs: {
10
- viewportTarget: HTMLDivElement;
11
- infographicContainer: HTMLDivElement;
12
- modalContent: HTMLDivElement;
13
- };
14
- rootEl: HTMLDivElement;
15
- };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: import('vue').DefineComponent<InfographicBlockNodeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
- copy: (...args: any[]) => void;
19
- export: (...args: any[]) => void;
20
- openModal: (...args: any[]) => void;
21
- }, string, import('vue').PublicProps, Readonly<InfographicBlockNodeProps> & Readonly<{
22
- onCopy?: (...args: any[]) => any;
23
- onExport?: (...args: any[]) => any;
24
- onOpenModal?: (...args: any[]) => any;
25
- }>, {
26
- loading: boolean;
27
- showHeader: boolean;
28
- showCopyButton: boolean;
29
- showCollapseButton: boolean;
30
- maxHeight: string | null;
31
- showModeToggle: boolean;
32
- showExportButton: boolean;
33
- showFullscreenButton: boolean;
34
- showZoomControls: boolean;
35
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
36
- viewportTarget: HTMLDivElement;
37
- infographicContainer: HTMLDivElement;
38
- modalContent: HTMLDivElement;
39
- }, HTMLDivElement>;
40
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
- export default _default;
42
- type __VLS_WithTemplateSlots<T, S> = T & {
43
- new (): {
44
- $slots: S;
45
- };
46
- };
@@ -1,2 +0,0 @@
1
- import { default as InfographicBlockNode } from './InfographicBlockNode.vue';
2
- export default InfographicBlockNode;
@@ -1,3 +0,0 @@
1
- export type InfographicLoader = () => Promise<any> | any;
2
- export declare function setInfographicLoader(loader: InfographicLoader | null): void;
3
- export declare function getInfographic(): Promise<any>;
@@ -1,9 +0,0 @@
1
- type __VLS_Props = {
2
- node: {
3
- type: 'inline_code';
4
- code: string;
5
- raw: string;
6
- };
7
- };
8
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
9
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as InlineCodeNode } from './InlineCodeNode.vue';
2
- export default InlineCodeNode;
@@ -1,16 +0,0 @@
1
- interface NodeChild {
2
- type: string;
3
- raw: string;
4
- [key: string]: unknown;
5
- }
6
- type __VLS_Props = {
7
- node: {
8
- type: 'insert';
9
- children: NodeChild[];
10
- raw: string;
11
- };
12
- customId?: string;
13
- indexKey?: number | string;
14
- };
15
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLModElement>;
16
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as InsertNode } from './InsertNode.vue';
2
- export default InsertNode;
@@ -1,5 +0,0 @@
1
- import { LinkNodeProps } from '../../types/component-props';
2
- declare const _default: import('vue').DefineComponent<LinkNodeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LinkNodeProps> & Readonly<{}>, {
3
- showTooltip: boolean;
4
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as LinkNode } from './LinkNode.vue';
2
- export default LinkNode;
@@ -1,30 +0,0 @@
1
- interface NodeChild {
2
- type: string;
3
- raw: string;
4
- [key: string]: unknown;
5
- }
6
- interface ListItem {
7
- type: 'list_item';
8
- children: NodeChild[];
9
- raw: string;
10
- }
11
- type __VLS_Props = {
12
- /**
13
- * Preferred prop name for consistency with other node components.
14
- * `item` is kept for backward compatibility.
15
- */
16
- node?: ListItem;
17
- item?: ListItem;
18
- indexKey?: number | string;
19
- value?: number;
20
- customId?: string;
21
- /** Forwarded flag to enable/disable non-code node enter transition */
22
- typewriter?: boolean;
23
- showTooltips?: boolean;
24
- };
25
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
- copy: (text: string) => any;
27
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
28
- onCopy?: (text: string) => any;
29
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLLIElement>;
30
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as ListItemNode } from './ListItemNode.vue';
2
- export default ListItemNode;
@@ -1,29 +0,0 @@
1
- interface NodeChild {
2
- type: string;
3
- raw: string;
4
- [key: string]: unknown;
5
- }
6
- interface ListItem {
7
- type: 'list_item';
8
- children: NodeChild[];
9
- raw: string;
10
- }
11
- type __VLS_Props = {
12
- node: {
13
- type: 'list';
14
- ordered: boolean;
15
- start?: number;
16
- items: ListItem[];
17
- raw: string;
18
- };
19
- customId?: string;
20
- indexKey?: number | string;
21
- typewriter?: boolean;
22
- showTooltips?: boolean;
23
- };
24
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
- copy: (...args: any[]) => void;
26
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
27
- onCopy?: (...args: any[]) => any;
28
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as ListNode } from './ListNode.vue';
2
- export default ListNode;
@@ -1,90 +0,0 @@
1
- type __VLS_Props = {
2
- node: {
3
- type: 'code_block';
4
- language: string;
5
- code: string;
6
- raw: string;
7
- diff?: boolean;
8
- originalCode?: string;
9
- updatedCode?: string;
10
- };
11
- loading?: boolean;
12
- /**
13
- * If true, update and render code content as it streams in.
14
- * If false, keep a lightweight loading state and create the editor only when loading becomes false.
15
- */
16
- stream?: boolean;
17
- darkTheme?: string;
18
- lightTheme?: string;
19
- isDark?: boolean;
20
- isShowPreview?: boolean;
21
- enableFontSizeControl?: boolean;
22
- /** Minimum width for the code block container (px or CSS unit string) */
23
- minWidth?: string | number;
24
- /** Maximum width for the code block container (px or CSS unit string) */
25
- maxWidth?: string | number;
26
- themes?: string[];
27
- /** Header visibility and controls */
28
- showHeader?: boolean;
29
- showCopyButton?: boolean;
30
- showExpandButton?: boolean;
31
- showPreviewButton?: boolean;
32
- showCollapseButton?: boolean;
33
- showFontSizeButtons?: boolean;
34
- /** Toggle singleton tooltips for header action buttons */
35
- showTooltips?: boolean;
36
- estimatedHeightPx?: number;
37
- estimatedContentHeightPx?: number;
38
- };
39
- declare function __VLS_template(): {
40
- attrs: Partial<{}>;
41
- slots: {
42
- 'header-left'?(_: {}): any;
43
- 'header-right'?(_: {}): any;
44
- loading?(_: {
45
- loading: boolean;
46
- stream: boolean;
47
- }): any;
48
- };
49
- refs: {
50
- container: HTMLDivElement;
51
- codeBlockContent: HTMLDivElement;
52
- rendererTarget: HTMLDivElement;
53
- };
54
- rootEl: HTMLDivElement;
55
- };
56
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
57
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
58
- copy: (...args: any[]) => void;
59
- previewCode: (...args: any[]) => void;
60
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
61
- onCopy?: (...args: any[]) => any;
62
- onPreviewCode?: (...args: any[]) => any;
63
- }>, {
64
- isDark: boolean;
65
- loading: boolean;
66
- stream: boolean;
67
- darkTheme: string;
68
- lightTheme: string;
69
- isShowPreview: boolean;
70
- enableFontSizeControl: boolean;
71
- minWidth: string | number;
72
- maxWidth: string | number;
73
- showHeader: boolean;
74
- showCopyButton: boolean;
75
- showExpandButton: boolean;
76
- showPreviewButton: boolean;
77
- showCollapseButton: boolean;
78
- showFontSizeButtons: boolean;
79
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
80
- container: HTMLDivElement;
81
- codeBlockContent: HTMLDivElement;
82
- rendererTarget: HTMLDivElement;
83
- }, HTMLDivElement>;
84
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
85
- export default _default;
86
- type __VLS_WithTemplateSlots<T, S> = T & {
87
- new (): {
88
- $slots: S;
89
- };
90
- };
@@ -1,2 +0,0 @@
1
- import { default as MarkdownCodeBlockNode } from './MarkdownCodeBlockNode.vue';
2
- export default MarkdownCodeBlockNode;
@@ -1,5 +0,0 @@
1
- import { MathBlockNodeProps } from '../../types/component-props';
2
- declare const _default: import('vue').DefineComponent<MathBlockNodeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MathBlockNodeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
3
- containerEl: HTMLDivElement;
4
- }, HTMLDivElement>;
5
- export default _default;
@@ -1,2 +0,0 @@
1
- import { default as MathBlockNode } from './MathBlockNode.vue';
2
- export default MathBlockNode;
@@ -1,24 +0,0 @@
1
- import { MathInlineNodeProps } from '../../types/component-props';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- loading?(_: {
6
- isLoading: true;
7
- }): any;
8
- };
9
- refs: {
10
- containerEl: HTMLSpanElement;
11
- };
12
- rootEl: HTMLSpanElement;
13
- };
14
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
- declare const __VLS_component: import('vue').DefineComponent<MathInlineNodeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MathInlineNodeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
16
- containerEl: HTMLSpanElement;
17
- }, HTMLSpanElement>;
18
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
- export default _default;
20
- type __VLS_WithTemplateSlots<T, S> = T & {
21
- new (): {
22
- $slots: S;
23
- };
24
- };
@@ -1,2 +0,0 @@
1
- import { default as MathInlineNode } from './MathInlineNode.vue';
2
- export default MathInlineNode;
@@ -1,7 +0,0 @@
1
- export type KatexLoader = () => Promise<any> | any;
2
- export declare function setKatexLoader(loader: KatexLoader | null): void;
3
- export declare function enableKatex(loader?: KatexLoader): void;
4
- export declare function disableKatex(): void;
5
- export declare function isKatexEnabled(): boolean;
6
- export declare function getKatexSync(): any;
7
- export declare function getKatex(): Promise<any>;
@@ -1,62 +0,0 @@
1
- import { MermaidBlockNodeProps } from '../../types/component-props';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- 'header-left'?(_: {}): any;
6
- 'header-center'?(_: {}): any;
7
- 'header-right'?(_: {}): any;
8
- };
9
- refs: {
10
- modeContainerRef: HTMLDivElement;
11
- mermaidContainer: HTMLDivElement;
12
- mermaidContent: HTMLDivElement;
13
- modalContent: HTMLDivElement;
14
- };
15
- rootEl: HTMLDivElement;
16
- };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: import('vue').DefineComponent<MermaidBlockNodeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- copy: (...args: any[]) => void;
20
- export: (...args: any[]) => void;
21
- openModal: (...args: any[]) => void;
22
- toggleMode: (...args: any[]) => void;
23
- }, string, import('vue').PublicProps, Readonly<MermaidBlockNodeProps> & Readonly<{
24
- onCopy?: (...args: any[]) => any;
25
- onExport?: (...args: any[]) => any;
26
- onOpenModal?: (...args: any[]) => any;
27
- onToggleMode?: (...args: any[]) => any;
28
- }>, {
29
- loading: boolean;
30
- showHeader: boolean;
31
- showCopyButton: boolean;
32
- showCollapseButton: boolean;
33
- showTooltips: boolean;
34
- maxHeight: string | null;
35
- workerTimeoutMs: number;
36
- parseTimeoutMs: number;
37
- renderTimeoutMs: number;
38
- fullRenderTimeoutMs: number;
39
- renderDebounceMs: number;
40
- contentStableDelayMs: number;
41
- previewPollDelayMs: number;
42
- previewPollMaxDelayMs: number;
43
- previewPollMaxAttempts: number;
44
- showModeToggle: boolean;
45
- showExportButton: boolean;
46
- showFullscreenButton: boolean;
47
- showZoomControls: boolean;
48
- enableWheelZoom: boolean;
49
- isStrict: boolean;
50
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
51
- modeContainerRef: HTMLDivElement;
52
- mermaidContainer: HTMLDivElement;
53
- mermaidContent: HTMLDivElement;
54
- modalContent: HTMLDivElement;
55
- }, HTMLDivElement>;
56
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
57
- export default _default;
58
- type __VLS_WithTemplateSlots<T, S> = T & {
59
- new (): {
60
- $slots: S;
61
- };
62
- };
@@ -1,2 +0,0 @@
1
- import { default as MermaidBlockNode } from './MermaidBlockNode.vue';
2
- export default MermaidBlockNode;