@estiva-app/ui 0.110.0 → 0.112.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/dist/CornerMenu.d.ts +34 -0
- package/dist/CornerMenu.d.ts.map +1 -0
- package/dist/TopBar.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +376 -323
- package/dist/index.js.map +4 -4
- package/dist/shortcuts.d.ts +9 -0
- package/dist/shortcuts.d.ts.map +1 -1
- package/package.json +1 -1
- package/registry.json +56 -3
- package/src/CornerMenu.mdx +60 -0
- package/src/CornerMenu.stories.tsx +62 -0
- package/src/CornerMenu.test.tsx +93 -0
- package/src/CornerMenu.tsx +81 -0
- package/src/Kbd.mdx +5 -0
- package/src/TopBar.tsx +5 -20
- package/src/index.ts +2 -1
- package/src/registry/registry.test.ts +6 -5
- package/src/shortcuts.test.ts +99 -0
- package/src/shortcuts.ts +40 -0
- package/stories/Choosing.mdx +1 -0
package/dist/index.js
CHANGED
|
@@ -458,10 +458,11 @@ function Sidebar({ "aria-label": ariaLabel = "Workspace", children, className })
|
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
// src/TopBar.tsx
|
|
461
|
-
import
|
|
461
|
+
import "react";
|
|
462
462
|
import { Button as BaseButton2 } from "@base-ui/react/button";
|
|
463
463
|
|
|
464
464
|
// src/shortcuts.ts
|
|
465
|
+
import { useEffect, useRef } from "react";
|
|
465
466
|
function isApplePlatform() {
|
|
466
467
|
if (typeof navigator === "undefined") return false;
|
|
467
468
|
return /Mac|iPhone|iPad|iPod/.test(navigator.platform || navigator.userAgent || "");
|
|
@@ -473,27 +474,37 @@ function shortcutLabel(keys, apple = isApplePlatform()) {
|
|
|
473
474
|
return part;
|
|
474
475
|
}).join("+");
|
|
475
476
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
477
|
+
function matchesShortcut(event, keys) {
|
|
478
|
+
const at = keys.lastIndexOf("-", keys.length - 2);
|
|
479
|
+
const key = keys.slice(at + 1);
|
|
480
|
+
const mods = new Set(at < 0 ? [] : keys.slice(0, at).split("-"));
|
|
481
|
+
if (mods.has("Mod") ? !(event.metaKey || event.ctrlKey) : event.metaKey || event.ctrlKey) return false;
|
|
482
|
+
if (mods.has("Shift") !== event.shiftKey || mods.has("Alt") !== event.altKey) return false;
|
|
483
|
+
return event.key.toLowerCase() === key.toLowerCase();
|
|
484
|
+
}
|
|
485
|
+
function useShortcut(keys, onPress, enabled = true) {
|
|
486
|
+
const pressRef = useRef(onPress);
|
|
482
487
|
useEffect(() => {
|
|
483
|
-
|
|
488
|
+
pressRef.current = onPress;
|
|
484
489
|
});
|
|
485
|
-
const searches = onSearch !== void 0;
|
|
486
490
|
useEffect(() => {
|
|
487
|
-
if (!
|
|
491
|
+
if (!enabled) return;
|
|
488
492
|
const onKey = (event) => {
|
|
489
|
-
if (
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
}
|
|
493
|
+
if (event.repeat || event.defaultPrevented || event.isComposing || !matchesShortcut(event, keys)) return;
|
|
494
|
+
event.preventDefault();
|
|
495
|
+
pressRef.current();
|
|
493
496
|
};
|
|
494
497
|
window.addEventListener("keydown", onKey);
|
|
495
498
|
return () => window.removeEventListener("keydown", onKey);
|
|
496
|
-
}, [
|
|
499
|
+
}, [keys, enabled]);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
// src/TopBar.tsx
|
|
503
|
+
import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
504
|
+
function TopBar({ variant = "solid", menu, logo, search, onSearch, searchPlaceholder = "Search\u2026", right, className }) {
|
|
505
|
+
const floating = variant === "floating";
|
|
506
|
+
useShortcut("Mod-K", () => onSearch?.(), onSearch !== void 0);
|
|
507
|
+
useShortcut("Mod-Shift-K", () => onSearch?.(), onSearch !== void 0);
|
|
497
508
|
const centre = search ?? (onSearch && /* @__PURE__ */ jsxs4(BaseButton2, { type: "button", onMouseDown: (event) => event.preventDefault(), onClick: onSearch, className: cn("flex w-[290px] cursor-pointer items-center gap-2 px-3 py-2", FIELD_SHELL_CLASSES), children: [
|
|
498
509
|
/* @__PURE__ */ jsx9("span", { className: "min-w-0 flex-1 truncate text-left text-input-value text-text-muted", children: searchPlaceholder }),
|
|
499
510
|
/* @__PURE__ */ jsx9(Kbd, { children: shortcutLabel("Mod-K") })
|
|
@@ -5648,44 +5659,84 @@ function AttachedCard({ link, children, onRemove, remember }) {
|
|
|
5648
5659
|
);
|
|
5649
5660
|
}
|
|
5650
5661
|
|
|
5662
|
+
// src/CornerMenu.tsx
|
|
5663
|
+
import { IconCheck as IconCheck4, IconDotsVertical as IconDotsVertical3 } from "@tabler/icons-react";
|
|
5664
|
+
import { jsx as jsx71, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
5665
|
+
var LOOKS = [
|
|
5666
|
+
{ look: "row", label: "Row" },
|
|
5667
|
+
{ look: "card", label: "Card" }
|
|
5668
|
+
];
|
|
5669
|
+
function CornerMenu({ children, menu }) {
|
|
5670
|
+
return (
|
|
5671
|
+
// At most 480px, as `AttachedCard`, so the "…" sits on the card's corner and not at the column's edge.
|
|
5672
|
+
/* @__PURE__ */ jsxs52("div", { className: "group/corner relative max-w-[480px]", children: [
|
|
5673
|
+
children,
|
|
5674
|
+
menu && /* @__PURE__ */ jsx71("div", { className: "absolute -right-2 -top-2 z-10 rounded-md border border-border-strong bg-bg-elevated opacity-0 shadow-sm transition-opacity group-hover/corner:opacity-100 focus-within:opacity-100 has-[[aria-expanded=true]]:opacity-100 [@media(hover:none)]:opacity-100", children: /* @__PURE__ */ jsxs52(
|
|
5675
|
+
Menu,
|
|
5676
|
+
{
|
|
5677
|
+
align: "right",
|
|
5678
|
+
trigger: /* @__PURE__ */ jsx71(IconButton, { tooltip: "More options", "aria-label": `More options for ${menu.name}`, children: /* @__PURE__ */ jsx71(IconDotsVertical3, { size: 16, stroke: 1.5 }) }),
|
|
5679
|
+
children: [
|
|
5680
|
+
/* @__PURE__ */ jsx71(MenuSection, { label: "Show as", children: LOOKS.map(({ look, label }) => /* @__PURE__ */ jsx71(
|
|
5681
|
+
MenuItem,
|
|
5682
|
+
{
|
|
5683
|
+
role: "menuitemradio",
|
|
5684
|
+
"aria-checked": menu.look === look,
|
|
5685
|
+
label,
|
|
5686
|
+
trailing: menu.look === look ? /* @__PURE__ */ jsx71(IconCheck4, { size: 16, "aria-hidden": true }) : void 0,
|
|
5687
|
+
onClick: () => {
|
|
5688
|
+
if (menu.look !== look) menu.onLook(look);
|
|
5689
|
+
}
|
|
5690
|
+
},
|
|
5691
|
+
look
|
|
5692
|
+
)) }),
|
|
5693
|
+
/* @__PURE__ */ jsx71(MenuSeparator, {}),
|
|
5694
|
+
/* @__PURE__ */ jsx71(MenuItem, { label: "Remove", onClick: menu.onRemove })
|
|
5695
|
+
]
|
|
5696
|
+
}
|
|
5697
|
+
) })
|
|
5698
|
+
] })
|
|
5699
|
+
);
|
|
5700
|
+
}
|
|
5701
|
+
|
|
5651
5702
|
// src/PartCard.tsx
|
|
5652
5703
|
import { useContext as useContext13 } from "react";
|
|
5653
|
-
import { jsx as
|
|
5704
|
+
import { jsx as jsx72, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
5654
5705
|
function PartCard({ state = "ready", kind, heading, href, partKey, noun, children, maxHeight }) {
|
|
5655
5706
|
const word = noun ?? kindNounOf({ kind }) ?? "File";
|
|
5656
5707
|
const boxed = useContext13(inTheBox);
|
|
5657
|
-
if (state === "loading") return /* @__PURE__ */
|
|
5708
|
+
if (state === "loading") return /* @__PURE__ */ jsx72(LinkCardLoading, { kind, shape: { summary: true, rows: 0, footer: "none" } });
|
|
5658
5709
|
if (state === "unavailable" || state === "deleted") {
|
|
5659
|
-
return /* @__PURE__ */
|
|
5710
|
+
return /* @__PURE__ */ jsx72(LinkUnavailable, { kind, noun: state === "deleted" ? `A part of this ${word.toLowerCase()}` : word, deleted: state === "deleted", card: true });
|
|
5660
5711
|
}
|
|
5661
|
-
if (state === "detached") return /* @__PURE__ */
|
|
5662
|
-
if (state === "unaddressable") return /* @__PURE__ */
|
|
5712
|
+
if (state === "detached") return /* @__PURE__ */ jsx72(UnavailableRow, { kind, words: "This part was deleted", card: true });
|
|
5713
|
+
if (state === "unaddressable") return /* @__PURE__ */ jsx72(UnavailableRow, { kind, words: "This part can't be shown", href, card: true });
|
|
5663
5714
|
return (
|
|
5664
5715
|
// At most 480px wide, in a box too; in a box being written in, on the files' fill as the card beside it is.
|
|
5665
|
-
/* @__PURE__ */
|
|
5666
|
-
/* @__PURE__ */
|
|
5667
|
-
/* @__PURE__ */
|
|
5668
|
-
/* @__PURE__ */
|
|
5669
|
-
/* @__PURE__ */
|
|
5670
|
-
/* @__PURE__ */
|
|
5716
|
+
/* @__PURE__ */ jsxs53(Card, { fill: boxed ? "elevated" : "inset", className: "flex max-w-[480px] flex-col gap-3 p-3", children: [
|
|
5717
|
+
/* @__PURE__ */ jsxs53("div", { className: "flex items-center gap-3", children: [
|
|
5718
|
+
/* @__PURE__ */ jsx72(LinkTile, { kind }),
|
|
5719
|
+
/* @__PURE__ */ jsxs53("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
5720
|
+
/* @__PURE__ */ jsx72("span", { className: "block min-w-0 text-body-2-strong text-text-primary", children: href && !boxed ? /* @__PURE__ */ jsx72(Link, { href, variant: "quiet", truncate: true, className: "block", children: heading }) : /* @__PURE__ */ jsx72("span", { className: "block truncate", children: heading }) }),
|
|
5721
|
+
/* @__PURE__ */ jsx72("span", { className: "truncate text-caption text-text-secondary", children: partKey ? `A part of ${partKey}` : `A part of this ${word.toLowerCase()}` })
|
|
5671
5722
|
] })
|
|
5672
5723
|
] }),
|
|
5673
|
-
maxHeight !== void 0 ? /* @__PURE__ */
|
|
5724
|
+
maxHeight !== void 0 ? /* @__PURE__ */ jsx72(ShowMore, { maxHeight, contentClassName: QUOTE_BAR_CLASSES, children }) : /* @__PURE__ */ jsx72("div", { className: QUOTE_BAR_CLASSES, children })
|
|
5674
5725
|
] })
|
|
5675
5726
|
);
|
|
5676
5727
|
}
|
|
5677
5728
|
|
|
5678
5729
|
// src/Rail.tsx
|
|
5679
|
-
import { jsx as
|
|
5730
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
5680
5731
|
function Rail({ "aria-label": ariaLabel = "Navigation", children, className }) {
|
|
5681
|
-
return /* @__PURE__ */
|
|
5732
|
+
return /* @__PURE__ */ jsx73("nav", { "aria-label": ariaLabel, className: cn("flex w-16 shrink-0 flex-col items-start gap-2 px-2 py-3", className), children });
|
|
5682
5733
|
}
|
|
5683
5734
|
|
|
5684
5735
|
// src/RailItem.tsx
|
|
5685
|
-
import { jsx as
|
|
5736
|
+
import { jsx as jsx74, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
5686
5737
|
function RailItem({ href, icon, label, active = false, className, onClick, ...props }) {
|
|
5687
5738
|
const inApp = useInAppClick(href, onClick);
|
|
5688
|
-
return /* @__PURE__ */
|
|
5739
|
+
return /* @__PURE__ */ jsxs54(
|
|
5689
5740
|
"a",
|
|
5690
5741
|
{
|
|
5691
5742
|
href,
|
|
@@ -5694,14 +5745,14 @@ function RailItem({ href, icon, label, active = false, className, onClick, ...pr
|
|
|
5694
5745
|
...props,
|
|
5695
5746
|
onClick: inApp,
|
|
5696
5747
|
children: [
|
|
5697
|
-
/* @__PURE__ */
|
|
5748
|
+
/* @__PURE__ */ jsx74(
|
|
5698
5749
|
"div",
|
|
5699
5750
|
{
|
|
5700
5751
|
className: cn(
|
|
5701
5752
|
"flex items-center justify-center rounded-lg p-2 transition-colors",
|
|
5702
5753
|
active ? "bg-bg-selected" : "group-hover:bg-bg-hover"
|
|
5703
5754
|
),
|
|
5704
|
-
children: /* @__PURE__ */
|
|
5755
|
+
children: /* @__PURE__ */ jsx74(
|
|
5705
5756
|
"span",
|
|
5706
5757
|
{
|
|
5707
5758
|
className: cn(
|
|
@@ -5713,14 +5764,14 @@ function RailItem({ href, icon, label, active = false, className, onClick, ...pr
|
|
|
5713
5764
|
)
|
|
5714
5765
|
}
|
|
5715
5766
|
),
|
|
5716
|
-
/* @__PURE__ */
|
|
5767
|
+
/* @__PURE__ */ jsx74("span", { className: cn("text-center text-menu", active ? "text-text-primary" : "text-text-secondary"), children: label })
|
|
5717
5768
|
]
|
|
5718
5769
|
}
|
|
5719
5770
|
);
|
|
5720
5771
|
}
|
|
5721
5772
|
|
|
5722
5773
|
// src/Property.tsx
|
|
5723
|
-
import { jsx as
|
|
5774
|
+
import { jsx as jsx75, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
5724
5775
|
var VALUE_CLASSES = "contents";
|
|
5725
5776
|
function Property({ label, layout = "row", children, className }) {
|
|
5726
5777
|
if (layout === "stacked") {
|
|
@@ -5728,25 +5779,25 @@ function Property({ label, layout = "row", children, className }) {
|
|
|
5728
5779
|
// gap-3 — the one label-above-content distance (Katerina, 2026-09-01):
|
|
5729
5780
|
// Peek's topic-details sections already sit at 12px, Ship's rail was
|
|
5730
5781
|
// 6px, and unifying means the bigger, calmer one.
|
|
5731
|
-
/* @__PURE__ */
|
|
5732
|
-
/* @__PURE__ */
|
|
5733
|
-
/* @__PURE__ */
|
|
5782
|
+
/* @__PURE__ */ jsxs55("dl", { className: cn("flex flex-col gap-3", className), children: [
|
|
5783
|
+
/* @__PURE__ */ jsx75("dt", { className: "text-menu uppercase tracking-widest text-text-secondary", children: label }),
|
|
5784
|
+
/* @__PURE__ */ jsx75("dd", { className: VALUE_CLASSES, children })
|
|
5734
5785
|
] })
|
|
5735
5786
|
);
|
|
5736
5787
|
}
|
|
5737
|
-
return /* @__PURE__ */
|
|
5738
|
-
/* @__PURE__ */
|
|
5739
|
-
/* @__PURE__ */
|
|
5788
|
+
return /* @__PURE__ */ jsxs55("dl", { className: cn("flex items-center gap-2", className), children: [
|
|
5789
|
+
/* @__PURE__ */ jsx75("dt", { className: "w-[68px] shrink-0 text-caption text-text-secondary", children: label }),
|
|
5790
|
+
/* @__PURE__ */ jsx75("dd", { className: VALUE_CLASSES, children })
|
|
5740
5791
|
] });
|
|
5741
5792
|
}
|
|
5742
5793
|
|
|
5743
5794
|
// src/Reaction.tsx
|
|
5744
5795
|
import { Toggle as Toggle2 } from "@base-ui/react/toggle";
|
|
5745
|
-
import { jsx as
|
|
5796
|
+
import { jsx as jsx76, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
5746
5797
|
function Reaction({ emoji, count, pressed = false, className, ...props }) {
|
|
5747
5798
|
return (
|
|
5748
5799
|
// @estiva-escape(no-copied-look): W1 (Katerina, 24 September: leave alone): a reaction pill shares four words with a field's box by coincidence
|
|
5749
|
-
/* @__PURE__ */
|
|
5800
|
+
/* @__PURE__ */ jsxs56(
|
|
5750
5801
|
Toggle2,
|
|
5751
5802
|
{
|
|
5752
5803
|
pressed,
|
|
@@ -5768,8 +5819,8 @@ function Reaction({ emoji, count, pressed = false, className, ...props }) {
|
|
|
5768
5819
|
),
|
|
5769
5820
|
...props,
|
|
5770
5821
|
children: [
|
|
5771
|
-
/* @__PURE__ */
|
|
5772
|
-
/* @__PURE__ */
|
|
5822
|
+
/* @__PURE__ */ jsx76("span", { "aria-hidden": "true", className: "shrink-0 text-body-1 leading-none", children: emoji }),
|
|
5823
|
+
/* @__PURE__ */ jsx76("span", { className: CHIP_TEXT_CLASSES, children: count })
|
|
5773
5824
|
]
|
|
5774
5825
|
}
|
|
5775
5826
|
)
|
|
@@ -5779,7 +5830,7 @@ function Reaction({ emoji, count, pressed = false, className, ...props }) {
|
|
|
5779
5830
|
// src/ConversationActions.tsx
|
|
5780
5831
|
import { useState as useState20 } from "react";
|
|
5781
5832
|
import { IconCircleCheck as IconCircleCheck2, IconCircleDashed as IconCircleDashed4, IconMessage2 as IconMessage23, IconMoodPlus } from "@tabler/icons-react";
|
|
5782
|
-
import { Fragment as Fragment20, jsx as
|
|
5833
|
+
import { Fragment as Fragment20, jsx as jsx77, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
5783
5834
|
function ConversationActions({ options, onReact, onReply, resolved = false, onResolve, onReopen, onPickerOpenChange, more, className }) {
|
|
5784
5835
|
const [picking, setPicking] = useState20(false);
|
|
5785
5836
|
const [strip, setStrip] = useState20(null);
|
|
@@ -5789,8 +5840,8 @@ function ConversationActions({ options, onReact, onReply, resolved = false, onRe
|
|
|
5789
5840
|
};
|
|
5790
5841
|
const resolves = resolved ? onReopen : onResolve;
|
|
5791
5842
|
const answers = !!onReact && !!options || !!onReply;
|
|
5792
|
-
return /* @__PURE__ */
|
|
5793
|
-
onReact && options && /* @__PURE__ */
|
|
5843
|
+
return /* @__PURE__ */ jsx77("div", { ref: setStrip, className: cn("inline-flex", className), children: /* @__PURE__ */ jsxs57(Toolbar, { "aria-label": "Actions", children: [
|
|
5844
|
+
onReact && options && /* @__PURE__ */ jsx77(
|
|
5794
5845
|
Popover,
|
|
5795
5846
|
{
|
|
5796
5847
|
side: "top",
|
|
@@ -5801,8 +5852,8 @@ function ConversationActions({ options, onReact, onReply, resolved = false, onRe
|
|
|
5801
5852
|
contentClassName: "p-1",
|
|
5802
5853
|
open: picking,
|
|
5803
5854
|
onOpenChange: setOpen,
|
|
5804
|
-
trigger: /* @__PURE__ */
|
|
5805
|
-
children: /* @__PURE__ */
|
|
5855
|
+
trigger: /* @__PURE__ */ jsx77(ToolbarButton, { tooltip: "React", "aria-label": "React", children: /* @__PURE__ */ jsx77(IconMoodPlus, { size: 16, stroke: 1.5 }) }),
|
|
5856
|
+
children: /* @__PURE__ */ jsx77(
|
|
5806
5857
|
ReactionPicker,
|
|
5807
5858
|
{
|
|
5808
5859
|
options: [...options],
|
|
@@ -5815,13 +5866,13 @@ function ConversationActions({ options, onReact, onReply, resolved = false, onRe
|
|
|
5815
5866
|
)
|
|
5816
5867
|
}
|
|
5817
5868
|
),
|
|
5818
|
-
onReply && /* @__PURE__ */
|
|
5819
|
-
resolves && /* @__PURE__ */
|
|
5820
|
-
answers && /* @__PURE__ */
|
|
5821
|
-
resolved ? /* @__PURE__ */
|
|
5869
|
+
onReply && /* @__PURE__ */ jsx77(ToolbarButton, { tooltip: "Reply", "aria-label": "Reply", onClick: onReply, children: /* @__PURE__ */ jsx77(IconMessage23, { size: 16, stroke: 1.5 }) }),
|
|
5870
|
+
resolves && /* @__PURE__ */ jsxs57(Fragment20, { children: [
|
|
5871
|
+
answers && /* @__PURE__ */ jsx77(ToolbarSeparator, {}),
|
|
5872
|
+
resolved ? /* @__PURE__ */ jsx77(ToolbarButton, { tooltip: "Reopen", "aria-label": "Reopen", onClick: onReopen, children: /* @__PURE__ */ jsx77(IconCircleDashed4, { size: 16, stroke: 1.5 }) }) : /* @__PURE__ */ jsx77(ToolbarButton, { variant: "resolve", tooltip: "Resolve", "aria-label": "Resolve", onClick: onResolve, children: /* @__PURE__ */ jsx77(IconCircleCheck2, { size: 16, stroke: 1.5 }) })
|
|
5822
5873
|
] }),
|
|
5823
|
-
more && /* @__PURE__ */
|
|
5824
|
-
(answers || resolves) && /* @__PURE__ */
|
|
5874
|
+
more && /* @__PURE__ */ jsxs57(Fragment20, { children: [
|
|
5875
|
+
(answers || resolves) && /* @__PURE__ */ jsx77(ToolbarSeparator, {}),
|
|
5825
5876
|
more
|
|
5826
5877
|
] })
|
|
5827
5878
|
] }) });
|
|
@@ -5829,35 +5880,35 @@ function ConversationActions({ options, onReact, onReply, resolved = false, onRe
|
|
|
5829
5880
|
|
|
5830
5881
|
// src/ConversationCard.tsx
|
|
5831
5882
|
import { useContext as useContext14, useLayoutEffect as useLayoutEffect7, useRef as useRef19, useState as useState25 } from "react";
|
|
5832
|
-
import { IconArrowNarrowRight, IconCircleCheck as IconCircleCheck4, IconDotsVertical as
|
|
5883
|
+
import { IconArrowNarrowRight, IconCircleCheck as IconCircleCheck4, IconDotsVertical as IconDotsVertical5 } from "@tabler/icons-react";
|
|
5833
5884
|
|
|
5834
5885
|
// src/ConversationMenu.tsx
|
|
5835
|
-
import { IconCircleCheck as IconCircleCheck3, IconCircleDashed as IconCircleDashed5, IconDotsVertical as
|
|
5836
|
-
import { Fragment as Fragment21, jsx as
|
|
5886
|
+
import { IconCircleCheck as IconCircleCheck3, IconCircleDashed as IconCircleDashed5, IconDotsVertical as IconDotsVertical4 } from "@tabler/icons-react";
|
|
5887
|
+
import { Fragment as Fragment21, jsx as jsx78, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
5837
5888
|
function ConversationMenu({ resolved = false, onResolve, onReopen, resolveHint, children, label, onEdit, editLabel = "Edit", after, onDelete, deleteLabel = "Delete", moreLabel = "More actions", open, onOpenChange, trigger }) {
|
|
5838
5889
|
const resolves = resolved ? onReopen : onResolve;
|
|
5839
|
-
const first = (resolves || children) && /* @__PURE__ */
|
|
5840
|
-
resolves && (resolved ? /* @__PURE__ */
|
|
5890
|
+
const first = (resolves || children) && /* @__PURE__ */ jsxs58(Fragment21, { children: [
|
|
5891
|
+
resolves && (resolved ? /* @__PURE__ */ jsx78(MenuItem, { leading: /* @__PURE__ */ jsx78(IconCircleDashed5, { size: 16, stroke: 1.5, className: "text-text-secondary" }), label: "Reopen", onClick: onReopen }) : /* @__PURE__ */ jsx78(MenuItem, { leading: /* @__PURE__ */ jsx78(IconCircleCheck3, { size: 16, stroke: 1.5, className: "text-text-secondary" }), label: "Resolve", shortcut: resolveHint, onClick: onResolve })),
|
|
5841
5892
|
children
|
|
5842
5893
|
] });
|
|
5843
|
-
const middle = (onEdit || after) && /* @__PURE__ */
|
|
5844
|
-
onEdit && /* @__PURE__ */
|
|
5894
|
+
const middle = (onEdit || after) && /* @__PURE__ */ jsxs58(Fragment21, { children: [
|
|
5895
|
+
onEdit && /* @__PURE__ */ jsx78(MenuItem, { label: editLabel, onClick: onEdit }),
|
|
5845
5896
|
after
|
|
5846
5897
|
] });
|
|
5847
|
-
return /* @__PURE__ */
|
|
5898
|
+
return /* @__PURE__ */ jsxs58(
|
|
5848
5899
|
Menu,
|
|
5849
5900
|
{
|
|
5850
|
-
trigger: trigger ?? /* @__PURE__ */
|
|
5901
|
+
trigger: trigger ?? /* @__PURE__ */ jsx78(IconButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx78(IconDotsVertical4, { size: 16, stroke: 1.5 }) }),
|
|
5851
5902
|
align: "right",
|
|
5852
5903
|
open,
|
|
5853
5904
|
onOpenChange,
|
|
5854
5905
|
className: "w-[244px]",
|
|
5855
5906
|
children: [
|
|
5856
|
-
first && (label ? /* @__PURE__ */
|
|
5857
|
-
first && middle && /* @__PURE__ */
|
|
5907
|
+
first && (label ? /* @__PURE__ */ jsx78(MenuSection, { label, children: first }) : first),
|
|
5908
|
+
first && middle && /* @__PURE__ */ jsx78(MenuSeparator, {}),
|
|
5858
5909
|
middle,
|
|
5859
|
-
onDelete && (first || middle) && /* @__PURE__ */
|
|
5860
|
-
onDelete && /* @__PURE__ */
|
|
5910
|
+
onDelete && (first || middle) && /* @__PURE__ */ jsx78(MenuSeparator, {}),
|
|
5911
|
+
onDelete && /* @__PURE__ */ jsx78(MenuItem, { label: deleteLabel, destructive: true, onClick: onDelete })
|
|
5861
5912
|
]
|
|
5862
5913
|
}
|
|
5863
5914
|
);
|
|
@@ -5950,21 +6001,21 @@ var sendsInLayout = createContext11(null);
|
|
|
5950
6001
|
var repliesDrawn = createContext11(null);
|
|
5951
6002
|
|
|
5952
6003
|
// src/EditedMarker.tsx
|
|
5953
|
-
import { jsx as
|
|
6004
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
5954
6005
|
function EditedMarker({ edited }) {
|
|
5955
6006
|
if (!edited) return null;
|
|
5956
|
-
return /* @__PURE__ */
|
|
6007
|
+
return /* @__PURE__ */ jsx79(WithTooltip, { label: edited, wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx79("span", { className: "whitespace-nowrap text-caption text-text-muted", children: "(edited)" }) });
|
|
5957
6008
|
}
|
|
5958
6009
|
|
|
5959
6010
|
// src/MetaText.tsx
|
|
5960
|
-
import { jsx as
|
|
6011
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
5961
6012
|
var TONE_CLASSES2 = {
|
|
5962
6013
|
muted: "text-text-muted",
|
|
5963
6014
|
secondary: "text-text-secondary",
|
|
5964
6015
|
success: "text-success-default"
|
|
5965
6016
|
};
|
|
5966
6017
|
function MetaText({ children, tone = "muted", size = "caption", className }) {
|
|
5967
|
-
return /* @__PURE__ */
|
|
6018
|
+
return /* @__PURE__ */ jsx80(
|
|
5968
6019
|
"span",
|
|
5969
6020
|
{
|
|
5970
6021
|
className: cn(
|
|
@@ -5981,7 +6032,7 @@ function MetaText({ children, tone = "muted", size = "caption", className }) {
|
|
|
5981
6032
|
// src/ReactionRow.tsx
|
|
5982
6033
|
import { useState as useState22 } from "react";
|
|
5983
6034
|
import { IconMoodPlus as IconMoodPlus2 } from "@tabler/icons-react";
|
|
5984
|
-
import { jsx as
|
|
6035
|
+
import { jsx as jsx81, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
5985
6036
|
var NAMED = 8;
|
|
5986
6037
|
var meaningOf = (options, emoji) => options.find((o) => o.emoji === emoji)?.label ?? emoji;
|
|
5987
6038
|
function whoReacted(reaction, nameOf, options, viewer) {
|
|
@@ -5996,7 +6047,7 @@ function whoReacted(reaction, nameOf, options, viewer) {
|
|
|
5996
6047
|
}
|
|
5997
6048
|
function AddReactionButton({ options, onPick, className }) {
|
|
5998
6049
|
const [picking, setPicking] = useState22(false);
|
|
5999
|
-
return /* @__PURE__ */
|
|
6050
|
+
return /* @__PURE__ */ jsx81(
|
|
6000
6051
|
Popover,
|
|
6001
6052
|
{
|
|
6002
6053
|
open: picking,
|
|
@@ -6006,8 +6057,8 @@ function AddReactionButton({ options, onPick, className }) {
|
|
|
6006
6057
|
ariaLabel: "Add a reaction",
|
|
6007
6058
|
contentClassName: "p-1",
|
|
6008
6059
|
className: cn("w-auto min-w-0", className),
|
|
6009
|
-
trigger: /* @__PURE__ */
|
|
6010
|
-
children: /* @__PURE__ */
|
|
6060
|
+
trigger: /* @__PURE__ */ jsx81(IconButton, { variant: "muted", tooltip: "Add a reaction", "aria-label": "Add a reaction", children: /* @__PURE__ */ jsx81(IconMoodPlus2, { size: 16, stroke: 1.5 }) }),
|
|
6061
|
+
children: /* @__PURE__ */ jsx81(
|
|
6011
6062
|
ReactionPicker,
|
|
6012
6063
|
{
|
|
6013
6064
|
options: [...options],
|
|
@@ -6024,8 +6075,8 @@ function AddReactionButton({ options, onPick, className }) {
|
|
|
6024
6075
|
function ReactionRow({ reactions, options, nameOf, viewer, onToggle, className }) {
|
|
6025
6076
|
const shown2 = reactions.filter((r) => r.by.length > 0);
|
|
6026
6077
|
if (shown2.length === 0) return null;
|
|
6027
|
-
return /* @__PURE__ */
|
|
6028
|
-
shown2.map((r) => /* @__PURE__ */
|
|
6078
|
+
return /* @__PURE__ */ jsxs59("div", { "data-reaction-row": true, className: cn("flex flex-wrap items-center gap-1", className), children: [
|
|
6079
|
+
shown2.map((r) => /* @__PURE__ */ jsx81(WithTooltip, { label: whoReacted(r, nameOf, options, viewer), children: /* @__PURE__ */ jsx81(
|
|
6029
6080
|
Reaction,
|
|
6030
6081
|
{
|
|
6031
6082
|
emoji: r.emoji,
|
|
@@ -6036,13 +6087,13 @@ function ReactionRow({ reactions, options, nameOf, viewer, onToggle, className }
|
|
|
6036
6087
|
onClick: () => onToggle?.(r.emoji)
|
|
6037
6088
|
}
|
|
6038
6089
|
) }, r.emoji)),
|
|
6039
|
-
onToggle && /* @__PURE__ */
|
|
6090
|
+
onToggle && /* @__PURE__ */ jsx81(AddReactionButton, { options, onPick: onToggle })
|
|
6040
6091
|
] });
|
|
6041
6092
|
}
|
|
6042
6093
|
|
|
6043
6094
|
// src/RepliesRow.tsx
|
|
6044
6095
|
import { IconChevronRight as IconChevronRight4, IconMessage2 as IconMessage24 } from "@tabler/icons-react";
|
|
6045
|
-
import { Fragment as Fragment22, jsx as
|
|
6096
|
+
import { Fragment as Fragment22, jsx as jsx82, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
6046
6097
|
var ROW_CLASSES3 = "flex w-full items-center gap-2 pb-1.5 pl-8 pr-2";
|
|
6047
6098
|
var OPEN_CLASSES = "border-accent-outline bg-accent-wash";
|
|
6048
6099
|
var BOX_CLASSES = "group/replies flex shrink-0 items-center gap-2 rounded-lg border border-transparent px-2 py-1.5 transition-colors hover:border-accent-outline hover:bg-accent-wash";
|
|
@@ -6051,9 +6102,9 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
|
|
|
6051
6102
|
const label = `${count} ${count === 1 ? "reply" : "replies"}`;
|
|
6052
6103
|
const fresh = newCount ?? (isNew ? 1 : 0);
|
|
6053
6104
|
const name = newCount ? `${label}, ${newCount} new` : label;
|
|
6054
|
-
const inner = /* @__PURE__ */
|
|
6055
|
-
withFaces && /* @__PURE__ */
|
|
6056
|
-
/* @__PURE__ */
|
|
6105
|
+
const inner = /* @__PURE__ */ jsxs60(Fragment22, { children: [
|
|
6106
|
+
withFaces && /* @__PURE__ */ jsx82("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ jsx82(AvatarGroup, { size: 18, members: faces.map((f) => ({ name: f.name, picture: f.picture, bot: f.bot })) }) }),
|
|
6107
|
+
/* @__PURE__ */ jsx82(
|
|
6057
6108
|
IconMessage24,
|
|
6058
6109
|
{
|
|
6059
6110
|
size: 16,
|
|
@@ -6064,9 +6115,9 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
|
|
|
6064
6115
|
)
|
|
6065
6116
|
}
|
|
6066
6117
|
),
|
|
6067
|
-
/* @__PURE__ */
|
|
6068
|
-
last && /* @__PURE__ */
|
|
6069
|
-
/* @__PURE__ */
|
|
6118
|
+
/* @__PURE__ */ jsx82("span", { className: "text-chip font-medium text-text-interactive transition-colors group-hover/replies:text-text-primary", children: label }),
|
|
6119
|
+
last && /* @__PURE__ */ jsx82("span", { className: cn("mt-px text-small leading-3 text-text-muted", TIME_CLASSES), children: last }),
|
|
6120
|
+
/* @__PURE__ */ jsx82(
|
|
6070
6121
|
IconChevronRight4,
|
|
6071
6122
|
{
|
|
6072
6123
|
size: 12,
|
|
@@ -6075,20 +6126,20 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
|
|
|
6075
6126
|
}
|
|
6076
6127
|
)
|
|
6077
6128
|
] });
|
|
6078
|
-
const chip = fresh > 0 && /* @__PURE__ */
|
|
6079
|
-
/* @__PURE__ */
|
|
6080
|
-
/* @__PURE__ */
|
|
6129
|
+
const chip = fresh > 0 && /* @__PURE__ */ jsxs60(Fragment22, { children: [
|
|
6130
|
+
/* @__PURE__ */ jsx82("span", { className: "h-0.5 w-0.5 shrink-0 rounded-full bg-text-muted" }),
|
|
6131
|
+
/* @__PURE__ */ jsx82(Chip, { type: urgent ? "warning" : "brand", label: `${fresh} new` })
|
|
6081
6132
|
] });
|
|
6082
6133
|
if (!onOpen) {
|
|
6083
|
-
return /* @__PURE__ */
|
|
6084
|
-
/* @__PURE__ */
|
|
6134
|
+
return /* @__PURE__ */ jsxs60("div", { className: ROW_CLASSES3, children: [
|
|
6135
|
+
/* @__PURE__ */ jsx82("div", { className: BOX_CLASSES, children: inner }),
|
|
6085
6136
|
chip
|
|
6086
6137
|
] });
|
|
6087
6138
|
}
|
|
6088
6139
|
return (
|
|
6089
6140
|
// @estiva-escape(no-raw-element): the row is the thread's way in, Peek's replies row; no kit button takes a face stack, a count, a time and the new chip in one press
|
|
6090
|
-
/* @__PURE__ */
|
|
6091
|
-
/* @__PURE__ */
|
|
6141
|
+
/* @__PURE__ */ jsxs60("button", { type: "button", className: cn(ROW_CLASSES3, "cursor-pointer text-left"), onClick: onOpen, "aria-expanded": open, "aria-label": `${name}, ${open ? "close" : "open"} the thread`, "data-interactive": true, children: [
|
|
6142
|
+
/* @__PURE__ */ jsx82("span", { className: cn(BOX_CLASSES, open && OPEN_CLASSES), children: inner }),
|
|
6092
6143
|
chip
|
|
6093
6144
|
] })
|
|
6094
6145
|
);
|
|
@@ -6096,14 +6147,14 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
|
|
|
6096
6147
|
|
|
6097
6148
|
// src/ResolveDialog.tsx
|
|
6098
6149
|
import { useState as useState23 } from "react";
|
|
6099
|
-
import { jsx as
|
|
6150
|
+
import { jsx as jsx83, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6100
6151
|
function ResolveDialog({ onResolve, onCancel, refused }) {
|
|
6101
6152
|
const [note, setNote] = useState23("");
|
|
6102
6153
|
return (
|
|
6103
6154
|
// Outlined at rest and green on hover in Signal, the kit's `resolve` look.
|
|
6104
|
-
/* @__PURE__ */
|
|
6105
|
-
/* @__PURE__ */
|
|
6106
|
-
refused && /* @__PURE__ */
|
|
6155
|
+
/* @__PURE__ */ jsx83(FormDialog, { title: "Resolve", submitLabel: "Resolve", submitVariant: "resolve", onSubmit: () => onResolve(note), onClose: onCancel, children: /* @__PURE__ */ jsxs61(Field, { label: "Resolution message (optional)", children: [
|
|
6156
|
+
/* @__PURE__ */ jsx83(Textarea, { autoFocus: true, value: note, onChange: (e) => setNote(e.target.value), placeholder: "Summarize the outcome or decision...", className: "h-[109px]" }),
|
|
6157
|
+
refused && /* @__PURE__ */ jsx83(FieldLine, { tone: "error", children: refused })
|
|
6107
6158
|
] }) })
|
|
6108
6159
|
);
|
|
6109
6160
|
}
|
|
@@ -6151,31 +6202,31 @@ function useFaceLine(root, active, toDot = false) {
|
|
|
6151
6202
|
}
|
|
6152
6203
|
|
|
6153
6204
|
// src/PinnedComment.tsx
|
|
6154
|
-
import { jsx as
|
|
6205
|
+
import { jsx as jsx84, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
6155
6206
|
var goneWords = (deleted) => deleted ? "This comment was deleted." : "This comment can\u2019t be shown.";
|
|
6156
6207
|
var GONE_CLOSED = "This thread takes no new replies.";
|
|
6157
6208
|
function PinnedComment({ author, time, at: given, words, deleted = false, unseen = false }) {
|
|
6158
6209
|
const at = momentOf(given);
|
|
6159
|
-
return /* @__PURE__ */
|
|
6160
|
-
/* @__PURE__ */
|
|
6161
|
-
/* @__PURE__ */
|
|
6162
|
-
/* @__PURE__ */
|
|
6163
|
-
/* @__PURE__ */
|
|
6210
|
+
return /* @__PURE__ */ jsx84(Card, { fill: "elevated", clip: true, children: deleted || unseen ? /* @__PURE__ */ jsx84("p", { className: "p-2 text-caption italic text-text-muted", children: goneWords(deleted) }) : /* @__PURE__ */ jsxs62("div", { className: "flex flex-col p-2", children: [
|
|
6211
|
+
/* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2", children: [
|
|
6212
|
+
/* @__PURE__ */ jsx84(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }),
|
|
6213
|
+
/* @__PURE__ */ jsx84("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
|
|
6214
|
+
/* @__PURE__ */ jsx84(MetaText, { className: "shrink-0", children: at === void 0 ? time : /* @__PURE__ */ jsx84(WithTooltip, { label: exactTime(at), children: /* @__PURE__ */ jsx84("time", { dateTime: new Date(at).toISOString(), children: time }) }) })
|
|
6164
6215
|
] }),
|
|
6165
|
-
/* @__PURE__ */
|
|
6216
|
+
/* @__PURE__ */ jsx84("div", { className: "pb-2 pl-8 pr-2 pt-1", children: /* @__PURE__ */ jsx84("div", { className: "truncate text-caption text-text-secondary", children: words }) })
|
|
6166
6217
|
] }) });
|
|
6167
6218
|
}
|
|
6168
6219
|
|
|
6169
6220
|
// src/ConversationCard.tsx
|
|
6170
|
-
import { Fragment as Fragment23, jsx as
|
|
6221
|
+
import { Fragment as Fragment23, jsx as jsx85, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
6171
6222
|
function When({ time, at: given, timeHref, timeLabel = "Link to this" }) {
|
|
6172
6223
|
const at = momentOf(given);
|
|
6173
6224
|
const exact = at === void 0 ? void 0 : exactTime(at);
|
|
6174
|
-
const said = at === void 0 ? time : /* @__PURE__ */
|
|
6225
|
+
const said = at === void 0 ? time : /* @__PURE__ */ jsx85("time", { dateTime: new Date(at).toISOString(), children: time });
|
|
6175
6226
|
if (timeHref) {
|
|
6176
|
-
return /* @__PURE__ */
|
|
6227
|
+
return /* @__PURE__ */ jsx85(WithTooltip, { label: exact ? `${exact} \xB7 ${timeLabel}` : timeLabel, wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx85(MetaText, { className: "contents", children: /* @__PURE__ */ jsx85(Link, { href: timeHref, variant: "quiet", "data-interactive": true, children: said }) }) });
|
|
6177
6228
|
}
|
|
6178
|
-
return /* @__PURE__ */
|
|
6229
|
+
return /* @__PURE__ */ jsx85(MetaText, { className: "shrink-0", children: exact ? /* @__PURE__ */ jsx85(WithTooltip, { label: exact, children: said }) : time });
|
|
6179
6230
|
}
|
|
6180
6231
|
var fadeBefore = (end) => `linear-gradient(to right, black ${end - 16}px, transparent ${end}px)`;
|
|
6181
6232
|
function useClearOfStrip(root, strip, shown2) {
|
|
@@ -6195,15 +6246,15 @@ function useClearOfStrip(root, strip, shown2) {
|
|
|
6195
6246
|
return end;
|
|
6196
6247
|
}
|
|
6197
6248
|
function Head({ author, time, at, timeHref, timeLabel, edited, isNew, urgent, meta, end }) {
|
|
6198
|
-
return /* @__PURE__ */
|
|
6199
|
-
/* @__PURE__ */
|
|
6200
|
-
/* @__PURE__ */
|
|
6201
|
-
/* @__PURE__ */
|
|
6202
|
-
/* @__PURE__ */
|
|
6203
|
-
/* @__PURE__ */
|
|
6249
|
+
return /* @__PURE__ */ jsxs63("div", { className: "flex w-full items-center gap-2", children: [
|
|
6250
|
+
/* @__PURE__ */ jsxs63("div", { "data-head": true, className: "flex min-w-0 flex-1 items-center gap-2", style: end === void 0 ? void 0 : { maskImage: fadeBefore(end), WebkitMaskImage: fadeBefore(end) }, children: [
|
|
6251
|
+
/* @__PURE__ */ jsx85("span", { "data-face": true, className: "relative flex shrink-0", children: /* @__PURE__ */ jsx85(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }) }),
|
|
6252
|
+
/* @__PURE__ */ jsx85("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
|
|
6253
|
+
/* @__PURE__ */ jsx85(When, { time, at, timeHref, timeLabel }),
|
|
6254
|
+
/* @__PURE__ */ jsx85(EditedMarker, { edited }),
|
|
6204
6255
|
meta
|
|
6205
6256
|
] }),
|
|
6206
|
-
isNew && (urgent ? /* @__PURE__ */
|
|
6257
|
+
isNew && (urgent ? /* @__PURE__ */ jsx85(UrgentMark, {}) : /* @__PURE__ */ jsx85(UnreadDot, {}))
|
|
6207
6258
|
] });
|
|
6208
6259
|
}
|
|
6209
6260
|
function attentionOf(fresh, urgent, inThreadCard) {
|
|
@@ -6211,13 +6262,13 @@ function attentionOf(fresh, urgent, inThreadCard) {
|
|
|
6211
6262
|
return urgent ? "warning" : "accent";
|
|
6212
6263
|
}
|
|
6213
6264
|
function EndedLine({ by, note, at }) {
|
|
6214
|
-
return /* @__PURE__ */
|
|
6215
|
-
/* @__PURE__ */
|
|
6216
|
-
/* @__PURE__ */
|
|
6217
|
-
/* @__PURE__ */
|
|
6218
|
-
/* @__PURE__ */
|
|
6219
|
-
/* @__PURE__ */
|
|
6220
|
-
at && /* @__PURE__ */
|
|
6265
|
+
return /* @__PURE__ */ jsxs63("div", { "data-resolved": "line", className: "relative flex items-start py-1", children: [
|
|
6266
|
+
/* @__PURE__ */ jsx85("span", { className: "flex h-[17px] w-10 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx85("span", { "data-dot": true, className: "relative z-10 flex size-2 items-center justify-center rounded-full bg-bg-surface", children: /* @__PURE__ */ jsx85("span", { className: "size-1 rounded-full bg-success-default" }) }) }),
|
|
6267
|
+
/* @__PURE__ */ jsxs63("p", { className: "min-w-0 text-h5 leading-snug", children: [
|
|
6268
|
+
/* @__PURE__ */ jsx85("span", { className: "whitespace-nowrap text-text-primary", children: by }),
|
|
6269
|
+
/* @__PURE__ */ jsx85(IconArrowNarrowRight, { size: 12, stroke: 1.5, className: "mx-1.5 -mt-px inline shrink-0 text-text-primary" }),
|
|
6270
|
+
/* @__PURE__ */ jsx85("span", { className: "text-text-secondary", children: note }),
|
|
6271
|
+
at && /* @__PURE__ */ jsxs63(MetaText, { size: "chip", children: [
|
|
6221
6272
|
" \xB7 ",
|
|
6222
6273
|
at
|
|
6223
6274
|
] })
|
|
@@ -6226,13 +6277,13 @@ function EndedLine({ by, note, at }) {
|
|
|
6226
6277
|
}
|
|
6227
6278
|
function ResolvedCheck({ by, note, at }) {
|
|
6228
6279
|
const said = `Resolved by ${by}${at ? `, ${at}` : ""}${note ? `: ${note}` : ""}`;
|
|
6229
|
-
return /* @__PURE__ */
|
|
6230
|
-
/* @__PURE__ */
|
|
6280
|
+
return /* @__PURE__ */ jsx85(WithTooltip, { label: said, wrapperClassName: "flex shrink-0", children: /* @__PURE__ */ jsxs63("span", { className: "flex items-center gap-1 text-caption text-success-default", children: [
|
|
6281
|
+
/* @__PURE__ */ jsx85(IconCircleCheck4, { size: 14, stroke: 1.5 }),
|
|
6231
6282
|
"Resolved"
|
|
6232
6283
|
] }) });
|
|
6233
6284
|
}
|
|
6234
6285
|
function Words({ children }) {
|
|
6235
|
-
return /* @__PURE__ */
|
|
6286
|
+
return /* @__PURE__ */ jsx85("div", { className: "relative w-full break-words pb-2 pl-8 pr-2 pt-1", children: /* @__PURE__ */ jsx85("div", { className: "flex flex-col gap-2 text-body-2 text-text-secondary", children }) });
|
|
6236
6287
|
}
|
|
6237
6288
|
function useReactionRefusal(reactions) {
|
|
6238
6289
|
const [refused, setRefused] = useState25();
|
|
@@ -6259,9 +6310,9 @@ function useReactionRefusal(reactions) {
|
|
|
6259
6310
|
}
|
|
6260
6311
|
function Reactions({ reactions, refused, readOnly }) {
|
|
6261
6312
|
if ((!reactions || reactions.reactions.length === 0) && !refused) return null;
|
|
6262
|
-
return /* @__PURE__ */
|
|
6263
|
-
reactions && /* @__PURE__ */
|
|
6264
|
-
refused && /* @__PURE__ */
|
|
6313
|
+
return /* @__PURE__ */ jsxs63("div", { className: "relative flex w-full flex-col gap-1 pb-2 pl-8 pt-1", children: [
|
|
6314
|
+
reactions && /* @__PURE__ */ jsx85(ReactionRow, { ...reactions, onToggle: readOnly ? void 0 : reactions.onToggle }),
|
|
6315
|
+
refused && /* @__PURE__ */ jsxs63(FieldLine, { tone: "error", children: [
|
|
6265
6316
|
"Not reacted: ",
|
|
6266
6317
|
refused,
|
|
6267
6318
|
"."
|
|
@@ -6269,11 +6320,11 @@ function Reactions({ reactions, refused, readOnly }) {
|
|
|
6269
6320
|
] });
|
|
6270
6321
|
}
|
|
6271
6322
|
function Editing({ author, heading, children }) {
|
|
6272
|
-
return /* @__PURE__ */
|
|
6273
|
-
!!heading && /* @__PURE__ */
|
|
6274
|
-
/* @__PURE__ */
|
|
6275
|
-
/* @__PURE__ */
|
|
6276
|
-
/* @__PURE__ */
|
|
6323
|
+
return /* @__PURE__ */ jsxs63("div", { className: "p-2", children: [
|
|
6324
|
+
!!heading && /* @__PURE__ */ jsx85("div", { className: "w-full pb-2", children: heading }),
|
|
6325
|
+
/* @__PURE__ */ jsxs63("div", { className: "flex items-start gap-2", children: [
|
|
6326
|
+
/* @__PURE__ */ jsx85(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot, className: "mt-1 shrink-0" }),
|
|
6327
|
+
/* @__PURE__ */ jsx85("div", { className: "min-w-0 flex-1", children })
|
|
6277
6328
|
] })
|
|
6278
6329
|
] });
|
|
6279
6330
|
}
|
|
@@ -6287,7 +6338,7 @@ function stillHere(root) {
|
|
|
6287
6338
|
}
|
|
6288
6339
|
function DeleteQuestion({ noun, onDelete, refused, onClose, children }) {
|
|
6289
6340
|
const [answered, setAnswered] = useState25(false);
|
|
6290
|
-
return /* @__PURE__ */
|
|
6341
|
+
return /* @__PURE__ */ jsx85(
|
|
6291
6342
|
ConfirmDialog,
|
|
6292
6343
|
{
|
|
6293
6344
|
title: `Delete this ${noun}?`,
|
|
@@ -6306,7 +6357,7 @@ function DeleteQuestion({ noun, onDelete, refused, onClose, children }) {
|
|
|
6306
6357
|
}
|
|
6307
6358
|
function ResolveQuestion({ onResolve, refused, onClose }) {
|
|
6308
6359
|
const [answered, setAnswered] = useState25(false);
|
|
6309
|
-
return /* @__PURE__ */
|
|
6360
|
+
return /* @__PURE__ */ jsx85(
|
|
6310
6361
|
ResolveDialog,
|
|
6311
6362
|
{
|
|
6312
6363
|
refused: answered ? refused : void 0,
|
|
@@ -6359,9 +6410,9 @@ function ConversationCard(props) {
|
|
|
6359
6410
|
const reply = onReply ?? item?.show;
|
|
6360
6411
|
const marked = selected ?? (item && !item.under ? item.open : void 0);
|
|
6361
6412
|
const under = !!item?.under;
|
|
6362
|
-
const repliesRow = replies && replies.count > 0 && /* @__PURE__ */
|
|
6363
|
-
return /* @__PURE__ */
|
|
6364
|
-
/* @__PURE__ */
|
|
6413
|
+
const repliesRow = replies && replies.count > 0 && /* @__PURE__ */ jsx85(RepliesRow, { ...replies, onOpen: replies.onOpen ?? (under ? item?.toggle : void 0), open: replies.open ?? (under && !!item?.open), urgent });
|
|
6414
|
+
return /* @__PURE__ */ jsxs63(Fragment23, { children: [
|
|
6415
|
+
/* @__PURE__ */ jsxs63(
|
|
6365
6416
|
Card,
|
|
6366
6417
|
{
|
|
6367
6418
|
ref: root,
|
|
@@ -6386,14 +6437,14 @@ function ConversationCard(props) {
|
|
|
6386
6437
|
setHovered(false);
|
|
6387
6438
|
},
|
|
6388
6439
|
children: [
|
|
6389
|
-
isEditing ? /* @__PURE__ */
|
|
6440
|
+
isEditing ? /* @__PURE__ */ jsx85(Editing, { author, heading, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs63("div", { "data-comment-body": true, className: "flex flex-col items-start px-2 pt-2", children: [
|
|
6390
6441
|
!!heading && // Faded clear of the strip, as the head's words are (useClearOfStrip).
|
|
6391
|
-
/* @__PURE__ */
|
|
6392
|
-
deleted ? /* @__PURE__ */
|
|
6393
|
-
!!about && /* @__PURE__ */
|
|
6394
|
-
/* @__PURE__ */
|
|
6395
|
-
] }) : /* @__PURE__ */
|
|
6396
|
-
/* @__PURE__ */
|
|
6442
|
+
/* @__PURE__ */ jsx85("div", { className: "w-full pb-2", style: wordsEnd === void 0 ? void 0 : { maskImage: fadeBefore(wordsEnd), WebkitMaskImage: fadeBefore(wordsEnd) }, children: heading }),
|
|
6443
|
+
deleted ? /* @__PURE__ */ jsxs63(Fragment23, { children: [
|
|
6444
|
+
!!about && /* @__PURE__ */ jsx85("div", { className: "relative w-full pl-8 pr-2", children: about }),
|
|
6445
|
+
/* @__PURE__ */ jsx85("p", { className: cn("w-full pb-2 pl-8 pr-2 text-caption italic text-text-muted", !!about && "pt-1"), children: goneWords(isDeleted) })
|
|
6446
|
+
] }) : /* @__PURE__ */ jsxs63(Fragment23, { children: [
|
|
6447
|
+
/* @__PURE__ */ jsx85(
|
|
6397
6448
|
Head,
|
|
6398
6449
|
{
|
|
6399
6450
|
author,
|
|
@@ -6404,24 +6455,24 @@ function ConversationCard(props) {
|
|
|
6404
6455
|
edited: props.edited,
|
|
6405
6456
|
isNew,
|
|
6406
6457
|
urgent,
|
|
6407
|
-
meta: resolved && /* @__PURE__ */
|
|
6458
|
+
meta: resolved && /* @__PURE__ */ jsx85(ResolvedCheck, { by: resolved.by, note: resolved.note, at: resolved.at }),
|
|
6408
6459
|
end: wordsEnd
|
|
6409
6460
|
}
|
|
6410
6461
|
),
|
|
6411
6462
|
!!about && // Under the name, above the words (Katerina, 1 November).
|
|
6412
|
-
/* @__PURE__ */
|
|
6413
|
-
/* @__PURE__ */
|
|
6463
|
+
/* @__PURE__ */ jsx85("div", { className: "relative w-full pl-8 pr-2 pt-0.5", children: about }),
|
|
6464
|
+
/* @__PURE__ */ jsx85(Words, { children })
|
|
6414
6465
|
] }),
|
|
6415
|
-
!deleted && files && /* @__PURE__ */
|
|
6416
|
-
/* @__PURE__ */
|
|
6466
|
+
!deleted && files && /* @__PURE__ */ jsx85("div", { className: "relative flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
|
|
6467
|
+
/* @__PURE__ */ jsx85(Reactions, { reactions: reactionRow, refused: reactionRefused, readOnly }),
|
|
6417
6468
|
resolved?.note && // Who resolved it and the note, above the way into the replies; the check by the time says "Resolved" (Katerina, 1 November).
|
|
6418
|
-
/* @__PURE__ */
|
|
6419
|
-
repliesRow && /* @__PURE__ */
|
|
6469
|
+
/* @__PURE__ */ jsx85("div", { className: "relative w-full pb-1", children: /* @__PURE__ */ jsx85("div", { className: "-ml-2 w-[calc(100%+8px)]", children: /* @__PURE__ */ jsx85(EndedLine, { by: resolved.by, note: resolved.note, at: resolved.at }) }) }),
|
|
6470
|
+
repliesRow && /* @__PURE__ */ jsx85("div", { className: "relative w-full", children: repliesRow })
|
|
6420
6471
|
] }),
|
|
6421
6472
|
dotLine && // One bar from the face to the dot, measured (useFaceLine): 2px, centred under the 24px face, 8px in.
|
|
6422
6473
|
// Its top and height come from the measure: where the face ends and the dot stands are not known ahead.
|
|
6423
|
-
/* @__PURE__ */
|
|
6424
|
-
showStrip && /* @__PURE__ */
|
|
6474
|
+
/* @__PURE__ */ jsx85("span", { "aria-hidden": true, className: "pointer-events-none absolute left-[19px] w-0.5 bg-border-default", style: { top: dotLine.top, height: dotLine.height } }),
|
|
6475
|
+
showStrip && /* @__PURE__ */ jsx85("div", { ref: strip, className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ jsx85(
|
|
6425
6476
|
ConversationActions,
|
|
6426
6477
|
{
|
|
6427
6478
|
options: reactions?.options,
|
|
@@ -6434,10 +6485,10 @@ function ConversationCard(props) {
|
|
|
6434
6485
|
resolved: !!resolved,
|
|
6435
6486
|
onResolve: onResolve && (() => setResolving(true)),
|
|
6436
6487
|
onReopen,
|
|
6437
|
-
more: offersMenu && /* @__PURE__ */
|
|
6488
|
+
more: offersMenu && /* @__PURE__ */ jsx85(
|
|
6438
6489
|
ConversationMenu,
|
|
6439
6490
|
{
|
|
6440
|
-
trigger: /* @__PURE__ */
|
|
6491
|
+
trigger: /* @__PURE__ */ jsx85(ToolbarButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx85(IconDotsVertical5, { size: 16, stroke: 1.5 }) }),
|
|
6441
6492
|
open: menuOpen,
|
|
6442
6493
|
onOpenChange: (open) => {
|
|
6443
6494
|
setMenuOpen(open);
|
|
@@ -6461,15 +6512,15 @@ function ConversationCard(props) {
|
|
|
6461
6512
|
]
|
|
6462
6513
|
}
|
|
6463
6514
|
),
|
|
6464
|
-
deleting && onDelete && /* @__PURE__ */
|
|
6465
|
-
/* @__PURE__ */
|
|
6466
|
-
replies && replies.count > 0 && /* @__PURE__ */
|
|
6515
|
+
deleting && onDelete && /* @__PURE__ */ jsx85(DeleteQuestion, { noun, onDelete, refused: deleteRefused, onClose: () => setDeleting(false), children: deleteNote !== void 0 ? typeof deleteNote === "string" ? /* @__PURE__ */ jsx85("p", { children: deleteNote }) : deleteNote : /* @__PURE__ */ jsxs63(Fragment23, { children: [
|
|
6516
|
+
/* @__PURE__ */ jsx85("p", { children: "It is deleted for everyone." }),
|
|
6517
|
+
replies && replies.count > 0 && /* @__PURE__ */ jsxs63("p", { children: [
|
|
6467
6518
|
"Its ",
|
|
6468
6519
|
replies.count === 1 ? "reply stays" : `${replies.count} replies stay`,
|
|
6469
6520
|
"."
|
|
6470
6521
|
] })
|
|
6471
6522
|
] }) }),
|
|
6472
|
-
resolving && onResolve && /* @__PURE__ */
|
|
6523
|
+
resolving && onResolve && /* @__PURE__ */ jsx85(ResolveQuestion, { onResolve, refused: resolveRefused, onClose: () => setResolving(false) })
|
|
6473
6524
|
] });
|
|
6474
6525
|
}
|
|
6475
6526
|
function ReplyCard(props) {
|
|
@@ -6492,8 +6543,8 @@ function ReplyCard(props) {
|
|
|
6492
6543
|
useLayoutEffect7(() => {
|
|
6493
6544
|
if (drawn) drawn.added += 1;
|
|
6494
6545
|
}, [drawn]);
|
|
6495
|
-
return /* @__PURE__ */
|
|
6496
|
-
/* @__PURE__ */
|
|
6546
|
+
return /* @__PURE__ */ jsxs63(Fragment23, { children: [
|
|
6547
|
+
/* @__PURE__ */ jsxs63(
|
|
6497
6548
|
Card,
|
|
6498
6549
|
{
|
|
6499
6550
|
ref: root,
|
|
@@ -6516,15 +6567,15 @@ function ReplyCard(props) {
|
|
|
6516
6567
|
setHovered(false);
|
|
6517
6568
|
},
|
|
6518
6569
|
children: [
|
|
6519
|
-
isEditing ? /* @__PURE__ */
|
|
6520
|
-
/* @__PURE__ */
|
|
6521
|
-
about && /* @__PURE__ */
|
|
6522
|
-
/* @__PURE__ */
|
|
6523
|
-
files && /* @__PURE__ */
|
|
6524
|
-
/* @__PURE__ */
|
|
6570
|
+
isEditing ? /* @__PURE__ */ jsx85(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs63("div", { className: "flex flex-col items-start px-2 pt-2", children: [
|
|
6571
|
+
/* @__PURE__ */ jsx85(Head, { author, time: props.time, at: props.at, timeHref: props.timeHref, timeLabel: props.timeLabel, edited: props.edited, isNew, urgent, end: wordsEnd }),
|
|
6572
|
+
about && /* @__PURE__ */ jsx85("div", { className: "w-full pl-8 pr-2 pt-0.5", children: about }),
|
|
6573
|
+
/* @__PURE__ */ jsx85(Words, { children }),
|
|
6574
|
+
files && /* @__PURE__ */ jsx85("div", { className: "flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
|
|
6575
|
+
/* @__PURE__ */ jsx85(Reactions, { reactions, refused: reactionRefused, readOnly })
|
|
6525
6576
|
] }),
|
|
6526
6577
|
showStrip && // In a box of its own, as a comment's: the box is what the head measures to keep clear of.
|
|
6527
|
-
/* @__PURE__ */
|
|
6578
|
+
/* @__PURE__ */ jsx85("div", { ref: strip, className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ jsx85(
|
|
6528
6579
|
ConversationActions,
|
|
6529
6580
|
{
|
|
6530
6581
|
options: reactions?.options,
|
|
@@ -6533,10 +6584,10 @@ function ReplyCard(props) {
|
|
|
6533
6584
|
setPicking(open);
|
|
6534
6585
|
if (!open) settle();
|
|
6535
6586
|
},
|
|
6536
|
-
more: offersMenu && /* @__PURE__ */
|
|
6587
|
+
more: offersMenu && /* @__PURE__ */ jsx85(
|
|
6537
6588
|
ConversationMenu,
|
|
6538
6589
|
{
|
|
6539
|
-
trigger: /* @__PURE__ */
|
|
6590
|
+
trigger: /* @__PURE__ */ jsx85(ToolbarButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx85(IconDotsVertical5, { size: 16, stroke: 1.5 }) }),
|
|
6540
6591
|
open: menuOpen,
|
|
6541
6592
|
onOpenChange: (next) => {
|
|
6542
6593
|
setMenuOpen(next);
|
|
@@ -6556,7 +6607,7 @@ function ReplyCard(props) {
|
|
|
6556
6607
|
]
|
|
6557
6608
|
}
|
|
6558
6609
|
),
|
|
6559
|
-
deleting && onDelete && /* @__PURE__ */
|
|
6610
|
+
deleting && onDelete && /* @__PURE__ */ jsx85(DeleteQuestion, { noun, onDelete, refused: deleteRefused, onClose: () => setDeleting(false), children: deleteNote === void 0 ? /* @__PURE__ */ jsx85("p", { children: "It is deleted for everyone." }) : typeof deleteNote === "string" ? /* @__PURE__ */ jsx85("p", { children: deleteNote }) : deleteNote })
|
|
6560
6611
|
] });
|
|
6561
6612
|
}
|
|
6562
6613
|
|
|
@@ -6564,27 +6615,27 @@ function ReplyCard(props) {
|
|
|
6564
6615
|
import { Fragment as Fragment24, useCallback as useCallback6, useEffect as useEffect14, useLayoutEffect as useLayoutEffect8, useRef as useRef20, useState as useState27 } from "react";
|
|
6565
6616
|
|
|
6566
6617
|
// src/Panel.tsx
|
|
6567
|
-
import { jsx as
|
|
6618
|
+
import { jsx as jsx86, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
6568
6619
|
function Frame({ title, chevron = false, actions, header, children, footer, bodyClassName, bodyRef, onBodyScroll, className, broken = false }) {
|
|
6569
|
-
return /* @__PURE__ */
|
|
6570
|
-
header ?? /* @__PURE__ */
|
|
6620
|
+
return /* @__PURE__ */ jsxs64("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
|
|
6621
|
+
header ?? /* @__PURE__ */ jsx86(ContainerHeader, { title, chevron, actions }),
|
|
6571
6622
|
broken ? (
|
|
6572
6623
|
// The message takes the room the body had and centres itself in it.
|
|
6573
|
-
/* @__PURE__ */
|
|
6574
|
-
) : /* @__PURE__ */
|
|
6575
|
-
!broken && footer && /* @__PURE__ */
|
|
6624
|
+
/* @__PURE__ */ jsx86("div", { className: "flex min-h-0 flex-1 flex-col px-4", children })
|
|
6625
|
+
) : /* @__PURE__ */ jsx86(ScrollArea, { className: "min-h-0 flex-1", contentClassName: bodyClassName, viewportRef: bodyRef, onScroll: onBodyScroll, children }),
|
|
6626
|
+
!broken && footer && /* @__PURE__ */ jsx86("div", { className: "shrink-0", children: footer })
|
|
6576
6627
|
] });
|
|
6577
6628
|
}
|
|
6578
6629
|
function Panel(props) {
|
|
6579
|
-
return /* @__PURE__ */
|
|
6630
|
+
return /* @__PURE__ */ jsx86(
|
|
6580
6631
|
ErrorBoundary,
|
|
6581
6632
|
{
|
|
6582
6633
|
label: "panel",
|
|
6583
6634
|
frame: (message) => (
|
|
6584
6635
|
// Only the name comes back with the message: the actions and the footer may be what threw.
|
|
6585
|
-
/* @__PURE__ */
|
|
6636
|
+
/* @__PURE__ */ jsx86(Frame, { title: props.title, chevron: props.chevron, className: props.className, broken: true, children: message })
|
|
6586
6637
|
),
|
|
6587
|
-
children: /* @__PURE__ */
|
|
6638
|
+
children: /* @__PURE__ */ jsx86(Frame, { ...props })
|
|
6588
6639
|
}
|
|
6589
6640
|
);
|
|
6590
6641
|
}
|
|
@@ -6688,11 +6739,11 @@ function useWatchSeen(seen, root, attribute) {
|
|
|
6688
6739
|
}
|
|
6689
6740
|
|
|
6690
6741
|
// src/ConversationLayout.tsx
|
|
6691
|
-
import { Fragment as Fragment25, jsx as
|
|
6742
|
+
import { Fragment as Fragment25, jsx as jsx87, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
6692
6743
|
var threadOf = (item) => typeof item?.thread === "function" ? item.thread() : item?.thread;
|
|
6693
6744
|
function List({ items, open, under, above, loading, empty, change, caret }) {
|
|
6694
|
-
if (loading) return /* @__PURE__ */
|
|
6695
|
-
if (items.length === 0) return typeof empty === "string" ? /* @__PURE__ */
|
|
6745
|
+
if (loading) return /* @__PURE__ */ jsx87(SkeletonConversation, {});
|
|
6746
|
+
if (items.length === 0) return typeof empty === "string" ? /* @__PURE__ */ jsx87(EmptyState, { scope: "section", message: empty }) : /* @__PURE__ */ jsx87(Fragment25, { children: empty });
|
|
6696
6747
|
const stateOf = (item) => change && item.thread ? {
|
|
6697
6748
|
under,
|
|
6698
6749
|
open: open === item.id,
|
|
@@ -6701,12 +6752,12 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
|
|
|
6701
6752
|
} : null;
|
|
6702
6753
|
const draw2 = (item) => {
|
|
6703
6754
|
if (!under) {
|
|
6704
|
-
return /* @__PURE__ */
|
|
6755
|
+
return /* @__PURE__ */ jsxs65(Fragment24, { children: [
|
|
6705
6756
|
item.before,
|
|
6706
|
-
/* @__PURE__ */
|
|
6757
|
+
/* @__PURE__ */ jsx87("div", { "data-conversation-item": item.id, className: cn("flex flex-col", SHOWN_CLASSES), children: /* @__PURE__ */ jsx87(InConversationItem.Provider, { value: stateOf(item), children: item.card }) })
|
|
6707
6758
|
] }, item.id);
|
|
6708
6759
|
}
|
|
6709
|
-
return /* @__PURE__ */
|
|
6760
|
+
return /* @__PURE__ */ jsx87(UnderItem, { item, isOpen: open === item.id && !!item.thread, state: stateOf(item), caret }, item.id);
|
|
6710
6761
|
};
|
|
6711
6762
|
if (!under) {
|
|
6712
6763
|
const stretches = [];
|
|
@@ -6722,11 +6773,11 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
|
|
|
6722
6773
|
seen.set(name, count);
|
|
6723
6774
|
stretches.push({ key: `${item.day === void 0 ? "no-day" : `day:${name}`}#${count}`, day: item.day, items: [item] });
|
|
6724
6775
|
}
|
|
6725
|
-
return /* @__PURE__ */
|
|
6776
|
+
return /* @__PURE__ */ jsxs65(Fragment25, { children: [
|
|
6726
6777
|
above,
|
|
6727
6778
|
stretches.map(
|
|
6728
|
-
(stretch) => stretch.day === void 0 ? /* @__PURE__ */
|
|
6729
|
-
/* @__PURE__ */
|
|
6779
|
+
(stretch) => stretch.day === void 0 ? /* @__PURE__ */ jsx87(Fragment24, { children: stretch.items.map(draw2) }, stretch.key) : /* @__PURE__ */ jsxs65("div", { className: "flex flex-col gap-2", children: [
|
|
6780
|
+
/* @__PURE__ */ jsx87(Divider, { look: "section", label: stretch.day, sticky: true }),
|
|
6730
6781
|
stretch.items.map(draw2)
|
|
6731
6782
|
] }, stretch.key)
|
|
6732
6783
|
)
|
|
@@ -6734,11 +6785,11 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
|
|
|
6734
6785
|
}
|
|
6735
6786
|
const resolved = items.filter((item) => item.resolved);
|
|
6736
6787
|
const gone = items.filter((item) => item.gone && !item.resolved);
|
|
6737
|
-
const group = (title, list) => list.length > 0 && /* @__PURE__ */
|
|
6788
|
+
const group = (title, list) => list.length > 0 && /* @__PURE__ */ jsx87(
|
|
6738
6789
|
CollapsibleSection,
|
|
6739
6790
|
{
|
|
6740
6791
|
title,
|
|
6741
|
-
trailing: /* @__PURE__ */
|
|
6792
|
+
trailing: /* @__PURE__ */ jsx87(Chip, { type: "neutral", label: String(list.length) }),
|
|
6742
6793
|
defaultOpen: false,
|
|
6743
6794
|
openFor: list.some((item) => item.id === open) ? open : void 0,
|
|
6744
6795
|
className: "shrink-0",
|
|
@@ -6746,7 +6797,7 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
|
|
|
6746
6797
|
children: list.map(draw2)
|
|
6747
6798
|
}
|
|
6748
6799
|
);
|
|
6749
|
-
return /* @__PURE__ */
|
|
6800
|
+
return /* @__PURE__ */ jsxs65(Fragment25, { children: [
|
|
6750
6801
|
above,
|
|
6751
6802
|
items.filter((item) => !item.resolved && !item.gone).map(draw2),
|
|
6752
6803
|
group("On deleted blocks", gone),
|
|
@@ -6756,7 +6807,7 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
|
|
|
6756
6807
|
function UnderItem({ item, isOpen, state, caret }) {
|
|
6757
6808
|
const root = useRef20(null);
|
|
6758
6809
|
const line = useFaceLine(root, isOpen);
|
|
6759
|
-
return /* @__PURE__ */
|
|
6810
|
+
return /* @__PURE__ */ jsxs65(
|
|
6760
6811
|
Card,
|
|
6761
6812
|
{
|
|
6762
6813
|
ref: root,
|
|
@@ -6768,13 +6819,13 @@ function UnderItem({ item, isOpen, state, caret }) {
|
|
|
6768
6819
|
quietUntilHover: !isOpen,
|
|
6769
6820
|
className: cn("relative flex flex-col", isOpen && "pb-2", SHOWN_CLASSES),
|
|
6770
6821
|
children: [
|
|
6771
|
-
/* @__PURE__ */
|
|
6772
|
-
/* @__PURE__ */
|
|
6773
|
-
isOpen && /* @__PURE__ */
|
|
6822
|
+
/* @__PURE__ */ jsx87(InConversationItem.Provider, { value: state, children: /* @__PURE__ */ jsx87(InThreadCard.Provider, { value: isOpen, children: /* @__PURE__ */ jsxs65(LineByLayout.Provider, { value: true, children: [
|
|
6823
|
+
/* @__PURE__ */ jsx87("div", { className: "-m-px flex flex-col", children: item.card }),
|
|
6824
|
+
isOpen && /* @__PURE__ */ jsx87(caretOnOpen.Provider, { value: caret, children: threadOf(item) })
|
|
6774
6825
|
] }) }) }),
|
|
6775
6826
|
line && // The face's line, one bar, last so it stands over a hovered card's fill; 19px in, centred under the face.
|
|
6776
6827
|
// Its top and height come from the measure: where the face and the last reply end are not known ahead.
|
|
6777
|
-
/* @__PURE__ */
|
|
6828
|
+
/* @__PURE__ */ jsx87("span", { "aria-hidden": true, className: "pointer-events-none absolute left-[19px] w-0.5 bg-border-default", style: { top: line.top, height: line.height } })
|
|
6778
6829
|
]
|
|
6779
6830
|
}
|
|
6780
6831
|
);
|
|
@@ -6897,49 +6948,49 @@ function ConversationLayout({
|
|
|
6897
6948
|
// The body at least the column's height: the comments start at its top, and the note under them (`below`) is pushed
|
|
6898
6949
|
// to its foot, so with few comments it sits on the box, as a short conversation's last line does in Peek's two
|
|
6899
6950
|
// columns (Katerina, 2 November); with many it comes after them, and scrolls with them.
|
|
6900
|
-
/* @__PURE__ */
|
|
6901
|
-
/* @__PURE__ */
|
|
6902
|
-
!loading && below != null && below !== false && below !== "" && /* @__PURE__ */
|
|
6951
|
+
/* @__PURE__ */ jsxs65(Panel, { className: cn("w-[384px] flex-none", className), title, actions, bodyRef: setBody, bodyClassName: "flex min-h-full flex-col gap-2 p-3", footer: box && /* @__PURE__ */ jsx87("div", { className: "p-3", children: box }), children: [
|
|
6952
|
+
/* @__PURE__ */ jsx87(List, { items, open, under: true, above, loading, empty, change, caret }),
|
|
6953
|
+
!loading && below != null && below !== false && below !== "" && /* @__PURE__ */ jsx87("div", { className: "mt-auto flex flex-col gap-2", children: below })
|
|
6903
6954
|
] })
|
|
6904
6955
|
);
|
|
6905
6956
|
}
|
|
6906
6957
|
const opened = threadOf(items.find((item) => item.id === open));
|
|
6907
6958
|
const side = opened || aside;
|
|
6908
|
-
return /* @__PURE__ */
|
|
6909
|
-
/* @__PURE__ */
|
|
6959
|
+
return /* @__PURE__ */ jsxs65("div", { className: cn("flex min-h-0 min-w-0 flex-1", className), children: [
|
|
6960
|
+
/* @__PURE__ */ jsx87(
|
|
6910
6961
|
ErrorBoundary,
|
|
6911
6962
|
{
|
|
6912
6963
|
label: "conversation",
|
|
6913
|
-
frame: (message) => /* @__PURE__ */
|
|
6914
|
-
/* @__PURE__ */
|
|
6915
|
-
/* @__PURE__ */
|
|
6964
|
+
frame: (message) => /* @__PURE__ */ jsxs65("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
|
|
6965
|
+
/* @__PURE__ */ jsx87(ContainerHeader, { title }),
|
|
6966
|
+
/* @__PURE__ */ jsx87("div", { className: "flex min-h-0 flex-1 flex-col px-4", children: message })
|
|
6916
6967
|
] }),
|
|
6917
|
-
children: /* @__PURE__ */
|
|
6968
|
+
children: /* @__PURE__ */ jsxs65("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
|
|
6918
6969
|
header,
|
|
6919
|
-
/* @__PURE__ */
|
|
6920
|
-
top != null && top !== false && top !== "" && /* @__PURE__ */
|
|
6921
|
-
/* @__PURE__ */
|
|
6922
|
-
/* @__PURE__ */
|
|
6923
|
-
/* @__PURE__ */
|
|
6970
|
+
/* @__PURE__ */ jsxs65(ScrollArea, { className: "min-h-0 flex-1", viewportRef: setBody, onScroll: scrolled, contentClassName: "flex min-h-full flex-col", children: [
|
|
6971
|
+
top != null && top !== false && top !== "" && /* @__PURE__ */ jsx87("div", { className: "shrink-0 px-4 pt-4", children: top }),
|
|
6972
|
+
/* @__PURE__ */ jsx87("div", { className: "min-h-0 flex-1" }),
|
|
6973
|
+
/* @__PURE__ */ jsxs65("div", { className: "flex shrink-0 flex-col gap-2 p-4", children: [
|
|
6974
|
+
/* @__PURE__ */ jsx87(List, { items, open, under: false, above, loading, empty, change, caret }),
|
|
6924
6975
|
!loading && below
|
|
6925
6976
|
] })
|
|
6926
6977
|
] }),
|
|
6927
|
-
box && /* @__PURE__ */
|
|
6978
|
+
box && /* @__PURE__ */ jsx87("div", { className: "shrink-0 p-3", children: /* @__PURE__ */ jsx87(sendsInLayout.Provider, { value: sends, children: box }) })
|
|
6928
6979
|
] })
|
|
6929
6980
|
}
|
|
6930
6981
|
),
|
|
6931
6982
|
side && // Its own catch, as Peek's column had: a thread or a panel that throws says so in the column, and the comments stay.
|
|
6932
6983
|
// One catch per thread, and one for the aside: a thread that threw is let go once it is closed or another opens,
|
|
6933
6984
|
// as Peek's column, drawn only while a thread was open, let it go on closing. Each thread is drawn afresh.
|
|
6934
|
-
/* @__PURE__ */
|
|
6985
|
+
/* @__PURE__ */ jsx87("div", { className: "flex w-[384px] shrink-0 flex-col overflow-hidden border-l border-border-subtle", children: /* @__PURE__ */ jsx87(ErrorBoundary, { label: "thread panel", children: opened ? /* @__PURE__ */ jsx87(caretOnOpen.Provider, { value: caret, children: opened }) : aside }, opened ? `thread:${open}` : "aside") })
|
|
6935
6986
|
] });
|
|
6936
6987
|
}
|
|
6937
6988
|
|
|
6938
6989
|
// src/ConversationHeading.tsx
|
|
6939
|
-
import { jsx as
|
|
6990
|
+
import { jsx as jsx88, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
6940
6991
|
var NAME = "-mx-1 min-w-0 truncate rounded px-1 text-left text-h4 text-text-primary";
|
|
6941
6992
|
function ConversationHeading({ icon, name, onOpen, href, className }) {
|
|
6942
|
-
const label = href ? /* @__PURE__ */
|
|
6993
|
+
const label = href ? /* @__PURE__ */ jsx88(
|
|
6943
6994
|
"a",
|
|
6944
6995
|
{
|
|
6945
6996
|
href,
|
|
@@ -6951,42 +7002,42 @@ function ConversationHeading({ icon, name, onOpen, href, className }) {
|
|
|
6951
7002
|
className: cn(NAME, "hover:bg-bg-hover"),
|
|
6952
7003
|
children: name
|
|
6953
7004
|
}
|
|
6954
|
-
) : onOpen ? /* @__PURE__ */
|
|
6955
|
-
return /* @__PURE__ */
|
|
6956
|
-
/* @__PURE__ */
|
|
7005
|
+
) : onOpen ? /* @__PURE__ */ jsx88("button", { type: "button", onClick: onOpen, className: cn(NAME, "hover:bg-bg-hover"), children: name }) : /* @__PURE__ */ jsx88("span", { className: NAME, children: name });
|
|
7006
|
+
return /* @__PURE__ */ jsxs66("div", { "data-conversation-heading": true, className: cn("flex w-full items-center gap-2", className), children: [
|
|
7007
|
+
/* @__PURE__ */ jsx88("span", { "aria-hidden": true, className: "flex size-6 shrink-0 items-center justify-center text-text-secondary", children: icon }),
|
|
6957
7008
|
label
|
|
6958
7009
|
] });
|
|
6959
7010
|
}
|
|
6960
7011
|
|
|
6961
7012
|
// src/ConversationPlace.tsx
|
|
6962
|
-
import { jsx as
|
|
7013
|
+
import { jsx as jsx89, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
6963
7014
|
function ConversationPlace({ relation, place, children, className, ...props }) {
|
|
6964
|
-
return /* @__PURE__ */
|
|
6965
|
-
/* @__PURE__ */
|
|
6966
|
-
/* @__PURE__ */
|
|
6967
|
-
place && /* @__PURE__ */
|
|
7015
|
+
return /* @__PURE__ */ jsxs67("div", { className: cn("flex flex-col gap-1", className), ...props, children: [
|
|
7016
|
+
/* @__PURE__ */ jsxs67("div", { className: "flex items-center gap-2", children: [
|
|
7017
|
+
/* @__PURE__ */ jsx89(Chip, { type: "neutral", label: relation }),
|
|
7018
|
+
place && /* @__PURE__ */ jsx89("span", { className: "truncate text-caption text-text-muted", children: place })
|
|
6968
7019
|
] }),
|
|
6969
7020
|
children
|
|
6970
7021
|
] });
|
|
6971
7022
|
}
|
|
6972
7023
|
|
|
6973
7024
|
// src/QuotedLine.tsx
|
|
6974
|
-
import { jsx as
|
|
7025
|
+
import { jsx as jsx90, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
6975
7026
|
var SINCE = { reworded: "Changed since", gone: "Deleted from the page" };
|
|
6976
7027
|
function QuotedLine({ words, state = "here", label, href, external }) {
|
|
6977
7028
|
const shown2 = words ?? label ?? "";
|
|
6978
7029
|
const inThePage = !!words && state === "here";
|
|
6979
|
-
const mark = /* @__PURE__ */
|
|
6980
|
-
return /* @__PURE__ */
|
|
6981
|
-
/* @__PURE__ */
|
|
6982
|
-
state !== "here" && /* @__PURE__ */
|
|
7030
|
+
const mark = /* @__PURE__ */ jsx90("mark", { className: cn("rounded-sm px-0.5 text-text-primary [box-decoration-break:clone]", inThePage ? "bg-warning-muted" : "bg-bg-inset text-text-secondary", state === "gone" && "line-through"), children: shown2 });
|
|
7031
|
+
return /* @__PURE__ */ jsxs68("div", { "data-quoted": words ? state : "part", className: "flex w-full min-w-0 flex-col gap-0.5", children: [
|
|
7032
|
+
/* @__PURE__ */ jsx90(WithTooltip, { label: shown2, wrapperClassName: "flex min-w-0", children: /* @__PURE__ */ jsx90("p", { className: "line-clamp-2 text-caption text-text-secondary", children: href ? /* @__PURE__ */ jsx90(Link, { href, variant: "quiet", external, children: mark }) : mark }) }),
|
|
7033
|
+
state !== "here" && /* @__PURE__ */ jsx90("span", { className: "text-caption italic text-text-muted", children: SINCE[state] })
|
|
6983
7034
|
] });
|
|
6984
7035
|
}
|
|
6985
7036
|
|
|
6986
7037
|
// src/ReactionHorizon.tsx
|
|
6987
|
-
import { Fragment as Fragment26, jsx as
|
|
7038
|
+
import { Fragment as Fragment26, jsx as jsx91, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
6988
7039
|
function Said({ limit, omitted, noun }) {
|
|
6989
|
-
return /* @__PURE__ */
|
|
7040
|
+
return /* @__PURE__ */ jsxs69(Fragment26, { children: [
|
|
6990
7041
|
"Reactions are shown for the latest ",
|
|
6991
7042
|
limit,
|
|
6992
7043
|
" ",
|
|
@@ -6999,11 +7050,11 @@ function Said({ limit, omitted, noun }) {
|
|
|
6999
7050
|
] });
|
|
7000
7051
|
}
|
|
7001
7052
|
function ReactionHorizon({ limit, omitted, cut = false, noun = "comments", keepRoom = false }) {
|
|
7002
|
-
const room = keepRoom && omitted <= 0 && /* @__PURE__ */
|
|
7053
|
+
const room = keepRoom && omitted <= 0 && /* @__PURE__ */ jsx91("p", { "aria-hidden": true, className: "invisible text-caption text-text-muted", children: /* @__PURE__ */ jsx91(Said, { limit, omitted: 1, noun }) });
|
|
7003
7054
|
if (omitted <= 0 && !cut) return room || null;
|
|
7004
|
-
return /* @__PURE__ */
|
|
7005
|
-
/* @__PURE__ */
|
|
7006
|
-
omitted > 0 && /* @__PURE__ */
|
|
7055
|
+
return /* @__PURE__ */ jsxs69(Fragment26, { children: [
|
|
7056
|
+
/* @__PURE__ */ jsxs69("p", { className: "text-caption text-text-muted", children: [
|
|
7057
|
+
omitted > 0 && /* @__PURE__ */ jsx91(Said, { limit, omitted, noun }),
|
|
7007
7058
|
omitted > 0 && cut && " ",
|
|
7008
7059
|
cut && "Some reactions may be missing."
|
|
7009
7060
|
] }),
|
|
@@ -7013,18 +7064,18 @@ function ReactionHorizon({ limit, omitted, cut = false, noun = "comments", keepR
|
|
|
7013
7064
|
|
|
7014
7065
|
// src/ArchiveDialog.tsx
|
|
7015
7066
|
import { useState as useState28 } from "react";
|
|
7016
|
-
import { jsx as
|
|
7067
|
+
import { jsx as jsx92, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
7017
7068
|
var listOf = (parts) => parts.length <= 1 ? parts[0] ?? "" : `${parts.slice(0, -1).join(", ")} and ${parts.at(-1)}`;
|
|
7018
7069
|
function ArchiveDialog({ title, what, hides, staysVisible = [], apps, getBack, onClose, onArchive }) {
|
|
7019
7070
|
const [resolution, setResolution] = useState28("");
|
|
7020
7071
|
const where = apps.length ? `, ${listOf(apps.map((app) => `in ${app}`))}` : "";
|
|
7021
|
-
return /* @__PURE__ */
|
|
7022
|
-
/* @__PURE__ */
|
|
7023
|
-
/* @__PURE__ */
|
|
7024
|
-
staysVisible.length > 0 && /* @__PURE__ */
|
|
7025
|
-
/* @__PURE__ */
|
|
7072
|
+
return /* @__PURE__ */ jsxs70(FormDialog, { title: `Archive \u201C${title}\u201D?`, submitLabel: `Archive ${what}`, ready: hides !== null, onSubmit: () => onArchive(resolution.trim()), onClose, children: [
|
|
7073
|
+
/* @__PURE__ */ jsxs70("div", { className: "flex flex-col gap-2 text-body-2 text-text-primary", children: [
|
|
7074
|
+
/* @__PURE__ */ jsx92("p", { children: hides === null ? `Counting what archiving this ${what} would hide\u2026` : hides.length ? `This hides the ${what} and ${listOf(hides)} from every list${where}.` : `This hides the ${what} from every list${where}.` }),
|
|
7075
|
+
staysVisible.length > 0 && /* @__PURE__ */ jsx92("p", { children: `${listOf(staysVisible)} stay visible there.` }),
|
|
7076
|
+
/* @__PURE__ */ jsx92("p", { className: "text-text-secondary", children: getBack })
|
|
7026
7077
|
] }),
|
|
7027
|
-
/* @__PURE__ */
|
|
7078
|
+
/* @__PURE__ */ jsx92(Field, { label: "Resolution (optional)", children: /* @__PURE__ */ jsx92(
|
|
7028
7079
|
Textarea,
|
|
7029
7080
|
{
|
|
7030
7081
|
value: resolution,
|
|
@@ -7039,19 +7090,19 @@ function ArchiveDialog({ title, what, hides, staysVisible = [], apps, getBack, o
|
|
|
7039
7090
|
// src/ArchivedNotice.tsx
|
|
7040
7091
|
import { useState as useState29 } from "react";
|
|
7041
7092
|
import { IconArchive } from "@tabler/icons-react";
|
|
7042
|
-
import { jsx as
|
|
7093
|
+
import { jsx as jsx93, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
7043
7094
|
function ArchivedNotice({ by, when, resolution, withWhat, withTitle, onUnarchive, onOpenParent }) {
|
|
7044
7095
|
const [unarchiving, setUnarchiving] = useState29(false);
|
|
7045
7096
|
const parent = withWhat ?? (withTitle ? "parent" : void 0);
|
|
7046
7097
|
const named2 = withTitle ? ` \u201C${withTitle}\u201D` : "";
|
|
7047
7098
|
const line = parent ? `Archived with its ${parent}${named2} by ${by} \xB7 ${when}` : `Archived by ${by} \xB7 ${when}`;
|
|
7048
|
-
return /* @__PURE__ */
|
|
7049
|
-
/* @__PURE__ */
|
|
7050
|
-
/* @__PURE__ */
|
|
7051
|
-
/* @__PURE__ */
|
|
7052
|
-
resolution && /* @__PURE__ */
|
|
7099
|
+
return /* @__PURE__ */ jsxs71(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
|
|
7100
|
+
/* @__PURE__ */ jsx93(IconArchive, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
|
|
7101
|
+
/* @__PURE__ */ jsxs71("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
7102
|
+
/* @__PURE__ */ jsx93("span", { className: "text-body-2-strong text-text-primary", children: line }),
|
|
7103
|
+
resolution && /* @__PURE__ */ jsx93("p", { className: "whitespace-pre-wrap text-caption text-text-secondary", children: resolution })
|
|
7053
7104
|
] }),
|
|
7054
|
-
parent ? onOpenParent && /* @__PURE__ */
|
|
7105
|
+
parent ? onOpenParent && /* @__PURE__ */ jsx93(Button, { variant: "outlined", size: "small", className: "shrink-0", onClick: onOpenParent, children: `Open ${parent}` }) : onUnarchive && /* @__PURE__ */ jsx93(
|
|
7055
7106
|
Button,
|
|
7056
7107
|
{
|
|
7057
7108
|
variant: "outlined",
|
|
@@ -7071,13 +7122,13 @@ function ArchivedNotice({ by, when, resolution, withWhat, withTitle, onUnarchive
|
|
|
7071
7122
|
// src/DeletedNotice.tsx
|
|
7072
7123
|
import { useState as useState30 } from "react";
|
|
7073
7124
|
import { IconTrash } from "@tabler/icons-react";
|
|
7074
|
-
import { jsx as
|
|
7125
|
+
import { jsx as jsx94, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
7075
7126
|
function DeletedNotice({ by, when, onRestore }) {
|
|
7076
7127
|
const [restoring, setRestoring] = useState30(false);
|
|
7077
|
-
return /* @__PURE__ */
|
|
7078
|
-
/* @__PURE__ */
|
|
7079
|
-
/* @__PURE__ */
|
|
7080
|
-
onRestore && /* @__PURE__ */
|
|
7128
|
+
return /* @__PURE__ */ jsxs72(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
|
|
7129
|
+
/* @__PURE__ */ jsx94(IconTrash, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
|
|
7130
|
+
/* @__PURE__ */ jsx94("span", { className: "min-w-0 flex-1 text-body-2-strong text-text-primary", children: `Deleted by ${by} \xB7 ${when}` }),
|
|
7131
|
+
onRestore && /* @__PURE__ */ jsx94(
|
|
7081
7132
|
Button,
|
|
7082
7133
|
{
|
|
7083
7134
|
variant: "outlined",
|
|
@@ -7096,21 +7147,21 @@ function DeletedNotice({ by, when, onRestore }) {
|
|
|
7096
7147
|
|
|
7097
7148
|
// src/NoAccessNotice.tsx
|
|
7098
7149
|
import { IconLock } from "@tabler/icons-react";
|
|
7099
|
-
import { jsx as
|
|
7150
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
7100
7151
|
function NoAccessNotice({ what }) {
|
|
7101
|
-
return /* @__PURE__ */
|
|
7152
|
+
return /* @__PURE__ */ jsx95(EmptyState, { scope: "page", icon: /* @__PURE__ */ jsx95(IconLock, { size: 16, stroke: 1.5 }), message: `You can't open this ${what}` });
|
|
7102
7153
|
}
|
|
7103
7154
|
|
|
7104
7155
|
// src/Thread.tsx
|
|
7105
7156
|
import { Children, useCallback as useCallback7, useContext as useContext15, useLayoutEffect as useLayoutEffect9, useRef as useRef21, useState as useState31 } from "react";
|
|
7106
7157
|
import { IconX as IconX6 } from "@tabler/icons-react";
|
|
7107
|
-
import { Fragment as Fragment27, jsx as
|
|
7158
|
+
import { Fragment as Fragment27, jsx as jsx96, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
7108
7159
|
var always = () => true;
|
|
7109
7160
|
var anyIn = (children) => Children.toArray(children).length > 0;
|
|
7110
7161
|
function Replies({ children, loading, empty }) {
|
|
7111
|
-
if (loading) return /* @__PURE__ */
|
|
7112
|
-
if (!anyIn(children)) return typeof empty === "string" ? /* @__PURE__ */
|
|
7113
|
-
return /* @__PURE__ */
|
|
7162
|
+
if (loading) return /* @__PURE__ */ jsx96(SkeletonConversation, {});
|
|
7163
|
+
if (!anyIn(children)) return typeof empty === "string" ? /* @__PURE__ */ jsx96(EmptyState, { scope: "section", message: empty }) : /* @__PURE__ */ jsx96(Fragment27, { children: empty });
|
|
7164
|
+
return /* @__PURE__ */ jsx96(Fragment27, { children });
|
|
7114
7165
|
}
|
|
7115
7166
|
function Thread({
|
|
7116
7167
|
place = "beside",
|
|
@@ -7155,36 +7206,36 @@ function Thread({
|
|
|
7155
7206
|
const foot = notice ?? box;
|
|
7156
7207
|
const layoutLine = useContext15(LineByLayout);
|
|
7157
7208
|
if (place === "under") {
|
|
7158
|
-
return /* @__PURE__ */
|
|
7209
|
+
return /* @__PURE__ */ jsxs73("div", { ref: under, "data-thread": "under", className: cn("flex flex-col", className), children: [
|
|
7159
7210
|
(loading || anyIn(children)) && // The replies hang from a line under the comment's face (20px in: its 8px and half its 24px), one step in (Ship's way).
|
|
7160
7211
|
// 8px from the one card's right edge too, as the box under them: a hovered reply never touches it (Katerina, 31 October).
|
|
7161
7212
|
// 2px, as the line from the comment's face that runs into it (Katerina, 1 November), and drawn the same way, a
|
|
7162
7213
|
// filled bar rather than a border: a border snaps to the screen's pixels on its own, and at some zooms the two
|
|
7163
7214
|
// stood a pixel apart (Katerina: "the line breaks in the middle").
|
|
7164
|
-
/* @__PURE__ */
|
|
7165
|
-
!layoutLine && /* @__PURE__ */
|
|
7166
|
-
/* @__PURE__ */
|
|
7215
|
+
/* @__PURE__ */ jsxs73("div", { "data-thread-replies": true, className: "relative ml-[19px] mr-2 flex flex-col gap-1 pl-2.5", children: [
|
|
7216
|
+
!layoutLine && /* @__PURE__ */ jsx96("span", { "aria-hidden": true, className: "absolute bottom-0 left-0 top-0 w-0.5 bg-border-default" }),
|
|
7217
|
+
/* @__PURE__ */ jsx96(caretOnOpen.Provider, { value: 0, children: loading ? /* @__PURE__ */ jsx96(SkeletonConversation, {}) : children })
|
|
7167
7218
|
] }),
|
|
7168
|
-
foot && /* @__PURE__ */
|
|
7219
|
+
foot && /* @__PURE__ */ jsx96("div", { className: "px-2 pt-2", children: foot })
|
|
7169
7220
|
] });
|
|
7170
7221
|
}
|
|
7171
|
-
return /* @__PURE__ */
|
|
7222
|
+
return /* @__PURE__ */ jsxs73(
|
|
7172
7223
|
Panel,
|
|
7173
7224
|
{
|
|
7174
7225
|
className,
|
|
7175
7226
|
bodyRef: setBody,
|
|
7176
7227
|
bodyClassName: "flex flex-col",
|
|
7177
7228
|
title,
|
|
7178
|
-
actions: /* @__PURE__ */
|
|
7179
|
-
resolved && /* @__PURE__ */
|
|
7229
|
+
actions: /* @__PURE__ */ jsxs73(Fragment27, { children: [
|
|
7230
|
+
resolved && /* @__PURE__ */ jsx96(Chip, { type: "success", label: "Resolved" }),
|
|
7180
7231
|
actions,
|
|
7181
|
-
onClose && /* @__PURE__ */
|
|
7232
|
+
onClose && /* @__PURE__ */ jsx96(IconButton, { tooltip: "Close", "aria-label": closeLabel, onClick: onClose, children: /* @__PURE__ */ jsx96(IconX6, { size: 16, stroke: 1.5 }) })
|
|
7182
7233
|
] }),
|
|
7183
|
-
footer: foot && /* @__PURE__ */
|
|
7234
|
+
footer: foot && /* @__PURE__ */ jsx96("div", { className: "p-3", children: foot }),
|
|
7184
7235
|
children: [
|
|
7185
|
-
start && /* @__PURE__ */
|
|
7186
|
-
/* @__PURE__ */
|
|
7187
|
-
/* @__PURE__ */
|
|
7236
|
+
start && /* @__PURE__ */ jsx96("div", { className: cn("px-4 pb-2 pt-4", SHOWN_CLASSES), "data-thread-start": start.id, children: /* @__PURE__ */ jsx96(PinnedComment, { author: start.author, time: start.time, at: start.at, words: start.words, deleted: start.deleted, unseen: start.unseen }) }),
|
|
7237
|
+
/* @__PURE__ */ jsx96(Divider, { look: "section", label: "Replies", className: "px-4 py-2" }),
|
|
7238
|
+
/* @__PURE__ */ jsx96("div", { className: "flex flex-col gap-2 px-4 pb-4", children: /* @__PURE__ */ jsx96(caretOnOpen.Provider, { value: 0, children: /* @__PURE__ */ jsx96(repliesDrawn.Provider, { value: drawn, children: /* @__PURE__ */ jsx96(Replies, { loading, empty, children }) }) }) })
|
|
7188
7239
|
]
|
|
7189
7240
|
}
|
|
7190
7241
|
);
|
|
@@ -7237,9 +7288,9 @@ function showInConversationWhenDrawn(id, { wait = WAIT_MS, ...options } = {}) {
|
|
|
7237
7288
|
// src/SearchInput.tsx
|
|
7238
7289
|
import "react";
|
|
7239
7290
|
import { Input as Input3 } from "@base-ui/react/input";
|
|
7240
|
-
import { jsx as
|
|
7291
|
+
import { jsx as jsx97, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
7241
7292
|
function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...props }) {
|
|
7242
|
-
return /* @__PURE__ */
|
|
7293
|
+
return /* @__PURE__ */ jsxs74(
|
|
7243
7294
|
"div",
|
|
7244
7295
|
{
|
|
7245
7296
|
className: cn(
|
|
@@ -7251,7 +7302,7 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
|
|
|
7251
7302
|
className
|
|
7252
7303
|
),
|
|
7253
7304
|
children: [
|
|
7254
|
-
/* @__PURE__ */
|
|
7305
|
+
/* @__PURE__ */ jsx97(
|
|
7255
7306
|
Input3,
|
|
7256
7307
|
{
|
|
7257
7308
|
className: cn("flex-1 min-w-0 text-input-value", BARE_INPUT_CLASSES),
|
|
@@ -7259,7 +7310,7 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
|
|
|
7259
7310
|
...props
|
|
7260
7311
|
}
|
|
7261
7312
|
),
|
|
7262
|
-
shortcut && /* @__PURE__ */
|
|
7313
|
+
shortcut && /* @__PURE__ */ jsx97(Kbd, { children: shortcut })
|
|
7263
7314
|
]
|
|
7264
7315
|
}
|
|
7265
7316
|
);
|
|
@@ -7268,37 +7319,37 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
|
|
|
7268
7319
|
// src/PageHeader.tsx
|
|
7269
7320
|
import { Fragment as Fragment28 } from "react";
|
|
7270
7321
|
import { IconLock as IconLock2 } from "@tabler/icons-react";
|
|
7271
|
-
import { Fragment as Fragment29, jsx as
|
|
7322
|
+
import { Fragment as Fragment29, jsx as jsx98, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
7272
7323
|
function PageHeader({ title, leading, private: locked = false, after, meta, time, members, actions, className }) {
|
|
7273
7324
|
const words = (meta ?? []).map((one) => typeof one === "string" ? { label: one } : one);
|
|
7274
7325
|
const quiet = words.length > 0 || time != null || members != null;
|
|
7275
|
-
const name = /* @__PURE__ */
|
|
7276
|
-
leading != null && /* @__PURE__ */
|
|
7277
|
-
locked && /* @__PURE__ */
|
|
7278
|
-
typeof title === "string" ? /* @__PURE__ */
|
|
7279
|
-
after != null && /* @__PURE__ */
|
|
7326
|
+
const name = /* @__PURE__ */ jsxs75("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
7327
|
+
leading != null && /* @__PURE__ */ jsx98("span", { className: "flex shrink-0 items-center text-text-secondary", children: leading }),
|
|
7328
|
+
locked && /* @__PURE__ */ jsx98(WithTooltip, { label: "Private", children: /* @__PURE__ */ jsx98(IconLock2, { size: 16, stroke: 1.5, role: "img", "aria-label": "Private", className: "shrink-0 text-text-secondary" }) }),
|
|
7329
|
+
typeof title === "string" ? /* @__PURE__ */ jsx98("span", { className: "truncate text-body-2-strong text-text-primary", children: title }) : /* @__PURE__ */ jsx98("div", { className: "flex min-w-0 items-center", children: title }),
|
|
7330
|
+
after != null && /* @__PURE__ */ jsx98("span", { className: "flex shrink-0 items-center", children: after })
|
|
7280
7331
|
] });
|
|
7281
|
-
const right = quiet || actions != null ? /* @__PURE__ */
|
|
7332
|
+
const right = quiet || actions != null ? /* @__PURE__ */ jsxs75(Fragment29, { children: [
|
|
7282
7333
|
quiet && // The quiet group: 12px between its parts, and 12px clear of the buttons — the bar sets
|
|
7283
7334
|
// its actions 4px apart, so the group adds the other 8px, as Peek's and Leaf's bars do.
|
|
7284
|
-
/* @__PURE__ */
|
|
7285
|
-
words.length > 0 && /* @__PURE__ */
|
|
7335
|
+
/* @__PURE__ */ jsxs75("div", { className: cn("flex items-center gap-3", actions != null && "pr-2"), children: [
|
|
7336
|
+
words.length > 0 && /* @__PURE__ */ jsx98("div", { className: "flex items-center gap-2", children: words.map((one, i) => /* @__PURE__ */ jsxs75(Fragment28, { children: [
|
|
7286
7337
|
i > 0 && // eslint-disable-next-line token-spacing/no-restricted-classes -- @estiva-escape: Peek's dot between its counts, 3px measured on 31 October; the scale steps from 2px to 4px
|
|
7287
|
-
/* @__PURE__ */
|
|
7288
|
-
/* @__PURE__ */
|
|
7338
|
+
/* @__PURE__ */ jsx98("span", { "aria-hidden": "true", className: "size-[3px] shrink-0 rounded-full bg-text-muted" }),
|
|
7339
|
+
/* @__PURE__ */ jsx98(MetaText, { tone: one.done ? "success" : "secondary", children: one.label })
|
|
7289
7340
|
] }, `${one.label}-${i}`)) }),
|
|
7290
|
-
time && /* @__PURE__ */
|
|
7341
|
+
time && /* @__PURE__ */ jsx98(WithTooltip, { label: time.exact, children: /* @__PURE__ */ jsx98("span", { className: "whitespace-nowrap text-caption italic text-text-muted", children: time.label }) }),
|
|
7291
7342
|
members
|
|
7292
7343
|
] }),
|
|
7293
7344
|
actions
|
|
7294
7345
|
] }) : void 0;
|
|
7295
|
-
return /* @__PURE__ */
|
|
7346
|
+
return /* @__PURE__ */ jsx98(ContainerHeader, { title: name, actions: right, className });
|
|
7296
7347
|
}
|
|
7297
7348
|
|
|
7298
7349
|
// src/ListColumn.tsx
|
|
7299
|
-
import { jsx as
|
|
7350
|
+
import { jsx as jsx99, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
7300
7351
|
function Column({ title, chevron = false, titleMenu, actions, above, collapsed = false, children, className, broken = false }) {
|
|
7301
|
-
return /* @__PURE__ */
|
|
7352
|
+
return /* @__PURE__ */ jsxs76(
|
|
7302
7353
|
"div",
|
|
7303
7354
|
{
|
|
7304
7355
|
className: cn(
|
|
@@ -7311,35 +7362,35 @@ function Column({ title, chevron = false, titleMenu, actions, above, collapsed =
|
|
|
7311
7362
|
"data-collapsed": collapsed || void 0,
|
|
7312
7363
|
inert: collapsed,
|
|
7313
7364
|
children: [
|
|
7314
|
-
/* @__PURE__ */
|
|
7365
|
+
/* @__PURE__ */ jsx99(ContainerHeader, { title, chevron, titleMenu, actions }),
|
|
7315
7366
|
above,
|
|
7316
7367
|
broken ? (
|
|
7317
7368
|
// The message takes the room the list had and centres itself in it (Katerina, 19 September).
|
|
7318
|
-
/* @__PURE__ */
|
|
7319
|
-
) : /* @__PURE__ */
|
|
7369
|
+
/* @__PURE__ */ jsx99("div", { className: "flex min-h-0 flex-1 flex-col px-3", children })
|
|
7370
|
+
) : /* @__PURE__ */ jsx99(ScrollArea, { className: "flex-1", contentClassName: "flex flex-col gap-0.5 px-3 pt-4 pb-3", children })
|
|
7320
7371
|
]
|
|
7321
7372
|
}
|
|
7322
7373
|
);
|
|
7323
7374
|
}
|
|
7324
7375
|
function ListColumn(props) {
|
|
7325
|
-
return /* @__PURE__ */
|
|
7376
|
+
return /* @__PURE__ */ jsx99(
|
|
7326
7377
|
ErrorBoundary,
|
|
7327
7378
|
{
|
|
7328
7379
|
label: "list panel",
|
|
7329
7380
|
frame: (message) => (
|
|
7330
7381
|
// Only the name comes back with the message: the actions and the row above may be what threw.
|
|
7331
|
-
/* @__PURE__ */
|
|
7382
|
+
/* @__PURE__ */ jsx99(Column, { title: props.title, chevron: props.chevron, collapsed: props.collapsed, className: props.className, broken: true, children: message })
|
|
7332
7383
|
),
|
|
7333
|
-
children: /* @__PURE__ */
|
|
7384
|
+
children: /* @__PURE__ */ jsx99(Column, { ...props })
|
|
7334
7385
|
}
|
|
7335
7386
|
);
|
|
7336
7387
|
}
|
|
7337
7388
|
|
|
7338
7389
|
// src/Tabs.tsx
|
|
7339
7390
|
import { Tabs as BaseTabs } from "@base-ui/react/tabs";
|
|
7340
|
-
import { Fragment as Fragment30, jsx as
|
|
7391
|
+
import { Fragment as Fragment30, jsx as jsx100, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
7341
7392
|
function Tabs({ tabs, active, onChange, size = "default", className, ...aria }) {
|
|
7342
|
-
return /* @__PURE__ */
|
|
7393
|
+
return /* @__PURE__ */ jsx100(
|
|
7343
7394
|
BaseTabs.Root,
|
|
7344
7395
|
{
|
|
7345
7396
|
value: active,
|
|
@@ -7347,14 +7398,14 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
|
|
|
7347
7398
|
if (details.reason === "none") onChange(value);
|
|
7348
7399
|
},
|
|
7349
7400
|
className,
|
|
7350
|
-
children: /* @__PURE__ */
|
|
7401
|
+
children: /* @__PURE__ */ jsx100(
|
|
7351
7402
|
BaseTabs.List,
|
|
7352
7403
|
{
|
|
7353
7404
|
activateOnFocus: true,
|
|
7354
7405
|
"aria-label": aria["aria-label"],
|
|
7355
7406
|
"aria-labelledby": aria["aria-labelledby"],
|
|
7356
7407
|
className: "flex items-center gap-2",
|
|
7357
|
-
children: tabs.map((tab) => /* @__PURE__ */
|
|
7408
|
+
children: tabs.map((tab) => /* @__PURE__ */ jsxs77(
|
|
7358
7409
|
BaseTabs.Tab,
|
|
7359
7410
|
{
|
|
7360
7411
|
value: tab.id,
|
|
@@ -7367,13 +7418,13 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
|
|
|
7367
7418
|
),
|
|
7368
7419
|
children: [
|
|
7369
7420
|
tab.icon,
|
|
7370
|
-
/* @__PURE__ */
|
|
7421
|
+
/* @__PURE__ */ jsxs77("span", { className: "flex items-baseline", children: [
|
|
7371
7422
|
tab.label,
|
|
7372
|
-
tab.count !== void 0 ? /* @__PURE__ */
|
|
7423
|
+
tab.count !== void 0 ? /* @__PURE__ */ jsx100("span", { className: "ml-2.5 font-mono text-caption tabular-nums text-text-secondary", children: tab.count }) : null
|
|
7373
7424
|
] }),
|
|
7374
|
-
tab.unread ? /* @__PURE__ */
|
|
7375
|
-
/* @__PURE__ */
|
|
7376
|
-
/* @__PURE__ */
|
|
7425
|
+
tab.unread ? /* @__PURE__ */ jsxs77(Fragment30, { children: [
|
|
7426
|
+
/* @__PURE__ */ jsx100(UnreadDot, { className: "h-auto w-auto" }),
|
|
7427
|
+
/* @__PURE__ */ jsx100("span", { className: "sr-only", children: "new" })
|
|
7377
7428
|
] }) : null
|
|
7378
7429
|
]
|
|
7379
7430
|
},
|
|
@@ -7389,7 +7440,7 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
|
|
|
7389
7440
|
import { createContext as createContext13, useContext as useContext16, useMemo as useMemo7 } from "react";
|
|
7390
7441
|
import { Toast as BaseToast } from "@base-ui/react/toast";
|
|
7391
7442
|
import { IconAlertCircle as IconAlertCircle2, IconCircleCheck as IconCircleCheck5, IconCircleX as IconCircleX2 } from "@tabler/icons-react";
|
|
7392
|
-
import { jsx as
|
|
7443
|
+
import { jsx as jsx101, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
7393
7444
|
var SURFACE_STYLES = {
|
|
7394
7445
|
success: "bg-success-muted signal:bg-bg-inset signal:border signal:border-border-default signal:shadow-md leaf:bg-bg-inset leaf:border leaf:border-border-default leaf:shadow-md",
|
|
7395
7446
|
brand: "bg-accent-muted signal:bg-bg-inset signal:border signal:border-border-default signal:shadow-md leaf:bg-bg-inset leaf:border leaf:border-border-default leaf:shadow-md",
|
|
@@ -7425,16 +7476,16 @@ var pillClassName = (type, hasAction, className) => cn(
|
|
|
7425
7476
|
);
|
|
7426
7477
|
function LeadingIcon({ type }) {
|
|
7427
7478
|
const Icon = ICONS2[type];
|
|
7428
|
-
return /* @__PURE__ */
|
|
7479
|
+
return /* @__PURE__ */ jsx101(Icon, { size: 16, stroke: 1.5, className: cn("text-text-primary shrink-0", ICON_STYLES[type]) });
|
|
7429
7480
|
}
|
|
7430
7481
|
function Toast({ label, type = "neutral", leadingIcon = true, actionLabel, onAction, className }) {
|
|
7431
7482
|
const hasAction = !!(actionLabel && onAction);
|
|
7432
|
-
return /* @__PURE__ */
|
|
7433
|
-
/* @__PURE__ */
|
|
7434
|
-
leadingIcon && /* @__PURE__ */
|
|
7435
|
-
/* @__PURE__ */
|
|
7483
|
+
return /* @__PURE__ */ jsxs78("div", { className: pillClassName(type, hasAction, className), children: [
|
|
7484
|
+
/* @__PURE__ */ jsxs78("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
7485
|
+
leadingIcon && /* @__PURE__ */ jsx101(LeadingIcon, { type }),
|
|
7486
|
+
/* @__PURE__ */ jsx101("span", { className: LABEL_CLASSES, children: label })
|
|
7436
7487
|
] }),
|
|
7437
|
-
hasAction && /* @__PURE__ */
|
|
7488
|
+
hasAction && /* @__PURE__ */ jsx101(Button, { variant: "outlined", size: "small", onClick: onAction, children: actionLabel })
|
|
7438
7489
|
] });
|
|
7439
7490
|
}
|
|
7440
7491
|
var ToastContext = createContext13(null);
|
|
@@ -7456,9 +7507,9 @@ function ToastProvider({ children }) {
|
|
|
7456
7507
|
}),
|
|
7457
7508
|
[manager]
|
|
7458
7509
|
);
|
|
7459
|
-
return /* @__PURE__ */
|
|
7510
|
+
return /* @__PURE__ */ jsx101(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs78(BaseToast.Provider, { toastManager: manager, limit: VISIBLE_TOASTS, children: [
|
|
7460
7511
|
children,
|
|
7461
|
-
/* @__PURE__ */
|
|
7512
|
+
/* @__PURE__ */ jsx101(BaseToast.Portal, { children: /* @__PURE__ */ jsx101(BaseToast.Viewport, { className: "fixed bottom-4 left-4 z-[100] flex flex-col-reverse items-start gap-2 pointer-events-none", children: /* @__PURE__ */ jsx101(ToastList, {}) }) })
|
|
7462
7513
|
] }) });
|
|
7463
7514
|
}
|
|
7464
7515
|
function ToastList() {
|
|
@@ -7466,25 +7517,25 @@ function ToastList() {
|
|
|
7466
7517
|
return toasts.map((toast) => {
|
|
7467
7518
|
const type = toast.type ?? "neutral";
|
|
7468
7519
|
const { leadingIcon = true, actionLabel, onAction } = toast.data ?? {};
|
|
7469
|
-
return /* @__PURE__ */
|
|
7520
|
+
return /* @__PURE__ */ jsxs78(
|
|
7470
7521
|
BaseToast.Root,
|
|
7471
7522
|
{
|
|
7472
7523
|
toast,
|
|
7473
7524
|
swipeDirection: ["left", "down"],
|
|
7474
7525
|
className: pillClassName(type, !!actionLabel, "pointer-events-auto data-[limited]:hidden"),
|
|
7475
7526
|
children: [
|
|
7476
|
-
/* @__PURE__ */
|
|
7477
|
-
leadingIcon && /* @__PURE__ */
|
|
7478
|
-
/* @__PURE__ */
|
|
7527
|
+
/* @__PURE__ */ jsxs78("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
7528
|
+
leadingIcon && /* @__PURE__ */ jsx101(LeadingIcon, { type }),
|
|
7529
|
+
/* @__PURE__ */ jsx101(BaseToast.Title, { render: /* @__PURE__ */ jsx101("span", {}), className: LABEL_CLASSES })
|
|
7479
7530
|
] }),
|
|
7480
|
-
actionLabel && /* @__PURE__ */
|
|
7531
|
+
actionLabel && /* @__PURE__ */ jsx101(
|
|
7481
7532
|
BaseToast.Action,
|
|
7482
7533
|
{
|
|
7483
7534
|
onClick: () => {
|
|
7484
7535
|
onAction?.();
|
|
7485
7536
|
close(toast.id);
|
|
7486
7537
|
},
|
|
7487
|
-
render: /* @__PURE__ */
|
|
7538
|
+
render: /* @__PURE__ */ jsx101(Button, { variant: "outlined", size: "small", children: actionLabel })
|
|
7488
7539
|
}
|
|
7489
7540
|
)
|
|
7490
7541
|
]
|
|
@@ -7533,6 +7584,7 @@ export {
|
|
|
7533
7584
|
ConversationLayout,
|
|
7534
7585
|
ConversationMenu,
|
|
7535
7586
|
ConversationPlace,
|
|
7587
|
+
CornerMenu,
|
|
7536
7588
|
DeletedNotice,
|
|
7537
7589
|
DialogShell,
|
|
7538
7590
|
Divider,
|
|
@@ -7670,6 +7722,7 @@ export {
|
|
|
7670
7722
|
useLeftAt,
|
|
7671
7723
|
useRememberedOpen,
|
|
7672
7724
|
useSeenOnScreen,
|
|
7725
|
+
useShortcut,
|
|
7673
7726
|
useSidebarFold,
|
|
7674
7727
|
useToast,
|
|
7675
7728
|
whoReacted
|