@fileverse-dev/ddoc 3.0.45-patch-43 → 3.0.45-patch-44
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-
|
|
1
|
+
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-DE6luKe2.mjs";
|
|
2
2
|
class S extends p {
|
|
3
3
|
constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
|
|
4
4
|
var o;
|
|
@@ -94001,7 +94001,7 @@ async function SC(e, t) {
|
|
|
94001
94001
|
});
|
|
94002
94002
|
return oe === "0x" ? { data: void 0 } : { data: oe };
|
|
94003
94003
|
} catch (I) {
|
|
94004
|
-
const B = LJt(I), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-
|
|
94004
|
+
const B = LJt(I), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-QSgQgGGV.mjs");
|
|
94005
94005
|
if (e.ccipRead !== !1 && (B == null ? void 0 : B.slice(0, 10)) === $ && x)
|
|
94006
94006
|
return { data: await U(e, { data: B, to: x }) };
|
|
94007
94007
|
throw _ && (B == null ? void 0 : B.slice(0, 10)) === "0x101bb98d" ? new dXt({ factory: f }) : w3e(I, {
|
|
@@ -252108,7 +252108,7 @@ const yk = (e = 32, t) => {
|
|
|
252108
252108
|
initialContent: t,
|
|
252109
252109
|
enableCollaboration: n,
|
|
252110
252110
|
isDDocOwner: r,
|
|
252111
|
-
|
|
252111
|
+
createDefaultTabIfMissing: o
|
|
252112
252112
|
}) => {
|
|
252113
252113
|
const [i, a] = _e(""), [s, l] = _e([]), u = ot(() => s.length > 0, [s]), c = Ie(
|
|
252114
252114
|
(m) => {
|
|
@@ -252127,13 +252127,19 @@ const yk = (e = 32, t) => {
|
|
|
252127
252127
|
t,
|
|
252128
252128
|
e,
|
|
252129
252129
|
{
|
|
252130
|
-
createDefaultTabIfMissing:
|
|
252130
|
+
createDefaultTabIfMissing: r
|
|
252131
252131
|
}
|
|
252132
252132
|
);
|
|
252133
252133
|
a(r ? b : y[0].id), l(y);
|
|
252134
252134
|
return;
|
|
252135
252135
|
}
|
|
252136
|
-
}, [
|
|
252136
|
+
}, [
|
|
252137
|
+
e,
|
|
252138
|
+
t,
|
|
252139
|
+
r,
|
|
252140
|
+
n,
|
|
252141
|
+
o
|
|
252142
|
+
]), Be(() => {
|
|
252137
252143
|
if (!e) return;
|
|
252138
252144
|
const m = e.getMap("ddocTabs");
|
|
252139
252145
|
let y = m.get("order");
|
|
@@ -263303,7 +263309,7 @@ const RHn = (e) => e.context.awareness, PHn = (e) => !!(e.context.isReady && e.c
|
|
|
263303
263309
|
initialContent: $,
|
|
263304
263310
|
enableCollaboration: r,
|
|
263305
263311
|
isDDocOwner: E.isDDocOwner || !1,
|
|
263306
|
-
|
|
263312
|
+
createDefaultTabIfMissing: !U && !e
|
|
263307
263313
|
}), Y = DIn({
|
|
263308
263314
|
ydoc: q.ydoc,
|
|
263309
263315
|
isPreviewMode: e,
|
package/dist/index.es.js
CHANGED
|
@@ -6,9 +6,9 @@ interface UseTabManagerArgs {
|
|
|
6
6
|
initialContent: DdocProps['initialContent'];
|
|
7
7
|
enableCollaboration: DdocProps['enableCollaboration'];
|
|
8
8
|
isDDocOwner: boolean;
|
|
9
|
-
|
|
9
|
+
createDefaultTabIfMissing: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const useTabManager: ({ ydoc, initialContent, enableCollaboration, isDDocOwner,
|
|
11
|
+
export declare const useTabManager: ({ ydoc, initialContent, enableCollaboration, isDDocOwner, createDefaultTabIfMissing, }: UseTabManagerArgs) => {
|
|
12
12
|
tabs: Tab[];
|
|
13
13
|
hasTabState: boolean;
|
|
14
14
|
activeTabId: string;
|