@markuplint/ml-core 4.8.3 → 4.9.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 CHANGED
@@ -3,6 +3,17 @@
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.9.0](https://github.com/markuplint/markuplint/compare/@markuplint/ml-core@4.8.3...@markuplint/ml-core@4.9.0) (2024-09-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **ml-core:** update DOM API according to TypeScript DOM Libs ([b95b689](https://github.com/markuplint/markuplint/commit/b95b689a84f0a176175943edf5d4163de8b1522f))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [4.8.3](https://github.com/markuplint/markuplint/compare/@markuplint/ml-core@4.8.2...@markuplint/ml-core@4.8.3) (2024-09-02)
7
18
 
8
19
  **Note:** Version bump only for package @markuplint/ml-core
@@ -479,6 +479,13 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
479
479
  * @implements DOM API: `Document`
480
480
  */
481
481
  get onclose(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
482
+ /**
483
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
484
+ *
485
+ * @unsupported
486
+ * @implements DOM API: `Element`
487
+ */
488
+ get oncontextlost(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
482
489
  /**
483
490
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
484
491
  *
@@ -487,6 +494,13 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
487
494
  * @implements DOM API: `Document`
488
495
  */
489
496
  get oncontextmenu(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
497
+ /**
498
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
499
+ *
500
+ * @unsupported
501
+ * @implements DOM API: `Element`
502
+ */
503
+ get oncontextrestored(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
490
504
  /**
491
505
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
492
506
  *
@@ -1581,6 +1595,13 @@ export declare class MLDocument<T extends RuleConfigValue, O extends PlainData =
1581
1595
  * @implements `@markuplint/ml-core` API: `MLDocument`
1582
1596
  */
1583
1597
  setRule(rule: Readonly<MLRule<T, O>> | null): void;
1598
+ /**
1599
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1600
+ *
1601
+ * @unsupported
1602
+ * @implements DOM API: `Document`
1603
+ */
1604
+ startViewTransition(callbackOptions?: UpdateCallback): ViewTransition;
1584
1605
  /**
1585
1606
  * @implements `@markuplint/ml-core` API: `MLDocument`
1586
1607
  */
@@ -609,6 +609,15 @@ export class MLDocument extends MLParentNode {
609
609
  get onclose() {
610
610
  throw new UnexpectedCallError('Not supported "onclose" property');
611
611
  }
612
+ /**
613
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
614
+ *
615
+ * @unsupported
616
+ * @implements DOM API: `Element`
617
+ */
618
+ get oncontextlost() {
619
+ throw new UnexpectedCallError('Not supported "oncontextlost" property');
620
+ }
612
621
  /**
613
622
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
614
623
  *
@@ -619,6 +628,15 @@ export class MLDocument extends MLParentNode {
619
628
  get oncontextmenu() {
620
629
  throw new UnexpectedCallError('Not supported "oncontextmenu" property');
621
630
  }
631
+ /**
632
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
633
+ *
634
+ * @unsupported
635
+ * @implements DOM API: `Element`
636
+ */
637
+ get oncontextrestored() {
638
+ throw new UnexpectedCallError('Not supported "oncontextlost" property');
639
+ }
622
640
  /**
623
641
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
624
642
  *
@@ -2096,6 +2114,15 @@ export class MLDocument extends MLParentNode {
2096
2114
  setRule(rule) {
2097
2115
  this.currentRule = rule;
2098
2116
  }
2117
+ /**
2118
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
2119
+ *
2120
+ * @unsupported
2121
+ * @implements DOM API: `Document`
2122
+ */
2123
+ startViewTransition(callbackOptions) {
2124
+ throw new UnexpectedCallError('Not supported "startViewTransition" method');
2125
+ }
2099
2126
  /**
2100
2127
  * @implements `@markuplint/ml-core` API: `MLDocument`
2101
2128
  */
@@ -767,6 +767,13 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
767
767
  * @implements DOM API: `Element`
768
768
  */
769
769
  get onclose(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
770
+ /**
771
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
772
+ *
773
+ * @unsupported
774
+ * @implements DOM API: `Element`
775
+ */
776
+ get oncontextlost(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
770
777
  /**
771
778
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
772
779
  *
@@ -775,6 +782,13 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
775
782
  * @implements DOM API: `Element`
776
783
  */
777
784
  get oncontextmenu(): ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
785
+ /**
786
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
787
+ *
788
+ * @unsupported
789
+ * @implements DOM API: `Element`
790
+ */
791
+ get oncontextrestored(): ((this: GlobalEventHandlers, ev: Event) => any) | null;
778
792
  /**
779
793
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
780
794
  *
@@ -1730,6 +1744,14 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
1730
1744
  * @see https://dom.spec.whatwg.org/#dom-element-getelementsbytagnamens
1731
1745
  */
1732
1746
  getElementsByTagNameNS(namespace: any, localName: any): any;
1747
+ /**
1748
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1749
+ *
1750
+ * @unsupported
1751
+ * @implements DOM API: `Element`
1752
+ * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-element-gethtml
1753
+ */
1754
+ getHTML(options?: any): string;
1733
1755
  /**
1734
1756
  * @implements `@markuplint/ml-core` API: `MLElement`
1735
1757
  */
@@ -1878,7 +1900,7 @@ export declare class MLElement<T extends RuleConfigValue, O extends PlainData =
1878
1900
  * @implements DOM API: `Element`
1879
1901
  * @see https://w3c.github.io/pointerlock/#dom-element-requestpointerlock
1880
1902
  */
1881
- requestPointerLock(): void;
1903
+ requestPointerLock(options?: any): Promise<void>;
1882
1904
  /**
1883
1905
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
1884
1906
  *
@@ -1008,6 +1008,15 @@ export class MLElement extends MLParentNode {
1008
1008
  get onclose() {
1009
1009
  throw new UnexpectedCallError('Not supported "onclose" property');
1010
1010
  }
1011
+ /**
1012
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1013
+ *
1014
+ * @unsupported
1015
+ * @implements DOM API: `Element`
1016
+ */
1017
+ get oncontextlost() {
1018
+ throw new UnexpectedCallError('Not supported "oncontextlost" property');
1019
+ }
1011
1020
  /**
1012
1021
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
1013
1022
  *
@@ -1018,6 +1027,15 @@ export class MLElement extends MLParentNode {
1018
1027
  get oncontextmenu() {
1019
1028
  throw new UnexpectedCallError('Not supported "oncontextmenu" property');
1020
1029
  }
1030
+ /**
1031
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
1032
+ *
1033
+ * @unsupported
1034
+ * @implements DOM API: `Element`
1035
+ */
1036
+ get oncontextrestored() {
1037
+ throw new UnexpectedCallError('Not supported "oncontextlost" property');
1038
+ }
1021
1039
  /**
1022
1040
  * **IT THROWS AN ERROR WHEN CALLING THIS.**
1023
1041
  *
@@ -2308,6 +2326,16 @@ export class MLElement extends MLParentNode {
2308
2326
  getElementsByTagNameNS(namespace, localName) {
2309
2327
  throw new UnexpectedCallError('Not supported "getElementsByTagNameNS" method');
2310
2328
  }
2329
+ /**
2330
+ * **IT THROWS AN ERROR WHEN CALLING THIS.**
2331
+ *
2332
+ * @unsupported
2333
+ * @implements DOM API: `Element`
2334
+ * @see https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-element-gethtml
2335
+ */
2336
+ getHTML(options) {
2337
+ throw new UnexpectedCallError('Does not implement "getHTML" method yet');
2338
+ }
2311
2339
  /**
2312
2340
  * @implements `@markuplint/ml-core` API: `MLElement`
2313
2341
  */
@@ -2671,7 +2699,7 @@ export class MLElement extends MLParentNode {
2671
2699
  * @implements DOM API: `Element`
2672
2700
  * @see https://w3c.github.io/pointerlock/#dom-element-requestpointerlock
2673
2701
  */
2674
- requestPointerLock() {
2702
+ requestPointerLock(options) {
2675
2703
  throw new UnexpectedCallError('Not supported "requestPointerLock" method');
2676
2704
  }
2677
2705
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/ml-core",
3
- "version": "4.8.3",
3
+ "version": "4.9.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>",
@@ -28,20 +28,20 @@
28
28
  "./lib/configs.js": "./lib/configs.browser.js"
29
29
  },
30
30
  "dependencies": {
31
- "@markuplint/config-presets": "4.5.5",
32
- "@markuplint/html-parser": "4.6.6",
33
- "@markuplint/html-spec": "4.9.0",
34
- "@markuplint/i18n": "4.5.2",
35
- "@markuplint/ml-ast": "4.4.3",
36
- "@markuplint/ml-config": "4.7.3",
37
- "@markuplint/ml-spec": "4.6.4",
38
- "@markuplint/parser-utils": "4.6.6",
39
- "@markuplint/selector": "4.6.6",
40
- "@markuplint/shared": "4.4.4",
31
+ "@markuplint/config-presets": "4.5.6",
32
+ "@markuplint/html-parser": "4.6.7",
33
+ "@markuplint/html-spec": "4.9.1",
34
+ "@markuplint/i18n": "4.5.3",
35
+ "@markuplint/ml-ast": "4.4.4",
36
+ "@markuplint/ml-config": "4.7.4",
37
+ "@markuplint/ml-spec": "4.7.0",
38
+ "@markuplint/parser-utils": "4.6.7",
39
+ "@markuplint/selector": "4.6.7",
40
+ "@markuplint/shared": "4.4.5",
41
41
  "@types/debug": "4.1.12",
42
- "debug": "4.3.6",
42
+ "debug": "4.3.7",
43
43
  "is-plain-object": "5.0.0",
44
- "type-fest": "4.26.0"
44
+ "type-fest": "4.26.1"
45
45
  },
46
- "gitHead": "77cd5a25d5cf28c83253b7bfe02cd25b54e236b0"
46
+ "gitHead": "05d2eabfcc41b67847c24049f12dd2b9f5ca6485"
47
47
  }