@markuplint/ml-core 4.10.4 → 4.11.0
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/CHANGELOG.md +13 -0
- package/lib/ml-core.d.ts +1 -1
- package/lib/ml-dom/node/document.d.ts +15 -1
- package/lib/ml-dom/node/document.js +20 -0
- package/lib/ml-dom/node/element.d.ts +16 -0
- package/lib/ml-dom/node/element.js +20 -0
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.11.0](https://github.com/markuplint/markuplint/compare/@markuplint/ml-core@4.10.5...@markuplint/ml-core@4.11.0) (2024-12-04)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **ml-core:** add `caretPositionFromPoint` prop to MLDocument ([8f7e822](https://github.com/markuplint/markuplint/commit/8f7e822d29f6ec287b9470eae0f4630cc2627eb7))
|
|
11
|
+
- **ml-core:** add `currentCSSZoom` prop to MLElement ([8b12e07](https://github.com/markuplint/markuplint/commit/8b12e07481ee1bbe2d54c9b4179e06ed01250662))
|
|
12
|
+
- **ml-core:** add `fragmentDirective` prop to MLDocument ([a62b6b1](https://github.com/markuplint/markuplint/commit/a62b6b10612601fd49bcd35f23723f0466d1b988))
|
|
13
|
+
- **ml-core:** add `writingSuggestions` prop to MLElement ([59c1d66](https://github.com/markuplint/markuplint/commit/59c1d6682cff93a17d0da8da3cd3c4dd1c63482b))
|
|
14
|
+
|
|
15
|
+
## [4.10.5](https://github.com/markuplint/markuplint/compare/@markuplint/ml-core@4.10.4...@markuplint/ml-core@4.10.5) (2024-11-17)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @markuplint/ml-core
|
|
18
|
+
|
|
6
19
|
## [4.10.4](https://github.com/markuplint/markuplint/compare/@markuplint/ml-core@4.10.3...@markuplint/ml-core@4.10.4) (2024-10-31)
|
|
7
20
|
|
|
8
21
|
**Note:** Version bump only for package @markuplint/ml-core
|
package/lib/ml-core.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type MLCoreParams = {
|
|
|
10
10
|
export declare class MLCore {
|
|
11
11
|
#private;
|
|
12
12
|
constructor({ parser, sourceCode, ruleset, rules, locale, schemas, parserOptions, severity, pretenders, filename, debug, configErrors, }: MLCoreParams);
|
|
13
|
-
get document():
|
|
13
|
+
get document(): Document<RuleConfigValue, PlainData> | ParserError;
|
|
14
14
|
setCode(sourceCode: string): void;
|
|
15
15
|
update({ parser, ruleset, rules, locale, schemas, parserOptions, configErrors }: Partial<MLFabric>): void;
|
|
16
16
|
verify(fix?: boolean): Promise<Violation[]>;
|
|
@@ -262,6 +262,13 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
|
|
|
262
262
|
* @implements DOM API: `Document`
|
|
263
263
|
*/
|
|
264
264
|
get forms(): HTMLCollectionOf<HTMLFormElement>;
|
|
265
|
+
/**
|
|
266
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
267
|
+
*
|
|
268
|
+
* @unsupported
|
|
269
|
+
* @implements DOM API: `Document`
|
|
270
|
+
*/
|
|
271
|
+
get fragmentDirective(): FragmentDirective;
|
|
265
272
|
/**
|
|
266
273
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
267
274
|
*
|
|
@@ -1272,6 +1279,13 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
|
|
|
1272
1279
|
* @implements DOM API: `Document`
|
|
1273
1280
|
*/
|
|
1274
1281
|
captureEvents(): void;
|
|
1282
|
+
/**
|
|
1283
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1284
|
+
*
|
|
1285
|
+
* @unsupported
|
|
1286
|
+
* @implements DOM API: `Document`
|
|
1287
|
+
*/
|
|
1288
|
+
caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null;
|
|
1275
1289
|
/**
|
|
1276
1290
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1277
1291
|
*
|
|
@@ -1601,7 +1615,7 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
|
|
|
1601
1615
|
* @unsupported
|
|
1602
1616
|
* @implements DOM API: `Document`
|
|
1603
1617
|
*/
|
|
1604
|
-
startViewTransition(callbackOptions?:
|
|
1618
|
+
startViewTransition(callbackOptions?: ViewTransitionUpdateCallback): ViewTransition;
|
|
1605
1619
|
/**
|
|
1606
1620
|
* @implements `@markuplint/ml-core` API: `MLDocument`
|
|
1607
1621
|
*/
|
|
@@ -334,6 +334,15 @@ export class MLDocument extends MLParentNode {
|
|
|
334
334
|
get forms() {
|
|
335
335
|
throw new UnexpectedCallError('Not supported "forms" property');
|
|
336
336
|
}
|
|
337
|
+
/**
|
|
338
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
339
|
+
*
|
|
340
|
+
* @unsupported
|
|
341
|
+
* @implements DOM API: `Document`
|
|
342
|
+
*/
|
|
343
|
+
get fragmentDirective() {
|
|
344
|
+
throw new UnexpectedCallError('Not supported "fragmentDirective" property');
|
|
345
|
+
}
|
|
337
346
|
/**
|
|
338
347
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
339
348
|
*
|
|
@@ -1610,6 +1619,17 @@ export class MLDocument extends MLParentNode {
|
|
|
1610
1619
|
captureEvents() {
|
|
1611
1620
|
throw new UnexpectedCallError('Not supported "captureEvents" method');
|
|
1612
1621
|
}
|
|
1622
|
+
/**
|
|
1623
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1624
|
+
*
|
|
1625
|
+
* @unsupported
|
|
1626
|
+
* @implements DOM API: `Document`
|
|
1627
|
+
*/
|
|
1628
|
+
caretPositionFromPoint(x, y,
|
|
1629
|
+
// eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
|
|
1630
|
+
options) {
|
|
1631
|
+
throw new UnexpectedCallError('Not supported "caretPositionFromPoint" method');
|
|
1632
|
+
}
|
|
1613
1633
|
/**
|
|
1614
1634
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1615
1635
|
*
|
|
@@ -466,6 +466,14 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
|
|
|
466
466
|
* @implements DOM API: `Element`
|
|
467
467
|
*/
|
|
468
468
|
get contentEditable(): string;
|
|
469
|
+
/**
|
|
470
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
471
|
+
*
|
|
472
|
+
* @deprecated
|
|
473
|
+
* @unsupported
|
|
474
|
+
* @implements DOM API: `Element`
|
|
475
|
+
*/
|
|
476
|
+
get currentCSSZoom(): number;
|
|
469
477
|
/**
|
|
470
478
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
471
479
|
*
|
|
@@ -1573,6 +1581,14 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
|
|
|
1573
1581
|
* @implements DOM API: `Element`
|
|
1574
1582
|
*/
|
|
1575
1583
|
get translate(): boolean;
|
|
1584
|
+
/**
|
|
1585
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
1586
|
+
*
|
|
1587
|
+
* @deprecated
|
|
1588
|
+
* @unsupported
|
|
1589
|
+
* @implements DOM API: `Element`
|
|
1590
|
+
*/
|
|
1591
|
+
get writingSuggestions(): string;
|
|
1576
1592
|
/**
|
|
1577
1593
|
* @implements DOM API: `Element`
|
|
1578
1594
|
*/
|
|
@@ -614,6 +614,16 @@ export class MLElement extends MLParentNode {
|
|
|
614
614
|
get contentEditable() {
|
|
615
615
|
throw new UnexpectedCallError('Not supported "contentEditable" property');
|
|
616
616
|
}
|
|
617
|
+
/**
|
|
618
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
619
|
+
*
|
|
620
|
+
* @deprecated
|
|
621
|
+
* @unsupported
|
|
622
|
+
* @implements DOM API: `Element`
|
|
623
|
+
*/
|
|
624
|
+
get currentCSSZoom() {
|
|
625
|
+
throw new UnexpectedCallError('Not supported "currentCSSZoom" property');
|
|
626
|
+
}
|
|
617
627
|
/**
|
|
618
628
|
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
619
629
|
*
|
|
@@ -2026,6 +2036,16 @@ export class MLElement extends MLParentNode {
|
|
|
2026
2036
|
get translate() {
|
|
2027
2037
|
throw new UnexpectedCallError('Not supported "translate" property');
|
|
2028
2038
|
}
|
|
2039
|
+
/**
|
|
2040
|
+
* **IT THROWS AN ERROR WHEN CALLING THIS.**
|
|
2041
|
+
*
|
|
2042
|
+
* @deprecated
|
|
2043
|
+
* @unsupported
|
|
2044
|
+
* @implements DOM API: `Element`
|
|
2045
|
+
*/
|
|
2046
|
+
get writingSuggestions() {
|
|
2047
|
+
throw new UnexpectedCallError('Not supported "writingSuggestions" property');
|
|
2048
|
+
}
|
|
2029
2049
|
/**
|
|
2030
2050
|
* @implements DOM API: `Element`
|
|
2031
2051
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/ml-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0",
|
|
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>",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"entryPoint": "./src/index.ts"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "tsc",
|
|
24
|
-
"dev": "tsc --
|
|
23
|
+
"build": "tsc --project tsconfig.build.json",
|
|
24
|
+
"dev": "tsc --watch --project tsconfig.build.json",
|
|
25
25
|
"clean": "tsc --build --clean"
|
|
26
26
|
},
|
|
27
27
|
"browser": {
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@markuplint/config-presets": "4.5.10",
|
|
32
|
-
"@markuplint/html-parser": "4.6.
|
|
33
|
-
"@markuplint/html-spec": "4.
|
|
34
|
-
"@markuplint/i18n": "4.
|
|
35
|
-
"@markuplint/ml-ast": "4.4.
|
|
36
|
-
"@markuplint/ml-config": "4.8.
|
|
37
|
-
"@markuplint/ml-spec": "4.
|
|
38
|
-
"@markuplint/parser-utils": "4.8.
|
|
39
|
-
"@markuplint/selector": "4.6.
|
|
40
|
-
"@markuplint/shared": "4.4.
|
|
32
|
+
"@markuplint/html-parser": "4.6.14",
|
|
33
|
+
"@markuplint/html-spec": "4.11.1",
|
|
34
|
+
"@markuplint/i18n": "4.6.0",
|
|
35
|
+
"@markuplint/ml-ast": "4.4.9",
|
|
36
|
+
"@markuplint/ml-config": "4.8.6",
|
|
37
|
+
"@markuplint/ml-spec": "4.9.1",
|
|
38
|
+
"@markuplint/parser-utils": "4.8.2",
|
|
39
|
+
"@markuplint/selector": "4.6.14",
|
|
40
|
+
"@markuplint/shared": "4.4.10",
|
|
41
41
|
"@types/debug": "4.1.12",
|
|
42
42
|
"debug": "4.3.7",
|
|
43
43
|
"is-plain-object": "5.0.0",
|
|
44
|
-
"type-fest": "4.
|
|
44
|
+
"type-fest": "4.30.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "2a067903214e5633bd9b77690613837ead9683c3"
|
|
47
47
|
}
|