@fileverse-dev/ddoc 3.0.37 → 3.0.38

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-DcsDAsFn.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-g9V-5uzZ.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;
@@ -93963,7 +93963,7 @@ async function TF(e, t) {
93963
93963
  });
93964
93964
  return oe === "0x" ? { data: void 0 } : { data: oe };
93965
93965
  } catch (O) {
93966
- const I = IKt(O), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-uYgWYocw.mjs");
93966
+ const I = IKt(O), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-CsmyuzYS.mjs");
93967
93967
  if (e.ccipRead !== !1 && (I == null ? void 0 : I.slice(0, 10)) === $ && x)
93968
93968
  return { data: await H(e, { data: I, to: x }) };
93969
93969
  throw _ && (I == null ? void 0 : I.slice(0, 10)) === "0x101bb98d" ? new pZt({ factory: f }) : Sge(O, {
@@ -109104,6 +109104,7 @@ const GE = (e) => {
109104
109104
  "div",
109105
109105
  {
109106
109106
  ref: k,
109107
+ "data-testid": d ? `comment-card-${d}` : "comment-card",
109107
109108
  className: Te(
109108
109109
  "flex flex-col gap-0 px-3 group comment-card",
109109
109110
  l && "opacity-70",
@@ -109354,6 +109355,7 @@ const GE = (e) => {
109354
109355
  /* @__PURE__ */ E.jsx(
109355
109356
  l4,
109356
109357
  {
109358
+ "data-testid": "comment-dropdown-input",
109357
109359
  value: a,
109358
109360
  onChange: oe,
109359
109361
  onKeyDown: le,
@@ -109366,6 +109368,7 @@ const GE = (e) => {
109366
109368
  /* @__PURE__ */ E.jsx("div", { className: "h-full flex items-center justify-end", children: /* @__PURE__ */ E.jsx(
109367
109369
  $t,
109368
109370
  {
109371
+ "data-testid": "comment-dropdown-send",
109369
109372
  onClick: ee,
109370
109373
  className: "px-4 py-2 w-20 min-w-20 h-9 font-medium text-sm",
109371
109374
  disabled: !a.trim(),
@@ -109411,6 +109414,7 @@ const GE = (e) => {
109411
109414
  children: /* @__PURE__ */ E.jsxs(
109412
109415
  "button",
109413
109416
  {
109417
+ "data-testid": "comment-delete-btn",
109414
109418
  className: "flex items-center color-text-danger text-sm font-medium gap-2 rounded p-2 transition-all hover:color-bg-default-hover w-full",
109415
109419
  onClick: te,
109416
109420
  onTouchEnd: te,
@@ -109434,6 +109438,7 @@ const GE = (e) => {
109434
109438
  children: /* @__PURE__ */ E.jsx(
109435
109439
  _n,
109436
109440
  {
109441
+ "data-testid": C != null && C.resolved ? "comment-unresolve-btn" : "comment-resolve-btn",
109437
109442
  icon: C != null && C.resolved ? "CircleCheck2" : "CircleCheck",
109438
109443
  variant: "ghost",
109439
109444
  disabled: o,
@@ -109499,6 +109504,7 @@ const GE = (e) => {
109499
109504
  "div",
109500
109505
  {
109501
109506
  ref: T,
109507
+ "data-testid": "comment-dropdown",
109502
109508
  className: "w-[300px] color-bg-default shadow-elevation-4 md:shadow-none rounded-md select-text",
109503
109509
  children: ce
109504
109510
  }
@@ -110377,6 +110383,7 @@ const rin = /* @__PURE__ */ y0(nin), y3 = () => {
110377
110383
  Gr,
110378
110384
  {
110379
110385
  ref: $,
110386
+ "data-testid": "inline-comment-btn-mobile",
110380
110387
  icon: "MessageSquarePlus",
110381
110388
  size: "sm",
110382
110389
  disabled: z || !s || l,
@@ -110651,6 +110658,7 @@ const rin = /* @__PURE__ */ y0(nin), y3 = () => {
110651
110658
  Gr,
110652
110659
  {
110653
110660
  ref: $,
110661
+ "data-testid": "inline-comment-btn",
110654
110662
  icon: "MessageSquarePlus",
110655
110663
  variant: "ghost",
110656
110664
  size: "sm",
@@ -263730,6 +263738,7 @@ const $Pn = ({
263730
263738
  }, [e, g]), D ? /* @__PURE__ */ E.jsxs(
263731
263739
  "div",
263732
263740
  {
263741
+ "data-testid": "comment-section",
263733
263742
  className: Te(
263734
263743
  "flex flex-col h-[100dvh] sm:h-[calc(100vh-40px)] xl:h-[calc(100vh-210px)] !color-bg-default !rounded-b-lg",
263735
263744
  "pb-[3rem] sm:pb-0",
@@ -263811,6 +263820,7 @@ const $Pn = ({
263811
263820
  /* @__PURE__ */ E.jsx(
263812
263821
  l4,
263813
263822
  {
263823
+ "data-testid": "comment-reply-input",
263814
263824
  placeholder: "Reply",
263815
263825
  value: b,
263816
263826
  className: Te(
@@ -263839,6 +263849,7 @@ const $Pn = ({
263839
263849
  /* @__PURE__ */ E.jsx(
263840
263850
  $t,
263841
263851
  {
263852
+ "data-testid": "comment-reply-send",
263842
263853
  className: "px-4 py-2 w-20 min-w-20 h-9",
263843
263854
  disabled: !b.trim(),
263844
263855
  onClick: c,
@@ -263876,6 +263887,7 @@ const $Pn = ({
263876
263887
  /* @__PURE__ */ E.jsx(
263877
263888
  l4,
263878
263889
  {
263890
+ "data-testid": "comment-section-input",
263879
263891
  value: y,
263880
263892
  onChange: l,
263881
263893
  onKeyDown: u,
@@ -263887,6 +263899,7 @@ const $Pn = ({
263887
263899
  /* @__PURE__ */ E.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ E.jsx(
263888
263900
  $t,
263889
263901
  {
263902
+ "data-testid": "comment-section-send",
263890
263903
  onClick: v,
263891
263904
  className: "px-4 py-2 w-20 min-w-20 h-9",
263892
263905
  disabled: !y.trim() || !o,
@@ -263918,7 +263931,7 @@ const $Pn = ({
263918
263931
  const { toggleResolved: a, showResolved: s, isConnected: l } = c1(), { isBelow1280px: u } = j1();
263919
263932
  return z3e(() => {
263920
263933
  t();
263921
- }), /* @__PURE__ */ E.jsx("div", { children: u ? /* @__PURE__ */ E.jsx(
263934
+ }), /* @__PURE__ */ E.jsx("div", { "data-testid": "comment-drawer", children: u ? /* @__PURE__ */ E.jsx(
263922
263935
  NOt,
263923
263936
  {
263924
263937
  open: e,
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-DcsDAsFn.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-g9V-5uzZ.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.37",
5
+ "version": "3.0.38",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -150,4 +150,4 @@
150
150
  "typescript": "^5.2.2",
151
151
  "vite": "^5.0.0"
152
152
  }
153
- }
153
+ }