fika-editor 3.0.27 → 3.0.29

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,15 @@
1
+ import type { FikaDocument } from './types';
2
+ import type { FikaDeckViewport } from './agentic/types';
3
+ export type FikaInitialDocument = FikaDocument & {
4
+ viewport?: Partial<FikaDeckViewport>;
5
+ };
6
+ /**
7
+ * Write a document straight into the stores (title, slides, theme, viewport).
8
+ *
9
+ * `mountFika` calls this synchronously for `options.document` BEFORE the first
10
+ * render, so the controller it resolves with already reflects the document.
11
+ * Doing it in EmbedRoot's mount effect instead left a window where a host
12
+ * command issued right after `await mountFika(...)` (e.g. inserting the first
13
+ * streamed slide) was overwritten by the late `setSlides(init.document.slides)`.
14
+ */
15
+ export declare function applyDocumentToStores(document: FikaInitialDocument): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fika-editor",
3
- "version": "3.0.27",
3
+ "version": "3.0.29",
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",