@domql/element 2.5.125 → 2.5.127
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/dist/cjs/node.js +4 -1
- package/node.js +5 -1
- package/package.json +2 -2
package/dist/cjs/node.js
CHANGED
|
@@ -42,6 +42,7 @@ var import_mixins = require("./mixins");
|
|
|
42
42
|
var import_applyParam = require("./utils/applyParam");
|
|
43
43
|
var import_utils2 = require("./utils");
|
|
44
44
|
var import_propEvents = require("./utils/propEvents");
|
|
45
|
+
var import_on = require("../event/on");
|
|
45
46
|
const ENV = "development";
|
|
46
47
|
const createNode = (element, options) => {
|
|
47
48
|
let { node, tag, __ref: ref } = element;
|
|
@@ -65,8 +66,10 @@ const createNode = (element, options) => {
|
|
|
65
66
|
(0, import_iterate.throughInitialExec)(element);
|
|
66
67
|
if (element.tag !== "string" && element.tag !== "fragment") {
|
|
67
68
|
(0, import_propEvents.propagateEventsFromProps)(element);
|
|
68
|
-
if (isNewNode && (0, import_utils.isObject)(element.on))
|
|
69
|
+
if (isNewNode && (0, import_utils.isObject)(element.on)) {
|
|
70
|
+
(0, import_on.applyAnimationFrame)(element, options);
|
|
69
71
|
(0, import_event.applyEventsOnNode)(element, options);
|
|
72
|
+
}
|
|
70
73
|
}
|
|
71
74
|
for (const param in element) {
|
|
72
75
|
const value = element[param];
|
package/node.js
CHANGED
|
@@ -15,6 +15,7 @@ import { registry } from './mixins'
|
|
|
15
15
|
import { applyParam } from './utils/applyParam'
|
|
16
16
|
import { isVariant } from './utils'
|
|
17
17
|
import { propagateEventsFromProps } from './utils/propEvents'
|
|
18
|
+
import { applyAnimationFrame } from '../event/on'
|
|
18
19
|
// import { defineSetter } from './methods'
|
|
19
20
|
|
|
20
21
|
const ENV = process.env.NODE_ENV
|
|
@@ -54,7 +55,10 @@ export const createNode = (element, options) => {
|
|
|
54
55
|
if (element.tag !== 'string' && element.tag !== 'fragment') {
|
|
55
56
|
propagateEventsFromProps(element)
|
|
56
57
|
// apply events
|
|
57
|
-
if (isNewNode && isObject(element.on))
|
|
58
|
+
if (isNewNode && isObject(element.on)) {
|
|
59
|
+
applyAnimationFrame(element, options)
|
|
60
|
+
applyEventsOnNode(element, options)
|
|
61
|
+
}
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
for (const param in element) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.127",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@domql/state": "latest",
|
|
32
32
|
"@domql/utils": "latest"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "b8f8a11aed03f9afe2e2e6d3e85a4cce1bc03cdf",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "^7.12.0"
|
|
37
37
|
}
|