fika-editor 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (793) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +45 -27
  3. package/dist/embed/350.css +1 -0
  4. package/dist/embed/350.js +164 -0
  5. package/dist/embed/agentic-manifest.json +2232 -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/1605.js +1 -0
  20. package/dist/embed/chunks/1668.js +1 -0
  21. package/dist/embed/chunks/1804.js +8 -0
  22. package/dist/embed/chunks/1904.js +104 -0
  23. package/dist/embed/chunks/1915.js +1 -0
  24. package/dist/embed/chunks/1916.js +1 -0
  25. package/dist/embed/chunks/1932.js +1 -0
  26. package/dist/embed/chunks/2011.js +1 -0
  27. package/dist/embed/chunks/2020.js +3467 -0
  28. package/dist/embed/chunks/2131.js +1 -0
  29. package/dist/embed/chunks/2143.js +62 -0
  30. package/dist/embed/chunks/2190.js +1 -0
  31. package/dist/embed/chunks/2246.js +1 -0
  32. package/dist/embed/chunks/2289.js +80 -0
  33. package/dist/embed/chunks/2402.js +1 -0
  34. package/dist/embed/chunks/2407.js +1 -0
  35. package/dist/embed/chunks/2489.js +1 -0
  36. package/dist/embed/chunks/2528.js +1 -0
  37. package/dist/embed/chunks/2632.js +1 -0
  38. package/dist/embed/chunks/2694.js +1 -0
  39. package/dist/embed/chunks/2714.js +1 -0
  40. package/dist/embed/chunks/273.js +24 -0
  41. package/dist/embed/chunks/2796.js +34 -0
  42. package/dist/embed/chunks/2807.css +1 -0
  43. package/dist/embed/chunks/2807.js +1 -0
  44. package/dist/embed/chunks/3030.js +1 -0
  45. package/dist/embed/chunks/3031.js +1 -0
  46. package/dist/embed/chunks/3088.js +1 -0
  47. package/dist/embed/chunks/3103.js +1 -0
  48. package/dist/embed/chunks/3143.js +1 -0
  49. package/dist/embed/chunks/3359.js +1 -0
  50. package/dist/embed/chunks/3443.js +1 -0
  51. package/dist/embed/chunks/3479.js +1 -0
  52. package/dist/embed/chunks/3555.js +1 -0
  53. package/dist/embed/chunks/3581.js +77 -0
  54. package/dist/embed/chunks/360.css +1 -0
  55. package/dist/embed/chunks/360.js +1 -0
  56. package/dist/embed/chunks/362.js +1 -0
  57. package/dist/embed/chunks/3729.js +160 -0
  58. package/dist/embed/chunks/3888.js +1 -0
  59. package/dist/embed/chunks/3907.js +1 -0
  60. package/dist/embed/chunks/397.js +1 -0
  61. package/dist/embed/chunks/401.js +1 -0
  62. package/dist/embed/chunks/4110.js +1 -0
  63. package/dist/embed/chunks/4145.js +1 -0
  64. package/dist/embed/chunks/4335.js +1 -0
  65. package/dist/embed/chunks/435.js +1 -0
  66. package/dist/embed/chunks/4354.js +27 -0
  67. package/dist/embed/chunks/4359.js +1 -0
  68. package/dist/embed/chunks/4467.js +1 -0
  69. package/dist/embed/chunks/4515.js +1 -0
  70. package/dist/embed/chunks/4552.js +287 -0
  71. package/dist/embed/chunks/4606.js +1 -0
  72. package/dist/embed/chunks/4607.js +1 -0
  73. package/dist/embed/chunks/4619.js +86 -0
  74. package/dist/embed/chunks/4625.js +153 -0
  75. package/dist/embed/chunks/4632.css +1 -0
  76. package/dist/embed/chunks/4632.js +1 -0
  77. package/dist/embed/chunks/4637.js +1 -0
  78. package/dist/embed/chunks/4794.js +1 -0
  79. package/dist/embed/chunks/4891.js +226 -0
  80. package/dist/embed/chunks/4936.js +82 -0
  81. package/dist/embed/chunks/4950.js +1 -0
  82. package/dist/embed/chunks/4975.js +255 -0
  83. package/dist/embed/chunks/5026.js +1 -0
  84. package/dist/embed/chunks/5075.js +1 -0
  85. package/dist/embed/chunks/5216.css +1 -0
  86. package/dist/embed/chunks/5216.js +1 -0
  87. package/dist/embed/chunks/5239.js +1 -0
  88. package/dist/embed/chunks/5250.js +1 -0
  89. package/dist/embed/chunks/5316.js +1 -0
  90. package/dist/embed/chunks/5437.js +1 -0
  91. package/dist/embed/chunks/5480.js +1 -0
  92. package/dist/embed/chunks/5532.js +1 -0
  93. package/dist/embed/chunks/5659.js +64 -0
  94. package/dist/embed/chunks/574.js +1 -0
  95. package/dist/embed/chunks/5768.js +1 -0
  96. package/dist/embed/chunks/5773.js +1 -0
  97. package/dist/embed/chunks/5792.js +141 -0
  98. package/dist/embed/chunks/5809.js +1 -0
  99. package/dist/embed/chunks/5835.js +1 -0
  100. package/dist/embed/chunks/5889.js +1 -0
  101. package/dist/embed/chunks/5901.js +1 -0
  102. package/dist/embed/chunks/5907.js +1 -0
  103. package/dist/embed/chunks/5989.js +1 -0
  104. package/dist/embed/chunks/5992.js +1 -0
  105. package/dist/embed/chunks/6014.js +1 -0
  106. package/dist/embed/chunks/6063.js +1 -0
  107. package/dist/embed/chunks/6136.js +1 -0
  108. package/dist/embed/chunks/6144.css +1 -0
  109. package/dist/embed/chunks/6144.js +1 -0
  110. package/dist/embed/chunks/627.js +115 -0
  111. package/dist/embed/chunks/6339.js +1 -0
  112. package/dist/embed/chunks/635.js +1 -0
  113. package/dist/embed/chunks/6361.js +1 -0
  114. package/dist/embed/chunks/647.js +1 -0
  115. package/dist/embed/chunks/6522.js +1 -0
  116. package/dist/embed/chunks/6567.js +1 -0
  117. package/dist/embed/chunks/6580.js +1 -0
  118. package/dist/embed/chunks/6609.css +1 -0
  119. package/dist/embed/chunks/6609.js +1 -0
  120. package/dist/embed/chunks/6690.js +1 -0
  121. package/dist/embed/chunks/6704.js +1 -0
  122. package/dist/embed/chunks/6778.js +1 -0
  123. package/dist/embed/chunks/6935.js +1 -0
  124. package/dist/embed/chunks/6999.js +93 -0
  125. package/dist/embed/chunks/7048.js +1 -0
  126. package/dist/embed/chunks/7101.js +1 -0
  127. package/dist/embed/chunks/7132.js +1 -0
  128. package/dist/embed/chunks/717.js +148 -0
  129. package/dist/embed/chunks/7175.js +90 -0
  130. package/dist/embed/chunks/7193.css +1 -0
  131. package/dist/embed/chunks/7193.js +1 -0
  132. package/dist/embed/chunks/7245.js +1 -0
  133. package/dist/embed/chunks/7255.js +1 -0
  134. package/dist/embed/chunks/7272.js +1 -0
  135. package/dist/embed/chunks/7309.js +1 -0
  136. package/dist/embed/chunks/7311.js +23 -0
  137. package/dist/embed/chunks/736.js +1 -0
  138. package/dist/embed/chunks/7376.js +1 -0
  139. package/dist/embed/chunks/7453.js +1 -0
  140. package/dist/embed/chunks/7463.js +1 -0
  141. package/dist/embed/chunks/7468.js +1 -0
  142. package/dist/embed/chunks/7588.js +41 -0
  143. package/dist/embed/chunks/7594.js +1 -0
  144. package/dist/embed/chunks/7854.js +38 -0
  145. package/dist/embed/chunks/788.js +24 -0
  146. package/dist/embed/chunks/7916.js +79 -0
  147. package/dist/embed/chunks/7924.js +1 -0
  148. package/dist/embed/chunks/7980.js +1 -0
  149. package/dist/embed/chunks/809.js +1 -0
  150. package/dist/embed/chunks/810.js +1 -0
  151. package/dist/embed/chunks/818.js +1 -0
  152. package/dist/embed/chunks/8212.js +36 -0
  153. package/dist/embed/chunks/8239.js +1 -0
  154. package/dist/embed/chunks/8252.js +1 -0
  155. package/dist/embed/chunks/8378.css +1 -0
  156. package/dist/embed/chunks/8378.js +1 -0
  157. package/dist/embed/chunks/8449.js +1 -0
  158. package/dist/embed/chunks/8516.js +1 -0
  159. package/dist/embed/chunks/8606.js +1 -0
  160. package/dist/embed/chunks/862.css +1 -0
  161. package/dist/embed/chunks/862.js +1 -0
  162. package/dist/embed/chunks/8620.js +1 -0
  163. package/dist/embed/chunks/8623.js +138 -0
  164. package/dist/embed/chunks/8645.js +1 -0
  165. package/dist/embed/chunks/8716.js +215 -0
  166. package/dist/embed/chunks/8724.js +1 -0
  167. package/dist/embed/chunks/8735.js +1 -0
  168. package/dist/embed/chunks/8941.js +1 -0
  169. package/dist/embed/chunks/9121.js +1 -0
  170. package/dist/embed/chunks/919.js +1 -0
  171. package/dist/embed/chunks/9203.js +1 -0
  172. package/dist/embed/chunks/9245.js +1 -0
  173. package/dist/embed/chunks/9252.js +1 -0
  174. package/dist/embed/chunks/9465.js +5 -0
  175. package/dist/embed/chunks/9475.js +1 -0
  176. package/dist/embed/chunks/9657.css +1 -0
  177. package/dist/embed/chunks/9657.js +1 -0
  178. package/dist/embed/chunks/968.js +1 -0
  179. package/dist/embed/chunks/9739.js +1 -0
  180. package/dist/embed/chunks/9761.js +1 -0
  181. package/dist/embed/chunks/9800.css +1 -0
  182. package/dist/embed/chunks/9800.js +1 -0
  183. package/dist/embed/chunks/9976.js +1 -0
  184. package/dist/embed/favicon-32.png +0 -0
  185. package/dist/embed/favicon.ico +0 -0
  186. package/dist/embed/favicon.svg +7 -0
  187. package/dist/embed/fika-embed.css +1 -0
  188. package/dist/embed/fika-embed.js +5 -0
  189. package/dist/embed/logo.png +0 -0
  190. package/dist/embed/static/font/fonts/Inter.woff2 +0 -0
  191. package/dist/embed/static/font/fonts/JetBrainsMono.woff2 +0 -0
  192. package/dist/embed/static/font/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  193. package/dist/embed/static/font/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  194. package/dist/embed/static/font/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  195. package/dist/embed/static/font/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  196. package/dist/embed/static/font/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  197. package/dist/embed/static/font/fonts/KaTeX_Main-Bold.woff2 +0 -0
  198. package/dist/embed/static/font/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  199. package/dist/embed/static/font/fonts/KaTeX_Main-Italic.woff2 +0 -0
  200. package/dist/embed/static/font/fonts/KaTeX_Main-Regular.woff2 +0 -0
  201. package/dist/embed/static/font/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  202. package/dist/embed/static/font/fonts/KaTeX_Math-Italic.woff2 +0 -0
  203. package/dist/embed/static/font/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  204. package/dist/embed/static/font/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  205. package/dist/embed/static/font/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  206. package/dist/embed/static/font/fonts/KaTeX_Script-Regular.woff2 +0 -0
  207. package/dist/embed/static/font/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  208. package/dist/embed/static/font/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  209. package/dist/embed/static/font/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  210. package/dist/embed/static/font/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  211. package/dist/embed/static/font/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  212. package/dist/embed/static/font/fonts/Lato.woff2 +0 -0
  213. package/dist/embed/static/font/fonts/Literata.woff2 +0 -0
  214. package/dist/embed/static/font/fonts/Merriweather.woff2 +0 -0
  215. package/dist/embed/static/font/fonts/Montserrat.woff2 +0 -0
  216. package/dist/embed/static/font/fonts/OpenSans.woff2 +0 -0
  217. package/dist/embed/static/font/fonts/Roboto.woff2 +0 -0
  218. package/dist/embed/static/font/fonts/SourceSansPro.woff2 +0 -0
  219. package/dist/embed/static/font/fonts/SourceSerif4.woff2 +0 -0
  220. package/dist/types/components/Button.d.ts +17 -0
  221. package/dist/types/components/ButtonGroup.d.ts +8 -0
  222. package/dist/types/components/ChartDataEditor.d.ts +13 -0
  223. package/dist/types/components/Checkbox.d.ts +12 -0
  224. package/dist/types/components/CodeEditor/CodeEditorSkeleton.d.ts +8 -0
  225. package/dist/types/components/CodeEditor/codeMirror.d.ts +23 -0
  226. package/dist/types/components/CodeEditor/index.d.ts +14 -0
  227. package/dist/types/components/CodeEditor/lazy.d.ts +3 -0
  228. package/dist/types/components/ColorButton.d.ts +8 -0
  229. package/dist/types/components/ColorListButton.d.ts +8 -0
  230. package/dist/types/components/ColorPicker/Alpha.d.ts +12 -0
  231. package/dist/types/components/ColorPicker/Checkboard.d.ts +11 -0
  232. package/dist/types/components/ColorPicker/EditableInput.d.ts +12 -0
  233. package/dist/types/components/ColorPicker/Hue.d.ts +13 -0
  234. package/dist/types/components/ColorPicker/Saturation.d.ts +13 -0
  235. package/dist/types/components/ColorPicker/index.d.ts +11 -0
  236. package/dist/types/components/ColorSwatches.d.ts +21 -0
  237. package/dist/types/components/ConfirmDialog.d.ts +16 -0
  238. package/dist/types/components/Contextmenu/MenuContent.d.ts +8 -0
  239. package/dist/types/components/Contextmenu/index.d.ts +14 -0
  240. package/dist/types/components/Contextmenu/types.d.ts +13 -0
  241. package/dist/types/components/Divider.d.ts +9 -0
  242. package/dist/types/components/Draggable.d.ts +28 -0
  243. package/dist/types/components/Drawer.d.ts +13 -0
  244. package/dist/types/components/FileInput.d.ts +11 -0
  245. package/dist/types/components/FitText.d.ts +17 -0
  246. package/dist/types/components/FontSizeControl.d.ts +12 -0
  247. package/dist/types/components/FormatChip.d.ts +14 -0
  248. package/dist/types/components/FullscreenSpin.d.ts +9 -0
  249. package/dist/types/components/GradientBar.d.ts +12 -0
  250. package/dist/types/components/Icon.d.ts +144 -0
  251. package/dist/types/components/InkDialog.d.ts +37 -0
  252. package/dist/types/components/InkLoader.d.ts +2 -0
  253. package/dist/types/components/InkPaintSwatches.d.ts +14 -0
  254. package/dist/types/components/InkProgress.d.ts +6 -0
  255. package/dist/types/components/Input.d.ts +25 -0
  256. package/dist/types/components/JobProgressOverlay.d.ts +18 -0
  257. package/dist/types/components/LaTeXEditor/LatexEditorSkeleton.d.ts +1 -0
  258. package/dist/types/components/LaTeXEditor/MathFieldSkeleton.d.ts +4 -0
  259. package/dist/types/components/LaTeXEditor/hfmath.d.ts +5 -0
  260. package/dist/types/components/LaTeXEditor/index.d.ts +12 -0
  261. package/dist/types/components/LaTeXEditor/lazy.d.ts +3 -0
  262. package/dist/types/components/MermaidEditor/MermaidEditorSkeleton.d.ts +1 -0
  263. package/dist/types/components/MermaidEditor/index.d.ts +8 -0
  264. package/dist/types/components/MermaidEditor/lazy.d.ts +3 -0
  265. package/dist/types/components/Message.d.ts +15 -0
  266. package/dist/types/components/Modal.d.ts +16 -0
  267. package/dist/types/components/MoveablePanel.d.ts +20 -0
  268. package/dist/types/components/NumberInput.d.ts +24 -0
  269. package/dist/types/components/OverlayTrigger.d.ts +14 -0
  270. package/dist/types/components/Popover.d.ts +24 -0
  271. package/dist/types/components/PopoverMenuItem.d.ts +11 -0
  272. package/dist/types/components/RadioButton.d.ts +11 -0
  273. package/dist/types/components/RadioGroup.d.ts +12 -0
  274. package/dist/types/components/Select.d.ts +23 -0
  275. package/dist/types/components/SelectCustom.d.ts +12 -0
  276. package/dist/types/components/Slider.d.ts +26 -0
  277. package/dist/types/components/Switch.d.ts +11 -0
  278. package/dist/types/components/Tabs.d.ts +23 -0
  279. package/dist/types/components/TextArea.d.ts +22 -0
  280. package/dist/types/components/WritingBoard.d.ts +28 -0
  281. package/dist/types/components/draggableLayout.d.ts +35 -0
  282. package/dist/types/components/writingBoardCommands.d.ts +7 -0
  283. package/dist/types/configs/animation.d.ts +274 -0
  284. package/dist/types/configs/chart.d.ts +11 -0
  285. package/dist/types/configs/code.d.ts +193 -0
  286. package/dist/types/configs/element.d.ts +3 -0
  287. package/dist/types/configs/exportMediaResolver.d.ts +11 -0
  288. package/dist/types/configs/exportTabs.d.ts +11 -0
  289. package/dist/types/configs/featureFlags.d.ts +15 -0
  290. package/dist/types/configs/font.d.ts +27 -0
  291. package/dist/types/configs/headerMenu.d.ts +4 -0
  292. package/dist/types/configs/hotkey.d.ts +42 -0
  293. package/dist/types/configs/imageClip.d.ts +30 -0
  294. package/dist/types/configs/inkPaint.d.ts +37 -0
  295. package/dist/types/configs/laser.d.ts +10 -0
  296. package/dist/types/configs/lines.d.ts +21 -0
  297. package/dist/types/configs/localeSwitcher.d.ts +2 -0
  298. package/dist/types/configs/mediaUpload.d.ts +71 -0
  299. package/dist/types/configs/mime.d.ts +4 -0
  300. package/dist/types/configs/shapes.d.ts +26 -0
  301. package/dist/types/configs/starterPresentation.d.ts +32 -0
  302. package/dist/types/configs/storage.d.ts +1 -0
  303. package/dist/types/configs/symbol/arrow.d.ts +2 -0
  304. package/dist/types/configs/symbol/emoji/action.d.ts +2 -0
  305. package/dist/types/configs/symbol/emoji/activity.d.ts +2 -0
  306. package/dist/types/configs/symbol/emoji/expression.d.ts +2 -0
  307. package/dist/types/configs/symbol/emoji/faunaFlora.d.ts +2 -0
  308. package/dist/types/configs/symbol/emoji/food.d.ts +2 -0
  309. package/dist/types/configs/symbol/emoji/objects.d.ts +2 -0
  310. package/dist/types/configs/symbol/emoji/symbols.d.ts +2 -0
  311. package/dist/types/configs/symbol/emoji/travel.d.ts +2 -0
  312. package/dist/types/configs/symbol/graph.d.ts +2 -0
  313. package/dist/types/configs/symbol/index.d.ts +8 -0
  314. package/dist/types/configs/symbol/letter.d.ts +2 -0
  315. package/dist/types/configs/symbol/math.d.ts +2 -0
  316. package/dist/types/configs/symbol/number.d.ts +2 -0
  317. package/dist/types/configs/table.d.ts +15 -0
  318. package/dist/types/configs/templates.d.ts +19 -0
  319. package/dist/types/configs/textPresets.d.ts +85 -0
  320. package/dist/types/configs/theme.d.ts +44 -0
  321. package/dist/types/directive/tooltip.d.ts +5 -0
  322. package/dist/types/embed/EmbedRoot.d.ts +5 -0
  323. package/dist/types/embed/agentic/composition.d.ts +84 -0
  324. package/dist/types/embed/agentic/createAgenticApi.d.ts +11 -0
  325. package/dist/types/embed/agentic/fixtures.d.ts +30 -0
  326. package/dist/types/embed/agentic/helpers.d.ts +115 -0
  327. package/dist/types/embed/agentic/layouts.d.ts +114 -0
  328. package/dist/types/embed/agentic/manifestDocs.d.ts +73 -0
  329. package/dist/types/embed/agentic/qa.d.ts +47 -0
  330. package/dist/types/embed/agentic/styles.d.ts +131 -0
  331. package/dist/types/embed/agentic/templates.d.ts +31 -0
  332. package/dist/types/embed/agentic/types.d.ts +2006 -0
  333. package/dist/types/embed/agentic/validators.d.ts +32 -0
  334. package/dist/types/embed/createController.d.ts +7 -0
  335. package/dist/types/embed/index.d.ts +9 -0
  336. package/dist/types/embed/inferViewport.d.ts +11 -0
  337. package/dist/types/embed/localeBridge.d.ts +4 -0
  338. package/dist/types/embed/mount.d.ts +12 -0
  339. package/dist/types/embed/types.d.ts +183 -0
  340. package/dist/types/hooks/useAddSlidesOrElements.d.ts +6 -0
  341. package/dist/types/hooks/useAlignActiveElement.d.ts +5 -0
  342. package/dist/types/hooks/useAlignElementToCanvas.d.ts +5 -0
  343. package/dist/types/hooks/useClickOutside.d.ts +7 -0
  344. package/dist/types/hooks/useCombineElement.d.ts +7 -0
  345. package/dist/types/hooks/useCopyAndPasteElement.d.ts +7 -0
  346. package/dist/types/hooks/useCreateElement.d.ts +50 -0
  347. package/dist/types/hooks/useDeleteElement.d.ts +5 -0
  348. package/dist/types/hooks/useElementContextmenu.d.ts +6 -0
  349. package/dist/types/hooks/useExport.d.ts +13 -0
  350. package/dist/types/hooks/useGlobalHotkey.d.ts +2 -0
  351. package/dist/types/hooks/useHeldSlideElement.d.ts +9 -0
  352. package/dist/types/hooks/useHideElement.d.ts +6 -0
  353. package/dist/types/hooks/useHistorySnapshot.d.ts +6 -0
  354. package/dist/types/hooks/useHoldAfterOpen.d.ts +2 -0
  355. package/dist/types/hooks/useImageHandler.d.ts +4 -0
  356. package/dist/types/hooks/useImport.d.ts +21 -0
  357. package/dist/types/hooks/useLink.d.ts +6 -0
  358. package/dist/types/hooks/useLockElement.d.ts +6 -0
  359. package/dist/types/hooks/useMediaPlayerTeleport.d.ts +5 -0
  360. package/dist/types/hooks/useMediaPoster.d.ts +8 -0
  361. package/dist/types/hooks/useMediaQueue.d.ts +24 -0
  362. package/dist/types/hooks/useMoveElement.d.ts +4 -0
  363. package/dist/types/hooks/useOrderElement.d.ts +6 -0
  364. package/dist/types/hooks/useOverlayPhase.d.ts +14 -0
  365. package/dist/types/hooks/usePasteDataTransfer.d.ts +7 -0
  366. package/dist/types/hooks/usePasteEvent.d.ts +2 -0
  367. package/dist/types/hooks/usePasteTextClipboardData.d.ts +8 -0
  368. package/dist/types/hooks/useScaleCanvas.d.ts +25 -0
  369. package/dist/types/hooks/useScreening.d.ts +8 -0
  370. package/dist/types/hooks/useSearch.d.ts +28 -0
  371. package/dist/types/hooks/useSectionHandler.d.ts +8 -0
  372. package/dist/types/hooks/useSelectElement.d.ts +5 -0
  373. package/dist/types/hooks/useShapeFormatPainter.d.ts +4 -0
  374. package/dist/types/hooks/useSlideBackgroundStyle.d.ts +19 -0
  375. package/dist/types/hooks/useSlideHandler.d.ts +16 -0
  376. package/dist/types/hooks/useSlideTheme.d.ts +16 -0
  377. package/dist/types/hooks/useUniformDisplayElement.d.ts +6 -0
  378. package/dist/types/i18n/cs/canvas/index.d.ts +3 -0
  379. package/dist/types/i18n/cs/common/index.d.ts +3 -0
  380. package/dist/types/i18n/cs/components/index.d.ts +3 -0
  381. package/dist/types/i18n/cs/configs/index.d.ts +3 -0
  382. package/dist/types/i18n/cs/editor/index.d.ts +3 -0
  383. package/dist/types/i18n/cs/export/index.d.ts +3 -0
  384. package/dist/types/i18n/cs/index.d.ts +3 -0
  385. package/dist/types/i18n/cs/mobile/index.d.ts +3 -0
  386. package/dist/types/i18n/cs/screen/index.d.ts +3 -0
  387. package/dist/types/i18n/en/canvas/index.d.ts +3 -0
  388. package/dist/types/i18n/en/common/index.d.ts +3 -0
  389. package/dist/types/i18n/en/components/index.d.ts +3 -0
  390. package/dist/types/i18n/en/configs/index.d.ts +3 -0
  391. package/dist/types/i18n/en/editor/index.d.ts +3 -0
  392. package/dist/types/i18n/en/export/index.d.ts +3 -0
  393. package/dist/types/i18n/en/index.d.ts +3 -0
  394. package/dist/types/i18n/en/mobile/index.d.ts +3 -0
  395. package/dist/types/i18n/en/screen/index.d.ts +3 -0
  396. package/dist/types/i18n/formatters.d.ts +6 -0
  397. package/dist/types/i18n/getLL.d.ts +8 -0
  398. package/dist/types/i18n/i18n-react.d.ts +23 -0
  399. package/dist/types/i18n/i18n-types.d.ts +10276 -0
  400. package/dist/types/i18n/i18n-util.async.d.ts +16 -0
  401. package/dist/types/i18n/i18n-util.d.ts +24 -0
  402. package/dist/types/i18n/i18n-util.sync.d.ts +4 -0
  403. package/dist/types/i18n/locale.d.ts +12 -0
  404. package/dist/types/i18n/pl/canvas/index.d.ts +3 -0
  405. package/dist/types/i18n/pl/common/index.d.ts +3 -0
  406. package/dist/types/i18n/pl/components/index.d.ts +3 -0
  407. package/dist/types/i18n/pl/configs/index.d.ts +3 -0
  408. package/dist/types/i18n/pl/editor/index.d.ts +3 -0
  409. package/dist/types/i18n/pl/export/index.d.ts +3 -0
  410. package/dist/types/i18n/pl/index.d.ts +3 -0
  411. package/dist/types/i18n/pl/mobile/index.d.ts +3 -0
  412. package/dist/types/i18n/pl/screen/index.d.ts +3 -0
  413. package/dist/types/i18n/sk/canvas/index.d.ts +3 -0
  414. package/dist/types/i18n/sk/common/index.d.ts +3 -0
  415. package/dist/types/i18n/sk/components/index.d.ts +3 -0
  416. package/dist/types/i18n/sk/configs/index.d.ts +3 -0
  417. package/dist/types/i18n/sk/editor/index.d.ts +3 -0
  418. package/dist/types/i18n/sk/export/index.d.ts +3 -0
  419. package/dist/types/i18n/sk/index.d.ts +3 -0
  420. package/dist/types/i18n/sk/mobile/index.d.ts +3 -0
  421. package/dist/types/i18n/sk/screen/index.d.ts +3 -0
  422. package/dist/types/i18n/useI18nContext.d.ts +1 -0
  423. package/dist/types/previewRaster/diffPaintedSlide.d.ts +11 -0
  424. package/dist/types/previewRaster/index.d.ts +9 -0
  425. package/dist/types/previewRaster/painters/background.d.ts +2 -0
  426. package/dist/types/previewRaster/painters/booth.d.ts +13 -0
  427. package/dist/types/previewRaster/painters/chart.d.ts +2 -0
  428. package/dist/types/previewRaster/painters/code.d.ts +2 -0
  429. package/dist/types/previewRaster/painters/image.d.ts +2 -0
  430. package/dist/types/previewRaster/painters/index.d.ts +3 -0
  431. package/dist/types/previewRaster/painters/line.d.ts +2 -0
  432. package/dist/types/previewRaster/painters/media.d.ts +2 -0
  433. package/dist/types/previewRaster/painters/shape.d.ts +2 -0
  434. package/dist/types/previewRaster/painters/table.d.ts +2 -0
  435. package/dist/types/previewRaster/painters/text.d.ts +2 -0
  436. package/dist/types/previewRaster/planSlideRaster.d.ts +19 -0
  437. package/dist/types/previewRaster/rasterCache.d.ts +19 -0
  438. package/dist/types/previewRaster/scheduler.d.ts +4 -0
  439. package/dist/types/previewRaster/stagePool.d.ts +36 -0
  440. package/dist/types/previewRaster/stats.d.ts +10 -0
  441. package/dist/types/previewRaster/subscribeSlides.d.ts +10 -0
  442. package/dist/types/previewRaster/types.d.ts +12 -0
  443. package/dist/types/services/fetch.d.ts +2 -0
  444. package/dist/types/services/index.d.ts +10 -0
  445. package/dist/types/store/accessors.d.ts +21 -0
  446. package/dist/types/store/importConfirm.d.ts +13 -0
  447. package/dist/types/store/index.d.ts +10 -0
  448. package/dist/types/store/keyboard.d.ts +21 -0
  449. package/dist/types/store/main.d.ts +83 -0
  450. package/dist/types/store/screen.d.ts +8 -0
  451. package/dist/types/store/slides.d.ts +3289 -0
  452. package/dist/types/store/snapshot.d.ts +16 -0
  453. package/dist/types/types/css.d.ts +7 -0
  454. package/dist/types/types/edit.d.ts +118 -0
  455. package/dist/types/types/export.d.ts +1 -0
  456. package/dist/types/types/injectKey.d.ts +12 -0
  457. package/dist/types/types/mobile.d.ts +1 -0
  458. package/dist/types/types/slides.d.ts +599 -0
  459. package/dist/types/types/toolbar.d.ts +9 -0
  460. package/dist/types/utils/agentText.d.ts +28 -0
  461. package/dist/types/utils/assetBase.d.ts +4 -0
  462. package/dist/types/utils/canvasHitTest.d.ts +188 -0
  463. package/dist/types/utils/canvasPointer.d.ts +53 -0
  464. package/dist/types/utils/canvasZoom.d.ts +36 -0
  465. package/dist/types/utils/clipboard.d.ts +9 -0
  466. package/dist/types/utils/clonePlain.d.ts +1 -0
  467. package/dist/types/utils/codeHighlight.d.ts +84 -0
  468. package/dist/types/utils/codePptxExport.d.ts +44 -0
  469. package/dist/types/utils/commandHistory.d.ts +17 -0
  470. package/dist/types/utils/commitSlideElements.d.ts +6 -0
  471. package/dist/types/utils/common.d.ts +30 -0
  472. package/dist/types/utils/crypto.d.ts +10 -0
  473. package/dist/types/utils/cssm.d.ts +4 -0
  474. package/dist/types/utils/database.d.ts +20 -0
  475. package/dist/types/utils/debounce.d.ts +19 -0
  476. package/dist/types/utils/element.d.ts +369 -0
  477. package/dist/types/utils/elementOrder.d.ts +8 -0
  478. package/dist/types/utils/elementOutline.d.ts +41 -0
  479. package/dist/types/utils/elementPaint.d.ts +129 -0
  480. package/dist/types/utils/emitter.d.ts +54 -0
  481. package/dist/types/utils/exportFonts.d.ts +22 -0
  482. package/dist/types/utils/fitLabel.d.ts +17 -0
  483. package/dist/types/utils/font.d.ts +14 -0
  484. package/dist/types/utils/freehand.d.ts +57 -0
  485. package/dist/types/utils/fullscreen.d.ts +3 -0
  486. package/dist/types/utils/gestureBind.d.ts +18 -0
  487. package/dist/types/utils/hotkeyTarget.d.ts +2 -0
  488. package/dist/types/utils/htmlParser/format.d.ts +3 -0
  489. package/dist/types/utils/htmlParser/index.d.ts +4 -0
  490. package/dist/types/utils/htmlParser/lexer.d.ts +2 -0
  491. package/dist/types/utils/htmlParser/parser.d.ts +15 -0
  492. package/dist/types/utils/htmlParser/stringify.d.ts +3 -0
  493. package/dist/types/utils/htmlParser/tags.d.ts +4 -0
  494. package/dist/types/utils/htmlParser/types.d.ts +55 -0
  495. package/dist/types/utils/hyperlinkFollow.d.ts +12 -0
  496. package/dist/types/utils/image.d.ts +25 -0
  497. package/dist/types/utils/imageBitmapCache.d.ts +6 -0
  498. package/dist/types/utils/imagePaintSample.d.ts +34 -0
  499. package/dist/types/utils/importApply.d.ts +31 -0
  500. package/dist/types/utils/inkCommands.d.ts +68 -0
  501. package/dist/types/utils/jobProgress.d.ts +36 -0
  502. package/dist/types/utils/latex.d.ts +27 -0
  503. package/dist/types/utils/latexToOmml.d.ts +28 -0
  504. package/dist/types/utils/liveElementOffset.d.ts +56 -0
  505. package/dist/types/utils/liveElementPaint.d.ts +13 -0
  506. package/dist/types/utils/liveElementSize.d.ts +33 -0
  507. package/dist/types/utils/liveLayoutCommit.d.ts +2 -0
  508. package/dist/types/utils/markdown.d.ts +48 -0
  509. package/dist/types/utils/math.d.ts +90 -0
  510. package/dist/types/utils/mediaFile.d.ts +14 -0
  511. package/dist/types/utils/mediaLayout.d.ts +24 -0
  512. package/dist/types/utils/mediaPoster.d.ts +12 -0
  513. package/dist/types/utils/mermaid.d.ts +18 -0
  514. package/dist/types/utils/message.d.ts +27 -0
  515. package/dist/types/utils/object.d.ts +10 -0
  516. package/dist/types/utils/openContextmenu.d.ts +29 -0
  517. package/dist/types/utils/placeholderLayout.d.ts +64 -0
  518. package/dist/types/utils/placeholderPaint.d.ts +57 -0
  519. package/dist/types/utils/portal.d.ts +37 -0
  520. package/dist/types/utils/pptxImportDiagnostics.d.ts +36 -0
  521. package/dist/types/utils/pptxImportFidelity.d.ts +138 -0
  522. package/dist/types/utils/pptxImportFonts.d.ts +34 -0
  523. package/dist/types/utils/pptxImportMetrics.d.ts +29 -0
  524. package/dist/types/utils/pptxImportPicture.d.ts +30 -0
  525. package/dist/types/utils/pptxImportText.d.ts +26 -0
  526. package/dist/types/utils/pptxSourcePackage.d.ts +19 -0
  527. package/dist/types/utils/pptxStructuredText.d.ts +6 -0
  528. package/dist/types/utils/pptxUnit.d.ts +19 -0
  529. package/dist/types/utils/prosemirror/caret.d.ts +22 -0
  530. package/dist/types/utils/prosemirror/commands/applyPlaceholderStyles.d.ts +29 -0
  531. package/dist/types/utils/prosemirror/commands/replaceText.d.ts +2 -0
  532. package/dist/types/utils/prosemirror/commands/setListStyle.d.ts +4 -0
  533. package/dist/types/utils/prosemirror/commands/setTextAlign.d.ts +5 -0
  534. package/dist/types/utils/prosemirror/commands/setTextIndent.d.ts +3 -0
  535. package/dist/types/utils/prosemirror/commands/toggleList.d.ts +8 -0
  536. package/dist/types/utils/prosemirror/commands/wrapEmptyBulletList.d.ts +5 -0
  537. package/dist/types/utils/prosemirror/commitEditor.d.ts +7 -0
  538. package/dist/types/utils/prosemirror/commitPolicy.d.ts +11 -0
  539. package/dist/types/utils/prosemirror/index.d.ts +6 -0
  540. package/dist/types/utils/prosemirror/plugins/index.d.ts +7 -0
  541. package/dist/types/utils/prosemirror/plugins/inputrules.d.ts +7 -0
  542. package/dist/types/utils/prosemirror/plugins/keymap.d.ts +3 -0
  543. package/dist/types/utils/prosemirror/plugins/placeholder.d.ts +2 -0
  544. package/dist/types/utils/prosemirror/plugins/placeholderFill.d.ts +3 -0
  545. package/dist/types/utils/prosemirror/richTextAttrsFromElement.d.ts +3 -0
  546. package/dist/types/utils/prosemirror/schema/index.d.ts +26 -0
  547. package/dist/types/utils/prosemirror/schema/marks.d.ts +18 -0
  548. package/dist/types/utils/prosemirror/schema/nodes.d.ts +12 -0
  549. package/dist/types/utils/prosemirror/selection.d.ts +15 -0
  550. package/dist/types/utils/prosemirror/utils.d.ts +69 -0
  551. package/dist/types/utils/scribbleJoin.d.ts +27 -0
  552. package/dist/types/utils/selection.d.ts +1 -0
  553. package/dist/types/utils/slideOrder.d.ts +3 -0
  554. package/dist/types/utils/snap.d.ts +69 -0
  555. package/dist/types/utils/spatial/hitIndex.d.ts +18 -0
  556. package/dist/types/utils/spatial/index.d.ts +3 -0
  557. package/dist/types/utils/spatial/segment.d.ts +8 -0
  558. package/dist/types/utils/spatial/snapIndex.d.ts +24 -0
  559. package/dist/types/utils/svg2Base64.d.ts +1 -0
  560. package/dist/types/utils/svgPathParser.d.ts +12 -0
  561. package/dist/types/utils/textBoxLock.d.ts +17 -0
  562. package/dist/types/utils/textContrast.d.ts +204 -0
  563. package/dist/types/utils/textFit.d.ts +195 -0
  564. package/dist/types/utils/textParser.d.ts +5 -0
  565. package/dist/types/utils/tooltipBind.d.ts +10 -0
  566. package/dist/types/views/Editor/Canvas/AlignmentLine.d.ts +13 -0
  567. package/dist/types/views/Editor/Canvas/CanvasScrollbars.d.ts +16 -0
  568. package/dist/types/views/Editor/Canvas/EditableElement.d.ts +13 -0
  569. package/dist/types/views/Editor/Canvas/EditableElement.equal.d.ts +17 -0
  570. package/dist/types/views/Editor/Canvas/ElementCreateSelection.d.ts +6 -0
  571. package/dist/types/views/Editor/Canvas/ElementFloatLayer/AnimationIndex.d.ts +9 -0
  572. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/BorderPanel.d.ts +2 -0
  573. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ChartToolbar.d.ts +6 -0
  574. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/CodeToolbar.d.ts +6 -0
  575. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ImageToolbar.d.ts +6 -0
  576. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LatexToolbar.d.ts +6 -0
  577. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/LineToolbar.d.ts +6 -0
  578. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/ShapeToolbar.d.ts +7 -0
  579. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TableToolbar.d.ts +6 -0
  580. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextStyleControls.d.ts +2 -0
  581. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/TextToolbar.d.ts +6 -0
  582. package/dist/types/views/Editor/Canvas/ElementFloatLayer/FloatingToolbar/index.d.ts +8 -0
  583. package/dist/types/views/Editor/Canvas/ElementFloatLayer/LinkHandler.d.ts +8 -0
  584. package/dist/types/views/Editor/Canvas/ElementFloatLayer/floatCompare.d.ts +15 -0
  585. package/dist/types/views/Editor/Canvas/ElementFloatLayer/index.d.ts +12 -0
  586. package/dist/types/views/Editor/Canvas/GridLines.d.ts +6 -0
  587. package/dist/types/views/Editor/Canvas/HitLayer.d.ts +19 -0
  588. package/dist/types/views/Editor/Canvas/LinkDialog.d.ts +5 -0
  589. package/dist/types/views/Editor/Canvas/MouseSelection.d.ts +8 -0
  590. package/dist/types/views/Editor/Canvas/Operate/BorderLine.d.ts +11 -0
  591. package/dist/types/views/Editor/Canvas/Operate/CommonElementOperate.d.ts +11 -0
  592. package/dist/types/views/Editor/Canvas/Operate/ContextMenuBridge.d.ts +9 -0
  593. package/dist/types/views/Editor/Canvas/Operate/ImageElementOperate.d.ts +10 -0
  594. package/dist/types/views/Editor/Canvas/Operate/LineElementOperate.d.ts +9 -0
  595. package/dist/types/views/Editor/Canvas/Operate/MediaElementOperate.d.ts +11 -0
  596. package/dist/types/views/Editor/Canvas/Operate/MultiSelectOperate.d.ts +11 -0
  597. package/dist/types/views/Editor/Canvas/Operate/ResizeHandler.d.ts +11 -0
  598. package/dist/types/views/Editor/Canvas/Operate/RotateHandler.d.ts +8 -0
  599. package/dist/types/views/Editor/Canvas/Operate/ShapeElementOperate.d.ts +11 -0
  600. package/dist/types/views/Editor/Canvas/Operate/TableElementOperate.d.ts +10 -0
  601. package/dist/types/views/Editor/Canvas/Operate/TextElementOperate.d.ts +10 -0
  602. package/dist/types/views/Editor/Canvas/Operate/index.d.ts +25 -0
  603. package/dist/types/views/Editor/Canvas/Operate/operateCompare.d.ts +33 -0
  604. package/dist/types/views/Editor/Canvas/Operate/operateMemo.d.ts +12 -0
  605. package/dist/types/views/Editor/Canvas/Operate/stopHandleEvent.d.ts +3 -0
  606. package/dist/types/views/Editor/Canvas/Operate/useLatest.d.ts +2 -0
  607. package/dist/types/views/Editor/Canvas/Ruler.d.ts +14 -0
  608. package/dist/types/views/Editor/Canvas/ShapeCreateCanvas.d.ts +7 -0
  609. package/dist/types/views/Editor/Canvas/ViewportBackground.d.ts +2 -0
  610. package/dist/types/views/Editor/Canvas/elementListSync.d.ts +12 -0
  611. package/dist/types/views/Editor/Canvas/hooks/useCommonOperate.d.ts +44 -0
  612. package/dist/types/views/Editor/Canvas/hooks/useDragElement.d.ts +6 -0
  613. package/dist/types/views/Editor/Canvas/hooks/useDragLineElement.d.ts +6 -0
  614. package/dist/types/views/Editor/Canvas/hooks/useDrop.d.ts +4 -0
  615. package/dist/types/views/Editor/Canvas/hooks/useInsertFromCreateSelection.d.ts +13 -0
  616. package/dist/types/views/Editor/Canvas/hooks/useMouseSelection.d.ts +14 -0
  617. package/dist/types/views/Editor/Canvas/hooks/useMoveShapeKeypoint.d.ts +5 -0
  618. package/dist/types/views/Editor/Canvas/hooks/useOperateChrome.d.ts +11 -0
  619. package/dist/types/views/Editor/Canvas/hooks/useRotateElement.d.ts +7 -0
  620. package/dist/types/views/Editor/Canvas/hooks/useRotateGroupElement.d.ts +7 -0
  621. package/dist/types/views/Editor/Canvas/hooks/useScaleElement.d.ts +12 -0
  622. package/dist/types/views/Editor/Canvas/hooks/useSelectElement.d.ts +5 -0
  623. package/dist/types/views/Editor/Canvas/hooks/useViewportSize.d.ts +13 -0
  624. package/dist/types/views/Editor/Canvas/index.d.ts +6 -0
  625. package/dist/types/views/Editor/CanvasTool/ChartPool.d.ts +8 -0
  626. package/dist/types/views/Editor/CanvasTool/LinePool.d.ts +10 -0
  627. package/dist/types/views/Editor/CanvasTool/MediaPicker.d.ts +7 -0
  628. package/dist/types/views/Editor/CanvasTool/SVGPathEditor.d.ts +8 -0
  629. package/dist/types/views/Editor/CanvasTool/ShapeItemThumbnail.d.ts +12 -0
  630. package/dist/types/views/Editor/CanvasTool/ShapePool.d.ts +15 -0
  631. package/dist/types/views/Editor/CanvasTool/SymbolPool.d.ts +7 -0
  632. package/dist/types/views/Editor/CanvasTool/TableGenerator.d.ts +12 -0
  633. package/dist/types/views/Editor/CanvasTool/VirtualSymbolGrid.d.ts +10 -0
  634. package/dist/types/views/Editor/CanvasTool/index.d.ts +7 -0
  635. package/dist/types/views/Editor/ChartDataEditorDialog.d.ts +2 -0
  636. package/dist/types/views/Editor/CodeEditorDialog.d.ts +2 -0
  637. package/dist/types/views/Editor/EditorHeader/HotkeyDoc.d.ts +6 -0
  638. package/dist/types/views/Editor/EditorHeader/index.d.ts +6 -0
  639. package/dist/types/views/Editor/ExportDialog/index.d.ts +4 -0
  640. package/dist/types/views/Editor/ImportReplaceDialog.d.ts +2 -0
  641. package/dist/types/views/Editor/InlineMathEditorDialog.d.ts +2 -0
  642. package/dist/types/views/Editor/LatexEditorDialog.d.ts +2 -0
  643. package/dist/types/views/Editor/MarkupPanel.d.ts +2 -0
  644. package/dist/types/views/Editor/MermaidEditorDialog.d.ts +2 -0
  645. package/dist/types/views/Editor/NotesPanel.d.ts +2 -0
  646. package/dist/types/views/Editor/Remark/Editor.d.ts +6 -0
  647. package/dist/types/views/Editor/Remark/index.d.ts +11 -0
  648. package/dist/types/views/Editor/SearchPanel.d.ts +2 -0
  649. package/dist/types/views/Editor/SelectPanel.d.ts +2 -0
  650. package/dist/types/views/Editor/SlideCodePanel.d.ts +11 -0
  651. package/dist/types/views/Editor/Thumbnails/ExportThemeDialog.d.ts +10 -0
  652. package/dist/types/views/Editor/Thumbnails/LayoutPicker.d.ts +9 -0
  653. package/dist/types/views/Editor/Thumbnails/index.d.ts +6 -0
  654. package/dist/types/views/Editor/Thumbnails/paneSize.d.ts +20 -0
  655. package/dist/types/views/Editor/Thumbnails/useThumbnailVirtualizer.d.ts +13 -0
  656. package/dist/types/views/Editor/Toolbar/ElementAnimationPanel.d.ts +2 -0
  657. package/dist/types/views/Editor/Toolbar/ElementPositionPanel.d.ts +2 -0
  658. package/dist/types/views/Editor/Toolbar/ElementStylePanel/AudioStylePanel.d.ts +2 -0
  659. package/dist/types/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ThemeColorsSetting.d.ts +4 -0
  660. package/dist/types/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/index.d.ts +2 -0
  661. package/dist/types/views/Editor/Toolbar/ElementStylePanel/CodeStylePanel.d.ts +2 -0
  662. package/dist/types/views/Editor/Toolbar/ElementStylePanel/ImageStylePanel.d.ts +2 -0
  663. package/dist/types/views/Editor/Toolbar/ElementStylePanel/LatexStylePanel.d.ts +2 -0
  664. package/dist/types/views/Editor/Toolbar/ElementStylePanel/LineStylePanel.d.ts +2 -0
  665. package/dist/types/views/Editor/Toolbar/ElementStylePanel/ShapeStylePanel.d.ts +2 -0
  666. package/dist/types/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.d.ts +2 -0
  667. package/dist/types/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.d.ts +2 -0
  668. package/dist/types/views/Editor/Toolbar/ElementStylePanel/VideoStylePanel.d.ts +2 -0
  669. package/dist/types/views/Editor/Toolbar/ElementStylePanel/index.d.ts +2 -0
  670. package/dist/types/views/Editor/Toolbar/MultiPositionPanel.d.ts +2 -0
  671. package/dist/types/views/Editor/Toolbar/MultiStylePanel.d.ts +2 -0
  672. package/dist/types/views/Editor/Toolbar/SlideAnimationPanel.d.ts +2 -0
  673. package/dist/types/views/Editor/Toolbar/SlideDesignPanel/ViewportSizeSetting.d.ts +7 -0
  674. package/dist/types/views/Editor/Toolbar/SlideDesignPanel/index.d.ts +7 -0
  675. package/dist/types/views/Editor/Toolbar/common/AnimationPool.d.ts +17 -0
  676. package/dist/types/views/Editor/Toolbar/common/BoxInsetControl.d.ts +14 -0
  677. package/dist/types/views/Editor/Toolbar/common/ElementColorMask.d.ts +2 -0
  678. package/dist/types/views/Editor/Toolbar/common/ElementFilter.d.ts +2 -0
  679. package/dist/types/views/Editor/Toolbar/common/ElementFlip.d.ts +2 -0
  680. package/dist/types/views/Editor/Toolbar/common/ElementOpacity.d.ts +2 -0
  681. package/dist/types/views/Editor/Toolbar/common/ElementOutline.d.ts +5 -0
  682. package/dist/types/views/Editor/Toolbar/common/ElementShadow.d.ts +2 -0
  683. package/dist/types/views/Editor/Toolbar/common/PanelSection.d.ts +10 -0
  684. package/dist/types/views/Editor/Toolbar/common/RichTextBase.d.ts +10 -0
  685. package/dist/types/views/Editor/Toolbar/common/SVGLine.d.ts +10 -0
  686. package/dist/types/views/Editor/Toolbar/common/TextStyleContent.d.ts +2 -0
  687. package/dist/types/views/Editor/Toolbar/common/handleElement.d.ts +19 -0
  688. package/dist/types/views/Editor/Toolbar/common/panelSwitch.d.ts +4 -0
  689. package/dist/types/views/Editor/Toolbar/common/textBoxStyle.d.ts +25 -0
  690. package/dist/types/views/Editor/Toolbar/index.d.ts +6 -0
  691. package/dist/types/views/Editor/Toolbar/paneSize.d.ts +15 -0
  692. package/dist/types/views/Editor/index.d.ts +2 -0
  693. package/dist/types/views/Editor/slideCodeMirror.d.ts +17 -0
  694. package/dist/types/views/Editor/slideCodeUtils.d.ts +14 -0
  695. package/dist/types/views/Editor/slideValidator.d.ts +12 -0
  696. package/dist/types/views/Mobile/MobileEditor/ElementToolbar.d.ts +1 -0
  697. package/dist/types/views/Mobile/MobileEditor/Header.d.ts +5 -0
  698. package/dist/types/views/Mobile/MobileEditor/MobileEditableElement.d.ts +7 -0
  699. package/dist/types/views/Mobile/MobileEditor/MobileOperate.d.ts +12 -0
  700. package/dist/types/views/Mobile/MobileEditor/SlideToolbar.d.ts +1 -0
  701. package/dist/types/views/Mobile/MobileEditor/index.d.ts +5 -0
  702. package/dist/types/views/Mobile/MobilePlayer.d.ts +5 -0
  703. package/dist/types/views/Mobile/MobilePreview.d.ts +5 -0
  704. package/dist/types/views/Mobile/MobileThumbnails.d.ts +3 -0
  705. package/dist/types/views/Mobile/index.d.ts +1 -0
  706. package/dist/types/views/Screen/AudienceView.d.ts +1 -0
  707. package/dist/types/views/Screen/BaseView.d.ts +3 -0
  708. package/dist/types/views/Screen/BottomThumbnails.d.ts +1 -0
  709. package/dist/types/views/Screen/CountdownTimer.d.ts +6 -0
  710. package/dist/types/views/Screen/LaserColorSwatches.d.ts +8 -0
  711. package/dist/types/views/Screen/LaserTrailOverlay.d.ts +11 -0
  712. package/dist/types/views/Screen/PresenterToolbar.d.ts +30 -0
  713. package/dist/types/views/Screen/PresenterView.d.ts +3 -0
  714. package/dist/types/views/Screen/ScreenElement.d.ts +12 -0
  715. package/dist/types/views/Screen/ScreenShell.d.ts +2 -0
  716. package/dist/types/views/Screen/ScreenSlide.d.ts +11 -0
  717. package/dist/types/views/Screen/ScreenSlideList.d.ts +15 -0
  718. package/dist/types/views/Screen/SlideThumbnails.d.ts +7 -0
  719. package/dist/types/views/Screen/WritingBoardTool.d.ts +9 -0
  720. package/dist/types/views/Screen/hooks/useExecPlay.d.ts +33 -0
  721. package/dist/types/views/Screen/hooks/useFullscreen.d.ts +5 -0
  722. package/dist/types/views/Screen/hooks/useScreenTools.d.ts +20 -0
  723. package/dist/types/views/Screen/hooks/useSlideSize.d.ts +11 -0
  724. package/dist/types/views/Screen/index.d.ts +2 -0
  725. package/dist/types/views/Screen/lazy.d.ts +2 -0
  726. package/dist/types/views/Screen/screenWindow.d.ts +11 -0
  727. package/dist/types/views/components/ThumbnailSlide/index.d.ts +13 -0
  728. package/dist/types/views/components/ThumbnailSlide/paintedSlide.d.ts +29 -0
  729. package/dist/types/views/components/element/AudioElement/ScreenAudioElement.d.ts +6 -0
  730. package/dist/types/views/components/element/AudioElement/index.d.ts +9 -0
  731. package/dist/types/views/components/element/ChartElement/BaseChartElement.d.ts +9 -0
  732. package/dist/types/views/components/element/ChartElement/Chart.d.ts +13 -0
  733. package/dist/types/views/components/element/ChartElement/chartBooth.d.ts +2 -0
  734. package/dist/types/views/components/element/ChartElement/chartOption.d.ts +17 -0
  735. package/dist/types/views/components/element/ChartElement/index.d.ts +9 -0
  736. package/dist/types/views/components/element/CodeElement/BaseCodeElement.d.ts +6 -0
  737. package/dist/types/views/components/element/CodeElement/CodeBlockSkeleton.d.ts +13 -0
  738. package/dist/types/views/components/element/CodeElement/CodeContent.d.ts +6 -0
  739. package/dist/types/views/components/element/CodeElement/index.d.ts +9 -0
  740. package/dist/types/views/components/element/ElementOutline.d.ts +8 -0
  741. package/dist/types/views/components/element/ImageElement/BaseImageElement.d.ts +6 -0
  742. package/dist/types/views/components/element/ImageElement/ImageBitmapSurface.d.ts +10 -0
  743. package/dist/types/views/components/element/ImageElement/ImageClipHandler.d.ts +15 -0
  744. package/dist/types/views/components/element/ImageElement/ImageOutline/ImageEllipseOutline.d.ts +8 -0
  745. package/dist/types/views/components/element/ImageElement/ImageOutline/ImagePolygonOutline.d.ts +9 -0
  746. package/dist/types/views/components/element/ImageElement/ImageOutline/ImageRectOutline.d.ts +9 -0
  747. package/dist/types/views/components/element/ImageElement/ImageOutline/index.d.ts +6 -0
  748. package/dist/types/views/components/element/ImageElement/index.d.ts +9 -0
  749. package/dist/types/views/components/element/ImageElement/useClipImage.d.ts +10 -0
  750. package/dist/types/views/components/element/ImageElement/useFilter.d.ts +4 -0
  751. package/dist/types/views/components/element/ImageElement/useImageBitmap.d.ts +2 -0
  752. package/dist/types/views/components/element/LatexElement/BaseLatexElement.d.ts +6 -0
  753. package/dist/types/views/components/element/LatexElement/LatexContent.d.ts +6 -0
  754. package/dist/types/views/components/element/LatexElement/index.d.ts +9 -0
  755. package/dist/types/views/components/element/LineElement/BaseLineElement.d.ts +6 -0
  756. package/dist/types/views/components/element/LineElement/LinePointMarker.d.ts +12 -0
  757. package/dist/types/views/components/element/LineElement/index.d.ts +9 -0
  758. package/dist/types/views/components/element/MediaPlayer/index.d.ts +20 -0
  759. package/dist/types/views/components/element/MediaPlayer/useMSE.d.ts +4 -0
  760. package/dist/types/views/components/element/MediaPlayer/useMediaPlayback.d.ts +67 -0
  761. package/dist/types/views/components/element/MermaidElement/BaseMermaidElement.d.ts +6 -0
  762. package/dist/types/views/components/element/MermaidElement/MermaidContent.d.ts +6 -0
  763. package/dist/types/views/components/element/MermaidElement/index.d.ts +9 -0
  764. package/dist/types/views/components/element/ProsemirrorEditor.d.ts +60 -0
  765. package/dist/types/views/components/element/ShapeElement/BaseShapeElement.d.ts +6 -0
  766. package/dist/types/views/components/element/ShapeElement/GradientDefs.d.ts +9 -0
  767. package/dist/types/views/components/element/ShapeElement/PatternDefs.d.ts +6 -0
  768. package/dist/types/views/components/element/ShapeElement/index.d.ts +10 -0
  769. package/dist/types/views/components/element/ShapeElement/shapePaintEqual.d.ts +15 -0
  770. package/dist/types/views/components/element/TableElement/BaseTableElement.d.ts +6 -0
  771. package/dist/types/views/components/element/TableElement/CustomTextarea.d.ts +12 -0
  772. package/dist/types/views/components/element/TableElement/EditableTable.d.ts +19 -0
  773. package/dist/types/views/components/element/TableElement/StaticTable.d.ts +12 -0
  774. package/dist/types/views/components/element/TableElement/cellEdit.d.ts +15 -0
  775. package/dist/types/views/components/element/TableElement/gridCompare.d.ts +28 -0
  776. package/dist/types/views/components/element/TableElement/index.d.ts +10 -0
  777. package/dist/types/views/components/element/TableElement/useHideCells.d.ts +4 -0
  778. package/dist/types/views/components/element/TableElement/useMathReady.d.ts +4 -0
  779. package/dist/types/views/components/element/TableElement/useSubThemeColor.d.ts +9 -0
  780. package/dist/types/views/components/element/TableElement/utils.d.ts +17 -0
  781. package/dist/types/views/components/element/TextElement/BaseTextElement.d.ts +15 -0
  782. package/dist/types/views/components/element/TextElement/index.d.ts +13 -0
  783. package/dist/types/views/components/element/VideoElement/ScreenVideoElement.d.ts +6 -0
  784. package/dist/types/views/components/element/VideoElement/index.d.ts +9 -0
  785. package/dist/types/views/components/element/hooks/useAutoShapeTextHeight.d.ts +2 -0
  786. package/dist/types/views/components/element/hooks/useElementFill.d.ts +5 -0
  787. package/dist/types/views/components/element/hooks/useElementFlip.d.ts +4 -0
  788. package/dist/types/views/components/element/hooks/useElementOutline.d.ts +10 -0
  789. package/dist/types/views/components/element/hooks/useElementShadow.d.ts +5 -0
  790. package/dist/types/views/components/element/hooks/useLiveBoxFit.d.ts +12 -0
  791. package/dist/types/views/components/element/hooks/useTextFit.d.ts +26 -0
  792. package/docs/RELEASE.md +14 -0
  793. package/package.json +26 -17
@@ -0,0 +1,204 @@
1
+ import type { Gradient, PPTElement, PPTTableElement, Slide, SlideBackground } from '../types/slides';
2
+ /**
3
+ * Painter's-algorithm text contrast repair for AI-imported decks.
4
+ *
5
+ * The query engine answers "what is painted under this text?" by sampling
6
+ * points inside the text's bounds and walking the slide's element list from
7
+ * the text downwards (elements render in array order, so the first hit while
8
+ * walking backwards is the topmost layer below the text). A layer only
9
+ * counts when it actually covers the sample: empty / transparent fills and
10
+ * outline-only (border) shapes are see-through; filled shapes are hit-tested
11
+ * against their path (ellipse corners are not a rectangle). Themed table
12
+ * cells sit on zinc paper with an opaque ink header (same as the renderer).
13
+ * Images are `unknown` unless a sampled color cache is supplied (AI import
14
+ * prefetches overlap regions via `fast-average-color`). Patterns and charts stay
15
+ * `unknown`.
16
+ *
17
+ * Texts whose worst-case WCAG contrast falls below {@link CONTRAST_TRIGGER}
18
+ * are recolored with a stark black ↔ white inversion based on the
19
+ * *background* polarity (dark fill → white ink, light fill → black ink).
20
+ * Text that already has the right polarity is left alone — flipping white
21
+ * numbers on a mid-teal chip to black "improves" the WCAG ratio (2.98 → 7)
22
+ * but looks worse. Mid-tone "barely AA" greys of the *wrong* polarity are
23
+ * still snapped to black/white; AI decks need decisive contrast.
24
+ */
25
+ /** Fix texts below this ratio (WCAG AA minimum for large text). */
26
+ export declare const CONTRAST_TRIGGER = 3;
27
+ /** Stark fixes (black/white) clear this comfortably; kept for callers/tests. */
28
+ export declare const CONTRAST_TARGET = 4.5;
29
+ interface ThemeColors {
30
+ backgroundColor: string;
31
+ fontColor: string;
32
+ }
33
+ /** Canvas-space rectangle with a sampled average hex (from `fast-average-color`). */
34
+ export interface ImageRegionPaint {
35
+ minX: number;
36
+ maxX: number;
37
+ minY: number;
38
+ maxY: number;
39
+ hex: string;
40
+ }
41
+ /**
42
+ * Prefetched image paints for one slide. Without this, photographs stay
43
+ * `unknown` and the fixer leaves overlapping text alone.
44
+ */
45
+ export interface ImagePaintCache {
46
+ /** Image element id → sampled text∩image regions. */
47
+ byElementId: Map<string, ImageRegionPaint[]>;
48
+ /** Slide image-background regions (cover-mapped), if any. */
49
+ slideBackground?: ImageRegionPaint[];
50
+ }
51
+ export interface ContrastContext {
52
+ images?: ImagePaintCache;
53
+ }
54
+ /** Flatten a gradient to a single representative color (average of stops). */
55
+ export declare const gradientAverageColor: (gradient: Gradient) => string;
56
+ /**
57
+ * Representative surface color of a slide background. Gradients average their
58
+ * stops; images fall back to `fallback` (usually the theme background) because
59
+ * the pixel paint is unknown without a sample cache. Translucent solids are
60
+ * composited over white so polarity matches what the user actually sees.
61
+ */
62
+ export declare const resolveSlideSurfaceColor: (background: SlideBackground | undefined, fallback?: string) => string;
63
+ /** Effective opaque fill of one cell (explicit backcolor, else theme stripe). */
64
+ export declare const resolveTableCellFill: (el: PPTTableElement, row: number, col: number) => string | null;
65
+ export interface BackgroundQueryResult {
66
+ /** Distinct opaque colors found under the sampled points. */
67
+ colors: string[];
68
+ /** True when any sample hit a layer that can't be evaluated (image, …). */
69
+ unknown: boolean;
70
+ }
71
+ /**
72
+ * Query engine: resolve what is painted under the element at `index`.
73
+ * Samples the element's bounds and, per sample, returns the topmost paint of
74
+ * the elements below it in painter order, falling back to the slide
75
+ * background.
76
+ */
77
+ export declare const queryBackgroundsUnder: (elements: PPTElement[], index: number, background: SlideBackground | undefined, theme: ThemeColors, ctx?: ContrastContext) => BackgroundQueryResult;
78
+ /**
79
+ * Return a readable replacement for `color` against every background, or
80
+ * `null` when the original should be kept.
81
+ *
82
+ * Preferred ink follows the *background*: dark fill → white, light fill →
83
+ * black. Text that already has that polarity is never flipped — white on a
84
+ * mid-luminance teal chip is ~2.98:1 (just under {@link CONTRAST_TRIGGER})
85
+ * but inverting it to black is the numbered-chip regression. Wrong-polarity
86
+ * text below the trigger snaps to the preferred ink (no muddy mid-tones).
87
+ */
88
+ export declare const fixColorForBackgrounds: (color: string, backgrounds: string[]) => string | null;
89
+ export declare const isDefaultInk: (color: string) => boolean;
90
+ export type InkPolarity = '#ffffff' | '#000000';
91
+ /**
92
+ * Canonical default ink for a set of surfaces (solid fill or every gradient stop).
93
+ *
94
+ * WCAG `mostReadable` prefers black on hot pink (`#e64980` 5.63 vs 3.73) even
95
+ * though white also clears 3:1 and is what a dark slide should use. Rule:
96
+ * 1. If only one of black/white meets {@link CONTRAST_TRIGGER} against every
97
+ * surface, use that one.
98
+ * 2. Otherwise (both pass, both fail, mixed stops) use perceived darkness of
99
+ * the darkest surface — not max-contrast, not `isDark()`.
100
+ *
101
+ * Do **not** use {@link fixColorForBackgrounds} for defaults: that helper is
102
+ * conservative AI-import repair and will keep `#333` on magenta because 3.4:1
103
+ * already passes the trigger.
104
+ */
105
+ export declare const preferredInk: (surfaces: string | string[] | null | undefined) => InkPolarity;
106
+ /** Every evaluable paint in a slide fill (gradient stops, else the flat surface). */
107
+ export declare const resolveSlideSurfaceColors: (background: SlideBackground | undefined, fallback?: string) => string[];
108
+ /** Surfaces the element's text actually sits on: opaque own fill, else the slide. */
109
+ export declare const resolveElementSurfaces: (options?: {
110
+ fill?: string;
111
+ background?: SlideBackground;
112
+ fallbackSurface?: string;
113
+ }) => string[];
114
+ /**
115
+ * Default body ink for new / unstyled text: strictly black or white from
116
+ * {@link preferredInk}. Explicit saturated colors pass through.
117
+ */
118
+ export declare const resolveDefaultFontColor: (color: string, surface: string | string[] | null | undefined) => string;
119
+ /** Default font color against a slide background (and optional own fill). */
120
+ export declare const resolveElementDefaultFontColor: (preferred: string, options?: {
121
+ fill?: string;
122
+ background?: SlideBackground;
123
+ fallbackSurface?: string;
124
+ }) => string;
125
+ /**
126
+ * Chart axis / legend / label ink. Same rules as text: default greys / black /
127
+ * white snap to {@link preferredInk} on the chart fill, else the slide.
128
+ * Explicit saturated colors pass through.
129
+ */
130
+ export declare const resolveChartLabelColor: (chart: {
131
+ textColor?: string;
132
+ fill?: string;
133
+ }, options?: {
134
+ background?: SlideBackground;
135
+ fallbackSurface?: string;
136
+ fontColor?: string;
137
+ }) => string;
138
+ /** Lift only series that disappear into the slide (Ink #171717 is ~1.1:1). */
139
+ export declare const CHART_SERIES_CONTRAST = 2;
140
+ /**
141
+ * Series fills/strokes must clear the slide (or chart fill). Ink's #171717
142
+ * on #0c0d10 is ~1:1 — lift it instead of painting invisible bars/lines.
143
+ */
144
+ export declare const resolveChartSeriesColors: (colors: string[] | undefined, surfaces: string | string[] | null | undefined) => string[];
145
+ export declare const resolveChartElementSeriesColors: (chart: {
146
+ themeColors?: string[];
147
+ fill?: string;
148
+ }, options?: {
149
+ background?: SlideBackground;
150
+ fallbackSurface?: string;
151
+ }) => string[];
152
+ /**
153
+ * Placeholder ink is the same binary polarity as body text — never a mixed grey.
154
+ */
155
+ export declare const resolvePlaceholderColor: (options: {
156
+ author?: string;
157
+ body?: string;
158
+ surfaces: string[];
159
+ }) => InkPolarity;
160
+ /** Distinct normalized text colors declared in an HTML content string. */
161
+ export declare const collectHtmlTextColors: (html: string) => string[];
162
+ /** Rewrite `color:` declarations via `replace` (return null to keep as-is). */
163
+ export declare const rewriteHtmlTextColors: (html: string, replace: (color: string) => string | null) => string;
164
+ export type ContrastAction = {
165
+ kind: 'fix';
166
+ slideIndex: number;
167
+ elementIndex: number;
168
+ elementType: 'text' | 'shape' | 'latex' | 'table';
169
+ target: 'html' | 'defaultColor' | 'latex' | 'tableCell';
170
+ from: string;
171
+ to: string;
172
+ backgrounds: string[];
173
+ ratioBefore: number;
174
+ ratioAfter: number;
175
+ snippet?: string;
176
+ } | {
177
+ kind: 'skip';
178
+ slideIndex: number;
179
+ elementIndex: number;
180
+ elementType: 'text' | 'shape' | 'latex' | 'table';
181
+ reason: string;
182
+ colors?: string[];
183
+ backgrounds?: string[];
184
+ snippet?: string;
185
+ };
186
+ /**
187
+ * Same decisions as {@link fixSlideTextContrast}, but returns a per-target
188
+ * action log (fixes + skips) instead of mutating. Used for verification.
189
+ */
190
+ export declare const diagnoseSlideTextContrast: (slide: Slide, theme: ThemeColors, slideIndex?: number, ctx?: ContrastContext) => ContrastAction[];
191
+ /**
192
+ * Repair unreadable text colors on a slide in place. Returns the number of
193
+ * applied fixes. Used for AI-generated imports only — user background changes
194
+ * go through {@link applySlideBackgroundWithContrast} / {@link preferredInk}.
195
+ */
196
+ export declare const fixSlideTextContrast: (slide: Slide, theme: ThemeColors, ctx?: ContrastContext) => number;
197
+ export declare const rewriteDefaultInksInHtml: (html: string, ink: string) => string;
198
+ /**
199
+ * Clone a slide and snap *default* ink (theme grey / black / white) to
200
+ * {@link preferredInk} for the new slide fill. Explicit colors and text on
201
+ * opaque own fills are left alone. Mutates nothing on the input.
202
+ */
203
+ export declare const applySlideBackgroundWithContrast: (slide: Slide, theme: ThemeColors) => Slide;
204
+ export {};
@@ -0,0 +1,195 @@
1
+ /**
2
+ * Shared text-fitting primitives built on `@chenglou/pretext`.
3
+ *
4
+ * Given a fixed-size text box, find the largest uniform font factor at which
5
+ * the content still fits — by measuring wrapped line count with pretext, then
6
+ * painting that factor as *actual font sizes* (Excel shrink-to-fit). Never a
7
+ * CSS zoom of the authored layout: zoom keeps the original wraps and scales
8
+ * paragraph gaps, which leaves a large empty region under the last line.
9
+ *
10
+ * pretext uses canvas, so this only does real work in a DOM/canvas runtime;
11
+ * callers wrap usage so a non-DOM context falls back gracefully.
12
+ */
13
+ import { prepare as pretextPrepare } from '@chenglou/pretext';
14
+ /** ProseMirror's default text size (assets/styles/prosemirror.scss). */
15
+ export declare const DEFAULT_TEXT_FONT_SIZE = 16;
16
+ /** Matches `ul, ol { padding-inline-start: 1em }` when the list has no inline pad. */
17
+ export declare const DEFAULT_LIST_PADDING_EM = 1;
18
+ /** Matches `li { padding-inline-start: 0.4em }` (marker-to-text gap). */
19
+ export declare const LIST_MARKER_GAP_EM = 0.4;
20
+ /**
21
+ * @deprecated Prefer per-block `listIndentPx` from the imported list padding.
22
+ * Kept as a fallback indent (px) when a list item has no padding of its own.
23
+ */
24
+ export declare const BULLET_INDENT = 40;
25
+ /** A single measurable text block (one paragraph or one list item). */
26
+ export interface TextFitBlock {
27
+ /** Plain text of the block (markers stripped). */
28
+ text: string;
29
+ /** Authored font size in px (its largest run, to stay safe). */
30
+ size: number;
31
+ bold?: boolean;
32
+ italic?: boolean;
33
+ fontFamily: string;
34
+ /** When true, a list marker indent is subtracted from the text column. */
35
+ listItem?: boolean;
36
+ /** `ul`/`ol` padding-inline-start in px, when authored as px. */
37
+ listIndentPx?: number;
38
+ /** `ul`/`ol` padding-inline-start in em, when authored as em. */
39
+ listIndentEm?: number;
40
+ }
41
+ export interface MeasureBlocksOptions {
42
+ /** Box content width in px (insets already removed). */
43
+ innerWidth: number;
44
+ /** Line height multiplier (e.g. 1.5). */
45
+ lineHeight: number;
46
+ /**
47
+ * Vertical gap between consecutive blocks, in px. CSS `--paragraphSpace` is
48
+ * a fixed px value on the box — it does **not** shrink with the font (Excel
49
+ * cell padding / our fittedContent paint). Do not scale this with sizeScale.
50
+ */
51
+ blockSpace?: number;
52
+ /** Fallback list gutter in px when a list item has no `listIndentPx`/`Em`. */
53
+ bulletIndent?: number;
54
+ letterSpacing?: number;
55
+ /** Multiply every block's font size by this factor before measuring (default 1). */
56
+ sizeScale?: number;
57
+ }
58
+ /** Extra inner-height reserved so overflow:hidden does not clip glyph ink that
59
+ * sits outside the CSS line box (PowerPoint lnSpcReduction / line-height < 1).
60
+ * Sized from the font, not a fixed slab — large pads look like over-shrink. */
61
+ export declare function fitClipPadding(maxFontSize: number, lineHeight: number): number;
62
+ export declare const MIN_FIT_SCALE = 0.2;
63
+ /**
64
+ * Excel-style shrink-to-fit from a *real* laid-out height: the largest scale
65
+ * `<= 1` at which `contentHeight * scale <= innerHeight`. Never grows past 100%.
66
+ * When content already fits, returns 1 (empty space in a tall box is authored).
67
+ */
68
+ export declare function fitScaleFromContentHeight(contentHeight: number, innerHeight: number, options?: {
69
+ minScale?: number;
70
+ }): number;
71
+ /**
72
+ * Natural (unzoomed) scroll height of a text-fit host. Forces zoom to 1 for
73
+ * one synchronous layout read (no clone — cloning a focused ProseMirror can
74
+ * under-measure and snap the scale back to 100% on click). Width is locked to
75
+ * the box inner width because Chrome `zoom` shrinks `clientWidth`.
76
+ */
77
+ /**
78
+ * Content-box size of the clipped text frame (padding already removed).
79
+ * Prefers the live DOM box so shrink-to-fit tracks applyLiveSize / resize
80
+ * instead of the last committed store width/height.
81
+ */
82
+ export declare function innerBoxFromContentElement(box: HTMLElement | null | undefined, fallback: {
83
+ innerWidth: number;
84
+ innerHeight: number;
85
+ }): {
86
+ innerWidth: number;
87
+ innerHeight: number;
88
+ };
89
+ /**
90
+ * Inner box from applyLiveSize inline styles + authored inset.
91
+ * No getComputedStyle / clientWidth — safe on the resize hot path.
92
+ */
93
+ export declare function innerBoxFromLiveStyles(box: HTMLElement | null | undefined, el: {
94
+ width: number;
95
+ height: number;
96
+ inset?: [number, number, number, number];
97
+ }): {
98
+ innerWidth: number;
99
+ innerHeight: number;
100
+ };
101
+ export declare function contentBoxOfHost(host: HTMLElement | null | undefined): HTMLElement | null;
102
+ export declare function measureUnzoomedScrollHeight(host: HTMLElement, innerWidth: number): number;
103
+ /**
104
+ * Total wrapped height (px) of `blocks` laid out in a column of `innerWidth`,
105
+ * with each block's font size multiplied by `sizeScale`. Each block is measured
106
+ * independently with pretext, then summed with the (unscaled, px-fixed)
107
+ * inter-block gap. Returns 0 for an empty input.
108
+ */
109
+ export declare function measureTextBlocksHeight(blocks: TextFitBlock[], options: MeasureBlocksOptions): number;
110
+ export interface FitFontScaleOptions {
111
+ innerWidth: number;
112
+ innerHeight: number;
113
+ lineHeight: number;
114
+ blockSpace?: number;
115
+ bulletIndent?: number;
116
+ letterSpacing?: number;
117
+ /** Smallest font factor to fall back to before clipping takes over (default 0.1). */
118
+ minScale?: number;
119
+ }
120
+ /**
121
+ * Largest uniform font factor in `[minScale, 1]` at which `blocks` fit
122
+ * `innerHeight`, found by binary search over pretext measurements. The factor
123
+ * multiplies the authored font sizes; because wrapping changes as the type
124
+ * shrinks, this re-measures at each candidate (not a single geometric divide).
125
+ * Returns 1 when content already fits (or measurement isn't possible).
126
+ */
127
+ export declare function fitFontScaleForBlocks(blocks: TextFitBlock[], options: FitFontScaleOptions): number;
128
+ /**
129
+ * Uniform zoom factor `innerHeight / height(authored)` — wrapping stays at the
130
+ * authored size. Only for the live editor (authored HTML + CSS zoom). Fitted
131
+ * static/thumbnail paint must use {@link fitFontScaleForBlocks} instead.
132
+ */
133
+ export declare function fitZoomScaleForBlocks(blocks: TextFitBlock[], options: FitFontScaleOptions): number;
134
+ export type FitMeasureSession = {
135
+ key: string;
136
+ lineHeight: number;
137
+ maxFont: number;
138
+ items: Array<{
139
+ block: TextFitBlock;
140
+ size: number;
141
+ handle: ReturnType<typeof pretextPrepare>;
142
+ }>;
143
+ };
144
+ export declare function fitSessionKey(html: string, fontFamily: string, lineHeight: number, letterSpacing: number, locale: string, defaultSize?: number): string;
145
+ /**
146
+ * One-time pretext `prepare()` for authored font sizes. Resize then only
147
+ * calls `layout()` with the new width (no canvas, no DOM, no re-prepare).
148
+ */
149
+ export declare function createFitMeasureSession(html: string, options: {
150
+ key: string;
151
+ defaultFontFamily: string;
152
+ lineHeight: number;
153
+ letterSpacing?: number;
154
+ /** Painted size for runs with no inline `font-size` (placeholder body is 20, not 16). */
155
+ defaultSize?: number;
156
+ }): FitMeasureSession | null;
157
+ /** Resize hot path: pure `layout()` over cached prepare handles. */
158
+ export declare function measureSessionHeight(session: FitMeasureSession, innerWidth: number, blockSpace?: number, bulletIndent?: number): number;
159
+ export declare function fitZoomScaleFromSession(session: FitMeasureSession, innerWidth: number, innerHeight: number, blockSpace?: number): number;
160
+ /**
161
+ * One-shot locked-box scale for a rich-text HTML string. Editor resize keeps a
162
+ * cached session; preview/export call this so they shrink with the same math.
163
+ */
164
+ export declare function textFitScaleForHtml(html: string, options: {
165
+ innerWidth: number;
166
+ innerHeight: number;
167
+ defaultFontFamily?: string;
168
+ defaultSize?: number;
169
+ lineHeight: number;
170
+ letterSpacing?: number;
171
+ blockSpace?: number;
172
+ locale?: string;
173
+ }): number;
174
+ export interface ExtractedContent {
175
+ blocks: TextFitBlock[];
176
+ }
177
+ export interface ExtractOptions {
178
+ defaultFontFamily: string;
179
+ defaultSize?: number;
180
+ }
181
+ /**
182
+ * Parse a Fika rich-text HTML string into measurable blocks. Each list item
183
+ * and top-level paragraph/quote becomes one block; a block's representative font
184
+ * size is the largest inline size in it (so measurement never under-estimates).
185
+ * Returns no blocks when there's no DOM parser or no text. List items are tagged
186
+ * so the marker indent is accounted for.
187
+ */
188
+ export declare function extractFitBlocksFromHtml(html: string, options: ExtractOptions): ExtractedContent;
189
+ /**
190
+ * Return a copy of `html` with every inline `font-size:Npx` multiplied by
191
+ * `scale` (rounded to 0.1px). Text without an explicit size is untouched here —
192
+ * the renderer scales that through the `--text-fit-base-size` CSS variable. A
193
+ * scale >= 1 (or a non-DOM context) returns the HTML unchanged.
194
+ */
195
+ export declare function scaleHtmlFontSizes(html: string, scale: number): string;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Convert plain text to HTML string with paragraph information
3
+ * @param text Text
4
+ */
5
+ export declare const parseText2Paragraphs: (text: string) => string;
@@ -0,0 +1,10 @@
1
+ import 'tippy.js/dist/tippy.css';
2
+ import 'tippy.js/animations/scale.css';
3
+ import '../directive/tooltip.scss';
4
+ /**
5
+ * Tippy tooltips for `[data-tooltip]`. Call once from the app/embed entry.
6
+ *
7
+ * Standalone presentation mode portals into `#fika-portals`, a sibling of
8
+ * `#app`. Watch the shell (or the embed root) so slideshow toolbar tips bind.
9
+ */
10
+ export declare function bindTooltips(root?: ParentNode): () => void;
@@ -0,0 +1,13 @@
1
+ import type { AlignmentLineAxis, SnapKind } from '../../../types/edit';
2
+ export type IAlignmentLineProps = {
3
+ type: 'vertical' | 'horizontal';
4
+ axis: AlignmentLineAxis;
5
+ length: number;
6
+ canvasScale: number;
7
+ kind?: SnapKind;
8
+ marks?: number[];
9
+ label?: string;
10
+ };
11
+ export declare function areAlignmentLinePropsEqual(prev: IAlignmentLineProps, next: IAlignmentLineProps): boolean;
12
+ declare const AlignmentLine: import("react").MemoExoticComponent<(props: IAlignmentLineProps) => import("react").JSX.Element>;
13
+ export default AlignmentLine;
@@ -0,0 +1,16 @@
1
+ interface ViewportStyles {
2
+ width: number;
3
+ height: number;
4
+ left: number;
5
+ top: number;
6
+ }
7
+ export type ICanvasScrollbarsProps = {
8
+ canvasRef: HTMLElement | {
9
+ current?: HTMLElement | null;
10
+ } | null;
11
+ viewportStyles: ViewportStyles;
12
+ canvasScale: number;
13
+ pan: (dx: number, dy: number) => void;
14
+ };
15
+ declare const CanvasScrollbars: import("react").MemoExoticComponent<(props: ICanvasScrollbarsProps) => import("react").JSX.Element>;
16
+ export default CanvasScrollbars;
@@ -0,0 +1,13 @@
1
+ import { type CSSProperties } from 'react';
2
+ import { type PPTElement } from '../../../types/slides';
3
+ export type IEditableElementProps = {
4
+ elementInfo: PPTElement;
5
+ elementIndex: number;
6
+ isMultiSelect: boolean;
7
+ isEditing?: boolean;
8
+ selectElement: (e: MouseEvent | TouchEvent, element: PPTElement, canMove?: boolean) => void;
9
+ openLinkDialog: () => void;
10
+ style?: CSSProperties;
11
+ };
12
+ declare const EditableElement: import("react").MemoExoticComponent<(props: IEditableElementProps) => import("react").JSX.Element>;
13
+ export default EditableElement;
@@ -0,0 +1,17 @@
1
+ import type { CSSProperties } from 'react';
2
+ import type { PPTElement } from '../../../types/slides';
3
+ export type EditableElementCompareProps = {
4
+ elementInfo: PPTElement;
5
+ elementIndex: number;
6
+ isMultiSelect: boolean;
7
+ isEditing?: boolean;
8
+ style?: CSSProperties;
9
+ };
10
+ export declare const sameEditableGeometry: (a: PPTElement, b: PPTElement) => boolean;
11
+ /**
12
+ * EditableElement is a per-element instance: sibling content cannot invalidate
13
+ * this wrapper. Canvas JSON-clones the whole list on every store write, so
14
+ * compare identity / geometry / lock / edit flags — not object identity, and
15
+ * not ProseMirror-owned content while this element is editing.
16
+ */
17
+ export declare const areEditableElementPropsEqual: (prev: EditableElementCompareProps, next: EditableElementCompareProps) => boolean;
@@ -0,0 +1,6 @@
1
+ import type { CreateElementSelectionData } from '../../../types/edit';
2
+ export type IElementCreateSelectionProps = {
3
+ onCreated?: (payload: CreateElementSelectionData) => void;
4
+ };
5
+ declare const ElementCreateSelection: import("react").MemoExoticComponent<(props: IElementCreateSelectionProps) => import("react").JSX.Element>;
6
+ export default ElementCreateSelection;
@@ -0,0 +1,9 @@
1
+ import type { PPTElement } from '../../../../types/slides';
2
+ import type { getElementRange } from '../../../../utils/element';
3
+ export type IAnimationIndexProps = {
4
+ elementInfo: PPTElement;
5
+ range: ReturnType<typeof getElementRange>;
6
+ indexList: number[];
7
+ };
8
+ declare const AnimationIndex: import("react").MemoExoticComponent<(props: IAnimationIndexProps) => import("react").JSX.Element>;
9
+ export default AnimationIndex;
@@ -0,0 +1,2 @@
1
+ declare const BorderPanel: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
2
+ export default BorderPanel;
@@ -0,0 +1,6 @@
1
+ import type { PPTChartElement } from '../../../../../types/slides';
2
+ export type IChartToolbarProps = {
3
+ elementInfo: PPTChartElement;
4
+ };
5
+ declare const ChartToolbar: import("react").MemoExoticComponent<(_props: IChartToolbarProps) => import("react").JSX.Element>;
6
+ export default ChartToolbar;
@@ -0,0 +1,6 @@
1
+ import type { PPTCodeElement } from '../../../../../types/slides';
2
+ export type ICodeToolbarProps = {
3
+ elementInfo: PPTCodeElement;
4
+ };
5
+ declare const CodeToolbar: import("react").MemoExoticComponent<(props: ICodeToolbarProps) => import("react").JSX.Element>;
6
+ export default CodeToolbar;
@@ -0,0 +1,6 @@
1
+ import type { PPTImageElement } from '../../../../../types/slides';
2
+ export type IImageToolbarProps = {
3
+ elementInfo: PPTImageElement;
4
+ };
5
+ declare const ImageToolbar: import("react").MemoExoticComponent<(_props: IImageToolbarProps) => import("react").JSX.Element>;
6
+ export default ImageToolbar;
@@ -0,0 +1,6 @@
1
+ import type { PPTLatexElement } from '../../../../../types/slides';
2
+ export type ILatexToolbarProps = {
3
+ elementInfo: PPTLatexElement;
4
+ };
5
+ declare const LatexToolbar: import("react").MemoExoticComponent<(_props: ILatexToolbarProps) => import("react").JSX.Element>;
6
+ export default LatexToolbar;
@@ -0,0 +1,6 @@
1
+ import type { PPTLineElement } from '../../../../../types/slides';
2
+ export type ILineToolbarProps = {
3
+ elementInfo: PPTLineElement;
4
+ };
5
+ declare const LineToolbar: import("react").MemoExoticComponent<(_props: ILineToolbarProps) => import("react").JSX.Element>;
6
+ export default LineToolbar;
@@ -0,0 +1,7 @@
1
+ import type { PPTShapeElement } from '../../../../../types/slides';
2
+ export type IShapeToolbarProps = {
3
+ elementInfo: PPTShapeElement;
4
+ onResize?: () => void;
5
+ };
6
+ declare const ShapeToolbar: import("react").MemoExoticComponent<(props: IShapeToolbarProps) => import("react").JSX.Element>;
7
+ export default ShapeToolbar;
@@ -0,0 +1,6 @@
1
+ import type { PPTTableElement } from '../../../../../types/slides';
2
+ export type ITableToolbarProps = {
3
+ elementInfo: PPTTableElement;
4
+ };
5
+ declare const TableToolbar: import("react").MemoExoticComponent<(props: ITableToolbarProps) => import("react").JSX.Element>;
6
+ export default TableToolbar;
@@ -0,0 +1,2 @@
1
+ declare const TextStyleControls: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
2
+ export default TextStyleControls;
@@ -0,0 +1,6 @@
1
+ import type { PPTTextElement } from '../../../../../types/slides';
2
+ export type ITextToolbarProps = {
3
+ elementInfo: PPTTextElement;
4
+ };
5
+ declare const TextToolbar: import("react").MemoExoticComponent<(_props: ITextToolbarProps) => import("react").JSX.Element>;
6
+ export default TextToolbar;
@@ -0,0 +1,8 @@
1
+ import { type PPTElement } from '../../../../../types/slides';
2
+ export type IFloatingToolbarProps = {
3
+ elementInfo: PPTElement;
4
+ toolbarStyle: Record<string, string>;
5
+ onMeasure?: (width: number) => void;
6
+ };
7
+ declare const FloatingToolbar: import("react").MemoExoticComponent<(props: IFloatingToolbarProps) => import("react").JSX.Element>;
8
+ export default FloatingToolbar;
@@ -0,0 +1,8 @@
1
+ import type { PPTElement } from '../../../../types/slides';
2
+ export type ILinkHandlerProps = {
3
+ elementInfo: PPTElement;
4
+ handlerStyle: Record<string, string>;
5
+ openLinkDialog: () => void;
6
+ };
7
+ declare const LinkHandler: import("react").MemoExoticComponent<(props: ILinkHandlerProps) => import("react").JSX.Element>;
8
+ export default LinkHandler;
@@ -0,0 +1,15 @@
1
+ import type { PPTElement, Slide } from '../../../../types/slides';
2
+ type SlidesLookup = {
3
+ slides: Slide[];
4
+ slideIndex: number;
5
+ };
6
+ export declare function findSlideElement(state: SlidesLookup, id: string): PPTElement;
7
+ export declare function elementLayoutSignature(element: PPTElement): string;
8
+ export declare function elementListLayoutEqual(prev: PPTElement[], next: PPTElement[]): boolean;
9
+ export declare function sameOffsetStyle(prev?: Record<string, string>, next?: Record<string, string>): boolean;
10
+ export declare function sameElementId<T extends {
11
+ elementInfo: {
12
+ id: string;
13
+ };
14
+ }>(prev: T, next: T): boolean;
15
+ export {};
@@ -0,0 +1,12 @@
1
+ import { type PPTElement } from '../../../../types/slides';
2
+ import type useViewportSize from '../hooks/useViewportSize';
3
+ export type IElementFloatLayerProps = {
4
+ elementList: PPTElement[];
5
+ canvasRef: HTMLElement | {
6
+ current?: HTMLElement | null;
7
+ } | null;
8
+ viewportStyles: ReturnType<typeof useViewportSize>['viewportStyles'];
9
+ openLinkDialog: () => void;
10
+ };
11
+ declare const ElementFloatLayer: import("react").MemoExoticComponent<(props: IElementFloatLayerProps) => import("react").JSX.Element>;
12
+ export default ElementFloatLayer;
@@ -0,0 +1,6 @@
1
+ export type IGridLinesProps = {
2
+ size?: number;
3
+ ephemeral?: boolean;
4
+ };
5
+ declare const GridLines: import("react").MemoExoticComponent<({ size, ephemeral }: IGridLinesProps) => import("react").JSX.Element>;
6
+ export default GridLines;
@@ -0,0 +1,19 @@
1
+ import type { PPTElement } from '../../../types/slides';
2
+ export type IHitLayerProps = {
3
+ elementList: PPTElement[];
4
+ canvasScale: number;
5
+ hiddenElementIdList: string[];
6
+ activeElementIdList: string[];
7
+ editingElementId: string | null;
8
+ clipingImageElementId: string;
9
+ disabled: boolean;
10
+ selectElement: (e: MouseEvent | TouchEvent, element: PPTElement, canMove?: boolean, andEdit?: boolean) => void;
11
+ beginEdit: (elementId: string, caret?: {
12
+ left: number;
13
+ top: number;
14
+ }) => void;
15
+ openLinkDialog: () => void;
16
+ className?: string;
17
+ };
18
+ declare const HitLayer: import("react").MemoExoticComponent<(props: IHitLayerProps) => import("react").JSX.Element>;
19
+ export default HitLayer;