dsh-plugin-core-demo 0.15.0 → 0.15.1
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/client.js +17 -7
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -7366,6 +7366,8 @@ function QuickToolbar(props) {
|
|
|
7366
7366
|
return id3 === void 0 ? null : document.getElementById(id3);
|
|
7367
7367
|
};
|
|
7368
7368
|
let observed = null;
|
|
7369
|
+
let lastRight = null;
|
|
7370
|
+
let lastViewport = -1;
|
|
7369
7371
|
const ro = new ResizeObserver(update);
|
|
7370
7372
|
function update() {
|
|
7371
7373
|
const anchorEl = resolveAnchor();
|
|
@@ -7377,11 +7379,19 @@ function QuickToolbar(props) {
|
|
|
7377
7379
|
observed = anchorEl;
|
|
7378
7380
|
}
|
|
7379
7381
|
const viewportWidth = document.documentElement.clientWidth;
|
|
7380
|
-
|
|
7382
|
+
const rect = anchorEl === null ? null : anchorEl.getBoundingClientRect();
|
|
7383
|
+
const anchorRight = rect === null || rect.width === 0 && rect.height === 0 ? null : rect.right;
|
|
7384
|
+
if (viewportWidth === lastViewport && anchorRight === lastRight)
|
|
7385
|
+
return;
|
|
7386
|
+
lastViewport = viewportWidth;
|
|
7387
|
+
lastRight = anchorRight;
|
|
7388
|
+
setLeft(resolveToolbarLeft({ viewportWidth, offset: offset4, size: size4 }, anchorRight));
|
|
7381
7389
|
}
|
|
7382
7390
|
update();
|
|
7391
|
+
const poll = setInterval(update, 100);
|
|
7383
7392
|
window.addEventListener("resize", update);
|
|
7384
7393
|
return () => {
|
|
7394
|
+
clearInterval(poll);
|
|
7385
7395
|
window.removeEventListener("resize", update);
|
|
7386
7396
|
ro.disconnect();
|
|
7387
7397
|
};
|
|
@@ -64940,9 +64950,9 @@ function ReferencePage() {
|
|
|
64940
64950
|
"tbody",
|
|
64941
64951
|
null,
|
|
64942
64952
|
[
|
|
64943
|
-
[t3("buildCore"), `v${"0.15.
|
|
64944
|
-
[t3("buildDemo"), `v${"0.15.
|
|
64945
|
-
[t3("buildStamp"), "261031-
|
|
64953
|
+
[t3("buildCore"), `v${"0.15.1"}`],
|
|
64954
|
+
[t3("buildDemo"), `v${"0.15.1"}`],
|
|
64955
|
+
[t3("buildStamp"), "261031-165826-687"]
|
|
64946
64956
|
].map(
|
|
64947
64957
|
([label, value]) => (0, import_react77.createElement)(
|
|
64948
64958
|
"tr",
|
|
@@ -65266,9 +65276,9 @@ function DemoPage() {
|
|
|
65266
65276
|
lineHeight: "14px"
|
|
65267
65277
|
}
|
|
65268
65278
|
},
|
|
65269
|
-
(0, import_react79.createElement)("span", null, `core v${"0.15.
|
|
65270
|
-
(0, import_react79.createElement)("span", null, `demo v${"0.15.
|
|
65271
|
-
(0, import_react79.createElement)("span", { style: { marginTop: "4px", fontSize: "9px" } }, "261031-
|
|
65279
|
+
(0, import_react79.createElement)("span", null, `core v${"0.15.1"}`),
|
|
65280
|
+
(0, import_react79.createElement)("span", null, `demo v${"0.15.1"}`),
|
|
65281
|
+
(0, import_react79.createElement)("span", { style: { marginTop: "4px", fontSize: "9px" } }, "261031-165826-687")
|
|
65272
65282
|
)
|
|
65273
65283
|
)
|
|
65274
65284
|
),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-core-demo",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "The shared UI foundation for DSH plugins, with a live component preview: design tokens, common controls, workspace browsing and notifications maintained in one place — install it to preview every component in a real host.",
|
|
5
5
|
"icon": "./assets/icon-components.svg",
|
|
6
6
|
"keywords": [
|