open-lyric-plugin-player 0.0.0-stage → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +86 -3
- package/dist/assets/0000_FluidR3_GM_sf2_file-UXdPzEsg.js +305 -0
- package/dist/assets/0040_FluidR3_GM_sf2_file-IFBrX1A0.js +200 -0
- package/dist/assets/0170_FluidR3_GM_sf2_file-BWm-R1Tk.js +305 -0
- package/dist/assets/0240_FluidR3_GM_sf2_file-DqHHWk5p.js +155 -0
- package/dist/assets/0250_FluidR3_GM_sf2_file-CwEIFlk6.js +155 -0
- package/dist/assets/0270_FluidR3_GM_sf2_file-B3B-_maY.js +155 -0
- package/dist/assets/0320_FluidR3_GM_sf2_file-DPSiqexC.js +155 -0
- package/dist/assets/0340_FluidR3_GM_sf2_file-BRUWd0rz.js +140 -0
- package/dist/assets/WebAudioFontPlayer-BUO5EsAp.js +816 -0
- package/dist/index.cjs +119 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +119 -0
- package/dist/index.js.map +1 -0
- package/dist/types/packages/open-lyric-plugin-player/src/index.d.ts +26 -0
- package/dist/types/packages/open-lyric-plugin-player/src/version.d.ts +9 -0
- package/dist/types/src/editor/components/Editor.d.ts +559 -0
- package/dist/types/src/editor/components/OpenLyric.d.ts +868 -0
- package/dist/types/src/editor/components/OpenLyricDashboard.d.ts +425 -0
- package/dist/types/src/editor/components/OpenLyricMarkdownManager.d.ts +120 -0
- package/dist/types/src/editor/components/index.d.ts +26 -0
- package/dist/types/src/editor/components/internal/EditorStandaloneChrome.d.ts +182 -0
- package/dist/types/src/editor/components/internal/EventEmitter.d.ts +16 -0
- package/dist/types/src/editor/components/internal/OpenLyricComponent.d.ts +89 -0
- package/dist/types/src/editor/components/internal/OpenLyricMarkdownStandaloneChrome.d.ts +208 -0
- package/dist/types/src/editor/components/internal/OpenLyricPreviewComponent.d.ts +231 -0
- package/dist/types/src/editor/components/internal/OpenLyricStandaloneChrome.d.ts +240 -0
- package/dist/types/src/editor/components/internal/PluginHost.d.ts +94 -0
- package/dist/types/src/editor/components/internal/chrome-icons.d.ts +19 -0
- package/dist/types/src/editor/components/internal/document-locales.d.ts +23 -0
- package/dist/types/src/editor/components/internal/export-stage.d.ts +51 -0
- package/dist/types/src/editor/components/internal/font-faces.d.ts +13 -0
- package/dist/types/src/editor/components/internal/font-size.d.ts +31 -0
- package/dist/types/src/editor/components/internal/font-styles.d.ts +36 -0
- package/dist/types/src/editor/components/internal/inject-style.d.ts +31 -0
- package/dist/types/src/editor/components/internal/inline-styles.d.ts +77 -0
- package/dist/types/src/editor/components/internal/monaco-boot.d.ts +23 -0
- package/dist/types/src/editor/components/internal/plugin-settings.d.ts +41 -0
- package/dist/types/src/editor/components/internal/preview-setting.d.ts +35 -0
- package/dist/types/src/editor/components/internal/preview-styles.d.ts +19 -0
- package/dist/types/src/editor/components/internal/rasterize.d.ts +20 -0
- package/dist/types/src/editor/components/internal/scoped-css.d.ts +37 -0
- package/dist/types/src/editor/components/internal/shell-styles.d.ts +46 -0
- package/dist/types/src/editor/components/internal/standalone-chrome-styles.d.ts +9 -0
- package/dist/types/src/editor/components/internal/theme-vars-styles.d.ts +11 -0
- package/dist/types/src/editor/components/internal/theme.d.ts +64 -0
- package/dist/types/src/editor/components/internal/types.d.ts +314 -0
- package/dist/types/src/editor/components/internal/vertical-lines.d.ts +106 -0
- package/dist/types/src/editor/html/install-dashboard-shell-markup.d.ts +47 -0
- package/dist/types/src/editor/html/install-editor-panel-markup.d.ts +25 -0
- package/dist/types/src/editor/html/install-preview-panel-markup.d.ts +20 -0
- package/dist/types/src/editor/html/markup-fragments.d.ts +73 -0
- package/dist/types/src/editor/scripts/app/DocumentController.d.ts +12 -0
- package/dist/types/src/editor/scripts/app/EditorPreferencesStore.d.ts +137 -0
- package/dist/types/src/editor/scripts/app/MonacoFeatureController.d.ts +376 -0
- package/dist/types/src/editor/scripts/app/ShellLayoutController.d.ts +195 -0
- package/dist/types/src/editor/scripts/app/ThemeController.d.ts +43 -0
- package/dist/types/src/editor/scripts/app/document-controllers/constants.d.ts +40 -0
- package/dist/types/src/editor/scripts/app/document-controllers/document-content.d.ts +2 -0
- package/dist/types/src/editor/scripts/app/document-controllers/raw-text-import.d.ts +2 -0
- package/dist/types/src/editor/scripts/app/document-controllers/reset-examples.d.ts +2 -0
- package/dist/types/src/editor/scripts/app/document-controllers/share-links.d.ts +2 -0
- package/dist/types/src/editor/scripts/app/document-controllers/share-qr.d.ts +2 -0
- package/dist/types/src/editor/scripts/app/document-controllers/share-ui.d.ts +2 -0
- package/dist/types/src/editor/scripts/app/preview-controllers/constants.d.ts +25 -0
- package/dist/types/src/editor/scripts/app/preview-controllers/interaction.d.ts +2 -0
- package/dist/types/src/editor/scripts/app/preview-controllers/menus.d.ts +2 -0
- package/dist/types/src/editor/scripts/app/preview-controllers/setup-and-render.d.ts +2 -0
- package/dist/types/src/editor/scripts/config-locales.d.ts +19 -0
- package/dist/types/src/editor/scripts/default-draft-example.d.ts +25 -0
- package/dist/types/src/editor/scripts/draft-examples.d.ts +11 -0
- package/dist/types/src/editor/scripts/editor-metadata.d.ts +11 -0
- package/dist/types/src/editor/scripts/editor-only-draft-examples.d.ts +18 -0
- package/dist/types/src/editor/scripts/editor-plugin-registry.d.ts +43 -0
- package/dist/types/src/editor/scripts/floating-menu.d.ts +86 -0
- package/dist/types/src/editor/scripts/helpers.d.ts +1 -0
- package/dist/types/src/editor/scripts/invisible-characters.d.ts +42 -0
- package/dist/types/src/editor/scripts/mobile-eruda.d.ts +6 -0
- package/dist/types/src/editor/scripts/monaco-marker-hover-segmentation.d.ts +15 -0
- package/dist/types/src/editor/scripts/monaco-runtime.d.ts +22 -0
- package/dist/types/src/editor/scripts/monaco-theme.d.ts +5 -0
- package/dist/types/src/editor/scripts/open-lyric-plugin-preference.d.ts +5 -0
- package/dist/types/src/editor/scripts/open-lyric-plugin.d.ts +5 -0
- package/dist/types/src/editor/scripts/page-config.d.ts +10 -0
- package/dist/types/src/editor/scripts/preview.d.ts +21 -0
- package/dist/types/src/editor/scripts/selection-stats.d.ts +35 -0
- package/dist/types/src/editor/scripts/shared.d.ts +552 -0
- package/dist/types/src/editor/scripts/spellcheck-common.d.ts +102 -0
- package/dist/types/src/editor/scripts/spellcheck-english-provider.d.ts +11 -0
- package/dist/types/src/editor/scripts/spellcheck-plugin-provider.d.ts +11 -0
- package/dist/types/src/editor/scripts/spellcheck.d.ts +17 -0
- package/dist/types/src/editor/scripts/word-suggest.d.ts +153 -0
- package/dist/types/src/editor/styles/google-sans-font.d.ts +71 -0
- package/dist/types/src/plugins/OpenLyric/OpenLyricEditorApplication.d.ts +249 -0
- package/dist/types/src/plugins/OpenLyric/PreviewController.d.ts +12 -0
- package/dist/types/src/plugins/OpenLyric/chord-popup.d.ts +7 -0
- package/dist/types/src/plugins/OpenLyric/document/plain-text-import.d.ts +11 -0
- package/dist/types/src/plugins/OpenLyric/document/validation.d.ts +4 -0
- package/dist/types/src/plugins/OpenLyric/domain/attachments.d.ts +44 -0
- package/dist/types/src/plugins/OpenLyric/domain/chord-voicings.d.ts +65 -0
- package/dist/types/src/plugins/OpenLyric/domain/fence-locations.d.ts +63 -0
- package/dist/types/src/plugins/OpenLyric/domain/music-theory.d.ts +40 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/OLParser.d.ts +41 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLBreakdown.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLBridge.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLChorus.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLConfig.d.ts +55 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLFenceDefinition.d.ts +158 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLFenceRegistry.d.ts +12 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLFinalChorus.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLFreeTextFence.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLInstrumental.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLInstrumentalFence.d.ts +8 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLInterlude.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLIntro.d.ts +8 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLLyricFence.d.ts +7 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLNote.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLOutro.d.ts +8 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLPostChorus.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLPreChorus.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLRefrain.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLSolo.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLTag.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLTurnaround.d.ts +17 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLVamp.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences/OLVerse.d.ts +5 -0
- package/dist/types/src/plugins/OpenLyric/domain/parser/fences.d.ts +87 -0
- package/dist/types/src/plugins/OpenLyric/domain/structure.d.ts +63 -0
- package/dist/types/src/plugins/OpenLyric/examples/index.d.ts +90 -0
- package/dist/types/src/plugins/OpenLyric/html/install-shell-markup.d.ts +2 -0
- package/dist/types/src/plugins/OpenLyric/index.d.ts +1 -0
- package/dist/types/src/plugins/OpenLyric/monaco/language.d.ts +2 -0
- package/dist/types/src/plugins/OpenLyric/open-lyric_ol_editor.d.ts +131 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/config-editing.d.ts +2 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/config-popups.d.ts +2 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/config-text-editing.d.ts +15 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/constants.d.ts +40 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/export-common.d.ts +2 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/export-docx.d.ts +2 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/export-powerpoint.d.ts +2 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/export-surface.d.ts +2 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/interaction.d.ts +2 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/menus.d.ts +2 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/pptx/presentation.d.ts +81 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/pptx/zip.d.ts +30 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/preview-history.d.ts +25 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/section-chords.d.ts +75 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/section-editing.d.ts +20 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/section-naming.d.ts +134 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/setup-and-render.d.ts +2 -0
- package/dist/types/src/plugins/OpenLyric/preview/controller/song-starting.d.ts +13 -0
- package/dist/types/src/plugins/OpenLyric/preview/helpers.d.ts +210 -0
- package/dist/types/src/plugins/OpenLyric/preview/index.d.ts +27 -0
- package/dist/types/src/plugins/OpenLyricPlayer/OpenLyricPlayer.d.ts +109 -0
- package/dist/types/src/plugins/OpenLyricPlayer/OpenLyricPlayerPlayground.d.ts +52 -0
- package/dist/types/src/plugins/OpenLyricPlayer/OpenLyricPluginPlayer.d.ts +73 -0
- package/dist/types/src/plugins/OpenLyricPlayer/StrumPlayer.d.ts +91 -0
- package/dist/types/src/plugins/OpenLyricPlayer/StrumSoundEngine.d.ts +118 -0
- package/dist/types/src/plugins/OpenLyricPlayer/chord-figure.d.ts +3 -0
- package/dist/types/src/plugins/OpenLyricPlayer/chord-library.d.ts +166 -0
- package/dist/types/src/plugins/OpenLyricPlayer/instrument-sounds.d.ts +93 -0
- package/dist/types/src/plugins/OpenLyricPlayer/instruments.d.ts +73 -0
- package/dist/types/src/plugins/OpenLyricPlayer/patterns.d.ts +69 -0
- package/dist/types/src/plugins/OpenLyricPlayer/playground-chords.d.ts +30 -0
- package/dist/types/src/plugins/OpenLyricPlayer/playground-markup.d.ts +6 -0
- package/dist/types/src/plugins/OpenLyricPlayer/strum-plan.d.ts +65 -0
- package/dist/types/src/plugins/OpenLyricPlayer/webaudiofont.d.ts +88 -0
- package/dist/types/src/plugins/default-plugins.d.ts +58 -0
- package/dist/types-cjs/package.json +3 -0
- package/dist/types-cjs/packages/open-lyric-plugin-player/src/index.d.ts +26 -0
- package/dist/types-cjs/packages/open-lyric-plugin-player/src/version.d.ts +9 -0
- package/dist/types-cjs/src/editor/components/Editor.d.ts +559 -0
- package/dist/types-cjs/src/editor/components/OpenLyric.d.ts +868 -0
- package/dist/types-cjs/src/editor/components/OpenLyricDashboard.d.ts +425 -0
- package/dist/types-cjs/src/editor/components/OpenLyricMarkdownManager.d.ts +120 -0
- package/dist/types-cjs/src/editor/components/index.d.ts +26 -0
- package/dist/types-cjs/src/editor/components/internal/EditorStandaloneChrome.d.ts +182 -0
- package/dist/types-cjs/src/editor/components/internal/EventEmitter.d.ts +16 -0
- package/dist/types-cjs/src/editor/components/internal/OpenLyricComponent.d.ts +89 -0
- package/dist/types-cjs/src/editor/components/internal/OpenLyricMarkdownStandaloneChrome.d.ts +208 -0
- package/dist/types-cjs/src/editor/components/internal/OpenLyricPreviewComponent.d.ts +231 -0
- package/dist/types-cjs/src/editor/components/internal/OpenLyricStandaloneChrome.d.ts +240 -0
- package/dist/types-cjs/src/editor/components/internal/PluginHost.d.ts +94 -0
- package/dist/types-cjs/src/editor/components/internal/chrome-icons.d.ts +19 -0
- package/dist/types-cjs/src/editor/components/internal/document-locales.d.ts +23 -0
- package/dist/types-cjs/src/editor/components/internal/export-stage.d.ts +51 -0
- package/dist/types-cjs/src/editor/components/internal/font-faces.d.ts +13 -0
- package/dist/types-cjs/src/editor/components/internal/font-size.d.ts +31 -0
- package/dist/types-cjs/src/editor/components/internal/font-styles.d.ts +36 -0
- package/dist/types-cjs/src/editor/components/internal/inject-style.d.ts +31 -0
- package/dist/types-cjs/src/editor/components/internal/inline-styles.d.ts +77 -0
- package/dist/types-cjs/src/editor/components/internal/monaco-boot.d.ts +23 -0
- package/dist/types-cjs/src/editor/components/internal/plugin-settings.d.ts +41 -0
- package/dist/types-cjs/src/editor/components/internal/preview-setting.d.ts +35 -0
- package/dist/types-cjs/src/editor/components/internal/preview-styles.d.ts +19 -0
- package/dist/types-cjs/src/editor/components/internal/rasterize.d.ts +20 -0
- package/dist/types-cjs/src/editor/components/internal/scoped-css.d.ts +37 -0
- package/dist/types-cjs/src/editor/components/internal/shell-styles.d.ts +46 -0
- package/dist/types-cjs/src/editor/components/internal/standalone-chrome-styles.d.ts +9 -0
- package/dist/types-cjs/src/editor/components/internal/theme-vars-styles.d.ts +11 -0
- package/dist/types-cjs/src/editor/components/internal/theme.d.ts +64 -0
- package/dist/types-cjs/src/editor/components/internal/types.d.ts +314 -0
- package/dist/types-cjs/src/editor/components/internal/vertical-lines.d.ts +106 -0
- package/dist/types-cjs/src/editor/html/install-dashboard-shell-markup.d.ts +47 -0
- package/dist/types-cjs/src/editor/html/install-editor-panel-markup.d.ts +25 -0
- package/dist/types-cjs/src/editor/html/install-preview-panel-markup.d.ts +20 -0
- package/dist/types-cjs/src/editor/html/markup-fragments.d.ts +73 -0
- package/dist/types-cjs/src/editor/scripts/app/DocumentController.d.ts +12 -0
- package/dist/types-cjs/src/editor/scripts/app/EditorPreferencesStore.d.ts +137 -0
- package/dist/types-cjs/src/editor/scripts/app/MonacoFeatureController.d.ts +376 -0
- package/dist/types-cjs/src/editor/scripts/app/ShellLayoutController.d.ts +195 -0
- package/dist/types-cjs/src/editor/scripts/app/ThemeController.d.ts +43 -0
- package/dist/types-cjs/src/editor/scripts/app/document-controllers/constants.d.ts +40 -0
- package/dist/types-cjs/src/editor/scripts/app/document-controllers/document-content.d.ts +2 -0
- package/dist/types-cjs/src/editor/scripts/app/document-controllers/raw-text-import.d.ts +2 -0
- package/dist/types-cjs/src/editor/scripts/app/document-controllers/reset-examples.d.ts +2 -0
- package/dist/types-cjs/src/editor/scripts/app/document-controllers/share-links.d.ts +2 -0
- package/dist/types-cjs/src/editor/scripts/app/document-controllers/share-qr.d.ts +2 -0
- package/dist/types-cjs/src/editor/scripts/app/document-controllers/share-ui.d.ts +2 -0
- package/dist/types-cjs/src/editor/scripts/app/preview-controllers/constants.d.ts +25 -0
- package/dist/types-cjs/src/editor/scripts/app/preview-controllers/interaction.d.ts +2 -0
- package/dist/types-cjs/src/editor/scripts/app/preview-controllers/menus.d.ts +2 -0
- package/dist/types-cjs/src/editor/scripts/app/preview-controllers/setup-and-render.d.ts +2 -0
- package/dist/types-cjs/src/editor/scripts/config-locales.d.ts +19 -0
- package/dist/types-cjs/src/editor/scripts/default-draft-example.d.ts +25 -0
- package/dist/types-cjs/src/editor/scripts/draft-examples.d.ts +11 -0
- package/dist/types-cjs/src/editor/scripts/editor-metadata.d.ts +11 -0
- package/dist/types-cjs/src/editor/scripts/editor-only-draft-examples.d.ts +18 -0
- package/dist/types-cjs/src/editor/scripts/editor-plugin-registry.d.ts +43 -0
- package/dist/types-cjs/src/editor/scripts/floating-menu.d.ts +86 -0
- package/dist/types-cjs/src/editor/scripts/helpers.d.ts +1 -0
- package/dist/types-cjs/src/editor/scripts/invisible-characters.d.ts +42 -0
- package/dist/types-cjs/src/editor/scripts/mobile-eruda.d.ts +6 -0
- package/dist/types-cjs/src/editor/scripts/monaco-marker-hover-segmentation.d.ts +15 -0
- package/dist/types-cjs/src/editor/scripts/monaco-runtime.d.ts +22 -0
- package/dist/types-cjs/src/editor/scripts/monaco-theme.d.ts +5 -0
- package/dist/types-cjs/src/editor/scripts/open-lyric-plugin-preference.d.ts +5 -0
- package/dist/types-cjs/src/editor/scripts/open-lyric-plugin.d.ts +5 -0
- package/dist/types-cjs/src/editor/scripts/page-config.d.ts +10 -0
- package/dist/types-cjs/src/editor/scripts/preview.d.ts +21 -0
- package/dist/types-cjs/src/editor/scripts/selection-stats.d.ts +35 -0
- package/dist/types-cjs/src/editor/scripts/shared.d.ts +552 -0
- package/dist/types-cjs/src/editor/scripts/spellcheck-common.d.ts +102 -0
- package/dist/types-cjs/src/editor/scripts/spellcheck-english-provider.d.ts +11 -0
- package/dist/types-cjs/src/editor/scripts/spellcheck-plugin-provider.d.ts +11 -0
- package/dist/types-cjs/src/editor/scripts/spellcheck.d.ts +17 -0
- package/dist/types-cjs/src/editor/scripts/word-suggest.d.ts +153 -0
- package/dist/types-cjs/src/editor/styles/google-sans-font.d.ts +71 -0
- package/dist/types-cjs/src/plugins/OpenLyric/OpenLyricEditorApplication.d.ts +249 -0
- package/dist/types-cjs/src/plugins/OpenLyric/PreviewController.d.ts +12 -0
- package/dist/types-cjs/src/plugins/OpenLyric/chord-popup.d.ts +7 -0
- package/dist/types-cjs/src/plugins/OpenLyric/document/plain-text-import.d.ts +11 -0
- package/dist/types-cjs/src/plugins/OpenLyric/document/validation.d.ts +4 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/attachments.d.ts +44 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/chord-voicings.d.ts +65 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/fence-locations.d.ts +63 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/music-theory.d.ts +40 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/OLParser.d.ts +41 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLBreakdown.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLBridge.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLChorus.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLConfig.d.ts +55 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLFenceDefinition.d.ts +158 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLFenceRegistry.d.ts +12 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLFinalChorus.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLFreeTextFence.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLInstrumental.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLInstrumentalFence.d.ts +8 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLInterlude.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLIntro.d.ts +8 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLLyricFence.d.ts +7 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLNote.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLOutro.d.ts +8 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLPostChorus.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLPreChorus.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLRefrain.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLSolo.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLTag.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLTurnaround.d.ts +17 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLVamp.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences/OLVerse.d.ts +5 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/parser/fences.d.ts +87 -0
- package/dist/types-cjs/src/plugins/OpenLyric/domain/structure.d.ts +63 -0
- package/dist/types-cjs/src/plugins/OpenLyric/examples/index.d.ts +90 -0
- package/dist/types-cjs/src/plugins/OpenLyric/html/install-shell-markup.d.ts +2 -0
- package/dist/types-cjs/src/plugins/OpenLyric/index.d.ts +1 -0
- package/dist/types-cjs/src/plugins/OpenLyric/monaco/language.d.ts +2 -0
- package/dist/types-cjs/src/plugins/OpenLyric/open-lyric_ol_editor.d.ts +131 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/config-editing.d.ts +2 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/config-popups.d.ts +2 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/config-text-editing.d.ts +15 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/constants.d.ts +40 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/export-common.d.ts +2 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/export-docx.d.ts +2 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/export-powerpoint.d.ts +2 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/export-surface.d.ts +2 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/interaction.d.ts +2 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/menus.d.ts +2 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/pptx/presentation.d.ts +81 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/pptx/zip.d.ts +30 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/preview-history.d.ts +25 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/section-chords.d.ts +75 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/section-editing.d.ts +20 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/section-naming.d.ts +134 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/setup-and-render.d.ts +2 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/controller/song-starting.d.ts +13 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/helpers.d.ts +210 -0
- package/dist/types-cjs/src/plugins/OpenLyric/preview/index.d.ts +27 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/OpenLyricPlayer.d.ts +109 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/OpenLyricPlayerPlayground.d.ts +52 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/OpenLyricPluginPlayer.d.ts +73 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/StrumPlayer.d.ts +91 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/StrumSoundEngine.d.ts +118 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/chord-figure.d.ts +3 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/chord-library.d.ts +166 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/instrument-sounds.d.ts +93 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/instruments.d.ts +73 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/patterns.d.ts +69 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/playground-chords.d.ts +30 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/playground-markup.d.ts +6 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/strum-plan.d.ts +65 -0
- package/dist/types-cjs/src/plugins/OpenLyricPlayer/webaudiofont.d.ts +88 -0
- package/dist/types-cjs/src/plugins/default-plugins.d.ts +58 -0
- package/how-to_open-lyric-plugin-player.md +323 -0
- package/package.json +65 -6
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns shell presentation: visible panels, persisted widths, resize handles,
|
|
3
|
+
* and editor relayout after the shell changes.
|
|
4
|
+
*/
|
|
5
|
+
declare class ShellLayoutController {
|
|
6
|
+
constructor({ preferences, onOpenLyricEnableRequest, onPanelVisibilityChange, }: {
|
|
7
|
+
preferences: any;
|
|
8
|
+
onOpenLyricEnableRequest?: null | undefined;
|
|
9
|
+
onPanelVisibilityChange?: null | undefined;
|
|
10
|
+
});
|
|
11
|
+
loadPreferences(): void;
|
|
12
|
+
bindEvents(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Place (or release) the info disclosure's content.
|
|
15
|
+
*
|
|
16
|
+
* `openFloatingMenu` is a no-op on the wide layout, where the content is a
|
|
17
|
+
* plain in-flow block — `floating-menu.ts` writes geometry only while the
|
|
18
|
+
* stylesheet has the element `position: fixed`.
|
|
19
|
+
*/
|
|
20
|
+
syncTopbarMetaFloatingPosition(): void;
|
|
21
|
+
isOpenLyricPanelAvailable(): boolean;
|
|
22
|
+
hasSupplementalShellPanels(): boolean;
|
|
23
|
+
getEffectivePanelVisibility(): {
|
|
24
|
+
editorVisible: boolean;
|
|
25
|
+
previewVisible: boolean;
|
|
26
|
+
openLyricVisible: boolean;
|
|
27
|
+
};
|
|
28
|
+
getPanelDefinitions(): {
|
|
29
|
+
key: string;
|
|
30
|
+
label: string;
|
|
31
|
+
minWidth: number;
|
|
32
|
+
isVisible: () => boolean;
|
|
33
|
+
getElement: () => Element | null;
|
|
34
|
+
}[];
|
|
35
|
+
scheduleEditorLayout(): void;
|
|
36
|
+
handleViewportResize(): void;
|
|
37
|
+
isStackedShellLayout(): boolean;
|
|
38
|
+
getShellColumnGap(): number;
|
|
39
|
+
getVisibleShellPanels(): {
|
|
40
|
+
element: Element | null;
|
|
41
|
+
key: string;
|
|
42
|
+
label: string;
|
|
43
|
+
minWidth: number;
|
|
44
|
+
isVisible: () => boolean;
|
|
45
|
+
getElement: () => Element | null;
|
|
46
|
+
}[];
|
|
47
|
+
getShellResizeMetrics(visiblePanels?: {
|
|
48
|
+
element: Element | null;
|
|
49
|
+
key: string;
|
|
50
|
+
label: string;
|
|
51
|
+
minWidth: number;
|
|
52
|
+
isVisible: () => boolean;
|
|
53
|
+
getElement: () => Element | null;
|
|
54
|
+
}[]): {
|
|
55
|
+
visiblePanels: {
|
|
56
|
+
element: Element | null;
|
|
57
|
+
key: string;
|
|
58
|
+
label: string;
|
|
59
|
+
minWidth: number;
|
|
60
|
+
isVisible: () => boolean;
|
|
61
|
+
getElement: () => Element | null;
|
|
62
|
+
}[];
|
|
63
|
+
visiblePanelCount: number;
|
|
64
|
+
shellWidth: number;
|
|
65
|
+
columnGap: number;
|
|
66
|
+
availableWidth: number;
|
|
67
|
+
minimumRequiredWidth: number;
|
|
68
|
+
};
|
|
69
|
+
getVisiblePanelWeights(visiblePanels?: {
|
|
70
|
+
element: Element | null;
|
|
71
|
+
key: string;
|
|
72
|
+
label: string;
|
|
73
|
+
minWidth: number;
|
|
74
|
+
isVisible: () => boolean;
|
|
75
|
+
getElement: () => Element | null;
|
|
76
|
+
}[], sourceWeights?: {
|
|
77
|
+
editor: number;
|
|
78
|
+
preview: number;
|
|
79
|
+
openLyric: number;
|
|
80
|
+
}): any[];
|
|
81
|
+
buildShellColumnsValue(visiblePanels: any, visiblePanelWeights: any): any;
|
|
82
|
+
canResizeShellPanels(visiblePanels?: {
|
|
83
|
+
element: Element | null;
|
|
84
|
+
key: string;
|
|
85
|
+
label: string;
|
|
86
|
+
minWidth: number;
|
|
87
|
+
isVisible: () => boolean;
|
|
88
|
+
getElement: () => Element | null;
|
|
89
|
+
}[]): boolean;
|
|
90
|
+
applyPanelSizePreference(): void;
|
|
91
|
+
getResizeHandleKey(leftPanelKey: any, rightPanelKey: any): string;
|
|
92
|
+
getShellResizeHandleMap(): Map<any, Element>;
|
|
93
|
+
createPanelResizeHandle(leftPanel: any, rightPanel: any): HTMLDivElement;
|
|
94
|
+
getPanelPairFromHandle(handle: any, visiblePanels?: {
|
|
95
|
+
element: Element | null;
|
|
96
|
+
key: string;
|
|
97
|
+
label: string;
|
|
98
|
+
minWidth: number;
|
|
99
|
+
isVisible: () => boolean;
|
|
100
|
+
getElement: () => Element | null;
|
|
101
|
+
}[]): {
|
|
102
|
+
leftPanel: {
|
|
103
|
+
element: Element | null;
|
|
104
|
+
key: string;
|
|
105
|
+
label: string;
|
|
106
|
+
minWidth: number;
|
|
107
|
+
isVisible: () => boolean;
|
|
108
|
+
getElement: () => Element | null;
|
|
109
|
+
};
|
|
110
|
+
rightPanel: {
|
|
111
|
+
element: Element | null;
|
|
112
|
+
key: string;
|
|
113
|
+
label: string;
|
|
114
|
+
minWidth: number;
|
|
115
|
+
isVisible: () => boolean;
|
|
116
|
+
getElement: () => Element | null;
|
|
117
|
+
};
|
|
118
|
+
} | null;
|
|
119
|
+
getPanelPairMetrics(leftPanel: any, rightPanel: any): {
|
|
120
|
+
columnGap: number;
|
|
121
|
+
currentLeftWidth: any;
|
|
122
|
+
maxLeftWidth: number;
|
|
123
|
+
minLeftWidth: any;
|
|
124
|
+
pairWidth: any;
|
|
125
|
+
};
|
|
126
|
+
getPanelResizeIntent(rawLeftPanelWidth: any, minLeftWidth: any, maxLeftWidth: any): "hide-left" | "hide-right" | "resize";
|
|
127
|
+
setPanelResizeHandleIntent(handle: any, intent: any, panelPair?: null): void;
|
|
128
|
+
getBalancedLeftPanelWidth(leftPanel: any, rightPanel: any): any;
|
|
129
|
+
updatePanelResizeHandlePosition(handle: any, leftPanel: any, rightPanel: any): void;
|
|
130
|
+
updatePanelResizeHandles(): void;
|
|
131
|
+
captureVisiblePanelWidths(visiblePanels?: {
|
|
132
|
+
element: Element | null;
|
|
133
|
+
key: string;
|
|
134
|
+
label: string;
|
|
135
|
+
minWidth: number;
|
|
136
|
+
isVisible: () => boolean;
|
|
137
|
+
getElement: () => Element | null;
|
|
138
|
+
}[]): {};
|
|
139
|
+
setPanelSizeWeights(nextPanelSizeWeights: any, { persist }?: {
|
|
140
|
+
persist?: boolean | undefined;
|
|
141
|
+
}): void;
|
|
142
|
+
setPanelPairWidths(leftPanel: any, rightPanel: any, leftPanelWidth: any, rightPanelWidth: any, options: any): void;
|
|
143
|
+
resetPanelPairWidths(leftPanel: any, rightPanel: any, options: any): void;
|
|
144
|
+
getPanelResizeState(clientX: any, leftPanel: any, rightPanel: any): {
|
|
145
|
+
nextLeftPanelWidth: any;
|
|
146
|
+
pairWidth: any;
|
|
147
|
+
resizeIntent: string;
|
|
148
|
+
} | null;
|
|
149
|
+
updatePanelPairFromPointer(clientX: any, handle: any, options: any): {
|
|
150
|
+
nextLeftPanelWidth: any;
|
|
151
|
+
pairWidth: any;
|
|
152
|
+
resizeIntent: string;
|
|
153
|
+
panelPair: {
|
|
154
|
+
leftPanel: {
|
|
155
|
+
element: Element | null;
|
|
156
|
+
key: string;
|
|
157
|
+
label: string;
|
|
158
|
+
minWidth: number;
|
|
159
|
+
isVisible: () => boolean;
|
|
160
|
+
getElement: () => Element | null;
|
|
161
|
+
};
|
|
162
|
+
rightPanel: {
|
|
163
|
+
element: Element | null;
|
|
164
|
+
key: string;
|
|
165
|
+
label: string;
|
|
166
|
+
minWidth: number;
|
|
167
|
+
isVisible: () => boolean;
|
|
168
|
+
getElement: () => Element | null;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
} | null;
|
|
172
|
+
commitPanelResizeHide(panelPair: any, resizeIntent: any): void;
|
|
173
|
+
stopPanelResize({ persist }?: {
|
|
174
|
+
persist?: boolean | undefined;
|
|
175
|
+
}): void;
|
|
176
|
+
handlePanelResizePointerDown(event: any): void;
|
|
177
|
+
handlePanelResizePointerMove(event: any): void;
|
|
178
|
+
handlePanelResizePointerUp(event: any): void;
|
|
179
|
+
handlePanelResizePointerCancel(event: any): void;
|
|
180
|
+
handlePanelResizeLostPointerCapture(event: any): void;
|
|
181
|
+
handlePanelResizeKeydown(event: any): void;
|
|
182
|
+
handlePanelResizeDoubleClick(event: any): void;
|
|
183
|
+
setPanelVisible(panelKey: any, nextVisible: any): void;
|
|
184
|
+
updatePanelToggleButton(button: any, isVisible: any, visibleLabel: any, hiddenLabel: any): void;
|
|
185
|
+
syncTopbarMetaDisclosure(): void;
|
|
186
|
+
applyPanelVisibilityPreference(value: any): void;
|
|
187
|
+
updateShellPanels(): void;
|
|
188
|
+
setEditorVisible(nextVisible: any): void;
|
|
189
|
+
setPreviewVisible(nextVisible: any): void;
|
|
190
|
+
setOpenLyricVisible(nextVisible: any): void;
|
|
191
|
+
togglePreview(): void;
|
|
192
|
+
toggleOpenLyric(): void;
|
|
193
|
+
toggleEditor(): void;
|
|
194
|
+
}
|
|
195
|
+
export { ShellLayoutController };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps theme state and UI synchronized while exposing a small surface to the
|
|
3
|
+
* composition root.
|
|
4
|
+
*
|
|
5
|
+
* Four themes, not two: `light`/`dark` plus the `light-bs`/`dark-bs` pair
|
|
6
|
+
* painted in Bootstrap's palette. Two attributes carry that on `<html>` —
|
|
7
|
+
* `data-theme` holds the full name (what the stylesheets scope on) and
|
|
8
|
+
* `data-bs-theme` only ever holds the light/dark base, because that is all
|
|
9
|
+
* Bootstrap's own stylesheet understands.
|
|
10
|
+
*/
|
|
11
|
+
declare class ThemeController {
|
|
12
|
+
constructor({ monaco, preferences, onThemeApplied }: {
|
|
13
|
+
monaco: any;
|
|
14
|
+
preferences: any;
|
|
15
|
+
onThemeApplied?: null | undefined;
|
|
16
|
+
});
|
|
17
|
+
setMonaco(monaco: any): void;
|
|
18
|
+
ensureEditorThemesRegistered(): void;
|
|
19
|
+
getEditorTheme(theme?: string): any;
|
|
20
|
+
getSystemThemeMediaQuery(): any;
|
|
21
|
+
getSystemThemePreference(): any;
|
|
22
|
+
bindSystemThemeListener(): void;
|
|
23
|
+
handleSystemThemeChange(): void;
|
|
24
|
+
applyPreferredTheme(): void;
|
|
25
|
+
bindEvents(): void;
|
|
26
|
+
/** The picker's option buttons, in markup order. */
|
|
27
|
+
getThemeMenuOptions(): Element[];
|
|
28
|
+
isThemeMenuOpen(): boolean;
|
|
29
|
+
toggleThemeMenu(): void;
|
|
30
|
+
openThemeMenu(): void;
|
|
31
|
+
closeThemeMenu({ restoreFocus }?: {
|
|
32
|
+
restoreFocus?: boolean | undefined;
|
|
33
|
+
}): void;
|
|
34
|
+
handleDocumentPointerDown(event: any): void;
|
|
35
|
+
handleDocumentKeydown(event: any): void;
|
|
36
|
+
applyTheme(theme: any, { notifyThemeApplied }?: {
|
|
37
|
+
notifyThemeApplied?: boolean | undefined;
|
|
38
|
+
}): void;
|
|
39
|
+
setTheme(theme: any): void;
|
|
40
|
+
/** Advance to the next theme in `OPEN_LYRIC_THEMES`, wrapping around. */
|
|
41
|
+
toggleTheme(): void;
|
|
42
|
+
}
|
|
43
|
+
export { ThemeController };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const SHARED_MARKDOWN_QUERY_PARAM = "md-text";
|
|
2
|
+
declare const SHARED_MARKDOWN_DATE_QUERY_PARAM = "md-date";
|
|
3
|
+
declare const SHARED_MARKDOWN_FILE_NAME = "shared-link.md";
|
|
4
|
+
declare const SHARED_MARKDOWN_QUERY_PARAM_MAX_CHARACTERS = 8000;
|
|
5
|
+
declare const SHARED_MARKDOWN_QUERY_PARAM_WARNING_SUFFIX = "This is over the 8,000-character warning threshold, but the link can still be copied.";
|
|
6
|
+
declare const SHARED_MARKDOWN_PASSWORD_PREFIX = "pwdecrypted:";
|
|
7
|
+
declare const SHARED_MARKDOWN_PASSWORD_DIALOG_MESSAGE = "Enter the password to open this shared link.";
|
|
8
|
+
declare const SHARED_MARKDOWN_PASSWORD_REQUIRED_MESSAGE = "Password is required before this link can be opened.";
|
|
9
|
+
declare const SHARED_MARKDOWN_PASSWORD_RETRY_MESSAGE = "Password was incorrect or the encrypted link is invalid. Try again or cancel.";
|
|
10
|
+
declare const INVALID_MARKDOWN_CONFIRMATION_MESSAGE = "There are some errors in the markdown. Do you still want to open it?";
|
|
11
|
+
declare const SHARE_COPY_BUTTON_LABELS: {
|
|
12
|
+
idle: string;
|
|
13
|
+
copying: string;
|
|
14
|
+
success: string;
|
|
15
|
+
error: string;
|
|
16
|
+
};
|
|
17
|
+
declare const SHARE_QR_GENERATING_MESSAGE = "Generating QR code...";
|
|
18
|
+
declare const SHARE_QR_LINK_READY_MESSAGE = "Scan this code with your phone camera to open the shared link.";
|
|
19
|
+
declare const SHARE_QR_LINK_PENDING_MESSAGE = "QR code will appear when the share link is ready.";
|
|
20
|
+
declare const SHARE_QR_LINK_ERROR_MESSAGE = "QR code could not be generated for this link. Use the link text below instead.";
|
|
21
|
+
declare const SHARE_QR_LINK_FULLSCREEN_READY_MESSAGE = "Scan this fullscreen QR code with your phone camera.";
|
|
22
|
+
declare const SHARE_QR_TEXT_READY_MESSAGE = "Scan this code to read the raw Open Lyric markdown text.";
|
|
23
|
+
declare const SHARE_QR_TEXT_PENDING_MESSAGE = "QR code will appear when the Open Lyric markdown text is ready.";
|
|
24
|
+
declare const SHARE_QR_TEXT_ERROR_MESSAGE = "QR code could not be generated from this markdown text. The text may be too large.";
|
|
25
|
+
declare const SHARE_QR_TEXT_FULLSCREEN_READY_MESSAGE = "Scan this fullscreen QR code to read the raw Open Lyric markdown text.";
|
|
26
|
+
declare const SHARE_QR_TEXT_DEFAULT_CHARACTERS_PER_CHUNK = 500;
|
|
27
|
+
declare const SHARE_COPY_BUTTON_RESET_DELAY_MS = 1800;
|
|
28
|
+
declare const SHARE_LINK_REFRESH_DELAY_MS = 250;
|
|
29
|
+
declare function loadDraftExamplesModule(): Promise<any>;
|
|
30
|
+
declare function encodeBase64Utf8(text: any): string;
|
|
31
|
+
declare function decodeBase64Utf8(base64Text: any): string;
|
|
32
|
+
declare function renderQrCodeToCanvas(canvas: any, shareLink: any, width: any): Promise<any>;
|
|
33
|
+
declare function normalizeShareQrTextChunkLength(value: any): number;
|
|
34
|
+
declare function splitTextIntoQrChunks(text: any, maxCharactersPerChunk: any): Promise<string[]>;
|
|
35
|
+
declare function formatShareDateForUrl(date?: Date): string;
|
|
36
|
+
declare function normalizeSharedMarkdownParam(value: any): string;
|
|
37
|
+
declare function isShareEncryptionSupported(): boolean;
|
|
38
|
+
declare function encryptSharedMarkdown(markdown: any, password: any): Promise<string>;
|
|
39
|
+
declare function decryptSharedMarkdown(encryptedValue: any, password: any): Promise<string>;
|
|
40
|
+
export { INVALID_MARKDOWN_CONFIRMATION_MESSAGE, SHARE_COPY_BUTTON_LABELS, SHARE_COPY_BUTTON_RESET_DELAY_MS, SHARE_LINK_REFRESH_DELAY_MS, SHARE_QR_GENERATING_MESSAGE, SHARE_QR_LINK_ERROR_MESSAGE, SHARE_QR_LINK_FULLSCREEN_READY_MESSAGE, SHARE_QR_LINK_PENDING_MESSAGE, SHARE_QR_LINK_READY_MESSAGE, SHARE_QR_TEXT_DEFAULT_CHARACTERS_PER_CHUNK, SHARE_QR_TEXT_ERROR_MESSAGE, SHARE_QR_TEXT_FULLSCREEN_READY_MESSAGE, SHARE_QR_TEXT_PENDING_MESSAGE, SHARE_QR_TEXT_READY_MESSAGE, SHARED_MARKDOWN_DATE_QUERY_PARAM, SHARED_MARKDOWN_FILE_NAME, SHARED_MARKDOWN_PASSWORD_DIALOG_MESSAGE, SHARED_MARKDOWN_PASSWORD_PREFIX, SHARED_MARKDOWN_PASSWORD_REQUIRED_MESSAGE, SHARED_MARKDOWN_PASSWORD_RETRY_MESSAGE, SHARED_MARKDOWN_QUERY_PARAM, SHARED_MARKDOWN_QUERY_PARAM_MAX_CHARACTERS, SHARED_MARKDOWN_QUERY_PARAM_WARNING_SUFFIX, decodeBase64Utf8, decryptSharedMarkdown, encodeBase64Utf8, encryptSharedMarkdown, formatShareDateForUrl, isShareEncryptionSupported, loadDraftExamplesModule, normalizeShareQrTextChunkLength, normalizeSharedMarkdownParam, renderQrCodeToCanvas, splitTextIntoQrChunks, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const PREVIEW_JUMP_HIGHLIGHT_CLASS = "ol-preview-fence--jump-target";
|
|
2
|
+
declare const PREVIEW_CLICK_DELAY_MS = 180;
|
|
3
|
+
declare const DECLARE_PART_ACTION_ROOT_SELECTOR = "[data-preview-action=\"toggle-declare-part-menu\"]";
|
|
4
|
+
declare const CONFIG_ADD_ACTION_ROOT_SELECTOR = "[data-preview-action=\"toggle-config-add-menu\"]";
|
|
5
|
+
declare const ADD_SECTION_ACTION_ROOT_SELECTOR = "[data-preview-action=\"toggle-add-section-menu\"]";
|
|
6
|
+
declare const SECTION_RENAME_ACTION_ROOT_SELECTOR = "[data-preview-action=\"edit-section-title\"]";
|
|
7
|
+
declare const SECTION_DELETE_ACTION_ROOT_SELECTOR = "[data-preview-action=\"delete-section\"]";
|
|
8
|
+
declare const CONFIG_KEY_ACTION_ROOT_SELECTOR = "[data-preview-action=\"toggle-config-key-menu\"]";
|
|
9
|
+
declare const CONFIG_ATTACHMENT_ACTION_ROOT_SELECTOR = "[data-preview-action=\"toggle-config-attachment-menu\"]";
|
|
10
|
+
declare const CONFIG_LOCALE_ACTION_ROOT_SELECTOR = "[data-preview-action=\"toggle-config-locale-menu\"]";
|
|
11
|
+
declare const CONFIG_TIME_ACTION_ROOT_SELECTOR = "[data-preview-action=\"toggle-config-time-menu\"]";
|
|
12
|
+
declare const CONFIG_TEMPO_ACTION_ROOT_SELECTOR = "[data-preview-action=\"toggle-config-tempo-menu\"]";
|
|
13
|
+
declare const MARKDOWN_PREVIEW_PATTERN_TARGET_ID_PREFIX = "ol-preview-pattern";
|
|
14
|
+
declare const PREVIEW_POPUP_TRIGGER_SELECTOR = "[data-chord-key], [data-pattern-reference-index]";
|
|
15
|
+
declare const DECLARE_PART_POPUP_MARGIN_PX = 12;
|
|
16
|
+
declare const DECLARE_PART_POPUP_OFFSET_PX = 8;
|
|
17
|
+
declare const IOS_FAMILY_USER_AGENT_RE: RegExp;
|
|
18
|
+
declare const IPADOS_DESKTOP_USER_AGENT_RE: RegExp;
|
|
19
|
+
declare const DEFAULT_PREVIEW_TYPOGRAPHY: Readonly<{
|
|
20
|
+
fontSizePx: 16;
|
|
21
|
+
fontFamily: "";
|
|
22
|
+
}>;
|
|
23
|
+
declare const MIN_PREVIEW_FONT_SIZE_PX = 12;
|
|
24
|
+
declare const MAX_PREVIEW_FONT_SIZE_PX = 36;
|
|
25
|
+
export { ADD_SECTION_ACTION_ROOT_SELECTOR, CONFIG_ADD_ACTION_ROOT_SELECTOR, CONFIG_ATTACHMENT_ACTION_ROOT_SELECTOR, CONFIG_KEY_ACTION_ROOT_SELECTOR, CONFIG_LOCALE_ACTION_ROOT_SELECTOR, CONFIG_TEMPO_ACTION_ROOT_SELECTOR, CONFIG_TIME_ACTION_ROOT_SELECTOR, DECLARE_PART_ACTION_ROOT_SELECTOR, DECLARE_PART_POPUP_MARGIN_PX, DECLARE_PART_POPUP_OFFSET_PX, DEFAULT_PREVIEW_TYPOGRAPHY, IOS_FAMILY_USER_AGENT_RE, IPADOS_DESKTOP_USER_AGENT_RE, MARKDOWN_PREVIEW_PATTERN_TARGET_ID_PREFIX, MAX_PREVIEW_FONT_SIZE_PX, MIN_PREVIEW_FONT_SIZE_PX, PREVIEW_CLICK_DELAY_MS, PREVIEW_JUMP_HIGHLIGHT_CLASS, PREVIEW_POPUP_TRIGGER_SELECTOR, SECTION_DELETE_ACTION_ROOT_SELECTOR, SECTION_RENAME_ACTION_ROOT_SELECTOR, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every locale tag an `ol:Config` `Locales` field may list — the Windows LCID
|
|
3
|
+
* tag set, kept in this repository as `locale.txt`.
|
|
4
|
+
*
|
|
5
|
+
* Data only, and complete on purpose: naming every tag is what keeps the core
|
|
6
|
+
* script-neutral. `km-KH` sits here as one row of 229, not as a language the
|
|
7
|
+
* core knows about — a Khmer document still earns its keyboard, fonts, and
|
|
8
|
+
* spellcheck from the km-KH plugin, never from this list.
|
|
9
|
+
*
|
|
10
|
+
* Order is the source file's, which is also the order the Monaco `Locales`
|
|
11
|
+
* completion offers the tags in.
|
|
12
|
+
*
|
|
13
|
+
* The transcript plugin keeps its own near-identical picker list
|
|
14
|
+
* (`BASE_TRANSCRIPT_LOCALE_SUGGESTIONS`) on purpose — that one is a UI menu a
|
|
15
|
+
* language plugin extends through the registry, this one is the notation's
|
|
16
|
+
* closed value set.
|
|
17
|
+
*/
|
|
18
|
+
declare const CONFIG_LOCALE_VALUES: string[];
|
|
19
|
+
export { CONFIG_LOCALE_VALUES };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const DEFAULT_FULL_DRAFT_EXAMPLE: {
|
|
2
|
+
id: string;
|
|
3
|
+
fileName: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
content: string;
|
|
7
|
+
editorShellModes: string[];
|
|
8
|
+
};
|
|
9
|
+
declare function getDefaultDraftExample(): {
|
|
10
|
+
id: string;
|
|
11
|
+
fileName: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
content: string;
|
|
15
|
+
editorShellModes: string[];
|
|
16
|
+
};
|
|
17
|
+
declare const DEFAULT_DRAFT_EXAMPLE: {
|
|
18
|
+
id: string;
|
|
19
|
+
fileName: string;
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
content: string;
|
|
23
|
+
editorShellModes: string[];
|
|
24
|
+
};
|
|
25
|
+
export { DEFAULT_DRAFT_EXAMPLE, DEFAULT_FULL_DRAFT_EXAMPLE, getDefaultDraftExample, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const DRAFT_EXAMPLES: {
|
|
2
|
+
id: string;
|
|
3
|
+
fileName: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
content: string;
|
|
7
|
+
editorShellModes: string[];
|
|
8
|
+
}[];
|
|
9
|
+
declare function getDraftExamples(): any[];
|
|
10
|
+
declare function getDraftExampleById(exampleId: any): any;
|
|
11
|
+
export { DRAFT_EXAMPLES, getDraftExampleById, getDraftExamples };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const OPEN_LYRIC_EDITOR_INFO: Readonly<{
|
|
2
|
+
name: "Open Lyric";
|
|
3
|
+
version: "0.1.9-dev";
|
|
4
|
+
}>;
|
|
5
|
+
declare function getEditorDisplayName(): "Open Lyric" | "";
|
|
6
|
+
declare function getCurrentBrowserLocationUrl(): string;
|
|
7
|
+
declare function formatEditorVersion(version?: "0.1.9-dev"): string;
|
|
8
|
+
declare function getEditorSignature(): string;
|
|
9
|
+
declare function getEditorVersionBadgeText(): string;
|
|
10
|
+
declare function getEditorMetadataTitle(): string;
|
|
11
|
+
export { OPEN_LYRIC_EDITOR_INFO, formatEditorVersion, getCurrentBrowserLocationUrl, getEditorDisplayName, getEditorMetadataTitle, getEditorSignature, getEditorVersionBadgeText, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const EDITOR_ONLY_DRAFT_EXAMPLE_GROUP_TITLE = "Editor .md Examples";
|
|
2
|
+
declare const DEFAULT_EDITOR_ONLY_DRAFT_EXAMPLE: {
|
|
3
|
+
id: string;
|
|
4
|
+
fileName: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
content: string;
|
|
8
|
+
editorShellModes: string[];
|
|
9
|
+
};
|
|
10
|
+
declare const EDITOR_ONLY_DRAFT_EXAMPLES: {
|
|
11
|
+
id: string;
|
|
12
|
+
fileName: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
content: string;
|
|
16
|
+
editorShellModes: string[];
|
|
17
|
+
}[];
|
|
18
|
+
export { DEFAULT_EDITOR_ONLY_DRAFT_EXAMPLE, EDITOR_ONLY_DRAFT_EXAMPLE_GROUP_TITLE, EDITOR_ONLY_DRAFT_EXAMPLES, };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare function registerPlugin(pluginData: any): {
|
|
2
|
+
draftExamples: any;
|
|
3
|
+
disposed: boolean;
|
|
4
|
+
fonts: any;
|
|
5
|
+
id: any;
|
|
6
|
+
keyboardIds: any;
|
|
7
|
+
openLyricIds: any[];
|
|
8
|
+
openLyricSpecification: any;
|
|
9
|
+
pluginData: any;
|
|
10
|
+
pptxStyle: any;
|
|
11
|
+
spellcheckLanguageCodes: any;
|
|
12
|
+
styleEntries: never[];
|
|
13
|
+
transcriptIds: any;
|
|
14
|
+
transcriptLocales: any;
|
|
15
|
+
};
|
|
16
|
+
declare function unregisterPlugin(registeredData: any): boolean;
|
|
17
|
+
declare function getRegisteredSpellcheckSpecification(languageCode: any): any;
|
|
18
|
+
declare function getRegisteredSpellcheckSpecifications(): any[];
|
|
19
|
+
declare function getRegisteredKeyboardSpecifications(): any[];
|
|
20
|
+
declare function getRegisteredTranscriptSpecifications(): any[];
|
|
21
|
+
declare function getRegisteredOpenLyricSpecification(): any;
|
|
22
|
+
declare function getRegisteredOpenLyricSpecifications(): any[];
|
|
23
|
+
declare function getRegisteredPluginStyles(): any[];
|
|
24
|
+
declare function getRegisteredPluginDraftExamples(): any[];
|
|
25
|
+
/**
|
|
26
|
+
* Every registered plugin's `fonts` contribution, in registration order.
|
|
27
|
+
*
|
|
28
|
+
* The core reads faces from here rather than naming any itself: the app's
|
|
29
|
+
* initial font wait probes `{ faces, sampleText }`, and the preview
|
|
30
|
+
* font-family pickers list `faces` above their own script-neutral defaults. A
|
|
31
|
+
* page that registers no language plugin therefore ships no script-specific
|
|
32
|
+
* face name.
|
|
33
|
+
*/
|
|
34
|
+
declare function getRegisteredPluginFonts(): any[];
|
|
35
|
+
/**
|
|
36
|
+
* Every BCP-47 locale registered plugins add to the transcript locale picker,
|
|
37
|
+
* in registration order. The first is the transcript surface's default; with
|
|
38
|
+
* none registered it stays on Auto (see `transcript-locale.ts`).
|
|
39
|
+
*/
|
|
40
|
+
declare function getRegisteredTranscriptLocales(): any[];
|
|
41
|
+
declare function getRegisteredPowerPointStyles(): any[];
|
|
42
|
+
declare function subscribeToPluginRegistry(listener: any): () => void;
|
|
43
|
+
export { getRegisteredKeyboardSpecifications, getRegisteredOpenLyricSpecification, getRegisteredOpenLyricSpecifications, getRegisteredPluginDraftExamples, getRegisteredPluginFonts, getRegisteredPluginStyles, getRegisteredPowerPointStyles, getRegisteredSpellcheckSpecification, getRegisteredSpellcheckSpecifications, getRegisteredTranscriptLocales, getRegisteredTranscriptSpecifications, registerPlugin, subscribeToPluginRegistry, unregisterPlugin, };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Viewport-anchored positioning for the chrome's dropdown panels.
|
|
3
|
+
*
|
|
4
|
+
* Every popup panel the editor opens — the preview settings popup, the `⋮`
|
|
5
|
+
* options menus, the topbar actions menu, the topbar info disclosure — used to
|
|
6
|
+
* be `position: absolute` inside the wrapper that holds its trigger. That is
|
|
7
|
+
* fine on our own pages, where the wrapper's panel is tall enough, but it makes
|
|
8
|
+
* the panel a hostage of every ancestor's `overflow`: embed an `Editor` or an
|
|
9
|
+
* `OpenLyric` preview in a host UI whose column scrolls or clips, and the menu
|
|
10
|
+
* is cut off at the container edge instead of floating over it.
|
|
11
|
+
*
|
|
12
|
+
* So the panels are `position: fixed` and this module places them: measure the
|
|
13
|
+
* trigger, place the panel just below it (flipping above when the space below
|
|
14
|
+
* is both too small and smaller than the space above), clamp into the viewport,
|
|
15
|
+
* and cap `max-height` to the room actually available so a long menu scrolls
|
|
16
|
+
* rather than running off-screen.
|
|
17
|
+
*
|
|
18
|
+
* `openFloatingMenu()` also keeps the panel glued to its trigger while it is
|
|
19
|
+
* open — a page scroll, a window resize, or a panel drag-resize repositions it
|
|
20
|
+
* instead of leaving it stranded (a fixed box does not scroll with its anchor).
|
|
21
|
+
*
|
|
22
|
+
* The same shape as `positionDeclarePartPopup()` in the Open Lyric preview's
|
|
23
|
+
* `config-popups.ts`, which has always positioned its body-level popups this
|
|
24
|
+
* way; these panels stay in their wrapper (so the `contains()`-based focusout
|
|
25
|
+
* and outside-pointerdown checks still see them) and only borrow the geometry.
|
|
26
|
+
*
|
|
27
|
+
* ## The `position: fixed` escape hatch has one requirement
|
|
28
|
+
*
|
|
29
|
+
* A fixed box escapes ancestor clipping only while no ancestor establishes a
|
|
30
|
+
* containing block for it — `transform`, `filter`, `backdrop-filter`,
|
|
31
|
+
* `perspective`, `will-change`, `contain: layout|paint`, and `container-type`
|
|
32
|
+
* all do. Our own chrome is kept clear of those on the menus' ancestors (see
|
|
33
|
+
* the note on `.preview-panel__body--floating-tools` in
|
|
34
|
+
* `_preview-panel-chrome.scss`); a host page that wraps an embed in a
|
|
35
|
+
* transformed element is beyond what CSS can rescue.
|
|
36
|
+
*/
|
|
37
|
+
/** Gap kept between a panel and the viewport edge. */
|
|
38
|
+
declare const FLOATING_MENU_MARGIN_PX = 8;
|
|
39
|
+
/** Gap between a panel and the trigger it hangs off. */
|
|
40
|
+
declare const FLOATING_MENU_OFFSET_PX = 6;
|
|
41
|
+
/**
|
|
42
|
+
* `'end'` pins the panel's right edge to the anchor's right edge (the default —
|
|
43
|
+
* these triggers sit at the right of their toolbars), `'start'` its left edge
|
|
44
|
+
* to the anchor's left edge.
|
|
45
|
+
*/
|
|
46
|
+
type FloatingMenuAlign = 'start' | 'end';
|
|
47
|
+
interface FloatingMenuOptions {
|
|
48
|
+
align?: FloatingMenuAlign;
|
|
49
|
+
offsetPx?: number;
|
|
50
|
+
marginPx?: number;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Whether the panel is actually floating right now.
|
|
54
|
+
*
|
|
55
|
+
* The stylesheet — not this module — decides: `.topbar-meta__content` is only
|
|
56
|
+
* `position: fixed` in the stacked (mobile) layout, and an embed that failed to
|
|
57
|
+
* load our stylesheet gets no inline geometry rather than a panel pinned to the
|
|
58
|
+
* top-left corner.
|
|
59
|
+
*/
|
|
60
|
+
declare function isFloatingMenu(menu: Element): boolean;
|
|
61
|
+
/** Drop the geometry so the panel measures naturally the next time it opens. */
|
|
62
|
+
declare function clearFloatingMenuPosition(menu: Element | null | undefined): void;
|
|
63
|
+
/**
|
|
64
|
+
* Place `menu` against `anchor` in viewport coordinates.
|
|
65
|
+
*
|
|
66
|
+
* The panel must already be visible (`hidden = false`) — it is measured, so an
|
|
67
|
+
* unrendered box would report a zero rect. Returns whether geometry was
|
|
68
|
+
* written.
|
|
69
|
+
*/
|
|
70
|
+
declare function positionFloatingMenu(menu: Element | null | undefined, anchor: Element | null | undefined, options?: FloatingMenuOptions): boolean;
|
|
71
|
+
/** Re-place every panel currently open, dropping any that left the document. */
|
|
72
|
+
declare function repositionOpenFloatingMenus(): void;
|
|
73
|
+
/**
|
|
74
|
+
* Position `menu` against `anchor` and keep it there until
|
|
75
|
+
* `closeFloatingMenu()`.
|
|
76
|
+
*
|
|
77
|
+
* Call it *after* revealing the panel (`menu.hidden = false`), and pair every
|
|
78
|
+
* call with `closeFloatingMenu()` in the matching close path.
|
|
79
|
+
*/
|
|
80
|
+
declare function openFloatingMenu(menu: Element | null | undefined, anchor: Element | null | undefined, options?: FloatingMenuOptions): boolean;
|
|
81
|
+
/** Stop tracking `menu` and (unless told otherwise) drop its geometry. */
|
|
82
|
+
declare function closeFloatingMenu(menu: Element | null | undefined, options?: {
|
|
83
|
+
keepPosition?: boolean;
|
|
84
|
+
}): void;
|
|
85
|
+
export { FLOATING_MENU_MARGIN_PX, FLOATING_MENU_OFFSET_PX, clearFloatingMenuPosition, closeFloatingMenu, isFloatingMenu, openFloatingMenu, positionFloatingMenu, repositionOpenFloatingMenus, };
|
|
86
|
+
export type { FloatingMenuAlign, FloatingMenuOptions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function logEditorTiming(logFunction: any, ...message: any[]): void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every code point worth flagging: C0/C1 controls, the Unicode space and
|
|
3
|
+
* separator blocks, and the format (`Cf`) category — ZWSP, ZWNJ, ZWJ, BOM, the
|
|
4
|
+
* bidi controls, and friends.
|
|
5
|
+
*/
|
|
6
|
+
export declare const INVISIBLE_CHARACTER_REGEX: RegExp;
|
|
7
|
+
/** Tab, newline, and plain space: invisible, but not worth flagging. */
|
|
8
|
+
export declare const ALLOWED_INVISIBLE_CHARACTER_CODE_POINTS: Set<number>;
|
|
9
|
+
/** Upper bound on decorations per pass, so a pathological document can't stall. */
|
|
10
|
+
export declare const MAX_INVISIBLE_CHARACTER_DECORATIONS = 5000;
|
|
11
|
+
export declare const SINGLE_INVISIBLE_CHARACTER_DECORATION_CLASS = "unicode-highlight";
|
|
12
|
+
export declare const START_LINE_INVISIBLE_CHARACTER_DECORATION_CLASS = "unicode-highlight start-line";
|
|
13
|
+
export declare const MULTIPLE_INVISIBLE_CHARACTER_DECORATION_CLASS = "unicode-highlight unicode-highlight--multiple";
|
|
14
|
+
export declare const START_LINE_MULTIPLE_INVISIBLE_CHARACTER_DECORATION_CLASS = "unicode-highlight unicode-highlight--multiple start-line";
|
|
15
|
+
/** The decoration `description` both surfaces tag their decorations with. */
|
|
16
|
+
export declare const INVISIBLE_CHARACTER_DECORATION_DESCRIPTION = "open-lyric-invisible-character-highlight";
|
|
17
|
+
/** One highlighted run: consecutive invisible characters on a single line. */
|
|
18
|
+
export interface InvisibleCharacterRun {
|
|
19
|
+
lineNumber: number;
|
|
20
|
+
/** 1-based, Monaco column convention. */
|
|
21
|
+
startColumn: number;
|
|
22
|
+
endColumn: number;
|
|
23
|
+
className: string;
|
|
24
|
+
}
|
|
25
|
+
/** The slice of a Monaco text model the scan needs. */
|
|
26
|
+
export interface InvisibleCharacterModel {
|
|
27
|
+
getLineCount(): number;
|
|
28
|
+
getLineContent(lineNumber: number): string;
|
|
29
|
+
}
|
|
30
|
+
/** A fresh regex per caller — `lastIndex` is per-instance state. */
|
|
31
|
+
export declare function createInvisibleCharacterRegex(): RegExp;
|
|
32
|
+
/** Matches two or more adjacent invisible characters (what Format collapses). */
|
|
33
|
+
export declare function createDuplicateInvisibleCharacterRunRegex(): RegExp;
|
|
34
|
+
/**
|
|
35
|
+
* Scan `model` and return one run per group of adjacent invisible characters.
|
|
36
|
+
*
|
|
37
|
+
* Adjacent characters merge into a single run so a stretch of them reads as one
|
|
38
|
+
* block rather than a picket fence; a run of more than one gets the "multiple"
|
|
39
|
+
* class (a filled warning box), and a run that starts at column 1 with a ZWSP
|
|
40
|
+
* gets `start-line` so the marker isn't nudged off the left edge.
|
|
41
|
+
*/
|
|
42
|
+
export declare function collectInvisibleCharacterRuns(model: InvisibleCharacterModel, maxRuns?: number): InvisibleCharacterRun[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare function shouldBootstrapMobileEruda({ isMobileDevice, }?: {
|
|
2
|
+
isMobileDevice?: boolean | undefined;
|
|
3
|
+
}): boolean;
|
|
4
|
+
declare function isLikelyMobileBrowser(): boolean;
|
|
5
|
+
declare function bootstrapMobileEruda(): any;
|
|
6
|
+
export { bootstrapMobileEruda, isLikelyMobileBrowser, shouldBootstrapMobileEruda, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare function attachMobileSpellcheckMarkerHoverSelection(editor: {
|
|
2
|
+
getAction?: (actionId: string) => {
|
|
3
|
+
run?: () => Promise<void> | void;
|
|
4
|
+
} | null;
|
|
5
|
+
getSelection?: () => unknown;
|
|
6
|
+
onDidChangeCursorSelection?: (listener: (event: {
|
|
7
|
+
selection?: unknown;
|
|
8
|
+
}) => void) => {
|
|
9
|
+
dispose?: () => void;
|
|
10
|
+
};
|
|
11
|
+
}): {
|
|
12
|
+
dispose(): void;
|
|
13
|
+
};
|
|
14
|
+
declare function patchMarkerHoverAction(): void;
|
|
15
|
+
export { attachMobileSpellcheckMarkerHoverSelection, patchMarkerHoverAction };
|