fika-editor 3.0.0 → 3.0.1
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 -21
- package/README.md +45 -27
- package/dist/embed/350.css +1 -0
- package/dist/embed/350.js +164 -0
- package/dist/embed/agentic-manifest.json +2232 -0
- package/dist/embed/apple-touch-icon.png +0 -0
- package/dist/embed/chunks/1.js +1 -0
- package/dist/embed/chunks/104.js +1 -0
- package/dist/embed/chunks/1074.js +1 -0
- package/dist/embed/chunks/1085.js +1 -0
- package/dist/embed/chunks/1131.css +1 -0
- package/dist/embed/chunks/1131.js +1 -0
- package/dist/embed/chunks/1169.js +1 -0
- package/dist/embed/chunks/1172.js +1 -0
- package/dist/embed/chunks/1212.js +1 -0
- package/dist/embed/chunks/1255.js +1 -0
- package/dist/embed/chunks/1432.js +1 -0
- package/dist/embed/chunks/1436.js +1 -0
- package/dist/embed/chunks/1605.js +1 -0
- package/dist/embed/chunks/1668.js +1 -0
- package/dist/embed/chunks/1804.js +8 -0
- package/dist/embed/chunks/1904.js +104 -0
- package/dist/embed/chunks/1915.js +1 -0
- package/dist/embed/chunks/1916.js +1 -0
- package/dist/embed/chunks/1932.js +1 -0
- package/dist/embed/chunks/2011.js +1 -0
- package/dist/embed/chunks/2020.js +3467 -0
- package/dist/embed/chunks/2131.js +1 -0
- package/dist/embed/chunks/2143.js +62 -0
- package/dist/embed/chunks/2190.js +1 -0
- package/dist/embed/chunks/2246.js +1 -0
- package/dist/embed/chunks/2289.js +80 -0
- package/dist/embed/chunks/2402.js +1 -0
- package/dist/embed/chunks/2407.js +1 -0
- package/dist/embed/chunks/2489.js +1 -0
- package/dist/embed/chunks/2528.js +1 -0
- package/dist/embed/chunks/2632.js +1 -0
- package/dist/embed/chunks/2694.js +1 -0
- package/dist/embed/chunks/2714.js +1 -0
- package/dist/embed/chunks/273.js +24 -0
- package/dist/embed/chunks/2796.js +34 -0
- package/dist/embed/chunks/2807.css +1 -0
- package/dist/embed/chunks/2807.js +1 -0
- package/dist/embed/chunks/3030.js +1 -0
- package/dist/embed/chunks/3031.js +1 -0
- package/dist/embed/chunks/3088.js +1 -0
- package/dist/embed/chunks/3103.js +1 -0
- package/dist/embed/chunks/3143.js +1 -0
- package/dist/embed/chunks/3359.js +1 -0
- package/dist/embed/chunks/3443.js +1 -0
- package/dist/embed/chunks/3479.js +1 -0
- package/dist/embed/chunks/3555.js +1 -0
- package/dist/embed/chunks/3581.js +77 -0
- package/dist/embed/chunks/360.css +1 -0
- package/dist/embed/chunks/360.js +1 -0
- package/dist/embed/chunks/362.js +1 -0
- package/dist/embed/chunks/3729.js +160 -0
- package/dist/embed/chunks/3888.js +1 -0
- package/dist/embed/chunks/3907.js +1 -0
- package/dist/embed/chunks/397.js +1 -0
- package/dist/embed/chunks/401.js +1 -0
- package/dist/embed/chunks/4110.js +1 -0
- package/dist/embed/chunks/4145.js +1 -0
- package/dist/embed/chunks/4335.js +1 -0
- package/dist/embed/chunks/435.js +1 -0
- package/dist/embed/chunks/4354.js +27 -0
- package/dist/embed/chunks/4359.js +1 -0
- package/dist/embed/chunks/4467.js +1 -0
- package/dist/embed/chunks/4515.js +1 -0
- package/dist/embed/chunks/4552.js +287 -0
- package/dist/embed/chunks/4606.js +1 -0
- package/dist/embed/chunks/4607.js +1 -0
- package/dist/embed/chunks/4619.js +86 -0
- package/dist/embed/chunks/4625.js +153 -0
- package/dist/embed/chunks/4632.css +1 -0
- package/dist/embed/chunks/4632.js +1 -0
- package/dist/embed/chunks/4637.js +1 -0
- package/dist/embed/chunks/4794.js +1 -0
- package/dist/embed/chunks/4891.js +226 -0
- package/dist/embed/chunks/4936.js +82 -0
- package/dist/embed/chunks/4950.js +1 -0
- package/dist/embed/chunks/4975.js +255 -0
- package/dist/embed/chunks/5026.js +1 -0
- package/dist/embed/chunks/5075.js +1 -0
- package/dist/embed/chunks/5216.css +1 -0
- package/dist/embed/chunks/5216.js +1 -0
- package/dist/embed/chunks/5239.js +1 -0
- package/dist/embed/chunks/5250.js +1 -0
- package/dist/embed/chunks/5316.js +1 -0
- package/dist/embed/chunks/5437.js +1 -0
- package/dist/embed/chunks/5480.js +1 -0
- package/dist/embed/chunks/5532.js +1 -0
- package/dist/embed/chunks/5659.js +64 -0
- package/dist/embed/chunks/574.js +1 -0
- package/dist/embed/chunks/5768.js +1 -0
- package/dist/embed/chunks/5773.js +1 -0
- package/dist/embed/chunks/5792.js +141 -0
- package/dist/embed/chunks/5809.js +1 -0
- package/dist/embed/chunks/5835.js +1 -0
- package/dist/embed/chunks/5889.js +1 -0
- package/dist/embed/chunks/5901.js +1 -0
- package/dist/embed/chunks/5907.js +1 -0
- package/dist/embed/chunks/5989.js +1 -0
- package/dist/embed/chunks/5992.js +1 -0
- package/dist/embed/chunks/6014.js +1 -0
- package/dist/embed/chunks/6063.js +1 -0
- package/dist/embed/chunks/6136.js +1 -0
- package/dist/embed/chunks/6144.css +1 -0
- package/dist/embed/chunks/6144.js +1 -0
- package/dist/embed/chunks/627.js +115 -0
- package/dist/embed/chunks/6339.js +1 -0
- package/dist/embed/chunks/635.js +1 -0
- package/dist/embed/chunks/6361.js +1 -0
- package/dist/embed/chunks/647.js +1 -0
- package/dist/embed/chunks/6522.js +1 -0
- package/dist/embed/chunks/6567.js +1 -0
- package/dist/embed/chunks/6580.js +1 -0
- package/dist/embed/chunks/6609.css +1 -0
- package/dist/embed/chunks/6609.js +1 -0
- package/dist/embed/chunks/6690.js +1 -0
- package/dist/embed/chunks/6704.js +1 -0
- package/dist/embed/chunks/6778.js +1 -0
- package/dist/embed/chunks/6935.js +1 -0
- package/dist/embed/chunks/6999.js +93 -0
- package/dist/embed/chunks/7048.js +1 -0
- package/dist/embed/chunks/7101.js +1 -0
- package/dist/embed/chunks/7132.js +1 -0
- package/dist/embed/chunks/717.js +148 -0
- package/dist/embed/chunks/7175.js +90 -0
- package/dist/embed/chunks/7193.css +1 -0
- package/dist/embed/chunks/7193.js +1 -0
- package/dist/embed/chunks/7245.js +1 -0
- package/dist/embed/chunks/7255.js +1 -0
- package/dist/embed/chunks/7272.js +1 -0
- package/dist/embed/chunks/7309.js +1 -0
- package/dist/embed/chunks/7311.js +23 -0
- package/dist/embed/chunks/736.js +1 -0
- package/dist/embed/chunks/7376.js +1 -0
- package/dist/embed/chunks/7453.js +1 -0
- package/dist/embed/chunks/7463.js +1 -0
- package/dist/embed/chunks/7468.js +1 -0
- package/dist/embed/chunks/7588.js +41 -0
- package/dist/embed/chunks/7594.js +1 -0
- package/dist/embed/chunks/7854.js +38 -0
- package/dist/embed/chunks/788.js +24 -0
- package/dist/embed/chunks/7916.js +79 -0
- package/dist/embed/chunks/7924.js +1 -0
- package/dist/embed/chunks/7980.js +1 -0
- package/dist/embed/chunks/809.js +1 -0
- package/dist/embed/chunks/810.js +1 -0
- package/dist/embed/chunks/818.js +1 -0
- package/dist/embed/chunks/8212.js +36 -0
- package/dist/embed/chunks/8239.js +1 -0
- package/dist/embed/chunks/8252.js +1 -0
- package/dist/embed/chunks/8378.css +1 -0
- package/dist/embed/chunks/8378.js +1 -0
- package/dist/embed/chunks/8449.js +1 -0
- package/dist/embed/chunks/8516.js +1 -0
- package/dist/embed/chunks/8606.js +1 -0
- package/dist/embed/chunks/862.css +1 -0
- package/dist/embed/chunks/862.js +1 -0
- package/dist/embed/chunks/8620.js +1 -0
- package/dist/embed/chunks/8623.js +138 -0
- package/dist/embed/chunks/8645.js +1 -0
- package/dist/embed/chunks/8716.js +215 -0
- package/dist/embed/chunks/8724.js +1 -0
- package/dist/embed/chunks/8735.js +1 -0
- package/dist/embed/chunks/8941.js +1 -0
- package/dist/embed/chunks/9121.js +1 -0
- package/dist/embed/chunks/919.js +1 -0
- package/dist/embed/chunks/9203.js +1 -0
- package/dist/embed/chunks/9245.js +1 -0
- package/dist/embed/chunks/9252.js +1 -0
- package/dist/embed/chunks/9465.js +5 -0
- package/dist/embed/chunks/9475.js +1 -0
- package/dist/embed/chunks/9657.css +1 -0
- package/dist/embed/chunks/9657.js +1 -0
- package/dist/embed/chunks/968.js +1 -0
- package/dist/embed/chunks/9739.js +1 -0
- package/dist/embed/chunks/9761.js +1 -0
- package/dist/embed/chunks/9800.css +1 -0
- package/dist/embed/chunks/9800.js +1 -0
- package/dist/embed/chunks/9976.js +1 -0
- package/dist/embed/favicon-32.png +0 -0
- package/dist/embed/favicon.ico +0 -0
- package/dist/embed/favicon.svg +7 -0
- package/dist/embed/fika-embed.css +1 -0
- package/dist/embed/fika-embed.js +5 -0
- package/dist/embed/logo.png +0 -0
- package/dist/embed/static/font/fonts/Inter.woff2 +0 -0
- package/dist/embed/static/font/fonts/JetBrainsMono.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/embed/static/font/fonts/Lato.woff2 +0 -0
- package/dist/embed/static/font/fonts/Literata.woff2 +0 -0
- package/dist/embed/static/font/fonts/Merriweather.woff2 +0 -0
- package/dist/embed/static/font/fonts/Montserrat.woff2 +0 -0
- package/dist/embed/static/font/fonts/OpenSans.woff2 +0 -0
- package/dist/embed/static/font/fonts/Roboto.woff2 +0 -0
- package/dist/embed/static/font/fonts/SourceSansPro.woff2 +0 -0
- package/dist/embed/static/font/fonts/SourceSerif4.woff2 +0 -0
- package/dist/types/components/Button.d.ts +17 -0
- package/dist/types/components/ButtonGroup.d.ts +8 -0
- package/dist/types/components/ChartDataEditor.d.ts +13 -0
- package/dist/types/components/Checkbox.d.ts +12 -0
- package/dist/types/components/CodeEditor/CodeEditorSkeleton.d.ts +8 -0
- package/dist/types/components/CodeEditor/codeMirror.d.ts +23 -0
- package/dist/types/components/CodeEditor/index.d.ts +14 -0
- package/dist/types/components/CodeEditor/lazy.d.ts +3 -0
- package/dist/types/components/ColorButton.d.ts +8 -0
- package/dist/types/components/ColorListButton.d.ts +8 -0
- package/dist/types/components/ColorPicker/Alpha.d.ts +12 -0
- package/dist/types/components/ColorPicker/Checkboard.d.ts +11 -0
- package/dist/types/components/ColorPicker/EditableInput.d.ts +12 -0
- package/dist/types/components/ColorPicker/Hue.d.ts +13 -0
- package/dist/types/components/ColorPicker/Saturation.d.ts +13 -0
- package/dist/types/components/ColorPicker/index.d.ts +11 -0
- package/dist/types/components/ColorSwatches.d.ts +21 -0
- package/dist/types/components/ConfirmDialog.d.ts +16 -0
- package/dist/types/components/Contextmenu/MenuContent.d.ts +8 -0
- package/dist/types/components/Contextmenu/index.d.ts +14 -0
- package/dist/types/components/Contextmenu/types.d.ts +13 -0
- package/dist/types/components/Divider.d.ts +9 -0
- package/dist/types/components/Draggable.d.ts +28 -0
- package/dist/types/components/Drawer.d.ts +13 -0
- package/dist/types/components/FileInput.d.ts +11 -0
- package/dist/types/components/FitText.d.ts +17 -0
- package/dist/types/components/FontSizeControl.d.ts +12 -0
- package/dist/types/components/FormatChip.d.ts +14 -0
- package/dist/types/components/FullscreenSpin.d.ts +9 -0
- package/dist/types/components/GradientBar.d.ts +12 -0
- package/dist/types/components/Icon.d.ts +144 -0
- package/dist/types/components/InkDialog.d.ts +37 -0
- package/dist/types/components/InkLoader.d.ts +2 -0
- package/dist/types/components/InkPaintSwatches.d.ts +14 -0
- package/dist/types/components/InkProgress.d.ts +6 -0
- package/dist/types/components/Input.d.ts +25 -0
- package/dist/types/components/JobProgressOverlay.d.ts +18 -0
- package/dist/types/components/LaTeXEditor/LatexEditorSkeleton.d.ts +1 -0
- package/dist/types/components/LaTeXEditor/MathFieldSkeleton.d.ts +4 -0
- package/dist/types/components/LaTeXEditor/hfmath.d.ts +5 -0
- package/dist/types/components/LaTeXEditor/index.d.ts +12 -0
- package/dist/types/components/LaTeXEditor/lazy.d.ts +3 -0
- package/dist/types/components/MermaidEditor/MermaidEditorSkeleton.d.ts +1 -0
- package/dist/types/components/MermaidEditor/index.d.ts +8 -0
- package/dist/types/components/MermaidEditor/lazy.d.ts +3 -0
- package/dist/types/components/Message.d.ts +15 -0
- package/dist/types/components/Modal.d.ts +16 -0
- package/dist/types/components/MoveablePanel.d.ts +20 -0
- package/dist/types/components/NumberInput.d.ts +24 -0
- package/dist/types/components/OverlayTrigger.d.ts +14 -0
- package/dist/types/components/Popover.d.ts +24 -0
- package/dist/types/components/PopoverMenuItem.d.ts +11 -0
- package/dist/types/components/RadioButton.d.ts +11 -0
- package/dist/types/components/RadioGroup.d.ts +12 -0
- package/dist/types/components/Select.d.ts +23 -0
- package/dist/types/components/SelectCustom.d.ts +12 -0
- package/dist/types/components/Slider.d.ts +26 -0
- package/dist/types/components/Switch.d.ts +11 -0
- package/dist/types/components/Tabs.d.ts +23 -0
- package/dist/types/components/TextArea.d.ts +22 -0
- package/dist/types/components/WritingBoard.d.ts +28 -0
- package/dist/types/components/draggableLayout.d.ts +35 -0
- package/dist/types/components/writingBoardCommands.d.ts +7 -0
- package/dist/types/configs/animation.d.ts +274 -0
- package/dist/types/configs/chart.d.ts +11 -0
- package/dist/types/configs/code.d.ts +193 -0
- package/dist/types/configs/element.d.ts +3 -0
- package/dist/types/configs/exportMediaResolver.d.ts +11 -0
- package/dist/types/configs/exportTabs.d.ts +11 -0
- package/dist/types/configs/featureFlags.d.ts +15 -0
- package/dist/types/configs/font.d.ts +27 -0
- package/dist/types/configs/headerMenu.d.ts +4 -0
- package/dist/types/configs/hotkey.d.ts +42 -0
- package/dist/types/configs/imageClip.d.ts +30 -0
- package/dist/types/configs/inkPaint.d.ts +37 -0
- package/dist/types/configs/laser.d.ts +10 -0
- package/dist/types/configs/lines.d.ts +21 -0
- package/dist/types/configs/localeSwitcher.d.ts +2 -0
- package/dist/types/configs/mediaUpload.d.ts +71 -0
- package/dist/types/configs/mime.d.ts +4 -0
- package/dist/types/configs/shapes.d.ts +26 -0
- package/dist/types/configs/starterPresentation.d.ts +32 -0
- package/dist/types/configs/storage.d.ts +1 -0
- package/dist/types/configs/symbol/arrow.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/action.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/activity.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/expression.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/faunaFlora.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/food.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/objects.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/symbols.d.ts +2 -0
- package/dist/types/configs/symbol/emoji/travel.d.ts +2 -0
- package/dist/types/configs/symbol/graph.d.ts +2 -0
- package/dist/types/configs/symbol/index.d.ts +8 -0
- package/dist/types/configs/symbol/letter.d.ts +2 -0
- package/dist/types/configs/symbol/math.d.ts +2 -0
- package/dist/types/configs/symbol/number.d.ts +2 -0
- package/dist/types/configs/table.d.ts +15 -0
- package/dist/types/configs/templates.d.ts +19 -0
- package/dist/types/configs/textPresets.d.ts +85 -0
- package/dist/types/configs/theme.d.ts +44 -0
- package/dist/types/directive/tooltip.d.ts +5 -0
- package/dist/types/embed/EmbedRoot.d.ts +5 -0
- package/dist/types/embed/agentic/composition.d.ts +84 -0
- package/dist/types/embed/agentic/createAgenticApi.d.ts +11 -0
- package/dist/types/embed/agentic/fixtures.d.ts +30 -0
- package/dist/types/embed/agentic/helpers.d.ts +115 -0
- package/dist/types/embed/agentic/layouts.d.ts +114 -0
- package/dist/types/embed/agentic/manifestDocs.d.ts +73 -0
- package/dist/types/embed/agentic/qa.d.ts +47 -0
- package/dist/types/embed/agentic/styles.d.ts +131 -0
- package/dist/types/embed/agentic/templates.d.ts +31 -0
- package/dist/types/embed/agentic/types.d.ts +2006 -0
- package/dist/types/embed/agentic/validators.d.ts +32 -0
- package/dist/types/embed/createController.d.ts +7 -0
- package/dist/types/embed/index.d.ts +9 -0
- package/dist/types/embed/inferViewport.d.ts +11 -0
- package/dist/types/embed/localeBridge.d.ts +4 -0
- package/dist/types/embed/mount.d.ts +12 -0
- package/dist/types/embed/types.d.ts +183 -0
- package/dist/types/hooks/useAddSlidesOrElements.d.ts +6 -0
- package/dist/types/hooks/useAlignActiveElement.d.ts +5 -0
- package/dist/types/hooks/useAlignElementToCanvas.d.ts +5 -0
- package/dist/types/hooks/useClickOutside.d.ts +7 -0
- package/dist/types/hooks/useCombineElement.d.ts +7 -0
- package/dist/types/hooks/useCopyAndPasteElement.d.ts +7 -0
- package/dist/types/hooks/useCreateElement.d.ts +50 -0
- package/dist/types/hooks/useDeleteElement.d.ts +5 -0
- package/dist/types/hooks/useElementContextmenu.d.ts +6 -0
- package/dist/types/hooks/useExport.d.ts +13 -0
- package/dist/types/hooks/useGlobalHotkey.d.ts +2 -0
- package/dist/types/hooks/useHeldSlideElement.d.ts +9 -0
- package/dist/types/hooks/useHideElement.d.ts +6 -0
- package/dist/types/hooks/useHistorySnapshot.d.ts +6 -0
- package/dist/types/hooks/useHoldAfterOpen.d.ts +2 -0
- package/dist/types/hooks/useImageHandler.d.ts +4 -0
- package/dist/types/hooks/useImport.d.ts +21 -0
- package/dist/types/hooks/useLink.d.ts +6 -0
- package/dist/types/hooks/useLockElement.d.ts +6 -0
- package/dist/types/hooks/useMediaPlayerTeleport.d.ts +5 -0
- package/dist/types/hooks/useMediaPoster.d.ts +8 -0
- package/dist/types/hooks/useMediaQueue.d.ts +24 -0
- package/dist/types/hooks/useMoveElement.d.ts +4 -0
- package/dist/types/hooks/useOrderElement.d.ts +6 -0
- package/dist/types/hooks/useOverlayPhase.d.ts +14 -0
- package/dist/types/hooks/usePasteDataTransfer.d.ts +7 -0
- package/dist/types/hooks/usePasteEvent.d.ts +2 -0
- package/dist/types/hooks/usePasteTextClipboardData.d.ts +8 -0
- package/dist/types/hooks/useScaleCanvas.d.ts +25 -0
- package/dist/types/hooks/useScreening.d.ts +8 -0
- package/dist/types/hooks/useSearch.d.ts +28 -0
- package/dist/types/hooks/useSectionHandler.d.ts +8 -0
- package/dist/types/hooks/useSelectElement.d.ts +5 -0
- package/dist/types/hooks/useShapeFormatPainter.d.ts +4 -0
- package/dist/types/hooks/useSlideBackgroundStyle.d.ts +19 -0
- package/dist/types/hooks/useSlideHandler.d.ts +16 -0
- package/dist/types/hooks/useSlideTheme.d.ts +16 -0
- package/dist/types/hooks/useUniformDisplayElement.d.ts +6 -0
- package/dist/types/i18n/cs/canvas/index.d.ts +3 -0
- package/dist/types/i18n/cs/common/index.d.ts +3 -0
- package/dist/types/i18n/cs/components/index.d.ts +3 -0
- package/dist/types/i18n/cs/configs/index.d.ts +3 -0
- package/dist/types/i18n/cs/editor/index.d.ts +3 -0
- package/dist/types/i18n/cs/export/index.d.ts +3 -0
- package/dist/types/i18n/cs/index.d.ts +3 -0
- package/dist/types/i18n/cs/mobile/index.d.ts +3 -0
- package/dist/types/i18n/cs/screen/index.d.ts +3 -0
- package/dist/types/i18n/en/canvas/index.d.ts +3 -0
- package/dist/types/i18n/en/common/index.d.ts +3 -0
- package/dist/types/i18n/en/components/index.d.ts +3 -0
- package/dist/types/i18n/en/configs/index.d.ts +3 -0
- package/dist/types/i18n/en/editor/index.d.ts +3 -0
- package/dist/types/i18n/en/export/index.d.ts +3 -0
- package/dist/types/i18n/en/index.d.ts +3 -0
- package/dist/types/i18n/en/mobile/index.d.ts +3 -0
- package/dist/types/i18n/en/screen/index.d.ts +3 -0
- package/dist/types/i18n/formatters.d.ts +6 -0
- package/dist/types/i18n/getLL.d.ts +8 -0
- package/dist/types/i18n/i18n-react.d.ts +23 -0
- package/dist/types/i18n/i18n-types.d.ts +10276 -0
- package/dist/types/i18n/i18n-util.async.d.ts +16 -0
- package/dist/types/i18n/i18n-util.d.ts +24 -0
- package/dist/types/i18n/i18n-util.sync.d.ts +4 -0
- package/dist/types/i18n/locale.d.ts +12 -0
- package/dist/types/i18n/pl/canvas/index.d.ts +3 -0
- package/dist/types/i18n/pl/common/index.d.ts +3 -0
- package/dist/types/i18n/pl/components/index.d.ts +3 -0
- package/dist/types/i18n/pl/configs/index.d.ts +3 -0
- package/dist/types/i18n/pl/editor/index.d.ts +3 -0
- package/dist/types/i18n/pl/export/index.d.ts +3 -0
- package/dist/types/i18n/pl/index.d.ts +3 -0
- package/dist/types/i18n/pl/mobile/index.d.ts +3 -0
- package/dist/types/i18n/pl/screen/index.d.ts +3 -0
- package/dist/types/i18n/sk/canvas/index.d.ts +3 -0
- package/dist/types/i18n/sk/common/index.d.ts +3 -0
- package/dist/types/i18n/sk/components/index.d.ts +3 -0
- package/dist/types/i18n/sk/configs/index.d.ts +3 -0
- package/dist/types/i18n/sk/editor/index.d.ts +3 -0
- package/dist/types/i18n/sk/export/index.d.ts +3 -0
- package/dist/types/i18n/sk/index.d.ts +3 -0
- package/dist/types/i18n/sk/mobile/index.d.ts +3 -0
- package/dist/types/i18n/sk/screen/index.d.ts +3 -0
- package/dist/types/i18n/useI18nContext.d.ts +1 -0
- package/dist/types/previewRaster/diffPaintedSlide.d.ts +11 -0
- package/dist/types/previewRaster/index.d.ts +9 -0
- package/dist/types/previewRaster/painters/background.d.ts +2 -0
- package/dist/types/previewRaster/painters/booth.d.ts +13 -0
- package/dist/types/previewRaster/painters/chart.d.ts +2 -0
- package/dist/types/previewRaster/painters/code.d.ts +2 -0
- package/dist/types/previewRaster/painters/image.d.ts +2 -0
- package/dist/types/previewRaster/painters/index.d.ts +3 -0
- package/dist/types/previewRaster/painters/line.d.ts +2 -0
- package/dist/types/previewRaster/painters/media.d.ts +2 -0
- package/dist/types/previewRaster/painters/shape.d.ts +2 -0
- package/dist/types/previewRaster/painters/table.d.ts +2 -0
- package/dist/types/previewRaster/painters/text.d.ts +2 -0
- package/dist/types/previewRaster/planSlideRaster.d.ts +19 -0
- package/dist/types/previewRaster/rasterCache.d.ts +19 -0
- package/dist/types/previewRaster/scheduler.d.ts +4 -0
- package/dist/types/previewRaster/stagePool.d.ts +36 -0
- package/dist/types/previewRaster/stats.d.ts +10 -0
- package/dist/types/previewRaster/subscribeSlides.d.ts +10 -0
- package/dist/types/previewRaster/types.d.ts +12 -0
- package/dist/types/services/fetch.d.ts +2 -0
- package/dist/types/services/index.d.ts +10 -0
- package/dist/types/store/accessors.d.ts +21 -0
- package/dist/types/store/importConfirm.d.ts +13 -0
- package/dist/types/store/index.d.ts +10 -0
- package/dist/types/store/keyboard.d.ts +21 -0
- package/dist/types/store/main.d.ts +83 -0
- package/dist/types/store/screen.d.ts +8 -0
- package/dist/types/store/slides.d.ts +3289 -0
- package/dist/types/store/snapshot.d.ts +16 -0
- package/dist/types/types/css.d.ts +7 -0
- package/dist/types/types/edit.d.ts +118 -0
- package/dist/types/types/export.d.ts +1 -0
- package/dist/types/types/injectKey.d.ts +12 -0
- package/dist/types/types/mobile.d.ts +1 -0
- package/dist/types/types/slides.d.ts +599 -0
- package/dist/types/types/toolbar.d.ts +9 -0
- package/dist/types/utils/agentText.d.ts +28 -0
- package/dist/types/utils/assetBase.d.ts +4 -0
- package/dist/types/utils/canvasHitTest.d.ts +188 -0
- package/dist/types/utils/canvasPointer.d.ts +53 -0
- package/dist/types/utils/canvasZoom.d.ts +36 -0
- package/dist/types/utils/clipboard.d.ts +9 -0
- package/dist/types/utils/clonePlain.d.ts +1 -0
- package/dist/types/utils/codeHighlight.d.ts +84 -0
- package/dist/types/utils/codePptxExport.d.ts +44 -0
- package/dist/types/utils/commandHistory.d.ts +17 -0
- package/dist/types/utils/commitSlideElements.d.ts +6 -0
- package/dist/types/utils/common.d.ts +30 -0
- package/dist/types/utils/crypto.d.ts +10 -0
- package/dist/types/utils/cssm.d.ts +4 -0
- package/dist/types/utils/database.d.ts +20 -0
- package/dist/types/utils/debounce.d.ts +19 -0
- package/dist/types/utils/element.d.ts +369 -0
- package/dist/types/utils/elementOrder.d.ts +8 -0
- package/dist/types/utils/elementOutline.d.ts +41 -0
- package/dist/types/utils/elementPaint.d.ts +129 -0
- package/dist/types/utils/emitter.d.ts +54 -0
- package/dist/types/utils/exportFonts.d.ts +22 -0
- package/dist/types/utils/fitLabel.d.ts +17 -0
- package/dist/types/utils/font.d.ts +14 -0
- package/dist/types/utils/freehand.d.ts +57 -0
- package/dist/types/utils/fullscreen.d.ts +3 -0
- package/dist/types/utils/gestureBind.d.ts +18 -0
- package/dist/types/utils/hotkeyTarget.d.ts +2 -0
- package/dist/types/utils/htmlParser/format.d.ts +3 -0
- package/dist/types/utils/htmlParser/index.d.ts +4 -0
- package/dist/types/utils/htmlParser/lexer.d.ts +2 -0
- package/dist/types/utils/htmlParser/parser.d.ts +15 -0
- package/dist/types/utils/htmlParser/stringify.d.ts +3 -0
- package/dist/types/utils/htmlParser/tags.d.ts +4 -0
- package/dist/types/utils/htmlParser/types.d.ts +55 -0
- package/dist/types/utils/hyperlinkFollow.d.ts +12 -0
- package/dist/types/utils/image.d.ts +25 -0
- package/dist/types/utils/imageBitmapCache.d.ts +6 -0
- package/dist/types/utils/imagePaintSample.d.ts +34 -0
- package/dist/types/utils/importApply.d.ts +31 -0
- package/dist/types/utils/inkCommands.d.ts +68 -0
- package/dist/types/utils/jobProgress.d.ts +36 -0
- package/dist/types/utils/latex.d.ts +27 -0
- package/dist/types/utils/latexToOmml.d.ts +28 -0
- package/dist/types/utils/liveElementOffset.d.ts +56 -0
- package/dist/types/utils/liveElementPaint.d.ts +13 -0
- package/dist/types/utils/liveElementSize.d.ts +33 -0
- package/dist/types/utils/liveLayoutCommit.d.ts +2 -0
- package/dist/types/utils/markdown.d.ts +48 -0
- package/dist/types/utils/math.d.ts +90 -0
- package/dist/types/utils/mediaFile.d.ts +14 -0
- package/dist/types/utils/mediaLayout.d.ts +24 -0
- package/dist/types/utils/mediaPoster.d.ts +12 -0
- package/dist/types/utils/mermaid.d.ts +18 -0
- package/dist/types/utils/message.d.ts +27 -0
- package/dist/types/utils/object.d.ts +10 -0
- package/dist/types/utils/openContextmenu.d.ts +29 -0
- package/dist/types/utils/placeholderLayout.d.ts +64 -0
- package/dist/types/utils/placeholderPaint.d.ts +57 -0
- package/dist/types/utils/portal.d.ts +37 -0
- package/dist/types/utils/pptxImportDiagnostics.d.ts +36 -0
- package/dist/types/utils/pptxImportFidelity.d.ts +138 -0
- package/dist/types/utils/pptxImportFonts.d.ts +34 -0
- package/dist/types/utils/pptxImportMetrics.d.ts +29 -0
- package/dist/types/utils/pptxImportPicture.d.ts +30 -0
- package/dist/types/utils/pptxImportText.d.ts +26 -0
- package/dist/types/utils/pptxSourcePackage.d.ts +19 -0
- package/dist/types/utils/pptxStructuredText.d.ts +6 -0
- package/dist/types/utils/pptxUnit.d.ts +19 -0
- package/dist/types/utils/prosemirror/caret.d.ts +22 -0
- package/dist/types/utils/prosemirror/commands/applyPlaceholderStyles.d.ts +29 -0
- package/dist/types/utils/prosemirror/commands/replaceText.d.ts +2 -0
- package/dist/types/utils/prosemirror/commands/setListStyle.d.ts +4 -0
- package/dist/types/utils/prosemirror/commands/setTextAlign.d.ts +5 -0
- package/dist/types/utils/prosemirror/commands/setTextIndent.d.ts +3 -0
- package/dist/types/utils/prosemirror/commands/toggleList.d.ts +8 -0
- package/dist/types/utils/prosemirror/commands/wrapEmptyBulletList.d.ts +5 -0
- package/dist/types/utils/prosemirror/commitEditor.d.ts +7 -0
- package/dist/types/utils/prosemirror/commitPolicy.d.ts +11 -0
- package/dist/types/utils/prosemirror/index.d.ts +6 -0
- package/dist/types/utils/prosemirror/plugins/index.d.ts +7 -0
- package/dist/types/utils/prosemirror/plugins/inputrules.d.ts +7 -0
- package/dist/types/utils/prosemirror/plugins/keymap.d.ts +3 -0
- package/dist/types/utils/prosemirror/plugins/placeholder.d.ts +2 -0
- package/dist/types/utils/prosemirror/plugins/placeholderFill.d.ts +3 -0
- package/dist/types/utils/prosemirror/richTextAttrsFromElement.d.ts +3 -0
- package/dist/types/utils/prosemirror/schema/index.d.ts +26 -0
- package/dist/types/utils/prosemirror/schema/marks.d.ts +18 -0
- package/dist/types/utils/prosemirror/schema/nodes.d.ts +12 -0
- package/dist/types/utils/prosemirror/selection.d.ts +15 -0
- package/dist/types/utils/prosemirror/utils.d.ts +69 -0
- package/dist/types/utils/scribbleJoin.d.ts +27 -0
- package/dist/types/utils/selection.d.ts +1 -0
- package/dist/types/utils/slideOrder.d.ts +3 -0
- package/dist/types/utils/snap.d.ts +69 -0
- package/dist/types/utils/spatial/hitIndex.d.ts +18 -0
- package/dist/types/utils/spatial/index.d.ts +3 -0
- package/dist/types/utils/spatial/segment.d.ts +8 -0
- package/dist/types/utils/spatial/snapIndex.d.ts +24 -0
- package/dist/types/utils/svg2Base64.d.ts +1 -0
- package/dist/types/utils/svgPathParser.d.ts +12 -0
- package/dist/types/utils/textBoxLock.d.ts +17 -0
- package/dist/types/utils/textContrast.d.ts +204 -0
- package/dist/types/utils/textFit.d.ts +195 -0
- package/dist/types/utils/textParser.d.ts +5 -0
- package/dist/types/utils/tooltipBind.d.ts +10 -0
- package/dist/types/views/Editor/Canvas/AlignmentLine.d.ts +13 -0
- package/dist/types/views/Editor/Canvas/CanvasScrollbars.d.ts +16 -0
- package/dist/types/views/Editor/Canvas/EditableElement.d.ts +13 -0
- package/dist/types/views/Editor/Canvas/EditableElement.equal.d.ts +17 -0
- package/dist/types/views/Editor/Canvas/ElementCreateSelection.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/AnimationIndex.d.ts +9 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/BorderPanel.d.ts +2 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ChartToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/CodeToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ImageToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LatexToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LineToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ShapeToolbar.d.ts +7 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TableToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextStyleControls.d.ts +2 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextToolbar.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/index.d.ts +8 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/LinkHandler.d.ts +8 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/floatCompare.d.ts +15 -0
- package/dist/types/views/Editor/Canvas/ElementFloatLayer/index.d.ts +12 -0
- package/dist/types/views/Editor/Canvas/GridLines.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/HitLayer.d.ts +19 -0
- package/dist/types/views/Editor/Canvas/LinkDialog.d.ts +5 -0
- package/dist/types/views/Editor/Canvas/MouseSelection.d.ts +8 -0
- package/dist/types/views/Editor/Canvas/Operate/BorderLine.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/CommonElementOperate.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/ContextMenuBridge.d.ts +9 -0
- package/dist/types/views/Editor/Canvas/Operate/ImageElementOperate.d.ts +10 -0
- package/dist/types/views/Editor/Canvas/Operate/LineElementOperate.d.ts +9 -0
- package/dist/types/views/Editor/Canvas/Operate/MediaElementOperate.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/MultiSelectOperate.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/ResizeHandler.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/RotateHandler.d.ts +8 -0
- package/dist/types/views/Editor/Canvas/Operate/ShapeElementOperate.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/Operate/TableElementOperate.d.ts +10 -0
- package/dist/types/views/Editor/Canvas/Operate/TextElementOperate.d.ts +10 -0
- package/dist/types/views/Editor/Canvas/Operate/index.d.ts +25 -0
- package/dist/types/views/Editor/Canvas/Operate/operateCompare.d.ts +33 -0
- package/dist/types/views/Editor/Canvas/Operate/operateMemo.d.ts +12 -0
- package/dist/types/views/Editor/Canvas/Operate/stopHandleEvent.d.ts +3 -0
- package/dist/types/views/Editor/Canvas/Operate/useLatest.d.ts +2 -0
- package/dist/types/views/Editor/Canvas/Ruler.d.ts +14 -0
- package/dist/types/views/Editor/Canvas/ShapeCreateCanvas.d.ts +7 -0
- package/dist/types/views/Editor/Canvas/ViewportBackground.d.ts +2 -0
- package/dist/types/views/Editor/Canvas/elementListSync.d.ts +12 -0
- package/dist/types/views/Editor/Canvas/hooks/useCommonOperate.d.ts +44 -0
- package/dist/types/views/Editor/Canvas/hooks/useDragElement.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/hooks/useDragLineElement.d.ts +6 -0
- package/dist/types/views/Editor/Canvas/hooks/useDrop.d.ts +4 -0
- package/dist/types/views/Editor/Canvas/hooks/useInsertFromCreateSelection.d.ts +13 -0
- package/dist/types/views/Editor/Canvas/hooks/useMouseSelection.d.ts +14 -0
- package/dist/types/views/Editor/Canvas/hooks/useMoveShapeKeypoint.d.ts +5 -0
- package/dist/types/views/Editor/Canvas/hooks/useOperateChrome.d.ts +11 -0
- package/dist/types/views/Editor/Canvas/hooks/useRotateElement.d.ts +7 -0
- package/dist/types/views/Editor/Canvas/hooks/useRotateGroupElement.d.ts +7 -0
- package/dist/types/views/Editor/Canvas/hooks/useScaleElement.d.ts +12 -0
- package/dist/types/views/Editor/Canvas/hooks/useSelectElement.d.ts +5 -0
- package/dist/types/views/Editor/Canvas/hooks/useViewportSize.d.ts +13 -0
- package/dist/types/views/Editor/Canvas/index.d.ts +6 -0
- package/dist/types/views/Editor/CanvasTool/ChartPool.d.ts +8 -0
- package/dist/types/views/Editor/CanvasTool/LinePool.d.ts +10 -0
- package/dist/types/views/Editor/CanvasTool/MediaPicker.d.ts +7 -0
- package/dist/types/views/Editor/CanvasTool/SVGPathEditor.d.ts +8 -0
- package/dist/types/views/Editor/CanvasTool/ShapeItemThumbnail.d.ts +12 -0
- package/dist/types/views/Editor/CanvasTool/ShapePool.d.ts +15 -0
- package/dist/types/views/Editor/CanvasTool/SymbolPool.d.ts +7 -0
- package/dist/types/views/Editor/CanvasTool/TableGenerator.d.ts +12 -0
- package/dist/types/views/Editor/CanvasTool/VirtualSymbolGrid.d.ts +10 -0
- package/dist/types/views/Editor/CanvasTool/index.d.ts +7 -0
- package/dist/types/views/Editor/ChartDataEditorDialog.d.ts +2 -0
- package/dist/types/views/Editor/CodeEditorDialog.d.ts +2 -0
- package/dist/types/views/Editor/EditorHeader/HotkeyDoc.d.ts +6 -0
- package/dist/types/views/Editor/EditorHeader/index.d.ts +6 -0
- package/dist/types/views/Editor/ExportDialog/index.d.ts +4 -0
- package/dist/types/views/Editor/ImportReplaceDialog.d.ts +2 -0
- package/dist/types/views/Editor/InlineMathEditorDialog.d.ts +2 -0
- package/dist/types/views/Editor/LatexEditorDialog.d.ts +2 -0
- package/dist/types/views/Editor/MarkupPanel.d.ts +2 -0
- package/dist/types/views/Editor/MermaidEditorDialog.d.ts +2 -0
- package/dist/types/views/Editor/NotesPanel.d.ts +2 -0
- package/dist/types/views/Editor/Remark/Editor.d.ts +6 -0
- package/dist/types/views/Editor/Remark/index.d.ts +11 -0
- package/dist/types/views/Editor/SearchPanel.d.ts +2 -0
- package/dist/types/views/Editor/SelectPanel.d.ts +2 -0
- package/dist/types/views/Editor/SlideCodePanel.d.ts +11 -0
- package/dist/types/views/Editor/Thumbnails/ExportThemeDialog.d.ts +10 -0
- package/dist/types/views/Editor/Thumbnails/LayoutPicker.d.ts +9 -0
- package/dist/types/views/Editor/Thumbnails/index.d.ts +6 -0
- package/dist/types/views/Editor/Thumbnails/paneSize.d.ts +20 -0
- package/dist/types/views/Editor/Thumbnails/useThumbnailVirtualizer.d.ts +13 -0
- package/dist/types/views/Editor/Toolbar/ElementAnimationPanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementPositionPanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/AudioStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ThemeColorsSetting.d.ts +4 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/index.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/CodeStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/ImageStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/LatexStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/LineStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/ShapeStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/VideoStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/ElementStylePanel/index.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/MultiPositionPanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/MultiStylePanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/SlideAnimationPanel.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/SlideDesignPanel/ViewportSizeSetting.d.ts +7 -0
- package/dist/types/views/Editor/Toolbar/SlideDesignPanel/index.d.ts +7 -0
- package/dist/types/views/Editor/Toolbar/common/AnimationPool.d.ts +17 -0
- package/dist/types/views/Editor/Toolbar/common/BoxInsetControl.d.ts +14 -0
- package/dist/types/views/Editor/Toolbar/common/ElementColorMask.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/ElementFilter.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/ElementFlip.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/ElementOpacity.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/ElementOutline.d.ts +5 -0
- package/dist/types/views/Editor/Toolbar/common/ElementShadow.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/PanelSection.d.ts +10 -0
- package/dist/types/views/Editor/Toolbar/common/RichTextBase.d.ts +10 -0
- package/dist/types/views/Editor/Toolbar/common/SVGLine.d.ts +10 -0
- package/dist/types/views/Editor/Toolbar/common/TextStyleContent.d.ts +2 -0
- package/dist/types/views/Editor/Toolbar/common/handleElement.d.ts +19 -0
- package/dist/types/views/Editor/Toolbar/common/panelSwitch.d.ts +4 -0
- package/dist/types/views/Editor/Toolbar/common/textBoxStyle.d.ts +25 -0
- package/dist/types/views/Editor/Toolbar/index.d.ts +6 -0
- package/dist/types/views/Editor/Toolbar/paneSize.d.ts +15 -0
- package/dist/types/views/Editor/index.d.ts +2 -0
- package/dist/types/views/Editor/slideCodeMirror.d.ts +17 -0
- package/dist/types/views/Editor/slideCodeUtils.d.ts +14 -0
- package/dist/types/views/Editor/slideValidator.d.ts +12 -0
- package/dist/types/views/Mobile/MobileEditor/ElementToolbar.d.ts +1 -0
- package/dist/types/views/Mobile/MobileEditor/Header.d.ts +5 -0
- package/dist/types/views/Mobile/MobileEditor/MobileEditableElement.d.ts +7 -0
- package/dist/types/views/Mobile/MobileEditor/MobileOperate.d.ts +12 -0
- package/dist/types/views/Mobile/MobileEditor/SlideToolbar.d.ts +1 -0
- package/dist/types/views/Mobile/MobileEditor/index.d.ts +5 -0
- package/dist/types/views/Mobile/MobilePlayer.d.ts +5 -0
- package/dist/types/views/Mobile/MobilePreview.d.ts +5 -0
- package/dist/types/views/Mobile/MobileThumbnails.d.ts +3 -0
- package/dist/types/views/Mobile/index.d.ts +1 -0
- package/dist/types/views/Screen/AudienceView.d.ts +1 -0
- package/dist/types/views/Screen/BaseView.d.ts +3 -0
- package/dist/types/views/Screen/BottomThumbnails.d.ts +1 -0
- package/dist/types/views/Screen/CountdownTimer.d.ts +6 -0
- package/dist/types/views/Screen/LaserColorSwatches.d.ts +8 -0
- package/dist/types/views/Screen/LaserTrailOverlay.d.ts +11 -0
- package/dist/types/views/Screen/PresenterToolbar.d.ts +30 -0
- package/dist/types/views/Screen/PresenterView.d.ts +3 -0
- package/dist/types/views/Screen/ScreenElement.d.ts +12 -0
- package/dist/types/views/Screen/ScreenShell.d.ts +2 -0
- package/dist/types/views/Screen/ScreenSlide.d.ts +11 -0
- package/dist/types/views/Screen/ScreenSlideList.d.ts +15 -0
- package/dist/types/views/Screen/SlideThumbnails.d.ts +7 -0
- package/dist/types/views/Screen/WritingBoardTool.d.ts +9 -0
- package/dist/types/views/Screen/hooks/useExecPlay.d.ts +33 -0
- package/dist/types/views/Screen/hooks/useFullscreen.d.ts +5 -0
- package/dist/types/views/Screen/hooks/useScreenTools.d.ts +20 -0
- package/dist/types/views/Screen/hooks/useSlideSize.d.ts +11 -0
- package/dist/types/views/Screen/index.d.ts +2 -0
- package/dist/types/views/Screen/lazy.d.ts +2 -0
- package/dist/types/views/Screen/screenWindow.d.ts +11 -0
- package/dist/types/views/components/ThumbnailSlide/index.d.ts +13 -0
- package/dist/types/views/components/ThumbnailSlide/paintedSlide.d.ts +29 -0
- package/dist/types/views/components/element/AudioElement/ScreenAudioElement.d.ts +6 -0
- package/dist/types/views/components/element/AudioElement/index.d.ts +9 -0
- package/dist/types/views/components/element/ChartElement/BaseChartElement.d.ts +9 -0
- package/dist/types/views/components/element/ChartElement/Chart.d.ts +13 -0
- package/dist/types/views/components/element/ChartElement/chartBooth.d.ts +2 -0
- package/dist/types/views/components/element/ChartElement/chartOption.d.ts +17 -0
- package/dist/types/views/components/element/ChartElement/index.d.ts +9 -0
- package/dist/types/views/components/element/CodeElement/BaseCodeElement.d.ts +6 -0
- package/dist/types/views/components/element/CodeElement/CodeBlockSkeleton.d.ts +13 -0
- package/dist/types/views/components/element/CodeElement/CodeContent.d.ts +6 -0
- package/dist/types/views/components/element/CodeElement/index.d.ts +9 -0
- package/dist/types/views/components/element/ElementOutline.d.ts +8 -0
- package/dist/types/views/components/element/ImageElement/BaseImageElement.d.ts +6 -0
- package/dist/types/views/components/element/ImageElement/ImageBitmapSurface.d.ts +10 -0
- package/dist/types/views/components/element/ImageElement/ImageClipHandler.d.ts +15 -0
- package/dist/types/views/components/element/ImageElement/ImageOutline/ImageEllipseOutline.d.ts +8 -0
- package/dist/types/views/components/element/ImageElement/ImageOutline/ImagePolygonOutline.d.ts +9 -0
- package/dist/types/views/components/element/ImageElement/ImageOutline/ImageRectOutline.d.ts +9 -0
- package/dist/types/views/components/element/ImageElement/ImageOutline/index.d.ts +6 -0
- package/dist/types/views/components/element/ImageElement/index.d.ts +9 -0
- package/dist/types/views/components/element/ImageElement/useClipImage.d.ts +10 -0
- package/dist/types/views/components/element/ImageElement/useFilter.d.ts +4 -0
- package/dist/types/views/components/element/ImageElement/useImageBitmap.d.ts +2 -0
- package/dist/types/views/components/element/LatexElement/BaseLatexElement.d.ts +6 -0
- package/dist/types/views/components/element/LatexElement/LatexContent.d.ts +6 -0
- package/dist/types/views/components/element/LatexElement/index.d.ts +9 -0
- package/dist/types/views/components/element/LineElement/BaseLineElement.d.ts +6 -0
- package/dist/types/views/components/element/LineElement/LinePointMarker.d.ts +12 -0
- package/dist/types/views/components/element/LineElement/index.d.ts +9 -0
- package/dist/types/views/components/element/MediaPlayer/index.d.ts +20 -0
- package/dist/types/views/components/element/MediaPlayer/useMSE.d.ts +4 -0
- package/dist/types/views/components/element/MediaPlayer/useMediaPlayback.d.ts +67 -0
- package/dist/types/views/components/element/MermaidElement/BaseMermaidElement.d.ts +6 -0
- package/dist/types/views/components/element/MermaidElement/MermaidContent.d.ts +6 -0
- package/dist/types/views/components/element/MermaidElement/index.d.ts +9 -0
- package/dist/types/views/components/element/ProsemirrorEditor.d.ts +60 -0
- package/dist/types/views/components/element/ShapeElement/BaseShapeElement.d.ts +6 -0
- package/dist/types/views/components/element/ShapeElement/GradientDefs.d.ts +9 -0
- package/dist/types/views/components/element/ShapeElement/PatternDefs.d.ts +6 -0
- package/dist/types/views/components/element/ShapeElement/index.d.ts +10 -0
- package/dist/types/views/components/element/ShapeElement/shapePaintEqual.d.ts +15 -0
- package/dist/types/views/components/element/TableElement/BaseTableElement.d.ts +6 -0
- package/dist/types/views/components/element/TableElement/CustomTextarea.d.ts +12 -0
- package/dist/types/views/components/element/TableElement/EditableTable.d.ts +19 -0
- package/dist/types/views/components/element/TableElement/StaticTable.d.ts +12 -0
- package/dist/types/views/components/element/TableElement/cellEdit.d.ts +15 -0
- package/dist/types/views/components/element/TableElement/gridCompare.d.ts +28 -0
- package/dist/types/views/components/element/TableElement/index.d.ts +10 -0
- package/dist/types/views/components/element/TableElement/useHideCells.d.ts +4 -0
- package/dist/types/views/components/element/TableElement/useMathReady.d.ts +4 -0
- package/dist/types/views/components/element/TableElement/useSubThemeColor.d.ts +9 -0
- package/dist/types/views/components/element/TableElement/utils.d.ts +17 -0
- package/dist/types/views/components/element/TextElement/BaseTextElement.d.ts +15 -0
- package/dist/types/views/components/element/TextElement/index.d.ts +13 -0
- package/dist/types/views/components/element/VideoElement/ScreenVideoElement.d.ts +6 -0
- package/dist/types/views/components/element/VideoElement/index.d.ts +9 -0
- package/dist/types/views/components/element/hooks/useAutoShapeTextHeight.d.ts +2 -0
- package/dist/types/views/components/element/hooks/useElementFill.d.ts +5 -0
- package/dist/types/views/components/element/hooks/useElementFlip.d.ts +4 -0
- package/dist/types/views/components/element/hooks/useElementOutline.d.ts +10 -0
- package/dist/types/views/components/element/hooks/useElementShadow.d.ts +5 -0
- package/dist/types/views/components/element/hooks/useLiveBoxFit.d.ts +12 -0
- package/dist/types/views/components/element/hooks/useTextFit.d.ts +26 -0
- package/docs/RELEASE.md +14 -0
- package/package.json +26 -17
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { PPTElement } from '../../types/slides';
|
|
2
|
+
export declare function assertString(value: unknown, path: string, allowEmpty?: boolean): string;
|
|
3
|
+
export declare function assertId(value: unknown, path?: string): string;
|
|
4
|
+
export declare function assertOptionalId(value: unknown, path: string): string | undefined;
|
|
5
|
+
export declare function assertIdList(value: string | string[], path?: string): string[];
|
|
6
|
+
export declare function assertFiniteNumber(value: unknown, path: string): number;
|
|
7
|
+
export declare function assertPositiveNumber(value: unknown, path: string): number;
|
|
8
|
+
export declare function assertIndexInRange(index: unknown, length: number, path?: string): number;
|
|
9
|
+
export declare function assertInsertIndex(index: unknown, length: number, path?: string): number;
|
|
10
|
+
/** Store index (0-based) → agent-facing slide number (1-based). Empty deck → 0. */
|
|
11
|
+
export declare function toApiSlideIndex(storeIndex: number): number;
|
|
12
|
+
/**
|
|
13
|
+
* Agent-facing slide number (1-based) → store index (0-based).
|
|
14
|
+
* First slide is 1; last existing slide is `length`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function fromApiSlideIndex(index: unknown, length: number, path?: string): number;
|
|
17
|
+
/**
|
|
18
|
+
* Agent-facing insert position (1-based) → store splice index (0-based).
|
|
19
|
+
* Omit to append. `length + 1` also appends.
|
|
20
|
+
*/
|
|
21
|
+
export declare function fromApiInsertSlideIndex(index: unknown, length: number, path?: string): number;
|
|
22
|
+
export declare function assertColorString(value: unknown, path?: string): string;
|
|
23
|
+
export declare function assertColorFields(value: unknown, path?: string): void;
|
|
24
|
+
export declare function assertElementType(value: unknown, path?: string): PPTElement['type'];
|
|
25
|
+
export declare function assertElementDimensions(element: Partial<PPTElement>, path?: string): void;
|
|
26
|
+
export declare function assertElementSubtypeRequirements(element: Partial<PPTElement> & {
|
|
27
|
+
type?: unknown;
|
|
28
|
+
}, path?: string): void;
|
|
29
|
+
export declare function assertElementCreateInput(element: Partial<PPTElement> & {
|
|
30
|
+
type: PPTElement['type'];
|
|
31
|
+
}, path?: string): void;
|
|
32
|
+
export declare function assertElementPatch(patch: Partial<PPTElement>, current: PPTElement, path?: string): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FikaController, FikaDocument } from './types';
|
|
2
|
+
export declare function createController(options: {
|
|
3
|
+
onChange?: (document: FikaDocument) => void;
|
|
4
|
+
onChangeDebounceMs?: number;
|
|
5
|
+
onPresentationModeChange?: (screening: boolean) => void;
|
|
6
|
+
unmount?: () => void;
|
|
7
|
+
}): FikaController;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { mountFika, unmountFika } from './mount';
|
|
2
|
+
export type { FikaController, FikaDocument, FikaHeaderMenuItem, FikaMountOptions, FikaMountResult, FikaDocumentLoader, FikaStarterPresentationOptions, FikaTemplateLoader, FikaTemplatePayload, FikaImportPptxOptions, FikaImportApplyMode, FikaViewMode, } from './types';
|
|
3
|
+
export type { ExportTabId, FikaExportTabsConfig } from '../configs/exportTabs';
|
|
4
|
+
export type { FikaExportMediaResolver } from '../configs/exportMediaResolver';
|
|
5
|
+
export { createFikaMediaUploader, } from '../configs/mediaUpload';
|
|
6
|
+
export type { FikaMediaConfig, FikaMediaConstraints, FikaMediaKind, FikaMediaSizeLimit, FikaMediaUploadProgress, FikaMediaUploadRequest, FikaMediaUploadResult, FikaMediaUploader, FikaXhrMediaUploaderOptions, } from '../configs/mediaUpload';
|
|
7
|
+
export type * from './agentic/types';
|
|
8
|
+
export type { Locales as FikaLocales } from '../i18n/locale';
|
|
9
|
+
export type { ChartData, ChartOptions, ChartType, Note, NoteReply, PPTAnimation, PPTAudioElement, PPTChartElement, PPTElement, PPTElementLink, PPTImageElement, PPTLatexElement, PPTLineElement, PPTShapeElement, PPTTableElement, PPTTextElement, PPTVideoElement, ShapeText, Slide, SlideBackground, SlideTemplate, SlideTheme, TableCell, TableCellStyle, TextAlign, TurningMode, } from '../types/slides';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Slide } from '../types/slides';
|
|
2
|
+
import type { FikaDeckViewport } from './agentic/types';
|
|
3
|
+
/**
|
|
4
|
+
* Recover the authored coordinate space from element bounds.
|
|
5
|
+
*
|
|
6
|
+
* Agent/import pipelines often author at 1280×720. Remounting those slides on
|
|
7
|
+
* the 1000×16:9 default (or a persisted default written before inference)
|
|
8
|
+
* overflows the canvas. Prefer an explicit viewport when it actually contains
|
|
9
|
+
* the content; otherwise upgrade to the smallest standard size that fits.
|
|
10
|
+
*/
|
|
11
|
+
export declare function inferViewportFromSlides(slides: Slide[], existing?: Partial<FikaDeckViewport>): FikaDeckViewport | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'prosemirror-view/style/prosemirror.css';
|
|
2
|
+
import 'animate.css';
|
|
3
|
+
import '../assets/styles/prosemirror.scss';
|
|
4
|
+
import '../assets/styles/global.scss';
|
|
5
|
+
import '../assets/styles/font.scss';
|
|
6
|
+
import type { FikaMountOptions, FikaMountResult } from './types';
|
|
7
|
+
/**
|
|
8
|
+
* Mount Fika into a DOM node (for React / other embedding hosts).
|
|
9
|
+
* React is a peer dependency (`>19.2`). The host must provide React and React DOM.
|
|
10
|
+
*/
|
|
11
|
+
export declare function mountFika(target: HTMLElement | string, options?: FikaMountOptions): Promise<FikaMountResult>;
|
|
12
|
+
export declare function unmountFika(result: FikaMountResult): Promise<void>;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import type { FikaExportTabsConfig } from '../configs/exportTabs';
|
|
2
|
+
import type { FikaExportMediaResolver } from '../configs/exportMediaResolver';
|
|
3
|
+
import type { FikaMediaConfig } from '../configs/mediaUpload';
|
|
4
|
+
import type { Locales } from '../i18n/locale';
|
|
5
|
+
import type { Slide, SlideTheme, SlideTemplate } from '../types/slides';
|
|
6
|
+
import type { FikaAgentApi, FikaDeckViewport, FikaSlideReference } from './agentic/types';
|
|
7
|
+
export type { FikaExportMediaResolver };
|
|
8
|
+
export type { FikaMediaConfig, FikaMediaConstraints, FikaMediaKind, FikaMediaSizeLimit, FikaMediaUploadProgress, FikaMediaUploadRequest, FikaMediaUploadResult, FikaMediaUploader, FikaXhrMediaUploaderOptions } from '../configs/mediaUpload';
|
|
9
|
+
export interface FikaTemplatePayload {
|
|
10
|
+
title?: string;
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
slides: Slide[];
|
|
14
|
+
theme?: Partial<SlideTheme>;
|
|
15
|
+
}
|
|
16
|
+
export type FikaTemplateLoader = () => Promise<FikaTemplatePayload | Slide[]>;
|
|
17
|
+
export type FikaDocumentLoader = () => Promise<FikaDocument | null | undefined>;
|
|
18
|
+
export interface FikaStarterPresentationOptions {
|
|
19
|
+
title?: string;
|
|
20
|
+
titlePlaceholder?: string;
|
|
21
|
+
subtitlePlaceholder?: string;
|
|
22
|
+
bodyPlaceholder?: string;
|
|
23
|
+
titleFontSize?: number;
|
|
24
|
+
subtitleFontSize?: number;
|
|
25
|
+
contentTitleFontSize?: number;
|
|
26
|
+
bodyFontSize?: number;
|
|
27
|
+
placeholderColor?: string;
|
|
28
|
+
fontName?: string;
|
|
29
|
+
fontColor?: string;
|
|
30
|
+
backgroundColor?: string;
|
|
31
|
+
}
|
|
32
|
+
/** Serializable deck passed between the embedding host and Fika. */
|
|
33
|
+
export interface FikaDocument {
|
|
34
|
+
title: string;
|
|
35
|
+
slides: Slide[];
|
|
36
|
+
theme?: Partial<SlideTheme>;
|
|
37
|
+
/** Slide coordinate space. Omitted payloads keep the engine default (1000 × 16:9). */
|
|
38
|
+
viewport?: Partial<FikaDeckViewport>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Host-configured extra entry appended to the editor header's screening
|
|
42
|
+
* dropdown (below "from start" / "from current slide"). Labels are supplied by
|
|
43
|
+
* the host so no engine i18n keys are needed.
|
|
44
|
+
*/
|
|
45
|
+
export interface FikaHeaderMenuItem {
|
|
46
|
+
/** Stable id echoed back in `onSelect`. */
|
|
47
|
+
id: string;
|
|
48
|
+
/** Menu item label (host-localized). */
|
|
49
|
+
label: string;
|
|
50
|
+
/**
|
|
51
|
+
* Optional Lucide kebab-case name (`link`, `share-2`, `globe`, `cloud`)
|
|
52
|
+
* rendered before the label. Only a curated set is supported; unknown names
|
|
53
|
+
* render no icon.
|
|
54
|
+
*/
|
|
55
|
+
icon?: string;
|
|
56
|
+
/** Fired when the entry is clicked (the dropdown closes first). */
|
|
57
|
+
onSelect?: (id: string) => void;
|
|
58
|
+
}
|
|
59
|
+
/** `editor` is the default full editor; `presentation` boots straight into the fullscreen slideshow with no editor chrome. */
|
|
60
|
+
export type FikaViewMode = 'editor' | 'presentation';
|
|
61
|
+
export interface FikaMountOptions {
|
|
62
|
+
/** UI locale (`cs` | `en` | `sk` | `pl`). */
|
|
63
|
+
locale?: Locales;
|
|
64
|
+
/** Initial deck; takes precedence over `loadDocument` and the starter slide. */
|
|
65
|
+
document?: FikaDocument;
|
|
66
|
+
/** Optional async document loader for hosts that resolve a deck from the current URL/session. */
|
|
67
|
+
loadDocument?: FikaDocumentLoader;
|
|
68
|
+
/** Legacy demo behavior: when explicitly true, load `mocks/slides.json` instead of the starter slide. */
|
|
69
|
+
loadMockOnEmpty?: boolean;
|
|
70
|
+
/** Set false when the embed host renders its own empty/loading state. */
|
|
71
|
+
showLoadingData?: boolean;
|
|
72
|
+
/** Customize the default one-slide starter deck used when no existing document is loaded. */
|
|
73
|
+
starterPresentation?: FikaStarterPresentationOptions;
|
|
74
|
+
/** Base URL for runtime image/font assets and fallback mock decks. */
|
|
75
|
+
assetBaseUrl?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Host-supplied template catalog shown in the design picker.
|
|
78
|
+
* Payload JSON is resolved with `templateLoaders` keyed by `templates[].id`.
|
|
79
|
+
*/
|
|
80
|
+
templates?: SlideTemplate[];
|
|
81
|
+
/** Optional custom template payload loaders keyed by `templates[].id`. */
|
|
82
|
+
templateLoaders?: Record<string, FikaTemplateLoader>;
|
|
83
|
+
/** Fired when title, slides, or theme change (debounced). */
|
|
84
|
+
onChange?: (document: FikaDocument) => void;
|
|
85
|
+
onChangeDebounceMs?: number;
|
|
86
|
+
/** Fired when Fika enters or exits slideshow/presentation mode. */
|
|
87
|
+
onPresentationModeChange?: (screening: boolean) => void;
|
|
88
|
+
/**
|
|
89
|
+
* Toggle export dialog formats (`pptx`, `json`). Omitted keys stay enabled.
|
|
90
|
+
*/
|
|
91
|
+
exportTabs?: FikaExportTabsConfig;
|
|
92
|
+
/**
|
|
93
|
+
* Same-origin fallback when a direct browser fetch of an http(s) media URL
|
|
94
|
+
* fails (typically CORS on third-party hosts). Should return a `data:` URL
|
|
95
|
+
* or null/undefined to give up on that source.
|
|
96
|
+
*/
|
|
97
|
+
exportMediaResolver?: FikaExportMediaResolver;
|
|
98
|
+
/**
|
|
99
|
+
* Local media picker used by the unified Insert → Media action (images,
|
|
100
|
+
* video, and audio). Pass `upload` to send files to your backend instead of
|
|
101
|
+
* embedding data/blob URLs. Constraints (count, size, MIME, extensions) are
|
|
102
|
+
* enforced in the picker before upload.
|
|
103
|
+
*/
|
|
104
|
+
media?: FikaMediaConfig;
|
|
105
|
+
/**
|
|
106
|
+
* Extra entries appended to the editor header's screening dropdown. Lets an
|
|
107
|
+
* embedding host surface its own actions (e.g. "create public share link")
|
|
108
|
+
* inside the engine UI without touching the engine's i18n.
|
|
109
|
+
*/
|
|
110
|
+
headerMenuItems?: FikaHeaderMenuItem[];
|
|
111
|
+
/**
|
|
112
|
+
* Show a locale switcher at the end of the editor header's right cluster.
|
|
113
|
+
* Off by default — embedding hosts typically drive locale themselves.
|
|
114
|
+
* The standalone demo page turns this on.
|
|
115
|
+
*/
|
|
116
|
+
showLocaleSwitcher?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* When true (default), selecting a text range opens the right style panel
|
|
119
|
+
* after the pointer is released. Persisted in localStorage; an explicit
|
|
120
|
+
* value here wins for this mount.
|
|
121
|
+
*/
|
|
122
|
+
openPanelOnTextSelection?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* `presentation` mounts a presentation-only viewer: once the deck resolves,
|
|
125
|
+
* the fullscreen slideshow starts immediately and the editor never renders.
|
|
126
|
+
* Exiting the slideshow re-enters it, so the page stays a pure viewer.
|
|
127
|
+
*/
|
|
128
|
+
viewMode?: FikaViewMode;
|
|
129
|
+
}
|
|
130
|
+
export type FikaImportApplyMode = import('../utils/importApply').ImportApplyMode;
|
|
131
|
+
export interface FikaImportPptxOptions {
|
|
132
|
+
/**
|
|
133
|
+
* `replace` (default) overwrites the current deck. `append` inserts after
|
|
134
|
+
* the current slide. An empty deck (0 slides) is always replaced.
|
|
135
|
+
*/
|
|
136
|
+
mode?: FikaImportApplyMode;
|
|
137
|
+
/**
|
|
138
|
+
* Legacy alias for `mode`: `true` replace, `false` append.
|
|
139
|
+
* Prefer `mode`.
|
|
140
|
+
*/
|
|
141
|
+
cover?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* When replacing a deck that already has more than one slide, ask the user
|
|
144
|
+
* first. The editor UI defaults to `true`; `importPptx` defaults to `false`.
|
|
145
|
+
*/
|
|
146
|
+
confirm?: boolean;
|
|
147
|
+
/** Normalize the imported deck to the fixed 1000px viewport width. */
|
|
148
|
+
fixedViewport?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Repair unreadable text colors after import (painter's-algorithm
|
|
151
|
+
* background query + WCAG contrast). Intended for AI-generated decks;
|
|
152
|
+
* leave off for genuine user files.
|
|
153
|
+
*/
|
|
154
|
+
fixContrast?: boolean;
|
|
155
|
+
}
|
|
156
|
+
/** Public embed controller: legacy host methods plus the generic command and domain APIs. */
|
|
157
|
+
export interface FikaController extends FikaAgentApi {
|
|
158
|
+
getDocument(): FikaDocument;
|
|
159
|
+
setDocument(document: FikaDocument): void;
|
|
160
|
+
/**
|
|
161
|
+
* Parse a `.pptx` file and load it into the editor (same converter as the
|
|
162
|
+
* editor's Import menu — pptxtojson + fidelity extras). Resolves `true` once
|
|
163
|
+
* the deck is applied to the store (the `onChange` document follows), or
|
|
164
|
+
* `false` when the file could not be parsed.
|
|
165
|
+
*/
|
|
166
|
+
importPptx(data: File | Blob | ArrayBuffer, options?: FikaImportPptxOptions): Promise<boolean>;
|
|
167
|
+
setTitle(title: string): void;
|
|
168
|
+
setLocale(locale: Locales): Promise<void>;
|
|
169
|
+
goToSlide(slideIdOrIndex: FikaSlideReference): void;
|
|
170
|
+
nextSlide(): void;
|
|
171
|
+
previousSlide(): void;
|
|
172
|
+
setZoom(scale: number): void;
|
|
173
|
+
enterPresentation(): void;
|
|
174
|
+
exitPresentation(): void;
|
|
175
|
+
destroy(): void;
|
|
176
|
+
}
|
|
177
|
+
export interface FikaMountResult {
|
|
178
|
+
controller: FikaController;
|
|
179
|
+
/** Alias for `controller.destroy()`. */
|
|
180
|
+
app: {
|
|
181
|
+
unmount: () => void;
|
|
182
|
+
};
|
|
183
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { PPTShapeElement, ChartType } from '../types/slides';
|
|
2
|
+
import type { FikaMediaKind, FikaMediaUploadResult } from '../configs/mediaUpload';
|
|
3
|
+
import { type ShapePoolItem } from '../configs/shapes';
|
|
4
|
+
import type { LinePoolItem } from '../configs/lines';
|
|
5
|
+
import { type CodeEditorPayload } from '../configs/code';
|
|
6
|
+
interface CommonElementPosition {
|
|
7
|
+
top: number;
|
|
8
|
+
left: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
}
|
|
12
|
+
interface LineElementPosition {
|
|
13
|
+
top: number;
|
|
14
|
+
left: number;
|
|
15
|
+
start: [number, number];
|
|
16
|
+
end: [number, number];
|
|
17
|
+
}
|
|
18
|
+
interface CreateTextData {
|
|
19
|
+
content?: string;
|
|
20
|
+
vertical?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function takePendingCreatedTextId(): string;
|
|
23
|
+
export default _default;
|
|
24
|
+
declare function _default(): {
|
|
25
|
+
createImageElement: (src: string) => void;
|
|
26
|
+
createChartElement: (type: ChartType) => void;
|
|
27
|
+
createTableElement: (row: number, col: number) => void;
|
|
28
|
+
createTextElement: (position: CommonElementPosition, data?: CreateTextData) => void;
|
|
29
|
+
createShapeElement: (position: CommonElementPosition, data: ShapePoolItem, supplement?: Partial<PPTShapeElement>) => void;
|
|
30
|
+
createLineElement: (position: LineElementPosition, data: LinePoolItem) => void;
|
|
31
|
+
createLatexElement: (data: {
|
|
32
|
+
path: string;
|
|
33
|
+
latex: string;
|
|
34
|
+
w: number;
|
|
35
|
+
h: number;
|
|
36
|
+
}) => void;
|
|
37
|
+
createLatexElements: (dataList: {
|
|
38
|
+
latex: string;
|
|
39
|
+
w: number;
|
|
40
|
+
h: number;
|
|
41
|
+
path?: string;
|
|
42
|
+
}[]) => void;
|
|
43
|
+
createMermaidElement: (code: string) => void;
|
|
44
|
+
createCodeElement: (data: CodeEditorPayload) => void;
|
|
45
|
+
createVideoElement: (src: string, ext?: string) => void;
|
|
46
|
+
createAudioElement: (src: string, ext?: string) => void;
|
|
47
|
+
createMediaElements: (items: Array<FikaMediaUploadResult & {
|
|
48
|
+
kind: FikaMediaKind;
|
|
49
|
+
}>) => Promise<void>;
|
|
50
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PPTElement } from '../types/slides';
|
|
2
|
+
import type { ContextmenuItem } from '../components/Contextmenu/types';
|
|
3
|
+
export default _default;
|
|
4
|
+
declare function _default(openLinkDialog: () => void): {
|
|
5
|
+
contextmenus: (element: PPTElement, isMultiSelect: boolean) => ContextmenuItem[];
|
|
6
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Slide } from '../types/slides';
|
|
2
|
+
export default _default;
|
|
3
|
+
declare function _default(): {
|
|
4
|
+
exporting: boolean;
|
|
5
|
+
exportProgress: number;
|
|
6
|
+
exportSlide: number;
|
|
7
|
+
exportSlideTotal: number;
|
|
8
|
+
exportImage: (domRef: HTMLElement, format: string, quality: number, ignoreWebfont?: boolean) => void;
|
|
9
|
+
exportImagePPTX: (domRefs: NodeListOf<Element>) => void;
|
|
10
|
+
exportJSON: () => void;
|
|
11
|
+
exportSpecificFile: (_slides: Slide[]) => void;
|
|
12
|
+
exportPPTX: (_slides: Slide[], masterOverwrite?: boolean, ignoreMedia?: boolean) => Promise<void>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PPTElement } from '../types/slides';
|
|
2
|
+
/**
|
|
3
|
+
* Keep the last matching slide element while a modal is open.
|
|
4
|
+
* Store identity churn (new `elements` array, brief miss) must not unmount the editor.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useHeldSlideElement<T extends PPTElement>(editingElementId: string, visible: boolean, isMatch: (el: PPTElement) => el is T): {
|
|
7
|
+
element: T;
|
|
8
|
+
present: boolean;
|
|
9
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ImportApplyOptions } from '../utils/importApply';
|
|
2
|
+
export declare function getImportApi(): {
|
|
3
|
+
importSpecificFile: (files: FileList | File[], options?: boolean | ImportApplyOptions) => Promise<boolean>;
|
|
4
|
+
importJSON: (files: FileList | File[], options?: boolean | ImportApplyOptions) => Promise<boolean>;
|
|
5
|
+
importPPTXFile: (files: FileList | File[], options?: ImportApplyOptions & {
|
|
6
|
+
fixedViewport?: boolean;
|
|
7
|
+
fixContrast?: boolean;
|
|
8
|
+
}) => Promise<boolean>;
|
|
9
|
+
};
|
|
10
|
+
export default function useImport(): {
|
|
11
|
+
importSpecificFile: (files: FileList | File[], options?: boolean | ImportApplyOptions) => Promise<boolean>;
|
|
12
|
+
importJSON: (files: FileList | File[], options?: boolean | ImportApplyOptions) => Promise<boolean>;
|
|
13
|
+
importPPTXFile: (files: FileList | File[], options?: ImportApplyOptions & {
|
|
14
|
+
fixedViewport?: boolean;
|
|
15
|
+
fixContrast?: boolean;
|
|
16
|
+
}) => Promise<boolean>;
|
|
17
|
+
importing: boolean;
|
|
18
|
+
importProgress: number;
|
|
19
|
+
importSlide: number;
|
|
20
|
+
importSlideTotal: number;
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PPTAudioElement, PPTVideoElement } from '../types/slides';
|
|
2
|
+
type MediaPosterElement = PPTVideoElement | PPTAudioElement;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare function _default(element: () => MediaPosterElement, slideId?: () => string | undefined): {
|
|
5
|
+
synthesizing: boolean;
|
|
6
|
+
displayPoster: string;
|
|
7
|
+
persistPoster: (next: string) => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type FikaMediaKind, type FikaMediaUploadResult } from '../configs/mediaUpload';
|
|
2
|
+
import { type MediaFileRejection } from '../utils/mediaFile';
|
|
3
|
+
export type MediaQueueStatus = 'queued' | 'uploading' | 'processing' | 'ready' | 'error';
|
|
4
|
+
export interface MediaQueueItem {
|
|
5
|
+
id: string;
|
|
6
|
+
file: File;
|
|
7
|
+
kind: FikaMediaKind;
|
|
8
|
+
previewUrl: string;
|
|
9
|
+
status: MediaQueueStatus;
|
|
10
|
+
progress: number;
|
|
11
|
+
error?: string;
|
|
12
|
+
result?: FikaMediaUploadResult;
|
|
13
|
+
}
|
|
14
|
+
export default _default;
|
|
15
|
+
declare function _default(): {
|
|
16
|
+
items: MediaQueueItem[];
|
|
17
|
+
readyItems: MediaQueueItem[];
|
|
18
|
+
inFlight: boolean;
|
|
19
|
+
overallProgress: number;
|
|
20
|
+
addFiles: (fileList: FileList | File[]) => MediaFileRejection[];
|
|
21
|
+
removeItem: (id: string) => void;
|
|
22
|
+
retryItem: (id: string) => void;
|
|
23
|
+
reset: (preserveReadySrc?: boolean) => void;
|
|
24
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type OverlayPhase = 'closed' | 'enter' | 'open' | 'leave';
|
|
2
|
+
/**
|
|
3
|
+
* First painted frame of an open already has the enter class, and the first
|
|
4
|
+
* painted frame of a close already has the leave class. Setting those in
|
|
5
|
+
* `useEffect` paints one frame at the wrong opacity / display and looks like
|
|
6
|
+
* a violent blink.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useOverlayPhase(visible: boolean): {
|
|
9
|
+
phase: OverlayPhase;
|
|
10
|
+
onAnimationEnd: (event: React.AnimationEvent) => void;
|
|
11
|
+
shown: boolean;
|
|
12
|
+
entering: boolean;
|
|
13
|
+
leaving: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Step the displayed zoom (+/−) along the Chrome PDF preset ladder.
|
|
3
|
+
*/
|
|
4
|
+
export declare const scaleCanvas: (command: '+' | '-') => void;
|
|
5
|
+
export declare const applyCanvasZoomDelta: (deltaPercent: number) => void;
|
|
6
|
+
/**
|
|
7
|
+
* Set displayed zoom to an exact percent (toolbar presets: 50, 75, 100, … 200).
|
|
8
|
+
*/
|
|
9
|
+
export declare const setCanvasScalePercentage: (value: number) => void;
|
|
10
|
+
/**
|
|
11
|
+
* Reset canvas zoom to the default fit percentage and re-center the viewport.
|
|
12
|
+
*
|
|
13
|
+
* Always toggle `canvasDragged` so the viewport watcher runs `initViewportPosition`.
|
|
14
|
+
* Setting percentage alone only applies a relative size adjustment, and clearing an
|
|
15
|
+
* already-false drag flag is a Zustand no-op — both of which left the fit button looking broken.
|
|
16
|
+
*/
|
|
17
|
+
export declare const resetCanvas: () => void;
|
|
18
|
+
export default _default;
|
|
19
|
+
declare function _default(): {
|
|
20
|
+
canvasScalePercentage: string;
|
|
21
|
+
setCanvasScalePercentage: typeof setCanvasScalePercentage;
|
|
22
|
+
scaleCanvas: typeof scaleCanvas;
|
|
23
|
+
applyCanvasZoomDelta: typeof applyCanvasZoomDelta;
|
|
24
|
+
resetCanvas: typeof resetCanvas;
|
|
25
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface SearchTextResult {
|
|
2
|
+
elType: 'text' | 'shape';
|
|
3
|
+
slideId: string;
|
|
4
|
+
elId: string;
|
|
5
|
+
}
|
|
6
|
+
interface SearchTableResult {
|
|
7
|
+
elType: 'table';
|
|
8
|
+
slideId: string;
|
|
9
|
+
elId: string;
|
|
10
|
+
cellIndex: [number, number];
|
|
11
|
+
}
|
|
12
|
+
type SearchResult = SearchTextResult | SearchTableResult;
|
|
13
|
+
type Modifiers = 'g' | 'gi';
|
|
14
|
+
export default _default;
|
|
15
|
+
declare function _default(): {
|
|
16
|
+
searchWord: string;
|
|
17
|
+
setSearchWord: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
18
|
+
replaceWord: string;
|
|
19
|
+
setReplaceWord: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
20
|
+
searchResults: SearchResult[];
|
|
21
|
+
searchIndex: number;
|
|
22
|
+
modifiers: Modifiers;
|
|
23
|
+
searchNext: () => import("../utils/message").MessageIntance;
|
|
24
|
+
searchPrev: () => import("../utils/message").MessageIntance;
|
|
25
|
+
replace: () => void;
|
|
26
|
+
replaceAll: () => void;
|
|
27
|
+
toggleModifiers: () => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default _default;
|
|
2
|
+
declare function _default(): {
|
|
3
|
+
createSection: () => void;
|
|
4
|
+
removeSection: (sectionId: string) => void;
|
|
5
|
+
removeAllSection: () => void;
|
|
6
|
+
removeSectionSlides: (sectionId: string) => void;
|
|
7
|
+
updateSectionTitle: (sectionId: string, title: string) => void;
|
|
8
|
+
};
|