vuepress-plugin-md-power 1.0.0-rc.80 → 1.0.0-rc.82
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 +4 -3
- package/lib/client/components/CodeSandbox.vue +1 -1
- package/lib/client/components/PDFViewer.vue +1 -1
- package/lib/client/components/Plot.vue +1 -1
- package/lib/client/components/Replit.vue +1 -1
- package/lib/client/composables/codeRepl.d.ts +7 -5
- package/lib/client/composables/codeRepl.js +253 -145
- package/lib/client/composables/pdf.d.ts +7 -3
- package/lib/client/composables/pdf.js +55 -81
- package/lib/client/composables/rustRepl.d.ts +3 -2
- package/lib/client/composables/rustRepl.js +96 -94
- package/lib/client/composables/size.d.ts +9 -5
- package/lib/client/composables/size.js +36 -44
- package/lib/client/index.js +2 -1
- package/lib/client/options.d.ts +5 -2
- package/lib/client/options.js +5 -1
- package/lib/client/utils/http.d.ts +3 -1
- package/lib/client/utils/http.js +24 -20
- package/lib/client/utils/is.d.ts +5 -3
- package/lib/client/utils/is.js +16 -10
- package/lib/client/utils/link.d.ts +3 -1
- package/lib/client/utils/link.js +8 -4
- package/lib/client/utils/sleep.d.ts +3 -1
- package/lib/client/utils/sleep.js +8 -4
- package/lib/node/index.d.ts +188 -2
- package/lib/node/index.js +847 -2
- package/lib/shared/index.d.ts +185 -10
- package/lib/shared/index.js +0 -10
- package/package.json +9 -9
- package/lib/node/features/caniuse.d.ts +0 -25
- package/lib/node/features/caniuse.js +0 -87
- package/lib/node/features/codeSandbox.d.ts +0 -7
- package/lib/node/features/codeSandbox.js +0 -29
- package/lib/node/features/codepen.d.ts +0 -7
- package/lib/node/features/codepen.js +0 -42
- package/lib/node/features/icons/index.d.ts +0 -2
- package/lib/node/features/icons/index.js +0 -2
- package/lib/node/features/icons/plugin.d.ts +0 -10
- package/lib/node/features/icons/plugin.js +0 -61
- package/lib/node/features/icons/writer.d.ts +0 -11
- package/lib/node/features/icons/writer.js +0 -126
- package/lib/node/features/jsfiddle.d.ts +0 -6
- package/lib/node/features/jsfiddle.js +0 -28
- package/lib/node/features/langRepl.d.ts +0 -4
- package/lib/node/features/langRepl.js +0 -59
- package/lib/node/features/pdf.d.ts +0 -2
- package/lib/node/features/pdf.js +0 -31
- package/lib/node/features/plot.d.ts +0 -5
- package/lib/node/features/plot.js +0 -48
- package/lib/node/features/replit.d.ts +0 -7
- package/lib/node/features/replit.js +0 -22
- package/lib/node/features/video/bilibili.d.ts +0 -2
- package/lib/node/features/video/bilibili.js +0 -58
- package/lib/node/features/video/youtube.d.ts +0 -2
- package/lib/node/features/video/youtube.js +0 -47
- package/lib/node/plugin.d.ts +0 -3
- package/lib/node/plugin.js +0 -80
- package/lib/node/prepareConfigFile.d.ts +0 -3
- package/lib/node/prepareConfigFile.js +0 -59
- package/lib/node/utils/createRuleBlock.d.ts +0 -18
- package/lib/node/utils/createRuleBlock.js +0 -34
- package/lib/node/utils/package.d.ts +0 -4
- package/lib/node/utils/package.js +0 -4
- package/lib/node/utils/parseRect.d.ts +0 -1
- package/lib/node/utils/parseRect.js +0 -5
- package/lib/node/utils/resolveAttrs.d.ts +0 -4
- package/lib/node/utils/resolveAttrs.js +0 -29
- package/lib/node/utils/timeToSeconds.d.ts +0 -1
- package/lib/node/utils/timeToSeconds.js +0 -8
- package/lib/shared/caniuse.d.ts +0 -18
- package/lib/shared/caniuse.js +0 -1
- package/lib/shared/codeSandbox.d.ts +0 -11
- package/lib/shared/codeSandbox.js +0 -1
- package/lib/shared/codepen.d.ts +0 -10
- package/lib/shared/codepen.js +0 -1
- package/lib/shared/icons.d.ts +0 -17
- package/lib/shared/icons.js +0 -1
- package/lib/shared/jsfiddle.d.ts +0 -8
- package/lib/shared/jsfiddle.js +0 -1
- package/lib/shared/pdf.d.ts +0 -15
- package/lib/shared/pdf.js +0 -1
- package/lib/shared/plot.d.ts +0 -27
- package/lib/shared/plot.js +0 -1
- package/lib/shared/plugin.d.ts +0 -21
- package/lib/shared/plugin.js +0 -1
- package/lib/shared/repl.d.ts +0 -22
- package/lib/shared/repl.js +0 -1
- package/lib/shared/replit.d.ts +0 -6
- package/lib/shared/replit.js +0 -1
- package/lib/shared/size.d.ts +0 -5
- package/lib/shared/size.js +0 -1
- package/lib/shared/video.d.ts +0 -22
- package/lib/shared/video.js +0 -1
package/lib/shared/codepen.d.ts
DELETED
package/lib/shared/codepen.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/shared/icons.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface IconsOptions {
|
|
2
|
-
/**
|
|
3
|
-
* The prefix of the icon className
|
|
4
|
-
* @default 'vp-mdi'
|
|
5
|
-
*/
|
|
6
|
-
prefix?: string;
|
|
7
|
-
/**
|
|
8
|
-
* The size of the icon
|
|
9
|
-
* @default '1em'
|
|
10
|
-
*/
|
|
11
|
-
size?: string | number;
|
|
12
|
-
/**
|
|
13
|
-
* The color of the icon
|
|
14
|
-
* @default 'currentColor'
|
|
15
|
-
*/
|
|
16
|
-
color?: string;
|
|
17
|
-
}
|
package/lib/shared/icons.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/shared/jsfiddle.d.ts
DELETED
package/lib/shared/jsfiddle.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/shared/pdf.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { SizeOptions } from './size';
|
|
2
|
-
export type PDFEmbedType = 'iframe' | 'embed' | 'pdfjs';
|
|
3
|
-
export interface PDFTokenMeta extends SizeOptions {
|
|
4
|
-
page?: number;
|
|
5
|
-
noToolbar?: boolean;
|
|
6
|
-
zoom?: number;
|
|
7
|
-
src?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface PDFOptions {
|
|
11
|
-
/**
|
|
12
|
-
* pdfjs url
|
|
13
|
-
*/
|
|
14
|
-
pdfjsUrl?: string;
|
|
15
|
-
}
|
package/lib/shared/pdf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/shared/plot.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface PlotOptions {
|
|
2
|
-
/**
|
|
3
|
-
* 是否启用 `=| |=` markdown (该标记为非标准标记,脱离插件将不生效)
|
|
4
|
-
* @default true
|
|
5
|
-
*/
|
|
6
|
-
tag?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* 遮罩层颜色
|
|
9
|
-
*/
|
|
10
|
-
mask?: string | {
|
|
11
|
-
light: string;
|
|
12
|
-
dark: string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* 文本颜色
|
|
16
|
-
*/
|
|
17
|
-
color?: string | {
|
|
18
|
-
light: string;
|
|
19
|
-
dark: string;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* 触发方式
|
|
23
|
-
*
|
|
24
|
-
* @default 'hover'
|
|
25
|
-
*/
|
|
26
|
-
trigger?: 'hover' | 'click';
|
|
27
|
-
}
|
package/lib/shared/plot.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/shared/plugin.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { CanIUseOptions } from './caniuse.js';
|
|
2
|
-
import type { PDFOptions } from './pdf.js';
|
|
3
|
-
import type { IconsOptions } from './icons.js';
|
|
4
|
-
import type { PlotOptions } from './plot.js';
|
|
5
|
-
import type { ReplOptions } from './repl.js';
|
|
6
|
-
export interface MarkdownPowerPluginOptions {
|
|
7
|
-
pdf?: boolean | PDFOptions;
|
|
8
|
-
icons?: boolean | IconsOptions;
|
|
9
|
-
plot?: boolean | PlotOptions;
|
|
10
|
-
bilibili?: boolean;
|
|
11
|
-
youtube?: boolean;
|
|
12
|
-
codepen?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
16
|
-
replit?: boolean;
|
|
17
|
-
codeSandbox?: boolean;
|
|
18
|
-
jsfiddle?: boolean;
|
|
19
|
-
repl?: false | ReplOptions;
|
|
20
|
-
caniuse?: boolean | CanIUseOptions;
|
|
21
|
-
}
|
package/lib/shared/plugin.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/shared/repl.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { BuiltinTheme, ThemeRegistration } from 'shiki';
|
|
2
|
-
export type ThemeOptions = BuiltinTheme | {
|
|
3
|
-
light: BuiltinTheme;
|
|
4
|
-
dark: BuiltinTheme;
|
|
5
|
-
};
|
|
6
|
-
export interface ReplOptions {
|
|
7
|
-
theme?: ThemeOptions;
|
|
8
|
-
go?: boolean;
|
|
9
|
-
kotlin?: boolean;
|
|
10
|
-
rust?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface ReplEditorData {
|
|
13
|
-
grammars: {
|
|
14
|
-
go?: any;
|
|
15
|
-
kotlin?: any;
|
|
16
|
-
rust?: any;
|
|
17
|
-
};
|
|
18
|
-
theme: ThemeRegistration | {
|
|
19
|
-
light: ThemeRegistration;
|
|
20
|
-
dark: ThemeRegistration;
|
|
21
|
-
};
|
|
22
|
-
}
|
package/lib/shared/repl.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/shared/replit.d.ts
DELETED
package/lib/shared/replit.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/shared/size.d.ts
DELETED
package/lib/shared/size.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/shared/video.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { SizeOptions } from './size';
|
|
2
|
-
export interface VideoOptions {
|
|
3
|
-
bilibili?: boolean;
|
|
4
|
-
youtube?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface BilibiliTokenMeta extends SizeOptions {
|
|
7
|
-
title?: string;
|
|
8
|
-
bvid?: string;
|
|
9
|
-
aid?: string;
|
|
10
|
-
cid?: string;
|
|
11
|
-
autoplay?: boolean;
|
|
12
|
-
time?: string | number;
|
|
13
|
-
page?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface YoutubeTokenMeta extends SizeOptions {
|
|
16
|
-
title?: string;
|
|
17
|
-
id: string;
|
|
18
|
-
autoplay?: boolean;
|
|
19
|
-
loop?: boolean;
|
|
20
|
-
start?: string | number;
|
|
21
|
-
end?: string | number;
|
|
22
|
-
}
|
package/lib/shared/video.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|