nuxt-users 1.25.0 → 1.26.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
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## v1.26.0
|
|
5
|
+
|
|
6
|
+
[compare changes](https://github.com/rrd108/nuxt-users/compare/v1.25.0...v1.26.0)
|
|
7
|
+
|
|
8
|
+
### 🚀 Enhancements
|
|
9
|
+
|
|
10
|
+
- Use soft delete by default ([5c9f0da](https://github.com/rrd108/nuxt-users/commit/5c9f0da))
|
|
11
|
+
- Emit error ([0818b80](https://github.com/rrd108/nuxt-users/commit/0818b80))
|
|
12
|
+
|
|
13
|
+
### 🏡 Chore
|
|
14
|
+
|
|
15
|
+
- **release:** V1.25.0 ([20be66a](https://github.com/rrd108/nuxt-users/commit/20be66a))
|
|
16
|
+
|
|
17
|
+
### ❤️ Contributors
|
|
18
|
+
|
|
19
|
+
- Rrd108 ([@rrd108](https://github.com/rrd108))
|
|
20
|
+
|
|
4
21
|
## v1.25.0
|
|
5
22
|
|
|
6
23
|
[compare changes](https://github.com/rrd108/nuxt-users/compare/v1.24.0...v1.25.0)
|
package/dist/module.json
CHANGED
|
@@ -5,7 +5,7 @@ import { useRuntimeConfig } from "#imports";
|
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
user: { type: null, required: false }
|
|
7
7
|
});
|
|
8
|
-
const emit = defineEmits(["submit", "cancel"]);
|
|
8
|
+
const emit = defineEmits(["submit", "cancel", "error"]);
|
|
9
9
|
const emptyFormData = {
|
|
10
10
|
name: "",
|
|
11
11
|
email: "",
|
|
@@ -68,6 +68,7 @@ const handleSubmit = async () => {
|
|
|
68
68
|
formData.value = { ...emptyFormData };
|
|
69
69
|
} catch (error) {
|
|
70
70
|
console.error("Failed to save user:", error);
|
|
71
|
+
emit("error", error);
|
|
71
72
|
}
|
|
72
73
|
};
|
|
73
74
|
</script>
|
|
@@ -4,9 +4,11 @@ interface Props {
|
|
|
4
4
|
}
|
|
5
5
|
declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
6
|
cancel: () => any;
|
|
7
|
+
error: (error: unknown) => any;
|
|
7
8
|
submit: (userData: User) => any;
|
|
8
9
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
9
10
|
onCancel?: (() => any) | undefined;
|
|
11
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
10
12
|
onSubmit?: ((userData: User) => any) | undefined;
|
|
11
13
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
14
|
export default _default;
|
package/package.json
CHANGED