= ({ showId, showType, preview }) => {
return (
(streaming.isFetched || similar.isFetched) && (
-
)
diff --git a/env.example b/env.example
index aa0ff24..34f583e 100644
--- a/env.example
+++ b/env.example
@@ -12,6 +12,10 @@ OPENSUBTITLES_USERNAME=your_opensubtitles_username
OPENSUBTITLES_PASSWORD=your_opensubtitles_password
# Comma-separated preferred subtitle languages (ISO 639-1)
SUBTITLE_LANGUAGES=en,uk
+# Optional: self-hosted OpenPanel analytics. Unset means analytics is a no-op and no script loads.
+NEXT_PUBLIC_OPENPANEL_CLIENT_ID=your_openpanel_client_id
+NEXT_PUBLIC_OPENPANEL_API_URL=https://analytics.example.org/api
+NEXT_PUBLIC_OPENPANEL_SCRIPT_URL=https://analytics.example.org/op1.js
# Optional: persists the Toloka session across serverless cold starts (falls back to in-memory)
UPSTASH_REDIS_REST_URL=https://your-db.upstash.io
UPSTASH_REDIS_REST_TOKEN=your_upstash_token
\ No newline at end of file
diff --git a/env.ts b/env.ts
index a878fe4..79456ec 100644
--- a/env.ts
+++ b/env.ts
@@ -25,5 +25,9 @@ export const OPENSUBTITLES_USERNAME = process.env.OPENSUBTITLES_USERNAME;
export const OPENSUBTITLES_PASSWORD = process.env.OPENSUBTITLES_PASSWORD;
export const SUBTITLE_LANGUAGES = process.env.SUBTITLE_LANGUAGES || 'en,uk';
+export const OPENPANEL_CLIENT_ID = process.env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID;
+export const OPENPANEL_API_URL = process.env.NEXT_PUBLIC_OPENPANEL_API_URL;
+export const OPENPANEL_SCRIPT_URL = process.env.NEXT_PUBLIC_OPENPANEL_SCRIPT_URL;
+
export const UPSTASH_REDIS_REST_URL = process.env.UPSTASH_REDIS_REST_URL || process.env.KV_REST_API_URL;
export const UPSTASH_REDIS_REST_TOKEN = process.env.UPSTASH_REDIS_REST_TOKEN || process.env.KV_REST_API_TOKEN;
diff --git a/hooks/useInfiniteList.ts b/hooks/useInfiniteList.ts
index 7ada6cd..24c1950 100644
--- a/hooks/useInfiniteList.ts
+++ b/hooks/useInfiniteList.ts
@@ -1,6 +1,9 @@
-import { useMemo } from 'react';
+import { useCallback, useMemo } from 'react';
import { QueryKey, useInfiniteQuery, useSuspenseInfiniteQuery } from '@tanstack/react-query';
+import { track } from '@/lib/analytics';
+import type { ListName } from '@/lib/analytics/events';
+
interface Props {
enabled?: boolean;
queryKey: QueryKey;
@@ -8,6 +11,7 @@ interface Props {
initialPageParam?: string;
getNextPageParam?: () => string | undefined;
mode?: 'suspense' | 'default';
+ list?: ListName;
}
const useInfiniteList = ({
@@ -16,7 +20,8 @@ const useInfiniteList = ({
initialPageParam,
getNextPageParam,
mode = 'suspense',
- enabled
+ enabled,
+ list
}: Props) => {
const { data, hasNextPage, fetchNextPage, isFetched, isLoading } = (
mode === 'suspense' ? useSuspenseInfiniteQuery : useInfiniteQuery
@@ -43,7 +48,15 @@ const useInfiniteList = ({
);
}, [data?.pages]);
- return { shows, fetchNextPage: hasNextPage ? fetchNextPage : undefined, isFetched, isLoading };
+ const pages = data?.pages.length ?? 0;
+
+ const loadNextPage = useCallback(() => {
+ if (list) track('list_loaded_more', { list, page: pages + 1 });
+
+ return fetchNextPage();
+ }, [list, pages, fetchNextPage]);
+
+ return { shows, fetchNextPage: hasNextPage ? loadNextPage : undefined, isFetched, isLoading };
};
export default useInfiniteList;
diff --git a/hooks/useShowState.ts b/hooks/useShowState.ts
index 424cabf..ae4b133 100644
--- a/hooks/useShowState.ts
+++ b/hooks/useShowState.ts
@@ -3,6 +3,7 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
import statesMutation from '@/data/mutations/accountStates';
import statesQuery from '@/data/queries/accountStates';
import { KEY as USERS_SHOWS_KEY } from '@/data/queries/usersShows';
+import { track } from '@/lib/analytics';
import { useFavorites, useFavoritesStateToggle, useWatchList, useWatchListStateToggle } from './useLocalUsersLists';
import { useSession } from './useSession';
@@ -51,6 +52,8 @@ export const useMutateShowState = (show: Show) => {
list: mutation.variables?.list,
isPending: session ? mutation.isPending : false,
mutate: ({ list, value }: { list: 'favorite' | 'watchlist'; value: boolean }) => {
+ track('library_toggled', { showId: show.id, showType: show.type, list, value });
+
if (session) return mutation.mutate({ showId: show.id, showType: show.type, list, value });
if (list === 'favorite') return toggleFavorite();
diff --git a/hooks/useUsersShows.ts b/hooks/useUsersShows.ts
index 69ee93b..ffc4999 100644
--- a/hooks/useUsersShows.ts
+++ b/hooks/useUsersShows.ts
@@ -26,7 +26,7 @@ const useUsersShows = ({
const { shows: favorite } = useFavorites();
const { shows: watchlist } = useWatchList();
- const query = useInfiniteList({ ...usersShowsQuery({ showType, list, session }), mode });
+ const query = useInfiniteList({ ...usersShowsQuery({ showType, list, session }), mode, list });
return session
? query
diff --git a/lib/analytics/events.ts b/lib/analytics/events.ts
new file mode 100644
index 0000000..0896ce9
--- /dev/null
+++ b/lib/analytics/events.ts
@@ -0,0 +1,31 @@
+type ShowRef = { showId: Show['id']; showType: Show['type'] };
+
+export type ListName = 'popular' | 'top' | 'search' | 'favorite' | 'watchlist' | 'random';
+
+/**
+ * The whole analytics surface of the app. Adding an event means adding a line here first,
+ * which keeps names and payloads consistent and makes `track` calls type checked.
+ */
+export type AnalyticsEvents = {
+ show_viewed: ShowRef & { title: string; surface: 'page' | 'modal' };
+ person_viewed: { personId: string };
+ list_loaded_more: { list: ListName; page: number };
+ random_shuffled: { index: number };
+
+ search_performed: { query: string; showType: Show['type']; results: number };
+ gallery_tab_changed: { tab: string };
+
+ library_toggled: ShowRef & { list: 'favorite' | 'watchlist'; value: boolean };
+ auth_completed: EmptyPayload;
+ auth_signed_out: EmptyPayload;
+
+ torrents_searched: ShowRef & { provider: string; results: number };
+ torrent_selected: { provider: string; seeders: number; quality?: string; source?: string; codec?: string };
+ playback_started: ShowRef & { quality?: string };
+ playback_failed: ShowRef & { reason: string };
+ subtitles_selected: { language: string };
+};
+
+export type EmptyPayload = Record;
+
+export type AnalyticsEvent = keyof AnalyticsEvents;
diff --git a/lib/analytics/index.ts b/lib/analytics/index.ts
new file mode 100644
index 0000000..5f8cd91
--- /dev/null
+++ b/lib/analytics/index.ts
@@ -0,0 +1,30 @@
+import { OPENPANEL_CLIENT_ID } from '@/env';
+
+import type { AnalyticsEvents } from './events';
+
+// The sdk declares `window.op` itself, so this reads it without redeclaring the global.
+// It is defined by the inline stub in components/Analytics and queues calls until the real
+// script loads, so events fired before then are kept rather than dropped.
+const op = () => (window as unknown as { op?: (method: string, ...args: unknown[]) => void }).op;
+
+const ready = () => Boolean(OPENPANEL_CLIENT_ID) && typeof window !== 'undefined';
+
+export const track = (name: Name, properties: AnalyticsEvents[Name]) => {
+ if (!ready()) return;
+
+ op()?.('track', name, properties);
+};
+
+export const identify = (profileId: string) => {
+ if (!ready()) return;
+
+ op()?.('identify', { profileId });
+};
+
+export const clearIdentity = () => {
+ if (!ready()) return;
+
+ op()?.('clear');
+};
+
+export type { AnalyticsEvents, ListName } from './events';
diff --git a/lib/analytics/useTrackOnce.ts b/lib/analytics/useTrackOnce.ts
new file mode 100644
index 0000000..c9c441d
--- /dev/null
+++ b/lib/analytics/useTrackOnce.ts
@@ -0,0 +1,30 @@
+import { useEffect, useRef } from 'react';
+
+import type { AnalyticsEvents } from './events';
+import { track } from '.';
+
+/**
+ * Fires an event once per distinct `key`, skipping while it is nullish. Keeps view style
+ * events (a show opened, a search resolved) to a single line at the call site instead of an
+ * effect plus a ref in every component that needs one.
+ */
+const useTrackOnce = (
+ name: Name,
+ key: string | number | null | undefined,
+ payload: () => AnalyticsEvents[Name]
+) => {
+ const payloadRef = useRef(payload);
+ const sentRef = useRef(null);
+
+ payloadRef.current = payload;
+
+ useEffect(() => {
+ if (key == null || sentRef.current === key) return;
+
+ sentRef.current = key;
+
+ track(name, payloadRef.current());
+ }, [name, key]);
+};
+
+export default useTrackOnce;
diff --git a/package-lock.json b/package-lock.json
index d34bab2..0276ef5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11,6 +11,7 @@
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
+ "@openpanel/web": "^1.4.1",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-tabs": "^1.0.4",
@@ -19,7 +20,6 @@
"@tanstack/react-query-next-experimental": "^5.59.16",
"@types/cheerio": "^0.22.35",
"@upstash/redis": "^1.38.2",
- "@vercel/analytics": "^2.0.1",
"@vidstack/react": "^1.12.13",
"axios": "^1.7.7",
"axios-cookiejar-support": "^5.0.3",
@@ -2205,6 +2205,23 @@
"node": ">= 8"
}
},
+ "node_modules/@openpanel/sdk": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/@openpanel/sdk/-/sdk-1.3.1.tgz",
+ "integrity": "sha512-mQ5xaBUGXnyRg3qYxwnbVaUYyW7w8u+munrWk/ClnqxEeR2j+FYPiA6noHbHMCFC2aZutYD5OoRzEvw3FBNFxw==",
+ "license": "MIT"
+ },
+ "node_modules/@openpanel/web": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/@openpanel/web/-/web-1.4.1.tgz",
+ "integrity": "sha512-DgUWeocZw+b57YiJjefZPg+6sceR7TdOF8x7Ut75lu3CwcwqGi5jZNPXjikNemGL37aNWXCB4buhcoNan2j7RA==",
+ "license": "MIT",
+ "dependencies": {
+ "@openpanel/sdk": "1.3.1",
+ "@rrweb/types": "2.0.0-alpha.20",
+ "rrweb": "2.0.0-alpha.20"
+ }
+ },
"node_modules/@pkgjs/parseargs": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
@@ -4251,6 +4268,18 @@
"integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==",
"license": "MIT"
},
+ "node_modules/@rrweb/types": {
+ "version": "2.0.0-alpha.20",
+ "resolved": "https://registry.npmjs.org/@rrweb/types/-/types-2.0.0-alpha.20.tgz",
+ "integrity": "sha512-RbnDgKxA/odwB1R4gF7eUUj+rdSrq6ROQJsnMw7MIsGzlbSYvJeZN8YY4XqU0G6sKJvXI6bSzk7w/G94jNwzhw==",
+ "license": "MIT"
+ },
+ "node_modules/@rrweb/utils": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/@rrweb/utils/-/utils-2.1.1.tgz",
+ "integrity": "sha512-x2SgJAD3YJ9eVcLZ5l6OqWMtczdA3VfS5XqPeqpZdQgV9oh6Id5GK2cDN4bimnkqryOcIJdz8cTvV0yNvqQ+nA==",
+ "license": "MIT"
+ },
"node_modules/@rushstack/eslint-patch": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.6.1.tgz",
@@ -4381,6 +4410,12 @@
"@types/node": "*"
}
},
+ "node_modules/@types/css-font-loading-module": {
+ "version": "0.0.7",
+ "resolved": "https://registry.npmjs.org/@types/css-font-loading-module/-/css-font-loading-module-0.0.7.tgz",
+ "integrity": "sha512-nl09VhutdjINdWyXxHWN/w9zlNCfr60JUqJbd24YXUuCwgeL0TpFSdElCwb6cxfB6ybE19Gjj4g0jsgkXxKv1Q==",
+ "license": "MIT"
+ },
"node_modules/@types/estree": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",
@@ -4610,48 +4645,6 @@
"uncrypto": "^0.1.3"
}
},
- "node_modules/@vercel/analytics": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-2.0.1.tgz",
- "integrity": "sha512-MTQG6V9qQrt1tsDeF+2Uoo5aPjqbVPys1xvnIftXSJYG2SrwXRHnqEvVoYID7BTruDz4lCd2Z7rM1BdkUehk2g==",
- "license": "MIT",
- "peerDependencies": {
- "@remix-run/react": "^2",
- "@sveltejs/kit": "^1 || ^2",
- "next": ">= 13",
- "nuxt": ">= 3",
- "react": "^18 || ^19 || ^19.0.0-rc",
- "svelte": ">= 4",
- "vue": "^3",
- "vue-router": "^4"
- },
- "peerDependenciesMeta": {
- "@remix-run/react": {
- "optional": true
- },
- "@sveltejs/kit": {
- "optional": true
- },
- "next": {
- "optional": true
- },
- "nuxt": {
- "optional": true
- },
- "react": {
- "optional": true
- },
- "svelte": {
- "optional": true
- },
- "vue": {
- "optional": true
- },
- "vue-router": {
- "optional": true
- }
- }
- },
"node_modules/@vidstack/react": {
"version": "1.12.13",
"resolved": "https://registry.npmjs.org/@vidstack/react/-/react-1.12.13.tgz",
@@ -4830,6 +4823,12 @@
"@xtuc/long": "4.2.2"
}
},
+ "node_modules/@xstate/fsm": {
+ "version": "1.6.5",
+ "resolved": "https://registry.npmjs.org/@xstate/fsm/-/fsm-1.6.5.tgz",
+ "integrity": "sha512-b5o1I6aLNeYlU/3CPlj/Z91ybk1gUsKT+5NAJI+2W4UjvS5KLG28K9v5UvNoFVjHV8PajVZ00RH3vnjyQO7ZAw==",
+ "license": "MIT"
+ },
"node_modules/@xtuc/ieee754": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",
@@ -9248,6 +9247,12 @@
"node": ">=16 || 14 >=14.17"
}
},
+ "node_modules/mitt": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz",
+ "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==",
+ "license": "MIT"
+ },
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
@@ -9266,15 +9271,16 @@
}
},
"node_modules/nanoid": {
- "version": "3.3.6",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
- "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",
+ "version": "3.3.18",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",
+ "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/ai"
}
],
+ "license": "MIT",
"bin": {
"nanoid": "bin/nanoid.cjs"
},
@@ -9903,9 +9909,10 @@
}
},
"node_modules/picocolors": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz",
- "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw=="
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
},
"node_modules/picomatch": {
"version": "2.3.1",
@@ -10663,6 +10670,68 @@
"randombytes": "^2.1.0"
}
},
+ "node_modules/rrdom": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/rrdom/-/rrdom-2.1.1.tgz",
+ "integrity": "sha512-VBkTF3bGNqcZjqnbo/gKi9GVQPIxiG0dofw7CQdAZQFQ2juJdt2YKIf3oS9QudL8HTpGh9bz5TUN+3amBn1Geg==",
+ "license": "MIT",
+ "dependencies": {
+ "rrweb-snapshot": "^2.1.1"
+ }
+ },
+ "node_modules/rrweb": {
+ "version": "2.0.0-alpha.20",
+ "resolved": "https://registry.npmjs.org/rrweb/-/rrweb-2.0.0-alpha.20.tgz",
+ "integrity": "sha512-CZKDlm+j1VA50Ko3gnMbpvguCAleljsTNXPnVk9aeNP8o6T6kolRbISHyDZpqZ4G+bdDLlQOignPP3jEsXs8Gg==",
+ "license": "MIT",
+ "dependencies": {
+ "@rrweb/types": "^2.0.0-alpha.20",
+ "@rrweb/utils": "^2.0.0-alpha.20",
+ "@types/css-font-loading-module": "0.0.7",
+ "@xstate/fsm": "^1.4.0",
+ "base64-arraybuffer": "^1.0.1",
+ "mitt": "^3.0.0",
+ "rrdom": "^2.0.0-alpha.20",
+ "rrweb-snapshot": "^2.0.0-alpha.20"
+ }
+ },
+ "node_modules/rrweb-snapshot": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/rrweb-snapshot/-/rrweb-snapshot-2.1.1.tgz",
+ "integrity": "sha512-al4Kx7Am7YlIn/5Yb2EMr7cdmjGiK+cLhdilJEXqkFXgpnys8t/yMJumXy2Ormgirpg3MBnFha0GTgny+iIL2w==",
+ "license": "MIT",
+ "dependencies": {
+ "postcss": "^8.4.38"
+ }
+ },
+ "node_modules/rrweb-snapshot/node_modules/postcss": {
+ "version": "8.5.26",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.26.tgz",
+ "integrity": "sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.17",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
"node_modules/run-applescript": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz",
@@ -11010,9 +11079,10 @@
}
},
"node_modules/source-map-js": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
- "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "license": "BSD-3-Clause",
"engines": {
"node": ">=0.10.0"
}
@@ -14014,6 +14084,21 @@
"fastq": "^1.6.0"
}
},
+ "@openpanel/sdk": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/@openpanel/sdk/-/sdk-1.3.1.tgz",
+ "integrity": "sha512-mQ5xaBUGXnyRg3qYxwnbVaUYyW7w8u+munrWk/ClnqxEeR2j+FYPiA6noHbHMCFC2aZutYD5OoRzEvw3FBNFxw=="
+ },
+ "@openpanel/web": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/@openpanel/web/-/web-1.4.1.tgz",
+ "integrity": "sha512-DgUWeocZw+b57YiJjefZPg+6sceR7TdOF8x7Ut75lu3CwcwqGi5jZNPXjikNemGL37aNWXCB4buhcoNan2j7RA==",
+ "requires": {
+ "@openpanel/sdk": "1.3.1",
+ "@rrweb/types": "2.0.0-alpha.20",
+ "rrweb": "2.0.0-alpha.20"
+ }
+ },
"@pkgjs/parseargs": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
@@ -14985,6 +15070,16 @@
}
}
},
+ "@rrweb/types": {
+ "version": "2.0.0-alpha.20",
+ "resolved": "https://registry.npmjs.org/@rrweb/types/-/types-2.0.0-alpha.20.tgz",
+ "integrity": "sha512-RbnDgKxA/odwB1R4gF7eUUj+rdSrq6ROQJsnMw7MIsGzlbSYvJeZN8YY4XqU0G6sKJvXI6bSzk7w/G94jNwzhw=="
+ },
+ "@rrweb/utils": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/@rrweb/utils/-/utils-2.1.1.tgz",
+ "integrity": "sha512-x2SgJAD3YJ9eVcLZ5l6OqWMtczdA3VfS5XqPeqpZdQgV9oh6Id5GK2cDN4bimnkqryOcIJdz8cTvV0yNvqQ+nA=="
+ },
"@rushstack/eslint-patch": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.6.1.tgz",
@@ -15073,6 +15168,11 @@
"@types/node": "*"
}
},
+ "@types/css-font-loading-module": {
+ "version": "0.0.7",
+ "resolved": "https://registry.npmjs.org/@types/css-font-loading-module/-/css-font-loading-module-0.0.7.tgz",
+ "integrity": "sha512-nl09VhutdjINdWyXxHWN/w9zlNCfr60JUqJbd24YXUuCwgeL0TpFSdElCwb6cxfB6ybE19Gjj4g0jsgkXxKv1Q=="
+ },
"@types/estree": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",
@@ -15247,12 +15347,6 @@
"uncrypto": "^0.1.3"
}
},
- "@vercel/analytics": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-2.0.1.tgz",
- "integrity": "sha512-MTQG6V9qQrt1tsDeF+2Uoo5aPjqbVPys1xvnIftXSJYG2SrwXRHnqEvVoYID7BTruDz4lCd2Z7rM1BdkUehk2g==",
- "requires": {}
- },
"@vidstack/react": {
"version": "1.12.13",
"resolved": "https://registry.npmjs.org/@vidstack/react/-/react-1.12.13.tgz",
@@ -15408,6 +15502,11 @@
"@xtuc/long": "4.2.2"
}
},
+ "@xstate/fsm": {
+ "version": "1.6.5",
+ "resolved": "https://registry.npmjs.org/@xstate/fsm/-/fsm-1.6.5.tgz",
+ "integrity": "sha512-b5o1I6aLNeYlU/3CPlj/Z91ybk1gUsKT+5NAJI+2W4UjvS5KLG28K9v5UvNoFVjHV8PajVZ00RH3vnjyQO7ZAw=="
+ },
"@xtuc/ieee754": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",
@@ -18411,6 +18510,11 @@
"integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
"dev": true
},
+ "mitt": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz",
+ "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw=="
+ },
"ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
@@ -18428,9 +18532,9 @@
}
},
"nanoid": {
- "version": "3.3.6",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
- "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA=="
+ "version": "3.3.18",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",
+ "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w=="
},
"natural-compare": {
"version": "1.4.0",
@@ -18832,9 +18936,9 @@
"integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw=="
},
"picocolors": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz",
- "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw=="
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="
},
"picomatch": {
"version": "2.3.1",
@@ -19310,6 +19414,49 @@
}
}
},
+ "rrdom": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/rrdom/-/rrdom-2.1.1.tgz",
+ "integrity": "sha512-VBkTF3bGNqcZjqnbo/gKi9GVQPIxiG0dofw7CQdAZQFQ2juJdt2YKIf3oS9QudL8HTpGh9bz5TUN+3amBn1Geg==",
+ "requires": {
+ "rrweb-snapshot": "^2.1.1"
+ }
+ },
+ "rrweb": {
+ "version": "2.0.0-alpha.20",
+ "resolved": "https://registry.npmjs.org/rrweb/-/rrweb-2.0.0-alpha.20.tgz",
+ "integrity": "sha512-CZKDlm+j1VA50Ko3gnMbpvguCAleljsTNXPnVk9aeNP8o6T6kolRbISHyDZpqZ4G+bdDLlQOignPP3jEsXs8Gg==",
+ "requires": {
+ "@rrweb/types": "^2.0.0-alpha.20",
+ "@rrweb/utils": "^2.0.0-alpha.20",
+ "@types/css-font-loading-module": "0.0.7",
+ "@xstate/fsm": "^1.4.0",
+ "base64-arraybuffer": "^1.0.1",
+ "mitt": "^3.0.0",
+ "rrdom": "^2.0.0-alpha.20",
+ "rrweb-snapshot": "^2.0.0-alpha.20"
+ }
+ },
+ "rrweb-snapshot": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/rrweb-snapshot/-/rrweb-snapshot-2.1.1.tgz",
+ "integrity": "sha512-al4Kx7Am7YlIn/5Yb2EMr7cdmjGiK+cLhdilJEXqkFXgpnys8t/yMJumXy2Ormgirpg3MBnFha0GTgny+iIL2w==",
+ "requires": {
+ "postcss": "^8.4.38"
+ },
+ "dependencies": {
+ "postcss": {
+ "version": "8.5.26",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.26.tgz",
+ "integrity": "sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==",
+ "requires": {
+ "nanoid": "^3.3.17",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ }
+ }
+ }
+ },
"run-applescript": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz",
@@ -19532,9 +19679,9 @@
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="
},
"source-map-js": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
- "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw=="
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="
},
"source-map-support": {
"version": "0.5.21",
diff --git a/package.json b/package.json
index f11d69c..b01f01b 100644
--- a/package.json
+++ b/package.json
@@ -25,6 +25,7 @@
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
+ "@openpanel/web": "^1.4.1",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-tabs": "^1.0.4",
@@ -33,7 +34,6 @@
"@tanstack/react-query-next-experimental": "^5.59.16",
"@types/cheerio": "^0.22.35",
"@upstash/redis": "^1.38.2",
- "@vercel/analytics": "^2.0.1",
"@vidstack/react": "^1.12.13",
"axios": "^1.7.7",
"axios-cookiejar-support": "^5.0.3",