@factorialco/f0-react 1.280.0 → 1.282.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/experimental.d.ts +259 -39
- package/dist/experimental.js +11895 -10783
- package/dist/f0.d.ts +83 -32
- package/dist/f0.js +1008 -1074
- package/dist/{hooks-WCchcl_J.js → hooks-DKxMU3Et.js} +21225 -21068
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -920,13 +920,7 @@ declare interface CheckboxProps extends DataAttributes_2 {
|
|
|
920
920
|
name?: string;
|
|
921
921
|
}
|
|
922
922
|
|
|
923
|
-
declare type ChildrenResponse<R extends RecordType> = BaseResponse<R> | R[] |
|
|
924
|
-
records: R[] & {
|
|
925
|
-
type?: ChildrenResponseType;
|
|
926
|
-
};
|
|
927
|
-
};
|
|
928
|
-
|
|
929
|
-
declare type ChildrenResponseType = "basic" | "detailed";
|
|
923
|
+
declare type ChildrenResponse<R extends RecordType> = BaseResponse<R> | R[] | NestedResponseWithType<R>;
|
|
930
924
|
|
|
931
925
|
declare type ChipProps = BaseChipProps & ChipVariants & {
|
|
932
926
|
variant?: "default" | "selected";
|
|
@@ -1754,6 +1748,56 @@ export declare const defaultTranslations: {
|
|
|
1754
1748
|
readonly greaterThan: "It should be greater than {{min}}";
|
|
1755
1749
|
readonly lessThan: "It should be less than {{max}}";
|
|
1756
1750
|
};
|
|
1751
|
+
readonly coCreationForm: {
|
|
1752
|
+
readonly actions: {
|
|
1753
|
+
readonly actions: "Actions";
|
|
1754
|
+
readonly duplicateQuestion: "Duplicate question";
|
|
1755
|
+
readonly deleteQuestion: "Delete question";
|
|
1756
|
+
readonly duplicateSection: "Duplicate section";
|
|
1757
|
+
readonly deleteSection: "Delete section";
|
|
1758
|
+
};
|
|
1759
|
+
readonly questionTypes: {
|
|
1760
|
+
readonly section: "Section";
|
|
1761
|
+
readonly rating: "Rating";
|
|
1762
|
+
readonly multipleChoice: "Multiple choice";
|
|
1763
|
+
readonly singleChoice: "Single choice";
|
|
1764
|
+
readonly text: "Text";
|
|
1765
|
+
readonly longText: "Long text";
|
|
1766
|
+
readonly numeric: "Numeric";
|
|
1767
|
+
readonly link: "Link";
|
|
1768
|
+
readonly date: "Date";
|
|
1769
|
+
};
|
|
1770
|
+
readonly selectQuestion: {
|
|
1771
|
+
readonly addOption: "Add option";
|
|
1772
|
+
readonly newOption: "New option {{number}}";
|
|
1773
|
+
readonly markAsCorrect: "Mark as correct";
|
|
1774
|
+
readonly remove: "Remove";
|
|
1775
|
+
readonly correct: "Correct";
|
|
1776
|
+
readonly optionPlaceholder: "Type anything you want here...";
|
|
1777
|
+
};
|
|
1778
|
+
readonly answer: {
|
|
1779
|
+
readonly label: "Answer";
|
|
1780
|
+
readonly placeholder: "Respondent's answer";
|
|
1781
|
+
};
|
|
1782
|
+
readonly labels: {
|
|
1783
|
+
readonly endOfSection: "End of section";
|
|
1784
|
+
readonly title: "Title";
|
|
1785
|
+
readonly titlePlaceholder: "Question title";
|
|
1786
|
+
readonly description: "Description";
|
|
1787
|
+
readonly questionDescriptionPlaceholder: "Describe the question in a few words";
|
|
1788
|
+
readonly sectionDescriptionPlaceholder: "Describe the section in a few words";
|
|
1789
|
+
readonly required: "Required";
|
|
1790
|
+
readonly questionType: "Question type";
|
|
1791
|
+
readonly questionOptions: "Question options";
|
|
1792
|
+
readonly actions: "Actions";
|
|
1793
|
+
readonly sectionTitlePlaceholder: "Section title";
|
|
1794
|
+
};
|
|
1795
|
+
readonly defaults: {
|
|
1796
|
+
readonly newSection: "New Section";
|
|
1797
|
+
readonly newQuestion: "New Question";
|
|
1798
|
+
readonly newQuestionDescription: "New question description";
|
|
1799
|
+
};
|
|
1800
|
+
};
|
|
1757
1801
|
};
|
|
1758
1802
|
|
|
1759
1803
|
/**
|
|
@@ -3022,6 +3066,13 @@ declare type NestedKeyOf<T> = {
|
|
|
3022
3066
|
} ? `${K}` | `${K}-${NestedKeyOf<T[K]>}` : `${K}-${NestedKeyOf<T[K]>}` : K extends "DEFAULT" ? never : `${K}`;
|
|
3023
3067
|
}[keyof T & string];
|
|
3024
3068
|
|
|
3069
|
+
declare type NestedResponseWithType<R extends RecordType> = {
|
|
3070
|
+
records: R[];
|
|
3071
|
+
type?: NestedVariant;
|
|
3072
|
+
};
|
|
3073
|
+
|
|
3074
|
+
declare type NestedVariant = "basic" | "detailed";
|
|
3075
|
+
|
|
3025
3076
|
export declare type NewColor = Extract<BaseColor, "viridian" | "malibu" | "yellow" | "purple" | "lilac" | "barbie" | "smoke" | "army" | "flubber" | "indigo" | "camel">;
|
|
3026
3077
|
|
|
3027
3078
|
export declare interface NextStepsProps {
|
|
@@ -4295,6 +4346,31 @@ declare global {
|
|
|
4295
4346
|
}
|
|
4296
4347
|
|
|
4297
4348
|
|
|
4349
|
+
declare module "gridstack" {
|
|
4350
|
+
interface GridStackWidget {
|
|
4351
|
+
id?: string;
|
|
4352
|
+
allowedSizes?: Array<{
|
|
4353
|
+
w: number;
|
|
4354
|
+
h: number;
|
|
4355
|
+
}>;
|
|
4356
|
+
renderFn?: () => React.ReactElement | null;
|
|
4357
|
+
meta?: Record<string, unknown>;
|
|
4358
|
+
}
|
|
4359
|
+
interface GridStackNode {
|
|
4360
|
+
id?: string;
|
|
4361
|
+
w?: number;
|
|
4362
|
+
h?: number;
|
|
4363
|
+
x?: number;
|
|
4364
|
+
y?: number;
|
|
4365
|
+
allowedSizes?: Array<{
|
|
4366
|
+
w: number;
|
|
4367
|
+
h: number;
|
|
4368
|
+
}>;
|
|
4369
|
+
renderFn?: () => React.ReactElement | null;
|
|
4370
|
+
}
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4373
|
+
|
|
4298
4374
|
declare module "@tiptap/core" {
|
|
4299
4375
|
interface Commands<ReturnType> {
|
|
4300
4376
|
aiBlock: {
|
|
@@ -4322,31 +4398,6 @@ declare module "@tiptap/core" {
|
|
|
4322
4398
|
}
|
|
4323
4399
|
|
|
4324
4400
|
|
|
4325
|
-
declare module "gridstack" {
|
|
4326
|
-
interface GridStackWidget {
|
|
4327
|
-
id?: string;
|
|
4328
|
-
allowedSizes?: Array<{
|
|
4329
|
-
w: number;
|
|
4330
|
-
h: number;
|
|
4331
|
-
}>;
|
|
4332
|
-
renderFn?: () => React.ReactElement | null;
|
|
4333
|
-
meta?: Record<string, unknown>;
|
|
4334
|
-
}
|
|
4335
|
-
interface GridStackNode {
|
|
4336
|
-
id?: string;
|
|
4337
|
-
w?: number;
|
|
4338
|
-
h?: number;
|
|
4339
|
-
x?: number;
|
|
4340
|
-
y?: number;
|
|
4341
|
-
allowedSizes?: Array<{
|
|
4342
|
-
w: number;
|
|
4343
|
-
h: number;
|
|
4344
|
-
}>;
|
|
4345
|
-
renderFn?: () => React.ReactElement | null;
|
|
4346
|
-
}
|
|
4347
|
-
}
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
4401
|
declare module "@tiptap/core" {
|
|
4351
4402
|
interface Commands<ReturnType> {
|
|
4352
4403
|
moodTracker: {
|