@runtypelabs/persona 3.6.0 → 3.8.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/index.cjs +40 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +73 -4
- package/dist/index.d.ts +73 -4
- package/dist/index.global.js +69 -69
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +40 -40
- package/dist/index.js.map +1 -1
- package/dist/theme-editor.cjs +704 -243
- package/dist/theme-editor.d.cts +75 -5
- package/dist/theme-editor.d.ts +75 -5
- package/dist/theme-editor.js +703 -243
- package/dist/theme-reference.cjs +1 -1
- package/dist/theme-reference.d.cts +53 -0
- package/dist/theme-reference.d.ts +53 -0
- package/dist/theme-reference.js +1 -1
- package/dist/widget.css +44 -0
- package/package.json +1 -1
- package/src/components/artifact-card.ts +1 -1
- package/src/components/demo-carousel.ts +1 -1
- package/src/components/event-stream-view.test.ts +142 -0
- package/src/components/event-stream-view.ts +67 -28
- package/src/components/header-builder.ts +3 -0
- package/src/components/launcher.ts +7 -2
- package/src/components/panel.ts +3 -1
- package/src/defaults.ts +15 -0
- package/src/runtime/host-layout.test.ts +1 -1
- package/src/runtime/host-layout.ts +2 -1
- package/src/scroll-to-bottom-defaults.test.ts +13 -0
- package/src/styles/widget.css +44 -0
- package/src/theme-editor/index.ts +1 -0
- package/src/theme-editor/role-mappings.ts +12 -0
- package/src/theme-editor/sections.test.ts +43 -0
- package/src/theme-editor/sections.ts +42 -0
- package/src/theme-reference.ts +8 -0
- package/src/types/theme.ts +45 -0
- package/src/types.ts +31 -4
- package/src/ui.overlay-z-index.test.ts +34 -2
- package/src/ui.scroll.test.ts +554 -0
- package/src/ui.ts +264 -90
- package/src/utils/auto-follow.test.ts +110 -0
- package/src/utils/auto-follow.ts +112 -0
- package/src/utils/constants.ts +13 -0
- package/src/utils/dropdown.ts +2 -1
- package/src/utils/overlay-host-stacking.test.ts +61 -0
- package/src/utils/overlay-host-stacking.ts +38 -0
- package/src/utils/scroll-lock.test.ts +64 -0
- package/src/utils/scroll-lock.ts +62 -0
- package/src/utils/theme.test.ts +34 -0
- package/src/utils/tokens.ts +112 -0
package/dist/theme-editor.d.cts
CHANGED
|
@@ -214,6 +214,17 @@ interface MessageTokens {
|
|
|
214
214
|
/** Assistant bubble box-shadow (token ref or raw CSS, e.g. `none`). */
|
|
215
215
|
shadow?: string;
|
|
216
216
|
};
|
|
217
|
+
/** Border color between messages in the thread. */
|
|
218
|
+
border?: TokenReference<'color'>;
|
|
219
|
+
}
|
|
220
|
+
/** Collapsible widget chrome (tool bubbles, reasoning bubbles, approval bubbles). */
|
|
221
|
+
interface CollapsibleWidgetTokens {
|
|
222
|
+
/** Background for content areas. */
|
|
223
|
+
container?: TokenReference<'color'>;
|
|
224
|
+
/** Background for code blocks inside collapsible sections. */
|
|
225
|
+
surface?: TokenReference<'color'>;
|
|
226
|
+
/** Border color for collapsible sections. */
|
|
227
|
+
border?: TokenReference<'color'>;
|
|
217
228
|
}
|
|
218
229
|
interface MarkdownTokens {
|
|
219
230
|
inlineCode: {
|
|
@@ -242,6 +253,27 @@ interface MarkdownTokens {
|
|
|
242
253
|
fontWeight?: string;
|
|
243
254
|
};
|
|
244
255
|
};
|
|
256
|
+
/** Fenced code block styling. */
|
|
257
|
+
codeBlock?: {
|
|
258
|
+
background?: TokenReference<'color'>;
|
|
259
|
+
borderColor?: TokenReference<'color'>;
|
|
260
|
+
textColor?: TokenReference<'color'>;
|
|
261
|
+
};
|
|
262
|
+
/** Table styling. */
|
|
263
|
+
table?: {
|
|
264
|
+
headerBackground?: TokenReference<'color'>;
|
|
265
|
+
borderColor?: TokenReference<'color'>;
|
|
266
|
+
};
|
|
267
|
+
/** Horizontal rule styling. */
|
|
268
|
+
hr?: {
|
|
269
|
+
color?: TokenReference<'color'>;
|
|
270
|
+
};
|
|
271
|
+
/** Blockquote styling. */
|
|
272
|
+
blockquote?: {
|
|
273
|
+
borderColor?: TokenReference<'color'>;
|
|
274
|
+
background?: TokenReference<'color'>;
|
|
275
|
+
textColor?: TokenReference<'color'>;
|
|
276
|
+
};
|
|
245
277
|
}
|
|
246
278
|
interface VoiceTokens {
|
|
247
279
|
recording: {
|
|
@@ -361,6 +393,13 @@ interface LabelButtonTokens {
|
|
|
361
393
|
fontSize?: string;
|
|
362
394
|
gap?: string;
|
|
363
395
|
}
|
|
396
|
+
/** Scroll-to-bottom pill chrome shared by transcript + event stream. */
|
|
397
|
+
interface ScrollToBottomTokens extends ComponentTokenSet {
|
|
398
|
+
size?: string;
|
|
399
|
+
gap?: string;
|
|
400
|
+
fontSize?: string;
|
|
401
|
+
iconSize?: string;
|
|
402
|
+
}
|
|
364
403
|
/** Toggle group chrome (used by createToggleGroup). */
|
|
365
404
|
interface ToggleGroupTokens {
|
|
366
405
|
/** Gap between toggle buttons. Default: 0 (connected). */
|
|
@@ -387,6 +426,8 @@ interface ComponentTokens {
|
|
|
387
426
|
iconButton?: IconButtonTokens;
|
|
388
427
|
/** Label button styling tokens. */
|
|
389
428
|
labelButton?: LabelButtonTokens;
|
|
429
|
+
/** Scroll-to-bottom indicator styling tokens. */
|
|
430
|
+
scrollToBottom?: ScrollToBottomTokens;
|
|
390
431
|
/** Toggle group styling tokens. */
|
|
391
432
|
toggleGroup?: ToggleGroupTokens;
|
|
392
433
|
/** Artifact toolbar, tab strip, and pane chrome. */
|
|
@@ -395,6 +436,8 @@ interface ComponentTokens {
|
|
|
395
436
|
tab?: ArtifactTabTokens;
|
|
396
437
|
pane?: ArtifactPaneTokens;
|
|
397
438
|
};
|
|
439
|
+
/** Collapsible widget chrome (tool/reasoning/approval bubbles). */
|
|
440
|
+
collapsibleWidget?: CollapsibleWidgetTokens;
|
|
398
441
|
}
|
|
399
442
|
interface PaletteExtras {
|
|
400
443
|
transitions?: Record<string, string>;
|
|
@@ -1063,10 +1106,31 @@ type AgentWidgetArtifactsFeature = {
|
|
|
1063
1106
|
defaultRenderer: () => HTMLElement;
|
|
1064
1107
|
}) => HTMLElement | null;
|
|
1065
1108
|
};
|
|
1109
|
+
type AgentWidgetScrollToBottomFeature = {
|
|
1110
|
+
/**
|
|
1111
|
+
* When true, Persona shows a scroll-to-bottom affordance when the user breaks
|
|
1112
|
+
* away from the latest transcript or event stream content.
|
|
1113
|
+
* @default true
|
|
1114
|
+
*/
|
|
1115
|
+
enabled?: boolean;
|
|
1116
|
+
/**
|
|
1117
|
+
* Lucide icon name used for the affordance.
|
|
1118
|
+
* @default "arrow-down"
|
|
1119
|
+
*/
|
|
1120
|
+
iconName?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* Optional label text shown next to the icon. Set to an empty string for an
|
|
1123
|
+
* icon-only affordance.
|
|
1124
|
+
* @default ""
|
|
1125
|
+
*/
|
|
1126
|
+
label?: string;
|
|
1127
|
+
};
|
|
1066
1128
|
type AgentWidgetFeatureFlags = {
|
|
1067
1129
|
showReasoning?: boolean;
|
|
1068
1130
|
showToolCalls?: boolean;
|
|
1069
1131
|
showEventStreamToggle?: boolean;
|
|
1132
|
+
/** Shared transcript + event stream scroll-to-bottom affordance. */
|
|
1133
|
+
scrollToBottom?: AgentWidgetScrollToBottomFeature;
|
|
1070
1134
|
/** Configuration for the Event Stream inspector view */
|
|
1071
1135
|
eventStream?: EventStreamConfig;
|
|
1072
1136
|
/** Optional artifact sidebar (split pane / mobile drawer) */
|
|
@@ -1289,11 +1353,16 @@ type AgentWidgetLauncherConfig = {
|
|
|
1289
1353
|
*/
|
|
1290
1354
|
mobileBreakpoint?: number;
|
|
1291
1355
|
/**
|
|
1292
|
-
* CSS z-index applied to the widget wrapper
|
|
1293
|
-
* (floating panel, mobile fullscreen,
|
|
1294
|
-
*
|
|
1356
|
+
* CSS z-index applied to the widget wrapper and launcher button in all
|
|
1357
|
+
* positioned modes (floating panel, mobile fullscreen, sidebar, docked
|
|
1358
|
+
* mobile fullscreen). Increase this value if other elements on the host
|
|
1359
|
+
* page appear on top of the widget.
|
|
1360
|
+
*
|
|
1361
|
+
* In viewport-covering modes (sidebar, mobile fullscreen), the widget
|
|
1362
|
+
* also elevates the host element's stacking context and locks
|
|
1363
|
+
* document scroll to prevent background scrolling.
|
|
1295
1364
|
*
|
|
1296
|
-
* @default
|
|
1365
|
+
* @default 100000
|
|
1297
1366
|
*/
|
|
1298
1367
|
zIndex?: number;
|
|
1299
1368
|
callToActionIconText?: string;
|
|
@@ -3788,6 +3857,7 @@ declare const ROLE_HEADER: RoleAssignmentOptions;
|
|
|
3788
3857
|
declare const ROLE_USER_MESSAGES: RoleAssignmentOptions;
|
|
3789
3858
|
declare const ROLE_ASSISTANT_MESSAGES: RoleAssignmentOptions;
|
|
3790
3859
|
declare const ROLE_PRIMARY_ACTIONS: RoleAssignmentOptions;
|
|
3860
|
+
declare const ROLE_SCROLL_TO_BOTTOM: RoleAssignmentOptions;
|
|
3791
3861
|
declare const ROLE_INPUT: RoleAssignmentOptions;
|
|
3792
3862
|
declare const ROLE_LINKS_FOCUS: RoleAssignmentOptions;
|
|
3793
3863
|
declare const ROLE_BORDERS: RoleAssignmentOptions;
|
|
@@ -3854,4 +3924,4 @@ declare function paletteColorPath(family: string, shade: string): string;
|
|
|
3854
3924
|
declare function resolveThemeColorPath(get: (path: string) => unknown, path: string, depth?: number): string;
|
|
3855
3925
|
declare function tokenRefDisplayName(path: string): string;
|
|
3856
3926
|
|
|
3857
|
-
export { ADVANCED_TOKENS_SECTION, ALL_ROLES, ALL_TABS, BRAND_PALETTE_SECTION, BUILT_IN_PRESETS, COLORS_SECTIONS, COLOR_FAMILIES, COMPONENTS_SECTIONS, COMPONENT_COLOR_SECTIONS, COMPONENT_SHAPE_SECTIONS, CONFIGURE_SECTIONS, CONFIGURE_SUB_GROUPS, type ColorScaleOptions, type CompareMode, type ConfigChangeListener, type ConfiguratorSnapshot, DEVICE_DIMENSIONS, type DetectedRoleAssignment, type FieldDef, type FieldType, HOME_SUGGESTION_CHIPS, INTERFACE_ROLES_SECTION, MOCK_BROWSER_CONTENT, MOCK_WORKSPACE_CONTENT, type OnChangeCallback, PALETTE_SECTION, PREVIEW_STORAGE_ADAPTER, type PreviewConfigOptions, type PreviewDevice, type PreviewLifecycleContext, type PreviewScene, type PreviewShellMode, type PreviewShellPalette, ROLE_ASSISTANT_MESSAGES, ROLE_BORDERS, ROLE_FAMILIES, ROLE_FAMILY_LABELS, ROLE_HEADER, ROLE_INPUT, ROLE_INTENSITIES, ROLE_LINKS_FOCUS, ROLE_PRIMARY_ACTIONS, ROLE_SURFACES, ROLE_USER_MESSAGES, type RoleAssignmentOptions, type RoleFamily, type RoleIntensity, type RoleTarget, type RoleTargetKind, SEMANTIC_COLORS_SECTION, SHADE_KEYS, SHELL_STYLE_ID, STATUS_COLORS_SECTION, STATUS_PALETTE_SECTION, STYLE_SECTIONS, STYLE_SECTIONS_V2, type SectionDef, type SectionPreset, type SelectOption, type SliderOptions, type SubGroupDef, THEME_EDITOR_PRESETS, THEME_SECTION, type TabDef, type ThemeEditorPreset, ThemeEditorState, type ThemePreviewHandle, type ThemePreviewOptions, type TokenRefOptions, ZOOM_MAX, ZOOM_MIN, applySceneConfig, applyShellTheme, buildPreviewConfig, buildShellCss, buildSrcdoc, convertFromPx, convertToPx, createPreviewMessages, createThemePreview, detectRoleAssignment, escapeHtml, findSection, formatCssValue, generateColorScale, getShellPalette, getThemeEditorPreset, hexToHsl, hslToHex, isValidHex, normalizeColorValue, paletteColorPath, parseCssValue, resolveRoleAssignment, resolveThemeColorPath, scopeSection, tokenRefDisplayName, wcagContrastRatio };
|
|
3927
|
+
export { ADVANCED_TOKENS_SECTION, ALL_ROLES, ALL_TABS, BRAND_PALETTE_SECTION, BUILT_IN_PRESETS, COLORS_SECTIONS, COLOR_FAMILIES, COMPONENTS_SECTIONS, COMPONENT_COLOR_SECTIONS, COMPONENT_SHAPE_SECTIONS, CONFIGURE_SECTIONS, CONFIGURE_SUB_GROUPS, type ColorScaleOptions, type CompareMode, type ConfigChangeListener, type ConfiguratorSnapshot, DEVICE_DIMENSIONS, type DetectedRoleAssignment, type FieldDef, type FieldType, HOME_SUGGESTION_CHIPS, INTERFACE_ROLES_SECTION, MOCK_BROWSER_CONTENT, MOCK_WORKSPACE_CONTENT, type OnChangeCallback, PALETTE_SECTION, PREVIEW_STORAGE_ADAPTER, type PreviewConfigOptions, type PreviewDevice, type PreviewLifecycleContext, type PreviewScene, type PreviewShellMode, type PreviewShellPalette, ROLE_ASSISTANT_MESSAGES, ROLE_BORDERS, ROLE_FAMILIES, ROLE_FAMILY_LABELS, ROLE_HEADER, ROLE_INPUT, ROLE_INTENSITIES, ROLE_LINKS_FOCUS, ROLE_PRIMARY_ACTIONS, ROLE_SCROLL_TO_BOTTOM, ROLE_SURFACES, ROLE_USER_MESSAGES, type RoleAssignmentOptions, type RoleFamily, type RoleIntensity, type RoleTarget, type RoleTargetKind, SEMANTIC_COLORS_SECTION, SHADE_KEYS, SHELL_STYLE_ID, STATUS_COLORS_SECTION, STATUS_PALETTE_SECTION, STYLE_SECTIONS, STYLE_SECTIONS_V2, type SectionDef, type SectionPreset, type SelectOption, type SliderOptions, type SubGroupDef, THEME_EDITOR_PRESETS, THEME_SECTION, type TabDef, type ThemeEditorPreset, ThemeEditorState, type ThemePreviewHandle, type ThemePreviewOptions, type TokenRefOptions, ZOOM_MAX, ZOOM_MIN, applySceneConfig, applyShellTheme, buildPreviewConfig, buildShellCss, buildSrcdoc, convertFromPx, convertToPx, createPreviewMessages, createThemePreview, detectRoleAssignment, escapeHtml, findSection, formatCssValue, generateColorScale, getShellPalette, getThemeEditorPreset, hexToHsl, hslToHex, isValidHex, normalizeColorValue, paletteColorPath, parseCssValue, resolveRoleAssignment, resolveThemeColorPath, scopeSection, tokenRefDisplayName, wcagContrastRatio };
|
package/dist/theme-editor.d.ts
CHANGED
|
@@ -214,6 +214,17 @@ interface MessageTokens {
|
|
|
214
214
|
/** Assistant bubble box-shadow (token ref or raw CSS, e.g. `none`). */
|
|
215
215
|
shadow?: string;
|
|
216
216
|
};
|
|
217
|
+
/** Border color between messages in the thread. */
|
|
218
|
+
border?: TokenReference<'color'>;
|
|
219
|
+
}
|
|
220
|
+
/** Collapsible widget chrome (tool bubbles, reasoning bubbles, approval bubbles). */
|
|
221
|
+
interface CollapsibleWidgetTokens {
|
|
222
|
+
/** Background for content areas. */
|
|
223
|
+
container?: TokenReference<'color'>;
|
|
224
|
+
/** Background for code blocks inside collapsible sections. */
|
|
225
|
+
surface?: TokenReference<'color'>;
|
|
226
|
+
/** Border color for collapsible sections. */
|
|
227
|
+
border?: TokenReference<'color'>;
|
|
217
228
|
}
|
|
218
229
|
interface MarkdownTokens {
|
|
219
230
|
inlineCode: {
|
|
@@ -242,6 +253,27 @@ interface MarkdownTokens {
|
|
|
242
253
|
fontWeight?: string;
|
|
243
254
|
};
|
|
244
255
|
};
|
|
256
|
+
/** Fenced code block styling. */
|
|
257
|
+
codeBlock?: {
|
|
258
|
+
background?: TokenReference<'color'>;
|
|
259
|
+
borderColor?: TokenReference<'color'>;
|
|
260
|
+
textColor?: TokenReference<'color'>;
|
|
261
|
+
};
|
|
262
|
+
/** Table styling. */
|
|
263
|
+
table?: {
|
|
264
|
+
headerBackground?: TokenReference<'color'>;
|
|
265
|
+
borderColor?: TokenReference<'color'>;
|
|
266
|
+
};
|
|
267
|
+
/** Horizontal rule styling. */
|
|
268
|
+
hr?: {
|
|
269
|
+
color?: TokenReference<'color'>;
|
|
270
|
+
};
|
|
271
|
+
/** Blockquote styling. */
|
|
272
|
+
blockquote?: {
|
|
273
|
+
borderColor?: TokenReference<'color'>;
|
|
274
|
+
background?: TokenReference<'color'>;
|
|
275
|
+
textColor?: TokenReference<'color'>;
|
|
276
|
+
};
|
|
245
277
|
}
|
|
246
278
|
interface VoiceTokens {
|
|
247
279
|
recording: {
|
|
@@ -361,6 +393,13 @@ interface LabelButtonTokens {
|
|
|
361
393
|
fontSize?: string;
|
|
362
394
|
gap?: string;
|
|
363
395
|
}
|
|
396
|
+
/** Scroll-to-bottom pill chrome shared by transcript + event stream. */
|
|
397
|
+
interface ScrollToBottomTokens extends ComponentTokenSet {
|
|
398
|
+
size?: string;
|
|
399
|
+
gap?: string;
|
|
400
|
+
fontSize?: string;
|
|
401
|
+
iconSize?: string;
|
|
402
|
+
}
|
|
364
403
|
/** Toggle group chrome (used by createToggleGroup). */
|
|
365
404
|
interface ToggleGroupTokens {
|
|
366
405
|
/** Gap between toggle buttons. Default: 0 (connected). */
|
|
@@ -387,6 +426,8 @@ interface ComponentTokens {
|
|
|
387
426
|
iconButton?: IconButtonTokens;
|
|
388
427
|
/** Label button styling tokens. */
|
|
389
428
|
labelButton?: LabelButtonTokens;
|
|
429
|
+
/** Scroll-to-bottom indicator styling tokens. */
|
|
430
|
+
scrollToBottom?: ScrollToBottomTokens;
|
|
390
431
|
/** Toggle group styling tokens. */
|
|
391
432
|
toggleGroup?: ToggleGroupTokens;
|
|
392
433
|
/** Artifact toolbar, tab strip, and pane chrome. */
|
|
@@ -395,6 +436,8 @@ interface ComponentTokens {
|
|
|
395
436
|
tab?: ArtifactTabTokens;
|
|
396
437
|
pane?: ArtifactPaneTokens;
|
|
397
438
|
};
|
|
439
|
+
/** Collapsible widget chrome (tool/reasoning/approval bubbles). */
|
|
440
|
+
collapsibleWidget?: CollapsibleWidgetTokens;
|
|
398
441
|
}
|
|
399
442
|
interface PaletteExtras {
|
|
400
443
|
transitions?: Record<string, string>;
|
|
@@ -1063,10 +1106,31 @@ type AgentWidgetArtifactsFeature = {
|
|
|
1063
1106
|
defaultRenderer: () => HTMLElement;
|
|
1064
1107
|
}) => HTMLElement | null;
|
|
1065
1108
|
};
|
|
1109
|
+
type AgentWidgetScrollToBottomFeature = {
|
|
1110
|
+
/**
|
|
1111
|
+
* When true, Persona shows a scroll-to-bottom affordance when the user breaks
|
|
1112
|
+
* away from the latest transcript or event stream content.
|
|
1113
|
+
* @default true
|
|
1114
|
+
*/
|
|
1115
|
+
enabled?: boolean;
|
|
1116
|
+
/**
|
|
1117
|
+
* Lucide icon name used for the affordance.
|
|
1118
|
+
* @default "arrow-down"
|
|
1119
|
+
*/
|
|
1120
|
+
iconName?: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* Optional label text shown next to the icon. Set to an empty string for an
|
|
1123
|
+
* icon-only affordance.
|
|
1124
|
+
* @default ""
|
|
1125
|
+
*/
|
|
1126
|
+
label?: string;
|
|
1127
|
+
};
|
|
1066
1128
|
type AgentWidgetFeatureFlags = {
|
|
1067
1129
|
showReasoning?: boolean;
|
|
1068
1130
|
showToolCalls?: boolean;
|
|
1069
1131
|
showEventStreamToggle?: boolean;
|
|
1132
|
+
/** Shared transcript + event stream scroll-to-bottom affordance. */
|
|
1133
|
+
scrollToBottom?: AgentWidgetScrollToBottomFeature;
|
|
1070
1134
|
/** Configuration for the Event Stream inspector view */
|
|
1071
1135
|
eventStream?: EventStreamConfig;
|
|
1072
1136
|
/** Optional artifact sidebar (split pane / mobile drawer) */
|
|
@@ -1289,11 +1353,16 @@ type AgentWidgetLauncherConfig = {
|
|
|
1289
1353
|
*/
|
|
1290
1354
|
mobileBreakpoint?: number;
|
|
1291
1355
|
/**
|
|
1292
|
-
* CSS z-index applied to the widget wrapper
|
|
1293
|
-
* (floating panel, mobile fullscreen,
|
|
1294
|
-
*
|
|
1356
|
+
* CSS z-index applied to the widget wrapper and launcher button in all
|
|
1357
|
+
* positioned modes (floating panel, mobile fullscreen, sidebar, docked
|
|
1358
|
+
* mobile fullscreen). Increase this value if other elements on the host
|
|
1359
|
+
* page appear on top of the widget.
|
|
1360
|
+
*
|
|
1361
|
+
* In viewport-covering modes (sidebar, mobile fullscreen), the widget
|
|
1362
|
+
* also elevates the host element's stacking context and locks
|
|
1363
|
+
* document scroll to prevent background scrolling.
|
|
1295
1364
|
*
|
|
1296
|
-
* @default
|
|
1365
|
+
* @default 100000
|
|
1297
1366
|
*/
|
|
1298
1367
|
zIndex?: number;
|
|
1299
1368
|
callToActionIconText?: string;
|
|
@@ -3788,6 +3857,7 @@ declare const ROLE_HEADER: RoleAssignmentOptions;
|
|
|
3788
3857
|
declare const ROLE_USER_MESSAGES: RoleAssignmentOptions;
|
|
3789
3858
|
declare const ROLE_ASSISTANT_MESSAGES: RoleAssignmentOptions;
|
|
3790
3859
|
declare const ROLE_PRIMARY_ACTIONS: RoleAssignmentOptions;
|
|
3860
|
+
declare const ROLE_SCROLL_TO_BOTTOM: RoleAssignmentOptions;
|
|
3791
3861
|
declare const ROLE_INPUT: RoleAssignmentOptions;
|
|
3792
3862
|
declare const ROLE_LINKS_FOCUS: RoleAssignmentOptions;
|
|
3793
3863
|
declare const ROLE_BORDERS: RoleAssignmentOptions;
|
|
@@ -3854,4 +3924,4 @@ declare function paletteColorPath(family: string, shade: string): string;
|
|
|
3854
3924
|
declare function resolveThemeColorPath(get: (path: string) => unknown, path: string, depth?: number): string;
|
|
3855
3925
|
declare function tokenRefDisplayName(path: string): string;
|
|
3856
3926
|
|
|
3857
|
-
export { ADVANCED_TOKENS_SECTION, ALL_ROLES, ALL_TABS, BRAND_PALETTE_SECTION, BUILT_IN_PRESETS, COLORS_SECTIONS, COLOR_FAMILIES, COMPONENTS_SECTIONS, COMPONENT_COLOR_SECTIONS, COMPONENT_SHAPE_SECTIONS, CONFIGURE_SECTIONS, CONFIGURE_SUB_GROUPS, type ColorScaleOptions, type CompareMode, type ConfigChangeListener, type ConfiguratorSnapshot, DEVICE_DIMENSIONS, type DetectedRoleAssignment, type FieldDef, type FieldType, HOME_SUGGESTION_CHIPS, INTERFACE_ROLES_SECTION, MOCK_BROWSER_CONTENT, MOCK_WORKSPACE_CONTENT, type OnChangeCallback, PALETTE_SECTION, PREVIEW_STORAGE_ADAPTER, type PreviewConfigOptions, type PreviewDevice, type PreviewLifecycleContext, type PreviewScene, type PreviewShellMode, type PreviewShellPalette, ROLE_ASSISTANT_MESSAGES, ROLE_BORDERS, ROLE_FAMILIES, ROLE_FAMILY_LABELS, ROLE_HEADER, ROLE_INPUT, ROLE_INTENSITIES, ROLE_LINKS_FOCUS, ROLE_PRIMARY_ACTIONS, ROLE_SURFACES, ROLE_USER_MESSAGES, type RoleAssignmentOptions, type RoleFamily, type RoleIntensity, type RoleTarget, type RoleTargetKind, SEMANTIC_COLORS_SECTION, SHADE_KEYS, SHELL_STYLE_ID, STATUS_COLORS_SECTION, STATUS_PALETTE_SECTION, STYLE_SECTIONS, STYLE_SECTIONS_V2, type SectionDef, type SectionPreset, type SelectOption, type SliderOptions, type SubGroupDef, THEME_EDITOR_PRESETS, THEME_SECTION, type TabDef, type ThemeEditorPreset, ThemeEditorState, type ThemePreviewHandle, type ThemePreviewOptions, type TokenRefOptions, ZOOM_MAX, ZOOM_MIN, applySceneConfig, applyShellTheme, buildPreviewConfig, buildShellCss, buildSrcdoc, convertFromPx, convertToPx, createPreviewMessages, createThemePreview, detectRoleAssignment, escapeHtml, findSection, formatCssValue, generateColorScale, getShellPalette, getThemeEditorPreset, hexToHsl, hslToHex, isValidHex, normalizeColorValue, paletteColorPath, parseCssValue, resolveRoleAssignment, resolveThemeColorPath, scopeSection, tokenRefDisplayName, wcagContrastRatio };
|
|
3927
|
+
export { ADVANCED_TOKENS_SECTION, ALL_ROLES, ALL_TABS, BRAND_PALETTE_SECTION, BUILT_IN_PRESETS, COLORS_SECTIONS, COLOR_FAMILIES, COMPONENTS_SECTIONS, COMPONENT_COLOR_SECTIONS, COMPONENT_SHAPE_SECTIONS, CONFIGURE_SECTIONS, CONFIGURE_SUB_GROUPS, type ColorScaleOptions, type CompareMode, type ConfigChangeListener, type ConfiguratorSnapshot, DEVICE_DIMENSIONS, type DetectedRoleAssignment, type FieldDef, type FieldType, HOME_SUGGESTION_CHIPS, INTERFACE_ROLES_SECTION, MOCK_BROWSER_CONTENT, MOCK_WORKSPACE_CONTENT, type OnChangeCallback, PALETTE_SECTION, PREVIEW_STORAGE_ADAPTER, type PreviewConfigOptions, type PreviewDevice, type PreviewLifecycleContext, type PreviewScene, type PreviewShellMode, type PreviewShellPalette, ROLE_ASSISTANT_MESSAGES, ROLE_BORDERS, ROLE_FAMILIES, ROLE_FAMILY_LABELS, ROLE_HEADER, ROLE_INPUT, ROLE_INTENSITIES, ROLE_LINKS_FOCUS, ROLE_PRIMARY_ACTIONS, ROLE_SCROLL_TO_BOTTOM, ROLE_SURFACES, ROLE_USER_MESSAGES, type RoleAssignmentOptions, type RoleFamily, type RoleIntensity, type RoleTarget, type RoleTargetKind, SEMANTIC_COLORS_SECTION, SHADE_KEYS, SHELL_STYLE_ID, STATUS_COLORS_SECTION, STATUS_PALETTE_SECTION, STYLE_SECTIONS, STYLE_SECTIONS_V2, type SectionDef, type SectionPreset, type SelectOption, type SliderOptions, type SubGroupDef, THEME_EDITOR_PRESETS, THEME_SECTION, type TabDef, type ThemeEditorPreset, ThemeEditorState, type ThemePreviewHandle, type ThemePreviewOptions, type TokenRefOptions, ZOOM_MAX, ZOOM_MIN, applySceneConfig, applyShellTheme, buildPreviewConfig, buildShellCss, buildSrcdoc, convertFromPx, convertToPx, createPreviewMessages, createThemePreview, detectRoleAssignment, escapeHtml, findSection, formatCssValue, generateColorScale, getShellPalette, getThemeEditorPreset, hexToHsl, hslToHex, isValidHex, normalizeColorValue, paletteColorPath, parseCssValue, resolveRoleAssignment, resolveThemeColorPath, scopeSection, tokenRefDisplayName, wcagContrastRatio };
|