@domql/element 3.0.0 → 3.0.1
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.
- package/create.js +4 -1
- package/dist/cjs/create.js +1 -0
- package/dist/esm/create.js +3 -1
- package/package.json +6 -6
package/create.js
CHANGED
|
@@ -16,7 +16,8 @@ import {
|
|
|
16
16
|
OPTIONS,
|
|
17
17
|
initProps,
|
|
18
18
|
createIfConditionFlag,
|
|
19
|
-
deepClone
|
|
19
|
+
deepClone,
|
|
20
|
+
createRoot
|
|
20
21
|
} from '@domql/utils'
|
|
21
22
|
|
|
22
23
|
import { applyAnimationFrame, triggerEventOn } from '@domql/event'
|
|
@@ -47,6 +48,8 @@ export const create = async (
|
|
|
47
48
|
|
|
48
49
|
const { key, parent, __ref: ref } = element
|
|
49
50
|
|
|
51
|
+
createRoot(element, parent) // Call createRoot after addCaching
|
|
52
|
+
|
|
50
53
|
if (element.key === 'BannerHgroup') {
|
|
51
54
|
console.warn(deepClone(element))
|
|
52
55
|
}
|
package/dist/cjs/create.js
CHANGED
|
@@ -38,6 +38,7 @@ const create = async (props, parentEl, passedKey, options = import_utils.OPTIONS
|
|
|
38
38
|
const element = (0, import_utils.createElement)(props, parentEl, passedKey, options, import_tree.ROOT);
|
|
39
39
|
if (!element) return;
|
|
40
40
|
const { key, parent, __ref: ref } = element;
|
|
41
|
+
(0, import_utils.createRoot)(element, parent);
|
|
41
42
|
if (element.key === "BannerHgroup") {
|
|
42
43
|
console.warn((0, import_utils.deepClone)(element));
|
|
43
44
|
}
|
package/dist/esm/create.js
CHANGED
|
@@ -13,7 +13,8 @@ import {
|
|
|
13
13
|
OPTIONS,
|
|
14
14
|
initProps,
|
|
15
15
|
createIfConditionFlag,
|
|
16
|
-
deepClone
|
|
16
|
+
deepClone,
|
|
17
|
+
createRoot
|
|
17
18
|
} from "@domql/utils";
|
|
18
19
|
import { applyAnimationFrame, triggerEventOn } from "@domql/event";
|
|
19
20
|
import { assignNode } from "@domql/render";
|
|
@@ -28,6 +29,7 @@ const create = async (props, parentEl, passedKey, options = OPTIONS.create || {}
|
|
|
28
29
|
const element = createElement(props, parentEl, passedKey, options, ROOT);
|
|
29
30
|
if (!element) return;
|
|
30
31
|
const { key, parent, __ref: ref } = element;
|
|
32
|
+
createRoot(element, parent);
|
|
31
33
|
if (element.key === "BannerHgroup") {
|
|
32
34
|
console.warn(deepClone(element));
|
|
33
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"prepublish": "rimraf -I dist && npm run build && npm run copy:package:cjs"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@domql/event": "^3.0.
|
|
31
|
-
"@domql/render": "^3.0.
|
|
30
|
+
"@domql/event": "^3.0.1",
|
|
31
|
+
"@domql/render": "^3.0.1",
|
|
32
32
|
"@domql/report": "^3.0.0",
|
|
33
|
-
"@domql/state": "^3.0.
|
|
34
|
-
"@domql/utils": "^3.0.
|
|
33
|
+
"@domql/state": "^3.0.1",
|
|
34
|
+
"@domql/utils": "^3.0.1"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "bdadc70a00c5ddde21ca889746bf28db0c3d7c2f",
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@babel/core": "^7.12.0"
|
|
39
39
|
}
|