@usefillo/dom 0.10.0 → 0.11.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/dist/index.d.ts +8 -2
- package/dist/index.js +761 -174
- package/dist/standalone.global.js +1 -1
- package/dist/styles.css +233 -52
- package/dist/styles.unlayered.css +233 -52
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field, FieldValue, FormSchema, FilloClient, ResponseData, FormStatus as FormStatus$1, FormPage, Block, FilloRespondent, CodeForm, FormTheme, FieldKind, FilloError, FormControllerOptions, FormController } from '@usefillo/core';
|
|
1
|
+
import { Field, FieldValue, FormSchema, FilloClient, ResponseData, FormStatus as FormStatus$1, FormPage, Block, FilloRespondent, CodeForm, FormTheme, ChallengeConfig, FieldKind, FilloError, FormControllerOptions, FormController } from '@usefillo/core';
|
|
2
2
|
export { CodeForm, Field, FieldKind, FieldValue, FileValue, FilloClient, FilloClientOptions, FilloError, FormController, FormControllerOptions, FormControllerState, FormSchema, FormTheme, ProvisionWorkspaceResult, ResponseData, createClient, defineForm, provisionWorkspace } from '@usefillo/core';
|
|
3
3
|
|
|
4
4
|
type FormStatus = FormStatus$1 | "loading" | "closed";
|
|
@@ -34,7 +34,6 @@ interface FieldRenderContext {
|
|
|
34
34
|
uploadFiles?: (field: Extract<Field, {
|
|
35
35
|
kind: "file_upload";
|
|
36
36
|
}>, files: File[]) => Promise<void>;
|
|
37
|
-
uploadProgress?: Map<string, number>;
|
|
38
37
|
}
|
|
39
38
|
interface FilloDomFieldIds {
|
|
40
39
|
inputId: string;
|
|
@@ -56,6 +55,13 @@ interface RenderFormOptions {
|
|
|
56
55
|
* unverified claim. Late-bind with setRespondent() once a session loads.
|
|
57
56
|
*/
|
|
58
57
|
respondent?: FilloRespondent;
|
|
58
|
+
/**
|
|
59
|
+
* Human-verification challenge config (public site key + provider). Normally
|
|
60
|
+
* read from the form fetch/sync automatically; pass it explicitly only when
|
|
61
|
+
* rendering an inline `form` schema and still wanting the widget (Fillo's
|
|
62
|
+
* hosted page does this). Wins over anything the server delivers.
|
|
63
|
+
*/
|
|
64
|
+
challenge?: ChallengeConfig;
|
|
59
65
|
className?: string;
|
|
60
66
|
components?: Partial<Record<FieldKind, FieldRenderer>>;
|
|
61
67
|
customComponents?: Record<string, FieldRenderer>;
|