@douyinfe/semi-foundation 2.67.0 → 2.67.1-alpha.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.
@@ -16,7 +16,7 @@ export interface MarkdownRenderBaseState {
16
16
  }
17
17
  declare class MarkdownRenderFoundation extends BaseFoundation<MarkdownRenderAdapter> {
18
18
  private getOptions;
19
- compile: (mdxRaw: string) => Promise<import("vfile").VFile>;
19
+ compile: (mdxRaw: string) => Promise<any>;
20
20
  evaluate: (mdxRaw: string) => Promise<import("mdx/types").MDXContent>;
21
21
  evaluateSync: (mdxRaw: string) => import("mdx/types").MDXContent;
22
22
  }
@@ -16,7 +16,7 @@ export interface MarkdownRenderBaseState {
16
16
  }
17
17
  declare class MarkdownRenderFoundation extends BaseFoundation<MarkdownRenderAdapter> {
18
18
  private getOptions;
19
- compile: (mdxRaw: string) => Promise<import("vfile").VFile>;
19
+ compile: (mdxRaw: string) => Promise<any>;
20
20
  evaluate: (mdxRaw: string) => Promise<import("mdx/types").MDXContent>;
21
21
  evaluateSync: (mdxRaw: string) => import("mdx/types").MDXContent;
22
22
  }
@@ -26,7 +26,7 @@ export interface MarkdownRenderBaseState{
26
26
 
27
27
  class MarkdownRenderFoundation extends BaseFoundation<MarkdownRenderAdapter> {
28
28
 
29
- private getOptions = ()=>{
29
+ private getOptions = () => {
30
30
  return {
31
31
  evaluateOptions: {
32
32
  remarkPlugins: [remarkGfm, ...(this.getProp("remarkPlugins") ?? [])],
@@ -47,11 +47,11 @@ class MarkdownRenderFoundation extends BaseFoundation<MarkdownRenderAdapter> {
47
47
  };
48
48
  }
49
49
 
50
- compile = async (mdxRaw: string)=>{
50
+ compile = async (mdxRaw: string): Promise<any> => {
51
51
  return await compile(mdxRaw, this.getOptions().compileOptions);
52
52
  }
53
53
 
54
- evaluate = async (mdxRaw: string)=>{
54
+ evaluate = async (mdxRaw: string) => {
55
55
  return (await evaluate(mdxRaw, {
56
56
  ...this.getOptions().runOptions,
57
57
  ...this.getOptions().evaluateOptions,
@@ -59,7 +59,7 @@ class MarkdownRenderFoundation extends BaseFoundation<MarkdownRenderAdapter> {
59
59
  })).default;
60
60
  }
61
61
 
62
- evaluateSync = (mdxRaw: string)=>{
62
+ evaluateSync = (mdxRaw: string) => {
63
63
  return ( evaluateSync(mdxRaw, {
64
64
  ...this.getOptions().runOptions,
65
65
  ...this.getOptions().evaluateOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-foundation",
3
- "version": "2.67.0",
3
+ "version": "2.67.1-alpha.1",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build:lib": "node ./scripts/compileLib.js",
@@ -19,7 +19,8 @@
19
19
  "memoize-one": "^5.2.1",
20
20
  "prismjs": "^1.29.0",
21
21
  "remark-gfm": "^4.0.0",
22
- "scroll-into-view-if-needed": "^2.2.24"
22
+ "scroll-into-view-if-needed": "^2.2.24",
23
+ "vfile": "6.0.1"
23
24
  },
24
25
  "keywords": [],
25
26
  "author": "",
@@ -28,7 +29,7 @@
28
29
  "*.scss",
29
30
  "*.css"
30
31
  ],
31
- "gitHead": "e3d492cb6bf73316034b31c10565dd6cbb71b21a",
32
+ "gitHead": "b3a26a64e2e87324ab8c7d8cf26926e65ee2bdf6",
32
33
  "devDependencies": {
33
34
  "@babel/plugin-transform-runtime": "^7.15.8",
34
35
  "@babel/preset-env": "^7.15.8",