chore(extensions): regenerate the Cordis inspect catalog for icon replacements

This commit is contained in:
Turtle committed 2026-10-22 01:00:52 +08:00
1 parent 6470b39557
commit f58b6c41bb
1 file changed
+6 -2
@@ -282,7 +282,7 @@ export const SERVICE_API: readonly ServiceApiEntry[] = [
{
signature: 'register(definition: ThemeDefinition): () => void',
description: 'Register a theme. Duplicate id throws (single occupant per id; the built-in pair counts; `system` is a preference, not a registrable id).',
parameters: [{ name: 'definition', description: 'theme id, colorScheme, and alias-token overrides.' }],
parameters: [{ name: 'definition', description: 'theme id, colorScheme, alias-token overrides, and optional icon replacements; the runtime keeps a frozen copy of `icons`. Invalid icon replacements throw a `TypeError` naming the theme and icon.' }],
returns: 'disposer. Disposing the theme backing the active preference resets the preference to the default so the UI never keeps tokens of an unregistered theme.',
},
{
@@ -651,6 +651,10 @@ export const TYPE_API: readonly TypeApiEntry[] = [
name: 'IconGlyph',
declaration: 'export type IconGlyph = keyof typeof ICON_ARTWORK;',
},
{
name: 'IconReplacements',
declaration: 'export type IconReplacements = Readonly<Partial<Record<IconSymbolId, string>>>;',
},
{
name: 'IconSymbolId',
declaration: 'export type IconSymbolId = `dsw-icon-${IconGlyph}-${IconWeight}`;',
@@ -1061,7 +1065,7 @@ export const TYPE_API: readonly TypeApiEntry[] = [
},
{
name: 'ThemeDefinition',
declaration: 'export interface ThemeDefinition {\n id: string;\n colorScheme: \'light\' | \'dark\';\n tokens: ThemeTokens;\n icons?: Readonly<Partial<Record<IconSymbolId, string>>> | undefined;\n}',
declaration: 'export interface ThemeDefinition {\n id: string;\n colorScheme: \'light\' | \'dark\';\n tokens: ThemeTokens;\n icons?: IconReplacements | undefined;\n}',
},
{
name: 'ThemePreference',