@syntrologie/runtime-sdk 2.8.0-canary.175 → 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/index.js +13 -7
- package/dist/index.js.map +2 -2
- package/dist/smart-canvas.esm.js +16 -16
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +10 -4
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +17 -17
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7914,10 +7914,15 @@ var SyntroBottomSheet = class extends LitElement6 {
|
|
|
7914
7914
|
}
|
|
7915
7915
|
if (!this._gestureCommitted) {
|
|
7916
7916
|
if (Math.abs(dyPx) < 6) return;
|
|
7917
|
+
if (this.snap !== "full") {
|
|
7918
|
+
this._activePointerId = null;
|
|
7919
|
+
this._samples = [];
|
|
7920
|
+
return;
|
|
7921
|
+
}
|
|
7917
7922
|
const draggingDown = dyPx > 0;
|
|
7918
7923
|
const contentScrollTop = (_b = (_a3 = this._scrollEl) == null ? void 0 : _a3.scrollTop) != null ? _b : 0;
|
|
7919
7924
|
const contentAtTop = contentScrollTop <= 0;
|
|
7920
|
-
const shouldTakeOver = draggingDown
|
|
7925
|
+
const shouldTakeOver = draggingDown && contentAtTop;
|
|
7921
7926
|
if (!shouldTakeOver) {
|
|
7922
7927
|
this._activePointerId = null;
|
|
7923
7928
|
this._samples = [];
|
|
@@ -9503,7 +9508,7 @@ function error(prefix, message, data) {
|
|
|
9503
9508
|
}
|
|
9504
9509
|
|
|
9505
9510
|
// src/version.ts
|
|
9506
|
-
var SDK_VERSION = "2.8.0-canary.
|
|
9511
|
+
var SDK_VERSION = "2.8.0-canary.176";
|
|
9507
9512
|
|
|
9508
9513
|
// src/types.ts
|
|
9509
9514
|
var SDK_SCHEMA_VERSION = "2.0";
|
|
@@ -10095,7 +10100,7 @@ var SmartCanvasElementLit = class extends LitElement9 {
|
|
|
10095
10100
|
}
|
|
10096
10101
|
// ---------- Render -------------------------------------------------------
|
|
10097
10102
|
render() {
|
|
10098
|
-
var _a3, _b, _c, _d;
|
|
10103
|
+
var _a3, _b, _c, _d, _e2, _f, _g;
|
|
10099
10104
|
const hasContent = this._tiles.length > 0 && !this._error;
|
|
10100
10105
|
const showSurface = this._isLoading || hasContent;
|
|
10101
10106
|
if (this._displayMode === "inline") {
|
|
@@ -10109,7 +10114,8 @@ var SmartCanvasElementLit = class extends LitElement9 {
|
|
|
10109
10114
|
></syntro-inline-shell>
|
|
10110
10115
|
`;
|
|
10111
10116
|
}
|
|
10112
|
-
|
|
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;
|
|
10113
10119
|
return html9`
|
|
10114
10120
|
<syntro-canvas-overlay
|
|
10115
10121
|
.isOpen=${this._isOpen}
|
|
@@ -10118,10 +10124,10 @@ var SmartCanvasElementLit = class extends LitElement9 {
|
|
|
10118
10124
|
.error=${this._error}
|
|
10119
10125
|
.canvasTitle=${this._canvasTitle}
|
|
10120
10126
|
.displayMode=${this._displayMode}
|
|
10121
|
-
.runtimeRef=${(
|
|
10122
|
-
.telemetry=${(
|
|
10127
|
+
.runtimeRef=${(_e2 = this.runtime) != null ? _e2 : null}
|
|
10128
|
+
.telemetry=${(_f = this.telemetry) != null ? _f : null}
|
|
10123
10129
|
.themeConfig=${__privateGet(this, _themeCtrl).config}
|
|
10124
|
-
?launcherAnimate=${!!((
|
|
10130
|
+
?launcherAnimate=${!!((_g = this._launcher) == null ? void 0 : _g.animate)}
|
|
10125
10131
|
@canvas-toggle=${__privateGet(this, _onCanvasToggle)}
|
|
10126
10132
|
></syntro-canvas-overlay>
|
|
10127
10133
|
`;
|