@fileverse-dev/ddoc 2.3.0-rtc-patch-16 → 2.3.0-rtc-patch-17

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-DGqNtrJ0.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-Do6oEUBS.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;
@@ -89873,7 +89873,7 @@ async function Ov(e, t) {
89873
89873
  });
89874
89874
  return U === "0x" ? { data: void 0 } : { data: U };
89875
89875
  } catch (I) {
89876
- const H = OAt(I), { offchainLookup: O, offchainLookupSignature: P } = await import("./ccip-6zp1dxZI.mjs");
89876
+ const H = OAt(I), { offchainLookup: O, offchainLookupSignature: P } = await import("./ccip-fsDKbn5X.mjs");
89877
89877
  if (e.ccipRead !== !1 && (H == null ? void 0 : H.slice(0, 10)) === P && x)
89878
89878
  return { data: await O(e, { data: H, to: x }) };
89879
89879
  throw D && (H == null ? void 0 : H.slice(0, 10)) === "0x101bb98d" ? new HEt({ factory: u }) : lre(I, {
@@ -234814,9 +234814,9 @@ const H0n = (e) => e.context.awareness, V0n = (e) => e.context.isReady && e.cont
234814
234814
  }), [K, n, N == null ? void 0 : N.collaborationId]);
234815
234815
  const We = tt(null);
234816
234816
  _e(() => {
234817
- const Ae = !e;
234817
+ const Ae = ae && (N != null && N.isOwner) ? !e : !1;
234818
234818
  Ee == null || Ee.setEditable(Ae);
234819
- }, [e, Ee]), _e(() => {
234819
+ }, [e, Ee, ae, N == null ? void 0 : N.isOwner]), _e(() => {
234820
234820
  ae && O(!K);
234821
234821
  }, [ae, K]);
234822
234822
  const $e = tt(null), B = async () => {
@@ -237103,7 +237103,7 @@ const oW = Ce.memo(f0e), mfn = ({
237103
237103
  ), Gt = {
237104
237104
  name: vn
237105
237105
  };
237106
- un && (Gt.color = un.color, Gt.isEns = un.isEns), typeof Ge.commands.updateUser == "function" && Ge.commands.updateUser(Gt);
237106
+ un && (Gt.color = un.color, Gt.isEns = un.isEns), typeof Ge.commands.updateUser == "function" && (Ge.commands.updateUser(Gt), Ge.setEditable(!0));
237107
237107
  },
237108
237108
  terminateSession: Pa
237109
237109
  }),
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-DGqNtrJ0.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-Do6oEUBS.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.3.0-rtc-patch-16",
5
+ "version": "2.3.0-rtc-patch-17",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {