@feathery/react 2.4.22 → 2.4.23

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 CHANGED
@@ -7,7 +7,37 @@
7
7
  Use this library to embed and extend Feathery forms in your codebase
8
8
 
9
9
  ## Documentation
10
+
10
11
  For details on how to use this library, check out our [documentation](https://docs.feathery.io/develop/react).
11
12
 
13
+ ## FAQ
14
+
15
+ ### Q: How do I use the Feathery React library with Vite?
16
+
17
+ **A:** Remember to add a `global` definition in your Vite config. For example, the following config could be used:
18
+
19
+ ```aiignore
20
+ import { defineConfig } from "vite";
21
+ import react from "@vitejs/plugin-react";
22
+
23
+ export default defineConfig({
24
+ resolve: {
25
+ alias: {},
26
+ },
27
+ plugins: [react()],
28
+ server: {
29
+ port: 3000,
30
+ },
31
+ preview: {
32
+ port: 3000,
33
+ },
34
+ define: {
35
+ // By default, Vite doesn't include shims for NodeJS
36
+ global: "window",
37
+ },
38
+ });
39
+ ```
40
+
12
41
  ## License
42
+
13
43
  [BSL](https://github.com/feathery-org/feathery-react/blob/master/LICENSE)
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/PhoneField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AA8B1E,iBAAS,UAAU,CAAC,EAClB,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,YAAiB,EACjB,QAAgB,EAChB,QAAgB,EAChB,WAAkB,EAClB,YAAY,EACZ,QAAQ,EACR,UAAqB,EACrB,MAAiB,EACjB,WAAW,EACX,WAAW,EACX,OAAO,EACP,QAAQ,EACT,EAAE,GAAG,oDAsXL;;AAED,wBAAgC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/PhoneField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AA8B1E,iBAAS,UAAU,CAAC,EAClB,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,YAAiB,EACjB,QAAgB,EAChB,QAAgB,EAChB,WAAkB,EAClB,YAAY,EACZ,QAAQ,EACR,UAAqB,EACrB,MAAiB,EACjB,WAAW,EACX,WAAW,EACX,OAAO,EACP,QAAQ,EACT,EAAE,GAAG,oDA8XL;;AAED,wBAAgC"}