@runtypelabs/persona 4.32.2 → 4.34.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/activity-ui.d.cts +3 -15
- package/dist/activity-ui.d.ts +3 -15
- package/dist/animations/glyph-cycle.d.cts +1 -3
- package/dist/animations/glyph-cycle.d.ts +1 -3
- package/dist/animations/wipe.d.cts +1 -3
- package/dist/animations/wipe.d.ts +1 -3
- package/dist/approval-ui.cjs +2 -2
- package/dist/approval-ui.d.cts +3 -15
- package/dist/approval-ui.d.ts +3 -15
- package/dist/approval-ui.js +1 -1
- package/dist/artifacts-ui.cjs +1 -1
- package/dist/artifacts-ui.d.cts +3 -21
- package/dist/artifacts-ui.d.ts +3 -21
- package/dist/background-runtime.d.cts +2 -3
- package/dist/background-runtime.d.ts +2 -3
- package/dist/{chunk-BbXc58OA.js → chunk-6CUrH_jm.js} +1 -1
- package/dist/{chunk-B_H0l3u2.js → chunk-BRM3bHcJ.js} +1 -1
- package/dist/{chunk-DNdeIFJ6.js → chunk-Brdx4NCz.js} +1 -1
- package/dist/chunk-C-rux8Q9.js +1 -0
- package/dist/{chunk-Ds_twaZn.js → chunk-C4v-HNhS.js} +1 -1
- package/dist/{chunk-Bkma5hIU.js → chunk-CE4seJxF.js} +1 -1
- package/dist/chunk-CEPM3FOp.js +1 -0
- package/dist/{chunk-BpjtKnGI.js → chunk-CV8EPIhT.js} +1 -1
- package/dist/{chunk-DVZ8ri1z.js → chunk-CWzHNuVK.js} +1 -1
- package/dist/{chunk-B3l7TOOv.js → chunk-CYpt7PsO.js} +1 -1
- package/dist/{chunk-2FnmZ9AA.js → chunk-Csr59G5V.js} +1 -1
- package/dist/{chunk-B9Zu-wrk.js → chunk-CxNPSY-b.js} +1 -1
- package/dist/{chunk-UWMfWW2a.js → chunk-D1G8tgYc.js} +1 -1
- package/dist/{chunk-DTGvDx8o.js → chunk-Dj2a9f9w.js} +1 -1
- package/dist/chunk-Dqa_GOcj.js +1 -0
- package/dist/chunk-DsWv3EGF.js +1 -0
- package/dist/{chunk-C7-m0EmI.js → chunk-NUNdcnAZ.js} +1 -1
- package/dist/{chunk-D0tcIZJM.js → chunk-YMkMvAsa.js} +2 -2
- package/dist/{chunk-C-EHtpbB.js → chunk-h5aOI_Pa.js} +1 -1
- package/dist/chunk-i4qGOJAL.js +1 -0
- package/dist/chunk-kizhspe5.js +1 -0
- package/dist/client-dispatch.js +1 -1
- package/dist/client-history.js +1 -1
- package/dist/client-stream.js +1 -1
- package/dist/{code-generators-DqauYyfX.d.cts → code-generators-DPAqTcAz.d.cts} +0 -2
- package/dist/{code-generators-DqauYyfX.d.ts → code-generators-DPAqTcAz.d.ts} +0 -2
- package/dist/codegen.cjs +1 -1
- package/dist/codegen.d.cts +1 -1
- package/dist/codegen.d.ts +1 -1
- package/dist/codegen.js +1 -1
- package/dist/composer-actions-runtime.cjs +1 -1
- package/dist/composer-actions-runtime.d.cts +4 -20
- package/dist/composer-actions-runtime.d.ts +4 -20
- package/dist/composer-actions-runtime.js +1 -1
- package/dist/{composer-input-dwg_o9Z-.d.ts → composer-input-i_FiUp6J.d.cts} +1 -7
- package/dist/{composer-input-dwg_o9Z-.d.cts → composer-input-i_FiUp6J.d.ts} +1 -7
- package/dist/{composer-store-Dw7Zbqxr.d.ts → composer-store-DhGNgG7Z.d.cts} +1 -3
- package/dist/{composer-store-Dw7Zbqxr.d.cts → composer-store-DhGNgG7Z.d.ts} +1 -3
- package/dist/config-diagnostics.d.cts +0 -2
- package/dist/config-diagnostics.d.ts +0 -2
- package/dist/{context-mention-manager-D2p0-JH-.d.ts → context-mention-manager-DL-xwGfL.d.cts} +2 -6
- package/dist/{context-mention-manager-D2p0-JH-.d.cts → context-mention-manager-DL-xwGfL.d.ts} +2 -6
- package/dist/context-mentions-inline.cjs +1 -1
- package/dist/context-mentions-inline.d.cts +2 -4
- package/dist/context-mentions-inline.d.ts +2 -4
- package/dist/context-mentions-inline.js +1 -1
- package/dist/context-mentions.cjs +1 -1
- package/dist/context-mentions.d.cts +3 -9
- package/dist/context-mentions.d.ts +3 -9
- package/dist/{defaults-CjX0kKzb.d.ts → defaults-Bga2Xrsp.d.cts} +2 -5
- package/dist/{defaults-CjX0kKzb.d.cts → defaults-Bga2Xrsp.d.ts} +2 -5
- package/dist/dictation-runtime.cjs +1 -1
- package/dist/dictation-runtime.d.cts +4 -13
- package/dist/dictation-runtime.d.ts +4 -13
- package/dist/dictation-runtime.js +1 -1
- package/dist/{dom-context-DHTabIn7.d.ts → dom-context-Bw-_9Evh.d.cts} +0 -2
- package/dist/{dom-context-DHTabIn7.d.cts → dom-context-Bw-_9Evh.d.ts} +0 -2
- package/dist/event-stream-view.cjs +1 -1
- package/dist/event-stream-view.d.cts +3 -16
- package/dist/event-stream-view.d.ts +3 -16
- package/dist/{fallback-speech-engine-DmF7MczI.d.ts → fallback-speech-engine-kLdyPcmk.d.cts} +1 -3
- package/dist/{fallback-speech-engine-DmF7MczI.d.cts → fallback-speech-engine-kLdyPcmk.d.ts} +1 -3
- package/dist/{feature-preferences-CVFDt9Xf.d.ts → feature-preferences-CmwZGKrf.d.cts} +1 -5
- package/dist/{feature-preferences-CVFDt9Xf.d.cts → feature-preferences-CmwZGKrf.d.ts} +1 -5
- package/dist/forms-ui.d.cts +2 -4
- package/dist/forms-ui.d.ts +2 -4
- package/dist/{history-confirm-dialog-DJEXsTyE.d.cts → history-confirm-dialog-i46-lPN_.d.cts} +2 -14
- package/dist/{history-confirm-dialog-DJEXsTyE.d.ts → history-confirm-dialog-i46-lPN_.d.ts} +2 -14
- package/dist/history-shell.cjs +1 -1
- package/dist/history-shell.d.cts +8 -27
- package/dist/history-shell.d.ts +8 -27
- package/dist/history-shell.js +1 -1
- package/dist/history-view.d.cts +1 -1
- package/dist/history-view.d.ts +1 -1
- package/dist/icons-extra.cjs +1 -1
- package/dist/icons-extra.d.cts +0 -2
- package/dist/icons-extra.d.ts +0 -2
- package/dist/index.cjs +44 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +46 -46
- package/dist/index.js.map +1 -1
- package/dist/install.global.js +1 -1
- package/dist/install.global.js.map +1 -1
- package/dist/launcher.global.js +2 -2
- package/dist/launcher.global.js.map +1 -1
- package/dist/{loading-label-runtime-loader-CPxnoaoi.d.ts → loading-label-runtime-loader-Ccr3ETd3.d.cts} +1 -3
- package/dist/{loading-label-runtime-loader-CPxnoaoi.d.cts → loading-label-runtime-loader-Ccr3ETd3.d.ts} +1 -3
- package/dist/loading-label-runtime.cjs +1 -1
- package/dist/loading-label-runtime.d.cts +1 -1
- package/dist/loading-label-runtime.d.ts +1 -1
- package/dist/loading-label-runtime.js +1 -1
- package/dist/markdown-parsers.js +1 -1
- package/dist/{message-bubble-CkZGlCLC.d.ts → message-bubble-C6AVaH7f.d.cts} +21 -4
- package/dist/{message-bubble-CkZGlCLC.d.cts → message-bubble-C6AVaH7f.d.ts} +21 -4
- package/dist/{plugin-kit-C1mRjLgW.d.cts → plugin-kit-BVggqE3C.d.cts} +0 -2
- package/dist/{plugin-kit-C1mRjLgW.d.ts → plugin-kit-BVggqE3C.d.ts} +0 -2
- package/dist/plugin-kit.d.cts +1 -1
- package/dist/plugin-kit.d.ts +1 -1
- package/dist/preferences-runtime.cjs +1 -1
- package/dist/preferences-runtime.d.cts +1 -1
- package/dist/preferences-runtime.d.ts +1 -1
- package/dist/preferences-runtime.js +1 -1
- package/dist/{preview-DdUvoLb4.d.cts → preview-BMdRffo4.d.cts} +2 -6
- package/dist/{preview-DdUvoLb4.d.ts → preview-BMdRffo4.d.ts} +2 -6
- package/dist/{registry-Dz4iHNST.d.ts → registry-B16l8s1b.d.cts} +1 -8
- package/dist/{registry-Dz4iHNST.d.cts → registry-B16l8s1b.d.ts} +1 -8
- package/dist/{session-Baxp9iRK.d.cts → session-CtZHe7fc.d.cts} +10 -93
- package/dist/{session-Baxp9iRK.d.ts → session-CtZHe7fc.d.ts} +10 -93
- package/dist/session-reconnect.d.cts +2 -4
- package/dist/session-reconnect.d.ts +2 -4
- package/dist/smart-dom-reader.d.cts +2 -8
- package/dist/smart-dom-reader.d.ts +2 -8
- package/dist/testing.d.cts +0 -2
- package/dist/testing.d.ts +0 -2
- package/dist/theme-editor-preview.cjs +42 -42
- package/dist/theme-editor-preview.d.cts +1 -1
- package/dist/theme-editor-preview.d.ts +1 -1
- package/dist/theme-editor-preview.js +25 -25
- package/dist/theme-editor.cjs +25 -5
- package/dist/theme-editor.d.cts +2 -22
- package/dist/theme-editor.d.ts +2 -22
- package/dist/theme-editor.js +1 -1
- package/dist/theme-reference.cjs +1 -1
- package/dist/theme-reference.d.cts +4 -4
- package/dist/theme-reference.d.ts +4 -4
- package/dist/theme-reference.js +1 -1
- package/dist/{tool-loading-animation-un3kA5Ur.d.ts → tool-loading-animation-D2cyFvmM.d.cts} +1 -7
- package/dist/{tool-loading-animation-un3kA5Ur.d.cts → tool-loading-animation-D2cyFvmM.d.ts} +1 -7
- package/dist/{tooltip-BkW-8MnD.d.cts → tooltip-DbXkAuJL.d.cts} +0 -2
- package/dist/{tooltip-BkW-8MnD.d.ts → tooltip-DbXkAuJL.d.ts} +0 -2
- package/dist/{turn-activity-ui-BGNhtMcH.d.cts → turn-activity-ui-Do1Nd-Ow.d.cts} +2 -12
- package/dist/{turn-activity-ui-BGNhtMcH.d.ts → turn-activity-ui-Do1Nd-Ow.d.ts} +2 -12
- package/dist/turn-activity-ui.d.cts +1 -1
- package/dist/turn-activity-ui.d.ts +1 -1
- package/dist/{types-BOZHQIk0.d.cts → types-BC7MRxO5.d.cts} +167 -36
- package/dist/{types-BOZHQIk0.d.ts → types-BC7MRxO5.d.ts} +167 -36
- package/dist/ui-extras.js +3 -3
- package/dist/voice-client-tools.d.cts +1 -3
- package/dist/voice-client-tools.d.ts +1 -3
- package/dist/voice-runtime.cjs +1 -1
- package/dist/voice-runtime.d.cts +2 -12
- package/dist/voice-runtime.d.ts +2 -12
- package/dist/voice-runtime.js +2 -2
- package/dist/voice-worklet-player.d.cts +2 -6
- package/dist/voice-worklet-player.d.ts +2 -6
- package/dist/{webmcp-runtime-entry-DuAG1_yF.d.ts → webmcp-runtime-entry-B8g46vS0.d.cts} +1 -5
- package/dist/{webmcp-runtime-entry-DuAG1_yF.d.cts → webmcp-runtime-entry-B8g46vS0.d.ts} +1 -5
- package/dist/webmcp-runtime.d.cts +1 -1
- package/dist/webmcp-runtime.d.ts +1 -1
- package/dist/widget.css +1 -1
- package/package.json +4 -4
- package/src/client-dispatch.ts +69 -16
- package/src/client.operator-role.test.ts +217 -0
- package/src/components/event-stream-view.test.ts +5 -0
- package/src/components/message-bubble.test.ts +169 -0
- package/src/components/message-bubble.ts +123 -34
- package/src/components/scroll-to-bottom.test.ts +135 -0
- package/src/components/scroll-to-bottom.ts +50 -13
- package/src/components/user-message-collapse.ts +117 -0
- package/src/defaults-parity.test.ts +14 -0
- package/src/defaults.ts +6 -0
- package/src/index-core.ts +7 -0
- package/src/session.resubmit-from.test.ts +27 -0
- package/src/session.test.ts +10 -0
- package/src/session.ts +8 -5
- package/src/styles/widget.css +79 -1
- package/src/theme-reference.ts +5 -3
- package/src/types/theme.ts +50 -0
- package/src/types.ts +120 -11
- package/src/ui.ask-user-question-plugin.test.ts +154 -0
- package/src/ui.operator-role.test.ts +336 -0
- package/src/ui.scroll-additive.test.ts +219 -117
- package/src/ui.scroll.test.ts +176 -13
- package/src/ui.ts +267 -119
- package/src/ui.turn-activity.test.ts +7 -7
- package/src/ui.user-message-collapse.test.ts +540 -0
- package/src/utils/__snapshots__/tokens-parity.test.ts.snap +236 -0
- package/src/utils/auto-follow.test.ts +0 -38
- package/src/utils/auto-follow.ts +0 -35
- package/src/utils/brand.test.ts +14 -0
- package/src/utils/brand.ts +8 -4
- package/src/utils/history-messages.test.ts +30 -0
- package/src/utils/history-messages.ts +26 -8
- package/src/utils/message-fingerprint.ts +4 -0
- package/src/utils/resubmit-turn.test.ts +13 -0
- package/src/utils/resubmit-turn.ts +12 -1
- package/src/utils/theme.test.ts +23 -0
- package/src/utils/tokens.ts +47 -0
- package/src/welcome.test.ts +16 -0
- package/src/welcome.ts +10 -2
- package/dist/chunk-BNE40cEG.js +0 -1
- package/dist/chunk-Bz9jAgba.js +0 -1
- package/dist/chunk-CVMIncEY.js +0 -1
- package/dist/chunk-CdpVP6LZ.js +0 -1
- package/dist/chunk-CjkechxR.js +0 -1
- package/dist/chunk-DgZZqy14.js +0 -1
package/dist/theme-editor.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as createPreviewMessages, C as applySceneConfig, D as buildShellCss, E as buildPreviewConfigWithMessages, F as presetStreamsText, M as escapeHtml, N as getPreviewTranscriptPresetLabel, O as buildSrcdoc, P as getShellPalette, S as appendPreviewTranscriptEntry, T as buildPreviewConfig, _ as PreviewTranscriptEntryPreset, b as ZOOM_MAX, c as BuildTranscriptStreamFramesOptions, d as MOCK_BROWSER_CONTENT, f as MOCK_WORKSPACE_CONTENT, g as PreviewShellPalette, h as PreviewScene, i as PreviewShellMode, j as createPreviewTranscriptEntry, k as buildTranscriptStreamFrames, l as DEVICE_DIMENSIONS, m as PreviewConfigOptions, p as PREVIEW_STORAGE_ADAPTER, t as CompareMode, u as HOME_SUGGESTION_CHIPS, v as SHELL_STYLE_ID, w as applyShellTheme, x as ZOOM_MIN, y as TranscriptStreamFrame } from "./preview-
|
|
3
|
-
//#region src/theme-editor/types.d.ts
|
|
1
|
+
import { Da as WidgetPreferenceCapabilities, Oa as WidgetPreferenceSlice, So as PersonaTheme, _o as DeepPartial, k as AgentWidgetConfig, po as ColorShade } from "./types-BC7MRxO5.cjs";
|
|
2
|
+
import { A as createPreviewMessages, C as applySceneConfig, D as buildShellCss, E as buildPreviewConfigWithMessages, F as presetStreamsText, M as escapeHtml, N as getPreviewTranscriptPresetLabel, O as buildSrcdoc, P as getShellPalette, S as appendPreviewTranscriptEntry, T as buildPreviewConfig, _ as PreviewTranscriptEntryPreset, b as ZOOM_MAX, c as BuildTranscriptStreamFramesOptions, d as MOCK_BROWSER_CONTENT, f as MOCK_WORKSPACE_CONTENT, g as PreviewShellPalette, h as PreviewScene, i as PreviewShellMode, j as createPreviewTranscriptEntry, k as buildTranscriptStreamFrames, l as DEVICE_DIMENSIONS, m as PreviewConfigOptions, p as PREVIEW_STORAGE_ADAPTER, t as CompareMode, u as HOME_SUGGESTION_CHIPS, v as SHELL_STYLE_ID, w as applyShellTheme, x as ZOOM_MIN, y as TranscriptStreamFrame } from "./preview-BMdRffo4.cjs";
|
|
4
3
|
type FieldType = 'color' | 'slider' | 'toggle' | 'select' | 'text' | 'chip-list' | 'color-scale' | 'token-ref' | 'role-assignment';
|
|
5
4
|
interface SliderOptions {
|
|
6
5
|
min: number;
|
|
@@ -153,8 +152,6 @@ interface ConfiguratorSnapshot {
|
|
|
153
152
|
type ConfigChangeListener = (config: AgentWidgetConfig, theme: PersonaTheme) => void;
|
|
154
153
|
/** Callback for when a control value changes */
|
|
155
154
|
type OnChangeCallback = (path: string, value: unknown) => void;
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region src/theme-editor/state.d.ts
|
|
158
155
|
export declare class ThemeEditorState {
|
|
159
156
|
#private;
|
|
160
157
|
private config;
|
|
@@ -207,8 +204,6 @@ export declare class ThemeEditorState {
|
|
|
207
204
|
exportSnapshot(): ConfiguratorSnapshot;
|
|
208
205
|
onChange(listener: ConfigChangeListener): () => void;
|
|
209
206
|
}
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region src/theme-editor/sections.d.ts
|
|
212
207
|
export declare const STYLE_SECTIONS: SectionDef[];
|
|
213
208
|
export declare const PALETTE_SECTION: SectionDef;
|
|
214
209
|
export declare const SEMANTIC_COLORS_SECTION: SectionDef;
|
|
@@ -254,15 +249,11 @@ type ThemeVariant = 'light' | 'dark';
|
|
|
254
249
|
export declare function findSection(sections: SectionDef[], id: string): SectionDef;
|
|
255
250
|
/** Create a light/dark scoped copy of a section */
|
|
256
251
|
export declare function scopeSection(section: SectionDef, scope: ThemeScope, variant: ThemeVariant, collapsed?: boolean | undefined): SectionDef;
|
|
257
|
-
//#endregion
|
|
258
|
-
//#region src/theme-editor/presets.d.ts
|
|
259
252
|
export declare const BUILT_IN_PRESETS: ThemeEditorPreset[];
|
|
260
253
|
/** All built-in presets */
|
|
261
254
|
export declare const THEME_EDITOR_PRESETS: ThemeEditorPreset[];
|
|
262
255
|
/** Look up a preset by ID */
|
|
263
256
|
export declare function getThemeEditorPreset(id: string): ThemeEditorPreset | undefined;
|
|
264
|
-
//#endregion
|
|
265
|
-
//#region src/theme-editor/role-mappings.d.ts
|
|
266
257
|
export declare const ROLE_INTENSITIES: RoleIntensity[];
|
|
267
258
|
export declare const ROLE_FAMILIES: readonly ['primary', 'secondary', 'accent', 'gray'];
|
|
268
259
|
type RoleFamily = (typeof ROLE_FAMILIES)[number];
|
|
@@ -301,8 +292,6 @@ interface DetectedRoleAssignment {
|
|
|
301
292
|
* @returns Detected assignment or null if tokens don't match a known pattern
|
|
302
293
|
*/
|
|
303
294
|
export declare function detectRoleAssignment(getValue: (path: string) => unknown, role: RoleAssignmentOptions): DetectedRoleAssignment | null;
|
|
304
|
-
//#endregion
|
|
305
|
-
//#region src/theme-editor/color-utils.d.ts
|
|
306
295
|
interface ParsedCssValue {
|
|
307
296
|
value: number;
|
|
308
297
|
unit: 'px' | 'rem';
|
|
@@ -346,8 +335,6 @@ export declare function paletteColorPath(family: string, shade: string): string;
|
|
|
346
335
|
*/
|
|
347
336
|
export declare function resolveThemeColorPath(get: (path: string) => unknown, path: string, depth?: number): string;
|
|
348
337
|
export declare function tokenRefDisplayName(path: string): string;
|
|
349
|
-
//#endregion
|
|
350
|
-
//#region src/theme-editor/webmcp/types.d.ts
|
|
351
338
|
interface ToolTextContent {
|
|
352
339
|
type: 'text';
|
|
353
340
|
text: string;
|
|
@@ -414,11 +401,7 @@ interface CreateThemeEditorToolsOptions {
|
|
|
414
401
|
/** Default variant for styling writes. Defaults to `'both'`. */
|
|
415
402
|
editTarget?: EditTarget;
|
|
416
403
|
}
|
|
417
|
-
//#endregion
|
|
418
|
-
//#region src/theme-editor/webmcp/tools.d.ts
|
|
419
404
|
export declare function createThemeEditorTools(state: ThemeEditorLike, options?: CreateThemeEditorToolsOptions): WebMcpTool[];
|
|
420
|
-
//#endregion
|
|
421
|
-
//#region src/theme-editor/webmcp/coerce.d.ts
|
|
422
405
|
/**
|
|
423
406
|
* Input coercion for the WebMCP theme tools.
|
|
424
407
|
*
|
|
@@ -444,8 +427,6 @@ type RoundnessStyle = 'sharp' | 'default' | 'rounded' | 'pill';
|
|
|
444
427
|
export declare function coerceRoundnessStyle(input: unknown): RoundnessStyle;
|
|
445
428
|
/** Coerce a radius value: numbers become `${n}px`; CSS strings are normalized. */
|
|
446
429
|
export declare function coerceRadius(input: unknown): string;
|
|
447
|
-
//#endregion
|
|
448
|
-
//#region src/theme-editor/webmcp/summary.d.ts
|
|
449
430
|
export declare const RADIUS_PRESETS: Record<string, Record<string, string>>;
|
|
450
431
|
interface RoleState {
|
|
451
432
|
family: string;
|
|
@@ -518,6 +499,5 @@ interface ContrastReport {
|
|
|
518
499
|
export declare function runContrastChecks(state: ThemeEditorLike, level?: ContrastLevel, variant?: 'light' | 'dark' | 'both', pairKeys?: string[]): ContrastReport;
|
|
519
500
|
/** Compact contrast warnings for the regions a mutation touched. */
|
|
520
501
|
export declare function quickContrastWarnings(state: ThemeEditorLike, pairKeys: string[], variant?: 'light' | 'dark' | 'both', level?: ContrastLevel): ContrastWarning[];
|
|
521
|
-
//#endregion
|
|
522
502
|
export { type AuthoredConfigExport, type BuildTranscriptStreamFramesOptions, type ColorScaleOptions, type CompareMode, type ConfigChangeListener, type ConfiguratorSnapshot, type ContrastCheck, type ContrastLevel, type ContrastReport, type ContrastWarning, type CreateThemeEditorToolsOptions, DEVICE_DIMENSIONS, type DetectedRoleAssignment, type EditTarget, type FieldDef, type FieldType, HOME_SUGGESTION_CHIPS, MOCK_BROWSER_CONTENT, MOCK_WORKSPACE_CONTENT, type OnChangeCallback, PREVIEW_STORAGE_ADAPTER, type PreviewConfigOptions, type PreviewScene, type PreviewShellMode, type PreviewShellPalette, type PreviewTranscriptEntryPreset, type RoleAssignmentOptions, type RoleFamily, type RoleIntensity, type RoleState, type RoleTarget, type RoleTargetKind, SHELL_STYLE_ID, type SectionDef, type SectionPreset, type SelectOption, type SliderOptions, type SubGroupDef, type TabDef, type ThemeEditorLike, type ThemeEditorPreset, type ThemeSummary, type TokenRefOptions, type ToolAnnotations, type ToolContent, type ToolExecute, type ToolImageContent, type ToolResult, type ToolTextContent, type TranscriptStreamFrame, type WebMcpTool, ZOOM_MAX, ZOOM_MIN, appendPreviewTranscriptEntry, applySceneConfig, applyShellTheme, buildPreviewConfig, buildPreviewConfigWithMessages, buildShellCss, buildSrcdoc, buildTranscriptStreamFrames, createPreviewMessages, createPreviewTranscriptEntry, escapeHtml, getPreviewTranscriptPresetLabel, getShellPalette, presetStreamsText };
|
|
523
503
|
export {}
|
package/dist/theme-editor.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as createPreviewMessages, C as applySceneConfig, D as buildShellCss, E as buildPreviewConfigWithMessages, F as presetStreamsText, M as escapeHtml, N as getPreviewTranscriptPresetLabel, O as buildSrcdoc, P as getShellPalette, S as appendPreviewTranscriptEntry, T as buildPreviewConfig, _ as PreviewTranscriptEntryPreset, b as ZOOM_MAX, c as BuildTranscriptStreamFramesOptions, d as MOCK_BROWSER_CONTENT, f as MOCK_WORKSPACE_CONTENT, g as PreviewShellPalette, h as PreviewScene, i as PreviewShellMode, j as createPreviewTranscriptEntry, k as buildTranscriptStreamFrames, l as DEVICE_DIMENSIONS, m as PreviewConfigOptions, p as PREVIEW_STORAGE_ADAPTER, t as CompareMode, u as HOME_SUGGESTION_CHIPS, v as SHELL_STYLE_ID, w as applyShellTheme, x as ZOOM_MIN, y as TranscriptStreamFrame } from "./preview-
|
|
3
|
-
//#region src/theme-editor/types.d.ts
|
|
1
|
+
import { Da as WidgetPreferenceCapabilities, Oa as WidgetPreferenceSlice, So as PersonaTheme, _o as DeepPartial, k as AgentWidgetConfig, po as ColorShade } from "./types-BC7MRxO5.js";
|
|
2
|
+
import { A as createPreviewMessages, C as applySceneConfig, D as buildShellCss, E as buildPreviewConfigWithMessages, F as presetStreamsText, M as escapeHtml, N as getPreviewTranscriptPresetLabel, O as buildSrcdoc, P as getShellPalette, S as appendPreviewTranscriptEntry, T as buildPreviewConfig, _ as PreviewTranscriptEntryPreset, b as ZOOM_MAX, c as BuildTranscriptStreamFramesOptions, d as MOCK_BROWSER_CONTENT, f as MOCK_WORKSPACE_CONTENT, g as PreviewShellPalette, h as PreviewScene, i as PreviewShellMode, j as createPreviewTranscriptEntry, k as buildTranscriptStreamFrames, l as DEVICE_DIMENSIONS, m as PreviewConfigOptions, p as PREVIEW_STORAGE_ADAPTER, t as CompareMode, u as HOME_SUGGESTION_CHIPS, v as SHELL_STYLE_ID, w as applyShellTheme, x as ZOOM_MIN, y as TranscriptStreamFrame } from "./preview-BMdRffo4.js";
|
|
4
3
|
type FieldType = 'color' | 'slider' | 'toggle' | 'select' | 'text' | 'chip-list' | 'color-scale' | 'token-ref' | 'role-assignment';
|
|
5
4
|
interface SliderOptions {
|
|
6
5
|
min: number;
|
|
@@ -153,8 +152,6 @@ interface ConfiguratorSnapshot {
|
|
|
153
152
|
type ConfigChangeListener = (config: AgentWidgetConfig, theme: PersonaTheme) => void;
|
|
154
153
|
/** Callback for when a control value changes */
|
|
155
154
|
type OnChangeCallback = (path: string, value: unknown) => void;
|
|
156
|
-
//#endregion
|
|
157
|
-
//#region src/theme-editor/state.d.ts
|
|
158
155
|
export declare class ThemeEditorState {
|
|
159
156
|
#private;
|
|
160
157
|
private config;
|
|
@@ -207,8 +204,6 @@ export declare class ThemeEditorState {
|
|
|
207
204
|
exportSnapshot(): ConfiguratorSnapshot;
|
|
208
205
|
onChange(listener: ConfigChangeListener): () => void;
|
|
209
206
|
}
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region src/theme-editor/sections.d.ts
|
|
212
207
|
export declare const STYLE_SECTIONS: SectionDef[];
|
|
213
208
|
export declare const PALETTE_SECTION: SectionDef;
|
|
214
209
|
export declare const SEMANTIC_COLORS_SECTION: SectionDef;
|
|
@@ -254,15 +249,11 @@ type ThemeVariant = 'light' | 'dark';
|
|
|
254
249
|
export declare function findSection(sections: SectionDef[], id: string): SectionDef;
|
|
255
250
|
/** Create a light/dark scoped copy of a section */
|
|
256
251
|
export declare function scopeSection(section: SectionDef, scope: ThemeScope, variant: ThemeVariant, collapsed?: boolean | undefined): SectionDef;
|
|
257
|
-
//#endregion
|
|
258
|
-
//#region src/theme-editor/presets.d.ts
|
|
259
252
|
export declare const BUILT_IN_PRESETS: ThemeEditorPreset[];
|
|
260
253
|
/** All built-in presets */
|
|
261
254
|
export declare const THEME_EDITOR_PRESETS: ThemeEditorPreset[];
|
|
262
255
|
/** Look up a preset by ID */
|
|
263
256
|
export declare function getThemeEditorPreset(id: string): ThemeEditorPreset | undefined;
|
|
264
|
-
//#endregion
|
|
265
|
-
//#region src/theme-editor/role-mappings.d.ts
|
|
266
257
|
export declare const ROLE_INTENSITIES: RoleIntensity[];
|
|
267
258
|
export declare const ROLE_FAMILIES: readonly ['primary', 'secondary', 'accent', 'gray'];
|
|
268
259
|
type RoleFamily = (typeof ROLE_FAMILIES)[number];
|
|
@@ -301,8 +292,6 @@ interface DetectedRoleAssignment {
|
|
|
301
292
|
* @returns Detected assignment or null if tokens don't match a known pattern
|
|
302
293
|
*/
|
|
303
294
|
export declare function detectRoleAssignment(getValue: (path: string) => unknown, role: RoleAssignmentOptions): DetectedRoleAssignment | null;
|
|
304
|
-
//#endregion
|
|
305
|
-
//#region src/theme-editor/color-utils.d.ts
|
|
306
295
|
interface ParsedCssValue {
|
|
307
296
|
value: number;
|
|
308
297
|
unit: 'px' | 'rem';
|
|
@@ -346,8 +335,6 @@ export declare function paletteColorPath(family: string, shade: string): string;
|
|
|
346
335
|
*/
|
|
347
336
|
export declare function resolveThemeColorPath(get: (path: string) => unknown, path: string, depth?: number): string;
|
|
348
337
|
export declare function tokenRefDisplayName(path: string): string;
|
|
349
|
-
//#endregion
|
|
350
|
-
//#region src/theme-editor/webmcp/types.d.ts
|
|
351
338
|
interface ToolTextContent {
|
|
352
339
|
type: 'text';
|
|
353
340
|
text: string;
|
|
@@ -414,11 +401,7 @@ interface CreateThemeEditorToolsOptions {
|
|
|
414
401
|
/** Default variant for styling writes. Defaults to `'both'`. */
|
|
415
402
|
editTarget?: EditTarget;
|
|
416
403
|
}
|
|
417
|
-
//#endregion
|
|
418
|
-
//#region src/theme-editor/webmcp/tools.d.ts
|
|
419
404
|
export declare function createThemeEditorTools(state: ThemeEditorLike, options?: CreateThemeEditorToolsOptions): WebMcpTool[];
|
|
420
|
-
//#endregion
|
|
421
|
-
//#region src/theme-editor/webmcp/coerce.d.ts
|
|
422
405
|
/**
|
|
423
406
|
* Input coercion for the WebMCP theme tools.
|
|
424
407
|
*
|
|
@@ -444,8 +427,6 @@ type RoundnessStyle = 'sharp' | 'default' | 'rounded' | 'pill';
|
|
|
444
427
|
export declare function coerceRoundnessStyle(input: unknown): RoundnessStyle;
|
|
445
428
|
/** Coerce a radius value: numbers become `${n}px`; CSS strings are normalized. */
|
|
446
429
|
export declare function coerceRadius(input: unknown): string;
|
|
447
|
-
//#endregion
|
|
448
|
-
//#region src/theme-editor/webmcp/summary.d.ts
|
|
449
430
|
export declare const RADIUS_PRESETS: Record<string, Record<string, string>>;
|
|
450
431
|
interface RoleState {
|
|
451
432
|
family: string;
|
|
@@ -518,6 +499,5 @@ interface ContrastReport {
|
|
|
518
499
|
export declare function runContrastChecks(state: ThemeEditorLike, level?: ContrastLevel, variant?: 'light' | 'dark' | 'both', pairKeys?: string[]): ContrastReport;
|
|
519
500
|
/** Compact contrast warnings for the regions a mutation touched. */
|
|
520
501
|
export declare function quickContrastWarnings(state: ThemeEditorLike, pairKeys: string[], variant?: 'light' | 'dark' | 'both', level?: ContrastLevel): ContrastWarning[];
|
|
521
|
-
//#endregion
|
|
522
502
|
export { type AuthoredConfigExport, type BuildTranscriptStreamFramesOptions, type ColorScaleOptions, type CompareMode, type ConfigChangeListener, type ConfiguratorSnapshot, type ContrastCheck, type ContrastLevel, type ContrastReport, type ContrastWarning, type CreateThemeEditorToolsOptions, DEVICE_DIMENSIONS, type DetectedRoleAssignment, type EditTarget, type FieldDef, type FieldType, HOME_SUGGESTION_CHIPS, MOCK_BROWSER_CONTENT, MOCK_WORKSPACE_CONTENT, type OnChangeCallback, PREVIEW_STORAGE_ADAPTER, type PreviewConfigOptions, type PreviewScene, type PreviewShellMode, type PreviewShellPalette, type PreviewTranscriptEntryPreset, type RoleAssignmentOptions, type RoleFamily, type RoleIntensity, type RoleState, type RoleTarget, type RoleTargetKind, SHELL_STYLE_ID, type SectionDef, type SectionPreset, type SelectOption, type SliderOptions, type SubGroupDef, type TabDef, type ThemeEditorLike, type ThemeEditorPreset, type ThemeSummary, type TokenRefOptions, type ToolAnnotations, type ToolContent, type ToolExecute, type ToolImageContent, type ToolResult, type ToolTextContent, type TranscriptStreamFrame, type WebMcpTool, ZOOM_MAX, ZOOM_MIN, appendPreviewTranscriptEntry, applySceneConfig, applyShellTheme, buildPreviewConfig, buildPreviewConfigWithMessages, buildShellCss, buildSrcdoc, buildTranscriptStreamFrames, createPreviewMessages, createPreviewTranscriptEntry, escapeHtml, getPreviewTranscriptPresetLabel, getShellPalette, presetStreamsText };
|
|
523
503
|
export {}
|