@fileverse-dev/ddoc 2.2.8-patch-2 → 2.2.8-patch-4

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-Ctro2c_L.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-Dk-FwFPC.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-CzC53yjW.mjs");
86508
+ const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-DISzctOC.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, {
@@ -115502,7 +115502,7 @@ class xLt extends TE {
115502
115502
  const vLt = {
115503
115503
  attributes: {
115504
115504
  class: "prose-lg prose-headings:font-display prose prose-p:my-2 prose-h1:my-2 prose-h2:my-2 prose-h3:my-2 prose-ul:my-2 prose-ol:my-2 max-w-none focus:outline-none w-full",
115505
- spellcheck: "false",
115505
+ spellcheck: "true",
115506
115506
  suppressContentEditableWarning: "true"
115507
115507
  }
115508
115508
  }, kLt = /[\uD800-\uDBFF]/, wLt = /[\uDC00-\uDFFF]/, FLt = (e, t) => {
@@ -218837,7 +218837,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
218837
218837
  delimiters: "dollar",
218838
218838
  katexOptions: {
218839
218839
  throwOnError: !1,
218840
- strict: !0
218840
+ strict: !1
218841
218841
  }
218842
218842
  }),
218843
218843
  xUt,
@@ -222480,7 +222480,7 @@ const kz = ke.memo(Aoe), gYt = ({
222480
222480
  isPreviewMode: e || !_
222481
222481
  }
222482
222482
  ),
222483
- /* @__PURE__ */ M.jsxs(
222483
+ /* @__PURE__ */ M.jsx(
222484
222484
  "div",
222485
222485
  {
222486
222486
  className: xt(
@@ -222519,152 +222519,150 @@ const kz = ke.memo(Aoe), gYt = ({
222519
222519
  transformOrigin: W === "2" && !nt ? "left center" : "top center",
222520
222520
  transform: `scaleX(${W})`
222521
222521
  },
222522
- children: [
222523
- /* @__PURE__ */ M.jsxs(
222524
- "div",
222525
- {
222526
- ref: kn,
222527
- className: xt(
222528
- "w-full h-full pt-8 md:pt-0",
222529
- { "custom-ios-padding": dt },
222530
- { "color-bg-default": W === "1.4" || "1.5" }
222531
- ),
222532
- style: {
222533
- transformOrigin: "top center",
222534
- transform: `scaleY(${W})`
222535
- },
222536
- children: [
222537
- /* @__PURE__ */ M.jsxs("div", { children: [
222538
- gt && /* @__PURE__ */ M.jsx(
222539
- DMt,
222522
+ children: /* @__PURE__ */ M.jsxs(
222523
+ "div",
222524
+ {
222525
+ ref: kn,
222526
+ className: xt(
222527
+ "w-full h-full pt-8 md:pt-0",
222528
+ { "custom-ios-padding": dt },
222529
+ { "color-bg-default": W === "1.4" || "1.5" }
222530
+ ),
222531
+ style: {
222532
+ transformOrigin: "top center",
222533
+ transform: `scaleY(${W})`
222534
+ },
222535
+ children: [
222536
+ /* @__PURE__ */ M.jsxs("div", { children: [
222537
+ gt && /* @__PURE__ */ M.jsx(
222538
+ DMt,
222539
+ {
222540
+ editor: gt,
222541
+ onError: b,
222542
+ zoomLevel: W,
222543
+ disableInlineComment: ue || !1,
222544
+ setIsCommentSectionOpen: C,
222545
+ inlineCommentData: T,
222546
+ setInlineCommentData: D,
222547
+ isPreviewMode: e,
222548
+ username: o,
222549
+ walletAddress: s,
222550
+ onInlineComment: Q,
222551
+ activeCommentId: pr,
222552
+ isCollabDocumentPublished: ee
222553
+ }
222554
+ ),
222555
+ gt && /* @__PURE__ */ M.jsx(RMt, { editor: gt, appendTo: kn })
222556
+ ] }),
222557
+ !gt || Gn ? Mo(
222558
+ /* @__PURE__ */ M.jsxs("div", { className: `${it ? "mx-10 mt-10" : "mx-20"}`, children: [
222559
+ /* @__PURE__ */ M.jsx(
222560
+ ln,
222540
222561
  {
222541
- editor: gt,
222542
- onError: b,
222543
- zoomLevel: W,
222544
- disableInlineComment: ue || !1,
222545
- setIsCommentSectionOpen: C,
222546
- inlineCommentData: T,
222547
- setInlineCommentData: D,
222548
- isPreviewMode: e,
222549
- username: o,
222550
- walletAddress: s,
222551
- onInlineComment: Q,
222552
- activeCommentId: pr,
222553
- isCollabDocumentPublished: ee
222562
+ className: `${e || it ? "w-full" : "w-[400px]"} h-[32px] rounded-sm mb-4`
222554
222563
  }
222555
222564
  ),
222556
- gt && /* @__PURE__ */ M.jsx(RMt, { editor: gt, appendTo: kn })
222565
+ e && /* @__PURE__ */ M.jsx(mYt, {})
222557
222566
  ] }),
222558
- !gt || Gn ? Mo(
222559
- /* @__PURE__ */ M.jsxs("div", { className: `${it ? "mx-10 mt-10" : "mx-20"}`, children: [
222560
- /* @__PURE__ */ M.jsx(
222561
- ln,
222562
- {
222563
- className: `${e || it ? "w-full" : "w-[400px]"} h-[32px] rounded-sm mb-4`
222564
- }
222565
- ),
222566
- e && /* @__PURE__ */ M.jsx(mYt, {})
222567
- ] }),
222568
- "content-transition"
222569
- ) : Co(
222570
- /* @__PURE__ */ M.jsxs($C, { isPreviewMode: e, children: [
222571
- x && x.length > 0 && /* @__PURE__ */ M.jsxs(
222572
- "div",
222573
- {
222574
- ref: wt,
222575
- className: xt(
222576
- "flex flex-wrap px-4 md:px-8 lg:px-[80px] items-center gap-1 mb-4 mt-4 lg:!mt-0",
222577
- { "pt-12": e }
222567
+ "content-transition"
222568
+ ) : Co(
222569
+ /* @__PURE__ */ M.jsxs($C, { isPreviewMode: e, children: [
222570
+ x && x.length > 0 && /* @__PURE__ */ M.jsxs(
222571
+ "div",
222572
+ {
222573
+ ref: wt,
222574
+ className: xt(
222575
+ "flex flex-wrap px-4 md:px-8 lg:px-[80px] items-center gap-1 mb-4 mt-4 lg:!mt-0",
222576
+ { "pt-12": e }
222577
+ ),
222578
+ children: [
222579
+ rn.map((Ne, oe) => /* @__PURE__ */ M.jsx(
222580
+ Gp,
222581
+ {
222582
+ style: { backgroundColor: Ne == null ? void 0 : Ne.color },
222583
+ onRemove: () => ct(Ne == null ? void 0 : Ne.name),
222584
+ isRemovable: !e,
222585
+ className: "!h-6 rounded",
222586
+ children: Ne == null ? void 0 : Ne.name
222587
+ },
222588
+ oe
222589
+ )),
222590
+ vn > 0 && !Rt && /* @__PURE__ */ M.jsxs(
222591
+ Kt,
222592
+ {
222593
+ variant: "ghost",
222594
+ className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",
222595
+ onClick: () => qt(!0),
222596
+ children: [
222597
+ "+",
222598
+ vn
222599
+ ]
222600
+ }
222578
222601
  ),
222579
- children: [
222580
- rn.map((Ne, oe) => /* @__PURE__ */ M.jsx(
222581
- Gp,
222582
- {
222583
- style: { backgroundColor: Ne == null ? void 0 : Ne.color },
222584
- onRemove: () => ct(Ne == null ? void 0 : Ne.name),
222585
- isRemovable: !e,
222586
- className: "!h-6 rounded",
222587
- children: Ne == null ? void 0 : Ne.name
222588
- },
222589
- oe
222590
- )),
222591
- vn > 0 && !Rt && /* @__PURE__ */ M.jsxs(
222592
- Kt,
222593
- {
222594
- variant: "ghost",
222595
- className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",
222596
- onClick: () => qt(!0),
222597
- children: [
222598
- "+",
222599
- vn
222600
- ]
222601
- }
222602
- ),
222603
- Rt && /* @__PURE__ */ M.jsx(
222604
- ug.div,
222605
- {
222606
- initial: { opacity: 0, height: 0 },
222607
- animate: { opacity: 1, height: "auto" },
222608
- exit: { opacity: 0, height: 0 },
222609
- transition: { duration: 0.3 },
222610
- className: "flex flex-wrap items-center gap-1",
222611
- children: w == null ? void 0 : w.slice(4).map((Ne, oe) => /* @__PURE__ */ M.jsx(
222612
- Gp,
222613
- {
222614
- style: { backgroundColor: Ne == null ? void 0 : Ne.color },
222615
- onRemove: () => ct(Ne == null ? void 0 : Ne.name),
222616
- isRemovable: !e,
222617
- className: "!h-6 rounded",
222618
- children: Ne == null ? void 0 : Ne.name
222619
- },
222620
- oe + 4
222621
- ))
222622
- }
222623
- ),
222624
- w && (w == null ? void 0 : w.length) < 6 ? /* @__PURE__ */ M.jsx(
222625
- gV,
222626
- {
222627
- tags: x || [],
222628
- selectedTags: w,
222629
- onAddTag: Ue,
222630
- isPreviewMode: e
222631
- }
222632
- ) : null
222633
- ]
222634
- }
222635
- ),
222636
- /* @__PURE__ */ M.jsx(
222637
- Ww,
222638
- {
222639
- editor: gt,
222640
- id: "editor",
222641
- className: xt(
222642
- "w-full h-auto py-4 color-bg-default",
222643
- e && "preview-mode"
222644
- )
222645
- }
222646
- )
222647
- ] }),
222648
- "editor-transition"
222649
- )
222650
- ]
222651
- }
222652
- ),
222653
- p && !pt && /* @__PURE__ */ M.jsx(
222654
- Kt,
222655
- {
222656
- ref: tt,
222657
- onClick: () => {
222658
- gt && (f == null || f(gt));
222659
- },
222660
- variant: "ghost",
222661
- className: xt(
222662
- "absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
222663
- ),
222664
- children: /* @__PURE__ */ M.jsx(He, { name: "MessageSquareText", size: "sm" })
222665
- }
222666
- )
222667
- ]
222602
+ Rt && /* @__PURE__ */ M.jsx(
222603
+ ug.div,
222604
+ {
222605
+ initial: { opacity: 0, height: 0 },
222606
+ animate: { opacity: 1, height: "auto" },
222607
+ exit: { opacity: 0, height: 0 },
222608
+ transition: { duration: 0.3 },
222609
+ className: "flex flex-wrap items-center gap-1",
222610
+ children: w == null ? void 0 : w.slice(4).map((Ne, oe) => /* @__PURE__ */ M.jsx(
222611
+ Gp,
222612
+ {
222613
+ style: { backgroundColor: Ne == null ? void 0 : Ne.color },
222614
+ onRemove: () => ct(Ne == null ? void 0 : Ne.name),
222615
+ isRemovable: !e,
222616
+ className: "!h-6 rounded",
222617
+ children: Ne == null ? void 0 : Ne.name
222618
+ },
222619
+ oe + 4
222620
+ ))
222621
+ }
222622
+ ),
222623
+ w && (w == null ? void 0 : w.length) < 6 ? /* @__PURE__ */ M.jsx(
222624
+ gV,
222625
+ {
222626
+ tags: x || [],
222627
+ selectedTags: w,
222628
+ onAddTag: Ue,
222629
+ isPreviewMode: e
222630
+ }
222631
+ ) : null
222632
+ ]
222633
+ }
222634
+ ),
222635
+ /* @__PURE__ */ M.jsx("div", { className: "grammarly-wrapper", children: /* @__PURE__ */ M.jsx(
222636
+ Ww,
222637
+ {
222638
+ editor: gt,
222639
+ id: "editor",
222640
+ className: xt(
222641
+ "w-full h-auto py-4 color-bg-default",
222642
+ e && "preview-mode"
222643
+ )
222644
+ }
222645
+ ) })
222646
+ ] }),
222647
+ "editor-transition"
222648
+ )
222649
+ ]
222650
+ }
222651
+ )
222652
+ }
222653
+ ),
222654
+ p && !pt && /* @__PURE__ */ M.jsx(
222655
+ Kt,
222656
+ {
222657
+ ref: tt,
222658
+ onClick: () => {
222659
+ gt && (f == null || f(gt));
222660
+ },
222661
+ variant: "ghost",
222662
+ className: xt(
222663
+ "absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
222664
+ ),
222665
+ children: /* @__PURE__ */ M.jsx(He, { name: "MessageSquareText", size: "sm" })
222668
222666
  }
222669
222667
  ),
222670
222668
  !e && !m && /* @__PURE__ */ M.jsx(
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-Ctro2c_L.mjs";
1
+ import { D as d, P as r, h as s, u as t } from "./index-Dk-FwFPC.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as PreviewDdocEditor,