Add wider and transparent styles to /popup

a9e4bef01b1253efd3af752cc85a28c966f1cd00

Wolfsblvt <wolfsblvt@gmail.com>

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