@lukekaalim/act-backstage 1.2.1 → 1.3.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/CHANGELOG.md +12 -0
- package/package.json +3 -3
- package/space.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @lukekaalim/act-backstage
|
|
2
2
|
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added support for keys/reordering elements without unmounting them
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @lukekaalim/act-recon@1.2.0
|
|
13
|
+
- @lukekaalim/act@3.2.0
|
|
14
|
+
|
|
3
15
|
## 1.2.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukekaalim/act-backstage",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"main": "mod.ts",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@lukekaalim/act": "^3.
|
|
7
|
-
"@lukekaalim/act-recon": "^1.
|
|
6
|
+
"@lukekaalim/act": "^3.2.0",
|
|
7
|
+
"@lukekaalim/act-recon": "^1.2.0"
|
|
8
8
|
}
|
|
9
9
|
}
|
package/space.ts
CHANGED
|
@@ -146,6 +146,13 @@ export const createSimpleRenderSpace = <T, R extends string | Symbol>(
|
|
|
146
146
|
if (!node)
|
|
147
147
|
continue;
|
|
148
148
|
args.update(node, delta.next.element, delta.prev.element);
|
|
149
|
+
if (delta.moved) {
|
|
150
|
+
const parent = findParent(delta.ref);
|
|
151
|
+
const parentNode = parent && parent.node;
|
|
152
|
+
if (parentNode) {
|
|
153
|
+
needsReorder.add(parent.id)
|
|
154
|
+
}
|
|
155
|
+
}
|
|
149
156
|
}
|
|
150
157
|
for (const delta of deltas.created) {
|
|
151
158
|
const node = nodeByCommit.get(delta.ref.id);
|