@usefillo/core 0.7.0 → 0.9.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 +3 -3
- package/dist/index.d.ts +360 -36
- package/dist/index.js +715 -121
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ The framework-agnostic core of [Fillo](https://fillo.so) — forms that render *
|
|
|
4
4
|
|
|
5
5
|
### 📚 Full documentation → **[fillo.so/docs](https://fillo.so/docs)**
|
|
6
6
|
|
|
7
|
-
This package holds the shared foundation: the form schema, validation, the conditional-logic engine, response prefill/piping, and a JS client with
|
|
7
|
+
This package holds the shared foundation: the form schema, validation, the conditional-logic engine, response prefill/piping, and a JS client for provider-aware browser-direct uploads, with resume support where the storage provider offers it. It has **zero framework dependencies**.
|
|
8
8
|
|
|
9
9
|
Most apps don't install this directly — you install a renderer (**[@usefillo/react](https://www.npmjs.com/package/@usefillo/react)** or **[@usefillo/dom](https://www.npmjs.com/package/@usefillo/dom)**), which re-exports everything here you need for embedding. Reach for `@usefillo/core` when you're building your own renderer or working with forms on the server.
|
|
10
10
|
|
|
@@ -15,7 +15,7 @@ npm i @usefillo/core
|
|
|
15
15
|
```ts
|
|
16
16
|
import { createClient, defineForm, validateResponse, visibleBlocks } from "@usefillo/core";
|
|
17
17
|
|
|
18
|
-
const client = createClient({ key: "
|
|
18
|
+
const client = createClient({ key: "pk_…" }); // for syncing code-defined forms
|
|
19
19
|
|
|
20
20
|
const form = defineForm({
|
|
21
21
|
id: "cust-feedback",
|
|
@@ -39,7 +39,7 @@ Key exports: `createClient` / `FilloClient`, `defineForm`, `validateResponse`, `
|
|
|
39
39
|
|
|
40
40
|
MIT licensed.
|
|
41
41
|
|
|
42
|
-
##
|
|
42
|
+
## Additional authoring surface
|
|
43
43
|
|
|
44
44
|
Framework-neutral pieces the renderers share: `defineForm` / `schemaFromJsx`
|
|
45
45
|
(the JSX compiler), `when()` condition builder, the `FilloAppearance` styling
|