fika-editor 3.0.16 → 3.0.17

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.
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The pptxtojson fork emits inline OMML equations as `span.omml-math` carrying
3
+ * bare LaTeX in `data-latex`. Re-typeset them into the canonical
4
+ * `span.fika-math` wrapper so they render and stay editable like all other
5
+ * in-text math.
6
+ */
7
+ export declare const convertOmmlMathSpans: (doc: Document) => void;
8
+ /** Typeset leftover TeX source with MathLive — any control word, not a command list. */
9
+ export declare const convertBareLatexBlocks: (doc: Document) => void;
10
+ /** Import-time and paint-time: OMML spans + leftover TeX source → fika-math. */
11
+ export declare function typesetImportedTex(html: string): string;
@@ -48,6 +48,12 @@ export declare const mathReady: {
48
48
  };
49
49
  /** Lazily import MathLive and configure it for a bundled (offline) font setup. */
50
50
  export declare function ensureMathliveReady(): Promise<MathliveModule>;
51
+ /**
52
+ * Recover LaTeX that passed through XML/HTML entity encoding.
53
+ * `entities.decodeXML` turns `&lt;` into `<`. A leftover `\<` is the
54
+ * `&lt;` → `\&lt;` → HTML-decode artifact, not a TeX control sequence.
55
+ */
56
+ export declare function normalizeImportedLatex(latex: string): string;
51
57
  /** Escape a string for safe inclusion in a double-quoted HTML attribute. */
52
58
  export declare function escapeLatexAttr(latex: string): string;
53
59
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fika-editor",
3
- "version": "3.0.16",
3
+ "version": "3.0.17",
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",
@@ -96,6 +96,7 @@
96
96
  "dexie": "^4.4.4",
97
97
  "dompurify": "^3.4.14",
98
98
  "echarts": "^6.1.0",
99
+ "entities": "^8.0.0",
99
100
  "events": "^3.3.0",
100
101
  "fast-average-color": "^9.5.2",
101
102
  "fast-equals": "^6.0.2",
@@ -118,7 +119,7 @@
118
119
  "parse5": "^8.0.1",
119
120
  "perfect-freehand": "^1.2.3",
120
121
  "pptxgenjs-plus": "^4.2.1",
121
- "pptxtojson": "npm:@lofcz/pptxtojson@^2.2.7",
122
+ "pptxtojson": "npm:@lofcz/pptxtojson@^2.2.8",
122
123
  "prosemirror-commands": "^1.7.2",
123
124
  "prosemirror-dropcursor": "^1.8.3",
124
125
  "prosemirror-gapcursor": "^1.4.1",