@threenative/ui 0.3.12 → 0.3.15
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/index.js +2 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -50,12 +50,13 @@ function GameCanvas({
|
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
|
+
var DEV_GLOBAL_KEY = "__THREENATIVE__";
|
|
53
54
|
var isDev = import.meta.env?.DEV === true;
|
|
54
55
|
var ROW_LIMIT = 50;
|
|
55
56
|
var DEFAULT_SMALL_PIXELS = 32;
|
|
56
57
|
var SORTS = ["triangles", "draws", "projected"];
|
|
57
58
|
function devTools() {
|
|
58
|
-
return globalThis.window?.
|
|
59
|
+
return globalThis.window?.[DEV_GLOBAL_KEY];
|
|
59
60
|
}
|
|
60
61
|
function readSnapshot() {
|
|
61
62
|
const snapshot = devTools()?.snapshot;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threenative/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React bindings for mounting a ThreeNative game and reading throttled state.",
|
|
6
6
|
"keywords": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@threenative/core": ">=0.3.
|
|
44
|
+
"@threenative/core": ">=0.3.15 <0.4.0",
|
|
45
45
|
"react": ">=19.2.0 <20",
|
|
46
46
|
"react-dom": ">=19.2.0 <20"
|
|
47
47
|
},
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"tsup": "8.5.1",
|
|
57
57
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
58
58
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
59
|
-
"@threenative/core": "0.3.
|
|
59
|
+
"@threenative/core": "0.3.15"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsup --config tsup.config.ts && publint",
|