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.
Files changed (784) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +45 -27
  3. package/dist/embed/947.css +1 -0
  4. package/dist/embed/947.js +144 -0
  5. package/dist/embed/agentic-manifest.json +2407 -0
  6. package/dist/embed/apple-touch-icon.png +0 -0
  7. package/dist/embed/chunks/1.js +1 -0
  8. package/dist/embed/chunks/104.js +1 -0
  9. package/dist/embed/chunks/1074.js +1 -0
  10. package/dist/embed/chunks/1085.js +1 -0
  11. package/dist/embed/chunks/1131.css +1 -0
  12. package/dist/embed/chunks/1131.js +1 -0
  13. package/dist/embed/chunks/1169.js +1 -0
  14. package/dist/embed/chunks/1172.js +1 -0
  15. package/dist/embed/chunks/1212.js +1 -0
  16. package/dist/embed/chunks/1255.js +1 -0
  17. package/dist/embed/chunks/1432.js +1 -0
  18. package/dist/embed/chunks/1436.js +1 -0
  19. package/dist/embed/chunks/1505.js +8 -0
  20. package/dist/embed/chunks/1605.js +1 -0
  21. package/dist/embed/chunks/1668.js +1 -0
  22. package/dist/embed/chunks/1804.js +8 -0
  23. package/dist/embed/chunks/1904.js +104 -0
  24. package/dist/embed/chunks/1915.js +1 -0
  25. package/dist/embed/chunks/1916.js +1 -0
  26. package/dist/embed/chunks/1932.js +1 -0
  27. package/dist/embed/chunks/2011.js +1 -0
  28. package/dist/embed/chunks/2020.js +3473 -0
  29. package/dist/embed/chunks/2131.js +1 -0
  30. package/dist/embed/chunks/2143.js +62 -0
  31. package/dist/embed/chunks/2190.js +1 -0
  32. package/dist/embed/chunks/2246.js +1 -0
  33. package/dist/embed/chunks/2289.js +80 -0
  34. package/dist/embed/chunks/2402.js +1 -0
  35. package/dist/embed/chunks/2407.js +1 -0
  36. package/dist/embed/chunks/2489.js +1 -0
  37. package/dist/embed/chunks/2528.js +1 -0
  38. package/dist/embed/chunks/2632.js +1 -0
  39. package/dist/embed/chunks/2694.js +1 -0
  40. package/dist/embed/chunks/2714.js +1 -0
  41. package/dist/embed/chunks/273.js +24 -0
  42. package/dist/embed/chunks/2796.js +34 -0
  43. package/dist/embed/chunks/2807.css +1 -0
  44. package/dist/embed/chunks/2807.js +1 -0
  45. package/dist/embed/chunks/3030.js +1 -0
  46. package/dist/embed/chunks/3031.js +1 -0
  47. package/dist/embed/chunks/3088.js +1 -0
  48. package/dist/embed/chunks/3103.js +1 -0
  49. package/dist/embed/chunks/3143.js +1 -0
  50. package/dist/embed/chunks/3359.js +1 -0
  51. package/dist/embed/chunks/3443.js +1 -0
  52. package/dist/embed/chunks/3479.js +1 -0
  53. package/dist/embed/chunks/3555.js +1 -0
  54. package/dist/embed/chunks/3581.js +77 -0
  55. package/dist/embed/chunks/360.css +1 -0
  56. package/dist/embed/chunks/360.js +1 -0
  57. package/dist/embed/chunks/362.js +1 -0
  58. package/dist/embed/chunks/3729.js +160 -0
  59. package/dist/embed/chunks/3888.js +1 -0
  60. package/dist/embed/chunks/3907.js +1 -0
  61. package/dist/embed/chunks/397.js +1 -0
  62. package/dist/embed/chunks/401.js +1 -0
  63. package/dist/embed/chunks/4110.js +1 -0
  64. package/dist/embed/chunks/4145.js +1 -0
  65. package/dist/embed/chunks/4335.js +1 -0
  66. package/dist/embed/chunks/435.js +1 -0
  67. package/dist/embed/chunks/4354.js +27 -0
  68. package/dist/embed/chunks/4359.js +1 -0
  69. package/dist/embed/chunks/4467.js +1 -0
  70. package/dist/embed/chunks/4515.js +1 -0
  71. package/dist/embed/chunks/4552.js +287 -0
  72. package/dist/embed/chunks/4606.js +1 -0
  73. package/dist/embed/chunks/4607.js +1 -0
  74. package/dist/embed/chunks/4619.js +86 -0
  75. package/dist/embed/chunks/4625.js +153 -0
  76. package/dist/embed/chunks/4632.css +1 -0
  77. package/dist/embed/chunks/4632.js +1 -0
  78. package/dist/embed/chunks/4637.js +1 -0
  79. package/dist/embed/chunks/4794.js +1 -0
  80. package/dist/embed/chunks/4891.js +226 -0
  81. package/dist/embed/chunks/4936.js +82 -0
  82. package/dist/embed/chunks/4950.js +1 -0
  83. package/dist/embed/chunks/4975.js +255 -0
  84. package/dist/embed/chunks/5026.js +1 -0
  85. package/dist/embed/chunks/5075.js +1 -0
  86. package/dist/embed/chunks/5216.css +1 -0
  87. package/dist/embed/chunks/5216.js +1 -0
  88. package/dist/embed/chunks/5239.js +1 -0
  89. package/dist/embed/chunks/5250.js +1 -0
  90. package/dist/embed/chunks/5316.js +1 -0
  91. package/dist/embed/chunks/5437.js +1 -0
  92. package/dist/embed/chunks/5480.js +1 -0
  93. package/dist/embed/chunks/5532.js +1 -0
  94. package/dist/embed/chunks/5659.js +64 -0
  95. package/dist/embed/chunks/574.js +1 -0
  96. package/dist/embed/chunks/5768.js +1 -0
  97. package/dist/embed/chunks/5773.js +1 -0
  98. package/dist/embed/chunks/5792.js +141 -0
  99. package/dist/embed/chunks/5809.js +1 -0
  100. package/dist/embed/chunks/5835.js +1 -0
  101. package/dist/embed/chunks/5889.js +1 -0
  102. package/dist/embed/chunks/5901.js +1 -0
  103. package/dist/embed/chunks/5907.js +1 -0
  104. package/dist/embed/chunks/5989.js +1 -0
  105. package/dist/embed/chunks/5992.js +1 -0
  106. package/dist/embed/chunks/6014.js +1 -0
  107. package/dist/embed/chunks/6063.js +1 -0
  108. package/dist/embed/chunks/6136.js +1 -0
  109. package/dist/embed/chunks/6144.css +1 -0
  110. package/dist/embed/chunks/6144.js +1 -0
  111. package/dist/embed/chunks/627.js +115 -0
  112. package/dist/embed/chunks/6339.js +1 -0
  113. package/dist/embed/chunks/635.js +1 -0
  114. package/dist/embed/chunks/6361.js +1 -0
  115. package/dist/embed/chunks/647.js +1 -0
  116. package/dist/embed/chunks/6522.js +1 -0
  117. package/dist/embed/chunks/6567.js +1 -0
  118. package/dist/embed/chunks/6580.js +1 -0
  119. package/dist/embed/chunks/6609.css +1 -0
  120. package/dist/embed/chunks/6609.js +1 -0
  121. package/dist/embed/chunks/6690.js +1 -0
  122. package/dist/embed/chunks/6704.js +1 -0
  123. package/dist/embed/chunks/6778.js +1 -0
  124. package/dist/embed/chunks/6935.js +1 -0
  125. package/dist/embed/chunks/6999.js +93 -0
  126. package/dist/embed/chunks/7048.js +1 -0
  127. package/dist/embed/chunks/7101.js +1 -0
  128. package/dist/embed/chunks/7132.js +1 -0
  129. package/dist/embed/chunks/717.js +148 -0
  130. package/dist/embed/chunks/7175.js +90 -0
  131. package/dist/embed/chunks/7193.css +1 -0
  132. package/dist/embed/chunks/7193.js +1 -0
  133. package/dist/embed/chunks/7245.js +1 -0
  134. package/dist/embed/chunks/7255.js +1 -0
  135. package/dist/embed/chunks/7272.js +1 -0
  136. package/dist/embed/chunks/7309.js +1 -0
  137. package/dist/embed/chunks/7311.js +23 -0
  138. package/dist/embed/chunks/736.js +1 -0
  139. package/dist/embed/chunks/7376.js +1 -0
  140. package/dist/embed/chunks/7453.js +1 -0
  141. package/dist/embed/chunks/7463.js +1 -0
  142. package/dist/embed/chunks/7468.js +1 -0
  143. package/dist/embed/chunks/7588.js +41 -0
  144. package/dist/embed/chunks/7594.js +1 -0
  145. package/dist/embed/chunks/7854.js +38 -0
  146. package/dist/embed/chunks/788.js +24 -0
  147. package/dist/embed/chunks/7916.js +79 -0
  148. package/dist/embed/chunks/7924.js +1 -0
  149. package/dist/embed/chunks/7980.js +1 -0
  150. package/dist/embed/chunks/809.js +1 -0
  151. package/dist/embed/chunks/810.js +1 -0
  152. package/dist/embed/chunks/818.js +1 -0
  153. package/dist/embed/chunks/8212.js +36 -0
  154. package/dist/embed/chunks/8239.js +1 -0
  155. package/dist/embed/chunks/8252.js +1 -0
  156. package/dist/embed/chunks/8378.css +1 -0
  157. package/dist/embed/chunks/8378.js +1 -0
  158. package/dist/embed/chunks/8449.js +1 -0
  159. package/dist/embed/chunks/8516.js +1 -0
  160. package/dist/embed/chunks/8606.js +1 -0
  161. package/dist/embed/chunks/862.css +1 -0
  162. package/dist/embed/chunks/862.js +1 -0
  163. package/dist/embed/chunks/8620.js +1 -0
  164. package/dist/embed/chunks/8623.js +138 -0
  165. package/dist/embed/chunks/8645.js +1 -0
  166. package/dist/embed/chunks/8716.js +215 -0
  167. package/dist/embed/chunks/8724.js +1 -0
  168. package/dist/embed/chunks/8735.js +1 -0
  169. package/dist/embed/chunks/8941.js +1 -0
  170. package/dist/embed/chunks/9121.js +1 -0
  171. package/dist/embed/chunks/919.js +1 -0
  172. package/dist/embed/chunks/9203.js +1 -0
  173. package/dist/embed/chunks/9245.js +1 -0
  174. package/dist/embed/chunks/9252.js +1 -0
  175. package/dist/embed/chunks/9465.js +5 -0
  176. package/dist/embed/chunks/9475.js +1 -0
  177. package/dist/embed/chunks/9657.css +1 -0
  178. package/dist/embed/chunks/9657.js +1 -0
  179. package/dist/embed/chunks/968.js +1 -0
  180. package/dist/embed/chunks/9739.js +1 -0
  181. package/dist/embed/chunks/9761.js +1 -0
  182. package/dist/embed/chunks/9800.css +1 -0
  183. package/dist/embed/chunks/9800.js +1 -0
  184. package/dist/embed/chunks/9976.js +1 -0
  185. package/dist/embed/favicon-32.png +0 -0
  186. package/dist/embed/favicon.ico +0 -0
  187. package/dist/embed/favicon.svg +7 -0
  188. package/dist/embed/fika-embed.css +1 -0
  189. package/dist/embed/fika-embed.js +6 -0
  190. package/dist/embed/logo.png +0 -0
  191. package/dist/embed/static/font/fonts/Inter.woff2 +0 -0
  192. package/dist/embed/static/font/fonts/JetBrainsMono.woff2 +0 -0
  193. package/dist/embed/static/font/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  194. package/dist/embed/static/font/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  195. package/dist/embed/static/font/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  196. package/dist/embed/static/font/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  197. package/dist/embed/static/font/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  198. package/dist/embed/static/font/fonts/KaTeX_Main-Bold.woff2 +0 -0
  199. package/dist/embed/static/font/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  200. package/dist/embed/static/font/fonts/KaTeX_Main-Italic.woff2 +0 -0
  201. package/dist/embed/static/font/fonts/KaTeX_Main-Regular.woff2 +0 -0
  202. package/dist/embed/static/font/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  203. package/dist/embed/static/font/fonts/KaTeX_Math-Italic.woff2 +0 -0
  204. package/dist/embed/static/font/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  205. package/dist/embed/static/font/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  206. package/dist/embed/static/font/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  207. package/dist/embed/static/font/fonts/KaTeX_Script-Regular.woff2 +0 -0
  208. package/dist/embed/static/font/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  209. package/dist/embed/static/font/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  210. package/dist/embed/static/font/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  211. package/dist/embed/static/font/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  212. package/dist/embed/static/font/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  213. package/dist/embed/static/font/fonts/Lato.woff2 +0 -0
  214. package/dist/embed/static/font/fonts/Literata.woff2 +0 -0
  215. package/dist/embed/static/font/fonts/Merriweather.woff2 +0 -0
  216. package/dist/embed/static/font/fonts/Montserrat.woff2 +0 -0
  217. package/dist/embed/static/font/fonts/OpenSans.woff2 +0 -0
  218. package/dist/embed/static/font/fonts/Roboto.woff2 +0 -0
  219. package/dist/embed/static/font/fonts/SourceSansPro.woff2 +0 -0
  220. package/dist/embed/static/font/fonts/SourceSerif4.woff2 +0 -0
  221. package/dist/types/components/Button.d.ts +18 -0
  222. package/dist/types/components/ButtonGroup.d.ts +8 -0
  223. package/dist/types/components/ChartDataEditor.d.ts +13 -0
  224. package/dist/types/components/Checkbox.d.ts +12 -0
  225. package/dist/types/components/CodeEditor/CodeEditorSkeleton.d.ts +8 -0
  226. package/dist/types/components/CodeEditor/codeMirror.d.ts +23 -0
  227. package/dist/types/components/CodeEditor/index.d.ts +14 -0
  228. package/dist/types/components/CodeEditor/lazy.d.ts +3 -0
  229. package/dist/types/components/ColorButton.d.ts +8 -0
  230. package/dist/types/components/ColorListButton.d.ts +8 -0
  231. package/dist/types/components/ColorPicker/Alpha.d.ts +12 -0
  232. package/dist/types/components/ColorPicker/Checkboard.d.ts +11 -0
  233. package/dist/types/components/ColorPicker/EditableInput.d.ts +12 -0
  234. package/dist/types/components/ColorPicker/Hue.d.ts +13 -0
  235. package/dist/types/components/ColorPicker/Saturation.d.ts +13 -0
  236. package/dist/types/components/ColorPicker/index.d.ts +11 -0
  237. package/dist/types/components/ColorSwatches.d.ts +22 -0
  238. package/dist/types/components/ConfirmDialog.d.ts +16 -0
  239. package/dist/types/components/Contextmenu/MenuContent.d.ts +8 -0
  240. package/dist/types/components/Contextmenu/index.d.ts +14 -0
  241. package/dist/types/components/Contextmenu/types.d.ts +13 -0
  242. package/dist/types/components/Divider.d.ts +9 -0
  243. package/dist/types/components/Draggable.d.ts +33 -0
  244. package/dist/types/components/Drawer.d.ts +13 -0
  245. package/dist/types/components/FileInput.d.ts +11 -0
  246. package/dist/types/components/FitText.d.ts +17 -0
  247. package/dist/types/components/FontSizeControl.d.ts +12 -0
  248. package/dist/types/components/FormatChip.d.ts +14 -0
  249. package/dist/types/components/FullscreenSpin.d.ts +9 -0
  250. package/dist/types/components/GradientBar.d.ts +12 -0
  251. package/dist/types/components/Icon.d.ts +144 -0
  252. package/dist/types/components/InkDialog.d.ts +37 -0
  253. package/dist/types/components/InkLoader.d.ts +2 -0
  254. package/dist/types/components/InkPaintSwatches.d.ts +14 -0
  255. package/dist/types/components/InkProgress.d.ts +6 -0
  256. package/dist/types/components/Input.d.ts +25 -0
  257. package/dist/types/components/JobProgressOverlay.d.ts +18 -0
  258. package/dist/types/components/LaTeXEditor/LatexEditorSkeleton.d.ts +1 -0
  259. package/dist/types/components/LaTeXEditor/MathFieldSkeleton.d.ts +4 -0
  260. package/dist/types/components/LaTeXEditor/hfmath.d.ts +5 -0
  261. package/dist/types/components/LaTeXEditor/index.d.ts +12 -0
  262. package/dist/types/components/LaTeXEditor/lazy.d.ts +3 -0
  263. package/dist/types/components/MermaidEditor/MermaidEditorSkeleton.d.ts +1 -0
  264. package/dist/types/components/MermaidEditor/index.d.ts +8 -0
  265. package/dist/types/components/MermaidEditor/lazy.d.ts +3 -0
  266. package/dist/types/components/Message.d.ts +15 -0
  267. package/dist/types/components/Modal.d.ts +16 -0
  268. package/dist/types/components/MoveablePanel.d.ts +20 -0
  269. package/dist/types/components/NumberInput.d.ts +24 -0
  270. package/dist/types/components/OverlayTrigger.d.ts +14 -0
  271. package/dist/types/components/Popover.d.ts +24 -0
  272. package/dist/types/components/PopoverMenuItem.d.ts +11 -0
  273. package/dist/types/components/RadioButton.d.ts +11 -0
  274. package/dist/types/components/RadioGroup.d.ts +12 -0
  275. package/dist/types/components/Select.d.ts +23 -0
  276. package/dist/types/components/SelectCustom.d.ts +12 -0
  277. package/dist/types/components/Slider.d.ts +26 -0
  278. package/dist/types/components/Switch.d.ts +11 -0
  279. package/dist/types/components/Tabs.d.ts +23 -0
  280. package/dist/types/components/TextArea.d.ts +22 -0
  281. package/dist/types/components/WritingBoard.d.ts +28 -0
  282. package/dist/types/components/draggableLayout.d.ts +35 -0
  283. package/dist/types/components/writingBoardCommands.d.ts +7 -0
  284. package/dist/types/configs/animation.d.ts +276 -0
  285. package/dist/types/configs/chart.d.ts +11 -0
  286. package/dist/types/configs/code.d.ts +193 -0
  287. package/dist/types/configs/element.d.ts +3 -0
  288. package/dist/types/configs/exportMediaResolver.d.ts +11 -0
  289. package/dist/types/configs/exportTabs.d.ts +11 -0
  290. package/dist/types/configs/featureFlags.d.ts +15 -0
  291. package/dist/types/configs/font.d.ts +25 -0
  292. package/dist/types/configs/headerMenu.d.ts +4 -0
  293. package/dist/types/configs/hotkey.d.ts +42 -0
  294. package/dist/types/configs/imageClip.d.ts +30 -0
  295. package/dist/types/configs/inkPaint.d.ts +37 -0
  296. package/dist/types/configs/laser.d.ts +10 -0
  297. package/dist/types/configs/lines.d.ts +21 -0
  298. package/dist/types/configs/localeSwitcher.d.ts +2 -0
  299. package/dist/types/configs/mediaUpload.d.ts +71 -0
  300. package/dist/types/configs/mime.d.ts +4 -0
  301. package/dist/types/configs/shapes.d.ts +26 -0
  302. package/dist/types/configs/starterPresentation.d.ts +32 -0
  303. package/dist/types/configs/storage.d.ts +1 -0
  304. package/dist/types/configs/symbol/arrow.d.ts +2 -0
  305. package/dist/types/configs/symbol/emoji/action.d.ts +2 -0
  306. package/dist/types/configs/symbol/emoji/activity.d.ts +2 -0
  307. package/dist/types/configs/symbol/emoji/expression.d.ts +2 -0
  308. package/dist/types/configs/symbol/emoji/faunaFlora.d.ts +2 -0
  309. package/dist/types/configs/symbol/emoji/food.d.ts +2 -0
  310. package/dist/types/configs/symbol/emoji/objects.d.ts +2 -0
  311. package/dist/types/configs/symbol/emoji/symbols.d.ts +2 -0
  312. package/dist/types/configs/symbol/emoji/travel.d.ts +2 -0
  313. package/dist/types/configs/symbol/graph.d.ts +2 -0
  314. package/dist/types/configs/symbol/index.d.ts +8 -0
  315. package/dist/types/configs/symbol/letter.d.ts +2 -0
  316. package/dist/types/configs/symbol/math.d.ts +2 -0
  317. package/dist/types/configs/symbol/number.d.ts +2 -0
  318. package/dist/types/configs/table.d.ts +15 -0
  319. package/dist/types/configs/templates.d.ts +15 -0
  320. package/dist/types/configs/textPresets.d.ts +85 -0
  321. package/dist/types/configs/theme.d.ts +44 -0
  322. package/dist/types/directive/tooltip.d.ts +5 -0
  323. package/dist/types/embed/EmbedRoot.d.ts +5 -0
  324. package/dist/types/embed/agentic/composition.d.ts +84 -0
  325. package/dist/types/embed/agentic/createAgenticApi.d.ts +11 -0
  326. package/dist/types/embed/agentic/fixtures.d.ts +30 -0
  327. package/dist/types/embed/agentic/helpers.d.ts +115 -0
  328. package/dist/types/embed/agentic/layouts.d.ts +114 -0
  329. package/dist/types/embed/agentic/manifestDocs.d.ts +73 -0
  330. package/dist/types/embed/agentic/qa.d.ts +47 -0
  331. package/dist/types/embed/agentic/styles.d.ts +131 -0
  332. package/dist/types/embed/agentic/templates.d.ts +32 -0
  333. package/dist/types/embed/agentic/types.d.ts +2062 -0
  334. package/dist/types/embed/agentic/validators.d.ts +32 -0
  335. package/dist/types/embed/createController.d.ts +7 -0
  336. package/dist/types/embed/index.d.ts +9 -0
  337. package/dist/types/embed/inferViewport.d.ts +11 -0
  338. package/dist/types/embed/localeBridge.d.ts +4 -0
  339. package/dist/types/embed/mount.d.ts +12 -0
  340. package/dist/types/embed/types.d.ts +183 -0
  341. package/dist/types/hooks/useAddSlidesOrElements.d.ts +6 -0
  342. package/dist/types/hooks/useAlignActiveElement.d.ts +5 -0
  343. package/dist/types/hooks/useAlignElementToCanvas.d.ts +5 -0
  344. package/dist/types/hooks/useClickOutside.d.ts +7 -0
  345. package/dist/types/hooks/useCombineElement.d.ts +7 -0
  346. package/dist/types/hooks/useCopyAndPasteElement.d.ts +7 -0
  347. package/dist/types/hooks/useCreateElement.d.ts +50 -0
  348. package/dist/types/hooks/useDeleteElement.d.ts +5 -0
  349. package/dist/types/hooks/useElementContextmenu.d.ts +6 -0
  350. package/dist/types/hooks/useExport.d.ts +13 -0
  351. package/dist/types/hooks/useGlobalHotkey.d.ts +2 -0
  352. package/dist/types/hooks/useHeldSlideElement.d.ts +9 -0
  353. package/dist/types/hooks/useHideElement.d.ts +6 -0
  354. package/dist/types/hooks/useHistorySnapshot.d.ts +6 -0
  355. package/dist/types/hooks/useHoldAfterOpen.d.ts +2 -0
  356. package/dist/types/hooks/useImageHandler.d.ts +4 -0
  357. package/dist/types/hooks/useImport.d.ts +21 -0
  358. package/dist/types/hooks/useLink.d.ts +6 -0
  359. package/dist/types/hooks/useLockElement.d.ts +6 -0
  360. package/dist/types/hooks/useMediaPlayerTeleport.d.ts +5 -0
  361. package/dist/types/hooks/useMediaPoster.d.ts +8 -0
  362. package/dist/types/hooks/useMediaQueue.d.ts +24 -0
  363. package/dist/types/hooks/useMoveElement.d.ts +4 -0
  364. package/dist/types/hooks/useOrderElement.d.ts +6 -0
  365. package/dist/types/hooks/useOverlayPhase.d.ts +14 -0
  366. package/dist/types/hooks/usePasteDataTransfer.d.ts +7 -0
  367. package/dist/types/hooks/usePasteEvent.d.ts +2 -0
  368. package/dist/types/hooks/usePasteTextClipboardData.d.ts +8 -0
  369. package/dist/types/hooks/useScaleCanvas.d.ts +25 -0
  370. package/dist/types/hooks/useScreening.d.ts +10 -0
  371. package/dist/types/hooks/useSearch.d.ts +28 -0
  372. package/dist/types/hooks/useSectionHandler.d.ts +8 -0
  373. package/dist/types/hooks/useSelectElement.d.ts +5 -0
  374. package/dist/types/hooks/useShapeFormatPainter.d.ts +4 -0
  375. package/dist/types/hooks/useSlideBackgroundStyle.d.ts +19 -0
  376. package/dist/types/hooks/useSlideHandler.d.ts +16 -0
  377. package/dist/types/hooks/useSlideTheme.d.ts +16 -0
  378. package/dist/types/hooks/useUniformDisplayElement.d.ts +6 -0
  379. package/dist/types/i18n/cs/canvas/index.d.ts +3 -0
  380. package/dist/types/i18n/cs/common/index.d.ts +3 -0
  381. package/dist/types/i18n/cs/components/index.d.ts +3 -0
  382. package/dist/types/i18n/cs/configs/index.d.ts +3 -0
  383. package/dist/types/i18n/cs/editor/index.d.ts +3 -0
  384. package/dist/types/i18n/cs/export/index.d.ts +3 -0
  385. package/dist/types/i18n/cs/index.d.ts +3 -0
  386. package/dist/types/i18n/cs/mobile/index.d.ts +3 -0
  387. package/dist/types/i18n/cs/screen/index.d.ts +3 -0
  388. package/dist/types/i18n/en/canvas/index.d.ts +3 -0
  389. package/dist/types/i18n/en/common/index.d.ts +3 -0
  390. package/dist/types/i18n/en/components/index.d.ts +3 -0
  391. package/dist/types/i18n/en/configs/index.d.ts +3 -0
  392. package/dist/types/i18n/en/editor/index.d.ts +3 -0
  393. package/dist/types/i18n/en/export/index.d.ts +3 -0
  394. package/dist/types/i18n/en/index.d.ts +3 -0
  395. package/dist/types/i18n/en/mobile/index.d.ts +3 -0
  396. package/dist/types/i18n/en/screen/index.d.ts +3 -0
  397. package/dist/types/i18n/formatters.d.ts +6 -0
  398. package/dist/types/i18n/getLL.d.ts +8 -0
  399. package/dist/types/i18n/i18n-react.d.ts +23 -0
  400. package/dist/types/i18n/i18n-types.d.ts +10276 -0
  401. package/dist/types/i18n/i18n-util.async.d.ts +16 -0
  402. package/dist/types/i18n/i18n-util.d.ts +24 -0
  403. package/dist/types/i18n/i18n-util.sync.d.ts +4 -0
  404. package/dist/types/i18n/locale.d.ts +12 -0
  405. package/dist/types/i18n/pl/canvas/index.d.ts +3 -0
  406. package/dist/types/i18n/pl/common/index.d.ts +3 -0
  407. package/dist/types/i18n/pl/components/index.d.ts +3 -0
  408. package/dist/types/i18n/pl/configs/index.d.ts +3 -0
  409. package/dist/types/i18n/pl/editor/index.d.ts +3 -0
  410. package/dist/types/i18n/pl/export/index.d.ts +3 -0
  411. package/dist/types/i18n/pl/index.d.ts +3 -0
  412. package/dist/types/i18n/pl/mobile/index.d.ts +3 -0
  413. package/dist/types/i18n/pl/screen/index.d.ts +3 -0
  414. package/dist/types/i18n/sk/canvas/index.d.ts +3 -0
  415. package/dist/types/i18n/sk/common/index.d.ts +3 -0
  416. package/dist/types/i18n/sk/components/index.d.ts +3 -0
  417. package/dist/types/i18n/sk/configs/index.d.ts +3 -0
  418. package/dist/types/i18n/sk/editor/index.d.ts +3 -0
  419. package/dist/types/i18n/sk/export/index.d.ts +3 -0
  420. package/dist/types/i18n/sk/index.d.ts +3 -0
  421. package/dist/types/i18n/sk/mobile/index.d.ts +3 -0
  422. package/dist/types/i18n/sk/screen/index.d.ts +3 -0
  423. package/dist/types/i18n/useI18nContext.d.ts +1 -0
  424. package/dist/types/services/fetch.d.ts +2 -0
  425. package/dist/types/services/index.d.ts +10 -0
  426. package/dist/types/store/accessors.d.ts +21 -0
  427. package/dist/types/store/importConfirm.d.ts +13 -0
  428. package/dist/types/store/index.d.ts +10 -0
  429. package/dist/types/store/keyboard.d.ts +21 -0
  430. package/dist/types/store/main.d.ts +83 -0
  431. package/dist/types/store/screen.d.ts +8 -0
  432. package/dist/types/store/slides.d.ts +3304 -0
  433. package/dist/types/store/snapshot.d.ts +16 -0
  434. package/dist/types/types/css.d.ts +7 -0
  435. package/dist/types/types/edit.d.ts +118 -0
  436. package/dist/types/types/export.d.ts +1 -0
  437. package/dist/types/types/injectKey.d.ts +18 -0
  438. package/dist/types/types/mobile.d.ts +1 -0
  439. package/dist/types/types/slides.d.ts +599 -0
  440. package/dist/types/types/toolbar.d.ts +9 -0
  441. package/dist/types/utils/agentText.d.ts +28 -0
  442. package/dist/types/utils/assetBase.d.ts +4 -0
  443. package/dist/types/utils/canvasHitTest.d.ts +200 -0
  444. package/dist/types/utils/canvasPointer.d.ts +53 -0
  445. package/dist/types/utils/canvasZoom.d.ts +36 -0
  446. package/dist/types/utils/clipboard.d.ts +9 -0
  447. package/dist/types/utils/clonePlain.d.ts +1 -0
  448. package/dist/types/utils/codeHighlight.d.ts +84 -0
  449. package/dist/types/utils/codePptxExport.d.ts +44 -0
  450. package/dist/types/utils/commandHistory.d.ts +17 -0
  451. package/dist/types/utils/commitQueue.d.ts +13 -0
  452. package/dist/types/utils/commitSlideElements.d.ts +6 -0
  453. package/dist/types/utils/common.d.ts +30 -0
  454. package/dist/types/utils/crypto.d.ts +10 -0
  455. package/dist/types/utils/cssLength.d.ts +8 -0
  456. package/dist/types/utils/cssm.d.ts +4 -0
  457. package/dist/types/utils/database.d.ts +25 -0
  458. package/dist/types/utils/debounce.d.ts +19 -0
  459. package/dist/types/utils/diffPaintedSlide.d.ts +11 -0
  460. package/dist/types/utils/element.d.ts +387 -0
  461. package/dist/types/utils/elementOrder.d.ts +8 -0
  462. package/dist/types/utils/elementOutline.d.ts +41 -0
  463. package/dist/types/utils/emitter.d.ts +54 -0
  464. package/dist/types/utils/exportFonts.d.ts +22 -0
  465. package/dist/types/utils/fitLabel.d.ts +17 -0
  466. package/dist/types/utils/font.d.ts +14 -0
  467. package/dist/types/utils/freehand.d.ts +57 -0
  468. package/dist/types/utils/fullscreen.d.ts +3 -0
  469. package/dist/types/utils/gestureBind.d.ts +18 -0
  470. package/dist/types/utils/hotkeyTarget.d.ts +2 -0
  471. package/dist/types/utils/htmlParser/format.d.ts +3 -0
  472. package/dist/types/utils/htmlParser/index.d.ts +4 -0
  473. package/dist/types/utils/htmlParser/lexer.d.ts +2 -0
  474. package/dist/types/utils/htmlParser/parser.d.ts +15 -0
  475. package/dist/types/utils/htmlParser/stringify.d.ts +3 -0
  476. package/dist/types/utils/htmlParser/tags.d.ts +4 -0
  477. package/dist/types/utils/htmlParser/types.d.ts +55 -0
  478. package/dist/types/utils/hyperlinkFollow.d.ts +12 -0
  479. package/dist/types/utils/image.d.ts +25 -0
  480. package/dist/types/utils/imageBitmapCache.d.ts +18 -0
  481. package/dist/types/utils/imagePaintSample.d.ts +34 -0
  482. package/dist/types/utils/imageSize.d.ts +9 -0
  483. package/dist/types/utils/importApply.d.ts +31 -0
  484. package/dist/types/utils/inkCommands.d.ts +68 -0
  485. package/dist/types/utils/jobProgress.d.ts +36 -0
  486. package/dist/types/utils/latex.d.ts +27 -0
  487. package/dist/types/utils/latexToOmml.d.ts +28 -0
  488. package/dist/types/utils/liveElementOffset.d.ts +56 -0
  489. package/dist/types/utils/liveElementPaint.d.ts +13 -0
  490. package/dist/types/utils/liveElementSize.d.ts +52 -0
  491. package/dist/types/utils/liveLayoutCommit.d.ts +2 -0
  492. package/dist/types/utils/markdown.d.ts +48 -0
  493. package/dist/types/utils/math.d.ts +90 -0
  494. package/dist/types/utils/mediaFile.d.ts +14 -0
  495. package/dist/types/utils/mediaIntern.d.ts +12 -0
  496. package/dist/types/utils/mediaLayout.d.ts +24 -0
  497. package/dist/types/utils/mediaPoster.d.ts +12 -0
  498. package/dist/types/utils/mermaid.d.ts +18 -0
  499. package/dist/types/utils/message.d.ts +27 -0
  500. package/dist/types/utils/object.d.ts +10 -0
  501. package/dist/types/utils/openContextmenu.d.ts +29 -0
  502. package/dist/types/utils/placeholderLayout.d.ts +83 -0
  503. package/dist/types/utils/placeholderPaint.d.ts +57 -0
  504. package/dist/types/utils/portal.d.ts +37 -0
  505. package/dist/types/utils/pptxImportDiagnostics.d.ts +36 -0
  506. package/dist/types/utils/pptxImportFidelity.d.ts +138 -0
  507. package/dist/types/utils/pptxImportFonts.d.ts +34 -0
  508. package/dist/types/utils/pptxImportMetrics.d.ts +29 -0
  509. package/dist/types/utils/pptxImportPicture.d.ts +30 -0
  510. package/dist/types/utils/pptxImportText.d.ts +26 -0
  511. package/dist/types/utils/pptxSourcePackage.d.ts +19 -0
  512. package/dist/types/utils/pptxStructuredText.d.ts +6 -0
  513. package/dist/types/utils/pptxUnit.d.ts +19 -0
  514. package/dist/types/utils/prosemirror/caret.d.ts +22 -0
  515. package/dist/types/utils/prosemirror/commands/applyPlaceholderStyles.d.ts +29 -0
  516. package/dist/types/utils/prosemirror/commands/replaceText.d.ts +2 -0
  517. package/dist/types/utils/prosemirror/commands/setListStyle.d.ts +4 -0
  518. package/dist/types/utils/prosemirror/commands/setTextAlign.d.ts +5 -0
  519. package/dist/types/utils/prosemirror/commands/setTextIndent.d.ts +3 -0
  520. package/dist/types/utils/prosemirror/commands/toggleList.d.ts +8 -0
  521. package/dist/types/utils/prosemirror/commands/wrapEmptyBulletList.d.ts +5 -0
  522. package/dist/types/utils/prosemirror/commitEditor.d.ts +10 -0
  523. package/dist/types/utils/prosemirror/commitPolicy.d.ts +11 -0
  524. package/dist/types/utils/prosemirror/index.d.ts +7 -0
  525. package/dist/types/utils/prosemirror/plugins/index.d.ts +7 -0
  526. package/dist/types/utils/prosemirror/plugins/inputrules.d.ts +7 -0
  527. package/dist/types/utils/prosemirror/plugins/keymap.d.ts +3 -0
  528. package/dist/types/utils/prosemirror/plugins/placeholder.d.ts +2 -0
  529. package/dist/types/utils/prosemirror/plugins/placeholderFill.d.ts +3 -0
  530. package/dist/types/utils/prosemirror/richTextAttrsFromElement.d.ts +3 -0
  531. package/dist/types/utils/prosemirror/schema/index.d.ts +26 -0
  532. package/dist/types/utils/prosemirror/schema/marks.d.ts +18 -0
  533. package/dist/types/utils/prosemirror/schema/nodes.d.ts +12 -0
  534. package/dist/types/utils/prosemirror/selection.d.ts +15 -0
  535. package/dist/types/utils/prosemirror/utils.d.ts +69 -0
  536. package/dist/types/utils/screening.d.ts +10 -0
  537. package/dist/types/utils/scribbleJoin.d.ts +27 -0
  538. package/dist/types/utils/selection.d.ts +1 -0
  539. package/dist/types/utils/shapePaint.d.ts +23 -0
  540. package/dist/types/utils/simpleShape.d.ts +5 -0
  541. package/dist/types/utils/slideOrder.d.ts +13 -0
  542. package/dist/types/utils/snap.d.ts +78 -0
  543. package/dist/types/utils/spatial/hitIndex.d.ts +18 -0
  544. package/dist/types/utils/spatial/index.d.ts +3 -0
  545. package/dist/types/utils/spatial/segment.d.ts +8 -0
  546. package/dist/types/utils/spatial/snapIndex.d.ts +24 -0
  547. package/dist/types/utils/svg2Base64.d.ts +1 -0
  548. package/dist/types/utils/svgPathParser.d.ts +12 -0
  549. package/dist/types/utils/tableCellStyle.d.ts +12 -0
  550. package/dist/types/utils/tableStyleTarget.d.ts +3 -0
  551. package/dist/types/utils/textBoxLock.d.ts +17 -0
  552. package/dist/types/utils/textContrast.d.ts +228 -0
  553. package/dist/types/utils/textFit.d.ts +213 -0
  554. package/dist/types/utils/textParser.d.ts +5 -0
  555. package/dist/types/utils/tooltipBind.d.ts +10 -0
  556. package/dist/types/views/Editor/Canvas/AlignmentLine.d.ts +13 -0
  557. package/dist/types/views/Editor/Canvas/CanvasScrollbars.d.ts +16 -0
  558. package/dist/types/views/Editor/Canvas/EditableElement.d.ts +13 -0
  559. package/dist/types/views/Editor/Canvas/EditableElement.equal.d.ts +17 -0
  560. package/dist/types/views/Editor/Canvas/ElementCreateSelection.d.ts +6 -0
  561. package/dist/types/views/Editor/Canvas/ElementFloatLayer/AnimationIndex.d.ts +9 -0
  562. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/BorderPanel.d.ts +2 -0
  563. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ChartToolbar.d.ts +6 -0
  564. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/CodeToolbar.d.ts +6 -0
  565. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ImageToolbar.d.ts +6 -0
  566. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LatexToolbar.d.ts +6 -0
  567. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LineToolbar.d.ts +6 -0
  568. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ShapeToolbar.d.ts +7 -0
  569. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TableToolbar.d.ts +6 -0
  570. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextStyleControls.d.ts +2 -0
  571. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextToolbar.d.ts +6 -0
  572. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/index.d.ts +8 -0
  573. package/dist/types/views/Editor/Canvas/ElementFloatLayer/LinkHandler.d.ts +8 -0
  574. package/dist/types/views/Editor/Canvas/ElementFloatLayer/floatCompare.d.ts +15 -0
  575. package/dist/types/views/Editor/Canvas/ElementFloatLayer/index.d.ts +12 -0
  576. package/dist/types/views/Editor/Canvas/GridLines.d.ts +6 -0
  577. package/dist/types/views/Editor/Canvas/HitLayer.d.ts +19 -0
  578. package/dist/types/views/Editor/Canvas/LinkDialog.d.ts +5 -0
  579. package/dist/types/views/Editor/Canvas/MouseSelection.d.ts +8 -0
  580. package/dist/types/views/Editor/Canvas/Operate/BorderLine.d.ts +11 -0
  581. package/dist/types/views/Editor/Canvas/Operate/CommonElementOperate.d.ts +11 -0
  582. package/dist/types/views/Editor/Canvas/Operate/ContextMenuBridge.d.ts +9 -0
  583. package/dist/types/views/Editor/Canvas/Operate/ImageElementOperate.d.ts +10 -0
  584. package/dist/types/views/Editor/Canvas/Operate/LineElementOperate.d.ts +9 -0
  585. package/dist/types/views/Editor/Canvas/Operate/MediaElementOperate.d.ts +11 -0
  586. package/dist/types/views/Editor/Canvas/Operate/MultiSelectOperate.d.ts +11 -0
  587. package/dist/types/views/Editor/Canvas/Operate/ResizeHandler.d.ts +12 -0
  588. package/dist/types/views/Editor/Canvas/Operate/RotateHandler.d.ts +8 -0
  589. package/dist/types/views/Editor/Canvas/Operate/ShapeElementOperate.d.ts +11 -0
  590. package/dist/types/views/Editor/Canvas/Operate/TableElementOperate.d.ts +10 -0
  591. package/dist/types/views/Editor/Canvas/Operate/TextElementOperate.d.ts +10 -0
  592. package/dist/types/views/Editor/Canvas/Operate/index.d.ts +25 -0
  593. package/dist/types/views/Editor/Canvas/Operate/operateCompare.d.ts +33 -0
  594. package/dist/types/views/Editor/Canvas/Operate/operateMemo.d.ts +12 -0
  595. package/dist/types/views/Editor/Canvas/Operate/stopHandleEvent.d.ts +3 -0
  596. package/dist/types/views/Editor/Canvas/Operate/useLatest.d.ts +2 -0
  597. package/dist/types/views/Editor/Canvas/Ruler.d.ts +14 -0
  598. package/dist/types/views/Editor/Canvas/ShapeCreateCanvas.d.ts +7 -0
  599. package/dist/types/views/Editor/Canvas/ViewportBackground.d.ts +2 -0
  600. package/dist/types/views/Editor/Canvas/elementListSync.d.ts +12 -0
  601. package/dist/types/views/Editor/Canvas/hooks/useCommonOperate.d.ts +44 -0
  602. package/dist/types/views/Editor/Canvas/hooks/useDragElement.d.ts +6 -0
  603. package/dist/types/views/Editor/Canvas/hooks/useDragLineElement.d.ts +6 -0
  604. package/dist/types/views/Editor/Canvas/hooks/useDrop.d.ts +4 -0
  605. package/dist/types/views/Editor/Canvas/hooks/useInsertFromCreateSelection.d.ts +13 -0
  606. package/dist/types/views/Editor/Canvas/hooks/useMouseSelection.d.ts +14 -0
  607. package/dist/types/views/Editor/Canvas/hooks/useMoveShapeKeypoint.d.ts +5 -0
  608. package/dist/types/views/Editor/Canvas/hooks/useOperateChrome.d.ts +11 -0
  609. package/dist/types/views/Editor/Canvas/hooks/useRotateElement.d.ts +7 -0
  610. package/dist/types/views/Editor/Canvas/hooks/useRotateGroupElement.d.ts +7 -0
  611. package/dist/types/views/Editor/Canvas/hooks/useScaleElement.d.ts +12 -0
  612. package/dist/types/views/Editor/Canvas/hooks/useSelectElement.d.ts +5 -0
  613. package/dist/types/views/Editor/Canvas/hooks/useViewportSize.d.ts +13 -0
  614. package/dist/types/views/Editor/Canvas/index.d.ts +6 -0
  615. package/dist/types/views/Editor/CanvasTool/ChartPool.d.ts +8 -0
  616. package/dist/types/views/Editor/CanvasTool/LinePool.d.ts +10 -0
  617. package/dist/types/views/Editor/CanvasTool/MediaPicker.d.ts +7 -0
  618. package/dist/types/views/Editor/CanvasTool/SVGPathEditor.d.ts +8 -0
  619. package/dist/types/views/Editor/CanvasTool/ShapeItemThumbnail.d.ts +12 -0
  620. package/dist/types/views/Editor/CanvasTool/ShapePool.d.ts +15 -0
  621. package/dist/types/views/Editor/CanvasTool/SymbolPool.d.ts +7 -0
  622. package/dist/types/views/Editor/CanvasTool/TableGenerator.d.ts +12 -0
  623. package/dist/types/views/Editor/CanvasTool/VirtualSymbolGrid.d.ts +10 -0
  624. package/dist/types/views/Editor/CanvasTool/index.d.ts +7 -0
  625. package/dist/types/views/Editor/ChartDataEditorDialog.d.ts +2 -0
  626. package/dist/types/views/Editor/CodeEditorDialog.d.ts +2 -0
  627. package/dist/types/views/Editor/EditorHeader/HotkeyDoc.d.ts +6 -0
  628. package/dist/types/views/Editor/EditorHeader/index.d.ts +6 -0
  629. package/dist/types/views/Editor/ExportDialog/index.d.ts +4 -0
  630. package/dist/types/views/Editor/ImportReplaceDialog.d.ts +2 -0
  631. package/dist/types/views/Editor/InlineMathEditorDialog.d.ts +2 -0
  632. package/dist/types/views/Editor/LatexEditorDialog.d.ts +2 -0
  633. package/dist/types/views/Editor/MarkupPanel.d.ts +2 -0
  634. package/dist/types/views/Editor/MermaidEditorDialog.d.ts +2 -0
  635. package/dist/types/views/Editor/NotesPanel.d.ts +2 -0
  636. package/dist/types/views/Editor/Remark/Editor.d.ts +6 -0
  637. package/dist/types/views/Editor/Remark/index.d.ts +11 -0
  638. package/dist/types/views/Editor/SearchPanel.d.ts +2 -0
  639. package/dist/types/views/Editor/SelectPanel.d.ts +2 -0
  640. package/dist/types/views/Editor/SlideCodePanel.d.ts +11 -0
  641. package/dist/types/views/Editor/Thumbnails/ExportThemeDialog.d.ts +10 -0
  642. package/dist/types/views/Editor/Thumbnails/LayoutPicker.d.ts +9 -0
  643. package/dist/types/views/Editor/Thumbnails/index.d.ts +6 -0
  644. package/dist/types/views/Editor/Thumbnails/paneSize.d.ts +24 -0
  645. package/dist/types/views/Editor/Thumbnails/useThumbnailVirtualizer.d.ts +14 -0
  646. package/dist/types/views/Editor/Toolbar/ElementAnimationPanel.d.ts +2 -0
  647. package/dist/types/views/Editor/Toolbar/ElementPositionPanel.d.ts +2 -0
  648. package/dist/types/views/Editor/Toolbar/ElementStylePanel/AudioStylePanel.d.ts +2 -0
  649. package/dist/types/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ThemeColorsSetting.d.ts +4 -0
  650. package/dist/types/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/index.d.ts +2 -0
  651. package/dist/types/views/Editor/Toolbar/ElementStylePanel/CodeStylePanel.d.ts +2 -0
  652. package/dist/types/views/Editor/Toolbar/ElementStylePanel/ImageStylePanel.d.ts +2 -0
  653. package/dist/types/views/Editor/Toolbar/ElementStylePanel/LatexStylePanel.d.ts +2 -0
  654. package/dist/types/views/Editor/Toolbar/ElementStylePanel/LineStylePanel.d.ts +2 -0
  655. package/dist/types/views/Editor/Toolbar/ElementStylePanel/ShapeStylePanel.d.ts +2 -0
  656. package/dist/types/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.d.ts +2 -0
  657. package/dist/types/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.d.ts +2 -0
  658. package/dist/types/views/Editor/Toolbar/ElementStylePanel/VideoStylePanel.d.ts +2 -0
  659. package/dist/types/views/Editor/Toolbar/ElementStylePanel/index.d.ts +2 -0
  660. package/dist/types/views/Editor/Toolbar/MultiPositionPanel.d.ts +2 -0
  661. package/dist/types/views/Editor/Toolbar/MultiStylePanel.d.ts +2 -0
  662. package/dist/types/views/Editor/Toolbar/SlideAnimationPanel.d.ts +2 -0
  663. package/dist/types/views/Editor/Toolbar/SlideDesignPanel/ViewportSizeSetting.d.ts +7 -0
  664. package/dist/types/views/Editor/Toolbar/SlideDesignPanel/index.d.ts +7 -0
  665. package/dist/types/views/Editor/Toolbar/common/AnimationPool.d.ts +17 -0
  666. package/dist/types/views/Editor/Toolbar/common/BoxInsetControl.d.ts +14 -0
  667. package/dist/types/views/Editor/Toolbar/common/ElementColorMask.d.ts +2 -0
  668. package/dist/types/views/Editor/Toolbar/common/ElementFilter.d.ts +2 -0
  669. package/dist/types/views/Editor/Toolbar/common/ElementFlip.d.ts +2 -0
  670. package/dist/types/views/Editor/Toolbar/common/ElementOpacity.d.ts +2 -0
  671. package/dist/types/views/Editor/Toolbar/common/ElementOutline.d.ts +5 -0
  672. package/dist/types/views/Editor/Toolbar/common/ElementShadow.d.ts +2 -0
  673. package/dist/types/views/Editor/Toolbar/common/PanelSection.d.ts +10 -0
  674. package/dist/types/views/Editor/Toolbar/common/RichTextBase.d.ts +10 -0
  675. package/dist/types/views/Editor/Toolbar/common/SVGLine.d.ts +10 -0
  676. package/dist/types/views/Editor/Toolbar/common/TextStyleContent.d.ts +2 -0
  677. package/dist/types/views/Editor/Toolbar/common/handleElement.d.ts +19 -0
  678. package/dist/types/views/Editor/Toolbar/common/panelSwitch.d.ts +4 -0
  679. package/dist/types/views/Editor/Toolbar/common/textBoxStyle.d.ts +25 -0
  680. package/dist/types/views/Editor/Toolbar/index.d.ts +6 -0
  681. package/dist/types/views/Editor/Toolbar/paneSize.d.ts +15 -0
  682. package/dist/types/views/Editor/index.d.ts +2 -0
  683. package/dist/types/views/Editor/slideCodeMirror.d.ts +17 -0
  684. package/dist/types/views/Editor/slideCodeUtils.d.ts +14 -0
  685. package/dist/types/views/Editor/slideValidator.d.ts +12 -0
  686. package/dist/types/views/Mobile/MobileEditor/ElementToolbar.d.ts +1 -0
  687. package/dist/types/views/Mobile/MobileEditor/Header.d.ts +5 -0
  688. package/dist/types/views/Mobile/MobileEditor/MobileEditableElement.d.ts +7 -0
  689. package/dist/types/views/Mobile/MobileEditor/MobileOperate.d.ts +12 -0
  690. package/dist/types/views/Mobile/MobileEditor/SlideToolbar.d.ts +1 -0
  691. package/dist/types/views/Mobile/MobileEditor/index.d.ts +5 -0
  692. package/dist/types/views/Mobile/MobilePlayer.d.ts +5 -0
  693. package/dist/types/views/Mobile/MobilePreview.d.ts +5 -0
  694. package/dist/types/views/Mobile/MobileThumbnails.d.ts +3 -0
  695. package/dist/types/views/Mobile/index.d.ts +1 -0
  696. package/dist/types/views/Screen/AudienceView.d.ts +1 -0
  697. package/dist/types/views/Screen/BaseView.d.ts +3 -0
  698. package/dist/types/views/Screen/BottomThumbnails.d.ts +1 -0
  699. package/dist/types/views/Screen/CountdownTimer.d.ts +6 -0
  700. package/dist/types/views/Screen/LaserColorSwatches.d.ts +8 -0
  701. package/dist/types/views/Screen/LaserTrailOverlay.d.ts +11 -0
  702. package/dist/types/views/Screen/PresenterToolbar.d.ts +30 -0
  703. package/dist/types/views/Screen/PresenterView.d.ts +3 -0
  704. package/dist/types/views/Screen/ScreenElement.d.ts +12 -0
  705. package/dist/types/views/Screen/ScreenShell.d.ts +2 -0
  706. package/dist/types/views/Screen/ScreenSlide.d.ts +11 -0
  707. package/dist/types/views/Screen/ScreenSlideList.d.ts +15 -0
  708. package/dist/types/views/Screen/SlideThumbnails.d.ts +7 -0
  709. package/dist/types/views/Screen/WritingBoardTool.d.ts +9 -0
  710. package/dist/types/views/Screen/hooks/useExecPlay.d.ts +33 -0
  711. package/dist/types/views/Screen/hooks/useFullscreen.d.ts +5 -0
  712. package/dist/types/views/Screen/hooks/useScreenTools.d.ts +20 -0
  713. package/dist/types/views/Screen/hooks/useSlideSize.d.ts +11 -0
  714. package/dist/types/views/Screen/index.d.ts +2 -0
  715. package/dist/types/views/Screen/lazy.d.ts +2 -0
  716. package/dist/types/views/Screen/screenWindow.d.ts +11 -0
  717. package/dist/types/views/components/ThumbnailSlide/LiveSlideThumb.d.ts +21 -0
  718. package/dist/types/views/components/ThumbnailSlide/index.d.ts +21 -0
  719. package/dist/types/views/components/ThumbnailSlide/paintedSlide.d.ts +29 -0
  720. package/dist/types/views/components/ThumbnailSlide/thumbSnapshot.d.ts +54 -0
  721. package/dist/types/views/components/element/AudioElement/ScreenAudioElement.d.ts +6 -0
  722. package/dist/types/views/components/element/AudioElement/index.d.ts +9 -0
  723. package/dist/types/views/components/element/ChartElement/BaseChartElement.d.ts +9 -0
  724. package/dist/types/views/components/element/ChartElement/Chart.d.ts +13 -0
  725. package/dist/types/views/components/element/ChartElement/chartOption.d.ts +17 -0
  726. package/dist/types/views/components/element/ChartElement/index.d.ts +9 -0
  727. package/dist/types/views/components/element/CodeElement/BaseCodeElement.d.ts +6 -0
  728. package/dist/types/views/components/element/CodeElement/CodeBlockSkeleton.d.ts +13 -0
  729. package/dist/types/views/components/element/CodeElement/CodeContent.d.ts +6 -0
  730. package/dist/types/views/components/element/CodeElement/index.d.ts +9 -0
  731. package/dist/types/views/components/element/ElementOutline.d.ts +8 -0
  732. package/dist/types/views/components/element/ImageElement/BaseImageElement.d.ts +6 -0
  733. package/dist/types/views/components/element/ImageElement/ImageBitmapSurface.d.ts +10 -0
  734. package/dist/types/views/components/element/ImageElement/ImageClipHandler.d.ts +15 -0
  735. package/dist/types/views/components/element/ImageElement/ImageOutline/ImageEllipseOutline.d.ts +8 -0
  736. package/dist/types/views/components/element/ImageElement/ImageOutline/ImagePolygonOutline.d.ts +9 -0
  737. package/dist/types/views/components/element/ImageElement/ImageOutline/ImageRectOutline.d.ts +9 -0
  738. package/dist/types/views/components/element/ImageElement/ImageOutline/index.d.ts +6 -0
  739. package/dist/types/views/components/element/ImageElement/index.d.ts +9 -0
  740. package/dist/types/views/components/element/ImageElement/useClipImage.d.ts +10 -0
  741. package/dist/types/views/components/element/ImageElement/useFilter.d.ts +4 -0
  742. package/dist/types/views/components/element/ImageElement/useImageBitmap.d.ts +2 -0
  743. package/dist/types/views/components/element/LatexElement/BaseLatexElement.d.ts +6 -0
  744. package/dist/types/views/components/element/LatexElement/LatexContent.d.ts +6 -0
  745. package/dist/types/views/components/element/LatexElement/index.d.ts +9 -0
  746. package/dist/types/views/components/element/LineElement/BaseLineElement.d.ts +6 -0
  747. package/dist/types/views/components/element/LineElement/LinePointMarker.d.ts +12 -0
  748. package/dist/types/views/components/element/LineElement/index.d.ts +9 -0
  749. package/dist/types/views/components/element/MediaPlayer/index.d.ts +20 -0
  750. package/dist/types/views/components/element/MediaPlayer/useMSE.d.ts +4 -0
  751. package/dist/types/views/components/element/MediaPlayer/useMediaPlayback.d.ts +67 -0
  752. package/dist/types/views/components/element/MermaidElement/BaseMermaidElement.d.ts +6 -0
  753. package/dist/types/views/components/element/MermaidElement/MermaidContent.d.ts +6 -0
  754. package/dist/types/views/components/element/MermaidElement/index.d.ts +9 -0
  755. package/dist/types/views/components/element/ProsemirrorEditor.d.ts +60 -0
  756. package/dist/types/views/components/element/ShapeElement/BaseShapeElement.d.ts +6 -0
  757. package/dist/types/views/components/element/ShapeElement/GradientDefs.d.ts +9 -0
  758. package/dist/types/views/components/element/ShapeElement/PatternDefs.d.ts +6 -0
  759. package/dist/types/views/components/element/ShapeElement/index.d.ts +10 -0
  760. package/dist/types/views/components/element/ShapeElement/shapePaintEqual.d.ts +15 -0
  761. package/dist/types/views/components/element/TableElement/BaseTableElement.d.ts +6 -0
  762. package/dist/types/views/components/element/TableElement/CustomTextarea.d.ts +13 -0
  763. package/dist/types/views/components/element/TableElement/EditableTable.d.ts +19 -0
  764. package/dist/types/views/components/element/TableElement/StaticTable.d.ts +12 -0
  765. package/dist/types/views/components/element/TableElement/cellEdit.d.ts +15 -0
  766. package/dist/types/views/components/element/TableElement/gridCompare.d.ts +28 -0
  767. package/dist/types/views/components/element/TableElement/index.d.ts +10 -0
  768. package/dist/types/views/components/element/TableElement/useHideCells.d.ts +4 -0
  769. package/dist/types/views/components/element/TableElement/useMathReady.d.ts +4 -0
  770. package/dist/types/views/components/element/TableElement/useSubThemeColor.d.ts +9 -0
  771. package/dist/types/views/components/element/TableElement/utils.d.ts +17 -0
  772. package/dist/types/views/components/element/TextElement/BaseTextElement.d.ts +15 -0
  773. package/dist/types/views/components/element/TextElement/index.d.ts +13 -0
  774. package/dist/types/views/components/element/VideoElement/ScreenVideoElement.d.ts +6 -0
  775. package/dist/types/views/components/element/VideoElement/index.d.ts +9 -0
  776. package/dist/types/views/components/element/hooks/useAutoShapeTextHeight.d.ts +4 -0
  777. package/dist/types/views/components/element/hooks/useElementFill.d.ts +5 -0
  778. package/dist/types/views/components/element/hooks/useElementFlip.d.ts +4 -0
  779. package/dist/types/views/components/element/hooks/useElementOutline.d.ts +10 -0
  780. package/dist/types/views/components/element/hooks/useElementShadow.d.ts +5 -0
  781. package/dist/types/views/components/element/hooks/useLiveBoxFit.d.ts +12 -0
  782. package/dist/types/views/components/element/hooks/useTextFit.d.ts +26 -0
  783. package/docs/RELEASE.md +16 -0
  784. package/package.json +24 -18
@@ -0,0 +1,55 @@
1
+ export interface ElementAttribute {
2
+ key: string;
3
+ value: string | null;
4
+ }
5
+ export interface CommentElement {
6
+ type: 'comment';
7
+ content: string;
8
+ }
9
+ export interface TextElement {
10
+ type: 'text';
11
+ content: string;
12
+ }
13
+ export interface NormalElement {
14
+ type: 'element';
15
+ tagName: string;
16
+ children: HTMLNode[];
17
+ attributes: string[];
18
+ }
19
+ export type HTMLNode = CommentElement | TextElement | NormalElement;
20
+ export interface ElementAST {
21
+ type: 'element';
22
+ tagName: string;
23
+ children: AST[];
24
+ attributes: ElementAttribute[];
25
+ }
26
+ export interface CommentOrTextAST {
27
+ type: 'comment' | 'text';
28
+ content: string;
29
+ }
30
+ export type AST = CommentOrTextAST | ElementAST;
31
+ export interface TagStartToken {
32
+ type: 'tag-start';
33
+ close: boolean;
34
+ }
35
+ export interface TagEndToken {
36
+ type: 'tag-end';
37
+ close: boolean;
38
+ }
39
+ export interface TagToken {
40
+ type: 'tag';
41
+ content: string;
42
+ }
43
+ export interface TextToken {
44
+ type: 'text';
45
+ content: string;
46
+ }
47
+ export interface CommentToken {
48
+ type: 'comment';
49
+ content: string;
50
+ }
51
+ export interface AttributeToken {
52
+ type: 'attribute';
53
+ content: string;
54
+ }
55
+ export type Token = TagStartToken | TagEndToken | TagToken | TextToken | CommentToken | AttributeToken;
@@ -0,0 +1,12 @@
1
+ export type FollowHyperlinkModifier = 'Ctrl+Click' | '⌘+Click';
2
+ export declare function hyperlinkAnchorFromEvent(event: Event): HTMLAnchorElement | null;
3
+ export declare function isSafeHyperlinkHref(href: string): boolean;
4
+ export declare function isFollowHyperlinkClick(event: Pick<MouseEvent, 'button' | 'ctrlKey' | 'metaKey'>): boolean;
5
+ export declare function followHyperlinkModifier(platform?: string): FollowHyperlinkModifier;
6
+ export declare function openHyperlink(href: string): boolean;
7
+ export type HyperlinkHoverTooltip = {
8
+ href: string;
9
+ left: number;
10
+ top: number;
11
+ };
12
+ export declare function hyperlinkTooltipFromAnchor(anchor: HTMLAnchorElement, offset?: number): HyperlinkHoverTooltip | null;
@@ -0,0 +1,25 @@
1
+ interface ImageSize {
2
+ width: number;
3
+ height: number;
4
+ }
5
+ /**
6
+ * Get the intrinsic width and height of an image.
7
+ * @param src Image URL
8
+ */
9
+ export declare const getImageSize: (src: string) => Promise<ImageSize>;
10
+ /**
11
+ * Read an image file as a data URL.
12
+ * @param file Image file
13
+ */
14
+ export declare const getImageDataURL: (file: File) => Promise<string>;
15
+ /**
16
+ * Check whether a string is SVG markup.
17
+ * @param text Text to validate
18
+ */
19
+ export declare const isSVGString: (text: string) => boolean;
20
+ /**
21
+ * Convert SVG markup to a File.
22
+ * @param svg SVG markup
23
+ */
24
+ export declare const svg2File: (svg: string) => File;
25
+ export {};
@@ -0,0 +1,18 @@
1
+ import type { Slide } from '../types/slides';
2
+ export declare const PREVIEW_BITMAP_MAX_EDGE = 512;
3
+ export declare const PREVIEW_BITMAP_CACHE_MAX = 640;
4
+ export declare const FULL_BITMAP_CACHE_MAX = 64;
5
+ export type LoadImageBitmapOptions = {
6
+ maxEdge?: number;
7
+ };
8
+ export declare const subscribePreviewBitmaps: (fn: (src: string) => void) => () => void;
9
+ export declare const getCachedImageBitmap: (src: string, options?: LoadImageBitmapOptions) => ImageBitmap | undefined;
10
+ export declare const previewPaintHasMedia: (painted: Set<string> | undefined, srcs: readonly string[]) => boolean;
11
+ export declare const loadImageBitmap: (src: string, options?: LoadImageBitmapOptions) => Promise<ImageBitmap | null>;
12
+ export declare const loadPreviewImageBitmap: (src: string) => Promise<ImageBitmap>;
13
+ export declare const getCachedPreviewImageBitmap: (src: string) => ImageBitmap;
14
+ export declare const collectSlidePreviewSrcs: (slide: Slide) => string[];
15
+ export declare const collectSlideImageSrcs: (slides: readonly Slide[]) => string[];
16
+ export declare const prefetchPreviewImageBitmaps: (srcs: readonly string[]) => void;
17
+ export declare const revokeImageBitmapsNotIn: (keep: Iterable<string>) => void;
18
+ export declare const syncImageBitmapsToSlides: (slides: readonly Slide[]) => void;
@@ -0,0 +1,34 @@
1
+ import type { PPTImageElement, Slide } from '../types/slides';
2
+ import type { ImagePaintCache } from './textContrast';
3
+ interface CanvasRange {
4
+ minX: number;
5
+ maxX: number;
6
+ minY: number;
7
+ maxY: number;
8
+ }
9
+ interface Viewport {
10
+ width: number;
11
+ height: number;
12
+ }
13
+ /** Map a canvas overlap onto the image's natural pixels, honoring clip + flip. */
14
+ export declare const canvasRegionToImagePixels: (el: PPTImageElement, region: CanvasRange, naturalWidth: number, naturalHeight: number) => {
15
+ left: number;
16
+ top: number;
17
+ width: number;
18
+ height: number;
19
+ } | null;
20
+ /** Map a canvas overlap onto a cover-fitted slide background image. */
21
+ export declare const canvasRegionToCoverPixels: (region: CanvasRange, viewport: Viewport, naturalWidth: number, naturalHeight: number) => {
22
+ left: number;
23
+ top: number;
24
+ width: number;
25
+ height: number;
26
+ } | null;
27
+ /**
28
+ * Sample average colors for image layers that actually sit under text.
29
+ * Browser-only (`Image` + canvas). Returns `undefined` when there is nothing
30
+ * to sample or the environment can't decode images — the contrast query then
31
+ * keeps treating those layers as `unknown`.
32
+ */
33
+ export declare const sampleImagePaintsForSlide: (slide: Slide, viewport: Viewport) => Promise<ImagePaintCache | undefined>;
34
+ export {};
@@ -0,0 +1,9 @@
1
+ export type ImageSize = {
2
+ width: number;
3
+ height: number;
4
+ };
5
+ export declare const readImageSize: (buffer: ArrayBuffer | Uint8Array) => ImageSize | null;
6
+ export declare const resizeToMaxEdge: (width: number, height: number, maxEdge: number) => {
7
+ width: number;
8
+ height: number;
9
+ };
@@ -0,0 +1,31 @@
1
+ export type ImportApplyMode = 'replace' | 'append';
2
+ export interface ImportApplyOptions {
3
+ /**
4
+ * How to apply imported slides. Takes precedence over `cover`.
5
+ * Default is `replace`.
6
+ */
7
+ mode?: ImportApplyMode;
8
+ /**
9
+ * Legacy alias: `true` replace, `false` append.
10
+ * An empty deck (0 slides) is always replaced.
11
+ */
12
+ cover?: boolean;
13
+ /**
14
+ * When replacing a deck that already has more than one slide, ask first.
15
+ * Default `true` for the editor UI; the controller should pass `false`.
16
+ */
17
+ confirm?: boolean;
18
+ }
19
+ export interface ImportApplyDecision {
20
+ apply: ImportApplyMode;
21
+ needsConfirm: boolean;
22
+ }
23
+ /**
24
+ * UI / controller policy for PPTX and JSON import.
25
+ *
26
+ * - 0 slides (starter deleted) or 1 slide: replace immediately.
27
+ * - 2+ slides: replace after confirm, unless `confirm: false`.
28
+ * - `mode: 'append'` / `cover: false`: append, no confirm (still replace if empty).
29
+ */
30
+ export declare function resolveImportApply(slideCount: number, options?: ImportApplyOptions): ImportApplyDecision;
31
+ export declare function normalizeImportApplyOptions(options?: boolean | ImportApplyOptions): ImportApplyOptions;
@@ -0,0 +1,68 @@
1
+ import type { MagicalInkId } from '../configs/inkPaint';
2
+ import type { Gradient } from '../types/slides';
3
+ import type { Command } from './commandHistory';
4
+ export type ShapeType = 'rect' | 'circle' | 'arrow' | 'line' | 'triangle';
5
+ export type InkStrokePaint = {
6
+ color: string;
7
+ gradient?: Gradient;
8
+ gradientId?: MagicalInkId;
9
+ };
10
+ export type PenStroke = InkStrokePaint & {
11
+ kind: 'pen';
12
+ size: number;
13
+ points: Array<{
14
+ x: number;
15
+ y: number;
16
+ pressure?: number;
17
+ }>;
18
+ simulatePressure?: boolean;
19
+ };
20
+ export type MarkStroke = InkStrokePaint & {
21
+ kind: 'mark';
22
+ size: number;
23
+ points: Array<{
24
+ x: number;
25
+ y: number;
26
+ pressure?: number;
27
+ }>;
28
+ simulatePressure?: boolean;
29
+ };
30
+ export type EraserStroke = {
31
+ kind: 'eraser';
32
+ size: number;
33
+ points: Array<{
34
+ x: number;
35
+ y: number;
36
+ }>;
37
+ };
38
+ export type ShapeStroke = InkStrokePaint & {
39
+ kind: 'shape';
40
+ shapeType: ShapeType;
41
+ size: number;
42
+ startX: number;
43
+ startY: number;
44
+ endX: number;
45
+ endY: number;
46
+ };
47
+ export type Stroke = PenStroke | MarkStroke | EraserStroke | ShapeStroke;
48
+ export interface DrawingSurface {
49
+ strokes: Stroke[];
50
+ baseline: HTMLImageElement | null;
51
+ redraw: () => void;
52
+ }
53
+ export declare const strokeHasInk: (stroke: Stroke) => boolean;
54
+ export declare class AddStrokeCommand implements Command {
55
+ private readonly surface;
56
+ private readonly stroke;
57
+ constructor(surface: DrawingSurface, stroke: Stroke);
58
+ do(): void;
59
+ undo(): void;
60
+ }
61
+ export declare class ClearInkCommand implements Command {
62
+ private readonly surface;
63
+ private removedStrokes;
64
+ private removedBaseline;
65
+ constructor(surface: DrawingSurface);
66
+ do(): void;
67
+ undo(): void;
68
+ }
@@ -0,0 +1,36 @@
1
+ export type JobProgressPhase = 'preparing' | 'working' | 'finishing';
2
+ export interface JobProgressBox<T> {
3
+ value: T;
4
+ }
5
+ export interface JobProgress {
6
+ running: JobProgressBox<boolean>;
7
+ progress: JobProgressBox<number>;
8
+ current: JobProgressBox<number>;
9
+ total: JobProgressBox<number>;
10
+ generation: () => number;
11
+ start: (total?: number) => number;
12
+ setTotal: (total: number, gen?: number) => boolean;
13
+ tick: (value: number, slide?: number, gen?: number, options?: {
14
+ yieldPaint?: boolean;
15
+ }) => Promise<boolean>;
16
+ finish: (gen?: number) => boolean;
17
+ isCurrent: (gen: number) => boolean;
18
+ subscribe: (listener: () => void) => () => void;
19
+ }
20
+ export interface JobProgressLabels {
21
+ running: string;
22
+ preparing: string;
23
+ finishing: string;
24
+ slideProgress: (params: {
25
+ current: number;
26
+ total: number;
27
+ }) => string;
28
+ }
29
+ export declare function jobProgressPhase(current: number, total: number): JobProgressPhase;
30
+ export declare function jobBoxValue<T>(box: T | {
31
+ value: T;
32
+ } | undefined, fallback: T): T;
33
+ export declare function formatJobProgressTip(running: boolean, current: number, total: number, labels: JobProgressLabels): string;
34
+ export declare function slideJobProgress(index: number, count: number, start?: number, end?: number): number;
35
+ export declare const isAbortError: (error: unknown) => boolean;
36
+ export declare function createJobProgress(): JobProgress;
@@ -0,0 +1,27 @@
1
+ import type { PPTLatexElement } from '../types/slides';
2
+ /**
3
+ * Apply an editor save onto an existing formula.
4
+ *
5
+ * The canvas box (`width` / `height`) is the authored scale. Never replace it
6
+ * with the newly measured natural size — `useLiveBoxFit` scales the new
7
+ * formula into that box. `viewBox` stores the natural measure for export.
8
+ */
9
+ export declare function latexPropsAfterEdit(_current: Pick<PPTLatexElement, 'width' | 'height'>, next: {
10
+ latex: string;
11
+ path?: string;
12
+ w: number;
13
+ h: number;
14
+ }): Pick<PPTLatexElement, 'latex' | 'path' | 'viewBox'>;
15
+ /** Same uniform scale `useLiveBoxFit` writes: authored box / natural viewBox. */
16
+ export declare function latexPaintScale(el: Pick<PPTLatexElement, 'width' | 'height' | 'viewBox'>): number;
17
+ /**
18
+ * Extract the contents of every equation (or equation*) environment.
19
+ */
20
+ export declare const extractEquationLatex: (source: string) => string[];
21
+ /**
22
+ * MathLive emits compact TeX (`4^5\cdot3x`). hfmath's tokenizer treats digits
23
+ * as part of a command name, so `\cdot3x` becomes one unknown token and is
24
+ * drawn as literal text. TeX ends a control word before a digit; insert that
25
+ * space here before handing the string to hfmath.
26
+ */
27
+ export declare const toHfmathLatex: (latex: string) => string;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * LaTeX → MathML (MathLive) → OMML (mathml2omml) for native PowerPoint equations.
3
+ * No hand-rolled math grammar — conversion is entirely library-based.
4
+ */
5
+ export interface OmmlRunStyle {
6
+ /** CSS/hex color applied to every math glyph run and control (vinculum, …). */
7
+ color?: string;
8
+ /** Font size in points (`a:rPr sz` is hundredths of a point). */
9
+ fontSizePt?: number;
10
+ }
11
+ /**
12
+ * Stamp `a:rPr` (color / size) onto every `m:r` and `m:ctrlPr` in an OMML
13
+ * fragment. pptxgenjs embeds OMML as opaque XML and does not propagate the
14
+ * surrounding text-run `options.color`, so contrast-fixed (and user-styled)
15
+ * equation colors must be written into the math markup itself.
16
+ */
17
+ export declare function applyOmmlRunStyle(omml: string, style: OmmlRunStyle): string;
18
+ /** Ensure MathLive is loaded so sync conversion can run during PPTX export. */
19
+ export declare function prepareLatexToOmml(): Promise<void>;
20
+ /**
21
+ * Convert a LaTeX expression to an OMML `<m:oMath>…</m:oMath>` string.
22
+ */
23
+ export declare function latexToOmml(latex: string): Promise<string>;
24
+ /**
25
+ * Sync conversion — MathLive must already be loaded via {@link prepareLatexToOmml}.
26
+ * Returns null when conversion fails (caller falls back to plain LaTeX text).
27
+ */
28
+ export declare function tryLatexToOmmlSync(latex: string): string | null;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Live drag preview for canvas elements.
3
+ *
4
+ * Two coordinate spaces, because the painted box and the operate chrome
5
+ * do not live in the same CSS transform:
6
+ *
7
+ * - Slide space: `#editable-element-* > *` sits inside `.viewport`, which
8
+ * already has `transform: scale(canvasScale)`. `left` / `top` here are
9
+ * the same unit the store commits on drop.
10
+ * - Visual space: `#operate-element-*` and `.multi-select-operate` sit in
11
+ * `.viewport-wrapper` (already sized to the *visual* slide). Position
12
+ * here is slide × canvasScale.
13
+ *
14
+ * Never use CSS `translate` on the painted box. Auto-size text measures
15
+ * and rasterizes differently under a transform than under `left`/`top`,
16
+ * so the glyphs shift on pointerup when the transform is removed. Write
17
+ * the same `left`/`top` the store will commit — drag and drop are one
18
+ * paint path. Scale already does this (`applyLiveSize`).
19
+ */
20
+ export type LiveOffsetPosition = {
21
+ id: string;
22
+ left: number;
23
+ top: number;
24
+ };
25
+ export type LiveOffsetNodes = {
26
+ box?: {
27
+ style: CSSStyleDeclaration;
28
+ } | null;
29
+ operate?: {
30
+ style: CSSStyleDeclaration;
31
+ } | null;
32
+ multi?: {
33
+ style: CSSStyleDeclaration;
34
+ } | null;
35
+ };
36
+ export type LivePositionCss = {
37
+ slideLeft: string;
38
+ slideTop: string;
39
+ visualLeft: string;
40
+ visualTop: string;
41
+ };
42
+ export declare const livePositionCss: (left: number, top: number, canvasScale: number) => LivePositionCss;
43
+ export declare const applyLivePositionStyles: (nodes: LiveOffsetNodes, left: number, top: number, canvasScale: number) => void;
44
+ export declare const readLiveMultiOrigin: (canvasScale: number) => {
45
+ left: number;
46
+ top: number;
47
+ } | null;
48
+ export declare const setLiveElementOffset: (origins: readonly LiveOffsetPosition[], dxSlide: number, dySlide: number, canvasScale: number, multiOrigin?: {
49
+ left: number;
50
+ top: number;
51
+ } | null) => void;
52
+ export declare const clearLiveElementOffset: (origins: readonly LiveOffsetPosition[], canvasScale: number, multiOrigin?: {
53
+ left: number;
54
+ top: number;
55
+ } | null) => void;
56
+ export declare const settleLiveElementOffset: (positions: readonly LiveOffsetPosition[], canvasScale: number) => void;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Live paint for fill / gradient / opacity. Same contract as applyLiveSize:
3
+ * write the canvas DOM during the gesture. Do not go through the store until
4
+ * pointerup — a store write rebuilds the preview raster and the canvas list.
5
+ */
6
+ import type { Gradient } from '../types/slides';
7
+ export declare const liveGradientId: (elementId: string, source?: string) => string;
8
+ export declare const liveGradientTransform: (rotate: number) => string;
9
+ /** Single writer for SVG gradient stops. React must not also own these children. */
10
+ export declare const syncGradientDef: (def: Element, gradient: Pick<Gradient, 'colors' | 'rotate'>) => void;
11
+ export declare const applyLiveGradient: (elementId: string, gradient: Gradient, source?: string) => boolean;
12
+ export declare const applyLiveBackgroundGradient: (gradient: Gradient) => boolean;
13
+ export declare const readPaintedGradientRotate: (elementId: string, source?: string) => number | null;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Live resize for canvas elements.
3
+ *
4
+ * One writer (`applyLiveSize`) updates the painted box, `[data-live-box]`,
5
+ * and operate chrome. Contents that depend on box size must read that live
6
+ * geometry — never wait for the store commit on pointerup.
7
+ *
8
+ * Auto-height boxes opt out with `data-live-auto-height` (or `height: auto`).
9
+ * Missing inline height is not an opt-out — tables and other content-sized
10
+ * wrappers still preview both axes. Direct-child SVGs get a viewBox so
11
+ * preserveAspectRatio=none can stretch Y, and tables update row heights.
12
+ */
13
+ export type LiveBoxSize = {
14
+ width: number;
15
+ height: number;
16
+ };
17
+ export declare const isAutoCss: (value: string | undefined) => boolean;
18
+ export declare const isLiveAutoHeight: (el: HTMLElement | null | undefined) => boolean;
19
+ export declare const readLiveBoxSize: (box: HTMLElement | null | undefined, fallback: LiveBoxSize) => LiveBoxSize;
20
+ export declare const liveBoxOf: (node: HTMLElement | null | undefined) => HTMLElement | null;
21
+ /** Uniform scale that fits `natural` inside `box` without growing past 1 when either side is empty. */
22
+ export declare const fitUniformScale: (natural: LiveBoxSize, box: LiveBoxSize) => number;
23
+ type LiveBoxListener = (id: string, size: LiveBoxSize) => void;
24
+ export declare const subscribeLiveBox: (listener: LiveBoxListener) => () => void;
25
+ export declare const shapeGroupTransform: (width: number, height: number, viewBox: readonly [number, number] | readonly number[]) => string;
26
+ export declare const syncShapePaint: (svg: SVGSVGElement, width: number, height: number, viewBox: readonly [number, number] | readonly number[]) => void;
27
+ export declare const tableCellMinHeight: (boxHeight: number, rowCount: number) => number;
28
+ export type LivePaintExtras = {
29
+ path?: string;
30
+ viewBox?: readonly number[];
31
+ };
32
+ /** True when the element's height is text-driven (auto-height box). */
33
+ export declare const autoHeightInsetSum: (el: {
34
+ type?: string;
35
+ fixedHeight?: boolean;
36
+ vertical?: boolean;
37
+ inset?: readonly number[];
38
+ text?: {
39
+ fixedHeight?: boolean;
40
+ inset?: readonly number[];
41
+ } | null;
42
+ }) => number | null;
43
+ /**
44
+ * Height the auto-height element's text actually needs at its CURRENT live
45
+ * width (call after the width has been painted). scrollHeight reports the
46
+ * true content height even when the container still carries a stale height.
47
+ */
48
+ export declare const measureAutoTextHeight: (id: string, insetSum: number) => number | null;
49
+ export declare const applyLiveSize: (id: string, left: number, top: number, width: number, height: number, canvasScale: number, extras?: LivePaintExtras, options?: {
50
+ forceHeight?: boolean;
51
+ }) => void;
52
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { PPTElement } from '../types/slides';
2
+ export declare const applyLiveLayoutOntoStore: (liveList: PPTElement[], storeList: PPTElement[]) => PPTElement[];
@@ -0,0 +1,48 @@
1
+ /** True when a string carries math delimiters the math parser should handle. */
2
+ export declare function containsMath(source: string): boolean;
3
+ /**
4
+ * A run of either plain text or a single math span, in source order. `raw` is
5
+ * the exact source slice (delimiters included for math); `value` is the inner
6
+ * formula for math (delimiters stripped) and equals `raw` for text.
7
+ */
8
+ export interface ContentSegment {
9
+ type: 'text' | 'math';
10
+ raw: string;
11
+ value: string;
12
+ /** Math only: display (block) vs inline. */
13
+ display: boolean;
14
+ }
15
+ /**
16
+ * Split `source` into ordered text and math segments. This is the robust core
17
+ * behind both line-splitting and inline rendering: it scans once, picking the
18
+ * earliest opener at each position (longest on ties, so `$$` beats `$`), honors
19
+ * backslash escapes (`\$`, `\\`), skips inline code spans (so `` `$x` `` is not
20
+ * read as math) and keeps unterminated openers as literal text (graceful for
21
+ * partial/streamed content). Inline math may not span newlines; display math
22
+ * (`$$`, `\[`, `\begin{}`) may.
23
+ */
24
+ export declare function tokenizeMath(source: string): ContentSegment[];
25
+ export declare function normalizeAgentText(text: string): string;
26
+ export declare function splitLinesPreservingMath(value: string): string[];
27
+ export declare function markdownToHtml(markdown: string): Promise<string>;
28
+ /**
29
+ * Preload the math-capable markdown parser (lazy MathLive + texmath) so
30
+ * `renderInlineMarkdown` can render `$…$` math synchronously afterwards. No-op
31
+ * once loaded; call before rendering content that may contain math.
32
+ */
33
+ export declare function ensureInlineMathReady(): Promise<void>;
34
+ /**
35
+ * Render one line of markdown to inline HTML (no `<p>` wrapper) using the same
36
+ * CommonMark + texmath pipeline as {@link markdownToHtml}.
37
+ *
38
+ * Plain (math-free) lines use markdown-it's inline renderer directly. Lines that
39
+ * carry math are rendered through the full *block* pipeline and then unwrapped
40
+ * from their single `<p>`: this is what makes display math correct. texmath
41
+ * exposes `\[…\]` and `\begin{env}…\end{env}` only as block rules, so the inline
42
+ * renderer would emit them verbatim; routing through the block parser renders
43
+ * every delimiter (`$…$`, `$$…$$`, `\(…\)`, `\[…\]`, environments), and matches
44
+ * the `text.setMarkdown` output byte-for-byte. Math renders only when the parser
45
+ * has been preloaded via {@link ensureInlineMathReady}; otherwise delimiters
46
+ * read as literal text.
47
+ */
48
+ export declare function renderInlineMarkdown(markdown: string): string;
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Shared MathLive typesetting helpers.
3
+ *
4
+ * LaTeX is the single source of truth for in-text math. It is carried on a
5
+ * canonical wrapper element:
6
+ *
7
+ * <span class="fika-math" data-latex="\frac{1}{2}" data-display="false">…markup…</span>
8
+ *
9
+ * The inner markup is MathLive's `convertLatexToMarkup` output, preserved in the
10
+ * stored HTML so the static render paths (`v-html`) and ProseMirror round-trips
11
+ * never need to re-typeset existing content. MathLive (JS + `static.css` +
12
+ * `fonts.css`) is lazy-loaded the first time math actually appears or an editor
13
+ * opens, so decks without math never pull it into the bundle.
14
+ */
15
+ export declare const MATH_CLASS = "fika-math";
16
+ type ConvertLatexToMarkup = (latex: string, options?: {
17
+ defaultMode?: 'inline-math' | 'math' | 'text';
18
+ }) => string;
19
+ type ConvertLatexToMathMl = (latex: string, options?: {
20
+ generateID?: boolean;
21
+ }) => string;
22
+ interface MathliveModule {
23
+ convertLatexToMarkup: ConvertLatexToMarkup;
24
+ convertLatexToMathMl: ConvertLatexToMathMl;
25
+ initVirtualKeyboardInCurrentBrowsingContext?: () => void;
26
+ MathfieldElement: {
27
+ fontsDirectory: string | null;
28
+ soundsDirectory: string | null;
29
+ };
30
+ }
31
+ /**
32
+ * MathLive's default keyboard container is `document.body`. When shown it
33
+ * writes `padding-bottom` onto the body so page content scrolls above the
34
+ * keys. Fika's canvas is `height: 100%` of that body, so the padding
35
+ * shrinks the slide and the viewport observer refits it smaller.
36
+ *
37
+ * Dock the keyboard in a fixed overlay instead — MathLive skips the padding
38
+ * whenever `container !== document.body`.
39
+ */
40
+ export declare function dockMathVirtualKeyboard(): void;
41
+ /**
42
+ * Reactive flag flipped to `true` once MathLive has loaded. Reading it inside a
43
+ * render (e.g. table `formatText`) registers a dependency so the math re-renders
44
+ * the moment the engine becomes available.
45
+ */
46
+ export declare const mathReady: {
47
+ value: boolean;
48
+ };
49
+ /** Lazily import MathLive and configure it for a bundled (offline) font setup. */
50
+ export declare function ensureMathliveReady(): Promise<MathliveModule>;
51
+ /** Escape a string for safe inclusion in a double-quoted HTML attribute. */
52
+ export declare function escapeLatexAttr(latex: string): string;
53
+ /**
54
+ * Render `latex` to the canonical `span.fika-math` wrapper HTML string. Must
55
+ * only be called once {@link ensureMathliveReady} has resolved (the markdown
56
+ * pipeline and editor await it; tables fall back to literal source until ready).
57
+ */
58
+ export declare function renderMathToHtml(latex: string, display?: boolean): string;
59
+ /**
60
+ * Build a real `span.fika-math` DOM node for the given latex/markup. Used by
61
+ * the ProseMirror schema `toDOM` so the editor DOM (and the innerHTML persisted
62
+ * on edit) is the same canonical wrapper the parser reads back.
63
+ */
64
+ export declare function buildMathElement(latex: string, html: string, display?: boolean): HTMLSpanElement;
65
+ /** Engine adapter that lets `markdown-it-texmath` typeset via MathLive. */
66
+ export declare const texmathEngine: {
67
+ renderToString(latex: string, options?: {
68
+ displayMode?: boolean;
69
+ }): string;
70
+ };
71
+ /**
72
+ * Sync MathML conversion — only valid after {@link ensureMathliveReady} has resolved.
73
+ * Throws if MathLive is not loaded yet.
74
+ */
75
+ export declare function convertLatexToMathMlSync(latex: string): string;
76
+ /** Unscaled font-size used when measuring and painting standalone formula elements. */
77
+ export declare const LATEX_ELEMENT_FONT_SIZE = 36;
78
+ /**
79
+ * Typeset a standalone formula element. Same MathLive/KaTeX-font pipeline as
80
+ * inline math — not the old hfmath stroke paths.
81
+ */
82
+ export declare function renderLatexElementHtml(latex: string): string;
83
+ /** Natural box of a formula at {@link LATEX_ELEMENT_FONT_SIZE}, plus padding. */
84
+ export declare function measureLatexElement(latex: string): Promise<{
85
+ width: number;
86
+ height: number;
87
+ }>;
88
+ /** True when an HTML string already contains rendered/wrapped math. */
89
+ export declare function htmlContainsMath(html: string): boolean;
90
+ export {};
@@ -0,0 +1,14 @@
1
+ import { type FikaMediaKind, type FikaMediaSizeLimit } from '../configs/mediaUpload';
2
+ export type MediaRejectReason = 'type' | 'size' | 'kind' | 'tooMany';
3
+ export interface MediaFileRejection {
4
+ file: File;
5
+ reason: MediaRejectReason;
6
+ maxSize?: number;
7
+ }
8
+ export declare function getFileExtension(file: File): string;
9
+ export declare function detectMediaKind(file: File): FikaMediaKind | null;
10
+ export declare function getKindMaxFileSize(kind: FikaMediaKind, limit?: FikaMediaSizeLimit): number | undefined;
11
+ export declare function getAcceptAttribute(): string;
12
+ export declare function validateMediaFile(file: File): MediaFileRejection | null;
13
+ export declare function formatBytes(bytes: number): string;
14
+ export declare function maxSizeLabel(): string;
@@ -0,0 +1,12 @@
1
+ import type { Slide } from '../types/slides';
2
+ export declare const isDataUrl: (src: string) => boolean;
3
+ export declare const onMediaInterned: (fn: (from: string, to: string) => void) => () => void;
4
+ /** Data URL and its blob: alias are the same bytes. */
5
+ export declare const bitmapSrcKeys: (src: string) => string[];
6
+ export declare const getInternedBlob: (src: string) => Blob | undefined;
7
+ export declare const startInternSlideMedia: (slide: Slide) => void;
8
+ export declare const internMediaSrc: (src: string) => Promise<string>;
9
+ export declare const visitSlideMediaSrcs: (slide: Slide, visit: (src: string) => void) => void;
10
+ export declare const collectSlideMediaSrcs: (slides: readonly Slide[]) => string[];
11
+ export declare const internSlidesMedia: (slides: Slide[]) => Promise<void>;
12
+ export declare const resetMediaInternForTests: () => void;