@tryghost/activitypub 3.1.9 → 3.1.13
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/activitypub.js +1 -1
- package/dist/{at-sign-HA7s9_yo.mjs → at-sign-WxdwrLgJ.mjs} +3 -3
- package/dist/at-sign-WxdwrLgJ.mjs.map +1 -0
- package/dist/{avatar-flipboard-swo-37SU.mjs → avatar-flipboard-DSiWdH0F.mjs} +3 -3
- package/dist/avatar-flipboard-DSiWdH0F.mjs.map +1 -0
- package/dist/{bluesky-sharing-CLCMkEbr.mjs → bluesky-sharing-B86jF6P2.mjs} +7 -7
- package/dist/bluesky-sharing-B86jF6P2.mjs.map +1 -0
- package/dist/{copy-DpM3ttP6.mjs → copy-Dv_Mr41S.mjs} +3 -3
- package/dist/copy-Dv_Mr41S.mjs.map +1 -0
- package/dist/{deleted-feed-item-Dpgdv7Am.mjs → deleted-feed-item-DwgIr7vo.mjs} +9 -9
- package/dist/deleted-feed-item-DwgIr7vo.mjs.map +1 -0
- package/dist/edit-profile-BJDgAblO.mjs +3810 -0
- package/dist/edit-profile-BJDgAblO.mjs.map +1 -0
- package/dist/{feed-CUigsjj5.mjs → feed-Dg6CeeCP.mjs} +12 -12
- package/dist/feed-Dg6CeeCP.mjs.map +1 -0
- package/dist/{hash-cJ8IUw77.mjs → hash-CSsTpjMi.mjs} +3 -3
- package/dist/hash-CSsTpjMi.mjs.map +1 -0
- package/dist/{inbox-gnZvtbNZ.mjs → inbox-DexTffBg.mjs} +3 -3
- package/dist/inbox-DexTffBg.mjs.map +1 -0
- package/dist/{index-DBDE7Pwv.mjs → index-BCgaO9tm.mjs} +2 -2
- package/dist/index-BCgaO9tm.mjs.map +1 -0
- package/dist/{index-BHjT-eBh.mjs → index-BgIuNjJ4.mjs} +21 -21
- package/dist/index-BgIuNjJ4.mjs.map +1 -0
- package/dist/{index-VTkGUYnZ.mjs → index-C5SK4d-U.mjs} +93 -93
- package/dist/index-C5SK4d-U.mjs.map +1 -0
- package/dist/{index-DRdHe0Xx.mjs → index-D0zVs-Le.mjs} +8 -8
- package/dist/index-D0zVs-Le.mjs.map +1 -0
- package/dist/{index-DJ5p5ESW.mjs → index-DHVdVxus.mjs} +13567 -12741
- package/dist/index-DHVdVxus.mjs.map +1 -0
- package/dist/{index-Dc5IUcEt.mjs → index-DunzATiq.mjs} +49 -49
- package/dist/index-DunzATiq.mjs.map +1 -0
- package/dist/{index-BC1Q-I5Z.mjs → index-Kd9Hi0Fn.mjs} +26 -26
- package/dist/index-Kd9Hi0Fn.mjs.map +1 -0
- package/dist/{index-DOW1_Ph3.mjs → index-Vj6Uo60G.mjs} +56 -56
- package/dist/index-Vj6Uo60G.mjs.map +1 -0
- package/dist/{moderation-CF26LtsR.mjs → moderation-DltWXOVa.mjs} +7 -7
- package/dist/moderation-DltWXOVa.mjs.map +1 -0
- package/dist/{note-C7a3fpfu.mjs → note-m0fl222x.mjs} +6 -6
- package/dist/note-m0fl222x.mjs.map +1 -0
- package/dist/{reply-DNHDDszZ.mjs → reply-BwjYYb5Y.mjs} +3 -3
- package/dist/reply-BwjYYb5Y.mjs.map +1 -0
- package/dist/separator-CdEv3ahM.mjs +39 -0
- package/dist/separator-CdEv3ahM.mjs.map +1 -0
- package/dist/{settings-CK06at6A.mjs → settings-BdWI832x.mjs} +3 -3
- package/dist/settings-BdWI832x.mjs.map +1 -0
- package/dist/{step-1-CWOu7-_P.mjs → step-1-xd_G9AFI.mjs} +8 -8
- package/dist/{step-1-CWOu7-_P.mjs.map → step-1-xd_G9AFI.mjs.map} +1 -1
- package/dist/{step-2-Dcy43H6c.mjs → step-2-C-T0bLP6.mjs} +14 -14
- package/dist/step-2-C-T0bLP6.mjs.map +1 -0
- package/dist/{step-3-Dav_Yy5B.mjs → step-3-Cxv0ahQZ.mjs} +15 -15
- package/dist/step-3-Cxv0ahQZ.mjs.map +1 -0
- package/dist/{tabs-B7coKvuk.mjs → tabs-BDqPEpa2.mjs} +224 -226
- package/dist/tabs-BDqPEpa2.mjs.map +1 -0
- package/dist/{topic-filter-BIhCARLH.mjs → topic-filter-C1NL6HYi.mjs} +4 -4
- package/dist/topic-filter-C1NL6HYi.mjs.map +1 -0
- package/package.json +26 -11
- package/dist/at-sign-HA7s9_yo.mjs.map +0 -1
- package/dist/avatar-flipboard-swo-37SU.mjs.map +0 -1
- package/dist/bluesky-sharing-CLCMkEbr.mjs.map +0 -1
- package/dist/copy-DpM3ttP6.mjs.map +0 -1
- package/dist/deleted-feed-item-Dpgdv7Am.mjs.map +0 -1
- package/dist/edit-profile-C4Z2TwUh.mjs +0 -3741
- package/dist/edit-profile-C4Z2TwUh.mjs.map +0 -1
- package/dist/feed-CUigsjj5.mjs.map +0 -1
- package/dist/hash-cJ8IUw77.mjs.map +0 -1
- package/dist/inbox-gnZvtbNZ.mjs.map +0 -1
- package/dist/index-BC1Q-I5Z.mjs.map +0 -1
- package/dist/index-BHjT-eBh.mjs.map +0 -1
- package/dist/index-DBDE7Pwv.mjs.map +0 -1
- package/dist/index-DJ5p5ESW.mjs.map +0 -1
- package/dist/index-DOW1_Ph3.mjs.map +0 -1
- package/dist/index-DRdHe0Xx.mjs.map +0 -1
- package/dist/index-Dc5IUcEt.mjs.map +0 -1
- package/dist/index-VTkGUYnZ.mjs.map +0 -1
- package/dist/moderation-CF26LtsR.mjs.map +0 -1
- package/dist/note-C7a3fpfu.mjs.map +0 -1
- package/dist/reply-DNHDDszZ.mjs.map +0 -1
- package/dist/separator-D4W12X08.mjs +0 -116
- package/dist/separator-D4W12X08.mjs.map +0 -1
- package/dist/settings-CK06at6A.mjs.map +0 -1
- package/dist/step-2-Dcy43H6c.mjs.map +0 -1
- package/dist/step-3-Dav_Yy5B.mjs.map +0 -1
- package/dist/tabs-B7coKvuk.mjs.map +0 -1
- package/dist/topic-filter-BIhCARLH.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a6 as ee, R as Z, j as n, s as Fn, b as y, e as L,
|
|
2
|
-
import { u as
|
|
3
|
-
import { T as Ee } from "./topic-filter-
|
|
4
|
-
import { S as Ne } from "./separator-
|
|
5
|
-
import { I as Nn } from "./inbox-
|
|
1
|
+
import { a6 as ee, R as Z, j as n, s as Fn, b as y, e as L, b8 as Ln, b9 as Rn, B as $, bC as te, ba as On, bD as ae, c as W, bE as oe, W as Cn, d as Tn, bF as hn, S as N, P as re, A as ie, g as zn, r as de, h as se, aa as ce, aP as le, k as mn, F as cn, i as ln, bG as ge, bH as B, bI as Sn, ac as pe, a as ue, u as he, l as me, L as ke, D as fe, n as xe, o as be, p as ve, bJ as ye, bK as we, bL as je, ax as _n, ay as Ce } from "./index-DHVdVxus.mjs";
|
|
2
|
+
import { u as ze, D as Se, A as _e, S as En } from "./deleted-feed-item-DwgIr7vo.mjs";
|
|
3
|
+
import { T as Ee } from "./topic-filter-C1NL6HYi.mjs";
|
|
4
|
+
import { S as Ne } from "./separator-CdEv3ahM.mjs";
|
|
5
|
+
import { I as Nn } from "./inbox-DexTffBg.mjs";
|
|
6
6
|
/**
|
|
7
|
-
* @license lucide-react v0.
|
|
7
|
+
* @license lucide-react v0.577.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -22,8 +22,8 @@ Mn.displayName = "EmptyBadge";
|
|
|
22
22
|
const kn = Z.forwardRef(({ children: t, className: r, title: a, description: i, actions: d, ...u }, s) => /* @__PURE__ */ n.jsxs("div", { ref: s, className: Fn("flex flex-col items-center justify-center space-y-3 text-center", r), ...u, children: [
|
|
23
23
|
/* @__PURE__ */ n.jsx(Mn, { children: t }),
|
|
24
24
|
/* @__PURE__ */ n.jsxs("div", { className: "max-w-[320px] space-y-1.5", children: [
|
|
25
|
-
/* @__PURE__ */ n.jsx("h3", { className: "text-
|
|
26
|
-
i && /* @__PURE__ */ n.jsx("p", { className: "text-
|
|
25
|
+
/* @__PURE__ */ n.jsx("h3", { className: "text-md font-medium tracking-normal text-pretty text-foreground", children: a }),
|
|
26
|
+
i && /* @__PURE__ */ n.jsx("p", { className: "text-sm leading-tight text-pretty text-muted-foreground", children: i })
|
|
27
27
|
] }),
|
|
28
28
|
d && /* @__PURE__ */ n.jsx("div", { className: "mt-4 flex items-center gap-2", children: d })
|
|
29
29
|
] }));
|
|
@@ -172,7 +172,7 @@ const fn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Q = {
|
|
|
172
172
|
variant: "secondary",
|
|
173
173
|
onClick: () => d("sans"),
|
|
174
174
|
children: [
|
|
175
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-[2rem] font-bold
|
|
175
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-[2rem] leading-none font-bold", children: "Aa" }),
|
|
176
176
|
/* @__PURE__ */ n.jsx("span", { className: "text-[1.1rem]", children: "System" })
|
|
177
177
|
]
|
|
178
178
|
}
|
|
@@ -184,7 +184,7 @@ const fn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Q = {
|
|
|
184
184
|
variant: "secondary",
|
|
185
185
|
onClick: () => d("serif"),
|
|
186
186
|
children: [
|
|
187
|
-
/* @__PURE__ */ n.jsx("span", { className: "pt-1 font-serif text-[2rem] font-bold
|
|
187
|
+
/* @__PURE__ */ n.jsx("span", { className: "pt-1 font-serif text-[2rem] leading-none font-bold", children: "Aa" }),
|
|
188
188
|
/* @__PURE__ */ n.jsx("span", { className: "font-serif text-[1.2rem]", children: "Serif" })
|
|
189
189
|
]
|
|
190
190
|
}
|
|
@@ -252,13 +252,13 @@ const fn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Q = {
|
|
|
252
252
|
const l = r.contentDocument;
|
|
253
253
|
if (!l)
|
|
254
254
|
return;
|
|
255
|
-
const I = p.scrollTop, R = 100, q = t.map((
|
|
256
|
-
id:
|
|
257
|
-
top:
|
|
255
|
+
const I = p.scrollTop, R = 100, q = t.map((z) => l.getElementById(z.id)).filter((z) => z !== null).map((z) => ({
|
|
256
|
+
id: z.id,
|
|
257
|
+
top: z.offsetTop
|
|
258
258
|
}));
|
|
259
259
|
if (!q.length)
|
|
260
260
|
return;
|
|
261
|
-
const _ = q.reduce((
|
|
261
|
+
const _ = q.reduce((z, A) => A.top - R <= I ? A : z);
|
|
262
262
|
s((_ == null ? void 0 : _.id) || null);
|
|
263
263
|
}, c = () => {
|
|
264
264
|
requestAnimationFrame(o);
|
|
@@ -300,7 +300,7 @@ const fn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Q = {
|
|
|
300
300
|
/* @__PURE__ */ n.jsx(Rn, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
301
301
|
"div",
|
|
302
302
|
{
|
|
303
|
-
className: "absolute
|
|
303
|
+
className: "absolute top-1/2 right-2 flex -translate-y-1/2 flex-col items-end gap-2 rounded-md p-2 text-base dark:bg-black",
|
|
304
304
|
onMouseEnter: o,
|
|
305
305
|
onMouseLeave: c,
|
|
306
306
|
children: t.map((l) => /* @__PURE__ */ n.jsx(
|
|
@@ -3350,10 +3350,10 @@ a.kg-cta-button {
|
|
|
3350
3350
|
background-color: var(--ghost-accent-color);
|
|
3351
3351
|
color: #fff;
|
|
3352
3352
|
}
|
|
3353
|
-
`,
|
|
3353
|
+
`, xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3354
3354
|
__proto__: null,
|
|
3355
3355
|
default: ft
|
|
3356
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3356
|
+
}, Symbol.toStringTag, { value: "Module" })), bt = `.kg-signup-card {
|
|
3357
3357
|
position: relative;
|
|
3358
3358
|
}
|
|
3359
3359
|
|
|
@@ -3737,7 +3737,7 @@ a.kg-cta-button {
|
|
|
3737
3737
|
}
|
|
3738
3738
|
`, vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3739
3739
|
__proto__: null,
|
|
3740
|
-
default:
|
|
3740
|
+
default: bt
|
|
3741
3741
|
}, Symbol.toStringTag, { value: "Module" })), yt = `.kg-toggle-card,
|
|
3742
3742
|
.kg-toggle-card * {
|
|
3743
3743
|
box-sizing: border-box;
|
|
@@ -3926,10 +3926,10 @@ a.kg-cta-button {
|
|
|
3926
3926
|
font-size: 1.45rem;
|
|
3927
3927
|
}
|
|
3928
3928
|
}
|
|
3929
|
-
`,
|
|
3929
|
+
`, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3930
3930
|
__proto__: null,
|
|
3931
3931
|
default: jt
|
|
3932
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3932
|
+
}, Symbol.toStringTag, { value: "Module" })), zt = `.kg-video-card,
|
|
3933
3933
|
.kg-video-card * {
|
|
3934
3934
|
box-sizing: border-box;
|
|
3935
3935
|
}
|
|
@@ -4286,8 +4286,8 @@ a.kg-cta-button {
|
|
|
4286
4286
|
|
|
4287
4287
|
`, St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4288
4288
|
__proto__: null,
|
|
4289
|
-
default:
|
|
4290
|
-
}, Symbol.toStringTag, { value: "Module" })), _t = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/js/audio.js": De, "../../ghost/core/core/frontend/src/cards/js/gallery.js": qe, "../../ghost/core/core/frontend/src/cards/js/toggle.js": Ue, "../../ghost/core/core/frontend/src/cards/js/video.js": Ke }), Et = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/css/audio.css": Ye, "../../ghost/core/core/frontend/src/cards/css/blockquote.css": Ze, "../../ghost/core/core/frontend/src/cards/css/bookmark.css": Ge, "../../ghost/core/core/frontend/src/cards/css/button.css": nt, "../../ghost/core/core/frontend/src/cards/css/callout.css": tt, "../../ghost/core/core/frontend/src/cards/css/collection.css": ot, "../../ghost/core/core/frontend/src/cards/css/cta.css": it, "../../ghost/core/core/frontend/src/cards/css/file.css": st, "../../ghost/core/core/frontend/src/cards/css/gallery.css": lt, "../../ghost/core/core/frontend/src/cards/css/header.css": pt, "../../ghost/core/core/frontend/src/cards/css/header_v2.css": ht, "../../ghost/core/core/frontend/src/cards/css/nft.css": kt, "../../ghost/core/core/frontend/src/cards/css/product.css":
|
|
4289
|
+
default: zt
|
|
4290
|
+
}, Symbol.toStringTag, { value: "Module" })), _t = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/js/audio.js": De, "../../ghost/core/core/frontend/src/cards/js/gallery.js": qe, "../../ghost/core/core/frontend/src/cards/js/toggle.js": Ue, "../../ghost/core/core/frontend/src/cards/js/video.js": Ke }), Et = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/css/audio.css": Ye, "../../ghost/core/core/frontend/src/cards/css/blockquote.css": Ze, "../../ghost/core/core/frontend/src/cards/css/bookmark.css": Ge, "../../ghost/core/core/frontend/src/cards/css/button.css": nt, "../../ghost/core/core/frontend/src/cards/css/callout.css": tt, "../../ghost/core/core/frontend/src/cards/css/collection.css": ot, "../../ghost/core/core/frontend/src/cards/css/cta.css": it, "../../ghost/core/core/frontend/src/cards/css/file.css": st, "../../ghost/core/core/frontend/src/cards/css/gallery.css": lt, "../../ghost/core/core/frontend/src/cards/css/header.css": pt, "../../ghost/core/core/frontend/src/cards/css/header_v2.css": ht, "../../ghost/core/core/frontend/src/cards/css/nft.css": kt, "../../ghost/core/core/frontend/src/cards/css/product.css": xt, "../../ghost/core/core/frontend/src/cards/css/signup.css": vt, "../../ghost/core/core/frontend/src/cards/css/toggle.css": wt, "../../ghost/core/core/frontend/src/cards/css/transistor.css": Ct, "../../ghost/core/core/frontend/src/cards/css/video.css": St }), Nt = Object.values(_t).map((t) => t.default).join(`
|
|
4291
4291
|
|
|
4292
4292
|
`), It = Object.values(Et).map((t) => t.default).join(`
|
|
4293
4293
|
|
|
@@ -4306,7 +4306,7 @@ a.kg-cta-button {
|
|
|
4306
4306
|
onLoadingChange: c,
|
|
4307
4307
|
isPopoverOpen: l
|
|
4308
4308
|
}) => {
|
|
4309
|
-
const I = W(null), [R, q] = y(!0), [_,
|
|
4309
|
+
const I = W(null), [R, q] = y(!0), [_, z] = y("0px"), A = document.documentElement.classList.contains("dark") && s === "SYSTEM" || s === "DARK", J = Ae(), f = `
|
|
4310
4310
|
<html class="has-${A ? "light" : "dark"}-text has-${v}-body ${s === "SEPIA" && "has-sepia-bg"}">
|
|
4311
4311
|
<head>
|
|
4312
4312
|
${J}
|
|
@@ -4454,14 +4454,14 @@ a.kg-cta-button {
|
|
|
4454
4454
|
if (!g)
|
|
4455
4455
|
return;
|
|
4456
4456
|
g.srcdoc || (g.srcdoc = f);
|
|
4457
|
-
const O = (
|
|
4458
|
-
if (
|
|
4459
|
-
const S = `${
|
|
4460
|
-
|
|
4457
|
+
const O = (x) => {
|
|
4458
|
+
if (x.data.type === "resize") {
|
|
4459
|
+
const S = `${x.data.bodyHeight + 24}px`;
|
|
4460
|
+
z(S), g.style.height = S, x.data.isLoaded && q(!1);
|
|
4461
4461
|
}
|
|
4462
|
-
}, j = (
|
|
4463
|
-
if (
|
|
4464
|
-
|
|
4462
|
+
}, j = (x) => {
|
|
4463
|
+
if (x.key === "Escape") {
|
|
4464
|
+
x.preventDefault(), x.stopPropagation();
|
|
4465
4465
|
const S = new KeyboardEvent("keydown", {
|
|
4466
4466
|
key: "Escape",
|
|
4467
4467
|
code: "Escape",
|
|
@@ -4473,20 +4473,20 @@ a.kg-cta-button {
|
|
|
4473
4473
|
document.dispatchEvent(S);
|
|
4474
4474
|
}
|
|
4475
4475
|
}, E = () => {
|
|
4476
|
-
const
|
|
4477
|
-
|
|
4476
|
+
const x = g.contentWindow;
|
|
4477
|
+
x && x.addEventListener("keydown", j);
|
|
4478
4478
|
};
|
|
4479
4479
|
return g.addEventListener("load", E), window.addEventListener("message", O), () => {
|
|
4480
4480
|
window.removeEventListener("message", O), g.removeEventListener("load", E);
|
|
4481
|
-
const
|
|
4482
|
-
|
|
4481
|
+
const x = g.contentWindow;
|
|
4482
|
+
x && x.removeEventListener("keydown", j);
|
|
4483
4483
|
};
|
|
4484
4484
|
}, [f]), L(() => {
|
|
4485
|
-
var
|
|
4485
|
+
var x;
|
|
4486
4486
|
const g = I.current;
|
|
4487
4487
|
if (!g)
|
|
4488
4488
|
return;
|
|
4489
|
-
const O = g.contentDocument || ((
|
|
4489
|
+
const O = g.contentDocument || ((x = g.contentWindow) == null ? void 0 : x.document);
|
|
4490
4490
|
if (!O)
|
|
4491
4491
|
return;
|
|
4492
4492
|
const j = O.documentElement;
|
|
@@ -4512,7 +4512,7 @@ a.kg-cta-button {
|
|
|
4512
4512
|
return;
|
|
4513
4513
|
const E = Math.min(
|
|
4514
4514
|
...j.map((S) => parseInt(S.tagName[1]))
|
|
4515
|
-
),
|
|
4515
|
+
), x = j.map((S, en) => {
|
|
4516
4516
|
const T = `heading-${en}`;
|
|
4517
4517
|
S.id = T;
|
|
4518
4518
|
const tn = parseInt(S.tagName[1]) - E + 1;
|
|
@@ -4523,7 +4523,7 @@ a.kg-cta-button {
|
|
|
4523
4523
|
element: S
|
|
4524
4524
|
};
|
|
4525
4525
|
});
|
|
4526
|
-
p == null || p(
|
|
4526
|
+
p == null || p(x), o == null || o(g);
|
|
4527
4527
|
};
|
|
4528
4528
|
return g.addEventListener("load", O), () => g.removeEventListener("load", O);
|
|
4529
4529
|
}, [p, o]), L(() => {
|
|
@@ -4571,7 +4571,7 @@ a.kg-cta-button {
|
|
|
4571
4571
|
increaseFontSize: v,
|
|
4572
4572
|
decreaseFontSize: p,
|
|
4573
4573
|
resetFontSize: o
|
|
4574
|
-
} = Fe(), c = W(null), [l, I] = y(!1), [R, q] = y(!1), [_,
|
|
4574
|
+
} = Fe(), c = W(null), [l, I] = y(!1), [R, q] = y(!1), [_, z] = y(/* @__PURE__ */ new Set()), [A, J] = y(/* @__PURE__ */ new Set()), [f, g] = y(/* @__PURE__ */ new Set()), [O, j] = y(!1), E = W(null), x = W(null), {
|
|
4575
4575
|
post: S,
|
|
4576
4576
|
processedReplies: en,
|
|
4577
4577
|
isLoading: T,
|
|
@@ -4579,7 +4579,7 @@ a.kg-cta-button {
|
|
|
4579
4579
|
loadMoreChildReplies: tn,
|
|
4580
4580
|
hasMoreChildren: an,
|
|
4581
4581
|
hasMoreChildReplies: on
|
|
4582
|
-
} =
|
|
4582
|
+
} = ze(t ?? "", { includeAncestors: !1 }), H = S, m = H == null ? void 0 : H.object, U = H == null ? void 0 : H.actor, An = (yn = (vn = H == null ? void 0 : H.object) == null ? void 0 : vn.metadata) == null ? void 0 : yn.ghostAuthors, $n = (m == null ? void 0 : m.replyCount) ?? 0;
|
|
4583
4583
|
L(() => {
|
|
4584
4584
|
if (!an)
|
|
4585
4585
|
return;
|
|
@@ -4600,17 +4600,17 @@ a.kg-cta-button {
|
|
|
4600
4600
|
}, {
|
|
4601
4601
|
root: e,
|
|
4602
4602
|
rootMargin: "200px"
|
|
4603
|
-
}),
|
|
4603
|
+
}), x.current && E.current.observe(x.current), () => {
|
|
4604
4604
|
E.current && E.current.disconnect();
|
|
4605
4605
|
};
|
|
4606
4606
|
}, [an, O, gn]);
|
|
4607
4607
|
function pn() {
|
|
4608
4608
|
}
|
|
4609
4609
|
function Dn(e) {
|
|
4610
|
-
|
|
4610
|
+
z((w) => {
|
|
4611
4611
|
const k = new Set(w);
|
|
4612
|
-
return k.has(e) ? k.delete(e) : (k.add(e), J((
|
|
4613
|
-
const M = new Set(
|
|
4612
|
+
return k.has(e) ? k.delete(e) : (k.add(e), J((C) => {
|
|
4613
|
+
const M = new Set(C);
|
|
4614
4614
|
return M.add(e), M;
|
|
4615
4615
|
})), k;
|
|
4616
4616
|
});
|
|
@@ -4624,14 +4624,14 @@ a.kg-cta-button {
|
|
|
4624
4624
|
console.error("Failed to load more replies for chain:", k);
|
|
4625
4625
|
} finally {
|
|
4626
4626
|
g((k) => {
|
|
4627
|
-
const
|
|
4628
|
-
return
|
|
4627
|
+
const C = new Set(k);
|
|
4628
|
+
return C.delete(e), C;
|
|
4629
4629
|
});
|
|
4630
4630
|
}
|
|
4631
4631
|
}
|
|
4632
4632
|
}
|
|
4633
4633
|
const qn = () => {
|
|
4634
|
-
}, Hn = W(null), Un = "904px", K = "640px", [
|
|
4634
|
+
}, Hn = W(null), Un = "904px", K = "640px", [xn, Wn] = y(0), [G, Kn] = y(!0), [un] = oe(Wn, 100), bn = 1;
|
|
4635
4635
|
L(() => {
|
|
4636
4636
|
const e = c.current, w = document.getElementById("object-content"), k = () => {
|
|
4637
4637
|
if (G || !e || !w)
|
|
@@ -4641,23 +4641,23 @@ a.kg-cta-button {
|
|
|
4641
4641
|
un(100);
|
|
4642
4642
|
return;
|
|
4643
4643
|
}
|
|
4644
|
-
const D = Math.max(0, Y.top - M.top),
|
|
4644
|
+
const D = Math.max(0, Y.top - M.top), b = w.offsetHeight - e.offsetHeight, P = Math.min(Math.max(D / b * 100, 0), 100), sn = Math.round(P / bn) * bn;
|
|
4645
4645
|
un(sn);
|
|
4646
4646
|
};
|
|
4647
4647
|
if (G)
|
|
4648
4648
|
return;
|
|
4649
|
-
const
|
|
4650
|
-
return w &&
|
|
4649
|
+
const C = new MutationObserver(k);
|
|
4650
|
+
return w && C.observe(w, {
|
|
4651
4651
|
childList: !0,
|
|
4652
4652
|
subtree: !0,
|
|
4653
4653
|
characterData: !0
|
|
4654
4654
|
}), e == null || e.addEventListener("scroll", k), k(), () => {
|
|
4655
|
-
e == null || e.removeEventListener("scroll", k),
|
|
4655
|
+
e == null || e.removeEventListener("scroll", k), C.disconnect();
|
|
4656
4656
|
};
|
|
4657
4657
|
}, [G, un]);
|
|
4658
|
-
const [rn, Vn] = y([]), [Yn, Qn] = y(null), [V, Zn] = y(null), Jn =
|
|
4658
|
+
const [rn, Vn] = y([]), [Yn, Qn] = y(null), [V, Zn] = y(null), Jn = Cn((e) => {
|
|
4659
4659
|
Vn(e);
|
|
4660
|
-
}, []), Gn =
|
|
4660
|
+
}, []), Gn = Cn((e) => {
|
|
4661
4661
|
Zn(e);
|
|
4662
4662
|
}, []);
|
|
4663
4663
|
L(() => {
|
|
@@ -4667,7 +4667,7 @@ a.kg-cta-button {
|
|
|
4667
4667
|
const k = c.current;
|
|
4668
4668
|
if (!k)
|
|
4669
4669
|
return;
|
|
4670
|
-
const
|
|
4670
|
+
const C = () => {
|
|
4671
4671
|
const M = V.contentDocument;
|
|
4672
4672
|
if (!M || !M.documentElement)
|
|
4673
4673
|
return;
|
|
@@ -4679,16 +4679,16 @@ a.kg-cta-button {
|
|
|
4679
4679
|
if (!X.length)
|
|
4680
4680
|
return;
|
|
4681
4681
|
const D = 100;
|
|
4682
|
-
let
|
|
4682
|
+
let b = null;
|
|
4683
4683
|
for (const P of X)
|
|
4684
4684
|
if (P.top - D <= Y)
|
|
4685
|
-
|
|
4685
|
+
b = P;
|
|
4686
4686
|
else
|
|
4687
4687
|
break;
|
|
4688
|
-
Qn((
|
|
4688
|
+
Qn((b == null ? void 0 : b.id) || null);
|
|
4689
4689
|
};
|
|
4690
|
-
return k.addEventListener("scroll",
|
|
4691
|
-
k.removeEventListener("scroll",
|
|
4690
|
+
return k.addEventListener("scroll", C), C(), () => {
|
|
4691
|
+
k.removeEventListener("scroll", C);
|
|
4692
4692
|
};
|
|
4693
4693
|
}, 100);
|
|
4694
4694
|
return () => clearTimeout(w);
|
|
@@ -4763,11 +4763,11 @@ a.kg-cta-button {
|
|
|
4763
4763
|
/* @__PURE__ */ n.jsxs("div", { className: "col-[2/3] mx-auto flex w-full items-center justify-between gap-3 max-md:hidden", children: [
|
|
4764
4764
|
/* @__PURE__ */ n.jsx(re, { actor: U, isCurrentUser: m.authored, children: /* @__PURE__ */ n.jsxs("div", { className: "flex cursor-pointer items-center gap-3", children: [
|
|
4765
4765
|
/* @__PURE__ */ n.jsx("div", { className: "relative z-10 pt-0.5", children: /* @__PURE__ */ n.jsx(ie, { author: U }) }),
|
|
4766
|
-
/* @__PURE__ */ n.jsxs("div", { className: "relative z-10 mt-0.5 flex min-w-0 cursor-pointer flex-col overflow-visible text-[1.5rem]", onClick: (e) =>
|
|
4767
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex w-full", children: /* @__PURE__ */ n.jsx("span", { className: "min-w-0 truncate whitespace-nowrap
|
|
4766
|
+
/* @__PURE__ */ n.jsxs("div", { className: "relative z-10 mt-0.5 flex min-w-0 cursor-pointer flex-col overflow-visible text-[1.5rem]", onClick: (e) => se(U, dn, e), children: [
|
|
4767
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex w-full", children: /* @__PURE__ */ n.jsx("span", { className: "min-w-0 truncate font-semibold whitespace-nowrap text-black hover:underline dark:text-white", children: T ? /* @__PURE__ */ n.jsx(N, { className: "w-20" }) : U.name }) }),
|
|
4768
4768
|
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full", children: [
|
|
4769
|
-
!T && /* @__PURE__ */ n.jsx("span", { className: 'truncate text-gray-700 after:mx-1 after:font-normal after:text-gray-700 after:content-["·"]', children:
|
|
4770
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: T ? /* @__PURE__ */ n.jsx(N, { className: "w-[120px]" }) :
|
|
4769
|
+
!T && /* @__PURE__ */ n.jsx("span", { className: 'truncate text-gray-700 after:mx-1 after:font-normal after:text-gray-700 after:content-["·"]', children: zn(U) }),
|
|
4770
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: T ? /* @__PURE__ */ n.jsx(N, { className: "w-[120px]" }) : de(m, !m.authored) })
|
|
4771
4771
|
] })
|
|
4772
4772
|
] })
|
|
4773
4773
|
] }) }),
|
|
@@ -4775,7 +4775,7 @@ a.kg-cta-button {
|
|
|
4775
4775
|
ce,
|
|
4776
4776
|
{
|
|
4777
4777
|
following: U.followedByMe ?? !1,
|
|
4778
|
-
handle:
|
|
4778
|
+
handle: zn(U)
|
|
4779
4779
|
}
|
|
4780
4780
|
)
|
|
4781
4781
|
] }),
|
|
@@ -4806,7 +4806,7 @@ a.kg-cta-button {
|
|
|
4806
4806
|
onOpenChange: q
|
|
4807
4807
|
}
|
|
4808
4808
|
),
|
|
4809
|
-
!T && /* @__PURE__ */ n.jsx("div", { className: "grow overflow-y-auto", children: /* @__PURE__ */ n.jsxs("div", { className: "mx-auto px-6 pb-10
|
|
4809
|
+
!T && /* @__PURE__ */ n.jsx("div", { className: "grow overflow-y-auto", children: /* @__PURE__ */ n.jsxs("div", { className: "mx-auto px-6 pt-5 pb-10", style: { maxWidth: Un }, children: [
|
|
4810
4810
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center pb-8", id: "object-content", children: [
|
|
4811
4811
|
/* @__PURE__ */ n.jsx(
|
|
4812
4812
|
Pt,
|
|
@@ -4852,7 +4852,7 @@ a.kg-cta-button {
|
|
|
4852
4852
|
T && /* @__PURE__ */ n.jsx(mn, { size: "lg" }),
|
|
4853
4853
|
/* @__PURE__ */ n.jsxs("div", { ref: Hn, className: "mx-auto w-full", style: { maxWidth: K }, children: [
|
|
4854
4854
|
en.map((e, w) => {
|
|
4855
|
-
const k = w === en.length - 1,
|
|
4855
|
+
const k = w === en.length - 1, C = e.mainReply.id, M = _.has(C), Y = A.has(C), X = f.has(C), D = e.chain.length > 0;
|
|
4856
4856
|
return /* @__PURE__ */ n.jsxs(Z.Fragment, { children: [
|
|
4857
4857
|
/* @__PURE__ */ n.jsx(
|
|
4858
4858
|
cn,
|
|
@@ -4870,8 +4870,8 @@ a.kg-cta-button {
|
|
|
4870
4870
|
repostCount: e.mainReply.object.repostCount ?? 0,
|
|
4871
4871
|
type: "Note",
|
|
4872
4872
|
onClick: () => {
|
|
4873
|
-
const
|
|
4874
|
-
|
|
4873
|
+
const b = c.current;
|
|
4874
|
+
b && t && nn.set(t, b.scrollTop), dn(`/notes/${encodeURIComponent(e.mainReply.id)}`);
|
|
4875
4875
|
},
|
|
4876
4876
|
onDelete: pn
|
|
4877
4877
|
}
|
|
@@ -4892,44 +4892,44 @@ a.kg-cta-button {
|
|
|
4892
4892
|
repostCount: e.chain[0].object.repostCount ?? 0,
|
|
4893
4893
|
type: "Note",
|
|
4894
4894
|
onClick: () => {
|
|
4895
|
-
const
|
|
4896
|
-
|
|
4895
|
+
const b = c.current;
|
|
4896
|
+
b && t && nn.set(t, b.scrollTop), dn(`/notes/${encodeURIComponent(e.chain[0].id)}`);
|
|
4897
4897
|
},
|
|
4898
4898
|
onDelete: pn
|
|
4899
4899
|
},
|
|
4900
4900
|
e.chain[0].id
|
|
4901
4901
|
),
|
|
4902
|
-
D && M && e.chain.slice(1).map((
|
|
4902
|
+
D && M && e.chain.slice(1).map((b, P) => {
|
|
4903
4903
|
const sn = P === e.chain.slice(1).length - 1, Xn = on && on(w), ne = sn && Xn;
|
|
4904
4904
|
return /* @__PURE__ */ n.jsx(
|
|
4905
4905
|
cn,
|
|
4906
4906
|
{
|
|
4907
|
-
actor:
|
|
4908
|
-
allowDelete:
|
|
4909
|
-
commentCount:
|
|
4907
|
+
actor: b.actor,
|
|
4908
|
+
allowDelete: b.object.authored,
|
|
4909
|
+
commentCount: b.object.replyCount ?? 0,
|
|
4910
4910
|
isChainContinuation: !0,
|
|
4911
|
-
isPending: ln(
|
|
4911
|
+
isPending: ln(b.id),
|
|
4912
4912
|
last: sn && !ne,
|
|
4913
4913
|
layout: "reply",
|
|
4914
|
-
likeCount:
|
|
4915
|
-
object:
|
|
4914
|
+
likeCount: b.object.likeCount ?? 0,
|
|
4915
|
+
object: b.object,
|
|
4916
4916
|
parentId: m.id,
|
|
4917
|
-
repostCount:
|
|
4917
|
+
repostCount: b.object.repostCount ?? 0,
|
|
4918
4918
|
type: "Note",
|
|
4919
4919
|
onClick: () => {
|
|
4920
4920
|
const jn = c.current;
|
|
4921
|
-
jn && t && nn.set(t, jn.scrollTop), dn(`/notes/${encodeURIComponent(
|
|
4921
|
+
jn && t && nn.set(t, jn.scrollTop), dn(`/notes/${encodeURIComponent(b.id)}`);
|
|
4922
4922
|
},
|
|
4923
4923
|
onDelete: pn
|
|
4924
4924
|
},
|
|
4925
|
-
|
|
4925
|
+
b.id
|
|
4926
4926
|
);
|
|
4927
4927
|
}),
|
|
4928
4928
|
D && e.chain.length > 1 && !M && /* @__PURE__ */ n.jsx(
|
|
4929
4929
|
En,
|
|
4930
4930
|
{
|
|
4931
4931
|
variant: "expand",
|
|
4932
|
-
onClick: () => Dn(
|
|
4932
|
+
onClick: () => Dn(C)
|
|
4933
4933
|
}
|
|
4934
4934
|
),
|
|
4935
4935
|
D && M && Y && on && on(w) && /* @__PURE__ */ n.jsx(
|
|
@@ -4937,7 +4937,7 @@ a.kg-cta-button {
|
|
|
4937
4937
|
{
|
|
4938
4938
|
loading: X,
|
|
4939
4939
|
variant: "loadMore",
|
|
4940
|
-
onClick: () => Bn(
|
|
4940
|
+
onClick: () => Bn(C, w)
|
|
4941
4941
|
}
|
|
4942
4942
|
),
|
|
4943
4943
|
!k && /* @__PURE__ */ n.jsx(Pn, {})
|
|
@@ -4945,16 +4945,16 @@ a.kg-cta-button {
|
|
|
4945
4945
|
}),
|
|
4946
4946
|
O && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-center justify-center text-center", children: /* @__PURE__ */ n.jsx(mn, { size: "md" }) })
|
|
4947
4947
|
] }),
|
|
4948
|
-
an && /* @__PURE__ */ n.jsx("div", { ref:
|
|
4948
|
+
an && /* @__PURE__ */ n.jsx("div", { ref: x, className: "h-1" })
|
|
4949
4949
|
] }) })
|
|
4950
4950
|
] })
|
|
4951
4951
|
] }),
|
|
4952
|
-
!T && /* @__PURE__ */ n.jsxs("div", { className: "
|
|
4952
|
+
!T && /* @__PURE__ */ n.jsxs("div", { className: "pointer-events-none visible! sticky bottom-0 hidden items-end justify-between px-10 pb-[42px] lg:flex!", children: [
|
|
4953
4953
|
/* @__PURE__ */ n.jsx("div", { className: "pointer-events-auto text-gray-600", children: ge(m.content ?? "") }),
|
|
4954
4954
|
/* @__PURE__ */ n.jsxs("div", { className: "pointer-events-auto min-w-10 text-right text-gray-600 transition-all duration-200 ease-out", children: [
|
|
4955
|
-
|
|
4955
|
+
xn,
|
|
4956
4956
|
"%"
|
|
4957
|
-
] },
|
|
4957
|
+
] }, xn)
|
|
4958
4958
|
] })
|
|
4959
4959
|
] }) }) }) : /* @__PURE__ */ n.jsx("div", { className: `max-h-full overflow-auto rounded-md ${a === "DARK" && "dark"} ${(a === "LIGHT" || a === "SEPIA") && "light"} ${F[a].background}`, children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full flex-col", children: /* @__PURE__ */ n.jsx("div", { className: "relative flex-1", children: /* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[a].background} ${F[a].border}`, children: /* @__PURE__ */ n.jsxs(
|
|
4960
4960
|
"div",
|
|
@@ -4982,10 +4982,10 @@ a.kg-cta-button {
|
|
|
4982
4982
|
L(() => {
|
|
4983
4983
|
c(!!l.postId);
|
|
4984
4984
|
}, [l.postId]);
|
|
4985
|
-
const _ = W(null),
|
|
4985
|
+
const _ = W(null), z = W(null), A = W(null);
|
|
4986
4986
|
L(() => (_.current && _.current.disconnect(), _.current = new IntersectionObserver((f) => {
|
|
4987
4987
|
f[0].isIntersecting && d && !u && i();
|
|
4988
|
-
}),
|
|
4988
|
+
}), z.current && _.current.observe(z.current), A.current && _.current.observe(A.current), () => {
|
|
4989
4989
|
_.current && _.current.disconnect();
|
|
4990
4990
|
}), [d, u, i]);
|
|
4991
4991
|
const J = Math.max(0, Math.floor(r.length * 0.75) - 1);
|
|
@@ -5018,7 +5018,7 @@ a.kg-cta-button {
|
|
|
5018
5018
|
}
|
|
5019
5019
|
),
|
|
5020
5020
|
g < r.length - 1 && /* @__PURE__ */ n.jsx(Ne, {}),
|
|
5021
|
-
g === J && /* @__PURE__ */ n.jsx("div", { ref:
|
|
5021
|
+
g === J && /* @__PURE__ */ n.jsx("div", { ref: z, className: "h-1" })
|
|
5022
5022
|
]
|
|
5023
5023
|
},
|
|
5024
5024
|
`${f.id}-${f.type}-${g}`
|
|
@@ -5049,8 +5049,8 @@ a.kg-cta-button {
|
|
|
5049
5049
|
onOpenChange: (f) => {
|
|
5050
5050
|
f || (v ? p() : h("/reader")), c(f);
|
|
5051
5051
|
},
|
|
5052
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
5053
|
-
/* @__PURE__ */ n.jsxs(
|
|
5052
|
+
children: /* @__PURE__ */ n.jsxs(xe, { className: "inset-y-3 h-[calc(100vh-24px)] w-screen max-w-[calc(100vw-24px)] animate-none! p-0 focus:outline-hidden dark:bg-gray-950", children: [
|
|
5053
|
+
/* @__PURE__ */ n.jsxs(be, { className: "hidden", children: [
|
|
5054
5054
|
/* @__PURE__ */ n.jsx(ve, { children: "Reader" }),
|
|
5055
5055
|
/* @__PURE__ */ n.jsx(ye, { children: "Ghost reader for long form articles" })
|
|
5056
5056
|
] }),
|
|
@@ -5064,7 +5064,7 @@ a.kg-cta-button {
|
|
|
5064
5064
|
}, $t = () => {
|
|
5065
5065
|
const [t, r] = y("following"), { inboxQuery: a } = we({ enabled: t === "following" }), { discoveryFeedQuery: i } = je({ enabled: t !== "following", topic: t }), d = t === "following" ? a : i, { data: u, error: s, fetchNextPage: h, hasNextPage: v, isFetchingNextPage: p, isLoading: o } = d, c = s && _n(s) && s.statusCode === 404 && t !== "following";
|
|
5066
5066
|
if (s && _n(s) && !c)
|
|
5067
|
-
return /* @__PURE__ */ n.jsx(
|
|
5067
|
+
return /* @__PURE__ */ n.jsx(Ce, { errorCode: s.code, statusCode: s.statusCode });
|
|
5068
5068
|
const l = c ? [] : (u == null ? void 0 : u.pages.flatMap((I) => I.posts)) ?? Array.from({ length: 5 }, (I, R) => ({ id: `placeholder-${R}`, object: {} }));
|
|
5069
5069
|
return /* @__PURE__ */ n.jsx(
|
|
5070
5070
|
Lt,
|
|
@@ -5082,4 +5082,4 @@ a.kg-cta-button {
|
|
|
5082
5082
|
export {
|
|
5083
5083
|
$t as default
|
|
5084
5084
|
};
|
|
5085
|
-
//# sourceMappingURL=index-
|
|
5085
|
+
//# sourceMappingURL=index-C5SK4d-U.mjs.map
|