@bigbinary/neeto-form-frontend 1.0.24 → 1.0.26

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/index.d.ts CHANGED
@@ -104,10 +104,81 @@ interface FormHookOptions extends UseQueryOptions {
104
104
  preview?: boolean
105
105
  }
106
106
 
107
+ interface Item {
108
+ label: string;
109
+ isRequired: boolean;
110
+ optionsAttributes: KeyValuePair[];
111
+ kind: string;
112
+ nodeId: string;
113
+ }
114
+ interface EmailProps {
115
+ name: string;
116
+ isRequired: boolean;
117
+ }
118
+
119
+ interface DropdownProps {
120
+ item: Item;
121
+ name: string;
122
+ isRequired: boolean;
123
+ }
124
+
125
+ interface ShortTextProps {
126
+ name: string;
127
+ isRequired: boolean;
128
+ }
129
+
130
+ interface LongTextProps {
131
+ name: string;
132
+ isRequired: boolean;
133
+ }
134
+
135
+ interface MultipleChoiceProps {
136
+ item: Item;
137
+ name: string;
138
+ isRequired: boolean;
139
+ }
140
+
141
+ interface SingleChoiceProps {
142
+ item: Item;
143
+ name: string;
144
+ isRequired: boolean;
145
+ }
146
+
147
+ interface PhoneProps {
148
+ name: string;
149
+ isRequired: boolean;
150
+ }
151
+
152
+ interface RatingProps {
153
+ name: string;
154
+ isRequired: boolean;
155
+ }
156
+
157
+ interface TermsProps {
158
+ name: string;
159
+ }
160
+
161
+ interface StarRatingProps {
162
+ name: string;
163
+ isRequired: boolean;
164
+ }
165
+
107
166
  export const BuildForm: React.FC<BuildFormProps>;
108
167
  export const ExternalForm: React.FC<ExternalFormProps>;
109
168
  export const Submission: React.FC<SubmissionProps>;
110
169
  export const NeetoFormProvider: React.FC;
170
+ export const Fields: {
171
+ Email: React.FC<EmailProps>;
172
+ Dropdown: React.FC<DropdownProps>;
173
+ ShortText: React.FC<ShortTextProps>;
174
+ LongText: React.FC<LongTextProps>;
175
+ MultipleChoice: React.FC<MultipleChoiceProps>;
176
+ SingleChoice: React.FC<SingleChoiceProps>;
177
+ Phone: React.FC<PhoneProps>;
178
+ Rating: React.FC<RatingProps>;
179
+ Terms: React.FC<TermsProps>;
180
+ StarRating: React.FC<StarRatingProps>;
181
+ };
111
182
 
112
183
  export const useBuildFormState: () => IBuildFormState;
113
184
  export const useFormSubmission: (args: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-form-frontend",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "Neeto Form Engine Frontend",
5
5
  "author": "BigBinary",
6
6
  "license": "MIT",