@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.
Files changed (49) hide show
  1. package/README.md +46 -0
  2. package/cjs/dist/react/Form.d.ts +802 -0
  3. package/cjs/dist/react/Form.js +776 -0
  4. package/cjs/dist/react/Phone.d.ts +47 -0
  5. package/cjs/dist/react/Phone.js +56 -0
  6. package/cjs/dist/react/constants/calling-country-codes.d.ts +242 -0
  7. package/cjs/dist/react/constants/calling-country-codes.js +242 -0
  8. package/cjs/dist/react/context/FieldContext.d.ts +12 -0
  9. package/cjs/dist/react/context/FieldContext.js +16 -0
  10. package/cjs/dist/react/context/FieldLayoutContext.d.ts +12 -0
  11. package/cjs/dist/react/context/FieldLayoutContext.js +21 -0
  12. package/cjs/dist/react/core/Form.d.ts +342 -0
  13. package/cjs/dist/react/core/Form.js +278 -0
  14. package/cjs/dist/react/index.d.ts +3 -0
  15. package/cjs/dist/react/index.js +42 -0
  16. package/cjs/dist/react/types.d.ts +3 -0
  17. package/cjs/dist/react/types.js +2 -0
  18. package/cjs/dist/react/utils.d.ts +13 -0
  19. package/cjs/dist/react/utils.js +20 -0
  20. package/cjs/dist/services/form-service.d.ts +114 -0
  21. package/cjs/dist/services/form-service.js +152 -0
  22. package/cjs/dist/services/index.d.ts +1 -0
  23. package/cjs/dist/services/index.js +17 -0
  24. package/cjs/package.json +3 -0
  25. package/dist/react/Form.d.ts +802 -0
  26. package/dist/react/Form.js +740 -0
  27. package/dist/react/Phone.d.ts +47 -0
  28. package/dist/react/Phone.js +50 -0
  29. package/dist/react/constants/calling-country-codes.d.ts +242 -0
  30. package/dist/react/constants/calling-country-codes.js +241 -0
  31. package/dist/react/context/FieldContext.d.ts +12 -0
  32. package/dist/react/context/FieldContext.js +9 -0
  33. package/dist/react/context/FieldLayoutContext.d.ts +12 -0
  34. package/dist/react/context/FieldLayoutContext.js +13 -0
  35. package/dist/react/core/Form.d.ts +342 -0
  36. package/dist/react/core/Form.js +269 -0
  37. package/dist/react/index.d.ts +3 -0
  38. package/dist/react/index.js +3 -0
  39. package/dist/react/types.d.ts +3 -0
  40. package/dist/react/types.js +1 -0
  41. package/dist/react/utils.d.ts +13 -0
  42. package/dist/react/utils.js +17 -0
  43. package/dist/services/form-service.d.ts +114 -0
  44. package/dist/services/form-service.js +148 -0
  45. package/dist/services/index.d.ts +1 -0
  46. package/dist/services/index.js +1 -0
  47. package/package.json +62 -0
  48. package/react/package.json +4 -0
  49. 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
+