@syntrologie/runtime-sdk 2.8.0-canary.174 → 2.8.0-canary.176
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/components/SyntroBottomSheet.d.ts +4 -0
- package/dist/components/SyntroLauncher.d.ts +0 -1
- package/dist/index.js +35 -20
- package/dist/index.js.map +2 -2
- package/dist/smart-canvas.esm.js +10 -11
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +31 -16
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +10 -11
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -142,6 +142,10 @@ export declare class SyntroBottomSheet extends LitElement {
|
|
|
142
142
|
private get _easing();
|
|
143
143
|
private get _border();
|
|
144
144
|
private get _blur();
|
|
145
|
+
/** Bottom sheets always overlay page content, so ``transparent``
|
|
146
|
+
* (common in push-layout drawer configs) is replaced with a visible
|
|
147
|
+
* fallback derived from the overlay background. */
|
|
148
|
+
private get _background();
|
|
145
149
|
private get _backdrop();
|
|
146
150
|
private get _backdropColor();
|
|
147
151
|
/** Resolved snap-point heights (vh). */
|
package/dist/index.js
CHANGED
|
@@ -7742,8 +7742,21 @@ var SyntroBottomSheet = class extends LitElement6 {
|
|
|
7742
7742
|
return (_a3 = this._canvas.border) != null ? _a3 : "1px solid rgba(255, 255, 255, 0.08)";
|
|
7743
7743
|
}
|
|
7744
7744
|
get _blur() {
|
|
7745
|
-
|
|
7746
|
-
|
|
7745
|
+
const blur = this._canvas.blur;
|
|
7746
|
+
if (!blur || blur === "none") return "blur(24px)";
|
|
7747
|
+
return blur;
|
|
7748
|
+
}
|
|
7749
|
+
/** Bottom sheets always overlay page content, so ``transparent``
|
|
7750
|
+
* (common in push-layout drawer configs) is replaced with a visible
|
|
7751
|
+
* fallback derived from the overlay background. */
|
|
7752
|
+
get _background() {
|
|
7753
|
+
var _a3, _b;
|
|
7754
|
+
const bg = this._canvas.background;
|
|
7755
|
+
if (!bg || bg === "transparent" || bg === "none") {
|
|
7756
|
+
const overlayBg = (_b = (_a3 = this.themeConfig) == null ? void 0 : _a3.overlay) == null ? void 0 : _b.background;
|
|
7757
|
+
return overlayBg != null ? overlayBg : "rgba(0, 0, 0, 0.85)";
|
|
7758
|
+
}
|
|
7759
|
+
return bg;
|
|
7747
7760
|
}
|
|
7748
7761
|
get _backdrop() {
|
|
7749
7762
|
var _a3;
|
|
@@ -7901,10 +7914,15 @@ var SyntroBottomSheet = class extends LitElement6 {
|
|
|
7901
7914
|
}
|
|
7902
7915
|
if (!this._gestureCommitted) {
|
|
7903
7916
|
if (Math.abs(dyPx) < 6) return;
|
|
7917
|
+
if (this.snap !== "full") {
|
|
7918
|
+
this._activePointerId = null;
|
|
7919
|
+
this._samples = [];
|
|
7920
|
+
return;
|
|
7921
|
+
}
|
|
7904
7922
|
const draggingDown = dyPx > 0;
|
|
7905
7923
|
const contentScrollTop = (_b = (_a3 = this._scrollEl) == null ? void 0 : _a3.scrollTop) != null ? _b : 0;
|
|
7906
7924
|
const contentAtTop = contentScrollTop <= 0;
|
|
7907
|
-
const shouldTakeOver = draggingDown
|
|
7925
|
+
const shouldTakeOver = draggingDown && contentAtTop;
|
|
7908
7926
|
if (!shouldTakeOver) {
|
|
7909
7927
|
this._activePointerId = null;
|
|
7910
7928
|
this._samples = [];
|
|
@@ -7980,7 +7998,7 @@ var SyntroBottomSheet = class extends LitElement6 {
|
|
|
7980
7998
|
display: "flex",
|
|
7981
7999
|
flexDirection: "column",
|
|
7982
8000
|
color: "var(--sc-overlay-text-color)",
|
|
7983
|
-
background:
|
|
8001
|
+
background: this._background,
|
|
7984
8002
|
backdropFilter: this._blur,
|
|
7985
8003
|
WebkitBackdropFilter: this._blur,
|
|
7986
8004
|
borderTop: this._border,
|
|
@@ -7992,7 +8010,7 @@ var SyntroBottomSheet = class extends LitElement6 {
|
|
|
7992
8010
|
};
|
|
7993
8011
|
const handleStyles = {
|
|
7994
8012
|
flex: "0 0 auto",
|
|
7995
|
-
height: "
|
|
8013
|
+
height: "56px",
|
|
7996
8014
|
display: "flex",
|
|
7997
8015
|
alignItems: "center",
|
|
7998
8016
|
justifyContent: "center",
|
|
@@ -8000,10 +8018,10 @@ var SyntroBottomSheet = class extends LitElement6 {
|
|
|
8000
8018
|
touchAction: "none"
|
|
8001
8019
|
};
|
|
8002
8020
|
const grabberStyles = {
|
|
8003
|
-
width: "
|
|
8004
|
-
height: "
|
|
8005
|
-
borderRadius: "
|
|
8006
|
-
background: "rgba(255, 255, 255, 0.
|
|
8021
|
+
width: "48px",
|
|
8022
|
+
height: "5px",
|
|
8023
|
+
borderRadius: "3px",
|
|
8024
|
+
background: "rgba(255, 255, 255, 0.4)"
|
|
8007
8025
|
};
|
|
8008
8026
|
const scrollAreaStyles = {
|
|
8009
8027
|
flex: "1 1 auto",
|
|
@@ -9274,7 +9292,6 @@ var SyntroCanvasOverlay = class extends LitElement7 {
|
|
|
9274
9292
|
.notifications=${notifications}
|
|
9275
9293
|
.themeConfig=${this.themeConfig}
|
|
9276
9294
|
.launcherIcon=${(_e2 = (_d = (_c = this.themeConfig) == null ? void 0 : _c.launcher) == null ? void 0 : _d.icon) != null ? _e2 : null}
|
|
9277
|
-
.hasActiveTiles=${this.tiles.length > 0}
|
|
9278
9295
|
?launcherAnimate=${this.launcherAnimate && !this.isOpen}
|
|
9279
9296
|
@launcher-toggle=${this._onLauncherToggle}
|
|
9280
9297
|
></syntro-launcher>
|
|
@@ -9491,7 +9508,7 @@ function error(prefix, message, data) {
|
|
|
9491
9508
|
}
|
|
9492
9509
|
|
|
9493
9510
|
// src/version.ts
|
|
9494
|
-
var SDK_VERSION = "2.8.0-canary.
|
|
9511
|
+
var SDK_VERSION = "2.8.0-canary.176";
|
|
9495
9512
|
|
|
9496
9513
|
// src/types.ts
|
|
9497
9514
|
var SDK_SCHEMA_VERSION = "2.0";
|
|
@@ -10083,7 +10100,7 @@ var SmartCanvasElementLit = class extends LitElement9 {
|
|
|
10083
10100
|
}
|
|
10084
10101
|
// ---------- Render -------------------------------------------------------
|
|
10085
10102
|
render() {
|
|
10086
|
-
var _a3, _b, _c, _d;
|
|
10103
|
+
var _a3, _b, _c, _d, _e2, _f, _g;
|
|
10087
10104
|
const hasContent = this._tiles.length > 0 && !this._error;
|
|
10088
10105
|
const showSurface = this._isLoading || hasContent;
|
|
10089
10106
|
if (this._displayMode === "inline") {
|
|
@@ -10097,7 +10114,8 @@ var SmartCanvasElementLit = class extends LitElement9 {
|
|
|
10097
10114
|
></syntro-inline-shell>
|
|
10098
10115
|
`;
|
|
10099
10116
|
}
|
|
10100
|
-
|
|
10117
|
+
const configHasTiles = ((_d = (_c = (_b = __privateGet(this, _rawConfig)) == null ? void 0 : _b.tiles) == null ? void 0 : _c.length) != null ? _d : 0) > 0;
|
|
10118
|
+
if (!showSurface && !configHasTiles) return nothing8;
|
|
10101
10119
|
return html9`
|
|
10102
10120
|
<syntro-canvas-overlay
|
|
10103
10121
|
.isOpen=${this._isOpen}
|
|
@@ -10106,10 +10124,10 @@ var SmartCanvasElementLit = class extends LitElement9 {
|
|
|
10106
10124
|
.error=${this._error}
|
|
10107
10125
|
.canvasTitle=${this._canvasTitle}
|
|
10108
10126
|
.displayMode=${this._displayMode}
|
|
10109
|
-
.runtimeRef=${(
|
|
10110
|
-
.telemetry=${(
|
|
10127
|
+
.runtimeRef=${(_e2 = this.runtime) != null ? _e2 : null}
|
|
10128
|
+
.telemetry=${(_f = this.telemetry) != null ? _f : null}
|
|
10111
10129
|
.themeConfig=${__privateGet(this, _themeCtrl).config}
|
|
10112
|
-
?launcherAnimate=${!!((
|
|
10130
|
+
?launcherAnimate=${!!((_g = this._launcher) == null ? void 0 : _g.animate)}
|
|
10113
10131
|
@canvas-toggle=${__privateGet(this, _onCanvasToggle)}
|
|
10114
10132
|
></syntro-canvas-overlay>
|
|
10115
10133
|
`;
|
|
@@ -10730,7 +10748,6 @@ var SyntroLauncher = class extends LitElement11 {
|
|
|
10730
10748
|
__publicField(this, "colorPrimary", TOKEN_PURPLE_42);
|
|
10731
10749
|
__publicField(this, "colorPrimaryHover", TOKEN_PURPLE_5);
|
|
10732
10750
|
__publicField(this, "launcherConfig", {});
|
|
10733
|
-
__publicField(this, "hasActiveTiles", true);
|
|
10734
10751
|
// --- Private reactive state ---
|
|
10735
10752
|
__publicField(this, "_launcherPos", null);
|
|
10736
10753
|
__publicField(this, "_hovered", false);
|
|
@@ -10875,7 +10892,6 @@ var SyntroLauncher = class extends LitElement11 {
|
|
|
10875
10892
|
right: isRight ? "2.5rem" : void 0,
|
|
10876
10893
|
left: !isRight ? "2.5rem" : void 0
|
|
10877
10894
|
};
|
|
10878
|
-
const idleFade = !this.hasActiveTiles && !this.isOpen;
|
|
10879
10895
|
const buttonStyles = {
|
|
10880
10896
|
position: "fixed",
|
|
10881
10897
|
...positionStyles,
|
|
@@ -10894,8 +10910,7 @@ var SyntroLauncher = class extends LitElement11 {
|
|
|
10894
10910
|
border: "none",
|
|
10895
10911
|
backgroundColor: "var(--sc-launcher-background)",
|
|
10896
10912
|
cursor: ((_a3 = this._drag) == null ? void 0 : _a3.dragged) ? "grabbing" : "pointer",
|
|
10897
|
-
touchAction: "none"
|
|
10898
|
-
opacity: idleFade ? "0.3" : "1"
|
|
10913
|
+
touchAction: "none"
|
|
10899
10914
|
};
|
|
10900
10915
|
const animateClass = this.launcherAnimate && !this.isOpen ? "syntro-launcher-animate" : "";
|
|
10901
10916
|
const showBadge = !this.isOpen && this.notificationCount > 0;
|