@fileverse-dev/ddoc 2.2.8-tec-374-2 → 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-415rvaRm.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 })
@@ -127959,9 +127967,21 @@ const M_t = Xt.create({
127959
127967
  new tn({
127960
127968
  key: e,
127961
127969
  appendTransaction: (n, r, o) => {
127962
- const { doc: i, tr: a, schema: s } = o, l = e.getState(o), u = i.content.size, c = s.nodes[this.options.node];
127963
- if (l)
127964
- return a.insert(u, c.create());
127970
+ const { doc: i, tr: a, schema: s } = o;
127971
+ if (!e.getState(o)) return;
127972
+ const u = i.content.size, c = s.nodes[this.options.node], d = {
127973
+ class: "trailing-node"
127974
+ };
127975
+ let f = s.text(" ");
127976
+ const p = this.editor.getAttributes("textStyle");
127977
+ if (s.marks.textStyle) {
127978
+ const g = s.marks.textStyle.create({
127979
+ ...p
127980
+ });
127981
+ f = s.text(" ", [g]);
127982
+ }
127983
+ const h = c.create(d, f);
127984
+ return a.insert(u, h);
127965
127985
  },
127966
127986
  state: {
127967
127987
  init: (n, r) => {
@@ -218825,7 +218845,7 @@ const rKt = 200, oKt = new sn("emoji"), iKt = Bt.create({
218825
218845
  delimiters: "dollar",
218826
218846
  katexOptions: {
218827
218847
  throwOnError: !1,
218828
- strict: !0
218848
+ strict: !1
218829
218849
  }
218830
218850
  }),
218831
218851
  xUt,
@@ -220147,7 +220167,10 @@ const f8 = ow.getInstance(), qKt = (e) => ({
220147
220167
  de == null || de.commands.unsetCommentActive();
220148
220168
  }
220149
220169
  },
220150
- handleClick: ce
220170
+ handleClick: ce,
220171
+ attributes: {
220172
+ spellCheck: "true"
220173
+ }
220151
220174
  },
220152
220175
  autofocus: m ? !1 : "start",
220153
220176
  immediatelyRender: !1,
@@ -220701,6 +220724,7 @@ const ZKt = async (e) => {
220701
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",
220702
220725
  i && "min-h-[20rem]"
220703
220726
  ),
220727
+ "data-testid": "slides-preview-panel",
220704
220728
  children: [
220705
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: [
220706
220730
  "Slides: ",
@@ -221148,7 +221172,8 @@ const aYt = ({
221148
221172
  }),
221149
221173
  onTouchStart: n,
221150
221174
  onTouchMove: r,
221151
- onTouchEnd: o
221175
+ onTouchEnd: o,
221176
+ "data-testid": "slide-content"
221152
221177
  }
221153
221178
  );
221154
221179
  }, sYt = ({
@@ -221265,6 +221290,7 @@ const aYt = ({
221265
221290
  x ? "flex-col" : "flex-col xl:flex-row",
221266
221291
  "items-center justify-center w-screen h-screen"
221267
221292
  ),
221293
+ "data-testid": "slides-canvas",
221268
221294
  children: [
221269
221295
  !n && /* @__PURE__ */ M.jsx(
221270
221296
  KKt,
@@ -221284,82 +221310,91 @@ const aYt = ({
221284
221310
  }
221285
221311
  ),
221286
221312
  children: [
221287
- !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: [
221288
- 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: [
221289
- /* @__PURE__ */ M.jsx(
221290
- bn,
221291
- {
221292
- variant: "ghost",
221293
- onClick: t,
221294
- icon: "ChevronLeft",
221295
- size: "md"
221296
- }
221297
- ),
221298
- /* @__PURE__ */ M.jsx(gc, { className: "hidden xl:block text-body-sm-bold color-text-default", children: "Back to Editor" })
221299
- ] }),
221300
- /* @__PURE__ */ M.jsxs("div", { className: "flex justify-center items-center gap-2", children: [
221301
- f == null ? void 0 : f(),
221302
- !s && /* @__PURE__ */ M.jsx(pn, { text: "Download", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
221303
- bn,
221304
- {
221305
- variant: "ghost",
221306
- onClick: () => _K(c),
221307
- icon: "FilePdf",
221308
- size: "md"
221309
- }
221310
- ) }),
221311
- /* @__PURE__ */ M.jsx(pn, { text: "Comments", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
221312
- bn,
221313
- {
221314
- variant: "ghost",
221315
- icon: "MessageSquareText",
221316
- size: "md",
221317
- onClick: () => i == null ? void 0 : i((Q) => !Q)
221318
- }
221319
- ) }),
221320
- !s && /* @__PURE__ */ M.jsxs(
221321
- pn,
221322
- {
221323
- text: a ? "Copy to Share" : "Link is preparing...",
221324
- sideOffset: 10,
221325
- children: [
221326
- /* @__PURE__ */ M.jsx(
221327
- bn,
221328
- {
221329
- variant: "ghost",
221330
- icon: "Link",
221331
- disabled: !a,
221332
- className: "disabled:!bg-transparent disabled:pointer-events-none",
221333
- size: "md",
221334
- onClick: Z
221335
- }
221336
- ),
221337
- h && /* @__PURE__ */ M.jsx(
221338
- R9,
221339
- {
221340
- align: "center",
221341
- sideOffset: 15,
221342
- controlled: !0,
221343
- isOpen: h,
221344
- onClose: () => g == null ? void 0 : g(!1),
221345
- 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" })
221346
- },
221347
- "link-copied"
221348
- )
221349
- ]
221350
- }
221351
- ),
221352
- /* @__PURE__ */ M.jsx(pn, { text: "Press F to toggle fullscreen", sideOffset: 10, children: /* @__PURE__ */ M.jsx(
221353
- bn,
221354
- {
221355
- variant: "ghost",
221356
- onClick: q,
221357
- icon: n ? "Minimize2" : "Play",
221358
- size: "md"
221359
- }
221360
- ) })
221361
- ] })
221362
- ] }),
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
+ ),
221363
221398
  /* @__PURE__ */ M.jsx(
221364
221399
  "div",
221365
221400
  {
@@ -222011,6 +222046,7 @@ const aYt = ({
222011
222046
  paddingLeft: `${(e.level - 1) * 8}px`
222012
222047
  },
222013
222048
  className: o,
222049
+ "data-testid": "toc-item",
222014
222050
  children: /* @__PURE__ */ M.jsx(
222015
222051
  "a",
222016
222052
  {
@@ -222119,16 +222155,23 @@ const Aoe = f2(({ items: e = [], editor: t, setItems: n }) => {
222119
222155
  },
222120
222156
  [r, h, n]
222121
222157
  );
222122
- 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(
222123
- Coe,
222158
+ return e.length === 0 ? /* @__PURE__ */ M.jsx(Eoe, {}) : /* @__PURE__ */ M.jsx(
222159
+ "div",
222124
222160
  {
222125
- onItemClick: h,
222126
- onItemRemove: g,
222127
- item: m,
222128
- index: b + 1
222129
- },
222130
- m.id
222131
- )) });
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
+ );
222132
222175
  });
222133
222176
  Aoe.displayName = "ToC";
222134
222177
  const kz = ke.memo(Aoe), gYt = ({
@@ -222178,7 +222221,8 @@ const kz = ke.memo(Aoe), gYt = ({
222178
222221
  variant: "ghost",
222179
222222
  size: "lg",
222180
222223
  onClick: () => i == null ? void 0 : i((d) => !d),
222181
- 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"
222182
222226
  }
222183
222227
  )
222184
222228
  }
@@ -222465,7 +222509,7 @@ const kz = ke.memo(Aoe), gYt = ({
222465
222509
  isPreviewMode: e || !_
222466
222510
  }
222467
222511
  ),
222468
- /* @__PURE__ */ M.jsxs(
222512
+ /* @__PURE__ */ M.jsx(
222469
222513
  "div",
222470
222514
  {
222471
222515
  className: xt(
@@ -222504,152 +222548,150 @@ const kz = ke.memo(Aoe), gYt = ({
222504
222548
  transformOrigin: W === "2" && !nt ? "left center" : "top center",
222505
222549
  transform: `scaleX(${W})`
222506
222550
  },
222507
- children: [
222508
- /* @__PURE__ */ M.jsxs(
222509
- "div",
222510
- {
222511
- ref: kn,
222512
- className: xt(
222513
- "w-full h-full pt-8 md:pt-0",
222514
- { "custom-ios-padding": dt },
222515
- { "color-bg-default": W === "1.4" || "1.5" }
222516
- ),
222517
- style: {
222518
- transformOrigin: "top center",
222519
- transform: `scaleY(${W})`
222520
- },
222521
- children: [
222522
- /* @__PURE__ */ M.jsxs("div", { children: [
222523
- gt && /* @__PURE__ */ M.jsx(
222524
- 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,
222525
222590
  {
222526
- editor: gt,
222527
- onError: b,
222528
- zoomLevel: W,
222529
- disableInlineComment: ue || !1,
222530
- setIsCommentSectionOpen: C,
222531
- inlineCommentData: T,
222532
- setInlineCommentData: D,
222533
- isPreviewMode: e,
222534
- username: o,
222535
- walletAddress: s,
222536
- onInlineComment: Q,
222537
- activeCommentId: pr,
222538
- isCollabDocumentPublished: ee
222591
+ className: `${e || it ? "w-full" : "w-[400px]"} h-[32px] rounded-sm mb-4`
222539
222592
  }
222540
222593
  ),
222541
- gt && /* @__PURE__ */ M.jsx(RMt, { editor: gt, appendTo: kn })
222594
+ e && /* @__PURE__ */ M.jsx(mYt, {})
222542
222595
  ] }),
222543
- !gt || Gn ? Mo(
222544
- /* @__PURE__ */ M.jsxs("div", { className: `${it ? "mx-10 mt-10" : "mx-20"}`, children: [
222545
- /* @__PURE__ */ M.jsx(
222546
- ln,
222547
- {
222548
- className: `${e || it ? "w-full" : "w-[400px]"} h-[32px] rounded-sm mb-4`
222549
- }
222550
- ),
222551
- e && /* @__PURE__ */ M.jsx(mYt, {})
222552
- ] }),
222553
- "content-transition"
222554
- ) : Co(
222555
- /* @__PURE__ */ M.jsxs($C, { isPreviewMode: e, children: [
222556
- x && x.length > 0 && /* @__PURE__ */ M.jsxs(
222557
- "div",
222558
- {
222559
- ref: wt,
222560
- className: xt(
222561
- "flex flex-wrap px-4 md:px-8 lg:px-[80px] items-center gap-1 mb-4 mt-4 lg:!mt-0",
222562
- { "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
+ }
222563
222630
  ),
222564
- children: [
222565
- rn.map((Ne, oe) => /* @__PURE__ */ M.jsx(
222566
- Gp,
222567
- {
222568
- style: { backgroundColor: Ne == null ? void 0 : Ne.color },
222569
- onRemove: () => ct(Ne == null ? void 0 : Ne.name),
222570
- isRemovable: !e,
222571
- className: "!h-6 rounded",
222572
- children: Ne == null ? void 0 : Ne.name
222573
- },
222574
- oe
222575
- )),
222576
- vn > 0 && !Rt && /* @__PURE__ */ M.jsxs(
222577
- Kt,
222578
- {
222579
- variant: "ghost",
222580
- className: "!h-6 rounded min-w-fit !px-2 color-bg-secondary text-helper-text-sm",
222581
- onClick: () => qt(!0),
222582
- children: [
222583
- "+",
222584
- vn
222585
- ]
222586
- }
222587
- ),
222588
- Rt && /* @__PURE__ */ M.jsx(
222589
- ug.div,
222590
- {
222591
- initial: { opacity: 0, height: 0 },
222592
- animate: { opacity: 1, height: "auto" },
222593
- exit: { opacity: 0, height: 0 },
222594
- transition: { duration: 0.3 },
222595
- className: "flex flex-wrap items-center gap-1",
222596
- children: w == null ? void 0 : w.slice(4).map((Ne, oe) => /* @__PURE__ */ M.jsx(
222597
- Gp,
222598
- {
222599
- style: { backgroundColor: Ne == null ? void 0 : Ne.color },
222600
- onRemove: () => ct(Ne == null ? void 0 : Ne.name),
222601
- isRemovable: !e,
222602
- className: "!h-6 rounded",
222603
- children: Ne == null ? void 0 : Ne.name
222604
- },
222605
- oe + 4
222606
- ))
222607
- }
222608
- ),
222609
- w && (w == null ? void 0 : w.length) < 6 ? /* @__PURE__ */ M.jsx(
222610
- gV,
222611
- {
222612
- tags: x || [],
222613
- selectedTags: w,
222614
- onAddTag: Ue,
222615
- isPreviewMode: e
222616
- }
222617
- ) : null
222618
- ]
222619
- }
222620
- ),
222621
- /* @__PURE__ */ M.jsx(
222622
- Ww,
222623
- {
222624
- editor: gt,
222625
- id: "editor",
222626
- className: xt(
222627
- "w-full h-auto py-4 color-bg-default",
222628
- e && "preview-mode"
222629
- )
222630
- }
222631
- )
222632
- ] }),
222633
- "editor-transition"
222634
- )
222635
- ]
222636
- }
222637
- ),
222638
- p && !pt && /* @__PURE__ */ M.jsx(
222639
- Kt,
222640
- {
222641
- ref: tt,
222642
- onClick: () => {
222643
- gt && (f == null || f(gt));
222644
- },
222645
- variant: "ghost",
222646
- className: xt(
222647
- "absolute w-12 h-12 color-bg-default rounded-full shadow-xl top-[70px] right-[-23px]"
222648
- ),
222649
- children: /* @__PURE__ */ M.jsx(He, { name: "MessageSquareText", size: "sm" })
222650
- }
222651
- )
222652
- ]
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" })
222653
222695
  }
222654
222696
  ),
222655
222697
  !e && !m && /* @__PURE__ */ M.jsx(