@ox-content/unplugin 2.81.0 → 2.82.1
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/esbuild.d.mts +2 -4
- package/dist/index.d.mts +4 -4
- package/dist/index2.d.mts +1 -1
- package/dist/rollup.d.mts +2 -4
- package/dist/rspack.d.mts +1 -2
- package/dist/src.mjs +1 -1
- package/dist/vite.d.mts +2 -4
- package/dist/webpack.d.mts +2 -4
- package/package.json +15 -15
package/dist/esbuild.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
3
|
-
|
|
4
2
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options?: OxContentOptions | undefined) =>
|
|
3
|
+
declare const _default: (options?: OxContentOptions | undefined) => import("unplugin").EsbuildPlugin;
|
|
6
4
|
//#endregion
|
|
7
|
-
export { DocsConfig, MarkdownItPlugin, MdastNode, MdastPlugin, MdastPluginContext, MdastRoot, MdastTransformer, OxContentMdastOptions, OxContentMdastPlugin, OxContentOptions, OxContentPlugin, PluginConfig, RehypePlugin, RemarkPlugin, ResolvedDocsConfig, ResolvedOptions, TocEntry, TransformResult, UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
|
5
|
+
export { type DocsConfig, type MarkdownItPlugin, type MdastNode, type MdastPlugin, type MdastPluginContext, type MdastRoot, type MdastTransformer, type OxContentMdastOptions, type OxContentMdastPlugin, type OxContentOptions, type OxContentPlugin, type PluginConfig, type RehypePlugin, type RemarkPlugin, type ResolvedDocsConfig, type ResolvedOptions, type TocEntry, type TransformResult, type UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as _$unplugin from "unplugin";
|
|
2
|
-
import MarkdownIt from "markdown-it";
|
|
3
|
-
|
|
4
1
|
//#region src/types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Type definitions for @ox-content/unplugin
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
6
|
* Markdown-it plugin function type.
|
|
7
7
|
*/
|
|
@@ -509,6 +509,6 @@ declare function createMdastPluginContext(filePath: string, source: string, fron
|
|
|
509
509
|
/**
|
|
510
510
|
* The unplugin instance.
|
|
511
511
|
*/
|
|
512
|
-
declare const unplugin:
|
|
512
|
+
declare const unplugin: import("unplugin").UnpluginInstance<OxContentOptions | undefined, boolean>;
|
|
513
513
|
//#endregion
|
|
514
514
|
export { ResolvedDocsConfig as C, UnifiedPreset as D, TransformResult as E, RemarkPlugin as S, TocEntry as T, OxContentMdastPlugin as _, extractTocFromMdast as a, PluginConfig as b, toUnifiedMdastPlugin as c, MarkdownItPlugin as d, MdastNode as f, MdastTransformer as g, MdastRoot as h, defineMdastPlugin as i, transformMarkdown as l, MdastPluginContext as m, OxContentMdastOptions as n, oxContentMdast as o, MdastPlugin as p, createMdastPluginContext as r, parseMarkdownToMdast as s, unplugin as t, DocsConfig as u, OxContentOptions as v, ResolvedOptions as w, RehypePlugin as x, OxContentPlugin as y };
|
package/dist/index2.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
|
|
2
|
-
export { DocsConfig, MarkdownItPlugin, MdastNode, MdastPlugin, MdastPluginContext, MdastRoot, MdastTransformer, OxContentMdastOptions, OxContentMdastPlugin, OxContentOptions, OxContentPlugin, PluginConfig, RehypePlugin, RemarkPlugin, ResolvedDocsConfig, ResolvedOptions, TocEntry, TransformResult, UnifiedPreset, createMdastPluginContext, unplugin as default, unplugin, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown };
|
|
2
|
+
export { type DocsConfig, type MarkdownItPlugin, type MdastNode, type MdastPlugin, type MdastPluginContext, type MdastRoot, type MdastTransformer, type OxContentMdastOptions, type OxContentMdastPlugin, type OxContentOptions, type OxContentPlugin, type PluginConfig, type RehypePlugin, type RemarkPlugin, type ResolvedDocsConfig, type ResolvedOptions, type TocEntry, type TransformResult, type UnifiedPreset, createMdastPluginContext, unplugin as default, unplugin, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown };
|
package/dist/rollup.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
3
|
-
|
|
4
2
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options?: OxContentOptions | undefined) =>
|
|
3
|
+
declare const _default: (options?: OxContentOptions | undefined) => import("unplugin").RollupPlugin<any>[] | import("unplugin").RollupPlugin<any>;
|
|
6
4
|
//#endregion
|
|
7
|
-
export { DocsConfig, MarkdownItPlugin, MdastNode, MdastPlugin, MdastPluginContext, MdastRoot, MdastTransformer, OxContentMdastOptions, OxContentMdastPlugin, OxContentOptions, OxContentPlugin, PluginConfig, RehypePlugin, RemarkPlugin, ResolvedDocsConfig, ResolvedOptions, TocEntry, TransformResult, UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
|
5
|
+
export { type DocsConfig, type MarkdownItPlugin, type MdastNode, type MdastPlugin, type MdastPluginContext, type MdastRoot, type MdastTransformer, type OxContentMdastOptions, type OxContentMdastPlugin, type OxContentOptions, type OxContentPlugin, type PluginConfig, type RehypePlugin, type RemarkPlugin, type ResolvedDocsConfig, type ResolvedOptions, type TocEntry, type TransformResult, type UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
package/dist/rspack.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/rspack.d.ts
|
|
4
3
|
declare const _default: (options?: OxContentOptions | undefined) => RspackPluginInstance;
|
|
5
4
|
//#endregion
|
|
6
|
-
export { DocsConfig, MarkdownItPlugin, MdastNode, MdastPlugin, MdastPluginContext, MdastRoot, MdastTransformer, OxContentMdastOptions, OxContentMdastPlugin, OxContentOptions, OxContentPlugin, PluginConfig, RehypePlugin, RemarkPlugin, ResolvedDocsConfig, ResolvedOptions, TocEntry, TransformResult, UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
|
5
|
+
export { type DocsConfig, type MarkdownItPlugin, type MdastNode, type MdastPlugin, type MdastPluginContext, type MdastRoot, type MdastTransformer, type OxContentMdastOptions, type OxContentMdastPlugin, type OxContentOptions, type OxContentPlugin, type PluginConfig, type RehypePlugin, type RemarkPlugin, type ResolvedDocsConfig, type ResolvedOptions, type TocEntry, type TransformResult, type UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
package/dist/src.mjs
CHANGED
|
@@ -1312,6 +1312,6 @@ const unpluginFactory = (rawOptions = {}) => {
|
|
|
1312
1312
|
/**
|
|
1313
1313
|
* The unplugin instance.
|
|
1314
1314
|
*/
|
|
1315
|
-
const unplugin = /*
|
|
1315
|
+
const unplugin = /* #__PURE__ */ createUnplugin(unpluginFactory);
|
|
1316
1316
|
//#endregion
|
|
1317
1317
|
export { extractTocFromMdast as a, toUnifiedMdastPlugin as c, defineMdastPlugin as i, transformMarkdown as n, oxContentMdast as o, createMdastPluginContext as r, parseMarkdownToMdast as s, unplugin as t };
|
package/dist/vite.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
3
|
-
|
|
4
2
|
//#region src/vite.d.ts
|
|
5
|
-
declare const _default: (options?: OxContentOptions | undefined) =>
|
|
3
|
+
declare const _default: (options?: OxContentOptions | undefined) => import("unplugin").VitePlugin<any>[] | import("unplugin").VitePlugin<any>;
|
|
6
4
|
//#endregion
|
|
7
|
-
export { DocsConfig, MarkdownItPlugin, MdastNode, MdastPlugin, MdastPluginContext, MdastRoot, MdastTransformer, OxContentMdastOptions, OxContentMdastPlugin, OxContentOptions, OxContentPlugin, PluginConfig, RehypePlugin, RemarkPlugin, ResolvedDocsConfig, ResolvedOptions, TocEntry, TransformResult, UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
|
5
|
+
export { type DocsConfig, type MarkdownItPlugin, type MdastNode, type MdastPlugin, type MdastPluginContext, type MdastRoot, type MdastTransformer, type OxContentMdastOptions, type OxContentMdastPlugin, type OxContentOptions, type OxContentPlugin, type PluginConfig, type RehypePlugin, type RemarkPlugin, type ResolvedDocsConfig, type ResolvedOptions, type TocEntry, type TransformResult, type UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
package/dist/webpack.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { C as ResolvedDocsConfig, D as UnifiedPreset, E as TransformResult, S as RemarkPlugin, T as TocEntry, _ as OxContentMdastPlugin, a as extractTocFromMdast, b as PluginConfig, c as toUnifiedMdastPlugin, d as MarkdownItPlugin, f as MdastNode, g as MdastTransformer, h as MdastRoot, i as defineMdastPlugin, l as transformMarkdown, m as MdastPluginContext, n as OxContentMdastOptions, o as oxContentMdast, p as MdastPlugin, r as createMdastPluginContext, s as parseMarkdownToMdast, t as unplugin, u as DocsConfig, v as OxContentOptions, w as ResolvedOptions, x as RehypePlugin, y as OxContentPlugin } from "./index.mjs";
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
3
|
-
|
|
4
2
|
//#region src/webpack.d.ts
|
|
5
|
-
declare const _default: (options?: OxContentOptions | undefined) =>
|
|
3
|
+
declare const _default: (options?: OxContentOptions | undefined) => import("unplugin").WebpackPluginInstance;
|
|
6
4
|
//#endregion
|
|
7
|
-
export { DocsConfig, MarkdownItPlugin, MdastNode, MdastPlugin, MdastPluginContext, MdastRoot, MdastTransformer, OxContentMdastOptions, OxContentMdastPlugin, OxContentOptions, OxContentPlugin, PluginConfig, RehypePlugin, RemarkPlugin, ResolvedDocsConfig, ResolvedOptions, TocEntry, TransformResult, UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
|
5
|
+
export { type DocsConfig, type MarkdownItPlugin, type MdastNode, type MdastPlugin, type MdastPluginContext, type MdastRoot, type MdastTransformer, type OxContentMdastOptions, type OxContentMdastPlugin, type OxContentOptions, type OxContentPlugin, type PluginConfig, type RehypePlugin, type RemarkPlugin, type ResolvedDocsConfig, type ResolvedOptions, type TocEntry, type TransformResult, type UnifiedPreset, createMdastPluginContext, _default as default, defineMdastPlugin, extractTocFromMdast, oxContentMdast, parseMarkdownToMdast, toUnifiedMdastPlugin, transformMarkdown, unplugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ox-content/unplugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.82.1",
|
|
4
4
|
"description": "Universal plugin for Ox Content - Markdown processing for webpack, rollup, esbuild, vite, and more",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"esbuild",
|
|
@@ -55,23 +55,23 @@
|
|
|
55
55
|
"provenance": true
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@rollup/pluginutils": "^5.
|
|
59
|
-
"markdown-it": "^
|
|
60
|
-
"markdown-it-anchor": "^9.2.
|
|
58
|
+
"@rollup/pluginutils": "^5.4.0",
|
|
59
|
+
"markdown-it": "^15.0.0",
|
|
60
|
+
"markdown-it-anchor": "^9.2.1",
|
|
61
61
|
"rehype-parse": "^9.0.1",
|
|
62
62
|
"rehype-remark": "^10.0.1",
|
|
63
63
|
"rehype-stringify": "^10.0.1",
|
|
64
64
|
"remark-parse": "^11.0.0",
|
|
65
65
|
"remark-rehype": "^11.1.1",
|
|
66
66
|
"unified": "^11.0.5",
|
|
67
|
-
"unplugin": "^3.
|
|
68
|
-
"@ox-content/napi": "2.
|
|
67
|
+
"unplugin": "^3.3.0",
|
|
68
|
+
"@ox-content/napi": "2.82.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@types/markdown-it": "^14.1.2",
|
|
72
|
-
"@types/node": "^
|
|
73
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
74
|
-
"esbuild": "^0.
|
|
72
|
+
"@types/node": "^26.1.2",
|
|
73
|
+
"@typescript/native-preview": "^7.0.0-dev.20260707.2",
|
|
74
|
+
"esbuild": "^0.28.1",
|
|
75
75
|
"rehype-autolink-headings": "^7.1.0",
|
|
76
76
|
"rehype-external-links": "^3.0.0",
|
|
77
77
|
"rehype-katex": "^7.0.1",
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
"remark-frontmatter": "^5.0.0",
|
|
83
83
|
"remark-gfm": "^4.0.1",
|
|
84
84
|
"remark-math": "^6.0.0",
|
|
85
|
-
"remark-smartypants": "^3.0.
|
|
85
|
+
"remark-smartypants": "^3.0.3",
|
|
86
86
|
"remark-toc": "^9.0.0",
|
|
87
|
-
"rollup": "^4.
|
|
88
|
-
"typescript": "^
|
|
89
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.
|
|
90
|
-
"vite-plus": "0.
|
|
91
|
-
"webpack": "^5.
|
|
87
|
+
"rollup": "^4.62.4",
|
|
88
|
+
"typescript": "^7.0.2",
|
|
89
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.8",
|
|
90
|
+
"vite-plus": "0.2.8",
|
|
91
|
+
"webpack": "^5.109.2"
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
|
94
94
|
"build": "vp pack",
|