@dev.smartpricing/message-composer-layer 4.2.2 → 4.2.3
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.
|
@@ -29,7 +29,7 @@ import PhoneInput from '@/components/Common/PhoneInput.vue'
|
|
|
29
29
|
import { z } from 'zod'
|
|
30
30
|
import {
|
|
31
31
|
VALID_PHONE_NUMBER_REGEX,
|
|
32
|
-
|
|
32
|
+
isValidUrl,
|
|
33
33
|
} from '@dev.smartpricing/message-composer-utils/utils'
|
|
34
34
|
|
|
35
35
|
defineOptions({
|
|
@@ -186,7 +186,7 @@ const phoneButtonSchema = z.object({
|
|
|
186
186
|
})
|
|
187
187
|
|
|
188
188
|
const linkButtonSchema = z.object({
|
|
189
|
-
url: z.string().
|
|
189
|
+
url: z.string().refine(isValidUrl, { message: t('editor.validation.error.urlInvalid') }),
|
|
190
190
|
})
|
|
191
191
|
|
|
192
192
|
// Watch for button changes to update enabled state
|
|
@@ -8,7 +8,7 @@ import PhoneInput from '~/components/Common/PhoneInput.vue'
|
|
|
8
8
|
import { z } from 'zod'
|
|
9
9
|
import {
|
|
10
10
|
VALID_PHONE_NUMBER_REGEX,
|
|
11
|
-
|
|
11
|
+
isValidUrl,
|
|
12
12
|
} from '@dev.smartpricing/message-composer-utils/utils'
|
|
13
13
|
|
|
14
14
|
defineOptions({
|
|
@@ -49,7 +49,7 @@ const phoneButtonSchema = z.object({
|
|
|
49
49
|
})
|
|
50
50
|
|
|
51
51
|
const linkButtonSchema = z.object({
|
|
52
|
-
url: z.string().
|
|
52
|
+
url: z.string().refine(isValidUrl, { message: t('editor.validation.error.urlInvalid') }),
|
|
53
53
|
})
|
|
54
54
|
</script>
|
|
55
55
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev.smartpricing/message-composer-layer",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"vue-router": "^5.0.7",
|
|
37
37
|
"vue3-emoji-picker": "^1.1.8",
|
|
38
38
|
"zod": "^4.4.3",
|
|
39
|
-
"@dev.smartpricing/message-composer-utils": "4.2.
|
|
39
|
+
"@dev.smartpricing/message-composer-utils": "4.2.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@nuxt/eslint": "^1.15.2",
|