@usefillo/core 0.6.2 → 0.8.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 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 a resumable upload protocol. It has **zero framework dependencies**.
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: "pk_live_…" }); // for syncing code-defined forms
18
+ const client = createClient({ key: "pk_…" }); // for syncing code-defined forms
19
19
 
20
20
  const form = defineForm({
21
21
  id: "cust-feedback",
@@ -28,7 +28,7 @@ const form = defineForm({
28
28
 
29
29
  Published renderer embeds can fetch by `formId` without a key. Use a client object for custom API origins, uploads, or submissions from your own renderer; add a publishable key only when syncing `defineForm()` schemas from code.
30
30
 
31
- Schema settings include `submitMode: "auto"` for one-tap forms that should submit after a complete discrete answer instead of rendering the first submit button, and `submissionLimit: "once_per_visitor"` for browser-scoped duplicate prevention. Themes include `colorScheme: "light" | "dark" | "auto"` for renderer defaults.
31
+ Schema settings include `submitMode: "auto"` for one-tap forms that should submit after a complete discrete answer instead of rendering the first submit button, and `responseLimit: { by: "browser", onRepeat: "keep" }` for browser-scoped duplicate prevention. Themes include `colorScheme: "light" | "dark" | "auto"` for renderer defaults.
32
32
 
33
33
  Key exports: `createClient` / `FilloClient`, `defineForm`, `validateResponse`, `validateField`, `visibleBlocks`, and the schema types (`FormSchema`, `Field`, `FieldKind`, `FormTheme`, `ResponseData`, …).
34
34
 
@@ -39,7 +39,7 @@ Key exports: `createClient` / `FilloClient`, `defineForm`, `validateResponse`, `
39
39
 
40
40
  MIT licensed.
41
41
 
42
- ## 0.6.0 surface
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