@pi-oxide/extension-js 0.12.2 → 0.12.4
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/content-script.js +3 -3
- package/extension_js.d.ts +45 -48
- package/extension_js.js +17059 -63584
- package/index.js +17 -1
- package/package.json +1 -1
- package/worker.js +196 -180
package/index.js
CHANGED
|
@@ -1124,7 +1124,7 @@ function J(e) {
|
|
|
1124
1124
|
if (r === "a") return "link";
|
|
1125
1125
|
if (r === "input") {
|
|
1126
1126
|
const a = e.type;
|
|
1127
|
-
if (a === "text" || a === "email" || a === "password" || a === "search")
|
|
1127
|
+
if (a === "text" || a === "email" || a === "password" || a === "search" || a === "tel")
|
|
1128
1128
|
return "textbox";
|
|
1129
1129
|
if (a === "checkbox") return "checkbox";
|
|
1130
1130
|
if (a === "radio") return "radio";
|
|
@@ -1834,7 +1834,23 @@ const Fa = t.object({
|
|
|
1834
1834
|
checked: t.boolean().optional().describe("Checked state after the action"),
|
|
1835
1835
|
disabled: t.boolean().optional().describe("Whether the element is disabled"),
|
|
1836
1836
|
readOnly: t.boolean().optional().describe("Whether the element is read-only"),
|
|
1837
|
+
required: t.boolean().optional().describe("Whether the element is required"),
|
|
1838
|
+
valid: t.boolean().optional().describe("HTML constraint validity after the action, when available"),
|
|
1839
|
+
invalid: t.boolean().optional().describe("Inverse validity / aria-invalid state after the action"),
|
|
1840
|
+
validationMessage: t.string().optional().describe("Browser validation message when the element is invalid"),
|
|
1841
|
+
invalidControls: t.array(
|
|
1842
|
+
t.object({
|
|
1843
|
+
refId: q().optional(),
|
|
1844
|
+
tag: t.string(),
|
|
1845
|
+
role: t.string().optional(),
|
|
1846
|
+
name: t.string().optional(),
|
|
1847
|
+
value: t.string().optional(),
|
|
1848
|
+
required: t.boolean().optional(),
|
|
1849
|
+
validationMessage: t.string().optional()
|
|
1850
|
+
})
|
|
1851
|
+
).optional().describe("Invalid form controls after submit, when available"),
|
|
1837
1852
|
text: t.string().optional().describe("Text content of the element"),
|
|
1853
|
+
selectedText: t.string().optional().describe("Visible option text selected by select_option"),
|
|
1838
1854
|
key: t.string().optional().describe("Key that was pressed (for press actions)"),
|
|
1839
1855
|
direction: t.string().optional().describe("Scroll direction (for scroll actions)"),
|
|
1840
1856
|
amount: t.number().optional().describe("Scroll amount in pixels (for scroll actions)"),
|