Skip to content

Commit

Permalink
fix: don't need additional API
Browse files Browse the repository at this point in the history
  • Loading branch information
dbajpeyi committed Nov 13, 2024
1 parent dbd1b66 commit 3553dee
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 78 deletions.
17 changes: 7 additions & 10 deletions dist/autofill-debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions dist/autofill.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/DeviceInterface/InterfacePrototype.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ class InterfacePrototype {

// If credentials has only username field, and no password field, then trigger is a partialSave
const trigger = formData.credentials?.username && !formData.credentials?.password ? 'partialSave' : 'formSubmission';
console.log('DEEP formData', formData);
this.storeFormData(formData, trigger);
}
}
Expand Down
9 changes: 7 additions & 2 deletions src/Form/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class Form {
* @param {KeyboardEvent | null} [e]
*/
hasFocus(e) {
return this.form.contains(getActiveElement()) || this.form.contains(/** @type HTMLElement */ (e?.target));
return this.form.contains(getActiveElement()) || this.form.contains(/** @type HTMLElement */(e?.target));
}

submitHandler(via = 'unknown') {
Expand Down Expand Up @@ -527,6 +527,11 @@ class Form {
}
}


sum(a, b) {
return a + b;
}

addInput(input) {
if (this.inputs.all.has(input)) return this;

Expand Down Expand Up @@ -652,7 +657,7 @@ class Form {
// Get click co-ordinates for pointer events
// We need click coordinates to position the tooltip when the field is in an iframe
if (e.type === 'pointerdown') {
return getMainClickCoords(/** @type {PointerEvent} */ (e)) || null;
return getMainClickCoords(/** @type {PointerEvent} */(e)) || null;
}

// Reuse a previous click co-ordinates if they exist for this element
Expand Down
1 change: 1 addition & 0 deletions src/Form/FormAnalyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ class FormAnalyzer {

evaluateForm() {
// Check page url
console.log("DEEP in evaluateForm");
this.evaluateUrl();

// Check page title
Expand Down
6 changes: 0 additions & 6 deletions src/deviceApiCalls/__generated__/deviceApiCalls.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions src/deviceApiCalls/__generated__/validators-ts.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/deviceApiCalls/__generated__/validators.zod.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions src/deviceApiCalls/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,6 @@
"$ref": "./schemas/showInContextEmailProtectionSignupPrompt.result.json"
}
}
},
"storeTemporaryPartialFormData": {
"type": "object",
"description": "Used to store temporary partial form data (username or email) to supplement the signup completion at a later time",
"paramsValidator": {
"$ref": "./schemas/storeTemporaryPartialFormData.params.json"
}
}
}
}

This file was deleted.

17 changes: 7 additions & 10 deletions swift-package/Resources/assets/autofill-debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3553dee

Please sign in to comment.