@solidrt/flux-types 0.0.41 → 0.0.42

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.
@@ -30,8 +30,28 @@ declare module "flux:rendertree" {
30
30
  export function destroyNode(nodeId: number): void
31
31
  /** Write a single property on a node; `value` is marshalled per property. */
32
32
  export function setProperty(nodeId: number, name: string, value: unknown): void
33
+ /**
34
+ * Declare which pointer deliveries the node's handlers want, as a bitmask
35
+ * (move 1, down 2, up 4, enter 8, leave 16, wheel 32): the runtime skips
36
+ * building events that would reach no listener. Maintained by core's
37
+ * handler registry; apps do not call this directly.
38
+ */
39
+ export function setEventInterest(nodeId: number, bits: number): void
40
+ /**
41
+ * IME behavior for a text session, mirroring SDL's text-input properties.
42
+ * An unset knob keeps the OS default - notably capitalization defaults to
43
+ * "sentences" for plain text, which identifier fields and terminals want
44
+ * off. Read when the session starts.
45
+ */
46
+ export interface TextInputHints {
47
+ /** Semantic input type, steering the keyboard layout and masking. */
48
+ type?: "text" | "name" | "email" | "username" | "password" | "number" | "pin"
49
+ capitalize?: "none" | "sentences" | "words" | "letters"
50
+ autocorrect?: boolean
51
+ multiline?: boolean
52
+ }
33
53
  /** Enable or disable text-input capture / the on-screen keyboard. */
34
- export function setTextInputActive(active: boolean): void
54
+ export function setTextInputActive(active: boolean, hints?: TextInputHints): void
35
55
  /** Request that a frame be rendered soon (coalesced by the demand-driven loop). */
36
56
  export function requestFrame(): void
37
57
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidrt/flux-types",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "license": "MIT",
5
5
  "author": "Antoine van Wel",
6
6
  "types": "index.d.ts",