@fileverse-dev/ddoc 3.0.12 → 3.0.14-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-B9JRAWhX.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-CnwMYpbP.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;
@@ -93960,7 +93960,7 @@ async function vF(e, t) {
93960
93960
  });
93961
93961
  return ne === "0x" ? { data: void 0 } : { data: ne };
93962
93962
  } catch (R) {
93963
- const I = fKt(R), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-utBQ0sDm.mjs");
93963
+ const I = fKt(R), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-LusRwzWg.mjs");
93964
93964
  if (e.ccipRead !== !1 && (I == null ? void 0 : I.slice(0, 10)) === $ && x)
93965
93965
  return { data: await H(e, { data: I, to: x }) };
93966
93966
  throw B && (I == null ? void 0 : I.slice(0, 10)) === "0x101bb98d" ? new WGt({ factory: f }) : cge(R, {
@@ -187091,17 +187091,21 @@ const fTn = Pt.create({
187091
187091
  return t.forEach((a) => {
187092
187092
  a.docChanged && a.steps.forEach((s) => {
187093
187093
  s.getMap().forEach((u, c, d, f) => {
187094
- f > d && r.doc.nodesBetween(d, f, (h, p) => {
187095
- if (!this.options.types.includes(h.type.name) || h.attrs.lineHeight) return;
187096
- const g = r.doc.resolve(p), m = g.index(g.depth);
187097
- if (m > 0) {
187098
- const y = g.node(g.depth).child(m - 1);
187099
- y && this.options.types.includes(y.type.name) && y.attrs.lineHeight && (o.setNodeMarkup(p, void 0, {
187100
- ...h.attrs,
187101
- lineHeight: y.attrs.lineHeight
187102
- }), i = !0);
187103
- }
187104
- });
187094
+ if (f > d) {
187095
+ const h = r.doc.content.size, p = Math.max(0, Math.min(d, h)), g = Math.max(0, Math.min(f, h));
187096
+ if (g <= p) return;
187097
+ r.doc.nodesBetween(p, g, (m, y) => {
187098
+ if (!this.options.types.includes(m.type.name) || m.attrs.lineHeight) return;
187099
+ const b = r.doc.resolve(y), v = b.index(b.depth);
187100
+ if (v > 0) {
187101
+ const x = b.node(b.depth).child(v - 1);
187102
+ x && this.options.types.includes(x.type.name) && x.attrs.lineHeight && (o.setNodeMarkup(y, void 0, {
187103
+ ...m.attrs,
187104
+ lineHeight: x.attrs.lineHeight
187105
+ }), i = !0);
187106
+ }
187107
+ });
187108
+ }
187105
187109
  });
187106
187110
  });
187107
187111
  }), i ? o : null;
@@ -249530,6 +249534,7 @@ const jjn = Pt.create({
249530
249534
  addOptions() {
249531
249535
  return {
249532
249536
  model: "",
249537
+ endpoint: "",
249533
249538
  tone: "neutral",
249534
249539
  maxTokens: 8,
249535
249540
  temperature: 0.1,
@@ -249711,7 +249716,9 @@ const uoe = () => {
249711
249716
  ), q = Tse({
249712
249717
  extensions: [Lbe, ...B6e],
249713
249718
  content: "",
249714
- editable: !0
249719
+ editable: !0,
249720
+ immediatelyRender: !1,
249721
+ shouldRerenderOnTransaction: !1
249715
249722
  });
249716
249723
  Ue(() => {
249717
249724
  if (C) {
@@ -261312,6 +261319,7 @@ const ERn = (e) => e.context.awareness, ARn = (e) => !!(e.context.isReady && e.c
261312
261319
  ),
261313
261320
  jjn.configure({
261314
261321
  model: C,
261322
+ endpoint: C.endpoint,
261315
261323
  maxTokens: D,
261316
261324
  temperature: 0.1,
261317
261325
  tone: "neutral"
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-B9JRAWhX.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-CnwMYpbP.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.12",
5
+ "version": "3.0.14-patch-1",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {