@syntrologie/runtime-sdk 2.8.0-canary.174 → 2.8.0-canary.175
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 +24 -15
- package/dist/index.js.map +2 -2
- package/dist/smart-canvas.esm.js +21 -22
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +24 -15
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +22 -23
- 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;
|
|
@@ -7980,7 +7993,7 @@ var SyntroBottomSheet = class extends LitElement6 {
|
|
|
7980
7993
|
display: "flex",
|
|
7981
7994
|
flexDirection: "column",
|
|
7982
7995
|
color: "var(--sc-overlay-text-color)",
|
|
7983
|
-
background:
|
|
7996
|
+
background: this._background,
|
|
7984
7997
|
backdropFilter: this._blur,
|
|
7985
7998
|
WebkitBackdropFilter: this._blur,
|
|
7986
7999
|
borderTop: this._border,
|
|
@@ -7992,7 +8005,7 @@ var SyntroBottomSheet = class extends LitElement6 {
|
|
|
7992
8005
|
};
|
|
7993
8006
|
const handleStyles = {
|
|
7994
8007
|
flex: "0 0 auto",
|
|
7995
|
-
height: "
|
|
8008
|
+
height: "56px",
|
|
7996
8009
|
display: "flex",
|
|
7997
8010
|
alignItems: "center",
|
|
7998
8011
|
justifyContent: "center",
|
|
@@ -8000,10 +8013,10 @@ var SyntroBottomSheet = class extends LitElement6 {
|
|
|
8000
8013
|
touchAction: "none"
|
|
8001
8014
|
};
|
|
8002
8015
|
const grabberStyles = {
|
|
8003
|
-
width: "
|
|
8004
|
-
height: "
|
|
8005
|
-
borderRadius: "
|
|
8006
|
-
background: "rgba(255, 255, 255, 0.
|
|
8016
|
+
width: "48px",
|
|
8017
|
+
height: "5px",
|
|
8018
|
+
borderRadius: "3px",
|
|
8019
|
+
background: "rgba(255, 255, 255, 0.4)"
|
|
8007
8020
|
};
|
|
8008
8021
|
const scrollAreaStyles = {
|
|
8009
8022
|
flex: "1 1 auto",
|
|
@@ -9274,7 +9287,6 @@ var SyntroCanvasOverlay = class extends LitElement7 {
|
|
|
9274
9287
|
.notifications=${notifications}
|
|
9275
9288
|
.themeConfig=${this.themeConfig}
|
|
9276
9289
|
.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
9290
|
?launcherAnimate=${this.launcherAnimate && !this.isOpen}
|
|
9279
9291
|
@launcher-toggle=${this._onLauncherToggle}
|
|
9280
9292
|
></syntro-launcher>
|
|
@@ -9491,7 +9503,7 @@ function error(prefix, message, data) {
|
|
|
9491
9503
|
}
|
|
9492
9504
|
|
|
9493
9505
|
// src/version.ts
|
|
9494
|
-
var SDK_VERSION = "2.8.0-canary.
|
|
9506
|
+
var SDK_VERSION = "2.8.0-canary.175";
|
|
9495
9507
|
|
|
9496
9508
|
// src/types.ts
|
|
9497
9509
|
var SDK_SCHEMA_VERSION = "2.0";
|
|
@@ -10097,7 +10109,7 @@ var SmartCanvasElementLit = class extends LitElement9 {
|
|
|
10097
10109
|
></syntro-inline-shell>
|
|
10098
10110
|
`;
|
|
10099
10111
|
}
|
|
10100
|
-
if (!showSurface
|
|
10112
|
+
if (!showSurface) return nothing8;
|
|
10101
10113
|
return html9`
|
|
10102
10114
|
<syntro-canvas-overlay
|
|
10103
10115
|
.isOpen=${this._isOpen}
|
|
@@ -10730,7 +10742,6 @@ var SyntroLauncher = class extends LitElement11 {
|
|
|
10730
10742
|
__publicField(this, "colorPrimary", TOKEN_PURPLE_42);
|
|
10731
10743
|
__publicField(this, "colorPrimaryHover", TOKEN_PURPLE_5);
|
|
10732
10744
|
__publicField(this, "launcherConfig", {});
|
|
10733
|
-
__publicField(this, "hasActiveTiles", true);
|
|
10734
10745
|
// --- Private reactive state ---
|
|
10735
10746
|
__publicField(this, "_launcherPos", null);
|
|
10736
10747
|
__publicField(this, "_hovered", false);
|
|
@@ -10875,7 +10886,6 @@ var SyntroLauncher = class extends LitElement11 {
|
|
|
10875
10886
|
right: isRight ? "2.5rem" : void 0,
|
|
10876
10887
|
left: !isRight ? "2.5rem" : void 0
|
|
10877
10888
|
};
|
|
10878
|
-
const idleFade = !this.hasActiveTiles && !this.isOpen;
|
|
10879
10889
|
const buttonStyles = {
|
|
10880
10890
|
position: "fixed",
|
|
10881
10891
|
...positionStyles,
|
|
@@ -10894,8 +10904,7 @@ var SyntroLauncher = class extends LitElement11 {
|
|
|
10894
10904
|
border: "none",
|
|
10895
10905
|
backgroundColor: "var(--sc-launcher-background)",
|
|
10896
10906
|
cursor: ((_a3 = this._drag) == null ? void 0 : _a3.dragged) ? "grabbing" : "pointer",
|
|
10897
|
-
touchAction: "none"
|
|
10898
|
-
opacity: idleFade ? "0.3" : "1"
|
|
10907
|
+
touchAction: "none"
|
|
10899
10908
|
};
|
|
10900
10909
|
const animateClass = this.launcherAnimate && !this.isOpen ? "syntro-launcher-animate" : "";
|
|
10901
10910
|
const showBadge = !this.isOpen && this.notificationCount > 0;
|