@crewlethq/ui 0.148.0 → 0.149.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/ActivityLine/index.js +3 -3
- package/dist/AgentHandoffPanel/index.js +8 -8
- package/dist/AppShell/index.js +5 -5
- package/dist/ArrangeFrame/index.js +3 -3
- package/dist/ArrangeList/index.js +5 -5
- package/dist/ArtifactBar/index.js +7 -7
- package/dist/ArtifactCard/index.js +6 -6
- package/dist/ArtifactPanel/index.js +4 -4
- package/dist/ArtifactRef/index.js +2 -2
- package/dist/AttentionList/index.js +4 -4
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-HD7YSWDV.css → Avatar-OUKBB6UF.css} +19 -5
- package/dist/AvatarPicker/index.js +8 -8
- package/dist/BriefCard/index.js +3 -3
- package/dist/Button/index.js +2 -2
- package/dist/Callout/index.js +3 -3
- package/dist/Canvas/index.js +4 -4
- package/dist/CanvasBoard/index.js +6 -6
- package/dist/CanvasToolbar/index.js +5 -5
- package/dist/ChangeMark/index.js +2 -2
- package/dist/ChatMessage/index.js +3 -3
- package/dist/ChatThread/index.js +4 -4
- package/dist/CheckGrid/index.js +5 -5
- package/dist/Checkbox/index.js +4 -4
- package/dist/Clamp/index.js +3 -3
- package/dist/CodeBlock/CodeBlock.d.ts +11 -1
- package/dist/CodeBlock/index.js +6 -6
- package/dist/CodeBlock/syntax.d.ts +23 -0
- package/dist/{CodeBlock-LS7H6KUQ.css → CodeBlock-GPNAG43I.css} +34 -0
- package/dist/ColorField/index.js +4 -4
- package/dist/ColorSwatch/index.js +6 -6
- package/dist/Combobox/index.js +4 -4
- package/dist/CommandPalette/index.js +6 -6
- package/dist/CommentThread/index.js +7 -7
- package/dist/Composer/index.js +4 -4
- package/dist/ConfirmField/index.js +4 -4
- package/dist/ConflictNote/index.js +3 -3
- package/dist/ContrastHelp/index.js +3 -3
- package/dist/Copyable/index.js +5 -5
- package/dist/DataGrid/index.js +6 -6
- package/dist/DataTable/index.js +8 -8
- package/dist/DataView/index.js +11 -11
- package/dist/DateTimePicker/index.js +4 -4
- package/dist/DeepWorkCard/index.js +4 -4
- package/dist/DeliveryReceipt/DeliveryReceipt.d.ts +69 -53
- package/dist/DeliveryReceipt/index.js +8 -1
- package/dist/DeliveryReceipt-GTES3RSG.css +90 -0
- package/dist/DocTabsEditor/index.js +6 -6
- package/dist/DownloadButton/index.js +3 -3
- package/dist/{Editor-PGDR7XMZ.js → Editor-FXREHINI.js} +5 -5
- package/dist/EmojiPicker/index.js +4 -4
- package/dist/EntityChip/index.js +1 -1
- package/dist/ErrorBoundary/index.js +3 -3
- package/dist/FactList/index.js +2 -2
- package/dist/FileDrop/index.js +3 -3
- package/dist/FilterPill/index.js +3 -3
- package/dist/FollowBanner/index.js +5 -5
- package/dist/Fullscreen/index.js +3 -3
- package/dist/GraphCanvas/index.js +6 -6
- package/dist/HuePicker/index.js +7 -7
- package/dist/IconButton/index.js +2 -2
- package/dist/ImageUpload/index.js +1 -1
- package/dist/InlineEditor/index.js +3 -3
- package/dist/InlineRef/index.js +1 -1
- package/dist/{InlineRef-LHU6MH4I.css → InlineRef-CUBTBIYD.css} +2 -1
- package/dist/Input/index.js +3 -3
- package/dist/KeyValueRows/index.js +5 -5
- package/dist/LinkInterstitial/index.js +6 -6
- package/dist/ListDetail/index.js +3 -3
- package/dist/ListInput/index.js +5 -5
- package/dist/LogoSlot/index.js +4 -4
- package/dist/MarkdownEditor/index.js +7 -7
- package/dist/MemberPicker/index.js +5 -5
- package/dist/Menu/index.js +4 -4
- package/dist/MergeConflicts/index.js +7 -7
- package/dist/MessageActions/index.js +5 -5
- package/dist/Modal/index.js +4 -4
- package/dist/NoticeList/index.js +3 -3
- package/dist/OpenInAppCard/index.js +4 -4
- package/dist/OrgLabel/index.js +1 -1
- package/dist/OrgNode/index.js +1 -1
- package/dist/OrgTable/index.js +9 -9
- package/dist/PeekRail/index.js +4 -4
- package/dist/PeopleRail/index.js +5 -5
- package/dist/PinTile/index.js +3 -3
- package/dist/PresenceStack/index.js +1 -1
- package/dist/PresenterView/index.js +5 -5
- package/dist/Principal/index.js +1 -1
- package/dist/PrincipalPicker/index.js +6 -6
- package/dist/ProposalCard/index.js +8 -8
- package/dist/RailList/index.js +4 -4
- package/dist/ReactionBar/index.js +5 -5
- package/dist/ReceiptStrip/index.js +3 -3
- package/dist/ResultTableCard/index.js +4 -4
- package/dist/RichEditor/index.js +5 -5
- package/dist/SandboxedFrame/index.js +5 -5
- package/dist/SectionFrame/index.js +4 -4
- package/dist/SegmentedControl/index.js +6 -6
- package/dist/SelectionBar/index.js +3 -3
- package/dist/SendButton/index.js +3 -3
- package/dist/SettingsTable/index.js +5 -5
- package/dist/ShareDialog/index.js +9 -9
- package/dist/SheetColumnEditor/index.js +10 -10
- package/dist/SheetGrid/index.js +7 -7
- package/dist/SidePanel/index.js +3 -3
- package/dist/SidebarNav/index.js +3 -3
- package/dist/SlideCompare/index.js +3 -3
- package/dist/SlideFilmstrip/index.js +5 -5
- package/dist/SlideNav/index.js +3 -3
- package/dist/StatusLine/index.js +2 -2
- package/dist/Switcher/index.js +6 -6
- package/dist/TableCells/index.js +1 -1
- package/dist/Tabs/index.js +5 -5
- package/dist/TagsInput/index.js +3 -3
- package/dist/ThemeSwitcher/index.js +7 -7
- package/dist/ThemeToggle/index.js +3 -3
- package/dist/ThreadSummary/index.js +2 -2
- package/dist/TimeRangePicker/index.js +10 -10
- package/dist/TimeWindowPicker/index.js +5 -5
- package/dist/Tooltip/Tooltip.d.ts +8 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/TreeCanvas/index.js +5 -5
- package/dist/TreeGrid/index.js +7 -7
- package/dist/ValueField/index.js +5 -5
- package/dist/VersionCompare/index.js +7 -7
- package/dist/VersionTimeline/index.js +4 -4
- package/dist/WorkingLine/index.js +2 -2
- package/dist/{chunk-CYRGASHY.js → chunk-27NS67UI.js} +2 -2
- package/dist/{chunk-2RJFKMTX.js → chunk-27ZF7D3C.js} +2 -2
- package/dist/chunk-2EPEVS2M.js +158 -0
- package/dist/{chunk-SPCNQUEU.js → chunk-2PSOUDCS.js} +1 -1
- package/dist/{chunk-IEM64WYC.js → chunk-2QPELDAA.js} +2 -2
- package/dist/{chunk-RG6XQJ74.js → chunk-2W2KAF7D.js} +1 -1
- package/dist/{chunk-CLEQII3E.js → chunk-3EL3IF3W.js} +1 -1
- package/dist/{chunk-QA774VCH.js → chunk-3GWCWUSY.js} +1 -1
- package/dist/{chunk-2Z5SMA7Q.js → chunk-3OZPHFDT.js} +1 -1
- package/dist/{chunk-YLOADTDS.js → chunk-3RLOH5AR.js} +1 -1
- package/dist/{chunk-N37AX25G.js → chunk-3SUIU2ZO.js} +3 -3
- package/dist/{chunk-IAER2ZMS.js → chunk-4DUK2TC4.js} +1 -1
- package/dist/{chunk-T7J2U3IN.js → chunk-4LNSURYZ.js} +1 -1
- package/dist/{chunk-BXP6WDKR.js → chunk-5C7MP4C7.js} +2 -2
- package/dist/{chunk-WTRAMP4V.js → chunk-5ORAUELE.js} +3 -3
- package/dist/{chunk-VXSCGB2L.js → chunk-6RBE5RVG.js} +2 -2
- package/dist/{chunk-UOVEN5RY.js → chunk-7C6NHVMX.js} +5 -5
- package/dist/{chunk-RIAEOKY7.js → chunk-7CVV3DQC.js} +1 -1
- package/dist/{chunk-RJZO5NQW.js → chunk-7FY7L6WD.js} +2 -2
- package/dist/{chunk-OU4P4E3U.js → chunk-7J2RIAZ4.js} +1 -1
- package/dist/{chunk-BPCXMQMB.js → chunk-7MAU74EI.js} +1 -1
- package/dist/{chunk-UJETUDIL.js → chunk-7PK2Z5JY.js} +2 -2
- package/dist/{chunk-SSRQLPGT.js → chunk-7SXCCVUR.js} +2 -2
- package/dist/{chunk-RMGAZEEX.js → chunk-7WXLPNZF.js} +1 -1
- package/dist/{chunk-MMJYDMGL.js → chunk-AH7R777J.js} +2 -2
- package/dist/{chunk-5L4ZSNGP.js → chunk-AU4EKD2G.js} +1 -1
- package/dist/{chunk-PDGXQBFS.js → chunk-BFZAGIXR.js} +3 -1
- package/dist/{chunk-QNN4OYLU.js → chunk-BJE7TPO6.js} +2 -2
- package/dist/{chunk-TYCICVST.js → chunk-BRMJPZC4.js} +1 -1
- package/dist/{chunk-EZG3SRSM.js → chunk-CA62YCFK.js} +1 -1
- package/dist/{chunk-JXLFC5BX.js → chunk-CC5NUAOF.js} +1 -1
- package/dist/{chunk-74B3HREV.js → chunk-CJGLMT44.js} +1 -1
- package/dist/{chunk-TCQIJ2VO.js → chunk-CRGYWLP6.js} +1 -1
- package/dist/{chunk-2UEMCSVB.js → chunk-CXJMWEZC.js} +1 -1
- package/dist/{chunk-HHCD55D3.js → chunk-D33K2BCZ.js} +1 -1
- package/dist/{chunk-SNKLBPXQ.js → chunk-DGB7R42F.js} +1 -1
- package/dist/{chunk-GYVL23ZK.js → chunk-DLYYW77C.js} +1 -1
- package/dist/{chunk-7VE7SOH6.js → chunk-E3JUS3CR.js} +1 -1
- package/dist/{chunk-X2R3GWCB.js → chunk-ECHQLOWI.js} +2 -2
- package/dist/{chunk-QDVXEQJC.js → chunk-EDQHZOU3.js} +3 -3
- package/dist/{chunk-HLCQHRHJ.js → chunk-EO64FXVL.js} +1 -1
- package/dist/{chunk-BXGFDSC7.js → chunk-F6OYNO7O.js} +3 -3
- package/dist/{chunk-U62CXJPE.js → chunk-FCRJAFTU.js} +7 -7
- package/dist/{chunk-LO3CTXQI.js → chunk-FMKQSDBQ.js} +3 -3
- package/dist/{chunk-4DJONKYN.js → chunk-FYVV6GJN.js} +1 -1
- package/dist/{chunk-D7XI5DN5.js → chunk-GMXOZEF5.js} +1 -1
- package/dist/{chunk-3HY3KHMR.js → chunk-GR6XGA5V.js} +2 -2
- package/dist/{chunk-R4H352IB.js → chunk-HHTAGV5R.js} +1 -1
- package/dist/{chunk-EVOLZQTB.js → chunk-HIDOUXLD.js} +1 -1
- package/dist/{chunk-CMLRFHBD.js → chunk-HJ6ZY4UX.js} +2 -2
- package/dist/{chunk-F37ZBF4D.js → chunk-HYUO2RHC.js} +1 -1
- package/dist/{chunk-QGDQ5YDC.js → chunk-IMF3CPTY.js} +2 -2
- package/dist/{chunk-TRV7VZW6.js → chunk-IRGS5FEC.js} +1 -1
- package/dist/{chunk-P67SLIPX.js → chunk-IRLHICS4.js} +2 -2
- package/dist/{chunk-HDJMTHAP.js → chunk-IZH5DCOQ.js} +1 -1
- package/dist/{chunk-3ZJ6X3ZJ.js → chunk-JD5K6Y7Q.js} +3 -3
- package/dist/{chunk-7R77GFUO.js → chunk-JNDZGQGS.js} +2 -2
- package/dist/{chunk-DJAYXYDZ.js → chunk-KM5OKCW6.js} +2 -2
- package/dist/{chunk-NDZEN2ON.js → chunk-KQUENZR3.js} +1 -1
- package/dist/{chunk-PD3RJT3F.js → chunk-LDSLEEWR.js} +3 -3
- package/dist/{chunk-MCZJ2SD7.js → chunk-LZ3TKYAY.js} +2 -2
- package/dist/{chunk-LDVZYLA6.js → chunk-M2USLODI.js} +2 -2
- package/dist/{chunk-VGAZHT6S.js → chunk-M4VA76JF.js} +6 -6
- package/dist/{chunk-5Y3BFCGM.js → chunk-MUBJN75T.js} +5 -5
- package/dist/{chunk-5B5N4X5H.js → chunk-N3LAAA4R.js} +3 -3
- package/dist/{chunk-RVFSUF7V.js → chunk-N3R2POGO.js} +3 -3
- package/dist/chunk-NZHWGKPW.js +334 -0
- package/dist/{chunk-XIJU47UT.js → chunk-O2J5PSWI.js} +2 -2
- package/dist/{chunk-QPAUKLNC.js → chunk-O3CY4MHN.js} +3 -3
- package/dist/{chunk-R75TTEHL.js → chunk-OAD4AXYJ.js} +1 -1
- package/dist/{chunk-ZCA3JNQS.js → chunk-ODN3LSYW.js} +1 -1
- package/dist/{chunk-BKHS6YPM.js → chunk-OMVGWZ3V.js} +1 -1
- package/dist/{chunk-ETVXKUW7.js → chunk-PW6QXVIX.js} +3 -3
- package/dist/{chunk-PGLRFPYY.js → chunk-Q7RI66TT.js} +4 -4
- package/dist/{chunk-FYN2HXEB.js → chunk-QRUQOITJ.js} +1 -1
- package/dist/{chunk-XNTYJAHL.js → chunk-QULAFXL3.js} +1 -1
- package/dist/{chunk-QO76JNSB.js → chunk-R2RHSKAT.js} +3 -3
- package/dist/{chunk-V2K6EHJA.js → chunk-RNVPYDRQ.js} +1 -1
- package/dist/{chunk-TNYRJVKE.js → chunk-RTMFZLU3.js} +2 -2
- package/dist/{chunk-WGSIKYDE.js → chunk-RUNZWWN6.js} +5 -5
- package/dist/{chunk-QNG5MH7P.js → chunk-RXHY5T2Z.js} +2 -2
- package/dist/{chunk-Z3GOZ42N.js → chunk-S4ADDFRT.js} +3 -3
- package/dist/{chunk-EFTWYGN5.js → chunk-TBOVJ7RL.js} +1 -1
- package/dist/{chunk-ZPJX57QO.js → chunk-TPABM6DW.js} +2 -2
- package/dist/{chunk-ACXYNJZR.js → chunk-TSLXQVBC.js} +1 -1
- package/dist/{chunk-WK3OWTOD.js → chunk-TTUFOH2Y.js} +1 -1
- package/dist/{chunk-LHGDKWHV.js → chunk-U3ZUZ7VU.js} +3 -3
- package/dist/{chunk-X4QL7STV.js → chunk-UEO3A76N.js} +1 -1
- package/dist/{chunk-7UN7ICUE.js → chunk-UPQ4MDPE.js} +2 -2
- package/dist/{chunk-LILN66O3.js → chunk-V4CGY2CI.js} +1 -1
- package/dist/{chunk-PY3PKWAN.js → chunk-V67VL3WD.js} +1 -1
- package/dist/{chunk-JLWCONCZ.js → chunk-VARFEAUH.js} +5 -5
- package/dist/{chunk-OL42IZ6I.js → chunk-VFC7KVCW.js} +1 -1
- package/dist/{chunk-HTWN4IJJ.js → chunk-W2T7RGH7.js} +2 -2
- package/dist/{chunk-3FBJACLW.js → chunk-WAF36OFS.js} +5 -5
- package/dist/{chunk-EILMLMSG.js → chunk-WOHPQEBZ.js} +1 -1
- package/dist/{chunk-QWDTC2UI.js → chunk-WSKVFRKK.js} +1 -1
- package/dist/{chunk-TAOVSH32.js → chunk-X5ZUDJNK.js} +1 -1
- package/dist/{chunk-CNEHTSA5.js → chunk-XJU53WMW.js} +1 -1
- package/dist/{chunk-VGYVCLN4.js → chunk-XQMRSL7Z.js} +1 -1
- package/dist/{chunk-UC4YASMJ.js → chunk-YMBXTGFC.js} +2 -2
- package/dist/{chunk-VWEF6LTZ.js → chunk-YOCTDR2P.js} +1 -1
- package/dist/{chunk-H4OV6SYF.js → chunk-YRNIPS4M.js} +2 -2
- package/dist/{chunk-2BIGA4VD.js → chunk-YWPUT6JQ.js} +2 -2
- package/dist/{chunk-5DYNF5U2.js → chunk-Z6HWOPI7.js} +1 -1
- package/dist/{chunk-DQ3MKG7I.js → chunk-Z6OZNSHF.js} +1 -1
- package/dist/{chunk-PRNJO37A.js → chunk-Z7BA2EVV.js} +2 -2
- package/dist/{chunk-YKM3HCDL.js → chunk-ZAQ7CEYN.js} +2 -2
- package/dist/{chunk-WYO5KDET.js → chunk-ZC73GPA3.js} +1 -1
- package/dist/{chunk-SQHDMVU7.js → chunk-ZFSKRN6D.js} +1 -1
- package/dist/{chunk-4DKECHWE.js → chunk-ZMZNKDPO.js} +4 -4
- package/dist/{chunk-2FAEKL36.js → chunk-ZNEMXLTY.js} +1 -1
- package/dist/generated/index.js +126 -126
- package/dist/index.js +126 -126
- package/dist/styles.css +120 -45
- package/package.json +3 -3
- package/dist/DeliveryReceipt-BILVVNTO.css +0 -64
- package/dist/chunk-GTNXDLYH.js +0 -146
- package/dist/chunk-L6E4DVIF.js +0 -131
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { CopyButton, copyGlyph, CopyStatus } from './chunk-IRGS5FEC.js';
|
|
2
|
+
import { useClipboard } from './chunk-STJ7QBC3.js';
|
|
3
|
+
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
4
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
+
import './CodeBlock-GPNAG43I.css';
|
|
6
|
+
import { forwardRef, useRef, useState, useLayoutEffect, useMemo } from 'react';
|
|
7
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
// src/CodeBlock/syntax.ts
|
|
10
|
+
var CODE_BLOCK_GRAMMARS = ["json", "yaml", "yml"];
|
|
11
|
+
var CODE_BLOCK_HIGHLIGHT_LIMIT = 256 * 1024;
|
|
12
|
+
function grammarOf(language) {
|
|
13
|
+
const name = language?.trim().toLowerCase();
|
|
14
|
+
return CODE_BLOCK_GRAMMARS.includes(name ?? "") ? name : null;
|
|
15
|
+
}
|
|
16
|
+
var Runs = class {
|
|
17
|
+
list = [];
|
|
18
|
+
push(kind, text) {
|
|
19
|
+
if (text === "") return;
|
|
20
|
+
const last = this.list[this.list.length - 1];
|
|
21
|
+
if (last && last.kind === kind) last.text += text;
|
|
22
|
+
else this.list.push({ kind, text });
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var JSON_NUMBER = /-?\d+(?:\.\d+)?(?:[eE][-+]?\d+)?/y;
|
|
26
|
+
var WORD = /[A-Za-z_$][\w$]*/y;
|
|
27
|
+
function quoted(line, start, quote, escapes) {
|
|
28
|
+
let i = start + 1;
|
|
29
|
+
while (i < line.length) {
|
|
30
|
+
const ch = line[i];
|
|
31
|
+
if (escapes && ch === "\\") i += 2;
|
|
32
|
+
else if (ch === quote) {
|
|
33
|
+
if (!escapes && line[i + 1] === quote) i += 2;
|
|
34
|
+
else return i + 1;
|
|
35
|
+
} else i += 1;
|
|
36
|
+
}
|
|
37
|
+
return line.length;
|
|
38
|
+
}
|
|
39
|
+
function sticky(pattern, line, at) {
|
|
40
|
+
pattern.lastIndex = at;
|
|
41
|
+
return pattern.test(line) ? pattern.lastIndex : at;
|
|
42
|
+
}
|
|
43
|
+
function jsonLine(line, out) {
|
|
44
|
+
let i = 0;
|
|
45
|
+
while (i < line.length) {
|
|
46
|
+
const ch = line[i];
|
|
47
|
+
if (ch === " " || ch === " " || ch === "\r") {
|
|
48
|
+
let end = i + 1;
|
|
49
|
+
while (end < line.length && /[ \t\r]/.test(line[end])) end += 1;
|
|
50
|
+
out.push(null, line.slice(i, end));
|
|
51
|
+
i = end;
|
|
52
|
+
} else if (ch === '"') {
|
|
53
|
+
const end = quoted(line, i, '"', true);
|
|
54
|
+
let after = end;
|
|
55
|
+
while (after < line.length && (line[after] === " " || line[after] === " ")) after += 1;
|
|
56
|
+
out.push(line[after] === ":" ? "key" : "string", line.slice(i, end));
|
|
57
|
+
i = end;
|
|
58
|
+
} else if ("{}[]:,".includes(ch)) {
|
|
59
|
+
out.push("punctuation", ch);
|
|
60
|
+
i += 1;
|
|
61
|
+
} else if (ch === "-" || ch >= "0" && ch <= "9") {
|
|
62
|
+
const end = sticky(JSON_NUMBER, line, i);
|
|
63
|
+
out.push(end > i ? "number" : null, line.slice(i, Math.max(end, i + 1)));
|
|
64
|
+
i = Math.max(end, i + 1);
|
|
65
|
+
} else {
|
|
66
|
+
const end = sticky(WORD, line, i);
|
|
67
|
+
if (end > i) {
|
|
68
|
+
const word = line.slice(i, end);
|
|
69
|
+
out.push(word === "true" || word === "false" ? "boolean" : word === "null" ? "null" : null, word);
|
|
70
|
+
i = end;
|
|
71
|
+
} else {
|
|
72
|
+
out.push(null, ch);
|
|
73
|
+
i += 1;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
var YAML_NUMBER = /^[-+]?(?:\d[\d_]*(?:\.\d*)?(?:[eE][-+]?\d+)?|\.\d+(?:[eE][-+]?\d+)?|0x[\da-fA-F]+|0o[0-7]+|\.(?:inf|Inf|INF)|\.(?:nan|NaN|NAN))$/;
|
|
79
|
+
var YAML_BOOLEAN = /^(?:true|True|TRUE|false|False|FALSE)$/;
|
|
80
|
+
var YAML_NULL = /^(?:null|Null|NULL|~)$/;
|
|
81
|
+
var BLOCK_HEADER = /^[|>][-+]?\d?[-+]?\s*(?:#.*)?$/;
|
|
82
|
+
function scalarKind(text) {
|
|
83
|
+
if (YAML_BOOLEAN.test(text)) return "boolean";
|
|
84
|
+
if (YAML_NULL.test(text)) return "null";
|
|
85
|
+
if (YAML_NUMBER.test(text)) return "number";
|
|
86
|
+
return "string";
|
|
87
|
+
}
|
|
88
|
+
function plainEnd(line, start, flow) {
|
|
89
|
+
let i = start;
|
|
90
|
+
while (i < line.length) {
|
|
91
|
+
const ch = line[i];
|
|
92
|
+
if (ch === ":" && (i + 1 === line.length || /[\s,\]}]/.test(line[i + 1]))) return i;
|
|
93
|
+
if (ch === "#" && i > start && /\s/.test(line[i - 1])) return i;
|
|
94
|
+
if (flow && ",[]{}".includes(ch)) return i;
|
|
95
|
+
i += 1;
|
|
96
|
+
}
|
|
97
|
+
return i;
|
|
98
|
+
}
|
|
99
|
+
function pushScalar(out, text, kind) {
|
|
100
|
+
const trimmed = text.replace(/\s+$/, "");
|
|
101
|
+
out.push(kind ?? scalarKind(trimmed), trimmed);
|
|
102
|
+
out.push(null, text.slice(trimmed.length));
|
|
103
|
+
}
|
|
104
|
+
function yamlLine(line, out) {
|
|
105
|
+
const indent = /^[ \t]*/.exec(line)[0].length;
|
|
106
|
+
out.push(null, line.slice(0, indent));
|
|
107
|
+
let i = indent;
|
|
108
|
+
if (/^(?:---|\.\.\.)(?:\s|$)/.test(line.slice(i))) {
|
|
109
|
+
out.push("punctuation", line.slice(i, i + 3));
|
|
110
|
+
i += 3;
|
|
111
|
+
}
|
|
112
|
+
let depth = 0;
|
|
113
|
+
let block = null;
|
|
114
|
+
let expectKey = true;
|
|
115
|
+
while (i < line.length) {
|
|
116
|
+
const ch = line[i];
|
|
117
|
+
const rest = line.slice(i);
|
|
118
|
+
if (ch === " " || ch === " " || ch === "\r") {
|
|
119
|
+
const end = i + /^[ \t\r]+/.exec(rest)[0].length;
|
|
120
|
+
out.push(null, line.slice(i, end));
|
|
121
|
+
i = end;
|
|
122
|
+
} else if (ch === "#") {
|
|
123
|
+
out.push("comment", rest);
|
|
124
|
+
i = line.length;
|
|
125
|
+
} else if (ch === "-" && depth === 0 && (i + 1 === line.length || /\s/.test(line[i + 1]))) {
|
|
126
|
+
out.push("punctuation", "-");
|
|
127
|
+
i += 1;
|
|
128
|
+
expectKey = true;
|
|
129
|
+
} else if ("[]{},".includes(ch)) {
|
|
130
|
+
depth += ch === "[" || ch === "{" ? 1 : ch === "]" || ch === "}" ? -1 : 0;
|
|
131
|
+
depth = Math.max(depth, 0);
|
|
132
|
+
out.push("punctuation", ch);
|
|
133
|
+
i += 1;
|
|
134
|
+
expectKey = ch !== "]" && ch !== "}";
|
|
135
|
+
} else if (ch === ":" && (i + 1 === line.length || /\s/.test(line[i + 1]))) {
|
|
136
|
+
out.push("punctuation", ":");
|
|
137
|
+
i += 1;
|
|
138
|
+
expectKey = false;
|
|
139
|
+
} else if (depth === 0 && !expectKey && BLOCK_HEADER.test(rest)) {
|
|
140
|
+
const header = /^[|>][-+]?\d?[-+]?/.exec(rest)[0];
|
|
141
|
+
out.push("punctuation", header);
|
|
142
|
+
i += header.length;
|
|
143
|
+
block = indent;
|
|
144
|
+
} else if (ch === '"' || ch === "'") {
|
|
145
|
+
const end = quoted(line, i, ch, ch === '"');
|
|
146
|
+
let after = end;
|
|
147
|
+
while (after < line.length && (line[after] === " " || line[after] === " ")) after += 1;
|
|
148
|
+
const isKey = line[after] === ":" && (after + 1 === line.length || /\s/.test(line[after + 1]));
|
|
149
|
+
out.push(isKey ? "key" : "string", line.slice(i, end));
|
|
150
|
+
i = end;
|
|
151
|
+
} else {
|
|
152
|
+
const end = Math.max(plainEnd(line, i, depth > 0), i + 1);
|
|
153
|
+
const text = line.slice(i, end);
|
|
154
|
+
const isKey = line[end] === ":" && expectKey;
|
|
155
|
+
if (isKey) pushScalar(out, text, "key");
|
|
156
|
+
else pushScalar(out, text);
|
|
157
|
+
i = end;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return block;
|
|
161
|
+
}
|
|
162
|
+
function yaml(code, out) {
|
|
163
|
+
const lines = code.split("\n");
|
|
164
|
+
let block = null;
|
|
165
|
+
lines.forEach((line, index) => {
|
|
166
|
+
if (block !== null) {
|
|
167
|
+
const indent = /^[ \t]*/.exec(line)[0].length;
|
|
168
|
+
if (line.trim() === "" || indent > block) {
|
|
169
|
+
out.push(null, line.slice(0, Math.min(indent, line.length)));
|
|
170
|
+
out.push("string", line.slice(indent));
|
|
171
|
+
if (index < lines.length - 1) out.push(null, "\n");
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
block = null;
|
|
175
|
+
}
|
|
176
|
+
block = yamlLine(line, out);
|
|
177
|
+
if (index < lines.length - 1) out.push(null, "\n");
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
function tokenizeCode(code, language) {
|
|
181
|
+
const grammar = grammarOf(language);
|
|
182
|
+
if (grammar === null || code.length > CODE_BLOCK_HIGHLIGHT_LIMIT) return null;
|
|
183
|
+
const out = new Runs();
|
|
184
|
+
if (grammar === "json") {
|
|
185
|
+
const lines = code.split("\n");
|
|
186
|
+
lines.forEach((line, index) => {
|
|
187
|
+
jsonLine(line, out);
|
|
188
|
+
if (index < lines.length - 1) out.push(null, "\n");
|
|
189
|
+
});
|
|
190
|
+
} else yaml(code, out);
|
|
191
|
+
return out.list;
|
|
192
|
+
}
|
|
193
|
+
function tokenLines(tokens) {
|
|
194
|
+
const lines = [[]];
|
|
195
|
+
for (const token of tokens) {
|
|
196
|
+
const parts = token.text.split("\n");
|
|
197
|
+
parts.forEach((part, index) => {
|
|
198
|
+
if (index > 0) lines.push([]);
|
|
199
|
+
if (part !== "") lines[lines.length - 1].push({ kind: token.kind, text: part });
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
return lines;
|
|
203
|
+
}
|
|
204
|
+
var CodeBlock = forwardRef(function CodeBlock2({
|
|
205
|
+
code,
|
|
206
|
+
language,
|
|
207
|
+
highlight = true,
|
|
208
|
+
filename,
|
|
209
|
+
showLineNumbers = false,
|
|
210
|
+
copyable = true,
|
|
211
|
+
copyLabel,
|
|
212
|
+
copyPlacement = "header",
|
|
213
|
+
prompt,
|
|
214
|
+
wrap = true,
|
|
215
|
+
maxHeight,
|
|
216
|
+
plain = false,
|
|
217
|
+
selectable = false,
|
|
218
|
+
focusWhenScrollable = false,
|
|
219
|
+
label,
|
|
220
|
+
className,
|
|
221
|
+
style,
|
|
222
|
+
...rest
|
|
223
|
+
}, ref) {
|
|
224
|
+
const box = useRef(null);
|
|
225
|
+
const body = code.replace(/\n+$/, "");
|
|
226
|
+
const corner = !plain && copyable && copyPlacement === "corner";
|
|
227
|
+
const showHeader = !plain && !corner && (filename !== void 0 || language !== void 0 || copyable);
|
|
228
|
+
const perLine = showLineNumbers || prompt !== void 0;
|
|
229
|
+
const [overflows, setOverflows] = useState(false);
|
|
230
|
+
useLayoutEffect(() => {
|
|
231
|
+
if (!focusWhenScrollable) return;
|
|
232
|
+
const node = box.current;
|
|
233
|
+
if (!node) return;
|
|
234
|
+
const measure = () => setOverflows(node.scrollHeight > node.clientHeight || node.scrollWidth > node.clientWidth);
|
|
235
|
+
measure();
|
|
236
|
+
if (typeof ResizeObserver !== "function") return;
|
|
237
|
+
const watch = new ResizeObserver(measure);
|
|
238
|
+
watch.observe(node);
|
|
239
|
+
return () => watch.disconnect();
|
|
240
|
+
}, [focusWhenScrollable, body, wrap, showLineNumbers, prompt, maxHeight]);
|
|
241
|
+
const focusable = selectable || focusWhenScrollable && overflows;
|
|
242
|
+
const onKeyDown = (event) => {
|
|
243
|
+
const isA = event.code === "KeyA" || !event.code && event.key.toLowerCase() === "a";
|
|
244
|
+
if (!isA || event.altKey || event.shiftKey || !(event.metaKey || event.ctrlKey)) return;
|
|
245
|
+
const node = box.current;
|
|
246
|
+
const selection = window.getSelection?.();
|
|
247
|
+
if (!node || !selection) return;
|
|
248
|
+
event.preventDefault();
|
|
249
|
+
selection.removeAllRanges();
|
|
250
|
+
const range = document.createRange();
|
|
251
|
+
range.selectNodeContents(node);
|
|
252
|
+
selection.addRange(range);
|
|
253
|
+
};
|
|
254
|
+
const tokens = useMemo(() => highlight ? tokenizeCode(body, language) : null, [highlight, body, language]);
|
|
255
|
+
let content = tokens ? drawTokens(tokens) : body;
|
|
256
|
+
let digits;
|
|
257
|
+
if (perLine) {
|
|
258
|
+
const lines = body.split("\n");
|
|
259
|
+
const coloured = tokens ? tokenLines(tokens) : null;
|
|
260
|
+
if (showLineNumbers) digits = String(lines.length).length;
|
|
261
|
+
content = lines.map((line, index) => /* @__PURE__ */ jsxs("span", { className: "crewlet-codeblock__line", children: [
|
|
262
|
+
showLineNumbers ? /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__ln", "aria-hidden": true, children: index + 1 }) : null,
|
|
263
|
+
prompt === void 0 ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__prompt", "aria-hidden": true, children: prompt }),
|
|
264
|
+
/* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__linecontent", children: coloured ? drawTokens(coloured[index] ?? []) : line }),
|
|
265
|
+
index < lines.length - 1 ? "\n" : null
|
|
266
|
+
] }, `${index}-${line}`));
|
|
267
|
+
}
|
|
268
|
+
return /* @__PURE__ */ jsxs(
|
|
269
|
+
"div",
|
|
270
|
+
{
|
|
271
|
+
...rest,
|
|
272
|
+
ref,
|
|
273
|
+
className: cx(
|
|
274
|
+
"crewlet-codeblock",
|
|
275
|
+
showLineNumbers && "crewlet-codeblock--numbered",
|
|
276
|
+
!wrap && "crewlet-codeblock--nowrap",
|
|
277
|
+
corner && "crewlet-codeblock--corner",
|
|
278
|
+
maxHeight !== void 0 && "crewlet-codeblock--bounded",
|
|
279
|
+
className
|
|
280
|
+
),
|
|
281
|
+
style: maxHeight === void 0 && digits === void 0 ? style : {
|
|
282
|
+
...style,
|
|
283
|
+
...maxHeight === void 0 ? null : { "--crewlet-codeblock-max-height": typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight },
|
|
284
|
+
...digits === void 0 ? null : { "--crewlet-codeblock-digits": String(digits) }
|
|
285
|
+
},
|
|
286
|
+
children: [
|
|
287
|
+
showHeader ? /* @__PURE__ */ jsxs("div", { className: "crewlet-codeblock__header", children: [
|
|
288
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-codeblock__meta", children: [
|
|
289
|
+
filename === void 0 ? null : /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__filename", children: filename }),
|
|
290
|
+
language !== void 0 && filename === void 0 ? /* @__PURE__ */ jsx("span", { className: "crewlet-codeblock__lang", children: language }) : null
|
|
291
|
+
] }),
|
|
292
|
+
copyable ? /* @__PURE__ */ jsx(CopyButton, { text: code, label: copyLabel ?? "Copy", className: "crewlet-codeblock__copy" }) : null
|
|
293
|
+
] }) : null,
|
|
294
|
+
corner ? /* @__PURE__ */ jsx(CornerCopy, { text: code, label: copyLabel ?? "Copy code" }) : null,
|
|
295
|
+
/* @__PURE__ */ jsx(
|
|
296
|
+
"pre",
|
|
297
|
+
{
|
|
298
|
+
ref: box,
|
|
299
|
+
className: "crewlet-codeblock__pre",
|
|
300
|
+
"data-language": language,
|
|
301
|
+
tabIndex: focusable ? 0 : void 0,
|
|
302
|
+
role: focusable ? "region" : void 0,
|
|
303
|
+
"aria-label": focusable ? label : void 0,
|
|
304
|
+
onKeyDown: selectable ? onKeyDown : void 0,
|
|
305
|
+
children: /* @__PURE__ */ jsx("code", { className: "crewlet-codeblock__code", children: content })
|
|
306
|
+
}
|
|
307
|
+
)
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
);
|
|
311
|
+
});
|
|
312
|
+
function drawTokens(tokens) {
|
|
313
|
+
return tokens.map(
|
|
314
|
+
(token, index) => token.kind === null ? token.text : /* @__PURE__ */ jsx("span", { className: `crewlet-codeblock__tok crewlet-codeblock__tok--${token.kind}`, children: token.text }, index)
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
function CornerCopy({ text, label }) {
|
|
318
|
+
const { state, attempt, copy } = useClipboard();
|
|
319
|
+
const hint = state === "copied" ? "Copied" : state === "failed" ? "Copy failed" : label;
|
|
320
|
+
return /* @__PURE__ */ jsxs("span", { className: "crewlet-codeblock__corner", children: [
|
|
321
|
+
/* @__PURE__ */ jsx(IconButton, { label, size: "sm", variant: "ghost", icon: copyGlyph(state), tooltip: hint, onClick: () => void copy(text) }),
|
|
322
|
+
/* @__PURE__ */ jsx(
|
|
323
|
+
CopyStatus,
|
|
324
|
+
{
|
|
325
|
+
state,
|
|
326
|
+
attempt,
|
|
327
|
+
copiedMessage: "copied to the clipboard",
|
|
328
|
+
failedMessage: "the browser refused the clipboard"
|
|
329
|
+
}
|
|
330
|
+
)
|
|
331
|
+
] });
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export { CodeBlock };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Modal } from './chunk-
|
|
1
|
+
import { Modal } from './chunk-7PK2Z5JY.js';
|
|
2
2
|
import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
|
|
3
3
|
import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
|
|
4
4
|
import { Popover } from './chunk-AJFA2XDQ.js';
|
|
5
5
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
6
6
|
import { Text } from './chunk-475DOAWF.js';
|
|
7
|
-
import { Input } from './chunk-
|
|
7
|
+
import { Input } from './chunk-XQMRSL7Z.js';
|
|
8
8
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
9
9
|
import { focusables, isComposing } from './chunk-EDPMHSLZ.js';
|
|
10
10
|
import { returnFocus } from './chunk-4ITETIGZ.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useTreeState, treeExpandable, treeLevel, treePosInSet, treeSetSize, treeItemAction, treePrevious, treeNext, treeStep } from './chunk-MY374UUD.js';
|
|
2
|
-
import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-
|
|
2
|
+
import { GRID_FOOT_LABELS, parseGridSort, overrunning, squeezedCells, fitGridColumns, tableTrack, GRID_ICON_TRACK, GridHeadCell, alignOf, rowLinkTitle, headerWord, GridFoot, droppedNames, nextGridSort, sortByValue } from './chunk-3SUIU2ZO.js';
|
|
3
3
|
import { LayerNodeBridge } from './chunk-CUEPPDBC.js';
|
|
4
|
-
import { Checkbox } from './chunk-
|
|
4
|
+
import { Checkbox } from './chunk-BRMJPZC4.js';
|
|
5
5
|
import { EmptyState } from './chunk-PPUR46MK.js';
|
|
6
6
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
7
|
-
import { IconButton } from './chunk-
|
|
7
|
+
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
8
8
|
import { LayerHost, LAYER_REPOSITION_EVENT } from './chunk-AVJKMQXK.js';
|
|
9
9
|
import { focusables } from './chunk-EDPMHSLZ.js';
|
|
10
10
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button } from './chunk-
|
|
1
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
3
|
import './ReceiptStrip-V7ASVZVV.css';
|
|
4
4
|
import { CircleAlertGlyph, TriangleAlertGlyph, InfoGlyph, CircleCheckGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-GMXOZEF5.js';
|
|
3
3
|
import { SunGlyph, MonitorGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { diffLines, diffStat, collapseDiff, DiffSummary, DiffView } from './chunk-F4CM5KD3.js';
|
|
2
|
-
import { SegmentedControl } from './chunk-
|
|
2
|
+
import { SegmentedControl } from './chunk-GMXOZEF5.js';
|
|
3
3
|
import { EmptyState } from './chunk-PPUR46MK.js';
|
|
4
4
|
import { useHeadingLevel, headingTag, nextHeadingLevel, HeadingLevelProvider } from './chunk-PQADV6P6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useReorder } from './chunk-JMBPMSNI.js';
|
|
2
|
-
import { FormField, Textarea } from './chunk-
|
|
2
|
+
import { FormField, Textarea } from './chunk-XQMRSL7Z.js';
|
|
3
3
|
import { characterCountState, CharacterCount, countCharacters } from './chunk-TEXK4RK6.js';
|
|
4
4
|
import { Kbd } from './chunk-VBBLHS2Y.js';
|
|
5
|
-
import { Button } from './chunk-
|
|
6
|
-
import { IconButton } from './chunk-
|
|
5
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
6
|
+
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
7
7
|
import { isComposing } from './chunk-EDPMHSLZ.js';
|
|
8
8
|
import { announce } from './chunk-WGMKERCR.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { RefusalStrip, ReceiptStrip } from './chunk-
|
|
1
|
+
import { RefusalStrip, ReceiptStrip } from './chunk-OAD4AXYJ.js';
|
|
2
2
|
import { ChangeList } from './chunk-NB53SAL4.js';
|
|
3
3
|
import { StatusCard } from './chunk-NWKH5FF7.js';
|
|
4
|
-
import { Callout } from './chunk-
|
|
4
|
+
import { Callout } from './chunk-UEO3A76N.js';
|
|
5
5
|
import { toInstant, formatUntil, useNow, formatExact, toISO } from './chunk-GBKBME7Q.js';
|
|
6
|
-
import { Checkbox } from './chunk-
|
|
6
|
+
import { Checkbox } from './chunk-BRMJPZC4.js';
|
|
7
7
|
import { Disclosure } from './chunk-D5O64CVE.js';
|
|
8
|
-
import { Button } from './chunk-
|
|
8
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
9
9
|
import { Spinner } from './chunk-XSPCITPN.js';
|
|
10
10
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
11
11
|
import './VisuallyHidden-OUYVMKEH.css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSendOnEnter, SendKeysHint } from './chunk-UZMXC5T6.js';
|
|
2
|
-
import { Textarea } from './chunk-
|
|
2
|
+
import { Textarea } from './chunk-XQMRSL7Z.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './ChatScale-LGESYXCO.css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { richEditorLabels } from './chunk-2DMTW2Y3.js';
|
|
2
|
-
import { Callout } from './chunk-
|
|
2
|
+
import { Callout } from './chunk-UEO3A76N.js';
|
|
3
3
|
import { Skeleton } from './chunk-WFAJYBLX.js';
|
|
4
|
-
import { Button } from './chunk-
|
|
4
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
5
5
|
import './RichEditor-5CF3QV3J.css';
|
|
6
6
|
import { forwardRef, useState, useEffect } from 'react';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -9,7 +9,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
9
9
|
var engine = null;
|
|
10
10
|
var loading = null;
|
|
11
11
|
function loadEngine() {
|
|
12
|
-
loading ??= import('./Editor-
|
|
12
|
+
loading ??= import('./Editor-FXREHINI.js').then(
|
|
13
13
|
(module) => {
|
|
14
14
|
engine = module.Editor;
|
|
15
15
|
return engine;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeHex, parseColourInput } from './chunk-7W3LYIOC.js';
|
|
2
|
-
import { FormField, Input, InputAffix } from './chunk-
|
|
2
|
+
import { FormField, Input, InputAffix } from './chunk-XQMRSL7Z.js';
|
|
3
3
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
4
4
|
import './ColorField-2OIOWT3Z.css';
|
|
5
5
|
import { useId, useState } from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { copyGlyph, CopyStatus } from './chunk-
|
|
1
|
+
import { copyGlyph, CopyStatus } from './chunk-IRGS5FEC.js';
|
|
2
2
|
import { useClipboard } from './chunk-STJ7QBC3.js';
|
|
3
3
|
import { StatusDot } from './chunk-QRE6JCHS.js';
|
|
4
|
-
import { IconButton } from './chunk-
|
|
4
|
+
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './SettingsTable-MTZJTKA6.css';
|
|
7
7
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Select } from './chunk-657WR3MX.js';
|
|
2
|
-
import { Modal } from './chunk-
|
|
3
|
-
import { CopyButton } from './chunk-
|
|
4
|
-
import { Callout } from './chunk-
|
|
2
|
+
import { Modal } from './chunk-7PK2Z5JY.js';
|
|
3
|
+
import { CopyButton } from './chunk-IRGS5FEC.js';
|
|
4
|
+
import { Callout } from './chunk-UEO3A76N.js';
|
|
5
5
|
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
6
6
|
import { useMediaMatch } from './chunk-COS6LJ4K.js';
|
|
7
|
-
import { Button } from './chunk-
|
|
8
|
-
import { IconButton } from './chunk-
|
|
7
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
8
|
+
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
9
9
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
10
10
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
11
11
|
import './ShareDialog-72VTMM4K.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CHAT_MESSAGE_CLASS } from './chunk-
|
|
1
|
+
import { CHAT_MESSAGE_CLASS } from './chunk-6RBE5RVG.js';
|
|
2
2
|
import { useMediaMatch, REDUCED_MOTION_QUERY } from './chunk-COS6LJ4K.js';
|
|
3
|
-
import { Button } from './chunk-
|
|
3
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
4
4
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
5
5
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
6
6
|
import './ChatThread-V5MANQ3C.css';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Timeline } from './chunk-XDUXAQIS.js';
|
|
2
2
|
import { Section } from './chunk-WFCWPXJN.js';
|
|
3
|
-
import { Composer } from './chunk-
|
|
3
|
+
import { Composer } from './chunk-QRUQOITJ.js';
|
|
4
4
|
import { Disclosure } from './chunk-D5O64CVE.js';
|
|
5
|
-
import { ArtifactPanel } from './chunk-
|
|
6
|
-
import { Button } from './chunk-
|
|
5
|
+
import { ArtifactPanel } from './chunk-HIDOUXLD.js';
|
|
6
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './AgentHandoffPanel-AIU7YWWB.css';
|
|
9
9
|
import { useId, useRef, useEffect } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Select } from './chunk-657WR3MX.js';
|
|
2
|
-
import { Combobox } from './chunk-
|
|
3
|
-
import { FormField, Textarea, InputAffix } from './chunk-
|
|
2
|
+
import { Combobox } from './chunk-Z6OZNSHF.js';
|
|
3
|
+
import { FormField, Textarea, InputAffix } from './chunk-XQMRSL7Z.js';
|
|
4
4
|
import './Input-YVCNNTYT.css';
|
|
5
5
|
import './VisuallyHidden-OUYVMKEH.css';
|
|
6
6
|
import './HitArea-QUOS6ZDJ.css';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { safeHref } from './chunk-KBZO4B33.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
|
-
import './InlineRef-
|
|
3
|
+
import './InlineRef-CUBTBIYD.css';
|
|
4
4
|
import { Children, isValidElement, cloneElement } from 'react';
|
|
5
5
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ import { Divider } from './chunk-6KWNXIDE.js';
|
|
|
2
2
|
import { LockedLabel } from './chunk-TODOBUXO.js';
|
|
3
3
|
import { KeyChip } from './chunk-HBDA76EZ.js';
|
|
4
4
|
import { prefersReducedMotion } from './chunk-COS6LJ4K.js';
|
|
5
|
-
import { Button } from './chunk-
|
|
5
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
6
6
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
7
7
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
8
8
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PrincipalAvatar } from './chunk-265IX4YA.js';
|
|
2
2
|
import { toInstant, RelativeTime, formatExact, toISO } from './chunk-GBKBME7Q.js';
|
|
3
3
|
import { Document } from './chunk-I4PBFJGX.js';
|
|
4
|
-
import { Composer } from './chunk-
|
|
5
|
-
import { Button } from './chunk-
|
|
6
|
-
import { IconButton } from './chunk-
|
|
4
|
+
import { Composer } from './chunk-QRUQOITJ.js';
|
|
5
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
6
|
+
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
7
7
|
import { Count } from './chunk-Y5CMDLQM.js';
|
|
8
8
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
9
9
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconButton } from './chunk-
|
|
1
|
+
import { IconButton } from './chunk-KM5OKCW6.js';
|
|
2
2
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
3
3
|
import './Callout-WLZKAFPT.css';
|
|
4
4
|
import { XGlyph, CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InlineCode } from './chunk-W4UJWFCZ.js';
|
|
2
|
-
import { ConfirmModal } from './chunk-
|
|
3
|
-
import { Callout } from './chunk-
|
|
2
|
+
import { ConfirmModal } from './chunk-7PK2Z5JY.js';
|
|
3
|
+
import { Callout } from './chunk-UEO3A76N.js';
|
|
4
4
|
import './LinkInterstitial-ET4MSVSV.css';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Modal } from './chunk-
|
|
2
|
-
import { Callout } from './chunk-
|
|
3
|
-
import { SegmentedControl } from './chunk-
|
|
4
|
-
import { FormField, Input } from './chunk-
|
|
5
|
-
import { Button } from './chunk-
|
|
1
|
+
import { Modal } from './chunk-7PK2Z5JY.js';
|
|
2
|
+
import { Callout } from './chunk-UEO3A76N.js';
|
|
3
|
+
import { SegmentedControl } from './chunk-GMXOZEF5.js';
|
|
4
|
+
import { FormField, Input } from './chunk-XQMRSL7Z.js';
|
|
5
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
6
6
|
import { useState } from 'react';
|
|
7
7
|
import { ClockGlyph } from '@crewlethq/icons/glyphs';
|
|
8
8
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useDownload, safeFilename } from './chunk-YNRKVY7X.js';
|
|
2
|
-
import { Button } from './chunk-
|
|
2
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
3
3
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
4
4
|
import { useMemo, useState, useRef, useEffect, useCallback } from 'react';
|
|
5
5
|
import { CheckGlyph, CircleAlertGlyph, ArrowDownToLineGlyph } from '@crewlethq/icons/glyphs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NOTICE_LIST_LABELS, NoticeLineView } from './chunk-
|
|
1
|
+
import { NOTICE_LIST_LABELS, NoticeLineView } from './chunk-7J2RIAZ4.js';
|
|
2
2
|
import { Card } from './chunk-E7KRB77B.js';
|
|
3
|
-
import { Button } from './chunk-
|
|
3
|
+
import { Button } from './chunk-IMF3CPTY.js';
|
|
4
4
|
import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-RRRK2KB6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|