@8wave/ai-elements 0.121.0-beta.59 → 0.121.0-beta.60

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.
@@ -39,6 +39,17 @@ export declare function formSubmittedByEnter(element: Element): HTMLFormElement
39
39
  * when it has no button.
40
40
  */
41
41
  export declare function submitByEnter(form: HTMLFormElement): void;
42
+ /**
43
+ * Stops the submits of `form` until released: a page's own handler of a key
44
+ * may send the form (`requestSubmit()`, a click on its button) where the
45
+ * user approved no card. Listened in capture at the form's root, before the
46
+ * page's own listeners. A form sent with `submit()` or a request of the
47
+ * page's own fires no event, and goes through as any script of the page.
48
+ */
49
+ export declare function holdSubmits(form: HTMLFormElement): {
50
+ readonly stopped: boolean;
51
+ release(): void;
52
+ };
42
53
  /**
43
54
  * What Escape does in a dialog when the page leaves it to the browser: the
44
55
  * dialog's `cancel`, which the site may refuse, then its closing.
@@ -68,6 +68,14 @@ export declare function confirmationQuestion(element: Element, rules: PageRules,
68
68
  }): string | undefined;
69
69
  /** The options of a select the agent may see and pick: not the excluded ones. */
70
70
  export declare const allowedOptions: (select: HTMLSelectElement, rules: PageRules) => HTMLOptionElement[];
71
+ /**
72
+ * The list of options a combobox shows open: the one its field, or the
73
+ * combobox around the field, names with `aria-controls` or `aria-owns` while
74
+ * `aria-expanded` is true. On many sites typing opens it, and the text typed
75
+ * is not a choice until an option is picked (spec
76
+ * `page-tools-improvements.md`, M10).
77
+ */
78
+ export declare const openListOf: (element: Element, rules: PageRules) => Element | null;
71
79
  /**
72
80
  * The language a name stands for: a code (`it`, `en-US`) or the language's
73
81
  * name in the page's language, in English or in itself ("Italiano",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8wave/ai-elements",
3
3
  "private": false,
4
- "version": "0.121.0-beta.59",
4
+ "version": "0.121.0-beta.60",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",