@fileverse-dev/ddoc 3.0.80-tab-v2-1 → 3.0.80-tab-arch-v2

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.
@@ -34,7 +34,7 @@ export declare function deriveTabsFromEncodedState(yjsEncodedState: string | str
34
34
  };
35
35
  export declare function getTabsYdocNodes(doc: Y.Doc): TabsYdocNodes;
36
36
  export declare function syncTabStateAndGetNodes(doc: Y.Doc, options?: TabSyncOptions): SyncedTabsYdocNodes;
37
- export declare function mergeTabAwareYjsUpdates(yjsEncodedStates: string[], options?: TabSyncOptions): string;
37
+ export declare function mergeTabAwareYjsUpdates(encodedUpdates: string[], options?: TabSyncOptions): string;
38
38
  export declare function getActiveTabIdFromNodes(tabNodes: Pick<TabsYdocNodes, 'tabState'>): string | null;
39
39
  export declare function getTabMetadata(tabNodes: Pick<TabsYdocNodes, 'nameById' | 'emojiById'>, tabId: string): {
40
40
  name: string;
@@ -0,0 +1,16 @@
1
+ import { JSONContent } from '@tiptap/core';
2
+
3
+ type TabSummary = {
4
+ id: string;
5
+ name: string;
6
+ };
7
+ export type VersionTabSnapshot = {
8
+ hasTabState: boolean;
9
+ tabs: TabSummary[];
10
+ activeTabId: string | null;
11
+ defaultTabId: string;
12
+ docDefault: JSONContent | null;
13
+ docByTabId: Record<string, JSONContent | null>;
14
+ };
15
+ export declare function buildVersionDiffSnapshot(content: string): VersionTabSnapshot;
16
+ export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.0.80-tab-v2-1",
5
+ "version": "3.0.80-tab-arch-v2",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {