Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 1 | |
| 2 | export const SLIDES_SELECTOR = '.slides section'; |
| 3 | export const HORIZONTAL_SLIDES_SELECTOR = '.slides>section'; |
| 4 | export const VERTICAL_SLIDES_SELECTOR = '.slides>section.present>section'; |
Marc Kupietz | 9c036a4 | 2024-05-14 13:17:25 +0200 | [diff] [blame^] | 5 | export const HORIZONTAL_BACKGROUNDS_SELECTOR = '.backgrounds>.slide-background'; |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 6 | |
| 7 | // Methods that may not be invoked via the postMessage API |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame] | 8 | export const POST_MESSAGE_METHOD_BLACKLIST = /registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/; |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 9 | |
| 10 | // Regex for retrieving the fragment style from a class attribute |
Marc Kupietz | 9c036a4 | 2024-05-14 13:17:25 +0200 | [diff] [blame^] | 11 | export 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 |
| 14 | export const SLIDE_NUMBER_FORMAT_HORIZONTAL_DOT_VERTICAL = 'h.v'; |
| 15 | export const SLIDE_NUMBER_FORMAT_HORIZONTAL_SLASH_VERTICAL = 'h/v'; |
| 16 | export const SLIDE_NUMBER_FORMAT_CURRENT = 'c'; |
| 17 | export const SLIDE_NUMBER_FORMAT_CURRENT_SLASH_TOTAL = 'c/t'; |