birdclaw 0.8.4 → 0.8.5
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/CHANGELOG.md +7 -0
- package/dist/cli/birdclaw.js +8 -9
- package/dist/client/assets/ProfilePreview-DQX6_xc3.js +1 -0
- package/dist/client/assets/{SavedTimelineView-BIS7HKpp.js → SavedTimelineView-BhSiVyR1.js} +1 -1
- package/dist/client/assets/{TimelineRouteFrame-CyGPj0eM.js → TimelineRouteFrame-9NDLnXzH.js} +1 -1
- package/dist/client/assets/{blocks-7UDKQp8H.js → blocks-CFp_njvG.js} +1 -1
- package/dist/client/assets/{bookmarks-CbBkMvXk.js → bookmarks-LbYOsoKf.js} +1 -1
- package/dist/client/assets/{client-stream-contracts-ys3XhWG4.js → client-stream-contracts-sR4xMQxY.js} +1 -1
- package/dist/client/assets/{data-sources-Cm2bpNvg.js → data-sources-euTr6T_L.js} +1 -1
- package/dist/client/assets/{discuss-DTjaOugw.js → discuss-BWKu_p7B.js} +1 -1
- package/dist/client/assets/{dms-CGd6Eogq.js → dms-SLXMtC4v.js} +1 -1
- package/dist/client/assets/{inbox-BHlGuOy2.js → inbox-BybSI5Vf.js} +1 -1
- package/dist/client/assets/{index-CEIG7S6s.js → index-DZVisyna.js} +3 -3
- package/dist/client/assets/{likes-cLrcAQem.js → likes-dyh9p8y_.js} +1 -1
- package/dist/client/assets/{links-CM9QO1LC.js → links-CIwqK_dX.js} +1 -1
- package/dist/client/assets/{mapbox-BxTlqXt9.js → mapbox-B4zqX7r0.js} +2 -2
- package/dist/client/assets/{mapbox-gl-dgf_hX3a.js → mapbox-gl-DYNcLcll.js} +1 -1
- package/dist/client/assets/{mentions-CxKCgzIf.js → mentions-BoVVAIT7.js} +1 -1
- package/dist/client/assets/{network-map-B5a3whqj.js → network-map-zRysIY_b.js} +2 -2
- package/dist/client/assets/{profile-analyze-CRtNEwlb.js → profile-analyze-C_yDeX6-.js} +1 -1
- package/dist/client/assets/{profiles._handle-C82_HoKX.js → profiles._handle-DdIVPqU-.js} +1 -1
- package/dist/client/assets/{rate-limits-ScaEwdVK.js → rate-limits-BWPmPOSh.js} +1 -1
- package/dist/client/assets/{routes-q7ZaW4En.js → routes-CiLuYpZr.js} +1 -1
- package/dist/client/assets/{today-CeG1O7Py.js → today-BoO64YoY.js} +1 -1
- package/dist/client/assets/{useTimelineRouteData-1HsqgvUi.js → useTimelineRouteData-BaO3Rna1.js} +1 -1
- package/dist/server/assets/{ProfileAnalysisStream-BFvhVdhn.js → ProfileAnalysisStream-L7bs6IHH.js} +1 -1
- package/dist/server/assets/{ProfilePreview-C6gAor_j.js → ProfilePreview-Cg-AOHBE.js} +5 -6
- package/dist/server/assets/{SavedTimelineView-BG1jnBp1.js → SavedTimelineView-BtCq1dHk.js} +1 -1
- package/dist/server/assets/{TimelineRouteFrame-CU7ilM7U.js → TimelineRouteFrame-CjMIh63G.js} +1 -1
- package/dist/server/assets/{TweetRichText-DhCVv1-6.js → TweetRichText-DDywESRF.js} +1 -1
- package/dist/server/assets/{_tanstack-start-manifest_v-C-ZRnG_n.js → _tanstack-start-manifest_v-aLWUdbAc.js} +19 -19
- package/dist/server/assets/{bookmarks-BJN8tykY.js → bookmarks-D_YkmCK3.js} +1 -1
- package/dist/server/assets/{client-stream-contracts-C2xbWVjm.js → client-stream-contracts-Bq6kMmhh.js} +1 -1
- package/dist/server/assets/{discuss-QTo08NCN.js → discuss-C1QMBBSk.js} +2 -2
- package/dist/server/assets/{discuss-CJ1dau1j.js → discuss-DAq6ehL9.js} +2 -2
- package/dist/server/assets/{likes-DBOAtsJU.js → likes-BMm2JWYI.js} +1 -1
- package/dist/server/assets/{links-DmH5lxHO.js → links-Da4tjWtI.js} +2 -2
- package/dist/server/assets/{links-DAhSjynu.js → links-dqXb35YM.js} +2 -2
- package/dist/server/assets/{mentions-BH2MzKtB.js → mentions-CEyEcOFw.js} +1 -1
- package/dist/server/assets/{profile-analyze-BP65PED0.js → profile-analyze-CGCj4VFd.js} +2 -2
- package/dist/server/assets/{profile-analyze-C1NoM0tV.js → profile-analyze-DH1TSBkT.js} +1 -1
- package/dist/server/assets/{profiles._handle-DsLNj2Ca.js → profiles._handle-B5V-huoo.js} +3 -3
- package/dist/server/assets/{profiles._handle-DjwlN_ac.js → profiles._handle-CJ6rgzt8.js} +4 -4
- package/dist/server/assets/{router-DqkwSPiM.js → router-C4cz9ypd.js} +14 -14
- package/dist/server/assets/{routes-A9c9ZhwN.js → routes-B9aikOdB.js} +1 -1
- package/dist/server/assets/{today-fvGiZ7ud.js → today-B_TA16QG.js} +2 -2
- package/dist/server/assets/{today-B5hVM57Z.js → today-JkxZXdBt.js} +2 -2
- package/dist/server/assets/{useTimelineRouteData-27cxynxa.js → useTimelineRouteData-BLXvMGb2.js} +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/ProfilePreview-BejAuYsJ.js +0 -1
|
@@ -2,7 +2,7 @@ import "./ui-qbmcMSSX.js";
|
|
|
2
2
|
import { b as linkInsightResponseSchema, n as queryKeys, r as fetchJson } from "./query-client-BdauHBgd.js";
|
|
3
3
|
import { r as formatCompactNumber } from "./AvatarChip-zUDAEmjL.js";
|
|
4
4
|
import "./FeedState-ntW0Q2GB.js";
|
|
5
|
-
import "./ProfilePreview-
|
|
5
|
+
import "./ProfilePreview-Cg-AOHBE.js";
|
|
6
6
|
import "./SmartTimestamp-DfwE1NGf.js";
|
|
7
7
|
import { t as hydrateProfileHandles } from "./profile-hydration-client-GJ4kwJS8.js";
|
|
8
8
|
import { a as validateLinksSearch } from "./route-search-BUlQ5lGM.js";
|
|
@@ -231,7 +231,7 @@ function useLinksController(filters, onFiltersChange) {
|
|
|
231
231
|
}
|
|
232
232
|
//#endregion
|
|
233
233
|
//#region src/routes/links.tsx
|
|
234
|
-
var $$splitComponentImporter = () => import("./links-
|
|
234
|
+
var $$splitComponentImporter = () => import("./links-Da4tjWtI.js");
|
|
235
235
|
var Route$1 = createFileRoute("/links")({
|
|
236
236
|
component: lazyRouteComponent($$splitComponentImporter, "component"),
|
|
237
237
|
validateSearch: validateLinksSearch
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as TimelineRouteFrame } from "./TimelineRouteFrame-
|
|
1
|
+
import { t as TimelineRouteFrame } from "./TimelineRouteFrame-CjMIh63G.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/routes/mentions.tsx?tsr-split=component
|
|
4
4
|
function mentionsSubtitle(meta) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dt as pageSubtitleClass, Et as pageHeaderRowClass, Ht as searchFieldInputClass, Mt as primaryButtonClass, Ot as pageTitleClass, Tt as pageHeaderClass, Ut as searchFieldShellClass, Vt as searchFieldIconClass, Wt as secondaryButtonClass, m as cx, wt as pageHeaderActionsClass } from "./ui-qbmcMSSX.js";
|
|
2
|
-
import { t as Route$1 } from "./profile-analyze-
|
|
3
|
-
import { a as formatProfileAnalysisCounts, i as cleanProfileHandle, n as ProfileAnalysisStatusLine, r as useProfileAnalysisStream, t as ProfileAnalysisOutput } from "./ProfileAnalysisStream-
|
|
2
|
+
import { t as Route$1 } from "./profile-analyze-DH1TSBkT.js";
|
|
3
|
+
import { a as formatProfileAnalysisCounts, i as cleanProfileHandle, n as ProfileAnalysisStatusLine, r as useProfileAnalysisStream, t as ProfileAnalysisOutput } from "./ProfileAnalysisStream-L7bs6IHH.js";
|
|
4
4
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Loader2, RefreshCw, Search, UserSearch } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
2
2
|
//#region src/routes/profile-analyze.tsx
|
|
3
|
-
var $$splitComponentImporter = () => import("./profile-analyze-
|
|
3
|
+
var $$splitComponentImporter = () => import("./profile-analyze-CGCj4VFd.js");
|
|
4
4
|
var Route = createFileRoute("/profile-analyze")({
|
|
5
5
|
component: lazyRouteComponent($$splitComponentImporter, "component"),
|
|
6
6
|
validateSearch: (search) => ({ handle: typeof search.handle === "string" ? search.handle : "" })
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./AvatarChip-zUDAEmjL.js";
|
|
2
|
-
import "./TweetRichText-
|
|
3
|
-
import "./ProfileAnalysisStream-
|
|
2
|
+
import "./TweetRichText-DDywESRF.js";
|
|
3
|
+
import "./ProfileAnalysisStream-L7bs6IHH.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { createFileRoute, lazyRouteComponent } from "@tanstack/react-router";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "lucide-react";
|
|
8
8
|
//#region src/routes/profiles.$handle.tsx
|
|
9
|
-
var $$splitComponentImporter = () => import("./profiles._handle-
|
|
9
|
+
var $$splitComponentImporter = () => import("./profiles._handle-CJ6rgzt8.js");
|
|
10
10
|
var Route$1 = createFileRoute("/profiles/$handle")({ component: lazyRouteComponent($$splitComponentImporter, "component") });
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Route$1 as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as formatCompactNumber, t as AvatarChip } from "./AvatarChip-zUDAEmjL.js";
|
|
2
|
-
import { p as profileDescriptionEntitiesFromXurl } from "./ProfilePreview-
|
|
3
|
-
import { t as TweetRichText } from "./TweetRichText-
|
|
4
|
-
import { a as formatProfileAnalysisCounts, i as cleanProfileHandle, n as ProfileAnalysisStatusLine, r as useProfileAnalysisStream, t as ProfileAnalysisOutput } from "./ProfileAnalysisStream-
|
|
5
|
-
import { t as Route$1 } from "./profiles._handle-
|
|
2
|
+
import { p as profileDescriptionEntitiesFromXurl } from "./ProfilePreview-Cg-AOHBE.js";
|
|
3
|
+
import { t as TweetRichText } from "./TweetRichText-DDywESRF.js";
|
|
4
|
+
import { a as formatProfileAnalysisCounts, i as cleanProfileHandle, n as ProfileAnalysisStatusLine, r as useProfileAnalysisStream, t as ProfileAnalysisOutput } from "./ProfileAnalysisStream-L7bs6IHH.js";
|
|
5
|
+
import { t as Route$1 } from "./profiles._handle-B5V-huoo.js";
|
|
6
6
|
import { useEffect, useRef } from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { ExternalLink, Loader2, RefreshCw } from "lucide-react";
|
|
@@ -3,17 +3,17 @@ import { C as networkMapResponseSchema, D as tweetConversationResponseSchema, E
|
|
|
3
3
|
import { t as AvatarChip } from "./AvatarChip-zUDAEmjL.js";
|
|
4
4
|
import { n as setStoredAccountId, r as useSelectedAccountId } from "./account-selection-CTdFGWRk.js";
|
|
5
5
|
import { c as BirdclawMark } from "./FeedState-ntW0Q2GB.js";
|
|
6
|
-
import { a as assertSafePreviewUrl, h as tweetEntitiesFromXurl, i as __test__$1, l as displayUrlForLink, o as isBlockedAddress, s as safeHttpUrl, u as enrichFallbackUrlEntities } from "./ProfilePreview-
|
|
7
|
-
import { i as searchDiscussionStreamEventSchema, n as periodDigestStreamEventSchema, r as profileAnalysisStreamEventSchema } from "./client-stream-contracts-
|
|
8
|
-
import { t as Route$25 } from "./today-
|
|
9
|
-
import { t as Route$26 } from "./profile-analyze-
|
|
6
|
+
import { a as assertSafePreviewUrl, h as tweetEntitiesFromXurl, i as __test__$1, l as displayUrlForLink, o as isBlockedAddress, s as safeHttpUrl, u as enrichFallbackUrlEntities } from "./ProfilePreview-Cg-AOHBE.js";
|
|
7
|
+
import { i as searchDiscussionStreamEventSchema, n as periodDigestStreamEventSchema, r as profileAnalysisStreamEventSchema } from "./client-stream-contracts-Bq6kMmhh.js";
|
|
8
|
+
import { t as Route$25 } from "./today-JkxZXdBt.js";
|
|
9
|
+
import { t as Route$26 } from "./profile-analyze-DH1TSBkT.js";
|
|
10
10
|
import { t as Route$27 } from "./network-map-D3CzRcC4.js";
|
|
11
|
-
import { t as Route$28 } from "./links-
|
|
11
|
+
import { t as Route$28 } from "./links-dqXb35YM.js";
|
|
12
12
|
import { t as Route$29 } from "./inbox-DpWd1EzC.js";
|
|
13
13
|
import { t as Route$30 } from "./dms-DAyQrVM2.js";
|
|
14
|
-
import { t as Route$31 } from "./discuss-
|
|
14
|
+
import { t as Route$31 } from "./discuss-DAq6ehL9.js";
|
|
15
15
|
import { t as Route$32 } from "./blocks-DSgQghqP.js";
|
|
16
|
-
import { t as Route$33 } from "./profiles._handle-
|
|
16
|
+
import { t as Route$33 } from "./profiles._handle-B5V-huoo.js";
|
|
17
17
|
import { createContext, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
18
18
|
import { HeadContent, Link, Scripts, createFileRoute, createRootRoute, createRouter, lazyRouteComponent, useRouterState } from "@tanstack/react-router";
|
|
19
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -576,11 +576,11 @@ var $$splitComponentImporter$5 = () => import("./rate-limits-VAr2qzYD.js");
|
|
|
576
576
|
var Route$23 = createFileRoute("/rate-limits")({ component: lazyRouteComponent($$splitComponentImporter$5, "component") });
|
|
577
577
|
//#endregion
|
|
578
578
|
//#region src/routes/mentions.tsx
|
|
579
|
-
var $$splitComponentImporter$4 = () => import("./mentions-
|
|
579
|
+
var $$splitComponentImporter$4 = () => import("./mentions-CEyEcOFw.js");
|
|
580
580
|
var Route$22 = createFileRoute("/mentions")({ component: lazyRouteComponent($$splitComponentImporter$4, "component") });
|
|
581
581
|
//#endregion
|
|
582
582
|
//#region src/routes/likes.tsx
|
|
583
|
-
var $$splitComponentImporter$3 = () => import("./likes-
|
|
583
|
+
var $$splitComponentImporter$3 = () => import("./likes-BMm2JWYI.js");
|
|
584
584
|
var Route$21 = createFileRoute("/likes")({ component: lazyRouteComponent($$splitComponentImporter$3, "component") });
|
|
585
585
|
//#endregion
|
|
586
586
|
//#region src/routes/data-sources.tsx
|
|
@@ -588,11 +588,11 @@ var $$splitComponentImporter$2 = () => import("./data-sources-BnA1Q94p.js");
|
|
|
588
588
|
var Route$20 = createFileRoute("/data-sources")({ component: lazyRouteComponent($$splitComponentImporter$2, "component") });
|
|
589
589
|
//#endregion
|
|
590
590
|
//#region src/routes/bookmarks.tsx
|
|
591
|
-
var $$splitComponentImporter$1 = () => import("./bookmarks-
|
|
591
|
+
var $$splitComponentImporter$1 = () => import("./bookmarks-D_YkmCK3.js");
|
|
592
592
|
var Route$19 = createFileRoute("/bookmarks")({ component: lazyRouteComponent($$splitComponentImporter$1, "component") });
|
|
593
593
|
//#endregion
|
|
594
594
|
//#region src/routes/index.tsx
|
|
595
|
-
var $$splitComponentImporter = () => import("./routes-
|
|
595
|
+
var $$splitComponentImporter = () => import("./routes-B9aikOdB.js");
|
|
596
596
|
var Route$18 = createFileRoute("/")({ component: lazyRouteComponent($$splitComponentImporter, "component") });
|
|
597
597
|
//#endregion
|
|
598
598
|
//#region src/lib/http-effect.ts
|
|
@@ -8562,8 +8562,8 @@ function listTimelineItems({ resource, account, search, replyFilter = "all", sin
|
|
|
8562
8562
|
if (likedOnly && bookmarkedOnly) timelineEdgesCte = `
|
|
8563
8563
|
with timeline_edges as (
|
|
8564
8564
|
select likes.account_id, likes.tweet_id, 'home' as kind, likes.raw_json
|
|
8565
|
-
|
|
8566
|
-
join tweet_collections bookmarks
|
|
8565
|
+
from tweet_collections likes indexed by idx_tweet_collections_tweet
|
|
8566
|
+
join tweet_collections bookmarks indexed by idx_tweet_collections_tweet
|
|
8567
8567
|
on bookmarks.account_id = likes.account_id
|
|
8568
8568
|
and bookmarks.tweet_id = likes.tweet_id
|
|
8569
8569
|
and bookmarks.kind = 'bookmarks'
|
|
@@ -8575,7 +8575,7 @@ function listTimelineItems({ resource, account, search, replyFilter = "all", sin
|
|
|
8575
8575
|
timelineEdgesCte = `
|
|
8576
8576
|
with timeline_edges as (
|
|
8577
8577
|
select account_id, tweet_id, 'home' as kind, raw_json
|
|
8578
|
-
from tweet_collections
|
|
8578
|
+
from tweet_collections indexed by idx_tweet_collections_tweet
|
|
8579
8579
|
where kind = ?
|
|
8580
8580
|
)
|
|
8581
8581
|
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as TimelineRouteFrame } from "./TimelineRouteFrame-
|
|
1
|
+
import { t as TimelineRouteFrame } from "./TimelineRouteFrame-CjMIh63G.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/routes/index.tsx?tsr-split=component
|
|
4
4
|
function homeSubtitle(meta) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Dt as pageSubtitleClass, Et as pageHeaderRowClass, Kt as segmentClass, Ot as pageTitleClass, Tt as pageHeaderClass, Wt as secondaryButtonClass, m as cx, q as errorCopyClass, qt as segmentedClass, wt as pageHeaderActionsClass } from "./ui-qbmcMSSX.js";
|
|
2
|
-
import { a as useNdjsonRun, n as periodDigestStreamEventSchema, o as MarkdownViewer, t as isTerminalStreamEvent } from "./client-stream-contracts-
|
|
2
|
+
import { a as useNdjsonRun, n as periodDigestStreamEventSchema, o as MarkdownViewer, t as isTerminalStreamEvent } from "./client-stream-contracts-Bq6kMmhh.js";
|
|
3
3
|
import { n as normalizeProfileHydrationHandle, t as hydrateProfileHandles } from "./profile-hydration-client-GJ4kwJS8.js";
|
|
4
4
|
import { s as validateTodaySearch } from "./route-search-BUlQ5lGM.js";
|
|
5
|
-
import { t as Route$1 } from "./today-
|
|
5
|
+
import { t as Route$1 } from "./today-JkxZXdBt.js";
|
|
6
6
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { CheckCircle2, Loader2, RefreshCw, Sparkles } from "lucide-react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./ui-qbmcMSSX.js";
|
|
2
|
-
import "./client-stream-contracts-
|
|
2
|
+
import "./client-stream-contracts-Bq6kMmhh.js";
|
|
3
3
|
import "./profile-hydration-client-GJ4kwJS8.js";
|
|
4
4
|
import { s as validateTodaySearch } from "./route-search-BUlQ5lGM.js";
|
|
5
5
|
import "react";
|
|
@@ -8,7 +8,7 @@ import "react/jsx-runtime";
|
|
|
8
8
|
import "lucide-react";
|
|
9
9
|
import "@tanstack/react-query";
|
|
10
10
|
//#region src/routes/today.tsx
|
|
11
|
-
var $$splitComponentImporter = () => import("./today-
|
|
11
|
+
var $$splitComponentImporter = () => import("./today-B_TA16QG.js");
|
|
12
12
|
var Route$1 = createFileRoute("/today")({
|
|
13
13
|
component: lazyRouteComponent($$splitComponentImporter, "component"),
|
|
14
14
|
validateSearch: validateTodaySearch
|
package/dist/server/assets/{useTimelineRouteData-27cxynxa.js → useTimelineRouteData-BLXvMGb2.js}
RENAMED
|
@@ -3,10 +3,10 @@ import { D as tweetConversationResponseSchema, a as fetchQueryEnvelope, d as run
|
|
|
3
3
|
import { r as formatCompactNumber, t as AvatarChip } from "./AvatarChip-zUDAEmjL.js";
|
|
4
4
|
import { r as useSelectedAccountId } from "./account-selection-CTdFGWRk.js";
|
|
5
5
|
import { a as TweetSkeletonRows, n as FeedError, o as BirdclawEmpty, r as FeedLoading, s as BirdclawLoading, t as FeedEmpty } from "./FeedState-ntW0Q2GB.js";
|
|
6
|
-
import { d as isTweetArticleUrlEntity, f as normalizeTweetUrlEntityRangeForText, s as safeHttpUrl, t as ProfilePreview } from "./ProfilePreview-
|
|
6
|
+
import { d as isTweetArticleUrlEntity, f as normalizeTweetUrlEntityRangeForText, s as safeHttpUrl, t as ProfilePreview } from "./ProfilePreview-Cg-AOHBE.js";
|
|
7
7
|
import { t as SmartTimestamp } from "./SmartTimestamp-DfwE1NGf.js";
|
|
8
8
|
import { t as useDebouncedValue } from "./useDebouncedValue-DOnA6Xcy.js";
|
|
9
|
-
import { t as TweetRichText } from "./TweetRichText-
|
|
9
|
+
import { t as TweetRichText } from "./TweetRichText-DDywESRF.js";
|
|
10
10
|
import { createContext, createElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { BookOpen, BookmarkCheck, CheckCircle2, Circle, ExternalLink, Heart, Image, MessageCircle, Repeat2, Search, UserSearch, X } from "lucide-react";
|
package/dist/server/server.js
CHANGED
|
@@ -3415,7 +3415,7 @@ var defaultSerovalPlugins = [
|
|
|
3415
3415
|
* the dev styles URL for route-scoped CSS collection.
|
|
3416
3416
|
*/
|
|
3417
3417
|
async function getStartManifest(matchedRoutes) {
|
|
3418
|
-
const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-
|
|
3418
|
+
const { tsrStartManifest } = await import("./assets/_tanstack-start-manifest_v-aLWUdbAc.js");
|
|
3419
3419
|
const startManifest = tsrStartManifest();
|
|
3420
3420
|
let routes = startManifest.routes;
|
|
3421
3421
|
routes[rootRouteId];
|
|
@@ -5130,7 +5130,7 @@ var getBaseManifest = getProdBaseManifest;
|
|
|
5130
5130
|
var createEarlyHintsForRequest = createEarlyHintsCollector;
|
|
5131
5131
|
async function loadEntries() {
|
|
5132
5132
|
const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
|
|
5133
|
-
import("./assets/router-
|
|
5133
|
+
import("./assets/router-C4cz9ypd.js"),
|
|
5134
5134
|
import("./assets/start-FaDOTmto.js"),
|
|
5135
5135
|
import("./assets/empty-plugin-adapters-DzrEkdBF.js")
|
|
5136
5136
|
]);
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./chunk-C0phanGV.js";import{t}from"./react-nBylq1U5.js";import{$t as n,Ln as r,M as i,Nn as a,Qt as o,Zt as s,en as c,in as l,nn as u,rn as d,tn as f}from"./schemas-I9r6F6ya.js";import{n as p,r as m,t as h}from"./AvatarChip-DLoqM5xD.js";var g=e(t(),1),_=/https?:\/\/[^\s<>"'`]+/g,v=/[),.;:!?]+$/;function y(e){try{let t=new URL(e),n=t.hostname.replace(/^www\./,``),r=`${t.pathname}${t.search}${t.hash}`;return r===`/`?n:`${n}${r}`}catch{return e}}function b(e){try{let t=new URL(e);return`${t.protocol}//${t.hostname.replace(/^www\./,``)}${t.pathname}`}catch{return e.split(`?`)[0]??e}}function x(e,t){if(b(e.expandedUrl)===b(t.url))return!0;try{let t=new URL(e.expandedUrl),n=t.hostname.replace(/^www\./,``);return(n===`x.com`||n===`twitter.com`)&&t.pathname.startsWith(`/i/article/`)}catch{return!1}}function S(e){return e&&typeof e==`object`?e:{}}function ee(e){let t=S(e),n=Array.isArray(t.mentions)?t.mentions:[],r=Array.isArray(t.urls)?t.urls:[],i=Array.isArray(t.hashtags)?t.hashtags:[],a=S(t.article),o=String(a.title??``).trim(),s=String(a.url??``).trim();return{...n.length?{mentions:n.map(e=>{let t=S(e);return{username:String(t.username??``),id:typeof t.id==`string`?String(t.id):void 0,start:Number(t.start??0),end:Number(t.end??0)}})}:{},...r.length?{urls:r.map(e=>{let t=S(e),n=String(t.expandedUrl??t.expanded_url??t.url??``);return{url:String(t.url??``),expandedUrl:n,displayUrl:String(t.displayUrl??t.display_url??n??t.url??``),start:Number(t.start??0),end:Number(t.end??0),...typeof t.title==`string`?{title:t.title}:{},...typeof t.description==`string`||t.description===null?{description:t.description}:{},...typeof t.imageUrl==`string`?{imageUrl:t.imageUrl}:typeof t.image_url==`string`?{imageUrl:t.image_url}:{},...typeof t.siteName==`string`?{siteName:t.siteName}:typeof t.site_name==`string`?{siteName:t.site_name}:{}}})}:{},...i.length?{hashtags:i.map(e=>{let t=S(e);return{tag:String(t.tag??t.text??``),start:Number(t.start??0),end:Number(t.end??0)}})}:{},...o&&s?{article:{title:o,url:s,...typeof(a.previewText??a.preview_text)==`string`&&String(a.previewText??a.preview_text).trim()?{previewText:String(a.previewText??a.preview_text).trim()}:{},...typeof(a.coverImageUrl??a.cover_image_url)==`string`&&String(a.coverImageUrl??a.cover_image_url).trim()?{coverImageUrl:String(a.coverImageUrl??a.cover_image_url).trim()}:{}}}:{}}}function C(e){return ee(S(e).description)}function te(e,t,n,r){return e<r&&n<t}function w(e,t){if(t<=0)return 0;let n=0,r=0;for(let i of e){if(r>=t)break;n+=i.length,r+=1}return n}function T(e,t,n,r){let i=e.slice(n,r);return t.kind===`mention`?i.toLowerCase()===`@${t.username}`.toLowerCase():t.kind===`hashtag`?i.toLowerCase()===`#${t.tag}`.toLowerCase():i===t.url}function E(e,t){if(t.start>=0&&t.end>t.start&&t.end<=e.length&&T(e,t,t.start,t.end))return t;let n=w(e,t.start),r=w(e,t.end);return n>=0&&r>n&&r<=e.length&&T(e,t,n,r)?{...t,start:n,end:r}:t}function ne(e,t){let n=E(e,{...t,kind:`url`});return{start:n.start,end:n.end}}function D(e,t,n){let r=(t.urls??[]).map(e=>{let t=n?.(e.url);if(!t)return e;let r=t.expandedUrl||e.expandedUrl;return{...e,expandedUrl:r,displayUrl:t.displayUrl||y(r),...t.title?{title:t.title}:{},...t&&`description`in t?{description:t.description??null}:{},...t.imageUrl?{imageUrl:t.imageUrl}:{},...t.siteName?{siteName:t.siteName}:{}}}),i=[];for(let t of e.matchAll(_)){let e=t[0].replace(v,``),a=t.index??0,o=a+e.length;if(!e||r.some(e=>te(a,o,e.start,e.end)))continue;let s=n?.(e),c=s?.expandedUrl||e;i.push({url:e,expandedUrl:c,displayUrl:s?.displayUrl||y(c),start:a,end:o,...s?.title?{title:s.title}:{},...s&&`description`in s?{description:s.description??null}:{},...s?.imageUrl?{imageUrl:s.imageUrl}:{},...s?.siteName?{siteName:s.siteName}:{}})}return i.length===0?{...t,urls:r}:{...t,urls:[...r,...i].sort((e,t)=>e.start-t.start)}}function O(e){return[...e.mentions?.map(e=>({...e,kind:`mention`}))??[],...e.urls?.map(e=>({...e,kind:`url`}))??[],...e.hashtags?.map(e=>({...e,kind:`hashtag`}))??[]].sort((e,t)=>e.start-t.start)}function k(e,t){return O(t).map(t=>E(e,t)).sort((e,t)=>e.start-t.start)}function re(e,t,n){let r=k(e,t),i=0,a=``;for(let t of r){if(t.start<i||t.end<=t.start||t.end>e.length)continue;a+=e.slice(i,t.start);let r=e.slice(t.start,t.end);a+=n(t,r),i=t.end}return a+=e.slice(i),a}function ie(e,t){return re(e,t,(e,t)=>e.kind===`url`?e.expandedUrl:e.kind===`mention`?`@${e.username}`:e.kind===`hashtag`?`#${e.tag}`:t)}function A(e){if(!e)return null;try{let t=new URL(e);return t.protocol!==`http:`&&t.protocol!==`https:`?null:t.toString()}catch{return null}}var j=4,M=2500,N=`800px 0px`,P=[],F=new Set,I=new Set,L=0,R=!1,z=null,B=null;function V(e){I.delete(e)&&(--L,H())}function H(){for(;L<j&&P.length>0;){let e=P.shift();if(!e)return;let t=new Image;L+=1,I.add(t),t.decoding=`async`,t.onerror=()=>V(t),t.onload=()=>{if(typeof t.decode!=`function`){V(t);return}t.decode().catch(()=>void 0).finally(()=>V(t))},t.src=e}}function U(){z=null,B=null,H()}function W(){if(P.length===0||z!==null||B!==null)return;let e=window.requestIdleCallback?.bind(window);if(e){z=e(U,{timeout:M});return}B=window.setTimeout(U,0)}function G(){R=!1,W()}function K(){if(document.readyState===`complete`){W();return}R||(R=!0,window.addEventListener(`load`,G,{once:!0}))}function q(e,t){if(!e||!t||typeof window>`u`)return;let n=p(e,t);F.has(n)||(F.add(n),P.push(n),K())}function J(e,t,n){(0,g.useEffect)(()=>{if(!t||!n)return;let r=e.current;if(!r||typeof IntersectionObserver>`u`){q(t,n);return}let i=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(i.disconnect(),q(t,n))},{rootMargin:N});return i.observe(r),()=>i.disconnect()},[n,t,e])}var ae=10,oe=12,se=120,Y={top:0,left:0,maxWidth:0,maxHeight:0,side:`bottom`,measured:!1,ready:!1};function ce(e,t){return e.reduce((e,n)=>t===`bottom`?n.bottom>e.bottom||n.bottom===e.bottom&&n.width>e.width?n:e:n.top<e.top||n.top===e.top&&n.width>e.width?n:e)}function le(e,t,n){return n<t?t:Math.min(Math.max(e,t),n)}function ue({referenceRects:e,floatingWidth:t,floatingHeight:n,viewport:r,gap:i=ae,gutter:a=oe}){let o=Math.min(...e.map(e=>e.top)),s=Math.max(...e.map(e=>e.bottom)),c=Math.max(0,r.bottom-a-s-i),l=Math.max(0,o-r.top-a-i),u=c>=n||c>=l?`bottom`:`top`,d=u===`bottom`?c:l,f=Math.min(n,d),p=ce(e,u),m=Math.max(0,r.width-a*2),h=Math.min(t,m),g=r.left+a,_=r.right-a-h,v=le(p.left+p.width/2-h/2,g,_);return{top:u===`bottom`?s+i:o-i-f,left:v,maxWidth:m,maxHeight:d,side:u,measured:!0,ready:!0}}function de(){let e=window.visualViewport,t=e?.offsetLeft??0,n=e?.offsetTop??0,r=e?.width??window.innerWidth,i=e?.height??window.innerHeight;return{top:n,right:t+r,bottom:n+i,left:t,width:r,height:i}}function fe(e){let t=Array.from(e.getClientRects()).filter(e=>e.width>0||e.height>0);return t.length>0?t:[e.getBoundingClientRect()]}function pe(e,t){return e.some(e=>e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom)}function me(e,t){return e.top===t.top&&e.left===t.left&&e.maxWidth===t.maxWidth&&e.maxHeight===t.maxHeight&&e.side===t.side&&e.measured===t.measured&&e.ready===t.ready}function X(e){return{position:`fixed`,top:e.top,left:e.left,maxWidth:e.measured?e.maxWidth:void 0,maxHeight:e.measured?e.maxHeight:void 0,visibility:e.ready?`visible`:`hidden`}}function Z(e,...t){return e instanceof Node&&t.some(t=>t?.contains(e))}function Q(e={}){let t=e.closeDelayMs??se,[n,r]=(0,g.useState)(!1),[i,a]=(0,g.useState)(Y),o=(0,g.useId)(),s=(0,g.useRef)(null),c=(0,g.useRef)(null),l=(0,g.useRef)(null),u=(0,g.useCallback)(()=>{l.current!==null&&(window.clearTimeout(l.current),l.current=null)},[]),d=(0,g.useCallback)(()=>{u(),n||a(Y),r(!0)},[u,n]),f=(0,g.useCallback)(()=>{u(),r(!1)},[u]),p=(0,g.useCallback)(()=>{u(),l.current=window.setTimeout(()=>{l.current=null;let e=s.current,t=c.current,n=Z(document.activeElement,e,t),i=!!e?.matches(`:hover`)||!!t?.matches(`:hover`);!n&&!i&&r(!1)},t)},[u,t]),m=(0,g.useCallback)(e=>{Z(e.relatedTarget,s.current,c.current)||p()},[p]),h=(0,g.useCallback)(e=>{e.key===`Escape`&&(f(),s.current?.querySelector(`a,button`)?.focus())},[f]),_=(0,g.useCallback)(()=>{let e=s.current,t=c.current;if(!e||!t)return;let n=de(),r=fe(e);if(!pe(r,n)){a(e=>e.ready?{...e,ready:!1}:e);return}let i=t.getBoundingClientRect(),o=t.querySelector(`[data-floating-preview-content]`),l=window.getComputedStyle(t),u=[l.paddingTop,l.paddingBottom,l.borderTopWidth,l.borderBottomWidth].reduce((e,t)=>e+(Number.parseFloat(t)||0),0),d=Math.max(i.height,(o?.getBoundingClientRect().height??0)+u),f=ue({referenceRects:r,floatingWidth:i.width,floatingHeight:d,viewport:n});i.width>f.maxWidth+.5&&(f.ready=!1),a(e=>me(e,f)?e:f)},[]);(0,g.useLayoutEffect)(()=>{if(!n)return;_();let e=0,t=()=>{_(),e=window.requestAnimationFrame(t)};e=window.requestAnimationFrame(t);let r=window.visualViewport;window.addEventListener(`resize`,_),window.addEventListener(`scroll`,_,!0),r?.addEventListener(`resize`,_),r?.addEventListener(`scroll`,_);let i=typeof ResizeObserver>`u`?null:new ResizeObserver(_);return s.current&&i?.observe(s.current),c.current&&i?.observe(c.current),()=>{window.cancelAnimationFrame(e),window.removeEventListener(`resize`,_),window.removeEventListener(`scroll`,_,!0),r?.removeEventListener(`resize`,_),r?.removeEventListener(`scroll`,_),i?.disconnect()}},[n,_]),(0,g.useEffect)(()=>()=>u(),[u]);let v={onPointerEnter:e=>d(),onPointerLeave:e=>p(),onFocus:e=>d(),onBlur:m,onKeyDown:h};return{open:n,referenceRef:s,floatingRef:c,floatingStyle:X(i),referenceProps:v,floatingProps:v,floatingId:o,closePreview:f}}var $=r();function he({profile:e}){let t=k(e.bio,C(e.entities)),n=0;return(0,$.jsxs)(`span`,{className:s,children:[t.map((t,r)=>{if(t.kind!==`url`||t.start<n||t.end<=t.start||t.end>e.bio.length)return null;let i=e.bio.slice(n,t.start);n=t.end;let o=A(t.expandedUrl);return(0,$.jsxs)(g.Fragment,{children:[i,o?(0,$.jsx)(`a`,{className:a,href:o,rel:`noreferrer`,target:`_blank`,children:t.expandedUrl}):e.bio.slice(t.start,t.end)]},`${t.url}-${String(r)}`)}),e.bio.slice(n)]})}function ge({profile:e,children:t,className:r=``}){let a=Q();return J(a.referenceRef,e.id,e.avatarUrl),(0,$.jsxs)(`span`,{ref:a.referenceRef,className:i(n,r),...a.referenceProps,children:[(0,$.jsx)(`a`,{"aria-controls":a.open?a.floatingId:void 0,"aria-expanded":a.open,className:l,href:`/profiles/${encodeURIComponent(e.handle)}`,children:t}),a.open?(0,$.jsx)(`span`,{"aria-label":`${e.displayName} profile preview`,id:a.floatingId,ref:a.floatingRef,className:o,role:`group`,style:a.floatingStyle,...a.floatingProps,children:(0,$.jsxs)(`span`,{className:`grid gap-2`,"data-floating-preview-content":!0,children:[(0,$.jsxs)(`span`,{className:f,children:[(0,$.jsx)(h,{avatarUrl:e.avatarUrl,hue:e.avatarHue,name:e.displayName,profileId:e.id}),(0,$.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,$.jsx)(`span`,{className:d,children:e.displayName}),(0,$.jsxs)(`span`,{className:c,children:[`@`,e.handle]})]})]}),e.bio?(0,$.jsx)(he,{profile:e}):null,(0,$.jsxs)(`span`,{className:u,children:[m(e.followersCount),` followers`]})]})}):null]})}export{k as a,ne as c,A as i,C as l,Q as n,D as o,J as r,x as s,ge as t,ie as u};
|