drab 7.0.2 → 8.0.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.
Files changed (59) hide show
  1. package/dist/base/index.d.ts +122 -48
  2. package/dist/base/index.d.ts.map +1 -1
  3. package/dist/base/index.js +10 -7
  4. package/dist/contextmenu/index.d.ts +90 -35
  5. package/dist/contextmenu/index.d.ts.map +1 -1
  6. package/dist/define.d.ts +0 -1
  7. package/dist/define.d.ts.map +1 -1
  8. package/dist/define.js +0 -1
  9. package/dist/editor/index.d.ts +90 -35
  10. package/dist/editor/index.d.ts.map +1 -1
  11. package/dist/fullscreen/index.d.ts +90 -36
  12. package/dist/fullscreen/index.d.ts.map +1 -1
  13. package/dist/fullscreen/index.js +3 -14
  14. package/dist/index.d.ts +0 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +0 -1
  17. package/dist/intersect/index.d.ts +90 -36
  18. package/dist/intersect/index.d.ts.map +1 -1
  19. package/dist/intersect/index.js +1 -11
  20. package/dist/prefetch/index.d.ts +62 -25
  21. package/dist/prefetch/index.d.ts.map +1 -1
  22. package/dist/prefetch/index.js +17 -30
  23. package/dist/share/index.d.ts +120 -47
  24. package/dist/share/index.d.ts.map +1 -1
  25. package/dist/tablesort/index.d.ts +120 -47
  26. package/dist/tablesort/index.d.ts.map +1 -1
  27. package/dist/tablesort/index.js +54 -54
  28. package/dist/tabs/index.d.ts +61 -24
  29. package/dist/tabs/index.d.ts.map +1 -1
  30. package/dist/tabs/index.js +10 -2
  31. package/dist/types/index.d.ts +0 -2
  32. package/dist/types/index.d.ts.map +1 -1
  33. package/dist/util/validate.d.ts.map +1 -1
  34. package/dist/util/validate.js +2 -1
  35. package/dist/wakelock/index.d.ts +120 -47
  36. package/dist/wakelock/index.d.ts.map +1 -1
  37. package/dist/wakelock/index.js +1 -2
  38. package/package.json +4 -4
  39. package/src/base/index.ts +10 -7
  40. package/src/contextmenu/index.ts +2 -3
  41. package/src/define.ts +0 -1
  42. package/src/editor/index.ts +1 -2
  43. package/src/fullscreen/index.ts +6 -18
  44. package/src/index.ts +0 -1
  45. package/src/intersect/index.ts +2 -14
  46. package/src/prefetch/index.ts +21 -36
  47. package/src/tablesort/index.ts +64 -63
  48. package/src/tabs/index.ts +16 -2
  49. package/src/types/index.ts +0 -2
  50. package/src/util/validate.ts +2 -1
  51. package/src/wakelock/index.ts +2 -5
  52. package/dist/dialog/define.d.ts +0 -2
  53. package/dist/dialog/define.d.ts.map +0 -1
  54. package/dist/dialog/define.js +0 -3
  55. package/dist/dialog/index.d.ts +0 -1079
  56. package/dist/dialog/index.d.ts.map +0 -1
  57. package/dist/dialog/index.js +0 -90
  58. package/src/dialog/define.ts +0 -4
  59. package/src/dialog/index.ts +0 -120
@@ -19,7 +19,7 @@ export type ContentElement = {
19
19
  };
20
20
  declare const Editor_base: {
21
21
  new (...args: any[]): {
22
- "__#1@#listenerController": AbortController;
22
+ controller: AbortController;
23
23
  safeListener<T extends keyof HTMLElementEventMap>(type: T, listener: (this: HTMLElement, event: HTMLElementEventMap[T]) => any, element?: HTMLElement, options?: AddEventListenerOptions): void;
24
24
  safeListener<T extends keyof DocumentEventMap>(type: T, listener: (this: Document, event: DocumentEventMap[T]) => any, document: Document, options?: AddEventListenerOptions): void;
25
25
  safeListener<T extends keyof WindowEventMap>(type: T, listener: (this: Window, event: WindowEventMap[T]) => any, window: Window, options?: AddEventListenerOptions): void;
@@ -30,9 +30,10 @@ declare const Editor_base: {
30
30
  accessKey: string;
31
31
  readonly accessKeyLabel: string;
32
32
  autocapitalize: string;
33
+ autocorrect: boolean;
33
34
  dir: string;
34
35
  draggable: boolean;
35
- hidden: boolean;
36
+ hidden: boolean | "until-found";
36
37
  inert: boolean;
37
38
  innerText: string;
38
39
  lang: string;
@@ -50,8 +51,8 @@ declare const Editor_base: {
50
51
  attachInternals(): ElementInternals;
51
52
  click(): void;
52
53
  hidePopover(): void;
53
- showPopover(): void;
54
- togglePopover(options?: boolean): boolean;
54
+ showPopover(options?: ShowPopoverOptions): void;
55
+ togglePopover(options?: TogglePopoverOptions | boolean): boolean;
55
56
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
56
57
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
57
58
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -65,6 +66,7 @@ declare const Editor_base: {
65
66
  readonly clientTop: number;
66
67
  readonly clientWidth: number;
67
68
  readonly currentCSSZoom: number;
69
+ readonly customElementRegistry: CustomElementRegistry | null;
68
70
  id: string;
69
71
  innerHTML: string;
70
72
  readonly localName: string;
@@ -115,6 +117,9 @@ declare const Editor_base: {
115
117
  insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
116
118
  insertAdjacentHTML(position: InsertPosition, string: string): void;
117
119
  insertAdjacentText(where: InsertPosition, data: string): void;
120
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
121
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
122
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
118
123
  matches(selectors: string): boolean;
119
124
  releasePointerCapture(pointerId: number): void;
120
125
  removeAttribute(qualifiedName: string): void;
@@ -137,6 +142,8 @@ declare const Editor_base: {
137
142
  setPointerCapture(pointerId: number): void;
138
143
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
139
144
  webkitMatchesSelector(selectors: string): boolean;
145
+ get textContent(): string;
146
+ set textContent(value: string | null);
140
147
  readonly baseURI: string;
141
148
  readonly childNodes: NodeListOf<ChildNode>;
142
149
  readonly firstChild: ChildNode | null;
@@ -149,7 +156,6 @@ declare const Editor_base: {
149
156
  readonly parentElement: HTMLElement | null;
150
157
  readonly parentNode: ParentNode | null;
151
158
  readonly previousSibling: ChildNode | null;
152
- textContent: string | null;
153
159
  appendChild<T extends Node>(node: T): T;
154
160
  cloneNode(subtree?: boolean): Node;
155
161
  compareDocumentPosition(other: Node): number;
@@ -184,6 +190,7 @@ declare const Editor_base: {
184
190
  readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
185
191
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
186
192
  dispatchEvent(event: Event): boolean;
193
+ ariaActiveDescendantElement: Element | null;
187
194
  ariaAtomic: string | null;
188
195
  ariaAutoComplete: string | null;
189
196
  ariaBrailleLabel: string | null;
@@ -194,21 +201,28 @@ declare const Editor_base: {
194
201
  ariaColIndex: string | null;
195
202
  ariaColIndexText: string | null;
196
203
  ariaColSpan: string | null;
204
+ ariaControlsElements: ReadonlyArray<Element> | null;
197
205
  ariaCurrent: string | null;
206
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
198
207
  ariaDescription: string | null;
208
+ ariaDetailsElements: ReadonlyArray<Element> | null;
199
209
  ariaDisabled: string | null;
210
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
200
211
  ariaExpanded: string | null;
212
+ ariaFlowToElements: ReadonlyArray<Element> | null;
201
213
  ariaHasPopup: string | null;
202
214
  ariaHidden: string | null;
203
215
  ariaInvalid: string | null;
204
216
  ariaKeyShortcuts: string | null;
205
217
  ariaLabel: string | null;
218
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
206
219
  ariaLevel: string | null;
207
220
  ariaLive: string | null;
208
221
  ariaModal: string | null;
209
222
  ariaMultiLine: string | null;
210
223
  ariaMultiSelectable: string | null;
211
224
  ariaOrientation: string | null;
225
+ ariaOwnsElements: ReadonlyArray<Element> | null;
212
226
  ariaPlaceholder: string | null;
213
227
  ariaPosInSet: string | null;
214
228
  ariaPressed: string | null;
@@ -241,6 +255,7 @@ declare const Editor_base: {
241
255
  readonly firstElementChild: Element | null;
242
256
  readonly lastElementChild: Element | null;
243
257
  append(...nodes: (Node | string)[]): void;
258
+ moveBefore(node: Node, child: Node | null): void;
244
259
  prepend(...nodes: (Node | string)[]): void;
245
260
  querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
246
261
  querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
@@ -266,18 +281,20 @@ declare const Editor_base: {
266
281
  onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
267
282
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
268
283
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
269
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
284
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
270
285
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
271
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
286
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
287
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
272
288
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
273
289
  oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
274
290
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
291
  oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
292
  onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
293
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
278
294
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
295
+ oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
279
296
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
280
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
297
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
281
298
  oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
282
299
  oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
283
300
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -297,7 +314,7 @@ declare const Editor_base: {
297
314
  onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
298
315
  onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
299
316
  ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
300
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
317
+ oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
301
318
  oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
302
319
  onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
303
320
  onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
@@ -325,6 +342,7 @@ declare const Editor_base: {
325
342
  onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
326
343
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
327
344
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
345
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
328
346
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
329
347
  onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
330
348
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -343,7 +361,7 @@ declare const Editor_base: {
343
361
  onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
344
362
  onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
345
363
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
346
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
364
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
347
365
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
348
366
  ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
349
367
  ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
@@ -361,14 +379,15 @@ declare const Editor_base: {
361
379
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
362
380
  autofocus: boolean;
363
381
  readonly dataset: DOMStringMap;
364
- nonce?: string;
382
+ nonce: string;
365
383
  tabIndex: number;
366
384
  blur(): void;
367
385
  focus(options?: FocusOptions): void;
368
386
  };
369
387
  } & {
370
388
  new (...args: any[]): {
371
- event: keyof HTMLElementEventMap;
389
+ get event(): keyof HTMLElementEventMap;
390
+ set event(value: keyof HTMLElementEventMap);
372
391
  triggers<T extends HTMLElement>(instance: import("../base/index.js").Constructor<T>): NodeListOf<T>;
373
392
  triggers(): NodeListOf<HTMLElement>;
374
393
  listener<T extends keyof HTMLElementEventMap>(listener: (this: HTMLElement, e: HTMLElementEventMap[T]) => any, options?: AddEventListenerOptions): void;
@@ -376,9 +395,10 @@ declare const Editor_base: {
376
395
  accessKey: string;
377
396
  readonly accessKeyLabel: string;
378
397
  autocapitalize: string;
398
+ autocorrect: boolean;
379
399
  dir: string;
380
400
  draggable: boolean;
381
- hidden: boolean;
401
+ hidden: boolean | "until-found";
382
402
  inert: boolean;
383
403
  innerText: string;
384
404
  lang: string;
@@ -396,8 +416,8 @@ declare const Editor_base: {
396
416
  attachInternals(): ElementInternals;
397
417
  click(): void;
398
418
  hidePopover(): void;
399
- showPopover(): void;
400
- togglePopover(options?: boolean): boolean;
419
+ showPopover(options?: ShowPopoverOptions): void;
420
+ togglePopover(options?: TogglePopoverOptions | boolean): boolean;
401
421
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
402
422
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
403
423
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -411,6 +431,7 @@ declare const Editor_base: {
411
431
  readonly clientTop: number;
412
432
  readonly clientWidth: number;
413
433
  readonly currentCSSZoom: number;
434
+ readonly customElementRegistry: CustomElementRegistry | null;
414
435
  id: string;
415
436
  innerHTML: string;
416
437
  readonly localName: string;
@@ -461,6 +482,9 @@ declare const Editor_base: {
461
482
  insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
462
483
  insertAdjacentHTML(position: InsertPosition, string: string): void;
463
484
  insertAdjacentText(where: InsertPosition, data: string): void;
485
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
486
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
487
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
464
488
  matches(selectors: string): boolean;
465
489
  releasePointerCapture(pointerId: number): void;
466
490
  removeAttribute(qualifiedName: string): void;
@@ -483,6 +507,8 @@ declare const Editor_base: {
483
507
  setPointerCapture(pointerId: number): void;
484
508
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
485
509
  webkitMatchesSelector(selectors: string): boolean;
510
+ get textContent(): string;
511
+ set textContent(value: string | null);
486
512
  readonly baseURI: string;
487
513
  readonly childNodes: NodeListOf<ChildNode>;
488
514
  readonly firstChild: ChildNode | null;
@@ -495,7 +521,6 @@ declare const Editor_base: {
495
521
  readonly parentElement: HTMLElement | null;
496
522
  readonly parentNode: ParentNode | null;
497
523
  readonly previousSibling: ChildNode | null;
498
- textContent: string | null;
499
524
  appendChild<T extends Node>(node: T): T;
500
525
  cloneNode(subtree?: boolean): Node;
501
526
  compareDocumentPosition(other: Node): number;
@@ -530,6 +555,7 @@ declare const Editor_base: {
530
555
  readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
531
556
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
532
557
  dispatchEvent(event: Event): boolean;
558
+ ariaActiveDescendantElement: Element | null;
533
559
  ariaAtomic: string | null;
534
560
  ariaAutoComplete: string | null;
535
561
  ariaBrailleLabel: string | null;
@@ -540,21 +566,28 @@ declare const Editor_base: {
540
566
  ariaColIndex: string | null;
541
567
  ariaColIndexText: string | null;
542
568
  ariaColSpan: string | null;
569
+ ariaControlsElements: ReadonlyArray<Element> | null;
543
570
  ariaCurrent: string | null;
571
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
544
572
  ariaDescription: string | null;
573
+ ariaDetailsElements: ReadonlyArray<Element> | null;
545
574
  ariaDisabled: string | null;
575
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
546
576
  ariaExpanded: string | null;
577
+ ariaFlowToElements: ReadonlyArray<Element> | null;
547
578
  ariaHasPopup: string | null;
548
579
  ariaHidden: string | null;
549
580
  ariaInvalid: string | null;
550
581
  ariaKeyShortcuts: string | null;
551
582
  ariaLabel: string | null;
583
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
552
584
  ariaLevel: string | null;
553
585
  ariaLive: string | null;
554
586
  ariaModal: string | null;
555
587
  ariaMultiLine: string | null;
556
588
  ariaMultiSelectable: string | null;
557
589
  ariaOrientation: string | null;
590
+ ariaOwnsElements: ReadonlyArray<Element> | null;
558
591
  ariaPlaceholder: string | null;
559
592
  ariaPosInSet: string | null;
560
593
  ariaPressed: string | null;
@@ -587,6 +620,7 @@ declare const Editor_base: {
587
620
  readonly firstElementChild: Element | null;
588
621
  readonly lastElementChild: Element | null;
589
622
  append(...nodes: (Node | string)[]): void;
623
+ moveBefore(node: Node, child: Node | null): void;
590
624
  prepend(...nodes: (Node | string)[]): void;
591
625
  querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
592
626
  querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
@@ -612,18 +646,20 @@ declare const Editor_base: {
612
646
  onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
613
647
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
614
648
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
615
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
649
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
616
650
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
617
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
651
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
652
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
618
653
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
619
654
  oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
620
655
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
621
656
  oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
622
657
  onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
623
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
658
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
624
659
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
660
+ oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
625
661
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
626
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
662
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
627
663
  oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
628
664
  oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
629
665
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -643,7 +679,7 @@ declare const Editor_base: {
643
679
  onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
644
680
  onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
645
681
  ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
646
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
682
+ oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
647
683
  oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
648
684
  onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
649
685
  onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
@@ -671,6 +707,7 @@ declare const Editor_base: {
671
707
  onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
672
708
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
673
709
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
710
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
674
711
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
675
712
  onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
676
713
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -689,7 +726,7 @@ declare const Editor_base: {
689
726
  onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
690
727
  onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
691
728
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
692
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
729
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
693
730
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
694
731
  ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
695
732
  ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
@@ -707,7 +744,7 @@ declare const Editor_base: {
707
744
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
708
745
  autofocus: boolean;
709
746
  readonly dataset: DOMStringMap;
710
- nonce?: string;
747
+ nonce: string;
711
748
  tabIndex: number;
712
749
  blur(): void;
713
750
  focus(options?: FocusOptions): void;
@@ -720,9 +757,10 @@ declare const Editor_base: {
720
757
  accessKey: string;
721
758
  readonly accessKeyLabel: string;
722
759
  autocapitalize: string;
760
+ autocorrect: boolean;
723
761
  dir: string;
724
762
  draggable: boolean;
725
- hidden: boolean;
763
+ hidden: boolean | "until-found";
726
764
  inert: boolean;
727
765
  innerText: string;
728
766
  lang: string;
@@ -740,8 +778,8 @@ declare const Editor_base: {
740
778
  attachInternals(): ElementInternals;
741
779
  click(): void;
742
780
  hidePopover(): void;
743
- showPopover(): void;
744
- togglePopover(options?: boolean): boolean;
781
+ showPopover(options?: ShowPopoverOptions): void;
782
+ togglePopover(options?: TogglePopoverOptions | boolean): boolean;
745
783
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
746
784
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
747
785
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -755,6 +793,7 @@ declare const Editor_base: {
755
793
  readonly clientTop: number;
756
794
  readonly clientWidth: number;
757
795
  readonly currentCSSZoom: number;
796
+ readonly customElementRegistry: CustomElementRegistry | null;
758
797
  id: string;
759
798
  innerHTML: string;
760
799
  readonly localName: string;
@@ -805,6 +844,9 @@ declare const Editor_base: {
805
844
  insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
806
845
  insertAdjacentHTML(position: InsertPosition, string: string): void;
807
846
  insertAdjacentText(where: InsertPosition, data: string): void;
847
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
848
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
849
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
808
850
  matches(selectors: string): boolean;
809
851
  releasePointerCapture(pointerId: number): void;
810
852
  removeAttribute(qualifiedName: string): void;
@@ -827,6 +869,8 @@ declare const Editor_base: {
827
869
  setPointerCapture(pointerId: number): void;
828
870
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
829
871
  webkitMatchesSelector(selectors: string): boolean;
872
+ get textContent(): string;
873
+ set textContent(value: string | null);
830
874
  readonly baseURI: string;
831
875
  readonly childNodes: NodeListOf<ChildNode>;
832
876
  readonly firstChild: ChildNode | null;
@@ -839,7 +883,6 @@ declare const Editor_base: {
839
883
  readonly parentElement: HTMLElement | null;
840
884
  readonly parentNode: ParentNode | null;
841
885
  readonly previousSibling: ChildNode | null;
842
- textContent: string | null;
843
886
  appendChild<T extends Node>(node: T): T;
844
887
  cloneNode(subtree?: boolean): Node;
845
888
  compareDocumentPosition(other: Node): number;
@@ -874,6 +917,7 @@ declare const Editor_base: {
874
917
  readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
875
918
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
876
919
  dispatchEvent(event: Event): boolean;
920
+ ariaActiveDescendantElement: Element | null;
877
921
  ariaAtomic: string | null;
878
922
  ariaAutoComplete: string | null;
879
923
  ariaBrailleLabel: string | null;
@@ -884,21 +928,28 @@ declare const Editor_base: {
884
928
  ariaColIndex: string | null;
885
929
  ariaColIndexText: string | null;
886
930
  ariaColSpan: string | null;
931
+ ariaControlsElements: ReadonlyArray<Element> | null;
887
932
  ariaCurrent: string | null;
933
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
888
934
  ariaDescription: string | null;
935
+ ariaDetailsElements: ReadonlyArray<Element> | null;
889
936
  ariaDisabled: string | null;
937
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
890
938
  ariaExpanded: string | null;
939
+ ariaFlowToElements: ReadonlyArray<Element> | null;
891
940
  ariaHasPopup: string | null;
892
941
  ariaHidden: string | null;
893
942
  ariaInvalid: string | null;
894
943
  ariaKeyShortcuts: string | null;
895
944
  ariaLabel: string | null;
945
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
896
946
  ariaLevel: string | null;
897
947
  ariaLive: string | null;
898
948
  ariaModal: string | null;
899
949
  ariaMultiLine: string | null;
900
950
  ariaMultiSelectable: string | null;
901
951
  ariaOrientation: string | null;
952
+ ariaOwnsElements: ReadonlyArray<Element> | null;
902
953
  ariaPlaceholder: string | null;
903
954
  ariaPosInSet: string | null;
904
955
  ariaPressed: string | null;
@@ -931,6 +982,7 @@ declare const Editor_base: {
931
982
  readonly firstElementChild: Element | null;
932
983
  readonly lastElementChild: Element | null;
933
984
  append(...nodes: (Node | string)[]): void;
985
+ moveBefore(node: Node, child: Node | null): void;
934
986
  prepend(...nodes: (Node | string)[]): void;
935
987
  querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
936
988
  querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
@@ -956,18 +1008,20 @@ declare const Editor_base: {
956
1008
  onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
957
1009
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
958
1010
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
959
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1011
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
960
1012
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
961
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1013
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1014
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
962
1015
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
963
1016
  oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
964
1017
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
965
1018
  oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
966
1019
  onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
967
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1020
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
968
1021
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1022
+ oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
969
1023
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
970
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1024
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
971
1025
  oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
972
1026
  oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
973
1027
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -987,7 +1041,7 @@ declare const Editor_base: {
987
1041
  onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
988
1042
  onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
989
1043
  ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
990
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1044
+ oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
991
1045
  oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
992
1046
  onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
993
1047
  onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
@@ -1015,6 +1069,7 @@ declare const Editor_base: {
1015
1069
  onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1016
1070
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1017
1071
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1072
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1018
1073
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1019
1074
  onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
1020
1075
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -1033,7 +1088,7 @@ declare const Editor_base: {
1033
1088
  onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
1034
1089
  onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1035
1090
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1036
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1091
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
1037
1092
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1038
1093
  ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1039
1094
  ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
@@ -1051,7 +1106,7 @@ declare const Editor_base: {
1051
1106
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1052
1107
  autofocus: boolean;
1053
1108
  readonly dataset: DOMStringMap;
1054
- nonce?: string;
1109
+ nonce: string;
1055
1110
  tabIndex: number;
1056
1111
  blur(): void;
1057
1112
  focus(options?: FocusOptions): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,iBAAiB,EAGtB,KAAK,iBAAiB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,gBAChB,SAAQ,iBAAiB,EACxB,iBAAiB;CAAG;AAEtB,MAAM,WAAW,uBAAuB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B,iCAAiC;IACjC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAElC,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IAEd,qCAAqC;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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