@formisch/preact 0.6.0 → 0.6.1
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 +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -641,10 +641,10 @@ function move(form, config) {
|
|
|
641
641
|
internalArrayStore.items.value = newItems;
|
|
642
642
|
const tempInternalFieldStore = {};
|
|
643
643
|
initializeFieldStore(tempInternalFieldStore, internalArrayStore.schema.item, void 0, []);
|
|
644
|
-
copyItemState(internalArrayStore.children[config.from
|
|
644
|
+
copyItemState(internalArrayStore.children[config.from], tempInternalFieldStore);
|
|
645
645
|
if (config.from < config.to) for (let index = config.from; index < config.to; index++) copyItemState(internalArrayStore.children[index + 1], internalArrayStore.children[index]);
|
|
646
646
|
else for (let index = config.from; index > config.to; index--) copyItemState(internalArrayStore.children[index - 1], internalArrayStore.children[index]);
|
|
647
|
-
copyItemState(tempInternalFieldStore, internalArrayStore.children[config.
|
|
647
|
+
copyItemState(tempInternalFieldStore, internalArrayStore.children[config.to]);
|
|
648
648
|
internalArrayStore.isTouched.value = true;
|
|
649
649
|
internalArrayStore.isDirty.value = internalArrayStore.startItems.value.join() !== newItems.join();
|
|
650
650
|
validateIfRequired(internalFormStore, internalArrayStore, "input");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formisch/preact",
|
|
3
3
|
"description": "The modular and type-safe form library for Preact",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Fabian Hiller",
|
|
7
7
|
"homepage": "https://formisch.dev",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"typescript": "^5.8.3",
|
|
44
44
|
"typescript-eslint": "^8.37.0",
|
|
45
45
|
"vite": "^6.0.4",
|
|
46
|
-
"@formisch/
|
|
47
|
-
"@formisch/
|
|
46
|
+
"@formisch/core": "0.4.1",
|
|
47
|
+
"@formisch/methods": "0.4.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@preact/signals": "^2.0.0",
|