mdast-util-mdx-expression
Advanced tools
Comparing version 1.1.1 to 1.2.0
import {Literal} from 'mdast' | ||
import {Program} from 'estree-jsx' | ||
export interface MDXFlowExpression extends Literal { | ||
export interface MdxFlowExpression extends Literal { | ||
type: 'mdxFlowExpression' | ||
@@ -11,3 +11,3 @@ data?: { | ||
export interface MDXTextExpression extends Literal { | ||
export interface MdxTextExpression extends Literal { | ||
type: 'mdxTextExpression' | ||
@@ -21,8 +21,20 @@ data?: { | ||
interface StaticPhrasingContentMap { | ||
mdxTextExpression: MDXTextExpression | ||
mdxTextExpression: MdxTextExpression | ||
} | ||
interface BlockContentMap { | ||
mdxFlowExpression: MDXFlowExpression | ||
mdxFlowExpression: MdxFlowExpression | ||
} | ||
} | ||
declare module 'hast' { | ||
interface RootContentMap { | ||
mdxTextExpression: MdxTextExpression | ||
mdxFlowExpression: MdxFlowExpression | ||
} | ||
interface ElementContentMap { | ||
mdxFlowExpression: MdxFlowExpression | ||
mdxFlowExpression: MdxFlowExpression | ||
} | ||
} |
@@ -7,5 +7,9 @@ /** | ||
* @typedef {import('estree-jsx').Program} Program | ||
* @typedef {import('./complex-types').MDXFlowExpression} MDXFlowExpression | ||
* @typedef {import('./complex-types').MDXTextExpression} MDXTextExpression | ||
* @typedef {import('./complex-types').MdxFlowExpression} MdxFlowExpression | ||
* @typedef {import('./complex-types').MdxTextExpression} MdxTextExpression | ||
*/ | ||
/** | ||
* @typedef {MdxFlowExpression} MDXFlowExpression | ||
* @typedef {MdxTextExpression} MDXTextExpression | ||
*/ | ||
/** @type {FromMarkdownExtension} */ | ||
@@ -20,3 +24,5 @@ export const mdxExpressionFromMarkdown: FromMarkdownExtension | ||
export type Program = import('estree-jsx').Program | ||
export type MDXFlowExpression = import('./complex-types').MDXFlowExpression | ||
export type MDXTextExpression = import('./complex-types').MDXTextExpression | ||
export type MdxFlowExpression = import('./complex-types').MdxFlowExpression | ||
export type MdxTextExpression = import('./complex-types').MdxTextExpression | ||
export type MDXFlowExpression = MdxFlowExpression | ||
export type MDXTextExpression = MdxTextExpression |
@@ -7,6 +7,11 @@ /** | ||
* @typedef {import('estree-jsx').Program} Program | ||
* @typedef {import('./complex-types').MDXFlowExpression} MDXFlowExpression | ||
* @typedef {import('./complex-types').MDXTextExpression} MDXTextExpression | ||
* @typedef {import('./complex-types').MdxFlowExpression} MdxFlowExpression | ||
* @typedef {import('./complex-types').MdxTextExpression} MdxTextExpression | ||
*/ | ||
/** | ||
* @typedef {MdxFlowExpression} MDXFlowExpression | ||
* @typedef {MdxTextExpression} MDXTextExpression | ||
*/ | ||
/** @type {FromMarkdownExtension} */ | ||
@@ -13,0 +18,0 @@ export const mdxExpressionFromMarkdown = { |
{ | ||
"name": "mdast-util-mdx-expression", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "mdast extension to parse and serialize MDX (or MDX.js) expressions", | ||
@@ -39,3 +39,7 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/estree-jsx": "^0.0.1" | ||
"@types/estree-jsx": "^0.0.1", | ||
"@types/hast": "^2.0.0", | ||
"@types/mdast": "^3.0.0", | ||
"mdast-util-from-markdown": "^1.0.0", | ||
"mdast-util-to-markdown": "^1.0.0" | ||
}, | ||
@@ -47,4 +51,2 @@ "devDependencies": { | ||
"c8": "^7.0.0", | ||
"mdast-util-from-markdown": "^1.0.0", | ||
"mdast-util-to-markdown": "^1.0.0", | ||
"micromark-extension-mdx-expression": "^1.0.0", | ||
@@ -59,3 +61,3 @@ "prettier": "^2.0.0", | ||
"unist-util-remove-position": "^4.0.0", | ||
"xo": "^0.44.0" | ||
"xo": "^0.47.0" | ||
}, | ||
@@ -62,0 +64,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15856
14
132
5
+ Added@types/hast@^2.0.0
+ Added@types/mdast@^3.0.0
+ Added@types/debug@4.1.12(transitive)
+ Added@types/hast@2.3.10(transitive)
+ Added@types/mdast@3.0.15(transitive)
+ Added@types/ms@0.7.34(transitive)
+ Added@types/unist@2.0.11(transitive)
+ Addedcharacter-entities@2.0.2(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddecode-named-character-reference@1.0.2(transitive)
+ Addeddequal@2.0.3(transitive)
+ Addeddiff@5.2.0(transitive)
+ Addedkleur@4.1.5(transitive)
+ Addedlongest-streak@3.1.0(transitive)
+ Addedmdast-util-from-markdown@1.3.1(transitive)
+ Addedmdast-util-phrasing@3.0.1(transitive)
+ Addedmdast-util-to-markdown@1.5.0(transitive)
+ Addedmdast-util-to-string@3.2.0(transitive)
+ Addedmicromark@3.2.0(transitive)
+ Addedmicromark-core-commonmark@1.1.0(transitive)
+ Addedmicromark-factory-destination@1.1.0(transitive)
+ Addedmicromark-factory-label@1.1.0(transitive)
+ Addedmicromark-factory-space@1.1.0(transitive)
+ Addedmicromark-factory-title@1.1.0(transitive)
+ Addedmicromark-factory-whitespace@1.1.0(transitive)
+ Addedmicromark-util-character@1.2.0(transitive)
+ Addedmicromark-util-chunked@1.1.0(transitive)
+ Addedmicromark-util-classify-character@1.1.0(transitive)
+ Addedmicromark-util-combine-extensions@1.1.0(transitive)
+ Addedmicromark-util-decode-numeric-character-reference@1.1.0(transitive)
+ Addedmicromark-util-decode-string@1.1.0(transitive)
+ Addedmicromark-util-encode@1.1.0(transitive)
+ Addedmicromark-util-html-tag-name@1.2.0(transitive)
+ Addedmicromark-util-normalize-identifier@1.1.0(transitive)
+ Addedmicromark-util-resolve-all@1.1.0(transitive)
+ Addedmicromark-util-sanitize-uri@1.2.0(transitive)
+ Addedmicromark-util-subtokenize@1.1.0(transitive)
+ Addedmicromark-util-symbol@1.1.0(transitive)
+ Addedmicromark-util-types@1.1.0(transitive)
+ Addedmri@1.2.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedsade@1.8.1(transitive)
+ Addedunist-util-is@5.2.1(transitive)
+ Addedunist-util-stringify-position@3.0.3(transitive)
+ Addedunist-util-visit@4.1.2(transitive)
+ Addedunist-util-visit-parents@5.1.3(transitive)
+ Addeduvu@0.5.6(transitive)
+ Addedzwitch@2.0.4(transitive)