-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsts.js
More file actions
48 lines (45 loc) · 1.41 KB
/
consts.js
File metadata and controls
48 lines (45 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
export const PREFIX = '--aegis-command-';
/**
* Built-in command constants for common DOM operations
* @type {Object<string, string>}
*/
export const COMMANDS = {
// Built-in commands
showModal: 'show-modal',
requestClose: 'request-close',
close: 'close',
showPopover: 'show-popover',
hidePopover: 'hide-popover',
togglePopover: 'toggle-popover',
// Custom commands
addClass: PREFIX + 'add-class',
removeClass: PREFIX + 'remove-class',
show: PREFIX + 'show',
hide: PREFIX + 'hide',
unhide: PREFIX + 'unhide',
disable: PREFIX + 'disable',
enable: PREFIX + 'enable',
scrollIntoView: PREFIX + 'scroll-into-view',
remove: PREFIX + 'remove',
requestFullscreen: PREFIX + 'request-fullscreen',
exitFullscreen: PREFIX + 'exit-fullscreen',
toggleFullscreen: PREFIX + 'toggle-fullscreen',
showPicker: PREFIX + 'show-picker',
stepUp: PREFIX + 'step-up',
stepDown: PREFIX + 'step-down',
openDetails: PREFIX + 'open-details',
closeDetails: PREFIX + 'close-details',
toggleDetails: PREFIX + 'toggle-details',
playMedia: PREFIX + 'play-media',
pauseMedia: PREFIX + 'pause-media',
requestPictureInPicture: PREFIX + 'request-picture-in-picture',
copyText: PREFIX + 'copy-text',
};
export const ROOT_COMMANDS = {
print: PREFIX + 'root-print',
share: PREFIX + 'root-share',
back: PREFIX + 'root-back',
forward: PREFIX + 'root-forward',
reload: PREFIX + 'root-reload',
exitFullscreen: PREFIX + 'root-exit-fullscreen',
};