Feat - Export SlashCommandEnumValue for extensions through getContext (#5191)

162d45a2416812a66e306d458dc7699bdfc90f19

Leandro Jofré <leandrotomasjofre@gmail.com>

Signed
1 files changed, +2 -0Ignore whitespace
public/scripts/st-context.js+2 -0
@@ -90,6 +90,7 @@ import { ScraperManager } from './scrapers.js';
90import { executeSlashCommands, executeSlashCommandsWithOptions, registerSlashCommand } from './slash-commands.js';90import { executeSlashCommands, executeSlashCommandsWithOptions, registerSlashCommand } from './slash-commands.js';
91import { SlashCommand } from './slash-commands/SlashCommand.js';91import { SlashCommand } from './slash-commands/SlashCommand.js';
92import { ARGUMENT_TYPE, SlashCommandArgument, SlashCommandNamedArgument } from './slash-commands/SlashCommandArgument.js';92import { ARGUMENT_TYPE, SlashCommandArgument, SlashCommandNamedArgument } from './slash-commands/SlashCommandArgument.js';
93import { SlashCommandEnumValue } from './slash-commands/SlashCommandEnumValue.js';
93import { SlashCommandParser } from './slash-commands/SlashCommandParser.js';94import { SlashCommandParser } from './slash-commands/SlashCommandParser.js';
94import { tag_map, tags, importTags } from './tags.js';95import { tag_map, tags, importTags } from './tags.js';
95import { getTextGenServer, textgenerationwebui_settings } from './textgen-settings.js';96import { getTextGenServer, textgenerationwebui_settings } from './textgen-settings.js';
@@ -159,6 +160,7 @@ export function getContext() {
159 SlashCommand,160 SlashCommand,
160 SlashCommandArgument,161 SlashCommandArgument,
161 SlashCommandNamedArgument,162 SlashCommandNamedArgument,
163 SlashCommandEnumValue,
162 ARGUMENT_TYPE,164 ARGUMENT_TYPE,
163 executeSlashCommandsWithOptions,165 executeSlashCommandsWithOptions,
164 /** @deprecated Use SlashCommandParser.addCommandObject() instead */166 /** @deprecated Use SlashCommandParser.addCommandObject() instead */