fika-editor 3.2.4 → 3.2.5

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.
@@ -8,3 +8,14 @@ export declare function estimateInlineMathBox(latex: string, fontSize: number, d
8
8
  width: number;
9
9
  height: number;
10
10
  };
11
+ /**
12
+ * Unstyled MathLive HTML collapses to a sliver (a few px wide, many em tall).
13
+ * Stretching that box onto the canvas is what turns table snapshots into bars.
14
+ */
15
+ export declare function isPlausibleInlineMathBox(box: {
16
+ width: number;
17
+ height: number;
18
+ }, fontSize: number, estimate: {
19
+ width: number;
20
+ height: number;
21
+ }): boolean;
@@ -12,7 +12,7 @@
12
12
  * `fonts.css`) is lazy-loaded the first time math actually appears or an editor
13
13
  * opens, so decks without math never pull it into the bundle.
14
14
  */
15
- export { MATH_CLASS, estimateInlineMathBox, htmlHasFikaMath } from './inlineMathBox';
15
+ export { MATH_CLASS, estimateInlineMathBox, htmlHasFikaMath, isPlausibleInlineMathBox } from './inlineMathBox';
16
16
  type ConvertLatexToMarkup = (latex: string, options?: {
17
17
  defaultMode?: 'inline-math' | 'math' | 'text';
18
18
  }) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fika-editor",
3
- "version": "3.2.4",
3
+ "version": "3.2.5",
4
4
  "description": "Fika presentation editor embed bundle with a typed agentic bridge.",
5
5
  "type": "module",
6
6
  "main": "dist/embed/fika-embed.js",