fika-editor 3.4.0 → 3.4.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.
@@ -0,0 +1,2 @@
1
+ /** Browser image drags supply HTML/URI data, not a File. Never insert active URLs. */
2
+ export declare function imageSourceFromTransfer(transfer: Pick<DataTransfer, 'getData'>): string | null;
package/docs/EMBED.md CHANGED
@@ -583,3 +583,12 @@ reject the promise. PPTX retains its existing partial-media warning behavior.
583
583
  The native export dialog now offers `pptx`, `pdf`, and `json`; control their
584
584
  visibility with `exportTabs`. Host exports should call these APIs directly,
585
585
  without simulating export button clicks or mounting an offscreen editor.
586
+
587
+ ### Multiple presentation tabs
588
+
589
+ The embed uses shared module-level stores and permits one active editor per
590
+ module. Destroy the previous controller before mounting a different deck;
591
+ mounting a second host concurrently throws before changing any document.
592
+ Cache each deck separately in the host and pass its latest snapshot on remount.
593
+ `destroy()` flushes pending rich-text changes and the final `onChange` before
594
+ releasing the editor. Hosts should flush their own autosave queue on teardown.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fika-editor",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
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",