@floegence/floe-webapp-core 0.86.37 → 0.86.39
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/chat.css +31 -4
- package/dist/full.js +8 -6
- package/dist/hooks/index.d.ts +1 -0
- package/dist/index.js +32 -30
- package/dist/styles/themes/classicSemanticTokens.d.ts +4 -0
- package/dist/styles/themes/classicSemanticTokens.js +12 -8
- package/dist/styles/themes/presets.d.ts +6 -1
- package/dist/styles/themes/presets.js +64 -36
- package/dist/styles.css +1 -1
- package/dist/themes/dark.css +2 -0
- package/dist/themes/light.css +2 -0
- package/dist/themes/shell-presets.generated.css +48 -0
- package/package.json +1 -1
package/dist/chat.css
CHANGED
|
@@ -365,12 +365,39 @@
|
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
.chat-md-inline-code {
|
|
368
|
-
padding: 0.
|
|
368
|
+
padding: 0.12em 0.36em;
|
|
369
|
+
border: 0;
|
|
369
370
|
border-radius: 0.25rem;
|
|
370
|
-
background-color:
|
|
371
|
+
background-color: var(--inline-code-background);
|
|
372
|
+
color: var(--inline-code-foreground);
|
|
371
373
|
font-family: var(--font-mono);
|
|
372
|
-
font-size: 0.
|
|
373
|
-
|
|
374
|
+
font-size: 0.91em;
|
|
375
|
+
font-weight: 400;
|
|
376
|
+
line-height: inherit;
|
|
377
|
+
white-space: break-spaces;
|
|
378
|
+
overflow-wrap: anywhere;
|
|
379
|
+
word-break: normal;
|
|
380
|
+
-webkit-box-decoration-break: clone;
|
|
381
|
+
box-decoration-break: clone;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.chat-container .chat-md-inline-code::selection,
|
|
385
|
+
.chat-message-bubble-user .chat-md-inline-code::selection {
|
|
386
|
+
background-color: var(--inline-code-foreground);
|
|
387
|
+
color: var(--inline-code-background);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@media (forced-colors: active) {
|
|
391
|
+
.chat-md-inline-code {
|
|
392
|
+
background-color: Canvas;
|
|
393
|
+
color: CanvasText;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.chat-container .chat-md-inline-code::selection,
|
|
397
|
+
.chat-message-bubble-user .chat-md-inline-code::selection {
|
|
398
|
+
background-color: Highlight;
|
|
399
|
+
color: HighlightText;
|
|
400
|
+
}
|
|
374
401
|
}
|
|
375
402
|
|
|
376
403
|
/* Markdown code blocks - always dark background
|
package/dist/full.js
CHANGED
|
@@ -186,9 +186,10 @@ import { useDeckDrag as Lx } from "./hooks/useDeckDrag.js";
|
|
|
186
186
|
import { useFileBrowserDropTarget as yx, useFileBrowserItemDrag as Dx } from "./hooks/useFileBrowserDrag.js";
|
|
187
187
|
import { useKeybind as vx } from "./hooks/useKeybind.js";
|
|
188
188
|
import { useMediaQuery as Bx } from "./hooks/useMediaQuery.js";
|
|
189
|
-
import {
|
|
190
|
-
import {
|
|
191
|
-
import {
|
|
189
|
+
import { useOverlayMask as Wx } from "./hooks/useOverlayMask.js";
|
|
190
|
+
import { usePersisted as Nx } from "./hooks/usePersisted.js";
|
|
191
|
+
import { useResizeObserver as Hx } from "./hooks/useResizeObserver.js";
|
|
192
|
+
import { useVirtualList as Gx } from "./components/chat/hooks/useVirtualList.js";
|
|
192
193
|
export {
|
|
193
194
|
R as Activity,
|
|
194
195
|
Zt as ActivityAppsMain,
|
|
@@ -885,12 +886,13 @@ export {
|
|
|
885
886
|
Rm as useMobileLayout,
|
|
886
887
|
js as useNotification,
|
|
887
888
|
ka as useOptionalComponentRegistry,
|
|
888
|
-
Wx as
|
|
889
|
-
Nx as
|
|
889
|
+
Wx as useOverlayMask,
|
|
890
|
+
Nx as usePersisted,
|
|
891
|
+
Hx as useResizeObserver,
|
|
890
892
|
Ba as useResolvedFloeConfig,
|
|
891
893
|
Rf as useTheme,
|
|
892
894
|
Uf as useViewActivation,
|
|
893
|
-
|
|
895
|
+
Gx as useVirtualList,
|
|
894
896
|
jf as useWidgetRegistry,
|
|
895
897
|
td as useWidgetState,
|
|
896
898
|
id as useWidgetStateContext,
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export { usePersisted } from './usePersisted';
|
|
|
8
8
|
export { useDeckDrag } from './useDeckDrag';
|
|
9
9
|
export { useFileBrowserItemDrag, useFileBrowserDropTarget, type UseFileBrowserItemDragOptions, type FileBrowserItemDragHandlers, type UseFileBrowserDropTargetOptions, type FileBrowserDropTargetResult, } from './useFileBrowserDrag';
|
|
10
10
|
export { createRetainedContent } from './createRetainedContent';
|
|
11
|
+
export { useOverlayMask, type UseOverlayMaskOptions } from './useOverlayMask';
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { FloeProvider as r } from "./app/FloeProvider.js";
|
|
2
|
-
import { applyShellThemeAttribute as i, applySurfaceStyleAttribute as s, applyTheme as n, builtInThemes as a, getSystemTheme as m, isFloeSurfaceStyle as l, isThemeType as p, mergeThemeTokenMaps as f, resolveThemeTokenOverrides as d, resolveThemeTokens as T, syncThemeTokenOverrides as
|
|
3
|
-
import { floeColorTokenCategories as x, floeDesignTokens as g, floeFontFamilyTokens as y, floeMotionTokens as C, floeRadiusTokens as S, floeSharedCssVariables as h, floeSpacingTokens as F, floeSurfaceTokens as v, floeThemeColorVariables as P, floeTypographyTokens as
|
|
4
|
-
import { BUILT_IN_SHELL_THEME_DEFAULTS as D, REQUIRED_SHELL_THEME_TOKENS as E, assertUniqueThemePresetNames as b, builtInShellThemePresets as L, createShellThemePreset as _, getShellThemePresetsForMode as A, normalizeShellThemeSelection as
|
|
2
|
+
import { applyShellThemeAttribute as i, applySurfaceStyleAttribute as s, applyTheme as n, builtInThemes as a, getSystemTheme as m, isFloeSurfaceStyle as l, isThemeType as p, mergeThemeTokenMaps as f, resolveThemeTokenOverrides as d, resolveThemeTokens as T, syncThemeTokenOverrides as u } from "./styles/themes/index.js";
|
|
3
|
+
import { floeColorTokenCategories as x, floeDesignTokens as g, floeFontFamilyTokens as y, floeMotionTokens as C, floeRadiusTokens as S, floeSharedCssVariables as h, floeSpacingTokens as F, floeSurfaceTokens as v, floeThemeColorVariables as P, floeTypographyTokens as k, getFloeColorTokenValue as R } from "./styles/tokens.js";
|
|
4
|
+
import { BUILT_IN_SHELL_THEME_DEFAULTS as D, REQUIRED_SHELL_THEME_TOKENS as E, assertUniqueThemePresetNames as b, builtInShellThemePresets as L, createShellThemePreset as _, getShellThemePresetsForMode as A, normalizeShellThemeSelection as O, presetSupportsMode as M, resolveShellThemePresetName as N } from "./styles/themes/presets.js";
|
|
5
5
|
import { CommandProvider as U, createCommandService as w, useCommand as G } from "./context/CommandContext.js";
|
|
6
6
|
import { ComponentRegistryProvider as W, createComponentRegistry as K, hasComponentRegistryContext as V, useComponentContextFactory as z, useComponentRegistry as Q, useOptionalComponentRegistry as q } from "./context/ComponentRegistry.js";
|
|
7
7
|
import { DEFAULT_FLOE_CONFIG as j, FloeConfigProvider as J, useFloeConfig as X, useResolvedFloeConfig as Z } from "./context/FloeConfigContext.js";
|
|
8
8
|
import { DeckProvider as ee, createDeckService as oe, useDeck as re } from "./context/DeckContext.js";
|
|
9
9
|
import { FLOE_GEOMETRY_SURFACE_ATTR as ie, FLOE_HOT_INTERACTION_ATTR as se, startHotInteraction as ne } from "./utils/hotInteraction.js";
|
|
10
10
|
import { FileBrowserDragProvider as me, hasFileBrowserDragContext as le, useFileBrowserDrag as pe } from "./context/FileBrowserDragContext.js";
|
|
11
|
-
import { LayoutProvider as de, createLayoutService as Te, useLayout as
|
|
11
|
+
import { LayoutProvider as de, createLayoutService as Te, useLayout as ue, useMobileLayout as ce } from "./context/LayoutContext.js";
|
|
12
12
|
import { NotificationContainer as ge, NotificationProvider as ye, createNotificationService as Ce, useNotification as Se } from "./context/NotificationContext.js";
|
|
13
13
|
import { ThemeProvider as Fe, createThemeService as ve, useTheme as Pe } from "./context/ThemeContext.js";
|
|
14
|
-
import { ViewActivationProvider as
|
|
14
|
+
import { ViewActivationProvider as Re, useViewActivation as Ie } from "./context/ViewActivationContext.js";
|
|
15
15
|
import { WidgetRegistryProvider as Ee, createWidgetRegistry as be, useWidgetRegistry as Le } from "./context/WidgetRegistry.js";
|
|
16
|
-
import { WidgetStateProvider as Ae, useCurrentWidgetId as
|
|
16
|
+
import { WidgetStateProvider as Ae, useCurrentWidgetId as Oe, useWidgetState as Me, useWidgetStateContext as Ne } from "./context/WidgetStateContext.js";
|
|
17
17
|
import { applyDragDelta as Ue, applyResizeDelta as we, getGridCellSize as Ge, pixelDeltaToGridDelta as He, positionToGridArea as We, snapToGrid as Ke } from "./utils/gridLayout.js";
|
|
18
18
|
import { calculateFitScale as ze } from "./utils/fitScale.js";
|
|
19
19
|
import { checkCollision as qe, constrainPosition as Ye, findFreePosition as je, hasCollision as Je, sameGridPosition as Xe } from "./utils/gridCollision.js";
|
|
@@ -23,9 +23,9 @@ import { createRetainedContent as to } from "./hooks/createRetainedContent.js";
|
|
|
23
23
|
import { createSimpleContext as so } from "./context/createSimpleContext.js";
|
|
24
24
|
import { createUIFirstSelection as ao } from "./utils/uiFirstSelection.js";
|
|
25
25
|
import { deferAfterPaint as lo, deferNonBlocking as po } from "./utils/defer.js";
|
|
26
|
-
import { duration as To, easing as
|
|
26
|
+
import { duration as To, easing as uo, fadeIn as co, listContainer as xo, listItem as go, panelResize as yo, popIn as Co, scaleIn as So, sidebarVariants as ho, slideInFromBottom as Fo, slideInFromLeft as vo, slideInFromRight as Po, slideInFromTop as ko, springConfig as Ro } from "./utils/animations.js";
|
|
27
27
|
import { formatKeybind as Do, isMacLikePlatform as Eo, isPrimaryModKeyPressed as bo, matchKeybind as Lo, parseKeybind as _o } from "./utils/keybind.js";
|
|
28
|
-
import { isTypingElement as
|
|
28
|
+
import { isTypingElement as Oo, shouldIgnoreHotkeys as Mo } from "./utils/dom.js";
|
|
29
29
|
import { lockBodyStyle as Bo } from "./utils/bodyStyleLock.js";
|
|
30
30
|
import { registerCommandContributions as wo, useCommandContributions as Go } from "./hooks/useCommandContributions.js";
|
|
31
31
|
import { secureRandomUUID as Wo } from "./utils/secureRandom.js";
|
|
@@ -34,8 +34,9 @@ import { useDeckDrag as Qo } from "./hooks/useDeckDrag.js";
|
|
|
34
34
|
import { useFileBrowserDropTarget as Yo, useFileBrowserItemDrag as jo } from "./hooks/useFileBrowserDrag.js";
|
|
35
35
|
import { useKeybind as Xo } from "./hooks/useKeybind.js";
|
|
36
36
|
import { useMediaQuery as $o } from "./hooks/useMediaQuery.js";
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
37
|
+
import { useOverlayMask as or } from "./hooks/useOverlayMask.js";
|
|
38
|
+
import { usePersisted as tr } from "./hooks/usePersisted.js";
|
|
39
|
+
import { useResizeObserver as sr } from "./hooks/useResizeObserver.js";
|
|
39
40
|
export {
|
|
40
41
|
D as BUILT_IN_SHELL_THEME_DEFAULTS,
|
|
41
42
|
U as CommandProvider,
|
|
@@ -52,7 +53,7 @@ export {
|
|
|
52
53
|
ye as NotificationProvider,
|
|
53
54
|
E as REQUIRED_SHELL_THEME_TOKENS,
|
|
54
55
|
Fe as ThemeProvider,
|
|
55
|
-
|
|
56
|
+
Re as ViewActivationProvider,
|
|
56
57
|
Ee as WidgetRegistryProvider,
|
|
57
58
|
Ae as WidgetStateProvider,
|
|
58
59
|
Ue as applyDragDelta,
|
|
@@ -82,8 +83,8 @@ export {
|
|
|
82
83
|
lo as deferAfterPaint,
|
|
83
84
|
po as deferNonBlocking,
|
|
84
85
|
To as duration,
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
uo as easing,
|
|
87
|
+
co as fadeIn,
|
|
87
88
|
je as findFreePosition,
|
|
88
89
|
x as floeColorTokenCategories,
|
|
89
90
|
g as floeDesignTokens,
|
|
@@ -94,9 +95,9 @@ export {
|
|
|
94
95
|
F as floeSpacingTokens,
|
|
95
96
|
v as floeSurfaceTokens,
|
|
96
97
|
P as floeThemeColorVariables,
|
|
97
|
-
|
|
98
|
+
k as floeTypographyTokens,
|
|
98
99
|
Do as formatKeybind,
|
|
99
|
-
|
|
100
|
+
R as getFloeColorTokenValue,
|
|
100
101
|
Ge as getGridCellSize,
|
|
101
102
|
A as getShellThemePresetsForMode,
|
|
102
103
|
m as getSystemTheme,
|
|
@@ -107,41 +108,41 @@ export {
|
|
|
107
108
|
Eo as isMacLikePlatform,
|
|
108
109
|
bo as isPrimaryModKeyPressed,
|
|
109
110
|
p as isThemeType,
|
|
110
|
-
|
|
111
|
+
Oo as isTypingElement,
|
|
111
112
|
xo as listContainer,
|
|
112
113
|
go as listItem,
|
|
113
114
|
Bo as lockBodyStyle,
|
|
114
115
|
Lo as matchKeybind,
|
|
115
116
|
f as mergeThemeTokenMaps,
|
|
116
|
-
|
|
117
|
+
O as normalizeShellThemeSelection,
|
|
117
118
|
yo as panelResize,
|
|
118
119
|
_o as parseKeybind,
|
|
119
120
|
He as pixelDeltaToGridDelta,
|
|
120
121
|
Co as popIn,
|
|
121
122
|
We as positionToGridArea,
|
|
122
|
-
|
|
123
|
+
M as presetSupportsMode,
|
|
123
124
|
wo as registerCommandContributions,
|
|
124
|
-
|
|
125
|
+
N as resolveShellThemePresetName,
|
|
125
126
|
d as resolveThemeTokenOverrides,
|
|
126
127
|
T as resolveThemeTokens,
|
|
127
128
|
Xe as sameGridPosition,
|
|
128
129
|
So as scaleIn,
|
|
129
130
|
Wo as secureRandomUUID,
|
|
130
|
-
|
|
131
|
+
Mo as shouldIgnoreHotkeys,
|
|
131
132
|
ho as sidebarVariants,
|
|
132
133
|
Fo as slideInFromBottom,
|
|
133
134
|
vo as slideInFromLeft,
|
|
134
135
|
Po as slideInFromRight,
|
|
135
|
-
|
|
136
|
+
ko as slideInFromTop,
|
|
136
137
|
Ke as snapToGrid,
|
|
137
|
-
|
|
138
|
+
Ro as springConfig,
|
|
138
139
|
ne as startHotInteraction,
|
|
139
|
-
|
|
140
|
+
u as syncThemeTokenOverrides,
|
|
140
141
|
G as useCommand,
|
|
141
142
|
Go as useCommandContributions,
|
|
142
143
|
z as useComponentContextFactory,
|
|
143
144
|
Q as useComponentRegistry,
|
|
144
|
-
|
|
145
|
+
Oe as useCurrentWidgetId,
|
|
145
146
|
Vo as useDebounce,
|
|
146
147
|
re as useDeck,
|
|
147
148
|
Qo as useDeckDrag,
|
|
@@ -150,17 +151,18 @@ export {
|
|
|
150
151
|
jo as useFileBrowserItemDrag,
|
|
151
152
|
X as useFloeConfig,
|
|
152
153
|
Xo as useKeybind,
|
|
153
|
-
|
|
154
|
+
ue as useLayout,
|
|
154
155
|
$o as useMediaQuery,
|
|
155
|
-
|
|
156
|
+
ce as useMobileLayout,
|
|
156
157
|
Se as useNotification,
|
|
157
158
|
q as useOptionalComponentRegistry,
|
|
158
|
-
or as
|
|
159
|
-
tr as
|
|
159
|
+
or as useOverlayMask,
|
|
160
|
+
tr as usePersisted,
|
|
161
|
+
sr as useResizeObserver,
|
|
160
162
|
Z as useResolvedFloeConfig,
|
|
161
163
|
Pe as useTheme,
|
|
162
164
|
Ie as useViewActivation,
|
|
163
165
|
Le as useWidgetRegistry,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
+
Me as useWidgetState,
|
|
167
|
+
Ne as useWidgetStateContext
|
|
166
168
|
};
|
|
@@ -3,6 +3,8 @@ export declare const CLASSIC_LIGHT_CSS_TOKENS: {
|
|
|
3
3
|
'--floe-window-titlebar-background': "var(--popover)";
|
|
4
4
|
'--background': "#f8f7f2";
|
|
5
5
|
'--foreground': "#303a34";
|
|
6
|
+
'--inline-code-foreground': "#4C6544";
|
|
7
|
+
'--inline-code-background': "#EAEBE4";
|
|
6
8
|
'--primary': "#465a43";
|
|
7
9
|
'--primary-foreground': "#f8faf5";
|
|
8
10
|
'--secondary': "#eeefe8";
|
|
@@ -74,6 +76,8 @@ export declare const CLASSIC_DARK_CSS_TOKENS: {
|
|
|
74
76
|
'--floe-window-titlebar-background': "var(--popover)";
|
|
75
77
|
'--background': "#202223";
|
|
76
78
|
'--foreground': "#e5e6e2";
|
|
79
|
+
'--inline-code-foreground': "#BBC9AF";
|
|
80
|
+
'--inline-code-background': "#2E3130";
|
|
77
81
|
'--primary': "#bccbb8";
|
|
78
82
|
'--primary-foreground': "#20291f";
|
|
79
83
|
'--secondary': "#303435";
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { createProgressTokens as b } from "./progressTokens.js";
|
|
2
|
-
import { LIGHT_WINDOW_TOKENS as l, DARK_WINDOW_TOKENS as
|
|
2
|
+
import { LIGHT_WINDOW_TOKENS as l, DARK_WINDOW_TOKENS as g } from "./windowTokens.js";
|
|
3
3
|
function f(c) {
|
|
4
4
|
const a = {}, n = (r, o = /* @__PURE__ */ new Set()) => {
|
|
5
5
|
const e = c[r];
|
|
6
6
|
if (!e || o.has(r)) return e;
|
|
7
|
-
const
|
|
8
|
-
return
|
|
7
|
+
const i = /^var\((--[\w-]+)\)$/u.exec(e)?.[1];
|
|
8
|
+
return i ? (o.add(r), n(i, o)) : e;
|
|
9
9
|
};
|
|
10
10
|
for (const r of Object.keys(c))
|
|
11
11
|
a[r] = n(r);
|
|
12
12
|
return Object.freeze(a);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const d = {
|
|
15
15
|
...l,
|
|
16
16
|
"--floe-window-background": "var(--popover)",
|
|
17
17
|
"--floe-window-titlebar-background": "var(--popover)",
|
|
18
18
|
"--background": "#f8f7f2",
|
|
19
19
|
"--foreground": "#303a34",
|
|
20
|
+
"--inline-code-foreground": "#4C6544",
|
|
21
|
+
"--inline-code-background": "#EAEBE4",
|
|
20
22
|
"--primary": "#465a43",
|
|
21
23
|
"--primary-foreground": "#f8faf5",
|
|
22
24
|
"--secondary": "#eeefe8",
|
|
@@ -78,12 +80,14 @@ const i = {
|
|
|
78
80
|
"--selection-code-bg": "hsl(212 100% 67%)",
|
|
79
81
|
"--selection-code-fg": "hsl(220 20% 8%)",
|
|
80
82
|
"--glow": "#465a43"
|
|
81
|
-
},
|
|
82
|
-
...
|
|
83
|
+
}, t = {
|
|
84
|
+
...g,
|
|
83
85
|
"--floe-window-background": "var(--popover)",
|
|
84
86
|
"--floe-window-titlebar-background": "var(--popover)",
|
|
85
87
|
"--background": "#202223",
|
|
86
88
|
"--foreground": "#e5e6e2",
|
|
89
|
+
"--inline-code-foreground": "#BBC9AF",
|
|
90
|
+
"--inline-code-background": "#2E3130",
|
|
87
91
|
"--primary": "#bccbb8",
|
|
88
92
|
"--primary-foreground": "#20291f",
|
|
89
93
|
"--secondary": "#303435",
|
|
@@ -145,10 +149,10 @@ const i = {
|
|
|
145
149
|
"--selection-code-bg": "hsl(212 100% 67%)",
|
|
146
150
|
"--selection-code-fg": "hsl(220 20% 8%)",
|
|
147
151
|
"--glow": "hsl(217 65% 52%)"
|
|
148
|
-
},
|
|
152
|
+
}, h = { ...d, ...b("light", d) }, s = { ...t, ...b("dark", t) }, p = f(h), v = f(s);
|
|
149
153
|
export {
|
|
150
154
|
s as CLASSIC_DARK_CSS_TOKENS,
|
|
151
155
|
v as CLASSIC_DARK_SEMANTIC_TOKENS,
|
|
152
|
-
|
|
156
|
+
h as CLASSIC_LIGHT_CSS_TOKENS,
|
|
153
157
|
p as CLASSIC_LIGHT_SEMANTIC_TOKENS
|
|
154
158
|
};
|
|
@@ -6,7 +6,7 @@ export interface FloeShellThemeSelection {
|
|
|
6
6
|
dark?: string;
|
|
7
7
|
}
|
|
8
8
|
export type FloeShellThemeDefaults = Partial<Record<FloeShellThemeMode, string>>;
|
|
9
|
-
type ShellThemeTokenName = '--floe-window-background' | '--floe-window-foreground' | '--floe-window-muted-foreground' | '--floe-window-titlebar-background' | '--floe-window-border' | '--floe-window-shadow' | '--background' | '--foreground' | '--primary' | '--primary-foreground' | '--secondary' | '--secondary-foreground' | '--muted' | '--muted-foreground' | '--accent' | '--accent-foreground' | '--border' | '--input' | '--ring' | '--chrome-border' | '--top-bar-border' | '--activity-bar-border' | '--bottom-bar-border' | '--terminal-panel-border' | '--card' | '--card-foreground' | '--popover' | '--popover-foreground' | '--success' | '--success-foreground' | '--warning' | '--warning-foreground' | '--error' | '--error-foreground' | '--info' | '--info-foreground' | '--highlight-block-info-accent' | '--highlight-block-warning-accent' | '--highlight-block-success-accent' | '--highlight-block-error-accent' | '--highlight-block-note-accent' | '--highlight-block-tip-accent' | '--sidebar' | '--sidebar-foreground' | '--sidebar-primary' | '--sidebar-primary-foreground' | '--sidebar-accent' | '--sidebar-accent-foreground' | '--sidebar-border' | '--sidebar-ring' | '--activity-bar' | '--activity-bar-foreground' | '--activity-bar-foreground-active' | '--activity-bar-badge' | '--activity-bar-badge-foreground' | '--terminal-background' | '--terminal-foreground' | '--chart-1' | '--chart-2' | '--chart-3' | '--chart-4' | '--chart-5' | '--selection-bg' | '--selection-fg' | '--selection-on-primary-bg' | '--selection-on-primary-fg' | '--selection-code-bg' | '--selection-code-fg' | '--glow';
|
|
9
|
+
type ShellThemeTokenName = '--floe-window-background' | '--floe-window-foreground' | '--floe-window-muted-foreground' | '--floe-window-titlebar-background' | '--floe-window-border' | '--floe-window-shadow' | '--background' | '--foreground' | '--inline-code-foreground' | '--inline-code-background' | '--primary' | '--primary-foreground' | '--secondary' | '--secondary-foreground' | '--muted' | '--muted-foreground' | '--accent' | '--accent-foreground' | '--border' | '--input' | '--ring' | '--chrome-border' | '--top-bar-border' | '--activity-bar-border' | '--bottom-bar-border' | '--terminal-panel-border' | '--card' | '--card-foreground' | '--popover' | '--popover-foreground' | '--success' | '--success-foreground' | '--warning' | '--warning-foreground' | '--error' | '--error-foreground' | '--info' | '--info-foreground' | '--highlight-block-info-accent' | '--highlight-block-warning-accent' | '--highlight-block-success-accent' | '--highlight-block-error-accent' | '--highlight-block-note-accent' | '--highlight-block-tip-accent' | '--sidebar' | '--sidebar-foreground' | '--sidebar-primary' | '--sidebar-primary-foreground' | '--sidebar-accent' | '--sidebar-accent-foreground' | '--sidebar-border' | '--sidebar-ring' | '--activity-bar' | '--activity-bar-foreground' | '--activity-bar-foreground-active' | '--activity-bar-badge' | '--activity-bar-badge-foreground' | '--terminal-background' | '--terminal-foreground' | '--chart-1' | '--chart-2' | '--chart-3' | '--chart-4' | '--chart-5' | '--selection-bg' | '--selection-fg' | '--selection-on-primary-bg' | '--selection-on-primary-fg' | '--selection-code-bg' | '--selection-code-fg' | '--glow';
|
|
10
10
|
export declare const REQUIRED_SHELL_THEME_TOKENS: readonly ShellThemeTokenName[];
|
|
11
11
|
interface ShellThemePaletteDefinition {
|
|
12
12
|
name: string;
|
|
@@ -15,6 +15,11 @@ interface ShellThemePaletteDefinition {
|
|
|
15
15
|
mode: FloeShellThemeMode;
|
|
16
16
|
background: string;
|
|
17
17
|
foreground: string;
|
|
18
|
+
/** Paired colors for inline code on reading surfaces. */
|
|
19
|
+
inlineCode?: {
|
|
20
|
+
foreground: string;
|
|
21
|
+
background: string;
|
|
22
|
+
};
|
|
18
23
|
card: string;
|
|
19
24
|
muted: string;
|
|
20
25
|
accent?: string;
|