markstream-vue2 0.0.53 → 0.1.0-beta.2

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 (181) hide show
  1. package/README.md +27 -24
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.d.ts +2 -3
  5. package/dist/index.js +679 -2006
  6. package/dist/index.px.css +1 -1
  7. package/dist/index.tailwind.css +1 -1
  8. package/dist/tailwind.ts +1 -1
  9. package/dist/types/components/CodeBlockNode/CodeBlockNode.vue.d.ts +38 -19
  10. package/dist/types/components/CodeBlockNode/streamDiffs.d.ts +9 -0
  11. package/dist/types/components/MarkdownRenderCompat.vue.d.ts +11 -14
  12. package/dist/types/components/NodeRenderer/CodeBlockNodeLoading.vue.d.ts +0 -9
  13. package/dist/types/components/NodeRenderer/LegacyNodesRenderer.vue.d.ts +9 -20
  14. package/dist/types/components/NodeRenderer/NodeRenderer.vue.d.ts +10 -20
  15. package/dist/types/composables/useSingletonTooltip.d.ts +1 -1
  16. package/dist/types/exports.d.ts +2 -3
  17. package/dist/types/types/component-props.d.ts +59 -69
  18. package/dist/types/utils/index.d.ts +1 -1
  19. package/dist/types/utils/languageIcon.d.ts +1 -1
  20. package/package.json +7 -15
  21. package/dist/chunks/andromeeda-0e066d27.js +0 -4
  22. package/dist/chunks/andromeeda-beebe2f9.cjs +0 -1
  23. package/dist/chunks/aurora-x-7d279c8e.cjs +0 -1
  24. package/dist/chunks/aurora-x-e4f2fe1b.js +0 -4
  25. package/dist/chunks/ayu-dark-349c357c.js +0 -4
  26. package/dist/chunks/ayu-dark-5e86208e.cjs +0 -1
  27. package/dist/chunks/ayu-light-18928686.cjs +0 -1
  28. package/dist/chunks/ayu-light-bfc150f8.js +0 -4
  29. package/dist/chunks/ayu-mirage-3383fcd0.js +0 -4
  30. package/dist/chunks/ayu-mirage-3af5c477.cjs +0 -1
  31. package/dist/chunks/catppuccin-frappe-32dd8ebe.js +0 -4
  32. package/dist/chunks/catppuccin-frappe-5990e1cc.cjs +0 -1
  33. package/dist/chunks/catppuccin-latte-7dd9ec26.cjs +0 -1
  34. package/dist/chunks/catppuccin-latte-842c8be1.js +0 -4
  35. package/dist/chunks/catppuccin-macchiato-0c355ced.js +0 -4
  36. package/dist/chunks/catppuccin-macchiato-12297a0c.cjs +0 -1
  37. package/dist/chunks/catppuccin-mocha-164bffb5.cjs +0 -1
  38. package/dist/chunks/catppuccin-mocha-840be6a5.js +0 -4
  39. package/dist/chunks/dark-plus-37515867.cjs +0 -1
  40. package/dist/chunks/dark-plus-51ee0d5e.js +0 -4
  41. package/dist/chunks/dracula-6e5c19a8.js +0 -4
  42. package/dist/chunks/dracula-ad0b94e0.cjs +0 -1
  43. package/dist/chunks/dracula-soft-223c44b5.cjs +0 -1
  44. package/dist/chunks/dracula-soft-744d21b1.js +0 -4
  45. package/dist/chunks/everforest-dark-3a566062.js +0 -4
  46. package/dist/chunks/everforest-dark-630f597e.cjs +0 -1
  47. package/dist/chunks/everforest-light-92583419.js +0 -4
  48. package/dist/chunks/everforest-light-ba8af69c.cjs +0 -1
  49. package/dist/chunks/github-dark-44cb1819.cjs +0 -1
  50. package/dist/chunks/github-dark-cb4e8bb4.js +0 -4
  51. package/dist/chunks/github-dark-default-d50179ae.js +0 -4
  52. package/dist/chunks/github-dark-default-f99477eb.cjs +0 -1
  53. package/dist/chunks/github-dark-dimmed-96ccf893.cjs +0 -1
  54. package/dist/chunks/github-dark-dimmed-ebbb9420.js +0 -4
  55. package/dist/chunks/github-dark-high-contrast-5cc08661.js +0 -4
  56. package/dist/chunks/github-dark-high-contrast-adcd4e61.cjs +0 -1
  57. package/dist/chunks/github-light-42f759a4.cjs +0 -1
  58. package/dist/chunks/github-light-555bd325.js +0 -4
  59. package/dist/chunks/github-light-default-50fa37cd.cjs +0 -1
  60. package/dist/chunks/github-light-default-9c006cf6.js +0 -4
  61. package/dist/chunks/github-light-high-contrast-15a9bb5a.cjs +0 -1
  62. package/dist/chunks/github-light-high-contrast-ffa0564e.js +0 -4
  63. package/dist/chunks/gruvbox-dark-hard-4412389e.js +0 -4
  64. package/dist/chunks/gruvbox-dark-hard-cc007dcd.cjs +0 -1
  65. package/dist/chunks/gruvbox-dark-medium-415e09f2.cjs +0 -1
  66. package/dist/chunks/gruvbox-dark-medium-fa0eeef7.js +0 -4
  67. package/dist/chunks/gruvbox-dark-soft-3125d894.cjs +0 -1
  68. package/dist/chunks/gruvbox-dark-soft-a4600b2a.js +0 -4
  69. package/dist/chunks/gruvbox-light-hard-4c8c0395.cjs +0 -1
  70. package/dist/chunks/gruvbox-light-hard-8e736562.js +0 -4
  71. package/dist/chunks/gruvbox-light-medium-0c0cbf5d.js +0 -4
  72. package/dist/chunks/gruvbox-light-medium-abf52b0c.cjs +0 -1
  73. package/dist/chunks/gruvbox-light-soft-0e7ed903.cjs +0 -1
  74. package/dist/chunks/gruvbox-light-soft-a35d50d0.js +0 -4
  75. package/dist/chunks/horizon-31da8ee5.js +0 -4
  76. package/dist/chunks/horizon-bright-bb8b03f8.js +0 -4
  77. package/dist/chunks/horizon-bright-d2ea0b12.cjs +0 -1
  78. package/dist/chunks/horizon-f8b833c3.cjs +0 -1
  79. package/dist/chunks/houston-20eb8cbf.cjs +0 -1
  80. package/dist/chunks/houston-d3d3c60d.js +0 -4
  81. package/dist/chunks/index-42602bc0.js +0 -18739
  82. package/dist/chunks/index-b485917b.cjs +0 -1
  83. package/dist/chunks/index-c958c796.cjs +0 -1
  84. package/dist/chunks/index-fce73667.js +0 -1702
  85. package/dist/chunks/kanagawa-dragon-0246ed94.cjs +0 -1
  86. package/dist/chunks/kanagawa-dragon-324edcdc.js +0 -4
  87. package/dist/chunks/kanagawa-lotus-61838bd3.cjs +0 -1
  88. package/dist/chunks/kanagawa-lotus-a847832a.js +0 -4
  89. package/dist/chunks/kanagawa-wave-2b426416.cjs +0 -1
  90. package/dist/chunks/kanagawa-wave-7b8409ec.js +0 -4
  91. package/dist/chunks/laserwave-538ee8e3.js +0 -4
  92. package/dist/chunks/laserwave-d5e6cfa6.cjs +0 -1
  93. package/dist/chunks/light-plus-471df294.cjs +0 -1
  94. package/dist/chunks/light-plus-a0703fa7.js +0 -4
  95. package/dist/chunks/material-theme-686d9ffc.js +0 -4
  96. package/dist/chunks/material-theme-9d859633.cjs +0 -1
  97. package/dist/chunks/material-theme-darker-cac9360e.js +0 -4
  98. package/dist/chunks/material-theme-darker-fe8dd38a.cjs +0 -1
  99. package/dist/chunks/material-theme-lighter-03523bbb.js +0 -4
  100. package/dist/chunks/material-theme-lighter-879be29a.cjs +0 -1
  101. package/dist/chunks/material-theme-ocean-37052f40.js +0 -4
  102. package/dist/chunks/material-theme-ocean-c1caeaa4.cjs +0 -1
  103. package/dist/chunks/material-theme-palenight-70bbf617.js +0 -4
  104. package/dist/chunks/material-theme-palenight-ef8b2399.cjs +0 -1
  105. package/dist/chunks/min-dark-0baaa2b0.cjs +0 -1
  106. package/dist/chunks/min-dark-16b503e6.js +0 -4
  107. package/dist/chunks/min-light-0c4ea4ec.js +0 -4
  108. package/dist/chunks/min-light-f65395e0.cjs +0 -1
  109. package/dist/chunks/monokai-32171550.js +0 -4
  110. package/dist/chunks/monokai-b9c22257.cjs +0 -1
  111. package/dist/chunks/night-owl-5eeb6e45.cjs +0 -1
  112. package/dist/chunks/night-owl-cb71e64c.js +0 -4
  113. package/dist/chunks/night-owl-light-3b4be46f.js +0 -4
  114. package/dist/chunks/night-owl-light-f04fad9f.cjs +0 -1
  115. package/dist/chunks/nord-0b42b6b4.cjs +0 -1
  116. package/dist/chunks/nord-b2f653cd.js +0 -4
  117. package/dist/chunks/one-dark-pro-611d46bc.js +0 -4
  118. package/dist/chunks/one-dark-pro-6ac63500.cjs +0 -1
  119. package/dist/chunks/one-light-2f27f0f0.cjs +0 -1
  120. package/dist/chunks/one-light-f2b411cc.js +0 -4
  121. package/dist/chunks/pierre-dark-9c2ca7e3.cjs +0 -1
  122. package/dist/chunks/pierre-dark-f4c18c96.js +0 -4
  123. package/dist/chunks/pierre-dark-protanopia-deuteranopia-31face57.js +0 -4
  124. package/dist/chunks/pierre-dark-protanopia-deuteranopia-67028f58.cjs +0 -1
  125. package/dist/chunks/pierre-dark-soft-3103370a.js +0 -4
  126. package/dist/chunks/pierre-dark-soft-59e1d5bc.cjs +0 -1
  127. package/dist/chunks/pierre-dark-tritanopia-b2966d75.js +0 -4
  128. package/dist/chunks/pierre-dark-tritanopia-d87f3323.cjs +0 -1
  129. package/dist/chunks/pierre-dark-vibrant-4de6032d.js +0 -4
  130. package/dist/chunks/pierre-dark-vibrant-f4553619.cjs +0 -1
  131. package/dist/chunks/pierre-light-45d08543.js +0 -4
  132. package/dist/chunks/pierre-light-ae152c30.cjs +0 -1
  133. package/dist/chunks/pierre-light-protanopia-deuteranopia-78f5453c.cjs +0 -1
  134. package/dist/chunks/pierre-light-protanopia-deuteranopia-816a3304.js +0 -4
  135. package/dist/chunks/pierre-light-soft-2a7b83ed.cjs +0 -1
  136. package/dist/chunks/pierre-light-soft-9c96aa07.js +0 -4
  137. package/dist/chunks/pierre-light-tritanopia-22534644.cjs +0 -1
  138. package/dist/chunks/pierre-light-tritanopia-b49f3566.js +0 -4
  139. package/dist/chunks/pierre-light-vibrant-178f2e13.cjs +0 -1
  140. package/dist/chunks/pierre-light-vibrant-1d779afc.js +0 -4
  141. package/dist/chunks/plastic-050a5288.js +0 -4
  142. package/dist/chunks/plastic-ab5115cb.cjs +0 -1
  143. package/dist/chunks/poimandres-9b9bffc0.cjs +0 -1
  144. package/dist/chunks/poimandres-e7807ea4.js +0 -4
  145. package/dist/chunks/red-58c74b50.cjs +0 -1
  146. package/dist/chunks/red-8b5bb9fd.js +0 -4
  147. package/dist/chunks/rose-pine-dawn-c54a297c.js +0 -4
  148. package/dist/chunks/rose-pine-dawn-dcd06a2d.cjs +0 -1
  149. package/dist/chunks/rose-pine-e3dfc7b6.js +0 -4
  150. package/dist/chunks/rose-pine-e443c3f3.cjs +0 -1
  151. package/dist/chunks/rose-pine-moon-c4ae0bee.cjs +0 -1
  152. package/dist/chunks/rose-pine-moon-ff747b44.js +0 -4
  153. package/dist/chunks/slack-dark-119fdcba.cjs +0 -1
  154. package/dist/chunks/slack-dark-cba39ccf.js +0 -4
  155. package/dist/chunks/slack-ochin-4a97383e.js +0 -4
  156. package/dist/chunks/slack-ochin-e53abb89.cjs +0 -1
  157. package/dist/chunks/snazzy-light-863adb77.js +0 -4
  158. package/dist/chunks/snazzy-light-aacd1ca8.cjs +0 -1
  159. package/dist/chunks/solarized-dark-18286b81.js +0 -4
  160. package/dist/chunks/solarized-dark-6c53ecf9.cjs +0 -1
  161. package/dist/chunks/solarized-light-abef5a54.cjs +0 -1
  162. package/dist/chunks/solarized-light-e7adfa5b.js +0 -4
  163. package/dist/chunks/synthwave-84-26ebbfca.js +0 -4
  164. package/dist/chunks/synthwave-84-ddb2c535.cjs +0 -1
  165. package/dist/chunks/tokyo-night-25368f86.js +0 -4
  166. package/dist/chunks/tokyo-night-6e0b49fd.cjs +0 -1
  167. package/dist/chunks/vesper-0ba44279.js +0 -4
  168. package/dist/chunks/vesper-a2e0b586.cjs +0 -1
  169. package/dist/chunks/vitesse-black-2be67ba4.cjs +0 -1
  170. package/dist/chunks/vitesse-black-33005deb.js +0 -4
  171. package/dist/chunks/vitesse-dark-82a14fc3.cjs +0 -1
  172. package/dist/chunks/vitesse-dark-9bb81e7a.js +0 -4
  173. package/dist/chunks/vitesse-light-2f9f7ba9.js +0 -4
  174. package/dist/chunks/vitesse-light-ee2c704b.cjs +0 -1
  175. package/dist/chunks/wasm-4cd10f60.cjs +0 -1
  176. package/dist/chunks/wasm-cb55701e.js +0 -30
  177. package/dist/types/components/CodeBlockNode/monaco.d.ts +0 -1
  178. package/dist/types/components/CodeBlockNode/monacoThemeScheduler.d.ts +0 -3
  179. package/dist/types/components/MarkdownCodeBlockNode/MarkdownCodeBlockNode.vue.d.ts +0 -233
  180. package/dist/types/components/MarkdownCodeBlockNode/index.d.ts +0 -2
  181. /package/dist/types/components/NodeRenderer/{preloadMonaco.d.ts → preloadStreamDiffs.d.ts} +0 -0
@@ -1 +0,0 @@
1
- export declare function getUseMonaco(): Promise<any>;
@@ -1,3 +0,0 @@
1
- type SetTheme = (theme: any) => Promise<void>;
2
- export declare function scheduleGlobalMonacoTheme(setTheme: SetTheme, theme: any): Promise<void>;
3
- export {};
@@ -1,233 +0,0 @@
1
- import { PropType } from 'vue-demi';
2
- import { MarkdownCodeBlockPreviewPayload } from '../../types/component-props';
3
- interface MarkdownCodeBlockNodeProps {
4
- node: {
5
- type: 'code_block';
6
- language: string;
7
- code: string;
8
- raw: string;
9
- diff?: boolean;
10
- originalCode?: string;
11
- updatedCode?: string;
12
- };
13
- loading?: boolean;
14
- stream?: boolean;
15
- darkTheme?: string;
16
- lightTheme?: string;
17
- isDark?: boolean;
18
- isShowPreview?: boolean;
19
- enableFontSizeControl?: boolean;
20
- minWidth?: string | number;
21
- maxWidth?: string | number;
22
- themes?: readonly string[];
23
- langs?: readonly string[];
24
- showHeader?: boolean;
25
- showCopyButton?: boolean;
26
- showExpandButton?: boolean;
27
- showPreviewButton?: boolean;
28
- showCollapseButton?: boolean;
29
- showFontSizeButtons?: boolean;
30
- showTooltips?: boolean;
31
- }
32
- declare function __VLS_template(): {
33
- attrs: Partial<{}>;
34
- slots: {
35
- 'header-left'?(_: {}): any;
36
- 'header-right'?(_: {}): any;
37
- loading?(_: {
38
- loading: boolean;
39
- stream: boolean;
40
- }): any;
41
- };
42
- refs: {
43
- container: HTMLDivElement;
44
- codeBlockContent: HTMLDivElement;
45
- rendererTarget: HTMLDivElement;
46
- };
47
- rootEl: HTMLDivElement;
48
- };
49
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
50
- declare const __VLS_component: import('vue-demi').DefineComponent<{
51
- node: {
52
- type: PropType<MarkdownCodeBlockNodeProps["node"]>;
53
- required: true;
54
- };
55
- loading: {
56
- type: BooleanConstructor;
57
- default: boolean;
58
- };
59
- stream: {
60
- type: BooleanConstructor;
61
- default: boolean;
62
- };
63
- darkTheme: {
64
- type: StringConstructor;
65
- default: string;
66
- };
67
- lightTheme: {
68
- type: StringConstructor;
69
- default: string;
70
- };
71
- isDark: {
72
- type: BooleanConstructor;
73
- default: boolean;
74
- };
75
- isShowPreview: {
76
- type: BooleanConstructor;
77
- default: boolean;
78
- };
79
- enableFontSizeControl: {
80
- type: BooleanConstructor;
81
- default: boolean;
82
- };
83
- minWidth: {
84
- type: (NumberConstructor | StringConstructor)[];
85
- default: any;
86
- };
87
- maxWidth: {
88
- type: (NumberConstructor | StringConstructor)[];
89
- default: any;
90
- };
91
- themes: {
92
- type: PropType<readonly string[]>;
93
- default: any;
94
- };
95
- langs: {
96
- type: PropType<readonly string[]>;
97
- default: any;
98
- };
99
- showHeader: {
100
- type: BooleanConstructor;
101
- default: boolean;
102
- };
103
- showCopyButton: {
104
- type: BooleanConstructor;
105
- default: boolean;
106
- };
107
- showExpandButton: {
108
- type: BooleanConstructor;
109
- default: boolean;
110
- };
111
- showPreviewButton: {
112
- type: BooleanConstructor;
113
- default: boolean;
114
- };
115
- showCollapseButton: {
116
- type: BooleanConstructor;
117
- default: boolean;
118
- };
119
- showFontSizeButtons: {
120
- type: BooleanConstructor;
121
- default: boolean;
122
- };
123
- showTooltips: {
124
- type: BooleanConstructor;
125
- default: any;
126
- };
127
- }, {}, {}, {}, {}, import('vue-demi').ComponentOptionsMixin, import('vue-demi').ComponentOptionsMixin, {
128
- previewCode: (payload: MarkdownCodeBlockPreviewPayload) => void;
129
- copy: (code: string) => void;
130
- }, string, Readonly<import('vue-demi').ExtractPropTypes<{
131
- node: {
132
- type: PropType<MarkdownCodeBlockNodeProps["node"]>;
133
- required: true;
134
- };
135
- loading: {
136
- type: BooleanConstructor;
137
- default: boolean;
138
- };
139
- stream: {
140
- type: BooleanConstructor;
141
- default: boolean;
142
- };
143
- darkTheme: {
144
- type: StringConstructor;
145
- default: string;
146
- };
147
- lightTheme: {
148
- type: StringConstructor;
149
- default: string;
150
- };
151
- isDark: {
152
- type: BooleanConstructor;
153
- default: boolean;
154
- };
155
- isShowPreview: {
156
- type: BooleanConstructor;
157
- default: boolean;
158
- };
159
- enableFontSizeControl: {
160
- type: BooleanConstructor;
161
- default: boolean;
162
- };
163
- minWidth: {
164
- type: (NumberConstructor | StringConstructor)[];
165
- default: any;
166
- };
167
- maxWidth: {
168
- type: (NumberConstructor | StringConstructor)[];
169
- default: any;
170
- };
171
- themes: {
172
- type: PropType<readonly string[]>;
173
- default: any;
174
- };
175
- langs: {
176
- type: PropType<readonly string[]>;
177
- default: any;
178
- };
179
- showHeader: {
180
- type: BooleanConstructor;
181
- default: boolean;
182
- };
183
- showCopyButton: {
184
- type: BooleanConstructor;
185
- default: boolean;
186
- };
187
- showExpandButton: {
188
- type: BooleanConstructor;
189
- default: boolean;
190
- };
191
- showPreviewButton: {
192
- type: BooleanConstructor;
193
- default: boolean;
194
- };
195
- showCollapseButton: {
196
- type: BooleanConstructor;
197
- default: boolean;
198
- };
199
- showFontSizeButtons: {
200
- type: BooleanConstructor;
201
- default: boolean;
202
- };
203
- showTooltips: {
204
- type: BooleanConstructor;
205
- default: any;
206
- };
207
- }>>, {
208
- themes: readonly string[];
209
- langs: readonly string[];
210
- isDark: boolean;
211
- loading: boolean;
212
- stream: boolean;
213
- darkTheme: string;
214
- lightTheme: string;
215
- isShowPreview: boolean;
216
- enableFontSizeControl: boolean;
217
- minWidth: string | number;
218
- maxWidth: string | number;
219
- showPreviewButton: boolean;
220
- showCollapseButton: boolean;
221
- showFontSizeButtons: boolean;
222
- showTooltips: boolean;
223
- showHeader: boolean;
224
- showCopyButton: boolean;
225
- showExpandButton: boolean;
226
- }>;
227
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
228
- export default _default;
229
- type __VLS_WithTemplateSlots<T, S> = T & {
230
- new (): {
231
- $scopedSlots: S;
232
- };
233
- };
@@ -1,2 +0,0 @@
1
- import { default as MarkdownCodeBlockNode } from './MarkdownCodeBlockNode.vue';
2
- export default MarkdownCodeBlockNode;