gnim 1.3.4 → 1.3.6

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.
Binary file
package/dist/index.ts CHANGED
@@ -3,7 +3,15 @@ export { Fragment } from "./jsx/Fragment.js"
3
3
  export { For } from "./jsx/For.js"
4
4
  export { With } from "./jsx/With.js"
5
5
  export { This } from "./jsx/This.js"
6
- export { createRoot, getScope, onCleanup, onMount, createContext } from "./jsx/scope.js"
6
+ export {
7
+ type Context,
8
+ type Scope,
9
+ createRoot,
10
+ getScope,
11
+ onCleanup,
12
+ onMount,
13
+ createContext,
14
+ } from "./jsx/scope.js"
7
15
  export {
8
16
  type Accessed,
9
17
  type State,
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**: {@link Gtk.Widget.prototype.destroy}
21
- * - **Gnome**: {@link Clutter.Actor.prototype.destroy}
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**: {@link Gtk.Widget.prototype.destroy}
21
- * - **Gnome**: {@link Clutter.Actor.prototype.destroy}
15
+ * - **Gtk3**: Gtk.Widget.prototype.destroy
16
+ * - **Gnome**: Clutter.Actor.prototype.destroy
22
17
  */
23
18
  cleanup?: null | ((element: E) => void)
24
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gnim",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "type": "module",
5
5
  "author": "Aylur",
6
6
  "license": "MIT",