@jay-framework/runtime 0.14.0 → 0.15.0
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/index.js +7 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -251,7 +251,8 @@ class ConstructContext {
|
|
|
251
251
|
resolveCoordinate(key) {
|
|
252
252
|
if (!this._coordinateMap)
|
|
253
253
|
return void 0;
|
|
254
|
-
const
|
|
254
|
+
const base = this.coordinateBase.length > 0 ? this.coordinateBase.join("/") : "";
|
|
255
|
+
const fullKey = base ? key ? base + "/" + key : base : key;
|
|
255
256
|
const elements = this._coordinateMap.get(fullKey);
|
|
256
257
|
if (!elements || elements.length === 0)
|
|
257
258
|
return void 0;
|
|
@@ -266,7 +267,8 @@ class ConstructContext {
|
|
|
266
267
|
peekCoordinate(key) {
|
|
267
268
|
if (!this._coordinateMap)
|
|
268
269
|
return void 0;
|
|
269
|
-
const
|
|
270
|
+
const base = this.coordinateBase.length > 0 ? this.coordinateBase.join("/") : "";
|
|
271
|
+
const fullKey = base ? key ? base + "/" + key : base : key;
|
|
270
272
|
const elements = this._coordinateMap.get(fullKey);
|
|
271
273
|
if (!elements || elements.length === 0)
|
|
272
274
|
return void 0;
|
|
@@ -1311,8 +1313,9 @@ function adoptDynamicElement(coordinate, attributes, children = [], ref) {
|
|
|
1311
1313
|
child._setGroup(group);
|
|
1312
1314
|
collectChild(child, updates, mounts, unmounts);
|
|
1313
1315
|
} else {
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
+
const domNode = significantChildren[significantIndex];
|
|
1317
|
+
if (domNode)
|
|
1318
|
+
group.children.add(domNode);
|
|
1316
1319
|
collectChild(child, updates, mounts, unmounts);
|
|
1317
1320
|
significantIndex++;
|
|
1318
1321
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"test:watch": "vitest"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@jay-framework/list-compare": "^0.
|
|
27
|
-
"@jay-framework/reactive": "^0.
|
|
26
|
+
"@jay-framework/list-compare": "^0.15.0",
|
|
27
|
+
"@jay-framework/reactive": "^0.15.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@jay-framework/dev-environment": "^0.
|
|
30
|
+
"@jay-framework/dev-environment": "^0.15.0",
|
|
31
31
|
"@testing-library/jest-dom": "^6.2.0",
|
|
32
32
|
"@types/jsdom": "^21.1.6",
|
|
33
33
|
"@types/node": "^20.11.5",
|