@fileverse-dev/ddoc 2.2.8-grammarlySupport-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-Dk-FwFPC.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-DISzctOC.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, {
@@ -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: "true",
115505
+ spellcheck: "false",
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: !1
218840
+ strict: !0
218841
218841
  }
218842
218842
  }),
218843
218843
  xUt,
@@ -220159,10 +220159,7 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220159
220159
  de == null || de.commands.unsetCommentActive();
220160
220160
  }
220161
220161
  },
220162
- handleClick: ce,
220163
- attributes: {
220164
- spellCheck: "true"
220165
- }
220162
+ handleClick: ce
220166
220163
  },
220167
220164
  autofocus: m ? !1 : "start",
220168
220165
  immediatelyRender: !1,
@@ -222480,7 +222477,7 @@ const kz = ke.memo(Aoe), gYt = ({
222480
222477
  isPreviewMode: e || !_
222481
222478
  }
222482
222479
  ),
222483
- /* @__PURE__ */ M.jsx(
222480
+ /* @__PURE__ */ M.jsxs(
222484
222481
  "div",
222485
222482
  {
222486
222483
  className: xt(
@@ -222519,150 +222516,152 @@ const kz = ke.memo(Aoe), gYt = ({
222519
222516
  transformOrigin: W === "2" && !nt ? "left center" : "top center",
222520
222517
  transform: `scaleX(${W})`
222521
222518
  },
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,
222519
+ children: [
222520
+ /* @__PURE__ */ M.jsxs(
222521
+ "div",
222522
+ {
222523
+ ref: kn,
222524
+ className: xt(
222525
+ "w-full h-full pt-8 md:pt-0",
222526
+ { "custom-ios-padding": dt },
222527
+ { "color-bg-default": W === "1.4" || "1.5" }
222528
+ ),
222529
+ style: {
222530
+ transformOrigin: "top center",
222531
+ transform: `scaleY(${W})`
222532
+ },
222533
+ children: [
222534
+ /* @__PURE__ */ M.jsxs("div", { children: [
222535
+ gt && /* @__PURE__ */ M.jsx(
222536
+ DMt,
222561
222537
  {
222562
- className: `${e || it ? "w-full" : "w-[400px]"} h-[32px] rounded-sm mb-4`
222538
+ editor: gt,
222539
+ onError: b,
222540
+ zoomLevel: W,
222541
+ disableInlineComment: ue || !1,
222542
+ setIsCommentSectionOpen: C,
222543
+ inlineCommentData: T,
222544
+ setInlineCommentData: D,
222545
+ isPreviewMode: e,
222546
+ username: o,
222547
+ walletAddress: s,
222548
+ onInlineComment: Q,
222549
+ activeCommentId: pr,
222550
+ isCollabDocumentPublished: ee
222563
222551
  }
222564
222552
  ),
222565
- e && /* @__PURE__ */ M.jsx(mYt, {})
222553
+ gt && /* @__PURE__ */ M.jsx(RMt, { editor: gt, appendTo: kn })
222566
222554
  ] }),
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
- }
222601
- ),
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
- }
222555
+ !gt || Gn ? Mo(
222556
+ /* @__PURE__ */ M.jsxs("div", { className: `${it ? "mx-10 mt-10" : "mx-20"}`, children: [
222557
+ /* @__PURE__ */ M.jsx(
222558
+ ln,
222559
+ {
222560
+ className: `${e || it ? "w-full" : "w-[400px]"} h-[32px] rounded-sm mb-4`
222561
+ }
222562
+ ),
222563
+ e && /* @__PURE__ */ M.jsx(mYt, {})
222564
+ ] }),
222565
+ "content-transition"
222566
+ ) : Co(
222567
+ /* @__PURE__ */ M.jsxs($C, { isPreviewMode: e, children: [
222568
+ x && x.length > 0 && /* @__PURE__ */ M.jsxs(
222569
+ "div",
222570
+ {
222571
+ ref: wt,
222572
+ className: xt(
222573
+ "flex flex-wrap px-4 md:px-8 lg:px-[80px] items-center gap-1 mb-4 mt-4 lg:!mt-0",
222574
+ { "pt-12": e }
222622
222575
  ),
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" })
222576
+ children: [
222577
+ rn.map((Ne, oe) => /* @__PURE__ */ M.jsx(
222578
+ Gp,
222579
+ {
222580
+ style: { backgroundColor: Ne == null ? void 0 : Ne.color },
222581
+ onRemove: () => ct(Ne == null ? void 0 : Ne.name),
222582
+ isRemovable: !e,
222583
+ className: "!h-6 rounded",
222584
+ children: Ne == null ? void 0 : Ne.name
222585
+ },
222586
+ oe
222587
+ )),
222588
+ vn > 0 && !Rt && /* @__PURE__ */ M.jsxs(
222589
+ Kt,
222590
+ {
222591
+ variant: "ghost",
222592
+ className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",
222593
+ onClick: () => qt(!0),
222594
+ children: [
222595
+ "+",
222596
+ vn
222597
+ ]
222598
+ }
222599
+ ),
222600
+ Rt && /* @__PURE__ */ M.jsx(
222601
+ ug.div,
222602
+ {
222603
+ initial: { opacity: 0, height: 0 },
222604
+ animate: { opacity: 1, height: "auto" },
222605
+ exit: { opacity: 0, height: 0 },
222606
+ transition: { duration: 0.3 },
222607
+ className: "flex flex-wrap items-center gap-1",
222608
+ children: w == null ? void 0 : w.slice(4).map((Ne, oe) => /* @__PURE__ */ M.jsx(
222609
+ Gp,
222610
+ {
222611
+ style: { backgroundColor: Ne == null ? void 0 : Ne.color },
222612
+ onRemove: () => ct(Ne == null ? void 0 : Ne.name),
222613
+ isRemovable: !e,
222614
+ className: "!h-6 rounded",
222615
+ children: Ne == null ? void 0 : Ne.name
222616
+ },
222617
+ oe + 4
222618
+ ))
222619
+ }
222620
+ ),
222621
+ w && (w == null ? void 0 : w.length) < 6 ? /* @__PURE__ */ M.jsx(
222622
+ gV,
222623
+ {
222624
+ tags: x || [],
222625
+ selectedTags: w,
222626
+ onAddTag: Ue,
222627
+ isPreviewMode: e
222628
+ }
222629
+ ) : null
222630
+ ]
222631
+ }
222632
+ ),
222633
+ /* @__PURE__ */ M.jsx(
222634
+ Ww,
222635
+ {
222636
+ editor: gt,
222637
+ id: "editor",
222638
+ className: xt(
222639
+ "w-full h-auto py-4 color-bg-default",
222640
+ e && "preview-mode"
222641
+ )
222642
+ }
222643
+ )
222644
+ ] }),
222645
+ "editor-transition"
222646
+ )
222647
+ ]
222648
+ }
222649
+ ),
222650
+ p && !pt && /* @__PURE__ */ M.jsx(
222651
+ Kt,
222652
+ {
222653
+ ref: tt,
222654
+ onClick: () => {
222655
+ gt && (f == null || f(gt));
222656
+ },
222657
+ variant: "ghost",
222658
+ className: xt(
222659
+ "absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
222660
+ ),
222661
+ children: /* @__PURE__ */ M.jsx(He, { name: "MessageSquareText", size: "sm" })
222662
+ }
222663
+ )
222664
+ ]
222666
222665
  }
222667
222666
  ),
222668
222667
  !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-Dk-FwFPC.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,