@joist/element 3.9.1 → 3.9.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joist/element",
3
- "version": "3.9.1",
3
+ "version": "3.9.2",
4
4
  "type": "module",
5
5
  "main": "./target/lib.js",
6
6
  "module": "./target/lib.js",
@@ -38,6 +38,7 @@ export declare function element<Target extends CustomElementConstructor>(Base: T
38
38
  readonly clientTop: number;
39
39
  readonly clientWidth: number;
40
40
  id: string;
41
+ innerHTML: string;
41
42
  readonly localName: string;
42
43
  readonly namespaceURI: string | null;
43
44
  onfullscreenchange: ((this: Element, ev: Event) => any) | null;
@@ -77,12 +78,13 @@ export declare function element<Target extends CustomElementConstructor>(Base: T
77
78
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
78
79
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
79
80
  getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
81
+ getHTML(options?: GetHTMLOptions): string;
80
82
  hasAttribute(qualifiedName: string): boolean;
81
83
  hasAttributeNS(namespace: string | null, localName: string): boolean;
82
84
  hasAttributes(): boolean;
83
85
  hasPointerCapture(pointerId: number): boolean;
84
86
  insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
85
- insertAdjacentHTML(position: InsertPosition, text: string): void;
87
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
86
88
  insertAdjacentText(where: InsertPosition, data: string): void;
87
89
  matches(selectors: string): boolean;
88
90
  releasePointerCapture(pointerId: number): void;
@@ -90,7 +92,7 @@ export declare function element<Target extends CustomElementConstructor>(Base: T
90
92
  removeAttributeNS(namespace: string | null, localName: string): void;
91
93
  removeAttributeNode(attr: Attr): Attr;
92
94
  requestFullscreen(options?: FullscreenOptions): Promise<void>;
93
- requestPointerLock(): void;
95
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
94
96
  scroll(options?: ScrollToOptions): void;
95
97
  scroll(x: number, y: number): void;
96
98
  scrollBy(options?: ScrollToOptions): void;
@@ -200,7 +202,6 @@ export declare function element<Target extends CustomElementConstructor>(Base: T
200
202
  before(...nodes: (Node | string)[]): void;
201
203
  remove(): void;
202
204
  replaceWith(...nodes: (Node | string)[]): void;
203
- innerHTML: string;
204
205
  readonly nextElementSibling: Element | null;
205
206
  readonly previousElementSibling: Element | null;
206
207
  readonly childElementCount: number;
@@ -242,7 +243,9 @@ export declare function element<Target extends CustomElementConstructor>(Base: T
242
243
  onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
243
244
  onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
244
245
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
246
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
245
247
  oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
248
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
246
249
  oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
247
250
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
248
251
  oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;