@tryghost/activitypub 3.1.9 → 3.1.11
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-Mjg-pZ6w.mjs} +2 -2
- package/dist/at-sign-Mjg-pZ6w.mjs.map +1 -0
- package/dist/{avatar-flipboard-swo-37SU.mjs → avatar-flipboard-DrqqZst3.mjs} +2 -2
- package/dist/avatar-flipboard-DrqqZst3.mjs.map +1 -0
- package/dist/{bluesky-sharing-CLCMkEbr.mjs → bluesky-sharing-Chejq-Bq.mjs} +7 -7
- package/dist/bluesky-sharing-Chejq-Bq.mjs.map +1 -0
- package/dist/{copy-DpM3ttP6.mjs → copy-Ba_lzzCd.mjs} +2 -2
- package/dist/copy-Ba_lzzCd.mjs.map +1 -0
- package/dist/{deleted-feed-item-Dpgdv7Am.mjs → deleted-feed-item-BfpxKMlB.mjs} +8 -8
- package/dist/deleted-feed-item-BfpxKMlB.mjs.map +1 -0
- package/dist/edit-profile-jtzZtWG8.mjs +3810 -0
- package/dist/edit-profile-jtzZtWG8.mjs.map +1 -0
- package/dist/{feed-CUigsjj5.mjs → feed-BkSec9BE.mjs} +12 -12
- package/dist/feed-BkSec9BE.mjs.map +1 -0
- package/dist/{hash-cJ8IUw77.mjs → hash-D8uyJrFB.mjs} +2 -2
- package/dist/hash-D8uyJrFB.mjs.map +1 -0
- package/dist/{inbox-gnZvtbNZ.mjs → inbox-DZqNPQ3D.mjs} +2 -2
- package/dist/inbox-DZqNPQ3D.mjs.map +1 -0
- package/dist/{index-BC1Q-I5Z.mjs → index-Bq0BHGkI.mjs} +24 -24
- package/dist/index-Bq0BHGkI.mjs.map +1 -0
- package/dist/{index-Dc5IUcEt.mjs → index-CCW2g6Oi.mjs} +49 -49
- package/dist/index-CCW2g6Oi.mjs.map +1 -0
- package/dist/{index-DOW1_Ph3.mjs → index-CQNBd3-F.mjs} +54 -54
- package/dist/index-CQNBd3-F.mjs.map +1 -0
- package/dist/{index-DJ5p5ESW.mjs → index-CSkOAA7W.mjs} +13531 -12734
- package/dist/index-CSkOAA7W.mjs.map +1 -0
- package/dist/{index-BHjT-eBh.mjs → index-D8Ct0JF0.mjs} +19 -19
- package/dist/index-D8Ct0JF0.mjs.map +1 -0
- package/dist/{index-DRdHe0Xx.mjs → index-DYjHwtl7.mjs} +7 -7
- package/dist/index-DYjHwtl7.mjs.map +1 -0
- package/dist/{index-DBDE7Pwv.mjs → index-nevBSPxu.mjs} +2 -2
- package/dist/index-nevBSPxu.mjs.map +1 -0
- package/dist/{index-VTkGUYnZ.mjs → index-psiB4m1D.mjs} +92 -92
- package/dist/index-psiB4m1D.mjs.map +1 -0
- package/dist/{moderation-CF26LtsR.mjs → moderation-DFdpfisa.mjs} +7 -7
- package/dist/moderation-DFdpfisa.mjs.map +1 -0
- package/dist/{note-C7a3fpfu.mjs → note-kWeM_V5e.mjs} +6 -6
- package/dist/note-kWeM_V5e.mjs.map +1 -0
- package/dist/{reply-DNHDDszZ.mjs → reply-1lPjfeAY.mjs} +2 -2
- package/dist/reply-1lPjfeAY.mjs.map +1 -0
- package/dist/separator-COhI8ngj.mjs +39 -0
- package/dist/separator-COhI8ngj.mjs.map +1 -0
- package/dist/{settings-CK06at6A.mjs → settings-CEx9EwpB.mjs} +3 -3
- package/dist/settings-CEx9EwpB.mjs.map +1 -0
- package/dist/{step-1-CWOu7-_P.mjs → step-1-DoxN5zA3.mjs} +8 -8
- package/dist/{step-1-CWOu7-_P.mjs.map → step-1-DoxN5zA3.mjs.map} +1 -1
- package/dist/{step-2-Dcy43H6c.mjs → step-2-BWvVMlaH.mjs} +13 -13
- package/dist/step-2-BWvVMlaH.mjs.map +1 -0
- package/dist/{step-3-Dav_Yy5B.mjs → step-3-Dnq4l5zZ.mjs} +14 -14
- package/dist/step-3-Dnq4l5zZ.mjs.map +1 -0
- package/dist/{tabs-B7coKvuk.mjs → tabs-DTWhZwdk.mjs} +224 -226
- package/dist/tabs-DTWhZwdk.mjs.map +1 -0
- package/dist/{topic-filter-BIhCARLH.mjs → topic-filter-4W4f_LiH.mjs} +4 -4
- package/dist/topic-filter-4W4f_LiH.mjs.map +1 -0
- package/package.json +11 -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,8 +1,8 @@
|
|
|
1
|
-
import { j as e,
|
|
2
|
-
import { S as C } from "./separator-
|
|
3
|
-
import { H as
|
|
1
|
+
import { j as e, ar as k, A as N, c as f, d as y, b as v, as as P, e as _, H as R, B as g, at as z, C as I, a9 as M, S as b, P as B, aa as W, L as U, F as A, i as E, k as $, E as H, f as D, au as O, av as Q, aw as V, ax as T, ay as X } from "./index-CSkOAA7W.mjs";
|
|
2
|
+
import { S as C } from "./separator-COhI8ngj.mjs";
|
|
3
|
+
import { H as q } from "./hash-D8uyJrFB.mjs";
|
|
4
4
|
const p = ({ user: n }) => /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */ e.jsxs("div", { className: "relative my-5 w-full hover:cursor-pointer", children: [
|
|
5
|
-
/* @__PURE__ */ e.jsx("div", { className: "pointer-events-none absolute
|
|
5
|
+
/* @__PURE__ */ e.jsx("div", { className: "pointer-events-none absolute top-4 left-4", children: /* @__PURE__ */ e.jsx(N, { author: n }) }),
|
|
6
6
|
/* @__PURE__ */ e.jsx("div", { "aria-label": "New post", className: "text inset-0 flex h-[72px] w-full items-center justify-start rounded-lg bg-white pl-[68px] text-left text-[1.5rem] font-normal tracking-normal text-gray-500 shadow-[0_5px_24px_0px_rgba(0,0,0,0.02),0px_2px_5px_0px_rgba(0,0,0,0.07),0px_0px_1px_0px_rgba(0,0,0,0.25)] transition-all hover:bg-white hover:shadow-[0_5px_24px_0px_rgba(0,0,0,0.05),0px_14px_12px_-9px_rgba(0,0,0,0.07),0px_0px_1px_0px_rgba(0,0,0,0.25)] dark:border dark:border-gray-925 dark:bg-black dark:shadow-none dark:hover:border-gray-800 dark:hover:bg-black dark:hover:shadow-none", children: "What's new?" })
|
|
7
7
|
] }) }), G = () => {
|
|
8
8
|
const n = f(null), l = y(), [c, i] = v(!1), [x, d] = v(!0), { suggestedProfilesQuery: m, updateSuggestedProfile: r } = P("index", 10), { data: o = [], isLoading: a } = m, h = () => {
|
|
@@ -35,7 +35,7 @@ const p = ({ user: n }) => /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */
|
|
|
35
35
|
s.scrollBy({ left: 176 * 2, behavior: "smooth" });
|
|
36
36
|
};
|
|
37
37
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
38
|
-
/* @__PURE__ */ e.jsxs("div", { className: "pb-7
|
|
38
|
+
/* @__PURE__ */ e.jsxs("div", { className: "pt-4 pb-7", children: [
|
|
39
39
|
/* @__PURE__ */ e.jsxs("div", { className: "mb-3 flex items-center justify-between", children: [
|
|
40
40
|
/* @__PURE__ */ e.jsx(R, { className: "text-lg font-semibold text-black dark:text-white", children: "More people to follow" }),
|
|
41
41
|
/* @__PURE__ */ e.jsx(g, { className: "px-0 font-medium text-gray-700 hover:text-black dark:text-gray-600 dark:hover:text-white", variant: "link", onClick: () => l("/explore"), children: "Find more →" })
|
|
@@ -44,7 +44,7 @@ const p = ({ user: n }) => /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */
|
|
|
44
44
|
c && /* @__PURE__ */ e.jsx(
|
|
45
45
|
g,
|
|
46
46
|
{
|
|
47
|
-
className: "absolute
|
|
47
|
+
className: "absolute top-1/2 -left-10 z-10 size-10 -translate-y-1/2 text-gray-700 hover:bg-transparent max-lg:hidden dark:text-gray-600 dark:hover:text-white",
|
|
48
48
|
variant: "ghost",
|
|
49
49
|
onClick: F,
|
|
50
50
|
children: /* @__PURE__ */ e.jsx(z, { className: "size-6!" })
|
|
@@ -53,7 +53,7 @@ const p = ({ user: n }) => /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */
|
|
|
53
53
|
x && /* @__PURE__ */ e.jsx(
|
|
54
54
|
g,
|
|
55
55
|
{
|
|
56
|
-
className: "absolute
|
|
56
|
+
className: "absolute top-1/2 -right-10 z-10 size-10 -translate-y-1/2 text-gray-700 hover:bg-transparent max-lg:hidden dark:text-gray-600 dark:hover:text-white",
|
|
57
57
|
variant: "ghost",
|
|
58
58
|
onClick: L,
|
|
59
59
|
children: /* @__PURE__ */ e.jsx(I, { className: "size-6!" })
|
|
@@ -78,7 +78,7 @@ const p = ({ user: n }) => /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */
|
|
|
78
78
|
/* @__PURE__ */ e.jsx(
|
|
79
79
|
g,
|
|
80
80
|
{
|
|
81
|
-
className: "absolute right-2
|
|
81
|
+
className: "absolute top-1 right-2 hidden p-1 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",
|
|
82
82
|
variant: "link",
|
|
83
83
|
onClick: (w) => {
|
|
84
84
|
w.stopPropagation(), t((s == null ? void 0 : s.id) || "");
|
|
@@ -135,7 +135,7 @@ const p = ({ user: n }) => /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */
|
|
|
135
135
|
r.current && r.current.disconnect();
|
|
136
136
|
}), [x, d, i]);
|
|
137
137
|
const h = Math.max(0, Math.floor(l.length * 0.75) - 1);
|
|
138
|
-
return /* @__PURE__ */ e.jsx(U, { children: /* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ e.jsx("div", { className: "w-full", children: l.length > 0 ? /* @__PURE__ */ e.jsx("div", { className: "my-4", children: /* @__PURE__ */ e.jsx("div", { className: "mx-auto flex items-start gap-11", children: /* @__PURE__ */ e.jsx("div", { className: "flex w-full min-w-0 flex-col items-center", children: /* @__PURE__ */ e.jsxs("div", { className: "flex w-full
|
|
138
|
+
return /* @__PURE__ */ e.jsx(U, { children: /* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ e.jsx("div", { className: "w-full", children: l.length > 0 ? /* @__PURE__ */ e.jsx("div", { className: "my-4", children: /* @__PURE__ */ e.jsx("div", { className: "mx-auto flex items-start gap-11", children: /* @__PURE__ */ e.jsx("div", { className: "flex w-full min-w-0 flex-col items-center", children: /* @__PURE__ */ e.jsxs("div", { className: "flex w-full max-w-[620px] min-w-0 flex-col items-start", children: [
|
|
139
139
|
/* @__PURE__ */ e.jsx(p, { user: c }),
|
|
140
140
|
/* @__PURE__ */ e.jsxs("ul", { className: "mx-auto flex w-full flex-col px-4 max-lg:px-0", "data-testid": "feed-list", children: [
|
|
141
141
|
l.map((t, u) => /* @__PURE__ */ e.jsxs(
|
|
@@ -175,7 +175,7 @@ const p = ({ user: n }) => /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */
|
|
|
175
175
|
] }) }) }) }) : /* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col items-center gap-10", children: /* @__PURE__ */ e.jsxs("div", { className: "mt-4 flex w-full max-w-[620px] flex-col items-center", children: [
|
|
176
176
|
/* @__PURE__ */ e.jsx(p, { user: c }),
|
|
177
177
|
/* @__PURE__ */ e.jsx("div", { className: "mt-[-128px]", children: /* @__PURE__ */ e.jsxs(H, { children: [
|
|
178
|
-
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(
|
|
178
|
+
/* @__PURE__ */ e.jsx(D, { children: /* @__PURE__ */ e.jsx(q, {}) }),
|
|
179
179
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
180
180
|
"The Feed is the stream of thoughts and ",
|
|
181
181
|
/* @__PURE__ */ e.jsx("span", { className: "text-black dark:text-white", children: "bite-sized updates" }),
|
|
@@ -189,7 +189,7 @@ const p = ({ user: n }) => /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */
|
|
|
189
189
|
] }) }) }) }) });
|
|
190
190
|
}, ee = () => {
|
|
191
191
|
const { feedQuery: n } = Q({ enabled: !0 }), { data: l, error: c, fetchNextPage: i, hasNextPage: x, isFetchingNextPage: d, isLoading: m } = n, r = (l == null ? void 0 : l.pages.flatMap((a) => a.posts)) ?? Array.from({ length: 5 }, (a, h) => ({ id: `placeholder-${h}`, object: {} })), { data: o } = V("index");
|
|
192
|
-
return c &&
|
|
192
|
+
return c && T(c) ? /* @__PURE__ */ e.jsx(X, { errorCode: c.code, statusCode: c.statusCode }) : /* @__PURE__ */ e.jsx(
|
|
193
193
|
J,
|
|
194
194
|
{
|
|
195
195
|
activities: r,
|
|
@@ -204,4 +204,4 @@ const p = ({ user: n }) => /* @__PURE__ */ e.jsx(k, { children: /* @__PURE__ */
|
|
|
204
204
|
export {
|
|
205
205
|
ee as default
|
|
206
206
|
};
|
|
207
|
-
//# sourceMappingURL=feed-
|
|
207
|
+
//# sourceMappingURL=feed-BkSec9BE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feed-BkSec9BE.mjs","sources":["../src/views/feed/components/feed-input.tsx","../src/views/feed/components/suggested-profiles.tsx","../src/views/feed/components/feed-list.tsx","../src/views/feed/feed.tsx"],"sourcesContent":["import APAvatar from '@src/components/global/ap-avatar';\nimport NewNoteModal from '@src/components/modals/new-note-modal';\nimport {ActorProperties} from '@tryghost/admin-x-framework/api/activitypub';\n\nconst FeedInput: React.FC<{user?: ActorProperties}> = ({user}) => {\n return (\n <NewNoteModal>\n <div className='relative my-5 w-full hover:cursor-pointer'>\n <div className='pointer-events-none absolute top-4 left-4'>\n <APAvatar author={user as ActorProperties} />\n </div>\n <div aria-label='New post' className='text inset-0 flex h-[72px] w-full items-center justify-start rounded-lg bg-white pl-[68px] text-left text-[1.5rem] font-normal tracking-normal text-gray-500 shadow-[0_5px_24px_0px_rgba(0,0,0,0.02),0px_2px_5px_0px_rgba(0,0,0,0.07),0px_0px_1px_0px_rgba(0,0,0,0.25)] transition-all hover:bg-white hover:shadow-[0_5px_24px_0px_rgba(0,0,0,0.05),0px_14px_12px_-9px_rgba(0,0,0,0.07),0px_0px_1px_0px_rgba(0,0,0,0.25)] dark:border dark:border-gray-925 dark:bg-black dark:shadow-none dark:hover:border-gray-800 dark:hover:bg-black dark:hover:shadow-none'>What's new?</div>\n </div>\n </NewNoteModal>\n );\n};\n\nexport default FeedInput;","import APAvatar from '@src/components/global/ap-avatar';\nimport FollowButton from '@src/components/global/follow-button';\nimport ProfilePreviewHoverCard from '@components/global/profile-preview-hover-card';\nimport {Account} from '@src/api/activitypub';\nimport {Button, Separator, Skeleton} from '@tryghost/shade/components';\nimport {H4} from '@tryghost/shade/primitives';\nimport {LucideIcon} from '@tryghost/shade/utils';\nimport {useEffect, useRef, useState} from 'react';\nimport {useNavigateWithBasePath} from '@src/hooks/use-navigate-with-base-path';\nimport {useSuggestedProfilesForUser} from '@src/hooks/use-activity-pub-queries';\n\nconst SuggestedProfiles: React.FC = () => {\n const scrollContainerRef = useRef<HTMLDivElement>(null);\n const navigate = useNavigateWithBasePath();\n const [canScrollLeft, setCanScrollLeft] = useState(false);\n const [canScrollRight, setCanScrollRight] = useState(true);\n\n const {suggestedProfilesQuery, updateSuggestedProfile} = useSuggestedProfilesForUser('index', 10);\n const {data: suggestedProfilesData = [], isLoading: isLoadingSuggestedProfiles} = suggestedProfilesQuery;\n\n const updateScrollButtons = () => {\n const container = scrollContainerRef.current;\n if (!container) {\n return;\n }\n\n const canScrollL = container.scrollLeft > 0;\n const canScrollR = container.scrollLeft < container.scrollWidth - container.clientWidth;\n\n setCanScrollLeft(canScrollL);\n setCanScrollRight(canScrollR);\n };\n\n useEffect(() => {\n updateScrollButtons();\n }, [suggestedProfilesData]);\n\n if (!isLoadingSuggestedProfiles && (!suggestedProfilesData || suggestedProfilesData.length < 4)) {\n return null;\n }\n\n const handleDismiss = (profileId: string) => {\n // TODO: Implement dismiss functionality\n void profileId;\n };\n\n const handleFollow = (profile: Account) => {\n updateSuggestedProfile(profile.id, {\n followedByMe: true\n });\n };\n\n const handleUnfollow = (profile: Account) => {\n updateSuggestedProfile(profile.id, {\n followedByMe: false\n });\n };\n\n const scrollLeft = () => {\n const container = scrollContainerRef.current;\n if (!container) {\n return;\n }\n\n const cardWidth = 160 + 16; // w-40 (160px) + gap-4 (16px)\n container.scrollBy({left: -cardWidth * 2, behavior: 'smooth'});\n };\n\n const scrollRight = () => {\n const container = scrollContainerRef.current;\n if (!container) {\n return;\n }\n\n const cardWidth = 160 + 16; // w-40 (160px) + gap-4 (16px)\n container.scrollBy({left: cardWidth * 2, behavior: 'smooth'});\n };\n\n return (\n <>\n <div className='pt-4 pb-7'>\n <div className='mb-3 flex items-center justify-between'>\n <H4 className='text-lg font-semibold text-black dark:text-white'>More people to follow</H4>\n <Button className='px-0 font-medium text-gray-700 hover:text-black dark:text-gray-600 dark:hover:text-white' variant='link' onClick={() => navigate('/explore')}>\n Find more →\n </Button>\n </div>\n\n <div className='relative'>\n {canScrollLeft && (\n <Button\n className='absolute top-1/2 -left-10 z-10 size-10 -translate-y-1/2 text-gray-700 hover:bg-transparent max-lg:hidden dark:text-gray-600 dark:hover:text-white'\n variant='ghost'\n onClick={scrollLeft}\n >\n <LucideIcon.ChevronLeft className='size-6!' />\n </Button>\n )}\n\n {canScrollRight && (\n <Button\n className='absolute top-1/2 -right-10 z-10 size-10 -translate-y-1/2 text-gray-700 hover:bg-transparent max-lg:hidden dark:text-gray-600 dark:hover:text-white'\n variant='ghost'\n onClick={scrollRight}\n >\n <LucideIcon.ChevronRight className='size-6!' />\n </Button>\n )}\n\n <div\n ref={scrollContainerRef}\n className='flex snap-x snap-mandatory gap-4 overflow-x-auto'\n style={{\n scrollbarWidth: 'none',\n msOverflowStyle: 'none'\n }}\n onScroll={updateScrollButtons}\n >\n {(isLoadingSuggestedProfiles ? Array(10).fill(null) : (suggestedProfilesData || [])).map((profile, index) => (\n <div\n key={profile?.id || `loading-${index}`}\n className='relative w-40 shrink-0 snap-start rounded-lg bg-gray-75 p-4 dark:bg-gray-925/30'\n onClick={!isLoadingSuggestedProfiles && profile ? () => navigate(`/profile/${profile.handle}`) : undefined}\n >\n <Button\n className='absolute top-1 right-2 hidden p-1 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300'\n variant='link'\n onClick={(e) => {\n e.stopPropagation();\n handleDismiss(profile?.id || '');\n }}\n >\n <LucideIcon.X className='size-4' />\n </Button>\n\n <div className='flex flex-col items-center text-center'>\n <div className='mb-3'>\n {isLoadingSuggestedProfiles ? (\n <Skeleton className='size-16 rounded-full' />\n ) : (\n <ProfilePreviewHoverCard actor={profile} align='center'>\n <div>\n <APAvatar\n author={{\n icon: {url: profile?.avatarUrl || ''},\n name: profile?.name || '',\n handle: profile?.handle || ''\n }}\n size='md'\n />\n </div>\n </ProfilePreviewHoverCard>\n )}\n </div>\n\n <span className='mb-6 w-full truncate font-semibold text-black dark:text-white'>\n {isLoadingSuggestedProfiles ? (\n <Skeleton className='h-5 w-32' />\n ) : (\n profile?.name || ''\n )}\n </span>\n\n {isLoadingSuggestedProfiles ? (\n <Skeleton className='h-8 w-16' />\n ) : (\n <FollowButton\n following={profile?.followedByMe || false}\n handle={profile?.handle || ''}\n type='primary'\n onFollow={() => profile && handleFollow(profile)}\n onUnfollow={() => profile && handleUnfollow(profile)}\n />\n )}\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n <Separator />\n </>\n );\n};\n\nexport default SuggestedProfiles;\n","import FeedInput from './feed-input';\nimport FeedItem from '@src/components/feed/feed-item';\nimport Layout from '@src/components/layout';\nimport NewNoteModal from '@src/components/modals/new-note-modal';\nimport SuggestedProfiles from './suggested-profiles';\nimport {Activity} from '@src/api/activitypub';\nimport {ActorProperties} from '@tryghost/admin-x-framework/api/activitypub';\nimport {Button, LoadingIndicator, Separator} from '@tryghost/shade/components';\nimport {EmptyViewIcon, EmptyViewIndicator} from '@src/components/global/empty-view-indicator';\nimport {LucideIcon} from '@tryghost/shade/utils';\nimport {isPendingActivity} from '@src/utils/pending-activity';\nimport {useEffect, useRef} from 'react';\nimport {useNavigateWithBasePath} from '@src/hooks/use-navigate-with-base-path';\n\nexport type FeedListProps = {\n isLoading: boolean,\n activities: Activity[],\n user: ActorProperties,\n fetchNextPage: () => void,\n hasNextPage: boolean,\n isFetchingNextPage: boolean\n}\n\nconst FeedList:React.FC<FeedListProps> = ({\n isLoading,\n activities,\n user,\n fetchNextPage,\n hasNextPage,\n isFetchingNextPage\n}) => {\n const navigate = useNavigateWithBasePath();\n\n const observerRef = useRef<IntersectionObserver | null>(null);\n const loadMoreRef = useRef<HTMLDivElement | null>(null);\n const endLoadMoreRef = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (observerRef.current) {\n observerRef.current.disconnect();\n }\n\n observerRef.current = new IntersectionObserver((entries) => {\n if (entries[0].isIntersecting && hasNextPage && !isFetchingNextPage) {\n fetchNextPage();\n }\n });\n\n if (loadMoreRef.current) {\n observerRef.current.observe(loadMoreRef.current);\n }\n\n if (endLoadMoreRef.current) {\n observerRef.current.observe(endLoadMoreRef.current);\n }\n\n return () => {\n if (observerRef.current) {\n observerRef.current.disconnect();\n }\n };\n }, [hasNextPage, isFetchingNextPage, fetchNextPage]);\n\n const loadMoreIndex = Math.max(0, Math.floor(activities.length * 0.75) - 1);\n\n return (\n <Layout>\n <div className='flex w-full flex-col'>\n <div className='w-full'>\n {activities.length > 0 ? (\n <div className='my-4'>\n <div className='mx-auto flex items-start gap-11'>\n <div className='flex w-full min-w-0 flex-col items-center'>\n <div className='flex w-full max-w-[620px] min-w-0 flex-col items-start'>\n <FeedInput user={user} />\n <ul className='mx-auto flex w-full flex-col px-4 max-lg:px-0' data-testid=\"feed-list\">\n {activities.map((activity, index) => (\n <li\n // eslint-disable-next-line react/no-array-index-key\n key={`${activity.id}-${activity.type}-${index}`} // We are using index here as activity.id is cannot be guaranteed to be unique at the moment\n data-testid=\"feed-item\"\n data-test-view-article\n >\n <FeedItem\n actor={activity.actor}\n allowDelete={activity.object.authored}\n commentCount={activity.object.replyCount ?? 0}\n isLoading={isLoading}\n isPending={isPendingActivity(activity.id)}\n layout={'feed'}\n likeCount={activity.object.likeCount ?? 0}\n object={activity.object}\n repostCount={activity.object.repostCount ?? 0}\n type={activity.type}\n onClick={() => {\n navigate(`/notes/${encodeURIComponent(activity.id)}`);\n }}\n />\n {index < activities.length - 1 && (\n <Separator />\n )}\n {index === 3 && (\n <SuggestedProfiles />\n )}\n {index === loadMoreIndex && (\n <div ref={loadMoreRef} className='h-1'></div>\n )}\n </li>\n ))}\n {isFetchingNextPage && (\n <li className='flex flex-col items-center justify-center gap-4 text-center'>\n <LoadingIndicator size='md' />\n </li>\n )}\n </ul>\n <div ref={endLoadMoreRef} className='h-1'></div>\n </div>\n </div>\n </div>\n </div>\n ) : (\n <div className='flex w-full flex-col items-center gap-10'>\n <div className='mt-4 flex w-full max-w-[620px] flex-col items-center'>\n <FeedInput user={user} />\n <div className='mt-[-128px]'>\n <EmptyViewIndicator>\n <EmptyViewIcon><LucideIcon.Hash /></EmptyViewIcon>\n <div>The Feed is the stream of thoughts and <span className='text-black dark:text-white'>bite-sized updates</span> from people you follow in the Social Web. It's looking a little empty right now but once the people you follow start posting, their updates will show up here.</div>\n <NewNoteModal>\n <Button className='text-white dark:text-black'>\n <LucideIcon.FilePen />\n Write your first note\n </Button>\n </NewNoteModal>\n </EmptyViewIndicator>\n </div>\n </div>\n </div>\n )}\n </div>\n </div>\n </Layout>\n );\n};\n\nexport default FeedList;\n","import AppError from '@components/layout/error';\nimport FeedList from './components/feed-list';\nimport React from 'react';\nimport {isApiError} from '@src/api/activitypub';\nimport {\n useFeedForUser,\n useUserDataForUser\n} from '@hooks/use-activity-pub-queries';\n\nconst Feed: React.FC = () => {\n const {feedQuery} = useFeedForUser({enabled: true});\n const {data, error, fetchNextPage, hasNextPage, isFetchingNextPage, isLoading} = feedQuery;\n\n const activities = (data?.pages.flatMap(page => page.posts) ?? Array.from({length: 5}, (_, index) => ({id: `placeholder-${index}`, object: {}})));\n\n const {data: user} = useUserDataForUser('index');\n\n if (error && isApiError(error)) {\n return <AppError errorCode={error.code} statusCode={error.statusCode}/>;\n }\n\n return <FeedList\n activities={activities}\n fetchNextPage={fetchNextPage}\n hasNextPage={hasNextPage!}\n isFetchingNextPage={isFetchingNextPage}\n isLoading={isLoading}\n user={user!}\n />;\n};\n\nexport default Feed;\n"],"names":["FeedInput","user","jsx","NewNoteModal","jsxs","APAvatar","SuggestedProfiles","scrollContainerRef","useRef","navigate","useNavigateWithBasePath","canScrollLeft","setCanScrollLeft","useState","canScrollRight","setCanScrollRight","suggestedProfilesQuery","updateSuggestedProfile","useSuggestedProfilesForUser","suggestedProfilesData","isLoadingSuggestedProfiles","updateScrollButtons","container","canScrollL","canScrollR","useEffect","handleDismiss","profileId","handleFollow","profile","handleUnfollow","scrollLeft","scrollRight","Fragment","H4","Button","LucideIcon.ChevronLeft","LucideIcon.ChevronRight","index","e","LucideIcon.X","Skeleton","ProfilePreviewHoverCard","FollowButton","Separator","FeedList","isLoading","activities","fetchNextPage","hasNextPage","isFetchingNextPage","observerRef","loadMoreRef","endLoadMoreRef","entries","loadMoreIndex","Layout","activity","FeedItem","isPendingActivity","LoadingIndicator","EmptyViewIndicator","EmptyViewIcon","LucideIcon.Hash","LucideIcon.FilePen","Feed","feedQuery","useFeedForUser","data","error","page","_","useUserDataForUser","isApiError","AppError"],"mappings":";;;AAIA,MAAMA,IAAgD,CAAC,EAAC,MAAAC,QAEhDC,gBAAAA,EAAAA,IAACC,GAAA,EACG,UAAAC,gBAAAA,EAAAA,KAAC,OAAA,EAAI,WAAU,6CACX,UAAA;AAAA,EAAAF,gBAAAA,EAAAA,IAAC,SAAI,WAAU,6CACX,gCAACG,GAAA,EAAS,QAAQJ,GAAyB,EAAA,CAC/C;AAAA,wBACC,OAAA,EAAI,cAAW,YAAW,WAAU,miBAAkiB,UAAA,cAAA,CAAgB;AAAA,EAAA,CAC3lB,EAAA,CACJ,GCFFK,IAA8B,MAAM;AACtC,QAAMC,IAAqBC,EAAuB,IAAI,GAChDC,IAAWC,EAAA,GACX,CAACC,GAAeC,CAAgB,IAAIC,EAAS,EAAK,GAClD,CAACC,GAAgBC,CAAiB,IAAIF,EAAS,EAAI,GAEnD,EAAC,wBAAAG,GAAwB,wBAAAC,EAAA,IAA0BC,EAA4B,SAAS,EAAE,GAC1F,EAAC,MAAMC,IAAwB,CAAA,GAAI,WAAWC,MAA8BJ,GAE5EK,IAAsB,MAAM;AAC9B,UAAMC,IAAYf,EAAmB;AACrC,QAAI,CAACe;AACD;AAGJ,UAAMC,IAAaD,EAAU,aAAa,GACpCE,IAAaF,EAAU,aAAaA,EAAU,cA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IAAI,eAAeA,CAAK,IAAI,QAAQ,CAAA,EAAC,EAAG,GAEzI,EAAC,MAAMrC,MAAQuE,EAAmB,OAAO;AAE/C,SAAIH,KAASI,EAAWJ,CAAK,0BACjBK,GAAA,EAAS,WAAWL,EAAM,MAAM,YAAYA,EAAM,YAAW,IAGlEnE,gBAAAA,EAAAA;AAAAA,IAAC2C;AAAA,IAAA;AAAA,MACJ,YAAAE;AAAA,MACA,eAAAC;AAAA,MACA,aAAAC;AAAA,MACA,oBAAAC;AAAA,MACA,WAAAJ;AAAA,MACA,MAAA7C;AAAA,IAAA;AAAA,EAAA;AAER;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a6 as e } from "./index-
|
|
1
|
+
import { a6 as e } from "./index-CSkOAA7W.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.553.0 - ISC
|
|
4
4
|
*
|
|
@@ -14,4 +14,4 @@ const y = [
|
|
|
14
14
|
export {
|
|
15
15
|
x as H
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=hash-
|
|
17
|
+
//# sourceMappingURL=hash-D8uyJrFB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash-D8uyJrFB.mjs","sources":["../../../node_modules/.pnpm/lucide-react@0.553.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/hash.js"],"sourcesContent":["/**\n * @license lucide-react v0.553.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"line\", { x1: \"4\", x2: \"20\", y1: \"9\", y2: \"9\", key: \"4lhtct\" }],\n [\"line\", { x1: \"4\", x2: \"20\", y1: \"15\", y2: \"15\", key: \"vyu0kd\" }],\n [\"line\", { x1: \"10\", x2: \"8\", y1: \"3\", y2: \"21\", key: \"1ggp8o\" }],\n [\"line\", { x1: \"16\", x2: \"14\", y1: \"3\", y2: \"21\", key: \"weycgp\" }]\n];\nconst Hash = createLucideIcon(\"hash\", __iconNode);\n\nexport { __iconNode, Hash as default };\n//# sourceMappingURL=hash.js.map\n"],"names":["__iconNode","Hash","createLucideIcon"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa;AAAA,EACjB,CAAC,QAAQ,EAAE,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,KAAK,SAAQ,CAAE;AAAA,EAC/D,CAAC,QAAQ,EAAE,IAAI,KAAK,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,KAAK,SAAQ,CAAE;AAAA,EACjE,CAAC,QAAQ,EAAE,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,IAAI,MAAM,KAAK,SAAQ,CAAE;AAAA,EAChE,CAAC,QAAQ,EAAE,IAAI,MAAM,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,KAAK,SAAQ,CAAE;AACnE,GACMC,IAAOC,EAAiB,QAAQF,CAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a6 as o } from "./index-
|
|
1
|
+
import { a6 as o } from "./index-CSkOAA7W.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.553.0 - ISC
|
|
4
4
|
*
|
|
@@ -18,4 +18,4 @@ const t = [
|
|
|
18
18
|
export {
|
|
19
19
|
e as I
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=inbox-
|
|
21
|
+
//# sourceMappingURL=inbox-DZqNPQ3D.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox-DZqNPQ3D.mjs","sources":["../../../node_modules/.pnpm/lucide-react@0.553.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/inbox.js"],"sourcesContent":["/**\n * @license lucide-react v0.553.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"polyline\", { points: \"22 12 16 12 14 15 10 15 8 12 2 12\", key: \"o97t9d\" }],\n [\n \"path\",\n {\n d: \"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z\",\n key: \"oot6mr\"\n }\n ]\n];\nconst Inbox = createLucideIcon(\"inbox\", __iconNode);\n\nexport { __iconNode, Inbox as default };\n//# sourceMappingURL=inbox.js.map\n"],"names":["__iconNode","Inbox","createLucideIcon"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa;AAAA,EACjB,CAAC,YAAY,EAAE,QAAQ,qCAAqC,KAAK,SAAQ,CAAE;AAAA,EAC3E;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IACX;AAAA,EACA;AACA,GACMC,IAAQC,EAAiB,SAASF,CAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { C as m3 } from "./copy-
|
|
4
|
-
import { a as F6 } from "./settings-
|
|
1
|
+
import { ae as cA, j as t, am as y4, c as aA, e as hA, W as sA, b as mA, al as _5, ao as g1, az as $5, bj as A6, ah as g3, aR as r6, an as VA, aS as E3, aQ as F3, b1 as e6, ag as x3, aY as t6, aZ as C6, bk as n6, a_ as s6, a6 as H3, b2 as o6, s as E1, R as iA, b3 as l6, aj as a6, ak as i6, bl as B6, bm as b2, I as M3, B as v3, k as c6, bn as u6, A as f6, S as j2, Y as h6, O as l4, Q as Q6, ax as d6, ay as p6, L as U6 } from "./index-CSkOAA7W.mjs";
|
|
2
|
+
import { I as w6, c as N3, u as g6, R as E6 } from "./index-nevBSPxu.mjs";
|
|
3
|
+
import { C as m3 } from "./copy-Ba_lzzCd.mjs";
|
|
4
|
+
import { a as F6 } from "./settings-CEx9EwpB.mjs";
|
|
5
5
|
var x6 = Object.freeze({
|
|
6
6
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
7
7
|
position: "absolute",
|
|
@@ -25,7 +25,7 @@ var x6 = Object.freeze({
|
|
|
25
25
|
)
|
|
26
26
|
);
|
|
27
27
|
K3.displayName = H6;
|
|
28
|
-
var M6 = K3, [F1] =
|
|
28
|
+
var M6 = K3, [F1] = x3("Tooltip", [
|
|
29
29
|
E3
|
|
30
30
|
]), x1 = E3(), I3 = "TooltipProvider", v6 = 700, $1 = "tooltip.open", [N6, E2] = F1(I3), R3 = (A) => {
|
|
31
31
|
const {
|
|
@@ -115,7 +115,7 @@ var O4 = "Tooltip", [m6, G4] = F1(O4), Z3 = (A) => {
|
|
|
115
115
|
Z3.displayName = O4;
|
|
116
116
|
var A2 = "TooltipTrigger", b3 = cA(
|
|
117
117
|
(A, r) => {
|
|
118
|
-
const { __scopeTooltip: e, ...C } = A, n = G4(A2, e), s = E2(A2, e), o = x1(e), l = aA(null), a =
|
|
118
|
+
const { __scopeTooltip: e, ...C } = A, n = G4(A2, e), s = E2(A2, e), o = x1(e), l = aA(null), a = g3(r, l, n.onTriggerChange), i = aA(!1), B = aA(!1), c = sA(() => i.current = !1, []);
|
|
119
119
|
return hA(() => () => document.removeEventListener("pointerup", c), [c]), /* @__PURE__ */ t.jsx(r6, { asChild: !0, ...o, children: /* @__PURE__ */ t.jsx(
|
|
120
120
|
y4.button,
|
|
121
121
|
{
|
|
@@ -146,16 +146,16 @@ var F2 = "TooltipPortal", [K6, I6] = F1(F2, {
|
|
|
146
146
|
forceMount: void 0
|
|
147
147
|
}), j3 = (A) => {
|
|
148
148
|
const { __scopeTooltip: r, forceMount: e, children: C, container: n } = A, s = G4(F2, r);
|
|
149
|
-
return /* @__PURE__ */ t.jsx(K6, { scope: r, forceMount: e, children: /* @__PURE__ */ t.jsx(
|
|
149
|
+
return /* @__PURE__ */ t.jsx(K6, { scope: r, forceMount: e, children: /* @__PURE__ */ t.jsx(F3, { present: e || s.open, children: /* @__PURE__ */ t.jsx(e6, { asChild: !0, container: n, children: C }) }) });
|
|
150
150
|
};
|
|
151
151
|
j3.displayName = F2;
|
|
152
152
|
var B4 = "TooltipContent", y3 = cA(
|
|
153
153
|
(A, r) => {
|
|
154
154
|
const e = I6(B4, A.__scopeTooltip), { forceMount: C = e.forceMount, side: n = "top", ...s } = A, o = G4(B4, A.__scopeTooltip);
|
|
155
|
-
return /* @__PURE__ */ t.jsx(
|
|
155
|
+
return /* @__PURE__ */ t.jsx(F3, { present: C || o.open, children: o.disableHoverableContent ? /* @__PURE__ */ t.jsx(O3, { side: n, ...s, ref: r }) : /* @__PURE__ */ t.jsx(R6, { side: n, ...s, ref: r }) });
|
|
156
156
|
}
|
|
157
157
|
), R6 = cA((A, r) => {
|
|
158
|
-
const e = G4(B4, A.__scopeTooltip), C = E2(B4, A.__scopeTooltip), n = aA(null), s =
|
|
158
|
+
const e = G4(B4, A.__scopeTooltip), C = E2(B4, A.__scopeTooltip), n = aA(null), s = g3(r, n), [o, l] = mA(null), { trigger: a, onClose: i } = e, B = n.current, { onPointerInTransitChange: c } = C, h = sA(() => {
|
|
159
159
|
l(null), c(!1);
|
|
160
160
|
}, [c]), Q = sA(
|
|
161
161
|
(U, g) => {
|
|
@@ -389,7 +389,7 @@ var T3 = "Toggle", x2 = cA((A, r) => {
|
|
|
389
389
|
);
|
|
390
390
|
});
|
|
391
391
|
x2.displayName = T3;
|
|
392
|
-
var L3 = x2, DA = "ToggleGroup", [G3] =
|
|
392
|
+
var L3 = x2, DA = "ToggleGroup", [G3] = x3(DA, [
|
|
393
393
|
N3
|
|
394
394
|
]), V3 = N3(), H2 = iA.forwardRef((A, r) => {
|
|
395
395
|
const { type: e, ...C } = A;
|
|
@@ -517,7 +517,7 @@ var y2 = iA.forwardRef(
|
|
|
517
517
|
}
|
|
518
518
|
), k3 = H2, J3 = W3;
|
|
519
519
|
const q3 = l6(
|
|
520
|
-
"
|
|
520
|
+
"inline-flex items-center justify-center gap-2 rounded-xs text-sm font-medium text-text-secondary transition-colors hover:bg-surface-elevated hover:text-foreground focus-visible:ring-1 focus-visible:ring-focus-ring focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-background data-[state=on]:text-foreground data-[state=on]:shadow-sm [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:stroke-[1.5px]",
|
|
521
521
|
{
|
|
522
522
|
variants: {
|
|
523
523
|
variant: {
|
|
@@ -542,21 +542,21 @@ const q3 = l6(
|
|
|
542
542
|
}
|
|
543
543
|
));
|
|
544
544
|
e7.displayName = L3.displayName;
|
|
545
|
-
const Y3 =
|
|
545
|
+
const Y3 = i6({
|
|
546
546
|
size: "default",
|
|
547
547
|
variant: "default"
|
|
548
548
|
}), r2 = cA(({ className: A, variant: r, size: e, children: C, ...n }, s) => /* @__PURE__ */ t.jsx(
|
|
549
549
|
k3,
|
|
550
550
|
{
|
|
551
551
|
ref: s,
|
|
552
|
-
className: E1("inline-flex items-center justify-center gap-0.5 bg-
|
|
552
|
+
className: E1("inline-flex items-center justify-center gap-0.5 bg-muted p-0.5 rounded-md", A),
|
|
553
553
|
...n,
|
|
554
554
|
children: /* @__PURE__ */ t.jsx(Y3.Provider, { value: { variant: r, size: e }, children: C })
|
|
555
555
|
}
|
|
556
556
|
));
|
|
557
557
|
r2.displayName = k3.displayName;
|
|
558
558
|
const C4 = cA(({ className: A, children: r, variant: e, size: C, ...n }, s) => {
|
|
559
|
-
const o =
|
|
559
|
+
const o = a6(Y3);
|
|
560
560
|
return /* @__PURE__ */ t.jsx(
|
|
561
561
|
J3,
|
|
562
562
|
{
|
|
@@ -5793,7 +5793,7 @@ const Or = "SiteResponseType", Sr = B6({
|
|
|
5793
5793
|
}), q = (A, r) => {
|
|
5794
5794
|
const e = parseInt(A.slice(1, 3), 16), C = parseInt(A.slice(3, 5), 16), n = parseInt(A.slice(5, 7), 16);
|
|
5795
5795
|
return `rgba(${e}, ${C}, ${n}, ${r})`;
|
|
5796
|
-
}, g2 =
|
|
5796
|
+
}, g2 = u6(({
|
|
5797
5797
|
isScreenshot: A = !1,
|
|
5798
5798
|
format: r = "vertical",
|
|
5799
5799
|
account: e,
|
|
@@ -5855,7 +5855,7 @@ const Or = "SiteResponseType", Sr = B6({
|
|
|
5855
5855
|
src: I
|
|
5856
5856
|
}
|
|
5857
5857
|
) : /* @__PURE__ */ t.jsx("div", { className: "relative size-full overflow-hidden rounded-[26px] rounded-b-none", style: { background: `linear-gradient(to bottom, ${q(i === "accent" ? "#ffffff" : B || "#15171a", 1)}, ${q(i === "accent" ? "#ffffff" : B || "#15171a", 0.5)})` }, children: /* @__PURE__ */ t.jsx(e2, { className: "absolute", style: { color: i === "accent" ? q(B || "#15171a", 0.2) : "rgba(255, 255, 255, 0.2)", top: A ? "-42px" : "-84px", left: A ? "-69px" : "-138px" } }) }),
|
|
5858
|
-
R && /* @__PURE__ */ t.jsx("div", { className: "
|
|
5858
|
+
R && /* @__PURE__ */ t.jsx("div", { className: "absolute bottom-0 left-1/2 -mb-8 -translate-x-1/2 rounded-full border-8 [&_img]:size-16! [&>div]:size-16!", style: { borderColor: d }, children: /* @__PURE__ */ t.jsx(
|
|
5859
5859
|
f6,
|
|
5860
5860
|
{
|
|
5861
5861
|
author: {
|
|
@@ -5875,7 +5875,7 @@ const Or = "SiteResponseType", Sr = B6({
|
|
|
5875
5875
|
/* @__PURE__ */ t.jsx(
|
|
5876
5876
|
"div",
|
|
5877
5877
|
{
|
|
5878
|
-
className: `mt-auto flex max-h-[60px] min-h-12 w-full items-center justify-center
|
|
5878
|
+
className: `mt-auto flex max-h-[60px] min-h-12 w-full items-center justify-center rounded-full border px-4 py-2 leading-tight font-medium break-all ${A && "tracking-normal"}`,
|
|
5879
5879
|
style: {
|
|
5880
5880
|
color: i !== "light" ? "#fff" : B,
|
|
5881
5881
|
borderColor: B ? q(i === "accent" ? "#ffffff" : B, i !== "light" ? 0.7 : 0.2) : void 0,
|
|
@@ -6059,18 +6059,18 @@ const Dr = ({ account: A, isLoading: r }) => {
|
|
|
6059
6059
|
] }) })
|
|
6060
6060
|
] }),
|
|
6061
6061
|
/* @__PURE__ */ t.jsxs(v3, { className: `min-w-[160px] dark:bg-black dark:text-white dark:hover:bg-black/90 ${l === "dark" && "bg-white text-black hover:bg-gray-50 dark:bg-white dark:text-black dark:hover:bg-gray-50/90"}`, onClick: O, children: [
|
|
6062
|
-
c ? /* @__PURE__ */ t.jsx(
|
|
6062
|
+
c ? /* @__PURE__ */ t.jsx(c6, { color: `${l === "dark" ? "dark" : "light"}`, size: "sm" }) : /* @__PURE__ */ t.jsx(m3, {}),
|
|
6063
6063
|
!c && "Copy image"
|
|
6064
6064
|
] })
|
|
6065
6065
|
] }),
|
|
6066
|
-
((A == null ? void 0 : A.bannerImageUrl) || n) && /* @__PURE__ */ t.jsx(e2, { className: `absolute
|
|
6066
|
+
((A == null ? void 0 : A.bannerImageUrl) || n) && /* @__PURE__ */ t.jsx(e2, { className: `absolute top-1/2 left-1/2 h-[600px] w-[598px] -translate-x-1/2 -translate-y-1/2 ${l === "dark" && "z-10"}`, style: { color: M() } }),
|
|
6067
6067
|
/* @__PURE__ */ t.jsx("div", { className: "absolute inset-0", style: { background: m() } })
|
|
6068
6068
|
] }),
|
|
6069
6069
|
/* @__PURE__ */ t.jsxs(
|
|
6070
6070
|
"div",
|
|
6071
6071
|
{
|
|
6072
6072
|
ref: o,
|
|
6073
|
-
className: "fixed left-[-9999px]
|
|
6073
|
+
className: "fixed top-0 left-[-9999px] z-[-1] flex w-fit justify-center overflow-hidden rounded-2xl bg-gray-50",
|
|
6074
6074
|
style: {
|
|
6075
6075
|
width: i === "square" ? "518px" : "412px",
|
|
6076
6076
|
fontFamily: "system-ui"
|
|
@@ -6092,17 +6092,17 @@ const Dr = ({ account: A, isLoading: r }) => {
|
|
|
6092
6092
|
siteTitle: (S = e == null ? void 0 : e.site) == null ? void 0 : S.title
|
|
6093
6093
|
}
|
|
6094
6094
|
),
|
|
6095
|
-
((A == null ? void 0 : A.bannerImageUrl) || n) && /* @__PURE__ */ t.jsx(e2, { className: `absolute
|
|
6095
|
+
((A == null ? void 0 : A.bannerImageUrl) || n) && /* @__PURE__ */ t.jsx(e2, { className: `absolute top-[-44px] left-[-62.5px] h-[600px] w-[598px] ${l === "dark" && "z-10"}`, style: { color: M() } }),
|
|
6096
6096
|
/* @__PURE__ */ t.jsx(
|
|
6097
6097
|
"div",
|
|
6098
6098
|
{
|
|
6099
|
-
className: "absolute
|
|
6099
|
+
className: "absolute top-0 left-0 size-full",
|
|
6100
6100
|
style: {
|
|
6101
6101
|
background: m()
|
|
6102
6102
|
}
|
|
6103
6103
|
}
|
|
6104
6104
|
),
|
|
6105
|
-
/* @__PURE__ */ t.jsx("img", { className: "absolute left-1/2
|
|
6105
|
+
/* @__PURE__ */ t.jsx("img", { className: "absolute top-12 left-1/2 mt-0.5 max-w-none -translate-x-1/2", src: i === "square" ? C7 : t7, style: { width: i === "square" ? "572px" : "466px" } })
|
|
6106
6106
|
]
|
|
6107
6107
|
}
|
|
6108
6108
|
)
|
|
@@ -6117,4 +6117,4 @@ const Dr = ({ account: A, isLoading: r }) => {
|
|
|
6117
6117
|
export {
|
|
6118
6118
|
zr as default
|
|
6119
6119
|
};
|
|
6120
|
-
//# sourceMappingURL=index-
|
|
6120
|
+
//# sourceMappingURL=index-Bq0BHGkI.mjs.map
|