@markuplint/ml-core
Advanced tools
Comparing version 3.0.0-alpha.2 to 3.0.0-alpha.3
@@ -137,2 +137,3 @@ "use strict"; | ||
endTag: tslib_1.__classPrivateFieldGet(this, _MLCore_parser, "f").endTag, | ||
booleanish: tslib_1.__classPrivateFieldGet(this, _MLCore_parser, "f").booleanish, | ||
pretenders: tslib_1.__classPrivateFieldGet(this, _MLCore_pretenders, "f"), | ||
@@ -139,0 +140,0 @@ }), "f"); |
@@ -12,3 +12,3 @@ import type { MLRule } from '../../ml-rule'; | ||
import type { DocumentNodeType } from './types'; | ||
import type { MLASTDocument } from '@markuplint/ml-ast'; | ||
import type { EndTagType, MLASTDocument } from '@markuplint/ml-ast'; | ||
import type { Pretender, RuleConfigValue } from '@markuplint/ml-config'; | ||
@@ -20,9 +20,24 @@ import type { ExtendedSpec, MLMLSpec } from '@markuplint/ml-spec'; | ||
/** | ||
* Detect value as a true if its attribute is booleanish value and omitted. | ||
* | ||
* Ex: | ||
* ```jsx | ||
* <Component aria-hidden /> | ||
* ``` | ||
* | ||
* In the above, the `aria-hidden` is `true`. | ||
* | ||
* @default false | ||
*/ | ||
readonly booleanish: boolean; | ||
/** | ||
* | ||
*/ | ||
currentRule: MLRule<T, O> | null; | ||
/** | ||
* This is defined by the parser. | ||
* | ||
* @default "omittable" | ||
*/ | ||
readonly endTag: 'xml' | 'omittable' | 'never'; | ||
readonly endTag: EndTagType; | ||
/** | ||
@@ -52,2 +67,3 @@ * | ||
endTag?: 'xml' | 'omittable' | 'never'; | ||
booleanish?: boolean; | ||
pretenders?: Pretender[]; | ||
@@ -54,0 +70,0 @@ }); |
@@ -41,2 +41,3 @@ "use strict"; | ||
this.specs = (0, ml_spec_1.schemaToSpec)(schemas); | ||
this.booleanish = (options === null || options === void 0 ? void 0 : options.booleanish) || false; | ||
this.endTag = (_a = options === null || options === void 0 ? void 0 : options.endTag) !== null && _a !== void 0 ? _a : 'omittable'; | ||
@@ -43,0 +44,0 @@ tslib_1.__classPrivateFieldSet(this, _MLDocument_filename, options === null || options === void 0 ? void 0 : options.filename, "f"); |
@@ -6,3 +6,3 @@ import type { MLDocument } from './document'; | ||
import type { ElementType, MLASTElement, NamespaceURI } from '@markuplint/ml-ast'; | ||
import type { Pretender, RuleConfigValue } from '@markuplint/ml-config'; | ||
import type { Pretender, RuleConfigValue, RuleInfo } from '@markuplint/ml-config'; | ||
import type { ARIAVersion } from '@markuplint/ml-spec'; | ||
@@ -1358,2 +1358,6 @@ import { MLToken } from '../token/token'; | ||
/** | ||
* @implements `@markuplint/ml-core` API: `MLNode` | ||
*/ | ||
get rule(): RuleInfo<T, O>; | ||
/** | ||
* **IT THROWS AN ERROR WHEN CALLING THIS.** | ||
@@ -1360,0 +1364,0 @@ * |
{ | ||
"name": "@markuplint/ml-core", | ||
"version": "3.0.0-alpha.2", | ||
"version": "3.0.0-alpha.3", | ||
"description": "The core module of markuplint", | ||
@@ -20,9 +20,9 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/config-presets": "3.0.0-alpha.2", | ||
"@markuplint/i18n": "3.0.0-alpha.2", | ||
"@markuplint/ml-ast": "3.0.0-alpha.2", | ||
"@markuplint/ml-config": "3.0.0-alpha.2", | ||
"@markuplint/ml-spec": "3.0.0-alpha.2", | ||
"@markuplint/parser-utils": "3.0.0-alpha.2", | ||
"@markuplint/selector": "3.0.0-alpha.2", | ||
"@markuplint/config-presets": "3.0.0-alpha.3", | ||
"@markuplint/i18n": "3.0.0-alpha.3", | ||
"@markuplint/ml-ast": "3.0.0-alpha.3", | ||
"@markuplint/ml-config": "3.0.0-alpha.3", | ||
"@markuplint/ml-spec": "3.0.0-alpha.3", | ||
"@markuplint/parser-utils": "3.0.0-alpha.3", | ||
"@markuplint/selector": "3.0.0-alpha.3", | ||
"debug": "^4.3.4", | ||
@@ -33,6 +33,6 @@ "postcss-selector-parser": "^6.0.10", | ||
"devDependencies": { | ||
"@markuplint/html-parser": "3.0.0-alpha.2", | ||
"@markuplint/html-parser": "3.0.0-alpha.3", | ||
"@types/debug": "^4.1.7" | ||
}, | ||
"gitHead": "830bf8187b81bf5ca2f5f09b6f85a98395a58bdb" | ||
"gitHead": "884b1a6a7385e86cca7796b0b927a886ee90140e" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
469147
12307
+ Added@markuplint/config-presets@3.0.0-alpha.3(transitive)
+ Added@markuplint/i18n@3.0.0-alpha.3(transitive)
+ Added@markuplint/ml-ast@3.0.0-alpha.3(transitive)
+ Added@markuplint/ml-config@3.0.0-alpha.3(transitive)
+ Added@markuplint/ml-spec@3.0.0-alpha.3(transitive)
+ Added@markuplint/parser-utils@3.0.0-alpha.3(transitive)
+ Added@markuplint/selector@3.0.0-alpha.3(transitive)
+ Added@markuplint/types@3.0.0-alpha.3(transitive)
- Removed@markuplint/config-presets@3.0.0-alpha.2(transitive)
- Removed@markuplint/i18n@3.0.0-alpha.2(transitive)
- Removed@markuplint/ml-ast@3.0.0-alpha.2(transitive)
- Removed@markuplint/ml-config@3.0.0-alpha.2(transitive)
- Removed@markuplint/ml-spec@3.0.0-alpha.2(transitive)
- Removed@markuplint/parser-utils@3.0.0-alpha.2(transitive)
- Removed@markuplint/selector@3.0.0-alpha.2(transitive)
- Removed@markuplint/types@3.0.0-alpha.2(transitive)