markstream-vue2 0.0.26 → 0.0.28

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 (139) hide show
  1. package/README.md +8 -0
  2. package/dist/chunks/{cssMode-2e2be6eb.cjs → cssMode-86e8d6e4.cjs} +1 -1
  3. package/dist/chunks/{htmlMode-b62439a8.cjs → htmlMode-f84c7583.cjs} +1 -1
  4. package/dist/chunks/index.legacy-70f0e155.cjs +1 -0
  5. package/dist/chunks/{jsonMode-bb4aa400.cjs → jsonMode-e60229b9.cjs} +1 -1
  6. package/dist/chunks/{tsMode-1535ecd2.cjs → tsMode-5b9a0ba1.cjs} +1 -1
  7. package/dist/index.cjs +1 -1
  8. package/dist/index.css +1 -1
  9. package/dist/index.d.ts +65 -2328
  10. package/dist/index.js +515 -75
  11. package/dist/index.px.css +1 -1
  12. package/dist/index.tailwind.css +1 -1
  13. package/dist/tailwind.ts +1 -1
  14. package/dist/types/components/AdmonitionNode/AdmonitionNode.vue.d.ts +33 -0
  15. package/dist/types/components/AdmonitionNode/index.d.ts +2 -0
  16. package/dist/types/components/BlockquoteNode/BlockquoteNode.vue.d.ts +28 -0
  17. package/dist/types/components/BlockquoteNode/index.d.ts +2 -0
  18. package/dist/types/components/CheckboxNode/CheckboxNode.vue.d.ts +18 -0
  19. package/dist/types/components/CheckboxNode/index.d.ts +2 -0
  20. package/dist/types/components/CodeBlockNode/CodeBlockNode.vue.d.ts +210 -0
  21. package/dist/types/components/CodeBlockNode/HtmlPreviewFrame.vue.d.ts +17 -0
  22. package/dist/types/components/CodeBlockNode/index.d.ts +2 -0
  23. package/dist/types/components/CodeBlockNode/monaco.d.ts +1 -0
  24. package/dist/types/components/CodeBlockNode/monacoThemeScheduler.d.ts +3 -0
  25. package/dist/types/components/D2BlockNode/D2BlockNode.vue.d.ts +66 -0
  26. package/dist/types/components/D2BlockNode/d2.d.ts +6 -0
  27. package/dist/types/components/D2BlockNode/index.d.ts +2 -0
  28. package/dist/types/components/DefinitionListNode/DefinitionListNode.vue.d.ts +36 -0
  29. package/dist/types/components/DefinitionListNode/index.d.ts +2 -0
  30. package/dist/types/components/EmojiNode/EmojiNode.vue.d.ts +19 -0
  31. package/dist/types/components/EmojiNode/index.d.ts +2 -0
  32. package/dist/types/components/EmphasisNode/EmphasisNode.vue.d.ts +25 -0
  33. package/dist/types/components/EmphasisNode/index.d.ts +2 -0
  34. package/dist/types/components/FootnoteAnchorNode/FootnoteAnchorNode.vue.d.ts +18 -0
  35. package/dist/types/components/FootnoteAnchorNode/index.d.ts +2 -0
  36. package/dist/types/components/FootnoteNode/FootnoteNode.vue.d.ts +28 -0
  37. package/dist/types/components/FootnoteNode/index.d.ts +2 -0
  38. package/dist/types/components/FootnoteReferenceNode/FootnoteReferenceNode.vue.d.ts +19 -0
  39. package/dist/types/components/FootnoteReferenceNode/index.d.ts +2 -0
  40. package/dist/types/components/HardBreakNode/HardBreakNode.vue.d.ts +18 -0
  41. package/dist/types/components/HardBreakNode/index.d.ts +2 -0
  42. package/dist/types/components/HeadingNode/HeadingNode.vue.d.ts +28 -0
  43. package/dist/types/components/HeadingNode/index.d.ts +2 -0
  44. package/dist/types/components/HighlightNode/HighlightNode.vue.d.ts +25 -0
  45. package/dist/types/components/HighlightNode/index.d.ts +2 -0
  46. package/dist/types/components/HtmlBlockNode/HtmlBlockNode.vue.d.ts +42 -0
  47. package/dist/types/components/HtmlBlockNode/index.d.ts +2 -0
  48. package/dist/types/components/HtmlInlineNode/HtmlInlineNode.vue.d.ts +21 -0
  49. package/dist/types/components/HtmlInlineNode/index.d.ts +2 -0
  50. package/dist/types/components/ImageNode/ImageNode.vue.d.ts +104 -0
  51. package/dist/types/components/ImageNode/index.d.ts +2 -0
  52. package/dist/types/components/InfographicBlockNode/InfographicBlockNode.vue.d.ts +86 -0
  53. package/dist/types/components/InfographicBlockNode/index.d.ts +2 -0
  54. package/dist/types/components/InfographicBlockNode/infographic.d.ts +1 -0
  55. package/dist/types/components/InlineCodeNode/InlineCodeNode.vue.d.ts +18 -0
  56. package/dist/types/components/InlineCodeNode/index.d.ts +2 -0
  57. package/dist/types/components/InsertNode/InsertNode.vue.d.ts +25 -0
  58. package/dist/types/components/InsertNode/index.d.ts +2 -0
  59. package/dist/types/components/LinkNode/LinkNode.vue.d.ts +49 -0
  60. package/dist/types/components/LinkNode/index.d.ts +2 -0
  61. package/dist/types/components/ListItemNode/ListItemNode.vue.d.ts +30 -0
  62. package/dist/types/components/ListItemNode/index.d.ts +2 -0
  63. package/dist/types/components/ListNode/ListNode.vue.d.ts +36 -0
  64. package/dist/types/components/ListNode/index.d.ts +2 -0
  65. package/dist/types/components/MarkdownCodeBlockNode/MarkdownCodeBlockNode.vue.d.ts +193 -0
  66. package/dist/types/components/MarkdownCodeBlockNode/index.d.ts +2 -0
  67. package/dist/types/components/MarkdownRenderCompat.vue.d.ts +94 -0
  68. package/dist/types/components/MathBlockNode/MathBlockNode.vue.d.ts +20 -0
  69. package/dist/types/components/MathBlockNode/index.d.ts +2 -0
  70. package/dist/types/components/MathInlineNode/MathInlineNode.vue.d.ts +40 -0
  71. package/dist/types/components/MathInlineNode/index.d.ts +2 -0
  72. package/dist/types/components/MathInlineNode/katex.d.ts +6 -0
  73. package/dist/types/components/MermaidBlockNode/MermaidBlockNode.vue.d.ts +134 -0
  74. package/dist/types/components/MermaidBlockNode/index.d.ts +2 -0
  75. package/dist/types/components/MermaidBlockNode/mermaid.d.ts +6 -0
  76. package/dist/types/components/NestedRenderer/NestedRenderer.vue.d.ts +30 -0
  77. package/dist/types/components/NestedRenderer/index.d.ts +2 -0
  78. package/dist/types/components/NodeRenderer/FallbackComponent.vue.d.ts +16 -0
  79. package/dist/types/components/NodeRenderer/LegacyNodesRenderer.vue.d.ts +53 -0
  80. package/dist/types/components/NodeRenderer/NodeRenderer.vue.d.ts +139 -0
  81. package/dist/types/components/NodeRenderer/asyncComponent.d.ts +2 -0
  82. package/dist/types/components/NodeRenderer/index.d.ts +2 -0
  83. package/dist/types/components/NodeRenderer/preloadMonaco.d.ts +1 -0
  84. package/dist/types/components/ParagraphNode/ParagraphNode.vue.d.ts +25 -0
  85. package/dist/types/components/ParagraphNode/index.d.ts +2 -0
  86. package/dist/types/components/Portal/Portal.vue.d.ts +31 -0
  87. package/dist/types/components/Portal/index.d.ts +2 -0
  88. package/dist/types/components/PreCodeNode/PreCodeNode.vue.d.ts +14 -0
  89. package/dist/types/components/PreCodeNode/index.d.ts +2 -0
  90. package/dist/types/components/ReferenceNode/ReferenceNode.vue.d.ts +24 -0
  91. package/dist/types/components/ReferenceNode/index.d.ts +2 -0
  92. package/dist/types/components/StrikethroughNode/StrikethroughNode.vue.d.ts +25 -0
  93. package/dist/types/components/StrikethroughNode/index.d.ts +2 -0
  94. package/dist/types/components/StrongNode/StrongNode.vue.d.ts +25 -0
  95. package/dist/types/components/StrongNode/index.d.ts +2 -0
  96. package/dist/types/components/SubscriptNode/SubscriptNode.vue.d.ts +25 -0
  97. package/dist/types/components/SubscriptNode/index.d.ts +2 -0
  98. package/dist/types/components/SuperscriptNode/SuperscriptNode.vue.d.ts +25 -0
  99. package/dist/types/components/SuperscriptNode/index.d.ts +2 -0
  100. package/dist/types/components/TableNode/TableNode.vue.d.ts +59 -0
  101. package/dist/types/components/TableNode/index.d.ts +2 -0
  102. package/dist/types/components/TextNode/TextNode.vue.d.ts +21 -0
  103. package/dist/types/components/TextNode/index.d.ts +2 -0
  104. package/dist/types/components/TextNode/streamingTextState.d.ts +11 -0
  105. package/dist/types/components/ThematicBreakNode/ThematicBreakNode.vue.d.ts +2 -0
  106. package/dist/types/components/ThematicBreakNode/index.d.ts +2 -0
  107. package/dist/types/components/Tooltip/Tooltip.vue.d.ts +22 -0
  108. package/dist/types/components/Tooltip/index.d.ts +2 -0
  109. package/dist/types/components/VmrContainerNode/VmrContainerNode.vue.d.ts +28 -0
  110. package/dist/types/components/VmrContainerNode/index.d.ts +2 -0
  111. package/dist/types/composables/useKatexReady.d.ts +1 -0
  112. package/dist/types/composables/useSafeI18n.d.ts +10 -0
  113. package/dist/types/composables/useSingletonTooltip.d.ts +14 -0
  114. package/dist/types/composables/viewportPriority.d.ts +20 -0
  115. package/dist/types/exports.d.ts +70 -0
  116. package/dist/types/index.d.ts +2 -0
  117. package/dist/types/tailwind-entry.d.ts +2 -0
  118. package/dist/types/types/component-props.d.ts +210 -0
  119. package/dist/types/types/index.d.ts +271 -0
  120. package/dist/types/utils/htmlRenderer.d.ts +43 -0
  121. package/dist/types/utils/index.d.ts +5 -0
  122. package/dist/types/utils/katex-threshold.d.ts +20 -0
  123. package/dist/types/utils/languageIcon.d.ts +8 -0
  124. package/dist/types/utils/languageIconExtended.d.ts +1 -0
  125. package/dist/types/utils/mathRenderCache.d.ts +7 -0
  126. package/dist/types/utils/nestedHtml.d.ts +19 -0
  127. package/dist/types/utils/nestedNodes.d.ts +14 -0
  128. package/dist/types/utils/nodeComponents.d.ts +20 -0
  129. package/dist/types/utils/performance-monitor.d.ts +121 -0
  130. package/dist/types/utils/safeRaf.d.ts +2 -0
  131. package/dist/types/utils/vue26.d.ts +8 -0
  132. package/dist/types/workers/katexCdnWorker.d.ts +52 -0
  133. package/dist/types/workers/katexRenderer.worker.d.ts +0 -0
  134. package/dist/types/workers/katexWorkerClient.d.ts +48 -0
  135. package/dist/types/workers/mermaidCdnWorker.d.ts +35 -0
  136. package/dist/types/workers/mermaidParser.worker.d.ts +1 -0
  137. package/dist/types/workers/mermaidWorkerClient.d.ts +21 -0
  138. package/package.json +2 -2
  139. package/dist/chunks/index.legacy-bcde4164.cjs +0 -1
@@ -0,0 +1,25 @@
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-demi').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import('../../../vue-demi').ComponentOptionsMixin, import('../../../vue-demi').ComponentOptionsMixin, {}, string, Readonly<import('../../../vue-demi').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToOption<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('../../../vue-demi').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('../../../vue-demi').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
@@ -0,0 +1,2 @@
1
+ import { default as HighlightNode } from './HighlightNode.vue';
2
+ export default HighlightNode;
@@ -0,0 +1,42 @@
1
+ type __VLS_Props = {
2
+ node: {
3
+ content: string;
4
+ attrs?: [string, string][] | null;
5
+ loading?: boolean;
6
+ };
7
+ customId?: string;
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ placeholder?(_: {
13
+ node: {
14
+ content: string;
15
+ attrs?: [string, string][] | null;
16
+ loading?: boolean;
17
+ };
18
+ }): any;
19
+ };
20
+ refs: {
21
+ htmlRef: HTMLDivElement;
22
+ };
23
+ rootEl: HTMLDivElement;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('vue-demi').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import('vue-demi').ComponentOptionsMixin, import('vue-demi').ComponentOptionsMixin, {}, string, Readonly<import('vue-demi').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
30
+ type __VLS_TypePropsToOption<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
32
+ type: import('../../../vue-demi').PropType<__VLS_NonUndefinedable<T[K]>>;
33
+ } : {
34
+ type: import('../../../vue-demi').PropType<T[K]>;
35
+ required: true;
36
+ };
37
+ };
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $scopedSlots: S;
41
+ };
42
+ };
@@ -0,0 +1,2 @@
1
+ import { default as HtmlBlockNode } from './HtmlBlockNode.vue';
2
+ export default HtmlBlockNode;
@@ -0,0 +1,21 @@
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-demi').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import('vue-demi').ComponentOptionsMixin, import('vue-demi').ComponentOptionsMixin, {}, string, Readonly<import('vue-demi').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
12
+ export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToOption<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('../../../vue-demi').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('../../../vue-demi').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
@@ -0,0 +1,2 @@
1
+ import { default as HtmlInlineNode } from './HtmlInlineNode.vue';
2
+ export default HtmlInlineNode;
@@ -0,0 +1,104 @@
1
+ interface ImageNodeProps {
2
+ node: {
3
+ type: 'image';
4
+ src: string;
5
+ alt: string;
6
+ title: string | null;
7
+ raw: string;
8
+ loading?: boolean;
9
+ };
10
+ fallbackSrc?: string;
11
+ showCaption?: boolean;
12
+ lazy?: boolean;
13
+ svgMinHeight?: string;
14
+ usePlaceholder?: boolean;
15
+ }
16
+ declare function __VLS_template(): {
17
+ attrs: Partial<{}>;
18
+ slots: {
19
+ placeholder?(_: {
20
+ node: {
21
+ type: "image";
22
+ src: string;
23
+ alt: string;
24
+ title: string | null;
25
+ raw: string;
26
+ loading?: boolean;
27
+ };
28
+ displaySrc: string;
29
+ imageLoaded: boolean;
30
+ hasError: boolean;
31
+ fallbackSrc: string;
32
+ lazy: boolean;
33
+ isSvg: boolean;
34
+ }): any;
35
+ error?(_: {
36
+ node: {
37
+ type: "image";
38
+ src: string;
39
+ alt: string;
40
+ title: string | null;
41
+ raw: string;
42
+ loading?: boolean;
43
+ };
44
+ displaySrc: string;
45
+ imageLoaded: boolean;
46
+ hasError: true;
47
+ fallbackSrc: string;
48
+ lazy: boolean;
49
+ isSvg: boolean;
50
+ }): any;
51
+ };
52
+ refs: {
53
+ figureRef: HTMLElement;
54
+ };
55
+ rootEl: HTMLElement;
56
+ };
57
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
58
+ declare const __VLS_component: import('vue-demi').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ImageNodeProps>, {
59
+ fallbackSrc: string;
60
+ showCaption: boolean;
61
+ lazy: boolean;
62
+ svgMinHeight: string;
63
+ usePlaceholder: boolean;
64
+ }>, {}, {}, {}, {}, import('vue-demi').ComponentOptionsMixin, import('vue-demi').ComponentOptionsMixin, {
65
+ load: (src: string) => void;
66
+ error: (src: string) => void;
67
+ click: (payload: [Event, string]) => void;
68
+ }, string, Readonly<import('vue-demi').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ImageNodeProps>, {
69
+ fallbackSrc: string;
70
+ showCaption: boolean;
71
+ lazy: boolean;
72
+ svgMinHeight: string;
73
+ usePlaceholder: boolean;
74
+ }>>>, {
75
+ fallbackSrc: string;
76
+ showCaption: boolean;
77
+ lazy: boolean;
78
+ svgMinHeight: string;
79
+ usePlaceholder: boolean;
80
+ }>;
81
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
82
+ export default _default;
83
+ type __VLS_WithDefaults<P, D> = {
84
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
85
+ default: D[K];
86
+ }> : P[K];
87
+ };
88
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
89
+ type __VLS_TypePropsToOption<T> = {
90
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
91
+ type: import('../../../vue-demi').PropType<__VLS_NonUndefinedable<T[K]>>;
92
+ } : {
93
+ type: import('../../../vue-demi').PropType<T[K]>;
94
+ required: true;
95
+ };
96
+ };
97
+ type __VLS_WithTemplateSlots<T, S> = T & {
98
+ new (): {
99
+ $scopedSlots: S;
100
+ };
101
+ };
102
+ type __VLS_PrettifyLocal<T> = {
103
+ [K in keyof T]: T[K];
104
+ } & {};
@@ -0,0 +1,2 @@
1
+ import { default as ImageNode } from './ImageNode.vue';
2
+ export default ImageNode;
@@ -0,0 +1,86 @@
1
+ interface InfographicBlockNodeProps {
2
+ node: any;
3
+ maxHeight?: string | null;
4
+ loading?: boolean;
5
+ isDark?: boolean;
6
+ showHeader?: boolean;
7
+ showModeToggle?: boolean;
8
+ showCopyButton?: boolean;
9
+ showExportButton?: boolean;
10
+ showFullscreenButton?: boolean;
11
+ showCollapseButton?: boolean;
12
+ showZoomControls?: boolean;
13
+ }
14
+ declare function __VLS_template(): {
15
+ attrs: Partial<{}>;
16
+ slots: {
17
+ 'header-left'?(_: {}): any;
18
+ 'header-center'?(_: {}): any;
19
+ 'header-right'?(_: {}): any;
20
+ };
21
+ refs: {
22
+ infographicContainer: HTMLDivElement;
23
+ modalContent: HTMLDivElement;
24
+ };
25
+ rootEl: HTMLDivElement;
26
+ };
27
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
28
+ declare const __VLS_component: import('vue-demi').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<InfographicBlockNodeProps>, {
29
+ maxHeight: string;
30
+ loading: boolean;
31
+ showHeader: boolean;
32
+ showCopyButton: boolean;
33
+ showCollapseButton: boolean;
34
+ showModeToggle: boolean;
35
+ showExportButton: boolean;
36
+ showFullscreenButton: boolean;
37
+ showZoomControls: boolean;
38
+ }>, {}, {}, {}, {}, import('vue-demi').ComponentOptionsMixin, import('vue-demi').ComponentOptionsMixin, {
39
+ copy: (...args: any[]) => void;
40
+ export: (...args: any[]) => void;
41
+ openModal: (...args: any[]) => void;
42
+ }, string, Readonly<import('vue-demi').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<InfographicBlockNodeProps>, {
43
+ maxHeight: string;
44
+ loading: boolean;
45
+ showHeader: boolean;
46
+ showCopyButton: boolean;
47
+ showCollapseButton: boolean;
48
+ showModeToggle: boolean;
49
+ showExportButton: boolean;
50
+ showFullscreenButton: boolean;
51
+ showZoomControls: boolean;
52
+ }>>>, {
53
+ loading: boolean;
54
+ maxHeight: string | null;
55
+ showHeader: boolean;
56
+ showModeToggle: boolean;
57
+ showCopyButton: boolean;
58
+ showExportButton: boolean;
59
+ showFullscreenButton: boolean;
60
+ showCollapseButton: boolean;
61
+ showZoomControls: boolean;
62
+ }>;
63
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
64
+ export default _default;
65
+ type __VLS_WithDefaults<P, D> = {
66
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
67
+ default: D[K];
68
+ }> : P[K];
69
+ };
70
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
71
+ type __VLS_TypePropsToOption<T> = {
72
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
73
+ type: import('../../../vue-demi').PropType<__VLS_NonUndefinedable<T[K]>>;
74
+ } : {
75
+ type: import('../../../vue-demi').PropType<T[K]>;
76
+ required: true;
77
+ };
78
+ };
79
+ type __VLS_WithTemplateSlots<T, S> = T & {
80
+ new (): {
81
+ $scopedSlots: S;
82
+ };
83
+ };
84
+ type __VLS_PrettifyLocal<T> = {
85
+ [K in keyof T]: T[K];
86
+ } & {};
@@ -0,0 +1,2 @@
1
+ import { default as InfographicBlockNode } from './InfographicBlockNode.vue';
2
+ export default InfographicBlockNode;
@@ -0,0 +1 @@
1
+ export declare function getInfographic(): Promise<any>;
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ node: {
3
+ type: 'inline_code';
4
+ code: string;
5
+ raw: string;
6
+ };
7
+ };
8
+ declare const _default: import('vue-demi').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import('vue-demi').ComponentOptionsMixin, import('vue-demi').ComponentOptionsMixin, {}, string, Readonly<import('vue-demi').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
9
+ export default _default;
10
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ type __VLS_TypePropsToOption<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('../../../vue-demi').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('../../../vue-demi').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
@@ -0,0 +1,2 @@
1
+ import { default as InlineCodeNode } from './InlineCodeNode.vue';
2
+ export default InlineCodeNode;
@@ -0,0 +1,25 @@
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-demi').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import('../../../vue-demi').ComponentOptionsMixin, import('../../../vue-demi').ComponentOptionsMixin, {}, string, Readonly<import('../../../vue-demi').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToOption<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('../../../vue-demi').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('../../../vue-demi').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
@@ -0,0 +1,2 @@
1
+ import { default as InsertNode } from './InsertNode.vue';
2
+ export default InsertNode;
@@ -0,0 +1,49 @@
1
+ interface LinkNodeProps {
2
+ node: {
3
+ type: 'link';
4
+ href: string;
5
+ title: string | null;
6
+ text: string;
7
+ children: {
8
+ type: string;
9
+ raw: string;
10
+ }[];
11
+ raw: string;
12
+ loading?: boolean;
13
+ };
14
+ indexKey: number | string;
15
+ customId?: string;
16
+ showTooltip?: boolean;
17
+ color?: string;
18
+ underlineHeight?: number;
19
+ underlineBottom?: number | string;
20
+ animationDuration?: number;
21
+ animationOpacity?: number;
22
+ animationTiming?: string;
23
+ animationIteration?: string | number;
24
+ }
25
+ declare const _default: import('vue-demi').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkNodeProps>, {
26
+ showTooltip: boolean;
27
+ }>, {}, {}, {}, {}, import('vue-demi').ComponentOptionsMixin, import('vue-demi').ComponentOptionsMixin, {}, string, Readonly<import('vue-demi').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkNodeProps>, {
28
+ showTooltip: boolean;
29
+ }>>>, {
30
+ showTooltip: boolean;
31
+ }>;
32
+ export default _default;
33
+ type __VLS_WithDefaults<P, D> = {
34
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
35
+ default: D[K];
36
+ }> : P[K];
37
+ };
38
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
39
+ type __VLS_TypePropsToOption<T> = {
40
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
41
+ type: import('../../../vue-demi').PropType<__VLS_NonUndefinedable<T[K]>>;
42
+ } : {
43
+ type: import('../../../vue-demi').PropType<T[K]>;
44
+ required: true;
45
+ };
46
+ };
47
+ type __VLS_PrettifyLocal<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
@@ -0,0 +1,2 @@
1
+ import { default as LinkNode } from './LinkNode.vue';
2
+ export default LinkNode;
@@ -0,0 +1,30 @@
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?: ListItem;
13
+ item?: ListItem;
14
+ indexKey?: number | string;
15
+ value?: number;
16
+ customId?: string;
17
+ typewriter?: boolean;
18
+ showTooltips?: boolean;
19
+ };
20
+ declare const _default: import('vue-demi').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import('vue-demi').ComponentOptionsMixin, import('vue-demi').ComponentOptionsMixin, {}, string, Readonly<import('vue-demi').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
21
+ export default _default;
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToOption<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('../../../vue-demi').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('../../../vue-demi').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
@@ -0,0 +1,2 @@
1
+ import { default as ListItemNode } from './ListItemNode.vue';
2
+ export default ListItemNode;
@@ -0,0 +1,36 @@
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-demi').DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import('vue-demi').ComponentOptionsMixin, import('vue-demi').ComponentOptionsMixin, {
25
+ copy: (...args: any[]) => void;
26
+ }, string, Readonly<import('vue-demi').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
27
+ export default _default;
28
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
+ type __VLS_TypePropsToOption<T> = {
30
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
31
+ type: import('../../../vue-demi').PropType<__VLS_NonUndefinedable<T[K]>>;
32
+ } : {
33
+ type: import('../../../vue-demi').PropType<T[K]>;
34
+ required: true;
35
+ };
36
+ };
@@ -0,0 +1,2 @@
1
+ import { default as ListNode } from './ListNode.vue';
2
+ export default ListNode;
@@ -0,0 +1,193 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ 'header-left'?(_: {}): any;
5
+ 'header-right'?(_: {}): any;
6
+ loading?(_: {
7
+ loading: boolean;
8
+ stream: boolean;
9
+ }): any;
10
+ };
11
+ refs: {
12
+ container: HTMLDivElement;
13
+ codeBlockContent: HTMLDivElement;
14
+ rendererTarget: HTMLDivElement;
15
+ };
16
+ rootEl: HTMLDivElement;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue-demi').DefineComponent<{
20
+ node: {
21
+ type: ObjectConstructor;
22
+ required: true;
23
+ };
24
+ loading: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ stream: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ darkTheme: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ lightTheme: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ isDark: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ isShowPreview: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ enableFontSizeControl: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ minWidth: {
53
+ type: (NumberConstructor | StringConstructor)[];
54
+ default: any;
55
+ };
56
+ maxWidth: {
57
+ type: (NumberConstructor | StringConstructor)[];
58
+ default: any;
59
+ };
60
+ themes: {
61
+ type: ArrayConstructor;
62
+ default: any;
63
+ };
64
+ showHeader: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ showCopyButton: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ showExpandButton: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ showPreviewButton: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ showCollapseButton: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ showFontSizeButtons: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ showTooltips: {
89
+ type: BooleanConstructor;
90
+ default: any;
91
+ };
92
+ }, {}, {}, {}, {}, import('vue-demi').ComponentOptionsMixin, import('vue-demi').ComponentOptionsMixin, {
93
+ copy: (...args: any[]) => void;
94
+ previewCode: (...args: any[]) => void;
95
+ }, string, Readonly<import('vue-demi').ExtractPropTypes<{
96
+ node: {
97
+ type: ObjectConstructor;
98
+ required: true;
99
+ };
100
+ loading: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ stream: {
105
+ type: BooleanConstructor;
106
+ default: boolean;
107
+ };
108
+ darkTheme: {
109
+ type: StringConstructor;
110
+ default: string;
111
+ };
112
+ lightTheme: {
113
+ type: StringConstructor;
114
+ default: string;
115
+ };
116
+ isDark: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ isShowPreview: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
124
+ enableFontSizeControl: {
125
+ type: BooleanConstructor;
126
+ default: boolean;
127
+ };
128
+ minWidth: {
129
+ type: (NumberConstructor | StringConstructor)[];
130
+ default: any;
131
+ };
132
+ maxWidth: {
133
+ type: (NumberConstructor | StringConstructor)[];
134
+ default: any;
135
+ };
136
+ themes: {
137
+ type: ArrayConstructor;
138
+ default: any;
139
+ };
140
+ showHeader: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
144
+ showCopyButton: {
145
+ type: BooleanConstructor;
146
+ default: boolean;
147
+ };
148
+ showExpandButton: {
149
+ type: BooleanConstructor;
150
+ default: boolean;
151
+ };
152
+ showPreviewButton: {
153
+ type: BooleanConstructor;
154
+ default: boolean;
155
+ };
156
+ showCollapseButton: {
157
+ type: BooleanConstructor;
158
+ default: boolean;
159
+ };
160
+ showFontSizeButtons: {
161
+ type: BooleanConstructor;
162
+ default: boolean;
163
+ };
164
+ showTooltips: {
165
+ type: BooleanConstructor;
166
+ default: any;
167
+ };
168
+ }>>, {
169
+ themes: unknown[];
170
+ showTooltips: boolean;
171
+ isDark: boolean;
172
+ loading: boolean;
173
+ showHeader: boolean;
174
+ showCopyButton: boolean;
175
+ showCollapseButton: boolean;
176
+ maxWidth: string | number;
177
+ minWidth: string | number;
178
+ stream: boolean;
179
+ darkTheme: string;
180
+ lightTheme: string;
181
+ isShowPreview: boolean;
182
+ enableFontSizeControl: boolean;
183
+ showExpandButton: boolean;
184
+ showPreviewButton: boolean;
185
+ showFontSizeButtons: boolean;
186
+ }>;
187
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
188
+ export default _default;
189
+ type __VLS_WithTemplateSlots<T, S> = T & {
190
+ new (): {
191
+ $scopedSlots: S;
192
+ };
193
+ };