@form-observer/vue 0.0.0-experimental-2 → 0.0.0-experimental-4
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/README.md +2 -2
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ npm install @form-observer/vue
|
|
|
27
27
|
|
|
28
28
|
```vue
|
|
29
29
|
<template>
|
|
30
|
-
<form id="example" :ref="autoObserve()">
|
|
30
|
+
<form id="example" :ref="autoObserve()" @submit="handleSubmit">
|
|
31
31
|
<h1>Feedback Form</h1>
|
|
32
32
|
|
|
33
33
|
<!-- The browser's default error messages for `#name` will be accessibly displayed inside `#name-error` -->
|
|
@@ -42,7 +42,7 @@ npm install @form-observer/vue
|
|
|
42
42
|
v-bind="
|
|
43
43
|
configure('email', {
|
|
44
44
|
type: { value: 'email', message: 'Email is invalid' },
|
|
45
|
-
required: { message: 'You MUST allow us to stalk you!' },
|
|
45
|
+
required: { value: true, message: 'You MUST allow us to stalk you!' },
|
|
46
46
|
})
|
|
47
47
|
"
|
|
48
48
|
aria-describedby="email-error"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@form-observer/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-experimental-
|
|
4
|
+
"version": "0.0.0-experimental-4",
|
|
5
5
|
"description": "Convenience functions for the `@form-observer/core` package, designed for Vue apps",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"default": "./createFormValidityObserver.js"
|
|
22
22
|
},
|
|
23
23
|
"./types": {
|
|
24
|
+
"require": {
|
|
25
|
+
"types": "./types.d.cts"
|
|
26
|
+
},
|
|
24
27
|
"types": "./types.d.ts"
|
|
25
28
|
}
|
|
26
29
|
},
|