@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-B4MZZgt_.mjs";
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-CPG39HL4.mjs");
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
- isVersionMode: o
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: !o
252130
+ createDefaultTabIfMissing: r
252131
252131
  }
252132
252132
  );
252133
252133
  a(r ? b : y[0].id), l(y);
252134
252134
  return;
252135
252135
  }
252136
- }, [e, t, r, n, o]), Be(() => {
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
- isVersionMode: U
263312
+ createDefaultTabIfMissing: !U && !e
263307
263313
  }), Y = DIn({
263308
263314
  ydoc: q.ydoc,
263309
263315
  isPreviewMode: e,
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-B4MZZgt_.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-DE6luKe2.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
@@ -6,9 +6,9 @@ interface UseTabManagerArgs {
6
6
  initialContent: DdocProps['initialContent'];
7
7
  enableCollaboration: DdocProps['enableCollaboration'];
8
8
  isDDocOwner: boolean;
9
- isVersionMode?: boolean;
9
+ createDefaultTabIfMissing: boolean;
10
10
  }
11
- export declare const useTabManager: ({ ydoc, initialContent, enableCollaboration, isDDocOwner, isVersionMode, }: UseTabManagerArgs) => {
11
+ export declare const useTabManager: ({ ydoc, initialContent, enableCollaboration, isDDocOwner, createDefaultTabIfMissing, }: UseTabManagerArgs) => {
12
12
  tabs: Tab[];
13
13
  hasTabState: boolean;
14
14
  activeTabId: string;
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.45-patch-43",
5
+ "version": "3.0.45-patch-44",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {