mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-03-05 23:55:47 +00:00
Compare commits
1 Commits
main
...
docx_previ
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52b56ad1f1 |
@@ -109,7 +109,9 @@ brotli==1.2.0
|
||||
bytecode==0.17.0
|
||||
# via ddtrace
|
||||
cachetools==6.2.2
|
||||
# via py-key-value-aio
|
||||
# via
|
||||
# google-auth
|
||||
# py-key-value-aio
|
||||
caio==0.9.25
|
||||
# via aiofile
|
||||
celery==5.5.1
|
||||
@@ -188,7 +190,6 @@ courlan==1.3.2
|
||||
cryptography==46.0.5
|
||||
# via
|
||||
# authlib
|
||||
# google-auth
|
||||
# msal
|
||||
# msoffcrypto-tool
|
||||
# pdfminer-six
|
||||
@@ -305,7 +306,7 @@ google-api-core==2.28.1
|
||||
# google-cloud-storage
|
||||
google-api-python-client==2.86.0
|
||||
# via onyx
|
||||
google-auth==2.48.0
|
||||
google-auth==2.43.0
|
||||
# via
|
||||
# google-api-core
|
||||
# google-api-python-client
|
||||
@@ -324,7 +325,7 @@ google-auth-httplib2==0.1.0
|
||||
# onyx
|
||||
google-auth-oauthlib==1.0.0
|
||||
# via onyx
|
||||
google-cloud-aiplatform==1.133.0
|
||||
google-cloud-aiplatform==1.121.0
|
||||
# via onyx
|
||||
google-cloud-bigquery==3.38.0
|
||||
# via google-cloud-aiplatform
|
||||
@@ -1001,7 +1002,9 @@ sendgrid==6.12.5
|
||||
sentry-sdk==2.14.0
|
||||
# via onyx
|
||||
shapely==2.0.6
|
||||
# via onyx
|
||||
# via
|
||||
# google-cloud-aiplatform
|
||||
# onyx
|
||||
shellingham==1.5.4
|
||||
# via typer
|
||||
simple-salesforce==1.12.6
|
||||
|
||||
@@ -59,6 +59,8 @@ botocore==1.39.11
|
||||
# s3transfer
|
||||
brotli==1.2.0
|
||||
# via onyx
|
||||
cachetools==6.2.2
|
||||
# via google-auth
|
||||
celery-types==0.19.0
|
||||
# via onyx
|
||||
certifi==2025.11.12
|
||||
@@ -98,9 +100,7 @@ comm==0.2.3
|
||||
contourpy==1.3.3
|
||||
# via matplotlib
|
||||
cryptography==46.0.5
|
||||
# via
|
||||
# google-auth
|
||||
# pyjwt
|
||||
# via pyjwt
|
||||
cycler==0.12.1
|
||||
# via matplotlib
|
||||
debugpy==1.8.17
|
||||
@@ -152,7 +152,7 @@ google-api-core==2.28.1
|
||||
# google-cloud-core
|
||||
# google-cloud-resource-manager
|
||||
# google-cloud-storage
|
||||
google-auth==2.48.0
|
||||
google-auth==2.43.0
|
||||
# via
|
||||
# google-api-core
|
||||
# google-cloud-aiplatform
|
||||
@@ -162,7 +162,7 @@ google-auth==2.48.0
|
||||
# google-cloud-storage
|
||||
# google-genai
|
||||
# kubernetes
|
||||
google-cloud-aiplatform==1.133.0
|
||||
google-cloud-aiplatform==1.121.0
|
||||
# via onyx
|
||||
google-cloud-bigquery==3.38.0
|
||||
# via google-cloud-aiplatform
|
||||
@@ -311,6 +311,7 @@ numpy==2.4.1
|
||||
# contourpy
|
||||
# matplotlib
|
||||
# pandas-stubs
|
||||
# shapely
|
||||
# voyageai
|
||||
oauthlib==3.2.2
|
||||
# via
|
||||
@@ -509,6 +510,8 @@ s3transfer==0.13.1
|
||||
# via boto3
|
||||
sentry-sdk==2.14.0
|
||||
# via onyx
|
||||
shapely==2.0.6
|
||||
# via google-cloud-aiplatform
|
||||
six==1.17.0
|
||||
# via
|
||||
# kubernetes
|
||||
|
||||
@@ -53,6 +53,8 @@ botocore==1.39.11
|
||||
# s3transfer
|
||||
brotli==1.2.0
|
||||
# via onyx
|
||||
cachetools==6.2.2
|
||||
# via google-auth
|
||||
certifi==2025.11.12
|
||||
# via
|
||||
# httpcore
|
||||
@@ -77,9 +79,7 @@ colorama==0.4.6 ; sys_platform == 'win32'
|
||||
# click
|
||||
# tqdm
|
||||
cryptography==46.0.5
|
||||
# via
|
||||
# google-auth
|
||||
# pyjwt
|
||||
# via pyjwt
|
||||
decorator==5.2.1
|
||||
# via retry
|
||||
discord-py==2.4.0
|
||||
@@ -111,7 +111,7 @@ google-api-core==2.28.1
|
||||
# google-cloud-core
|
||||
# google-cloud-resource-manager
|
||||
# google-cloud-storage
|
||||
google-auth==2.48.0
|
||||
google-auth==2.43.0
|
||||
# via
|
||||
# google-api-core
|
||||
# google-cloud-aiplatform
|
||||
@@ -121,7 +121,7 @@ google-auth==2.48.0
|
||||
# google-cloud-storage
|
||||
# google-genai
|
||||
# kubernetes
|
||||
google-cloud-aiplatform==1.133.0
|
||||
google-cloud-aiplatform==1.121.0
|
||||
# via onyx
|
||||
google-cloud-bigquery==3.38.0
|
||||
# via google-cloud-aiplatform
|
||||
@@ -221,7 +221,9 @@ multidict==6.7.0
|
||||
# aiohttp
|
||||
# yarl
|
||||
numpy==2.4.1
|
||||
# via voyageai
|
||||
# via
|
||||
# shapely
|
||||
# voyageai
|
||||
oauthlib==3.2.2
|
||||
# via
|
||||
# kubernetes
|
||||
@@ -343,6 +345,8 @@ s3transfer==0.13.1
|
||||
# via boto3
|
||||
sentry-sdk==2.14.0
|
||||
# via onyx
|
||||
shapely==2.0.6
|
||||
# via google-cloud-aiplatform
|
||||
six==1.17.0
|
||||
# via
|
||||
# kubernetes
|
||||
|
||||
@@ -57,6 +57,8 @@ botocore==1.39.11
|
||||
# s3transfer
|
||||
brotli==1.2.0
|
||||
# via onyx
|
||||
cachetools==6.2.2
|
||||
# via google-auth
|
||||
celery==5.5.1
|
||||
# via sentry-sdk
|
||||
certifi==2025.11.12
|
||||
@@ -93,9 +95,7 @@ colorama==0.4.6 ; sys_platform == 'win32'
|
||||
# click
|
||||
# tqdm
|
||||
cryptography==46.0.5
|
||||
# via
|
||||
# google-auth
|
||||
# pyjwt
|
||||
# via pyjwt
|
||||
decorator==5.2.1
|
||||
# via retry
|
||||
discord-py==2.4.0
|
||||
@@ -136,7 +136,7 @@ google-api-core==2.28.1
|
||||
# google-cloud-core
|
||||
# google-cloud-resource-manager
|
||||
# google-cloud-storage
|
||||
google-auth==2.48.0
|
||||
google-auth==2.43.0
|
||||
# via
|
||||
# google-api-core
|
||||
# google-cloud-aiplatform
|
||||
@@ -146,7 +146,7 @@ google-auth==2.48.0
|
||||
# google-cloud-storage
|
||||
# google-genai
|
||||
# kubernetes
|
||||
google-cloud-aiplatform==1.133.0
|
||||
google-cloud-aiplatform==1.121.0
|
||||
# via onyx
|
||||
google-cloud-bigquery==3.38.0
|
||||
# via google-cloud-aiplatform
|
||||
@@ -263,6 +263,7 @@ numpy==2.4.1
|
||||
# onyx
|
||||
# scikit-learn
|
||||
# scipy
|
||||
# shapely
|
||||
# transformers
|
||||
# voyageai
|
||||
nvidia-cublas-cu12==12.8.4.1 ; platform_machine == 'x86_64' and sys_platform == 'linux'
|
||||
@@ -451,6 +452,8 @@ sentry-sdk==2.14.0
|
||||
# via onyx
|
||||
setuptools==80.9.0 ; python_full_version >= '3.12'
|
||||
# via torch
|
||||
shapely==2.0.6
|
||||
# via google-cloud-aiplatform
|
||||
six==1.17.0
|
||||
# via
|
||||
# kubernetes
|
||||
|
||||
@@ -11,7 +11,7 @@ dependencies = [
|
||||
"aioboto3==15.1.0",
|
||||
"cohere==5.6.1",
|
||||
"fastapi==0.133.1",
|
||||
"google-cloud-aiplatform==1.133.0",
|
||||
"google-cloud-aiplatform==1.121.0",
|
||||
"google-genai==1.52.0",
|
||||
"litellm==1.81.6",
|
||||
"openai==2.14.0",
|
||||
|
||||
17
uv.lock
generated
17
uv.lock
generated
@@ -2131,16 +2131,16 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "google-auth"
|
||||
version = "2.48.0"
|
||||
version = "2.43.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "cryptography" },
|
||||
{ name = "cachetools" },
|
||||
{ name = "pyasn1-modules" },
|
||||
{ name = "rsa" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/0c/41/242044323fbd746615884b1c16639749e73665b718209946ebad7ba8a813/google_auth-2.48.0.tar.gz", hash = "sha256:4f7e706b0cd3208a3d940a19a822c37a476ddba5450156c3e6624a71f7c841ce", size = 326522, upload-time = "2026-01-26T19:22:47.157Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/ff/ef/66d14cf0e01b08d2d51ffc3c20410c4e134a1548fc246a6081eae585a4fe/google_auth-2.43.0.tar.gz", hash = "sha256:88228eee5fc21b62a1b5fe773ca15e67778cb07dc8363adcb4a8827b52d81483", size = 296359, upload-time = "2025-11-06T00:13:36.587Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/83/1d/d6466de3a5249d35e832a52834115ca9d1d0de6abc22065f049707516d47/google_auth-2.48.0-py3-none-any.whl", hash = "sha256:2e2a537873d449434252a9632c28bfc268b0adb1e53f9fb62afc5333a975903f", size = 236499, upload-time = "2026-01-26T19:22:45.099Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6f/d1/385110a9ae86d91cc14c5282c61fe9f4dc41c0b9f7d423c6ad77038c4448/google_auth-2.43.0-py2.py3-none-any.whl", hash = "sha256:af628ba6fa493f75c7e9dbe9373d148ca9f4399b5ea29976519e0a3848eddd16", size = 223114, upload-time = "2025-11-06T00:13:35.209Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2172,7 +2172,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "google-cloud-aiplatform"
|
||||
version = "1.133.0"
|
||||
version = "1.121.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "docstring-parser" },
|
||||
@@ -2186,11 +2186,12 @@ dependencies = [
|
||||
{ name = "proto-plus" },
|
||||
{ name = "protobuf" },
|
||||
{ name = "pydantic" },
|
||||
{ name = "shapely" },
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/d4/be/31ce7fd658ddebafbe5583977ddee536b2bacc491ad10b5a067388aec66f/google_cloud_aiplatform-1.133.0.tar.gz", hash = "sha256:3a6540711956dd178daaab3c2c05db476e46d94ac25912b8cf4f59b00b058ae0", size = 9921309, upload-time = "2026-01-08T22:11:25.079Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/b1/86/d1bad9a342122f0f5913cd8b7758ab340aac3f579cffb800d294da605a7c/google_cloud_aiplatform-1.121.0.tar.gz", hash = "sha256:65710396238fa461dbea9b2af9ed23f95458d70d9684e75519c7c9c1601ff308", size = 9705200, upload-time = "2025-10-15T20:27:59.262Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/01/5b/ef74ff65aebb74eaba51078e33ddd897247ba0d1197fd5a7953126205519/google_cloud_aiplatform-1.133.0-py2.py3-none-any.whl", hash = "sha256:dfc81228e987ca10d1c32c7204e2131b3c8d6b7c8e0b4e23bf7c56816bc4c566", size = 8184595, upload-time = "2026-01-08T22:11:22.067Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bd/f6/806b39f86f912133a3071ffa9ff99801a12868216069e26c83a48943116b/google_cloud_aiplatform-1.121.0-py2.py3-none-any.whl", hash = "sha256:1e7105dfd17963207e966550c9544264508efdfded29cf4924c5b86ff4a22efd", size = 8067568, upload-time = "2025-10-15T20:27:54.842Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -4629,7 +4630,7 @@ requires-dist = [
|
||||
{ name = "google-api-python-client", marker = "extra == 'backend'", specifier = "==2.86.0" },
|
||||
{ name = "google-auth-httplib2", marker = "extra == 'backend'", specifier = "==0.1.0" },
|
||||
{ name = "google-auth-oauthlib", marker = "extra == 'backend'", specifier = "==1.0.0" },
|
||||
{ name = "google-cloud-aiplatform", specifier = "==1.133.0" },
|
||||
{ name = "google-cloud-aiplatform", specifier = "==1.121.0" },
|
||||
{ name = "google-genai", specifier = "==1.52.0" },
|
||||
{ name = "hatchling", marker = "extra == 'dev'", specifier = "==1.28.0" },
|
||||
{ name = "httpcore", marker = "extra == 'backend'", specifier = "==1.0.9" },
|
||||
|
||||
10
web/package-lock.json
generated
10
web/package-lock.json
generated
@@ -48,6 +48,7 @@
|
||||
"cmdk": "^1.0.0",
|
||||
"cookies-next": "^5.1.0",
|
||||
"date-fns": "^3.6.0",
|
||||
"docx-preview": "^0.3.7",
|
||||
"favicon-fetch": "^1.0.0",
|
||||
"formik": "^2.2.9",
|
||||
"highlight.js": "^11.11.1",
|
||||
@@ -7958,6 +7959,15 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/docx-preview": {
|
||||
"version": "0.3.7",
|
||||
"resolved": "https://registry.npmjs.org/docx-preview/-/docx-preview-0.3.7.tgz",
|
||||
"integrity": "sha512-Lav69CTA/IYZPJTsKH7oYeoZjyg96N0wEJMNslGJnZJ+dMUZK85Lt5ASC79yUlD48ecWjuv+rkcmFt6EVPV0Xg==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"jszip": ">=3.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/dom-accessibility-api": {
|
||||
"version": "0.6.3",
|
||||
"dev": true,
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
"cmdk": "^1.0.0",
|
||||
"cookies-next": "^5.1.0",
|
||||
"date-fns": "^3.6.0",
|
||||
"docx-preview": "^0.3.7",
|
||||
"favicon-fetch": "^1.0.0",
|
||||
"formik": "^2.2.9",
|
||||
"highlight.js": "^11.11.1",
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
export interface BrowserInfo {
|
||||
isSafari: boolean;
|
||||
isFirefox: boolean;
|
||||
isChrome: boolean;
|
||||
isChromium: boolean;
|
||||
isEdge: boolean;
|
||||
isOpera: boolean;
|
||||
isIOS: boolean;
|
||||
isMac: boolean;
|
||||
isWindows: boolean;
|
||||
}
|
||||
|
||||
const DEFAULT_BROWSER_INFO: BrowserInfo = {
|
||||
isSafari: false,
|
||||
isFirefox: false,
|
||||
isChrome: false,
|
||||
isChromium: false,
|
||||
isEdge: false,
|
||||
isOpera: false,
|
||||
isIOS: false,
|
||||
isMac: false,
|
||||
isWindows: false,
|
||||
};
|
||||
|
||||
export default function useBrowserInfo(): BrowserInfo {
|
||||
const [browserInfo, setBrowserInfo] =
|
||||
useState<BrowserInfo>(DEFAULT_BROWSER_INFO);
|
||||
useEffect(() => {
|
||||
const userAgent = window.navigator.userAgent;
|
||||
|
||||
const isEdge = /Edg/i.test(userAgent);
|
||||
const isOpera = /OPR|Opera/i.test(userAgent);
|
||||
const isFirefox = /Firefox|FxiOS/i.test(userAgent);
|
||||
const isChrome = /Chrome|CriOS/i.test(userAgent) && !isEdge && !isOpera;
|
||||
const isChromium = /Chromium/i.test(userAgent) || isChrome;
|
||||
const isSafari =
|
||||
/Safari/i.test(userAgent) &&
|
||||
!isChromium &&
|
||||
!isEdge &&
|
||||
!isOpera &&
|
||||
!isFirefox;
|
||||
const isIOS = /iPhone|iPad|iPod/i.test(userAgent);
|
||||
const isMac = /Macintosh|Mac OS X/i.test(userAgent);
|
||||
const isWindows = /Win/i.test(userAgent);
|
||||
|
||||
setBrowserInfo({
|
||||
isSafari,
|
||||
isFirefox,
|
||||
isChrome,
|
||||
isChromium,
|
||||
isEdge,
|
||||
isOpera,
|
||||
isIOS,
|
||||
isMac,
|
||||
isWindows,
|
||||
});
|
||||
}, []);
|
||||
|
||||
return browserInfo;
|
||||
}
|
||||
@@ -64,7 +64,6 @@ import { AppMode, useAppMode } from "@/providers/AppModeProvider";
|
||||
import useAppFocus from "@/hooks/useAppFocus";
|
||||
import { useQueryController } from "@/providers/QueryControllerProvider";
|
||||
import { usePaidEnterpriseFeaturesEnabled } from "@/components/settings/usePaidEnterpriseFeaturesEnabled";
|
||||
import useBrowserInfo from "@/hooks/useBrowserInfo";
|
||||
|
||||
/**
|
||||
* App Header Component
|
||||
@@ -528,16 +527,8 @@ function Root({ children, enableBackground }: AppRootProps) {
|
||||
const { hasBackground, appBackgroundUrl } = useAppBackground();
|
||||
const { resolvedTheme } = useTheme();
|
||||
const appFocus = useAppFocus();
|
||||
const { isSafari } = useBrowserInfo();
|
||||
const isLightMode = resolvedTheme === "light";
|
||||
const showBackground = hasBackground && enableBackground;
|
||||
const horizontalBlurMask = `linear-gradient(
|
||||
to right,
|
||||
transparent 0%,
|
||||
black max(0%, calc(50% - 25rem)),
|
||||
black min(100%, calc(50% + 25rem)),
|
||||
transparent 100%
|
||||
)`;
|
||||
|
||||
return (
|
||||
/* NOTE: Some elements, markdown tables in particular, refer to this `@container` in order to
|
||||
@@ -577,25 +568,25 @@ function Root({ children, enableBackground }: AppRootProps) {
|
||||
{showBackground && appFocus.isChat() && (
|
||||
<>
|
||||
<div className="absolute inset-0 backdrop-blur-[1px] pointer-events-none" />
|
||||
{isSafari ? (
|
||||
<div
|
||||
className="absolute z-0 inset-0 bg-cover bg-center bg-fixed pointer-events-none"
|
||||
style={{
|
||||
backgroundImage: `url(${appBackgroundUrl})`,
|
||||
filter: "blur(16px)",
|
||||
maskImage: horizontalBlurMask,
|
||||
WebkitMaskImage: horizontalBlurMask,
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<div
|
||||
className="absolute z-0 inset-0 backdrop-blur-md transition-all duration-600 pointer-events-none"
|
||||
style={{
|
||||
maskImage: horizontalBlurMask,
|
||||
WebkitMaskImage: horizontalBlurMask,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<div
|
||||
className="absolute z-0 inset-0 backdrop-blur-md transition-all duration-600 pointer-events-none"
|
||||
style={{
|
||||
maskImage: `linear-gradient(
|
||||
to right,
|
||||
transparent 0%,
|
||||
black max(0%, calc(50% - 25rem)),
|
||||
black min(100%, calc(50% + 25rem)),
|
||||
transparent 100%
|
||||
)`,
|
||||
WebkitMaskImage: `linear-gradient(
|
||||
to right,
|
||||
transparent 0%,
|
||||
black max(0%, calc(50% - 25rem)),
|
||||
black min(100%, calc(50% + 25rem)),
|
||||
transparent 100%
|
||||
)`,
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user