@fileverse-dev/ddoc 3.0.80-tab-arch-v3 → 3.0.80-tab-arch-v4
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.
package/dist/index.es.js
CHANGED
|
@@ -28197,21 +28197,21 @@ function Bv(e, t) {
|
|
|
28197
28197
|
e.get(o) !== r && (e.set(o, r), n = !0);
|
|
28198
28198
|
}), n;
|
|
28199
28199
|
}
|
|
28200
|
-
function EP(e, t) {
|
|
28201
|
-
const
|
|
28202
|
-
let
|
|
28203
|
-
const
|
|
28204
|
-
Array.from(t.deletedIds, (
|
|
28200
|
+
function EP(e, t, n = "self") {
|
|
28201
|
+
const r = $1(e);
|
|
28202
|
+
let o = !1;
|
|
28203
|
+
const i = new Map(
|
|
28204
|
+
Array.from(t.deletedIds, (s) => [s, !0])
|
|
28205
28205
|
);
|
|
28206
28206
|
return e.transact(() => {
|
|
28207
|
-
t.order.forEach((
|
|
28208
|
-
e.getXmlFragment(
|
|
28209
|
-
}),
|
|
28210
|
-
|
|
28207
|
+
t.order.forEach((s) => {
|
|
28208
|
+
e.getXmlFragment(s);
|
|
28209
|
+
}), o = Xce(r.order, t.order) || o, o = Bv(r.nameById, t.names) || o, o = Bv(r.emojiById, t.emojis) || o, o = Zce(
|
|
28210
|
+
r.tabState,
|
|
28211
28211
|
a8,
|
|
28212
28212
|
t.activeTabId
|
|
28213
|
-
) ||
|
|
28214
|
-
},
|
|
28213
|
+
) || o, o = Bv(r.deletedById, i) || o;
|
|
28214
|
+
}, n), o;
|
|
28215
28215
|
}
|
|
28216
28216
|
function X5(e, t) {
|
|
28217
28217
|
const n = qce(e), r = Wce(e), o = Kce(
|
|
@@ -28225,9 +28225,9 @@ function X5(e, t) {
|
|
|
28225
28225
|
resolvedTabState: o
|
|
28226
28226
|
};
|
|
28227
28227
|
}
|
|
28228
|
-
function CP(e, t) {
|
|
28229
|
-
const { resolvedTabState:
|
|
28230
|
-
return EP(e, n);
|
|
28228
|
+
function CP(e, t, n = "self") {
|
|
28229
|
+
const { resolvedTabState: r } = X5(e, t);
|
|
28230
|
+
return EP(e, r, n);
|
|
28231
28231
|
}
|
|
28232
28232
|
function l8(e, t, n) {
|
|
28233
28233
|
Y5(e, t);
|
|
@@ -28244,11 +28244,11 @@ function l8(e, t, n) {
|
|
|
28244
28244
|
function $s(e) {
|
|
28245
28245
|
return $1(e);
|
|
28246
28246
|
}
|
|
28247
|
-
function CA(e, t) {
|
|
28248
|
-
const
|
|
28247
|
+
function CA(e, t, n = "self") {
|
|
28248
|
+
const r = CP(e, t, n);
|
|
28249
28249
|
return {
|
|
28250
28250
|
...$1(e),
|
|
28251
|
-
didWrite:
|
|
28251
|
+
didWrite: r
|
|
28252
28252
|
};
|
|
28253
28253
|
}
|
|
28254
28254
|
function Z5(e, t) {
|
|
@@ -170663,9 +170663,13 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
170663
170663
|
}, $ = () => {
|
|
170664
170664
|
P($s(e));
|
|
170665
170665
|
}, q = e.getMap(wP), z = () => {
|
|
170666
|
-
const U = CA(
|
|
170667
|
-
|
|
170668
|
-
|
|
170666
|
+
const U = CA(
|
|
170667
|
+
e,
|
|
170668
|
+
{
|
|
170669
|
+
createDefaultTabIfMissing: o
|
|
170670
|
+
},
|
|
170671
|
+
n ? "legacy-collab-migration" : "self"
|
|
170672
|
+
);
|
|
170669
170673
|
P(U);
|
|
170670
170674
|
};
|
|
170671
170675
|
return P(S), I.order.observe($), I.nameById.observe($), I.emojiById.observe($), I.tabState.observe($), I.deletedById.observe($), q.observeDeep(z), () => {
|
|
@@ -170675,6 +170679,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
170675
170679
|
e,
|
|
170676
170680
|
s,
|
|
170677
170681
|
i,
|
|
170682
|
+
n,
|
|
170678
170683
|
c,
|
|
170679
170684
|
o,
|
|
170680
170685
|
l
|
|
@@ -26,14 +26,14 @@ export declare const EMOJI_ROOT_KEY = "tabs_emoji_registry";
|
|
|
26
26
|
export declare const STATE_ROOT_KEY = "tabs_state";
|
|
27
27
|
export declare const DELETED_ROOT_KEY = "tabs_delete_registry";
|
|
28
28
|
export declare const ACTIVE_TAB_STATE_KEY = "activeTabId";
|
|
29
|
-
export declare function syncTabState(doc: Y.Doc, options?: TabSyncOptions): boolean;
|
|
29
|
+
export declare function syncTabState(doc: Y.Doc, options?: TabSyncOptions, transactionOrigin?: unknown): boolean;
|
|
30
30
|
export declare function deriveTabsFromEncodedState(yjsEncodedState: string | string[] | null | undefined, doc: Y.Doc, options?: TabSyncOptions): {
|
|
31
31
|
tabList: Tab[];
|
|
32
32
|
activeTabId: string;
|
|
33
33
|
didWrite: boolean;
|
|
34
34
|
};
|
|
35
35
|
export declare function getTabsYdocNodes(doc: Y.Doc): TabsYdocNodes;
|
|
36
|
-
export declare function syncTabStateAndGetNodes(doc: Y.Doc, options?: TabSyncOptions): SyncedTabsYdocNodes;
|
|
36
|
+
export declare function syncTabStateAndGetNodes(doc: Y.Doc, options?: TabSyncOptions, transactionOrigin?: unknown): SyncedTabsYdocNodes;
|
|
37
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): {
|