@pi-oxide/extension-js 0.11.1 → 0.12.1

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/package.json CHANGED
@@ -1,35 +1,21 @@
1
1
  {
2
2
  "name": "@pi-oxide/extension-js",
3
- "version": "0.11.1",
4
3
  "type": "module",
4
+ "version": "0.12.1",
5
+ "license": "LicenseRef-PiccoloNotebook-Fair-BYOK-1.0",
5
6
  "main": "index.js",
6
7
  "types": "index.d.ts",
7
- "exports": {
8
- ".": {
9
- "types": "./index.d.ts",
10
- "default": "./index.js"
11
- },
12
- "./content-script": {
13
- "types": "./content-script.d.ts",
14
- "default": "./content-script.js"
15
- },
16
- "./worker": {
17
- "types": "./worker.d.ts",
18
- "default": "./worker.js"
19
- }
20
- },
21
8
  "files": [
22
9
  "index.js",
23
10
  "index.d.ts",
24
- "content-script.js",
25
- "content-script.d.ts",
26
11
  "worker.js",
27
- "worker.d.ts",
28
12
  "extension_js.js",
29
13
  "extension_js.d.ts",
30
- "extension_js_bg.wasm"
14
+ "content-script.js",
15
+ "*.d.ts"
31
16
  ],
32
17
  "dependencies": {
33
- "zod": "^3.23.8"
18
+ "zod": "^3.23.8",
19
+ "@pi-oxide/dom-semantic-tree": "^0.1.1"
34
20
  }
35
21
  }
package/worker.js CHANGED
@@ -3111,7 +3111,7 @@ l({
3111
3111
  l({
3112
3112
  duration: D().describe("Duration to sleep in milliseconds")
3113
3113
  });
3114
- const K = () => o().regex(/^e\d+$/), en = 'use { refId: "e2" } or { label: "..." } object form, not positional arguments', ft = (t, e) => {
3114
+ const K = () => o().regex(/^(?:f\d+_)?e\d+$/), en = 'use { refId: "e2" } or { label: "..." } object form, not positional arguments', ft = (t, e) => {
3115
3115
  if (t.__invalidPositional !== void 0) {
3116
3116
  e.addIssue({
3117
3117
  code: u.custom,
@@ -3204,18 +3204,24 @@ O({
3204
3204
  text: o().describe("Text to append into the element")
3205
3205
  });
3206
3206
  l({
3207
- refId: K().optional().describe("Element reference ID to dispatch the key on (e.g. e2). Omit to dispatch on document."),
3207
+ refId: K().optional().describe(
3208
+ "Element reference ID to dispatch the key on (e.g. e2). Omit to dispatch on document."
3209
+ ),
3208
3210
  label: o().optional().describe("Human-readable element label. Omit to dispatch on document."),
3209
3211
  key: o().describe("Key to press (e.g. Enter, Escape, ArrowDown)")
3210
3212
  });
3211
3213
  O({
3212
3214
  value: x([
3213
3215
  o().describe("Value to select in the dropdown"),
3214
- I(o()).describe("Values to select in a multiple dropdown (empty array clears selection)")
3216
+ I(o()).describe(
3217
+ "Values to select in a multiple dropdown (empty array clears selection)"
3218
+ )
3215
3219
  ]).describe("Value (string) or values (array) to select in the dropdown")
3216
3220
  });
3217
3221
  O({
3218
- value: o().describe("Visible text of the option to select (matched case-insensitively)")
3222
+ value: o().describe(
3223
+ "Visible text of the option to select (matched case-insensitively)"
3224
+ )
3219
3225
  });
3220
3226
  O({
3221
3227
  checked: w().optional().describe("Desired checked state (true to check, false to uncheck)")
@@ -3328,7 +3334,9 @@ F({
3328
3334
  value: o().describe("Value to select in the dropdown")
3329
3335
  });
3330
3336
  F({
3331
- value: o().describe("Visible text of the option to select (matched case-insensitively)")
3337
+ value: o().describe(
3338
+ "Visible text of the option to select (matched case-insensitively)"
3339
+ )
3332
3340
  });
3333
3341
  F({
3334
3342
  checked: w().optional().describe("Desired checked state (true to check, false to uncheck)")
@@ -3616,7 +3624,9 @@ const un = l({
3616
3624
  tag: o().optional().describe("HTML tag name of the element"),
3617
3625
  role: o().optional().describe("ARIA role of the element"),
3618
3626
  name: o().optional().describe("Accessible name of the element"),
3619
- value: x([o(), I(o())]).optional().describe("Final value of the element after the action (string, or string[] for multi-select)"),
3627
+ value: x([o(), I(o())]).optional().describe(
3628
+ "Final value of the element after the action (string, or string[] for multi-select)"
3629
+ ),
3620
3630
  checked: w().optional().describe("Checked state after the action"),
3621
3631
  disabled: w().optional().describe("Whether the element is disabled"),
3622
3632
  readOnly: w().optional().describe("Whether the element is read-only"),