fika-editor 3.0.0 → 3.0.2
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/947.css +1 -0
- package/dist/embed/947.js +144 -0
- package/dist/embed/agentic-manifest.json +2407 -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/1505.js +8 -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 +3473 -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 +6 -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 +18 -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 +22 -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 +33 -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 +276 -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 +25 -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 +15 -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 +32 -0
- package/dist/types/embed/agentic/types.d.ts +2062 -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 +10 -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/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 +3304 -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 +18 -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 +200 -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/commitQueue.d.ts +13 -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/cssLength.d.ts +8 -0
- package/dist/types/utils/cssm.d.ts +4 -0
- package/dist/types/utils/database.d.ts +25 -0
- package/dist/types/utils/debounce.d.ts +19 -0
- package/dist/types/utils/diffPaintedSlide.d.ts +11 -0
- package/dist/types/utils/element.d.ts +387 -0
- package/dist/types/utils/elementOrder.d.ts +8 -0
- package/dist/types/utils/elementOutline.d.ts +41 -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 +18 -0
- package/dist/types/utils/imagePaintSample.d.ts +34 -0
- package/dist/types/utils/imageSize.d.ts +9 -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 +52 -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/mediaIntern.d.ts +12 -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 +83 -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 +10 -0
- package/dist/types/utils/prosemirror/commitPolicy.d.ts +11 -0
- package/dist/types/utils/prosemirror/index.d.ts +7 -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/screening.d.ts +10 -0
- package/dist/types/utils/scribbleJoin.d.ts +27 -0
- package/dist/types/utils/selection.d.ts +1 -0
- package/dist/types/utils/shapePaint.d.ts +23 -0
- package/dist/types/utils/simpleShape.d.ts +5 -0
- package/dist/types/utils/slideOrder.d.ts +13 -0
- package/dist/types/utils/snap.d.ts +78 -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/tableCellStyle.d.ts +12 -0
- package/dist/types/utils/tableStyleTarget.d.ts +3 -0
- package/dist/types/utils/textBoxLock.d.ts +17 -0
- package/dist/types/utils/textContrast.d.ts +228 -0
- package/dist/types/utils/textFit.d.ts +213 -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 +12 -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 +24 -0
- package/dist/types/views/Editor/Thumbnails/useThumbnailVirtualizer.d.ts +14 -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/LiveSlideThumb.d.ts +21 -0
- package/dist/types/views/components/ThumbnailSlide/index.d.ts +21 -0
- package/dist/types/views/components/ThumbnailSlide/paintedSlide.d.ts +29 -0
- package/dist/types/views/components/ThumbnailSlide/thumbSnapshot.d.ts +54 -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/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 +13 -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 +4 -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 +16 -0
- package/package.json +24 -18
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface MediaBox {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const DEFAULT_VIDEO_SIZE: MediaBox;
|
|
6
|
+
export declare const DEFAULT_AUDIO_SIZE: MediaBox;
|
|
7
|
+
export declare const COMPACT_AUDIO_MAX_PX = 96;
|
|
8
|
+
export declare const isCompactAudioBox: (width: number, height: number) => boolean;
|
|
9
|
+
export declare const mediaPlayerHostId: (elementId: string) => string;
|
|
10
|
+
export interface MediaPlacement extends MediaBox {
|
|
11
|
+
left: number;
|
|
12
|
+
top: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Symmetric row counts that read as a simple shape on a slide:
|
|
16
|
+
* pair, triangle, square, hexagon-like, etc.
|
|
17
|
+
*/
|
|
18
|
+
export declare const mediaRowPattern: (count: number) => number[];
|
|
19
|
+
export declare const fitBox: (srcW: number, srcH: number, maxW: number, maxH: number) => MediaBox;
|
|
20
|
+
/**
|
|
21
|
+
* Place boxes in a centered, symmetric bouquet. Items keep their aspect
|
|
22
|
+
* ratio and are not grouped — callers should select at most one afterwards.
|
|
23
|
+
*/
|
|
24
|
+
export declare const layoutMediaBoxes: (boxes: MediaBox[], canvasWidth: number, canvasHeight: number) => MediaPlacement[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface SynthesizeMediaPosterOptions {
|
|
2
|
+
kind: 'video' | 'audio';
|
|
3
|
+
src: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
signal?: AbortSignal;
|
|
6
|
+
}
|
|
7
|
+
export declare const captureVideoPoster: (video: HTMLVideoElement | null, opts?: {
|
|
8
|
+
acceptBlank?: boolean;
|
|
9
|
+
}) => string | null;
|
|
10
|
+
export declare const synthesizeVideoPoster: (src: string, signal?: AbortSignal) => Promise<string | null>;
|
|
11
|
+
export declare const synthesizeAudioPoster: (src: string, color?: string, signal?: AbortSignal) => Promise<string | null>;
|
|
12
|
+
export declare const synthesizeMediaPoster: (opts: SynthesizeMediaPosterOptions) => Promise<string | null>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type MermaidAPI = {
|
|
2
|
+
initialize: (config: Record<string, unknown>) => void;
|
|
3
|
+
render: (id: string, code: string) => Promise<{
|
|
4
|
+
svg: string;
|
|
5
|
+
}>;
|
|
6
|
+
};
|
|
7
|
+
type DOMPurifyAPI = {
|
|
8
|
+
sanitize: (dirty: string, config?: Record<string, unknown>) => string;
|
|
9
|
+
};
|
|
10
|
+
export declare class MermaidRenderSuperseded extends Error {
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
13
|
+
export declare const isMermaidRenderSuperseded: (err: unknown) => boolean;
|
|
14
|
+
export declare const whenMermaidReady: () => Promise<[MermaidAPI, DOMPurifyAPI]>;
|
|
15
|
+
export declare const prefetchMermaid: () => void;
|
|
16
|
+
export declare const isMermaidReady: () => boolean;
|
|
17
|
+
export declare const renderMermaid: (code: string, key?: string) => Promise<string>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface MessageOptions {
|
|
2
|
+
type?: 'info' | 'success' | 'warning' | 'error' | 'loading';
|
|
3
|
+
title?: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
duration?: number;
|
|
6
|
+
closable?: boolean;
|
|
7
|
+
ctx?: unknown;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export type MessageTypeOptions = Omit<MessageOptions, 'type' | 'message'>;
|
|
11
|
+
export interface MessageIntance {
|
|
12
|
+
id: string;
|
|
13
|
+
close: () => void;
|
|
14
|
+
}
|
|
15
|
+
export type MessageFn = (message: string, options?: MessageTypeOptions) => MessageIntance;
|
|
16
|
+
export interface Message {
|
|
17
|
+
(options: MessageOptions): MessageIntance;
|
|
18
|
+
info: MessageFn;
|
|
19
|
+
success: MessageFn;
|
|
20
|
+
error: MessageFn;
|
|
21
|
+
warning: MessageFn;
|
|
22
|
+
loading: MessageFn;
|
|
23
|
+
closeAll: () => void;
|
|
24
|
+
_context?: unknown;
|
|
25
|
+
}
|
|
26
|
+
declare const message: Message;
|
|
27
|
+
export default message;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copy `obj` without `keys`. Spread-then-delete so Immer drafts are not mutated in place.
|
|
3
|
+
*/
|
|
4
|
+
export declare function omit<T extends object>(obj: T, keys: string | string[]): T;
|
|
5
|
+
/**
|
|
6
|
+
* Deep equality for JSON-like values (slides, plain objects, arrays).
|
|
7
|
+
* Key order does not matter; array order does. Cycles are compared by pairing.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isEqual(a: unknown, b: unknown): boolean;
|
|
10
|
+
export declare function arraysEqual<T>(a: readonly T[] | null | undefined, b: readonly T[] | null | undefined): boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ContextmenuItem } from '../components/Contextmenu/types';
|
|
2
|
+
export interface ContextmenuRenderProps {
|
|
3
|
+
axis: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
};
|
|
7
|
+
bounds?: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
el: HTMLElement;
|
|
12
|
+
menus: ContextmenuItem[];
|
|
13
|
+
removeContextmenu: () => void;
|
|
14
|
+
}
|
|
15
|
+
type Menus = ContextmenuItem[] | ((el: HTMLElement) => ContextmenuItem[] | null | undefined);
|
|
16
|
+
interface ContextmenuPointerEvent {
|
|
17
|
+
stopPropagation(): void;
|
|
18
|
+
preventDefault(): void;
|
|
19
|
+
currentTarget: EventTarget | null;
|
|
20
|
+
target?: EventTarget | null;
|
|
21
|
+
clientX: number;
|
|
22
|
+
clientY: number;
|
|
23
|
+
x?: number;
|
|
24
|
+
y?: number;
|
|
25
|
+
}
|
|
26
|
+
type ContextmenuRenderer = (container: HTMLElement, props: ContextmenuRenderProps) => void | (() => void);
|
|
27
|
+
export declare function setContextmenuRenderer(fn: ContextmenuRenderer | null): void;
|
|
28
|
+
export declare function openContextmenu(event: ContextmenuPointerEvent, menusOrFn: Menus): void;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { PPTTextElement, Slide, TextAlignVertical, TextInset } from '../types/slides';
|
|
2
|
+
export { elementLocksTextBox, shapeTextLocksSize, textElementLocksSize } from './textBoxLock';
|
|
3
|
+
export interface PlaceholderBoxMetrics {
|
|
4
|
+
placeholderFontSize?: number;
|
|
5
|
+
lineHeight?: number;
|
|
6
|
+
inset?: TextInset;
|
|
7
|
+
/** Lines of placeholder-sized text the box should fit (default 1). */
|
|
8
|
+
lines?: number;
|
|
9
|
+
paragraphSpace?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Minimum box height from placeholder typography: vertical inset + text lines at
|
|
13
|
+
* placeholderFontSize × lineHeight (+ paragraph gaps between lines).
|
|
14
|
+
*/
|
|
15
|
+
export declare const computePlaceholderMinBoxHeight: (metrics?: PlaceholderBoxMetrics) => number;
|
|
16
|
+
/**
|
|
17
|
+
* Empty-slot height: the larger of the quiet prompt and the typed default.
|
|
18
|
+
* Used only while the placeholder is empty. Filled auto-height hugs the text.
|
|
19
|
+
*/
|
|
20
|
+
export declare const computePlaceholderSlotHeight: (el: Pick<PPTTextElement, 'placeholderFontSize' | 'lineHeight' | 'inset' | 'paragraphSpace' | 'textType'> & {
|
|
21
|
+
lines?: number;
|
|
22
|
+
}) => number;
|
|
23
|
+
/** Fixed slot height: the larger of the two paints, never smaller than a stored layout height. */
|
|
24
|
+
export declare const getPlaceholderBaselineHeight: (el: PPTTextElement) => number;
|
|
25
|
+
export declare const isPlaceholderElement: (el: PPTTextElement) => boolean;
|
|
26
|
+
/** Title placeholder on content slides (slide 2+): left-aligned, vertically centered in the layout box. */
|
|
27
|
+
export declare const isContentSlideTitlePlaceholder: (el: PPTTextElement, slideType?: Slide['type']) => boolean;
|
|
28
|
+
export interface TextBoxLayout {
|
|
29
|
+
fixedHeight: boolean;
|
|
30
|
+
vAlign: TextAlignVertical;
|
|
31
|
+
/** Flex-column vertical centering without locking box height (content slides title). */
|
|
32
|
+
flexCenterInLayoutBox: boolean;
|
|
33
|
+
/** Empty placeholder slot (dashed prompt). */
|
|
34
|
+
emptyPlaceholder: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Auto-height paint floored at the committed height (empty placeholder
|
|
37
|
+
* slots, filled content-slide titles): `height: auto` + `min-height`. The
|
|
38
|
+
* box grows with the text the same frame the text grows — no clip, and the
|
|
39
|
+
* painted box never lags behind its glyphs.
|
|
40
|
+
*/
|
|
41
|
+
slotFlooredAuto: boolean;
|
|
42
|
+
/** Flex-column paint: fixed boxes, empty slots, centered layout titles. */
|
|
43
|
+
flexColumn: boolean;
|
|
44
|
+
/** Definite px `height` paint: explicit fixed-height boxes only. */
|
|
45
|
+
lockPaintHeight: boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare const V_ALIGN_JUSTIFY: {
|
|
48
|
+
readonly top: 'flex-start';
|
|
49
|
+
readonly middle: 'center';
|
|
50
|
+
readonly bottom: 'flex-end';
|
|
51
|
+
};
|
|
52
|
+
export declare const resolveTextBoxLayout: (el: PPTTextElement, slideType?: Slide['type'], contentEmpty?: boolean) => TextBoxLayout;
|
|
53
|
+
/**
|
|
54
|
+
* Live paint mode. `fit` shrinks type; `grow` grows the box; `slot` is the
|
|
55
|
+
* empty dashed placeholder (definite height, no shrink-to-fit).
|
|
56
|
+
*/
|
|
57
|
+
export type TextBoxLiveMode = 'grow' | 'fit' | 'slot';
|
|
58
|
+
export declare const textBoxLiveMode: (el: Pick<PPTTextElement, 'fixedHeight' | 'vertical'>, layout: TextBoxLayout) => TextBoxLiveMode;
|
|
59
|
+
/** Painted size for unmarked runs. Placeholder/title slots use the typed size, not 16. */
|
|
60
|
+
export declare const authoredTextFitSize: (el: Pick<PPTTextElement, 'placeholder' | 'placeholderFontSize' | 'textType'>) => number;
|
|
61
|
+
export declare const textBoxPaintSize: (el: PPTTextElement, layout: TextBoxLayout) => {
|
|
62
|
+
width: string;
|
|
63
|
+
height: string;
|
|
64
|
+
minHeight: string;
|
|
65
|
+
};
|
|
66
|
+
export declare const textBoxFlexColumn: (layout: TextBoxLayout) => boolean;
|
|
67
|
+
export declare const textBoxJustify: (layout: TextBoxLayout) => "center" | "flex-end" | "flex-start";
|
|
68
|
+
/**
|
|
69
|
+
* The ONE rule for auto-height commits: the box tracks its text but never
|
|
70
|
+
* shrinks below its slot floor. Empty slots keep the dashed frame, filled
|
|
71
|
+
* content-slide titles keep their centered layout slot, every other filled
|
|
72
|
+
* box hugs the text. The floor never exceeds the current height, so an
|
|
73
|
+
* already-short slot is never surprise-grown. Returns null when the store
|
|
74
|
+
* height must not change.
|
|
75
|
+
*/
|
|
76
|
+
export declare const textBoxAutoHeight: (el: PPTTextElement, layout: TextBoxLayout, measuredTextHeight: number) => number | null;
|
|
77
|
+
/** Slot floor for drag-time height measurements (store content, no live editor state). */
|
|
78
|
+
export declare const placeholderHeightFloor: (el: PPTTextElement, slideType?: Slide['type']) => number;
|
|
79
|
+
/**
|
|
80
|
+
* Fixed mode restores a placeholder to its slot: its "fixed size" is the
|
|
81
|
+
* designed slot, not whatever the text last hugged.
|
|
82
|
+
*/
|
|
83
|
+
export declare const placeholderFixedRestoreHeight: (el: PPTTextElement) => number;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { CSSPropertiesWithVars } from '../types/css';
|
|
2
|
+
import type { PPTTextElement, TextAlign } from '../types/slides';
|
|
3
|
+
import { isListPlaceholderType, placeholderAlignOf } from '../configs/textPresets';
|
|
4
|
+
import type { PlaceholderStyleOptions } from './prosemirror/commands/applyPlaceholderStyles';
|
|
5
|
+
export { isListPlaceholderType, placeholderAlignOf };
|
|
6
|
+
export declare const EMPTY_LIST_HTML = "<ul><li><p></p></li></ul>";
|
|
7
|
+
export declare const EMPTY_PARA_HTML = "<p></p>";
|
|
8
|
+
export declare const isEmptyRichText: (html?: string) => boolean;
|
|
9
|
+
export declare const isUnfilledPlaceholder: (el: {
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
content?: string;
|
|
12
|
+
}) => boolean;
|
|
13
|
+
/** Slide previews paint authored text only. Empty placeholder prompts stay on the canvas. */
|
|
14
|
+
export declare const shouldRasterPreviewText: (el: {
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
content?: string;
|
|
17
|
+
}) => boolean;
|
|
18
|
+
/** Rewrite leaked prompt-size marks (36 on a cover title) back to the typed size. */
|
|
19
|
+
export declare const repairFilledPlaceholderHtml: (el: {
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
textType?: string;
|
|
22
|
+
placeholderFontSize?: number;
|
|
23
|
+
}, html: string) => string;
|
|
24
|
+
export declare const isListPlaceholder: (el: {
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
textType?: string;
|
|
27
|
+
}) => boolean;
|
|
28
|
+
export declare const emptyPlaceholderHtml: (el: {
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
textType?: string;
|
|
31
|
+
}) => "<p></p>" | "<ul><li><p></p></li></ul>";
|
|
32
|
+
export type PlaceholderPhase = 'empty' | 'filled';
|
|
33
|
+
export declare const placeholderPhase: (empty: boolean) => PlaceholderPhase;
|
|
34
|
+
/** Empty-prompt styles must never rewrite typed text (that is how 66 collapses to 36). */
|
|
35
|
+
export declare const shouldSkipPlaceholderStyleApply: (input: {
|
|
36
|
+
docEmpty: boolean;
|
|
37
|
+
phaseHint?: PlaceholderPhase;
|
|
38
|
+
fontSize?: string;
|
|
39
|
+
}) => boolean;
|
|
40
|
+
export declare const placeholderSeed: (el: {
|
|
41
|
+
placeholderFontSize?: number;
|
|
42
|
+
placeholderAlign?: TextAlign;
|
|
43
|
+
placeholderBold?: boolean;
|
|
44
|
+
placeholderItalic?: boolean;
|
|
45
|
+
defaultFontName?: string;
|
|
46
|
+
textType?: string;
|
|
47
|
+
}, phase: PlaceholderPhase, color: string) => PlaceholderStyleOptions;
|
|
48
|
+
export declare const placeholderBoxVars: (el: PPTTextElement, empty: boolean, promptColor: string) => CSSPropertiesWithVars;
|
|
49
|
+
export declare const placeholderChrome: (input: {
|
|
50
|
+
placeholder?: string;
|
|
51
|
+
empty: boolean;
|
|
52
|
+
editing: boolean;
|
|
53
|
+
}) => {
|
|
54
|
+
editorMounted: boolean;
|
|
55
|
+
showPrompt: boolean;
|
|
56
|
+
hidePrompt: boolean;
|
|
57
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const APP_SHELL_ID = "fika-shell";
|
|
2
|
+
export declare const APP_PORTALS_ID = "fika-portals";
|
|
3
|
+
export declare const EMBED_ROOT_CLASS = "fika-embed-root";
|
|
4
|
+
export declare function setFikaPortalTarget(target: HTMLElement | null): void;
|
|
5
|
+
export declare function clearFikaPortalTarget(target: HTMLElement): void;
|
|
6
|
+
/** Overlay mount for the standalone app. Never document.body — that is the page, not Fika. */
|
|
7
|
+
export declare function ensureAppPortalRoot(): HTMLElement;
|
|
8
|
+
export declare function getFikaPortalTarget(): HTMLElement;
|
|
9
|
+
/**
|
|
10
|
+
* Resolve the portal target for a *specific* embed instance.
|
|
11
|
+
*
|
|
12
|
+
* The module-level `portalTarget` only tracks the last-mounted embed, so when
|
|
13
|
+
* several embeds coexist (e.g. multiple decks force-mounted side by side in a
|
|
14
|
+
* host app) it points at the wrong one — overlays then render into a sibling
|
|
15
|
+
* embed's portal, which the host may have hidden (`display:none`), so they
|
|
16
|
+
* never appear. Resolving from the interacted element keeps each overlay in
|
|
17
|
+
* its own embed. Falls back to the standalone portal root.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveFikaPortalTarget(el?: Element | null): HTMLElement;
|
|
20
|
+
/** Ancestor that becomes the containing block for `position: fixed` descendants. */
|
|
21
|
+
export declare function findFixedContainingBlock(from: HTMLElement): HTMLElement | null;
|
|
22
|
+
export declare function menuAxisFromEvent(event: MouseEvent, portal: HTMLElement): {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
};
|
|
28
|
+
export declare function queryFika<T extends Element = Element>(selector: string): T | null;
|
|
29
|
+
export declare function queryFikaAll<T extends Element = Element>(selector: string): NodeListOf<T>;
|
|
30
|
+
/**
|
|
31
|
+
* True when the event belongs to Fika (shell / embed), not a host overlay.
|
|
32
|
+
*
|
|
33
|
+
* Canvas clicks set editorAreaFocus but do not move DOM focus, so keydown/paste
|
|
34
|
+
* land on document.body. Those document-level events are app-owned while Fika
|
|
35
|
+
* is mounted. Foreign overlays (react-scan) focus their own nodes and stay out.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isAppOwnedEvent(event: Event): boolean;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Slide } from '../types/slides';
|
|
2
|
+
export type ImportDisposition = 'modeled' | 'approximated' | 'opaque' | 'dropped';
|
|
3
|
+
export interface ImportDiagnosticItem {
|
|
4
|
+
disposition: ImportDisposition;
|
|
5
|
+
capability: string;
|
|
6
|
+
detail?: string;
|
|
7
|
+
slideIndex?: number;
|
|
8
|
+
elementId?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ImportDiagnosticsReport {
|
|
11
|
+
status: 'complete' | 'complete-with-approximations' | 'partial';
|
|
12
|
+
packageId?: string;
|
|
13
|
+
slideCount: number;
|
|
14
|
+
elementCount: number;
|
|
15
|
+
provenanceMatched: number;
|
|
16
|
+
items: ImportDiagnosticItem[];
|
|
17
|
+
summary: Record<ImportDisposition, number>;
|
|
18
|
+
}
|
|
19
|
+
export declare function setLastImportDiagnostics(report: ImportDiagnosticsReport | null): void;
|
|
20
|
+
export declare function getLastImportDiagnostics(): ImportDiagnosticsReport | null;
|
|
21
|
+
export interface BuildImportDiagnosticsInput {
|
|
22
|
+
slides: Slide[];
|
|
23
|
+
packageId?: string;
|
|
24
|
+
/** pptxtojson element type counts that never became Fika elements */
|
|
25
|
+
droppedByType?: Record<string, number>;
|
|
26
|
+
/** Transitions present in OOXML but unmapped */
|
|
27
|
+
unmappedTransitions?: number;
|
|
28
|
+
/** Math nodes imported as images because latex was empty */
|
|
29
|
+
mathFallbackImages?: number;
|
|
30
|
+
/** Layout elements flattened into slide (not preserved as masters) */
|
|
31
|
+
flattenedLayoutElements?: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Build a Mona-style import diagnostics matrix for a converted deck.
|
|
35
|
+
*/
|
|
36
|
+
export declare function buildImportDiagnosticsReport(input: BuildImportDiagnosticsInput): ImportDiagnosticsReport;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { ElementSource, Note, PPTAnimation, PPTElementEffects, PPTLatexElement, TurningMode } from '../types/slides';
|
|
2
|
+
export type { ElementSource };
|
|
3
|
+
export interface SlideObjectIdentity {
|
|
4
|
+
order: number;
|
|
5
|
+
objectId: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
partPath: string;
|
|
8
|
+
/** Position/size in points (pptxtojson units, pre-viewport scale) */
|
|
9
|
+
left: number;
|
|
10
|
+
top: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
effects?: PPTElementEffects;
|
|
14
|
+
}
|
|
15
|
+
export interface PptxSlideTransition {
|
|
16
|
+
type: string;
|
|
17
|
+
duration?: number;
|
|
18
|
+
direction?: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface PptxMathElement {
|
|
21
|
+
type: 'math';
|
|
22
|
+
left: number;
|
|
23
|
+
top: number;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
latex?: string;
|
|
27
|
+
picBase64?: string;
|
|
28
|
+
order?: number;
|
|
29
|
+
}
|
|
30
|
+
type XmlNode = {
|
|
31
|
+
tagName?: string;
|
|
32
|
+
attributes?: Record<string, string>;
|
|
33
|
+
children?: Array<XmlNode | string>;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Map pptxtojson / OOXML transition type (+ optional direction) → Fika turningMode.
|
|
37
|
+
*/
|
|
38
|
+
export declare function mapPptxTransitionToTurningMode(transition?: PptxSlideTransition | null): TurningMode | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Normalize OMML→LaTeX quirks from real PowerPoint / pptxtojson output:
|
|
41
|
+
* - NBSP → space
|
|
42
|
+
* - Mathematical Alphanumeric Symbols (italic/bold/…) → ASCII
|
|
43
|
+
*/
|
|
44
|
+
export declare function normalizeImportedLatex(latex: string): string;
|
|
45
|
+
/**
|
|
46
|
+
* Build an editable LaTeX element from a pptxtojson math node.
|
|
47
|
+
* Falls back to null when latex is missing (caller may keep the PNG).
|
|
48
|
+
*/
|
|
49
|
+
export declare function buildLatexElementFromMath(el: PptxMathElement, options?: {
|
|
50
|
+
color?: string;
|
|
51
|
+
id?: string;
|
|
52
|
+
}): PPTLatexElement | null;
|
|
53
|
+
/**
|
|
54
|
+
* Parse author lists from either:
|
|
55
|
+
* - legacy `ppt/commentAuthors.xml` (`p:cmAuthor`)
|
|
56
|
+
* - modern `ppt/authors.xml` (`p188:author`)
|
|
57
|
+
*/
|
|
58
|
+
export declare function parseCommentAuthorsXml(xml: string): Map<string, string>;
|
|
59
|
+
/**
|
|
60
|
+
* Parse a slide comments part into Fika Note[].
|
|
61
|
+
* Supports legacy `p:cmLst/p:cm/p:text` and modern threaded
|
|
62
|
+
* `p188:cmLst/p188:cm` (+ `replyLst`) used by PowerPoint / pptxgenjs 4.x.
|
|
63
|
+
*/
|
|
64
|
+
export declare function parseCommentsXml(xml: string, authors?: Map<string, string>): Note[];
|
|
65
|
+
/** @deprecated Use parseCommentsXml — kept for call-site compatibility. */
|
|
66
|
+
export declare function parseLegacyCommentsXml(xml: string, authors?: Map<string, string>): Note[];
|
|
67
|
+
/** Parse a:effectLst into Mona-compatible PPTElementEffects (points). */
|
|
68
|
+
export declare function parseEffectLst(effectLst: XmlNode | undefined): PPTElementEffects | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Collect cNvPr identities from a slide XML part (document order).
|
|
71
|
+
* Geometry is in points so it can match pptxtojson element boxes.
|
|
72
|
+
*/
|
|
73
|
+
export declare function extractCNvPrIdentitiesFromSlideXml(xml: string, partPath: string): SlideObjectIdentity[];
|
|
74
|
+
export declare function hashPackageId(bytes: ArrayBuffer): Promise<string>;
|
|
75
|
+
export interface PptxImportExtras {
|
|
76
|
+
packageId: string;
|
|
77
|
+
/** Comments keyed by 0-based slide index */
|
|
78
|
+
commentsBySlide: Map<number, Note[]>;
|
|
79
|
+
/** cNvPr identities keyed by 0-based slide index (slide-local parts only) */
|
|
80
|
+
identitiesBySlide: Map<number, SlideObjectIdentity[]>;
|
|
81
|
+
/** Click/build animations keyed by 0-based slide index (from `p:timing`) */
|
|
82
|
+
animationsBySlide: Map<number, ImportedSlideAnimation[]>;
|
|
83
|
+
}
|
|
84
|
+
export interface ImportedSlideAnimation {
|
|
85
|
+
objectId: string;
|
|
86
|
+
trigger: PPTAnimation['trigger'];
|
|
87
|
+
type: PPTAnimation['type'];
|
|
88
|
+
effect: string;
|
|
89
|
+
duration: number;
|
|
90
|
+
}
|
|
91
|
+
/** pptxtojson `slide.animations` item (OOXML timing, presenter order). */
|
|
92
|
+
export interface PptxtojsonSlideAnimation {
|
|
93
|
+
spid: string;
|
|
94
|
+
trigger: string;
|
|
95
|
+
class: string;
|
|
96
|
+
presetId: number;
|
|
97
|
+
presetSubtype?: number;
|
|
98
|
+
duration: number;
|
|
99
|
+
delay?: number;
|
|
100
|
+
filter?: string;
|
|
101
|
+
}
|
|
102
|
+
export declare function mapPresetToEffect(presetClass: string, presetId: number, filter?: string, presetSubtype?: number): string;
|
|
103
|
+
/**
|
|
104
|
+
* Parse `p:timing` click/build animations from a slide XML part.
|
|
105
|
+
* Effect nodes are `p:cTn` with `presetClass`; `nodeType` may live on an ancestor
|
|
106
|
+
* grouping wrapper. Document order is the presenter sequence.
|
|
107
|
+
*/
|
|
108
|
+
export declare function extractSlideAnimationsFromXml(xml: string): ImportedSlideAnimation[];
|
|
109
|
+
export declare function mapPptxtojsonAnimation(anim: PptxtojsonSlideAnimation): ImportedSlideAnimation | null;
|
|
110
|
+
/** Map OOXML shape ids onto imported editor elements via `source.objectId` or a spid map. */
|
|
111
|
+
export declare function bindImportedAnimations(imported: ImportedSlideAnimation[], elements: Array<{
|
|
112
|
+
id: string;
|
|
113
|
+
source?: {
|
|
114
|
+
objectId?: string;
|
|
115
|
+
};
|
|
116
|
+
}>, spidToElId?: Map<string, string>): PPTAnimation[];
|
|
117
|
+
/**
|
|
118
|
+
* Extract comments + cNvPr provenance from the retained OOXML package.
|
|
119
|
+
*/
|
|
120
|
+
export declare function extractPptxImportExtras(bytes: ArrayBuffer): Promise<PptxImportExtras>;
|
|
121
|
+
export declare function attachElementSource(element: {
|
|
122
|
+
source?: ElementSource;
|
|
123
|
+
effects?: PPTElementEffects;
|
|
124
|
+
}, packageId: string, identity?: SlideObjectIdentity): void;
|
|
125
|
+
/**
|
|
126
|
+
* Match a pptxtojson element box (points, pre-scale) to a slide-local cNvPr identity.
|
|
127
|
+
* Consumes the identity so one OOXML object maps to one editor element.
|
|
128
|
+
*/
|
|
129
|
+
export declare function takeIdentityForGeometry(pool: SlideObjectIdentity[] | undefined, box: {
|
|
130
|
+
left: number;
|
|
131
|
+
top: number;
|
|
132
|
+
width: number;
|
|
133
|
+
height: number;
|
|
134
|
+
}, epsilon?: number): SlideObjectIdentity | undefined;
|
|
135
|
+
/** Match a pptxtojson `el.id` (cNvPr id) when geometry matching misses. */
|
|
136
|
+
export declare function takeIdentityForObjectId(pool: SlideObjectIdentity[] | undefined, objectId: string | undefined): SlideObjectIdentity | undefined;
|
|
137
|
+
/** @deprecated Prefer takeIdentityForGeometry — pptxtojson order is parser-private. */
|
|
138
|
+
export declare function takeIdentityForOrder(pool: SlideObjectIdentity[] | undefined, order: number | undefined): SlideObjectIdentity | undefined;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pptxtojson 2.2+ emits embedded fonts as `{ name, fontFamily, blob }`,
|
|
3
|
+
* not `string[]`. String APIs (`replace`, Google Fonts) must go through
|
|
4
|
+
* {@link normalizePptxUsedFonts}; blob URLs must be registered as FontFace
|
|
5
|
+
* so import does not crash and the packaged face actually paints.
|
|
6
|
+
*/
|
|
7
|
+
export type PptxUsedFontObject = {
|
|
8
|
+
name?: string;
|
|
9
|
+
fontFamily?: string;
|
|
10
|
+
blob?: string;
|
|
11
|
+
};
|
|
12
|
+
export type PptxUsedFont = string | PptxUsedFontObject;
|
|
13
|
+
export type NormalizedPptxFont = {
|
|
14
|
+
name: string;
|
|
15
|
+
blob?: string;
|
|
16
|
+
};
|
|
17
|
+
/** Pull a CSS family name out of a pptxtojson usedFonts entry (string or object). */
|
|
18
|
+
export declare function pptxUsedFontName(font: unknown): string;
|
|
19
|
+
export declare function normalizePptxUsedFonts(usedFonts: readonly unknown[] | null | undefined): NormalizedPptxFont[];
|
|
20
|
+
/**
|
|
21
|
+
* Split "Brygada 1918 Bold Italic" → family + FontFace descriptors so both
|
|
22
|
+
* `font-family: "Brygada 1918 Bold"` and `font-family: "Brygada 1918"; font-weight: 700`
|
|
23
|
+
* resolve to the embedded face.
|
|
24
|
+
*/
|
|
25
|
+
export declare function splitImportedFontFace(name: string): {
|
|
26
|
+
family: string;
|
|
27
|
+
weight?: string;
|
|
28
|
+
style?: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Register pptxtojson embedded-font blob URLs as FontFace. Safe in Node
|
|
32
|
+
* (no `document` / `FontFace`) and idempotent.
|
|
33
|
+
*/
|
|
34
|
+
export declare function registerEmbeddedFonts(usedFonts: readonly unknown[] | null | undefined): string[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** PowerPoint body lvl1 hanging indent: marL 18pt / 28pt type. */
|
|
2
|
+
export declare const PPTX_BODY_BULLET_INDENT_EM: number;
|
|
3
|
+
export type PptxTextInset = {
|
|
4
|
+
t: number;
|
|
5
|
+
r: number;
|
|
6
|
+
b: number;
|
|
7
|
+
l: number;
|
|
8
|
+
};
|
|
9
|
+
export type ImportedParagraphMetrics = {
|
|
10
|
+
lineHeight: number;
|
|
11
|
+
margin: number | null;
|
|
12
|
+
};
|
|
13
|
+
/** CSS cascade: the last `prop:` in a style string wins. */
|
|
14
|
+
export declare function lastCssDeclaration(style: string, prop: string): string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Read line-height / paragraph spacing from pptxtojson paragraph HTML.
|
|
17
|
+
* Duplicate `line-height` declarations (default 1.2 then the real value) must
|
|
18
|
+
* use the last one — otherwise imported boxes clip like the Odkazy slide.
|
|
19
|
+
*/
|
|
20
|
+
export declare function importedParagraphMetrics(html: string, ratio: number): ImportedParagraphMetrics;
|
|
21
|
+
/** pptxtojson insets are pt; the editor paints px. */
|
|
22
|
+
export declare function scalePptxTextInset(inset: PptxTextInset | undefined, ratio: number): [number, number, number, number] | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Overflow-wrap:anywhere line count using a mean glyph width. URLs have no
|
|
25
|
+
* spaces, so PowerPoint / CSS wrap them by character.
|
|
26
|
+
*/
|
|
27
|
+
export declare function estimateAnywhereWrapLines(text: string, innerWidth: number, fontSize: number, avgGlyphEm?: number): number;
|
|
28
|
+
export declare function estimateColumnHeight(linesPerBlock: number[], fontSize: number, lineHeight: number, blockSpace: number): number;
|
|
29
|
+
export declare function textFitsFixedBox(contentHeight: number, boxInnerHeight: number, epsilon?: number): boolean;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ImageElementClip } from '../types/slides';
|
|
2
|
+
/**
|
|
3
|
+
* pptxtojson emits a `p:pic` as `type: 'image'` only when it has no preset/custom
|
|
4
|
+
* geometry. PowerPoint always writes `<a:prstGeom prst="rect"/>` on pictures, so
|
|
5
|
+
* almost every photo arrives as `type: 'shape'` with `fill.type === 'image'`.
|
|
6
|
+
* Importing that as an SVG pattern (200×200 viewBox, then non-uniform scale)
|
|
7
|
+
* stretches the bitmap. Map picture-like shapes back to image elements instead.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PPTX_IMAGE_CLIP_SHAPES: readonly ['rect', 'snip1Rect', 'snip2DiagRect', 'roundRect', 'ellipse', 'triangle', 'rtTriangle', 'diamond', 'pentagon', 'hexagon', 'heptagon', 'octagon', 'chevron', 'homePlate', 'rightArrow', 'parallelogram', 'trapezoid'];
|
|
10
|
+
export type PptxSrcRect = {
|
|
11
|
+
t?: number;
|
|
12
|
+
b?: number;
|
|
13
|
+
l?: number;
|
|
14
|
+
r?: number;
|
|
15
|
+
};
|
|
16
|
+
export type PptxPictureSource = {
|
|
17
|
+
src: string;
|
|
18
|
+
geom: string;
|
|
19
|
+
rect?: PptxSrcRect;
|
|
20
|
+
isFlipH?: boolean;
|
|
21
|
+
isFlipV?: boolean;
|
|
22
|
+
rotate?: number;
|
|
23
|
+
link?: string;
|
|
24
|
+
borderWidth?: number;
|
|
25
|
+
};
|
|
26
|
+
export declare function isPptxConnectorShape(shapType?: string): boolean;
|
|
27
|
+
export declare function pptxPictureSource(el: unknown): PptxPictureSource | null;
|
|
28
|
+
/** Preset picture frames (rect / ellipse / roundRect / …) become image clips. Custom paths stay shapes. */
|
|
29
|
+
export declare function pptxPictureShapeCanBeImage(shapType?: string): boolean;
|
|
30
|
+
export declare function pptxImageClip(geom: string, rect?: PptxSrcRect): ImageElementClip | undefined;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PPTX import HTML fixes that pptxtojson 2.2.3 does not always emit:
|
|
3
|
+
* inherited master/layout bullets arrive as hanging-indent <p> instead of <ul>,
|
|
4
|
+
* and http(s) runs may be plain text even when PowerPoint treats them as links.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PPTX_HYPERLINK_COLOR = "#0563C1";
|
|
7
|
+
/** Office theme `folHlink` (PowerPoint followed/visited hyperlink). */
|
|
8
|
+
export declare const PPTX_FOLLOWED_HYPERLINK_COLOR = "#954F72";
|
|
9
|
+
/** PowerPoint keeps empty body paragraphs as vertical gaps, not bullets. */
|
|
10
|
+
export declare function isEmptyListParagraph(inner: string): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Consecutive body paragraphs with hanging indent (master bullet indent) become
|
|
13
|
+
* a real <ul> so ProseMirror creates bullet_list and the toolbar list chip activates.
|
|
14
|
+
* Empty hanging paragraphs stay spacers (PowerPoint does not draw a bullet for them).
|
|
15
|
+
*/
|
|
16
|
+
export declare function wrapHangingIndentParagraphsAsLists(html: string, ratio?: number): string;
|
|
17
|
+
/**
|
|
18
|
+
* Wrap leftover http(s) URLs that are not already inside <a>. OOXML hyperlinks
|
|
19
|
+
* (a:hlinkClick) are preferred; this only catches display-time / unlinked URL text.
|
|
20
|
+
*/
|
|
21
|
+
export declare function linkifyPlainUrls(html: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Drop baked-in run colors on links so CSS `a` / `a:visited` can paint them
|
|
24
|
+
* (PowerPoint hlink blue vs folHlink purple). Keep font-size and other run props.
|
|
25
|
+
*/
|
|
26
|
+
export declare function styleImportedHyperlinks(html: string): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In-memory retain store for imported PowerPoint packages.
|
|
3
|
+
* Enables future source-preserving writeback (Mona-style) without
|
|
4
|
+
* regenerating untouched OOXML parts.
|
|
5
|
+
*/
|
|
6
|
+
export declare function retainSourcePackage(packageId: string, bytes: ArrayBuffer): void;
|
|
7
|
+
export declare function getSourcePackage(packageId: string): ArrayBuffer | undefined;
|
|
8
|
+
export declare function hasSourcePackage(packageId: string): boolean;
|
|
9
|
+
export declare function clearSourcePackage(packageId: string): void;
|
|
10
|
+
export declare function clearAllSourcePackages(): void;
|
|
11
|
+
export declare function markSourcePackageDirty(): void;
|
|
12
|
+
export declare function isSourcePackageClean(packageId?: string): boolean;
|
|
13
|
+
export declare function getActiveSourcePackageId(): string | null;
|
|
14
|
+
/**
|
|
15
|
+
* Hybrid export fast-path: return retained bytes when the deck is still clean.
|
|
16
|
+
*/
|
|
17
|
+
export declare function tryGetCleanRetainedPackage(slides: Array<{
|
|
18
|
+
sourcePackageId?: string;
|
|
19
|
+
}>): ArrayBuffer | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { StructuredTextBody } from '../types/slides';
|
|
2
|
+
/**
|
|
3
|
+
* Best-effort HTML → structured text foundation.
|
|
4
|
+
* Not a full Mona StructuredTextBody; captures runs/paragraphs from imported HTML.
|
|
5
|
+
*/
|
|
6
|
+
export declare function htmlToStructuredText(html: string): StructuredTextBody | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ImageClipDataRange } from '../types/slides';
|
|
2
|
+
export declare const PPTX_PX_PER_INCH = 96;
|
|
3
|
+
export declare const PPTX_POINTS_PER_INCH = 72;
|
|
4
|
+
export declare const PPTX_PX_PER_POINT: number;
|
|
5
|
+
export declare const getPPTXImportScale: (sourceWidth: number, targetViewportSize?: number) => number;
|
|
6
|
+
/**
|
|
7
|
+
* Convert editor-px crop range (percentages) into PptxGenJS image crop sizing (inches).
|
|
8
|
+
* `pxPerInch` defaults to 96; pass the export `ratioPx2Inch` when the deck viewport is scaled.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getPPTXImageCrop: (width: number, height: number, range: ImageClipDataRange, pxPerInch?: number) => {
|
|
11
|
+
imageWidth: number;
|
|
12
|
+
imageHeight: number;
|
|
13
|
+
sizing: {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
w: number;
|
|
17
|
+
h: number;
|
|
18
|
+
};
|
|
19
|
+
};
|