@bigbinary/neeto-form-frontend 1.0.11 → 1.0.12
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 +23 -5
- package/dist/index.js +56419 -26380
- package/dist/main.css +2 -1620
- package/index.d.ts +2 -0
- package/package.json +62 -59
package/README.md
CHANGED
|
@@ -102,6 +102,8 @@ import { ExternalForm } from "@bigbinary/neeto-form-frontend";
|
|
|
102
102
|
| `clearValuesOnSubmit` | `boolean` | To clear local storage values on submit |
|
|
103
103
|
| `clearValuesOnReset` | `boolean` | To clear local storage values on reset |
|
|
104
104
|
| `formDomProps` | `object` | To set props for form element |
|
|
105
|
+
| `initialValues` | `object` | To set initial values for form |
|
|
106
|
+
| `onChange` | `function` | Callback for form field values change |
|
|
105
107
|
|
|
106
108
|
`Submission` component is used to render a form result.
|
|
107
109
|
|
|
@@ -182,11 +184,27 @@ Then run the below command on the host application root directory
|
|
|
182
184
|
yalc add @bigbinary/neeto-form-frontend
|
|
183
185
|
```
|
|
184
186
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
The
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
# Building and releasing.
|
|
188
|
+
|
|
189
|
+
The `@bigbinary/neeto-form-frontend` package gets published to NPM when we merge
|
|
190
|
+
a PR with `patch`, `minor` or `major` label to the `main` branch. The `patch`
|
|
191
|
+
label is used for bug fixes, `minor` label is used for new features and `major`
|
|
192
|
+
label is used for breaking changes. You can checkout the
|
|
193
|
+
`Create and publish releases` workflow in GitHub Actions to get a live update.
|
|
194
|
+
|
|
195
|
+
In case if you missed to add the label, you can manually publish the package.
|
|
196
|
+
For that first you need to create a PR to update the version number in the
|
|
197
|
+
`package.json` file and merge it to the `main` branch. After merging the PR, you
|
|
198
|
+
need to create a
|
|
199
|
+
[new github release](https://github.com/bigbinary/neeto-form-frontend/releases/new)
|
|
200
|
+
from main branch. Whenever a new release is created with a new version number,
|
|
201
|
+
the github actions will automatically publish the built package to npm. You can
|
|
202
|
+
checkout the `Publish to npm` workflow in GitHub Actions to get a live update.
|
|
203
|
+
|
|
204
|
+
Please note that before publishing the package, you need to verify the
|
|
205
|
+
functionality in some of the neeto web-apps locally using `yalc` package
|
|
206
|
+
manager. The usage of yalc is explained in this video:
|
|
207
|
+
https://youtu.be/QBiYGP0Rhe0
|
|
190
208
|
|
|
191
209
|
## Used in
|
|
192
210
|
|