@usefillo/react 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 -1
- package/dist/index.js +413 -132
- package/dist/styles.css +214 -50
- package/dist/styles.unlayered.css +214 -50
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ComponentType, ReactNode, ReactElement } from 'react';
|
|
3
3
|
import * as _usefillo_core from '@usefillo/core';
|
|
4
|
-
import { FormSchema, FilloClient, ResponseData, FieldValue, FormPage, Block, FormStatus, FieldKind, Field, CustomField, FormTheme, FilloAppearance, FilloRendererStrings, FilloRespondent, ChallengeConfig, FilloError, CodeForm, FormSettings, Condition, TextField, PhoneField, NumberField, ChoiceField, SelectOption, CheckboxField, RatingField, LinearScaleField, RankingField, SignatureField, DateField, FileUploadField as FileUploadField$1, HiddenField } from '@usefillo/core';
|
|
4
|
+
import { FormSchema, FilloClient, ResponseData, FieldValue, FormPage, Block, FormStatus, FieldKind, Field, CustomField, FormTheme, FilloAppearance, FilloRendererStrings, FilloRespondent, ChallengeConfig, FilloError, CodeForm, FormSettings, Condition, TextField, PhoneField, NumberField, ChoiceField, SelectOption, CheckboxField, RatingField, LinearScaleField, RankingField, SignatureField, DateField, FileUploadField as FileUploadField$1, HiddenField, CalculatedField } from '@usefillo/core';
|
|
5
5
|
export { CodeForm, Field, FieldValue, FileValue, FilloAppearance, FilloClient, FilloError, FilloJsxError, FilloRendererStrings, FilloSlot, FilloStrings, FormSchema, FormStatus, FormTheme, ProvisionWorkspaceResult, PublishedForm, ResponseData, SlotState, createClient, defineForm, provisionWorkspace, when } from '@usefillo/core';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -143,6 +143,12 @@ interface FilloFormBaseProps {
|
|
|
143
143
|
* hosted page does this). The SECRET key stays server-side — never passed here.
|
|
144
144
|
*/
|
|
145
145
|
challenge?: ChallengeConfig;
|
|
146
|
+
/**
|
|
147
|
+
* Server-owned per-file ceiling when an inline schema skips the normal form
|
|
148
|
+
* fetch. Fillo's hosted page uses this to preserve its server-rendered fast
|
|
149
|
+
* path; fetched and code-defined forms receive the value automatically.
|
|
150
|
+
*/
|
|
151
|
+
uploadFileSizeLimitMb?: number;
|
|
146
152
|
onChange?: (data: ResponseData) => void;
|
|
147
153
|
onSubmitted?: (responseId: string | undefined, data: ResponseData) => void;
|
|
148
154
|
/** Observe load and code-form sync failures (otherwise only logged). */
|
|
@@ -263,6 +269,7 @@ declare const Fillo: {
|
|
|
263
269
|
readonly Date: Inert<WithVisible<DateField>>;
|
|
264
270
|
readonly FileUpload: Inert<WithVisible<FileUploadField$1>>;
|
|
265
271
|
readonly Hidden: Inert<WithVisible<HiddenField>>;
|
|
272
|
+
readonly Calculated: Inert<WithVisible<CalculatedField>>;
|
|
266
273
|
readonly Custom: Inert<WithVisible<CustomField>>;
|
|
267
274
|
readonly Heading: Inert<ContentProps>;
|
|
268
275
|
readonly Paragraph: Inert<ContentProps>;
|