@fileverse-dev/ddoc 2.3.0-rtc-patch-21 → 2.3.0-rtc-patch-22

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-D8aDDOiU.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-D-0SitKj.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 _ = IAt(I), { offchainLookup: O, offchainLookupSignature: z } = await import("./ccip-kBhV6Azu.mjs");
89876
+ const _ = IAt(I), { offchainLookup: O, offchainLookupSignature: z } = await import("./ccip-BUdvOGGA.mjs");
89877
89877
  if (e.ccipRead !== !1 && (_ == null ? void 0 : _.slice(0, 10)) === z && x)
89878
89878
  return { data: await O(e, { data: _, to: x }) };
89879
89879
  throw j && (_ == null ? void 0 : _.slice(0, 10)) === "0x101bb98d" ? new zEt({ factory: u }) : lre(I, {
@@ -234600,7 +234600,7 @@ const _0n = (e) => e.context.awareness, P0n = (e) => e.context.isReady && e.cont
234600
234600
  terminateSession: G,
234601
234601
  awareness: Y
234602
234602
  } = V0n({
234603
- onError: a,
234603
+ onError: R.onCollabError,
234604
234604
  ydoc: _,
234605
234605
  onCollaborationConnectCallback: R.onCollaborationConnectCallback,
234606
234606
  onCollaborationCommit: R.onCollaborationCommit,
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-D8aDDOiU.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-D-0SitKj.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
@@ -159,6 +159,7 @@ export interface DdocProps extends CommentAccountProps {
159
159
  onFetchCommitContent?: (cid: string) => Promise<any>;
160
160
  onCollabSessionTermination?: () => void;
161
161
  onUnMergedUpdates?: (state: boolean) => void;
162
+ onCollabError?: (error: any) => void;
162
163
  }
163
164
  export interface IEditorSelectionData {
164
165
  from: number;
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-21",
5
+ "version": "2.3.0-rtc-patch-22",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {