@fileverse-dev/ddoc 2.2.8-hotfix-patch-1 → 2.2.8-patch-1

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-2NliVzGa.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-B1we7Vyw.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, {
@@ -96848,6 +96848,13 @@ const _k = [
96848
96848
  e.chain().focus().setFontFamily("Georgia, serif").run();
96849
96849
  }
96850
96850
  },
96851
+ {
96852
+ title: "IBM Plex Mono",
96853
+ value: "IBM Plex Mono, monospace",
96854
+ command: (e) => {
96855
+ e.chain().focus().setFontFamily("IBM Plex Mono, monospace").run();
96856
+ }
96857
+ },
96851
96858
  {
96852
96859
  title: "Impact",
96853
96860
  value: "Impact, Charcoal, sans-serif",
@@ -96862,6 +96869,13 @@ const _k = [
96862
96869
  e.chain().focus().setFontFamily("Inter, sans-serif").run();
96863
96870
  }
96864
96871
  },
96872
+ {
96873
+ title: "JetBrains Mono",
96874
+ value: "JetBrains Mono, monospace",
96875
+ command: (e) => {
96876
+ e.chain().focus().setFontFamily("JetBrains Mono, monospace").run();
96877
+ }
96878
+ },
96865
96879
  {
96866
96880
  title: "Lato",
96867
96881
  value: "Lato, sans-serif",
@@ -127945,9 +127959,21 @@ const M_t = Xt.create({
127945
127959
  new tn({
127946
127960
  key: e,
127947
127961
  appendTransaction: (n, r, o) => {
127948
- const { doc: i, tr: a, schema: s } = o, l = e.getState(o), u = i.content.size, c = s.nodes[this.options.node];
127949
- if (l)
127950
- 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);
127951
127977
  },
127952
127978
  state: {
127953
127979
  init: (n, r) => {
@@ -218811,7 +218837,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
218811
218837
  delimiters: "dollar",
218812
218838
  katexOptions: {
218813
218839
  throwOnError: !1,
218814
- strict: !1
218840
+ strict: !0
218815
218841
  }
218816
218842
  }),
218817
218843
  xUt,
@@ -218930,6 +218956,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
218930
218956
  icon: /* @__PURE__ */ M.jsx(He, { name: "Callout", size: "md" }),
218931
218957
  image: "",
218932
218958
  command: ({ editor: r, range: o }) => {
218959
+ const i = r.getAttributes("textStyle");
218933
218960
  r.chain().focus().deleteRange(o).insertContent({
218934
218961
  type: "callout",
218935
218962
  content: [
@@ -218938,7 +218965,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
218938
218965
  content: []
218939
218966
  }
218940
218967
  ]
218941
- }).run();
218968
+ }).run(), i && r.chain().focus().setMark("textStyle", i).run();
218942
218969
  }
218943
218970
  },
218944
218971
  {
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-2NliVzGa.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,