gnim 1.3.3 → 1.3.5
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/dist/dbus.ts +1 -1
- package/dist/gnim.gresource +0 -0
- package/dist/jsx/For.ts +2 -7
- package/dist/jsx/With.ts +2 -7
- package/package.json +1 -1
package/dist/dbus.ts
CHANGED
|
@@ -8,7 +8,7 @@ import Gio from "gi://Gio"
|
|
|
8
8
|
import GLib from "gi://GLib"
|
|
9
9
|
import GObject from "gi://GObject"
|
|
10
10
|
import { definePropertyGetter, kebabify, xml } from "./util.js"
|
|
11
|
-
import {
|
|
11
|
+
import type { DeepInfer } from "./variant.js"
|
|
12
12
|
import {
|
|
13
13
|
register,
|
|
14
14
|
property as gproperty,
|
package/dist/gnim.gresource
CHANGED
|
Binary file
|
package/dist/jsx/For.ts
CHANGED
|
@@ -3,11 +3,6 @@ import { Accessor, type State, createState } from "./state.js"
|
|
|
3
3
|
import { env } from "./env.js"
|
|
4
4
|
import { getScope, onCleanup, Scope } from "./scope.js"
|
|
5
5
|
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7
|
-
import type Clutter from "gi://Clutter"
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9
|
-
import type Gtk from "gi://Gtk?version=3.0"
|
|
10
|
-
|
|
11
6
|
interface ForProps<Item, El extends JSX.Element, Key> {
|
|
12
7
|
each: Accessor<Iterable<Item>>
|
|
13
8
|
children: (item: Item, index: Accessor<number>) => El
|
|
@@ -17,8 +12,8 @@ interface ForProps<Item, El extends JSX.Element, Key> {
|
|
|
17
12
|
* The default value depends on the environment:
|
|
18
13
|
*
|
|
19
14
|
* - **Gtk4**: null
|
|
20
|
-
* - **Gtk3**:
|
|
21
|
-
* - **Gnome**:
|
|
15
|
+
* - **Gtk3**: Gtk.Widget.prototype.destroy
|
|
16
|
+
* - **Gnome**: Clutter.Actor.prototype.destroy
|
|
22
17
|
*/
|
|
23
18
|
cleanup?: null | ((element: El, item: Item, index: number) => void)
|
|
24
19
|
|
package/dist/jsx/With.ts
CHANGED
|
@@ -3,11 +3,6 @@ import { Accessor } from "./state.js"
|
|
|
3
3
|
import { env } from "./env.js"
|
|
4
4
|
import { getScope, onCleanup, Scope } from "./scope.js"
|
|
5
5
|
|
|
6
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7
|
-
import type Clutter from "gi://Clutter"
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9
|
-
import type Gtk from "gi://Gtk?version=3.0"
|
|
10
|
-
|
|
11
6
|
interface WithProps<T, E extends JSX.Element> {
|
|
12
7
|
value: Accessor<T>
|
|
13
8
|
children: (value: T) => E | "" | false | null | undefined
|
|
@@ -17,8 +12,8 @@ interface WithProps<T, E extends JSX.Element> {
|
|
|
17
12
|
* The default value depends on the environment:
|
|
18
13
|
*
|
|
19
14
|
* - **Gtk4**: null
|
|
20
|
-
* - **Gtk3**:
|
|
21
|
-
* - **Gnome**:
|
|
15
|
+
* - **Gtk3**: Gtk.Widget.prototype.destroy
|
|
16
|
+
* - **Gnome**: Clutter.Actor.prototype.destroy
|
|
22
17
|
*/
|
|
23
18
|
cleanup?: null | ((element: E) => void)
|
|
24
19
|
}
|