fika-editor 3.0.5 → 3.0.7

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.
@@ -1,7 +1,14 @@
1
- import type { PPTChartElement, PPTCodeElement, PPTMermaidElement } from '../types/slides';
1
+ import type { PPTChartElement, PPTCodeElement, PPTLatexElement, PPTMermaidElement } from '../types/slides';
2
2
  type Raster = ImageBitmap | HTMLCanvasElement;
3
3
  export declare const getChartRaster: (element: PPTChartElement, colors: string[], textColor: string, lineColor: string, invalidate: () => void) => Raster | undefined;
4
4
  export declare const getMermaidRaster: (element: PPTMermaidElement, invalidate: () => void) => Raster | undefined;
5
5
  export declare const getCodeRaster: (element: PPTCodeElement, invalidate: () => void) => Raster | undefined;
6
+ /**
7
+ * MathLive typeset of a formula element, mirroring `LatexContent`'s DOM
8
+ * (flex-centered box, 36px stage scaled uniformly into the authored box).
9
+ * html-to-image is used instead of a bare foreignObject because SVG-as-image
10
+ * cannot load the MathLive web fonts.
11
+ */
12
+ export declare const getLatexRaster: (element: PPTLatexElement, invalidate: () => void) => Raster | undefined;
6
13
  export declare const clearSlideRasterResources: () => void;
7
14
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fika-editor",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
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",
@@ -117,7 +117,7 @@
117
117
  "overlayscrollbars": "^2.16.0",
118
118
  "parse5": "^8.0.1",
119
119
  "perfect-freehand": "^1.2.3",
120
- "pptxgenjs-plus": "^4.1.18",
120
+ "pptxgenjs-plus": "^4.1.19",
121
121
  "pptxtojson": "npm:@lofcz/pptxtojson@^2.2.5",
122
122
  "prosemirror-commands": "^1.7.2",
123
123
  "prosemirror-dropcursor": "^1.8.3",
@@ -174,7 +174,7 @@
174
174
  "react-doctor": "^0.9.12",
175
175
  "react-dom": "^19.2.8",
176
176
  "react-scan": "^0.5.7",
177
- "sass": "^1.100.0",
177
+ "sass": "^1.103.0",
178
178
  "typesafe-i18n": "npm:@lofcz/typesafe-i18n@5.27.4",
179
179
  "typescript": "^7.0.2"
180
180
  },