@markuplint/parser-utils
Advanced tools
Comparing version 3.0.0-alpha.5 to 3.0.0-alpha.6
@@ -1,2 +0,2 @@ | ||
export declare const MASK_CHAR = "\uE000"; | ||
export declare const MASK_CHAR = '\uE000'; | ||
/** | ||
@@ -3,0 +3,0 @@ * SVG Element list |
import type { MLToken } from '@markuplint/ml-ast'; | ||
export declare function tokenizer(raw: string | null, startLine: number, startCol: number, startOffset: number): MLToken; | ||
export declare function tokenizer( | ||
raw: string | null, | ||
startLine: number, | ||
startCol: number, | ||
startOffset: number, | ||
): MLToken; | ||
export declare function createTokenFromRawCode(raw: string | null, startOffset: number, rawCode: string): MLToken; | ||
export declare function uuid(): string; |
import type { ElementType, ParserAuthoredElementNameDistinguishing } from '@markuplint/ml-ast'; | ||
export declare function detectElementType(name: string, option?: ParserAuthoredElementNameDistinguishing, defaultPattern?: ParserAuthoredElementNameDistinguishing): ElementType; | ||
export declare function detectElementType( | ||
name: string, | ||
option?: ParserAuthoredElementNameDistinguishing, | ||
defaultPattern?: ParserAuthoredElementNameDistinguishing, | ||
): ElementType; |
@@ -5,10 +5,14 @@ export declare function getLine(html: string, startOffset: number): number; | ||
export declare function getEndCol(html: string, col: number): number; | ||
export declare function sliceFragment(rawHtml: string, start: number, end: number): { | ||
startOffset: number; | ||
endOffset: number; | ||
startLine: number; | ||
endLine: number; | ||
startCol: number; | ||
endCol: number; | ||
raw: string; | ||
export declare function sliceFragment( | ||
rawHtml: string, | ||
start: number, | ||
end: number, | ||
): { | ||
startOffset: number; | ||
endOffset: number; | ||
startLine: number; | ||
endLine: number; | ||
startCol: number; | ||
endCol: number; | ||
raw: string; | ||
}; |
export declare function searchIDLAttribute(name: string): { | ||
idlPropName: string | undefined; | ||
contentAttrName: string | undefined; | ||
idlPropName: string | undefined; | ||
contentAttrName: string | undefined; | ||
}; |
@@ -6,2 +6,4 @@ "use strict"; | ||
* IDL attributes VS Content attributes | ||
* | ||
* @see https://github.com/facebook/react/blob/main/packages/react-dom-bindings/src/shared/possibleStandardNames.js | ||
*/ | ||
@@ -71,2 +73,4 @@ const idlContentMap = { | ||
id: 'id', | ||
imageSizes: 'imagesizes', | ||
imageSrcSet: 'imagesrcset', | ||
inputMode: 'inputmode', | ||
@@ -149,3 +153,3 @@ integrity: 'integrity', | ||
wrap: 'wrap', | ||
// SVG | ||
// SVG and RDFa | ||
accentHeight: 'accent-height', | ||
@@ -155,2 +159,3 @@ accumulate: 'accumulate', | ||
alignmentBaseline: 'alignment-baseline', | ||
allowReorder: 'allowreorder', | ||
alphabetic: 'alphabetic', | ||
@@ -162,2 +167,3 @@ amplitude: 'amplitude', | ||
attributeType: 'attributeType', | ||
autoReverse: 'autoreverse', | ||
azimuth: 'azimuth', | ||
@@ -239,2 +245,3 @@ baseFrequency: 'baseFrequency', | ||
in2: 'in2', | ||
inlist: 'inlist', | ||
intercept: 'intercept', | ||
@@ -290,6 +297,9 @@ k: 'k', | ||
pointsAtZ: 'pointsAtZ', | ||
prefix: 'prefix', | ||
preserveAlpha: 'preserveAlpha', | ||
preserveAspectRatio: 'preserveAspectRatio', | ||
primitiveUnits: 'primitiveUnits', | ||
property: 'property', | ||
r: 'r', | ||
radius: 'radius', | ||
refX: 'refX', | ||
@@ -304,2 +314,3 @@ refY: 'refY', | ||
result: 'result', | ||
results: 'results', | ||
rotate: 'rotate', | ||
@@ -309,2 +320,3 @@ rx: 'rx', | ||
scale: 'scale', | ||
security: 'security', | ||
seed: 'seed', | ||
@@ -356,2 +368,3 @@ shapeRendering: 'shape-rendering', | ||
unitsPerEm: 'units-per-em', | ||
unselectable: 'unselectable', | ||
vAlphabetic: 'v-alphabetic', | ||
@@ -370,2 +383,3 @@ values: 'values', | ||
vMathematical: 'v-mathematical', | ||
vocab: 'vocab', | ||
widths: 'widths', | ||
@@ -388,2 +402,3 @@ wordSpacing: 'word-spacing', | ||
xmlLang: 'xml:lang', | ||
xmlns: 'xmlns', | ||
xmlnsXlink: 'xmlns:xlink', | ||
@@ -390,0 +405,0 @@ xmlSpace: 'xml:space', |
export declare class ParserError extends Error { | ||
readonly col: number; | ||
readonly line: number; | ||
name: string; | ||
readonly nodeName: string | null; | ||
readonly raw: string; | ||
constructor(message: string, { line, col, raw, nodeName, }: { | ||
line?: number; | ||
col?: number; | ||
raw?: string; | ||
nodeName?: string | null; | ||
}); | ||
readonly col: number; | ||
readonly line: number; | ||
name: string; | ||
readonly nodeName: string | null; | ||
readonly raw: string; | ||
constructor( | ||
message: string, | ||
{ | ||
line, | ||
col, | ||
raw, | ||
nodeName, | ||
}: { | ||
line?: number; | ||
col?: number; | ||
raw?: string; | ||
nodeName?: string | null; | ||
}, | ||
); | ||
} |
@@ -1,18 +0,18 @@ | ||
export declare type Code = { | ||
type: string; | ||
index: number; | ||
startTag: string; | ||
taggedCode: string; | ||
endTag: string | null; | ||
export type Code = { | ||
type: string; | ||
index: number; | ||
startTag: string; | ||
taggedCode: string; | ||
endTag: string | null; | ||
}; | ||
export declare type IgnoreTag = { | ||
type: string; | ||
start: RegExp; | ||
end: RegExp; | ||
export type IgnoreTag = { | ||
type: string; | ||
start: RegExp; | ||
end: RegExp; | ||
}; | ||
export declare type IgnoreBlock = { | ||
source: string; | ||
replaced: string; | ||
stack: Code[]; | ||
maskChar: string; | ||
export type IgnoreBlock = { | ||
source: string; | ||
replaced: string; | ||
stack: Code[]; | ||
maskChar: string; | ||
}; |
{ | ||
"name": "@markuplint/parser-utils", | ||
"version": "3.0.0-alpha.5", | ||
"version": "3.0.0-alpha.6", | ||
"description": "Utility module for markuplint parser plugin", | ||
@@ -22,8 +22,8 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/ml-ast": "3.0.0-alpha.5", | ||
"@markuplint/types": "3.0.0-alpha.5", | ||
"@markuplint/ml-ast": "3.0.0-alpha.6", | ||
"@markuplint/types": "3.0.0-alpha.6", | ||
"tslib": "^2.4.0", | ||
"uuid": "8" | ||
}, | ||
"gitHead": "d2ee395d917cb69b91dedb0262b1c12ddc81fb58" | ||
"gitHead": "b185a06d4ea09a1bf32458f7be4abe510eb57b89" | ||
} |
Sorry, the diff of this file is not supported yet
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
101443
1160
+ Added@markuplint/ml-ast@3.0.0-alpha.6(transitive)
+ Added@markuplint/types@3.0.0-alpha.6(transitive)
- Removed@markuplint/ml-ast@3.0.0-alpha.5(transitive)
- Removed@markuplint/types@3.0.0-alpha.5(transitive)