@markuplint/ml-core 3.2.0 → 3.3.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.
- package/lib/index.d.ts +11 -1
- package/lib/ml-core.d.ts +22 -11
- package/lib/ml-dom/helper/create-node.d.ts +4 -1
- package/lib/ml-dom/helper/getIndent.d.ts +7 -7
- package/lib/ml-dom/helper/walkers.d.ts +11 -3
- package/lib/ml-dom/helper/walkers.js +19 -15
- package/lib/ml-dom/manipulations/child-node-methods.d.ts +18 -5
- package/lib/ml-dom/manipulations/get-children.d.ts +3 -1
- package/lib/ml-dom/node/attr.d.ts +89 -89
- package/lib/ml-dom/node/block.d.ts +30 -30
- package/lib/ml-dom/node/character-data.d.ts +59 -52
- package/lib/ml-dom/node/child-node.d.ts +6 -1
- package/lib/ml-dom/node/comment.d.ts +15 -12
- package/lib/ml-dom/node/document-fragment.d.ts +22 -19
- package/lib/ml-dom/node/document-type.d.ts +34 -31
- package/lib/ml-dom/node/document.d.ts +1596 -1582
- package/lib/ml-dom/node/dom-token-list.d.ts +26 -26
- package/lib/ml-dom/node/element.d.ts +1894 -1888
- package/lib/ml-dom/node/named-node-map.d.ts +44 -39
- package/lib/ml-dom/node/node-list.d.ts +9 -3
- package/lib/ml-dom/node/node-store.d.ts +3 -3
- package/lib/ml-dom/node/node.d.ts +491 -471
- package/lib/ml-dom/node/parent-node.d.ts +66 -57
- package/lib/ml-dom/node/rule-mapper.d.ts +7 -7
- package/lib/ml-dom/node/text.d.ts +49 -46
- package/lib/ml-dom/node/types.d.ts +66 -10
- package/lib/ml-dom/node/unexpected-call-error.d.ts +1 -2
- package/lib/ml-dom/token/token.d.ts +44 -44
- package/lib/ml-rule/create-test-rule.d.ts +5 -3
- package/lib/ml-rule/ml-rule-context.d.ts +55 -47
- package/lib/ml-rule/ml-rule.d.ts +24 -22
- package/lib/ml-rule/types.d.ts +18 -12
- package/lib/plugin/types.d.ts +5 -5
- package/lib/ruleset/index.d.ts +4 -4
- package/lib/test/index.d.ts +19 -7
- package/lib/types.d.ts +7 -7
- package/lib/utils/get-location-from-chars.d.ts +9 -4
- package/package.json +15 -10
- package/lib/ml-dom/node/pretender.d.ts +0 -5
- package/lib/ml-dom/node/pretender.js +0 -11
|
@@ -2,23 +2,26 @@ import type { DocumentFragmentNodeType } from './types';
|
|
|
2
2
|
import type { MLASTAbstractNode } from '@markuplint/ml-ast';
|
|
3
3
|
import type { RuleConfigValue } from '@markuplint/ml-config';
|
|
4
4
|
import { MLParentNode } from './parent-node';
|
|
5
|
-
export declare class MLDocumentFragment<T extends RuleConfigValue, O = null>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
5
|
+
export declare class MLDocumentFragment<T extends RuleConfigValue, O = null>
|
|
6
|
+
extends MLParentNode<T, O, MLASTAbstractNode>
|
|
7
|
+
implements DocumentFragment
|
|
8
|
+
{
|
|
9
|
+
/**
|
|
10
|
+
* Returns a string appropriate for the type of node as `DocumentFragment`
|
|
11
|
+
*
|
|
12
|
+
* @see https://dom.spec.whatwg.org/#ref-for-documentfragment%E2%91%A0%E2%91%A6
|
|
13
|
+
*/
|
|
14
|
+
get nodeName(): '#document-fragment';
|
|
15
|
+
/**
|
|
16
|
+
* Returns a number appropriate for the type of `DocumentFragment`
|
|
17
|
+
*/
|
|
18
|
+
get nodeType(): DocumentFragmentNodeType;
|
|
19
|
+
/**
|
|
20
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
21
|
+
*
|
|
22
|
+
* @deprecated
|
|
23
|
+
* @unsupported
|
|
24
|
+
* @implements DOM API: `DocumentFragment`
|
|
25
|
+
*/
|
|
26
|
+
getElementById(elementId: string): HTMLElement | null;
|
|
24
27
|
}
|
|
@@ -4,35 +4,38 @@ import type { DocumentTypeNodeType } from './types';
|
|
|
4
4
|
import type { MLASTDoctype } from '@markuplint/ml-ast';
|
|
5
5
|
import type { RuleConfigValue } from '@markuplint/ml-config';
|
|
6
6
|
import { MLNode } from './node';
|
|
7
|
-
export declare class MLDocumentType<T extends RuleConfigValue, O = null>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
7
|
+
export declare class MLDocumentType<T extends RuleConfigValue, O = null>
|
|
8
|
+
extends MLNode<T, O, MLASTDoctype>
|
|
9
|
+
implements DocumentType
|
|
10
|
+
{
|
|
11
|
+
readonly name: string;
|
|
12
|
+
readonly publicId: string;
|
|
13
|
+
readonly systemId: string;
|
|
14
|
+
constructor(astNode: MLASTDoctype, document: MLDocument<T, O>);
|
|
15
|
+
/**
|
|
16
|
+
* Returns a string appropriate for the type of node as `DocumentType`
|
|
17
|
+
*
|
|
18
|
+
* @see https://dom.spec.whatwg.org/#ref-for-documenttype%E2%91%A0%E2%93%AA
|
|
19
|
+
*/
|
|
20
|
+
get nodeName(): string;
|
|
21
|
+
/**
|
|
22
|
+
* Returns a number appropriate for the type of `DocumentType`
|
|
23
|
+
*/
|
|
24
|
+
get nodeType(): DocumentTypeNodeType;
|
|
25
|
+
/**
|
|
26
|
+
* @implements DOM API: `CharacterData`
|
|
27
|
+
*/
|
|
28
|
+
after(...nodes: (string | MLElement<any, any>)[]): void;
|
|
29
|
+
/**
|
|
30
|
+
* @implements DOM API: `CharacterData`
|
|
31
|
+
*/
|
|
32
|
+
before(...nodes: (string | MLElement<any, any>)[]): void;
|
|
33
|
+
/**
|
|
34
|
+
* @implements DOM API: `CharacterData`
|
|
35
|
+
*/
|
|
36
|
+
remove(): void;
|
|
37
|
+
/**
|
|
38
|
+
* @implements DOM API: `CharacterData`
|
|
39
|
+
*/
|
|
40
|
+
replaceWith(...nodes: (string | MLElement<any, any>)[]): void;
|
|
38
41
|
}
|