visualproof 0.11.1 → 0.12.0
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/README.md +5 -1
- package/dist/server/app.js +18 -6
- package/dist/server/appaccess.js +7 -5
- package/dist/server/appcall.js +118 -0
- package/dist/server/appshare.js +27 -4
- package/dist/server/call.js +373 -0
- package/dist/server/children.js +6 -5
- package/dist/server/live.js +46 -2
- package/dist/server/livekit.js +193 -0
- package/dist/server/main.js +30 -0
- package/dist/server/options.js +45 -1
- package/dist/server/pipeline.js +4 -3
- package/dist/server/readonly.js +18 -4
- package/dist/server/readonlygate.js +5 -1
- package/dist/shared/call.js +5 -0
- package/dist/shared/notecard.js +60 -1
- package/dist/web/bundle/app.js +802 -51
- package/dist/web/bundle/call.js +33692 -0
- package/dist/web/index.html +27 -0
- package/dist/web/style.css +181 -9
- package/package.json +2 -1
package/dist/web/index.html
CHANGED
|
@@ -75,6 +75,16 @@
|
|
|
75
75
|
</button>
|
|
76
76
|
<button id="talk-notice" class="glass" type="button" hidden></button>
|
|
77
77
|
</div>
|
|
78
|
+
<!-- the call (CallSpec, web/src/pagecall.ts): opens the reader's own call window; how many are
|
|
79
|
+
in the call, in the accent's colour while it runs; under it, a notice: someone started it,
|
|
80
|
+
invites the reader, removed them, ended it; Rejoin after a reload -->
|
|
81
|
+
<div class="call-wrap">
|
|
82
|
+
<button id="call-btn" class="act-btn act-icon" title="The call" aria-label="Call" aria-pressed="false" hidden>
|
|
83
|
+
<svg viewBox="0 0 16 16" width="15" height="15" aria-hidden="true"><rect x="1.8" y="4.2" width="8.6" height="7.6" rx="1.6"/><path d="M10.4 7.1 14.2 5v6l-3.8-2.1"/></svg>
|
|
84
|
+
<span id="call-badge" class="act-badge" hidden></span>
|
|
85
|
+
</button>
|
|
86
|
+
<div id="call-notice" class="glass" role="status" aria-live="polite" hidden></div>
|
|
87
|
+
</div>
|
|
78
88
|
<!-- the others' initials: a person's opens their menu, to follow them or ask them to follow
|
|
79
89
|
you; under them, what your request to follow came to (web/src/peermenu.ts,
|
|
80
90
|
web/src/askfollow.ts) -->
|
|
@@ -264,6 +274,23 @@
|
|
|
264
274
|
</div>
|
|
265
275
|
<div class="fl-pill"><button class="fl-pill-open" type="button"><span class="fl-pill-text"></span><span class="fl-new" title="Something new"></span></button><button data-cv-close type="button" title="Close the conversations" aria-label="Close">✕</button></div>
|
|
266
276
|
</div>
|
|
277
|
+
<!-- the call window, the reader's own (CallSpec decision 5): its title — how many are in the call,
|
|
278
|
+
for how long — Copy call link, maximize, collapse, close; the pre-join or the call in its
|
|
279
|
+
body (web/src/call/main.ts, loaded when it first opens); the pill it collapses to, with the
|
|
280
|
+
microphone (web/src/pagecall.ts, which adds the edges that resize it) -->
|
|
281
|
+
<div id="call" class="glass" role="region" aria-label="The call" hidden>
|
|
282
|
+
<div class="cl-head">
|
|
283
|
+
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" class="cl-icon"><rect x="1.8" y="4.2" width="8.6" height="7.6" rx="1.6"/><path d="M10.4 7.1 14.2 5v6l-3.8-2.1"/></svg>
|
|
284
|
+
<span class="cl-title">Call</span><span class="cl-count"></span><span class="cl-clock"></span>
|
|
285
|
+
<span class="cl-hgap"></span>
|
|
286
|
+
<button data-cl-link type="button" title="Copy call link: whoever opens it finds the call ready to join" aria-label="Copy call link"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M6.5 9.5l3-3M7 4.5l1.2-1.2a2.6 2.6 0 0 1 3.7 3.7L10.7 8.2M9 11.5l-1.2 1.2a2.6 2.6 0 0 1-3.7-3.7L5.3 7.8" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg></button>
|
|
287
|
+
<button data-cl-max type="button" title="Maximize the window" aria-label="Maximize the window"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6V3h3M13 6V3h-3M3 10v3h3M13 10v3h-3"/></svg></button>
|
|
288
|
+
<button data-collapse type="button" title="Collapse to one line (or double-click the title bar)" aria-label="Collapse"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 8.5h8" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"/></svg></button>
|
|
289
|
+
<button data-cl-close type="button" title="Close (in the call: leave it, pressed twice)" aria-label="Close">✕</button>
|
|
290
|
+
</div>
|
|
291
|
+
<div class="cl-body"></div>
|
|
292
|
+
<div class="fl-pill"><button class="fl-pill-open" type="button"><span class="fl-pill-text"></span></button><button data-cl-mic type="button" aria-label="Microphone" hidden></button><button data-cl-close type="button" title="Leave the call and close" aria-label="Close">✕</button></div>
|
|
293
|
+
</div>
|
|
267
294
|
</div>
|
|
268
295
|
<!-- someone asks you to follow them (CollabSpec decision 10, web/src/askfollow.ts): at the top
|
|
269
296
|
centre, never taking the focus -->
|
package/dist/web/style.css
CHANGED
|
@@ -345,7 +345,7 @@ body.framing #viewbar, body.framing #foot, body.framing #zoom, body.framing #tab
|
|
|
345
345
|
body.framing #bar [inert] { opacity: 0.32; }
|
|
346
346
|
/* both fading as the mode comes and goes */
|
|
347
347
|
body.art-moving :is(#side, #panel, #selbar, #lensbar, #tm-kept, #viewbar, #foot, #zoom, #tabs, #legend) { transition: opacity 240ms ease, visibility 240ms; }
|
|
348
|
-
body.art-moving :is(#bar .brand, #bar .library-wrap, #export-btn, #activity-btn, #bar .talk-wrap, #bar .peers-wrap, #bar .who-wrap, #help-btn, #bar .more-wrap) { transition: opacity 240ms ease; }
|
|
348
|
+
body.art-moving :is(#bar .brand, #bar .library-wrap, #export-btn, #activity-btn, #bar .talk-wrap, #bar .call-wrap, #bar .peers-wrap, #bar .who-wrap, #help-btn, #bar .more-wrap) { transition: opacity 240ms ease; }
|
|
349
349
|
|
|
350
350
|
.glass {
|
|
351
351
|
background: var(--surface);
|
|
@@ -812,7 +812,21 @@ button.o-trust:hover { color: var(--accent); background: var(--code-bg); }
|
|
|
812
812
|
contain: inline-size; position: sticky; bottom: 0; max-height: max(140px, calc(var(--sw-view, 60vh) * 0.45));
|
|
813
813
|
border-top: 1px solid var(--line); box-shadow: 0 -10px 18px -16px rgba(0, 0, 0, 0.35);
|
|
814
814
|
}
|
|
815
|
-
|
|
815
|
+
/* beside the code, as wide as the reader made it (web/src/infoview.ts, paneWidth: its own 360 px); its
|
|
816
|
+
head stays and its body scrolls, so that the grip on its left edge stays in sight */
|
|
817
|
+
.sw-split.iv-side > .sw-info {
|
|
818
|
+
flex: none; width: 360px; position: sticky; top: 0; max-height: var(--sw-view, 70vh); border-left: 1px solid var(--line);
|
|
819
|
+
display: flex; flex-direction: column; overflow: visible;
|
|
820
|
+
}
|
|
821
|
+
.sw-split.iv-side > .sw-info > .iv-head { flex: none; }
|
|
822
|
+
.sw-split.iv-side > .sw-info > .iv-body { flex: 0 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
|
|
823
|
+
/* the grip: the pane's left edge, dragged to widen or narrow it, double-clicked for its own width; the
|
|
824
|
+
line lights under the pointer and while dragged */
|
|
825
|
+
.iv-grip { display: none; }
|
|
826
|
+
.sw-split.iv-side > .sw-info > .iv-grip { display: block; position: absolute; z-index: 2; top: 0; bottom: 0; left: -5px; width: 9px; cursor: ew-resize; touch-action: none; }
|
|
827
|
+
.iv-grip::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: transparent; transition: background 0.15s, box-shadow 0.15s; }
|
|
828
|
+
.iv-grip:hover::after, .iv-sizing .iv-grip::after { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
|
|
829
|
+
.sw-split.iv-sizing, .sw-split.iv-sizing * { cursor: ew-resize !important; user-select: none; -webkit-user-select: none; }
|
|
816
830
|
.iv-head {
|
|
817
831
|
position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px;
|
|
818
832
|
background: var(--surface-solid); border-bottom: 1px solid var(--line); font: 12px var(--font);
|
|
@@ -1553,6 +1567,161 @@ a.cv-chip:hover { border-color: var(--accent); }
|
|
|
1553
1567
|
}
|
|
1554
1568
|
#talk-notice[hidden] { display: none; }
|
|
1555
1569
|
#talk-notice b { color: var(--accent); }
|
|
1570
|
+
|
|
1571
|
+
/* the call (CallSpec; web/src/pagecall.ts, web/src/call/main.ts): its button — how many are in the
|
|
1572
|
+
call, in the accent's colour while it runs —, the notice under it, its window and what the call
|
|
1573
|
+
draws in it. The stage is near black in every theme, as video is */
|
|
1574
|
+
.call-wrap { position: relative; }
|
|
1575
|
+
#call-btn[hidden] { display: none; }
|
|
1576
|
+
#call-btn[aria-pressed="true"], #call-btn.live { border-color: var(--accent); color: var(--accent); }
|
|
1577
|
+
#call-btn.live .act-badge { background: var(--accent); }
|
|
1578
|
+
#call-btn.rejoin { background: color-mix(in srgb, var(--accent) 14%, var(--surface-solid)); }
|
|
1579
|
+
#call-notice {
|
|
1580
|
+
position: absolute; top: 40px; right: 0; z-index: 40; width: min(320px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; padding: 9px 10px;
|
|
1581
|
+
border-radius: 12px; font: 12.5px/1.4 var(--font); color: var(--text); background: var(--surface-solid); box-shadow: 0 0 0 0.5px var(--line), var(--shadow-lg);
|
|
1582
|
+
}
|
|
1583
|
+
#call-notice[hidden] { display: none; }
|
|
1584
|
+
#call-notice b { color: var(--accent); }
|
|
1585
|
+
.cn-acts { display: flex; align-items: center; gap: 6px; }
|
|
1586
|
+
.cn-acts .rv-btn { padding: 4px 12px; font-size: 12.5px; }
|
|
1587
|
+
.cn-x { margin-left: auto; width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--text-2); cursor: pointer; }
|
|
1588
|
+
.cn-x:hover { background: var(--code-bg); color: var(--text); }
|
|
1589
|
+
#call {
|
|
1590
|
+
position: fixed; display: flex; flex-direction: column; padding: 0; border-radius: 14px; overflow: visible;
|
|
1591
|
+
box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); font-size: 12.5px; color: var(--text); --c: var(--accent);
|
|
1592
|
+
}
|
|
1593
|
+
#call[hidden] { display: none; }
|
|
1594
|
+
#call:not(.collapsed) > .fl-rz { display: block; position: absolute; z-index: 4; touch-action: none; }
|
|
1595
|
+
#call.maximized > .fl-rz { display: none; }
|
|
1596
|
+
.cl-head {
|
|
1597
|
+
flex: none; display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 10px; border-bottom: 1px solid var(--line);
|
|
1598
|
+
cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
|
|
1599
|
+
}
|
|
1600
|
+
#call.moving .cl-head { cursor: grabbing; }
|
|
1601
|
+
#call.maximized .cl-head { cursor: default; }
|
|
1602
|
+
#call.moving, #call.sizing { user-select: none; -webkit-user-select: none; }
|
|
1603
|
+
.cl-head .cl-icon { flex: none; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
|
|
1604
|
+
.cl-title { font-weight: 600; }
|
|
1605
|
+
.cl-count, .cl-clock { color: var(--text-2); font-variant-numeric: tabular-nums; }
|
|
1606
|
+
.cl-hgap { flex: 1 1 auto; }
|
|
1607
|
+
.cl-head > button, #call .fl-pill > button[data-cl-close], #call .fl-pill > button[data-cl-mic] {
|
|
1608
|
+
display: inline-grid; place-items: center; flex: none; padding: 0; border: 0; background: transparent;
|
|
1609
|
+
color: var(--text-2); cursor: pointer; width: 24px; height: 24px; border-radius: 6px;
|
|
1610
|
+
}
|
|
1611
|
+
.cl-head > button:hover, #call .fl-pill > button:hover { background: var(--code-bg); color: var(--text); }
|
|
1612
|
+
#call [data-cl-close].armed { width: auto; padding: 0 8px; color: #fff; background: var(--bad); }
|
|
1613
|
+
#call [data-cl-close].armed::after { content: " Leave?"; font: 600 11.5px var(--font); }
|
|
1614
|
+
#call [data-cl-mic].off { color: var(--bad); }
|
|
1615
|
+
#call.collapsed { border-radius: 999px; }
|
|
1616
|
+
#call.collapsed > .cl-head, #call.collapsed > .cl-body { display: none; }
|
|
1617
|
+
#call.collapsed > .fl-pill { display: flex; align-items: center; gap: 2px; min-width: 0; padding-right: 6px; }
|
|
1618
|
+
#call .fl-pill-text svg { color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.5; }
|
|
1619
|
+
.cl-body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; border-radius: 0 0 14px 14px; overflow: hidden; }
|
|
1620
|
+
.cl-root { --stage: #111214; }
|
|
1621
|
+
#call .muted { color: var(--text-2); }
|
|
1622
|
+
.cl-wait { margin: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
|
|
1623
|
+
.cl-actions { display: flex; justify-content: flex-end; gap: 8px; }
|
|
1624
|
+
.cl-err { color: var(--bad); font-size: 12px; }
|
|
1625
|
+
.cl-note { font-size: 12px; color: var(--text-2); }
|
|
1626
|
+
/* the pre-join: the preview beside its choices, one under the other where the window is narrow */
|
|
1627
|
+
.cl-pre { flex: 1 1 auto; min-width: 0; display: flex; gap: 14px; padding: 14px; overflow: auto; }
|
|
1628
|
+
.cl-preview { position: relative; flex: 1 1 60%; min-width: 0; min-height: 160px; display: grid; place-items: center; border-radius: 12px; background: var(--stage); overflow: hidden; }
|
|
1629
|
+
.cl-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
1630
|
+
.cl-preview video.mirror { transform: scaleX(-1); }
|
|
1631
|
+
.cl-pre-toggles { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
|
|
1632
|
+
.cl-pre-side { flex: 1 1 40%; min-width: 200px; display: flex; flex-direction: column; gap: 9px; }
|
|
1633
|
+
.cl-pre-title { font: 600 16px var(--font); }
|
|
1634
|
+
.cl-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); }
|
|
1635
|
+
.cl-field input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-solid); color: var(--text); font: 13px var(--font); }
|
|
1636
|
+
.cl-devices { display: flex; flex-direction: column; gap: 6px; }
|
|
1637
|
+
.cl-devices label { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--text-2); }
|
|
1638
|
+
.cl-devices select { min-width: 0; padding: 4px 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-solid); color: var(--text); font: 12px var(--font); }
|
|
1639
|
+
.cl-meter { height: 4px; border-radius: 2px; background: var(--code-bg); overflow: hidden; }
|
|
1640
|
+
.cl-meter i { display: block; width: 0; height: 100%; background: var(--st-ok, #30a46c); transition: width 60ms linear; }
|
|
1641
|
+
.cl-pre .cl-actions { margin-top: auto; }
|
|
1642
|
+
@container (max-width: 520px) { .cl-pre { flex-direction: column; } }
|
|
1643
|
+
#call .cl-body { container-type: size; }
|
|
1644
|
+
/* the call: the stage (and People beside it), a banner, the control row */
|
|
1645
|
+
.cl-call { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: var(--stage); color: #f2f2f4; }
|
|
1646
|
+
.cl-main { flex: 1 1 auto; min-height: 0; display: flex; }
|
|
1647
|
+
.cl-stage { position: relative; flex: 1 1 auto; min-width: 0; margin: 8px; }
|
|
1648
|
+
.cl-tile { position: absolute; border-radius: 10px; background: #26272b; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
|
|
1649
|
+
.cl-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
|
|
1650
|
+
.cl-tile.video video { display: block; }
|
|
1651
|
+
.cl-tile.screen video { object-fit: contain; background: #000; }
|
|
1652
|
+
.cl-tile.mirror video { transform: scaleX(-1); }
|
|
1653
|
+
.cl-tile.speaking { box-shadow: 0 0 0 2px #3dd68c; }
|
|
1654
|
+
.cl-tile.pinned { box-shadow: 0 0 0 2px var(--accent); }
|
|
1655
|
+
.cl-av {
|
|
1656
|
+
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(38%, 96px); aspect-ratio: 1; border-radius: 50%;
|
|
1657
|
+
display: grid; place-items: center; background: var(--c, var(--accent)); color: #fff; font: 600 clamp(12px, 3.2cqmin, 30px) var(--font);
|
|
1658
|
+
}
|
|
1659
|
+
.cl-tile.video .cl-av { display: none; }
|
|
1660
|
+
.cl-av.big { position: static; transform: none; width: 96px; font-size: 32px; }
|
|
1661
|
+
.cl-av.small { position: static; transform: none; flex: none; width: 24px; font-size: 10.5px; }
|
|
1662
|
+
.cl-tile.unnamed .cl-av { opacity: 0.6; }
|
|
1663
|
+
.cl-tag { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); display: flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
|
|
1664
|
+
.cl-nm { overflow: hidden; text-overflow: ellipsis; }
|
|
1665
|
+
.cl-muted { display: inline-grid; color: #ff8a8a; }
|
|
1666
|
+
.cl-ok { color: var(--verified); font-weight: 700; }
|
|
1667
|
+
.cl-ro { padding: 0 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.14); font-size: 10.5px; }
|
|
1668
|
+
.cl-marks { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; }
|
|
1669
|
+
.cl-hand { font-size: 15px; }
|
|
1670
|
+
.cl-poor { display: inline-grid; padding: 2px; border-radius: 5px; background: rgba(0, 0, 0, 0.55); color: #ffb224; }
|
|
1671
|
+
.cl-tmenu { position: absolute; top: 6px; right: 6px; display: none; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; }
|
|
1672
|
+
.cl-tile:hover .cl-tmenu, .cl-tile:focus-within .cl-tmenu { display: grid; }
|
|
1673
|
+
.cl-react { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; }
|
|
1674
|
+
.cl-react span { grid-area: 1 / 1; font-size: clamp(22px, 8cqmin, 48px); animation: cl-rise 4s ease-out forwards; }
|
|
1675
|
+
@keyframes cl-rise { 0% { transform: translateY(20%) scale(0.6); opacity: 0; } 12% { transform: none; opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-40%); opacity: 0; } }
|
|
1676
|
+
.cl-more { position: absolute; border: 0; border-radius: 10px; background: #26272b; color: #f2f2f4; font: 600 15px var(--font); cursor: pointer; }
|
|
1677
|
+
.cl-nav { position: absolute; top: 50%; z-index: 2; width: 28px; height: 44px; transform: translateY(-50%); border: 0; border-radius: 8px; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 22px; cursor: pointer; }
|
|
1678
|
+
.cl-nav.prev { left: 0; }
|
|
1679
|
+
.cl-nav.next { right: 0; }
|
|
1680
|
+
.cl-pager { position: absolute; left: 50%; bottom: -2px; z-index: 2; transform: translateX(-50%); padding: 1px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.5); font-size: 11px; }
|
|
1681
|
+
.cl-banner { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 10px; background: rgba(255, 178, 36, 0.16); color: #ffd58a; font-size: 12px; }
|
|
1682
|
+
.cl-banner[hidden] { display: none; }
|
|
1683
|
+
.cl-bar { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 10px 10px; overflow-x: auto; scrollbar-width: none; }
|
|
1684
|
+
.cl-bar::-webkit-scrollbar { display: none; }
|
|
1685
|
+
.cl-gap { flex: 1 1 auto; }
|
|
1686
|
+
.cl-grp { display: inline-flex; flex: none; }
|
|
1687
|
+
.cl-ctl {
|
|
1688
|
+
flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 9px; border: 0; border-radius: 9px;
|
|
1689
|
+
background: rgba(255, 255, 255, 0.1); color: #f2f2f4; font: 600 12px var(--font); cursor: pointer;
|
|
1690
|
+
}
|
|
1691
|
+
.cl-ctl:hover { background: rgba(255, 255, 255, 0.18); }
|
|
1692
|
+
.cl-ctl.off { background: color-mix(in srgb, var(--bad) 80%, #000); }
|
|
1693
|
+
.cl-ctl[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 70%, #000); }
|
|
1694
|
+
.cl-ctl.bad { background: var(--bad); color: #fff; }
|
|
1695
|
+
.cl-grp .cl-ctl:first-child { border-radius: 9px 0 0 9px; }
|
|
1696
|
+
.cl-grp .cl-ctl.cl-caret { min-width: 22px; padding: 0 3px; border-radius: 0 9px 9px 0; margin-left: 1px; }
|
|
1697
|
+
.cl-pre .cl-ctl { width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); }
|
|
1698
|
+
.cl-pre .cl-ctl.off { background: color-mix(in srgb, var(--bad) 85%, #000); }
|
|
1699
|
+
/* the compact call: one tile, and its four controls */
|
|
1700
|
+
.cl-call.compact .cl-stage { margin: 0; }
|
|
1701
|
+
.cl-call.compact .cl-tile { border-radius: 0; box-shadow: none; }
|
|
1702
|
+
.cl-call.compact .cl-bar { position: absolute; left: 0; right: 0; bottom: 0; justify-content: center; padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }
|
|
1703
|
+
.cl-call.compact .cl-ctl { height: 30px; min-width: 30px; }
|
|
1704
|
+
.cl-call.compact .cl-tag { bottom: 48px; }
|
|
1705
|
+
/* People: who is in the call, raised hands first; who is here and not in it, each with Invite */
|
|
1706
|
+
.cl-side { flex: none; width: 240px; margin: 8px 8px 8px 0; padding: 6px; border-radius: 10px; background: #1c1d20; overflow-y: auto; }
|
|
1707
|
+
.cl-side-h { padding: 6px 6px 4px; color: #a8a8ae; font: 600 11px var(--font); text-transform: uppercase; letter-spacing: 0.04em; }
|
|
1708
|
+
.cl-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; }
|
|
1709
|
+
.cl-row:hover { background: rgba(255, 255, 255, 0.06); }
|
|
1710
|
+
.cl-row-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1711
|
+
.cl-row .cl-tmenu { position: static; display: grid; background: none; }
|
|
1712
|
+
.cl-inv { padding: 2px 8px; font-size: 11.5px; }
|
|
1713
|
+
/* a popover of the call's: over its control or its tile, inside the window */
|
|
1714
|
+
.cl-pop { position: absolute; z-index: 6; min-width: 160px; max-width: 280px; padding: 5px; border-radius: 10px; background: var(--surface-solid); color: var(--text); box-shadow: 0 0 0 0.5px var(--line), var(--shadow-lg); }
|
|
1715
|
+
.cl-pop[hidden] { display: none; }
|
|
1716
|
+
.cl-pop-h { padding: 5px 8px 3px; color: var(--text-2); font: 600 11px var(--font); }
|
|
1717
|
+
.cl-item { display: block; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: none; color: var(--text); font: 12.5px var(--font); text-align: left; cursor: pointer; }
|
|
1718
|
+
.cl-item:hover { background: var(--code-bg); }
|
|
1719
|
+
.cl-item.on { color: var(--accent); font-weight: 600; }
|
|
1720
|
+
.cl-item.bad { color: var(--bad); }
|
|
1721
|
+
.cl-reacts { display: flex; gap: 2px; }
|
|
1722
|
+
.cl-rx { width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; font-size: 20px; cursor: pointer; }
|
|
1723
|
+
.cl-rx:hover { background: var(--code-bg); }
|
|
1724
|
+
@media (prefers-reduced-motion: reduce) { .cl-react span { animation: none; } }
|
|
1556
1725
|
/* the thread fills the window and scrolls, its messages from its foot up, as a conversation reads;
|
|
1557
1726
|
at its end it stays there however the window is resized (talk.ts), which the browser's own scroll
|
|
1558
1727
|
anchoring would undo, keeping a message above in place */
|
|
@@ -3074,9 +3243,10 @@ span.tm-row { color: var(--text-2); cursor: default; }
|
|
|
3074
3243
|
#nav-fwd, .brand .logo { display: none; }
|
|
3075
3244
|
.brand { align-items: center; gap: 6px; }
|
|
3076
3245
|
.brand .project { display: inline; font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
3077
|
-
#share-btn, #library-btn, #export-btn, #activity-btn, #talk-btn, #who, #help-btn { display: none !important; }
|
|
3246
|
+
#share-btn, #library-btn, #export-btn, #activity-btn, #talk-btn, #call-btn, #who, #help-btn { display: none !important; }
|
|
3078
3247
|
/* what is left of their places is their popovers, under the bar: no place of the bar's, nor a gap */
|
|
3079
|
-
#bar .right > :is(.share-wrap, .library-wrap, .talk-wrap, .who-wrap, .help-wrap) { display: contents; }
|
|
3248
|
+
#bar .right > :is(.share-wrap, .library-wrap, .talk-wrap, .call-wrap, .who-wrap, .help-wrap) { display: contents; }
|
|
3249
|
+
#call-notice { position: fixed; top: 58px; right: 8px; }
|
|
3080
3250
|
.more-wrap { display: block; position: relative; }
|
|
3081
3251
|
#more-btn { width: 36px; height: 34px; }
|
|
3082
3252
|
#more-badge { position: absolute; top: -5px; right: -5px; }
|
|
@@ -3284,8 +3454,8 @@ span.tm-row { color: var(--text-2); cursor: default; }
|
|
|
3284
3454
|
}
|
|
3285
3455
|
/* its handle, over the windows while one is open there, sets the dock's height as the sheet's does
|
|
3286
3456
|
(the same height: web/src/phone.ts) */
|
|
3287
|
-
#windows:has(> :is(.sw-win, .pw-win, #convo):not(.collapsed, [hidden])) { padding-top: 14px; }
|
|
3288
|
-
#windows:has(> :is(.sw-win, .pw-win, #convo):not(.collapsed, [hidden]))::before {
|
|
3457
|
+
#windows:has(> :is(.sw-win, .pw-win, #convo, #call):not(.collapsed, [hidden])) { padding-top: 14px; }
|
|
3458
|
+
#windows:has(> :is(.sw-win, .pw-win, #convo, #call):not(.collapsed, [hidden]))::before {
|
|
3289
3459
|
content: ""; position: absolute; top: 0; left: 50%; width: 120px; height: 14px; transform: translateX(-50%);
|
|
3290
3460
|
pointer-events: auto; cursor: ns-resize; touch-action: none;
|
|
3291
3461
|
background: linear-gradient(var(--text-3), var(--text-3)) center 4px / 44px 5px no-repeat; opacity: 0.6; border-radius: 3px;
|
|
@@ -3294,7 +3464,9 @@ span.tm-row { color: var(--text-2); cursor: default; }
|
|
|
3294
3464
|
#windows > .sw-win { order: 1; }
|
|
3295
3465
|
#windows > .pw-win { order: 2; }
|
|
3296
3466
|
#windows > #convo { order: 3; }
|
|
3297
|
-
|
|
3467
|
+
/* the call's window last: its video wants the room */
|
|
3468
|
+
#windows > #call { order: 4; }
|
|
3469
|
+
#windows > .sw-win, #windows > .pw-win, #windows > #convo, #windows > #call {
|
|
3298
3470
|
position: relative !important; inset: auto !important; transform: none;
|
|
3299
3471
|
width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important;
|
|
3300
3472
|
flex: 1 1 0; z-index: auto !important;
|
|
@@ -3302,7 +3474,7 @@ span.tm-row { color: var(--text-2); cursor: default; }
|
|
|
3302
3474
|
#windows > .collapsed { flex: none; align-self: flex-start; max-width: min(360px, 100%) !important; }
|
|
3303
3475
|
#windows .fl-rz { display: none !important; }
|
|
3304
3476
|
@media (min-width: 960px) { #windows { flex-direction: row; align-items: stretch; } #windows > .collapsed { align-self: flex-end; } }
|
|
3305
|
-
#windows .sw-head, #windows .pw-head, #windows > #convo > .cv-head { cursor: default; }
|
|
3477
|
+
#windows .sw-head, #windows .pw-head, #windows > #convo > .cv-head, #windows > #call > .cl-head { cursor: default; }
|
|
3306
3478
|
/* Export's window: in the sheet's place too, the outline it arranges above it */
|
|
3307
3479
|
#export-modal { top: auto; left: 12px; right: 12px; bottom: 12px; }
|
|
3308
3480
|
#export-modal .ex-box { width: auto; max-height: var(--sheet-h, 50dvh); }
|
|
@@ -3362,7 +3534,7 @@ span.tm-row { color: var(--text-2); cursor: default; }
|
|
|
3362
3534
|
}
|
|
3363
3535
|
#windows > .mon-docked.collapsed { width: auto !important; height: auto !important; max-width: 280px !important; }
|
|
3364
3536
|
#windows .fl-rz { display: none !important; }
|
|
3365
|
-
#windows .sw-head, #windows .pw-head, #windows > #convo > .cv-head { cursor: default; }
|
|
3537
|
+
#windows .sw-head, #windows .pw-head, #windows > #convo > .cv-head, #windows > #call > .cl-head { cursor: default; }
|
|
3366
3538
|
/* the review strip at the board's top left, beside the selection bar under the modes */
|
|
3367
3539
|
#lensbar, #tm-kept { left: calc(var(--inset-left, 0px) + 12px); transform: none; max-width: calc(100vw - var(--inset-left, 0px) - 448px); }
|
|
3368
3540
|
/* the legend and the zoom's box at the foot of the board's room */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "visualproof",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "See a Lean codebase's declaration graph and the TCB of its theorems.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@resvg/resvg-wasm": "2.6.2",
|
|
37
37
|
"d3-hierarchy": "^3.1.2",
|
|
38
|
+
"livekit-client": "2.23.0",
|
|
38
39
|
"pdfjs-dist": "6.3.289"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|