@fileverse-dev/ddoc 3.0.22 → 3.0.23

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-Bmwhymhv.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-BuCWyB68.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;
@@ -93963,7 +93963,7 @@ async function AF(e, t) {
93963
93963
  });
93964
93964
  return ne === "0x" ? { data: void 0 } : { data: ne };
93965
93965
  } catch (I) {
93966
- const B = LKt(I), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-C5Ha981G.mjs");
93966
+ const B = LKt(I), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-D6oue-_T.mjs");
93967
93967
  if (e.ccipRead !== !1 && (B == null ? void 0 : B.slice(0, 10)) === $ && x)
93968
93968
  return { data: await H(e, { data: B, to: x }) };
93969
93969
  throw O && (B == null ? void 0 : B.slice(0, 10)) === "0x101bb98d" ? new dZt({ factory: f }) : Sge(I, {
@@ -134073,6 +134073,8 @@ const j6e = Zt.create({
134073
134073
  ]
134074
134074
  });
134075
134075
  const j = e.view, N = j.state.tr, I = t.depth - 3, B = t.before(I), H = t.node(I), $ = B + H.nodeSize;
134076
+ if (H.type.name !== "dBlock")
134077
+ return !1;
134076
134078
  N.replaceWith(
134077
134079
  B,
134078
134080
  $,
@@ -134112,15 +134114,18 @@ const j6e = Zt.create({
134112
134114
  if (m && p)
134113
134115
  return F();
134114
134116
  if (!C && !m) {
134115
- const D = t.node(t.depth - 2), S = t.index(t.depth - 2), _ = D.content.toJSON().slice(0, S);
134116
- if (_.length > 0) {
134117
- const O = e.view, T = O.state.tr, L = t.depth - 3, M = t.before(L), j = t.node(L), N = M + j.nodeSize, I = D.content.toJSON().slice(S), B = [
134117
+ const D = t.node(t.depth - 3);
134118
+ if ((D == null ? void 0 : D.type.name) !== "dBlock")
134119
+ return !1;
134120
+ const S = t.node(t.depth - 2), _ = t.index(t.depth - 2), O = S.content.toJSON().slice(0, _);
134121
+ if (O.length > 0) {
134122
+ const T = e.view, L = T.state.tr, M = t.depth - 3, j = t.before(M), N = t.node(M), I = j + N.nodeSize, B = S.content.toJSON().slice(_), H = [
134118
134123
  {
134119
134124
  type: "dBlock",
134120
134125
  content: [
134121
134126
  {
134122
134127
  type: g.type.name,
134123
- content: _
134128
+ content: O
134124
134129
  }
134125
134130
  ]
134126
134131
  },
@@ -134129,29 +134134,29 @@ const j6e = Zt.create({
134129
134134
  content: [
134130
134135
  {
134131
134136
  type: g.type.name,
134132
- content: I
134137
+ content: B
134133
134138
  }
134134
134139
  ]
134135
134140
  }
134136
134141
  ];
134137
- T.replaceWith(
134138
- M,
134139
- N,
134142
+ L.replaceWith(
134143
+ j,
134144
+ I,
134140
134145
  e.schema.nodeFromJSON({
134141
134146
  type: "doc",
134142
- content: B
134147
+ content: H
134143
134148
  })
134144
134149
  );
134145
- const H = e.schema.nodeFromJSON({
134150
+ const $ = e.schema.nodeFromJSON({
134146
134151
  type: "dBlock",
134147
134152
  content: [
134148
134153
  {
134149
134154
  type: g.type.name,
134150
- content: _
134155
+ content: O
134151
134156
  }
134152
134157
  ]
134153
- }), $ = M + H.nodeSize + 3;
134154
- return T.setSelection(kt.create(T.doc, $)), O.dispatch(T), !0;
134158
+ }), q = j + $.nodeSize + 3;
134159
+ return L.setSelection(kt.create(L.doc, q)), T.dispatch(L), !0;
134155
134160
  }
134156
134161
  }
134157
134162
  return !1;
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-Bmwhymhv.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-BuCWyB68.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": "3.0.22",
5
+ "version": "3.0.23",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {