fika-editor 3.6.7 → 3.6.8

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.
@@ -101,6 +101,8 @@ export interface FikaCommandResult<TData = unknown> {
101
101
  commandId?: string;
102
102
  type: FikaCommandType;
103
103
  changed: boolean;
104
+ /** Actual changed/inserted/deleted/reordered slide ids; absent on no-ops and rollbacks. */
105
+ changedSlideIds?: string[];
104
106
  documentVersion: number;
105
107
  snapshotId?: number;
106
108
  data?: TData;
@@ -109,6 +109,7 @@ interface FikaCommandResult<TData = unknown> {
109
109
  commandId?: string
110
110
  type: FikaCommandType
111
111
  changed: boolean
112
+ changedSlideIds?: string[]
112
113
  documentVersion: number
113
114
  snapshotId?: number
114
115
  data?: TData
@@ -134,6 +135,8 @@ Result rules:
134
135
  - `commandId` mirrors the incoming command `id`.
135
136
  - `type` always mirrors the incoming command `type`.
136
137
  - `changed` is true only when the command changed document or view state and was not a dry run.
138
+ - Reapplying an already-applied patch succeeds with `changed: false`; it does not create an undo snapshot or advance the document version. A successful no-op is not a reason to retry.
139
+ - `changedSlideIds` identifies slides whose stored content or position actually changed, including inserted or deleted slides. Hosts should use these ids when capturing edits made without an explicit `slideId`.
137
140
  - `documentVersion` increments after successful, non-dry-run changed commands.
138
141
  - `snapshotId` is present only when that command created its own history snapshot.
139
142
  - `data` contains the command-specific return payload, usually the updated model object or current bridge state.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fika-editor",
3
- "version": "3.6.7",
3
+ "version": "3.6.8",
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",