@bigbinary/neeto-form-frontend 1.0.23 → 1.0.25
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/README.md +31 -0
- package/dist/index.cjs.js +793 -743
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +800 -752
- package/dist/index.js.map +1 -1
- package/index.d.ts +72 -0
- package/package.json +2 -1
package/index.d.ts
CHANGED
|
@@ -104,10 +104,82 @@ 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
|
+
required: boolean;
|
|
112
|
+
kind: string;
|
|
113
|
+
nodeId: string;
|
|
114
|
+
}
|
|
115
|
+
interface EmailProps {
|
|
116
|
+
name: string;
|
|
117
|
+
isRequired: boolean;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
interface DropdownProps {
|
|
121
|
+
item: Item;
|
|
122
|
+
name: string;
|
|
123
|
+
isRequired: boolean;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
interface ShortTextProps {
|
|
127
|
+
name: string;
|
|
128
|
+
isRequired: boolean;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
interface LongTextProps {
|
|
132
|
+
name: string;
|
|
133
|
+
isRequired: boolean;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
interface MultipleChoiceProps {
|
|
137
|
+
item: Item;
|
|
138
|
+
name: string;
|
|
139
|
+
isRequired: boolean;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface SingleChoiceProps {
|
|
143
|
+
item: Item;
|
|
144
|
+
name: string;
|
|
145
|
+
isRequired: boolean;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
interface PhoneProps {
|
|
149
|
+
name: string;
|
|
150
|
+
isRequired: boolean;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
interface RatingProps {
|
|
154
|
+
name: string;
|
|
155
|
+
isRequired: boolean;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface TermsProps {
|
|
159
|
+
name: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
interface StarRatingProps {
|
|
163
|
+
name: string;
|
|
164
|
+
isRequired: boolean;
|
|
165
|
+
}
|
|
166
|
+
|
|
107
167
|
export const BuildForm: React.FC<BuildFormProps>;
|
|
108
168
|
export const ExternalForm: React.FC<ExternalFormProps>;
|
|
109
169
|
export const Submission: React.FC<SubmissionProps>;
|
|
110
170
|
export const NeetoFormProvider: React.FC;
|
|
171
|
+
export const Fields: {
|
|
172
|
+
Email: React.FC<EmailProps>;
|
|
173
|
+
Dropdown: React.FC<DropdownProps>;
|
|
174
|
+
ShortText: React.FC<ShortTextProps>;
|
|
175
|
+
LongText: React.FC<LongTextProps>;
|
|
176
|
+
MultipleChoice: React.FC<MultipleChoiceProps>;
|
|
177
|
+
SingleChoice: React.FC<SingleChoiceProps>;
|
|
178
|
+
Phone: React.FC<PhoneProps>;
|
|
179
|
+
Rating: React.FC<RatingProps>;
|
|
180
|
+
Terms: React.FC<TermsProps>;
|
|
181
|
+
StarRating: React.FC<StarRatingProps>;
|
|
182
|
+
};
|
|
111
183
|
|
|
112
184
|
export const useBuildFormState: () => IBuildFormState;
|
|
113
185
|
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.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "Neeto Form Engine Frontend",
|
|
5
5
|
"author": "BigBinary",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"@bigbinary/neeto-commons-frontend": "^2.0.40",
|
|
37
37
|
"@bigbinary/neeto-editor": "1.20.0",
|
|
38
38
|
"@bigbinary/neeto-icons": "1.9.12",
|
|
39
|
+
"@bigbinary/neeto-molecules": "^1.0.19",
|
|
39
40
|
"@bigbinary/neetoui": "4.4.0",
|
|
40
41
|
"@honeybadger-io/js": "^5.1.1",
|
|
41
42
|
"@honeybadger-io/react": "^5.1.3",
|