Add wider and transparent styles to /popup
| @@ -1274,6 +1274,12 @@ export function initDefaultSlashCommands() { | ||
| 1274 | 1274 | 'wide', 'show wide popup', [ARGUMENT_TYPE.BOOLEAN], false, false, null, commonEnumProviders.boolean('onOff')(), |
| 1275 | 1275 | ), |
| 1276 | 1276 | new SlashCommandNamedArgument( |
| 1277 | + 'wider', 'show wider popup', [ARGUMENT_TYPE.BOOLEAN], false, false, null, commonEnumProviders.boolean('onOff')(), | |
| 1278 | + ), | |
| 1279 | + new SlashCommandNamedArgument( | |
| 1280 | + 'transparent', 'show transparent popup', [ARGUMENT_TYPE.BOOLEAN], false, false, null, commonEnumProviders.boolean('onOff')(), | |
| 1281 | + ), | |
| 1282 | + new SlashCommandNamedArgument( | |
| 1277 | 1283 | 'okButton', 'text for the OK button', [ARGUMENT_TYPE.STRING], false, |
| 1278 | 1284 | ), |
| 1279 | 1285 | ], |
| @@ -1883,9 +1889,12 @@ async function buttonsCallback(args, text) { | ||
| 1883 | 1889 | |
| 1884 | 1890 | async function popupCallback(args, value) { |
| 1885 | 1891 | const safeValue = DOMPurify.sanitize(value || ''); |
| 1892 | + /** @type {import('./popup.js').PopupOptions} */ | |
| 1886 | 1893 | const popupOptions = { |
| 1887 | 1894 | large: isTrueBoolean(args?.large), |
| 1888 | 1895 | wide: isTrueBoolean(args?.wide), |
| 1896 | + wider: isTrueBoolean(args?.wider), | |
| 1897 | + transparent: isTrueBoolean(args?.transparent), | |
| 1889 | 1898 | okButton: args?.okButton !== undefined && typeof args?.okButton === 'string' ? args.okButton : 'Ok', |
| 1890 | 1899 | }; |
| 1891 | 1900 | await delay(1); |