@domql/element 2.5.1 → 2.5.3
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/LICENSE +21 -0
- package/create.js +2 -1
- package/dist/cjs/create.js +3 -4
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 symbo.ls
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/create.js
CHANGED
package/dist/cjs/create.js
CHANGED
|
@@ -36,7 +36,6 @@ var import_tree = require("./tree");
|
|
|
36
36
|
var import_registry = require("@domql/registry");
|
|
37
37
|
var import_event = require("@domql/event");
|
|
38
38
|
var import_render = require("@domql/render");
|
|
39
|
-
var import_node2 = require("@domql/node");
|
|
40
39
|
var import_state = require("@domql/state");
|
|
41
40
|
var import_methods = require("./methods");
|
|
42
41
|
var import_props = require("./props");
|
|
@@ -58,7 +57,7 @@ const create = (element, parent, key, options = import_options.default.create ||
|
|
|
58
57
|
parent = redefineParent(element, parent, key);
|
|
59
58
|
key = createKey(element, parent, key);
|
|
60
59
|
const ref = addRef(element, parent, key);
|
|
61
|
-
ref.__initialProps = deepClone(element.props, []);
|
|
60
|
+
ref.__initialProps = (0, import_utils.deepClone)(element.props, []);
|
|
62
61
|
applyContext(element, parent, options);
|
|
63
62
|
(0, import_component.applyComponentFromContext)(element, parent, options);
|
|
64
63
|
(0, import_extend.applyExtend)(element, parent, options);
|
|
@@ -186,7 +185,7 @@ const createIfConditionFlag = (element, parent) => {
|
|
|
186
185
|
if ((0, import_utils.isFunction)(element.if)) {
|
|
187
186
|
const ifPassed = element.if(element, element.state);
|
|
188
187
|
if (!ifPassed) {
|
|
189
|
-
const ifFragment = (0,
|
|
188
|
+
const ifFragment = (0, import_render.cacheNode)({ tag: "fragment" });
|
|
190
189
|
ref.__ifFragment = (0, import_render.appendNode)(ifFragment, parent.node);
|
|
191
190
|
delete ref.__if;
|
|
192
191
|
} else
|
|
@@ -228,7 +227,7 @@ const addCaching = (element, parent) => {
|
|
|
228
227
|
};
|
|
229
228
|
const onlyResolveExtends = (element, parent, key, options) => {
|
|
230
229
|
const { __ref } = element;
|
|
231
|
-
element.tag = (0,
|
|
230
|
+
element.tag = (0, import_render.detectTag)(element);
|
|
232
231
|
if (!__ref.__exec)
|
|
233
232
|
__ref.__exec = {};
|
|
234
233
|
if (!__ref.__attr)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
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": "8a498068958fca26ce39c39e6ad1312d0be327d7",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "^7.12.0"
|
|
37
37
|
}
|