@lls-a1/dsh-balance-float 1.1.46 → 1.1.47
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/client.js +5 -27
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -311,12 +311,12 @@ window.__ModuleLoader__.load({
|
|
|
311
311
|
'.dbf-version.has-update{color:var(--dsw-alias-state-error-primary)}',
|
|
312
312
|
'.dbf-version.has-update .dbf-version-glyph{opacity:1}',
|
|
313
313
|
'.dbf-modal{position:fixed;top:0;right:0;bottom:0;left:0;height:100dvh;z-index:10;display:flex;align-items:center;justify-content:center;padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(12px + env(safe-area-inset-bottom,0px));background:rgba(0,0,0,.45);overscroll-behavior:contain;touch-action:none}',
|
|
314
|
-
'.dbf-dialog{position:fixed;top:0;
|
|
314
|
+
'.dbf-dialog{position:fixed;top:0;left:0;width:100vw;height:100dvh;min-width:100vw;min-height:100dvh;max-width:none;max-height:none;margin:0;padding:calc(12px + env(safe-area-inset-top,0px)) 12px calc(12px + env(safe-area-inset-bottom,0px));border:0;box-sizing:border-box;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;overflow:hidden;overscroll-behavior:contain;outline:none}',
|
|
315
315
|
'.dbf-dialog:focus,.dbf-dialog:focus-visible{outline:none}',
|
|
316
316
|
'.dbf-modal-open{scrollbar-width:none}',
|
|
317
317
|
'.dbf-modal-open ::-webkit-scrollbar{width:0;height:0;display:none}',
|
|
318
318
|
'.dbf-dialog::backdrop{background:rgba(0,0,0,.45)}',
|
|
319
|
-
'.dbf-modal-card{width:min(308px,
|
|
319
|
+
'.dbf-modal-card{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(308px,calc(100vw - 24px));margin:0;max-height:calc(100dvh - 24px);overflow:auto;touch-action:auto;overscroll-behavior:contain;padding:16px;border-radius:14px;box-shadow:0 18px 48px rgba(0,0,0,calc(.34 * var(--dbf-shadow,1)));background:var(--dsw-alias-bg-layer-1,Canvas);color:var(--dsw-alias-label-primary,CanvasText)}',
|
|
320
320
|
'.dbf-modal-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}',
|
|
321
321
|
'.dbf-modal-icon{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-bg-overlay));color:var(--dsw-alias-brand-primary,#4d6bfe);font-size:12px;line-height:1}',
|
|
322
322
|
'.dbf-modal-title{font-size:13px;font-weight:600}',
|
|
@@ -629,30 +629,6 @@ window.__ModuleLoader__.load({
|
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
631
|
|
|
632
|
-
/** Copy the install spec so the user can update from the plugin manager. */
|
|
633
|
-
const copyInstallSpec = useCallback(async () => {
|
|
634
|
-
const spec = NPM_SPEC;
|
|
635
|
-
try {
|
|
636
|
-
await navigator.clipboard.writeText(spec);
|
|
637
|
-
} catch {
|
|
638
|
-
const area = document.createElement('textarea');
|
|
639
|
-
area.value = spec;
|
|
640
|
-
area.style.position = 'fixed';
|
|
641
|
-
area.style.opacity = '0';
|
|
642
|
-
document.body.appendChild(area);
|
|
643
|
-
area.select();
|
|
644
|
-
try {
|
|
645
|
-
document.execCommand('copy');
|
|
646
|
-
} finally {
|
|
647
|
-
document.body.removeChild(area);
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
setCopied(true);
|
|
651
|
-
window.setTimeout(() => {
|
|
652
|
-
if (aliveRef.current) setCopied(false);
|
|
653
|
-
}, 2200);
|
|
654
|
-
}, [update]);
|
|
655
|
-
|
|
656
632
|
const flashAtRef = useRef(null);
|
|
657
633
|
const flashTimerRef = useRef(null);
|
|
658
634
|
const leaveTimerRef = useRef(null);
|
|
@@ -1769,7 +1745,9 @@ window.__ModuleLoader__.load({
|
|
|
1769
1745
|
h('style', { key: 'css' }, STYLE),
|
|
1770
1746
|
surface,
|
|
1771
1747
|
bubble,
|
|
1772
|
-
updateModal
|
|
1748
|
+
createPortal !== null && typeof document !== 'undefined' && updateModal !== null
|
|
1749
|
+
? createPortal(updateModal, document.body)
|
|
1750
|
+
: updateModal,
|
|
1773
1751
|
);
|
|
1774
1752
|
return createPortal !== null && typeof document !== 'undefined' ? createPortal(tree, document.body) : tree;
|
|
1775
1753
|
}
|