vitepress-plugin-field 0.2.0 → 0.3.0
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/dist/client/ssr/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, defineComponent, mergeProps, useSSRContext } from "vue";
|
|
2
2
|
import { ssrInterpolate, ssrRenderAttrs, ssrRenderClass, ssrRenderSlot } from "vue/server-renderer";
|
|
3
3
|
//#region src/client/VPField.vue
|
|
4
|
-
const _sfc_main =
|
|
4
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
5
5
|
__name: "VPField",
|
|
6
6
|
__ssrInlineRender: true,
|
|
7
7
|
props: {
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PluginSimple } from "markdown-it";
|
|
2
2
|
|
|
3
|
-
//#region src/node/
|
|
4
|
-
declare const
|
|
3
|
+
//#region src/node/plugin.d.ts
|
|
4
|
+
declare const field: (options?: unknown) => import("vitepress-tuck").VitepressPlugin;
|
|
5
5
|
//#endregion
|
|
6
|
-
//#region src/node/
|
|
7
|
-
declare const
|
|
6
|
+
//#region src/node/markdown.d.ts
|
|
7
|
+
declare const fieldMarkdownPlugin: PluginSimple;
|
|
8
8
|
//#endregion
|
|
9
|
-
export {
|
|
9
|
+
export { field as default, field, fieldMarkdownPlugin };
|
package/dist/node/index.js
CHANGED
|
@@ -104,7 +104,7 @@ function parseFieldContent(content, info) {
|
|
|
104
104
|
return result;
|
|
105
105
|
}
|
|
106
106
|
//#endregion
|
|
107
|
-
//#region src/node/
|
|
107
|
+
//#region src/node/markdown.ts
|
|
108
108
|
const fieldMarkdownPlugin = (md) => {
|
|
109
109
|
createContainerPlugin(md, "field-group", { before: () => "<div class=\"vp-field-group\">" });
|
|
110
110
|
createContainerSyntaxPlugin(md, "field", (tokens, idx, _, env) => {
|
|
@@ -114,8 +114,8 @@ const fieldMarkdownPlugin = (md) => {
|
|
|
114
114
|
});
|
|
115
115
|
};
|
|
116
116
|
//#endregion
|
|
117
|
-
//#region src/node/
|
|
118
|
-
|
|
117
|
+
//#region src/node/plugin.ts
|
|
118
|
+
const field = definePlugin(() => ({
|
|
119
119
|
name: "vitepress-plugin-field",
|
|
120
120
|
client: { enhance: "enhanceAppWithField" },
|
|
121
121
|
markdown: { config(md) {
|
|
@@ -123,4 +123,7 @@ var node_default = definePlugin(() => ({
|
|
|
123
123
|
} }
|
|
124
124
|
}));
|
|
125
125
|
//#endregion
|
|
126
|
-
|
|
126
|
+
//#region src/node/index.ts
|
|
127
|
+
var node_default = field;
|
|
128
|
+
//#endregion
|
|
129
|
+
export { node_default as default, field, fieldMarkdownPlugin };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitepress-plugin-field",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"description": "Render structured API fields and properties documentation in your VitePress site.",
|
|
6
6
|
"author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@pengzhanbo/utils": "^3.7.3",
|
|
37
|
-
"vitepress-plugin-toolkit": "0.
|
|
38
|
-
"vitepress-tuck": "0.
|
|
37
|
+
"vitepress-plugin-toolkit": "0.3.0",
|
|
38
|
+
"vitepress-tuck": "0.3.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public",
|