@floegence/floe-webapp-core 0.36.26 → 0.36.27
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/components/ui/SurfaceFloatingLayer.d.ts +22 -0
- package/dist/components/ui/SurfaceFloatingLayer.js +48 -0
- package/dist/components/ui/dialogSurfaceScope.js +40 -37
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/full.js +191 -189
- package/dist/ui.js +41 -39
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type JSX } from 'solid-js';
|
|
2
|
+
export type SurfaceFloatingLayerPosition = Readonly<{
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}>;
|
|
6
|
+
export type SurfaceFloatingLayerSize = Readonly<{
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}>;
|
|
10
|
+
export interface SurfaceFloatingLayerProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, 'children' | 'class' | 'style' | 'ref'> {
|
|
11
|
+
position: SurfaceFloatingLayerPosition;
|
|
12
|
+
estimatedSize?: SurfaceFloatingLayerSize;
|
|
13
|
+
clamp?: boolean;
|
|
14
|
+
class?: string;
|
|
15
|
+
style?: JSX.CSSProperties;
|
|
16
|
+
children: JSX.Element;
|
|
17
|
+
layerRef?: (element: HTMLDivElement) => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Surface-aware floating layer for point-anchored overlays such as context menus.
|
|
21
|
+
*/
|
|
22
|
+
export declare function SurfaceFloatingLayer(props: SurfaceFloatingLayerProps): JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { createComponent as m, Portal as d, use as y, spread as S, mergeProps as P, insert as v, template as R } from "solid-js/web";
|
|
2
|
+
import { splitProps as g, createMemo as i } from "solid-js";
|
|
3
|
+
import { cn as h } from "../../utils/cn.js";
|
|
4
|
+
import { LOCAL_INTERACTION_SURFACE_ATTR as z } from "./localInteractionSurface.js";
|
|
5
|
+
import { clampMenuPosition as _ } from "./menuUtils.js";
|
|
6
|
+
import { resolveSurfacePortalHost as x, resolveSurfacePortalMount as C, resolveSurfacePortalBoundaryRect as M, isSurfacePortalMode as $, projectSurfacePortalPosition as A } from "./dialogSurfaceScope.js";
|
|
7
|
+
var T = /* @__PURE__ */ R("<div>");
|
|
8
|
+
function b() {
|
|
9
|
+
return {
|
|
10
|
+
left: 0,
|
|
11
|
+
top: 0,
|
|
12
|
+
right: 0,
|
|
13
|
+
bottom: 0,
|
|
14
|
+
width: 0,
|
|
15
|
+
height: 0
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function I(n) {
|
|
19
|
+
const [e, l] = g(n, ["position", "estimatedSize", "clamp", "class", "style", "children", "layerRef"]), o = i(() => x()), r = () => $(o()), c = () => M(o()) ?? b(), u = () => e.clamp !== !1 && !!e.estimatedSize, p = i(() => {
|
|
20
|
+
const t = e.position;
|
|
21
|
+
return !u() || !e.estimatedSize ? t : _(t, e.estimatedSize, c());
|
|
22
|
+
}), s = () => A(p(), o()), f = () => ({
|
|
23
|
+
...e.style ?? {},
|
|
24
|
+
left: `${s().x}px`,
|
|
25
|
+
top: `${s().y}px`
|
|
26
|
+
});
|
|
27
|
+
return m(d, {
|
|
28
|
+
get mount() {
|
|
29
|
+
return C(o());
|
|
30
|
+
},
|
|
31
|
+
get children() {
|
|
32
|
+
var t = T(), a = e.layerRef;
|
|
33
|
+
return typeof a == "function" ? y(a, t) : e.layerRef = t, S(t, P(l, {
|
|
34
|
+
get class() {
|
|
35
|
+
return h(r() ? "absolute z-20" : "fixed z-50", e.class);
|
|
36
|
+
},
|
|
37
|
+
get style() {
|
|
38
|
+
return f();
|
|
39
|
+
}
|
|
40
|
+
}, () => ({
|
|
41
|
+
[z]: r() ? "true" : void 0
|
|
42
|
+
})), !1, !0), v(t, () => e.children), t;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
I as SurfaceFloatingLayer
|
|
48
|
+
};
|
|
@@ -1,62 +1,65 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a = "data-floe-dialog-surface-host", y = a, p = "data-floe-surface-portal-layer", A = "data-floe-dialog-surface-boundary", g = 1600;
|
|
2
2
|
let r = null, o = null;
|
|
3
|
-
function
|
|
3
|
+
function E(t) {
|
|
4
4
|
return typeof Element < "u" && t instanceof Element ? t : typeof Node < "u" && t instanceof Node ? t.parentElement : null;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function T(t) {
|
|
7
7
|
const e = t?.activeElement;
|
|
8
8
|
return e instanceof Element ? e : null;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function i(t) {
|
|
11
11
|
const e = typeof document < "u" ? document : null;
|
|
12
12
|
r = {
|
|
13
|
-
target:
|
|
14
|
-
activeElement:
|
|
13
|
+
target: E(t),
|
|
14
|
+
activeElement: T(e),
|
|
15
15
|
recordedAt: Date.now()
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function i(t) {
|
|
19
|
-
d(t.target);
|
|
20
|
-
}
|
|
21
18
|
function l(t) {
|
|
22
|
-
|
|
19
|
+
i(t.target);
|
|
23
20
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
21
|
+
function c(t) {
|
|
22
|
+
i(t.target);
|
|
26
23
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
24
|
+
function d(t) {
|
|
25
|
+
i(t.target);
|
|
26
|
+
}
|
|
27
|
+
function s() {
|
|
28
|
+
w();
|
|
29
29
|
}
|
|
30
30
|
function w() {
|
|
31
|
-
|
|
31
|
+
typeof document > "u" || o !== document && (o && (o.removeEventListener("pointerdown", l, !0), o.removeEventListener("focusin", c, !0), o.removeEventListener("contextmenu", d, !0)), document.addEventListener("pointerdown", l, !0), document.addEventListener("focusin", c, !0), document.addEventListener("contextmenu", d, !0), o = document);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
33
|
+
function R() {
|
|
34
|
+
return !r || Date.now() - r.recordedAt > g ? null : r;
|
|
35
|
+
}
|
|
36
|
+
function f(t) {
|
|
37
|
+
const e = t?.closest(`[${a}="true"]`);
|
|
35
38
|
return typeof HTMLElement > "u" ? null : e instanceof HTMLElement && e.isConnected ? e : null;
|
|
36
39
|
}
|
|
37
|
-
function
|
|
40
|
+
function S(t) {
|
|
38
41
|
if (!t) return null;
|
|
39
|
-
const e = t.closest(`[${
|
|
42
|
+
const e = t.closest(`[${p}="true"]`);
|
|
40
43
|
return typeof HTMLElement > "u" ? null : e instanceof HTMLElement && e.isConnected ? e : null;
|
|
41
44
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
const t =
|
|
45
|
+
function L() {
|
|
46
|
+
s();
|
|
47
|
+
const t = R(), e = f(t?.target ?? null) ?? f(t?.activeElement ?? null);
|
|
45
48
|
return e ? {
|
|
46
49
|
host: e,
|
|
47
50
|
boundaryHost: e,
|
|
48
|
-
mountHost:
|
|
51
|
+
mountHost: S(e) ?? e,
|
|
49
52
|
mode: "surface"
|
|
50
53
|
} : { host: null, boundaryHost: null, mountHost: null, mode: "global" };
|
|
51
54
|
}
|
|
52
55
|
function u(t) {
|
|
53
56
|
return t.mode === "surface" && !!t.boundaryHost?.isConnected;
|
|
54
57
|
}
|
|
55
|
-
function
|
|
58
|
+
function v(t) {
|
|
56
59
|
if (u(t))
|
|
57
60
|
return t.mountHost ?? t.boundaryHost ?? void 0;
|
|
58
61
|
}
|
|
59
|
-
function
|
|
62
|
+
function m() {
|
|
60
63
|
return typeof window > "u" ? {
|
|
61
64
|
left: 0,
|
|
62
65
|
top: 0,
|
|
@@ -75,7 +78,7 @@ function s() {
|
|
|
75
78
|
}
|
|
76
79
|
function _(t) {
|
|
77
80
|
if (!u(t) || !t.boundaryHost)
|
|
78
|
-
return
|
|
81
|
+
return m();
|
|
79
82
|
const e = t.boundaryHost.getBoundingClientRect();
|
|
80
83
|
return {
|
|
81
84
|
left: e.left,
|
|
@@ -87,9 +90,9 @@ function _(t) {
|
|
|
87
90
|
};
|
|
88
91
|
}
|
|
89
92
|
function h(t) {
|
|
90
|
-
const e =
|
|
93
|
+
const e = v(t);
|
|
91
94
|
if (!e)
|
|
92
|
-
return
|
|
95
|
+
return m();
|
|
93
96
|
const n = e.getBoundingClientRect();
|
|
94
97
|
return {
|
|
95
98
|
left: n.left,
|
|
@@ -109,7 +112,7 @@ function b(t, e) {
|
|
|
109
112
|
y: t.y - n.top
|
|
110
113
|
};
|
|
111
114
|
}
|
|
112
|
-
function
|
|
115
|
+
function C(t, e) {
|
|
113
116
|
if (!u(e))
|
|
114
117
|
return t;
|
|
115
118
|
const n = h(e);
|
|
@@ -125,20 +128,20 @@ function L(t, e) {
|
|
|
125
128
|
function P() {
|
|
126
129
|
r = null;
|
|
127
130
|
}
|
|
128
|
-
typeof document < "u" &&
|
|
131
|
+
typeof document < "u" && s();
|
|
129
132
|
export {
|
|
130
133
|
A as DIALOG_SURFACE_BOUNDARY_ATTR,
|
|
131
|
-
|
|
134
|
+
a as DIALOG_SURFACE_HOST_ATTR,
|
|
132
135
|
y as SURFACE_PORTAL_HOST_ATTR,
|
|
133
|
-
|
|
136
|
+
p as SURFACE_PORTAL_LAYER_ATTR,
|
|
134
137
|
P as __resetSurfacePortalScopeForTests,
|
|
135
|
-
|
|
136
|
-
|
|
138
|
+
s as ensureDialogSurfaceInteractionTracking,
|
|
139
|
+
w as ensureSurfacePortalInteractionTracking,
|
|
137
140
|
u as isSurfacePortalMode,
|
|
138
141
|
b as projectSurfacePortalPosition,
|
|
139
|
-
|
|
142
|
+
C as projectSurfacePortalRect,
|
|
140
143
|
_ as resolveSurfacePortalBoundaryRect,
|
|
141
|
-
|
|
142
|
-
|
|
144
|
+
L as resolveSurfacePortalHost,
|
|
145
|
+
v as resolveSurfacePortalMount,
|
|
143
146
|
h as resolveSurfacePortalMountRect
|
|
144
147
|
};
|
|
@@ -4,6 +4,7 @@ export { Input, Textarea, NumberInput, AffixInput, type InputProps, type InputSi
|
|
|
4
4
|
export { Dialog, ConfirmDialog, type DialogProps, type ConfirmDialogProps } from './Dialog';
|
|
5
5
|
export { FloatingWindow, type FloatingWindowProps } from './FloatingWindow';
|
|
6
6
|
export { Dropdown, Select, type DropdownProps, type DropdownItem, type SelectProps, } from './Dropdown';
|
|
7
|
+
export { SurfaceFloatingLayer, type SurfaceFloatingLayerPosition, type SurfaceFloatingLayerProps, type SurfaceFloatingLayerSize, } from './SurfaceFloatingLayer';
|
|
7
8
|
export { Tooltip, type TooltipProps } from './Tooltip';
|
|
8
9
|
export { CommandPalette } from './CommandPalette';
|
|
9
10
|
export { InfiniteCanvas, type InfiniteCanvasProps, type InfiniteCanvasPoint, type InfiniteCanvasContextMenuEvent, } from './InfiniteCanvas';
|
package/dist/full.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FloeProvider as r } from "./app/FloeProvider.js";
|
|
2
2
|
import { applyTheme as n, builtInThemes as i, getSystemTheme as a, mergeThemeTokenMaps as c, resolveThemeTokenOverrides as m, resolveThemeTokens as l, syncThemeTokenOverrides as s } from "./styles/themes/index.js";
|
|
3
3
|
import { floeColorTokenCategories as f, floeDesignTokens as d, floeFontFamilyTokens as I, floeMotionTokens as T, floeRadiusTokens as x, floeSharedCssVariables as C, floeSpacingTokens as S, floeThemeColorVariables as g, floeTypographyTokens as u, getFloeColorTokenValue as h } from "./styles/tokens.js";
|
|
4
|
-
import { Activity as F, ActivityIcon as P, AlertCircle as A, AlertTriangle as E, ArchiveIcon as L, ArrowDown as R, ArrowLeft as v, ArrowRight as
|
|
4
|
+
import { Activity as F, ActivityIcon as P, AlertCircle as A, AlertTriangle as E, ArchiveIcon as L, ArrowDown as R, ArrowLeft as v, ArrowRight as y, ArrowRightLeft as _, ArrowUp as D, AtSign as B, AwardIcon as M, BarChart as O, BatteryIcon as W, Bell as w, BellIcon as N, Bookmark as b, BookmarkIcon as H, Bot as G, BotIcon as U, BugIcon as V, Calendar as K, CalendarIcon as z, Camera as X, CameraIcon as Z, ChartIcon as Y, Check as Q, CheckCircle as j, CheckIcon as q, ChevronDown as J, ChevronLeft as $, ChevronRight as ee, ChevronUp as oe, ChevronsUpDown as re, Clock as te, ClockIcon as ne, CloseIcon as ie, Cloud as ae, CloudIcon as ce, Code as me, CodeIcon as le, CompassIcon as se, Copy as pe, CopyCheck as fe, CopyCheckIcon as de, CopyIcon as Ie, Cpu as Te, CreditCardIcon as xe, Database as Ce, DatabaseIcon as Se, DollarIcon as ge, Download as ue, DownloadIcon as he, EditIcon as ke, ErrorIcon as Fe, ExternalLink as Pe, Eye as Ae, EyeIcon as Ee, EyeOff as Le, FileCode as Re, FilePlus as ve, FilePlusIcon as ye, FileText as _e, Files as De, Filter as Be, FilterIcon as Me, FireIcon as Oe, Folder as We, FolderOpen as we, FolderPlus as Ne, FolderPlusIcon as be, GiftIcon as He, GitBranch as Ge, GitBranchIcon as Ue, Globe as Ve, GlobeIcon as Ke, Grid as ze, Grid3x3 as Xe, GripVertical as Ze, Hash as Ye, HeadphonesIcon as Qe, Heart as je, HeartIcon as qe, HelpIcon as Je, Highlighter as $e, History as eo, Home as oo, HomeIcon as ro, Image as to, ImageIcon as no, Info as io, InfoIcon as ao, Key as co, KeyIcon as mo, Layers as lo, LayersIcon as so, LayoutDashboard as po, Link as fo, LinkIcon as Io, Loader2 as To, LoadingIcon as xo, Lock as Co, LockIcon as So, MagicIcon as go, Mail as uo, MailIcon as ho, MapPinIcon as ko, Maximize as Fo, Menu as Po, MessageIcon as Ao, MessageSquare as Eo, Mic as Lo, MicIcon as Ro, MicOff as vo, Minus as yo, MinusIcon as _o, Moon as Do, MoonIcon as Bo, MoreHorizontal as Mo, MoreVertical as Oo, MuteIcon as Wo, Package as wo, PackageIcon as No, Paperclip as bo, Paste as Ho, PasteIcon as Go, Pause as Uo, PauseIcon as Vo, Pencil as Ko, Phone as zo, PieChart as Xo, Pin as Zo, PinIcon as Yo, Play as Qo, PlayIcon as jo, Plus as qo, PlusIcon as Jo, PowerIcon as $o, PrinterIcon as er, Quote as or, Refresh as rr, RefreshIcon as tr, Restore as nr, RocketIcon as ir, Save as ar, SaveIcon as cr, Search as mr, SearchIcon as lr, Send as sr, SendIcon as pr, Settings as fr, SettingsIcon as dr, ShareIcon as Ir, Shield as Tr, ShieldCheck as xr, ShieldIcon as Cr, SparkleIcon as Sr, Sparkles as gr, Star as ur, StarIcon as hr, Stop as kr, SuccessIcon as Fr, Sun as Pr, SunIcon as Ar, TagIcon as Er, TargetIcon as Lr, Terminal as Rr, TerminalIcon as vr, ThumbsDownIcon as yr, ThumbsUpIcon as _r, Timer as Dr, Trash as Br, TrashIcon as Mr, TrendingDown as Or, TrendingUp as Wr, Unlock as wr, Upload as Nr, UploadIcon as br, User as Hr, UserIcon as Gr, Video as Ur, VideoIcon as Vr, Volume as Kr, VolumeIcon as zr, VolumeOff as Xr, Wand as Zr, WarningIcon as Yr, WifiIcon as Qr, WifiOffIcon as jr, Workflow as qr, X as Jr, XCircle as $r, Zap as et, ZapIcon as ot } from "./components/icons/index.js";
|
|
5
5
|
import { DEFAULT_TERMINAL_WORKSPACE_PROFILE as tt, normalizeTerminalWorkspaceProfile as nt } from "./terminal/workspaceProfile.js";
|
|
6
6
|
import { clampTerminalCursor as at, createTerminalEditorState as ct, deleteTerminalTextBackward as mt, insertTerminalText as lt, moveTerminalCursor as st, navigateTerminalHistory as pt } from "./terminal/editorModel.js";
|
|
7
7
|
import { applyTerminalSessionSuggestion as dt, createTerminalSessionState as It, dispatchTerminalSessionKey as Tt, getTerminalPromptPreview as xt, getTerminalSessionSuggestions as Ct, setTerminalSessionInputValue as St, submitTerminalSession as gt } from "./terminal/sessionModel.js";
|
|
8
8
|
import { runTerminalMockCommand as ht } from "./terminal/mockRuntime.js";
|
|
9
|
-
import { DEFAULT_TERMINAL_SUGGESTION_PROVIDERS as Ft, applyTerminalSuggestion as Pt, autocompleteTerminalInput as At, createTerminalFullLineSuggestion as Et, createTerminalTokenSuggestion as Lt, getTerminalSuggestions as Rt, matchesTerminalSuggestionPrefix as vt, parseTerminalSuggestionContext as
|
|
9
|
+
import { DEFAULT_TERMINAL_SUGGESTION_PROVIDERS as Ft, applyTerminalSuggestion as Pt, autocompleteTerminalInput as At, createTerminalFullLineSuggestion as Et, createTerminalTokenSuggestion as Lt, getTerminalSuggestions as Rt, matchesTerminalSuggestionPrefix as vt, parseTerminalSuggestionContext as yt, terminalCommandTokenSuggestionProvider as _t, terminalHistorySuggestionProvider as Dt, terminalPathSuggestionProvider as Bt, terminalRootSuggestionProvider as Mt, terminalSnippetSuggestionProvider as Ot } from "./terminal/suggestionEngine.js";
|
|
10
10
|
import { ActivityAppsMain as wt } from "./app/ActivityAppsMain.js";
|
|
11
11
|
import { ActivityBar as bt } from "./components/layout/ActivityBar.js";
|
|
12
12
|
import { AffixInput as Gt, Input as Ut, NumberInput as Vt, Textarea as Kt } from "./components/ui/Input.js";
|
|
@@ -16,7 +16,7 @@ import { AttachmentPreview as sn } from "./components/chat/input/AttachmentPrevi
|
|
|
16
16
|
import { BlockRenderer as fn } from "./components/chat/blocks/BlockRenderer.js";
|
|
17
17
|
import { BottomBar as In, BottomBarItem as Tn, StatusIndicator as xn } from "./components/layout/BottomBar.js";
|
|
18
18
|
import { Breadcrumb as Sn } from "./components/file-browser/Breadcrumb.js";
|
|
19
|
-
import { BrokenSymlinkIcon as un, CodeFileIcon as hn, ConfigFileIcon as kn, DocumentFileIcon as Fn, FileIcon as Pn, FileItemIcon as An, FolderIcon as En, FolderOpenIcon as Ln, ImageFileIcon as Rn, JavaScriptFileIcon as vn, ShellScriptFileIcon as
|
|
19
|
+
import { BrokenSymlinkIcon as un, CodeFileIcon as hn, ConfigFileIcon as kn, DocumentFileIcon as Fn, FileIcon as Pn, FileItemIcon as An, FolderIcon as En, FolderOpenIcon as Ln, ImageFileIcon as Rn, JavaScriptFileIcon as vn, ShellScriptFileIcon as yn, StyleFileIcon as _n, SymlinkFileIcon as Dn, SymlinkFolderIcon as Bn, SymlinkFolderOpenIcon as Mn, TypeScriptFileIcon as On, getFileIcon as Wn, resolveFileItemIcon as wn } from "./components/file-browser/FileIcons.js";
|
|
20
20
|
import { Button as bn } from "./components/ui/Button.js";
|
|
21
21
|
import { CANVAS_WHEEL_INTERACTIVE_ATTR as Gn, DEFAULT_CANVAS_WHEEL_INTERACTIVE_SELECTOR as Un, DEFAULT_LOCAL_INTERACTION_SURFACE_SELECTOR as Vn, DEFAULT_WORKBENCH_WIDGET_ACTIVATION_SURFACE_SELECTOR as Kn, DEFAULT_WORKBENCH_WIDGET_SHELL_SELECTOR as zn, LOCAL_INTERACTION_SURFACE_ATTR as Xn, WORKBENCH_WIDGET_ACTIVATION_SURFACE_ATTR as Zn, WORKBENCH_WIDGET_SHELL_ATTR as Yn, isLocalInteractionSurfaceTarget as Qn, resolveSurfaceInteractionTargetRole as jn, resolveSurfaceWheelRouting as qn, resolveWorkbenchWidgetEventOwnership as Jn, resolveWorkbenchWidgetLocalTypingTarget as $n, shouldActivateWorkbenchWidgetLocalTarget as ei } from "./components/ui/localInteractionSurface.js";
|
|
22
22
|
import { ChatContainer as ri } from "./components/chat/ChatContainer.js";
|
|
@@ -29,7 +29,7 @@ import { CodeBlock as ui } from "./components/chat/blocks/CodeBlock.js";
|
|
|
29
29
|
import { CodeDiffBlock as ki } from "./components/chat/blocks/CodeDiffBlock.js";
|
|
30
30
|
import { CommandPalette as Pi } from "./components/ui/CommandPalette.js";
|
|
31
31
|
import { CommandProvider as Ei, createCommandService as Li, useCommand as Ri } from "./context/CommandContext.js";
|
|
32
|
-
import { ComponentRegistryProvider as
|
|
32
|
+
import { ComponentRegistryProvider as yi, createComponentRegistry as _i, hasComponentRegistryContext as Di, useComponentContextFactory as Bi, useComponentRegistry as Mi, useOptionalComponentRegistry as Oi } from "./context/ComponentRegistry.js";
|
|
33
33
|
import { ConfirmDialog as wi, Dialog as Ni } from "./components/ui/Dialog.js";
|
|
34
34
|
import { ConnectionStatus as Hi } from "./components/chat/status/ConnectionStatus.js";
|
|
35
35
|
import { DECK_GRID_CONFIG as Ui, getGridConfigFromElement as Vi } from "./components/deck/deckGridMetrics.js";
|
|
@@ -44,7 +44,7 @@ import { DeckTopBar as ka } from "./components/deck/DeckTopBar.js";
|
|
|
44
44
|
import { DirectoryInput as Pa } from "./components/ui/DirectoryInput.js";
|
|
45
45
|
import { DirectoryPicker as Ea } from "./components/ui/DirectoryPicker.js";
|
|
46
46
|
import { DirectoryTree as Ra } from "./components/file-browser/DirectoryTree.js";
|
|
47
|
-
import { DisplayModePageShell as
|
|
47
|
+
import { DisplayModePageShell as ya } from "./components/layout/DisplayModePageShell.js";
|
|
48
48
|
import { DisplayModeSwitcher as Da, sanitizeDisplayMode as Ba } from "./components/layout/DisplayModeSwitcher.js";
|
|
49
49
|
import { DropZonePreview as Oa } from "./components/deck/DropZonePreview.js";
|
|
50
50
|
import { Dropdown as wa, Select as Na } from "./components/ui/Dropdown.js";
|
|
@@ -63,7 +63,7 @@ import { FileSavePicker as gc } from "./components/ui/FileSavePicker.js";
|
|
|
63
63
|
import { FilesSidebarWidget as hc, SearchSidebarWidget as kc, SettingsSidebarWidget as Fc, ShowcaseSidebarWidget as Pc, SidebarWidget as Ac } from "./widgets/SidebarWidget.js";
|
|
64
64
|
import { FloatingWindow as Lc } from "./components/ui/FloatingWindow.js";
|
|
65
65
|
import { FloeApp as vc } from "./app/FloeApp.js";
|
|
66
|
-
import { FloeRegistryRuntime as
|
|
66
|
+
import { FloeRegistryRuntime as _c } from "./app/FloeRegistryRuntime.js";
|
|
67
67
|
import { Form as Bc, FormActions as Mc, FormControl as Oc, FormDescription as Wc, FormDivider as wc, FormField as Nc, FormLabel as bc, FormMessage as Hc, FormRow as Gc, FormSection as Uc, useFormSubmitting as Vc } from "./components/ui/Form.js";
|
|
68
68
|
import { ImageBlock as zc } from "./components/chat/blocks/ImageBlock.js";
|
|
69
69
|
import { InfiniteCanvas as Zc } from "./components/ui/InfiniteCanvas.js";
|
|
@@ -84,7 +84,7 @@ import { MessageAvatar as Fm } from "./components/chat/message/MessageAvatar.js"
|
|
|
84
84
|
import { MessageBubble as Am } from "./components/chat/message/MessageBubble.js";
|
|
85
85
|
import { MessageItem as Lm } from "./components/chat/message/MessageItem.js";
|
|
86
86
|
import { MessageMeta as vm } from "./components/chat/message/MessageMeta.js";
|
|
87
|
-
import { MetricsWidget as
|
|
87
|
+
import { MetricsWidget as _m } from "./widgets/MetricsWidget.js";
|
|
88
88
|
import { MobileKeyboard as Bm } from "./components/ui/MobileKeyboard.js";
|
|
89
89
|
import { MobileTabBar as Om } from "./components/layout/MobileTabBar.js";
|
|
90
90
|
import { NOTES_CONTEXT_MENU_WIDTH_PX as wm, NotesContextMenu as Nm, estimateNotesContextMenuHeight as bm } from "./components/notes/NotesContextMenu.js";
|
|
@@ -93,7 +93,7 @@ import { NOTE_COLOR_LABELS as Tl, NotesAnimalIcon as xl, NotesOverlayIcon as Cl,
|
|
|
93
93
|
import { NotesOverlay as hl } from "./components/notes/NotesOverlay.js";
|
|
94
94
|
import { NotificationContainer as Fl, NotificationProvider as Pl, createNotificationService as Al, useNotification as El } from "./context/NotificationContext.js";
|
|
95
95
|
import { Pagination as Rl } from "./components/ui/Pagination.js";
|
|
96
|
-
import { Panel as
|
|
96
|
+
import { Panel as yl, PanelContent as _l, PanelHeader as Dl } from "./components/layout/Panel.js";
|
|
97
97
|
import { ProcessingIndicator as Ml } from "./components/ui/ProcessingIndicator.js";
|
|
98
98
|
import { QuoteBlock as Wl } from "./components/ui/QuoteBlock.js";
|
|
99
99
|
import { RadioGroup as Nl, RadioList as bl, RadioOption as Hl } from "./components/ui/Radio.js";
|
|
@@ -107,54 +107,55 @@ import { Skeleton as ns, SkeletonCard as is, SkeletonList as as, SkeletonText as
|
|
|
107
107
|
import { SnakeLoader as ls } from "./components/loading/SnakeLoader.js";
|
|
108
108
|
import { Stepper as ps, Wizard as fs, useWizard as ds } from "./components/ui/Stepper.js";
|
|
109
109
|
import { StreamingCursor as Ts } from "./components/chat/status/StreamingCursor.js";
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
110
|
+
import { SurfaceFloatingLayer as Cs } from "./components/ui/SurfaceFloatingLayer.js";
|
|
111
|
+
import { SvgBlock as gs } from "./components/chat/blocks/SvgBlock.js";
|
|
112
|
+
import { Switch as hs } from "./components/ui/Switch.js";
|
|
113
|
+
import { TabPanel as Fs, Tabs as Ps } from "./components/ui/Tabs.js";
|
|
114
|
+
import { Tag as Es } from "./components/ui/Tag.js";
|
|
115
|
+
import { TerminalWidget as Rs, createTerminalWidget as vs } from "./widgets/TerminalWidget.js";
|
|
116
|
+
import { TextBlock as _s } from "./components/chat/blocks/TextBlock.js";
|
|
117
|
+
import { ThemeProvider as Bs, createThemeService as Ms, useTheme as Os } from "./context/ThemeContext.js";
|
|
118
|
+
import { ThinkingBlock as ws } from "./components/chat/blocks/ThinkingBlock.js";
|
|
119
|
+
import { ToolCallBlock as bs } from "./components/chat/blocks/ToolCallBlock.js";
|
|
120
|
+
import { Tooltip as Gs } from "./components/ui/Tooltip.js";
|
|
121
|
+
import { TopBar as Vs } from "./components/layout/TopBar.js";
|
|
122
|
+
import { TopBarIconButton as zs } from "./components/layout/TopBarIconButton.js";
|
|
123
|
+
import { ViewActivationProvider as Zs, useViewActivation as Ys } from "./context/ViewActivationContext.js";
|
|
124
|
+
import { VirtualMessageList as js } from "./components/chat/message-list/VirtualMessageList.js";
|
|
125
|
+
import { WidgetFrame as Js } from "./components/deck/WidgetFrame.js";
|
|
126
|
+
import { WidgetPalette as ep } from "./components/deck/WidgetPalette.js";
|
|
127
|
+
import { WidgetRegistryProvider as rp, createWidgetRegistry as tp, useWidgetRegistry as np } from "./context/WidgetRegistry.js";
|
|
128
|
+
import { WidgetResizeHandle as ap } from "./components/deck/WidgetResizeHandle.js";
|
|
129
|
+
import { WidgetStateProvider as mp, useCurrentWidgetId as lp, useWidgetState as sp, useWidgetStateContext as pp } from "./context/WidgetStateContext.js";
|
|
130
|
+
import { WidgetTypeSwitcher as dp } from "./components/deck/WidgetTypeSwitcher.js";
|
|
131
|
+
import { WorkingIndicator as Tp } from "./components/chat/status/WorkingIndicator.js";
|
|
132
|
+
import { applyDragDelta as Cp, applyResizeDelta as Sp, getGridCellSize as gp, pixelDeltaToGridDelta as up, positionToGridArea as hp, snapToGrid as kp } from "./utils/gridLayout.js";
|
|
133
|
+
import { buildAssistantNoticeEvents as Pp, createStreamEventBuilder as Ap, isStreamEvent as Ep } from "./components/chat/streamEvents.js";
|
|
134
|
+
import { checkCollision as Rp, constrainPosition as vp, findFreePosition as yp, hasCollision as _p, sameGridPosition as Dp } from "./utils/gridCollision.js";
|
|
135
|
+
import { clientToCanvasLocal as Mp, clientToCanvasWorld as Op, createViewportFromZoomAnchor as Wp, isPointInsideCanvasRect as wp, localToCanvasWorld as Np } from "./components/ui/canvasGeometry.js";
|
|
136
|
+
import { cn as Hp } from "./utils/cn.js";
|
|
137
|
+
import { computeCodeDiff as Up, computeCodeDiffSync as Vp, configureDiffWorker as Kp, createDiffWorker as zp, hasDiffWorker as Xp, terminateDiffWorker as Zp, waitForDiffWorker as Yp } from "./components/chat/hooks/useCodeDiff.js";
|
|
138
|
+
import { configureMarkdownWorker as jp, createMarkdownWorker as qp, hasMarkdownWorker as Jp, renderMarkdown as $p, renderMarkdownSync as ef, terminateMarkdownWorker as of, waitForMarkdownWorker as rf } from "./components/chat/hooks/useMarkdown.js";
|
|
139
|
+
import { configureMermaidWorker as nf, configureSyncMermaid as af, renderMermaid as cf, terminateMermaidWorker as mf, useMermaid as lf } from "./components/chat/hooks/useMermaid.js";
|
|
140
|
+
import { configureShikiWorker as pf, configureSyncHighlighter as ff, highlightCode as df, terminateShikiWorker as If, useCodeHighlight as Tf } from "./components/chat/hooks/useCodeHighlight.js";
|
|
141
|
+
import { createSimpleContext as Cf } from "./context/createSimpleContext.js";
|
|
142
|
+
import { deferAfterPaint as gf, deferNonBlocking as uf } from "./utils/defer.js";
|
|
143
|
+
import { duration as kf, easing as Ff, fadeIn as Pf, listContainer as Af, listItem as Ef, panelResize as Lf, popIn as Rf, scaleIn as vf, sidebarVariants as yf, slideInFromBottom as _f, slideInFromLeft as Df, slideInFromRight as Bf, slideInFromTop as Mf, springConfig as Of } from "./utils/animations.js";
|
|
144
|
+
import { formatKeybind as wf, isMacLikePlatform as Nf, isPrimaryModKeyPressed as bf, matchKeybind as Hf, parseKeybind as Gf } from "./utils/keybind.js";
|
|
145
|
+
import { isTypingElement as Vf, shouldIgnoreHotkeys as Kf } from "./utils/dom.js";
|
|
146
|
+
import { lockBodyStyle as Xf } from "./utils/bodyStyleLock.js";
|
|
147
|
+
import { registerCommandContributions as Yf, useCommandContributions as Qf } from "./hooks/useCommandContributions.js";
|
|
148
|
+
import { startPointerSession as qf } from "./components/ui/pointerSession.js";
|
|
149
|
+
import { useAttachments as $f } from "./components/chat/hooks/useAttachments.js";
|
|
150
|
+
import { useAutoScroll as od } from "./components/chat/hooks/useAutoScroll.js";
|
|
151
|
+
import { useDebounce as td } from "./hooks/useDebounce.js";
|
|
152
|
+
import { useDeckDrag as id } from "./hooks/useDeckDrag.js";
|
|
153
|
+
import { useFileBrowserDropTarget as cd, useFileBrowserItemDrag as md } from "./hooks/useFileBrowserDrag.js";
|
|
154
|
+
import { useKeybind as sd } from "./hooks/useKeybind.js";
|
|
155
|
+
import { useMediaQuery as fd } from "./hooks/useMediaQuery.js";
|
|
156
|
+
import { usePersisted as Id } from "./hooks/usePersisted.js";
|
|
157
|
+
import { useResizeObserver as xd } from "./hooks/useResizeObserver.js";
|
|
158
|
+
import { useVirtualList as Sd } from "./components/chat/hooks/useVirtualList.js";
|
|
158
159
|
export {
|
|
159
160
|
F as Activity,
|
|
160
161
|
wt as ActivityAppsMain,
|
|
@@ -168,8 +169,8 @@ export {
|
|
|
168
169
|
tn as AreaChart,
|
|
169
170
|
R as ArrowDown,
|
|
170
171
|
v as ArrowLeft,
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
y as ArrowRight,
|
|
173
|
+
_ as ArrowRightLeft,
|
|
173
174
|
D as ArrowUp,
|
|
174
175
|
B as AtSign,
|
|
175
176
|
sn as AttachmentPreview,
|
|
@@ -230,7 +231,7 @@ export {
|
|
|
230
231
|
Pi as CommandPalette,
|
|
231
232
|
Ei as CommandProvider,
|
|
232
233
|
se as CompassIcon,
|
|
233
|
-
|
|
234
|
+
yi as ComponentRegistryProvider,
|
|
234
235
|
kn as ConfigFileIcon,
|
|
235
236
|
wi as ConfirmDialog,
|
|
236
237
|
Hi as ConnectionStatus,
|
|
@@ -264,7 +265,7 @@ export {
|
|
|
264
265
|
Pa as DirectoryInput,
|
|
265
266
|
Ea as DirectoryPicker,
|
|
266
267
|
Ra as DirectoryTree,
|
|
267
|
-
|
|
268
|
+
ya as DisplayModePageShell,
|
|
268
269
|
Da as DisplayModeSwitcher,
|
|
269
270
|
Fn as DocumentFileIcon,
|
|
270
271
|
ge as DollarIcon,
|
|
@@ -294,9 +295,9 @@ export {
|
|
|
294
295
|
An as FileItemIcon,
|
|
295
296
|
Cc as FileListView,
|
|
296
297
|
ve as FilePlus,
|
|
297
|
-
|
|
298
|
+
ye as FilePlusIcon,
|
|
298
299
|
gc as FileSavePicker,
|
|
299
|
-
|
|
300
|
+
_e as FileText,
|
|
300
301
|
De as Files,
|
|
301
302
|
hc as FilesSidebarWidget,
|
|
302
303
|
Be as Filter,
|
|
@@ -306,7 +307,7 @@ export {
|
|
|
306
307
|
vc as FloeApp,
|
|
307
308
|
Xi as FloeConfigProvider,
|
|
308
309
|
r as FloeProvider,
|
|
309
|
-
|
|
310
|
+
_c as FloeRegistryRuntime,
|
|
310
311
|
We as Folder,
|
|
311
312
|
En as FolderIcon,
|
|
312
313
|
we as FolderOpen,
|
|
@@ -391,12 +392,12 @@ export {
|
|
|
391
392
|
Lm as MessageItem,
|
|
392
393
|
vm as MessageMeta,
|
|
393
394
|
Eo as MessageSquare,
|
|
394
|
-
|
|
395
|
+
_m as MetricsWidget,
|
|
395
396
|
Lo as Mic,
|
|
396
397
|
Ro as MicIcon,
|
|
397
398
|
vo as MicOff,
|
|
398
|
-
|
|
399
|
-
|
|
399
|
+
yo as Minus,
|
|
400
|
+
_o as MinusIcon,
|
|
400
401
|
Bm as MobileKeyboard,
|
|
401
402
|
Om as MobileTabBar,
|
|
402
403
|
mn as MonitoringChart,
|
|
@@ -425,8 +426,8 @@ export {
|
|
|
425
426
|
wo as Package,
|
|
426
427
|
No as PackageIcon,
|
|
427
428
|
Rl as Pagination,
|
|
428
|
-
|
|
429
|
-
|
|
429
|
+
yl as Panel,
|
|
430
|
+
_l as PanelContent,
|
|
430
431
|
Dl as PanelHeader,
|
|
431
432
|
bo as Paperclip,
|
|
432
433
|
Ho as Paste,
|
|
@@ -473,7 +474,7 @@ export {
|
|
|
473
474
|
Ir as ShareIcon,
|
|
474
475
|
Xl as Shell,
|
|
475
476
|
Yl as ShellBlock,
|
|
476
|
-
|
|
477
|
+
yn as ShellScriptFileIcon,
|
|
477
478
|
Tr as Shield,
|
|
478
479
|
xr as ShieldCheck,
|
|
479
480
|
Cr as ShieldIcon,
|
|
@@ -499,39 +500,40 @@ export {
|
|
|
499
500
|
Si as StepsProgress,
|
|
500
501
|
kr as Stop,
|
|
501
502
|
Ts as StreamingCursor,
|
|
502
|
-
|
|
503
|
+
_n as StyleFileIcon,
|
|
503
504
|
Ka as SuccessBlock,
|
|
504
505
|
Fr as SuccessIcon,
|
|
505
506
|
Pr as Sun,
|
|
506
507
|
Ar as SunIcon,
|
|
507
|
-
Cs as
|
|
508
|
-
gs as
|
|
508
|
+
Cs as SurfaceFloatingLayer,
|
|
509
|
+
gs as SvgBlock,
|
|
510
|
+
hs as Switch,
|
|
509
511
|
Dn as SymlinkFileIcon,
|
|
510
512
|
Bn as SymlinkFolderIcon,
|
|
511
513
|
Mn as SymlinkFolderOpenIcon,
|
|
512
514
|
gl as TOPIC_ACCENT_LABELS,
|
|
513
515
|
zm as TOPIC_ACCENT_TOKENS,
|
|
514
516
|
Xm as TOPIC_ICON_KEYS,
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
517
|
+
Fs as TabPanel,
|
|
518
|
+
Ps as Tabs,
|
|
519
|
+
Es as Tag,
|
|
518
520
|
Er as TagIcon,
|
|
519
521
|
Lr as TargetIcon,
|
|
520
522
|
Rr as Terminal,
|
|
521
523
|
vr as TerminalIcon,
|
|
522
|
-
|
|
523
|
-
|
|
524
|
+
Rs as TerminalWidget,
|
|
525
|
+
_s as TextBlock,
|
|
524
526
|
Kt as Textarea,
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
Bs as ThemeProvider,
|
|
528
|
+
ws as ThinkingBlock,
|
|
529
|
+
yr as ThumbsDownIcon,
|
|
530
|
+
_r as ThumbsUpIcon,
|
|
529
531
|
Dr as Timer,
|
|
530
532
|
za as TipBlock,
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
533
|
+
bs as ToolCallBlock,
|
|
534
|
+
Gs as Tooltip,
|
|
535
|
+
Vs as TopBar,
|
|
536
|
+
zs as TopBarIconButton,
|
|
535
537
|
Br as Trash,
|
|
536
538
|
Mr as TrashIcon,
|
|
537
539
|
Or as TrendingDown,
|
|
@@ -544,8 +546,8 @@ export {
|
|
|
544
546
|
Gr as UserIcon,
|
|
545
547
|
Ur as Video,
|
|
546
548
|
Vr as VideoIcon,
|
|
547
|
-
|
|
548
|
-
|
|
549
|
+
Zs as ViewActivationProvider,
|
|
550
|
+
js as VirtualMessageList,
|
|
549
551
|
Kr as Volume,
|
|
550
552
|
zr as VolumeIcon,
|
|
551
553
|
Xr as VolumeOff,
|
|
@@ -554,76 +556,76 @@ export {
|
|
|
554
556
|
Zr as Wand,
|
|
555
557
|
Xa as WarningBlock,
|
|
556
558
|
Yr as WarningIcon,
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
559
|
+
Js as WidgetFrame,
|
|
560
|
+
ep as WidgetPalette,
|
|
561
|
+
rp as WidgetRegistryProvider,
|
|
562
|
+
ap as WidgetResizeHandle,
|
|
563
|
+
mp as WidgetStateProvider,
|
|
564
|
+
dp as WidgetTypeSwitcher,
|
|
563
565
|
Qr as WifiIcon,
|
|
564
566
|
jr as WifiOffIcon,
|
|
565
567
|
fs as Wizard,
|
|
566
568
|
qr as Workflow,
|
|
567
|
-
|
|
569
|
+
Tp as WorkingIndicator,
|
|
568
570
|
Jr as X,
|
|
569
571
|
$r as XCircle,
|
|
570
572
|
et as Zap,
|
|
571
573
|
ot as ZapIcon,
|
|
572
574
|
ra as __resetSurfacePortalScopeForTests,
|
|
573
|
-
|
|
575
|
+
Cp as applyDragDelta,
|
|
574
576
|
Zm as applyNotesEvent,
|
|
575
|
-
|
|
577
|
+
Sp as applyResizeDelta,
|
|
576
578
|
dt as applyTerminalSessionSuggestion,
|
|
577
579
|
Pt as applyTerminalSuggestion,
|
|
578
580
|
n as applyTheme,
|
|
579
581
|
At as autocompleteTerminalInput,
|
|
580
|
-
|
|
582
|
+
Pp as buildAssistantNoticeEvents,
|
|
581
583
|
i as builtInThemes,
|
|
582
584
|
Ym as centerViewportOnWorldPoint,
|
|
583
|
-
|
|
585
|
+
Rp as checkCollision,
|
|
584
586
|
Qm as clampScale,
|
|
585
587
|
at as clampTerminalCursor,
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
588
|
+
Mp as clientToCanvasLocal,
|
|
589
|
+
Op as clientToCanvasWorld,
|
|
590
|
+
Hp as cn,
|
|
589
591
|
jm as computeBoardBounds,
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
592
|
+
Up as computeCodeDiff,
|
|
593
|
+
Vp as computeCodeDiffSync,
|
|
594
|
+
Kp as configureDiffWorker,
|
|
595
|
+
jp as configureMarkdownWorker,
|
|
596
|
+
nf as configureMermaidWorker,
|
|
597
|
+
pf as configureShikiWorker,
|
|
598
|
+
ff as configureSyncHighlighter,
|
|
599
|
+
af as configureSyncMermaid,
|
|
600
|
+
vp as constrainPosition,
|
|
599
601
|
Li as createCommandService,
|
|
600
|
-
|
|
602
|
+
_i as createComponentRegistry,
|
|
601
603
|
ga as createDeckService,
|
|
602
604
|
qm as createDefaultNotesSnapshot,
|
|
603
|
-
|
|
605
|
+
zp as createDiffWorker,
|
|
604
606
|
sm as createLayoutService,
|
|
605
|
-
|
|
607
|
+
qp as createMarkdownWorker,
|
|
606
608
|
Al as createNotificationService,
|
|
607
|
-
|
|
608
|
-
|
|
609
|
+
Cf as createSimpleContext,
|
|
610
|
+
Ap as createStreamEventBuilder,
|
|
609
611
|
ct as createTerminalEditorState,
|
|
610
612
|
Et as createTerminalFullLineSuggestion,
|
|
611
613
|
It as createTerminalSessionState,
|
|
612
614
|
Lt as createTerminalTokenSuggestion,
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
615
|
+
vs as createTerminalWidget,
|
|
616
|
+
Ms as createThemeService,
|
|
617
|
+
Wp as createViewportFromZoomAnchor,
|
|
618
|
+
tp as createWidgetRegistry,
|
|
619
|
+
gf as deferAfterPaint,
|
|
620
|
+
uf as deferNonBlocking,
|
|
619
621
|
mt as deleteTerminalTextBackward,
|
|
620
622
|
Tt as dispatchTerminalSessionKey,
|
|
621
|
-
|
|
622
|
-
|
|
623
|
+
kf as duration,
|
|
624
|
+
Ff as easing,
|
|
623
625
|
ta as ensureSurfacePortalInteractionTracking,
|
|
624
626
|
bm as estimateNotesContextMenuHeight,
|
|
625
|
-
|
|
626
|
-
|
|
627
|
+
Pf as fadeIn,
|
|
628
|
+
yp as findFreePosition,
|
|
627
629
|
f as floeColorTokenCategories,
|
|
628
630
|
d as floeDesignTokens,
|
|
629
631
|
I as floeFontFamilyTokens,
|
|
@@ -633,35 +635,35 @@ export {
|
|
|
633
635
|
S as floeSpacingTokens,
|
|
634
636
|
g as floeThemeColorVariables,
|
|
635
637
|
u as floeTypographyTokens,
|
|
636
|
-
|
|
638
|
+
wf as formatKeybind,
|
|
637
639
|
Wn as getFileIcon,
|
|
638
640
|
h as getFloeColorTokenValue,
|
|
639
|
-
|
|
641
|
+
gp as getGridCellSize,
|
|
640
642
|
Vi as getGridConfigFromElement,
|
|
641
643
|
a as getSystemTheme,
|
|
642
644
|
xt as getTerminalPromptPreview,
|
|
643
645
|
Ct as getTerminalSessionSuggestions,
|
|
644
646
|
Rt as getTerminalSuggestions,
|
|
645
647
|
Jm as groupTrashItems,
|
|
646
|
-
|
|
648
|
+
_p as hasCollision,
|
|
647
649
|
Di as hasComponentRegistryContext,
|
|
648
|
-
|
|
650
|
+
Xp as hasDiffWorker,
|
|
649
651
|
ic as hasFileBrowserDragContext,
|
|
650
|
-
|
|
651
|
-
|
|
652
|
+
Jp as hasMarkdownWorker,
|
|
653
|
+
df as highlightCode,
|
|
652
654
|
lt as insertTerminalText,
|
|
653
655
|
Qn as isLocalInteractionSurfaceTarget,
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
656
|
+
Nf as isMacLikePlatform,
|
|
657
|
+
wp as isPointInsideCanvasRect,
|
|
658
|
+
bf as isPrimaryModKeyPressed,
|
|
659
|
+
Ep as isStreamEvent,
|
|
658
660
|
na as isSurfacePortalMode,
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
661
|
+
Vf as isTypingElement,
|
|
662
|
+
Af as listContainer,
|
|
663
|
+
Ef as listItem,
|
|
664
|
+
Np as localToCanvasWorld,
|
|
665
|
+
Xf as lockBodyStyle,
|
|
666
|
+
Hf as matchKeybind,
|
|
665
667
|
vt as matchesTerminalSuggestionPrefix,
|
|
666
668
|
$m as mergeBoardBounds,
|
|
667
669
|
c as mergeThemeTokenMaps,
|
|
@@ -671,22 +673,22 @@ export {
|
|
|
671
673
|
ol as normalizeNotesSnapshot,
|
|
672
674
|
nt as normalizeTerminalWorkspaceProfile,
|
|
673
675
|
rl as noteBucketMetrics,
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
676
|
+
Lf as panelResize,
|
|
677
|
+
Gf as parseKeybind,
|
|
678
|
+
yt as parseTerminalSuggestionContext,
|
|
679
|
+
up as pixelDeltaToGridDelta,
|
|
680
|
+
Rf as popIn,
|
|
681
|
+
hp as positionToGridArea,
|
|
680
682
|
ia as projectSurfacePortalPosition,
|
|
681
683
|
aa as projectSurfacePortalRect,
|
|
682
684
|
tl as promoteLocalItem,
|
|
683
|
-
|
|
685
|
+
Yf as registerCommandContributions,
|
|
684
686
|
nl as removeSnapshotItem,
|
|
685
687
|
il as removeSnapshotTopic,
|
|
686
688
|
al as removeSnapshotTrashItem,
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
689
|
+
$p as renderMarkdown,
|
|
690
|
+
ef as renderMarkdownSync,
|
|
691
|
+
cf as renderMermaid,
|
|
690
692
|
cl as replaceSnapshotItem,
|
|
691
693
|
ml as replaceSnapshotTopic,
|
|
692
694
|
ll as replaceSnapshotTrashItem,
|
|
@@ -702,70 +704,70 @@ export {
|
|
|
702
704
|
Jn as resolveWorkbenchWidgetEventOwnership,
|
|
703
705
|
$n as resolveWorkbenchWidgetLocalTypingTarget,
|
|
704
706
|
ht as runTerminalMockCommand,
|
|
705
|
-
|
|
707
|
+
Dp as sameGridPosition,
|
|
706
708
|
Ba as sanitizeDisplayMode,
|
|
707
|
-
|
|
709
|
+
vf as scaleIn,
|
|
708
710
|
sl as screenToWorld,
|
|
709
711
|
St as setTerminalSessionInputValue,
|
|
710
712
|
ei as shouldActivateWorkbenchWidgetLocalTarget,
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
713
|
+
Kf as shouldIgnoreHotkeys,
|
|
714
|
+
yf as sidebarVariants,
|
|
715
|
+
_f as slideInFromBottom,
|
|
716
|
+
Df as slideInFromLeft,
|
|
717
|
+
Bf as slideInFromRight,
|
|
718
|
+
Mf as slideInFromTop,
|
|
719
|
+
kp as snapToGrid,
|
|
720
|
+
Of as springConfig,
|
|
719
721
|
ja as startHotInteraction,
|
|
720
|
-
|
|
722
|
+
qf as startPointerSession,
|
|
721
723
|
gt as submitTerminalSession,
|
|
722
724
|
s as syncThemeTokenOverrides,
|
|
723
|
-
|
|
725
|
+
_t as terminalCommandTokenSuggestionProvider,
|
|
724
726
|
Dt as terminalHistorySuggestionProvider,
|
|
725
727
|
Bt as terminalPathSuggestionProvider,
|
|
726
728
|
Mt as terminalRootSuggestionProvider,
|
|
727
729
|
Ot as terminalSnippetSuggestionProvider,
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
730
|
+
Zp as terminateDiffWorker,
|
|
731
|
+
of as terminateMarkdownWorker,
|
|
732
|
+
mf as terminateMermaidWorker,
|
|
733
|
+
If as terminateShikiWorker,
|
|
734
|
+
$f as useAttachments,
|
|
735
|
+
od as useAutoScroll,
|
|
734
736
|
ci as useChatContext,
|
|
735
|
-
|
|
737
|
+
Tf as useCodeHighlight,
|
|
736
738
|
Ri as useCommand,
|
|
737
|
-
|
|
739
|
+
Qf as useCommandContributions,
|
|
738
740
|
Bi as useComponentContextFactory,
|
|
739
741
|
Mi as useComponentRegistry,
|
|
740
|
-
|
|
741
|
-
|
|
742
|
+
lp as useCurrentWidgetId,
|
|
743
|
+
td as useDebounce,
|
|
742
744
|
ua as useDeck,
|
|
743
|
-
|
|
745
|
+
id as useDeckDrag,
|
|
744
746
|
lc as useFileBrowser,
|
|
745
747
|
ac as useFileBrowserDrag,
|
|
746
|
-
|
|
747
|
-
|
|
748
|
+
cd as useFileBrowserDropTarget,
|
|
749
|
+
md as useFileBrowserItemDrag,
|
|
748
750
|
Zi as useFloeConfig,
|
|
749
751
|
Vc as useFormSubmitting,
|
|
750
|
-
|
|
752
|
+
sd as useKeybind,
|
|
751
753
|
pm as useLayout,
|
|
752
|
-
|
|
753
|
-
|
|
754
|
+
fd as useMediaQuery,
|
|
755
|
+
lf as useMermaid,
|
|
754
756
|
El as useNotification,
|
|
755
757
|
Oi as useOptionalComponentRegistry,
|
|
756
|
-
|
|
757
|
-
|
|
758
|
+
Id as usePersisted,
|
|
759
|
+
xd as useResizeObserver,
|
|
758
760
|
Yi as useResolvedFloeConfig,
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
761
|
+
Os as useTheme,
|
|
762
|
+
Ys as useViewActivation,
|
|
763
|
+
Sd as useVirtualList,
|
|
764
|
+
np as useWidgetRegistry,
|
|
765
|
+
sp as useWidgetState,
|
|
766
|
+
pp as useWidgetStateContext,
|
|
765
767
|
ds as useWizard,
|
|
766
768
|
pl as visibleWorldRect,
|
|
767
|
-
|
|
768
|
-
|
|
769
|
+
Yp as waitForDiffWorker,
|
|
770
|
+
rf as waitForMarkdownWorker,
|
|
769
771
|
fl as worldToScreen,
|
|
770
772
|
dl as zoomViewportAtPoint
|
|
771
773
|
};
|
package/dist/ui.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { AffixInput as e, Input as t, NumberInput as a, Textarea as i } from "./components/ui/Input.js";
|
|
2
|
-
import { AnimatedBorderCard as c, Card as T, CardContent as
|
|
3
|
-
import { AreaChart as
|
|
4
|
-
import { Button as
|
|
2
|
+
import { AnimatedBorderCard as c, Card as T, CardContent as l, CardDescription as C, CardFooter as p, CardHeader as m, CardTitle as s, Interactive3DCard as f, MorphCard as A, NeonCard as _ } from "./components/ui/Card.js";
|
|
3
|
+
import { AreaChart as S, DataBarChart as R, DataPieChart as x, LineChart as d, MonitoringChart as u } from "./components/ui/Charts.js";
|
|
4
|
+
import { Button as F } from "./components/ui/Button.js";
|
|
5
5
|
import { CANVAS_WHEEL_INTERACTIVE_ATTR as g, DEFAULT_CANVAS_WHEEL_INTERACTIVE_SELECTOR as P, DEFAULT_LOCAL_INTERACTION_SURFACE_SELECTOR as O, DEFAULT_WORKBENCH_WIDGET_ACTIVATION_SURFACE_SELECTOR as W, DEFAULT_WORKBENCH_WIDGET_SHELL_SELECTOR as D, LOCAL_INTERACTION_SURFACE_ATTR as h, WORKBENCH_WIDGET_ACTIVATION_SURFACE_ATTR as v, WORKBENCH_WIDGET_SHELL_ATTR as N, isLocalInteractionSurfaceTarget as k, resolveSurfaceInteractionTargetRole as B, resolveSurfaceWheelRouting as b, resolveWorkbenchWidgetEventOwnership as H, resolveWorkbenchWidgetLocalTypingTarget as U, shouldActivateWorkbenchWidgetLocalTarget as G } from "./components/ui/localInteractionSurface.js";
|
|
6
6
|
import { Checkbox as V, CheckboxGroup as w, CheckboxList as y } from "./components/ui/Checkbox.js";
|
|
7
7
|
import { CircularProgress as j, LinearProgress as z, SegmentedProgress as Y, StepsProgress as Q } from "./components/ui/Progress.js";
|
|
8
8
|
import { CommandPalette as q } from "./components/ui/CommandPalette.js";
|
|
9
9
|
import { ConfirmDialog as X, Dialog as $ } from "./components/ui/Dialog.js";
|
|
10
|
-
import { DIALOG_SURFACE_BOUNDARY_ATTR as or, DIALOG_SURFACE_HOST_ATTR as er, SURFACE_PORTAL_HOST_ATTR as tr, SURFACE_PORTAL_LAYER_ATTR as ar, __resetSurfacePortalScopeForTests as ir, ensureSurfacePortalInteractionTracking as nr, isSurfacePortalMode as cr, projectSurfacePortalPosition as Tr, projectSurfacePortalRect as
|
|
10
|
+
import { DIALOG_SURFACE_BOUNDARY_ATTR as or, DIALOG_SURFACE_HOST_ATTR as er, SURFACE_PORTAL_HOST_ATTR as tr, SURFACE_PORTAL_LAYER_ATTR as ar, __resetSurfacePortalScopeForTests as ir, ensureSurfacePortalInteractionTracking as nr, isSurfacePortalMode as cr, projectSurfacePortalPosition as Tr, projectSurfacePortalRect as lr, resolveSurfacePortalBoundaryRect as Cr, resolveSurfacePortalHost as pr, resolveSurfacePortalMount as mr, resolveSurfacePortalMountRect as sr } from "./components/ui/dialogSurfaceScope.js";
|
|
11
11
|
import { DirectoryInput as Ar } from "./components/ui/DirectoryInput.js";
|
|
12
12
|
import { DirectoryPicker as Er } from "./components/ui/DirectoryPicker.js";
|
|
13
|
-
import { Dropdown as
|
|
14
|
-
import { ErrorBlock as ur, HighlightBlock as Lr, InfoBlock as
|
|
13
|
+
import { Dropdown as Rr, Select as xr } from "./components/ui/Dropdown.js";
|
|
14
|
+
import { ErrorBlock as ur, HighlightBlock as Lr, InfoBlock as Fr, NoteBlock as Ir, SuccessBlock as gr, TipBlock as Pr, WarningBlock as Or } from "./components/ui/HighlightBlock.js";
|
|
15
15
|
import { FileSavePicker as Dr } from "./components/ui/FileSavePicker.js";
|
|
16
16
|
import { FloatingWindow as vr } from "./components/ui/FloatingWindow.js";
|
|
17
17
|
import { Form as kr, FormActions as Br, FormControl as br, FormDescription as Hr, FormDivider as Ur, FormField as Gr, FormLabel as Mr, FormMessage as Vr, FormRow as wr, FormSection as yr, useFormSubmitting as Kr } from "./components/ui/Form.js";
|
|
@@ -22,22 +22,23 @@ import { ProcessingIndicator as Xr } from "./components/ui/ProcessingIndicator.j
|
|
|
22
22
|
import { QuoteBlock as ro } from "./components/ui/QuoteBlock.js";
|
|
23
23
|
import { RadioGroup as eo, RadioList as to, RadioOption as ao } from "./components/ui/Radio.js";
|
|
24
24
|
import { SegmentedControl as no } from "./components/ui/SegmentedControl.js";
|
|
25
|
-
import { Stepper as To, Wizard as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
25
|
+
import { Stepper as To, Wizard as lo, useWizard as Co } from "./components/ui/Stepper.js";
|
|
26
|
+
import { SurfaceFloatingLayer as mo } from "./components/ui/SurfaceFloatingLayer.js";
|
|
27
|
+
import { Switch as fo } from "./components/ui/Switch.js";
|
|
28
|
+
import { TabPanel as _o, Tabs as Eo } from "./components/ui/Tabs.js";
|
|
29
|
+
import { Tag as Ro } from "./components/ui/Tag.js";
|
|
30
|
+
import { Tooltip as uo } from "./components/ui/Tooltip.js";
|
|
31
|
+
import { clientToCanvasLocal as Fo, clientToCanvasWorld as Io, createViewportFromZoomAnchor as go, isPointInsideCanvasRect as Po, localToCanvasWorld as Oo } from "./components/ui/canvasGeometry.js";
|
|
32
|
+
import { startPointerSession as Do } from "./components/ui/pointerSession.js";
|
|
32
33
|
export {
|
|
33
34
|
e as AffixInput,
|
|
34
35
|
c as AnimatedBorderCard,
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
S as AreaChart,
|
|
37
|
+
F as Button,
|
|
37
38
|
g as CANVAS_WHEEL_INTERACTIVE_ATTR,
|
|
38
39
|
T as Card,
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
l as CardContent,
|
|
41
|
+
C as CardDescription,
|
|
41
42
|
p as CardFooter,
|
|
42
43
|
m as CardHeader,
|
|
43
44
|
s as CardTitle,
|
|
@@ -53,12 +54,12 @@ export {
|
|
|
53
54
|
D as DEFAULT_WORKBENCH_WIDGET_SHELL_SELECTOR,
|
|
54
55
|
or as DIALOG_SURFACE_BOUNDARY_ATTR,
|
|
55
56
|
er as DIALOG_SURFACE_HOST_ATTR,
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
R as DataBarChart,
|
|
58
|
+
x as DataPieChart,
|
|
58
59
|
$ as Dialog,
|
|
59
60
|
Ar as DirectoryInput,
|
|
60
61
|
Er as DirectoryPicker,
|
|
61
|
-
|
|
62
|
+
Rr as Dropdown,
|
|
62
63
|
ur as ErrorBlock,
|
|
63
64
|
Dr as FileSavePicker,
|
|
64
65
|
vr as FloatingWindow,
|
|
@@ -74,17 +75,17 @@ export {
|
|
|
74
75
|
yr as FormSection,
|
|
75
76
|
Lr as HighlightBlock,
|
|
76
77
|
zr as InfiniteCanvas,
|
|
77
|
-
|
|
78
|
+
Fr as InfoBlock,
|
|
78
79
|
t as Input,
|
|
79
80
|
f as Interactive3DCard,
|
|
80
81
|
h as LOCAL_INTERACTION_SURFACE_ATTR,
|
|
81
|
-
|
|
82
|
+
d as LineChart,
|
|
82
83
|
z as LinearProgress,
|
|
83
84
|
Qr as MobileKeyboard,
|
|
84
85
|
u as MonitoringChart,
|
|
85
86
|
A as MorphCard,
|
|
86
87
|
_ as NeonCard,
|
|
87
|
-
|
|
88
|
+
Ir as NoteBlock,
|
|
88
89
|
a as NumberInput,
|
|
89
90
|
qr as Pagination,
|
|
90
91
|
Xr as ProcessingIndicator,
|
|
@@ -96,34 +97,35 @@ export {
|
|
|
96
97
|
ar as SURFACE_PORTAL_LAYER_ATTR,
|
|
97
98
|
no as SegmentedControl,
|
|
98
99
|
Y as SegmentedProgress,
|
|
99
|
-
|
|
100
|
+
xr as Select,
|
|
100
101
|
To as Stepper,
|
|
101
102
|
Q as StepsProgress,
|
|
102
103
|
gr as SuccessBlock,
|
|
103
|
-
mo as
|
|
104
|
-
fo as
|
|
105
|
-
|
|
106
|
-
Eo as
|
|
104
|
+
mo as SurfaceFloatingLayer,
|
|
105
|
+
fo as Switch,
|
|
106
|
+
_o as TabPanel,
|
|
107
|
+
Eo as Tabs,
|
|
108
|
+
Ro as Tag,
|
|
107
109
|
i as Textarea,
|
|
108
110
|
Pr as TipBlock,
|
|
109
|
-
|
|
111
|
+
uo as Tooltip,
|
|
110
112
|
v as WORKBENCH_WIDGET_ACTIVATION_SURFACE_ATTR,
|
|
111
113
|
N as WORKBENCH_WIDGET_SHELL_ATTR,
|
|
112
114
|
Or as WarningBlock,
|
|
113
|
-
|
|
115
|
+
lo as Wizard,
|
|
114
116
|
ir as __resetSurfacePortalScopeForTests,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
Fo as clientToCanvasLocal,
|
|
118
|
+
Io as clientToCanvasWorld,
|
|
119
|
+
go as createViewportFromZoomAnchor,
|
|
118
120
|
nr as ensureSurfacePortalInteractionTracking,
|
|
119
121
|
k as isLocalInteractionSurfaceTarget,
|
|
120
|
-
|
|
122
|
+
Po as isPointInsideCanvasRect,
|
|
121
123
|
cr as isSurfacePortalMode,
|
|
122
|
-
|
|
124
|
+
Oo as localToCanvasWorld,
|
|
123
125
|
Tr as projectSurfacePortalPosition,
|
|
124
|
-
|
|
126
|
+
lr as projectSurfacePortalRect,
|
|
125
127
|
B as resolveSurfaceInteractionTargetRole,
|
|
126
|
-
|
|
128
|
+
Cr as resolveSurfacePortalBoundaryRect,
|
|
127
129
|
pr as resolveSurfacePortalHost,
|
|
128
130
|
mr as resolveSurfacePortalMount,
|
|
129
131
|
sr as resolveSurfacePortalMountRect,
|
|
@@ -131,7 +133,7 @@ export {
|
|
|
131
133
|
H as resolveWorkbenchWidgetEventOwnership,
|
|
132
134
|
U as resolveWorkbenchWidgetLocalTypingTarget,
|
|
133
135
|
G as shouldActivateWorkbenchWidgetLocalTarget,
|
|
134
|
-
|
|
136
|
+
Do as startPointerSession,
|
|
135
137
|
Kr as useFormSubmitting,
|
|
136
|
-
|
|
138
|
+
Co as useWizard
|
|
137
139
|
};
|