kerfjs 5.0.0-beta.85 → 5.0.0-beta.86
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/ai/manifest.json +1 -1
- package/dist/{chunk-TLL3KXT6.js → chunk-T33U7SRR.js} +13 -6
- package/dist/chunk-T33U7SRR.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/list.js +32 -23
- package/dist/list.js.map +1 -1
- package/dist/overlay.js +1 -1
- package/dist/remount.js +1 -1
- package/dist/scope.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-TLL3KXT6.js.map +0 -1
package/ai/manifest.json
CHANGED
|
@@ -111,11 +111,18 @@ function _hasGranularIndexShift(previousBindingCount, patches) {
|
|
|
111
111
|
const rendered = [];
|
|
112
112
|
for (let i = 0; i < previousBindingCount; i++) rendered.push(i);
|
|
113
113
|
for (const patch of patches) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
switch (patch.type) {
|
|
115
|
+
case "insert":
|
|
116
|
+
rendered.splice(patch.index, 0, patch.index);
|
|
117
|
+
break;
|
|
118
|
+
case "remove":
|
|
119
|
+
rendered.splice(patch.index, 1);
|
|
120
|
+
break;
|
|
121
|
+
case "move": {
|
|
122
|
+
const [moved] = rendered.splice(patch.from, 1);
|
|
123
|
+
rendered.splice(patch.to, 0, moved);
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
119
126
|
}
|
|
120
127
|
}
|
|
121
128
|
return rendered.some((renderedAt, index) => renderedAt !== index);
|
|
@@ -1514,4 +1521,4 @@ function resultToSegment(result) {
|
|
|
1514
1521
|
|
|
1515
1522
|
export { captureFocus, each, morph, mount, moveNode, restoreFocus };
|
|
1516
1523
|
|
|
1517
|
-
//# sourceMappingURL=chunk-
|
|
1524
|
+
//# sourceMappingURL=chunk-T33U7SRR.js.map
|