@fileverse-dev/ddoc 2.2.8-tec-374-2 → 2.2.8-tec-374-3

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-D2pS1zIo.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-BDt2_4Tt.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;
@@ -86505,7 +86505,7 @@ async function o6(e, t) {
86505
86505
  });
86506
86506
  return K === "0x" ? { data: void 0 } : { data: K };
86507
86507
  } catch (U) {
86508
- const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-415rvaRm.mjs");
86508
+ const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-Dg4h8Rqa.mjs");
86509
86509
  if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === G && k)
86510
86510
  return { data: await _(e, { data: P, to: k }) };
86511
86511
  throw D && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new v5t({ factory: c }) : r$(U, {
@@ -127959,9 +127959,21 @@ const M_t = Xt.create({
127959
127959
  new tn({
127960
127960
  key: e,
127961
127961
  appendTransaction: (n, r, o) => {
127962
- const { doc: i, tr: a, schema: s } = o, l = e.getState(o), u = i.content.size, c = s.nodes[this.options.node];
127963
- if (l)
127964
- return a.insert(u, c.create());
127962
+ const { doc: i, tr: a, schema: s } = o;
127963
+ if (!e.getState(o)) return;
127964
+ const u = i.content.size, c = s.nodes[this.options.node], d = {
127965
+ class: "trailing-node"
127966
+ };
127967
+ let f = s.text(" ");
127968
+ const p = this.editor.getAttributes("textStyle");
127969
+ if (s.marks.textStyle) {
127970
+ const g = s.marks.textStyle.create({
127971
+ ...p
127972
+ });
127973
+ f = s.text(" ", [g]);
127974
+ }
127975
+ const h = c.create(d, f);
127976
+ return a.insert(u, h);
127965
127977
  },
127966
127978
  state: {
127967
127979
  init: (n, r) => {
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, P as r, h as s, u as t } from "./index-D2pS1zIo.mjs";
1
+ import { D as d, P as r, h as s, u as t } from "./index-BDt2_4Tt.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as PreviewDdocEditor,
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.2.8-tec-374-2",
5
+ "version": "2.2.8-tec-374-3",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {