mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-01 06:12:31 -08:00
Some dependency bumps (#1024)
<!-- Please read https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before submitting your pull request --> ### Description <!-- Please include a summary of the change. Please also include relevant motivation and context. List any dependencies that are required for this change. --> Lightly tested, bumped dependencies that seemed safe + a sable call bump to fix called users not disappearing after the ringback ends/call gets declined. #### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ### Checklist: - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings ### AI disclosure: - [ ] Partially AI assisted (clarify which code was AI assisted and briefly explain what it does). - [ ] Fully AI generated (explain what all the generated code does in moderate detail). <!-- Write any explanation required here, but do not generate the explanation using AI!! You must prove you understand what the code in this PR does. -->
This commit is contained in:
9 files changed
+1069
-1113
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"$schema": "https://unpkg.com/knip@5/schema.json",
|
||||
"$schema": "https://unpkg.com/knip@6/schema.json",
|
||||
"entry": ["src/sw.ts", "scripts/normalize-imports.js"],
|
||||
"ignore": ["oxlint.config.ts", "oxfmt.config.ts"],
|
||||
"ignoreExportsUsedInFile": {
|
||||
|
||||
@@ -33,6 +33,9 @@ export default defineConfig({
|
||||
'typescript/no-unsafe-type-assertion': 'off',
|
||||
'typescript/no-floating-promises': 'off',
|
||||
'typescript/no-unnecessary-type-arguments': 'off',
|
||||
// Maybe reconsider this in the future, but it causes a lot of cascading issues
|
||||
// because of types we use that don't exist in the matrix-js-sdk
|
||||
'typescript/no-unnecessary-type-assertion': 'off',
|
||||
'oxc/no-map-spread': 'off',
|
||||
'promise/always-return': 'off',
|
||||
'no-underscore-dangle': [
|
||||
|
||||
+32
-33
@@ -26,22 +26,22 @@
|
||||
"postinstall": "node scripts/install-knope.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@arborium/arborium": "^2.18.0",
|
||||
"@atlaskit/pragmatic-drag-and-drop": "^1.8.1",
|
||||
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^1.4.0",
|
||||
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.2.0",
|
||||
"@arborium/arborium": "^2.18.1",
|
||||
"@atlaskit/pragmatic-drag-and-drop": "^2.0.1",
|
||||
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",
|
||||
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.0.0",
|
||||
"@fontsource-variable/nunito": "5.2.7",
|
||||
"@fontsource/space-mono": "5.2.9",
|
||||
"@phosphor-icons/react": "^2.1.10",
|
||||
"@sableclient/twemoji-font": "^1.0.4",
|
||||
"@sentry/react": "^10.58.0",
|
||||
"@tanstack/react-query": "^5.101.0",
|
||||
"@tanstack/react-query-devtools": "^5.101.0",
|
||||
"@tanstack/react-virtual": "^3.14.3",
|
||||
"@sentry/react": "^10.63.0",
|
||||
"@tanstack/react-query": "^5.101.2",
|
||||
"@tanstack/react-query-devtools": "^5.101.2",
|
||||
"@tanstack/react-virtual": "^3.14.5",
|
||||
"@use-gesture/react": "10.3.1",
|
||||
"@vanilla-extract/css": "^1.20.1",
|
||||
"@vanilla-extract/css": "^1.21.1",
|
||||
"@vanilla-extract/recipes": "^0.5.7",
|
||||
"@vanilla-extract/vite-plugin": "^5.2.2",
|
||||
"@vanilla-extract/vite-plugin": "^5.2.3",
|
||||
"await-to-js": "^3.0.0",
|
||||
"badwords-list": "2.0.1-4",
|
||||
"blurhash": "^2.0.5",
|
||||
@@ -49,37 +49,37 @@
|
||||
"chroma-js": "^3.2.0",
|
||||
"classnames": "^2.5.1",
|
||||
"dayjs": "^1.11.21",
|
||||
"domhandler": "^5.0.3",
|
||||
"dompurify": "^3.4.10",
|
||||
"domhandler": "^6.0.1",
|
||||
"dompurify": "^3.4.11",
|
||||
"emojibase": "^17.0.0",
|
||||
"emojibase-data": "^17.0.0",
|
||||
"eventemitter3": "^5.0.4",
|
||||
"file-saver": "^2.0.5",
|
||||
"focus-trap-react": "^10.3.1",
|
||||
"focus-trap-react": "^12.0.3",
|
||||
"folds": "^2.6.2",
|
||||
"framer-motion": "^12.40.0",
|
||||
"html-dom-parser": "^5.1.8",
|
||||
"html-react-parser": "^4.2.10",
|
||||
"framer-motion": "^12.42.2",
|
||||
"html-dom-parser": "^8.0.0",
|
||||
"html-react-parser": "^6.1.3",
|
||||
"i18next": "^25.10.10",
|
||||
"i18next-browser-languagedetector": "^8.2.1",
|
||||
"i18next-http-backend": "^2.7.3",
|
||||
"immer": "^9.0.21",
|
||||
"immer": "^11.1.9",
|
||||
"is-hotkey": "^0.2.0",
|
||||
"jotai": "^2.20.1",
|
||||
"katex": "^0.16.47",
|
||||
"katex": "^0.17.0",
|
||||
"leaflet": "1.9.4",
|
||||
"linkify-react": "^4.3.3",
|
||||
"linkifyjs": "^4.3.3",
|
||||
"marked": "^18.0.5",
|
||||
"matrix-js-sdk": "^38.4.0",
|
||||
"matrix-widget-api": "^1.17.0",
|
||||
"pdfjs-dist": "^5.7.284",
|
||||
"pdfjs-dist": "^6.1.200",
|
||||
"react": "^18.3.1",
|
||||
"react-aria": "^3.49.0",
|
||||
"react-aria": "^3.50.0",
|
||||
"react-blurhash": "^0.3.0",
|
||||
"react-colorful": "^5.7.0",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-google-recaptcha": "^2.1.0",
|
||||
"react-google-recaptcha": "^3.1.0",
|
||||
"react-i18next": "^16.6.6",
|
||||
"react-leaflet": "^4.2.1",
|
||||
"react-range": "^1.10.0",
|
||||
@@ -87,17 +87,17 @@
|
||||
"slate": "^0.124.1",
|
||||
"slate-dom": "^0.124.1",
|
||||
"slate-history": "^0.113.1",
|
||||
"slate-react": "^0.124.2",
|
||||
"ua-parser-js": "^1.0.41",
|
||||
"virtua": "^0.49.1",
|
||||
"slate-react": "^0.125.1",
|
||||
"ua-parser-js": "^2.0.10",
|
||||
"virtua": "^0.49.2",
|
||||
"workbox-precaching": "^7.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/vite-plugin": "^1.41.0",
|
||||
"@cloudflare/vite-plugin": "^1.42.4",
|
||||
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
||||
"@rollup/plugin-inject": "^5.0.5",
|
||||
"@rollup/plugin-wasm": "^6.2.2",
|
||||
"@sableclient/sable-call-embedded": "1.1.6",
|
||||
"@sableclient/sable-call-embedded": "1.1.7",
|
||||
"@sentry/vite-plugin": "^5.3.0",
|
||||
"@testing-library/jest-dom": "^6.9.1",
|
||||
"@testing-library/react": "^16.3.2",
|
||||
@@ -106,21 +106,20 @@
|
||||
"@types/file-saver": "^2.0.7",
|
||||
"@types/is-hotkey": "^0.1.10",
|
||||
"@types/leaflet": "^1.9.21",
|
||||
"@types/node": "24.10.13",
|
||||
"@types/node": "24.13.2",
|
||||
"@types/react": "^18.3.31",
|
||||
"@types/react-dom": "^18.3.7",
|
||||
"@types/react-google-recaptcha": "^2.1.9",
|
||||
"@types/ua-parser-js": "^0.7.39",
|
||||
"@vitejs/plugin-react": "^5.2.0",
|
||||
"@vitest/coverage-v8": "^4.1.9",
|
||||
"@vitest/ui": "^4.1.9",
|
||||
"buffer": "^6.0.3",
|
||||
"cloudflared": "^0.7.1",
|
||||
"jsdom": "^29.1.1",
|
||||
"knip": "5.85.0",
|
||||
"oxfmt": "^0.45.0",
|
||||
"oxlint": "^1.70.0",
|
||||
"oxlint-tsgolint": "^0.23.0",
|
||||
"knip": "6.23.0",
|
||||
"oxfmt": "^0.57.0",
|
||||
"oxlint": "^1.72.0",
|
||||
"oxlint-tsgolint": "^0.24.0",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^7.3.5",
|
||||
"vite-plugin-compression2": "^2.5.3",
|
||||
@@ -129,7 +128,7 @@
|
||||
"vite-plugin-svgr": "4.5.0",
|
||||
"vite-plugin-top-level-await": "^1.6.0",
|
||||
"vitest": "^4.1.9",
|
||||
"wrangler": "^4.101.0"
|
||||
"wrangler": "^4.106.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "24.x",
|
||||
|
||||
Generated
+1016
-1068
File diff suppressed because it is too large.
Load diff
@@ -764,7 +764,7 @@ export function EmojiBoard({
|
||||
initialFocus: false,
|
||||
onDeactivate: requestClose,
|
||||
|
||||
allowOutsideClick: (e) => {
|
||||
allowOutsideClick: (e: MouseEvent | TouchEvent) => {
|
||||
e.preventDefault();
|
||||
requestClose();
|
||||
return false;
|
||||
|
||||
@@ -564,7 +564,7 @@ export function OptionMenu({
|
||||
initialFocus: false,
|
||||
onDeactivate: closeMenu,
|
||||
onPostDeactivate: handlePostDeactivate,
|
||||
allowOutsideClick: (e) => {
|
||||
allowOutsideClick: (e: MouseEvent | TouchEvent) => {
|
||||
e.preventDefault();
|
||||
closeMenu();
|
||||
return false;
|
||||
|
||||
@@ -21,7 +21,7 @@ export const usePdfDocumentLoader = (pdfJS: typeof PdfJsDist | undefined, src: s
|
||||
if (!pdfJS) {
|
||||
throw new Error('PdfJS is not loaded');
|
||||
}
|
||||
const doc = await pdfJS.getDocument(src).promise;
|
||||
const doc = await pdfJS.getDocument({ url: src }).promise;
|
||||
return doc;
|
||||
}, [pdfJS, src])
|
||||
);
|
||||
|
||||
@@ -96,6 +96,9 @@ const stripIncomingStyle = (
|
||||
return props;
|
||||
};
|
||||
|
||||
const attrString = (value: unknown): string | undefined =>
|
||||
typeof value === 'string' ? value : undefined;
|
||||
|
||||
const ensureNoopenerRel = (rel: unknown): string => {
|
||||
if (typeof rel !== 'string') return 'noopener';
|
||||
|
||||
@@ -855,18 +858,21 @@ export const getReactCustomHtmlParser = (
|
||||
// Guard: img without a src survives sanitisation (fix for crash #1731)
|
||||
// but we can't convert it Eskip rendering rather than passing
|
||||
// undefined into mxcUrlToHttp where it would throw.
|
||||
if (!props.src) return null;
|
||||
const src = attrString(props.src);
|
||||
if (!src) return null;
|
||||
|
||||
const htmlSrc = mxcUrlToHttp(mx, props.src, params.useAuthentication) ?? undefined;
|
||||
const fallbackLabel = props.alt || props.title || '[media]';
|
||||
const failedToResolveMxc = props.src.startsWith('mxc://') && !htmlSrc;
|
||||
const alt = attrString(props.alt);
|
||||
const title = attrString(props.title);
|
||||
const htmlSrc = mxcUrlToHttp(mx, src, params.useAuthentication) ?? undefined;
|
||||
const fallbackLabel = alt || title || '[media]';
|
||||
const failedToResolveMxc = src.startsWith('mxc://') && !htmlSrc;
|
||||
|
||||
// Non-mxc images were already converted to <a> links by the sanitiser,
|
||||
// but handle the edge case defensively here too.
|
||||
if (htmlSrc && !props.src.startsWith('mxc://')) {
|
||||
if (htmlSrc && !src.startsWith('mxc://')) {
|
||||
return (
|
||||
<a href={htmlSrc} target="_blank" rel="noreferrer noopener">
|
||||
{props.alt || props.title || htmlSrc}
|
||||
{alt || title || htmlSrc}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
@@ -875,7 +881,7 @@ export const getReactCustomHtmlParser = (
|
||||
// When the mxc URL can't be resolved (e.g. federation unavailable),
|
||||
// fall back to rendering the shortcode text so the message stays readable.
|
||||
if (!htmlSrc) {
|
||||
const label = props.alt || props.title || '';
|
||||
const label = alt || title || '';
|
||||
return (
|
||||
<span title={label} className={css.EmoticonBase}>
|
||||
{label ? `:${label}:` : ''}
|
||||
|
||||
@@ -15,7 +15,7 @@ const normalizeMacName = (os?: string) => {
|
||||
return os;
|
||||
};
|
||||
|
||||
const isMac = result.os.name === 'Mac OS';
|
||||
const isMac = result.os.name === 'Mac OS' || result.os.name === 'macOS';
|
||||
|
||||
export const ua = () => result;
|
||||
export const isMacOS = () => isMac;
|
||||
|
||||
Reference in new issue
Block a user