@wordpress/dom 4.45.0 → 4.45.1-next.v.202605131006.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 (56) hide show
  1. package/build-types/data-transfer.d.ts +1 -1
  2. package/build-types/data-transfer.d.ts.map +1 -1
  3. package/build-types/dom/caret-range-from-point.d.ts.map +1 -1
  4. package/build-types/dom/clean-node-list.d.ts +13 -31
  5. package/build-types/dom/clean-node-list.d.ts.map +1 -1
  6. package/build-types/dom/compute-caret-rect.d.ts.map +1 -1
  7. package/build-types/dom/document-has-selection.d.ts.map +1 -1
  8. package/build-types/dom/document-has-text-selection.d.ts.map +1 -1
  9. package/build-types/dom/document-has-uncollapsed-selection.d.ts.map +1 -1
  10. package/build-types/dom/get-computed-style.d.ts +1 -1
  11. package/build-types/dom/get-computed-style.d.ts.map +1 -1
  12. package/build-types/dom/get-offset-parent.d.ts.map +1 -1
  13. package/build-types/dom/get-range-height.d.ts.map +1 -1
  14. package/build-types/dom/get-rectangle-from-range.d.ts.map +1 -1
  15. package/build-types/dom/get-scroll-container.d.ts.map +1 -1
  16. package/build-types/dom/hidden-caret-range-from-point.d.ts.map +1 -1
  17. package/build-types/dom/index.d.ts +27 -27
  18. package/build-types/dom/index.d.ts.map +1 -1
  19. package/build-types/dom/input-field-has-uncollapsed-selection.d.ts.map +1 -1
  20. package/build-types/dom/insert-after.d.ts.map +1 -1
  21. package/build-types/dom/is-edge.d.ts.map +1 -1
  22. package/build-types/dom/is-element.d.ts.map +1 -1
  23. package/build-types/dom/is-empty.d.ts.map +1 -1
  24. package/build-types/dom/is-entirely-selected.d.ts.map +1 -1
  25. package/build-types/dom/is-form-element.d.ts.map +1 -1
  26. package/build-types/dom/is-horizontal-edge.d.ts.map +1 -1
  27. package/build-types/dom/is-html-input-element.d.ts.map +1 -1
  28. package/build-types/dom/is-input-or-text-area.d.ts.map +1 -1
  29. package/build-types/dom/is-number-input.d.ts.map +1 -1
  30. package/build-types/dom/is-rtl.d.ts.map +1 -1
  31. package/build-types/dom/is-selection-forward.d.ts.map +1 -1
  32. package/build-types/dom/is-text-field.d.ts.map +1 -1
  33. package/build-types/dom/is-vertical-edge.d.ts.map +1 -1
  34. package/build-types/dom/place-caret-at-edge.d.ts.map +1 -1
  35. package/build-types/dom/place-caret-at-horizontal-edge.d.ts.map +1 -1
  36. package/build-types/dom/place-caret-at-vertical-edge.d.ts.map +1 -1
  37. package/build-types/dom/remove-invalid-html.d.ts +1 -1
  38. package/build-types/dom/remove-invalid-html.d.ts.map +1 -1
  39. package/build-types/dom/remove.d.ts.map +1 -1
  40. package/build-types/dom/replace-tag.d.ts.map +1 -1
  41. package/build-types/dom/replace.d.ts.map +1 -1
  42. package/build-types/dom/safe-html.d.ts.map +1 -1
  43. package/build-types/dom/scroll-if-no-range.d.ts +1 -1
  44. package/build-types/dom/scroll-if-no-range.d.ts.map +1 -1
  45. package/build-types/dom/strip-html.d.ts.map +1 -1
  46. package/build-types/dom/unwrap.d.ts.map +1 -1
  47. package/build-types/dom/wrap.d.ts.map +1 -1
  48. package/build-types/focusable.d.ts +20 -2
  49. package/build-types/focusable.d.ts.map +1 -1
  50. package/build-types/index.d.ts +14 -7
  51. package/build-types/index.d.ts.map +1 -1
  52. package/build-types/phrasing-content.d.ts +13 -14
  53. package/build-types/phrasing-content.d.ts.map +1 -1
  54. package/build-types/tabbable.d.ts +9 -9
  55. package/build-types/tabbable.d.ts.map +1 -1
  56. package/package.json +3 -3
@@ -5,5 +5,5 @@
5
5
  *
6
6
  * @return {File[]} An array containing all files.
7
7
  */
8
- export function getFilesFromDataTransfer(dataTransfer: DataTransfer): File[];
8
+ export declare function getFilesFromDataTransfer(dataTransfer: DataTransfer): File[];
9
9
  //# sourceMappingURL=data-transfer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-transfer.d.ts","sourceRoot":"","sources":["../src/data-transfer.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,uDAJW,YAAY,GAEX,IAAI,EAAE,CAsBjB"}
1
+ {"version":3,"file":"data-transfer.d.ts","sourceRoot":"","sources":["../src/data-transfer.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAE,YAAY,EAJ3C,YAI2C,GAF1C,IAAI,EAAE,CAsBjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"caret-range-from-point.d.ts","sourceRoot":"","sources":["../../src/dom/caret-range-from-point.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,iDANW,QAAQ,KACR,MAAM,KACN,MAAM,GAEL,KAAK,GAAG,IAAI,CAyBvB"}
1
+ {"version":3,"file":"caret-range-from-point.d.ts","sourceRoot":"","sources":["../../src/dom/caret-range-from-point.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAE,GAAG,EANrC,QAMqC,EAAE,CAAC,EALxC,MAKwC,EAAE,CAAC,EAJ3C,MAI2C,GAF1C,KAAK,GAAG,IAAI,CAyBvB"}
@@ -1,3 +1,16 @@
1
+ export type SchemaItem = {
2
+ attributes?: string[];
3
+ classes?: (string | RegExp)[];
4
+ children?: '*' | {
5
+ [tag: string]: SchemaItem;
6
+ };
7
+ require?: string[];
8
+ allowEmpty: boolean;
9
+ isMatch?: (node: Node) => boolean;
10
+ };
11
+ export type Schema = {
12
+ [tag: string]: SchemaItem;
13
+ };
1
14
  /**
2
15
  * @typedef SchemaItem
3
16
  * @property {string[]} [attributes] Attributes.
@@ -18,35 +31,4 @@
18
31
  * @param {boolean} inline Whether to clean for inline mode.
19
32
  */
20
33
  export default function cleanNodeList(nodeList: NodeList, doc: Document, schema: Schema, inline: boolean): void;
21
- export type SchemaItem = {
22
- /**
23
- * Attributes.
24
- */
25
- attributes?: string[] | undefined;
26
- /**
27
- * Classnames or RegExp to test against. Use '*' to keep all classes.
28
- */
29
- classes?: (string | RegExp)[] | undefined;
30
- /**
31
- * Child schemas.
32
- */
33
- children?: "*" | {
34
- [tag: string]: SchemaItem;
35
- } | undefined;
36
- /**
37
- * Selectors to test required children against. Leave empty or undefined if there are no requirements.
38
- */
39
- require?: string[] | undefined;
40
- /**
41
- * Whether to allow nodes without children.
42
- */
43
- allowEmpty: boolean;
44
- /**
45
- * Function to test whether a node is a match. If left undefined any node will be assumed to match.
46
- */
47
- isMatch?: ((node: Node) => boolean) | undefined;
48
- };
49
- export type Schema = {
50
- [tag: string]: SchemaItem;
51
- };
52
34
  //# sourceMappingURL=clean-node-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clean-node-list.d.ts","sourceRoot":"","sources":["../../src/dom/clean-node-list.js"],"names":[],"mappings":"AAYA;;;;;;;;GAQG;AAEH,sDAAsD;AAEtD;;;;;;;;GAQG;AACH,gDALW,QAAQ,OACR,QAAQ,UACR,MAAM,UACN,OAAO,QA2JjB;;;;;;;;;;;;;;;;;;;;;;;gBAxKa,OAAO;;;;sBACA,IAAI,KAAK,OAAO;;qBAGvB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE"}
1
+ {"version":3,"file":"clean-node-list.d.ts","sourceRoot":"","sources":["../../src/dom/clean-node-list.js"],"names":[],"mappings":"AAaG,YAAS,UAAU,GACnB;IAAiD,UAAU,AAA3D,CACA,EADW,MAAM,EAAE,CACnB;IAAiD,OAAO,AAAxD,CACA,EADW,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAC9B;IAAiD,QAAQ,AAAzD,CACA,EADW,GAAG,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAC9C;IAAiD,OAAO,AAAxD,CACA,EADW,MAAM,EAAE,CACnB;IAAgD,UAAU,EAA/C,OAAO,CAClB;IAAiD,OAAO,AAAxD,CACF,EADa,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CACpC;CAAA,CAAA;AAEG,YAAyC,MAAM,GAArC;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAA;CAAE,CAAQ;AAVnD;;;;;;;;GAQG;AAEH,sDAAsD;AAEtD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAE,QAAQ,EALpC,QAKoC,EAAE,GAAG,EAJzC,QAIyC,EAAE,MAAM,EAHjD,MAGiD,EAAE,MAAM,EAFzD,OAEyD,QAyJnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"compute-caret-rect.d.ts","sourceRoot":"","sources":["../../src/dom/compute-caret-rect.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,8CAJW,MAAM,GAEL,OAAO,GAAG,IAAI,CAYzB"}
1
+ {"version":3,"file":"compute-caret-rect.d.ts","sourceRoot":"","sources":["../../src/dom/compute-caret-rect.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,GAAG,EAJlC,MAIkC,GAFjC,OAAO,GAAG,IAAI,CAYzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"document-has-selection.d.ts","sourceRoot":"","sources":["../../src/dom/document-has-selection.js"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,kDAJW,QAAQ,GAEP,OAAO,CASlB"}
1
+ {"version":3,"file":"document-has-selection.d.ts","sourceRoot":"","sources":["../../src/dom/document-has-selection.js"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAE,GAAG,EAJtC,QAIsC,GAFrC,OAAO,CASlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"document-has-text-selection.d.ts","sourceRoot":"","sources":["../../src/dom/document-has-text-selection.js"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,sDAJW,QAAQ,GAEP,OAAO,CAQlB"}
1
+ {"version":3,"file":"document-has-text-selection.d.ts","sourceRoot":"","sources":["../../src/dom/document-has-text-selection.js"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAE,GAAG,EAJ1C,QAI0C,GAFzC,OAAO,CAQlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"document-has-uncollapsed-selection.d.ts","sourceRoot":"","sources":["../../src/dom/document-has-uncollapsed-selection.js"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,6DAJW,QAAQ,GAEP,OAAO,CAQlB"}
1
+ {"version":3,"file":"document-has-uncollapsed-selection.d.ts","sourceRoot":"","sources":["../../src/dom/document-has-uncollapsed-selection.js"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,+BAA+B,CAAE,GAAG,EAJjD,QAIiD,GAFhD,OAAO,CAQlB"}
@@ -2,5 +2,5 @@
2
2
  * @param {Element} element
3
3
  * @return {ReturnType<Window['getComputedStyle']>} The computed style for the element.
4
4
  */
5
- export default function getComputedStyle(element: Element): ReturnType<Window["getComputedStyle"]>;
5
+ export default function getComputedStyle(element: Element): ReturnType<Window['getComputedStyle']>;
6
6
  //# sourceMappingURL=get-computed-style.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-computed-style.d.ts","sourceRoot":"","sources":["../../src/dom/get-computed-style.js"],"names":[],"mappings":"AAKA;;;GAGG;AACH,kDAHW,OAAO,GACN,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAQjD"}
1
+ {"version":3,"file":"get-computed-style.d.ts","sourceRoot":"","sources":["../../src/dom/get-computed-style.js"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,OAAO,EAHtC,OAGsC,GAFrC,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAQjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-offset-parent.d.ts","sourceRoot":"","sources":["../../src/dom/get-offset-parent.js"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,8CAJW,IAAI,GAEH,IAAI,GAAG,IAAI,CA4BtB"}
1
+ {"version":3,"file":"get-offset-parent.d.ts","sourceRoot":"","sources":["../../src/dom/get-offset-parent.js"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAE,IAAI,EAJlC,IAIkC,GAFjC,IAAI,GAAG,IAAI,CA4BtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-range-height.d.ts","sourceRoot":"","sources":["../../src/dom/get-range-height.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,8CAHW,KAAK,GACJ,MAAM,GAAG,SAAS,CAa7B"}
1
+ {"version":3,"file":"get-range-height.d.ts","sourceRoot":"","sources":["../../src/dom/get-range-height.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,KAAK,EAHlC,KAGkC,GAFjC,MAAM,GAAG,SAAS,CAa7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-rectangle-from-range.d.ts","sourceRoot":"","sources":["../../src/dom/get-rectangle-from-range.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,qDAJW,KAAK,GAEJ,OAAO,OAAC,CAoGnB"}
1
+ {"version":3,"file":"get-rectangle-from-range.d.ts","sourceRoot":"","sources":["../../src/dom/get-rectangle-from-range.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAE,KAAK,EAJzC,KAIyC,GAFxC,OAAO,OAAC,CAoGnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-scroll-container.d.ts","sourceRoot":"","sources":["../../src/dom/get-scroll-container.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,iDALW,OAAO,GAAG,IAAI,cACb,MAAM,OAAA,GAEN,OAAO,GAAG,SAAS,CAwC9B"}
1
+ {"version":3,"file":"get-scroll-container.d.ts","sourceRoot":"","sources":["../../src/dom/get-scroll-container.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,IAAI,EALrC,OAAO,GAAG,IAK2B,EAAE,SAAS,GAJ/C,MAAM,OAIsD,GAF5D,OAAO,GAAG,SAAS,CAwC9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"hidden-caret-range-from-point.d.ts","sourceRoot":"","sources":["../../src/dom/hidden-caret-range-from-point.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;GAWG;AACH,uDAPW,QAAQ,KACR,MAAM,KACN,MAAM,aACN,WAAW,GAET,KAAK,OAAA,CA6BjB"}
1
+ {"version":3,"file":"hidden-caret-range-from-point.d.ts","sourceRoot":"","sources":["../../src/dom/hidden-caret-range-from-point.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAE,GAAG,EAP3C,QAO2C,EAAE,CAAC,EAN9C,MAM8C,EAAE,CAAC,EALjD,MAKiD,EAAE,SAAS,EAJ5D,WAI4D,GAF1D,KAAK,OAAA,CA6BjB"}
@@ -1,28 +1,28 @@
1
- export { default as computeCaretRect } from "./compute-caret-rect";
2
- export { default as documentHasTextSelection } from "./document-has-text-selection";
3
- export { default as documentHasUncollapsedSelection } from "./document-has-uncollapsed-selection";
4
- export { default as documentHasSelection } from "./document-has-selection";
5
- export { default as getRectangleFromRange } from "./get-rectangle-from-range";
6
- export { default as getScrollContainer } from "./get-scroll-container";
7
- export { default as getOffsetParent } from "./get-offset-parent";
8
- export { default as isEntirelySelected } from "./is-entirely-selected";
9
- export { default as isFormElement } from "./is-form-element";
10
- export { default as isHorizontalEdge } from "./is-horizontal-edge";
11
- export { default as isNumberInput } from "./is-number-input";
12
- export { default as isTextField } from "./is-text-field";
13
- export { default as isVerticalEdge } from "./is-vertical-edge";
14
- export { default as placeCaretAtHorizontalEdge } from "./place-caret-at-horizontal-edge";
15
- export { default as placeCaretAtVerticalEdge } from "./place-caret-at-vertical-edge";
16
- export { default as replace } from "./replace";
17
- export { default as remove } from "./remove";
18
- export { default as insertAfter } from "./insert-after";
19
- export { default as unwrap } from "./unwrap";
20
- export { default as replaceTag } from "./replace-tag";
21
- export { default as wrap } from "./wrap";
22
- export { default as __unstableStripHTML } from "./strip-html";
23
- export { default as isEmpty } from "./is-empty";
24
- export { default as removeInvalidHTML } from "./remove-invalid-html";
25
- export { default as isRTL } from "./is-rtl";
26
- export { default as safeHTML } from "./safe-html";
27
- export { default as isSelectionForward } from "./is-selection-forward";
1
+ export { default as computeCaretRect } from './compute-caret-rect';
2
+ export { default as documentHasTextSelection } from './document-has-text-selection';
3
+ export { default as documentHasUncollapsedSelection } from './document-has-uncollapsed-selection';
4
+ export { default as documentHasSelection } from './document-has-selection';
5
+ export { default as getRectangleFromRange } from './get-rectangle-from-range';
6
+ export { default as getScrollContainer } from './get-scroll-container';
7
+ export { default as getOffsetParent } from './get-offset-parent';
8
+ export { default as isEntirelySelected } from './is-entirely-selected';
9
+ export { default as isFormElement } from './is-form-element';
10
+ export { default as isHorizontalEdge } from './is-horizontal-edge';
11
+ export { default as isNumberInput } from './is-number-input';
12
+ export { default as isTextField } from './is-text-field';
13
+ export { default as isVerticalEdge } from './is-vertical-edge';
14
+ export { default as placeCaretAtHorizontalEdge } from './place-caret-at-horizontal-edge';
15
+ export { default as placeCaretAtVerticalEdge } from './place-caret-at-vertical-edge';
16
+ export { default as replace } from './replace';
17
+ export { default as remove } from './remove';
18
+ export { default as insertAfter } from './insert-after';
19
+ export { default as unwrap } from './unwrap';
20
+ export { default as replaceTag } from './replace-tag';
21
+ export { default as wrap } from './wrap';
22
+ export { default as __unstableStripHTML } from './strip-html';
23
+ export { default as isEmpty } from './is-empty';
24
+ export { default as removeInvalidHTML } from './remove-invalid-html';
25
+ export { default as isRTL } from './is-rtl';
26
+ export { default as safeHTML } from './safe-html';
27
+ export { default as isSelectionForward } from './is-selection-forward';
28
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dom/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dom/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"input-field-has-uncollapsed-selection.d.ts","sourceRoot":"","sources":["../../src/dom/input-field-has-uncollapsed-selection.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;GAgBG;AACH,mEAJW,OAAO,GAEN,OAAO,CA0BlB"}
1
+ {"version":3,"file":"input-field-has-uncollapsed-selection.d.ts","sourceRoot":"","sources":["../../src/dom/input-field-has-uncollapsed-selection.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,iCAAiC,CAAE,OAAO,EAJvD,OAIuD,GAFtD,OAAO,CA0BlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"insert-after.d.ts","sourceRoot":"","sources":["../../src/dom/insert-after.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,6CAJW,IAAI,iBACJ,IAAI,GACH,IAAI,CAKf"}
1
+ {"version":3,"file":"insert-after.d.ts","sourceRoot":"","sources":["../../src/dom/insert-after.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,OAAO,EAJjC,IAIiC,EAAE,aAAa,EAHhD,IAGgD,GAF/C,IAAI,CAKf"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-edge.d.ts","sourceRoot":"","sources":["../../src/dom/is-edge.js"],"names":[],"mappings":"AAYA;;;;;;;;;;GAUG;AACH,0CANW,WAAW,aACX,OAAO,iBACP,OAAO,GAEN,OAAO,CAyGlB"}
1
+ {"version":3,"file":"is-edge.d.ts","sourceRoot":"","sources":["../../src/dom/is-edge.js"],"names":[],"mappings":"AAYA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAE,SAAS,EAN9B,WAM8B,EAAE,SAAS,EALzC,OAKyC,EAAE,YAAY,GAJvD,OAI+D,GAF9D,OAAO,CAyGlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-element.d.ts","sourceRoot":"","sources":["../../src/dom/is-element.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wCAHW,IAAI,GAAG,IAAI,GAAG,SAAS,GACtB,IAAI,IAAI,OAAO,CAI1B"}
1
+ {"version":3,"file":"is-element.d.ts","sourceRoot":"","sources":["../../src/dom/is-element.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAE,IAAI,EAH5B,IAAI,GAAG,IAAI,GAAG,SAGc,GAF3B,IAAI,IAAI,OAAO,CAI1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-empty.d.ts","sourceRoot":"","sources":["../../src/dom/is-empty.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,yCAJW,OAAO,GAEN,OAAO,CAqBlB"}
1
+ {"version":3,"file":"is-empty.d.ts","sourceRoot":"","sources":["../../src/dom/is-empty.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAE,OAAO,EAJ7B,OAI6B,GAF5B,OAAO,CAqBlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-entirely-selected.d.ts","sourceRoot":"","sources":["../../src/dom/is-entirely-selected.js"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,oDAJW,WAAW,GAEV,OAAO,CAyDlB"}
1
+ {"version":3,"file":"is-entirely-selected.d.ts","sourceRoot":"","sources":["../../src/dom/is-entirely-selected.js"],"names":[],"mappings":"AAYA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,OAAO,EAJxC,WAIwC,GAFvC,OAAO,CAyDlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-form-element.d.ts","sourceRoot":"","sources":["../../src/dom/is-form-element.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,+CAJW,OAAO,GAEN,OAAO,CAYlB"}
1
+ {"version":3,"file":"is-form-element.d.ts","sourceRoot":"","sources":["../../src/dom/is-form-element.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAE,OAAO,EAJnC,OAImC,GAFlC,OAAO,CAYlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-horizontal-edge.d.ts","sourceRoot":"","sources":["../../src/dom/is-horizontal-edge.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,oDALW,WAAW,aACX,OAAO,GAEN,OAAO,CAIlB"}
1
+ {"version":3,"file":"is-horizontal-edge.d.ts","sourceRoot":"","sources":["../../src/dom/is-horizontal-edge.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,SAAS,EALxC,WAKwC,EAAE,SAAS,EAJnD,OAImD,GAFlD,OAAO,CAIlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-html-input-element.d.ts","sourceRoot":"","sources":["../../src/dom/is-html-input-element.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,iDAHW,IAAI,GACH,IAAI,IAAI,gBAAgB,CAInC"}
1
+ {"version":3,"file":"is-html-input-element.d.ts","sourceRoot":"","sources":["../../src/dom/is-html-input-element.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,IAAI,EAHrC,IAGqC,GAFpC,IAAI,IAAI,gBAAgB,CAInC"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-input-or-text-area.d.ts","sourceRoot":"","sources":["../../src/dom/is-input-or-text-area.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,mDAHW,OAAO,GACN,OAAO,IAAI,gBAAgB,GAAG,mBAAmB,CAI5D"}
1
+ {"version":3,"file":"is-input-or-text-area.d.ts","sourceRoot":"","sources":["../../src/dom/is-input-or-text-area.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,OAAO,EAHvC,OAGuC,GAFtC,OAAO,IAAI,gBAAgB,GAAG,mBAAmB,CAI5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-number-input.d.ts","sourceRoot":"","sources":["../../src/dom/is-number-input.js"],"names":[],"mappings":"AAUA;;;;;;GAMG;AACH,4CAJW,IAAI,GAEH,IAAI,IAAI,gBAAgB,CAYnC"}
1
+ {"version":3,"file":"is-number-input.d.ts","sourceRoot":"","sources":["../../src/dom/is-number-input.js"],"names":[],"mappings":"AAUA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAE,IAAI,EAJhC,IAIgC,GAF/B,IAAI,IAAI,gBAAgB,CAYnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-rtl.d.ts","sourceRoot":"","sources":["../../src/dom/is-rtl.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,uCAJW,OAAO,GAEN,OAAO,CAIlB"}
1
+ {"version":3,"file":"is-rtl.d.ts","sourceRoot":"","sources":["../../src/dom/is-rtl.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAE,OAAO,EAJ3B,OAI2B,GAF1B,OAAO,CAIlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-selection-forward.d.ts","sourceRoot":"","sources":["../../src/dom/is-selection-forward.js"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,sDAJW,SAAS,GAER,OAAO,CA+BlB"}
1
+ {"version":3,"file":"is-selection-forward.d.ts","sourceRoot":"","sources":["../../src/dom/is-selection-forward.js"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,SAAS,EAJ1C,SAI0C,GAFzC,OAAO,CA+BlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-text-field.d.ts","sourceRoot":"","sources":["../../src/dom/is-text-field.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,0CAHW,IAAI,GACH,IAAI,IAAI,WAAW,CAwB9B"}
1
+ {"version":3,"file":"is-text-field.d.ts","sourceRoot":"","sources":["../../src/dom/is-text-field.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAE,IAAI,EAH9B,IAG8B,GAF7B,IAAI,IAAI,WAAW,CAwB9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-vertical-edge.d.ts","sourceRoot":"","sources":["../../src/dom/is-vertical-edge.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,kDALW,WAAW,aACX,OAAO,GAEN,OAAO,CAIlB"}
1
+ {"version":3,"file":"is-vertical-edge.d.ts","sourceRoot":"","sources":["../../src/dom/is-vertical-edge.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAE,SAAS,EALtC,WAKsC,EAAE,SAAS,EAJjD,OAIiD,GAFhD,OAAO,CAIlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"place-caret-at-edge.d.ts","sourceRoot":"","sources":["../../src/dom/place-caret-at-edge.js"],"names":[],"mappings":"AAsCA;;;;;;GAMG;AACH,oDAJW,WAAW,aACX,OAAO,KACP,MAAM,GAAC,SAAS,QA6C1B"}
1
+ {"version":3,"file":"place-caret-at-edge.d.ts","sourceRoot":"","sources":["../../src/dom/place-caret-at-edge.js"],"names":[],"mappings":"AAsCA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAE,SAAS,EAJxC,WAIwC,EAAE,SAAS,EAHnD,OAGmD,EAAE,CAAC,EAFtD,MAAM,GAAC,SAE+C,QA2ChE"}
@@ -1 +1 @@
1
- {"version":3,"file":"place-caret-at-horizontal-edge.d.ts","sourceRoot":"","sources":["../../src/dom/place-caret-at-horizontal-edge.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,8DAHW,WAAW,aACX,OAAO,QAIjB"}
1
+ {"version":3,"file":"place-caret-at-horizontal-edge.d.ts","sourceRoot":"","sources":["../../src/dom/place-caret-at-horizontal-edge.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAE,SAAS,EAHlD,WAGkD,EAAE,SAAS,EAF7D,OAE6D,QAEvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"place-caret-at-vertical-edge.d.ts","sourceRoot":"","sources":["../../src/dom/place-caret-at-vertical-edge.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,4DAJW,WAAW,aACX,OAAO,SACP,OAAO,QAIjB"}
1
+ {"version":3,"file":"place-caret-at-vertical-edge.d.ts","sourceRoot":"","sources":["../../src/dom/place-caret-at-vertical-edge.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAE,SAAS,EAJhD,WAIgD,EAAE,SAAS,EAH3D,OAG2D,EAAE,IAAI,AAFzE,CACF,EADU,OAEiE,QAE3E"}
@@ -7,5 +7,5 @@
7
7
  *
8
8
  * @return {string} The cleaned up HTML.
9
9
  */
10
- export default function removeInvalidHTML(HTML: string, schema: import("./clean-node-list").Schema, inline: boolean): string;
10
+ export default function removeInvalidHTML(HTML: string, schema: import('./clean-node-list').Schema, inline: boolean): string;
11
11
  //# sourceMappingURL=remove-invalid-html.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-invalid-html.d.ts","sourceRoot":"","sources":["../../src/dom/remove-invalid-html.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,gDANW,MAAM,UACN,OAAO,mBAAmB,EAAE,MAAM,UAClC,OAAO,GAEN,MAAM,CAUjB"}
1
+ {"version":3,"file":"remove-invalid-html.d.ts","sourceRoot":"","sources":["../../src/dom/remove-invalid-html.js"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAE,IAAI,EANpC,MAMoC,EAAE,MAAM,EAL5C,OAAO,mBAAmB,EAAE,MAKgB,EAAE,MAAM,EAJpD,OAIoD,GAFnD,MAAM,CAUjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../src/dom/remove.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,qCAHW,IAAI,GACH,IAAI,CAKf"}
1
+ {"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../src/dom/remove.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAE,IAAI,EAHzB,IAGyB,GAFxB,IAAI,CAKf"}
@@ -1 +1 @@
1
- {"version":3,"file":"replace-tag.d.ts","sourceRoot":"","sources":["../../src/dom/replace-tag.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,yCALW,OAAO,WACP,MAAM,GAEL,OAAO,CAalB"}
1
+ {"version":3,"file":"replace-tag.d.ts","sourceRoot":"","sources":["../../src/dom/replace-tag.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAE,IAAI,EAL7B,OAK6B,EAAE,OAAO,EAJtC,MAIsC,GAFrC,OAAO,CAalB"}
@@ -1 +1 @@
1
- {"version":3,"file":"replace.d.ts","sourceRoot":"","sources":["../../src/dom/replace.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,+CAJW,OAAO,WACP,OAAO,GACN,IAAI,CAMf"}
1
+ {"version":3,"file":"replace.d.ts","sourceRoot":"","sources":["../../src/dom/replace.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAE,aAAa,EAJnC,OAImC,EAAE,OAAO,EAH5C,OAG4C,GAF3C,IAAI,CAMf"}
@@ -1 +1 @@
1
- {"version":3,"file":"safe-html.d.ts","sourceRoot":"","sources":["../../src/dom/safe-html.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,uCAJW,MAAM,GAEL,MAAM,CA2BjB"}
1
+ {"version":3,"file":"safe-html.d.ts","sourceRoot":"","sources":["../../src/dom/safe-html.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAE,IAAI,EAJ3B,MAI2B,GAF1B,MAAM,CA2BjB"}
@@ -8,5 +8,5 @@
8
8
  *
9
9
  * @return {?Range} The range returned by the callback.
10
10
  */
11
- export function scrollIfNoRange(container: HTMLElement, alignToTop: boolean, callback: Function): Range | null;
11
+ export declare function scrollIfNoRange(container: HTMLElement, alignToTop: boolean, callback: Function): Range | null;
12
12
  //# sourceMappingURL=scroll-if-no-range.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-if-no-range.d.ts","sourceRoot":"","sources":["../../src/dom/scroll-if-no-range.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,2CANW,WAAW,cACX,OAAO,uBAGL,KAAK,OAAA,CAyBjB"}
1
+ {"version":3,"file":"scroll-if-no-range.d.ts","sourceRoot":"","sources":["../../src/dom/scroll-if-no-range.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAE,SAAS,EAN/B,WAM+B,EAAE,UAAU,EAL3C,OAK2C,EAAE,QAAQ,UAAA,GAFnD,KAAK,OAAA,CAyBjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"strip-html.d.ts","sourceRoot":"","sources":["../../src/dom/strip-html.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wCAJW,MAAM,GAEL,MAAM,CAUjB"}
1
+ {"version":3,"file":"strip-html.d.ts","sourceRoot":"","sources":["../../src/dom/strip-html.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAE,IAAI,EAJ5B,MAI4B,GAF3B,MAAM,CAUjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"unwrap.d.ts","sourceRoot":"","sources":["../../src/dom/unwrap.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,qCAJW,IAAI,GAEH,IAAI,CAYf"}
1
+ {"version":3,"file":"unwrap.d.ts","sourceRoot":"","sources":["../../src/dom/unwrap.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAE,IAAI,EAJzB,IAIyB,GAFxB,IAAI,CAYf"}
@@ -1 +1 @@
1
- {"version":3,"file":"wrap.d.ts","sourceRoot":"","sources":["../../src/dom/wrap.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,sCAHW,OAAO,iBACP,OAAO,QAMjB"}
1
+ {"version":3,"file":"wrap.d.ts","sourceRoot":"","sources":["../../src/dom/wrap.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAE,OAAO,EAH1B,OAG0B,EAAE,aAAa,EAFzC,OAEyC,QAInD"}
@@ -1,3 +1,21 @@
1
+ /**
2
+ * References:
3
+ *
4
+ * Focusable:
5
+ * - https://www.w3.org/TR/html5/editing.html#focus-management
6
+ *
7
+ * Sequential focus navigation:
8
+ * - https://www.w3.org/TR/html5/editing.html#sequential-focus-navigation-and-the-tabindex-attribute
9
+ *
10
+ * Disabled elements:
11
+ * - https://www.w3.org/TR/html5/disabled-elements.html#disabled-elements
12
+ *
13
+ * getClientRects algorithm (requiring layout box):
14
+ * - https://www.w3.org/TR/cssom-view-1/#extension-to-the-element-interface
15
+ *
16
+ * AREA elements associated with an IMG:
17
+ * - https://w3c.github.io/html/editing.html#data-model
18
+ */
1
19
  /**
2
20
  * Returns all focusable elements within a given context.
3
21
  *
@@ -12,7 +30,7 @@
12
30
  *
13
31
  * @return {HTMLElement[]} Focusable elements.
14
32
  */
15
- export function find(context: Element, { sequential }?: {
16
- sequential?: boolean | undefined;
33
+ export declare function find(context: Element, { sequential }?: {
34
+ sequential?: boolean;
17
35
  }): HTMLElement[];
18
36
  //# sourceMappingURL=focusable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"focusable.d.ts","sourceRoot":"","sources":["../src/focusable.js"],"names":[],"mappings":"AAsFA;;;;;;;;;;;;;GAaG;AACH,8BAXW,OAAO,mBAEf;IAA0B,UAAU;CAOpC,GAAS,WAAW,EAAE,CAyBxB"}
1
+ {"version":3,"file":"focusable.d.ts","sourceRoot":"","sources":["../src/focusable.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAqEH;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAE,OAAO,EAXlB,OAWkB,EAAE,EAAE,UAAkB,EAAE,GATlD;IAA0B,UAAU,AAApC,CAOA,EAPQ,OAAO,CAOf;CAEuD,GAF9C,WAAW,EAAE,CAyBxB"}
@@ -1,10 +1,17 @@
1
- export namespace focus {
2
- export { focusable };
3
- export { tabbable };
4
- }
5
- export * from "./dom";
6
- export * from "./phrasing-content";
7
- export * from "./data-transfer";
1
+ /**
2
+ * Internal dependencies
3
+ */
8
4
  import * as focusable from './focusable';
9
5
  import * as tabbable from './tabbable';
6
+ /**
7
+ * Object grouping `focusable` and `tabbable` utils
8
+ * under the keys with the same name.
9
+ */
10
+ export declare const focus: {
11
+ focusable: typeof focusable;
12
+ tabbable: typeof tabbable;
13
+ };
14
+ export * from './dom';
15
+ export * from './phrasing-content';
16
+ export * from './data-transfer';
10
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";;;;;;;2BAG2B,aAAa;0BACd,YAAY"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,KAAK;;;CAA0B,CAAC;AAE7C,cAAc,OAAO,CAAC;AACtB,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
@@ -1,3 +1,13 @@
1
+ /**
2
+ * All phrasing content elements.
3
+ *
4
+ * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#phrasing-content-0
5
+ */
6
+ export type ContentSchema = Record<string, SemanticElementDefinition>;
7
+ export type SemanticElementDefinition = {
8
+ attributes?: string[];
9
+ children?: ContentSchema | '*';
10
+ };
1
11
  /**
2
12
  * Get schema of possible paths for phrasing content.
3
13
  *
@@ -8,7 +18,7 @@
8
18
  *
9
19
  * @return {Partial<ContentSchema>} Schema.
10
20
  */
11
- export function getPhrasingContentSchema(context?: string): Partial<ContentSchema>;
21
+ export declare function getPhrasingContentSchema(context?: string): Partial<ContentSchema>;
12
22
  /**
13
23
  * Find out whether or not the given node is phrasing content.
14
24
  *
@@ -18,21 +28,10 @@ export function getPhrasingContentSchema(context?: string): Partial<ContentSchem
18
28
  *
19
29
  * @return {boolean} True if phrasing content, false if not.
20
30
  */
21
- export function isPhrasingContent(node: Node): boolean;
31
+ export declare function isPhrasingContent(node: Node): boolean;
22
32
  /**
23
33
  * @param {Node} node
24
34
  * @return {boolean} Node is text content
25
35
  */
26
- export function isTextContent(node: Node): boolean;
27
- export type ContentSchema = Record<string, SemanticElementDefinition>;
28
- export type SemanticElementDefinition = {
29
- /**
30
- * Content attributes
31
- */
32
- attributes?: string[] | undefined;
33
- /**
34
- * Content attributes
35
- */
36
- children?: "*" | ContentSchema | undefined;
37
- };
36
+ export declare function isTextContent(node: Node): boolean;
38
37
  //# sourceMappingURL=phrasing-content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"phrasing-content.d.ts","sourceRoot":"","sources":["../src/phrasing-content.js"],"names":[],"mappings":"AA8IA;;;;;;;;;GASG;AACH,mDALW,MAAM,GAGL,OAAO,CAAC,aAAa,CAAC,CA4BjC;AAED;;;;;;;;GAQG;AACH,wCAJW,IAAI,GAEH,OAAO,CAKlB;AAED;;;GAGG;AACH,oCAHW,IAAI,GACH,OAAO,CAKlB;4BAlMY,MAAM,CAAC,MAAM,EAAC,yBAAyB,CAAC"}
1
+ {"version":3,"file":"phrasing-content.d.ts","sourceRoot":"","sources":["../src/phrasing-content.js"],"names":[],"mappings":"AAAA;;;;GAIG;AAGA,YAAoD,aAAa,GAAvD,MAAM,CAAC,MAAM,EAAC,yBAAyB,CAAC,CAAe;AAIjE,YAAS,yBAAyB,GAClC;IAA+B,UAAU,AAAzC,CACA,EADW,MAAM,EAAE,CACnB;IAA+B,QAAQ,AAAvC,CACF,EADa,aAAa,GAAC,GAAG,CAC9B;CAAA,CAAA;AAgID;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAE,OAAO,AAL9C,CAGA,EAHQ,MAKsC,GAFrC,OAAO,CAAC,aAAa,CAAC,CA4BjC;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAE,IAAI,EAJ5B,IAI4B,GAF3B,OAAO,CAKlB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAE,IAAI,EAHxB,IAGwB,GAFvB,OAAO,CAKlB"}
@@ -5,12 +5,17 @@
5
5
  *
6
6
  * @return {boolean} Whether element is tabbable.
7
7
  */
8
- export function isTabbableIndex(element: Element): boolean;
8
+ export declare function isTabbableIndex(element: Element): boolean;
9
+ export type MaybeHTMLInputElement = HTMLElement & {
10
+ type?: string;
11
+ checked?: boolean;
12
+ name?: string;
13
+ };
9
14
  /**
10
15
  * @param {Element} context
11
16
  * @return {HTMLElement[]} Tabbable elements within the context.
12
17
  */
13
- export function find(context: Element): HTMLElement[];
18
+ export declare function find(context: Element): HTMLElement[];
14
19
  /**
15
20
  * Given a focusable element, find the preceding tabbable element.
16
21
  *
@@ -19,7 +24,7 @@ export function find(context: Element): HTMLElement[];
19
24
  *
20
25
  * @return {HTMLElement|undefined} Preceding tabbable element.
21
26
  */
22
- export function findPrevious(element: Element): HTMLElement | undefined;
27
+ export declare function findPrevious(element: Element): HTMLElement | undefined;
23
28
  /**
24
29
  * Given a focusable element, find the next tabbable element.
25
30
  *
@@ -28,10 +33,5 @@ export function findPrevious(element: Element): HTMLElement | undefined;
28
33
  *
29
34
  * @return {HTMLElement|undefined} Next tabbable element.
30
35
  */
31
- export function findNext(element: Element): HTMLElement | undefined;
32
- export type MaybeHTMLInputElement = HTMLElement & {
33
- type?: string;
34
- checked?: boolean;
35
- name?: string;
36
- };
36
+ export declare function findNext(element: Element): HTMLElement | undefined;
37
37
  //# sourceMappingURL=tabbable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabbable.d.ts","sourceRoot":"","sources":["../src/tabbable.js"],"names":[],"mappings":"AAsBA;;;;;;GAMG;AACH,yCAJW,OAAO,GAEN,OAAO,CAIlB;AAiHD;;;GAGG;AACH,8BAHW,OAAO,GACN,WAAW,EAAE,CAIxB;AAED;;;;;;;GAOG;AACH,sCALW,OAAO,GAGN,WAAW,GAAC,SAAS,CAWhC;AAED;;;;;;;GAOG;AACH,kCALW,OAAO,GAGN,WAAW,GAAC,SAAS,CAShC;oCAzJa,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE"}
1
+ {"version":3,"file":"tabbable.d.ts","sourceRoot":"","sources":["../src/tabbable.js"],"names":[],"mappings":"AAsBA;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAE,OAAO,EAJ7B,OAI6B,GAF5B,OAAO,CAIlB;AAEG,YAA6E,qBAAqB,GAAxF,WAAW,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAuB;AA+GtG;;;GAGG;AACH,wBAAgB,IAAI,CAAE,OAAO,EAHlB,OAGkB,GAFjB,WAAW,EAAE,CAIxB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAE,OAAO,EAL1B,OAK0B,GAFzB,WAAW,GAAC,SAAS,CAWhC;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAE,OAAO,EALtB,OAKsB,GAFrB,WAAW,GAAC,SAAS,CAShC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/dom",
3
- "version": "4.45.0",
3
+ "version": "4.45.1-next.v.202605131006.0+2a3d07cab",
4
4
  "description": "DOM utilities module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -45,10 +45,10 @@
45
45
  "types": "build-types",
46
46
  "sideEffects": false,
47
47
  "dependencies": {
48
- "@wordpress/deprecated": "^4.45.0"
48
+ "@wordpress/deprecated": "^4.45.1-next.v.202605131006.0+2a3d07cab"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "8c229eaed0e88c9827e2da3d73a78f9ddd77714b"
53
+ "gitHead": "8804fa29bc78a1d98e5a4d40c3e180ddd907016c"
54
54
  }