@protontech/autofill 0.0.35481761 → 0.0.36026908
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/v1/abstract.field.d.ts +38 -38
- package/features/v1/field-predicates.d.ts +8 -0
- package/features/v1/field-predicates.js +42 -0
- package/features/v1/field.email.d.ts +1169 -1169
- package/features/v1/field.otp.d.ts +23826 -23826
- package/features/v1/field.password.d.ts +33195 -33195
- package/features/v1/field.username-hidden.d.ts +337 -337
- package/features/v1/field.username.d.ts +14189 -14189
- package/features/v1/fields.sorted.gen.d.ts +482 -482
- package/features/v1/forms.sorted.gen.d.ts +245 -245
- package/features/v1/index.d.ts +1772 -1772
- package/models/perceptron/params/email-model.json +4 -4
- package/models/perceptron/params/login-model.json +84 -84
- package/models/perceptron/params/new-password-model.json +16 -16
- package/models/perceptron/params/otp-model.json +25 -25
- package/models/perceptron/params/password-change-model.json +74 -74
- package/models/perceptron/params/password-model.json +19 -19
- package/models/perceptron/params/recovery-model.json +82 -82
- package/models/perceptron/params/register-model.json +97 -97
- package/models/perceptron/params/username-hidden-model.json +8 -8
- package/models/perceptron/params/username-model.json +6 -6
- package/package.json +3 -3
- package/rules/v1/index.js +3 -3
- package/utils/credit-card.d.ts +0 -1
- package/utils/credit-card.js +2 -9
- package/utils/field.d.ts +4 -5
- package/utils/field.js +6 -17
- package/utils/identity.d.ts +0 -2
- package/utils/identity.js +2 -23
- package/dictionary/generate.d.ts +0 -1
- package/dictionary/generate.js +0 -51
- package/features/feature.spec.d.ts +0 -1
- package/features/feature.spec.js +0 -108
- package/features/v1/index.spec.d.ts +0 -1
- package/features/v1/index.spec.js +0 -44
- package/scripts/gen-sorted-features.d.ts +0 -1
- package/scripts/gen-sorted-features.js +0 -128
- package/utils/credit-card.samples.spec.d.ts +0 -1
- package/utils/credit-card.samples.spec.js +0 -452
- package/utils/credit-card.spec.d.ts +0 -1
- package/utils/credit-card.spec.js +0 -296
- package/utils/identity.samples.spec.d.ts +0 -1
- package/utils/identity.samples.spec.js +0 -28
- package/utils/re.spec.d.ts +0 -1
- package/utils/re.spec.js +0 -62
- package/utils/shadow-dom.spec.d.ts +0 -1
- package/utils/shadow-dom.spec.js +0 -215
|
@@ -70,7 +70,7 @@ export declare const parentFormFeatures: import("@protontech/autofill/types").Fe
|
|
|
70
70
|
inputIterator: {
|
|
71
71
|
name: "inputIterator";
|
|
72
72
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
73
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
73
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
74
74
|
private?: true;
|
|
75
75
|
};
|
|
76
76
|
linkOTPOutlier: {
|
|
@@ -772,7 +772,7 @@ export declare const parentFormFeatures: import("@protontech/autofill/types").Fe
|
|
|
772
772
|
}> | undefined, {
|
|
773
773
|
parentFormFnode: import("@protontech/autofill/types").Feature<"parentFormFnode", import("@protontech/fathom").Fnode | null, {}>;
|
|
774
774
|
}>;
|
|
775
|
-
export declare const parentFormInputIterator: import("@protontech/autofill/types").Feature<"parentFormInputIterator", import("
|
|
775
|
+
export declare const parentFormInputIterator: import("@protontech/autofill/types").Feature<"parentFormInputIterator", import("../../utils/form").FormInputIterator | null, {
|
|
776
776
|
parentFormFeatures: import("@protontech/autofill/types").Feature<"parentFormFeatures", ComputedFeatures<{
|
|
777
777
|
formInputMFACandidates: {
|
|
778
778
|
name: "formInputMFACandidates";
|
|
@@ -807,7 +807,7 @@ export declare const parentFormInputIterator: import("@protontech/autofill/types
|
|
|
807
807
|
inputIterator: {
|
|
808
808
|
name: "inputIterator";
|
|
809
809
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
810
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
810
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
811
811
|
private?: true;
|
|
812
812
|
};
|
|
813
813
|
linkOTPOutlier: {
|
|
@@ -1732,7 +1732,7 @@ export declare const prevInput: import("@protontech/autofill/types").Feature<"pr
|
|
|
1732
1732
|
field: import("@protontech/autofill/types").Feature<"field", HTMLInputElement, {}>;
|
|
1733
1733
|
}>;
|
|
1734
1734
|
}>;
|
|
1735
|
-
parentFormInputIterator: import("@protontech/autofill/types").Feature<"parentFormInputIterator", import("
|
|
1735
|
+
parentFormInputIterator: import("@protontech/autofill/types").Feature<"parentFormInputIterator", import("../../utils/form").FormInputIterator | null, {
|
|
1736
1736
|
parentFormFeatures: import("@protontech/autofill/types").Feature<"parentFormFeatures", ComputedFeatures<{
|
|
1737
1737
|
formInputMFACandidates: {
|
|
1738
1738
|
name: "formInputMFACandidates";
|
|
@@ -1767,7 +1767,7 @@ export declare const prevInput: import("@protontech/autofill/types").Feature<"pr
|
|
|
1767
1767
|
inputIterator: {
|
|
1768
1768
|
name: "inputIterator";
|
|
1769
1769
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
1770
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
1770
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
1771
1771
|
private?: true;
|
|
1772
1772
|
};
|
|
1773
1773
|
linkOTPOutlier: {
|
|
@@ -2478,7 +2478,7 @@ export declare const prevField: import("@protontech/autofill/types").Feature<"pr
|
|
|
2478
2478
|
field: import("@protontech/autofill/types").Feature<"field", HTMLInputElement, {}>;
|
|
2479
2479
|
}>;
|
|
2480
2480
|
}>;
|
|
2481
|
-
parentFormInputIterator: import("@protontech/autofill/types").Feature<"parentFormInputIterator", import("
|
|
2481
|
+
parentFormInputIterator: import("@protontech/autofill/types").Feature<"parentFormInputIterator", import("../../utils/form").FormInputIterator | null, {
|
|
2482
2482
|
parentFormFeatures: import("@protontech/autofill/types").Feature<"parentFormFeatures", ComputedFeatures<{
|
|
2483
2483
|
formInputMFACandidates: {
|
|
2484
2484
|
name: "formInputMFACandidates";
|
|
@@ -2513,7 +2513,7 @@ export declare const prevField: import("@protontech/autofill/types").Feature<"pr
|
|
|
2513
2513
|
inputIterator: {
|
|
2514
2514
|
name: "inputIterator";
|
|
2515
2515
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
2516
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
2516
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
2517
2517
|
private?: true;
|
|
2518
2518
|
};
|
|
2519
2519
|
linkOTPOutlier: {
|
|
@@ -3224,7 +3224,7 @@ export declare const nextField: import("@protontech/autofill/types").Feature<"ne
|
|
|
3224
3224
|
field: import("@protontech/autofill/types").Feature<"field", HTMLInputElement, {}>;
|
|
3225
3225
|
}>;
|
|
3226
3226
|
}>;
|
|
3227
|
-
parentFormInputIterator: import("@protontech/autofill/types").Feature<"parentFormInputIterator", import("
|
|
3227
|
+
parentFormInputIterator: import("@protontech/autofill/types").Feature<"parentFormInputIterator", import("../../utils/form").FormInputIterator | null, {
|
|
3228
3228
|
parentFormFeatures: import("@protontech/autofill/types").Feature<"parentFormFeatures", ComputedFeatures<{
|
|
3229
3229
|
formInputMFACandidates: {
|
|
3230
3230
|
name: "formInputMFACandidates";
|
|
@@ -3259,7 +3259,7 @@ export declare const nextField: import("@protontech/autofill/types").Feature<"ne
|
|
|
3259
3259
|
inputIterator: {
|
|
3260
3260
|
name: "inputIterator";
|
|
3261
3261
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
3262
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
3262
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
3263
3263
|
private?: true;
|
|
3264
3264
|
};
|
|
3265
3265
|
linkOTPOutlier: {
|
|
@@ -4068,7 +4068,7 @@ export declare const fieldFeatures: {
|
|
|
4068
4068
|
inputIterator: {
|
|
4069
4069
|
name: "inputIterator";
|
|
4070
4070
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
4071
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
4071
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
4072
4072
|
private?: true;
|
|
4073
4073
|
};
|
|
4074
4074
|
linkOTPOutlier: {
|
|
@@ -4912,7 +4912,7 @@ export declare const fieldFeats: import("@protontech/autofill/types").Feature<"f
|
|
|
4912
4912
|
inputIterator: {
|
|
4913
4913
|
name: "inputIterator";
|
|
4914
4914
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
4915
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
4915
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
4916
4916
|
private?: true;
|
|
4917
4917
|
};
|
|
4918
4918
|
linkOTPOutlier: {
|
|
@@ -5756,7 +5756,7 @@ export declare const fieldForm: import("@protontech/autofill/types").Feature<"fi
|
|
|
5756
5756
|
inputIterator: {
|
|
5757
5757
|
name: "inputIterator";
|
|
5758
5758
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
5759
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
5759
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
5760
5760
|
private?: true;
|
|
5761
5761
|
};
|
|
5762
5762
|
linkOTPOutlier: {
|
|
@@ -6601,7 +6601,7 @@ export declare const fieldCC: import("@protontech/autofill/types").Feature<"fiel
|
|
|
6601
6601
|
inputIterator: {
|
|
6602
6602
|
name: "inputIterator";
|
|
6603
6603
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
6604
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
6604
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
6605
6605
|
private?: true;
|
|
6606
6606
|
};
|
|
6607
6607
|
linkOTPOutlier: {
|
|
@@ -7446,7 +7446,7 @@ export declare const fieldIdentity: import("@protontech/autofill/types").Feature
|
|
|
7446
7446
|
inputIterator: {
|
|
7447
7447
|
name: "inputIterator";
|
|
7448
7448
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
7449
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
7449
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
7450
7450
|
private?: true;
|
|
7451
7451
|
};
|
|
7452
7452
|
linkOTPOutlier: {
|
|
@@ -8291,7 +8291,7 @@ export declare const fieldSearch: import("@protontech/autofill/types").Feature<"
|
|
|
8291
8291
|
inputIterator: {
|
|
8292
8292
|
name: "inputIterator";
|
|
8293
8293
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
8294
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
8294
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
8295
8295
|
private?: true;
|
|
8296
8296
|
};
|
|
8297
8297
|
linkOTPOutlier: {
|
|
@@ -9136,7 +9136,7 @@ export declare const fieldAttrs: import("@protontech/autofill/types").Feature<"f
|
|
|
9136
9136
|
inputIterator: {
|
|
9137
9137
|
name: "inputIterator";
|
|
9138
9138
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
9139
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
9139
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
9140
9140
|
private?: true;
|
|
9141
9141
|
};
|
|
9142
9142
|
linkOTPOutlier: {
|
|
@@ -9981,7 +9981,7 @@ export declare const fieldText: import("@protontech/autofill/types").Feature<"fi
|
|
|
9981
9981
|
inputIterator: {
|
|
9982
9982
|
name: "inputIterator";
|
|
9983
9983
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
9984
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
9984
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
9985
9985
|
private?: true;
|
|
9986
9986
|
};
|
|
9987
9987
|
linkOTPOutlier: {
|
|
@@ -10826,7 +10826,7 @@ export declare const fieldLabel: import("@protontech/autofill/types").Feature<"f
|
|
|
10826
10826
|
inputIterator: {
|
|
10827
10827
|
name: "inputIterator";
|
|
10828
10828
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
10829
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
10829
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
10830
10830
|
private?: true;
|
|
10831
10831
|
};
|
|
10832
10832
|
linkOTPOutlier: {
|
|
@@ -11671,7 +11671,7 @@ export declare const fieldAutocomplete: import("@protontech/autofill/types").Fea
|
|
|
11671
11671
|
inputIterator: {
|
|
11672
11672
|
name: "inputIterator";
|
|
11673
11673
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
11674
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
11674
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
11675
11675
|
private?: true;
|
|
11676
11676
|
};
|
|
11677
11677
|
linkOTPOutlier: {
|
|
@@ -12517,7 +12517,7 @@ export declare const fieldEmailMatch: import("@protontech/autofill/types").Featu
|
|
|
12517
12517
|
inputIterator: {
|
|
12518
12518
|
name: "inputIterator";
|
|
12519
12519
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
12520
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
12520
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
12521
12521
|
private?: true;
|
|
12522
12522
|
};
|
|
12523
12523
|
linkOTPOutlier: {
|
|
@@ -13362,7 +13362,7 @@ export declare const fieldEmailMatch: import("@protontech/autofill/types").Featu
|
|
|
13362
13362
|
inputIterator: {
|
|
13363
13363
|
name: "inputIterator";
|
|
13364
13364
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
13365
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
13365
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
13366
13366
|
private?: true;
|
|
13367
13367
|
};
|
|
13368
13368
|
linkOTPOutlier: {
|
|
@@ -14207,7 +14207,7 @@ export declare const fieldEmailMatch: import("@protontech/autofill/types").Featu
|
|
|
14207
14207
|
inputIterator: {
|
|
14208
14208
|
name: "inputIterator";
|
|
14209
14209
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
14210
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
14210
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
14211
14211
|
private?: true;
|
|
14212
14212
|
};
|
|
14213
14213
|
linkOTPOutlier: {
|
|
@@ -15055,7 +15055,7 @@ export declare const fieldAutocompleteUsername: import("@protontech/autofill/typ
|
|
|
15055
15055
|
inputIterator: {
|
|
15056
15056
|
name: "inputIterator";
|
|
15057
15057
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
15058
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
15058
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
15059
15059
|
private?: true;
|
|
15060
15060
|
};
|
|
15061
15061
|
linkOTPOutlier: {
|
|
@@ -15901,7 +15901,7 @@ export declare const fieldAutocompleteUsername: import("@protontech/autofill/typ
|
|
|
15901
15901
|
inputIterator: {
|
|
15902
15902
|
name: "inputIterator";
|
|
15903
15903
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
15904
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
15904
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
15905
15905
|
private?: true;
|
|
15906
15906
|
};
|
|
15907
15907
|
linkOTPOutlier: {
|
|
@@ -16746,7 +16746,7 @@ export declare const fieldAutocompleteUsername: import("@protontech/autofill/typ
|
|
|
16746
16746
|
inputIterator: {
|
|
16747
16747
|
name: "inputIterator";
|
|
16748
16748
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
16749
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
16749
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
16750
16750
|
private?: true;
|
|
16751
16751
|
};
|
|
16752
16752
|
linkOTPOutlier: {
|
|
@@ -17591,7 +17591,7 @@ export declare const fieldAutocompleteUsername: import("@protontech/autofill/typ
|
|
|
17591
17591
|
inputIterator: {
|
|
17592
17592
|
name: "inputIterator";
|
|
17593
17593
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
17594
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
17594
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
17595
17595
|
private?: true;
|
|
17596
17596
|
};
|
|
17597
17597
|
linkOTPOutlier: {
|
|
@@ -18440,7 +18440,7 @@ export declare const fieldAttrEmail: import("@protontech/autofill/types").Featur
|
|
|
18440
18440
|
inputIterator: {
|
|
18441
18441
|
name: "inputIterator";
|
|
18442
18442
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
18443
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
18443
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
18444
18444
|
private?: true;
|
|
18445
18445
|
};
|
|
18446
18446
|
linkOTPOutlier: {
|
|
@@ -19287,7 +19287,7 @@ export declare const fieldAttrUsername: import("@protontech/autofill/types").Fea
|
|
|
19287
19287
|
inputIterator: {
|
|
19288
19288
|
name: "inputIterator";
|
|
19289
19289
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
19290
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
19290
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
19291
19291
|
private?: true;
|
|
19292
19292
|
};
|
|
19293
19293
|
linkOTPOutlier: {
|
|
@@ -20062,7 +20062,7 @@ export declare const fieldFormFeats: import("@protontech/autofill/types").Featur
|
|
|
20062
20062
|
inputIterator: {
|
|
20063
20063
|
name: "inputIterator";
|
|
20064
20064
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
20065
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
20065
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
20066
20066
|
private?: true;
|
|
20067
20067
|
};
|
|
20068
20068
|
linkOTPOutlier: {
|
|
@@ -20866,7 +20866,7 @@ export declare const fieldFormFeats: import("@protontech/autofill/types").Featur
|
|
|
20866
20866
|
inputIterator: {
|
|
20867
20867
|
name: "inputIterator";
|
|
20868
20868
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
20869
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
20869
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
20870
20870
|
private?: true;
|
|
20871
20871
|
};
|
|
20872
20872
|
linkOTPOutlier: {
|
|
@@ -21712,7 +21712,7 @@ export declare const fieldAutocompleteEmail: import("@protontech/autofill/types"
|
|
|
21712
21712
|
inputIterator: {
|
|
21713
21713
|
name: "inputIterator";
|
|
21714
21714
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
21715
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
21715
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
21716
21716
|
private?: true;
|
|
21717
21717
|
};
|
|
21718
21718
|
linkOTPOutlier: {
|
|
@@ -22559,7 +22559,7 @@ export declare const fieldAutocompleteOff: import("@protontech/autofill/types").
|
|
|
22559
22559
|
inputIterator: {
|
|
22560
22560
|
name: "inputIterator";
|
|
22561
22561
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
22562
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
22562
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
22563
22563
|
private?: true;
|
|
22564
22564
|
};
|
|
22565
22565
|
linkOTPOutlier: {
|
|
@@ -23405,7 +23405,7 @@ export declare const fieldNext: import("@protontech/autofill/types").Feature<"fi
|
|
|
23405
23405
|
inputIterator: {
|
|
23406
23406
|
name: "inputIterator";
|
|
23407
23407
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
23408
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
23408
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
23409
23409
|
private?: true;
|
|
23410
23410
|
};
|
|
23411
23411
|
linkOTPOutlier: {
|
|
@@ -24250,7 +24250,7 @@ export declare const fieldPrev: import("@protontech/autofill/types").Feature<"fi
|
|
|
24250
24250
|
inputIterator: {
|
|
24251
24251
|
name: "inputIterator";
|
|
24252
24252
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
24253
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
24253
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
24254
24254
|
private?: true;
|
|
24255
24255
|
};
|
|
24256
24256
|
linkOTPOutlier: {
|
|
@@ -25095,7 +25095,7 @@ export declare const fieldPrevInput: import("@protontech/autofill/types").Featur
|
|
|
25095
25095
|
inputIterator: {
|
|
25096
25096
|
name: "inputIterator";
|
|
25097
25097
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
25098
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
25098
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
25099
25099
|
private?: true;
|
|
25100
25100
|
};
|
|
25101
25101
|
linkOTPOutlier: {
|
|
@@ -25940,7 +25940,7 @@ export declare const fieldLogin: import("@protontech/autofill/types").Feature<"f
|
|
|
25940
25940
|
inputIterator: {
|
|
25941
25941
|
name: "inputIterator";
|
|
25942
25942
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
25943
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
25943
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
25944
25944
|
private?: true;
|
|
25945
25945
|
};
|
|
25946
25946
|
linkOTPOutlier: {
|
|
@@ -26785,7 +26785,7 @@ export declare const fieldRegister: import("@protontech/autofill/types").Feature
|
|
|
26785
26785
|
inputIterator: {
|
|
26786
26786
|
name: "inputIterator";
|
|
26787
26787
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
26788
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
26788
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
26789
26789
|
private?: true;
|
|
26790
26790
|
};
|
|
26791
26791
|
linkOTPOutlier: {
|
|
@@ -27630,7 +27630,7 @@ export declare const fieldExotic: import("@protontech/autofill/types").Feature<"
|
|
|
27630
27630
|
inputIterator: {
|
|
27631
27631
|
name: "inputIterator";
|
|
27632
27632
|
parents: import("@protontech/autofill/types").AbstractFeatures;
|
|
27633
|
-
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("
|
|
27633
|
+
compute(parents: import("@protontech/autofill/types").InferParentComputeType<import("@protontech/autofill/types").AbstractFeatures>, fnode: import("@protontech/fathom").Fnode): import("../../utils/form").FormInputIterator;
|
|
27634
27634
|
private?: true;
|
|
27635
27635
|
};
|
|
27636
27636
|
linkOTPOutlier: {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Fnode } from "@protontech/fathom";
|
|
2
|
+
export declare const isCCInputField: (fnode: Fnode) => boolean;
|
|
3
|
+
export declare const isIdentity: (fnode: Fnode) => boolean;
|
|
4
|
+
export declare const maybeEmail: (value: Fnode) => boolean;
|
|
5
|
+
export declare const maybePassword: (value: Fnode) => boolean;
|
|
6
|
+
export declare const maybeOTP: (value: Fnode) => boolean;
|
|
7
|
+
export declare const maybeUsername: (value: Fnode) => boolean;
|
|
8
|
+
export declare const maybeHiddenUsername: (value: Fnode) => boolean;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { kPasswordSelector, kUsernameSelector } from "@protontech/autofill/constants/selectors";
|
|
2
|
+
import { IdentityFieldType } from "@protontech/autofill/types";
|
|
3
|
+
import { and, not, or } from "@protontech/autofill/utils/combinators";
|
|
4
|
+
import { getIdentityFieldType } from "@protontech/autofill/utils/identity";
|
|
5
|
+
import { fInput, fList, fMatch, fMode } from "@protontech/autofill/utils/field";
|
|
6
|
+
export const isCCInputField = (fnode) => {
|
|
7
|
+
const { isCC, visible } = fnode.noteFor("field");
|
|
8
|
+
if (!visible)
|
|
9
|
+
return false;
|
|
10
|
+
return isCC;
|
|
11
|
+
};
|
|
12
|
+
const isAutocompleteListInput = (el) => el.getAttribute("aria-autocomplete") === "list" || el.role === "combobox";
|
|
13
|
+
export const isIdentity = (fnode) => {
|
|
14
|
+
const input = fnode.element;
|
|
15
|
+
const { isIdentity, isCC, searchField, isFormLogin, isFormRecovery, visible } = fnode.noteFor("field");
|
|
16
|
+
if (!visible)
|
|
17
|
+
return false;
|
|
18
|
+
if (isCC || !isIdentity)
|
|
19
|
+
return false;
|
|
20
|
+
const identityType = getIdentityFieldType(input);
|
|
21
|
+
if (!identityType)
|
|
22
|
+
return false;
|
|
23
|
+
const outlierForm = isFormLogin || isFormRecovery;
|
|
24
|
+
if (outlierForm)
|
|
25
|
+
return false;
|
|
26
|
+
if (isAutocompleteListInput(input))
|
|
27
|
+
return [IdentityFieldType.ADDRESS, IdentityFieldType.ZIPCODE].includes(identityType);
|
|
28
|
+
if (searchField)
|
|
29
|
+
return [IdentityFieldType.ADDRESS, IdentityFieldType.ZIPCODE, IdentityFieldType.CITY].includes(identityType);
|
|
30
|
+
return true;
|
|
31
|
+
};
|
|
32
|
+
const isActiveFieldFNode = (fnode) => {
|
|
33
|
+
const el = fnode.element;
|
|
34
|
+
const { visible } = fnode.noteFor("field");
|
|
35
|
+
return visible && !el.readOnly && !el.disabled;
|
|
36
|
+
};
|
|
37
|
+
const fActive = (fnode) => isActiveFieldFNode(fnode);
|
|
38
|
+
export const maybeEmail = and(not(fList), or(fInput(["email", "text"]), fMode("email")), fActive);
|
|
39
|
+
export const maybePassword = and(not(fList), fMatch(kPasswordSelector), fActive);
|
|
40
|
+
export const maybeOTP = and(fInput(["text", "number", "tel"]), fActive, not(fList));
|
|
41
|
+
export const maybeUsername = and(not(fList), or(and(not(fMode("email")), fInput(["text", "tel"])), fMatch(kUsernameSelector)), fActive);
|
|
42
|
+
export const maybeHiddenUsername = and(not(fList), fInput(["email", "text", "hidden"]), not(fActive));
|