@wordpress/dom
Advanced tools
Comparing version 3.1.4 to 3.2.0
@@ -7,5 +7,5 @@ /** | ||
* | ||
* @param {Document} doc The document of the range. | ||
* @param {number} x Horizontal position within the current viewport. | ||
* @param {number} y Vertical position within the current viewport. | ||
* @param {Document} doc The document of the range. | ||
* @param {number} x Horizontal position within the current viewport. | ||
* @param {number} y Vertical position within the current viewport. | ||
* | ||
@@ -12,0 +12,0 @@ * @return {Range | null} The best range for the given point. |
@@ -19,8 +19,8 @@ /** | ||
* @typedef SchemaItem | ||
* @property {string[]} [attributes] Attributes. | ||
* @property {(string | RegExp)[]} [classes] Classnames or RegExp to test against. | ||
* @property {'*' | { [tag: string]: SchemaItem }} [children] Child schemas. | ||
* @property {string[]} [require] Selectors to test required children against. Leave empty or undefined if there are no requirements. | ||
* @property {boolean} allowEmpty Whether to allow nodes without children. | ||
* @property {(node: Node) => boolean} [isMatch] Function to test whether a node is a match. If left undefined any node will be assumed to match. | ||
* @property {string[]} [attributes] Attributes. | ||
* @property {(string | RegExp)[]} [classes] Classnames or RegExp to test against. | ||
* @property {'*' | { [tag: string]: SchemaItem }} [children] Child schemas. | ||
* @property {string[]} [require] Selectors to test required children against. Leave empty or undefined if there are no requirements. | ||
* @property {boolean} allowEmpty Whether to allow nodes without children. | ||
* @property {(node: Node) => boolean} [isMatch] Function to test whether a node is a match. If left undefined any node will be assumed to match. | ||
*/ | ||
@@ -27,0 +27,0 @@ |
@@ -11,6 +11,6 @@ /** |
* |
* @param {Document} doc The document of the range. |
* @param {number} x Horizontal position within the current viewport. |
* @param {number} y Vertical position within the current viewport. |
* @param {HTMLElement} container Container in which the range is expected to be found. |
* @param {Document} doc The document of the range. |
* @param {number} x Horizontal position within the current viewport. |
* @param {number} y Vertical position within the current viewport. |
* @param {HTMLElement} container Container in which the range is expected to be found. |
* |
@@ -17,0 +17,0 @@ * @return {?Range} The best range for the given point. |
@@ -16,4 +16,4 @@ /** | ||
* | ||
* @param {Element} container Focusable element. | ||
* @param {boolean} isReverse Set to true to check left, false to check right. | ||
* @param {Element} container Focusable element. | ||
* @param {boolean} isReverse Set to true to check left, false to check right. | ||
* @param {boolean} [onlyVertical=false] Set to true to check only vertical position. | ||
@@ -20,0 +20,0 @@ * |
@@ -11,5 +11,5 @@ /** | ||
* @param {HTMLElement} container Focusable element. | ||
* @param {boolean} isReverse True for bottom, false for top. | ||
* @param {DOMRect} [rect] The rectangle to position the caret with. | ||
* @param {boolean} [mayUseScroll=true] True to allow scrolling, false to disallow. | ||
* @param {boolean} isReverse True for bottom, false for top. | ||
* @param {DOMRect} [rect] The rectangle to position the caret with. | ||
* @param {boolean} [mayUseScroll=true] True to allow scrolling, false to disallow. | ||
*/ | ||
@@ -16,0 +16,0 @@ |
@@ -8,5 +8,5 @@ /** | ||
* | ||
* @param {string} HTML The HTML to clean up. | ||
* @param {string} HTML The HTML to clean up. | ||
* @param {import('./clean-node-list').Schema} schema Schema for the HTML. | ||
* @param {boolean} inline Whether to clean for inline mode. | ||
* @param {boolean} inline Whether to clean for inline mode. | ||
* | ||
@@ -13,0 +13,0 @@ * @return {string} The cleaned up HTML. |
@@ -8,4 +8,4 @@ /** | ||
* | ||
* @param {Element} node The node to replace | ||
* @param {string} tagName The new tag name. | ||
* @param {Element} node The node to replace | ||
* @param {string} tagName The new tag name. | ||
* | ||
@@ -12,0 +12,0 @@ * @return {Element} The new node. |
@@ -17,4 +17,4 @@ /** | ||
* @typedef SemanticElementDefinition | ||
* @property {string[]} [attributes] Content attributes | ||
* @property {ContentSchema} [children] Content attributes | ||
* @property {string[]} [attributes] Content attributes | ||
* @property {ContentSchema} [children] Content attributes | ||
*/ | ||
@@ -129,3 +129,3 @@ | ||
* @param {string} [context] Set to "paste" to exclude invisible elements and | ||
* sensitive data. | ||
* sensitive data. | ||
* | ||
@@ -132,0 +132,0 @@ * @return {Partial<ContentSchema>} Schema. |
@@ -7,5 +7,5 @@ /** | ||
* | ||
* @param {Document} doc The document of the range. | ||
* @param {number} x Horizontal position within the current viewport. | ||
* @param {number} y Vertical position within the current viewport. | ||
* @param {Document} doc The document of the range. | ||
* @param {number} x Horizontal position within the current viewport. | ||
* @param {number} y Vertical position within the current viewport. | ||
* | ||
@@ -12,0 +12,0 @@ * @return {Range | null} The best range for the given point. |
/** | ||
* @typedef SchemaItem | ||
* @property {string[]} [attributes] Attributes. | ||
* @property {(string | RegExp)[]} [classes] Classnames or RegExp to test against. | ||
* @property {'*' | { [tag: string]: SchemaItem }} [children] Child schemas. | ||
* @property {string[]} [require] Selectors to test required children against. Leave empty or undefined if there are no requirements. | ||
* @property {boolean} allowEmpty Whether to allow nodes without children. | ||
* @property {(node: Node) => boolean} [isMatch] Function to test whether a node is a match. If left undefined any node will be assumed to match. | ||
* @property {string[]} [attributes] Attributes. | ||
* @property {(string | RegExp)[]} [classes] Classnames or RegExp to test against. | ||
* @property {'*' | { [tag: string]: SchemaItem }} [children] Child schemas. | ||
* @property {string[]} [require] Selectors to test required children against. Leave empty or undefined if there are no requirements. | ||
* @property {boolean} allowEmpty Whether to allow nodes without children. | ||
* @property {(node: Node) => boolean} [isMatch] Function to test whether a node is a match. If left undefined any node will be assumed to match. | ||
*/ | ||
@@ -10,0 +10,0 @@ /** @typedef {{ [tag: string]: SchemaItem }} Schema */ |
@@ -6,6 +6,6 @@ /** |
* |
* @param {Document} doc The document of the range. |
* @param {number} x Horizontal position within the current viewport. |
* @param {number} y Vertical position within the current viewport. |
* @param {HTMLElement} container Container in which the range is expected to be found. |
* @param {Document} doc The document of the range. |
* @param {number} x Horizontal position within the current viewport. |
* @param {number} y Vertical position within the current viewport. |
* @param {HTMLElement} container Container in which the range is expected to be found. |
* |
@@ -12,0 +12,0 @@ * @return {?Range} The best range for the given point. |
@@ -6,4 +6,4 @@ /** | ||
* | ||
* @param {Element} container Focusable element. | ||
* @param {boolean} isReverse Set to true to check left, false to check right. | ||
* @param {Element} container Focusable element. | ||
* @param {boolean} isReverse Set to true to check left, false to check right. | ||
* @param {boolean} [onlyVertical=false] Set to true to check only vertical position. | ||
@@ -10,0 +10,0 @@ * |
@@ -5,7 +5,7 @@ /** | ||
* @param {HTMLElement} container Focusable element. | ||
* @param {boolean} isReverse True for bottom, false for top. | ||
* @param {DOMRect} [rect] The rectangle to position the caret with. | ||
* @param {boolean} [mayUseScroll=true] True to allow scrolling, false to disallow. | ||
* @param {boolean} isReverse True for bottom, false for top. | ||
* @param {DOMRect} [rect] The rectangle to position the caret with. | ||
* @param {boolean} [mayUseScroll=true] True to allow scrolling, false to disallow. | ||
*/ | ||
export default function placeCaretAtVerticalEdge(container: HTMLElement, isReverse: boolean, rect?: DOMRect | undefined, mayUseScroll?: boolean | undefined): void; | ||
//# sourceMappingURL=place-caret-at-vertical-edge.d.ts.map |
/** | ||
* Given a schema, unwraps or removes nodes, attributes and classes on HTML. | ||
* | ||
* @param {string} HTML The HTML to clean up. | ||
* @param {string} HTML The HTML to clean up. | ||
* @param {import('./clean-node-list').Schema} schema Schema for the HTML. | ||
* @param {boolean} inline Whether to clean for inline mode. | ||
* @param {boolean} inline Whether to clean for inline mode. | ||
* | ||
@@ -8,0 +8,0 @@ * @return {string} The cleaned up HTML. |
/** | ||
* Replaces the given node with a new node with the given tag name. | ||
* | ||
* @param {Element} node The node to replace | ||
* @param {string} tagName The new tag name. | ||
* @param {Element} node The node to replace | ||
* @param {string} tagName The new tag name. | ||
* | ||
@@ -7,0 +7,0 @@ * @return {Element} The new node. |
@@ -7,3 +7,3 @@ /** | ||
* @param {string} [context] Set to "paste" to exclude invisible elements and | ||
* sensitive data. | ||
* sensitive data. | ||
* | ||
@@ -10,0 +10,0 @@ * @return {Partial<ContentSchema>} Schema. |
@@ -14,5 +14,5 @@ "use strict"; | ||
* | ||
* @param {Document} doc The document of the range. | ||
* @param {number} x Horizontal position within the current viewport. | ||
* @param {number} y Vertical position within the current viewport. | ||
* @param {Document} doc The document of the range. | ||
* @param {number} x Horizontal position within the current viewport. | ||
* @param {number} y Vertical position within the current viewport. | ||
* | ||
@@ -19,0 +19,0 @@ * @return {Range | null} The best range for the given point. |
@@ -36,8 +36,8 @@ "use strict"; | ||
* @typedef SchemaItem | ||
* @property {string[]} [attributes] Attributes. | ||
* @property {(string | RegExp)[]} [classes] Classnames or RegExp to test against. | ||
* @property {'*' | { [tag: string]: SchemaItem }} [children] Child schemas. | ||
* @property {string[]} [require] Selectors to test required children against. Leave empty or undefined if there are no requirements. | ||
* @property {boolean} allowEmpty Whether to allow nodes without children. | ||
* @property {(node: Node) => boolean} [isMatch] Function to test whether a node is a match. If left undefined any node will be assumed to match. | ||
* @property {string[]} [attributes] Attributes. | ||
* @property {(string | RegExp)[]} [classes] Classnames or RegExp to test against. | ||
* @property {'*' | { [tag: string]: SchemaItem }} [children] Child schemas. | ||
* @property {string[]} [require] Selectors to test required children against. Leave empty or undefined if there are no requirements. | ||
* @property {boolean} allowEmpty Whether to allow nodes without children. | ||
* @property {(node: Node) => boolean} [isMatch] Function to test whether a node is a match. If left undefined any node will be assumed to match. | ||
*/ | ||
@@ -44,0 +44,0 @@ |
@@ -23,6 +23,6 @@ "use strict"; |
* |
* @param {Document} doc The document of the range. |
* @param {number} x Horizontal position within the current viewport. |
* @param {number} y Vertical position within the current viewport. |
* @param {HTMLElement} container Container in which the range is expected to be found. |
* @param {Document} doc The document of the range. |
* @param {number} x Horizontal position within the current viewport. |
* @param {number} y Vertical position within the current viewport. |
* @param {HTMLElement} container Container in which the range is expected to be found. |
* |
@@ -29,0 +29,0 @@ * @return {?Range} The best range for the given point. |
@@ -33,4 +33,4 @@ "use strict"; | ||
* | ||
* @param {Element} container Focusable element. | ||
* @param {boolean} isReverse Set to true to check left, false to check right. | ||
* @param {Element} container Focusable element. | ||
* @param {boolean} isReverse Set to true to check left, false to check right. | ||
* @param {boolean} [onlyVertical=false] Set to true to check only vertical position. | ||
@@ -37,0 +37,0 @@ * |
@@ -24,5 +24,5 @@ "use strict"; | ||
* @param {HTMLElement} container Focusable element. | ||
* @param {boolean} isReverse True for bottom, false for top. | ||
* @param {DOMRect} [rect] The rectangle to position the caret with. | ||
* @param {boolean} [mayUseScroll=true] True to allow scrolling, false to disallow. | ||
* @param {boolean} isReverse True for bottom, false for top. | ||
* @param {DOMRect} [rect] The rectangle to position the caret with. | ||
* @param {boolean} [mayUseScroll=true] True to allow scrolling, false to disallow. | ||
*/ | ||
@@ -29,0 +29,0 @@ function placeCaretAtVerticalEdge(container, isReverse, rect, mayUseScroll = true) { |
@@ -19,5 +19,5 @@ "use strict"; | ||
* | ||
* @param {string} HTML The HTML to clean up. | ||
* @param {string} HTML The HTML to clean up. | ||
* @param {import('./clean-node-list').Schema} schema Schema for the HTML. | ||
* @param {boolean} inline Whether to clean for inline mode. | ||
* @param {boolean} inline Whether to clean for inline mode. | ||
* | ||
@@ -24,0 +24,0 @@ * @return {string} The cleaned up HTML. |
@@ -17,4 +17,4 @@ "use strict"; | ||
* | ||
* @param {Element} node The node to replace | ||
* @param {string} tagName The new tag name. | ||
* @param {Element} node The node to replace | ||
* @param {string} tagName The new tag name. | ||
* | ||
@@ -21,0 +21,0 @@ * @return {Element} The new node. |
@@ -28,4 +28,4 @@ "use strict"; | ||
* @typedef SemanticElementDefinition | ||
* @property {string[]} [attributes] Content attributes | ||
* @property {ContentSchema} [children] Content attributes | ||
* @property {string[]} [attributes] Content attributes | ||
* @property {ContentSchema} [children] Content attributes | ||
*/ | ||
@@ -139,3 +139,3 @@ | ||
* @param {string} [context] Set to "paste" to exclude invisible elements and | ||
* sensitive data. | ||
* sensitive data. | ||
* | ||
@@ -142,0 +142,0 @@ * @return {Partial<ContentSchema>} Schema. |
@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
## 3.2.0 (2021-07-21) | ||
## 3.1.0 (2021-05-20) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@wordpress/dom", | ||
"version": "3.1.4", | ||
"version": "3.2.0", | ||
"description": "DOM utilities module for WordPress.", | ||
@@ -37,3 +37,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "42a6dbdbf9c981e71ea4752c94e5642d6f6cac1d" | ||
"gitHead": "743b70f86f1e75fd66a583bf659f2b2fe5daf1cc" | ||
} |
@@ -17,3 +17,3 @@ # DOM | ||
<a name="computeCaretRect" href="#computeCaretRect">#</a> **computeCaretRect** | ||
### computeCaretRect | ||
@@ -30,3 +30,3 @@ Get the rectangle for the selection in a container. | ||
<a name="documentHasSelection" href="#documentHasSelection">#</a> **documentHasSelection** | ||
### documentHasSelection | ||
@@ -44,3 +44,3 @@ Check whether the current document has a selection. This checks for both | ||
<a name="documentHasTextSelection" href="#documentHasTextSelection">#</a> **documentHasTextSelection** | ||
### documentHasTextSelection | ||
@@ -61,3 +61,3 @@ Check whether the current document has selected text. This applies to ranges | ||
<a name="documentHasUncollapsedSelection" href="#documentHasUncollapsedSelection">#</a> **documentHasUncollapsedSelection** | ||
### documentHasUncollapsedSelection | ||
@@ -76,3 +76,3 @@ Check whether the current document has any sort of selection. This includes | ||
<a name="focus" href="#focus">#</a> **focus** | ||
### focus | ||
@@ -82,3 +82,3 @@ Object grouping `focusable` and `tabbable` utils | ||
<a name="getFilesFromDataTransfer" href="#getFilesFromDataTransfer">#</a> **getFilesFromDataTransfer** | ||
### getFilesFromDataTransfer | ||
@@ -95,3 +95,3 @@ Gets all files from a DataTransfer object. | ||
<a name="getOffsetParent" href="#getOffsetParent">#</a> **getOffsetParent** | ||
### getOffsetParent | ||
@@ -114,3 +114,3 @@ Returns the closest positioned element, or null under any of the conditions | ||
<a name="getPhrasingContentSchema" href="#getPhrasingContentSchema">#</a> **getPhrasingContentSchema** | ||
### getPhrasingContentSchema | ||
@@ -131,3 +131,3 @@ Get schema of possible paths for phrasing content. | ||
<a name="getRectangleFromRange" href="#getRectangleFromRange">#</a> **getRectangleFromRange** | ||
### getRectangleFromRange | ||
@@ -144,3 +144,3 @@ Get the rectangle of a given Range. | ||
<a name="getScrollContainer" href="#getScrollContainer">#</a> **getScrollContainer** | ||
### getScrollContainer | ||
@@ -157,3 +157,3 @@ Given a DOM node, finds the closest scrollable container node. | ||
<a name="insertAfter" href="#insertAfter">#</a> **insertAfter** | ||
### insertAfter | ||
@@ -172,3 +172,3 @@ Given two DOM nodes, inserts the former in the DOM as the next sibling of | ||
<a name="isEmpty" href="#isEmpty">#</a> **isEmpty** | ||
### isEmpty | ||
@@ -186,3 +186,3 @@ Recursively checks if an element is empty. An element is not empty if it | ||
<a name="isEntirelySelected" href="#isEntirelySelected">#</a> **isEntirelySelected** | ||
### isEntirelySelected | ||
@@ -200,3 +200,3 @@ Check whether the contents of the element have been entirely selected. | ||
<a name="isHorizontalEdge" href="#isHorizontalEdge">#</a> **isHorizontalEdge** | ||
### isHorizontalEdge | ||
@@ -214,3 +214,3 @@ Check whether the selection is horizontally at the edge of the container. | ||
<a name="isNumberInput" href="#isNumberInput">#</a> **isNumberInput** | ||
### isNumberInput | ||
@@ -228,3 +228,3 @@ Check whether the given element is an input field of type number | ||
<a name="isPhrasingContent" href="#isPhrasingContent">#</a> **isPhrasingContent** | ||
### isPhrasingContent | ||
@@ -245,3 +245,3 @@ Find out whether or not the given node is phrasing content. | ||
<a name="isRTL" href="#isRTL">#</a> **isRTL** | ||
### isRTL | ||
@@ -258,3 +258,3 @@ Whether the element's text direction is right-to-left. | ||
<a name="isTextContent" href="#isTextContent">#</a> **isTextContent** | ||
### isTextContent | ||
@@ -269,3 +269,3 @@ _Parameters_ | ||
<a name="isTextField" href="#isTextField">#</a> **isTextField** | ||
### isTextField | ||
@@ -285,3 +285,3 @@ Check whether the given element is a text field, where text field is defined | ||
<a name="isVerticalEdge" href="#isVerticalEdge">#</a> **isVerticalEdge** | ||
### isVerticalEdge | ||
@@ -299,3 +299,3 @@ Check whether the selection is vertically at the edge of the container. | ||
<a name="placeCaretAtHorizontalEdge" href="#placeCaretAtHorizontalEdge">#</a> **placeCaretAtHorizontalEdge** | ||
### placeCaretAtHorizontalEdge | ||
@@ -309,3 +309,3 @@ Places the caret at start or end of a given element. | ||
<a name="placeCaretAtVerticalEdge" href="#placeCaretAtVerticalEdge">#</a> **placeCaretAtVerticalEdge** | ||
### placeCaretAtVerticalEdge | ||
@@ -321,3 +321,3 @@ Places the caret at the top or bottom of a given element. | ||
<a name="remove" href="#remove">#</a> **remove** | ||
### remove | ||
@@ -334,3 +334,3 @@ Given a DOM node, removes it from the DOM. | ||
<a name="removeInvalidHTML" href="#removeInvalidHTML">#</a> **removeInvalidHTML** | ||
### removeInvalidHTML | ||
@@ -349,3 +349,3 @@ Given a schema, unwraps or removes nodes, attributes and classes on HTML. | ||
<a name="replace" href="#replace">#</a> **replace** | ||
### replace | ||
@@ -363,3 +363,3 @@ Given two DOM nodes, replaces the former with the latter in the DOM. | ||
<a name="replaceTag" href="#replaceTag">#</a> **replaceTag** | ||
### replaceTag | ||
@@ -377,3 +377,3 @@ Replaces the given node with a new node with the given tag name. | ||
<a name="safeHTML" href="#safeHTML">#</a> **safeHTML** | ||
### safeHTML | ||
@@ -390,3 +390,3 @@ Strips scripts and on\* attributes from HTML. | ||
<a name="unwrap" href="#unwrap">#</a> **unwrap** | ||
### unwrap | ||
@@ -403,3 +403,3 @@ Unwrap the given node. This means any child nodes are moved to the parent. | ||
<a name="wrap" href="#wrap">#</a> **wrap** | ||
### wrap | ||
@@ -406,0 +406,0 @@ Wraps the given node with a new node with the given tag name. |
@@ -7,5 +7,5 @@ /** | ||
* | ||
* @param {Document} doc The document of the range. | ||
* @param {number} x Horizontal position within the current viewport. | ||
* @param {number} y Vertical position within the current viewport. | ||
* @param {Document} doc The document of the range. | ||
* @param {number} x Horizontal position within the current viewport. | ||
* @param {number} y Vertical position within the current viewport. | ||
* | ||
@@ -12,0 +12,0 @@ * @return {Range | null} The best range for the given point. |
@@ -19,8 +19,8 @@ /** | ||
* @typedef SchemaItem | ||
* @property {string[]} [attributes] Attributes. | ||
* @property {(string | RegExp)[]} [classes] Classnames or RegExp to test against. | ||
* @property {'*' | { [tag: string]: SchemaItem }} [children] Child schemas. | ||
* @property {string[]} [require] Selectors to test required children against. Leave empty or undefined if there are no requirements. | ||
* @property {boolean} allowEmpty Whether to allow nodes without children. | ||
* @property {(node: Node) => boolean} [isMatch] Function to test whether a node is a match. If left undefined any node will be assumed to match. | ||
* @property {string[]} [attributes] Attributes. | ||
* @property {(string | RegExp)[]} [classes] Classnames or RegExp to test against. | ||
* @property {'*' | { [tag: string]: SchemaItem }} [children] Child schemas. | ||
* @property {string[]} [require] Selectors to test required children against. Leave empty or undefined if there are no requirements. | ||
* @property {boolean} allowEmpty Whether to allow nodes without children. | ||
* @property {(node: Node) => boolean} [isMatch] Function to test whether a node is a match. If left undefined any node will be assumed to match. | ||
*/ | ||
@@ -27,0 +27,0 @@ |
@@ -12,6 +12,6 @@ /** |
* |
* @param {Document} doc The document of the range. |
* @param {number} x Horizontal position within the current viewport. |
* @param {number} y Vertical position within the current viewport. |
* @param {HTMLElement} container Container in which the range is expected to be found. |
* @param {Document} doc The document of the range. |
* @param {number} x Horizontal position within the current viewport. |
* @param {number} y Vertical position within the current viewport. |
* @param {HTMLElement} container Container in which the range is expected to be found. |
* |
@@ -18,0 +18,0 @@ * @return {?Range} The best range for the given point. |
@@ -17,4 +17,4 @@ /** | ||
* | ||
* @param {Element} container Focusable element. | ||
* @param {boolean} isReverse Set to true to check left, false to check right. | ||
* @param {Element} container Focusable element. | ||
* @param {boolean} isReverse Set to true to check left, false to check right. | ||
* @param {boolean} [onlyVertical=false] Set to true to check only vertical position. | ||
@@ -21,0 +21,0 @@ * |
@@ -12,5 +12,5 @@ /** | ||
* @param {HTMLElement} container Focusable element. | ||
* @param {boolean} isReverse True for bottom, false for top. | ||
* @param {DOMRect} [rect] The rectangle to position the caret with. | ||
* @param {boolean} [mayUseScroll=true] True to allow scrolling, false to disallow. | ||
* @param {boolean} isReverse True for bottom, false for top. | ||
* @param {DOMRect} [rect] The rectangle to position the caret with. | ||
* @param {boolean} [mayUseScroll=true] True to allow scrolling, false to disallow. | ||
*/ | ||
@@ -17,0 +17,0 @@ export default function placeCaretAtVerticalEdge( |
@@ -9,5 +9,5 @@ /** | ||
* | ||
* @param {string} HTML The HTML to clean up. | ||
* @param {string} HTML The HTML to clean up. | ||
* @param {import('./clean-node-list').Schema} schema Schema for the HTML. | ||
* @param {boolean} inline Whether to clean for inline mode. | ||
* @param {boolean} inline Whether to clean for inline mode. | ||
* | ||
@@ -14,0 +14,0 @@ * @return {string} The cleaned up HTML. |
@@ -9,4 +9,4 @@ /** | ||
* | ||
* @param {Element} node The node to replace | ||
* @param {string} tagName The new tag name. | ||
* @param {Element} node The node to replace | ||
* @param {string} tagName The new tag name. | ||
* | ||
@@ -13,0 +13,0 @@ * @return {Element} The new node. |
@@ -12,4 +12,5 @@ /** | ||
export const focus = { focusable, tabbable }; | ||
export * from './dom'; | ||
export * from './phrasing-content'; | ||
export * from './data-transfer'; |
@@ -18,4 +18,4 @@ /** | ||
* @typedef SemanticElementDefinition | ||
* @property {string[]} [attributes] Content attributes | ||
* @property {ContentSchema} [children] Content attributes | ||
* @property {string[]} [attributes] Content attributes | ||
* @property {ContentSchema} [children] Content attributes | ||
*/ | ||
@@ -146,3 +146,3 @@ | ||
* @param {string} [context] Set to "paste" to exclude invisible elements and | ||
* sensitive data. | ||
* sensitive data. | ||
* | ||
@@ -149,0 +149,0 @@ * @return {Partial<ContentSchema>} Schema. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
559726