@akohn/dashql-react 0.0.20-dev.926.g2ff4a74ef → 0.0.20-dev.999.g871f26d7a
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/anchored_position.js +2 -2
- package/dist/dom/app_host.d.ts +1 -6
- package/dist/dom/app_host.js +5 -14
- package/dist/style.css +6 -4
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useObservedSize } from "../components/size_observer.js";
|
|
2
|
-
import {
|
|
2
|
+
import { isMacDesktopHost } from "./app_host.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
var AnchorAlignment = /* @__PURE__ */ function(AnchorAlignment) {
|
|
5
5
|
AnchorAlignment[AnchorAlignment["Start"] = 0] = "Start";
|
|
@@ -108,7 +108,7 @@ function getClippingRect(element) {
|
|
|
108
108
|
var VIEWPORT_INSET = 16;
|
|
109
109
|
var MACOS_TITLE_BAR_INSET = 36;
|
|
110
110
|
function getTopViewportInset() {
|
|
111
|
-
return
|
|
111
|
+
return isMacDesktopHost() ? MACOS_TITLE_BAR_INSET : VIEWPORT_INSET;
|
|
112
112
|
}
|
|
113
113
|
var positionDefaults = {
|
|
114
114
|
side: AnchorSide.OutsideBottom,
|
package/dist/dom/app_host.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export declare enum AppHost {
|
|
2
|
-
WEB = "web",
|
|
3
|
-
NATIVE = "native"
|
|
4
|
-
}
|
|
5
|
-
export declare function getAppHost(): AppHost;
|
|
6
|
-
export declare function getStartupHost(): 'electron' | 'tauri' | 'web';
|
|
7
1
|
export declare function isDesktopHost(): boolean;
|
|
2
|
+
export declare function isMacDesktopHost(): boolean;
|
package/dist/dom/app_host.js
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
var AppHost = /* @__PURE__ */ function(AppHost) {
|
|
2
|
-
AppHost["WEB"] = "web";
|
|
3
|
-
AppHost["NATIVE"] = "native";
|
|
4
|
-
return AppHost;
|
|
5
|
-
}({});
|
|
6
|
-
function getAppHost() {
|
|
7
|
-
if ("dashqlHost" in globalThis) return AppHost.NATIVE;
|
|
8
|
-
return AppHost.WEB;
|
|
9
|
-
}
|
|
10
|
-
function getStartupHost() {
|
|
11
|
-
return globalThis.dashqlHost?.kind ?? "web";
|
|
12
|
-
}
|
|
13
1
|
function isDesktopHost() {
|
|
14
|
-
return
|
|
2
|
+
return "dashqlHost" in globalThis;
|
|
3
|
+
}
|
|
4
|
+
function isMacDesktopHost() {
|
|
5
|
+
return globalThis.dashqlHost?.updates !== void 0;
|
|
15
6
|
}
|
|
16
|
-
export {
|
|
7
|
+
export { isDesktopHost, isMacDesktopHost };
|
package/dist/style.css
CHANGED
|
@@ -197,7 +197,8 @@
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
/* A compact window has no room for the inset: an expanded overlay fills it below the top bar, with the rounded top
|
|
200
|
-
corners of the card of the page below the bar
|
|
200
|
+
corners of the card of the page below the bar, and above the home indicator unless a bar at the bottom keeps clear
|
|
201
|
+
of it */
|
|
201
202
|
@media only screen and (max-width: 839px) {
|
|
202
203
|
.dashql_overlay_TjPFFF.dashql_expanded_M5TUAX {
|
|
203
204
|
width: 100vw;
|
|
@@ -206,7 +207,7 @@
|
|
|
206
207
|
max-height: calc(100dvh - var(--nav_bar_top_height, 0px) - var(--nav_bar_bottom_height, 0px));
|
|
207
208
|
border-width: 0;
|
|
208
209
|
border-radius: var(--border_radius) var(--border_radius) 0 0;
|
|
209
|
-
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
210
|
+
padding-bottom: max(0px, env(safe-area-inset-bottom, 0px) - var(--nav_bar_bottom_height, 0px));
|
|
210
211
|
box-sizing: border-box;
|
|
211
212
|
}
|
|
212
213
|
}
|
|
@@ -1461,7 +1462,8 @@
|
|
|
1461
1462
|
padding: 8px 16px 16px;
|
|
1462
1463
|
}
|
|
1463
1464
|
|
|
1464
|
-
/* From the bottom of a compact window, at most as high as most of the window, above the home indicator
|
|
1465
|
+
/* From the bottom of a compact window, at most as high as most of the window, above the home indicator: a bar at
|
|
1466
|
+
the bottom keeps clear of it already */
|
|
1465
1467
|
@media only screen and (max-width: 839px) {
|
|
1466
1468
|
.dashql_sheet_8NBFjE {
|
|
1467
1469
|
top: auto;
|
|
@@ -1473,7 +1475,7 @@
|
|
|
1473
1475
|
grid-template-rows: 14px auto minmax(0, 1fr);
|
|
1474
1476
|
border-width: 1px 0 0;
|
|
1475
1477
|
border-radius: 16px 16px 0 0;
|
|
1476
|
-
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
1478
|
+
padding-bottom: max(0px, env(safe-area-inset-bottom, 0px) - var(--nav_bar_bottom_height, 0px));
|
|
1477
1479
|
animation-name: dashql_sheet-in-bottom_SVKPYP;
|
|
1478
1480
|
}
|
|
1479
1481
|
|
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.999.g871f26d7a",
|
|
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.999.g871f26d7a",
|
|
37
37
|
"apache-arrow": "^21.2.0",
|
|
38
38
|
"react": "^19.3.1",
|
|
39
39
|
"react-dom": "^19.3.1",
|