@wix/headless-forms 0.0.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/README.md +46 -0
- package/cjs/dist/react/Form.d.ts +802 -0
- package/cjs/dist/react/Form.js +776 -0
- package/cjs/dist/react/Phone.d.ts +47 -0
- package/cjs/dist/react/Phone.js +56 -0
- package/cjs/dist/react/constants/calling-country-codes.d.ts +242 -0
- package/cjs/dist/react/constants/calling-country-codes.js +242 -0
- package/cjs/dist/react/context/FieldContext.d.ts +12 -0
- package/cjs/dist/react/context/FieldContext.js +16 -0
- package/cjs/dist/react/context/FieldLayoutContext.d.ts +12 -0
- package/cjs/dist/react/context/FieldLayoutContext.js +21 -0
- package/cjs/dist/react/core/Form.d.ts +342 -0
- package/cjs/dist/react/core/Form.js +278 -0
- package/cjs/dist/react/index.d.ts +3 -0
- package/cjs/dist/react/index.js +42 -0
- package/cjs/dist/react/types.d.ts +3 -0
- package/cjs/dist/react/types.js +2 -0
- package/cjs/dist/react/utils.d.ts +13 -0
- package/cjs/dist/react/utils.js +20 -0
- package/cjs/dist/services/form-service.d.ts +114 -0
- package/cjs/dist/services/form-service.js +152 -0
- package/cjs/dist/services/index.d.ts +1 -0
- package/cjs/dist/services/index.js +17 -0
- package/cjs/package.json +3 -0
- package/dist/react/Form.d.ts +802 -0
- package/dist/react/Form.js +740 -0
- package/dist/react/Phone.d.ts +47 -0
- package/dist/react/Phone.js +50 -0
- package/dist/react/constants/calling-country-codes.d.ts +242 -0
- package/dist/react/constants/calling-country-codes.js +241 -0
- package/dist/react/context/FieldContext.d.ts +12 -0
- package/dist/react/context/FieldContext.js +9 -0
- package/dist/react/context/FieldLayoutContext.d.ts +12 -0
- package/dist/react/context/FieldLayoutContext.js +13 -0
- package/dist/react/core/Form.d.ts +342 -0
- package/dist/react/core/Form.js +269 -0
- package/dist/react/index.d.ts +3 -0
- package/dist/react/index.js +3 -0
- package/dist/react/types.d.ts +3 -0
- package/dist/react/types.js +1 -0
- package/dist/react/utils.d.ts +13 -0
- package/dist/react/utils.js +17 -0
- package/dist/services/form-service.d.ts +114 -0
- package/dist/services/form-service.js +148 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +1 -0
- package/package.json +62 -0
- package/react/package.json +4 -0
- package/services/package.json +4 -0
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @wix/headless-forms
|
|
2
|
+
|
|
3
|
+
Headless React components for rendering and managing forms. It follows the compound component pattern and integrates with Wix Forms services.
|
|
4
|
+
|
|
5
|
+
`@wix/headless-forms/react` and `@wix/headless-forms/services` are exported through forms public SDK `@wix/forms`.
|
|
6
|
+
|
|
7
|
+
## Development Guide
|
|
8
|
+
|
|
9
|
+
1. **Install Dependencies**
|
|
10
|
+
```bash
|
|
11
|
+
yarn install
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
2. **Start Development**
|
|
15
|
+
```bash
|
|
16
|
+
# Build in watch mode
|
|
17
|
+
yarn build:watch
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
3. **Test Changes Locally**
|
|
21
|
+
Run `examples/astro-forms-demo` to test changes locally.
|
|
22
|
+
|
|
23
|
+
## Documentation
|
|
24
|
+
|
|
25
|
+
All changes should be documented using `jsdoc` and updating `docs/api/FORM_INTERFACE.md`.
|
|
26
|
+
|
|
27
|
+
## Publishing
|
|
28
|
+
|
|
29
|
+
1. **Update Version**
|
|
30
|
+
- Update version in `package.json`
|
|
31
|
+
- Create PR and merge to main branch
|
|
32
|
+
|
|
33
|
+
2. **Publish to NPM**
|
|
34
|
+
- Go to GitHub Actions
|
|
35
|
+
- Run "Publish Package" workflow
|
|
36
|
+
- Enter package name: `forms`
|
|
37
|
+
- Monitor the workflow for successful completion
|
|
38
|
+
|
|
39
|
+
3. **Update SDK Exports**
|
|
40
|
+
- Go to Form app in Wix Dev Center
|
|
41
|
+
- Update SDK exports extensions:
|
|
42
|
+
- "Forms SDK Exports Components"
|
|
43
|
+
- "Forms SDK Exports Services"
|
|
44
|
+
- Release new app version
|
|
45
|
+
- Check if update has been commited to `auto-sdk-packages` repo (might take around 20mins)
|
|
46
|
+
|