Update some SillyTavern.getContext() fields
| @@ -160,7 +160,7 @@ import { | ||
| 160 | 160 | import { debounce_timeout } from './scripts/constants.js'; |
| 161 | 161 | |
| 162 | 162 | import { ModuleWorkerWrapper, doDailyExtensionUpdatesCheck, extension_settings, getContext, loadExtensionSettings, renderExtensionTemplate, renderExtensionTemplateAsync, runGenerationInterceptors, saveMetadataDebounced, writeExtensionField } from './scripts/extensions.js'; |
| 163 | 163 | import { COMMENT_NAME_DEFAULT, executeSlashCommands, executeSlashCommandsOnChatInput, executeSlashCommandsWithOptions, getSlashCommandsHelp, initDefaultSlashCommands, isExecutingCommandsFromChatInput, pauseScriptExecution, processChatSlashCommands, registerSlashCommand, stopScriptExecution } from './scripts/slash-commands.js'; |
| 164 | 164 | import { |
| 165 | 165 | tag_map, |
| 166 | 166 | tags, |
| @@ -7863,22 +7863,23 @@ window['SillyTavern'].getContext = function () { | ||
| 7863 | 7863 | saveReply, |
| 7864 | 7864 | substituteParams, |
| 7865 | 7865 | substituteParamsExtended, |
| 7866 | + SlashCommandParser, | |
| 7867 | + executeSlashCommandsWithOptions, | |
| 7868 | + /** @deprecated Use SlashCommandParser.addCommandObject() instead */ | |
| 7866 | 7869 | registerSlashCommand: registerSlashCommand, |
| 7870 | + /** @deprecated Use executeSlashCommandWithOptions instead */ | |
| 7867 | 7871 | executeSlashCommands: executeSlashCommands, |
| 7868 | 7872 | timestampToMoment: timestampToMoment, |
| 7869 | - /** | |
| 7873 | + /** @deprecated Handlebars for extensions are no longer supported. */ | |
| 7870 | - * @deprecated Handlebars for extensions are no longer supported. | |
| 7871 | - */ | |
| 7872 | 7874 | registerHelper: () => { }, |
| 7873 | 7875 | registerMacro: MacrosParser.registerMacro.bind(MacrosParser), |
| 7874 | 7876 | unregisterMacro: MacrosParser.unregisterMacro.bind(MacrosParser), |
| 7875 | 7877 | registedDebugFunction: registerDebugFunction, |
| 7876 | - /** | |
| 7878 | + /** @deprecated Use renderExtensionTemplateAsync instead. */ | |
| 7877 | - * @deprecated Use renderExtensionTemplateAsync instead. | |
| 7878 | - */ | |
| 7879 | 7879 | renderExtensionTemplate: renderExtensionTemplate, |
| 7880 | 7880 | renderExtensionTemplateAsync: renderExtensionTemplateAsync, |
| 7881 | 7881 | registerDataBankScraper: ScraperManager.registerDataBankScraper, |
| 7882 | + /** @deprecated Use callGenericPopup or Popup instead. */ | |
| 7882 | 7883 | callPopup: callPopup, |
| 7883 | 7884 | callGenericPopup: callGenericPopup, |
| 7884 | 7885 | showLoader: showLoader, |
| @@ -7900,10 +7901,9 @@ window['SillyTavern'].getContext = function () { | ||
| 7900 | 7901 | tagMap: tag_map, |
| 7901 | 7902 | menuType: menu_type, |
| 7902 | 7903 | createCharacterData: create_save, |
| 7903 | - /** | |
| 7904 | + /** @deprecated Legacy snake-case naming, compatibility with old extensions */ | |
| 7904 | - * @deprecated Legacy snake-case naming, compatibility with old extensions | |
| 7905 | - */ | |
| 7906 | 7905 | event_types: event_types, |
| 7906 | + Popup: Popup, | |
| 7907 | 7907 | POPUP_TYPE: POPUP_TYPE, |
| 7908 | 7908 | POPUP_RESULT: POPUP_RESULT, |
| 7909 | 7909 | }; |