@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 CHANGED
@@ -1,14 +1,14 @@
1
1
  # @xyd-js/content
2
2
 
3
- ## 0.0.0-build-7c0274d-20251004231821
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-7c0274d-20251004231821
10
- - @xyd-js/context@0.0.0-build-7c0274d-20251004231821
11
- - @xyd-js/core@0.0.0-build-7c0274d-20251004231821
12
- - @xyd-js/gql@0.0.0-build-7c0274d-20251004231821
13
- - @xyd-js/openapi@0.0.0-build-7c0274d-20251004231821
14
- - @xyd-js/sources@0.0.0-build-7c0274d-20251004231821
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: (typeof remark_frontmatter.default | unified.Plugin<[(remark_mdx_frontmatter.RemarkMdxFrontmatterOptions | undefined)?], mdast.Root, mdast.Root> | typeof remark_gfm.default | typeof remark_math.default | unified.Plugin<[], unist.Node, unist.Node> | ((options?: FunctionOptions) => (tree: any, file: vfile.VFile) => Promise<void>) | (() => (tree: mdast.Root, file: SymbolxVfile<any>) => Promise<void>))[];
68
- rehypePlugins: any[];
69
- recmaPlugins: typeof recmaOverrideComponents[];
40
+ remarkPlugins: Plugin[];
41
+ rehypePlugins: Plugin[];
42
+ recmaPlugins: Plugin[];
70
43
  }>;
71
44
 
72
45
  export { type DocSectionSchema, RemarkMdxTocOptions, mapSettingsToDocSections, markdownPlugins };