@fileverse-dev/ddoc 2.4.2 → 2.4.3

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-LwbJ8ct6.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-Bo6yzvTe.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;
@@ -89873,7 +89873,7 @@ async function W9(e, t) {
89873
89873
  });
89874
89874
  return $ === "0x" ? { data: void 0 } : { data: $ };
89875
89875
  } catch (_) {
89876
- const R = FIt(_), { offchainLookup: L, offchainLookupSignature: z } = await import("./ccip-DxNSF_3h.mjs");
89876
+ const R = FIt(_), { offchainLookup: L, offchainLookupSignature: z } = await import("./ccip-Ctf1gSyC.mjs");
89877
89877
  if (e.ccipRead !== !1 && (R == null ? void 0 : R.slice(0, 10)) === z && v)
89878
89878
  return { data: await L(e, { data: R, to: v }) };
89879
89879
  throw A && (R == null ? void 0 : R.slice(0, 10)) === "0x101bb98d" ? new SNt({ factory: c }) : lle(_, {
@@ -102401,7 +102401,8 @@ const FF = (e) => {
102401
102401
  }
102402
102402
  a == null || a();
102403
102403
  },
102404
- isActive: !1
102404
+ isActive: !1,
102405
+ isNew: !0
102405
102406
  },
102406
102407
  {
102407
102408
  icon: "FileText",
@@ -102418,7 +102419,8 @@ const FF = (e) => {
102418
102419
  }
102419
102420
  s == null || s();
102420
102421
  },
102421
- isActive: !1
102422
+ isActive: !1,
102423
+ isNew: !0
102422
102424
  }
102423
102425
  ], M = [
102424
102426
  {
@@ -110691,14 +110693,17 @@ const YGt = (e, t) => MI(e) ? new KGt(t) : new ZGt(t, {
110691
110693
  u = setTimeout(() => l(!1), 300);
110692
110694
  },
110693
110695
  className: "w-[210px] rounded-lg p-2 flex flex-col gap-1 scroll-smooth color-bg-default shadow-elevation-3 transition-all color-text-default",
110694
- children: n.map((d, f) => /* @__PURE__ */ F.jsx(
110696
+ children: n.map((d, f) => /* @__PURE__ */ F.jsxs(
110695
110697
  "button",
110696
110698
  {
110697
110699
  onClick: () => {
110698
110700
  t(!1), d == null || d.onClick();
110699
110701
  },
110700
- className: "hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center space-x-2 transition text-body-sm",
110701
- children: /* @__PURE__ */ F.jsx("span", { className: "text-body-sm", children: d == null ? void 0 : d.title })
110702
+ className: "hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-between transition text-body-sm",
110703
+ children: [
110704
+ /* @__PURE__ */ F.jsx("span", { className: "text-body-sm", children: d == null ? void 0 : d.title }),
110705
+ (d == null ? void 0 : d.isNew) && /* @__PURE__ */ F.jsx("p", { className: "max-h-[16px] flex items-center text-[8px] color-bg-brand text-black rounded p-1 font-semibold", children: "NEW" })
110706
+ ]
110702
110707
  },
110703
110708
  f
110704
110709
  ))
@@ -110738,14 +110743,17 @@ const YGt = (e, t) => MI(e) ? new KGt(t) : new ZGt(t, {
110738
110743
  c = setTimeout(() => a(!1), 300);
110739
110744
  },
110740
110745
  className: "w-[210px] rounded-lg p-2 flex flex-col gap-1 scroll-smooth color-bg-default shadow-elevation-3 transition-all color-text-default",
110741
- children: r.map((d, f) => /* @__PURE__ */ F.jsx(
110746
+ children: r.map((d, f) => /* @__PURE__ */ F.jsxs(
110742
110747
  "button",
110743
110748
  {
110744
110749
  onClick: () => {
110745
110750
  t(!1), d == null || d.onClick();
110746
110751
  },
110747
- className: "hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-start space-x-2 transition text-body-sm",
110748
- children: /* @__PURE__ */ F.jsx("span", { className: "text-body-sm", children: d == null ? void 0 : d.title })
110752
+ className: "hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-between transition text-body-sm",
110753
+ children: [
110754
+ /* @__PURE__ */ F.jsx("span", { className: "text-body-sm", children: d == null ? void 0 : d.title }),
110755
+ (d == null ? void 0 : d.isNew) && /* @__PURE__ */ F.jsx("p", { className: "max-h-[16px] flex items-center text-[8px] color-bg-brand text-black rounded p-1 font-semibold", children: "NEW" })
110756
+ ]
110749
110757
  },
110750
110758
  f
110751
110759
  ))
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-LwbJ8ct6.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-Bo6yzvTe.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
@@ -9,6 +9,7 @@ export interface IEditorToolElement {
9
9
  onClick: () => void;
10
10
  isActive: boolean;
11
11
  group?: string;
12
+ isNew?: boolean;
12
13
  }
13
14
  export declare const fonts: {
14
15
  title: string;