@xyd-js/content 0.0.0-build-7c0274d-20251004231821 → 0.0.0-build-ae5d7ac-20251012020134
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/CHANGELOG.md +7 -7
- package/dist/md.d.ts +4 -31
- package/dist/md.js.map +1 -1
- package/dist/vite.js.map +1 -1
- package/package.json +7 -7
- package/packages/md/index.ts +6 -1
- package/packages/md/plugins/index.ts +6 -5
- package/packages/md/plugins/mdToc.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @xyd-js/content
|
|
2
2
|
|
|
3
|
-
## 0.0.0-build-
|
|
3
|
+
## 0.0.0-build-ae5d7ac-20251012020134
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- update all packages
|
|
8
8
|
- Updated dependencies
|
|
9
|
-
- @xyd-js/components@0.0.0-build-
|
|
10
|
-
- @xyd-js/context@0.0.0-build-
|
|
11
|
-
- @xyd-js/core@0.0.0-build-
|
|
12
|
-
- @xyd-js/gql@0.0.0-build-
|
|
13
|
-
- @xyd-js/openapi@0.0.0-build-
|
|
14
|
-
- @xyd-js/sources@0.0.0-build-
|
|
9
|
+
- @xyd-js/components@0.0.0-build-ae5d7ac-20251012020134
|
|
10
|
+
- @xyd-js/context@0.0.0-build-ae5d7ac-20251012020134
|
|
11
|
+
- @xyd-js/core@0.0.0-build-ae5d7ac-20251012020134
|
|
12
|
+
- @xyd-js/gql@0.0.0-build-ae5d7ac-20251012020134
|
|
13
|
+
- @xyd-js/openapi@0.0.0-build-ae5d7ac-20251012020134
|
|
14
|
+
- @xyd-js/sources@0.0.0-build-ae5d7ac-20251012020134
|
package/dist/md.d.ts
CHANGED
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
import * as vfile from 'vfile';
|
|
2
|
-
import { VFile } from 'vfile';
|
|
3
|
-
import * as unist from 'unist';
|
|
4
|
-
import * as remark_math from 'remark-math';
|
|
5
|
-
import * as remark_gfm from 'remark-gfm';
|
|
6
|
-
import * as unified from 'unified';
|
|
7
|
-
import * as mdast from 'mdast';
|
|
8
|
-
import * as remark_mdx_frontmatter from 'remark-mdx-frontmatter';
|
|
9
|
-
import * as remark_frontmatter from 'remark-frontmatter';
|
|
10
1
|
import { Settings } from '@xyd-js/core';
|
|
2
|
+
import { Plugin } from 'unified';
|
|
11
3
|
import { R as RemarkMdxTocOptions } from './mdToc-NBBxMJ4l.js';
|
|
12
4
|
|
|
13
|
-
declare function recmaOverrideComponents(): (tree: any) => void;
|
|
14
|
-
|
|
15
|
-
type OutputVars<T extends Record<string, any>> = {
|
|
16
|
-
[K in keyof T]: T[K];
|
|
17
|
-
};
|
|
18
|
-
interface SymbolxVfile<T extends Record<string, any>> extends VFile {
|
|
19
|
-
data: {
|
|
20
|
-
outputVars?: OutputVars<T>;
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Common options for all function plugins
|
|
27
|
-
*/
|
|
28
|
-
interface FunctionOptions {
|
|
29
|
-
resolveFrom?: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
5
|
interface DocSectionSchema {
|
|
33
6
|
/**
|
|
34
7
|
* Id of the page e.g. "getting-started"
|
|
@@ -64,9 +37,9 @@ declare function mapSettingsToDocSections(xydSettings: Settings): Promise<DocSec
|
|
|
64
37
|
|
|
65
38
|
declare function markdownPlugins(toc: RemarkMdxTocOptions, // TODO: unify this cuz it should come from core -global settings and toc options?
|
|
66
39
|
settings?: Settings): Promise<{
|
|
67
|
-
remarkPlugins:
|
|
68
|
-
rehypePlugins:
|
|
69
|
-
recmaPlugins:
|
|
40
|
+
remarkPlugins: Plugin[];
|
|
41
|
+
rehypePlugins: Plugin[];
|
|
42
|
+
recmaPlugins: Plugin[];
|
|
70
43
|
}>;
|
|
71
44
|
|
|
72
45
|
export { type DocSectionSchema, RemarkMdxTocOptions, mapSettingsToDocSections, markdownPlugins };
|