@gardenfi/garden-book 0.1.78 → 0.1.80

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.
package/dist/ui.es.js CHANGED
@@ -14232,11 +14232,19 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
14232
14232
  const [a, o] = useState(!0), [c, l] = useState(!0), f = useRef(null), u = () => {
14233
14233
  if (f.current) {
14234
14234
  const { scrollTop: m, scrollHeight: p, clientHeight: b } = f.current;
14235
- o(m + b < p), l(p - m !== p);
14235
+ o(m + b < p), l(m > 0);
14236
14236
  }
14237
14237
  };
14238
14238
  return useEffect(() => {
14239
+ const m = f.current;
14240
+ if (!m) return;
14239
14241
  u();
14242
+ const p = new ResizeObserver(() => {
14243
+ u();
14244
+ });
14245
+ return p.observe(m), () => {
14246
+ p.disconnect();
14247
+ };
14240
14248
  }, []), /* @__PURE__ */ jsxs(
14241
14249
  "div",
14242
14250
  {
@@ -14285,12 +14293,14 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
14285
14293
  {
14286
14294
  title: "Swap",
14287
14295
  link: appLink + "/swap",
14288
- isExternal: !0
14296
+ isExternal: !0,
14297
+ withReferrer: !0
14289
14298
  },
14290
14299
  {
14291
14300
  title: "Stake",
14292
14301
  link: "https://new.garden.finance/stake",
14293
- isExternal: !0
14302
+ isExternal: !0,
14303
+ withReferrer: !0
14294
14304
  }
14295
14305
  // {
14296
14306
  // title: "Quests",
@@ -14377,7 +14387,7 @@ const InfoBadge = ({ children: e, className: t, ...i }) => /* @__PURE__ */ jsx(
14377
14387
  {
14378
14388
  href: n.link,
14379
14389
  target: i.targetSame ? "_self" : "_blank",
14380
- rel: "noreferrer",
14390
+ rel: n.withReferrer ? void 0 : "noreferrer",
14381
14391
  children: /* @__PURE__ */ jsx(Typography, { size: "h3", weight: "medium", children: n.title })
14382
14392
  },
14383
14393
  n.title