Skip to content

Open-source status page, incident response and uptime monitoring

(wip) add openpanel to docs (astro) and add web analytics to nextjs (#1246)

Carl-Gerhard Lindesvärda0ce939012e4
diff --git a/apps/docs/.env.example b/apps/docs/.env.example
new file mode 100644
index 000000000..d5de49bef
--- /dev/null
+++ b/apps/docs/.env.example
@@ -0,0 +1 @@
+NEXT_PUBLIC_OPENPANEL_CLIENT_ID=
\ No newline at end of file
diff --git a/apps/docs/astro.config.mjs b/apps/docs/astro.config.mjs
index a27eb7596..37c8936f7 100644
--- a/apps/docs/astro.config.mjs
+++ b/apps/docs/astro.config.mjs
@@ -1,7 +1,7 @@
import sitemap from "@astrojs/sitemap";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
-import { defineConfig } from "astro/config";
+import { defineConfig, envField } from "astro/config";
import starlightSidebarTopics from "starlight-sidebar-topics";
import Icons from "unplugin-icons/vite";
@@ -11,6 +11,14 @@ export default defineConfig({
vite: {
plugins: [Icons({ compiler: "astro" })],
},
+ env: {
+ schema: {
+ NEXT_PUBLIC_OPENPANEL_CLIENT_ID: envField.string({
+ access: "public",
+ context: "client",
+ }),
+ },
+ },
integrations: [
sitemap(),
starlight({
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 9f809e3af..999860238 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -16,6 +16,7 @@
"@astrojs/starlight": "0.32.6",
"@astrojs/starlight-tailwind": "3.0.1",
"@astrojs/tailwind": "6.0.0",
+ "@openpanel/astro": "1.0.1",
"astro": "5.6.1",
"sharp": "0.33.5",
"starlight-showcases": "0.3.0",
diff --git a/apps/docs/src/components/Head.astro b/apps/docs/src/components/Head.astro
index 819637f4d..f4e97b787 100644
--- a/apps/docs/src/components/Head.astro
+++ b/apps/docs/src/components/Head.astro
@@ -1,6 +1,7 @@
---
+import { NEXT_PUBLIC_OPENPANEL_CLIENT_ID } from "astro:env/client";
import Default from "@astrojs/starlight/components/Head.astro";
-
+import { OpenPanelComponent } from "@openpanel/astro";
const title = Astro.locals.starlightRoute.title;
const { siteTitle } = Astro.locals.starlightRoute;
@@ -17,3 +18,5 @@ const url = `https://openstatus.dev/api/og?title=${siteTitle}&description=${titl
<!-- REMINDER: prevent unexpected font flashes for our 'OpenStatus' logo on each page load -->
<link rel="preload" href="/fonts/CalSans-SemiBold.ttf" as="font" type="font/ttf" crossorigin>
<script defer async src="https://buttons.github.io/buttons.js" />
+
+<OpenPanelComponent clientId={NEXT_PUBLIC_OPENPANEL_CLIENT_ID!} trackScreenViews trackOutgoingLinks trackAttributes />
\ No newline at end of file
diff --git a/apps/server/.env.example b/apps/server/.env.example
index 89773de5e..4f4fafd3c 100644
--- a/apps/server/.env.example
+++ b/apps/server/.env.example
@@ -12,5 +12,5 @@ TWILLIO_ACCOUNT_ID=your_account_id
SCREENSHOT_SERVICE_URL=http://your.endpoint
QSTASH_TOKEN=your_token
-OPENPANEL_CLIENT_ID=
+NEXT_PUBLIC_OPENPANEL_CLIENT_ID=
OPENPANEL_CLIENT_SECRET=
\ No newline at end of file
diff --git a/apps/server/.env.test b/apps/server/.env.test
index dfc6ddf67..a9ab6f167 100644
--- a/apps/server/.env.test
+++ b/apps/server/.env.test
@@ -11,5 +11,5 @@ FLY_REGION=ams
RESEND_API_KEY=test
SQLD_HTTP_AUTH=basic:token
SCREENSHOT_SERVICE_URL=http://your.endpoint
-OPENPANEL_CLIENT_ID=test
+NEXT_PUBLIC_OPENPANEL_CLIENT_ID=test
OPENPANEL_CLIENT_SECRET=test
\ No newline at end of file
diff --git a/apps/web/.env.example b/apps/web/.env.example
index 039622f52..c1c8ad001 100644
--- a/apps/web/.env.example
+++ b/apps/web/.env.example
@@ -74,5 +74,5 @@ WORKSPACES_LOOKBACK_30=
# https://turbo.build/repo/docs/crafting-your-repository/using-environment-variables#loose-mode
TURBO_ENV_MODE=loose
-OPENPANEL_CLIENT_ID=something
+NEXT_PUBLIC_OPENPANEL_CLIENT_ID=something
OPENPANEL_CLIENT_SECRET=something
diff --git a/apps/web/package.json b/apps/web/package.json
index c6151d024..dbb427309 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -16,6 +16,7 @@
"@google-cloud/tasks": "4.0.1",
"@hookform/resolvers": "3.9.1",
"@libsql/client": "0.14.0",
+ "@openpanel/nextjs": "^1.0.8",
"@openstatus/analytics": "workspace:*",
"@openstatus/api": "workspace:*",
"@openstatus/assertions": "workspace:*",
@@ -26,9 +27,9 @@
"@openstatus/notification-discord": "workspace:*",
"@openstatus/notification-emails": "workspace:*",
"@openstatus/notification-ntfy": "workspace:*",
+ "@openstatus/notification-opsgenie": "workspace:*",
"@openstatus/notification-pagerduty": "workspace:*",
"@openstatus/notification-slack": "workspace:*",
- "@openstatus/notification-opsgenie": "workspace:*",
"@openstatus/notification-webhook": "workspace:*",
"@openstatus/react": "workspace:*",
"@openstatus/tinybird": "workspace:*",
diff --git a/apps/web/src/app/app/layout.tsx b/apps/web/src/app/app/layout.tsx
index 30e2097d3..da92a96ee 100644
--- a/apps/web/src/app/app/layout.tsx
+++ b/apps/web/src/app/app/layout.tsx
@@ -1,16 +1,22 @@
import { SessionProvider } from "next-auth/react";
import { Bubble } from "@/components/support/bubble";
+import { auth } from "@/lib/auth";
+import { IdentifyComponent } from "@openpanel/nextjs";
-export default function AuthLayout({
+export default async function AuthLayout({
children, // will be a page or nested layout
}: {
children: React.ReactNode;
}) {
+ const session = await auth();
return (
- <SessionProvider>
+ <SessionProvider session={session}>
{children}
<Bubble />
+ {session?.user?.id && (
+ <IdentifyComponent profileId={`usr_${session?.user?.id}`} />
+ )}
</SessionProvider>
);
}
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index 0a5d7eaf6..f53e6b513 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -1,11 +1,11 @@
import "@/styles/globals.css";
+import { Toaster } from "@/components/ui/sonner";
+import { OpenPanelComponent } from "@openpanel/nextjs";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import LocalFont from "next/font/local";
-import { Toaster } from "@/components/ui/sonner";
-
import {
defaultMetadata,
ogMetadata,
@@ -13,6 +13,7 @@ import {
} from "@/app/shared-metadata";
import { TailwindIndicator } from "@/components/tailwind-indicator";
import { ThemeProvider } from "@/components/theme-provider";
+import { env } from "@/env";
import { TRPCReactQueryProvider } from "@/trpc/rq-client";
import { NuqsAdapter } from "nuqs/adapters/next/app";
import Background from "./_components/background";
@@ -56,6 +57,14 @@ export default function RootLayout({
</TRPCReactQueryProvider>
</ThemeProvider>
</NuqsAdapter>
+ {env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID && (
+ <OpenPanelComponent
+ clientId={env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID}
+ trackScreenViews
+ trackOutgoingLinks
+ trackAttributes
+ />
+ )}
</body>
</html>
);
diff --git a/apps/web/src/content/posts/event-analytics-implementation.mdx b/apps/web/src/content/posts/event-analytics-implementation.mdx
index 9a8eee312..e177f5713 100644
--- a/apps/web/src/content/posts/event-analytics-implementation.mdx
+++ b/apps/web/src/content/posts/event-analytics-implementation.mdx
@@ -53,7 +53,7 @@ import {
import { type EventProps } from "@openstatus/analytics";
const op = new OpenPanel({
- clientId: process.env.OPENPANEL_CLIENT_ID,
+ clientId: process.env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID,
clientSecret: process.env.OPENPANEL_CLIENT_SECRET,
});
diff --git a/apps/web/src/env.ts b/apps/web/src/env.ts
index 102681b73..b986456af 100644
--- a/apps/web/src/env.ts
+++ b/apps/web/src/env.ts
@@ -30,8 +30,11 @@ export const env = createEnv({
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: z.string(),
NEXT_PUBLIC_URL: z.string(),
NEXT_PUBLIC_SENTRY_DSN: z.string(),
+ NEXT_PUBLIC_OPENPANEL_CLIENT_ID: z.string(),
},
runtimeEnv: {
+ NEXT_PUBLIC_OPENPANEL_CLIENT_ID:
+ process.env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID,
TINY_BIRD_API_KEY: process.env.TINY_BIRD_API_KEY,
RESEND_API_KEY: process.env.RESEND_API_KEY,
QSTASH_CURRENT_SIGNING_KEY: process.env.QSTASH_CURRENT_SIGNING_KEY,
diff --git a/apps/workflows/.env.test b/apps/workflows/.env.test
index b315cfb50..4e7111d5a 100644
--- a/apps/workflows/.env.test
+++ b/apps/workflows/.env.test
@@ -11,5 +11,5 @@ FLY_REGION=ams
RESEND_API_KEY=test
SQLD_HTTP_AUTH=basic:token
SCREENSHOT_SERVICE_URL=http://your.endpoint
-OPENPANEL_CLIENT_ID=test
+NEXT_PUBLIC_OPENPANEL_CLIENT_ID=test
OPENPANEL_CLIENT_SECRET=test
diff --git a/packages/analytics/.env.example b/packages/analytics/.env.example
index 62498f10e..19cd544df 100644
--- a/packages/analytics/.env.example
+++ b/packages/analytics/.env.example
@@ -1,2 +1,2 @@
-OPENPANEL_CLIENT_ID=something
+NEXT_PUBLIC_OPENPANEL_CLIENT_ID=something
OPENPANEL_CLIENT_SECRET=something
\ No newline at end of file
diff --git a/packages/analytics/env.ts b/packages/analytics/env.ts
index 80b37c48c..dbc560e68 100644
--- a/packages/analytics/env.ts
+++ b/packages/analytics/env.ts
@@ -3,11 +3,15 @@ import { z } from "zod";
export const env = createEnv({
server: {
- OPENPANEL_CLIENT_ID: z.string(),
OPENPANEL_CLIENT_SECRET: z.string(),
},
+ client: {
+ NEXT_PUBLIC_OPENPANEL_CLIENT_ID: z.string(),
+ },
+ clientPrefix: "NEXT_PUBLIC_",
runtimeEnv: {
- OPENPANEL_CLIENT_ID: process.env.OPENPANEL_CLIENT_ID,
OPENPANEL_CLIENT_SECRET: process.env.OPENPANEL_CLIENT_SECRET,
+ NEXT_PUBLIC_OPENPANEL_CLIENT_ID:
+ process.env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID,
},
});
diff --git a/packages/analytics/src/server.ts b/packages/analytics/src/server.ts
index 96eacb792..767d2e2ec 100644
--- a/packages/analytics/src/server.ts
+++ b/packages/analytics/src/server.ts
@@ -3,7 +3,7 @@ import { env } from "../env";
import type { EventProps } from "./events";
const op = new OpenPanel({
- clientId: env.OPENPANEL_CLIENT_ID,
+ clientId: env.NEXT_PUBLIC_OPENPANEL_CLIENT_ID,
clientSecret: env.OPENPANEL_CLIENT_SECRET,
});
@@ -17,7 +17,7 @@ export type IdentifyProps = {
fullName?: string | null;
email?: string;
workspaceId?: string;
- plan?: string;
+ plan?: "free" | "starter" | "team";
// headers from the request
location?: string;
userAgent?: string;
diff --git a/packages/api/.env.test b/packages/api/.env.test
index c8095c925..6491cb9ee 100644
--- a/packages/api/.env.test
+++ b/packages/api/.env.test
@@ -1,3 +1,3 @@
RESEND_API_KEY='test'
-OPENPANEL_CLIENT_ID='test'
+NEXT_PUBLIC_OPENPANEL_CLIENT_ID='test'
OPENPANEL_CLIENT_SECRET='test'
\ No newline at end of file
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e8d6a2cf1..bb2f210ab 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -47,6 +47,9 @@ importers:
'@astrojs/tailwind':
specifier: 6.0.0
+ '@openpanel/astro':
+ specifier: 1.0.1
astro:
specifier: 5.6.1
@@ -95,7 +98,7 @@ importers:
version: 2.6.2
drizzle-orm:
specifier: 0.35.3
hono:
specifier: 4.5.3
version: 4.5.3
@@ -209,6 +212,9 @@ importers:
'@libsql/client':
specifier: 0.14.0
+ '@openpanel/nextjs':
+ specifier: ^1.0.8
'@openstatus/analytics':
specifier: workspace:*
version: link:../../packages/analytics
@@ -528,7 +534,7 @@ importers:
version: link:../../packages/tsconfig
'@types/bun':
specifier: latest
- version: 1.2.5
+ version: 1.2.12
typescript:
specifier: 5.6.2
version: 5.6.2
@@ -642,10 +648,10 @@ importers:
drizzle-orm:
specifier: 0.35.3
drizzle-zod:
specifier: 0.5.1
zod:
specifier: 3.23.8
version: 3.23.8
@@ -1887,12 +1893,6 @@ packages:
cpu: [ppc64]
os: [aix]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==}
- engines: {node: '>=18'}
- cpu: [ppc64]
- os: [aix]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==}
engines: {node: '>=18'}
@@ -1923,12 +1923,6 @@ packages:
cpu: [arm64]
os: [android]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [android]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==}
engines: {node: '>=18'}
@@ -1959,12 +1953,6 @@ packages:
cpu: [arm]
os: [android]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==}
- engines: {node: '>=18'}
- cpu: [arm]
- os: [android]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==}
engines: {node: '>=18'}
@@ -1995,12 +1983,6 @@ packages:
cpu: [x64]
os: [android]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [android]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==}
engines: {node: '>=18'}
@@ -2031,12 +2013,6 @@ packages:
cpu: [arm64]
os: [darwin]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [darwin]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==}
engines: {node: '>=18'}
@@ -2067,12 +2043,6 @@ packages:
cpu: [x64]
os: [darwin]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [darwin]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==}
engines: {node: '>=18'}
@@ -2103,12 +2073,6 @@ packages:
cpu: [arm64]
os: [freebsd]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [freebsd]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==}
engines: {node: '>=18'}
@@ -2139,12 +2103,6 @@ packages:
cpu: [x64]
os: [freebsd]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [freebsd]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==}
engines: {node: '>=18'}
@@ -2175,12 +2133,6 @@ packages:
cpu: [arm64]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==}
engines: {node: '>=18'}
@@ -2211,12 +2163,6 @@ packages:
cpu: [arm]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==}
- engines: {node: '>=18'}
- cpu: [arm]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==}
engines: {node: '>=18'}
@@ -2247,12 +2193,6 @@ packages:
cpu: [ia32]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==}
- engines: {node: '>=18'}
- cpu: [ia32]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==}
engines: {node: '>=18'}
@@ -2283,12 +2223,6 @@ packages:
cpu: [loong64]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==}
- engines: {node: '>=18'}
- cpu: [loong64]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==}
engines: {node: '>=18'}
@@ -2319,12 +2253,6 @@ packages:
cpu: [mips64el]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==}
- engines: {node: '>=18'}
- cpu: [mips64el]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==}
engines: {node: '>=18'}
@@ -2355,12 +2283,6 @@ packages:
cpu: [ppc64]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==}
- engines: {node: '>=18'}
- cpu: [ppc64]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==}
engines: {node: '>=18'}
@@ -2391,12 +2313,6 @@ packages:
cpu: [riscv64]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==}
- engines: {node: '>=18'}
- cpu: [riscv64]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==}
engines: {node: '>=18'}
@@ -2427,12 +2343,6 @@ packages:
cpu: [s390x]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==}
- engines: {node: '>=18'}
- cpu: [s390x]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==}
engines: {node: '>=18'}
@@ -2463,12 +2373,6 @@ packages:
cpu: [x64]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [linux]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==}
engines: {node: '>=18'}
@@ -2481,12 +2385,6 @@ packages:
cpu: [x64]
os: [linux]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [netbsd]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==}
engines: {node: '>=18'}
@@ -2517,12 +2415,6 @@ packages:
cpu: [x64]
os: [netbsd]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [netbsd]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==}
engines: {node: '>=18'}
@@ -2535,12 +2427,6 @@ packages:
cpu: [x64]
os: [netbsd]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [openbsd]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==}
engines: {node: '>=18'}
@@ -2571,12 +2457,6 @@ packages:
cpu: [x64]
os: [openbsd]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [openbsd]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==}
engines: {node: '>=18'}
@@ -2607,12 +2487,6 @@ packages:
cpu: [x64]
os: [sunos]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [sunos]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==}
engines: {node: '>=18'}
@@ -2643,12 +2517,6 @@ packages:
cpu: [arm64]
os: [win32]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==}
- engines: {node: '>=18'}
- cpu: [arm64]
- os: [win32]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==}
engines: {node: '>=18'}
@@ -2679,12 +2547,6 @@ packages:
cpu: [ia32]
os: [win32]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==}
- engines: {node: '>=18'}
- cpu: [ia32]
- os: [win32]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==}
engines: {node: '>=18'}
@@ -2715,12 +2577,6 @@ packages:
cpu: [x64]
os: [win32]
- '@esbuild/[email protected]':
- resolution: {integrity: sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==}
- engines: {node: '>=18'}
- cpu: [x64]
- os: [win32]
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==}
engines: {node: '>=18'}
@@ -3107,9 +2963,24 @@ packages:
'@one-ini/[email protected]':
resolution: {integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==}
+ '@openpanel/[email protected]':
+ resolution: {integrity: sha512-PLSOJFj4RoFbQPZXBwJNsaqprnrjq5Hj1x6oY1a1IJpWSqFqO3Wa1OSMsLh2G2QXAowsg+cfiu7Mp6h/kK1tow==}
+ peerDependencies:
+ astro: ^4.0.0 || ^5.0.0
+
+ '@openpanel/[email protected]':
+ resolution: {integrity: sha512-1y5T6ARQFysg1DjdLrepP/En7XPUQd1yShvSgC1bkW6k9cwW1v7fbRSCUHmRzhhCt0rs1FGUOuFFwpEF7GRvdA==}
+ peerDependencies:
+ next: ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+
'@openpanel/[email protected]':
resolution: {integrity: sha512-FNmmfjdXoC/VHEjA+WkrQ4lyM5lxEmV7xDd57uj4E+lIS0sU3DLG2mV/dpS8AscnZbUvuMn3kPhiLCqYzuv/gg==}
+ '@openpanel/[email protected]':
+ resolution: {integrity: sha512-cVZ7Kr9SicczJ/RDIfEtZs8+1iGDzwkabVA/j3NqSl8VSucsC8m1+LVbjmCDzCJNnK4yVn6tEcc9PJRi2rtllw==}
+
'@opentelemetry/[email protected]':
resolution: {integrity: sha512-qnSqB2DQ9TPP96dl8cDubDvrUyWc0/sK81xHTK8eSUspzDM3bsewX903qclQFvVhgStjRWdC5bLb3kQqMkfV5A==}
engines: {node: '>=14'}
@@ -4819,8 +4690,8 @@ packages:
resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==}
- '@types/[email protected]':
- resolution: {integrity: sha512-w2OZTzrZTVtbnJew1pdFmgV99H0/L+Pvw+z1P67HaR18MHOzYnTYOi6qzErhK8HyT+DB782ADVPPE92Xu2/Opg==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-lY/GQTXDGsolT/TiH72p1tuyUORuRrdV7VwOTOjDOt8uTBJQOJc5zz3ufwwDl0VBaoxotSk4LdP0hhjLJ6ypIQ==}
resolution: {integrity: sha512-2in/lrHRNmDvHPgyormtEralhPcN3An1gLjJzj2Bw145VBxkQ75JEXW6CTdMAwShiHQcYsl2d10IjQSdJSJz4g==}
@@ -5435,8 +5306,8 @@ packages:
resolution: {integrity: sha512-2dNB+dBwAcFW7RSd4y5vKycRjouKVklSwPk4EjBKWvcMYUBOqZGGNzV7+b2tfKBG3BeRXnozbnegVKR1azuATg==}
- resolution: {integrity: sha512-3oO6LVGGRRKI4kHINx5PIdIgnLRb7l/SprhzqXapmoYkFl5m4j6EvALvbDVuuBFaamB46Ap6HCUxIXNLCGy+tg==}
+ resolution: {integrity: sha512-tvWMx5vPqbRXgE8WUZI94iS1xAYs8bkqESR9cxBB1Wi+urvfTrF1uzuDgBHFAdO0+d2lmsbG3HmeKMvUyj6pWA==}
resolution: {integrity: sha512-jwzPOChofl67PSTW2SGubV9HBQAhhR2i6nskiOThauo9dzwDUgOWQScFVaJkjEfYX+UXiD+LEx8EblQMc2wIag==}
@@ -6143,11 +6014,6 @@ packages:
engines: {node: '>=12'}
hasBin: true
- resolution: {integrity: sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==}
- engines: {node: '>=18'}
- hasBin: true
-
resolution: {integrity: sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==}
engines: {node: '>=18'}
@@ -10942,9 +10808,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -10960,9 +10823,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -10978,9 +10838,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -10996,9 +10853,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11014,9 +10868,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11032,9 +10883,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11050,9 +10898,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11068,9 +10913,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11086,9 +10928,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11104,9 +10943,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11122,9 +10958,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11140,9 +10973,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11158,9 +10988,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11176,9 +11003,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11194,9 +11018,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11212,9 +11033,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11230,18 +11048,12 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11257,18 +11069,12 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11284,9 +11090,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11302,9 +11105,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11320,9 +11120,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11338,9 +11135,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11356,9 +11150,6 @@ snapshots:
'@esbuild/[email protected]':
optional: true
- '@esbuild/[email protected]':
- optional: true
-
'@esbuild/[email protected]':
optional: true
@@ -11784,8 +11575,24 @@ snapshots:
'@one-ini/[email protected]': {}
+ dependencies:
+ '@openpanel/web': 1.0.1
+
+ dependencies:
+ '@openpanel/web': 1.0.1
+ react: 19.1.0
+ react-dom: 19.1.0([email protected])
+
'@openpanel/[email protected]': {}
+ '@openpanel/[email protected]':
+ dependencies:
+ '@openpanel/sdk': 1.0.0
+
'@opentelemetry/[email protected]':
dependencies:
'@opentelemetry/api': 1.9.0
@@ -13642,39 +13449,6 @@ snapshots:
'@tanstack/[email protected]': {}
- '@tanstack/[email protected]': {}
-
- dependencies:
- '@tanstack/virtual-core': 3.8.3
- vue: 3.4.31([email protected])
-
- '@testing-library/[email protected]':
- dependencies:
- '@babel/code-frame': 7.26.2
- '@babel/runtime': 7.26.0
- '@types/aria-query': 5.0.4
- aria-query: 5.3.0
- chalk: 4.1.2
- dom-accessibility-api: 0.5.16
- lz-string: 1.5.0
- pretty-format: 27.5.1
-
- '@testing-library/[email protected]':
- dependencies:
- '@adobe/css-tools': 4.4.0
- '@babel/runtime': 7.26.0
- aria-query: 5.3.2
- chalk: 3.0.0
- css.escape: 1.5.1
- dom-accessibility-api: 0.6.3
- lodash: 4.17.21
- redent: 3.0.0
-
- '@testing-library/[email protected](@testing-library/[email protected])':
- dependencies:
- '@testing-library/dom': 10.1.0
-
'@tootallnate/[email protected]': {}
'@tootallnate/[email protected]': {}
@@ -13783,9 +13557,9 @@ snapshots:
dependencies:
'@babel/types': 7.26.3
- '@types/[email protected]':
+ '@types/[email protected]':
dependencies:
- bun-types: 1.2.5
+ bun-types: 1.2.12
'@types/[email protected]': {}
@@ -14600,10 +14374,9 @@ snapshots:
dependencies:
'@types/node': 22.10.2
- '@types/ws': 8.5.13
dependencies:
@@ -15084,7 +14857,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@libsql/client-wasm': 0.14.0
optionalDependencies:
@@ -15094,10 +14867,10 @@ snapshots:
'@types/pg': 8.11.10
'@types/react': 19.1.0
better-sqlite3: 11.4.0
- bun-types: 1.2.5
+ bun-types: 1.2.12
react: 19.1.0
dependencies:
'@libsql/client-wasm': 0.14.0
optionalDependencies:
@@ -15107,12 +14880,12 @@ snapshots:
'@types/pg': 8.11.10
'@types/react': 19.1.0
better-sqlite3: 11.7.0
- bun-types: 1.2.5
+ bun-types: 1.2.12
react: 19.1.0
dependencies:
zod: 3.23.8
@@ -15296,34 +15069,6 @@ snapshots:
'@esbuild/win32-ia32': 0.21.5
'@esbuild/win32-x64': 0.21.5
- optionalDependencies:
- '@esbuild/aix-ppc64': 0.24.2
- '@esbuild/android-arm': 0.24.2
- '@esbuild/android-arm64': 0.24.2
- '@esbuild/android-x64': 0.24.2
- '@esbuild/darwin-arm64': 0.24.2
- '@esbuild/darwin-x64': 0.24.2
- '@esbuild/freebsd-arm64': 0.24.2
- '@esbuild/freebsd-x64': 0.24.2
- '@esbuild/linux-arm': 0.24.2
- '@esbuild/linux-arm64': 0.24.2
- '@esbuild/linux-ia32': 0.24.2
- '@esbuild/linux-loong64': 0.24.2
- '@esbuild/linux-mips64el': 0.24.2
- '@esbuild/linux-ppc64': 0.24.2
- '@esbuild/linux-riscv64': 0.24.2
- '@esbuild/linux-s390x': 0.24.2
- '@esbuild/linux-x64': 0.24.2
- '@esbuild/netbsd-arm64': 0.24.2
- '@esbuild/netbsd-x64': 0.24.2
- '@esbuild/openbsd-arm64': 0.24.2
- '@esbuild/openbsd-x64': 0.24.2
- '@esbuild/sunos-x64': 0.24.2
- '@esbuild/win32-arm64': 0.24.2
- '@esbuild/win32-ia32': 0.24.2
- '@esbuild/win32-x64': 0.24.2
-
optionalDependencies:
'@esbuild/aix-ppc64': 0.25.0