完成世界书、骰子、apiconfig页面处理
This commit is contained in:
161
frontend/node_modules/mdast-util-mdx-expression/index.d.ts
generated
vendored
Normal file
161
frontend/node_modules/mdast-util-mdx-expression/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
import type {Program} from 'estree-jsx'
|
||||
import type {Data as HastData, Literal as HastLiteral} from 'hast'
|
||||
import type {Data as MdastData, Literal as MdastLiteral} from 'mdast'
|
||||
|
||||
export {
|
||||
mdxExpressionFromMarkdown,
|
||||
mdxExpressionToMarkdown
|
||||
} from './lib/index.js'
|
||||
|
||||
/**
|
||||
* MDX expression node, occurring in flow (block).
|
||||
*/
|
||||
export interface MdxFlowExpression extends MdastLiteral {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxFlowExpression'
|
||||
|
||||
/**
|
||||
* Data associated with the mdast MDX expression (flow).
|
||||
*/
|
||||
data?: MdxFlowExpressionData | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Info associated with mdast MDX expression (flow) nodes by the ecosystem.
|
||||
*/
|
||||
export interface MdxFlowExpressionData extends MdastData {
|
||||
/**
|
||||
* Program node from estree.
|
||||
*/
|
||||
estree?: Program | null | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* MDX expression node, occurring in text (phrasing).
|
||||
*/
|
||||
export interface MdxTextExpression extends MdastLiteral {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxTextExpression'
|
||||
|
||||
/**
|
||||
* Data associated with the mdast MDX expression (text).
|
||||
*/
|
||||
data?: MdxTextExpressionData | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Info associated with mdast MDX expression (text) nodes by the ecosystem.
|
||||
*/
|
||||
export interface MdxTextExpressionData extends MdastData {
|
||||
/**
|
||||
* Program node from estree.
|
||||
*/
|
||||
estree?: Program | null | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* MDX expression node, occurring in flow (block), for hast.
|
||||
*/
|
||||
export interface MdxFlowExpressionHast extends HastLiteral {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxFlowExpression'
|
||||
|
||||
/**
|
||||
* Data associated with the hast MDX expression (flow).
|
||||
*/
|
||||
data?: MdxFlowExpressionHastData | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Info associated with hast MDX expression (flow) nodes by the ecosystem.
|
||||
*/
|
||||
export interface MdxFlowExpressionHastData extends HastData {
|
||||
/**
|
||||
* Program node from estree.
|
||||
*/
|
||||
estree?: Program | null | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* MDX expression node, occurring in text (phrasing), for hast.
|
||||
*/
|
||||
export interface MdxTextExpressionHast extends HastLiteral {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxTextExpression'
|
||||
|
||||
/**
|
||||
* Data associated with the hast MDX expression (text).
|
||||
*/
|
||||
data?: MdxTextExpressionHastData | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Info associated with hast MDX expression (text) nodes by the ecosystem.
|
||||
*/
|
||||
export interface MdxTextExpressionHastData extends HastData {
|
||||
/**
|
||||
* Program node from estree.
|
||||
*/
|
||||
estree?: Program | null | undefined
|
||||
}
|
||||
|
||||
// Add nodes to mdast content.
|
||||
declare module 'mdast' {
|
||||
interface RootContentMap {
|
||||
/**
|
||||
* MDX expression node, occurring in text (phrasing).
|
||||
*/
|
||||
mdxTextExpression: MdxTextExpression
|
||||
/**
|
||||
* MDX expression node, occurring in flow (block).
|
||||
*/
|
||||
mdxFlowExpression: MdxFlowExpression
|
||||
}
|
||||
|
||||
interface PhrasingContentMap {
|
||||
/**
|
||||
* MDX expression node, occurring in text (phrasing).
|
||||
*/
|
||||
mdxTextExpression: MdxTextExpression
|
||||
}
|
||||
|
||||
interface BlockContentMap {
|
||||
/**
|
||||
* MDX expression node, occurring in flow (block).
|
||||
*/
|
||||
mdxFlowExpression: MdxFlowExpression
|
||||
}
|
||||
}
|
||||
|
||||
// Add nodes to hast content.
|
||||
declare module 'hast' {
|
||||
interface RootContentMap {
|
||||
/**
|
||||
* MDX expression node, occurring in flow (block).
|
||||
*/
|
||||
mdxFlowExpression: MdxFlowExpressionHast
|
||||
/**
|
||||
* MDX expression node, occurring in text (phrasing).
|
||||
*/
|
||||
mdxTextExpression: MdxTextExpressionHast
|
||||
}
|
||||
|
||||
interface ElementContentMap {
|
||||
/**
|
||||
* MDX expression node, occurring in flow (block).
|
||||
*/
|
||||
mdxFlowExpression: MdxFlowExpressionHast
|
||||
/**
|
||||
* MDX expression node, occurring in text (phrasing).
|
||||
*/
|
||||
mdxTextExpression: MdxTextExpressionHast
|
||||
}
|
||||
}
|
||||
1
frontend/node_modules/mdast-util-mdx-expression/lib/index.d.ts.map
generated
vendored
Normal file
1
frontend/node_modules/mdast-util-mdx-expression/lib/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AASA;;;;;;;;;GASG;AACH,6CAHa,qBAAqB,CAgBjC;AAED;;;;;;GAMG;AACH,2CAHa,mBAAmB,CAc/B;wDAnDkG,0BAA0B;oDAEzC,wBAAwB"}
|
||||
22
frontend/node_modules/mdast-util-mdx-expression/license
generated
vendored
Normal file
22
frontend/node_modules/mdast-util-mdx-expression/license
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2020 Titus Wormer <tituswormer@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
Reference in New Issue
Block a user