Skip to content

Commit

Permalink
feat: update dom diffing to include parent nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Apr 14, 2023
1 parent 1bfdbbc commit af18318
Show file tree
Hide file tree
Showing 8 changed files with 170 additions and 26 deletions.
10 changes: 10 additions & 0 deletions client/dist/engine/dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ export default class Dom {
* @returns The body of the html
*/
static getBody(html: string, removeScripts?: boolean): HTMLElement;
/**
* Wrap DOM node with a template element
*/
static wrap(node: Node): HTMLElement;
/**
* Parse string to DOM
*
* @param html The html to parse
*/
static parse(html: string): HTMLElement;
/**
* Get the type for a node
* @param {HTMLElement} node The node
Expand Down
56 changes: 48 additions & 8 deletions client/dist/ui.cjs.development.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/dist/ui.cjs.development.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit af18318

Please sign in to comment.