diff --git a/packages/ui/src/routes/suggest.tsx b/packages/ui/src/routes/suggest.tsx
index d16ef695..8dbe090f 100644
--- a/packages/ui/src/routes/suggest.tsx
+++ b/packages/ui/src/routes/suggest.tsx
@@ -25,7 +25,7 @@ const LUME_USERS = [
"npub1zfss807aer0j26mwp2la0ume0jqde3823rmu97ra6sgyyg956e0s6xw445",
];
-export function SuggestRoute({ queryKey }: { queryKey: string[] }) {
+export function SuggestRoute({ queryKey }: { queryKey: string }) {
const queryClient = useQueryClient();
const navigate = useNavigate();
@@ -45,7 +45,7 @@ export function SuggestRoute({ queryKey }: { queryKey: string[] }) {
const submit = async () => {
try {
- await queryClient.refetchQueries({ queryKey });
+ await queryClient.refetchQueries({ queryKey: [queryKey] });
return navigate("/", { replace: true });
} catch (e) {
toast.error(String(e));
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0468b3fe..9ead7ffa 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1061,6 +1061,18 @@ importers:
react:
specifier: ^18.2.0
version: 18.2.0
+ scheduler:
+ specifier: ^0.23.0
+ version: 0.23.0
+ use-context-selector:
+ specifier: ^1.4.1
+ version: 1.4.1(react@18.2.0)(scheduler@0.23.0)
+ virtua:
+ specifier: ^0.23.3
+ version: 0.23.3(react-dom@18.2.0)(react@18.2.0)
+ zustand:
+ specifier: ^4.5.0
+ version: 4.5.0(@types/react@18.2.52)(react@18.2.0)
devDependencies:
'@lume/tsconfig':
specifier: workspace:*
@@ -1100,10 +1112,6 @@ importers:
packages/tsconfig: {}
packages/types:
- dependencies:
- '@nostr-dev-kit/ndk':
- specifier: ^2.4.0
- version: 2.4.0(typescript@5.3.3)
devDependencies:
typescript:
specifier: ^5.3.3
@@ -9812,6 +9820,23 @@ packages:
tslib: 2.6.2
dev: false
+ /use-context-selector@1.4.1(react@18.2.0)(scheduler@0.23.0):
+ resolution: {integrity: sha512-Io2ArvcRO+6MWIhkdfMFt+WKQX+Vb++W8DS2l03z/Vw/rz3BclKpM0ynr4LYGyU85Eke+Yx5oIhTY++QR0ZDoA==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '*'
+ react-native: '*'
+ scheduler: '>=0.19.0'
+ peerDependenciesMeta:
+ react-dom:
+ optional: true
+ react-native:
+ optional: true
+ dependencies:
+ react: 18.2.0
+ scheduler: 0.23.0
+ dev: false
+
/use-debounce@10.0.0(react@18.2.0):
resolution: {integrity: sha512-XRjvlvCB46bah9IBXVnq/ACP2lxqXyZj0D9hj4K5OzNroMDpTEBg8Anuh1/UfRTRs7pLhQ+RiNxxwZu9+MVl1A==}
engines: {node: '>= 16.0.0'}
@@ -9837,6 +9862,14 @@ packages:
tslib: 2.6.2
dev: false
+ /use-sync-external-store@1.2.0(react@18.2.0):
+ resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==}
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0
+ dependencies:
+ react: 18.2.0
+ dev: false
+
/utf-8-validate@5.0.10:
resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==}
engines: {node: '>=6.14.2'}
@@ -10395,5 +10428,25 @@ packages:
resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==}
dev: false
+ /zustand@4.5.0(@types/react@18.2.52)(react@18.2.0):
+ resolution: {integrity: sha512-zlVFqS5TQ21nwijjhJlx4f9iGrXSL0o/+Dpy4txAP22miJ8Ti6c1Ol1RLNN98BMib83lmDH/2KmLwaNXpjrO1A==}
+ engines: {node: '>=12.7.0'}
+ peerDependencies:
+ '@types/react': '>=16.8'
+ immer: '>=9.0.6'
+ react: '>=16.8'
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ immer:
+ optional: true
+ react:
+ optional: true
+ dependencies:
+ '@types/react': 18.2.52
+ react: 18.2.0
+ use-sync-external-store: 1.2.0(react@18.2.0)
+ dev: false
+
/zwitch@2.0.4:
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
diff --git a/src-tauri/capabilities/main.json b/src-tauri/capabilities/main.json
index a1470bf2..7c0d6d74 100644
--- a/src-tauri/capabilities/main.json
+++ b/src-tauri/capabilities/main.json
@@ -19,6 +19,9 @@
"notification:default",
"os:allow-locale",
"os:allow-platform",
+ "updater:allow-check",
+ "updater:default",
+ "window:allow-start-dragging",
{
"identifier": "http:default",
"allow": [
diff --git a/src-tauri/gen/schemas/capabilities.json b/src-tauri/gen/schemas/capabilities.json
index af7cc912..d96cafc5 100644
--- a/src-tauri/gen/schemas/capabilities.json
+++ b/src-tauri/gen/schemas/capabilities.json
@@ -1 +1 @@
-{"desktop-capability":{"identifier":"desktop-capability","description":"Capability for the desktop","context":"local","windows":["main","settings","event-*","user-*","column-*"],"permissions":["path:default","event:default","window:default","app:default","resources:default","menu:default","tray:default","theme:allow-set-theme","theme:allow-get-theme","notification:allow-is-permission-granted","notification:allow-request-permission","notification:default","os:allow-locale","os:allow-platform",{"identifier":"http:default","allow":[{"url":"http://**/"},{"url":"https://**/"}]},{"identifier":"fs:allow-read-text-file","allow":[{"path":"$RESOURCE/locales/*"}]}],"platforms":["linux","macOS","windows"]}}
\ No newline at end of file
+{"desktop-capability":{"identifier":"desktop-capability","description":"Capability for the desktop","context":"local","windows":["main","settings","event-*","user-*","column-*"],"permissions":["path:default","event:default","window:default","app:default","resources:default","menu:default","tray:default","theme:allow-set-theme","theme:allow-get-theme","notification:allow-is-permission-granted","notification:allow-request-permission","notification:default","os:allow-locale","os:allow-platform","updater:allow-check","updater:default","window:allow-start-dragging",{"identifier":"http:default","allow":[{"url":"http://**/"},{"url":"https://**/"}]},{"identifier":"fs:allow-read-text-file","allow":[{"path":"$RESOURCE/locales/*"}]}],"platforms":["linux","macOS","windows"]}}
\ No newline at end of file
diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json
index 84710837..fead6bfd 100644
--- a/src-tauri/tauri.linux.conf.json
+++ b/src-tauri/tauri.linux.conf.json
@@ -1,19 +1,17 @@
{
- "$schema": "../node_modules/@tauri-apps/cli/schema.json",
- "app": {
- "windows": [
- {
- "width": 1080,
- "height": 800,
- "minWidth": 1080,
- "minHeight": 800,
- "resizable": true,
- "title": "Lume",
- "center": true,
- "fullscreen": false,
- "fileDropEnabled": true,
- "decorations": true
- }
- ]
- }
+ "$schema": "../node_modules/@tauri-apps/cli/schema.json",
+ "app": {
+ "windows": [
+ {
+ "title": "Lume",
+ "label": "main",
+ "titleBarStyle": "Overlay",
+ "width": 1080,
+ "height": 800,
+ "minWidth": 1080,
+ "minHeight": 800,
+ "center": true
+ }
+ ]
+ }
}
diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json
index 1f507798..8900fb63 100644
--- a/src-tauri/tauri.macos.conf.json
+++ b/src-tauri/tauri.macos.conf.json
@@ -1,27 +1,19 @@
{
- "$schema": "../node_modules/@tauri-apps/cli/schema.json",
- "app": {
- "windows": [
- {
- "width": 1080,
- "height": 800,
- "minWidth": 1080,
- "minHeight": 800,
- "resizable": true,
- "title": "Lume",
- "titleBarStyle": "Overlay",
- "center": true,
- "fullscreen": false,
- "hiddenTitle": true,
- "fileDropEnabled": true,
- "decorations": true,
- "transparent": true,
- "windowEffects": {
- "effects": [
- "sidebar"
- ]
- }
- }
- ]
- }
+ "$schema": "../node_modules/@tauri-apps/cli/schema.json",
+ "app": {
+ "windows": [
+ {
+ "title": "Lume",
+ "label": "main",
+ "titleBarStyle": "Overlay",
+ "width": 1080,
+ "height": 800,
+ "minWidth": 1080,
+ "minHeight": 800,
+ "center": true,
+ "hiddenTitle": true,
+ "decorations": true
+ }
+ ]
+ }
}
diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json
index a9c94645..d8eb9f41 100644
--- a/src-tauri/tauri.windows.conf.json
+++ b/src-tauri/tauri.windows.conf.json
@@ -1,20 +1,16 @@
{
- "$schema": "../node_modules/@tauri-apps/cli/schema.json",
- "app": {
- "windows": [
- {
- "width": 1080,
- "height": 800,
- "minWidth": 1080,
- "minHeight": 800,
- "resizable": true,
- "title": "Lume",
- "center": true,
- "fullscreen": false,
- "hiddenTitle": true,
- "fileDropEnabled": true,
- "decorations": false
- }
- ]
- }
+ "$schema": "../node_modules/@tauri-apps/cli/schema.json",
+ "app": {
+ "windows": [
+ {
+ "title": "Lume",
+ "label": "main",
+ "width": 1080,
+ "height": 800,
+ "minWidth": 1080,
+ "minHeight": 800,
+ "center": true
+ }
+ ]
+ }
}