@protontech/autofill 0.0.35059265 → 0.0.35481761
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/features/feature.d.ts +13 -2
- package/features/feature.js +37 -15
- package/features/feature.spec.js +56 -7
- package/features/v1/abstract.field.d.ts +8377 -406
- package/features/v1/abstract.field.js +24 -24
- package/features/v1/abstract.form.d.ts +3428 -14
- package/features/v1/abstract.form.js +197 -197
- package/features/v1/field.email.d.ts +3421 -0
- package/features/v1/field.email.js +7 -7
- package/features/v1/field.otp.d.ts +71178 -0
- package/features/v1/field.otp.js +42 -42
- package/features/v1/field.password.d.ts +99166 -0
- package/features/v1/field.password.js +42 -42
- package/features/v1/field.username-hidden.d.ts +908 -0
- package/features/v1/field.username-hidden.js +7 -7
- package/features/v1/field.username.d.ts +42382 -0
- package/features/v1/field.username.js +11 -11
- package/features/v1/fields.sorted.gen.d.ts +1441 -0
- package/features/v1/fields.sorted.gen.js +344 -0
- package/features/v1/forms.sorted.gen.d.ts +734 -0
- package/features/v1/forms.sorted.gen.js +334 -0
- package/features/v1/index.d.ts +5305 -12
- package/features/v1/index.js +7 -11
- package/features/v1/index.spec.js +34 -20
- package/models/perceptron/params/login-model.json +91 -91
- package/models/perceptron/params/new-password-model.json +21 -21
- package/models/perceptron/params/otp-model.json +29 -29
- package/models/perceptron/params/password-change-model.json +72 -72
- package/models/perceptron/params/password-model.json +23 -23
- package/models/perceptron/params/recovery-model.json +81 -81
- package/models/perceptron/params/register-model.json +99 -99
- package/models/perceptron/params/username-hidden-model.json +10 -10
- package/models/perceptron/params/username-model.json +7 -7
- package/models/random_forest/params/otp-model.json +306 -366
- package/package.json +3 -3
- package/rules/v1/index.js +2 -2
- package/scripts/gen-sorted-features.js +125 -29
- package/types/index.d.ts +2 -1
- package/utils/fathom.d.ts +1 -2
- package/utils/fathom.js +2 -2
- package/features/registry.d.ts +0 -3
- package/features/registry.js +0 -9
- package/features/sorted.gen.d.ts +0 -14
- package/features/sorted.gen.js +0 -22
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { getComputerForFeatures } from "@protontech/autofill/features/feature";
|
|
2
|
+
import { inputIterator, form, fields, btns, nearestHeadingsText, formTextAttrText, formAttributes, layouts, doc, anchors, parent, fieldsets, inputs, visibleFields, selects, textareas, candidateBtns, btnsTypeSubmit, headingsMultistep, headingsRecovery, headingsPwReset, headingsRegister, headingsLogin, headingsOTPOutlier, formTextHaystack, formTextRecovery, formTextPwReset, formTextRegister, formTextLogin, formAttrsMFA, formAttrsRecovery, formAttrsPwReset, formAttrsRegister, formAttrsLogin, formOTPOutlier, layoutHaystack, pageDescriptionText, anchorsHaystack, captchas, socials, fieldsetsCount, passwords, mfaInputs, emails, usernames, checkboxes, hidden, inputRatio, numbers, dates, files, tels, ccInputs, readOnly, radios, texts, visibleInputs, submits, visibleFieldsCount, ccSelects, selectsCount, textareasCount, btnHaystack, submitBtns, headingsMultiAuth, searchForm, newsletterForm, formTextMFA, layoutRecovery, layoutPwReset, layoutRegister, layoutLogin, pageRecovery, pagePwReset, pageRegister, pageLogin, troubleLink, hasCaptchas, oauths, passwordsByVisibility, pwHaystack, mfaInputsHaystack, emailRatio, emailsCount, identifiers, usernameRatio, usernamesCount, checkboxesHaystack, checkboxRatio, hiddenRatio, hiddenCount, formComplexity, hasNumber, hasDate, hasFiles, hasTels, readOnlyCount, radiosCount, textsCount, required, disabled, visibleRatio, autofocused, threeOrMoreVisibleFields, twoVisibleFields, oneVisibleField, visibleInputsCount, formInputMFACandidates, submitsCount, ccs, linkOTPOutlier, submitBtnHaystack, formMFA, pageMultiAuth, hasOAuth, visiblePasswords, hiddenPasswords, pwConfirmRegister, pwNewRegister, inputsMFA, identifiersByVisibility, TOSRef, rememberMeCheckbox, requiredRatio, disabledRatio, disabledCount, visibleRatio_visibleFieldsCount, ccsCount, identities, buttonMultistep, submitRecovery, submitRegister, submitLogin, visiblePasswordsCount, passwordRatio, autofocusedIsPassword, threeOrMorePasswords, twoPasswords, onePassword, noPasswords, hiddenPasswordRatio, hiddenPasswordsCount, maybeMFA, visibleIdentifiers, hiddenIdentifiers, requiredRatio_visibleFieldsCount, identitiesCount, multistepForm, submitMultiAuth, passwordRatio_visibleFieldsCount, haystackMFA, identifierHaystack, identifierRatio, autofocusedIsIdentifier, threeOrMoreIdentifiers, twoIdentifiers, oneIdentifier, noIdentifiers, visibleIdentifiersCount, hiddenIdentifierRatio, hiddenIdentifiersCount, requiredRatio_multistepForm, passwordRatio_multistepForm, visibleRatio_multistepForm, multiAuthForm, requiredRatio_visiblePasswordsCount, passwordRatio_visiblePasswordsCount, visibleRatio_visiblePasswordsCount, requiredRatio_hiddenPasswordsCount, passwordRatio_hiddenPasswordsCount, visibleRatio_hiddenPasswordsCount, formTextAuthenticator, identifierRecovery, identifierRatio_multistepForm, identifierRatio_hiddenPasswordsCount, identifierRatio_visiblePasswordsCount, identifierRatio_visibleFieldsCount, requiredRatio_multiAuthForm, passwordRatio_multiAuthForm, identifierRatio_multiAuthForm, visibleRatio_multiAuthForm, multistepForm_multiAuthForm, requiredRatio_visibleIdentifiersCount, passwordRatio_visibleIdentifiersCount, identifierRatio_visibleIdentifiersCount, visibleRatio_visibleIdentifiersCount, requiredRatio_hiddenIdentifiersCount, passwordRatio_hiddenIdentifiersCount, identifierRatio_hiddenIdentifiersCount, visibleRatio_hiddenIdentifiersCount, } from "./abstract.form";
|
|
3
|
+
export const formFeaturesComputer = getComputerForFeatures({
|
|
4
|
+
sorted: [
|
|
5
|
+
inputIterator,
|
|
6
|
+
form,
|
|
7
|
+
fields,
|
|
8
|
+
btns,
|
|
9
|
+
nearestHeadingsText,
|
|
10
|
+
formTextAttrText,
|
|
11
|
+
formAttributes,
|
|
12
|
+
layouts,
|
|
13
|
+
doc,
|
|
14
|
+
anchors,
|
|
15
|
+
parent,
|
|
16
|
+
fieldsets,
|
|
17
|
+
inputs,
|
|
18
|
+
visibleFields,
|
|
19
|
+
selects,
|
|
20
|
+
textareas,
|
|
21
|
+
candidateBtns,
|
|
22
|
+
btnsTypeSubmit,
|
|
23
|
+
headingsMultistep,
|
|
24
|
+
headingsRecovery,
|
|
25
|
+
headingsPwReset,
|
|
26
|
+
headingsRegister,
|
|
27
|
+
headingsLogin,
|
|
28
|
+
headingsOTPOutlier,
|
|
29
|
+
formTextHaystack,
|
|
30
|
+
formTextRecovery,
|
|
31
|
+
formTextPwReset,
|
|
32
|
+
formTextRegister,
|
|
33
|
+
formTextLogin,
|
|
34
|
+
formAttrsMFA,
|
|
35
|
+
formAttrsRecovery,
|
|
36
|
+
formAttrsPwReset,
|
|
37
|
+
formAttrsRegister,
|
|
38
|
+
formAttrsLogin,
|
|
39
|
+
formOTPOutlier,
|
|
40
|
+
layoutHaystack,
|
|
41
|
+
pageDescriptionText,
|
|
42
|
+
anchorsHaystack,
|
|
43
|
+
captchas,
|
|
44
|
+
socials,
|
|
45
|
+
fieldsetsCount.parents.fieldsetsCount,
|
|
46
|
+
passwords,
|
|
47
|
+
mfaInputs,
|
|
48
|
+
emails,
|
|
49
|
+
usernames,
|
|
50
|
+
checkboxes,
|
|
51
|
+
hidden,
|
|
52
|
+
inputRatio,
|
|
53
|
+
numbers,
|
|
54
|
+
dates,
|
|
55
|
+
files,
|
|
56
|
+
tels,
|
|
57
|
+
ccInputs,
|
|
58
|
+
readOnly,
|
|
59
|
+
radios,
|
|
60
|
+
texts,
|
|
61
|
+
visibleInputs,
|
|
62
|
+
submits,
|
|
63
|
+
visibleFieldsCount.parents.visibleFieldsCount,
|
|
64
|
+
ccSelects,
|
|
65
|
+
selectsCount.parents.selectsCount,
|
|
66
|
+
textareasCount.parents.textareasCount,
|
|
67
|
+
btnHaystack,
|
|
68
|
+
submitBtns,
|
|
69
|
+
headingsMultiAuth,
|
|
70
|
+
searchForm,
|
|
71
|
+
newsletterForm,
|
|
72
|
+
formTextMFA,
|
|
73
|
+
layoutRecovery,
|
|
74
|
+
layoutPwReset,
|
|
75
|
+
layoutRegister,
|
|
76
|
+
layoutLogin,
|
|
77
|
+
pageRecovery,
|
|
78
|
+
pagePwReset,
|
|
79
|
+
pageRegister,
|
|
80
|
+
pageLogin,
|
|
81
|
+
troubleLink,
|
|
82
|
+
hasCaptchas,
|
|
83
|
+
oauths,
|
|
84
|
+
fieldsetsCount,
|
|
85
|
+
passwordsByVisibility,
|
|
86
|
+
pwHaystack,
|
|
87
|
+
mfaInputsHaystack,
|
|
88
|
+
emailRatio,
|
|
89
|
+
emailsCount.parents.emailsCount,
|
|
90
|
+
identifiers,
|
|
91
|
+
usernameRatio,
|
|
92
|
+
usernamesCount.parents.usernamesCount,
|
|
93
|
+
checkboxesHaystack,
|
|
94
|
+
checkboxRatio,
|
|
95
|
+
hiddenRatio,
|
|
96
|
+
hiddenCount.parents.hiddenCount,
|
|
97
|
+
formComplexity.parents.formComplexity,
|
|
98
|
+
hasNumber,
|
|
99
|
+
hasDate,
|
|
100
|
+
hasFiles,
|
|
101
|
+
hasTels,
|
|
102
|
+
readOnlyCount.parents.readOnlyCount,
|
|
103
|
+
radiosCount.parents.radiosCount,
|
|
104
|
+
textsCount.parents.textsCount,
|
|
105
|
+
required,
|
|
106
|
+
disabled,
|
|
107
|
+
visibleRatio,
|
|
108
|
+
autofocused,
|
|
109
|
+
threeOrMoreVisibleFields,
|
|
110
|
+
twoVisibleFields,
|
|
111
|
+
oneVisibleField,
|
|
112
|
+
visibleInputsCount.parents.visibleInputsCount,
|
|
113
|
+
formInputMFACandidates,
|
|
114
|
+
submitsCount.parents.submitsCount,
|
|
115
|
+
visibleFieldsCount,
|
|
116
|
+
ccs,
|
|
117
|
+
selectsCount,
|
|
118
|
+
textareasCount,
|
|
119
|
+
linkOTPOutlier,
|
|
120
|
+
submitBtnHaystack,
|
|
121
|
+
formMFA,
|
|
122
|
+
pageMultiAuth,
|
|
123
|
+
hasOAuth,
|
|
124
|
+
visiblePasswords,
|
|
125
|
+
hiddenPasswords,
|
|
126
|
+
pwConfirmRegister,
|
|
127
|
+
pwNewRegister,
|
|
128
|
+
inputsMFA,
|
|
129
|
+
emailsCount,
|
|
130
|
+
identifiersByVisibility,
|
|
131
|
+
usernamesCount,
|
|
132
|
+
TOSRef,
|
|
133
|
+
rememberMeCheckbox,
|
|
134
|
+
hiddenCount,
|
|
135
|
+
formComplexity,
|
|
136
|
+
readOnlyCount,
|
|
137
|
+
radiosCount,
|
|
138
|
+
textsCount,
|
|
139
|
+
requiredRatio,
|
|
140
|
+
disabledRatio,
|
|
141
|
+
disabledCount.parents.disabledCount,
|
|
142
|
+
visibleInputsCount,
|
|
143
|
+
submitsCount,
|
|
144
|
+
visibleRatio_visibleFieldsCount,
|
|
145
|
+
ccsCount.parents.ccsCount,
|
|
146
|
+
identities,
|
|
147
|
+
buttonMultistep,
|
|
148
|
+
submitRecovery,
|
|
149
|
+
submitRegister,
|
|
150
|
+
submitLogin,
|
|
151
|
+
visiblePasswordsCount.parents.visiblePasswordsCount,
|
|
152
|
+
passwordRatio,
|
|
153
|
+
autofocusedIsPassword,
|
|
154
|
+
threeOrMorePasswords,
|
|
155
|
+
twoPasswords,
|
|
156
|
+
onePassword,
|
|
157
|
+
noPasswords,
|
|
158
|
+
hiddenPasswordRatio,
|
|
159
|
+
hiddenPasswordsCount.parents.hiddenPasswordsCount,
|
|
160
|
+
maybeMFA,
|
|
161
|
+
visibleIdentifiers,
|
|
162
|
+
hiddenIdentifiers,
|
|
163
|
+
requiredRatio_visibleFieldsCount,
|
|
164
|
+
disabledCount,
|
|
165
|
+
ccsCount,
|
|
166
|
+
identitiesCount.parents.identitiesCount,
|
|
167
|
+
multistepForm,
|
|
168
|
+
submitMultiAuth,
|
|
169
|
+
visiblePasswordsCount,
|
|
170
|
+
passwordRatio_visibleFieldsCount,
|
|
171
|
+
hiddenPasswordsCount,
|
|
172
|
+
haystackMFA,
|
|
173
|
+
identifierHaystack,
|
|
174
|
+
identifierRatio,
|
|
175
|
+
autofocusedIsIdentifier,
|
|
176
|
+
threeOrMoreIdentifiers,
|
|
177
|
+
twoIdentifiers,
|
|
178
|
+
oneIdentifier,
|
|
179
|
+
noIdentifiers,
|
|
180
|
+
visibleIdentifiersCount.parents.visibleIdentifiersCount,
|
|
181
|
+
hiddenIdentifierRatio,
|
|
182
|
+
hiddenIdentifiersCount.parents.hiddenIdentifiersCount,
|
|
183
|
+
identitiesCount,
|
|
184
|
+
requiredRatio_multistepForm,
|
|
185
|
+
passwordRatio_multistepForm,
|
|
186
|
+
visibleRatio_multistepForm,
|
|
187
|
+
multiAuthForm,
|
|
188
|
+
requiredRatio_visiblePasswordsCount,
|
|
189
|
+
passwordRatio_visiblePasswordsCount,
|
|
190
|
+
visibleRatio_visiblePasswordsCount,
|
|
191
|
+
requiredRatio_hiddenPasswordsCount,
|
|
192
|
+
passwordRatio_hiddenPasswordsCount,
|
|
193
|
+
visibleRatio_hiddenPasswordsCount,
|
|
194
|
+
formTextAuthenticator,
|
|
195
|
+
identifierRecovery,
|
|
196
|
+
identifierRatio_multistepForm,
|
|
197
|
+
identifierRatio_hiddenPasswordsCount,
|
|
198
|
+
identifierRatio_visiblePasswordsCount,
|
|
199
|
+
identifierRatio_visibleFieldsCount,
|
|
200
|
+
visibleIdentifiersCount,
|
|
201
|
+
hiddenIdentifiersCount,
|
|
202
|
+
requiredRatio_multiAuthForm,
|
|
203
|
+
passwordRatio_multiAuthForm,
|
|
204
|
+
identifierRatio_multiAuthForm,
|
|
205
|
+
visibleRatio_multiAuthForm,
|
|
206
|
+
multistepForm_multiAuthForm,
|
|
207
|
+
requiredRatio_visibleIdentifiersCount,
|
|
208
|
+
passwordRatio_visibleIdentifiersCount,
|
|
209
|
+
identifierRatio_visibleIdentifiersCount,
|
|
210
|
+
visibleRatio_visibleIdentifiersCount,
|
|
211
|
+
requiredRatio_hiddenIdentifiersCount,
|
|
212
|
+
passwordRatio_hiddenIdentifiersCount,
|
|
213
|
+
identifierRatio_hiddenIdentifiersCount,
|
|
214
|
+
visibleRatio_hiddenIdentifiersCount,
|
|
215
|
+
],
|
|
216
|
+
features: [
|
|
217
|
+
"visibleFieldsCountScaled",
|
|
218
|
+
"visibleInputsCountScaled",
|
|
219
|
+
"fieldsetsCountScaled",
|
|
220
|
+
"textsCountScaled",
|
|
221
|
+
"textareasCountScaled",
|
|
222
|
+
"selectsCountScaled",
|
|
223
|
+
"disabledCountScaled",
|
|
224
|
+
"radiosCountScaled",
|
|
225
|
+
"readOnlyCountScaled",
|
|
226
|
+
"formComplexityScaled",
|
|
227
|
+
"visibleIdentifiersCountScaled",
|
|
228
|
+
"hiddenIdentifiersCountScaled",
|
|
229
|
+
"usernamesCountScaled",
|
|
230
|
+
"emailsCountScaled",
|
|
231
|
+
"hiddenCountScaled",
|
|
232
|
+
"hiddenPasswordsCountScaled",
|
|
233
|
+
"submitsCountScaled",
|
|
234
|
+
"identitiesCountScaled",
|
|
235
|
+
"ccsCountScaled",
|
|
236
|
+
"hasTels",
|
|
237
|
+
"hasOAuth",
|
|
238
|
+
"hasCaptchas",
|
|
239
|
+
"hasFiles",
|
|
240
|
+
"hasDate",
|
|
241
|
+
"hasNumber",
|
|
242
|
+
"oneVisibleField",
|
|
243
|
+
"twoVisibleFields",
|
|
244
|
+
"threeOrMoreVisibleFields",
|
|
245
|
+
"noPasswords",
|
|
246
|
+
"onePassword",
|
|
247
|
+
"twoPasswords",
|
|
248
|
+
"threeOrMorePasswords",
|
|
249
|
+
"noIdentifiers",
|
|
250
|
+
"oneIdentifier",
|
|
251
|
+
"twoIdentifiers",
|
|
252
|
+
"threeOrMoreIdentifiers",
|
|
253
|
+
"autofocusedIsIdentifier",
|
|
254
|
+
"autofocusedIsPassword",
|
|
255
|
+
"visibleRatio",
|
|
256
|
+
"inputRatio",
|
|
257
|
+
"hiddenRatio",
|
|
258
|
+
"identifierRatio",
|
|
259
|
+
"emailRatio",
|
|
260
|
+
"usernameRatio",
|
|
261
|
+
"passwordRatio",
|
|
262
|
+
"disabledRatio",
|
|
263
|
+
"requiredRatio",
|
|
264
|
+
"checkboxRatio",
|
|
265
|
+
"hiddenIdentifierRatio",
|
|
266
|
+
"hiddenPasswordRatio",
|
|
267
|
+
"pageLogin",
|
|
268
|
+
"formTextLogin",
|
|
269
|
+
"formAttrsLogin",
|
|
270
|
+
"headingsLogin",
|
|
271
|
+
"layoutLogin",
|
|
272
|
+
"rememberMeCheckbox",
|
|
273
|
+
"troubleLink",
|
|
274
|
+
"submitLogin",
|
|
275
|
+
"pageRegister",
|
|
276
|
+
"formTextRegister",
|
|
277
|
+
"formAttrsRegister",
|
|
278
|
+
"headingsRegister",
|
|
279
|
+
"layoutRegister",
|
|
280
|
+
"pwNewRegister",
|
|
281
|
+
"pwConfirmRegister",
|
|
282
|
+
"submitRegister",
|
|
283
|
+
"TOSRef",
|
|
284
|
+
"pagePwReset",
|
|
285
|
+
"formTextPwReset",
|
|
286
|
+
"formAttrsPwReset",
|
|
287
|
+
"headingsPwReset",
|
|
288
|
+
"layoutPwReset",
|
|
289
|
+
"pageRecovery",
|
|
290
|
+
"formTextRecovery",
|
|
291
|
+
"formAttrsRecovery",
|
|
292
|
+
"headingsRecovery",
|
|
293
|
+
"layoutRecovery",
|
|
294
|
+
"identifierRecovery",
|
|
295
|
+
"submitRecovery",
|
|
296
|
+
"formTextMFA",
|
|
297
|
+
"formAttrsMFA",
|
|
298
|
+
"inputsMFA",
|
|
299
|
+
"newsletterForm",
|
|
300
|
+
"searchForm",
|
|
301
|
+
"multistepForm",
|
|
302
|
+
"multiAuthForm",
|
|
303
|
+
"multistepForm,multiAuthForm",
|
|
304
|
+
"visibleRatio,visibleFieldsCountScaled",
|
|
305
|
+
"visibleRatio,visibleIdentifiersCountScaled",
|
|
306
|
+
"visibleRatio,visiblePasswordsCountScaled",
|
|
307
|
+
"visibleRatio,hiddenIdentifiersCountScaled",
|
|
308
|
+
"visibleRatio,hiddenPasswordsCountScaled",
|
|
309
|
+
"visibleRatio,multiAuthForm",
|
|
310
|
+
"visibleRatio,multistepForm",
|
|
311
|
+
"identifierRatio,visibleFieldsCountScaled",
|
|
312
|
+
"identifierRatio,visibleIdentifiersCountScaled",
|
|
313
|
+
"identifierRatio,visiblePasswordsCountScaled",
|
|
314
|
+
"identifierRatio,hiddenIdentifiersCountScaled",
|
|
315
|
+
"identifierRatio,hiddenPasswordsCountScaled",
|
|
316
|
+
"identifierRatio,multiAuthForm",
|
|
317
|
+
"identifierRatio,multistepForm",
|
|
318
|
+
"passwordRatio,visibleFieldsCountScaled",
|
|
319
|
+
"passwordRatio,visibleIdentifiersCountScaled",
|
|
320
|
+
"passwordRatio,visiblePasswordsCountScaled",
|
|
321
|
+
"passwordRatio,hiddenIdentifiersCountScaled",
|
|
322
|
+
"passwordRatio,hiddenPasswordsCountScaled",
|
|
323
|
+
"passwordRatio,multiAuthForm",
|
|
324
|
+
"passwordRatio,multistepForm",
|
|
325
|
+
"requiredRatio,visibleFieldsCountScaled",
|
|
326
|
+
"requiredRatio,visibleIdentifiersCountScaled",
|
|
327
|
+
"requiredRatio,visiblePasswordsCountScaled",
|
|
328
|
+
"requiredRatio,hiddenIdentifiersCountScaled",
|
|
329
|
+
"requiredRatio,hiddenPasswordsCountScaled",
|
|
330
|
+
"requiredRatio,multiAuthForm",
|
|
331
|
+
"requiredRatio,multistepForm",
|
|
332
|
+
],
|
|
333
|
+
private: ["formInputMFACandidates", "formMFA", "formOTPOutlier", "formTextAuthenticator", "headingsOTPOutlier", "inputIterator", "linkOTPOutlier"],
|
|
334
|
+
});
|