@icvdeveloper/common-module 2.5.0 → 2.5.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/CHANGELOG.md CHANGED
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 2.5.1 - 2025-07-31
11
+
10
12
  ## 2.5.0 - 2025-07-17
11
13
 
12
14
  ## 2.4.1 - 2025-07-02
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "v3plus-common-module",
3
3
  "configKey": "v3plusCommonModule",
4
- "version": "2.5.0"
4
+ "version": "2.5.1"
5
5
  }
@@ -8,15 +8,17 @@ import { usePortalStore } from "../../store";
8
8
 
9
9
  interface Props {
10
10
  title?: string | null;
11
+ message?: string | null;
11
12
  conference?: Conference | null;
12
13
  }
13
14
 
14
15
  const props = withDefaults(defineProps<Props>(), {
15
16
  title: null,
17
+ message: null,
16
18
  conference: null,
17
19
  });
18
20
 
19
- const { title, conference } = toRefs<Props>(props);
21
+ const { title, message, conference } = toRefs<Props>(props);
20
22
 
21
23
  const { data:portal } = storeToRefs(usePortalStore());
22
24
  const { globalConfigValue } = storeToRefs(useTemplateConfigsStore());
@@ -49,6 +51,14 @@ const showResetRequest = () => {
49
51
  <h1 class="mb-3 heading-color-3">
50
52
  Log In
51
53
  </h1>
54
+ <!-- message -->
55
+ <CommonMessage
56
+ v-if="message && !loginError"
57
+ :success="true"
58
+ class="w-full max-w-xs mx-auto"
59
+ >
60
+ {{ message }}
61
+ </CommonMessage>
52
62
  <!-- error messages -->
53
63
  <CommonMessage
54
64
  v-if="loginError"
@@ -22,8 +22,14 @@ const props = withDefaults(defineProps<Props>(), {
22
22
  },
23
23
  });
24
24
 
25
+ // emits
26
+ const emit = defineEmits<{
27
+ (event: 'showLogin', value: string): void
28
+ }>();
29
+
25
30
  // data
26
31
  const route = useRoute();
32
+ const { passwordReset } = useAuthStore();
27
33
 
28
34
  const { isCentered } = toRefs(props);
29
35
  const { classBinding } = useClassBinding();
@@ -36,9 +42,7 @@ const password_confirmation = ref<string>("");
36
42
  const message = ref<null | string>(null);
37
43
  const errors = ref<Array<any>>([]);
38
44
 
39
-
40
45
  // methods
41
- const { passwordReset } = useAuthStore();
42
46
  const submitPasswordReset = () => {
43
47
  loading.value = true;
44
48
  message.value = null;
@@ -47,6 +51,7 @@ const submitPasswordReset = () => {
47
51
  passwordReset(email.value, password.value, password_confirmation.value, token.value)
48
52
  .then((response) => {
49
53
  message.value = response.message;
54
+ emit("showLogin", message.value);
50
55
  })
51
56
  .catch((error) => {
52
57
  if (error.response?._data?.errors) {
@@ -50,6 +50,7 @@ const submitPasswordResetRequest = () => {
50
50
  loading.value = false;
51
51
  });
52
52
  };
53
+
53
54
  </script>
54
55
 
55
56
  <template>
@@ -81,7 +82,7 @@ const submitPasswordResetRequest = () => {
81
82
  classBinding(
82
83
  classObject,
83
84
  'container',
84
- 'form-input contrast-border mb-2'
85
+ 'contrast-border mb-2'
85
86
  )
86
87
  "
87
88
  />
@@ -33,7 +33,7 @@ const { classObject } = toRefs(props);
33
33
 
34
34
  <template>
35
35
  <input
36
- :class="classBinding(classObject, 'container', 'form-input px-2 py-1')"
36
+ :class="classBinding(classObject, 'container', 'form-input')"
37
37
  :type="type"
38
38
  :value="props.modelValue"
39
39
  :placeholder="placeholder"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {