@peachy/react 0.0.12 → 0.0.14
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/README.md +1 -1
- package/dist/env.d.mts +2 -0
- package/dist/extra.d.mts +1 -1
- package/dist/hostconfig.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +19 -11
- package/tsconfig.app.json +10 -0
- package/tsconfig.json +5 -13
package/README.md
CHANGED
package/dist/env.d.mts
ADDED
package/dist/extra.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PeachyExtraMethods } from "./types.mjs";
|
|
2
|
-
import Gtk from "gi://Gtk?version=4.0";
|
|
3
2
|
import GObject from "gi://GObject?version=2.0";
|
|
3
|
+
import Gtk from "gi://Gtk?version=4.0";
|
|
4
4
|
|
|
5
5
|
//#region src/extra.d.ts
|
|
6
6
|
declare const extraMap: Map<GObject.GType<unknown>, PeachyExtraMethods<Gtk.Widget, {}>>;
|
package/dist/hostconfig.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { hideInstance, unhideInstance } from "./utilities/suspend.mjs";
|
|
|
6
6
|
import Gtk from "gi://Gtk?version=4.0";
|
|
7
7
|
import { createContext } from "react";
|
|
8
8
|
import GLib from "gi://GLib?version=2.0";
|
|
9
|
-
import { DefaultEventPriority, NoEventPriority } from "react-reconciler/constants";
|
|
9
|
+
import { DefaultEventPriority, NoEventPriority } from "react-reconciler/constants.js";
|
|
10
10
|
//#region src/hostconfig.ts
|
|
11
11
|
const emptyObject = {};
|
|
12
12
|
let updatePriority = NoEventPriority;
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./global.d.mts";
|
|
2
2
|
import { hostConfig } from "./hostconfig.mjs";
|
|
3
3
|
import Gtk from "gi://Gtk?version=4.0";
|
|
4
|
-
import { ConcurrentRoot, LegacyRoot } from "react-reconciler/constants";
|
|
4
|
+
import { ConcurrentRoot, LegacyRoot } from "react-reconciler/constants.js";
|
|
5
5
|
import "reflect-metadata";
|
|
6
6
|
import "@peachy/polyfills/performance";
|
|
7
7
|
import Reconciler from "react-reconciler";
|
package/dist/types.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peachy/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Run GJS applications with react",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Angelo Verlain <hey@vixalien.com>",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
|
-
"tsconfig.json"
|
|
9
|
+
"tsconfig.json",
|
|
10
|
+
"tsconfig.app.json"
|
|
10
11
|
],
|
|
11
12
|
"main": "./dist/index.mjs",
|
|
12
13
|
"exports": {
|
|
@@ -18,25 +19,32 @@
|
|
|
18
19
|
"import": "./dist/*.mjs",
|
|
19
20
|
"types": "./dist/*.d.mts"
|
|
20
21
|
},
|
|
21
|
-
"./tsconfig": "./tsconfig.json"
|
|
22
|
+
"./tsconfig.lib": "./tsconfig.json",
|
|
23
|
+
"./tsconfig.app": "./tsconfig.app.json",
|
|
24
|
+
"./types": {
|
|
25
|
+
"types": "./dist/env.d.mts"
|
|
26
|
+
}
|
|
22
27
|
},
|
|
23
28
|
"dependencies": {
|
|
24
|
-
"
|
|
25
|
-
"react": "^19.2.4",
|
|
29
|
+
"react": "^19.2.5",
|
|
26
30
|
"react-reconciler": "^0.33.0",
|
|
27
31
|
"reflect-metadata": "^0.2.2",
|
|
28
|
-
"@peachy/core": "0.0.
|
|
29
|
-
"@peachy/polyfills": "0.0.
|
|
32
|
+
"@peachy/core": "0.0.14",
|
|
33
|
+
"@peachy/polyfills": "0.0.14"
|
|
30
34
|
},
|
|
31
35
|
"devDependencies": {
|
|
32
|
-
"@types
|
|
36
|
+
"@peachy/types": "^2026.4.9",
|
|
37
|
+
"@types/node": "^25.5.2",
|
|
33
38
|
"@types/react": "^19.2.14",
|
|
34
39
|
"@types/react-reconciler": "^0.33.0",
|
|
35
|
-
"tsdown": "0.21.
|
|
36
|
-
"typescript": "^
|
|
40
|
+
"tsdown": "0.21.7",
|
|
41
|
+
"typescript": "^6.0.2"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@peachy/types": "^2026.4.9"
|
|
37
45
|
},
|
|
38
46
|
"scripts": {
|
|
39
|
-
"build": "tsdown"
|
|
47
|
+
"build": "tsdown && cp src/env.d.ts dist/env.d.mts"
|
|
40
48
|
},
|
|
41
49
|
"types": "./dist/index.d.mts"
|
|
42
50
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"extends": "@peachy/core/tsconfig.app",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"jsx": "react-jsx",
|
|
6
|
+
"jsxImportSource": "@peachy/react",
|
|
7
|
+
"types": ["@peachy/react/types"]
|
|
8
|
+
},
|
|
9
|
+
"include": ["@peachy/react/types", "${configDir}/src"]
|
|
10
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"extends": "@peachy/core/tsconfig.lib",
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"jsx": "react-jsx",
|
|
5
|
-
"jsxImportSource": "@peachy/react"
|
|
6
|
+
"jsxImportSource": "@peachy/react",
|
|
7
|
+
"types": ["@peachy/react/types", "node"]
|
|
6
8
|
},
|
|
7
|
-
"include": [
|
|
8
|
-
// when installed locally
|
|
9
|
-
"./node_modules/@peachy/types/types/index.d.ts",
|
|
10
|
-
"./node_modules/@peachy/core/node_modules/@peachy/plugin-resources/src/modules.d.ts",
|
|
11
|
-
"./node_modules/@peachy/core/node_modules/@peachy/plugin-css/src/modules.d.ts",
|
|
12
|
-
// when installed via npm/pnpm
|
|
13
|
-
"../types/types/index.d.ts",
|
|
14
|
-
"../plugin-resources/src/modules.d.ts",
|
|
15
|
-
"../plugin-css/src/modules.d.ts",
|
|
16
|
-
"${configDir}/src/**/*"
|
|
17
|
-
]
|
|
9
|
+
"include": ["@peachy/react/types", "${configDir}/src"]
|
|
18
10
|
}
|