@wordpress/dom 4.31.1-next.f56bd8138.0 → 4.32.1-next.47f435fc9.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 (186) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/data-transfer.js +30 -18
  3. package/build/data-transfer.js.map +7 -1
  4. package/build/dom/caret-range-from-point.js +22 -25
  5. package/build/dom/caret-range-from-point.js.map +7 -1
  6. package/build/dom/clean-node-list.js +122 -129
  7. package/build/dom/clean-node-list.js.map +7 -1
  8. package/build/dom/compute-caret-rect.js +36 -21
  9. package/build/dom/compute-caret-rect.js.map +7 -1
  10. package/build/dom/document-has-selection.js +36 -22
  11. package/build/dom/document-has-selection.js.map +7 -1
  12. package/build/dom/document-has-text-selection.js +25 -23
  13. package/build/dom/document-has-text-selection.js.map +7 -1
  14. package/build/dom/document-has-uncollapsed-selection.js +35 -22
  15. package/build/dom/document-has-uncollapsed-selection.js.map +7 -1
  16. package/build/dom/get-computed-style.js +27 -17
  17. package/build/dom/get-computed-style.js.map +7 -1
  18. package/build/dom/get-offset-parent.js +43 -32
  19. package/build/dom/get-offset-parent.js.map +7 -1
  20. package/build/dom/get-range-height.js +24 -18
  21. package/build/dom/get-range-height.js.map +7 -1
  22. package/build/dom/get-rectangle-from-range.js +47 -68
  23. package/build/dom/get-rectangle-from-range.js.map +7 -1
  24. package/build/dom/get-scroll-container.js +44 -37
  25. package/build/dom/get-scroll-container.js.map +7 -1
  26. package/build/dom/hidden-caret-range-from-point.js +39 -33
  27. package/build/dom/hidden-caret-range-from-point.js.map +7 -1
  28. package/build/dom/index.js +116 -195
  29. package/build/dom/index.js.map +7 -1
  30. package/build/dom/input-field-has-uncollapsed-selection.js +40 -42
  31. package/build/dom/input-field-has-uncollapsed-selection.js.map +7 -1
  32. package/build/dom/insert-after.js +24 -19
  33. package/build/dom/insert-after.js.map +7 -1
  34. package/build/dom/is-edge.js +57 -67
  35. package/build/dom/is-edge.js.map +7 -1
  36. package/build/dom/is-element.js +22 -11
  37. package/build/dom/is-element.js.map +7 -1
  38. package/build/dom/is-empty.js +27 -17
  39. package/build/dom/is-empty.js.map +7 -1
  40. package/build/dom/is-entirely-selected.js +46 -50
  41. package/build/dom/is-entirely-selected.js.map +7 -1
  42. package/build/dom/is-form-element.js +36 -24
  43. package/build/dom/is-form-element.js.map +7 -1
  44. package/build/dom/is-horizontal-edge.js +34 -20
  45. package/build/dom/is-horizontal-edge.js.map +7 -1
  46. package/build/dom/is-html-input-element.js +23 -12
  47. package/build/dom/is-html-input-element.js.map +7 -1
  48. package/build/dom/is-input-or-text-area.js +23 -12
  49. package/build/dom/is-input-or-text-area.js.map +7 -1
  50. package/build/dom/is-number-input.js +38 -29
  51. package/build/dom/is-number-input.js.map +7 -1
  52. package/build/dom/is-rtl.js +34 -19
  53. package/build/dom/is-rtl.js.map +7 -1
  54. package/build/dom/is-selection-forward.js +26 -40
  55. package/build/dom/is-selection-forward.js.map +7 -1
  56. package/build/dom/is-text-field.js +49 -24
  57. package/build/dom/is-text-field.js.map +7 -1
  58. package/build/dom/is-vertical-edge.js +34 -20
  59. package/build/dom/is-vertical-edge.js.map +7 -1
  60. package/build/dom/place-caret-at-edge.js +52 -55
  61. package/build/dom/place-caret-at-edge.js.map +7 -1
  62. package/build/dom/place-caret-at-horizontal-edge.js +34 -18
  63. package/build/dom/place-caret-at-horizontal-edge.js.map +7 -1
  64. package/build/dom/place-caret-at-vertical-edge.js +34 -19
  65. package/build/dom/place-caret-at-vertical-edge.js.map +7 -1
  66. package/build/dom/remove-invalid-html.js +35 -22
  67. package/build/dom/remove-invalid-html.js.map +7 -1
  68. package/build/dom/remove.js +24 -17
  69. package/build/dom/remove.js.map +7 -1
  70. package/build/dom/replace-tag.js +24 -19
  71. package/build/dom/replace-tag.js.map +7 -1
  72. package/build/dom/replace.js +38 -23
  73. package/build/dom/replace.js.map +7 -1
  74. package/build/dom/safe-html.js +39 -28
  75. package/build/dom/safe-html.js.map +7 -1
  76. package/build/dom/scroll-if-no-range.js +26 -18
  77. package/build/dom/scroll-if-no-range.js.map +7 -1
  78. package/build/dom/strip-html.js +36 -23
  79. package/build/dom/strip-html.js.map +7 -1
  80. package/build/dom/unwrap.js +24 -18
  81. package/build/dom/unwrap.js.map +7 -1
  82. package/build/dom/wrap.js +24 -17
  83. package/build/dom/wrap.js.map +7 -1
  84. package/build/focusable.js +52 -85
  85. package/build/focusable.js.map +7 -1
  86. package/build/index.js +44 -58
  87. package/build/index.js.map +7 -1
  88. package/build/phrasing-content.js +88 -128
  89. package/build/phrasing-content.js.map +7 -1
  90. package/build/tabbable.js +52 -137
  91. package/build/tabbable.js.map +7 -1
  92. package/build/utils/assert-is-defined.js +30 -7
  93. package/build/utils/assert-is-defined.js.map +7 -1
  94. package/build-module/data-transfer.js +9 -15
  95. package/build-module/data-transfer.js.map +7 -1
  96. package/build-module/dom/caret-range-from-point.js +5 -22
  97. package/build-module/dom/caret-range-from-point.js.map +7 -1
  98. package/build-module/dom/clean-node-list.js +94 -123
  99. package/build-module/dom/clean-node-list.js.map +7 -1
  100. package/build-module/dom/compute-caret-rect.js +8 -16
  101. package/build-module/dom/compute-caret-rect.js.map +7 -1
  102. package/build-module/dom/document-has-selection.js +8 -17
  103. package/build-module/dom/document-has-selection.js.map +7 -1
  104. package/build-module/dom/document-has-text-selection.js +8 -20
  105. package/build-module/dom/document-has-text-selection.js.map +7 -1
  106. package/build-module/dom/document-has-uncollapsed-selection.js +7 -17
  107. package/build-module/dom/document-has-uncollapsed-selection.js.map +7 -1
  108. package/build-module/dom/get-computed-style.js +10 -14
  109. package/build-module/dom/get-computed-style.js.map +7 -1
  110. package/build-module/dom/get-offset-parent.js +16 -28
  111. package/build-module/dom/get-offset-parent.js.map +7 -1
  112. package/build-module/dom/get-range-height.js +7 -15
  113. package/build-module/dom/get-range-height.js.map +7 -1
  114. package/build-module/dom/get-rectangle-from-range.js +30 -65
  115. package/build-module/dom/get-rectangle-from-range.js.map +7 -1
  116. package/build-module/dom/get-scroll-container.js +16 -32
  117. package/build-module/dom/get-scroll-container.js.map +7 -1
  118. package/build-module/dom/hidden-caret-range-from-point.js +11 -28
  119. package/build-module/dom/hidden-caret-range-from-point.js.map +7 -1
  120. package/build-module/dom/index.js +57 -28
  121. package/build-module/dom/index.js.map +7 -1
  122. package/build-module/dom/input-field-has-uncollapsed-selection.js +12 -37
  123. package/build-module/dom/input-field-has-uncollapsed-selection.js.map +7 -1
  124. package/build-module/dom/insert-after.js +7 -16
  125. package/build-module/dom/insert-after.js.map +7 -1
  126. package/build-module/dom/is-edge.js +24 -57
  127. package/build-module/dom/is-edge.js.map +7 -1
  128. package/build-module/dom/is-element.js +5 -8
  129. package/build-module/dom/is-element.js.map +7 -1
  130. package/build-module/dom/is-empty.js +10 -14
  131. package/build-module/dom/is-empty.js.map +7 -1
  132. package/build-module/dom/is-entirely-selected.js +18 -45
  133. package/build-module/dom/is-entirely-selected.js.map +7 -1
  134. package/build-module/dom/is-form-element.js +8 -19
  135. package/build-module/dom/is-form-element.js.map +7 -1
  136. package/build-module/dom/is-horizontal-edge.js +6 -15
  137. package/build-module/dom/is-horizontal-edge.js.map +7 -1
  138. package/build-module/dom/is-html-input-element.js +6 -9
  139. package/build-module/dom/is-html-input-element.js.map +7 -1
  140. package/build-module/dom/is-input-or-text-area.js +6 -9
  141. package/build-module/dom/is-input-or-text-area.js.map +7 -1
  142. package/build-module/dom/is-number-input.js +11 -25
  143. package/build-module/dom/is-number-input.js.map +7 -1
  144. package/build-module/dom/is-rtl.js +7 -15
  145. package/build-module/dom/is-rtl.js.map +7 -1
  146. package/build-module/dom/is-selection-forward.js +9 -37
  147. package/build-module/dom/is-selection-forward.js.map +7 -1
  148. package/build-module/dom/is-text-field.js +22 -20
  149. package/build-module/dom/is-text-field.js.map +7 -1
  150. package/build-module/dom/is-vertical-edge.js +6 -15
  151. package/build-module/dom/is-vertical-edge.js.map +7 -1
  152. package/build-module/dom/place-caret-at-edge.js +22 -48
  153. package/build-module/dom/place-caret-at-edge.js.map +7 -1
  154. package/build-module/dom/place-caret-at-horizontal-edge.js +7 -14
  155. package/build-module/dom/place-caret-at-horizontal-edge.js.map +7 -1
  156. package/build-module/dom/place-caret-at-vertical-edge.js +6 -14
  157. package/build-module/dom/place-caret-at-vertical-edge.js.map +7 -1
  158. package/build-module/dom/remove-invalid-html.js +7 -17
  159. package/build-module/dom/remove-invalid-html.js.map +7 -1
  160. package/build-module/dom/remove.js +7 -14
  161. package/build-module/dom/remove.js.map +7 -1
  162. package/build-module/dom/replace-tag.js +7 -16
  163. package/build-module/dom/replace-tag.js.map +7 -1
  164. package/build-module/dom/replace.js +9 -17
  165. package/build-module/dom/replace.js.map +7 -1
  166. package/build-module/dom/safe-html.js +11 -23
  167. package/build-module/dom/safe-html.js.map +7 -1
  168. package/build-module/dom/scroll-if-no-range.js +5 -15
  169. package/build-module/dom/scroll-if-no-range.js.map +7 -1
  170. package/build-module/dom/strip-html.js +8 -18
  171. package/build-module/dom/strip-html.js.map +7 -1
  172. package/build-module/dom/unwrap.js +7 -15
  173. package/build-module/dom/unwrap.js.map +7 -1
  174. package/build-module/dom/wrap.js +7 -14
  175. package/build-module/dom/wrap.js.map +7 -1
  176. package/build-module/focusable.js +30 -81
  177. package/build-module/focusable.js.map +7 -1
  178. package/build-module/index.js +9 -17
  179. package/build-module/index.js.map +7 -1
  180. package/build-module/phrasing-content.js +67 -125
  181. package/build-module/phrasing-content.js.map +7 -1
  182. package/build-module/tabbable.js +30 -133
  183. package/build-module/tabbable.js.map +7 -1
  184. package/build-module/utils/assert-is-defined.js +9 -4
  185. package/build-module/utils/assert-is-defined.js.map +7 -1
  186. package/package.json +11 -4
@@ -1 +1,7 @@
1
- {"version":3,"names":["buildSelector","sequential","join","isVisible","element","offsetWidth","offsetHeight","getClientRects","length","isValidFocusableArea","map","closest","img","ownerDocument","querySelector","name","find","context","elements","querySelectorAll","Array","from","filter","nodeName"],"sources":["@wordpress/dom/src/focusable.js"],"sourcesContent":["/**\n * References:\n *\n * Focusable:\n * - https://www.w3.org/TR/html5/editing.html#focus-management\n *\n * Sequential focus navigation:\n * - https://www.w3.org/TR/html5/editing.html#sequential-focus-navigation-and-the-tabindex-attribute\n *\n * Disabled elements:\n * - https://www.w3.org/TR/html5/disabled-elements.html#disabled-elements\n *\n * getClientRects algorithm (requiring layout box):\n * - https://www.w3.org/TR/cssom-view-1/#extension-to-the-element-interface\n *\n * AREA elements associated with an IMG:\n * - https://w3c.github.io/html/editing.html#data-model\n */\n\n/**\n * Returns a CSS selector used to query for focusable elements.\n *\n * @param {boolean} sequential If set, only query elements that are sequentially\n * focusable. Non-interactive elements with a\n * negative `tabindex` are focusable but not\n * sequentially focusable.\n * https://html.spec.whatwg.org/multipage/interaction.html#the-tabindex-attribute\n *\n * @return {string} CSS selector.\n */\nfunction buildSelector( sequential ) {\n\treturn [\n\t\tsequential ? '[tabindex]:not([tabindex^=\"-\"])' : '[tabindex]',\n\t\t'a[href]',\n\t\t'button:not([disabled])',\n\t\t'input:not([type=\"hidden\"]):not([disabled])',\n\t\t'select:not([disabled])',\n\t\t'textarea:not([disabled])',\n\t\t'iframe:not([tabindex^=\"-\"])',\n\t\t'object',\n\t\t'embed',\n\t\t'summary',\n\t\t'area[href]',\n\t\t'[contenteditable]:not([contenteditable=false])',\n\t].join( ',' );\n}\n\n/**\n * Returns true if the specified element is visible (i.e. neither display: none\n * nor visibility: hidden).\n *\n * @param {HTMLElement} element DOM element to test.\n *\n * @return {boolean} Whether element is visible.\n */\nfunction isVisible( element ) {\n\treturn (\n\t\telement.offsetWidth > 0 ||\n\t\telement.offsetHeight > 0 ||\n\t\telement.getClientRects().length > 0\n\t);\n}\n\n/**\n * Returns true if the specified area element is a valid focusable element, or\n * false otherwise. Area is only focusable if within a map where a named map\n * referenced by an image somewhere in the document.\n *\n * @param {HTMLAreaElement} element DOM area element to test.\n *\n * @return {boolean} Whether area element is valid for focus.\n */\nfunction isValidFocusableArea( element ) {\n\t/** @type {HTMLMapElement | null} */\n\tconst map = element.closest( 'map[name]' );\n\tif ( ! map ) {\n\t\treturn false;\n\t}\n\n\t/** @type {HTMLImageElement | null} */\n\tconst img = element.ownerDocument.querySelector(\n\t\t'img[usemap=\"#' + map.name + '\"]'\n\t);\n\treturn !! img && isVisible( img );\n}\n\n/**\n * Returns all focusable elements within a given context.\n *\n * @param {Element} context Element in which to search.\n * @param {Object} options\n * @param {boolean} [options.sequential] If set, only return elements that are\n * sequentially focusable.\n * Non-interactive elements with a\n * negative `tabindex` are focusable but\n * not sequentially focusable.\n * https://html.spec.whatwg.org/multipage/interaction.html#the-tabindex-attribute\n *\n * @return {HTMLElement[]} Focusable elements.\n */\nexport function find( context, { sequential = false } = {} ) {\n\t/** @type {NodeListOf<HTMLElement>} */\n\tconst elements = context.querySelectorAll( buildSelector( sequential ) );\n\n\treturn Array.from( elements ).filter( ( element ) => {\n\t\tif ( ! isVisible( element ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst { nodeName } = element;\n\t\tif ( 'AREA' === nodeName ) {\n\t\t\treturn isValidFocusableArea(\n\t\t\t\t/** @type {HTMLAreaElement} */ ( element )\n\t\t\t);\n\t\t}\n\n\t\treturn true;\n\t} );\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,aAAaA,CAAEC,UAAU,EAAG;EACpC,OAAO,CACNA,UAAU,GAAG,iCAAiC,GAAG,YAAY,EAC7D,SAAS,EACT,wBAAwB,EACxB,4CAA4C,EAC5C,wBAAwB,EACxB,0BAA0B,EAC1B,6BAA6B,EAC7B,QAAQ,EACR,OAAO,EACP,SAAS,EACT,YAAY,EACZ,gDAAgD,CAChD,CAACC,IAAI,CAAE,GAAI,CAAC;AACd;;AAEA;AACA;AACA;AACA;AACA;AACA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sources": ["../src/focusable.js"],
4
+ "sourcesContent": ["/**\n * References:\n *\n * Focusable:\n * - https://www.w3.org/TR/html5/editing.html#focus-management\n *\n * Sequential focus navigation:\n * - https://www.w3.org/TR/html5/editing.html#sequential-focus-navigation-and-the-tabindex-attribute\n *\n * Disabled elements:\n * - https://www.w3.org/TR/html5/disabled-elements.html#disabled-elements\n *\n * getClientRects algorithm (requiring layout box):\n * - https://www.w3.org/TR/cssom-view-1/#extension-to-the-element-interface\n *\n * AREA elements associated with an IMG:\n * - https://w3c.github.io/html/editing.html#data-model\n */\n\n/**\n * Returns a CSS selector used to query for focusable elements.\n *\n * @param {boolean} sequential If set, only query elements that are sequentially\n * focusable. Non-interactive elements with a\n * negative `tabindex` are focusable but not\n * sequentially focusable.\n * https://html.spec.whatwg.org/multipage/interaction.html#the-tabindex-attribute\n *\n * @return {string} CSS selector.\n */\nfunction buildSelector( sequential ) {\n\treturn [\n\t\tsequential ? '[tabindex]:not([tabindex^=\"-\"])' : '[tabindex]',\n\t\t'a[href]',\n\t\t'button:not([disabled])',\n\t\t'input:not([type=\"hidden\"]):not([disabled])',\n\t\t'select:not([disabled])',\n\t\t'textarea:not([disabled])',\n\t\t'iframe:not([tabindex^=\"-\"])',\n\t\t'object',\n\t\t'embed',\n\t\t'summary',\n\t\t'area[href]',\n\t\t'[contenteditable]:not([contenteditable=false])',\n\t].join( ',' );\n}\n\n/**\n * Returns true if the specified element is visible (i.e. neither display: none\n * nor visibility: hidden).\n *\n * @param {HTMLElement} element DOM element to test.\n *\n * @return {boolean} Whether element is visible.\n */\nfunction isVisible( element ) {\n\treturn (\n\t\telement.offsetWidth > 0 ||\n\t\telement.offsetHeight > 0 ||\n\t\telement.getClientRects().length > 0\n\t);\n}\n\n/**\n * Returns true if the specified area element is a valid focusable element, or\n * false otherwise. Area is only focusable if within a map where a named map\n * referenced by an image somewhere in the document.\n *\n * @param {HTMLAreaElement} element DOM area element to test.\n *\n * @return {boolean} Whether area element is valid for focus.\n */\nfunction isValidFocusableArea( element ) {\n\t/** @type {HTMLMapElement | null} */\n\tconst map = element.closest( 'map[name]' );\n\tif ( ! map ) {\n\t\treturn false;\n\t}\n\n\t/** @type {HTMLImageElement | null} */\n\tconst img = element.ownerDocument.querySelector(\n\t\t'img[usemap=\"#' + map.name + '\"]'\n\t);\n\treturn !! img && isVisible( img );\n}\n\n/**\n * Returns all focusable elements within a given context.\n *\n * @param {Element} context Element in which to search.\n * @param {Object} options\n * @param {boolean} [options.sequential] If set, only return elements that are\n * sequentially focusable.\n * Non-interactive elements with a\n * negative `tabindex` are focusable but\n * not sequentially focusable.\n * https://html.spec.whatwg.org/multipage/interaction.html#the-tabindex-attribute\n *\n * @return {HTMLElement[]} Focusable elements.\n */\nexport function find( context, { sequential = false } = {} ) {\n\t/** @type {NodeListOf<HTMLElement>} */\n\tconst elements = context.querySelectorAll( buildSelector( sequential ) );\n\n\treturn Array.from( elements ).filter( ( element ) => {\n\t\tif ( ! isVisible( element ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst { nodeName } = element;\n\t\tif ( 'AREA' === nodeName ) {\n\t\t\treturn isValidFocusableArea(\n\t\t\t\t/** @type {HTMLAreaElement} */ ( element )\n\t\t\t);\n\t\t}\n\n\t\treturn true;\n\t} );\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8BA,SAAS,cAAe,YAAa;AACpC,SAAO;AAAA,IACN,aAAa,oCAAoC;AAAA,IACjD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,EAAE,KAAM,GAAI;AACb;AAUA,SAAS,UAAW,SAAU;AAC7B,SACC,QAAQ,cAAc,KACtB,QAAQ,eAAe,KACvB,QAAQ,eAAe,EAAE,SAAS;AAEpC;AAWA,SAAS,qBAAsB,SAAU;AAExC,QAAM,MAAM,QAAQ,QAAS,WAAY;AACzC,MAAK,CAAE,KAAM;AACZ,WAAO;AAAA,EACR;AAGA,QAAM,MAAM,QAAQ,cAAc;AAAA,IACjC,kBAAkB,IAAI,OAAO;AAAA,EAC9B;AACA,SAAO,CAAC,CAAE,OAAO,UAAW,GAAI;AACjC;AAgBO,SAAS,KAAM,SAAS,EAAE,aAAa,MAAM,IAAI,CAAC,GAAI;AAE5D,QAAM,WAAW,QAAQ,iBAAkB,cAAe,UAAW,CAAE;AAEvE,SAAO,MAAM,KAAM,QAAS,EAAE,OAAQ,CAAE,YAAa;AACpD,QAAK,CAAE,UAAW,OAAQ,GAAI;AAC7B,aAAO;AAAA,IACR;AAEA,UAAM,EAAE,SAAS,IAAI;AACrB,QAAK,WAAW,UAAW;AAC1B,aAAO;AAAA;AAAA,QAC2B;AAAA,MAClC;AAAA,IACD;AAEA,WAAO;AAAA,EACR,CAAE;AACH;",
6
+ "names": []
7
+ }
package/build/index.js CHANGED
@@ -1,62 +1,48 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- focus: true
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
8
11
  };
9
- exports.focus = void 0;
10
- var focusable = _interopRequireWildcard(require("./focusable"));
11
- var tabbable = _interopRequireWildcard(require("./tabbable"));
12
- var _dom = require("./dom");
13
- Object.keys(_dom).forEach(function (key) {
14
- if (key === "default" || key === "__esModule") return;
15
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
16
- if (key in exports && exports[key] === _dom[key]) return;
17
- Object.defineProperty(exports, key, {
18
- enumerable: true,
19
- get: function () {
20
- return _dom[key];
21
- }
22
- });
23
- });
24
- var _phrasingContent = require("./phrasing-content");
25
- Object.keys(_phrasingContent).forEach(function (key) {
26
- if (key === "default" || key === "__esModule") return;
27
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
28
- if (key in exports && exports[key] === _phrasingContent[key]) return;
29
- Object.defineProperty(exports, key, {
30
- enumerable: true,
31
- get: function () {
32
- return _phrasingContent[key];
33
- }
34
- });
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var index_exports = {};
31
+ __export(index_exports, {
32
+ focus: () => focus
35
33
  });
36
- var _dataTransfer = require("./data-transfer");
37
- Object.keys(_dataTransfer).forEach(function (key) {
38
- if (key === "default" || key === "__esModule") return;
39
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
40
- if (key in exports && exports[key] === _dataTransfer[key]) return;
41
- Object.defineProperty(exports, key, {
42
- enumerable: true,
43
- get: function () {
44
- return _dataTransfer[key];
45
- }
46
- });
34
+ module.exports = __toCommonJS(index_exports);
35
+ var focusable = __toESM(require("./focusable"));
36
+ var tabbable = __toESM(require("./tabbable"));
37
+ __reExport(index_exports, require("./dom"), module.exports);
38
+ __reExport(index_exports, require("./phrasing-content"), module.exports);
39
+ __reExport(index_exports, require("./data-transfer"), module.exports);
40
+ const focus = { focusable, tabbable };
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ focus,
44
+ ...require("./dom"),
45
+ ...require("./phrasing-content"),
46
+ ...require("./data-transfer")
47
47
  });
48
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
49
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
50
- /**
51
- * Internal dependencies
52
- */
53
-
54
- /**
55
- * Object grouping `focusable` and `tabbable` utils
56
- * under the keys with the same name.
57
- */
58
- const focus = exports.focus = {
59
- focusable,
60
- tabbable
61
- };
62
- //# sourceMappingURL=index.js.map
48
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["focusable","_interopRequireWildcard","require","tabbable","_dom","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_phrasingContent","_dataTransfer","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set","focus"],"sources":["@wordpress/dom/src/index.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport * as focusable from './focusable';\nimport * as tabbable from './tabbable';\n\n/**\n * Object grouping `focusable` and `tabbable` utils\n * under the keys with the same name.\n */\nexport const focus = { focusable, tabbable };\n\nexport * from './dom';\nexport * from './phrasing-content';\nexport * from './data-transfer';\n"],"mappings":";;;;;;;;;AAGA,IAAAA,SAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,uBAAA,CAAAC,OAAA;AAQA,IAAAE,IAAA,GAAAF,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAF,IAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,IAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,IAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,gBAAA,GAAAf,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAW,gBAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,gBAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,gBAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,aAAA,GAAAhB,OAAA;AAAAG,MAAA,CAAAC,IAAA,CAAAY,aAAA,EA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AS,cAAA,CAAAa,CAAA,EAAAI,CAAA,EAAAC,CAAA,IAAAL,CAAA,CAAAI,CAAA,IAAAX,CAAA,CAAAW,CAAA,YAAAJ,CAAA,CAAAF,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAU,GAAA,CAAAb,CAAA,EAAAO,CAAA,GAAAA,CAAA;AAdhC;AACA;AACA;;AAIA;AACA;AACA;AACA;AACO,MAAMO,KAAK,GAAArB,OAAA,CAAAqB,KAAA,GAAG;EAAElC,SAAS;EAAEG;AAAS,CAAC","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.js"],
4
+ "sourcesContent": ["/**\n * Internal dependencies\n */\nimport * as focusable from './focusable';\nimport * as tabbable from './tabbable';\n\n/**\n * Object grouping `focusable` and `tabbable` utils\n * under the keys with the same name.\n */\nexport const focus = { focusable, tabbable };\n\nexport * from './dom';\nexport * from './phrasing-content';\nexport * from './data-transfer';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,gBAA2B;AAC3B,eAA0B;AAQ1B,0BAAc,kBAZd;AAaA,0BAAc,+BAbd;AAcA,0BAAc,4BAdd;AAUO,MAAM,QAAQ,EAAE,WAAW,SAAS;",
6
+ "names": []
7
+ }
@@ -1,65 +1,47 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var phrasing_content_exports = {};
20
+ __export(phrasing_content_exports, {
21
+ getPhrasingContentSchema: () => getPhrasingContentSchema,
22
+ isPhrasingContent: () => isPhrasingContent,
23
+ isTextContent: () => isTextContent
5
24
  });
6
- exports.getPhrasingContentSchema = getPhrasingContentSchema;
7
- exports.isPhrasingContent = isPhrasingContent;
8
- exports.isTextContent = isTextContent;
9
- /**
10
- * All phrasing content elements.
11
- *
12
- * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#phrasing-content-0
13
- */
14
-
15
- /**
16
- * @typedef {Record<string,SemanticElementDefinition>} ContentSchema
17
- */
18
-
19
- /**
20
- * @typedef SemanticElementDefinition
21
- * @property {string[]} [attributes] Content attributes
22
- * @property {ContentSchema} [children] Content attributes
23
- */
24
-
25
- /**
26
- * All text-level semantic elements.
27
- *
28
- * @see https://html.spec.whatwg.org/multipage/text-level-semantics.html
29
- *
30
- * @type {ContentSchema}
31
- */
25
+ module.exports = __toCommonJS(phrasing_content_exports);
32
26
  const textContentSchema = {
33
27
  strong: {},
34
28
  em: {},
35
29
  s: {},
36
30
  del: {},
37
31
  ins: {},
38
- a: {
39
- attributes: ['href', 'target', 'rel', 'id']
40
- },
32
+ a: { attributes: ["href", "target", "rel", "id"] },
41
33
  code: {},
42
- abbr: {
43
- attributes: ['title']
44
- },
34
+ abbr: { attributes: ["title"] },
45
35
  sub: {},
46
36
  sup: {},
47
37
  br: {},
48
38
  small: {},
49
39
  // To do: fix blockquote.
50
40
  // cite: {},
51
- q: {
52
- attributes: ['cite']
53
- },
54
- dfn: {
55
- attributes: ['title']
56
- },
57
- data: {
58
- attributes: ['value']
59
- },
60
- time: {
61
- attributes: ['datetime']
62
- },
41
+ q: { attributes: ["cite"] },
42
+ dfn: { attributes: ["title"] },
43
+ data: { attributes: ["value"] },
44
+ time: { attributes: ["datetime"] },
63
45
  var: {},
64
46
  samp: {},
65
47
  kbd: {},
@@ -70,84 +52,75 @@ const textContentSchema = {
70
52
  ruby: {},
71
53
  rt: {},
72
54
  rp: {},
73
- bdi: {
74
- attributes: ['dir']
75
- },
76
- bdo: {
77
- attributes: ['dir']
78
- },
55
+ bdi: { attributes: ["dir"] },
56
+ bdo: { attributes: ["dir"] },
79
57
  wbr: {},
80
- '#text': {}
58
+ "#text": {}
81
59
  };
82
-
83
- // Recursion is needed.
84
- // Possible: strong > em > strong.
85
- // Impossible: strong > strong.
86
- const excludedElements = ['#text', 'br'];
87
- Object.keys(textContentSchema).filter(element => !excludedElements.includes(element)).forEach(tag => {
88
- const {
89
- [tag]: removedTag,
90
- ...restSchema
91
- } = textContentSchema;
60
+ const excludedElements = ["#text", "br"];
61
+ Object.keys(textContentSchema).filter((element) => !excludedElements.includes(element)).forEach((tag) => {
62
+ const { [tag]: removedTag, ...restSchema } = textContentSchema;
92
63
  textContentSchema[tag].children = restSchema;
93
64
  });
94
-
95
- /**
96
- * Embedded content elements.
97
- *
98
- * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#embedded-content-0
99
- *
100
- * @type {ContentSchema}
101
- */
102
65
  const embeddedContentSchema = {
103
66
  audio: {
104
- attributes: ['src', 'preload', 'autoplay', 'mediagroup', 'loop', 'muted']
105
- },
106
- canvas: {
107
- attributes: ['width', 'height']
108
- },
109
- embed: {
110
- attributes: ['src', 'type', 'width', 'height']
67
+ attributes: [
68
+ "src",
69
+ "preload",
70
+ "autoplay",
71
+ "mediagroup",
72
+ "loop",
73
+ "muted"
74
+ ]
111
75
  },
76
+ canvas: { attributes: ["width", "height"] },
77
+ embed: { attributes: ["src", "type", "width", "height"] },
112
78
  img: {
113
- attributes: ['alt', 'src', 'srcset', 'usemap', 'ismap', 'width', 'height']
79
+ attributes: [
80
+ "alt",
81
+ "src",
82
+ "srcset",
83
+ "usemap",
84
+ "ismap",
85
+ "width",
86
+ "height"
87
+ ]
114
88
  },
115
89
  object: {
116
- attributes: ['data', 'type', 'name', 'usemap', 'form', 'width', 'height']
90
+ attributes: [
91
+ "data",
92
+ "type",
93
+ "name",
94
+ "usemap",
95
+ "form",
96
+ "width",
97
+ "height"
98
+ ]
117
99
  },
118
100
  video: {
119
- attributes: ['src', 'poster', 'preload', 'playsinline', 'autoplay', 'mediagroup', 'loop', 'muted', 'controls', 'width', 'height']
101
+ attributes: [
102
+ "src",
103
+ "poster",
104
+ "preload",
105
+ "playsinline",
106
+ "autoplay",
107
+ "mediagroup",
108
+ "loop",
109
+ "muted",
110
+ "controls",
111
+ "width",
112
+ "height"
113
+ ]
120
114
  }
121
115
  };
122
-
123
- /**
124
- * Phrasing content elements.
125
- *
126
- * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#phrasing-content-0
127
- */
128
116
  const phrasingContentSchema = {
129
117
  ...textContentSchema,
130
118
  ...embeddedContentSchema
131
119
  };
132
-
133
- /**
134
- * Get schema of possible paths for phrasing content.
135
- *
136
- * @see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content
137
- *
138
- * @param {string} [context] Set to "paste" to exclude invisible elements and
139
- * sensitive data.
140
- *
141
- * @return {Partial<ContentSchema>} Schema.
142
- */
143
120
  function getPhrasingContentSchema(context) {
144
- if (context !== 'paste') {
121
+ if (context !== "paste") {
145
122
  return phrasingContentSchema;
146
123
  }
147
-
148
- /**
149
- * @type {Partial<ContentSchema>}
150
- */
151
124
  const {
152
125
  u,
153
126
  // Used to mark misspelling. Shouldn't be pasted.
@@ -168,36 +141,23 @@ function getPhrasingContentSchema(context) {
168
141
  ...phrasingContentSchema,
169
142
  // We shouldn't paste potentially sensitive information which is not
170
143
  // visible to the user when pasted, so strip the attributes.
171
- ins: {
172
- children: phrasingContentSchema.ins.children
173
- },
174
- del: {
175
- children: phrasingContentSchema.del.children
176
- }
144
+ ins: { children: phrasingContentSchema.ins.children },
145
+ del: { children: phrasingContentSchema.del.children }
177
146
  };
178
147
  return remainingContentSchema;
179
148
  }
180
-
181
- /**
182
- * Find out whether or not the given node is phrasing content.
183
- *
184
- * @see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content
185
- *
186
- * @param {Node} node The node to test.
187
- *
188
- * @return {boolean} True if phrasing content, false if not.
189
- */
190
149
  function isPhrasingContent(node) {
191
150
  const tag = node.nodeName.toLowerCase();
192
- return getPhrasingContentSchema().hasOwnProperty(tag) || tag === 'span';
151
+ return getPhrasingContentSchema().hasOwnProperty(tag) || tag === "span";
193
152
  }
194
-
195
- /**
196
- * @param {Node} node
197
- * @return {boolean} Node is text content
198
- */
199
153
  function isTextContent(node) {
200
154
  const tag = node.nodeName.toLowerCase();
201
- return textContentSchema.hasOwnProperty(tag) || tag === 'span';
155
+ return textContentSchema.hasOwnProperty(tag) || tag === "span";
202
156
  }
203
- //# sourceMappingURL=phrasing-content.js.map
157
+ // Annotate the CommonJS export names for ESM import in node:
158
+ 0 && (module.exports = {
159
+ getPhrasingContentSchema,
160
+ isPhrasingContent,
161
+ isTextContent
162
+ });
163
+ //# sourceMappingURL=phrasing-content.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["textContentSchema","strong","em","s","del","ins","a","attributes","code","abbr","sub","sup","br","small","q","dfn","data","time","var","samp","kbd","i","b","u","mark","ruby","rt","rp","bdi","bdo","wbr","excludedElements","Object","keys","filter","element","includes","forEach","tag","removedTag","restSchema","children","embeddedContentSchema","audio","canvas","embed","img","object","video","phrasingContentSchema","getPhrasingContentSchema","context","remainingContentSchema","isPhrasingContent","node","nodeName","toLowerCase","hasOwnProperty","isTextContent"],"sources":["@wordpress/dom/src/phrasing-content.js"],"sourcesContent":["/**\n * All phrasing content elements.\n *\n * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#phrasing-content-0\n */\n\n/**\n * @typedef {Record<string,SemanticElementDefinition>} ContentSchema\n */\n\n/**\n * @typedef SemanticElementDefinition\n * @property {string[]} [attributes] Content attributes\n * @property {ContentSchema} [children] Content attributes\n */\n\n/**\n * All text-level semantic elements.\n *\n * @see https://html.spec.whatwg.org/multipage/text-level-semantics.html\n *\n * @type {ContentSchema}\n */\nconst textContentSchema = {\n\tstrong: {},\n\tem: {},\n\ts: {},\n\tdel: {},\n\tins: {},\n\ta: { attributes: [ 'href', 'target', 'rel', 'id' ] },\n\tcode: {},\n\tabbr: { attributes: [ 'title' ] },\n\tsub: {},\n\tsup: {},\n\tbr: {},\n\tsmall: {},\n\t// To do: fix blockquote.\n\t// cite: {},\n\tq: { attributes: [ 'cite' ] },\n\tdfn: { attributes: [ 'title' ] },\n\tdata: { attributes: [ 'value' ] },\n\ttime: { attributes: [ 'datetime' ] },\n\tvar: {},\n\tsamp: {},\n\tkbd: {},\n\ti: {},\n\tb: {},\n\tu: {},\n\tmark: {},\n\truby: {},\n\trt: {},\n\trp: {},\n\tbdi: { attributes: [ 'dir' ] },\n\tbdo: { attributes: [ 'dir' ] },\n\twbr: {},\n\t'#text': {},\n};\n\n// Recursion is needed.\n// Possible: strong > em > strong.\n// Impossible: strong > strong.\nconst excludedElements = [ '#text', 'br' ];\nObject.keys( textContentSchema )\n\t.filter( ( element ) => ! excludedElements.includes( element ) )\n\t.forEach( ( tag ) => {\n\t\tconst { [ tag ]: removedTag, ...restSchema } = textContentSchema;\n\t\ttextContentSchema[ tag ].children = restSchema;\n\t} );\n\n/**\n * Embedded content elements.\n *\n * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#embedded-content-0\n *\n * @type {ContentSchema}\n */\nconst embeddedContentSchema = {\n\taudio: {\n\t\tattributes: [\n\t\t\t'src',\n\t\t\t'preload',\n\t\t\t'autoplay',\n\t\t\t'mediagroup',\n\t\t\t'loop',\n\t\t\t'muted',\n\t\t],\n\t},\n\tcanvas: { attributes: [ 'width', 'height' ] },\n\tembed: { attributes: [ 'src', 'type', 'width', 'height' ] },\n\timg: {\n\t\tattributes: [\n\t\t\t'alt',\n\t\t\t'src',\n\t\t\t'srcset',\n\t\t\t'usemap',\n\t\t\t'ismap',\n\t\t\t'width',\n\t\t\t'height',\n\t\t],\n\t},\n\tobject: {\n\t\tattributes: [\n\t\t\t'data',\n\t\t\t'type',\n\t\t\t'name',\n\t\t\t'usemap',\n\t\t\t'form',\n\t\t\t'width',\n\t\t\t'height',\n\t\t],\n\t},\n\tvideo: {\n\t\tattributes: [\n\t\t\t'src',\n\t\t\t'poster',\n\t\t\t'preload',\n\t\t\t'playsinline',\n\t\t\t'autoplay',\n\t\t\t'mediagroup',\n\t\t\t'loop',\n\t\t\t'muted',\n\t\t\t'controls',\n\t\t\t'width',\n\t\t\t'height',\n\t\t],\n\t},\n};\n\n/**\n * Phrasing content elements.\n *\n * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#phrasing-content-0\n */\nconst phrasingContentSchema = {\n\t...textContentSchema,\n\t...embeddedContentSchema,\n};\n\n/**\n * Get schema of possible paths for phrasing content.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content\n *\n * @param {string} [context] Set to \"paste\" to exclude invisible elements and\n * sensitive data.\n *\n * @return {Partial<ContentSchema>} Schema.\n */\nexport function getPhrasingContentSchema( context ) {\n\tif ( context !== 'paste' ) {\n\t\treturn phrasingContentSchema;\n\t}\n\n\t/**\n\t * @type {Partial<ContentSchema>}\n\t */\n\tconst {\n\t\tu, // Used to mark misspelling. Shouldn't be pasted.\n\t\tabbr, // Invisible.\n\t\tdata, // Invisible.\n\t\ttime, // Invisible.\n\t\twbr, // Invisible.\n\t\tbdi, // Invisible.\n\t\tbdo, // Invisible.\n\t\t...remainingContentSchema\n\t} = {\n\t\t...phrasingContentSchema,\n\t\t// We shouldn't paste potentially sensitive information which is not\n\t\t// visible to the user when pasted, so strip the attributes.\n\t\tins: { children: phrasingContentSchema.ins.children },\n\t\tdel: { children: phrasingContentSchema.del.children },\n\t};\n\n\treturn remainingContentSchema;\n}\n\n/**\n * Find out whether or not the given node is phrasing content.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content\n *\n * @param {Node} node The node to test.\n *\n * @return {boolean} True if phrasing content, false if not.\n */\nexport function isPhrasingContent( node ) {\n\tconst tag = node.nodeName.toLowerCase();\n\treturn getPhrasingContentSchema().hasOwnProperty( tag ) || tag === 'span';\n}\n\n/**\n * @param {Node} node\n * @return {boolean} Node is text content\n */\nexport function isTextContent( node ) {\n\tconst tag = node.nodeName.toLowerCase();\n\treturn textContentSchema.hasOwnProperty( tag ) || tag === 'span';\n}\n"],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,iBAAiB,GAAG;EACzBC,MAAM,EAAE,CAAC,CAAC;EACVC,EAAE,EAAE,CAAC,CAAC;EACNC,CAAC,EAAE,CAAC,CAAC;EACLC,GAAG,EAAE,CAAC,CAAC;EACPC,GAAG,EAAE,CAAC,CAAC;EACPC,CAAC,EAAE;IAAEC,UAAU,EAAE,CAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI;EAAG,CAAC;EACpDC,IAAI,EAAE,CAAC,CAAC;EACRC,IAAI,EAAE;IAAEF,UAAU,EAAE,CAAE,OAAO;EAAG,CAAC;EACjCG,GAAG,EAAE,CAAC,CAAC;EACPC,GAAG,EAAE,CAAC,CAAC;EACPC,EAAE,EAAE,CAAC,CAAC;EACNC,KAAK,EAAE,CAAC,CAAC;EACT;EACA;EACAC,CAAC,EAAE;IAAEP,UAAU,EAAE,CAAE,MAAM;EAAG,CAAC;EAC7BQ,GAAG,EAAE;IAAER,UAAU,EAAE,CAAE,OAAO;EAAG,CAAC;EAChCS,IAAI,EAAE;IAAET,UAAU,EAAE,CAAE,OAAO;EAAG,CAAC;EACjCU,IAAI,EA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A;AACA;AACA;AACA;AACA;AACO,SAASC,iBAAiBA,CAAEC,IAAI,EAAG;EACzC,MAAMhB,GAAG,GAAGgB,IAAI,CAACC,QAAQ,CAACC,WAAW,CAAC,CAAC;EACvC,OAAON,wBAAwB,CAAC,CAAC,CAACO,cAAc,CAAEnB,GAAI,CAAC,IAAIA,GAAG,KAAK,MAAM;AAC1E;;AAEA;AACA;AACA;AACA;AACO,SAASoB,aAAaA,CAAEJ,IAAI,EAAG;EACrC,MAAMhB,GAAG,GAAGgB,IAAI,CAACC,QAAQ,CAACC,WAAW,CAAC,CAAC;EACvC,OAAOxD,iBAAiB,CAACyD,cAAc,CAAEnB,GAAI,CAAC,IAAIA,GAAG,KAAK,MAAM;AACjE","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/phrasing-content.js"],
4
+ "sourcesContent": ["/**\n * All phrasing content elements.\n *\n * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#phrasing-content-0\n */\n\n/**\n * @typedef {Record<string,SemanticElementDefinition>} ContentSchema\n */\n\n/**\n * @typedef SemanticElementDefinition\n * @property {string[]} [attributes] Content attributes\n * @property {ContentSchema} [children] Content attributes\n */\n\n/**\n * All text-level semantic elements.\n *\n * @see https://html.spec.whatwg.org/multipage/text-level-semantics.html\n *\n * @type {ContentSchema}\n */\nconst textContentSchema = {\n\tstrong: {},\n\tem: {},\n\ts: {},\n\tdel: {},\n\tins: {},\n\ta: { attributes: [ 'href', 'target', 'rel', 'id' ] },\n\tcode: {},\n\tabbr: { attributes: [ 'title' ] },\n\tsub: {},\n\tsup: {},\n\tbr: {},\n\tsmall: {},\n\t// To do: fix blockquote.\n\t// cite: {},\n\tq: { attributes: [ 'cite' ] },\n\tdfn: { attributes: [ 'title' ] },\n\tdata: { attributes: [ 'value' ] },\n\ttime: { attributes: [ 'datetime' ] },\n\tvar: {},\n\tsamp: {},\n\tkbd: {},\n\ti: {},\n\tb: {},\n\tu: {},\n\tmark: {},\n\truby: {},\n\trt: {},\n\trp: {},\n\tbdi: { attributes: [ 'dir' ] },\n\tbdo: { attributes: [ 'dir' ] },\n\twbr: {},\n\t'#text': {},\n};\n\n// Recursion is needed.\n// Possible: strong > em > strong.\n// Impossible: strong > strong.\nconst excludedElements = [ '#text', 'br' ];\nObject.keys( textContentSchema )\n\t.filter( ( element ) => ! excludedElements.includes( element ) )\n\t.forEach( ( tag ) => {\n\t\tconst { [ tag ]: removedTag, ...restSchema } = textContentSchema;\n\t\ttextContentSchema[ tag ].children = restSchema;\n\t} );\n\n/**\n * Embedded content elements.\n *\n * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#embedded-content-0\n *\n * @type {ContentSchema}\n */\nconst embeddedContentSchema = {\n\taudio: {\n\t\tattributes: [\n\t\t\t'src',\n\t\t\t'preload',\n\t\t\t'autoplay',\n\t\t\t'mediagroup',\n\t\t\t'loop',\n\t\t\t'muted',\n\t\t],\n\t},\n\tcanvas: { attributes: [ 'width', 'height' ] },\n\tembed: { attributes: [ 'src', 'type', 'width', 'height' ] },\n\timg: {\n\t\tattributes: [\n\t\t\t'alt',\n\t\t\t'src',\n\t\t\t'srcset',\n\t\t\t'usemap',\n\t\t\t'ismap',\n\t\t\t'width',\n\t\t\t'height',\n\t\t],\n\t},\n\tobject: {\n\t\tattributes: [\n\t\t\t'data',\n\t\t\t'type',\n\t\t\t'name',\n\t\t\t'usemap',\n\t\t\t'form',\n\t\t\t'width',\n\t\t\t'height',\n\t\t],\n\t},\n\tvideo: {\n\t\tattributes: [\n\t\t\t'src',\n\t\t\t'poster',\n\t\t\t'preload',\n\t\t\t'playsinline',\n\t\t\t'autoplay',\n\t\t\t'mediagroup',\n\t\t\t'loop',\n\t\t\t'muted',\n\t\t\t'controls',\n\t\t\t'width',\n\t\t\t'height',\n\t\t],\n\t},\n};\n\n/**\n * Phrasing content elements.\n *\n * @see https://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#phrasing-content-0\n */\nconst phrasingContentSchema = {\n\t...textContentSchema,\n\t...embeddedContentSchema,\n};\n\n/**\n * Get schema of possible paths for phrasing content.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content\n *\n * @param {string} [context] Set to \"paste\" to exclude invisible elements and\n * sensitive data.\n *\n * @return {Partial<ContentSchema>} Schema.\n */\nexport function getPhrasingContentSchema( context ) {\n\tif ( context !== 'paste' ) {\n\t\treturn phrasingContentSchema;\n\t}\n\n\t/**\n\t * @type {Partial<ContentSchema>}\n\t */\n\tconst {\n\t\tu, // Used to mark misspelling. Shouldn't be pasted.\n\t\tabbr, // Invisible.\n\t\tdata, // Invisible.\n\t\ttime, // Invisible.\n\t\twbr, // Invisible.\n\t\tbdi, // Invisible.\n\t\tbdo, // Invisible.\n\t\t...remainingContentSchema\n\t} = {\n\t\t...phrasingContentSchema,\n\t\t// We shouldn't paste potentially sensitive information which is not\n\t\t// visible to the user when pasted, so strip the attributes.\n\t\tins: { children: phrasingContentSchema.ins.children },\n\t\tdel: { children: phrasingContentSchema.del.children },\n\t};\n\n\treturn remainingContentSchema;\n}\n\n/**\n * Find out whether or not the given node is phrasing content.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content\n *\n * @param {Node} node The node to test.\n *\n * @return {boolean} True if phrasing content, false if not.\n */\nexport function isPhrasingContent( node ) {\n\tconst tag = node.nodeName.toLowerCase();\n\treturn getPhrasingContentSchema().hasOwnProperty( tag ) || tag === 'span';\n}\n\n/**\n * @param {Node} node\n * @return {boolean} Node is text content\n */\nexport function isTextContent( node ) {\n\tconst tag = node.nodeName.toLowerCase();\n\treturn textContentSchema.hasOwnProperty( tag ) || tag === 'span';\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBA,MAAM,oBAAoB;AAAA,EACzB,QAAQ,CAAC;AAAA,EACT,IAAI,CAAC;AAAA,EACL,GAAG,CAAC;AA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