Add wider and transparent styles to /popup

a9e4bef01b1253efd3af752cc85a28c966f1cd00

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +9 -0Showing whitespace changes
public/scripts/slash-commands.js+9 -0
@@ -1274,6 +1274,12 @@ export function initDefaultSlashCommands() {
12741274 'wide', 'show wide popup', [ARGUMENT_TYPE.BOOLEAN], false, false, null, commonEnumProviders.boolean('onOff')(),
12751275 ),
12761276 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(
12771283 'okButton', 'text for the OK button', [ARGUMENT_TYPE.STRING], false,
12781284 ),
12791285 ],
@@ -1883,9 +1889,12 @@ async function buttonsCallback(args, text) {
18831889
18841890async function popupCallback(args, value) {
18851891 const safeValue = DOMPurify.sanitize(value || '');
1892+ /** @type {import('./popup.js').PopupOptions} */
18861893 const popupOptions = {
18871894 large: isTrueBoolean(args?.large),
18881895 wide: isTrueBoolean(args?.wide),
1896+ wider: isTrueBoolean(args?.wider),
1897+ transparent: isTrueBoolean(args?.transparent),
18891898 okButton: args?.okButton !== undefined && typeof args?.okButton === 'string' ? args.okButton : 'Ok',
18901899 };
18911900 await delay(1);