@fileverse-dev/ddoc 2.2.8-tec-374-3 → 2.2.8-testInfra-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.
@@ -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-Dg4h8Rqa.mjs");
86508
+ const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-Dpwr6AiM.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) => {
@@ -124688,33 +124688,39 @@ const IBt = (e) => {
124688
124688
  {
124689
124689
  id: "meeting-notes",
124690
124690
  label: "Meeting notes",
124691
- icon: "NotepadText"
124691
+ icon: "NotepadText",
124692
+ dataTestId: "meeting-notes-template-btn"
124692
124693
  },
124693
124694
  {
124694
124695
  id: "resume",
124695
124696
  label: "Resume",
124696
- icon: "📄"
124697
+ icon: "📄",
124698
+ dataTestId: "resume-template-btn"
124697
124699
  },
124698
124700
  {
124699
124701
  id: "brainstorm",
124700
124702
  label: "Brainstorm",
124701
- icon: "Lightbulb"
124703
+ icon: "Lightbulb",
124704
+ dataTestId: "brainstorm-template-btn"
124702
124705
  },
124703
124706
  {
124704
124707
  id: "pretend-to-work",
124705
124708
  label: "Pretend to work",
124706
- icon: "🏄🏻‍♂️"
124709
+ icon: "🏄🏻‍♂️",
124710
+ dataTestId: "pretend-to-work-template-btn"
124707
124711
  }
124708
124712
  ], OBt = [
124709
124713
  {
124710
124714
  id: "todo-list",
124711
124715
  label: "To-do",
124712
- icon: "ListChecks"
124716
+ icon: "ListChecks",
124717
+ dataTestId: "todo-list-template-btn"
124713
124718
  },
124714
124719
  {
124715
124720
  id: "breathe",
124716
124721
  label: "Breathe!",
124717
- icon: "🧘‍♂️"
124722
+ icon: "🧘‍♂️",
124723
+ dataTestId: "breathe-template-btn"
124718
124724
  }
124719
124725
  ], Vte = (e, t) => {
124720
124726
  const n = IBt(e.id);
@@ -124724,7 +124730,8 @@ const IBt = (e) => {
124724
124730
  onClick: () => {
124725
124731
  n && t(n);
124726
124732
  },
124727
- content: n
124733
+ content: n,
124734
+ dataTestId: e.dataTestId
124728
124735
  };
124729
124736
  }, BBt = (e) => RBt.map((t) => Vte(t, e)), zBt = (e) => OBt.map((t) => Vte(t, e)), CO = (e, t) => typeof e == "string" && $P[e] ? /* @__PURE__ */ M.jsx(
124730
124737
  He,
@@ -124739,6 +124746,7 @@ const IBt = (e) => {
124739
124746
  onClick: i.onClick,
124740
124747
  variant: "ghost",
124741
124748
  className: "gap-2 color-bg-default-hover text-body-sm color-text-default rounded-lg hover:brightness-95 transition-all min-w-fit",
124749
+ "data-testid": i.dataTestId,
124742
124750
  children: [
124743
124751
  CO(i.icon),
124744
124752
  /* @__PURE__ */ M.jsx("span", { children: i.label })
@@ -218837,7 +218845,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
218837
218845
  delimiters: "dollar",
218838
218846
  katexOptions: {
218839
218847
  throwOnError: !1,
218840
- strict: !0
218848
+ strict: !1
218841
218849
  }
218842
218850
  }),
218843
218851
  xUt,
@@ -220159,7 +220167,10 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220159
220167
  de == null || de.commands.unsetCommentActive();
220160
220168
  }
220161
220169
  },
220162
- handleClick: ce
220170
+ handleClick: ce,
220171
+ attributes: {
220172
+ spellCheck: "true"
220173
+ }
220163
220174
  },
220164
220175
  autofocus: m ? !1 : "start",
220165
220176
  immediatelyRender: !1,
@@ -220713,6 +220724,7 @@ const ZKt = async (e) => {
220713
220724
  a ? "flex-row overflow-x-auto border-t min-h-[12rem] order-2 w-full pt-10 xl:pt-0" : "w-[251px] h-full overflow-y-auto overflow-x-hidden flex-col py-16 border-r",
220714
220725
  i && "min-h-[20rem]"
220715
220726
  ),
220727
+ "data-testid": "slides-preview-panel",
220716
220728
  children: [
220717
220729
  a && /* @__PURE__ */ M.jsxs("div", { className: "w-full text-helper-text-sm color-text-secondary absolute top-0 left-0 my-2.5 mx-5 z-20", children: [
220718
220730
  "Slides: ",
@@ -221160,7 +221172,8 @@ const aYt = ({
221160
221172
  }),
221161
221173
  onTouchStart: n,
221162
221174
  onTouchMove: r,
221163
- onTouchEnd: o
221175
+ onTouchEnd: o,
221176
+ "data-testid": "slide-content"
221164
221177
  }
221165
221178
  );
221166
221179
  }, sYt = ({
@@ -221277,6 +221290,7 @@ const aYt = ({
221277
221290
  x ? "flex-col" : "flex-col xl:flex-row",
221278
221291
  "items-center justify-center w-screen h-screen"
221279
221292
  ),
221293
+ "data-testid": "slides-canvas",
221280
221294
  children: [
221281
221295
  !n && /* @__PURE__ */ M.jsx(
221282
221296
  KKt,
@@ -221296,82 +221310,91 @@ const aYt = ({
221296
221310
  }
221297
221311
  ),
221298
221312
  children: [
221299
- !n && /* @__PURE__ */ M.jsxs("div", { className: "absolute top-0 px-4 py-2 border-b color-border-default right-0 flex gap-2 color-bg-default w-full justify-between z-50", children: [
221300
- s ? /* @__PURE__ */ M.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ M.jsx("p", { className: "max-w-[300px] truncate md:max-w-full w-full", children: l }) }) : /* @__PURE__ */ M.jsxs("div", { className: "flex items-center gap-2", children: [
221301
- /* @__PURE__ */ M.jsx(
221302
- bn,
221303
- {
221304
- variant: "ghost",
221305
- onClick: t,
221306
- icon: "ChevronLeft",
221307
- size: "md"
221308
- }
221309
- ),
221310
- /* @__PURE__ */ M.jsx(gc, { className: "hidden xl:block text-body-sm-bold color-text-default", children: "Back to Editor" })
221311
- ] }),
221312
- /* @__PURE__ */ M.jsxs("div", { className: "flex justify-center items-center gap-2", children: [
221313
- f == null ? void 0 : f(),
221314
- !s && /* @__PURE__ */ M.jsx(pn, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
221315
- bn,
221316
- {
221317
- variant: "ghost",
221318
- onClick: () => _K(c),
221319
- icon: "FilePdf",
221320
- size: "md"
221321
- }
221322
- ) }),
221323
- /* @__PURE__ */ M.jsx(pn, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
221324
- bn,
221325
- {
221326
- variant: "ghost",
221327
- icon: "MessageSquareText",
221328
- size: "md",
221329
- onClick: () => i == null ? void 0 : i((Q) => !Q)
221330
- }
221331
- ) }),
221332
- !s && /* @__PURE__ */ M.jsxs(
221333
- pn,
221334
- {
221335
- text: a ? "Copy to Share" : "Link is preparing...",
221336
- sideOffset: 10,
221337
- children: [
221338
- /* @__PURE__ */ M.jsx(
221339
- bn,
221340
- {
221341
- variant: "ghost",
221342
- icon: "Link",
221343
- disabled: !a,
221344
- className: "disabled:!bg-transparent disabled:pointer-events-none",
221345
- size: "md",
221346
- onClick: Z
221347
- }
221348
- ),
221349
- h && /* @__PURE__ */ M.jsx(
221350
- R9,
221351
- {
221352
- align: "center",
221353
- sideOffset: 15,
221354
- controlled: !0,
221355
- isOpen: h,
221356
- onClose: () => g == null ? void 0 : g(!1),
221357
- content: /* @__PURE__ */ M.jsx("div", { className: "flex items-start gap-3 bg-black color-text-inverse rounded shadow-elevation-3 p-2 text-helper-text-sm", children: "Link copied" })
221358
- },
221359
- "link-copied"
221360
- )
221361
- ]
221362
- }
221363
- ),
221364
- /* @__PURE__ */ M.jsx(pn, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
221365
- bn,
221366
- {
221367
- variant: "ghost",
221368
- onClick: q,
221369
- icon: n ? "Minimize2" : "Play",
221370
- size: "md"
221371
- }
221372
- ) })
221373
- ] })
221374
- ] }),
221313
+ !n && /* @__PURE__ */ M.jsxs(
221314
+ "div",
221315
+ {
221316
+ "data-testid": "slides-navbar",
221317
+ className: "absolute top-0 px-4 py-2 border-b color-border-default right-0 flex gap-2 color-bg-default w-full justify-between z-50",
221318
+ children: [
221319
+ s ? /* @__PURE__ */ M.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ M.jsx("p", { className: "max-w-[300px] truncate md:max-w-full w-full", children: l }) }) : /* @__PURE__ */ M.jsxs("div", { className: "flex items-center gap-2", children: [
221320
+ /* @__PURE__ */ M.jsx(
221321
+ bn,
221322
+ {
221323
+ variant: "ghost",
221324
+ onClick: t,
221325
+ icon: "ChevronLeft",
221326
+ size: "md"
221327
+ }
221328
+ ),
221329
+ /* @__PURE__ */ M.jsx(gc, { className: "hidden xl:block text-body-sm-bold color-text-default", children: "Back to Editor" })
221330
+ ] }),
221331
+ /* @__PURE__ */ M.jsxs("div", { className: "flex justify-center items-center gap-2", children: [
221332
+ f == null ? void 0 : f(),
221333
+ !s && /* @__PURE__ */ M.jsx(pn, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
221334
+ bn,
221335
+ {
221336
+ variant: "ghost",
221337
+ onClick: () => _K(c),
221338
+ icon: "FilePdf",
221339
+ size: "md"
221340
+ }
221341
+ ) }),
221342
+ /* @__PURE__ */ M.jsx(pn, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
221343
+ bn,
221344
+ {
221345
+ variant: "ghost",
221346
+ icon: "MessageSquareText",
221347
+ size: "md",
221348
+ onClick: () => i == null ? void 0 : i((Q) => !Q)
221349
+ }
221350
+ ) }),
221351
+ !s && /* @__PURE__ */ M.jsxs(
221352
+ pn,
221353
+ {
221354
+ text: a ? "Copy to Share" : "Link is preparing...",
221355
+ sideOffset: 10,
221356
+ children: [
221357
+ /* @__PURE__ */ M.jsx(
221358
+ bn,
221359
+ {
221360
+ variant: "ghost",
221361
+ icon: "Link",
221362
+ disabled: !a,
221363
+ className: "disabled:!bg-transparent disabled:pointer-events-none",
221364
+ size: "md",
221365
+ onClick: Z,
221366
+ "data-testid": "slides-copy-link-btn"
221367
+ }
221368
+ ),
221369
+ h && /* @__PURE__ */ M.jsx(
221370
+ R9,
221371
+ {
221372
+ align: "center",
221373
+ sideOffset: 15,
221374
+ controlled: !0,
221375
+ isOpen: h,
221376
+ onClose: () => g == null ? void 0 : g(!1),
221377
+ content: /* @__PURE__ */ M.jsx("div", { className: "flex items-start gap-3 bg-black color-text-inverse rounded shadow-elevation-3 p-2 text-helper-text-sm", children: "Link copied" })
221378
+ },
221379
+ "link-copied"
221380
+ )
221381
+ ]
221382
+ }
221383
+ ),
221384
+ /* @__PURE__ */ M.jsx(pn, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
221385
+ bn,
221386
+ {
221387
+ variant: "ghost",
221388
+ onClick: q,
221389
+ icon: n ? "Minimize2" : "Play",
221390
+ size: "md",
221391
+ "data-testid": "slides-fullscreen-btn"
221392
+ }
221393
+ ) })
221394
+ ] })
221395
+ ]
221396
+ }
221397
+ ),
221375
221398
  /* @__PURE__ */ M.jsx(
221376
221399
  "div",
221377
221400
  {
@@ -222023,6 +222046,7 @@ const aYt = ({
222023
222046
  paddingLeft: `${(e.level - 1) * 8}px`
222024
222047
  },
222025
222048
  className: o,
222049
+ "data-testid": "toc-item",
222026
222050
  children: /* @__PURE__ */ M.jsx(
222027
222051
  "a",
222028
222052
  {
@@ -222131,16 +222155,23 @@ const Aoe = f2(({ items: e = [], editor: t, setItems: n }) => {
222131
222155
  },
222132
222156
  [r, h, n]
222133
222157
  );
222134
- return e.length === 0 ? /* @__PURE__ */ M.jsx(Eoe, {}) : /* @__PURE__ */ M.jsx("div", { className: "flex flex-col max-[1280px]:gap-2 gap-4 overflow-auto no-scrollbar max-[1280px]:max-h-[168px] max-h-[calc(80vh-40px)] mb-3", children: d.map((m, b) => /* @__PURE__ */ M.jsx(
222135
- Coe,
222158
+ return e.length === 0 ? /* @__PURE__ */ M.jsx(Eoe, {}) : /* @__PURE__ */ M.jsx(
222159
+ "div",
222136
222160
  {
222137
- onItemClick: h,
222138
- onItemRemove: g,
222139
- item: m,
222140
- index: b + 1
222141
- },
222142
- m.id
222143
- )) });
222161
+ className: "flex flex-col max-[1280px]:gap-2 gap-4 overflow-auto no-scrollbar max-[1280px]:max-h-[168px] max-h-[calc(80vh-40px)] mb-3",
222162
+ "data-testid": "toc-container",
222163
+ children: d.map((m, b) => /* @__PURE__ */ M.jsx(
222164
+ Coe,
222165
+ {
222166
+ onItemClick: h,
222167
+ onItemRemove: g,
222168
+ item: m,
222169
+ index: b + 1
222170
+ },
222171
+ m.id
222172
+ ))
222173
+ }
222174
+ );
222144
222175
  });
222145
222176
  Aoe.displayName = "ToC";
222146
222177
  const kz = ke.memo(Aoe), gYt = ({
@@ -222190,7 +222221,8 @@ const kz = ke.memo(Aoe), gYt = ({
222190
222221
  variant: "ghost",
222191
222222
  size: "lg",
222192
222223
  onClick: () => i == null ? void 0 : i((d) => !d),
222193
- className: "color-text-default min-w-9 h-9"
222224
+ className: "color-text-default min-w-9 h-9",
222225
+ "data-testid": "desktop-toc-btn"
222194
222226
  }
222195
222227
  )
222196
222228
  }
@@ -222477,7 +222509,7 @@ const kz = ke.memo(Aoe), gYt = ({
222477
222509
  isPreviewMode: e || !_
222478
222510
  }
222479
222511
  ),
222480
- /* @__PURE__ */ M.jsxs(
222512
+ /* @__PURE__ */ M.jsx(
222481
222513
  "div",
222482
222514
  {
222483
222515
  className: xt(
@@ -222516,152 +222548,150 @@ const kz = ke.memo(Aoe), gYt = ({
222516
222548
  transformOrigin: W === "2" && !nt ? "left center" : "top center",
222517
222549
  transform: `scaleX(${W})`
222518
222550
  },
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,
222551
+ children: /* @__PURE__ */ M.jsxs(
222552
+ "div",
222553
+ {
222554
+ ref: kn,
222555
+ className: xt(
222556
+ "w-full h-full pt-8 md:pt-0",
222557
+ { "custom-ios-padding": dt },
222558
+ { "color-bg-default": W === "1.4" || "1.5" }
222559
+ ),
222560
+ style: {
222561
+ transformOrigin: "top center",
222562
+ transform: `scaleY(${W})`
222563
+ },
222564
+ children: [
222565
+ /* @__PURE__ */ M.jsxs("div", { children: [
222566
+ gt && /* @__PURE__ */ M.jsx(
222567
+ DMt,
222568
+ {
222569
+ editor: gt,
222570
+ onError: b,
222571
+ zoomLevel: W,
222572
+ disableInlineComment: ue || !1,
222573
+ setIsCommentSectionOpen: C,
222574
+ inlineCommentData: T,
222575
+ setInlineCommentData: D,
222576
+ isPreviewMode: e,
222577
+ username: o,
222578
+ walletAddress: s,
222579
+ onInlineComment: Q,
222580
+ activeCommentId: pr,
222581
+ isCollabDocumentPublished: ee
222582
+ }
222583
+ ),
222584
+ gt && /* @__PURE__ */ M.jsx(RMt, { editor: gt, appendTo: kn })
222585
+ ] }),
222586
+ !gt || Gn ? Mo(
222587
+ /* @__PURE__ */ M.jsxs("div", { className: `${it ? "mx-10 mt-10" : "mx-20"}`, children: [
222588
+ /* @__PURE__ */ M.jsx(
222589
+ ln,
222537
222590
  {
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
222591
+ className: `${e || it ? "w-full" : "w-[400px]"} h-[32px] rounded-sm mb-4`
222551
222592
  }
222552
222593
  ),
222553
- gt && /* @__PURE__ */ M.jsx(RMt, { editor: gt, appendTo: kn })
222594
+ e && /* @__PURE__ */ M.jsx(mYt, {})
222554
222595
  ] }),
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 }
222596
+ "content-transition"
222597
+ ) : Co(
222598
+ /* @__PURE__ */ M.jsxs($C, { isPreviewMode: e, children: [
222599
+ x && x.length > 0 && /* @__PURE__ */ M.jsxs(
222600
+ "div",
222601
+ {
222602
+ ref: wt,
222603
+ className: xt(
222604
+ "flex flex-wrap px-4 md:px-8 lg:px-[80px] items-center gap-1 mb-4 mt-4 lg:!mt-0",
222605
+ { "pt-12": e }
222606
+ ),
222607
+ children: [
222608
+ rn.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
222618
+ )),
222619
+ vn > 0 && !Rt && /* @__PURE__ */ M.jsxs(
222620
+ Kt,
222621
+ {
222622
+ variant: "ghost",
222623
+ className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",
222624
+ onClick: () => qt(!0),
222625
+ children: [
222626
+ "+",
222627
+ vn
222628
+ ]
222629
+ }
222575
222630
  ),
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
- ]
222631
+ Rt && /* @__PURE__ */ M.jsx(
222632
+ ug.div,
222633
+ {
222634
+ initial: { opacity: 0, height: 0 },
222635
+ animate: { opacity: 1, height: "auto" },
222636
+ exit: { opacity: 0, height: 0 },
222637
+ transition: { duration: 0.3 },
222638
+ className: "flex flex-wrap items-center gap-1",
222639
+ children: w == null ? void 0 : w.slice(4).map((Ne, oe) => /* @__PURE__ */ M.jsx(
222640
+ Gp,
222641
+ {
222642
+ style: { backgroundColor: Ne == null ? void 0 : Ne.color },
222643
+ onRemove: () => ct(Ne == null ? void 0 : Ne.name),
222644
+ isRemovable: !e,
222645
+ className: "!h-6 rounded",
222646
+ children: Ne == null ? void 0 : Ne.name
222647
+ },
222648
+ oe + 4
222649
+ ))
222650
+ }
222651
+ ),
222652
+ w && (w == null ? void 0 : w.length) < 6 ? /* @__PURE__ */ M.jsx(
222653
+ gV,
222654
+ {
222655
+ tags: x || [],
222656
+ selectedTags: w,
222657
+ onAddTag: Ue,
222658
+ isPreviewMode: e
222659
+ }
222660
+ ) : null
222661
+ ]
222662
+ }
222663
+ ),
222664
+ /* @__PURE__ */ M.jsx("div", { className: "grammarly-wrapper", children: /* @__PURE__ */ M.jsx(
222665
+ Ww,
222666
+ {
222667
+ editor: gt,
222668
+ id: "editor",
222669
+ className: xt(
222670
+ "w-full h-auto py-4 color-bg-default",
222671
+ e && "preview-mode"
222672
+ )
222673
+ }
222674
+ ) })
222675
+ ] }),
222676
+ "editor-transition"
222677
+ )
222678
+ ]
222679
+ }
222680
+ )
222681
+ }
222682
+ ),
222683
+ p && !pt && /* @__PURE__ */ M.jsx(
222684
+ Kt,
222685
+ {
222686
+ ref: tt,
222687
+ onClick: () => {
222688
+ gt && (f == null || f(gt));
222689
+ },
222690
+ variant: "ghost",
222691
+ className: xt(
222692
+ "absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
222693
+ ),
222694
+ children: /* @__PURE__ */ M.jsx(He, { name: "MessageSquareText", size: "sm" })
222665
222695
  }
222666
222696
  ),
222667
222697
  !e && !m && /* @__PURE__ */ M.jsx(