@akohn/dashql-react 0.0.20-dev.910.gb19698f46 → 0.0.20-dev.926.g2ff4a74ef
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/dom/app_host.d.ts +2 -1
- package/dist/dom/app_host.js +6 -3
- package/package.json +2 -2
package/dist/dom/app_host.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare enum AppHost {
|
|
2
2
|
WEB = "web",
|
|
3
|
-
|
|
3
|
+
NATIVE = "native"
|
|
4
4
|
}
|
|
5
5
|
export declare function getAppHost(): AppHost;
|
|
6
|
+
export declare function getStartupHost(): 'electron' | 'tauri' | 'web';
|
|
6
7
|
export declare function isDesktopHost(): boolean;
|
package/dist/dom/app_host.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
var AppHost = /* @__PURE__ */ function(AppHost) {
|
|
2
2
|
AppHost["WEB"] = "web";
|
|
3
|
-
AppHost["
|
|
3
|
+
AppHost["NATIVE"] = "native";
|
|
4
4
|
return AppHost;
|
|
5
5
|
}({});
|
|
6
6
|
function getAppHost() {
|
|
7
|
-
if ("
|
|
7
|
+
if ("dashqlHost" in globalThis) return AppHost.NATIVE;
|
|
8
8
|
return AppHost.WEB;
|
|
9
9
|
}
|
|
10
|
+
function getStartupHost() {
|
|
11
|
+
return globalThis.dashqlHost?.kind ?? "web";
|
|
12
|
+
}
|
|
10
13
|
function isDesktopHost() {
|
|
11
14
|
return getAppHost() !== AppHost.WEB;
|
|
12
15
|
}
|
|
13
|
-
export { AppHost, getAppHost, isDesktopHost };
|
|
16
|
+
export { AppHost, getAppHost, getStartupHost, isDesktopHost };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akohn/dashql-react",
|
|
3
|
-
"version": "0.0.20-dev.
|
|
3
|
+
"version": "0.0.20-dev.926.g2ff4a74ef",
|
|
4
4
|
"description": "DashQL in React: the hooks of the runtime of @akohn/dashql, the models that components show, the components, and the design tokens, fonts and icons of DashQL",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"react-window": "^2.5.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@akohn/dashql": "0.0.20-dev.
|
|
36
|
+
"@akohn/dashql": "0.0.20-dev.926.g2ff4a74ef",
|
|
37
37
|
"apache-arrow": "^21.2.0",
|
|
38
38
|
"react": "^19.3.1",
|
|
39
39
|
"react-dom": "^19.3.1",
|