Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Merge branch 'dev' into session-recording
Mike Caod349c3aea96e
diff --cc package.jsonindex 01077c90b,d21f48ba3..8248226ef--- a/package.json+++ b/package.json@@@ -20,11 -20,10 +20,11 @@@"start-server": "node server.js","build-app": "next build --turbo","build-icons": "svgr ./src/assets --out-dir src/components/svg --typescript",- "build-components": "tsup",+ "build-components": "node scripts/bump-components.js && tsup","build-tracker": "rollup -c rollup.tracker.config.js",+ "build-recorder": "rollup -c rollup.recorder.config.js","build-prisma-client": "node scripts/build-prisma-client.js",- "build-lang": "npm-run-all format-lang compile-lang download-country-names download-language-names clean-lang",+ "build-lang": "npm-run-all download-country-names download-language-names","build-geo": "node scripts/build-geo.js","build-db": "npm-run-all build-db-client build-prisma-client","build-db-schema": "prisma db pull",diff --cc pnpm-lock.yamlindex f77f9076f,0811d48e6..fb0a6d3e9--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@@ -2652,9 -2742,9 +2748,12 @@@ packagescpu: [x64]os: [win32]+ '@schummar/[email protected]':+ resolution: {integrity: sha512-bXHSaW5jRTmke9Vd0h5P7BtWZG9Znqb8gSDxZnxaGSJnGwPLDPfS+3g0BKzeWqzgZPsIVZkM7m2tbo18cm5HBw==}++ '@rrweb/[email protected]':+ resolution: {integrity: sha512-RbnDgKxA/odwB1R4gF7eUUj+rdSrq6ROQJsnMw7MIsGzlbSYvJeZN8YY4XqU0G6sKJvXI6bSzk7w/G94jNwzhw==}+'@sinclair/[email protected]':resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}@@@ -2804,12 -2973,6 +2985,9 @@@'@types/[email protected]':resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==}+ '@types/[email protected]':+ resolution: {integrity: sha512-nl09VhutdjINdWyXxHWN/w9zlNCfr60JUqJbd24YXUuCwgeL0TpFSdElCwb6cxfB6ybE19Gjj4g0jsgkXxKv1Q==}+- '@types/[email protected]':- resolution: {integrity: sha512-C6N5s2ZFtuZRj54k2/zyRhNDjJwwcViAM3Nbm8zjBpbqAdZ00mr0CFxvSKeO8Y/e03WVFLpQMdHYVfUd6SB+Hw==}-'@types/[email protected]':resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}@@@ -2911,38 -3055,6 +3070,9 @@@'@umami/[email protected]':resolution: {integrity: sha512-pqeMPdEFMH+9GDpiQd5MdRdTppif4vPl/sp8Y9hPY277g/UFlJAbCUJluESmZRBHjFdXtBPtLzQkxjvdjlRzuQ==}- '@vue/[email protected]':- resolution: {integrity: sha512-3slwjQrrV1TO8MoXgy3aynDQ7lslj5UqDxuHnrzHtpON5CBinhWjJETciPngpin/T3OuW3tXUf86tEurusnztw==}-- '@vue/[email protected]':- resolution: {integrity: sha512-RMbU6NTU70++B1JyVJbNbeFkK+A+Q7y9XKE2EM4NLGm2WFR8x9MbAtWxPPLdm0wUkuZv9trpwfSlL6tjdIa1+A==}-- '@vue/[email protected]':- resolution: {integrity: sha512-5aBjvGqsWs+MoxswZPoTB9nSDb3dhd1x30xrrltKujlCxo48j8HGDNj3QPhF4VIS0VQDUrA1xUfp2hEa+FNyXA==}-- '@vue/[email protected]':- resolution: {integrity: sha512-xM16Ak7rSWHkM3m22NlmcdIM+K4BMyFARAfV9hYFl+SFuRzrZ3uGMNW05kA5pmeMa0X9X963Kgou7ufdbpOP9g==}-- '@vue/[email protected]':- resolution: {integrity: sha512-x0vPO5Imw+3sChLM5Y+B6G1zPjwdOri9e8V21NnTnlEvkxatHEH5B5KEAJcjuzQ7BsjGrKtfzuQ5eQwXh8HXBg==}-- '@vue/[email protected]':- resolution: {integrity: sha512-DUpHa1HpeOQEt6+3nheUfqVXRog2kivkXHUhoqJiKR33SO4x+a5uNOMkV487WPerQkL0vUuRvq/7JhRgLW3S+w==}-- '@vue/[email protected]':- resolution: {integrity: sha512-YwDj71iV05j4RnzZnZtGaXwPoUWeRsqinblgVJwR8XTXYZ9D5PbahHQgsbmzUvCWNF6x7siQ89HgnX5eWkr3mw==}-- '@vue/[email protected]':- resolution: {integrity: sha512-PvIHLUoWgSbDG7zLHqSqaCoZvHi6NNmfVFOqO+OnwvqMz/tqQr3FuGWS8ufluNddk7ZLBJYMrjcw1c6XzR12mA==}- peerDependencies:- vue: 3.5.18-- '@vue/[email protected]':- resolution: {integrity: sha512-cZy8Dq+uuIXbxCZpuLd2GJdeSO/lIzIspC2WtkqIpje5QyFbvLaI5wZtdUjLHjGZrlVX6GilejatWwVYYRc8tA==}-+ '@xstate/[email protected]':+ resolution: {integrity: sha512-b5o1I6aLNeYlU/3CPlj/Z91ybk1gUsKT+5NAJI+2W4UjvS5KLG28K9v5UvNoFVjHV8PajVZ00RH3vnjyQO7ZAw==}+resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==}engines: {node: '>=0.4.0'}@@@ -5191,14 -5223,6 +5248,9 @@@resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==}engines: {node: '>= 18'}+ resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==}+- resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==}- engines: {node: '>=10'}- hasBin: true-resolution: {integrity: sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==}@@@ -9873,8 -9841,8 +9881,10 @@@ snapshots'@rollup/[email protected]':optional: true+ '@rrweb/[email protected]': {}++ '@schummar/[email protected]': {}+'@sinclair/[email protected]': {}'@sinclair/[email protected]': {}@@@ -10040,10 -10065,6 +10109,8 @@@dependencies:'@babel/types': 7.28.2+ '@types/[email protected]': {}+- '@types/[email protected]': {}-'@types/[email protected]': {}'@types/[email protected]':@@@ -12865,10 -12699,6 +12805,8 @@@dependencies:minipass: 7.1.2+ [email protected]: {}+- [email protected]: {}-dependencies:acorn: 8.15.0diff --cc src/app/(main)/websites/[websiteId]/sessions/SessionProfile.tsxindex 8afb50b5f,91375cf1b..146dbc6b3--- a/src/app/(main)/websites/[websiteId]/sessions/SessionProfile.tsx+++ b/src/app/(main)/websites/[websiteId]/sessions/SessionProfile.tsx@@@ -29,8 -28,7 +29,8 @@@ export function SessionProfile(onClose?: () => void;}) {const { data, isLoading, error } = useWebsiteSessionQuery(websiteId, sessionId);+ const { data: replay } = useReplayQuery(websiteId, sessionId);- const { formatMessage, labels } = useMessages();+ const { t, labels } = useMessages();return (<LoadingPanel@@@ -63,11 -61,8 +63,9 @@@<Tabs><TabList>- <Tab id="activity">{formatMessage(labels.activity)}</Tab>- <Tab id="properties">{formatMessage(labels.properties)}</Tab>- {replay?.events?.length > 0 && (- <Tab id="replay">{formatMessage(labels.replay)}</Tab>- )}+ <Tab id="activity">{t(labels.activity)}</Tab>+ <Tab id="properties">{t(labels.properties)}</Tab>++ {replay?.events?.length > 0 && <Tab id="replay">{t(labels.replay)}</Tab>}</TabList><TabPanel id="activity"><SessionActivitydiff --cc src/app/(main)/websites/[websiteId]/settings/WebsiteTrackingCode.tsxindex 3a60d1c3c,4fdf7ca70..85152e22c--- a/src/app/(main)/websites/[websiteId]/settings/WebsiteTrackingCode.tsx+++ b/src/app/(main)/websites/[websiteId]/settings/WebsiteTrackingCode.tsx@@@ -11,9 -10,8 +11,9 @@@ export function WebsiteTrackingCode(websiteId: string;hostUrl?: string;}) {- const { formatMessage, messages, labels } = useMessages();+ const { t, messages, labels } = useMessages();const config = useConfig();+ const website = useWebsite();const trackerScriptName =config?.trackerScriptName?.split(',')?.map((n: string) => n.trim())?.[0] || SCRIPT_NAME;