vuepress-plugin-md-power 1.0.0-rc.135 → 1.0.0-rc.137
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/CodeRepl.vue +2 -2
- package/lib/client/components/VPCollapse.vue +31 -0
- package/lib/client/components/VPCollapseItem.vue +118 -0
- package/lib/client/components/VPFadeInExpandTransition.vue +154 -0
- package/lib/client/components/VPTimeline.vue +52 -0
- package/lib/client/components/VPTimelineItem.vue +330 -0
- package/lib/client/options.d.ts +3 -1
- package/lib/client/options.js +8 -0
- package/lib/client/styles/demo.css +2 -2
- package/lib/node/index.d.ts +40 -1
- package/lib/node/index.js +570 -359
- package/lib/shared/index.d.ts +37 -0
- package/package.json +21 -20
package/lib/client/options.js
CHANGED
|
@@ -15,8 +15,16 @@ if (installed.hlsjs) {
|
|
|
15
15
|
if (installed.mpegtsjs) {
|
|
16
16
|
ART_PLAYER_SUPPORTED_VIDEO_TYPES.push("ts", "flv");
|
|
17
17
|
}
|
|
18
|
+
var INJECT_TIMELINE_KEY = Symbol(
|
|
19
|
+
__VUEPRESS_DEV__ ? "timeline" : ""
|
|
20
|
+
);
|
|
21
|
+
var INJECT_COLLAPSE_KEY = Symbol(
|
|
22
|
+
__VUEPRESS_DEV__ ? "collapse" : ""
|
|
23
|
+
);
|
|
18
24
|
export {
|
|
19
25
|
ART_PLAYER_SUPPORTED_VIDEO_TYPES,
|
|
26
|
+
INJECT_COLLAPSE_KEY,
|
|
27
|
+
INJECT_TIMELINE_KEY,
|
|
20
28
|
installed,
|
|
21
29
|
pluginOptions
|
|
22
30
|
};
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
.vp-demo-wrapper .demo-info .title::after {
|
|
39
39
|
display: inline-block;
|
|
40
|
-
flex: 1;
|
|
40
|
+
flex: 1 2;
|
|
41
41
|
height: 0;
|
|
42
42
|
margin-left: 8px;
|
|
43
43
|
content: "";
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
|
|
66
66
|
.vp-demo-wrapper .demo-ctrl .extra {
|
|
67
67
|
display: flex;
|
|
68
|
-
flex: 1;
|
|
68
|
+
flex: 1 2;
|
|
69
69
|
gap: 16px;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: flex-start;
|
package/lib/node/index.d.ts
CHANGED
|
@@ -181,6 +181,10 @@ interface MarkdownPowerPluginOptions {
|
|
|
181
181
|
* @default false
|
|
182
182
|
*/
|
|
183
183
|
annotation?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* 是否启用 abbr 语法
|
|
186
|
+
* @default false
|
|
187
|
+
*/
|
|
184
188
|
abbr?: boolean;
|
|
185
189
|
/**
|
|
186
190
|
* 配置代码块分组
|
|
@@ -214,6 +218,39 @@ interface MarkdownPowerPluginOptions {
|
|
|
214
218
|
* @default false
|
|
215
219
|
*/
|
|
216
220
|
plot?: boolean | PlotOptions;
|
|
221
|
+
/**
|
|
222
|
+
* 是否启用 timeline 语法
|
|
223
|
+
*
|
|
224
|
+
* ```md
|
|
225
|
+
* ::: timeline
|
|
226
|
+
* - title
|
|
227
|
+
* time="Q1" icon="ri:clockwise-line" line="dashed" type="warning" color="red"
|
|
228
|
+
*
|
|
229
|
+
* xxx
|
|
230
|
+
* :::
|
|
231
|
+
* ```
|
|
232
|
+
*
|
|
233
|
+
* @default false
|
|
234
|
+
*/
|
|
235
|
+
timeline?: boolean;
|
|
236
|
+
/**
|
|
237
|
+
* 是否启用 collapse 折叠面板 语法
|
|
238
|
+
*
|
|
239
|
+
* ```md
|
|
240
|
+
* ::: collapse accordion
|
|
241
|
+
* - + title
|
|
242
|
+
*
|
|
243
|
+
* content
|
|
244
|
+
*
|
|
245
|
+
* - - title
|
|
246
|
+
*
|
|
247
|
+
* content
|
|
248
|
+
* :::
|
|
249
|
+
* ```
|
|
250
|
+
*
|
|
251
|
+
* @default false
|
|
252
|
+
*/
|
|
253
|
+
collapse?: boolean;
|
|
217
254
|
/**
|
|
218
255
|
* 是否启用 bilibili 视频嵌入
|
|
219
256
|
*
|
|
@@ -352,6 +389,8 @@ interface ArtPlayerTokenMeta extends SizeOptions {
|
|
|
352
389
|
type?: string;
|
|
353
390
|
}
|
|
354
391
|
|
|
392
|
+
declare function createCodeTabIconGetter(options?: CodeTabsOptions): (filename: string) => string | void;
|
|
393
|
+
|
|
355
394
|
interface ImgSize {
|
|
356
395
|
width: number;
|
|
357
396
|
height: number;
|
|
@@ -360,4 +399,4 @@ declare function resolveImageSize(app: App, url: string, remote?: boolean): Prom
|
|
|
360
399
|
|
|
361
400
|
declare function markdownPowerPlugin(options?: MarkdownPowerPluginOptions): Plugin;
|
|
362
401
|
|
|
363
|
-
export { type ArtPlayerTokenMeta, type BilibiliTokenMeta, type CanIUseMode, type CanIUseOptions, type CanIUseTokenMeta, type CodeSandboxTokenMeta, type CodeTabsOptions, type CodepenTokenMeta, type DemoContainerRender, type DemoFile, type DemoMeta, type FileTreeIconMode, type FileTreeOptions, type IconsOptions, type JSFiddleTokenMeta, type MarkdownDemoEnv, type MarkdownPowerPluginOptions, type NpmToOptions, type NpmToPackageManager, type PDFEmbedType, type PDFOptions, type PDFTokenMeta, type PlotOptions, type ReplEditorData, type ReplOptions, type ReplitTokenMeta, type SizeOptions, type ThemeOptions, type VideoOptions, type YoutubeTokenMeta, markdownPowerPlugin, resolveImageSize };
|
|
402
|
+
export { type ArtPlayerTokenMeta, type BilibiliTokenMeta, type CanIUseMode, type CanIUseOptions, type CanIUseTokenMeta, type CodeSandboxTokenMeta, type CodeTabsOptions, type CodepenTokenMeta, type DemoContainerRender, type DemoFile, type DemoMeta, type FileTreeIconMode, type FileTreeOptions, type IconsOptions, type JSFiddleTokenMeta, type MarkdownDemoEnv, type MarkdownPowerPluginOptions, type NpmToOptions, type NpmToPackageManager, type PDFEmbedType, type PDFOptions, type PDFTokenMeta, type PlotOptions, type ReplEditorData, type ReplOptions, type ReplitTokenMeta, type SizeOptions, type ThemeOptions, type VideoOptions, type YoutubeTokenMeta, createCodeTabIconGetter, markdownPowerPlugin, resolveImageSize };
|