blob: 91a9f22471181ad3984abbc8e30f98dac212281a [file] [log] [blame]
Christophe Dervieuxe1893ae2021-10-07 17:09:02 +02001
2export const SLIDES_SELECTOR = '.slides section';
3export const HORIZONTAL_SLIDES_SELECTOR = '.slides>section';
4export const VERTICAL_SLIDES_SELECTOR = '.slides>section.present>section';
Marc Kupietz9c036a42024-05-14 13:17:25 +02005export const HORIZONTAL_BACKGROUNDS_SELECTOR = '.backgrounds>.slide-background';
Christophe Dervieuxe1893ae2021-10-07 17:09:02 +02006
7// Methods that may not be invoked via the postMessage API
Marc Kupietz09b75752023-10-07 09:32:19 +02008export const POST_MESSAGE_METHOD_BLACKLIST = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/;
Christophe Dervieuxe1893ae2021-10-07 17:09:02 +02009
10// Regex for retrieving the fragment style from a class attribute
Marc Kupietz9c036a42024-05-14 13:17:25 +020011export const FRAGMENT_STYLE_REGEX = /fade-(down|up|right|left|out|in-then-out|in-then-semi-out)|semi-fade-out|current-visible|shrink|grow/;
12
13// Slide number formats
14export const SLIDE_NUMBER_FORMAT_HORIZONTAL_DOT_VERTICAL = 'h.v';
15export const SLIDE_NUMBER_FORMAT_HORIZONTAL_SLASH_VERTICAL = 'h/v';
16export const SLIDE_NUMBER_FORMAT_CURRENT = 'c';
17export const SLIDE_NUMBER_FORMAT_CURRENT_SLASH_TOTAL = 'c/t';