@webflow/designer-extension-typings 2.0.10 → 2.0.11
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/elements-generated.d.ts +18 -2
- package/elements.d.ts +12 -0
- package/package.json +1 -1
package/elements-generated.d.ts
CHANGED
|
@@ -2663,6 +2663,8 @@ interface FormCheckboxInputElement
|
|
|
2663
2663
|
readonly id: FullElementId;
|
|
2664
2664
|
readonly type: 'FormCheckboxInput';
|
|
2665
2665
|
readonly plugin: 'Form';
|
|
2666
|
+
getRequired(): Promise<boolean>;
|
|
2667
|
+
setRequired(value: boolean): Promise<null>;
|
|
2666
2668
|
}
|
|
2667
2669
|
|
|
2668
2670
|
interface FormCheckboxWrapperElement
|
|
@@ -2702,8 +2704,10 @@ interface FormFormElement
|
|
|
2702
2704
|
readonly id: FullElementId;
|
|
2703
2705
|
readonly type: 'FormForm';
|
|
2704
2706
|
readonly plugin: 'Form';
|
|
2705
|
-
getName(): Promise<
|
|
2707
|
+
getName(): Promise<string>;
|
|
2706
2708
|
setName(name: string): Promise<null>;
|
|
2709
|
+
getSettings(): Promise<FormSettings>;
|
|
2710
|
+
setSettings(settings: Partial<FormSettings>): Promise<null>;
|
|
2707
2711
|
}
|
|
2708
2712
|
|
|
2709
2713
|
interface FormInlineLabelElement
|
|
@@ -2730,6 +2734,8 @@ interface FormRadioInputElement
|
|
|
2730
2734
|
readonly id: FullElementId;
|
|
2731
2735
|
readonly type: 'FormRadioInput';
|
|
2732
2736
|
readonly plugin: 'Form';
|
|
2737
|
+
getRequired(): Promise<boolean>;
|
|
2738
|
+
setRequired(value: boolean): Promise<null>;
|
|
2733
2739
|
}
|
|
2734
2740
|
|
|
2735
2741
|
interface FormRadioWrapperElement
|
|
@@ -2756,6 +2762,8 @@ interface FormSelectElement
|
|
|
2756
2762
|
readonly id: FullElementId;
|
|
2757
2763
|
readonly type: 'FormSelect';
|
|
2758
2764
|
readonly plugin: 'Form';
|
|
2765
|
+
getRequired(): Promise<boolean>;
|
|
2766
|
+
setRequired(value: boolean): Promise<null>;
|
|
2759
2767
|
}
|
|
2760
2768
|
|
|
2761
2769
|
interface FormSuccessMessageElement
|
|
@@ -2782,6 +2790,8 @@ interface FormTextareaElement
|
|
|
2782
2790
|
readonly id: FullElementId;
|
|
2783
2791
|
readonly type: 'FormTextarea';
|
|
2784
2792
|
readonly plugin: 'Form';
|
|
2793
|
+
getRequired(): Promise<boolean>;
|
|
2794
|
+
setRequired(value: boolean): Promise<null>;
|
|
2785
2795
|
}
|
|
2786
2796
|
|
|
2787
2797
|
interface FormTextInputElement
|
|
@@ -2795,6 +2805,8 @@ interface FormTextInputElement
|
|
|
2795
2805
|
readonly id: FullElementId;
|
|
2796
2806
|
readonly type: 'FormTextInput';
|
|
2797
2807
|
readonly plugin: 'Form';
|
|
2808
|
+
getRequired(): Promise<boolean>;
|
|
2809
|
+
setRequired(value: boolean): Promise<null>;
|
|
2798
2810
|
}
|
|
2799
2811
|
|
|
2800
2812
|
interface FormWrapperElement
|
|
@@ -2808,8 +2820,10 @@ interface FormWrapperElement
|
|
|
2808
2820
|
readonly id: FullElementId;
|
|
2809
2821
|
readonly type: 'FormWrapper';
|
|
2810
2822
|
readonly plugin: 'Form';
|
|
2811
|
-
getName(): Promise<
|
|
2823
|
+
getName(): Promise<string>;
|
|
2812
2824
|
setName(name: string): Promise<null>;
|
|
2825
|
+
getSettings(): Promise<FormSettings>;
|
|
2826
|
+
setSettings(settings: Partial<FormSettings>): Promise<null>;
|
|
2813
2827
|
}
|
|
2814
2828
|
|
|
2815
2829
|
interface FormReCaptchaElement
|
|
@@ -2836,6 +2850,8 @@ interface FormFileUploadWrapperElement
|
|
|
2836
2850
|
readonly id: FullElementId;
|
|
2837
2851
|
readonly type: 'FormFileUploadWrapper';
|
|
2838
2852
|
readonly plugin: 'Form';
|
|
2853
|
+
getRequired(): Promise<boolean>;
|
|
2854
|
+
setRequired(value: boolean): Promise<null>;
|
|
2839
2855
|
}
|
|
2840
2856
|
|
|
2841
2857
|
interface FormFileUploadDefaultElement
|
package/elements.d.ts
CHANGED
|
@@ -8,3 +8,15 @@ type NamedValue = {
|
|
|
8
8
|
name: string;
|
|
9
9
|
value: string;
|
|
10
10
|
};
|
|
11
|
+
|
|
12
|
+
type FormState = 'normal' | 'success' | 'error';
|
|
13
|
+
|
|
14
|
+
type FormMethod = 'get' | 'post';
|
|
15
|
+
|
|
16
|
+
type FormSettings = {
|
|
17
|
+
state: FormState;
|
|
18
|
+
name: string;
|
|
19
|
+
redirect: string;
|
|
20
|
+
action: string;
|
|
21
|
+
method: FormMethod;
|
|
22
|
+
};
|