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,599 @@
|
|
|
1
|
+
export declare const enum ShapePathFormulasKeys {
|
|
2
|
+
ROUND_RECT = "roundRect",
|
|
3
|
+
ROUND_RECT_DIAGONAL = "roundRectDiagonal",
|
|
4
|
+
ROUND_RECT_SINGLE = "roundRectSingle",
|
|
5
|
+
ROUND_RECT_SAMESIDE = "roundRectSameSide",
|
|
6
|
+
CUT_RECT_DIAGONAL = "cutRectDiagonal",
|
|
7
|
+
CUT_RECT_SINGLE = "cutRectSingle",
|
|
8
|
+
CUT_RECT_SAMESIDE = "cutRectSameSide",
|
|
9
|
+
CUT_ROUND_RECT = "cutRoundRect",
|
|
10
|
+
MESSAGE = "message",
|
|
11
|
+
ROUND_MESSAGE = "roundMessage",
|
|
12
|
+
L = "L",
|
|
13
|
+
RING_RECT = "ringRect",
|
|
14
|
+
PLUS = "plus",
|
|
15
|
+
TRIANGLE = "triangle",
|
|
16
|
+
PARALLELOGRAM_LEFT = "parallelogramLeft",
|
|
17
|
+
PARALLELOGRAM_RIGHT = "parallelogramRight",
|
|
18
|
+
TRAPEZOID = "trapezoid",
|
|
19
|
+
BULLET = "bullet",
|
|
20
|
+
INDICATOR = "indicator",
|
|
21
|
+
DONUT = "donut",
|
|
22
|
+
DIAGSTRIPE = "diagStripe"
|
|
23
|
+
}
|
|
24
|
+
export declare const enum ElementTypes {
|
|
25
|
+
TEXT = "text",
|
|
26
|
+
IMAGE = "image",
|
|
27
|
+
SHAPE = "shape",
|
|
28
|
+
LINE = "line",
|
|
29
|
+
CHART = "chart",
|
|
30
|
+
TABLE = "table",
|
|
31
|
+
LATEX = "latex",
|
|
32
|
+
MERMAID = "mermaid",
|
|
33
|
+
CODE = "code",
|
|
34
|
+
VIDEO = "video",
|
|
35
|
+
AUDIO = "audio"
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Gradient fill.
|
|
39
|
+
*
|
|
40
|
+
* type: radial or linear
|
|
41
|
+
* colors: stops (`pos` percent, `color`)
|
|
42
|
+
* rotate: angle for linear gradients
|
|
43
|
+
*/
|
|
44
|
+
export type GradientType = 'linear' | 'radial';
|
|
45
|
+
export type GradientColor = {
|
|
46
|
+
pos: number;
|
|
47
|
+
color: string;
|
|
48
|
+
};
|
|
49
|
+
export interface Gradient {
|
|
50
|
+
type: GradientType;
|
|
51
|
+
colors: GradientColor[];
|
|
52
|
+
rotate: number;
|
|
53
|
+
}
|
|
54
|
+
export type LineStyleType = 'solid' | 'dashed' | 'dotted';
|
|
55
|
+
/**
|
|
56
|
+
* Element shadow.
|
|
57
|
+
*
|
|
58
|
+
* h / v: offset
|
|
59
|
+
* blur: blur radius
|
|
60
|
+
* color: shadow color
|
|
61
|
+
*/
|
|
62
|
+
export interface PPTElementShadow {
|
|
63
|
+
h: number;
|
|
64
|
+
v: number;
|
|
65
|
+
blur: number;
|
|
66
|
+
color: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* DrawingML effectLst extras beyond outer shadow (Mona-compatible subset).
|
|
70
|
+
*/
|
|
71
|
+
export interface PPTElementEffects {
|
|
72
|
+
glow?: {
|
|
73
|
+
color: string;
|
|
74
|
+
opacity: number;
|
|
75
|
+
radius: number;
|
|
76
|
+
};
|
|
77
|
+
innerShadow?: PPTElementShadow & {
|
|
78
|
+
opacity?: number;
|
|
79
|
+
};
|
|
80
|
+
reflection?: {
|
|
81
|
+
blur: number;
|
|
82
|
+
direction: number;
|
|
83
|
+
distance: number;
|
|
84
|
+
opacity: number;
|
|
85
|
+
scaleY: number;
|
|
86
|
+
};
|
|
87
|
+
softEdge?: {
|
|
88
|
+
radius: number;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/** Lightweight structured text foundation (schemaVersion 1). */
|
|
92
|
+
export interface StructuredTextRun {
|
|
93
|
+
text: string;
|
|
94
|
+
bold?: boolean;
|
|
95
|
+
italic?: boolean;
|
|
96
|
+
underline?: boolean;
|
|
97
|
+
strikethrough?: boolean;
|
|
98
|
+
fontSize?: number;
|
|
99
|
+
fontColor?: string;
|
|
100
|
+
fontName?: string;
|
|
101
|
+
}
|
|
102
|
+
export interface StructuredTextParagraph {
|
|
103
|
+
align?: TextAlign;
|
|
104
|
+
runs: StructuredTextRun[];
|
|
105
|
+
}
|
|
106
|
+
export interface StructuredTextBody {
|
|
107
|
+
schemaVersion: 1;
|
|
108
|
+
paragraphs: StructuredTextParagraph[];
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Element outline.
|
|
112
|
+
*
|
|
113
|
+
* style?: solid or dashed
|
|
114
|
+
* width?: stroke width
|
|
115
|
+
* color?: stroke color
|
|
116
|
+
* radius?: corner radius in px
|
|
117
|
+
*/
|
|
118
|
+
export interface PPTElementOutline {
|
|
119
|
+
style?: LineStyleType;
|
|
120
|
+
width?: number;
|
|
121
|
+
color?: string;
|
|
122
|
+
radius?: number;
|
|
123
|
+
}
|
|
124
|
+
export type ElementLinkType = 'web' | 'slide';
|
|
125
|
+
/**
|
|
126
|
+
* Element hyperlink.
|
|
127
|
+
*
|
|
128
|
+
* type: web URL or slide
|
|
129
|
+
* target: URL or slide id
|
|
130
|
+
*/
|
|
131
|
+
export interface PPTElementLink {
|
|
132
|
+
type: ElementLinkType;
|
|
133
|
+
target: string;
|
|
134
|
+
}
|
|
135
|
+
export type TextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
136
|
+
export type TextAlignVertical = 'top' | 'middle' | 'bottom';
|
|
137
|
+
/**
|
|
138
|
+
* Provenance for an element imported from a retained PowerPoint package.
|
|
139
|
+
* Enables future source-preserving OOXML writeback (identity-stable patch).
|
|
140
|
+
*/
|
|
141
|
+
export interface ElementSource {
|
|
142
|
+
packageId: string;
|
|
143
|
+
partPath: string;
|
|
144
|
+
objectId: string;
|
|
145
|
+
order?: number;
|
|
146
|
+
name?: string;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Shared element fields.
|
|
150
|
+
*
|
|
151
|
+
* id, left, top, width, height, rotate
|
|
152
|
+
* lock?: prevent edits
|
|
153
|
+
* groupId?: members that share this id are grouped
|
|
154
|
+
* link?: hyperlink
|
|
155
|
+
* name?: display name
|
|
156
|
+
* source?: OOXML provenance when imported from a retained PPTX package
|
|
157
|
+
*/
|
|
158
|
+
interface PPTBaseElement {
|
|
159
|
+
id: string;
|
|
160
|
+
left: number;
|
|
161
|
+
top: number;
|
|
162
|
+
lock?: boolean;
|
|
163
|
+
groupId?: string;
|
|
164
|
+
width: number;
|
|
165
|
+
height: number;
|
|
166
|
+
rotate: number;
|
|
167
|
+
link?: PPTElementLink;
|
|
168
|
+
name?: string;
|
|
169
|
+
source?: ElementSource;
|
|
170
|
+
effects?: PPTElementEffects;
|
|
171
|
+
}
|
|
172
|
+
export type TextType = 'title' | 'subtitle' | 'content' | 'item' | 'itemTitle' | 'notes' | 'header' | 'footer' | 'partNumber' | 'itemNumber';
|
|
173
|
+
export type TextInset = [number, number, number, number];
|
|
174
|
+
/**
|
|
175
|
+
* Text element.
|
|
176
|
+
*
|
|
177
|
+
* content: HTML string
|
|
178
|
+
* defaultFontName / defaultColor: defaults overridden by inline HTML styles
|
|
179
|
+
* lineHeight?: multiplier, default 1.5
|
|
180
|
+
* wordSpace?: letter spacing, default 0
|
|
181
|
+
* paragraphSpace?: paragraph gap, default 5px
|
|
182
|
+
* vertical?: vertical text
|
|
183
|
+
* inset?: padding [top, right, bottom, left], default [10, 10, 10, 10]
|
|
184
|
+
* fixedHeight?: lock the auto-fit axis (height for horizontal text, width for vertical)
|
|
185
|
+
* vAlign?: vertical align inside the box when `fixedHeight` is set, default top
|
|
186
|
+
*/
|
|
187
|
+
export interface PPTTextElement extends PPTBaseElement {
|
|
188
|
+
type: 'text';
|
|
189
|
+
content: string;
|
|
190
|
+
defaultFontName: string;
|
|
191
|
+
defaultColor: string;
|
|
192
|
+
placeholder?: string;
|
|
193
|
+
placeholderFontSize?: number;
|
|
194
|
+
placeholderColor?: string;
|
|
195
|
+
placeholderAlign?: TextAlign;
|
|
196
|
+
placeholderBold?: boolean;
|
|
197
|
+
placeholderItalic?: boolean;
|
|
198
|
+
/** Empty-state layout height; frozen at creation, not updated when content grows. */
|
|
199
|
+
placeholderLayoutHeight?: number;
|
|
200
|
+
outline?: PPTElementOutline;
|
|
201
|
+
fill?: string;
|
|
202
|
+
lineHeight?: number;
|
|
203
|
+
wordSpace?: number;
|
|
204
|
+
opacity?: number;
|
|
205
|
+
shadow?: PPTElementShadow;
|
|
206
|
+
paragraphSpace?: number;
|
|
207
|
+
vertical?: boolean;
|
|
208
|
+
textType?: TextType;
|
|
209
|
+
inset?: TextInset;
|
|
210
|
+
fixedHeight?: boolean;
|
|
211
|
+
vAlign?: TextAlignVertical;
|
|
212
|
+
/** Optional structured runs retained from import (HTML remains source of truth for editing). */
|
|
213
|
+
structuredText?: StructuredTextBody;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Image or shape flip.
|
|
217
|
+
*/
|
|
218
|
+
export interface ImageOrShapeFlip {
|
|
219
|
+
flipH?: boolean;
|
|
220
|
+
flipV?: boolean;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Image filters.
|
|
224
|
+
*
|
|
225
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/filter
|
|
226
|
+
*/
|
|
227
|
+
export type ImageElementFilterKeys = 'blur' | 'brightness' | 'contrast' | 'grayscale' | 'saturate' | 'hue-rotate' | 'opacity' | 'sepia' | 'invert';
|
|
228
|
+
export interface ImageElementFilters {
|
|
229
|
+
'blur'?: string;
|
|
230
|
+
'brightness'?: string;
|
|
231
|
+
'contrast'?: string;
|
|
232
|
+
'grayscale'?: string;
|
|
233
|
+
'saturate'?: string;
|
|
234
|
+
'hue-rotate'?: string;
|
|
235
|
+
'sepia'?: string;
|
|
236
|
+
'invert'?: string;
|
|
237
|
+
'opacity'?: string;
|
|
238
|
+
}
|
|
239
|
+
export type ImageClipDataRange = [[number, number], [number, number]];
|
|
240
|
+
/**
|
|
241
|
+
* Image crop.
|
|
242
|
+
*
|
|
243
|
+
* range: e.g. [[10, 10], [90, 90]] crops 10%,10% to 90%,90% from the top-left
|
|
244
|
+
* shape: clip path id from configs/imageClip.ts CLIPPATHS
|
|
245
|
+
*/
|
|
246
|
+
export interface ImageElementClip {
|
|
247
|
+
range: ImageClipDataRange;
|
|
248
|
+
shape: string;
|
|
249
|
+
}
|
|
250
|
+
export type ImageType = 'pageFigure' | 'itemFigure' | 'background';
|
|
251
|
+
/**
|
|
252
|
+
* Image element.
|
|
253
|
+
*/
|
|
254
|
+
export interface PPTImageElement extends PPTBaseElement {
|
|
255
|
+
type: 'image';
|
|
256
|
+
fixedRatio: boolean;
|
|
257
|
+
src: string;
|
|
258
|
+
outline?: PPTElementOutline;
|
|
259
|
+
filters?: ImageElementFilters;
|
|
260
|
+
clip?: ImageElementClip;
|
|
261
|
+
flipH?: boolean;
|
|
262
|
+
flipV?: boolean;
|
|
263
|
+
shadow?: PPTElementShadow;
|
|
264
|
+
radius?: number;
|
|
265
|
+
colorMask?: string;
|
|
266
|
+
imageType?: ImageType;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Text inside a shape.
|
|
270
|
+
*
|
|
271
|
+
* content: HTML string
|
|
272
|
+
* align: vertical alignment
|
|
273
|
+
* inset?: padding [top, right, bottom, left], default [10, 10, 10, 10]
|
|
274
|
+
*/
|
|
275
|
+
export interface ShapeText {
|
|
276
|
+
content: string;
|
|
277
|
+
defaultFontName: string;
|
|
278
|
+
defaultColor: string;
|
|
279
|
+
align: TextAlignVertical;
|
|
280
|
+
lineHeight?: number;
|
|
281
|
+
wordSpace?: number;
|
|
282
|
+
paragraphSpace?: number;
|
|
283
|
+
inset?: TextInset;
|
|
284
|
+
type?: TextType;
|
|
285
|
+
/** Lock height to the box. `false` grows the shape with the text, same as PPTTextElement. */
|
|
286
|
+
fixedHeight?: boolean;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Shape element.
|
|
290
|
+
*
|
|
291
|
+
* viewBox: SVG viewBox, e.g. [1000, 1000] means `0 0 1000 1000`
|
|
292
|
+
* path: SVG path `d`
|
|
293
|
+
* fill: used when there is no gradient
|
|
294
|
+
* gradient? / pattern?: take priority over `fill` when set
|
|
295
|
+
* special?: hard-to-parse path (commands other than L/Q/C/A); exported as an image
|
|
296
|
+
* pathFormula?: recalculate `viewBox` and `path` on resize so keypoints stay exact
|
|
297
|
+
* keypoints?: keypoint positions as percentages
|
|
298
|
+
*/
|
|
299
|
+
export interface PPTShapeElement extends PPTBaseElement {
|
|
300
|
+
type: 'shape';
|
|
301
|
+
viewBox: [number, number];
|
|
302
|
+
path: string;
|
|
303
|
+
fixedRatio: boolean;
|
|
304
|
+
fill: string;
|
|
305
|
+
gradient?: Gradient;
|
|
306
|
+
pattern?: string;
|
|
307
|
+
outline?: PPTElementOutline;
|
|
308
|
+
opacity?: number;
|
|
309
|
+
flipH?: boolean;
|
|
310
|
+
flipV?: boolean;
|
|
311
|
+
shadow?: PPTElementShadow;
|
|
312
|
+
special?: boolean;
|
|
313
|
+
text?: ShapeText;
|
|
314
|
+
pathFormula?: ShapePathFormulasKeys;
|
|
315
|
+
keypoints?: number[];
|
|
316
|
+
}
|
|
317
|
+
export type LinePoint = '' | 'arrow' | 'dot';
|
|
318
|
+
export type Broken2LineDirection = 'horizontal' | 'vertical';
|
|
319
|
+
/**
|
|
320
|
+
* Line element.
|
|
321
|
+
*
|
|
322
|
+
* start / end: [x, y]
|
|
323
|
+
* style: solid, dashed, or dotted
|
|
324
|
+
* points: [start cap, end cap] — none, arrow, or dot
|
|
325
|
+
* broken?: polyline control point
|
|
326
|
+
* broken2?: double-bend control point
|
|
327
|
+
* curve?: quadratic control point
|
|
328
|
+
* cubic?: cubic control points
|
|
329
|
+
*/
|
|
330
|
+
export interface PPTLineElement extends Omit<PPTBaseElement, 'height' | 'rotate'> {
|
|
331
|
+
type: 'line';
|
|
332
|
+
start: [number, number];
|
|
333
|
+
end: [number, number];
|
|
334
|
+
style: LineStyleType;
|
|
335
|
+
color: string;
|
|
336
|
+
points: [LinePoint, LinePoint];
|
|
337
|
+
shadow?: PPTElementShadow;
|
|
338
|
+
broken?: [number, number];
|
|
339
|
+
broken2?: [number, number];
|
|
340
|
+
broken2Direction?: Broken2LineDirection;
|
|
341
|
+
curve?: [number, number];
|
|
342
|
+
cubic?: [[number, number], [number, number]];
|
|
343
|
+
}
|
|
344
|
+
export type ChartType = 'bar' | 'column' | 'line' | 'pie' | 'ring' | 'area' | 'radar' | 'scatter';
|
|
345
|
+
export interface ChartOptions {
|
|
346
|
+
lineSmooth?: boolean;
|
|
347
|
+
stack?: boolean;
|
|
348
|
+
}
|
|
349
|
+
export interface ChartData {
|
|
350
|
+
labels: string[];
|
|
351
|
+
legends: string[];
|
|
352
|
+
series: number[][];
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Chart element.
|
|
356
|
+
*
|
|
357
|
+
* chartType: bar / line / pie family
|
|
358
|
+
* textColor?: axis and label color (ink, resolved against slide/chart fill)
|
|
359
|
+
* lineColor?: grid color
|
|
360
|
+
*/
|
|
361
|
+
export interface PPTChartElement extends PPTBaseElement {
|
|
362
|
+
type: 'chart';
|
|
363
|
+
fill?: string;
|
|
364
|
+
chartType: ChartType;
|
|
365
|
+
data: ChartData;
|
|
366
|
+
options?: ChartOptions;
|
|
367
|
+
outline?: PPTElementOutline;
|
|
368
|
+
themeColors: string[];
|
|
369
|
+
textColor?: string;
|
|
370
|
+
lineColor?: string;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Table cell style.
|
|
374
|
+
*/
|
|
375
|
+
export interface TableCellStyle {
|
|
376
|
+
bold?: boolean;
|
|
377
|
+
em?: boolean;
|
|
378
|
+
underline?: boolean;
|
|
379
|
+
strikethrough?: boolean;
|
|
380
|
+
color?: string;
|
|
381
|
+
backcolor?: string;
|
|
382
|
+
fontsize?: string;
|
|
383
|
+
fontname?: string;
|
|
384
|
+
align?: TextAlign;
|
|
385
|
+
vAlign?: TextAlignVertical;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Table cell.
|
|
389
|
+
*/
|
|
390
|
+
export interface TableCell {
|
|
391
|
+
id: string;
|
|
392
|
+
colspan: number;
|
|
393
|
+
rowspan: number;
|
|
394
|
+
text: string;
|
|
395
|
+
style?: TableCellStyle;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Table theme (header/total row and first/last column).
|
|
399
|
+
*/
|
|
400
|
+
export interface TableTheme {
|
|
401
|
+
color: string;
|
|
402
|
+
rowHeader: boolean;
|
|
403
|
+
rowFooter: boolean;
|
|
404
|
+
colHeader: boolean;
|
|
405
|
+
colFooter: boolean;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Table element.
|
|
409
|
+
*
|
|
410
|
+
* colWidths: fractions of total width, e.g. [0.3, 0.5, 0.2]
|
|
411
|
+
*/
|
|
412
|
+
export interface PPTTableElement extends PPTBaseElement {
|
|
413
|
+
type: 'table';
|
|
414
|
+
outline: PPTElementOutline;
|
|
415
|
+
theme?: TableTheme;
|
|
416
|
+
colWidths: number[];
|
|
417
|
+
cellMinHeight: number;
|
|
418
|
+
data: TableCell[][];
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* LaTeX formula element.
|
|
422
|
+
*/
|
|
423
|
+
export interface PPTLatexElement extends PPTBaseElement {
|
|
424
|
+
type: 'latex';
|
|
425
|
+
latex: string;
|
|
426
|
+
path: string;
|
|
427
|
+
color: string;
|
|
428
|
+
strokeWidth: number;
|
|
429
|
+
viewBox: [number, number];
|
|
430
|
+
fixedRatio: boolean;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Mermaid diagram element
|
|
434
|
+
*
|
|
435
|
+
* code: Mermaid source; SVG is generated at runtime
|
|
436
|
+
*/
|
|
437
|
+
export interface PPTMermaidElement extends PPTBaseElement {
|
|
438
|
+
type: 'mermaid';
|
|
439
|
+
code: string;
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Syntax-highlighted code example (Shiki).
|
|
443
|
+
*
|
|
444
|
+
* code: source
|
|
445
|
+
* language: Shiki language id
|
|
446
|
+
* theme: Shiki theme id
|
|
447
|
+
* fontSize: editor/slide font size in px
|
|
448
|
+
* showLineNumbers: gutter
|
|
449
|
+
*/
|
|
450
|
+
export interface PPTCodeElement extends PPTBaseElement {
|
|
451
|
+
type: 'code';
|
|
452
|
+
code: string;
|
|
453
|
+
language: string;
|
|
454
|
+
theme: string;
|
|
455
|
+
fontSize: number;
|
|
456
|
+
showLineNumbers: boolean;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Video element.
|
|
460
|
+
*
|
|
461
|
+
* ext: file extension when the URL has none
|
|
462
|
+
*/
|
|
463
|
+
export interface PPTVideoElement extends PPTBaseElement {
|
|
464
|
+
type: 'video';
|
|
465
|
+
src: string;
|
|
466
|
+
autoplay: boolean;
|
|
467
|
+
poster?: string;
|
|
468
|
+
ext?: string;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Audio element.
|
|
472
|
+
*
|
|
473
|
+
* poster: album art or synthesized waveform
|
|
474
|
+
* ext: file extension when the URL has none
|
|
475
|
+
*/
|
|
476
|
+
export interface PPTAudioElement extends PPTBaseElement {
|
|
477
|
+
type: 'audio';
|
|
478
|
+
fixedRatio: boolean;
|
|
479
|
+
color: string;
|
|
480
|
+
loop: boolean;
|
|
481
|
+
autoplay: boolean;
|
|
482
|
+
src: string;
|
|
483
|
+
poster?: string;
|
|
484
|
+
ext?: string;
|
|
485
|
+
}
|
|
486
|
+
export type PPTElement = PPTTextElement | PPTImageElement | PPTShapeElement | PPTLineElement | PPTChartElement | PPTTableElement | PPTLatexElement | PPTMermaidElement | PPTCodeElement | PPTVideoElement | PPTAudioElement;
|
|
487
|
+
export type AnimationType = 'in' | 'out' | 'attention';
|
|
488
|
+
export type AnimationTrigger = 'click' | 'meantime' | 'auto';
|
|
489
|
+
/**
|
|
490
|
+
* Element animation.
|
|
491
|
+
*
|
|
492
|
+
* type: entrance, exit, or emphasis
|
|
493
|
+
* trigger: click, with previous (`meantime`), or after previous (`auto`)
|
|
494
|
+
*/
|
|
495
|
+
export interface PPTAnimation {
|
|
496
|
+
id: string;
|
|
497
|
+
elId: string;
|
|
498
|
+
effect: string;
|
|
499
|
+
type: AnimationType;
|
|
500
|
+
duration: number;
|
|
501
|
+
trigger: AnimationTrigger;
|
|
502
|
+
}
|
|
503
|
+
export type SlideBackgroundType = 'solid' | 'image' | 'gradient';
|
|
504
|
+
export type SlideBackgroundImageSize = 'cover' | 'contain' | 'repeat';
|
|
505
|
+
export interface SlideBackgroundImage {
|
|
506
|
+
src: string;
|
|
507
|
+
size: SlideBackgroundImageSize;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Slide background: solid, image, or gradient.
|
|
511
|
+
*/
|
|
512
|
+
export interface SlideBackground {
|
|
513
|
+
type: SlideBackgroundType;
|
|
514
|
+
color?: string;
|
|
515
|
+
image?: SlideBackgroundImage;
|
|
516
|
+
gradient?: Gradient;
|
|
517
|
+
}
|
|
518
|
+
export type TurningMode = 'no' | 'fade' | 'slideX' | 'slideY' | 'random' | 'slideX3D' | 'slideY3D' | 'rotate' | 'scaleY' | 'scaleX' | 'scale' | 'scaleReverse';
|
|
519
|
+
export interface NoteReply {
|
|
520
|
+
id: string;
|
|
521
|
+
content: string;
|
|
522
|
+
time: number;
|
|
523
|
+
user: string;
|
|
524
|
+
}
|
|
525
|
+
export interface Note {
|
|
526
|
+
id: string;
|
|
527
|
+
content: string;
|
|
528
|
+
time: number;
|
|
529
|
+
user: string;
|
|
530
|
+
elId?: string;
|
|
531
|
+
replies?: NoteReply[];
|
|
532
|
+
}
|
|
533
|
+
export interface SectionTag {
|
|
534
|
+
id: string;
|
|
535
|
+
title?: string;
|
|
536
|
+
}
|
|
537
|
+
export type SlideType = 'cover' | 'contents' | 'transition' | 'content' | 'end';
|
|
538
|
+
/**
|
|
539
|
+
* Slide page.
|
|
540
|
+
*
|
|
541
|
+
* notes?: comments
|
|
542
|
+
* remark?: speaker notes
|
|
543
|
+
* turningMode?: transition
|
|
544
|
+
* sourcePackageId?: retained PPTX package id (when imported from Office)
|
|
545
|
+
*/
|
|
546
|
+
export interface Slide {
|
|
547
|
+
id: string;
|
|
548
|
+
elements: PPTElement[];
|
|
549
|
+
notes?: Note[];
|
|
550
|
+
remark?: string;
|
|
551
|
+
background?: SlideBackground;
|
|
552
|
+
animations?: PPTAnimation[];
|
|
553
|
+
turningMode?: TurningMode;
|
|
554
|
+
sectionTag?: SectionTag;
|
|
555
|
+
type?: SlideType;
|
|
556
|
+
sourcePackageId?: string;
|
|
557
|
+
}
|
|
558
|
+
/**
|
|
559
|
+
* Slide theme (background, accent colors, default font).
|
|
560
|
+
*/
|
|
561
|
+
export interface SlideTheme {
|
|
562
|
+
backgroundColor: string;
|
|
563
|
+
themeColors: string[];
|
|
564
|
+
fontColor: string;
|
|
565
|
+
fontName: string;
|
|
566
|
+
outline: PPTElementOutline;
|
|
567
|
+
shadow: PPTElementShadow;
|
|
568
|
+
/**
|
|
569
|
+
* Id of the agentic style preset last applied via `deck.applyStyle`. Additive
|
|
570
|
+
* and optional: it lets `slides.createFromLayout` inherit the active preset's
|
|
571
|
+
* role tokens (colors, fonts, type scale) without re-specifying them. It is a
|
|
572
|
+
* plain string so it survives theme merges and document (de)serialization.
|
|
573
|
+
*/
|
|
574
|
+
styleId?: string;
|
|
575
|
+
}
|
|
576
|
+
export interface SlideTemplate {
|
|
577
|
+
name: string;
|
|
578
|
+
id: string;
|
|
579
|
+
cover: string;
|
|
580
|
+
origin?: string;
|
|
581
|
+
}
|
|
582
|
+
/** Theme pack imported from a local .json / .fika file */
|
|
583
|
+
export interface ImportedSlideTemplate {
|
|
584
|
+
name: string;
|
|
585
|
+
id: string;
|
|
586
|
+
slides: Slide[];
|
|
587
|
+
theme: Partial<SlideTheme>;
|
|
588
|
+
width: number;
|
|
589
|
+
height: number;
|
|
590
|
+
}
|
|
591
|
+
/** Theme import/export file payload */
|
|
592
|
+
export interface SlideThemeFile {
|
|
593
|
+
title: string;
|
|
594
|
+
slides: Slide[];
|
|
595
|
+
theme: Partial<SlideTheme>;
|
|
596
|
+
width: number;
|
|
597
|
+
height: number;
|
|
598
|
+
}
|
|
599
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const enum ToolbarStates {
|
|
2
|
+
EL_ANIMATION = "elAnimation",
|
|
3
|
+
EL_STYLE = "elStyle",
|
|
4
|
+
EL_POSITION = "elPosition",
|
|
5
|
+
SLIDE_DESIGN = "slideDesign",
|
|
6
|
+
SLIDE_ANIMATION = "slideAnimation",
|
|
7
|
+
MULTI_STYLE = "multiStyle",
|
|
8
|
+
MULTI_POSITION = "multiPosition"
|
|
9
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tiny helpers for agent-authored plain text before it becomes slide HTML.
|
|
3
|
+
*
|
|
4
|
+
* Models often emit:
|
|
5
|
+
* - literal escape sequences (`\n`, `\r\n`, `\r`) instead of real newlines
|
|
6
|
+
* - HTML entities (`&`, ` `, `„`, …) instead of characters
|
|
7
|
+
*
|
|
8
|
+
* These helpers are intentionally dumb — no math parsing here. Callers that mix
|
|
9
|
+
* TeX must run newline unescaping only on non-math text via `normalizeAgentText`
|
|
10
|
+
* in `markdown.ts` (which uses the real `tokenizeMath` scanner).
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Decode HTML entities in a plain-text / markdown string.
|
|
14
|
+
* Prefer a DOM textarea when available; fall back to a pure regex path for Node tests.
|
|
15
|
+
*/
|
|
16
|
+
export declare function decodeHtmlEntities(text: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Turn literal `\r\n` / `\n` / `\r` escape sequences into real newlines.
|
|
19
|
+
* Inline code spans are left untouched so `` `$\\nu$` `` stays intact; this is
|
|
20
|
+
* not a math parser — TeX protection belongs to {@link tokenizeMath}.
|
|
21
|
+
*/
|
|
22
|
+
export declare function unescapeAgentNewlines(text: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* Convert real newlines (`\r\n` / `\r` / `\n`) to `<br/>` for HTML `content` paths.
|
|
25
|
+
* Literal escape sequences are unescaped first. Entity decoding runs only when the
|
|
26
|
+
* input does not already look like HTML, so intentional `&` in markup is kept.
|
|
27
|
+
*/
|
|
28
|
+
export declare function agentTextToHtmlBreaks(text: string): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function setFikaAssetBase(base: string | undefined | null): void;
|
|
2
|
+
export declare function getFikaAssetBase(): string;
|
|
3
|
+
/** Resolve a packaged-asset path against the configured asset base. */
|
|
4
|
+
export declare function resolveFikaAsset(path: string): string;
|