@markuplint/ml-core 4.3.1-alpha.0 → 4.4.1-dev.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.
@@ -12,7 +12,7 @@ import type { Walker } from '../helper/walkers.js';
12
12
  import type { MLToken } from '../token/token.js';
13
13
  import type { EndTagType, MLASTDocument } from '@markuplint/ml-ast';
14
14
  import type { PlainData, Pretender, RuleConfigValue } from '@markuplint/ml-config';
15
- import type { MLMLSpec } from '@markuplint/ml-spec';
15
+ import type { ARIAVersion, MLMLSpec } from '@markuplint/ml-spec';
16
16
  import { MLParentNode } from './parent-node.js';
17
17
  export declare class MLDocument<T extends RuleConfigValue, O extends PlainData = undefined> extends MLParentNode<T, O> implements Document {
18
18
  #private;
@@ -1439,7 +1439,7 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
1439
1439
  * @implements DOM API: `Document`
1440
1440
  */
1441
1441
  exitPointerLock(): void;
1442
- getAccessibilityProp(node: MLNode<T, O>, ariaVersion?: "1.2"): AccessibilityProperties | null;
1442
+ getAccessibilityProp(node: MLNode<T, O>, ariaVersion?: ARIAVersion): AccessibilityProperties | null;
1443
1443
  /**
1444
1444
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
1445
1445
  *
@@ -1,7 +1,10 @@
1
- import type { MLParser } from '@markuplint/ml-ast';
1
+ import type { MLElement } from '../ml-dom/node/element.js';
2
+ import type { MLNode } from '../ml-dom/node/node.js';
3
+ import type { MLToken } from '../ml-dom/token/token.js';
4
+ import type { MLASTNode, MLASTToken, MLParser } from '@markuplint/ml-ast';
2
5
  import type { Config, PlainData, RuleConfigValue } from '@markuplint/ml-config';
3
6
  import type { ExtendedSpec, MLMLSpec } from '@markuplint/ml-spec';
4
- import { Document } from '../ml-dom/index.js';
7
+ import { MLDocument } from '../ml-dom/node/document.js';
5
8
  export type CreateTestOptions = {
6
9
  readonly config?: Config;
7
10
  readonly parser?: {
@@ -9,10 +12,10 @@ export type CreateTestOptions = {
9
12
  } | Readonly<MLParser>;
10
13
  readonly specs?: MLMLSpec;
11
14
  };
12
- export declare function createTestDocument<T extends RuleConfigValue = any, O extends PlainData = any>(sourceCode: string, options?: CreateTestOptions): Document<T, O>;
13
- export declare function createTestNodeList(sourceCode: string, options?: CreateTestOptions): readonly import("packages/@markuplint/ml-core/src/ml-dom/node/node.js").MLNode<any, any, import("@markuplint/ml-ast").MLASTNode>[];
14
- export declare function createTestTokenList(sourceCode: string, options?: CreateTestOptions): readonly import("packages/@markuplint/ml-core/src/ml-dom/token/token.js").MLToken<import("@markuplint/ml-ast").MLASTToken>[];
15
- export declare function createTestElement(sourceCode: string, options?: CreateTestOptions): import("packages/@markuplint/ml-core/src/ml-dom/node/element.js").MLElement<any, any>;
15
+ export declare function createTestDocument<T extends RuleConfigValue = any, O extends PlainData = any>(sourceCode: string, options?: CreateTestOptions): MLDocument<T, O>;
16
+ export declare function createTestNodeList(sourceCode: string, options?: CreateTestOptions): readonly MLNode<any, any, MLASTNode>[];
17
+ export declare function createTestTokenList(sourceCode: string, options?: CreateTestOptions): readonly MLToken<MLASTToken>[];
18
+ export declare function createTestElement(sourceCode: string, options?: CreateTestOptions): MLElement<any, any>;
16
19
  /**
17
20
  * for test suite
18
21
  */
package/lib/test/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { parser } from '@markuplint/html-parser';
2
2
  import spec from '@markuplint/html-spec';
3
3
  import { convertRuleset } from '../convert-ruleset.js';
4
- import { Document } from '../ml-dom/index.js';
4
+ import { MLDocument } from '../ml-dom/node/document.js';
5
5
  export function createTestDocument(sourceCode, options) {
6
6
  const ast = options?.parser
7
7
  ? 'parser' in options.parser
@@ -9,7 +9,7 @@ export function createTestDocument(sourceCode, options) {
9
9
  : options.parser.parse(sourceCode, options.config?.parserOptions)
10
10
  : parser.parse(sourceCode, options?.config?.parserOptions);
11
11
  const ruleset = convertRuleset(options?.config);
12
- const document = new Document(ast, ruleset, [options?.specs ?? {}, {}]);
12
+ const document = new MLDocument(ast, ruleset, [options?.specs ?? {}, {}]);
13
13
  return document;
14
14
  }
15
15
  export function createTestNodeList(sourceCode, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/ml-core",
3
- "version": "4.3.1-alpha.0",
3
+ "version": "4.4.1-dev.1+98cb4470a",
4
4
  "description": "The core module of markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -28,19 +28,19 @@
28
28
  "./lib/configs.js": "./lib/configs.browser.js"
29
29
  },
30
30
  "dependencies": {
31
- "@markuplint/config-presets": "4.1.1-alpha.0",
32
- "@markuplint/html-parser": "4.2.1-alpha.0",
33
- "@markuplint/html-spec": "4.3.1-alpha.0",
34
- "@markuplint/i18n": "4.1.1-alpha.0",
35
- "@markuplint/ml-ast": "4.0.2-alpha.0",
36
- "@markuplint/ml-config": "4.2.1-alpha.0",
37
- "@markuplint/ml-spec": "4.1.1-alpha.0",
38
- "@markuplint/parser-utils": "4.2.1-alpha.0",
39
- "@markuplint/selector": "4.2.1-alpha.0",
31
+ "@markuplint/config-presets": "4.2.1-dev.1+98cb4470a",
32
+ "@markuplint/html-parser": "4.3.1-dev.1+98cb4470a",
33
+ "@markuplint/html-spec": "4.4.1-dev.1+98cb4470a",
34
+ "@markuplint/i18n": "4.2.1-dev.1+98cb4470a",
35
+ "@markuplint/ml-ast": "4.1.1-dev.1+98cb4470a",
36
+ "@markuplint/ml-config": "4.3.1-dev.1+98cb4470a",
37
+ "@markuplint/ml-spec": "4.2.1-dev.1+98cb4470a",
38
+ "@markuplint/parser-utils": "4.3.1-dev.1+98cb4470a",
39
+ "@markuplint/selector": "4.3.1-dev.1+98cb4470a",
40
40
  "@types/debug": "4.1.12",
41
41
  "debug": "4.3.4",
42
42
  "is-plain-object": "5.0.0",
43
- "type-fest": "4.12.0"
43
+ "type-fest": "4.14.0"
44
44
  },
45
- "gitHead": "02b8ba8440aeeafbf9507ea0ef84bc258fced2c6"
45
+ "gitHead": "98cb4470ad994275f52b0c3919f8d27dda8c38bc"
46
46
  }