@fileverse-dev/ddoc 3.0.45-patch-12 → 3.0.45-patch-14

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-Dyk216n8.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-CVXrgDBo.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;
@@ -94001,7 +94001,7 @@ async function EC(e, t) {
94001
94001
  });
94002
94002
  return ie === "0x" ? { data: void 0 } : { data: ie };
94003
94003
  } catch (B) {
94004
- const I = SJt(B), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-B_7Bxu3A.mjs");
94004
+ const I = SJt(B), { offchainLookup: U, offchainLookupSignature: $ } = await import("./ccip-DQxIi5_7.mjs");
94005
94005
  if (e.ccipRead !== !1 && (I == null ? void 0 : I.slice(0, 10)) === $ && x)
94006
94006
  return { data: await U(e, { data: I, to: x }) };
94007
94007
  throw _ && (I == null ? void 0 : I.slice(0, 10)) === "0x101bb98d" ? new lXt({ factory: f }) : y3e(B, {
@@ -251848,31 +251848,30 @@ const gk = (e = 32, t) => {
251848
251848
  o(p), a(h);
251849
251849
  }, [t, e]), Ie(() => {
251850
251850
  if (!e) return;
251851
- const { root: h, tabs: p, order: g } = Bf(e);
251852
- let m = g;
251853
- const y = () => {
251854
- var F;
251855
- const x = m;
251856
- if (!x) return;
251857
- const k = [];
251858
- x.toArray().forEach((C) => {
251859
- const D = p.get(C);
251860
- D && k.push({
251851
+ const { root: h, order: p } = Bf(e);
251852
+ let g = p;
251853
+ const m = () => {
251854
+ const v = h.get("order") || g, x = h.get("tabs"), k = h.get("activeTabId");
251855
+ if (!v) return;
251856
+ const F = [];
251857
+ v.toArray().forEach((C) => {
251858
+ const D = x == null ? void 0 : x.get(C);
251859
+ D && F.push({
251861
251860
  id: C,
251862
251861
  name: D.get("name"),
251863
251862
  showOutline: D.get("showOutline"),
251864
251863
  emoji: D.get("emoji")
251865
251864
  });
251866
- }), a(k), o(((F = h.get("activeTabId")) == null ? void 0 : F.toString()) || "");
251867
- }, b = () => {
251868
- m && m.unobserve(y), m = h.get("order"), m.observe(y);
251865
+ }), a(F), o((k == null ? void 0 : k.toString()) || "");
251866
+ }, y = () => {
251867
+ g && g.unobserve(m), g = h.get("order"), g == null || g.observe(m);
251869
251868
  };
251870
- y(), b();
251871
- const v = () => {
251872
- h.get("order") !== m && (b(), y());
251869
+ m(), y();
251870
+ const b = () => {
251871
+ h.get("order") !== g && (y(), m());
251873
251872
  };
251874
- return h.observe(v), () => {
251875
- m == null || m.unobserve(y), h.unobserve(v);
251873
+ return h.observe(b), () => {
251874
+ g == null || g.unobserve(m), h.unobserve(b);
251876
251875
  };
251877
251876
  }, [e]);
251878
251877
  const l = Be(() => {
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-Dyk216n8.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-CVXrgDBo.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.45-patch-12",
5
+ "version": "3.0.45-patch-14",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {