vuepress-plugin-md-power 1.0.0-rc.152 → 1.0.0-rc.154
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/lib/client/components/CodeEditor.vue +1 -1
- package/lib/client/components/Plot.vue +47 -49
- package/lib/client/composables/audio.d.ts +2 -1
- package/lib/client/composables/codeRepl.d.ts +1 -2
- package/lib/client/composables/codeRepl.js +26 -3
- package/lib/client/composables/demo.d.ts +0 -1
- package/lib/client/composables/rustRepl.d.ts +0 -1
- package/lib/client/composables/size.d.ts +0 -1
- package/lib/client/options.d.ts +2 -1
- package/lib/client/utils/http.d.ts +0 -1
- package/lib/client/utils/link.d.ts +0 -1
- package/lib/client/utils/sleep.d.ts +0 -1
- package/lib/node/index.d.ts +15 -39
- package/lib/node/index.js +249 -55
- package/lib/shared/index.d.ts +15 -36
- package/package.json +36 -20
package/lib/shared/index.d.ts
CHANGED
|
@@ -21,14 +21,14 @@ interface CanIUseOptions {
|
|
|
21
21
|
* @default 'embed'
|
|
22
22
|
*/
|
|
23
23
|
mode?: CanIUseMode;
|
|
24
|
-
}
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
25
26
|
//#region src/shared/size.d.ts
|
|
26
27
|
interface SizeOptions {
|
|
27
28
|
width?: string;
|
|
28
29
|
height?: string;
|
|
29
30
|
ratio?: number | string;
|
|
30
31
|
}
|
|
31
|
-
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/shared/codepen.d.ts
|
|
34
34
|
interface CodepenTokenMeta extends SizeOptions {
|
|
@@ -40,7 +40,6 @@ interface CodepenTokenMeta extends SizeOptions {
|
|
|
40
40
|
preview?: boolean;
|
|
41
41
|
editable?: boolean;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
43
|
//#endregion
|
|
45
44
|
//#region src/shared/codeSandbox.d.ts
|
|
46
45
|
interface CodeSandboxTokenMeta extends SizeOptions {
|
|
@@ -53,7 +52,6 @@ interface CodeSandboxTokenMeta extends SizeOptions {
|
|
|
53
52
|
navbar?: boolean;
|
|
54
53
|
console?: boolean;
|
|
55
54
|
}
|
|
56
|
-
|
|
57
55
|
//#endregion
|
|
58
56
|
//#region src/shared/codeTabs.d.ts
|
|
59
57
|
interface CodeTabsOptions {
|
|
@@ -62,7 +60,6 @@ interface CodeTabsOptions {
|
|
|
62
60
|
extensions?: false | string[];
|
|
63
61
|
};
|
|
64
62
|
}
|
|
65
|
-
|
|
66
63
|
//#endregion
|
|
67
64
|
//#region src/shared/demo.d.ts
|
|
68
65
|
interface DemoFile {
|
|
@@ -87,14 +84,12 @@ interface DemoContainerRender {
|
|
|
87
84
|
after: () => string;
|
|
88
85
|
token?: (token: Token, tokens: Token[], index: number) => void;
|
|
89
86
|
}
|
|
90
|
-
|
|
91
87
|
//#endregion
|
|
92
88
|
//#region src/shared/fileTree.d.ts
|
|
93
89
|
type FileTreeIconMode = "simple" | "colored";
|
|
94
90
|
interface FileTreeOptions {
|
|
95
91
|
icon?: FileTreeIconMode;
|
|
96
92
|
}
|
|
97
|
-
|
|
98
93
|
//#endregion
|
|
99
94
|
//#region src/shared/icon.d.ts
|
|
100
95
|
type IconOptions = IconifyProvider | IconFontProvider | FontAwesomeProvider;
|
|
@@ -157,7 +152,6 @@ type IconifyPrefix = "material-symbols" | "material-symbols-light" | "ic" | "mdi
|
|
|
157
152
|
type LiteralUnion<Union extends Base, Base = string> = Union | (Base & {
|
|
158
153
|
zz_IGNORE_ME?: never;
|
|
159
154
|
});
|
|
160
|
-
|
|
161
155
|
//#endregion
|
|
162
156
|
//#region src/shared/jsfiddle.d.ts
|
|
163
157
|
interface JSFiddleTokenMeta extends SizeOptions {
|
|
@@ -166,14 +160,12 @@ interface JSFiddleTokenMeta extends SizeOptions {
|
|
|
166
160
|
theme?: string;
|
|
167
161
|
tab?: string;
|
|
168
162
|
}
|
|
169
|
-
|
|
170
163
|
//#endregion
|
|
171
164
|
//#region src/shared/npmTo.d.ts
|
|
172
165
|
type NpmToPackageManager = "npm" | "pnpm" | "yarn" | "bun" | "deno";
|
|
173
166
|
type NpmToOptions = NpmToPackageManager[] | {
|
|
174
167
|
tabs?: NpmToPackageManager[];
|
|
175
168
|
};
|
|
176
|
-
|
|
177
169
|
//#endregion
|
|
178
170
|
//#region src/shared/pdf.d.ts
|
|
179
171
|
type PDFEmbedType = "iframe" | "embed" | "pdfjs";
|
|
@@ -190,44 +182,31 @@ interface PDFOptions {
|
|
|
190
182
|
*/
|
|
191
183
|
pdfjsUrl?: string;
|
|
192
184
|
}
|
|
193
|
-
|
|
194
185
|
//#endregion
|
|
195
186
|
//#region src/shared/plot.d.ts
|
|
187
|
+
/**
|
|
188
|
+
* 是否启用 `!! !!` markdown (该标记为非标准标记,脱离插件将不生效)
|
|
189
|
+
*/
|
|
196
190
|
interface PlotOptions {
|
|
197
|
-
/**
|
|
198
|
-
* 是否启用 `!! !!` markdown (该标记为非标准标记,脱离插件将不生效)
|
|
199
|
-
* @default true
|
|
200
|
-
*/
|
|
201
|
-
tag?: boolean;
|
|
202
|
-
/**
|
|
203
|
-
* 遮罩层颜色
|
|
204
|
-
*/
|
|
205
|
-
mask?: string | {
|
|
206
|
-
light: string;
|
|
207
|
-
dark: string;
|
|
208
|
-
};
|
|
209
|
-
/**
|
|
210
|
-
* 文本颜色
|
|
211
|
-
*/
|
|
212
|
-
color?: string | {
|
|
213
|
-
light: string;
|
|
214
|
-
dark: string;
|
|
215
|
-
};
|
|
216
191
|
/**
|
|
217
192
|
* 触发方式
|
|
218
193
|
*
|
|
219
194
|
* @default 'hover'
|
|
220
195
|
*/
|
|
221
196
|
trigger?: "hover" | "click";
|
|
197
|
+
/**
|
|
198
|
+
* 遮罩层效果
|
|
199
|
+
*
|
|
200
|
+
* @default 'mask'
|
|
201
|
+
*/
|
|
202
|
+
effect?: "mask" | "blur";
|
|
222
203
|
}
|
|
223
|
-
|
|
224
204
|
//#endregion
|
|
225
205
|
//#region src/shared/codeTree.d.ts
|
|
226
206
|
interface CodeTreeOptions {
|
|
227
207
|
icon?: FileTreeIconMode;
|
|
228
208
|
height?: string | number;
|
|
229
209
|
}
|
|
230
|
-
|
|
231
210
|
//#endregion
|
|
232
211
|
//#region src/shared/repl.d.ts
|
|
233
212
|
type ThemeOptions = BuiltinTheme | {
|
|
@@ -239,19 +218,20 @@ interface ReplOptions {
|
|
|
239
218
|
go?: boolean;
|
|
240
219
|
kotlin?: boolean;
|
|
241
220
|
rust?: boolean;
|
|
221
|
+
python?: boolean;
|
|
242
222
|
}
|
|
243
223
|
interface ReplEditorData {
|
|
244
224
|
grammars: {
|
|
245
225
|
go?: any;
|
|
246
226
|
kotlin?: any;
|
|
247
227
|
rust?: any;
|
|
228
|
+
python?: any;
|
|
248
229
|
};
|
|
249
230
|
theme: ThemeRegistration | {
|
|
250
231
|
light: ThemeRegistration;
|
|
251
232
|
dark: ThemeRegistration;
|
|
252
233
|
};
|
|
253
234
|
}
|
|
254
|
-
|
|
255
235
|
//#endregion
|
|
256
236
|
//#region src/shared/plugin.d.ts
|
|
257
237
|
interface MarkdownPowerPluginOptions {
|
|
@@ -480,14 +460,14 @@ interface MarkdownPowerPluginOptions {
|
|
|
480
460
|
* @default false
|
|
481
461
|
*/
|
|
482
462
|
imageSize?: boolean | "local" | "all";
|
|
483
|
-
}
|
|
463
|
+
}
|
|
464
|
+
//#endregion
|
|
484
465
|
//#region src/shared/replit.d.ts
|
|
485
466
|
interface ReplitTokenMeta extends SizeOptions {
|
|
486
467
|
title?: string;
|
|
487
468
|
source?: string;
|
|
488
469
|
theme?: string;
|
|
489
470
|
}
|
|
490
|
-
|
|
491
471
|
//#endregion
|
|
492
472
|
//#region src/shared/video.d.ts
|
|
493
473
|
interface VideoOptions {
|
|
@@ -521,6 +501,5 @@ interface ArtPlayerTokenMeta extends SizeOptions {
|
|
|
521
501
|
url: string;
|
|
522
502
|
type?: string;
|
|
523
503
|
}
|
|
524
|
-
|
|
525
504
|
//#endregion
|
|
526
505
|
export { ArtPlayerTokenMeta, BilibiliTokenMeta, CanIUseMode, CanIUseOptions, CanIUseTokenMeta, CodeSandboxTokenMeta, CodeTabsOptions, CodepenTokenMeta, DemoContainerRender, DemoFile, DemoMeta, FileTreeIconMode, FileTreeOptions, FontAwesomeAssetBuiltIn, FontAwesomePrefix, FontAwesomeProvider, IconAssetLink, IconFontProvider, IconOptions, IconProviderBase, IconifyPrefix, IconifyProvider, JSFiddleTokenMeta, LiteralUnion, MarkdownDemoEnv, MarkdownPowerPluginOptions, NpmToOptions, NpmToPackageManager, PDFEmbedType, PDFOptions, PDFTokenMeta, PlotOptions, ReplEditorData, ReplOptions, ReplitTokenMeta, SizeOptions, ThemeOptions, VideoOptions, YoutubeTokenMeta };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuepress-plugin-md-power",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.154",
|
|
5
5
|
"description": "The Plugin for VuePress 2 - markdown power",
|
|
6
6
|
"author": "pengzhanbo <volodymyr@foxmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,14 +32,15 @@
|
|
|
32
32
|
],
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"artplayer": "^5.2.3",
|
|
35
|
-
"dashjs": "^5.0.
|
|
35
|
+
"dashjs": "^5.0.3",
|
|
36
36
|
"esbuild": "^0.25.5",
|
|
37
|
-
"hls.js": "^1.6.
|
|
37
|
+
"hls.js": "^1.6.5",
|
|
38
38
|
"less": "^4.3.0",
|
|
39
39
|
"markdown-it": "^14.1.0",
|
|
40
40
|
"mpegts.js": "^1.7.3",
|
|
41
|
-
"
|
|
42
|
-
"sass
|
|
41
|
+
"pyodide": "^0.27.7",
|
|
42
|
+
"sass": "^1.89.2",
|
|
43
|
+
"sass-embedded": "^1.89.2",
|
|
43
44
|
"stylus": "^0.64.0",
|
|
44
45
|
"vuepress": "2.0.0-rc.23"
|
|
45
46
|
},
|
|
@@ -53,41 +54,56 @@
|
|
|
53
54
|
"hls.js": {
|
|
54
55
|
"optional": true
|
|
55
56
|
},
|
|
57
|
+
"less": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
56
60
|
"markdown-it": {
|
|
57
61
|
"optional": true
|
|
58
62
|
},
|
|
59
63
|
"mpegts.js": {
|
|
60
64
|
"optional": true
|
|
65
|
+
},
|
|
66
|
+
"pyodide": {
|
|
67
|
+
"optional": true
|
|
68
|
+
},
|
|
69
|
+
"sass": {
|
|
70
|
+
"optional": true
|
|
71
|
+
},
|
|
72
|
+
"sass-embedded": {
|
|
73
|
+
"optional": true
|
|
74
|
+
},
|
|
75
|
+
"stylus": {
|
|
76
|
+
"optional": true
|
|
61
77
|
}
|
|
62
78
|
},
|
|
63
79
|
"dependencies": {
|
|
64
|
-
"@mdit/plugin-attrs": "^0.
|
|
65
|
-
"@mdit/plugin-footnote": "^0.
|
|
66
|
-
"@mdit/plugin-mark": "^0.
|
|
67
|
-
"@mdit/plugin-sub": "^0.
|
|
68
|
-
"@mdit/plugin-sup": "^0.
|
|
69
|
-
"@mdit/plugin-tab": "^0.
|
|
70
|
-
"@mdit/plugin-tasklist": "^0.
|
|
80
|
+
"@mdit/plugin-attrs": "^0.23.1",
|
|
81
|
+
"@mdit/plugin-footnote": "^0.22.2",
|
|
82
|
+
"@mdit/plugin-mark": "^0.22.1",
|
|
83
|
+
"@mdit/plugin-sub": "^0.22.1",
|
|
84
|
+
"@mdit/plugin-sup": "^0.22.1",
|
|
85
|
+
"@mdit/plugin-tab": "^0.22.2",
|
|
86
|
+
"@mdit/plugin-tasklist": "^0.22.1",
|
|
71
87
|
"@pengzhanbo/utils": "^2.1.0",
|
|
72
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
73
|
-
"@vueuse/core": "^13.
|
|
74
|
-
"chokidar": "
|
|
88
|
+
"@vuepress/helper": "2.0.0-rc.110",
|
|
89
|
+
"@vueuse/core": "^13.4.0",
|
|
90
|
+
"chokidar": "4.0.3",
|
|
75
91
|
"image-size": "^2.0.2",
|
|
76
92
|
"local-pkg": "^1.1.1",
|
|
77
93
|
"lru-cache": "^11.1.0",
|
|
78
94
|
"markdown-it-container": "^4.0.0",
|
|
79
95
|
"nanoid": "^5.1.5",
|
|
80
|
-
"shiki": "^3.
|
|
96
|
+
"shiki": "^3.6.0",
|
|
81
97
|
"tinyglobby": "0.2.13",
|
|
82
|
-
"tm-grammars": "^1.23.
|
|
98
|
+
"tm-grammars": "^1.23.26",
|
|
83
99
|
"tm-themes": "^1.10.6",
|
|
84
|
-
"vue": "^3.5.
|
|
100
|
+
"vue": "^3.5.17"
|
|
85
101
|
},
|
|
86
102
|
"devDependencies": {
|
|
87
103
|
"@types/markdown-it": "^14.1.2",
|
|
88
104
|
"artplayer": "^5.2.3",
|
|
89
|
-
"dashjs": "^5.0.
|
|
90
|
-
"hls.js": "^1.6.
|
|
105
|
+
"dashjs": "^5.0.3",
|
|
106
|
+
"hls.js": "^1.6.5",
|
|
91
107
|
"mpegts.js": "1.7.3"
|
|
92
108
|
},
|
|
93
109
|
"publishConfig": {
|