From 11b4a878acdebe90c051502c8d7b40b6b623db35 Mon Sep 17 00:00:00 2001 From: Prayag Prajapati Date: Tue, 11 Nov 2025 23:51:06 +0530 Subject: [PATCH] feat: add new library page with performance improvements --- src-tauri/gen/schemas/acl-manifests.json | 2 +- src-tauri/gen/schemas/desktop-schema.json | 64 ++- src-tauri/gen/schemas/windows-schema.json | 64 ++- .../alphaSelector/alphaSelector.scss | 33 ++ src/components/alphaSelector/index.tsx | 51 ++ src/components/appBar/appBar.scss | 44 +- src/components/appBar/appBar.tsx | 142 +---- src/components/backdrop/index.tsx | 4 + src/components/card/card.tsx | 10 +- src/components/filtersDialog/index.tsx | 509 ++++++++++++++++++ src/components/libraryHeader/index.tsx | 362 +++++++++++++ .../libraryHeader/libraryHeader.scss | 34 ++ src/components/libraryItemsGrid/index.tsx | 488 ++++++++++------- .../libraryItemsGrid/libraryItemsGrid.scss | 31 ++ src/components/libraryMenu/index.tsx | 126 ----- src/components/userAvatarMenu/index.tsx | 144 +++++ src/routes/_api/home/index.tsx | 9 +- src/routes/_api/library/$id.tsx | 213 +++----- src/routes/_api/library/library.scss | 7 +- src/routes/_api/login/list.tsx | 15 +- src/theme.ts | 3 +- src/utils/constants/library.ts | 24 +- src/utils/navigation.ts | 4 + src/utils/queries/library.ts | 1 + src/utils/queries/libraryItems.ts | 174 ++++++ src/utils/schema/librarySearch.ts | 3 + src/utils/store/header.ts | 13 + src/utils/store/libraryDraft.ts | 4 + src/utils/store/libraryState.ts | 87 +++ 29 files changed, 2020 insertions(+), 645 deletions(-) create mode 100644 src/components/alphaSelector/alphaSelector.scss create mode 100644 src/components/alphaSelector/index.tsx create mode 100644 src/components/filtersDialog/index.tsx create mode 100644 src/components/libraryHeader/index.tsx create mode 100644 src/components/libraryHeader/libraryHeader.scss create mode 100644 src/components/libraryItemsGrid/libraryItemsGrid.scss delete mode 100644 src/components/libraryMenu/index.tsx create mode 100644 src/components/userAvatarMenu/index.tsx create mode 100644 src/utils/navigation.ts create mode 100644 src/utils/queries/libraryItems.ts create mode 100644 src/utils/schema/librarySearch.ts create mode 100644 src/utils/store/header.ts create mode 100644 src/utils/store/libraryDraft.ts create mode 100644 src/utils/store/libraryState.ts diff --git a/src-tauri/gen/schemas/acl-manifests.json b/src-tauri/gen/schemas/acl-manifests.json index 3e9a9e9..1c8def9 100644 --- a/src-tauri/gen/schemas/acl-manifests.json +++ b/src-tauri/gen/schemas/acl-manifests.json @@ -1 +1 @@ -{"clipboard-manager":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n","permissions":[]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-read-image":{"identifier":"allow-read-image","description":"Enables the read_image command without any pre-configured scope.","commands":{"allow":["read_image"],"deny":[]}},"allow-read-text":{"identifier":"allow-read-text","description":"Enables the read_text command without any pre-configured scope.","commands":{"allow":["read_text"],"deny":[]}},"allow-write-html":{"identifier":"allow-write-html","description":"Enables the write_html command without any pre-configured scope.","commands":{"allow":["write_html"],"deny":[]}},"allow-write-image":{"identifier":"allow-write-image","description":"Enables the write_image command without any pre-configured scope.","commands":{"allow":["write_image"],"deny":[]}},"allow-write-text":{"identifier":"allow-write-text","description":"Enables the write_text command without any pre-configured scope.","commands":{"allow":["write_text"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-read-image":{"identifier":"deny-read-image","description":"Denies the read_image command without any pre-configured scope.","commands":{"allow":[],"deny":["read_image"]}},"deny-read-text":{"identifier":"deny-read-text","description":"Denies the read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text"]}},"deny-write-html":{"identifier":"deny-write-html","description":"Denies the write_html command without any pre-configured scope.","commands":{"allow":[],"deny":["write_html"]}},"deny-write-image":{"identifier":"deny-write-image","description":"Denies the write_image command without any pre-configured scope.","commands":{"allow":[],"deny":["write_image"]}},"deny-write-text":{"identifier":"deny-write-text","description":"Denies the write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set.","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version","allow-identifier"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-fetch-data-store-identifiers":{"identifier":"allow-fetch-data-store-identifiers","description":"Enables the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":["fetch_data_store_identifiers"],"deny":[]}},"allow-identifier":{"identifier":"allow-identifier","description":"Enables the identifier command without any pre-configured scope.","commands":{"allow":["identifier"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-remove-data-store":{"identifier":"allow-remove-data-store","description":"Enables the remove_data_store command without any pre-configured scope.","commands":{"allow":["remove_data_store"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-set-dock-visibility":{"identifier":"allow-set-dock-visibility","description":"Enables the set_dock_visibility command without any pre-configured scope.","commands":{"allow":["set_dock_visibility"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-fetch-data-store-identifiers":{"identifier":"deny-fetch-data-store-identifiers","description":"Denies the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_data_store_identifiers"]}},"deny-identifier":{"identifier":"deny-identifier","description":"Denies the identifier command without any pre-configured scope.","commands":{"allow":[],"deny":["identifier"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-remove-data-store":{"identifier":"deny-remove-data-store","description":"Denies the remove_data_store command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_data_store"]}},"deny-set-app-theme":{"identifier":"deny-set-app-theme","description":"Denies the set_app_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_app_theme"]}},"deny-set-dock-visibility":{"identifier":"deny-set-dock-visibility","description":"Denies the set_dock_visibility command without any pre-configured scope.","commands":{"allow":[],"deny":["set_dock_visibility"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-listen","allow-unlisten","allow-emit","allow-emit-to"]},"permissions":{"allow-emit":{"identifier":"allow-emit","description":"Enables the emit command without any pre-configured scope.","commands":{"allow":["emit"],"deny":[]}},"allow-emit-to":{"identifier":"allow-emit-to","description":"Enables the emit_to command without any pre-configured scope.","commands":{"allow":["emit_to"],"deny":[]}},"allow-listen":{"identifier":"allow-listen","description":"Enables the listen command without any pre-configured scope.","commands":{"allow":["listen"],"deny":[]}},"allow-unlisten":{"identifier":"allow-unlisten","description":"Enables the unlisten command without any pre-configured scope.","commands":{"allow":["unlisten"],"deny":[]}},"deny-emit":{"identifier":"deny-emit","description":"Denies the emit command without any pre-configured scope.","commands":{"allow":[],"deny":["emit"]}},"deny-emit-to":{"identifier":"deny-emit-to","description":"Denies the emit_to command without any pre-configured scope.","commands":{"allow":[],"deny":["emit_to"]}},"deny-listen":{"identifier":"deny-listen","description":"Denies the listen command without any pre-configured scope.","commands":{"allow":[],"deny":["listen"]}},"deny-unlisten":{"identifier":"deny-unlisten","description":"Denies the unlisten command without any pre-configured scope.","commands":{"allow":[],"deny":["unlisten"]}}},"permission_sets":{},"global_scope_schema":null},"core:image":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-from-bytes","allow-from-path","allow-rgba","allow-size"]},"permissions":{"allow-from-bytes":{"identifier":"allow-from-bytes","description":"Enables the from_bytes command without any pre-configured scope.","commands":{"allow":["from_bytes"],"deny":[]}},"allow-from-path":{"identifier":"allow-from-path","description":"Enables the from_path command without any pre-configured scope.","commands":{"allow":["from_path"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-rgba":{"identifier":"allow-rgba","description":"Enables the rgba command without any pre-configured scope.","commands":{"allow":["rgba"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"deny-from-bytes":{"identifier":"deny-from-bytes","description":"Denies the from_bytes command without any pre-configured scope.","commands":{"allow":[],"deny":["from_bytes"]}},"deny-from-path":{"identifier":"deny-from-path","description":"Denies the from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["from_path"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-rgba":{"identifier":"deny-rgba","description":"Denies the rgba command without any pre-configured scope.","commands":{"allow":[],"deny":["rgba"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}}},"permission_sets":{},"global_scope_schema":null},"core:menu":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-append","allow-prepend","allow-insert","allow-remove","allow-remove-at","allow-items","allow-get","allow-popup","allow-create-default","allow-set-as-app-menu","allow-set-as-window-menu","allow-text","allow-set-text","allow-is-enabled","allow-set-enabled","allow-set-accelerator","allow-set-as-windows-menu-for-nsapp","allow-set-as-help-menu-for-nsapp","allow-is-checked","allow-set-checked","allow-set-icon"]},"permissions":{"allow-append":{"identifier":"allow-append","description":"Enables the append command without any pre-configured scope.","commands":{"allow":["append"],"deny":[]}},"allow-create-default":{"identifier":"allow-create-default","description":"Enables the create_default command without any pre-configured scope.","commands":{"allow":["create_default"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-insert":{"identifier":"allow-insert","description":"Enables the insert command without any pre-configured scope.","commands":{"allow":["insert"],"deny":[]}},"allow-is-checked":{"identifier":"allow-is-checked","description":"Enables the is_checked command without any pre-configured scope.","commands":{"allow":["is_checked"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-items":{"identifier":"allow-items","description":"Enables the items command without any pre-configured scope.","commands":{"allow":["items"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-popup":{"identifier":"allow-popup","description":"Enables the popup command without any pre-configured scope.","commands":{"allow":["popup"],"deny":[]}},"allow-prepend":{"identifier":"allow-prepend","description":"Enables the prepend command without any pre-configured scope.","commands":{"allow":["prepend"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-remove-at":{"identifier":"allow-remove-at","description":"Enables the remove_at command without any pre-configured scope.","commands":{"allow":["remove_at"],"deny":[]}},"allow-set-accelerator":{"identifier":"allow-set-accelerator","description":"Enables the set_accelerator command without any pre-configured scope.","commands":{"allow":["set_accelerator"],"deny":[]}},"allow-set-as-app-menu":{"identifier":"allow-set-as-app-menu","description":"Enables the set_as_app_menu command without any pre-configured scope.","commands":{"allow":["set_as_app_menu"],"deny":[]}},"allow-set-as-help-menu-for-nsapp":{"identifier":"allow-set-as-help-menu-for-nsapp","description":"Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_help_menu_for_nsapp"],"deny":[]}},"allow-set-as-window-menu":{"identifier":"allow-set-as-window-menu","description":"Enables the set_as_window_menu command without any pre-configured scope.","commands":{"allow":["set_as_window_menu"],"deny":[]}},"allow-set-as-windows-menu-for-nsapp":{"identifier":"allow-set-as-windows-menu-for-nsapp","description":"Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_windows_menu_for_nsapp"],"deny":[]}},"allow-set-checked":{"identifier":"allow-set-checked","description":"Enables the set_checked command without any pre-configured scope.","commands":{"allow":["set_checked"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-text":{"identifier":"allow-set-text","description":"Enables the set_text command without any pre-configured scope.","commands":{"allow":["set_text"],"deny":[]}},"allow-text":{"identifier":"allow-text","description":"Enables the text command without any pre-configured scope.","commands":{"allow":["text"],"deny":[]}},"deny-append":{"identifier":"deny-append","description":"Denies the append command without any pre-configured scope.","commands":{"allow":[],"deny":["append"]}},"deny-create-default":{"identifier":"deny-create-default","description":"Denies the create_default command without any pre-configured scope.","commands":{"allow":[],"deny":["create_default"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-insert":{"identifier":"deny-insert","description":"Denies the insert command without any pre-configured scope.","commands":{"allow":[],"deny":["insert"]}},"deny-is-checked":{"identifier":"deny-is-checked","description":"Denies the is_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["is_checked"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-items":{"identifier":"deny-items","description":"Denies the items command without any pre-configured scope.","commands":{"allow":[],"deny":["items"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-popup":{"identifier":"deny-popup","description":"Denies the popup command without any pre-configured scope.","commands":{"allow":[],"deny":["popup"]}},"deny-prepend":{"identifier":"deny-prepend","description":"Denies the prepend command without any pre-configured scope.","commands":{"allow":[],"deny":["prepend"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-remove-at":{"identifier":"deny-remove-at","description":"Denies the remove_at command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_at"]}},"deny-set-accelerator":{"identifier":"deny-set-accelerator","description":"Denies the set_accelerator command without any pre-configured scope.","commands":{"allow":[],"deny":["set_accelerator"]}},"deny-set-as-app-menu":{"identifier":"deny-set-as-app-menu","description":"Denies the set_as_app_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_app_menu"]}},"deny-set-as-help-menu-for-nsapp":{"identifier":"deny-set-as-help-menu-for-nsapp","description":"Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_help_menu_for_nsapp"]}},"deny-set-as-window-menu":{"identifier":"deny-set-as-window-menu","description":"Denies the set_as_window_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_window_menu"]}},"deny-set-as-windows-menu-for-nsapp":{"identifier":"deny-set-as-windows-menu-for-nsapp","description":"Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_windows_menu_for_nsapp"]}},"deny-set-checked":{"identifier":"deny-set-checked","description":"Denies the set_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["set_checked"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-text":{"identifier":"deny-set-text","description":"Denies the set_text command without any pre-configured scope.","commands":{"allow":[],"deny":["set_text"]}},"deny-text":{"identifier":"deny-text","description":"Denies the text command without any pre-configured scope.","commands":{"allow":[],"deny":["text"]}}},"permission_sets":{},"global_scope_schema":null},"core:path":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-resolve-directory","allow-resolve","allow-normalize","allow-join","allow-dirname","allow-extname","allow-basename","allow-is-absolute"]},"permissions":{"allow-basename":{"identifier":"allow-basename","description":"Enables the basename command without any pre-configured scope.","commands":{"allow":["basename"],"deny":[]}},"allow-dirname":{"identifier":"allow-dirname","description":"Enables the dirname command without any pre-configured scope.","commands":{"allow":["dirname"],"deny":[]}},"allow-extname":{"identifier":"allow-extname","description":"Enables the extname command without any pre-configured scope.","commands":{"allow":["extname"],"deny":[]}},"allow-is-absolute":{"identifier":"allow-is-absolute","description":"Enables the is_absolute command without any pre-configured scope.","commands":{"allow":["is_absolute"],"deny":[]}},"allow-join":{"identifier":"allow-join","description":"Enables the join command without any pre-configured scope.","commands":{"allow":["join"],"deny":[]}},"allow-normalize":{"identifier":"allow-normalize","description":"Enables the normalize command without any pre-configured scope.","commands":{"allow":["normalize"],"deny":[]}},"allow-resolve":{"identifier":"allow-resolve","description":"Enables the resolve command without any pre-configured scope.","commands":{"allow":["resolve"],"deny":[]}},"allow-resolve-directory":{"identifier":"allow-resolve-directory","description":"Enables the resolve_directory command without any pre-configured scope.","commands":{"allow":["resolve_directory"],"deny":[]}},"deny-basename":{"identifier":"deny-basename","description":"Denies the basename command without any pre-configured scope.","commands":{"allow":[],"deny":["basename"]}},"deny-dirname":{"identifier":"deny-dirname","description":"Denies the dirname command without any pre-configured scope.","commands":{"allow":[],"deny":["dirname"]}},"deny-extname":{"identifier":"deny-extname","description":"Denies the extname command without any pre-configured scope.","commands":{"allow":[],"deny":["extname"]}},"deny-is-absolute":{"identifier":"deny-is-absolute","description":"Denies the is_absolute command without any pre-configured scope.","commands":{"allow":[],"deny":["is_absolute"]}},"deny-join":{"identifier":"deny-join","description":"Denies the join command without any pre-configured scope.","commands":{"allow":[],"deny":["join"]}},"deny-normalize":{"identifier":"deny-normalize","description":"Denies the normalize command without any pre-configured scope.","commands":{"allow":[],"deny":["normalize"]}},"deny-resolve":{"identifier":"deny-resolve","description":"Denies the resolve command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve"]}},"deny-resolve-directory":{"identifier":"deny-resolve-directory","description":"Denies the resolve_directory command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve_directory"]}}},"permission_sets":{},"global_scope_schema":null},"core:resources":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-close"]},"permissions":{"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}}},"permission_sets":{},"global_scope_schema":null},"core:tray":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-get-by-id","allow-remove-by-id","allow-set-icon","allow-set-menu","allow-set-tooltip","allow-set-title","allow-set-visible","allow-set-temp-dir-path","allow-set-icon-as-template","allow-set-show-menu-on-left-click"]},"permissions":{"allow-get-by-id":{"identifier":"allow-get-by-id","description":"Enables the get_by_id command without any pre-configured scope.","commands":{"allow":["get_by_id"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-remove-by-id":{"identifier":"allow-remove-by-id","description":"Enables the remove_by_id command without any pre-configured scope.","commands":{"allow":["remove_by_id"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-icon-as-template":{"identifier":"allow-set-icon-as-template","description":"Enables the set_icon_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_as_template"],"deny":[]}},"allow-set-menu":{"identifier":"allow-set-menu","description":"Enables the set_menu command without any pre-configured scope.","commands":{"allow":["set_menu"],"deny":[]}},"allow-set-show-menu-on-left-click":{"identifier":"allow-set-show-menu-on-left-click","description":"Enables the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":["set_show_menu_on_left_click"],"deny":[]}},"allow-set-temp-dir-path":{"identifier":"allow-set-temp-dir-path","description":"Enables the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":["set_temp_dir_path"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-tooltip":{"identifier":"allow-set-tooltip","description":"Enables the set_tooltip command without any pre-configured scope.","commands":{"allow":["set_tooltip"],"deny":[]}},"allow-set-visible":{"identifier":"allow-set-visible","description":"Enables the set_visible command without any pre-configured scope.","commands":{"allow":["set_visible"],"deny":[]}},"deny-get-by-id":{"identifier":"deny-get-by-id","description":"Denies the get_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["get_by_id"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-remove-by-id":{"identifier":"deny-remove-by-id","description":"Denies the remove_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_by_id"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-icon-as-template":{"identifier":"deny-set-icon-as-template","description":"Denies the set_icon_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_as_template"]}},"deny-set-menu":{"identifier":"deny-set-menu","description":"Denies the set_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_menu"]}},"deny-set-show-menu-on-left-click":{"identifier":"deny-set-show-menu-on-left-click","description":"Denies the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":[],"deny":["set_show_menu_on_left_click"]}},"deny-set-temp-dir-path":{"identifier":"deny-set-temp-dir-path","description":"Denies the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":[],"deny":["set_temp_dir_path"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-tooltip":{"identifier":"deny-set-tooltip","description":"Denies the set_tooltip command without any pre-configured scope.","commands":{"allow":[],"deny":["set_tooltip"]}},"deny-set-visible":{"identifier":"deny-set-visible","description":"Denies the set_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible"]}}},"permission_sets":{},"global_scope_schema":null},"core:webview":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-webviews","allow-webview-position","allow-webview-size","allow-internal-toggle-devtools"]},"permissions":{"allow-clear-all-browsing-data":{"identifier":"allow-clear-all-browsing-data","description":"Enables the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":["clear_all_browsing_data"],"deny":[]}},"allow-create-webview":{"identifier":"allow-create-webview","description":"Enables the create_webview command without any pre-configured scope.","commands":{"allow":["create_webview"],"deny":[]}},"allow-create-webview-window":{"identifier":"allow-create-webview-window","description":"Enables the create_webview_window command without any pre-configured scope.","commands":{"allow":["create_webview_window"],"deny":[]}},"allow-get-all-webviews":{"identifier":"allow-get-all-webviews","description":"Enables the get_all_webviews command without any pre-configured scope.","commands":{"allow":["get_all_webviews"],"deny":[]}},"allow-internal-toggle-devtools":{"identifier":"allow-internal-toggle-devtools","description":"Enables the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":["internal_toggle_devtools"],"deny":[]}},"allow-print":{"identifier":"allow-print","description":"Enables the print command without any pre-configured scope.","commands":{"allow":["print"],"deny":[]}},"allow-reparent":{"identifier":"allow-reparent","description":"Enables the reparent command without any pre-configured scope.","commands":{"allow":["reparent"],"deny":[]}},"allow-set-webview-auto-resize":{"identifier":"allow-set-webview-auto-resize","description":"Enables the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":["set_webview_auto_resize"],"deny":[]}},"allow-set-webview-background-color":{"identifier":"allow-set-webview-background-color","description":"Enables the set_webview_background_color command without any pre-configured scope.","commands":{"allow":["set_webview_background_color"],"deny":[]}},"allow-set-webview-focus":{"identifier":"allow-set-webview-focus","description":"Enables the set_webview_focus command without any pre-configured scope.","commands":{"allow":["set_webview_focus"],"deny":[]}},"allow-set-webview-position":{"identifier":"allow-set-webview-position","description":"Enables the set_webview_position command without any pre-configured scope.","commands":{"allow":["set_webview_position"],"deny":[]}},"allow-set-webview-size":{"identifier":"allow-set-webview-size","description":"Enables the set_webview_size command without any pre-configured scope.","commands":{"allow":["set_webview_size"],"deny":[]}},"allow-set-webview-zoom":{"identifier":"allow-set-webview-zoom","description":"Enables the set_webview_zoom command without any pre-configured scope.","commands":{"allow":["set_webview_zoom"],"deny":[]}},"allow-webview-close":{"identifier":"allow-webview-close","description":"Enables the webview_close command without any pre-configured scope.","commands":{"allow":["webview_close"],"deny":[]}},"allow-webview-hide":{"identifier":"allow-webview-hide","description":"Enables the webview_hide command without any pre-configured scope.","commands":{"allow":["webview_hide"],"deny":[]}},"allow-webview-position":{"identifier":"allow-webview-position","description":"Enables the webview_position command without any pre-configured scope.","commands":{"allow":["webview_position"],"deny":[]}},"allow-webview-show":{"identifier":"allow-webview-show","description":"Enables the webview_show command without any pre-configured scope.","commands":{"allow":["webview_show"],"deny":[]}},"allow-webview-size":{"identifier":"allow-webview-size","description":"Enables the webview_size command without any pre-configured scope.","commands":{"allow":["webview_size"],"deny":[]}},"deny-clear-all-browsing-data":{"identifier":"deny-clear-all-browsing-data","description":"Denies the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_all_browsing_data"]}},"deny-create-webview":{"identifier":"deny-create-webview","description":"Denies the create_webview command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview"]}},"deny-create-webview-window":{"identifier":"deny-create-webview-window","description":"Denies the create_webview_window command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview_window"]}},"deny-get-all-webviews":{"identifier":"deny-get-all-webviews","description":"Denies the get_all_webviews command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_webviews"]}},"deny-internal-toggle-devtools":{"identifier":"deny-internal-toggle-devtools","description":"Denies the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_devtools"]}},"deny-print":{"identifier":"deny-print","description":"Denies the print command without any pre-configured scope.","commands":{"allow":[],"deny":["print"]}},"deny-reparent":{"identifier":"deny-reparent","description":"Denies the reparent command without any pre-configured scope.","commands":{"allow":[],"deny":["reparent"]}},"deny-set-webview-auto-resize":{"identifier":"deny-set-webview-auto-resize","description":"Denies the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_auto_resize"]}},"deny-set-webview-background-color":{"identifier":"deny-set-webview-background-color","description":"Denies the set_webview_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_background_color"]}},"deny-set-webview-focus":{"identifier":"deny-set-webview-focus","description":"Denies the set_webview_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_focus"]}},"deny-set-webview-position":{"identifier":"deny-set-webview-position","description":"Denies the set_webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_position"]}},"deny-set-webview-size":{"identifier":"deny-set-webview-size","description":"Denies the set_webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_size"]}},"deny-set-webview-zoom":{"identifier":"deny-set-webview-zoom","description":"Denies the set_webview_zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_zoom"]}},"deny-webview-close":{"identifier":"deny-webview-close","description":"Denies the webview_close command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_close"]}},"deny-webview-hide":{"identifier":"deny-webview-hide","description":"Denies the webview_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_hide"]}},"deny-webview-position":{"identifier":"deny-webview-position","description":"Denies the webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_position"]}},"deny-webview-show":{"identifier":"deny-webview-show","description":"Denies the webview_show command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_show"]}},"deny-webview-size":{"identifier":"deny-webview-size","description":"Denies the webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_size"]}}},"permission_sets":{},"global_scope_schema":null},"core:window":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-windows","allow-scale-factor","allow-inner-position","allow-outer-position","allow-inner-size","allow-outer-size","allow-is-fullscreen","allow-is-minimized","allow-is-maximized","allow-is-focused","allow-is-decorated","allow-is-resizable","allow-is-maximizable","allow-is-minimizable","allow-is-closable","allow-is-visible","allow-is-enabled","allow-title","allow-current-monitor","allow-primary-monitor","allow-monitor-from-point","allow-available-monitors","allow-cursor-position","allow-theme","allow-is-always-on-top","allow-internal-toggle-maximize"]},"permissions":{"allow-available-monitors":{"identifier":"allow-available-monitors","description":"Enables the available_monitors command without any pre-configured scope.","commands":{"allow":["available_monitors"],"deny":[]}},"allow-center":{"identifier":"allow-center","description":"Enables the center command without any pre-configured scope.","commands":{"allow":["center"],"deny":[]}},"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-current-monitor":{"identifier":"allow-current-monitor","description":"Enables the current_monitor command without any pre-configured scope.","commands":{"allow":["current_monitor"],"deny":[]}},"allow-cursor-position":{"identifier":"allow-cursor-position","description":"Enables the cursor_position command without any pre-configured scope.","commands":{"allow":["cursor_position"],"deny":[]}},"allow-destroy":{"identifier":"allow-destroy","description":"Enables the destroy command without any pre-configured scope.","commands":{"allow":["destroy"],"deny":[]}},"allow-get-all-windows":{"identifier":"allow-get-all-windows","description":"Enables the get_all_windows command without any pre-configured scope.","commands":{"allow":["get_all_windows"],"deny":[]}},"allow-hide":{"identifier":"allow-hide","description":"Enables the hide command without any pre-configured scope.","commands":{"allow":["hide"],"deny":[]}},"allow-inner-position":{"identifier":"allow-inner-position","description":"Enables the inner_position command without any pre-configured scope.","commands":{"allow":["inner_position"],"deny":[]}},"allow-inner-size":{"identifier":"allow-inner-size","description":"Enables the inner_size command without any pre-configured scope.","commands":{"allow":["inner_size"],"deny":[]}},"allow-internal-toggle-maximize":{"identifier":"allow-internal-toggle-maximize","description":"Enables the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":["internal_toggle_maximize"],"deny":[]}},"allow-is-always-on-top":{"identifier":"allow-is-always-on-top","description":"Enables the is_always_on_top command without any pre-configured scope.","commands":{"allow":["is_always_on_top"],"deny":[]}},"allow-is-closable":{"identifier":"allow-is-closable","description":"Enables the is_closable command without any pre-configured scope.","commands":{"allow":["is_closable"],"deny":[]}},"allow-is-decorated":{"identifier":"allow-is-decorated","description":"Enables the is_decorated command without any pre-configured scope.","commands":{"allow":["is_decorated"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-is-focused":{"identifier":"allow-is-focused","description":"Enables the is_focused command without any pre-configured scope.","commands":{"allow":["is_focused"],"deny":[]}},"allow-is-fullscreen":{"identifier":"allow-is-fullscreen","description":"Enables the is_fullscreen command without any pre-configured scope.","commands":{"allow":["is_fullscreen"],"deny":[]}},"allow-is-maximizable":{"identifier":"allow-is-maximizable","description":"Enables the is_maximizable command without any pre-configured scope.","commands":{"allow":["is_maximizable"],"deny":[]}},"allow-is-maximized":{"identifier":"allow-is-maximized","description":"Enables the is_maximized command without any pre-configured scope.","commands":{"allow":["is_maximized"],"deny":[]}},"allow-is-minimizable":{"identifier":"allow-is-minimizable","description":"Enables the is_minimizable command without any pre-configured scope.","commands":{"allow":["is_minimizable"],"deny":[]}},"allow-is-minimized":{"identifier":"allow-is-minimized","description":"Enables the is_minimized command without any pre-configured scope.","commands":{"allow":["is_minimized"],"deny":[]}},"allow-is-resizable":{"identifier":"allow-is-resizable","description":"Enables the is_resizable command without any pre-configured scope.","commands":{"allow":["is_resizable"],"deny":[]}},"allow-is-visible":{"identifier":"allow-is-visible","description":"Enables the is_visible command without any pre-configured scope.","commands":{"allow":["is_visible"],"deny":[]}},"allow-maximize":{"identifier":"allow-maximize","description":"Enables the maximize command without any pre-configured scope.","commands":{"allow":["maximize"],"deny":[]}},"allow-minimize":{"identifier":"allow-minimize","description":"Enables the minimize command without any pre-configured scope.","commands":{"allow":["minimize"],"deny":[]}},"allow-monitor-from-point":{"identifier":"allow-monitor-from-point","description":"Enables the monitor_from_point command without any pre-configured scope.","commands":{"allow":["monitor_from_point"],"deny":[]}},"allow-outer-position":{"identifier":"allow-outer-position","description":"Enables the outer_position command without any pre-configured scope.","commands":{"allow":["outer_position"],"deny":[]}},"allow-outer-size":{"identifier":"allow-outer-size","description":"Enables the outer_size command without any pre-configured scope.","commands":{"allow":["outer_size"],"deny":[]}},"allow-primary-monitor":{"identifier":"allow-primary-monitor","description":"Enables the primary_monitor command without any pre-configured scope.","commands":{"allow":["primary_monitor"],"deny":[]}},"allow-request-user-attention":{"identifier":"allow-request-user-attention","description":"Enables the request_user_attention command without any pre-configured scope.","commands":{"allow":["request_user_attention"],"deny":[]}},"allow-scale-factor":{"identifier":"allow-scale-factor","description":"Enables the scale_factor command without any pre-configured scope.","commands":{"allow":["scale_factor"],"deny":[]}},"allow-set-always-on-bottom":{"identifier":"allow-set-always-on-bottom","description":"Enables the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":["set_always_on_bottom"],"deny":[]}},"allow-set-always-on-top":{"identifier":"allow-set-always-on-top","description":"Enables the set_always_on_top command without any pre-configured scope.","commands":{"allow":["set_always_on_top"],"deny":[]}},"allow-set-background-color":{"identifier":"allow-set-background-color","description":"Enables the set_background_color command without any pre-configured scope.","commands":{"allow":["set_background_color"],"deny":[]}},"allow-set-badge-count":{"identifier":"allow-set-badge-count","description":"Enables the set_badge_count command without any pre-configured scope.","commands":{"allow":["set_badge_count"],"deny":[]}},"allow-set-badge-label":{"identifier":"allow-set-badge-label","description":"Enables the set_badge_label command without any pre-configured scope.","commands":{"allow":["set_badge_label"],"deny":[]}},"allow-set-closable":{"identifier":"allow-set-closable","description":"Enables the set_closable command without any pre-configured scope.","commands":{"allow":["set_closable"],"deny":[]}},"allow-set-content-protected":{"identifier":"allow-set-content-protected","description":"Enables the set_content_protected command without any pre-configured scope.","commands":{"allow":["set_content_protected"],"deny":[]}},"allow-set-cursor-grab":{"identifier":"allow-set-cursor-grab","description":"Enables the set_cursor_grab command without any pre-configured scope.","commands":{"allow":["set_cursor_grab"],"deny":[]}},"allow-set-cursor-icon":{"identifier":"allow-set-cursor-icon","description":"Enables the set_cursor_icon command without any pre-configured scope.","commands":{"allow":["set_cursor_icon"],"deny":[]}},"allow-set-cursor-position":{"identifier":"allow-set-cursor-position","description":"Enables the set_cursor_position command without any pre-configured scope.","commands":{"allow":["set_cursor_position"],"deny":[]}},"allow-set-cursor-visible":{"identifier":"allow-set-cursor-visible","description":"Enables the set_cursor_visible command without any pre-configured scope.","commands":{"allow":["set_cursor_visible"],"deny":[]}},"allow-set-decorations":{"identifier":"allow-set-decorations","description":"Enables the set_decorations command without any pre-configured scope.","commands":{"allow":["set_decorations"],"deny":[]}},"allow-set-effects":{"identifier":"allow-set-effects","description":"Enables the set_effects command without any pre-configured scope.","commands":{"allow":["set_effects"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-focus":{"identifier":"allow-set-focus","description":"Enables the set_focus command without any pre-configured scope.","commands":{"allow":["set_focus"],"deny":[]}},"allow-set-fullscreen":{"identifier":"allow-set-fullscreen","description":"Enables the set_fullscreen command without any pre-configured scope.","commands":{"allow":["set_fullscreen"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-ignore-cursor-events":{"identifier":"allow-set-ignore-cursor-events","description":"Enables the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":["set_ignore_cursor_events"],"deny":[]}},"allow-set-max-size":{"identifier":"allow-set-max-size","description":"Enables the set_max_size command without any pre-configured scope.","commands":{"allow":["set_max_size"],"deny":[]}},"allow-set-maximizable":{"identifier":"allow-set-maximizable","description":"Enables the set_maximizable command without any pre-configured scope.","commands":{"allow":["set_maximizable"],"deny":[]}},"allow-set-min-size":{"identifier":"allow-set-min-size","description":"Enables the set_min_size command without any pre-configured scope.","commands":{"allow":["set_min_size"],"deny":[]}},"allow-set-minimizable":{"identifier":"allow-set-minimizable","description":"Enables the set_minimizable command without any pre-configured scope.","commands":{"allow":["set_minimizable"],"deny":[]}},"allow-set-overlay-icon":{"identifier":"allow-set-overlay-icon","description":"Enables the set_overlay_icon command without any pre-configured scope.","commands":{"allow":["set_overlay_icon"],"deny":[]}},"allow-set-position":{"identifier":"allow-set-position","description":"Enables the set_position command without any pre-configured scope.","commands":{"allow":["set_position"],"deny":[]}},"allow-set-progress-bar":{"identifier":"allow-set-progress-bar","description":"Enables the set_progress_bar command without any pre-configured scope.","commands":{"allow":["set_progress_bar"],"deny":[]}},"allow-set-resizable":{"identifier":"allow-set-resizable","description":"Enables the set_resizable command without any pre-configured scope.","commands":{"allow":["set_resizable"],"deny":[]}},"allow-set-shadow":{"identifier":"allow-set-shadow","description":"Enables the set_shadow command without any pre-configured scope.","commands":{"allow":["set_shadow"],"deny":[]}},"allow-set-size":{"identifier":"allow-set-size","description":"Enables the set_size command without any pre-configured scope.","commands":{"allow":["set_size"],"deny":[]}},"allow-set-size-constraints":{"identifier":"allow-set-size-constraints","description":"Enables the set_size_constraints command without any pre-configured scope.","commands":{"allow":["set_size_constraints"],"deny":[]}},"allow-set-skip-taskbar":{"identifier":"allow-set-skip-taskbar","description":"Enables the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":["set_skip_taskbar"],"deny":[]}},"allow-set-theme":{"identifier":"allow-set-theme","description":"Enables the set_theme command without any pre-configured scope.","commands":{"allow":["set_theme"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-title-bar-style":{"identifier":"allow-set-title-bar-style","description":"Enables the set_title_bar_style command without any pre-configured scope.","commands":{"allow":["set_title_bar_style"],"deny":[]}},"allow-set-visible-on-all-workspaces":{"identifier":"allow-set-visible-on-all-workspaces","description":"Enables the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":["set_visible_on_all_workspaces"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"allow-start-dragging":{"identifier":"allow-start-dragging","description":"Enables the start_dragging command without any pre-configured scope.","commands":{"allow":["start_dragging"],"deny":[]}},"allow-start-resize-dragging":{"identifier":"allow-start-resize-dragging","description":"Enables the start_resize_dragging command without any pre-configured scope.","commands":{"allow":["start_resize_dragging"],"deny":[]}},"allow-theme":{"identifier":"allow-theme","description":"Enables the theme command without any pre-configured scope.","commands":{"allow":["theme"],"deny":[]}},"allow-title":{"identifier":"allow-title","description":"Enables the title command without any pre-configured scope.","commands":{"allow":["title"],"deny":[]}},"allow-toggle-maximize":{"identifier":"allow-toggle-maximize","description":"Enables the toggle_maximize command without any pre-configured scope.","commands":{"allow":["toggle_maximize"],"deny":[]}},"allow-unmaximize":{"identifier":"allow-unmaximize","description":"Enables the unmaximize command without any pre-configured scope.","commands":{"allow":["unmaximize"],"deny":[]}},"allow-unminimize":{"identifier":"allow-unminimize","description":"Enables the unminimize command without any pre-configured scope.","commands":{"allow":["unminimize"],"deny":[]}},"deny-available-monitors":{"identifier":"deny-available-monitors","description":"Denies the available_monitors command without any pre-configured scope.","commands":{"allow":[],"deny":["available_monitors"]}},"deny-center":{"identifier":"deny-center","description":"Denies the center command without any pre-configured scope.","commands":{"allow":[],"deny":["center"]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-current-monitor":{"identifier":"deny-current-monitor","description":"Denies the current_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["current_monitor"]}},"deny-cursor-position":{"identifier":"deny-cursor-position","description":"Denies the cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["cursor_position"]}},"deny-destroy":{"identifier":"deny-destroy","description":"Denies the destroy command without any pre-configured scope.","commands":{"allow":[],"deny":["destroy"]}},"deny-get-all-windows":{"identifier":"deny-get-all-windows","description":"Denies the get_all_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_windows"]}},"deny-hide":{"identifier":"deny-hide","description":"Denies the hide command without any pre-configured scope.","commands":{"allow":[],"deny":["hide"]}},"deny-inner-position":{"identifier":"deny-inner-position","description":"Denies the inner_position command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_position"]}},"deny-inner-size":{"identifier":"deny-inner-size","description":"Denies the inner_size command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_size"]}},"deny-internal-toggle-maximize":{"identifier":"deny-internal-toggle-maximize","description":"Denies the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_maximize"]}},"deny-is-always-on-top":{"identifier":"deny-is-always-on-top","description":"Denies the is_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["is_always_on_top"]}},"deny-is-closable":{"identifier":"deny-is-closable","description":"Denies the is_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_closable"]}},"deny-is-decorated":{"identifier":"deny-is-decorated","description":"Denies the is_decorated command without any pre-configured scope.","commands":{"allow":[],"deny":["is_decorated"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-is-focused":{"identifier":"deny-is-focused","description":"Denies the is_focused command without any pre-configured scope.","commands":{"allow":[],"deny":["is_focused"]}},"deny-is-fullscreen":{"identifier":"deny-is-fullscreen","description":"Denies the is_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["is_fullscreen"]}},"deny-is-maximizable":{"identifier":"deny-is-maximizable","description":"Denies the is_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximizable"]}},"deny-is-maximized":{"identifier":"deny-is-maximized","description":"Denies the is_maximized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximized"]}},"deny-is-minimizable":{"identifier":"deny-is-minimizable","description":"Denies the is_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimizable"]}},"deny-is-minimized":{"identifier":"deny-is-minimized","description":"Denies the is_minimized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimized"]}},"deny-is-resizable":{"identifier":"deny-is-resizable","description":"Denies the is_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_resizable"]}},"deny-is-visible":{"identifier":"deny-is-visible","description":"Denies the is_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["is_visible"]}},"deny-maximize":{"identifier":"deny-maximize","description":"Denies the maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["maximize"]}},"deny-minimize":{"identifier":"deny-minimize","description":"Denies the minimize command without any pre-configured scope.","commands":{"allow":[],"deny":["minimize"]}},"deny-monitor-from-point":{"identifier":"deny-monitor-from-point","description":"Denies the monitor_from_point command without any pre-configured scope.","commands":{"allow":[],"deny":["monitor_from_point"]}},"deny-outer-position":{"identifier":"deny-outer-position","description":"Denies the outer_position command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_position"]}},"deny-outer-size":{"identifier":"deny-outer-size","description":"Denies the outer_size command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_size"]}},"deny-primary-monitor":{"identifier":"deny-primary-monitor","description":"Denies the primary_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["primary_monitor"]}},"deny-request-user-attention":{"identifier":"deny-request-user-attention","description":"Denies the request_user_attention command without any pre-configured scope.","commands":{"allow":[],"deny":["request_user_attention"]}},"deny-scale-factor":{"identifier":"deny-scale-factor","description":"Denies the scale_factor command without any pre-configured scope.","commands":{"allow":[],"deny":["scale_factor"]}},"deny-set-always-on-bottom":{"identifier":"deny-set-always-on-bottom","description":"Denies the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_bottom"]}},"deny-set-always-on-top":{"identifier":"deny-set-always-on-top","description":"Denies the set_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_top"]}},"deny-set-background-color":{"identifier":"deny-set-background-color","description":"Denies the set_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_background_color"]}},"deny-set-badge-count":{"identifier":"deny-set-badge-count","description":"Denies the set_badge_count command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_count"]}},"deny-set-badge-label":{"identifier":"deny-set-badge-label","description":"Denies the set_badge_label command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_label"]}},"deny-set-closable":{"identifier":"deny-set-closable","description":"Denies the set_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_closable"]}},"deny-set-content-protected":{"identifier":"deny-set-content-protected","description":"Denies the set_content_protected command without any pre-configured scope.","commands":{"allow":[],"deny":["set_content_protected"]}},"deny-set-cursor-grab":{"identifier":"deny-set-cursor-grab","description":"Denies the set_cursor_grab command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_grab"]}},"deny-set-cursor-icon":{"identifier":"deny-set-cursor-icon","description":"Denies the set_cursor_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_icon"]}},"deny-set-cursor-position":{"identifier":"deny-set-cursor-position","description":"Denies the set_cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_position"]}},"deny-set-cursor-visible":{"identifier":"deny-set-cursor-visible","description":"Denies the set_cursor_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_visible"]}},"deny-set-decorations":{"identifier":"deny-set-decorations","description":"Denies the set_decorations command without any pre-configured scope.","commands":{"allow":[],"deny":["set_decorations"]}},"deny-set-effects":{"identifier":"deny-set-effects","description":"Denies the set_effects command without any pre-configured scope.","commands":{"allow":[],"deny":["set_effects"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-focus":{"identifier":"deny-set-focus","description":"Denies the set_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focus"]}},"deny-set-fullscreen":{"identifier":"deny-set-fullscreen","description":"Denies the set_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-ignore-cursor-events":{"identifier":"deny-set-ignore-cursor-events","description":"Denies the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":[],"deny":["set_ignore_cursor_events"]}},"deny-set-max-size":{"identifier":"deny-set-max-size","description":"Denies the set_max_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_max_size"]}},"deny-set-maximizable":{"identifier":"deny-set-maximizable","description":"Denies the set_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_maximizable"]}},"deny-set-min-size":{"identifier":"deny-set-min-size","description":"Denies the set_min_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_min_size"]}},"deny-set-minimizable":{"identifier":"deny-set-minimizable","description":"Denies the set_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_minimizable"]}},"deny-set-overlay-icon":{"identifier":"deny-set-overlay-icon","description":"Denies the set_overlay_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_overlay_icon"]}},"deny-set-position":{"identifier":"deny-set-position","description":"Denies the set_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_position"]}},"deny-set-progress-bar":{"identifier":"deny-set-progress-bar","description":"Denies the set_progress_bar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_progress_bar"]}},"deny-set-resizable":{"identifier":"deny-set-resizable","description":"Denies the set_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_resizable"]}},"deny-set-shadow":{"identifier":"deny-set-shadow","description":"Denies the set_shadow command without any pre-configured scope.","commands":{"allow":[],"deny":["set_shadow"]}},"deny-set-size":{"identifier":"deny-set-size","description":"Denies the set_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size"]}},"deny-set-size-constraints":{"identifier":"deny-set-size-constraints","description":"Denies the set_size_constraints command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size_constraints"]}},"deny-set-skip-taskbar":{"identifier":"deny-set-skip-taskbar","description":"Denies the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_skip_taskbar"]}},"deny-set-theme":{"identifier":"deny-set-theme","description":"Denies the set_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_theme"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-title-bar-style":{"identifier":"deny-set-title-bar-style","description":"Denies the set_title_bar_style command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title_bar_style"]}},"deny-set-visible-on-all-workspaces":{"identifier":"deny-set-visible-on-all-workspaces","description":"Denies the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible_on_all_workspaces"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}},"deny-start-dragging":{"identifier":"deny-start-dragging","description":"Denies the start_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_dragging"]}},"deny-start-resize-dragging":{"identifier":"deny-start-resize-dragging","description":"Denies the start_resize_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_resize_dragging"]}},"deny-theme":{"identifier":"deny-theme","description":"Denies the theme command without any pre-configured scope.","commands":{"allow":[],"deny":["theme"]}},"deny-title":{"identifier":"deny-title","description":"Denies the title command without any pre-configured scope.","commands":{"allow":[],"deny":["title"]}},"deny-toggle-maximize":{"identifier":"deny-toggle-maximize","description":"Denies the toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["toggle_maximize"]}},"deny-unmaximize":{"identifier":"deny-unmaximize","description":"Denies the unmaximize command without any pre-configured scope.","commands":{"allow":[],"deny":["unmaximize"]}},"deny-unminimize":{"identifier":"deny-unminimize","description":"Denies the unminimize command without any pre-configured scope.","commands":{"allow":[],"deny":["unminimize"]}}},"permission_sets":{},"global_scope_schema":null},"dialog":{"default_permission":{"identifier":"default","description":"This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n","permissions":["allow-ask","allow-confirm","allow-message","allow-save","allow-open"]},"permissions":{"allow-ask":{"identifier":"allow-ask","description":"Enables the ask command without any pre-configured scope.","commands":{"allow":["ask"],"deny":[]}},"allow-confirm":{"identifier":"allow-confirm","description":"Enables the confirm command without any pre-configured scope.","commands":{"allow":["confirm"],"deny":[]}},"allow-message":{"identifier":"allow-message","description":"Enables the message command without any pre-configured scope.","commands":{"allow":["message"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"deny-ask":{"identifier":"deny-ask","description":"Denies the ask command without any pre-configured scope.","commands":{"allow":[],"deny":["ask"]}},"deny-confirm":{"identifier":"deny-confirm","description":"Denies the confirm command without any pre-configured scope.","commands":{"allow":[],"deny":["confirm"]}},"deny-message":{"identifier":"deny-message","description":"Denies the message command without any pre-configured scope.","commands":{"allow":[],"deny":["message"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}}},"permission_sets":{},"global_scope_schema":null},"log":{"default_permission":{"identifier":"default","description":"Allows the log command","permissions":["allow-log"]},"permissions":{"allow-log":{"identifier":"allow-log","description":"Enables the log command without any pre-configured scope.","commands":{"allow":["log"],"deny":[]}},"deny-log":{"identifier":"deny-log","description":"Denies the log command without any pre-configured scope.","commands":{"allow":[],"deny":["log"]}}},"permission_sets":{},"global_scope_schema":null},"notification":{"default_permission":{"identifier":"default","description":"This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n","permissions":["allow-is-permission-granted","allow-request-permission","allow-notify","allow-register-action-types","allow-register-listener","allow-cancel","allow-get-pending","allow-remove-active","allow-get-active","allow-check-permissions","allow-show","allow-batch","allow-list-channels","allow-delete-channel","allow-create-channel","allow-permission-state"]},"permissions":{"allow-batch":{"identifier":"allow-batch","description":"Enables the batch command without any pre-configured scope.","commands":{"allow":["batch"],"deny":[]}},"allow-cancel":{"identifier":"allow-cancel","description":"Enables the cancel command without any pre-configured scope.","commands":{"allow":["cancel"],"deny":[]}},"allow-check-permissions":{"identifier":"allow-check-permissions","description":"Enables the check_permissions command without any pre-configured scope.","commands":{"allow":["check_permissions"],"deny":[]}},"allow-create-channel":{"identifier":"allow-create-channel","description":"Enables the create_channel command without any pre-configured scope.","commands":{"allow":["create_channel"],"deny":[]}},"allow-delete-channel":{"identifier":"allow-delete-channel","description":"Enables the delete_channel command without any pre-configured scope.","commands":{"allow":["delete_channel"],"deny":[]}},"allow-get-active":{"identifier":"allow-get-active","description":"Enables the get_active command without any pre-configured scope.","commands":{"allow":["get_active"],"deny":[]}},"allow-get-pending":{"identifier":"allow-get-pending","description":"Enables the get_pending command without any pre-configured scope.","commands":{"allow":["get_pending"],"deny":[]}},"allow-is-permission-granted":{"identifier":"allow-is-permission-granted","description":"Enables the is_permission_granted command without any pre-configured scope.","commands":{"allow":["is_permission_granted"],"deny":[]}},"allow-list-channels":{"identifier":"allow-list-channels","description":"Enables the list_channels command without any pre-configured scope.","commands":{"allow":["list_channels"],"deny":[]}},"allow-notify":{"identifier":"allow-notify","description":"Enables the notify command without any pre-configured scope.","commands":{"allow":["notify"],"deny":[]}},"allow-permission-state":{"identifier":"allow-permission-state","description":"Enables the permission_state command without any pre-configured scope.","commands":{"allow":["permission_state"],"deny":[]}},"allow-register-action-types":{"identifier":"allow-register-action-types","description":"Enables the register_action_types command without any pre-configured scope.","commands":{"allow":["register_action_types"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-active":{"identifier":"allow-remove-active","description":"Enables the remove_active command without any pre-configured scope.","commands":{"allow":["remove_active"],"deny":[]}},"allow-request-permission":{"identifier":"allow-request-permission","description":"Enables the request_permission command without any pre-configured scope.","commands":{"allow":["request_permission"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"deny-batch":{"identifier":"deny-batch","description":"Denies the batch command without any pre-configured scope.","commands":{"allow":[],"deny":["batch"]}},"deny-cancel":{"identifier":"deny-cancel","description":"Denies the cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel"]}},"deny-check-permissions":{"identifier":"deny-check-permissions","description":"Denies the check_permissions command without any pre-configured scope.","commands":{"allow":[],"deny":["check_permissions"]}},"deny-create-channel":{"identifier":"deny-create-channel","description":"Denies the create_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["create_channel"]}},"deny-delete-channel":{"identifier":"deny-delete-channel","description":"Denies the delete_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_channel"]}},"deny-get-active":{"identifier":"deny-get-active","description":"Denies the get_active command without any pre-configured scope.","commands":{"allow":[],"deny":["get_active"]}},"deny-get-pending":{"identifier":"deny-get-pending","description":"Denies the get_pending command without any pre-configured scope.","commands":{"allow":[],"deny":["get_pending"]}},"deny-is-permission-granted":{"identifier":"deny-is-permission-granted","description":"Denies the is_permission_granted command without any pre-configured scope.","commands":{"allow":[],"deny":["is_permission_granted"]}},"deny-list-channels":{"identifier":"deny-list-channels","description":"Denies the list_channels command without any pre-configured scope.","commands":{"allow":[],"deny":["list_channels"]}},"deny-notify":{"identifier":"deny-notify","description":"Denies the notify command without any pre-configured scope.","commands":{"allow":[],"deny":["notify"]}},"deny-permission-state":{"identifier":"deny-permission-state","description":"Denies the permission_state command without any pre-configured scope.","commands":{"allow":[],"deny":["permission_state"]}},"deny-register-action-types":{"identifier":"deny-register-action-types","description":"Denies the register_action_types command without any pre-configured scope.","commands":{"allow":[],"deny":["register_action_types"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-active":{"identifier":"deny-remove-active","description":"Denies the remove_active command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_active"]}},"deny-request-permission":{"identifier":"deny-request-permission","description":"Denies the request_permission command without any pre-configured scope.","commands":{"allow":[],"deny":["request_permission"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}}},"permission_sets":{},"global_scope_schema":null},"process":{"default_permission":{"identifier":"default","description":"This permission set configures which\nprocess features are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n","permissions":["allow-exit","allow-restart"]},"permissions":{"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-restart":{"identifier":"allow-restart","description":"Enables the restart command without any pre-configured scope.","commands":{"allow":["restart"],"deny":[]}},"deny-exit":{"identifier":"deny-exit","description":"Denies the exit command without any pre-configured scope.","commands":{"allow":[],"deny":["exit"]}},"deny-restart":{"identifier":"deny-restart","description":"Denies the restart command without any pre-configured scope.","commands":{"allow":[],"deny":["restart"]}}},"permission_sets":{},"global_scope_schema":null},"store":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-load","allow-get-store","allow-set","allow-get","allow-has","allow-delete","allow-clear","allow-reset","allow-keys","allow-values","allow-entries","allow-length","allow-reload","allow-save"]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-delete":{"identifier":"allow-delete","description":"Enables the delete command without any pre-configured scope.","commands":{"allow":["delete"],"deny":[]}},"allow-entries":{"identifier":"allow-entries","description":"Enables the entries command without any pre-configured scope.","commands":{"allow":["entries"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-get-store":{"identifier":"allow-get-store","description":"Enables the get_store command without any pre-configured scope.","commands":{"allow":["get_store"],"deny":[]}},"allow-has":{"identifier":"allow-has","description":"Enables the has command without any pre-configured scope.","commands":{"allow":["has"],"deny":[]}},"allow-keys":{"identifier":"allow-keys","description":"Enables the keys command without any pre-configured scope.","commands":{"allow":["keys"],"deny":[]}},"allow-length":{"identifier":"allow-length","description":"Enables the length command without any pre-configured scope.","commands":{"allow":["length"],"deny":[]}},"allow-load":{"identifier":"allow-load","description":"Enables the load command without any pre-configured scope.","commands":{"allow":["load"],"deny":[]}},"allow-reload":{"identifier":"allow-reload","description":"Enables the reload command without any pre-configured scope.","commands":{"allow":["reload"],"deny":[]}},"allow-reset":{"identifier":"allow-reset","description":"Enables the reset command without any pre-configured scope.","commands":{"allow":["reset"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"allow-set":{"identifier":"allow-set","description":"Enables the set command without any pre-configured scope.","commands":{"allow":["set"],"deny":[]}},"allow-values":{"identifier":"allow-values","description":"Enables the values command without any pre-configured scope.","commands":{"allow":["values"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-delete":{"identifier":"deny-delete","description":"Denies the delete command without any pre-configured scope.","commands":{"allow":[],"deny":["delete"]}},"deny-entries":{"identifier":"deny-entries","description":"Denies the entries command without any pre-configured scope.","commands":{"allow":[],"deny":["entries"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-get-store":{"identifier":"deny-get-store","description":"Denies the get_store command without any pre-configured scope.","commands":{"allow":[],"deny":["get_store"]}},"deny-has":{"identifier":"deny-has","description":"Denies the has command without any pre-configured scope.","commands":{"allow":[],"deny":["has"]}},"deny-keys":{"identifier":"deny-keys","description":"Denies the keys command without any pre-configured scope.","commands":{"allow":[],"deny":["keys"]}},"deny-length":{"identifier":"deny-length","description":"Denies the length command without any pre-configured scope.","commands":{"allow":[],"deny":["length"]}},"deny-load":{"identifier":"deny-load","description":"Denies the load command without any pre-configured scope.","commands":{"allow":[],"deny":["load"]}},"deny-reload":{"identifier":"deny-reload","description":"Denies the reload command without any pre-configured scope.","commands":{"allow":[],"deny":["reload"]}},"deny-reset":{"identifier":"deny-reset","description":"Denies the reset command without any pre-configured scope.","commands":{"allow":[],"deny":["reset"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}},"deny-set":{"identifier":"deny-set","description":"Denies the set command without any pre-configured scope.","commands":{"allow":[],"deny":["set"]}},"deny-values":{"identifier":"deny-values","description":"Denies the values command without any pre-configured scope.","commands":{"allow":[],"deny":["values"]}}},"permission_sets":{},"global_scope_schema":null},"updater":{"default_permission":{"identifier":"default","description":"This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n","permissions":["allow-check","allow-download","allow-install","allow-download-and-install"]},"permissions":{"allow-check":{"identifier":"allow-check","description":"Enables the check command without any pre-configured scope.","commands":{"allow":["check"],"deny":[]}},"allow-download":{"identifier":"allow-download","description":"Enables the download command without any pre-configured scope.","commands":{"allow":["download"],"deny":[]}},"allow-download-and-install":{"identifier":"allow-download-and-install","description":"Enables the download_and_install command without any pre-configured scope.","commands":{"allow":["download_and_install"],"deny":[]}},"allow-install":{"identifier":"allow-install","description":"Enables the install command without any pre-configured scope.","commands":{"allow":["install"],"deny":[]}},"deny-check":{"identifier":"deny-check","description":"Denies the check command without any pre-configured scope.","commands":{"allow":[],"deny":["check"]}},"deny-download":{"identifier":"deny-download","description":"Denies the download command without any pre-configured scope.","commands":{"allow":[],"deny":["download"]}},"deny-download-and-install":{"identifier":"deny-download-and-install","description":"Denies the download_and_install command without any pre-configured scope.","commands":{"allow":[],"deny":["download_and_install"]}},"deny-install":{"identifier":"deny-install","description":"Denies the install command without any pre-configured scope.","commands":{"allow":[],"deny":["install"]}}},"permission_sets":{},"global_scope_schema":null},"upload":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the upload plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-upload","allow-download"]},"permissions":{"allow-download":{"identifier":"allow-download","description":"Enables the download command without any pre-configured scope.","commands":{"allow":["download"],"deny":[]}},"allow-upload":{"identifier":"allow-upload","description":"Enables the upload command without any pre-configured scope.","commands":{"allow":["upload"],"deny":[]}},"deny-download":{"identifier":"deny-download","description":"Denies the download command without any pre-configured scope.","commands":{"allow":[],"deny":["download"]}},"deny-upload":{"identifier":"deny-upload","description":"Denies the upload command without any pre-configured scope.","commands":{"allow":[],"deny":["upload"]}}},"permission_sets":{},"global_scope_schema":null},"window-state":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the window state plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-filename","allow-restore-state","allow-save-window-state"]},"permissions":{"allow-filename":{"identifier":"allow-filename","description":"Enables the filename command without any pre-configured scope.","commands":{"allow":["filename"],"deny":[]}},"allow-restore-state":{"identifier":"allow-restore-state","description":"Enables the restore_state command without any pre-configured scope.","commands":{"allow":["restore_state"],"deny":[]}},"allow-save-window-state":{"identifier":"allow-save-window-state","description":"Enables the save_window_state command without any pre-configured scope.","commands":{"allow":["save_window_state"],"deny":[]}},"deny-filename":{"identifier":"deny-filename","description":"Denies the filename command without any pre-configured scope.","commands":{"allow":[],"deny":["filename"]}},"deny-restore-state":{"identifier":"deny-restore-state","description":"Denies the restore_state command without any pre-configured scope.","commands":{"allow":[],"deny":["restore_state"]}},"deny-save-window-state":{"identifier":"deny-save-window-state","description":"Denies the save_window_state command without any pre-configured scope.","commands":{"allow":[],"deny":["save_window_state"]}}},"permission_sets":{},"global_scope_schema":null}} \ No newline at end of file +{"clipboard-manager":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n","permissions":[]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-read-image":{"identifier":"allow-read-image","description":"Enables the read_image command without any pre-configured scope.","commands":{"allow":["read_image"],"deny":[]}},"allow-read-text":{"identifier":"allow-read-text","description":"Enables the read_text command without any pre-configured scope.","commands":{"allow":["read_text"],"deny":[]}},"allow-write-html":{"identifier":"allow-write-html","description":"Enables the write_html command without any pre-configured scope.","commands":{"allow":["write_html"],"deny":[]}},"allow-write-image":{"identifier":"allow-write-image","description":"Enables the write_image command without any pre-configured scope.","commands":{"allow":["write_image"],"deny":[]}},"allow-write-text":{"identifier":"allow-write-text","description":"Enables the write_text command without any pre-configured scope.","commands":{"allow":["write_text"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-read-image":{"identifier":"deny-read-image","description":"Denies the read_image command without any pre-configured scope.","commands":{"allow":[],"deny":["read_image"]}},"deny-read-text":{"identifier":"deny-read-text","description":"Denies the read_text command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text"]}},"deny-write-html":{"identifier":"deny-write-html","description":"Denies the write_html command without any pre-configured scope.","commands":{"allow":[],"deny":["write_html"]}},"deny-write-image":{"identifier":"deny-write-image","description":"Denies the write_image command without any pre-configured scope.","commands":{"allow":[],"deny":["write_image"]}},"deny-write-text":{"identifier":"deny-write-text","description":"Denies the write_text command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set.","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version","allow-identifier","allow-bundle-type","allow-register-listener","allow-remove-listener"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-bundle-type":{"identifier":"allow-bundle-type","description":"Enables the bundle_type command without any pre-configured scope.","commands":{"allow":["bundle_type"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-fetch-data-store-identifiers":{"identifier":"allow-fetch-data-store-identifiers","description":"Enables the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":["fetch_data_store_identifiers"],"deny":[]}},"allow-identifier":{"identifier":"allow-identifier","description":"Enables the identifier command without any pre-configured scope.","commands":{"allow":["identifier"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-data-store":{"identifier":"allow-remove-data-store","description":"Enables the remove_data_store command without any pre-configured scope.","commands":{"allow":["remove_data_store"],"deny":[]}},"allow-remove-listener":{"identifier":"allow-remove-listener","description":"Enables the remove_listener command without any pre-configured scope.","commands":{"allow":["remove_listener"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-set-dock-visibility":{"identifier":"allow-set-dock-visibility","description":"Enables the set_dock_visibility command without any pre-configured scope.","commands":{"allow":["set_dock_visibility"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-bundle-type":{"identifier":"deny-bundle-type","description":"Denies the bundle_type command without any pre-configured scope.","commands":{"allow":[],"deny":["bundle_type"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-fetch-data-store-identifiers":{"identifier":"deny-fetch-data-store-identifiers","description":"Denies the fetch_data_store_identifiers command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_data_store_identifiers"]}},"deny-identifier":{"identifier":"deny-identifier","description":"Denies the identifier command without any pre-configured scope.","commands":{"allow":[],"deny":["identifier"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-data-store":{"identifier":"deny-remove-data-store","description":"Denies the remove_data_store command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_data_store"]}},"deny-remove-listener":{"identifier":"deny-remove-listener","description":"Denies the remove_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_listener"]}},"deny-set-app-theme":{"identifier":"deny-set-app-theme","description":"Denies the set_app_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_app_theme"]}},"deny-set-dock-visibility":{"identifier":"deny-set-dock-visibility","description":"Denies the set_dock_visibility command without any pre-configured scope.","commands":{"allow":[],"deny":["set_dock_visibility"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-listen","allow-unlisten","allow-emit","allow-emit-to"]},"permissions":{"allow-emit":{"identifier":"allow-emit","description":"Enables the emit command without any pre-configured scope.","commands":{"allow":["emit"],"deny":[]}},"allow-emit-to":{"identifier":"allow-emit-to","description":"Enables the emit_to command without any pre-configured scope.","commands":{"allow":["emit_to"],"deny":[]}},"allow-listen":{"identifier":"allow-listen","description":"Enables the listen command without any pre-configured scope.","commands":{"allow":["listen"],"deny":[]}},"allow-unlisten":{"identifier":"allow-unlisten","description":"Enables the unlisten command without any pre-configured scope.","commands":{"allow":["unlisten"],"deny":[]}},"deny-emit":{"identifier":"deny-emit","description":"Denies the emit command without any pre-configured scope.","commands":{"allow":[],"deny":["emit"]}},"deny-emit-to":{"identifier":"deny-emit-to","description":"Denies the emit_to command without any pre-configured scope.","commands":{"allow":[],"deny":["emit_to"]}},"deny-listen":{"identifier":"deny-listen","description":"Denies the listen command without any pre-configured scope.","commands":{"allow":[],"deny":["listen"]}},"deny-unlisten":{"identifier":"deny-unlisten","description":"Denies the unlisten command without any pre-configured scope.","commands":{"allow":[],"deny":["unlisten"]}}},"permission_sets":{},"global_scope_schema":null},"core:image":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-from-bytes","allow-from-path","allow-rgba","allow-size"]},"permissions":{"allow-from-bytes":{"identifier":"allow-from-bytes","description":"Enables the from_bytes command without any pre-configured scope.","commands":{"allow":["from_bytes"],"deny":[]}},"allow-from-path":{"identifier":"allow-from-path","description":"Enables the from_path command without any pre-configured scope.","commands":{"allow":["from_path"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-rgba":{"identifier":"allow-rgba","description":"Enables the rgba command without any pre-configured scope.","commands":{"allow":["rgba"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"deny-from-bytes":{"identifier":"deny-from-bytes","description":"Denies the from_bytes command without any pre-configured scope.","commands":{"allow":[],"deny":["from_bytes"]}},"deny-from-path":{"identifier":"deny-from-path","description":"Denies the from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["from_path"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-rgba":{"identifier":"deny-rgba","description":"Denies the rgba command without any pre-configured scope.","commands":{"allow":[],"deny":["rgba"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}}},"permission_sets":{},"global_scope_schema":null},"core:menu":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-append","allow-prepend","allow-insert","allow-remove","allow-remove-at","allow-items","allow-get","allow-popup","allow-create-default","allow-set-as-app-menu","allow-set-as-window-menu","allow-text","allow-set-text","allow-is-enabled","allow-set-enabled","allow-set-accelerator","allow-set-as-windows-menu-for-nsapp","allow-set-as-help-menu-for-nsapp","allow-is-checked","allow-set-checked","allow-set-icon"]},"permissions":{"allow-append":{"identifier":"allow-append","description":"Enables the append command without any pre-configured scope.","commands":{"allow":["append"],"deny":[]}},"allow-create-default":{"identifier":"allow-create-default","description":"Enables the create_default command without any pre-configured scope.","commands":{"allow":["create_default"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-insert":{"identifier":"allow-insert","description":"Enables the insert command without any pre-configured scope.","commands":{"allow":["insert"],"deny":[]}},"allow-is-checked":{"identifier":"allow-is-checked","description":"Enables the is_checked command without any pre-configured scope.","commands":{"allow":["is_checked"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-items":{"identifier":"allow-items","description":"Enables the items command without any pre-configured scope.","commands":{"allow":["items"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-popup":{"identifier":"allow-popup","description":"Enables the popup command without any pre-configured scope.","commands":{"allow":["popup"],"deny":[]}},"allow-prepend":{"identifier":"allow-prepend","description":"Enables the prepend command without any pre-configured scope.","commands":{"allow":["prepend"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-remove-at":{"identifier":"allow-remove-at","description":"Enables the remove_at command without any pre-configured scope.","commands":{"allow":["remove_at"],"deny":[]}},"allow-set-accelerator":{"identifier":"allow-set-accelerator","description":"Enables the set_accelerator command without any pre-configured scope.","commands":{"allow":["set_accelerator"],"deny":[]}},"allow-set-as-app-menu":{"identifier":"allow-set-as-app-menu","description":"Enables the set_as_app_menu command without any pre-configured scope.","commands":{"allow":["set_as_app_menu"],"deny":[]}},"allow-set-as-help-menu-for-nsapp":{"identifier":"allow-set-as-help-menu-for-nsapp","description":"Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_help_menu_for_nsapp"],"deny":[]}},"allow-set-as-window-menu":{"identifier":"allow-set-as-window-menu","description":"Enables the set_as_window_menu command without any pre-configured scope.","commands":{"allow":["set_as_window_menu"],"deny":[]}},"allow-set-as-windows-menu-for-nsapp":{"identifier":"allow-set-as-windows-menu-for-nsapp","description":"Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_windows_menu_for_nsapp"],"deny":[]}},"allow-set-checked":{"identifier":"allow-set-checked","description":"Enables the set_checked command without any pre-configured scope.","commands":{"allow":["set_checked"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-text":{"identifier":"allow-set-text","description":"Enables the set_text command without any pre-configured scope.","commands":{"allow":["set_text"],"deny":[]}},"allow-text":{"identifier":"allow-text","description":"Enables the text command without any pre-configured scope.","commands":{"allow":["text"],"deny":[]}},"deny-append":{"identifier":"deny-append","description":"Denies the append command without any pre-configured scope.","commands":{"allow":[],"deny":["append"]}},"deny-create-default":{"identifier":"deny-create-default","description":"Denies the create_default command without any pre-configured scope.","commands":{"allow":[],"deny":["create_default"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-insert":{"identifier":"deny-insert","description":"Denies the insert command without any pre-configured scope.","commands":{"allow":[],"deny":["insert"]}},"deny-is-checked":{"identifier":"deny-is-checked","description":"Denies the is_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["is_checked"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-items":{"identifier":"deny-items","description":"Denies the items command without any pre-configured scope.","commands":{"allow":[],"deny":["items"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-popup":{"identifier":"deny-popup","description":"Denies the popup command without any pre-configured scope.","commands":{"allow":[],"deny":["popup"]}},"deny-prepend":{"identifier":"deny-prepend","description":"Denies the prepend command without any pre-configured scope.","commands":{"allow":[],"deny":["prepend"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-remove-at":{"identifier":"deny-remove-at","description":"Denies the remove_at command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_at"]}},"deny-set-accelerator":{"identifier":"deny-set-accelerator","description":"Denies the set_accelerator command without any pre-configured scope.","commands":{"allow":[],"deny":["set_accelerator"]}},"deny-set-as-app-menu":{"identifier":"deny-set-as-app-menu","description":"Denies the set_as_app_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_app_menu"]}},"deny-set-as-help-menu-for-nsapp":{"identifier":"deny-set-as-help-menu-for-nsapp","description":"Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_help_menu_for_nsapp"]}},"deny-set-as-window-menu":{"identifier":"deny-set-as-window-menu","description":"Denies the set_as_window_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_window_menu"]}},"deny-set-as-windows-menu-for-nsapp":{"identifier":"deny-set-as-windows-menu-for-nsapp","description":"Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_windows_menu_for_nsapp"]}},"deny-set-checked":{"identifier":"deny-set-checked","description":"Denies the set_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["set_checked"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-text":{"identifier":"deny-set-text","description":"Denies the set_text command without any pre-configured scope.","commands":{"allow":[],"deny":["set_text"]}},"deny-text":{"identifier":"deny-text","description":"Denies the text command without any pre-configured scope.","commands":{"allow":[],"deny":["text"]}}},"permission_sets":{},"global_scope_schema":null},"core:path":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-resolve-directory","allow-resolve","allow-normalize","allow-join","allow-dirname","allow-extname","allow-basename","allow-is-absolute"]},"permissions":{"allow-basename":{"identifier":"allow-basename","description":"Enables the basename command without any pre-configured scope.","commands":{"allow":["basename"],"deny":[]}},"allow-dirname":{"identifier":"allow-dirname","description":"Enables the dirname command without any pre-configured scope.","commands":{"allow":["dirname"],"deny":[]}},"allow-extname":{"identifier":"allow-extname","description":"Enables the extname command without any pre-configured scope.","commands":{"allow":["extname"],"deny":[]}},"allow-is-absolute":{"identifier":"allow-is-absolute","description":"Enables the is_absolute command without any pre-configured scope.","commands":{"allow":["is_absolute"],"deny":[]}},"allow-join":{"identifier":"allow-join","description":"Enables the join command without any pre-configured scope.","commands":{"allow":["join"],"deny":[]}},"allow-normalize":{"identifier":"allow-normalize","description":"Enables the normalize command without any pre-configured scope.","commands":{"allow":["normalize"],"deny":[]}},"allow-resolve":{"identifier":"allow-resolve","description":"Enables the resolve command without any pre-configured scope.","commands":{"allow":["resolve"],"deny":[]}},"allow-resolve-directory":{"identifier":"allow-resolve-directory","description":"Enables the resolve_directory command without any pre-configured scope.","commands":{"allow":["resolve_directory"],"deny":[]}},"deny-basename":{"identifier":"deny-basename","description":"Denies the basename command without any pre-configured scope.","commands":{"allow":[],"deny":["basename"]}},"deny-dirname":{"identifier":"deny-dirname","description":"Denies the dirname command without any pre-configured scope.","commands":{"allow":[],"deny":["dirname"]}},"deny-extname":{"identifier":"deny-extname","description":"Denies the extname command without any pre-configured scope.","commands":{"allow":[],"deny":["extname"]}},"deny-is-absolute":{"identifier":"deny-is-absolute","description":"Denies the is_absolute command without any pre-configured scope.","commands":{"allow":[],"deny":["is_absolute"]}},"deny-join":{"identifier":"deny-join","description":"Denies the join command without any pre-configured scope.","commands":{"allow":[],"deny":["join"]}},"deny-normalize":{"identifier":"deny-normalize","description":"Denies the normalize command without any pre-configured scope.","commands":{"allow":[],"deny":["normalize"]}},"deny-resolve":{"identifier":"deny-resolve","description":"Denies the resolve command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve"]}},"deny-resolve-directory":{"identifier":"deny-resolve-directory","description":"Denies the resolve_directory command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve_directory"]}}},"permission_sets":{},"global_scope_schema":null},"core:resources":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-close"]},"permissions":{"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}}},"permission_sets":{},"global_scope_schema":null},"core:tray":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin, which enables all commands.","permissions":["allow-new","allow-get-by-id","allow-remove-by-id","allow-set-icon","allow-set-menu","allow-set-tooltip","allow-set-title","allow-set-visible","allow-set-temp-dir-path","allow-set-icon-as-template","allow-set-show-menu-on-left-click"]},"permissions":{"allow-get-by-id":{"identifier":"allow-get-by-id","description":"Enables the get_by_id command without any pre-configured scope.","commands":{"allow":["get_by_id"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-remove-by-id":{"identifier":"allow-remove-by-id","description":"Enables the remove_by_id command without any pre-configured scope.","commands":{"allow":["remove_by_id"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-icon-as-template":{"identifier":"allow-set-icon-as-template","description":"Enables the set_icon_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_as_template"],"deny":[]}},"allow-set-menu":{"identifier":"allow-set-menu","description":"Enables the set_menu command without any pre-configured scope.","commands":{"allow":["set_menu"],"deny":[]}},"allow-set-show-menu-on-left-click":{"identifier":"allow-set-show-menu-on-left-click","description":"Enables the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":["set_show_menu_on_left_click"],"deny":[]}},"allow-set-temp-dir-path":{"identifier":"allow-set-temp-dir-path","description":"Enables the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":["set_temp_dir_path"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-tooltip":{"identifier":"allow-set-tooltip","description":"Enables the set_tooltip command without any pre-configured scope.","commands":{"allow":["set_tooltip"],"deny":[]}},"allow-set-visible":{"identifier":"allow-set-visible","description":"Enables the set_visible command without any pre-configured scope.","commands":{"allow":["set_visible"],"deny":[]}},"deny-get-by-id":{"identifier":"deny-get-by-id","description":"Denies the get_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["get_by_id"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-remove-by-id":{"identifier":"deny-remove-by-id","description":"Denies the remove_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_by_id"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-icon-as-template":{"identifier":"deny-set-icon-as-template","description":"Denies the set_icon_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_as_template"]}},"deny-set-menu":{"identifier":"deny-set-menu","description":"Denies the set_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_menu"]}},"deny-set-show-menu-on-left-click":{"identifier":"deny-set-show-menu-on-left-click","description":"Denies the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":[],"deny":["set_show_menu_on_left_click"]}},"deny-set-temp-dir-path":{"identifier":"deny-set-temp-dir-path","description":"Denies the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":[],"deny":["set_temp_dir_path"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-tooltip":{"identifier":"deny-set-tooltip","description":"Denies the set_tooltip command without any pre-configured scope.","commands":{"allow":[],"deny":["set_tooltip"]}},"deny-set-visible":{"identifier":"deny-set-visible","description":"Denies the set_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible"]}}},"permission_sets":{},"global_scope_schema":null},"core:webview":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-webviews","allow-webview-position","allow-webview-size","allow-internal-toggle-devtools"]},"permissions":{"allow-clear-all-browsing-data":{"identifier":"allow-clear-all-browsing-data","description":"Enables the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":["clear_all_browsing_data"],"deny":[]}},"allow-create-webview":{"identifier":"allow-create-webview","description":"Enables the create_webview command without any pre-configured scope.","commands":{"allow":["create_webview"],"deny":[]}},"allow-create-webview-window":{"identifier":"allow-create-webview-window","description":"Enables the create_webview_window command without any pre-configured scope.","commands":{"allow":["create_webview_window"],"deny":[]}},"allow-get-all-webviews":{"identifier":"allow-get-all-webviews","description":"Enables the get_all_webviews command without any pre-configured scope.","commands":{"allow":["get_all_webviews"],"deny":[]}},"allow-internal-toggle-devtools":{"identifier":"allow-internal-toggle-devtools","description":"Enables the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":["internal_toggle_devtools"],"deny":[]}},"allow-print":{"identifier":"allow-print","description":"Enables the print command without any pre-configured scope.","commands":{"allow":["print"],"deny":[]}},"allow-reparent":{"identifier":"allow-reparent","description":"Enables the reparent command without any pre-configured scope.","commands":{"allow":["reparent"],"deny":[]}},"allow-set-webview-auto-resize":{"identifier":"allow-set-webview-auto-resize","description":"Enables the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":["set_webview_auto_resize"],"deny":[]}},"allow-set-webview-background-color":{"identifier":"allow-set-webview-background-color","description":"Enables the set_webview_background_color command without any pre-configured scope.","commands":{"allow":["set_webview_background_color"],"deny":[]}},"allow-set-webview-focus":{"identifier":"allow-set-webview-focus","description":"Enables the set_webview_focus command without any pre-configured scope.","commands":{"allow":["set_webview_focus"],"deny":[]}},"allow-set-webview-position":{"identifier":"allow-set-webview-position","description":"Enables the set_webview_position command without any pre-configured scope.","commands":{"allow":["set_webview_position"],"deny":[]}},"allow-set-webview-size":{"identifier":"allow-set-webview-size","description":"Enables the set_webview_size command without any pre-configured scope.","commands":{"allow":["set_webview_size"],"deny":[]}},"allow-set-webview-zoom":{"identifier":"allow-set-webview-zoom","description":"Enables the set_webview_zoom command without any pre-configured scope.","commands":{"allow":["set_webview_zoom"],"deny":[]}},"allow-webview-close":{"identifier":"allow-webview-close","description":"Enables the webview_close command without any pre-configured scope.","commands":{"allow":["webview_close"],"deny":[]}},"allow-webview-hide":{"identifier":"allow-webview-hide","description":"Enables the webview_hide command without any pre-configured scope.","commands":{"allow":["webview_hide"],"deny":[]}},"allow-webview-position":{"identifier":"allow-webview-position","description":"Enables the webview_position command without any pre-configured scope.","commands":{"allow":["webview_position"],"deny":[]}},"allow-webview-show":{"identifier":"allow-webview-show","description":"Enables the webview_show command without any pre-configured scope.","commands":{"allow":["webview_show"],"deny":[]}},"allow-webview-size":{"identifier":"allow-webview-size","description":"Enables the webview_size command without any pre-configured scope.","commands":{"allow":["webview_size"],"deny":[]}},"deny-clear-all-browsing-data":{"identifier":"deny-clear-all-browsing-data","description":"Denies the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_all_browsing_data"]}},"deny-create-webview":{"identifier":"deny-create-webview","description":"Denies the create_webview command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview"]}},"deny-create-webview-window":{"identifier":"deny-create-webview-window","description":"Denies the create_webview_window command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview_window"]}},"deny-get-all-webviews":{"identifier":"deny-get-all-webviews","description":"Denies the get_all_webviews command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_webviews"]}},"deny-internal-toggle-devtools":{"identifier":"deny-internal-toggle-devtools","description":"Denies the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_devtools"]}},"deny-print":{"identifier":"deny-print","description":"Denies the print command without any pre-configured scope.","commands":{"allow":[],"deny":["print"]}},"deny-reparent":{"identifier":"deny-reparent","description":"Denies the reparent command without any pre-configured scope.","commands":{"allow":[],"deny":["reparent"]}},"deny-set-webview-auto-resize":{"identifier":"deny-set-webview-auto-resize","description":"Denies the set_webview_auto_resize command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_auto_resize"]}},"deny-set-webview-background-color":{"identifier":"deny-set-webview-background-color","description":"Denies the set_webview_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_background_color"]}},"deny-set-webview-focus":{"identifier":"deny-set-webview-focus","description":"Denies the set_webview_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_focus"]}},"deny-set-webview-position":{"identifier":"deny-set-webview-position","description":"Denies the set_webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_position"]}},"deny-set-webview-size":{"identifier":"deny-set-webview-size","description":"Denies the set_webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_size"]}},"deny-set-webview-zoom":{"identifier":"deny-set-webview-zoom","description":"Denies the set_webview_zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_zoom"]}},"deny-webview-close":{"identifier":"deny-webview-close","description":"Denies the webview_close command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_close"]}},"deny-webview-hide":{"identifier":"deny-webview-hide","description":"Denies the webview_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_hide"]}},"deny-webview-position":{"identifier":"deny-webview-position","description":"Denies the webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_position"]}},"deny-webview-show":{"identifier":"deny-webview-show","description":"Denies the webview_show command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_show"]}},"deny-webview-size":{"identifier":"deny-webview-size","description":"Denies the webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_size"]}}},"permission_sets":{},"global_scope_schema":null},"core:window":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-windows","allow-scale-factor","allow-inner-position","allow-outer-position","allow-inner-size","allow-outer-size","allow-is-fullscreen","allow-is-minimized","allow-is-maximized","allow-is-focused","allow-is-decorated","allow-is-resizable","allow-is-maximizable","allow-is-minimizable","allow-is-closable","allow-is-visible","allow-is-enabled","allow-title","allow-current-monitor","allow-primary-monitor","allow-monitor-from-point","allow-available-monitors","allow-cursor-position","allow-theme","allow-is-always-on-top","allow-internal-toggle-maximize"]},"permissions":{"allow-available-monitors":{"identifier":"allow-available-monitors","description":"Enables the available_monitors command without any pre-configured scope.","commands":{"allow":["available_monitors"],"deny":[]}},"allow-center":{"identifier":"allow-center","description":"Enables the center command without any pre-configured scope.","commands":{"allow":["center"],"deny":[]}},"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-current-monitor":{"identifier":"allow-current-monitor","description":"Enables the current_monitor command without any pre-configured scope.","commands":{"allow":["current_monitor"],"deny":[]}},"allow-cursor-position":{"identifier":"allow-cursor-position","description":"Enables the cursor_position command without any pre-configured scope.","commands":{"allow":["cursor_position"],"deny":[]}},"allow-destroy":{"identifier":"allow-destroy","description":"Enables the destroy command without any pre-configured scope.","commands":{"allow":["destroy"],"deny":[]}},"allow-get-all-windows":{"identifier":"allow-get-all-windows","description":"Enables the get_all_windows command without any pre-configured scope.","commands":{"allow":["get_all_windows"],"deny":[]}},"allow-hide":{"identifier":"allow-hide","description":"Enables the hide command without any pre-configured scope.","commands":{"allow":["hide"],"deny":[]}},"allow-inner-position":{"identifier":"allow-inner-position","description":"Enables the inner_position command without any pre-configured scope.","commands":{"allow":["inner_position"],"deny":[]}},"allow-inner-size":{"identifier":"allow-inner-size","description":"Enables the inner_size command without any pre-configured scope.","commands":{"allow":["inner_size"],"deny":[]}},"allow-internal-toggle-maximize":{"identifier":"allow-internal-toggle-maximize","description":"Enables the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":["internal_toggle_maximize"],"deny":[]}},"allow-is-always-on-top":{"identifier":"allow-is-always-on-top","description":"Enables the is_always_on_top command without any pre-configured scope.","commands":{"allow":["is_always_on_top"],"deny":[]}},"allow-is-closable":{"identifier":"allow-is-closable","description":"Enables the is_closable command without any pre-configured scope.","commands":{"allow":["is_closable"],"deny":[]}},"allow-is-decorated":{"identifier":"allow-is-decorated","description":"Enables the is_decorated command without any pre-configured scope.","commands":{"allow":["is_decorated"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-is-focused":{"identifier":"allow-is-focused","description":"Enables the is_focused command without any pre-configured scope.","commands":{"allow":["is_focused"],"deny":[]}},"allow-is-fullscreen":{"identifier":"allow-is-fullscreen","description":"Enables the is_fullscreen command without any pre-configured scope.","commands":{"allow":["is_fullscreen"],"deny":[]}},"allow-is-maximizable":{"identifier":"allow-is-maximizable","description":"Enables the is_maximizable command without any pre-configured scope.","commands":{"allow":["is_maximizable"],"deny":[]}},"allow-is-maximized":{"identifier":"allow-is-maximized","description":"Enables the is_maximized command without any pre-configured scope.","commands":{"allow":["is_maximized"],"deny":[]}},"allow-is-minimizable":{"identifier":"allow-is-minimizable","description":"Enables the is_minimizable command without any pre-configured scope.","commands":{"allow":["is_minimizable"],"deny":[]}},"allow-is-minimized":{"identifier":"allow-is-minimized","description":"Enables the is_minimized command without any pre-configured scope.","commands":{"allow":["is_minimized"],"deny":[]}},"allow-is-resizable":{"identifier":"allow-is-resizable","description":"Enables the is_resizable command without any pre-configured scope.","commands":{"allow":["is_resizable"],"deny":[]}},"allow-is-visible":{"identifier":"allow-is-visible","description":"Enables the is_visible command without any pre-configured scope.","commands":{"allow":["is_visible"],"deny":[]}},"allow-maximize":{"identifier":"allow-maximize","description":"Enables the maximize command without any pre-configured scope.","commands":{"allow":["maximize"],"deny":[]}},"allow-minimize":{"identifier":"allow-minimize","description":"Enables the minimize command without any pre-configured scope.","commands":{"allow":["minimize"],"deny":[]}},"allow-monitor-from-point":{"identifier":"allow-monitor-from-point","description":"Enables the monitor_from_point command without any pre-configured scope.","commands":{"allow":["monitor_from_point"],"deny":[]}},"allow-outer-position":{"identifier":"allow-outer-position","description":"Enables the outer_position command without any pre-configured scope.","commands":{"allow":["outer_position"],"deny":[]}},"allow-outer-size":{"identifier":"allow-outer-size","description":"Enables the outer_size command without any pre-configured scope.","commands":{"allow":["outer_size"],"deny":[]}},"allow-primary-monitor":{"identifier":"allow-primary-monitor","description":"Enables the primary_monitor command without any pre-configured scope.","commands":{"allow":["primary_monitor"],"deny":[]}},"allow-request-user-attention":{"identifier":"allow-request-user-attention","description":"Enables the request_user_attention command without any pre-configured scope.","commands":{"allow":["request_user_attention"],"deny":[]}},"allow-scale-factor":{"identifier":"allow-scale-factor","description":"Enables the scale_factor command without any pre-configured scope.","commands":{"allow":["scale_factor"],"deny":[]}},"allow-set-always-on-bottom":{"identifier":"allow-set-always-on-bottom","description":"Enables the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":["set_always_on_bottom"],"deny":[]}},"allow-set-always-on-top":{"identifier":"allow-set-always-on-top","description":"Enables the set_always_on_top command without any pre-configured scope.","commands":{"allow":["set_always_on_top"],"deny":[]}},"allow-set-background-color":{"identifier":"allow-set-background-color","description":"Enables the set_background_color command without any pre-configured scope.","commands":{"allow":["set_background_color"],"deny":[]}},"allow-set-badge-count":{"identifier":"allow-set-badge-count","description":"Enables the set_badge_count command without any pre-configured scope.","commands":{"allow":["set_badge_count"],"deny":[]}},"allow-set-badge-label":{"identifier":"allow-set-badge-label","description":"Enables the set_badge_label command without any pre-configured scope.","commands":{"allow":["set_badge_label"],"deny":[]}},"allow-set-closable":{"identifier":"allow-set-closable","description":"Enables the set_closable command without any pre-configured scope.","commands":{"allow":["set_closable"],"deny":[]}},"allow-set-content-protected":{"identifier":"allow-set-content-protected","description":"Enables the set_content_protected command without any pre-configured scope.","commands":{"allow":["set_content_protected"],"deny":[]}},"allow-set-cursor-grab":{"identifier":"allow-set-cursor-grab","description":"Enables the set_cursor_grab command without any pre-configured scope.","commands":{"allow":["set_cursor_grab"],"deny":[]}},"allow-set-cursor-icon":{"identifier":"allow-set-cursor-icon","description":"Enables the set_cursor_icon command without any pre-configured scope.","commands":{"allow":["set_cursor_icon"],"deny":[]}},"allow-set-cursor-position":{"identifier":"allow-set-cursor-position","description":"Enables the set_cursor_position command without any pre-configured scope.","commands":{"allow":["set_cursor_position"],"deny":[]}},"allow-set-cursor-visible":{"identifier":"allow-set-cursor-visible","description":"Enables the set_cursor_visible command without any pre-configured scope.","commands":{"allow":["set_cursor_visible"],"deny":[]}},"allow-set-decorations":{"identifier":"allow-set-decorations","description":"Enables the set_decorations command without any pre-configured scope.","commands":{"allow":["set_decorations"],"deny":[]}},"allow-set-effects":{"identifier":"allow-set-effects","description":"Enables the set_effects command without any pre-configured scope.","commands":{"allow":["set_effects"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-focus":{"identifier":"allow-set-focus","description":"Enables the set_focus command without any pre-configured scope.","commands":{"allow":["set_focus"],"deny":[]}},"allow-set-focusable":{"identifier":"allow-set-focusable","description":"Enables the set_focusable command without any pre-configured scope.","commands":{"allow":["set_focusable"],"deny":[]}},"allow-set-fullscreen":{"identifier":"allow-set-fullscreen","description":"Enables the set_fullscreen command without any pre-configured scope.","commands":{"allow":["set_fullscreen"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-ignore-cursor-events":{"identifier":"allow-set-ignore-cursor-events","description":"Enables the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":["set_ignore_cursor_events"],"deny":[]}},"allow-set-max-size":{"identifier":"allow-set-max-size","description":"Enables the set_max_size command without any pre-configured scope.","commands":{"allow":["set_max_size"],"deny":[]}},"allow-set-maximizable":{"identifier":"allow-set-maximizable","description":"Enables the set_maximizable command without any pre-configured scope.","commands":{"allow":["set_maximizable"],"deny":[]}},"allow-set-min-size":{"identifier":"allow-set-min-size","description":"Enables the set_min_size command without any pre-configured scope.","commands":{"allow":["set_min_size"],"deny":[]}},"allow-set-minimizable":{"identifier":"allow-set-minimizable","description":"Enables the set_minimizable command without any pre-configured scope.","commands":{"allow":["set_minimizable"],"deny":[]}},"allow-set-overlay-icon":{"identifier":"allow-set-overlay-icon","description":"Enables the set_overlay_icon command without any pre-configured scope.","commands":{"allow":["set_overlay_icon"],"deny":[]}},"allow-set-position":{"identifier":"allow-set-position","description":"Enables the set_position command without any pre-configured scope.","commands":{"allow":["set_position"],"deny":[]}},"allow-set-progress-bar":{"identifier":"allow-set-progress-bar","description":"Enables the set_progress_bar command without any pre-configured scope.","commands":{"allow":["set_progress_bar"],"deny":[]}},"allow-set-resizable":{"identifier":"allow-set-resizable","description":"Enables the set_resizable command without any pre-configured scope.","commands":{"allow":["set_resizable"],"deny":[]}},"allow-set-shadow":{"identifier":"allow-set-shadow","description":"Enables the set_shadow command without any pre-configured scope.","commands":{"allow":["set_shadow"],"deny":[]}},"allow-set-simple-fullscreen":{"identifier":"allow-set-simple-fullscreen","description":"Enables the set_simple_fullscreen command without any pre-configured scope.","commands":{"allow":["set_simple_fullscreen"],"deny":[]}},"allow-set-size":{"identifier":"allow-set-size","description":"Enables the set_size command without any pre-configured scope.","commands":{"allow":["set_size"],"deny":[]}},"allow-set-size-constraints":{"identifier":"allow-set-size-constraints","description":"Enables the set_size_constraints command without any pre-configured scope.","commands":{"allow":["set_size_constraints"],"deny":[]}},"allow-set-skip-taskbar":{"identifier":"allow-set-skip-taskbar","description":"Enables the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":["set_skip_taskbar"],"deny":[]}},"allow-set-theme":{"identifier":"allow-set-theme","description":"Enables the set_theme command without any pre-configured scope.","commands":{"allow":["set_theme"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-title-bar-style":{"identifier":"allow-set-title-bar-style","description":"Enables the set_title_bar_style command without any pre-configured scope.","commands":{"allow":["set_title_bar_style"],"deny":[]}},"allow-set-visible-on-all-workspaces":{"identifier":"allow-set-visible-on-all-workspaces","description":"Enables the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":["set_visible_on_all_workspaces"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"allow-start-dragging":{"identifier":"allow-start-dragging","description":"Enables the start_dragging command without any pre-configured scope.","commands":{"allow":["start_dragging"],"deny":[]}},"allow-start-resize-dragging":{"identifier":"allow-start-resize-dragging","description":"Enables the start_resize_dragging command without any pre-configured scope.","commands":{"allow":["start_resize_dragging"],"deny":[]}},"allow-theme":{"identifier":"allow-theme","description":"Enables the theme command without any pre-configured scope.","commands":{"allow":["theme"],"deny":[]}},"allow-title":{"identifier":"allow-title","description":"Enables the title command without any pre-configured scope.","commands":{"allow":["title"],"deny":[]}},"allow-toggle-maximize":{"identifier":"allow-toggle-maximize","description":"Enables the toggle_maximize command without any pre-configured scope.","commands":{"allow":["toggle_maximize"],"deny":[]}},"allow-unmaximize":{"identifier":"allow-unmaximize","description":"Enables the unmaximize command without any pre-configured scope.","commands":{"allow":["unmaximize"],"deny":[]}},"allow-unminimize":{"identifier":"allow-unminimize","description":"Enables the unminimize command without any pre-configured scope.","commands":{"allow":["unminimize"],"deny":[]}},"deny-available-monitors":{"identifier":"deny-available-monitors","description":"Denies the available_monitors command without any pre-configured scope.","commands":{"allow":[],"deny":["available_monitors"]}},"deny-center":{"identifier":"deny-center","description":"Denies the center command without any pre-configured scope.","commands":{"allow":[],"deny":["center"]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-current-monitor":{"identifier":"deny-current-monitor","description":"Denies the current_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["current_monitor"]}},"deny-cursor-position":{"identifier":"deny-cursor-position","description":"Denies the cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["cursor_position"]}},"deny-destroy":{"identifier":"deny-destroy","description":"Denies the destroy command without any pre-configured scope.","commands":{"allow":[],"deny":["destroy"]}},"deny-get-all-windows":{"identifier":"deny-get-all-windows","description":"Denies the get_all_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_windows"]}},"deny-hide":{"identifier":"deny-hide","description":"Denies the hide command without any pre-configured scope.","commands":{"allow":[],"deny":["hide"]}},"deny-inner-position":{"identifier":"deny-inner-position","description":"Denies the inner_position command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_position"]}},"deny-inner-size":{"identifier":"deny-inner-size","description":"Denies the inner_size command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_size"]}},"deny-internal-toggle-maximize":{"identifier":"deny-internal-toggle-maximize","description":"Denies the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_maximize"]}},"deny-is-always-on-top":{"identifier":"deny-is-always-on-top","description":"Denies the is_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["is_always_on_top"]}},"deny-is-closable":{"identifier":"deny-is-closable","description":"Denies the is_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_closable"]}},"deny-is-decorated":{"identifier":"deny-is-decorated","description":"Denies the is_decorated command without any pre-configured scope.","commands":{"allow":[],"deny":["is_decorated"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-is-focused":{"identifier":"deny-is-focused","description":"Denies the is_focused command without any pre-configured scope.","commands":{"allow":[],"deny":["is_focused"]}},"deny-is-fullscreen":{"identifier":"deny-is-fullscreen","description":"Denies the is_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["is_fullscreen"]}},"deny-is-maximizable":{"identifier":"deny-is-maximizable","description":"Denies the is_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximizable"]}},"deny-is-maximized":{"identifier":"deny-is-maximized","description":"Denies the is_maximized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximized"]}},"deny-is-minimizable":{"identifier":"deny-is-minimizable","description":"Denies the is_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimizable"]}},"deny-is-minimized":{"identifier":"deny-is-minimized","description":"Denies the is_minimized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimized"]}},"deny-is-resizable":{"identifier":"deny-is-resizable","description":"Denies the is_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_resizable"]}},"deny-is-visible":{"identifier":"deny-is-visible","description":"Denies the is_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["is_visible"]}},"deny-maximize":{"identifier":"deny-maximize","description":"Denies the maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["maximize"]}},"deny-minimize":{"identifier":"deny-minimize","description":"Denies the minimize command without any pre-configured scope.","commands":{"allow":[],"deny":["minimize"]}},"deny-monitor-from-point":{"identifier":"deny-monitor-from-point","description":"Denies the monitor_from_point command without any pre-configured scope.","commands":{"allow":[],"deny":["monitor_from_point"]}},"deny-outer-position":{"identifier":"deny-outer-position","description":"Denies the outer_position command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_position"]}},"deny-outer-size":{"identifier":"deny-outer-size","description":"Denies the outer_size command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_size"]}},"deny-primary-monitor":{"identifier":"deny-primary-monitor","description":"Denies the primary_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["primary_monitor"]}},"deny-request-user-attention":{"identifier":"deny-request-user-attention","description":"Denies the request_user_attention command without any pre-configured scope.","commands":{"allow":[],"deny":["request_user_attention"]}},"deny-scale-factor":{"identifier":"deny-scale-factor","description":"Denies the scale_factor command without any pre-configured scope.","commands":{"allow":[],"deny":["scale_factor"]}},"deny-set-always-on-bottom":{"identifier":"deny-set-always-on-bottom","description":"Denies the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_bottom"]}},"deny-set-always-on-top":{"identifier":"deny-set-always-on-top","description":"Denies the set_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_top"]}},"deny-set-background-color":{"identifier":"deny-set-background-color","description":"Denies the set_background_color command without any pre-configured scope.","commands":{"allow":[],"deny":["set_background_color"]}},"deny-set-badge-count":{"identifier":"deny-set-badge-count","description":"Denies the set_badge_count command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_count"]}},"deny-set-badge-label":{"identifier":"deny-set-badge-label","description":"Denies the set_badge_label command without any pre-configured scope.","commands":{"allow":[],"deny":["set_badge_label"]}},"deny-set-closable":{"identifier":"deny-set-closable","description":"Denies the set_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_closable"]}},"deny-set-content-protected":{"identifier":"deny-set-content-protected","description":"Denies the set_content_protected command without any pre-configured scope.","commands":{"allow":[],"deny":["set_content_protected"]}},"deny-set-cursor-grab":{"identifier":"deny-set-cursor-grab","description":"Denies the set_cursor_grab command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_grab"]}},"deny-set-cursor-icon":{"identifier":"deny-set-cursor-icon","description":"Denies the set_cursor_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_icon"]}},"deny-set-cursor-position":{"identifier":"deny-set-cursor-position","description":"Denies the set_cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_position"]}},"deny-set-cursor-visible":{"identifier":"deny-set-cursor-visible","description":"Denies the set_cursor_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_visible"]}},"deny-set-decorations":{"identifier":"deny-set-decorations","description":"Denies the set_decorations command without any pre-configured scope.","commands":{"allow":[],"deny":["set_decorations"]}},"deny-set-effects":{"identifier":"deny-set-effects","description":"Denies the set_effects command without any pre-configured scope.","commands":{"allow":[],"deny":["set_effects"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-focus":{"identifier":"deny-set-focus","description":"Denies the set_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focus"]}},"deny-set-focusable":{"identifier":"deny-set-focusable","description":"Denies the set_focusable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focusable"]}},"deny-set-fullscreen":{"identifier":"deny-set-fullscreen","description":"Denies the set_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-ignore-cursor-events":{"identifier":"deny-set-ignore-cursor-events","description":"Denies the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":[],"deny":["set_ignore_cursor_events"]}},"deny-set-max-size":{"identifier":"deny-set-max-size","description":"Denies the set_max_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_max_size"]}},"deny-set-maximizable":{"identifier":"deny-set-maximizable","description":"Denies the set_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_maximizable"]}},"deny-set-min-size":{"identifier":"deny-set-min-size","description":"Denies the set_min_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_min_size"]}},"deny-set-minimizable":{"identifier":"deny-set-minimizable","description":"Denies the set_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_minimizable"]}},"deny-set-overlay-icon":{"identifier":"deny-set-overlay-icon","description":"Denies the set_overlay_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_overlay_icon"]}},"deny-set-position":{"identifier":"deny-set-position","description":"Denies the set_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_position"]}},"deny-set-progress-bar":{"identifier":"deny-set-progress-bar","description":"Denies the set_progress_bar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_progress_bar"]}},"deny-set-resizable":{"identifier":"deny-set-resizable","description":"Denies the set_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_resizable"]}},"deny-set-shadow":{"identifier":"deny-set-shadow","description":"Denies the set_shadow command without any pre-configured scope.","commands":{"allow":[],"deny":["set_shadow"]}},"deny-set-simple-fullscreen":{"identifier":"deny-set-simple-fullscreen","description":"Denies the set_simple_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_simple_fullscreen"]}},"deny-set-size":{"identifier":"deny-set-size","description":"Denies the set_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size"]}},"deny-set-size-constraints":{"identifier":"deny-set-size-constraints","description":"Denies the set_size_constraints command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size_constraints"]}},"deny-set-skip-taskbar":{"identifier":"deny-set-skip-taskbar","description":"Denies the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_skip_taskbar"]}},"deny-set-theme":{"identifier":"deny-set-theme","description":"Denies the set_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_theme"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-title-bar-style":{"identifier":"deny-set-title-bar-style","description":"Denies the set_title_bar_style command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title_bar_style"]}},"deny-set-visible-on-all-workspaces":{"identifier":"deny-set-visible-on-all-workspaces","description":"Denies the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible_on_all_workspaces"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}},"deny-start-dragging":{"identifier":"deny-start-dragging","description":"Denies the start_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_dragging"]}},"deny-start-resize-dragging":{"identifier":"deny-start-resize-dragging","description":"Denies the start_resize_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_resize_dragging"]}},"deny-theme":{"identifier":"deny-theme","description":"Denies the theme command without any pre-configured scope.","commands":{"allow":[],"deny":["theme"]}},"deny-title":{"identifier":"deny-title","description":"Denies the title command without any pre-configured scope.","commands":{"allow":[],"deny":["title"]}},"deny-toggle-maximize":{"identifier":"deny-toggle-maximize","description":"Denies the toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["toggle_maximize"]}},"deny-unmaximize":{"identifier":"deny-unmaximize","description":"Denies the unmaximize command without any pre-configured scope.","commands":{"allow":[],"deny":["unmaximize"]}},"deny-unminimize":{"identifier":"deny-unminimize","description":"Denies the unminimize command without any pre-configured scope.","commands":{"allow":[],"deny":["unminimize"]}}},"permission_sets":{},"global_scope_schema":null},"dialog":{"default_permission":{"identifier":"default","description":"This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n","permissions":["allow-ask","allow-confirm","allow-message","allow-save","allow-open"]},"permissions":{"allow-ask":{"identifier":"allow-ask","description":"Enables the ask command without any pre-configured scope.","commands":{"allow":["ask"],"deny":[]}},"allow-confirm":{"identifier":"allow-confirm","description":"Enables the confirm command without any pre-configured scope.","commands":{"allow":["confirm"],"deny":[]}},"allow-message":{"identifier":"allow-message","description":"Enables the message command without any pre-configured scope.","commands":{"allow":["message"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"deny-ask":{"identifier":"deny-ask","description":"Denies the ask command without any pre-configured scope.","commands":{"allow":[],"deny":["ask"]}},"deny-confirm":{"identifier":"deny-confirm","description":"Denies the confirm command without any pre-configured scope.","commands":{"allow":[],"deny":["confirm"]}},"deny-message":{"identifier":"deny-message","description":"Denies the message command without any pre-configured scope.","commands":{"allow":[],"deny":["message"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}}},"permission_sets":{},"global_scope_schema":null},"log":{"default_permission":{"identifier":"default","description":"Allows the log command","permissions":["allow-log"]},"permissions":{"allow-log":{"identifier":"allow-log","description":"Enables the log command without any pre-configured scope.","commands":{"allow":["log"],"deny":[]}},"deny-log":{"identifier":"deny-log","description":"Denies the log command without any pre-configured scope.","commands":{"allow":[],"deny":["log"]}}},"permission_sets":{},"global_scope_schema":null},"notification":{"default_permission":{"identifier":"default","description":"This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n","permissions":["allow-is-permission-granted","allow-request-permission","allow-notify","allow-register-action-types","allow-register-listener","allow-cancel","allow-get-pending","allow-remove-active","allow-get-active","allow-check-permissions","allow-show","allow-batch","allow-list-channels","allow-delete-channel","allow-create-channel","allow-permission-state"]},"permissions":{"allow-batch":{"identifier":"allow-batch","description":"Enables the batch command without any pre-configured scope.","commands":{"allow":["batch"],"deny":[]}},"allow-cancel":{"identifier":"allow-cancel","description":"Enables the cancel command without any pre-configured scope.","commands":{"allow":["cancel"],"deny":[]}},"allow-check-permissions":{"identifier":"allow-check-permissions","description":"Enables the check_permissions command without any pre-configured scope.","commands":{"allow":["check_permissions"],"deny":[]}},"allow-create-channel":{"identifier":"allow-create-channel","description":"Enables the create_channel command without any pre-configured scope.","commands":{"allow":["create_channel"],"deny":[]}},"allow-delete-channel":{"identifier":"allow-delete-channel","description":"Enables the delete_channel command without any pre-configured scope.","commands":{"allow":["delete_channel"],"deny":[]}},"allow-get-active":{"identifier":"allow-get-active","description":"Enables the get_active command without any pre-configured scope.","commands":{"allow":["get_active"],"deny":[]}},"allow-get-pending":{"identifier":"allow-get-pending","description":"Enables the get_pending command without any pre-configured scope.","commands":{"allow":["get_pending"],"deny":[]}},"allow-is-permission-granted":{"identifier":"allow-is-permission-granted","description":"Enables the is_permission_granted command without any pre-configured scope.","commands":{"allow":["is_permission_granted"],"deny":[]}},"allow-list-channels":{"identifier":"allow-list-channels","description":"Enables the list_channels command without any pre-configured scope.","commands":{"allow":["list_channels"],"deny":[]}},"allow-notify":{"identifier":"allow-notify","description":"Enables the notify command without any pre-configured scope.","commands":{"allow":["notify"],"deny":[]}},"allow-permission-state":{"identifier":"allow-permission-state","description":"Enables the permission_state command without any pre-configured scope.","commands":{"allow":["permission_state"],"deny":[]}},"allow-register-action-types":{"identifier":"allow-register-action-types","description":"Enables the register_action_types command without any pre-configured scope.","commands":{"allow":["register_action_types"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-active":{"identifier":"allow-remove-active","description":"Enables the remove_active command without any pre-configured scope.","commands":{"allow":["remove_active"],"deny":[]}},"allow-request-permission":{"identifier":"allow-request-permission","description":"Enables the request_permission command without any pre-configured scope.","commands":{"allow":["request_permission"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"deny-batch":{"identifier":"deny-batch","description":"Denies the batch command without any pre-configured scope.","commands":{"allow":[],"deny":["batch"]}},"deny-cancel":{"identifier":"deny-cancel","description":"Denies the cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel"]}},"deny-check-permissions":{"identifier":"deny-check-permissions","description":"Denies the check_permissions command without any pre-configured scope.","commands":{"allow":[],"deny":["check_permissions"]}},"deny-create-channel":{"identifier":"deny-create-channel","description":"Denies the create_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["create_channel"]}},"deny-delete-channel":{"identifier":"deny-delete-channel","description":"Denies the delete_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_channel"]}},"deny-get-active":{"identifier":"deny-get-active","description":"Denies the get_active command without any pre-configured scope.","commands":{"allow":[],"deny":["get_active"]}},"deny-get-pending":{"identifier":"deny-get-pending","description":"Denies the get_pending command without any pre-configured scope.","commands":{"allow":[],"deny":["get_pending"]}},"deny-is-permission-granted":{"identifier":"deny-is-permission-granted","description":"Denies the is_permission_granted command without any pre-configured scope.","commands":{"allow":[],"deny":["is_permission_granted"]}},"deny-list-channels":{"identifier":"deny-list-channels","description":"Denies the list_channels command without any pre-configured scope.","commands":{"allow":[],"deny":["list_channels"]}},"deny-notify":{"identifier":"deny-notify","description":"Denies the notify command without any pre-configured scope.","commands":{"allow":[],"deny":["notify"]}},"deny-permission-state":{"identifier":"deny-permission-state","description":"Denies the permission_state command without any pre-configured scope.","commands":{"allow":[],"deny":["permission_state"]}},"deny-register-action-types":{"identifier":"deny-register-action-types","description":"Denies the register_action_types command without any pre-configured scope.","commands":{"allow":[],"deny":["register_action_types"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-active":{"identifier":"deny-remove-active","description":"Denies the remove_active command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_active"]}},"deny-request-permission":{"identifier":"deny-request-permission","description":"Denies the request_permission command without any pre-configured scope.","commands":{"allow":[],"deny":["request_permission"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}}},"permission_sets":{},"global_scope_schema":null},"process":{"default_permission":{"identifier":"default","description":"This permission set configures which\nprocess features are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n","permissions":["allow-exit","allow-restart"]},"permissions":{"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-restart":{"identifier":"allow-restart","description":"Enables the restart command without any pre-configured scope.","commands":{"allow":["restart"],"deny":[]}},"deny-exit":{"identifier":"deny-exit","description":"Denies the exit command without any pre-configured scope.","commands":{"allow":[],"deny":["exit"]}},"deny-restart":{"identifier":"deny-restart","description":"Denies the restart command without any pre-configured scope.","commands":{"allow":[],"deny":["restart"]}}},"permission_sets":{},"global_scope_schema":null},"store":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-load","allow-get-store","allow-set","allow-get","allow-has","allow-delete","allow-clear","allow-reset","allow-keys","allow-values","allow-entries","allow-length","allow-reload","allow-save"]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-delete":{"identifier":"allow-delete","description":"Enables the delete command without any pre-configured scope.","commands":{"allow":["delete"],"deny":[]}},"allow-entries":{"identifier":"allow-entries","description":"Enables the entries command without any pre-configured scope.","commands":{"allow":["entries"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-get-store":{"identifier":"allow-get-store","description":"Enables the get_store command without any pre-configured scope.","commands":{"allow":["get_store"],"deny":[]}},"allow-has":{"identifier":"allow-has","description":"Enables the has command without any pre-configured scope.","commands":{"allow":["has"],"deny":[]}},"allow-keys":{"identifier":"allow-keys","description":"Enables the keys command without any pre-configured scope.","commands":{"allow":["keys"],"deny":[]}},"allow-length":{"identifier":"allow-length","description":"Enables the length command without any pre-configured scope.","commands":{"allow":["length"],"deny":[]}},"allow-load":{"identifier":"allow-load","description":"Enables the load command without any pre-configured scope.","commands":{"allow":["load"],"deny":[]}},"allow-reload":{"identifier":"allow-reload","description":"Enables the reload command without any pre-configured scope.","commands":{"allow":["reload"],"deny":[]}},"allow-reset":{"identifier":"allow-reset","description":"Enables the reset command without any pre-configured scope.","commands":{"allow":["reset"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"allow-set":{"identifier":"allow-set","description":"Enables the set command without any pre-configured scope.","commands":{"allow":["set"],"deny":[]}},"allow-values":{"identifier":"allow-values","description":"Enables the values command without any pre-configured scope.","commands":{"allow":["values"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-delete":{"identifier":"deny-delete","description":"Denies the delete command without any pre-configured scope.","commands":{"allow":[],"deny":["delete"]}},"deny-entries":{"identifier":"deny-entries","description":"Denies the entries command without any pre-configured scope.","commands":{"allow":[],"deny":["entries"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-get-store":{"identifier":"deny-get-store","description":"Denies the get_store command without any pre-configured scope.","commands":{"allow":[],"deny":["get_store"]}},"deny-has":{"identifier":"deny-has","description":"Denies the has command without any pre-configured scope.","commands":{"allow":[],"deny":["has"]}},"deny-keys":{"identifier":"deny-keys","description":"Denies the keys command without any pre-configured scope.","commands":{"allow":[],"deny":["keys"]}},"deny-length":{"identifier":"deny-length","description":"Denies the length command without any pre-configured scope.","commands":{"allow":[],"deny":["length"]}},"deny-load":{"identifier":"deny-load","description":"Denies the load command without any pre-configured scope.","commands":{"allow":[],"deny":["load"]}},"deny-reload":{"identifier":"deny-reload","description":"Denies the reload command without any pre-configured scope.","commands":{"allow":[],"deny":["reload"]}},"deny-reset":{"identifier":"deny-reset","description":"Denies the reset command without any pre-configured scope.","commands":{"allow":[],"deny":["reset"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}},"deny-set":{"identifier":"deny-set","description":"Denies the set command without any pre-configured scope.","commands":{"allow":[],"deny":["set"]}},"deny-values":{"identifier":"deny-values","description":"Denies the values command without any pre-configured scope.","commands":{"allow":[],"deny":["values"]}}},"permission_sets":{},"global_scope_schema":null},"updater":{"default_permission":{"identifier":"default","description":"This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n","permissions":["allow-check","allow-download","allow-install","allow-download-and-install"]},"permissions":{"allow-check":{"identifier":"allow-check","description":"Enables the check command without any pre-configured scope.","commands":{"allow":["check"],"deny":[]}},"allow-download":{"identifier":"allow-download","description":"Enables the download command without any pre-configured scope.","commands":{"allow":["download"],"deny":[]}},"allow-download-and-install":{"identifier":"allow-download-and-install","description":"Enables the download_and_install command without any pre-configured scope.","commands":{"allow":["download_and_install"],"deny":[]}},"allow-install":{"identifier":"allow-install","description":"Enables the install command without any pre-configured scope.","commands":{"allow":["install"],"deny":[]}},"deny-check":{"identifier":"deny-check","description":"Denies the check command without any pre-configured scope.","commands":{"allow":[],"deny":["check"]}},"deny-download":{"identifier":"deny-download","description":"Denies the download command without any pre-configured scope.","commands":{"allow":[],"deny":["download"]}},"deny-download-and-install":{"identifier":"deny-download-and-install","description":"Denies the download_and_install command without any pre-configured scope.","commands":{"allow":[],"deny":["download_and_install"]}},"deny-install":{"identifier":"deny-install","description":"Denies the install command without any pre-configured scope.","commands":{"allow":[],"deny":["install"]}}},"permission_sets":{},"global_scope_schema":null},"upload":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the upload plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-upload","allow-download"]},"permissions":{"allow-download":{"identifier":"allow-download","description":"Enables the download command without any pre-configured scope.","commands":{"allow":["download"],"deny":[]}},"allow-upload":{"identifier":"allow-upload","description":"Enables the upload command without any pre-configured scope.","commands":{"allow":["upload"],"deny":[]}},"deny-download":{"identifier":"deny-download","description":"Denies the download command without any pre-configured scope.","commands":{"allow":[],"deny":["download"]}},"deny-upload":{"identifier":"deny-upload","description":"Denies the upload command without any pre-configured scope.","commands":{"allow":[],"deny":["upload"]}}},"permission_sets":{},"global_scope_schema":null},"window-state":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the window state plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-filename","allow-restore-state","allow-save-window-state"]},"permissions":{"allow-filename":{"identifier":"allow-filename","description":"Enables the filename command without any pre-configured scope.","commands":{"allow":["filename"],"deny":[]}},"allow-restore-state":{"identifier":"allow-restore-state","description":"Enables the restore_state command without any pre-configured scope.","commands":{"allow":["restore_state"],"deny":[]}},"allow-save-window-state":{"identifier":"allow-save-window-state","description":"Enables the save_window_state command without any pre-configured scope.","commands":{"allow":["save_window_state"],"deny":[]}},"deny-filename":{"identifier":"deny-filename","description":"Denies the filename command without any pre-configured scope.","commands":{"allow":[],"deny":["filename"]}},"deny-restore-state":{"identifier":"deny-restore-state","description":"Denies the restore_state command without any pre-configured scope.","commands":{"allow":[],"deny":["restore_state"]}},"deny-save-window-state":{"identifier":"deny-save-window-state","description":"Denies the save_window_state command without any pre-configured scope.","commands":{"allow":[],"deny":["save_window_state"]}}},"permission_sets":{},"global_scope_schema":null}} \ No newline at end of file diff --git a/src-tauri/gen/schemas/desktop-schema.json b/src-tauri/gen/schemas/desktop-schema.json index a01aff2..b4db053 100644 --- a/src-tauri/gen/schemas/desktop-schema.json +++ b/src-tauri/gen/schemas/desktop-schema.json @@ -261,10 +261,10 @@ "markdownDescription": "Default core plugins set.\n#### This default permission set includes:\n\n- `core:path:default`\n- `core:event:default`\n- `core:window:default`\n- `core:webview:default`\n- `core:app:default`\n- `core:image:default`\n- `core:resources:default`\n- `core:menu:default`\n- `core:tray:default`" }, { - "description": "Default permissions for the plugin.\n#### This default permission set includes:\n\n- `allow-version`\n- `allow-name`\n- `allow-tauri-version`\n- `allow-identifier`", + "description": "Default permissions for the plugin.\n#### This default permission set includes:\n\n- `allow-version`\n- `allow-name`\n- `allow-tauri-version`\n- `allow-identifier`\n- `allow-bundle-type`\n- `allow-register-listener`\n- `allow-remove-listener`", "type": "string", "const": "core:app:default", - "markdownDescription": "Default permissions for the plugin.\n#### This default permission set includes:\n\n- `allow-version`\n- `allow-name`\n- `allow-tauri-version`\n- `allow-identifier`" + "markdownDescription": "Default permissions for the plugin.\n#### This default permission set includes:\n\n- `allow-version`\n- `allow-name`\n- `allow-tauri-version`\n- `allow-identifier`\n- `allow-bundle-type`\n- `allow-register-listener`\n- `allow-remove-listener`" }, { "description": "Enables the app_hide command without any pre-configured scope.", @@ -278,6 +278,12 @@ "const": "core:app:allow-app-show", "markdownDescription": "Enables the app_show command without any pre-configured scope." }, + { + "description": "Enables the bundle_type command without any pre-configured scope.", + "type": "string", + "const": "core:app:allow-bundle-type", + "markdownDescription": "Enables the bundle_type command without any pre-configured scope." + }, { "description": "Enables the default_window_icon command without any pre-configured scope.", "type": "string", @@ -302,12 +308,24 @@ "const": "core:app:allow-name", "markdownDescription": "Enables the name command without any pre-configured scope." }, + { + "description": "Enables the register_listener command without any pre-configured scope.", + "type": "string", + "const": "core:app:allow-register-listener", + "markdownDescription": "Enables the register_listener command without any pre-configured scope." + }, { "description": "Enables the remove_data_store command without any pre-configured scope.", "type": "string", "const": "core:app:allow-remove-data-store", "markdownDescription": "Enables the remove_data_store command without any pre-configured scope." }, + { + "description": "Enables the remove_listener command without any pre-configured scope.", + "type": "string", + "const": "core:app:allow-remove-listener", + "markdownDescription": "Enables the remove_listener command without any pre-configured scope." + }, { "description": "Enables the set_app_theme command without any pre-configured scope.", "type": "string", @@ -344,6 +362,12 @@ "const": "core:app:deny-app-show", "markdownDescription": "Denies the app_show command without any pre-configured scope." }, + { + "description": "Denies the bundle_type command without any pre-configured scope.", + "type": "string", + "const": "core:app:deny-bundle-type", + "markdownDescription": "Denies the bundle_type command without any pre-configured scope." + }, { "description": "Denies the default_window_icon command without any pre-configured scope.", "type": "string", @@ -368,12 +392,24 @@ "const": "core:app:deny-name", "markdownDescription": "Denies the name command without any pre-configured scope." }, + { + "description": "Denies the register_listener command without any pre-configured scope.", + "type": "string", + "const": "core:app:deny-register-listener", + "markdownDescription": "Denies the register_listener command without any pre-configured scope." + }, { "description": "Denies the remove_data_store command without any pre-configured scope.", "type": "string", "const": "core:app:deny-remove-data-store", "markdownDescription": "Denies the remove_data_store command without any pre-configured scope." }, + { + "description": "Denies the remove_listener command without any pre-configured scope.", + "type": "string", + "const": "core:app:deny-remove-listener", + "markdownDescription": "Denies the remove_listener command without any pre-configured scope." + }, { "description": "Denies the set_app_theme command without any pre-configured scope.", "type": "string", @@ -1556,6 +1592,12 @@ "const": "core:window:allow-set-focus", "markdownDescription": "Enables the set_focus command without any pre-configured scope." }, + { + "description": "Enables the set_focusable command without any pre-configured scope.", + "type": "string", + "const": "core:window:allow-set-focusable", + "markdownDescription": "Enables the set_focusable command without any pre-configured scope." + }, { "description": "Enables the set_fullscreen command without any pre-configured scope.", "type": "string", @@ -1628,6 +1670,12 @@ "const": "core:window:allow-set-shadow", "markdownDescription": "Enables the set_shadow command without any pre-configured scope." }, + { + "description": "Enables the set_simple_fullscreen command without any pre-configured scope.", + "type": "string", + "const": "core:window:allow-set-simple-fullscreen", + "markdownDescription": "Enables the set_simple_fullscreen command without any pre-configured scope." + }, { "description": "Enables the set_size command without any pre-configured scope.", "type": "string", @@ -2000,6 +2048,12 @@ "const": "core:window:deny-set-focus", "markdownDescription": "Denies the set_focus command without any pre-configured scope." }, + { + "description": "Denies the set_focusable command without any pre-configured scope.", + "type": "string", + "const": "core:window:deny-set-focusable", + "markdownDescription": "Denies the set_focusable command without any pre-configured scope." + }, { "description": "Denies the set_fullscreen command without any pre-configured scope.", "type": "string", @@ -2072,6 +2126,12 @@ "const": "core:window:deny-set-shadow", "markdownDescription": "Denies the set_shadow command without any pre-configured scope." }, + { + "description": "Denies the set_simple_fullscreen command without any pre-configured scope.", + "type": "string", + "const": "core:window:deny-set-simple-fullscreen", + "markdownDescription": "Denies the set_simple_fullscreen command without any pre-configured scope." + }, { "description": "Denies the set_size command without any pre-configured scope.", "type": "string", diff --git a/src-tauri/gen/schemas/windows-schema.json b/src-tauri/gen/schemas/windows-schema.json index a01aff2..b4db053 100644 --- a/src-tauri/gen/schemas/windows-schema.json +++ b/src-tauri/gen/schemas/windows-schema.json @@ -261,10 +261,10 @@ "markdownDescription": "Default core plugins set.\n#### This default permission set includes:\n\n- `core:path:default`\n- `core:event:default`\n- `core:window:default`\n- `core:webview:default`\n- `core:app:default`\n- `core:image:default`\n- `core:resources:default`\n- `core:menu:default`\n- `core:tray:default`" }, { - "description": "Default permissions for the plugin.\n#### This default permission set includes:\n\n- `allow-version`\n- `allow-name`\n- `allow-tauri-version`\n- `allow-identifier`", + "description": "Default permissions for the plugin.\n#### This default permission set includes:\n\n- `allow-version`\n- `allow-name`\n- `allow-tauri-version`\n- `allow-identifier`\n- `allow-bundle-type`\n- `allow-register-listener`\n- `allow-remove-listener`", "type": "string", "const": "core:app:default", - "markdownDescription": "Default permissions for the plugin.\n#### This default permission set includes:\n\n- `allow-version`\n- `allow-name`\n- `allow-tauri-version`\n- `allow-identifier`" + "markdownDescription": "Default permissions for the plugin.\n#### This default permission set includes:\n\n- `allow-version`\n- `allow-name`\n- `allow-tauri-version`\n- `allow-identifier`\n- `allow-bundle-type`\n- `allow-register-listener`\n- `allow-remove-listener`" }, { "description": "Enables the app_hide command without any pre-configured scope.", @@ -278,6 +278,12 @@ "const": "core:app:allow-app-show", "markdownDescription": "Enables the app_show command without any pre-configured scope." }, + { + "description": "Enables the bundle_type command without any pre-configured scope.", + "type": "string", + "const": "core:app:allow-bundle-type", + "markdownDescription": "Enables the bundle_type command without any pre-configured scope." + }, { "description": "Enables the default_window_icon command without any pre-configured scope.", "type": "string", @@ -302,12 +308,24 @@ "const": "core:app:allow-name", "markdownDescription": "Enables the name command without any pre-configured scope." }, + { + "description": "Enables the register_listener command without any pre-configured scope.", + "type": "string", + "const": "core:app:allow-register-listener", + "markdownDescription": "Enables the register_listener command without any pre-configured scope." + }, { "description": "Enables the remove_data_store command without any pre-configured scope.", "type": "string", "const": "core:app:allow-remove-data-store", "markdownDescription": "Enables the remove_data_store command without any pre-configured scope." }, + { + "description": "Enables the remove_listener command without any pre-configured scope.", + "type": "string", + "const": "core:app:allow-remove-listener", + "markdownDescription": "Enables the remove_listener command without any pre-configured scope." + }, { "description": "Enables the set_app_theme command without any pre-configured scope.", "type": "string", @@ -344,6 +362,12 @@ "const": "core:app:deny-app-show", "markdownDescription": "Denies the app_show command without any pre-configured scope." }, + { + "description": "Denies the bundle_type command without any pre-configured scope.", + "type": "string", + "const": "core:app:deny-bundle-type", + "markdownDescription": "Denies the bundle_type command without any pre-configured scope." + }, { "description": "Denies the default_window_icon command without any pre-configured scope.", "type": "string", @@ -368,12 +392,24 @@ "const": "core:app:deny-name", "markdownDescription": "Denies the name command without any pre-configured scope." }, + { + "description": "Denies the register_listener command without any pre-configured scope.", + "type": "string", + "const": "core:app:deny-register-listener", + "markdownDescription": "Denies the register_listener command without any pre-configured scope." + }, { "description": "Denies the remove_data_store command without any pre-configured scope.", "type": "string", "const": "core:app:deny-remove-data-store", "markdownDescription": "Denies the remove_data_store command without any pre-configured scope." }, + { + "description": "Denies the remove_listener command without any pre-configured scope.", + "type": "string", + "const": "core:app:deny-remove-listener", + "markdownDescription": "Denies the remove_listener command without any pre-configured scope." + }, { "description": "Denies the set_app_theme command without any pre-configured scope.", "type": "string", @@ -1556,6 +1592,12 @@ "const": "core:window:allow-set-focus", "markdownDescription": "Enables the set_focus command without any pre-configured scope." }, + { + "description": "Enables the set_focusable command without any pre-configured scope.", + "type": "string", + "const": "core:window:allow-set-focusable", + "markdownDescription": "Enables the set_focusable command without any pre-configured scope." + }, { "description": "Enables the set_fullscreen command without any pre-configured scope.", "type": "string", @@ -1628,6 +1670,12 @@ "const": "core:window:allow-set-shadow", "markdownDescription": "Enables the set_shadow command without any pre-configured scope." }, + { + "description": "Enables the set_simple_fullscreen command without any pre-configured scope.", + "type": "string", + "const": "core:window:allow-set-simple-fullscreen", + "markdownDescription": "Enables the set_simple_fullscreen command without any pre-configured scope." + }, { "description": "Enables the set_size command without any pre-configured scope.", "type": "string", @@ -2000,6 +2048,12 @@ "const": "core:window:deny-set-focus", "markdownDescription": "Denies the set_focus command without any pre-configured scope." }, + { + "description": "Denies the set_focusable command without any pre-configured scope.", + "type": "string", + "const": "core:window:deny-set-focusable", + "markdownDescription": "Denies the set_focusable command without any pre-configured scope." + }, { "description": "Denies the set_fullscreen command without any pre-configured scope.", "type": "string", @@ -2072,6 +2126,12 @@ "const": "core:window:deny-set-shadow", "markdownDescription": "Denies the set_shadow command without any pre-configured scope." }, + { + "description": "Denies the set_simple_fullscreen command without any pre-configured scope.", + "type": "string", + "const": "core:window:deny-set-simple-fullscreen", + "markdownDescription": "Denies the set_simple_fullscreen command without any pre-configured scope." + }, { "description": "Denies the set_size command without any pre-configured scope.", "type": "string", diff --git a/src/components/alphaSelector/alphaSelector.scss b/src/components/alphaSelector/alphaSelector.scss new file mode 100644 index 0000000..ac0563a --- /dev/null +++ b/src/components/alphaSelector/alphaSelector.scss @@ -0,0 +1,33 @@ +.alpha-selector { + position: sticky; + top: 80px; + right: 0; + display: flex; + flex-direction: column; + align-items: center; + gap: 4px; + padding: 4px; + margin-left: auto; + user-select: none; + z-index: 2; +} + +.alpha-letter { + font-size: 12px; + line-height: 1; + padding: 6px 8px; + border-radius: 8px; + background: transparent; + color: rgba(255,255,255,0.7); + border: none; + cursor: pointer; +} + +.alpha-letter.active { + background: rgba(255,255,255,0.12); + color: #fff; +} + +.alpha-letter:hover { + background: rgba(255,255,255,0.08); +} diff --git a/src/components/alphaSelector/index.tsx b/src/components/alphaSelector/index.tsx new file mode 100644 index 0000000..b7cf65e --- /dev/null +++ b/src/components/alphaSelector/index.tsx @@ -0,0 +1,51 @@ +import { getRouteApi } from "@tanstack/react-router"; +import React, { useMemo } from "react"; +import { useShallow } from "zustand/shallow"; +import { useLibraryStateStore } from "@/utils/store/libraryState"; +import "./alphaSelector.scss"; + +const libraryRoute = getRouteApi("/_api/library/$id"); + +export const AlphaSelector = React.memo(function AlphaSelector() { + const { id: currentLibraryId } = libraryRoute.useParams(); + const { nameStartsWith } = useLibraryStateStore( + useShallow((s) => ({ + nameStartsWith: s.libraries[currentLibraryId || ""]?.nameStartsWith, + })), + ); + const updateLibrary = useLibraryStateStore((s) => s.updateLibrary); + + const letters = useMemo(() => { + const arr = Array.from({ length: 26 }, (_, i) => + String.fromCharCode(65 + i), + ); + return ["All", ...arr]; + }, []); + + const handleSelect = (letter: string) => { + const value = letter === "All" ? undefined : letter; + if (currentLibraryId) + updateLibrary(currentLibraryId, { nameStartsWith: value }); + }; + + return ( +
+ {letters.map((l) => { + const active = (nameStartsWith || "All") === l; + return ( + + ); + })} +
+ ); +}); + +export default AlphaSelector; diff --git a/src/components/appBar/appBar.scss b/src/components/appBar/appBar.scss index ecc4399..c99f72c 100644 --- a/src/components/appBar/appBar.scss +++ b/src/components/appBar/appBar.scss @@ -1,20 +1,48 @@ .appBar { - transition: background-color $transition-time-fast, - backdrop-filter $transition-time-fast, - box-shadow $transition-time-default !important; + // Limit transitions to cheaper properties; avoid animating box-shadow directly + transition: background-color $transition-time-fast; padding: 0.8em ($page-margin - 1.7em); z-index: 999 !important; .flex { - transition: $transition-time-fast; + // Avoid animating padding; it causes layout reflow on each frame. + transition: background-color $transition-time-fast; + // Avoid using will-change: scroll-position; it can degrade performance when misused + // will-change: opacity, transform; border-radius: 1000px; + position: relative; + + // Pseudo-element handles elevation shadow; we animate its opacity + &::after { + content: ""; + position: absolute; + backdrop-filter: blur(40px); + inset: -0.35em; + pointer-events: none; + border-radius: inherit; + box-shadow: 0 0 25px rgb(0 0 0 / 0.45); + background: rgb(0 0 0 / 0.4); + opacity: 0; + z-index: -1; + transition: opacity $transition-time-fast; + } + } + + // Inner content wrapper that we can scale without causing layout reflow + .flex-inner { + transform-origin: top center; + transition: transform $transition-time-fast; } &.elevated{ .flex { - padding: 0.5em; - background: rgb(0 0 0 / 0.4); - backdrop-filter: blur(40px); - box-shadow: 0 0 25px rgb(0 0 0 / 0.45); + &::after { + opacity: 1; + } + } + + // Apply a subtle scale to simulate shrink without layout changes + .flex-inner { + transform: scaleY(0.95); } } &-avatar { diff --git a/src/components/appBar/appBar.tsx b/src/components/appBar/appBar.tsx index ee3e3a9..4a8a591 100644 --- a/src/components/appBar/appBar.tsx +++ b/src/components/appBar/appBar.tsx @@ -1,37 +1,29 @@ import { getUserViewsApi } from "@jellyfin/sdk/lib/utils/api/user-views-api"; import MuiAppBar from "@mui/material/AppBar"; -import Avatar from "@mui/material/Avatar"; import IconButton from "@mui/material/IconButton"; -import ListItemIcon from "@mui/material/ListItemIcon"; -import Menu from "@mui/material/Menu"; -import MenuItem from "@mui/material/MenuItem"; import useScrollTrigger from "@mui/material/useScrollTrigger"; -import { useQuery, useQueryClient } from "@tanstack/react-query"; +import { useQuery } from "@tanstack/react-query"; -import { useLocation, useNavigate, useRouter } from "@tanstack/react-router"; -import React, { - type MouseEventHandler, - useCallback, - useMemo, - useState, -} from "react"; +import { useLocation, useNavigate } from "@tanstack/react-router"; +import React, { useCallback, useMemo, useState } from "react"; -import { delUser } from "@/utils/storage/user"; import "./appBar.scss"; import { Divider, Drawer, List, ListItem, ListItemButton } from "@mui/material"; - +import { useShallow } from "zustand/shallow"; +// removed search placeholder; library state now managed via zustand import { useApiInContext } from "@/utils/store/api"; import { useCentralStore } from "@/utils/store/central"; +import useHeaderStore from "@/utils/store/header"; import { setSettingsDialogOpen, setSettingsTabValue, } from "@/utils/store/settings"; import BackButton from "../buttons/backButton"; import ListItemLink from "../listItemLink"; +import { UserAvatarMenu } from "../userAvatarMenu"; import { getTypeIcon } from "../utils/iconsCollection"; - const MemoizeBackButton = React.memo(BackButton); const HIDDEN_PATHS = [ @@ -41,25 +33,21 @@ const HIDDEN_PATHS = [ "/player", "/error", "/settings", + "/library", ]; export const AppBar = () => { const api = useApiInContext((s) => s.api); - const createApi = useApiInContext((s) => s.createApi); const navigate = useNavigate(); const location = useLocation(); - const router = useRouter(); const display = !HIDDEN_PATHS.some( (path) => location.pathname.startsWith(path) || location.pathname === "/", ); - const [user, resetCurrentUser] = useCentralStore((s) => [ - s.currentUser, - s.resetCurrentUser, - ]); + const [user] = useCentralStore((s) => [s.currentUser]); const libraries = useQuery({ queryKey: ["libraries"], queryFn: async () => { @@ -80,34 +68,6 @@ export const AppBar = () => { threshold: 20, }); - const [anchorEl, setAnchorEl] = useState(null); - const openMenu = Boolean(anchorEl); - const handleMenuOpen: MouseEventHandler = useCallback( - (event) => { - setAnchorEl(event.currentTarget); - }, - [], - ); - const handleMenuClose = useCallback(() => { - setAnchorEl(null); - }, []); - const queryClient = useQueryClient(); - - const handleLogout = useCallback(async () => { - console.log("Logging out user..."); - await api?.logout(); - createApi(api?.basePath ?? "", undefined); - console.log(api); - resetCurrentUser(); - delUser(); - sessionStorage.removeItem("accessToken"); - queryClient.clear(); - await router.invalidate(); - setAnchorEl(null); - navigate({ to: "/login", replace: true }); - }, [api]); - - const [showDrawer, setShowDrawer] = useState(false); const appBarStyling = useMemo(() => { @@ -116,9 +76,6 @@ export const AppBar = () => { paddingRight: "0 !important", }; }, []); - const menuStyle = useMemo(() => { - return { mt: 2 }; - }, []); const drawerPaperProps = useMemo(() => { return { @@ -145,7 +102,7 @@ export const AppBar = () => { navigate({ to: "/favorite" }); }, []); - const menuButtonSx = useMemo(() => ({ p: 0 }), []); + useHeaderStore(useShallow((s) => ({ pageTitle: s.pageTitle }))); if (!display) { return null; @@ -188,80 +145,7 @@ export const AppBar = () => {
favorite
- - {!!user?.Id && - (user?.PrimaryImageTag === undefined ? ( - - - account_circle - - - ) : ( - - - account_circle - - - ))} - - - { - handleLogout(); - handleMenuClose(); - }} - > - -
logout
-
- Logout -
- - { - setSettingsDialogOpen(true); - setSettingsTabValue(1); - handleMenuClose(); - }} - > - -
settings
-
- Settings -
- { - navigate({ to: "/settings/preferences" }); - handleMenuClose(); - }} - > - -
tune
-
- Preferences -
- { - navigate({ to: "/settings/about" }); - handleMenuClose(); - }} - > - -
info
-
- About -
-
+ { className="library-drawer-item" key={library.Id} to="/library/$id" - params={{ - id: library.Id ?? "", - }} + params={{ id: library.Id ?? "" }} icon={ library.CollectionType && getTypeIcon(library.CollectionType) diff --git a/src/components/backdrop/index.tsx b/src/components/backdrop/index.tsx index 385da31..dcf53f5 100644 --- a/src/components/backdrop/index.tsx +++ b/src/components/backdrop/index.tsx @@ -24,6 +24,10 @@ export default function Backdrop() { animate={{ opacity: 1 }} key={backdropHash} exit={{ opacity: 0 }} + transition={{ + duration: 2, + ease: "easeInOut", + }} className="app-backdrop-container" > void; disableOverlay?: boolean; overrideIcon?: any; + skipInView?: boolean; }) => { const api = useApiInContext((s) => s.api); const navigate = useNavigate(); @@ -82,6 +84,7 @@ const CardComponent = ({ const { ref, inView } = useInView({ threshold: 0.1, + skip: skipInView, }); return ( @@ -120,7 +123,7 @@ const CardComponent = ({ ? getTypeIcon(overrideIcon) : getTypeIcon(item.Type ?? "universal")} - {inView && ( + {(skipInView || inView) && ( {item.Name { e.currentTarget.style.setProperty("opacity", "1"); }} - onLoadStart={(e) => console.log(e)} className="card-image" /> )} - {inView && !disableOverlay && ( + {(skipInView || inView) && !disableOverlay && (
{cardTitle} diff --git a/src/components/filtersDialog/index.tsx b/src/components/filtersDialog/index.tsx new file mode 100644 index 0000000..2f2becd --- /dev/null +++ b/src/components/filtersDialog/index.tsx @@ -0,0 +1,509 @@ +import { getGenresApi } from "@jellyfin/sdk/lib/utils/api/genres-api"; +import { getMusicGenresApi } from "@jellyfin/sdk/lib/utils/api/music-genres-api"; +import { + Accordion, + AccordionDetails, + AccordionSummary, + Button, + Checkbox, + Dialog, + DialogActions, + DialogContent, + DialogTitle, + FormControlLabel, + FormGroup, + IconButton, + Stack, + Tooltip, + Typography, +} from "@mui/material"; +import { useQuery, useSuspenseQuery } from "@tanstack/react-query"; +import { getRouteApi } from "@tanstack/react-router"; +import React, { useMemo, useRef, useState } from "react"; +import { useShallow } from "zustand/shallow"; +import type { FILTERS } from "@/utils/constants/library"; +import { getLibraryQueryOptions } from "@/utils/queries/library"; +import { useLibraryStateStore } from "@/utils/store/libraryState"; + +const route = getRouteApi("/_api/library/$id"); + +const FILTER_LABELS: Record = { + isPlayed: "Played", + isUnPlayed: "Unplayed", + isResumable: "Resumable", + isFavorite: "Favorite", + hasSubtitles: "Has Subtitles", + hasTrailer: "Has Trailer", + hasSpecialFeature: "Special Feature", + hasThemeSong: "Theme Song", + hasThemeVideo: "Theme Video", + isSD: "SD", + isHD: "HD", + is4K: "4K", + is3D: "3D", +}; + +interface FiltersDialogProps { + open: boolean; + onClose: () => void; +} + +export const FiltersDialog: React.FC = React.memo( + ({ open, onClose }) => { + const { id: currentLibraryId } = route.useParams(); + const { api, user } = route.useRouteContext(); + const { routeFilters, routeVideoTypes, routeGenreIds } = + useLibraryStateStore( + useShallow((s) => { + const slice = s.libraries[currentLibraryId || ""]; + return { + routeFilters: slice?.filters, + routeVideoTypes: slice?.videoTypesState, + routeGenreIds: slice?.genreIds, + }; + }), + ); + const updateLibrary = useLibraryStateStore((s) => s.updateLibrary); + const initial = useMemo( + () => ({ ...(routeFilters || {}) }), + [routeFilters], + ); + const [localFilters, setLocalFilters] = + useState>(initial); + const initialVideo = useMemo( + () => ({ ...(routeVideoTypes || {}) }), + [routeVideoTypes], + ); + const [localVideoTypes, setLocalVideoTypes] = + useState>(initialVideo); + const initialGenres = useMemo( + () => [...(routeGenreIds || [])] as string[], + [routeGenreIds], + ); + const [localGenreIds, setLocalGenreIds] = useState(initialGenres); + const dirty = useMemo( + () => + JSON.stringify(initial) !== JSON.stringify(localFilters) || + JSON.stringify(initialVideo) !== JSON.stringify(localVideoTypes) || + JSON.stringify(initialGenres) !== JSON.stringify(localGenreIds), + [ + initial, + localFilters, + initialVideo, + localVideoTypes, + initialGenres, + localGenreIds, + ], + ); + const debounceRef = useRef(null); + const currentLibrary = useSuspenseQuery( + getLibraryQueryOptions(api, user?.Id, currentLibraryId), + ); + const collectionType = currentLibrary.data.CollectionType; + const isVideoCollection = ["movies", "tvshows", "boxsets"].includes( + String(collectionType || "").toLowerCase(), + ); + + // Fetch genres for this library (music uses music-genres API) + const { data: genresData } = useQuery({ + queryKey: ["library", "genres", currentLibraryId, collectionType], + queryFn: async () => { + if (!api || !user?.Id || !currentLibraryId) return { Items: [] } as any; + if (String(collectionType || "").toLowerCase() === "music") { + const res = await getMusicGenresApi(api).getMusicGenres({ + parentId: currentLibraryId, + userId: user.Id, + }); + return res.data; + } + const res = await getGenresApi(api).getGenres({ + parentId: currentLibraryId, + userId: user.Id, + }); + return res.data; + }, + staleTime: 10 * 60 * 1000, + enabled: !!open && !!api && !!user?.Id && !!currentLibraryId, + }); + + const handleToggle = (key: FILTERS) => { + setLocalFilters((prev) => { + const next = { ...prev }; + // isHD special: undefined if unchecked instead of false + if (key === "isHD") { + if (next[key]) delete next[key]; + else next[key] = true; + } else { + next[key] = !next[key]; + } + return next; + }); + }; + + const apply = () => { + if (!currentLibraryId) return; + if (debounceRef.current) window.clearTimeout(debounceRef.current); + debounceRef.current = window.setTimeout(() => { + updateLibrary(currentLibraryId, { + filters: localFilters as any, + videoTypesState: localVideoTypes as any, + genreIds: localGenreIds as any, + }); + onClose(); + }, 40); + }; + + const clearAll = () => { + setLocalFilters({}); + setLocalVideoTypes({}); + setLocalGenreIds([]); + }; + + const restore = () => setLocalFilters(initial); + const restoreVideo = () => setLocalVideoTypes(initialVideo); + const restoreGenres = () => setLocalGenreIds(initialGenres); + + return ( + + Filters + + + + expand_more
+ } + > + General + + + + {( + [ + "isPlayed", + "isUnPlayed", + "isResumable", + "isFavorite", + ] as FILTERS[] + ).map((k) => ( + handleToggle(k)} + size="small" + /> + } + label={FILTER_LABELS[k]} + /> + ))} + + + + + {isVideoCollection && ( + + expand_more
+ } + > + Video features + + + + {( + [ + "hasSubtitles", + "hasTrailer", + "hasSpecialFeature", + "hasThemeSong", + "hasThemeVideo", + ] as FILTERS[] + ).map((k) => ( + handleToggle(k)} + size="small" + /> + } + label={FILTER_LABELS[k]} + /> + ))} + + + + )} + + {isVideoCollection && ( + + expand_more + } + > + Resolution + + + + {(["isSD", "isHD", "is4K", "is3D"] as FILTERS[]).map( + (k) => ( + handleToggle(k)} + size="small" + /> + } + label={FILTER_LABELS[k]} + /> + ), + )} + + + + )} + + {isVideoCollection && ( + + expand_more + } + > + Media type + + + + {(["BluRay", "Dvd", "Iso", "VideoFile"] as const).map( + (k) => ( + + setLocalVideoTypes((prev) => ({ + ...(prev || {}), + [k]: !(prev as any)?.[k], + })) + } + size="small" + /> + } + label={k} + /> + ), + )} + + + + )} + + {/* Genres (all collection types) */} + {(genresData?.Items?.length || 0) > 0 && ( + + expand_more + } + > + Genres + + + + {(genresData?.Items || []).map((g: any) => ( + + setLocalGenreIds((prev) => + prev.includes(g.Id) + ? prev.filter((id) => id !== g.Id) + : [...prev, g.Id], + ) + } + size="small" + /> + } + label={g.Name} + /> + ))} + + + + )} + + + + + + + + + + ); + }, +); +(FiltersDialog as any).displayName = "FiltersDialog"; + +export const FiltersDialogTrigger: React.FC = () => { + const [open, setOpen] = React.useState(false); + const { id: currentLibraryId } = route.useParams(); + const { filters, videoTypesState, genreIds } = useLibraryStateStore( + useShallow((s) => { + const slice = s.libraries[currentLibraryId || ""]; + return { + filters: slice?.filters, + videoTypesState: slice?.videoTypesState, + genreIds: slice?.genreIds, + }; + }), + ); + const activeCount = useMemo(() => { + const a = Object.values(filters || {}).filter((v) => v === true).length; + const b = Object.values(videoTypesState || {}).filter( + (v) => v === true, + ).length; + const c = (genreIds || []).length; + return a + b + c; + }, [filters, videoTypesState, genreIds]); + return ( + <> + + setOpen(true)} + aria-label="Open filters dialog" + > +
+ filter_list + {activeCount > 0 && ( + + {activeCount} + + )} +
+
+
+ setOpen(false)} /> + + ); +}; + +export default FiltersDialog; diff --git a/src/components/libraryHeader/index.tsx b/src/components/libraryHeader/index.tsx new file mode 100644 index 0000000..aff83c5 --- /dev/null +++ b/src/components/libraryHeader/index.tsx @@ -0,0 +1,362 @@ +import type { BaseItemKind } from "@jellyfin/sdk/lib/generated-client"; +import { ItemSortBy, SortOrder } from "@jellyfin/sdk/lib/generated-client"; +import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api"; +import { + AppBar, + Chip, + IconButton, + MenuItem, + TextField, + Typography, + useScrollTrigger, +} from "@mui/material"; +import { useQueryClient, useSuspenseQuery } from "@tanstack/react-query"; +import { getRouteApi, useNavigate } from "@tanstack/react-router"; +import type { ChangeEvent } from "react"; +import React, { useCallback, useEffect, useMemo } from "react"; +import { useShallow } from "zustand/shallow"; +import { AVAILABLE_VIEWS, SORT_BY_OPTIONS } from "@/utils/constants/library"; +import { getLibraryQueryOptions } from "@/utils/queries/library"; +// import removed: header reads name/count from Zustand slice +import { useLibraryStateStore } from "@/utils/store/libraryState"; +import "./libraryHeader.scss"; +import BackButton from "../buttons/backButton"; +import { FiltersDialogTrigger } from "../filtersDialog"; +import { UserAvatarMenu } from "../userAvatarMenu"; + +const route = getRouteApi("/_api/library/$id"); + +const MemoizeBackButton = React.memo(BackButton); + +export const LibraryHeader = () => { + const { id: currentLibraryId } = route.useParams(); + const { api, user } = route.useRouteContext(); + const navigate = useNavigate(); + const queryClient = useQueryClient(); + + // Zustand library state (selected via shallow comparator) + const { + currentViewType, + storeSortBy, + storeSortAscending, + filters, + vts, + nameStartsWith, + genreIds, + libraryNameFromStore, + itemsTotalCount, + } = useLibraryStateStore( + useShallow((s) => { + const slice = s.libraries[currentLibraryId || ""]; + return { + currentViewType: slice?.currentViewType, + storeSortBy: slice?.sortBy, + storeSortAscending: slice?.sortAscending, + filters: slice?.filters, + vts: slice?.videoTypesState, + nameStartsWith: slice?.nameStartsWith, + genreIds: slice?.genreIds, + libraryNameFromStore: slice?.libraryName, + itemsTotalCount: slice?.itemsTotalCount, + }; + }), + ); + const { initLibrary, updateLibrary } = useLibraryStateStore( + useShallow((s) => ({ + initLibrary: s.initLibrary, + updateLibrary: s.updateLibrary, + })), + ); + + useEffect(() => { + if (!currentLibraryId) return; + // If the slice isn't initialized, these fields will be undefined + if ( + currentViewType === undefined && + storeSortBy === undefined && + storeSortAscending === undefined + ) { + initLibrary(currentLibraryId, { + sortBy: ItemSortBy.Name, + sortAscending: true, + }); + } + }, [ + currentLibraryId, + currentViewType, + storeSortBy, + storeSortAscending, + initLibrary, + ]); + const currentLibrary = useSuspenseQuery( + getLibraryQueryOptions(api, user?.Id, currentLibraryId), + ); + const scrollTrigger = useScrollTrigger({ + disableHysteresis: true, + threshold: 20, + }); + + const compatibleViews = useMemo( + () => + AVAILABLE_VIEWS.filter((v) => + v.compatibleCollectionTypes.includes( + currentLibrary.data.CollectionType as any, + ), + ), + [currentLibrary.data.CollectionType], + ); + // Values from store + const sortBy = (storeSortBy ?? ItemSortBy.Name) as string; + const sortAscending = storeSortAscending ?? true; + const effectiveViewType = currentViewType as any; + const effectiveSortByRaw = sortBy; + const effectiveSortAscending = sortAscending; + + const normalizedViewType = useMemo(() => { + const values = compatibleViews.map((v) => v.value); + if (effectiveViewType && values.includes(effectiveViewType as any)) + return effectiveViewType as any; + return values[0] as BaseItemKind | "Artist"; + }, [effectiveViewType, compatibleViews]); + + const normalizedSortBy = useMemo(() => { + const compatibleOptions = SORT_BY_OPTIONS.filter( + (option) => + option.compatibleViewTypes?.includes(normalizedViewType as any) || + option.compatibleCollectionTypes?.includes( + currentLibrary.data.CollectionType as any, + ), + ); + const compatibleValues = compatibleOptions.map((opt) => + Array.isArray(opt.value) ? opt.value.join(",") : String(opt.value), + ); + const current = String(effectiveSortByRaw ?? ""); + if (current && compatibleValues.includes(current)) return current; + return compatibleValues[0] ?? String(ItemSortBy.Name); + }, [ + effectiveSortByRaw, + normalizedViewType, + currentLibrary.data.CollectionType, + ]); + + const handleChangeViewType = (e: ChangeEvent) => { + const next = e.target.value as unknown as BaseItemKind | "Artist"; + if (currentLibraryId) + updateLibrary(currentLibraryId, { currentViewType: next }); + }; + const handleChangeSortBy = (e: ChangeEvent) => { + const next = e.target.value as unknown as string; + if (currentLibraryId) updateLibrary(currentLibraryId, { sortBy: next }); + }; + const handleSortAscendingToggle = () => { + if (currentLibraryId) + updateLibrary(currentLibraryId, { + sortAscending: !effectiveSortAscending, + }); + }; + + // (Video type multi-select temporarily removed; logic cleaned to reduce overhead.) + + // Prefetch helpers to reduce perceived latency on sort changes + // filters, vts, nameStartsWith, genreIds are already selected above + // Prefetch handler will be attached on menu items below + const prefetchItems = useCallback( + async (sortByValue: string, asc: boolean) => { + if (!api || !user?.Id || !currentLibraryId || !normalizedViewType) return; + const key = [ + "library", + "items", + currentLibraryId, + { + currentViewType: normalizedViewType, + sortAscending: asc, + sortBy: sortByValue, + filters, + videoTypesState: vts, + nameStartsWith, + genreIds, + }, + ] as const; + await queryClient.prefetchQuery({ + queryKey: key, + queryFn: async () => { + const result = await getItemsApi(api).getItems({ + userId: user.Id!, + parentId: currentLibraryId, + recursive: true, + includeItemTypes: [normalizedViewType as any], + sortOrder: [asc ? SortOrder.Ascending : SortOrder.Descending], + sortBy: String(sortByValue).split(",") as any, + enableUserData: true, + nameStartsWith: nameStartsWith || undefined, + genreIds: genreIds && genreIds.length > 0 ? genreIds : undefined, + }); + return result.data; + }, + staleTime: 5_000, + }); + }, + [ + api, + user?.Id, + currentLibraryId, + normalizedViewType, + filters, + vts, + nameStartsWith, + genreIds, + queryClient, + ], + ); + + const disableSortOption = useMemo( + () => + !normalizedViewType || + !SORT_BY_OPTIONS.some( + (option) => + option.compatibleViewTypes?.includes(normalizedViewType as any) || + option.compatibleCollectionTypes?.includes( + currentLibrary.data.CollectionType as any, + ), + ), + [normalizedViewType, currentLibrary.data.CollectionType], + ); + + const appBarStyling = useMemo( + () => ({ backgroundColor: "transparent", paddingRight: "0 !important" }), + [], + ); + + // Read values from Zustand: name set by route, count set by grid + const libraryName = libraryNameFromStore ?? currentLibrary.data.Name; + const totalCount = itemsTotalCount; + + const handleNavigateToSearch = useCallback( + () => navigate({ to: "/search", search: { query: "" } }), + [navigate], + ); + const handleNavigateToHome = useCallback( + () => navigate({ to: "/home" }), + [navigate], + ); + const handleNavigateToFavorite = useCallback( + () => navigate({ to: "/favorite" }), + [navigate], + ); + + return ( + +
+ +
menu
+
+ + +
+ home +
+
+
+
+
+ + {libraryName} + + {typeof totalCount === "number" && ( + + )} +
+ + {compatibleViews.map((v) => ( + + {v.title} + + ))} + + +
+ sort +
+
+ + {SORT_BY_OPTIONS.map((option) => { + const isCompatible = + option.compatibleViewTypes?.includes(currentViewType as any) || + option.compatibleCollectionTypes?.includes( + currentLibrary.data.CollectionType as any, + ); + if (!isCompatible) return null; + const valueStr = Array.isArray(option.value) + ? option.value.join(",") + : option.value; + return ( + + prefetchItems(String(valueStr), sortAscending) + } + > + {option.title} + + ); + })} + + +
+
+ +
search
+
+ +
favorite
+
+ +
+
+ ); +}; diff --git a/src/components/libraryHeader/libraryHeader.scss b/src/components/libraryHeader/libraryHeader.scss new file mode 100644 index 0000000..9c66eef --- /dev/null +++ b/src/components/libraryHeader/libraryHeader.scss @@ -0,0 +1,34 @@ +.library-header { + display: flex; + align-items: center; + justify-content: space-between; + inset: 1em 1em auto 1em !important; + border-radius: 9999px; + margin: 0 auto; + width: fit-content; + position: sticky; + width: calc(100vw - 4em) !important; + z-index: 10; + padding: 0.25em !important; + transition: all 0.2s ease-in-out; + + &::after { + content: ""; + position: absolute; + backdrop-filter: blur(40px); + inset: -0.35em; + pointer-events: none; + border-radius: inherit; + box-shadow: 0 0 25px rgb(0 0 0 / 0.45); + background: rgb(0 0 0 / 0.4); + opacity: 0; + z-index: -1; + transition: opacity $transition-time-fast; + } + + &.scrolling { + &::after { + opacity: 1; + } + } +} diff --git a/src/components/libraryItemsGrid/index.tsx b/src/components/libraryItemsGrid/index.tsx index 9a2237d..be5dfef 100644 --- a/src/components/libraryItemsGrid/index.tsx +++ b/src/components/libraryItemsGrid/index.tsx @@ -1,239 +1,315 @@ import { - type BaseItemDtoQueryResult, + type BaseItemDto, BaseItemKind, - ItemFilter, - type ItemSortBy, - SortOrder, - VideoType, } from "@jellyfin/sdk/lib/generated-client"; -import { getArtistsApi } from "@jellyfin/sdk/lib/utils/api/artists-api"; -import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api"; -import { getPersonsApi } from "@jellyfin/sdk/lib/utils/api/persons-api"; -import { getStudiosApi } from "@jellyfin/sdk/lib/utils/api/studios-api"; import { useSuspenseQuery } from "@tanstack/react-query"; import { getRouteApi } from "@tanstack/react-router"; -import type { AxiosResponse } from "axios"; -import React, { useEffect, useMemo, useState } from "react"; +import { useVirtualizer } from "@tanstack/react-virtual"; +import React, { + useCallback, + useEffect, + useMemo, + useRef, + useState, +} from "react"; +import "./libraryItemsGrid.scss"; import { useShallow } from "zustand/shallow"; import { getLibraryQueryOptions } from "@/utils/queries/library"; +import { getLibraryItemsQueryOptions } from "@/utils/queries/libraryItems"; import { useApiInContext } from "@/utils/store/api"; import { useBackdropStore } from "@/utils/store/backdrop"; import { useCentralStore } from "@/utils/store/central"; +import { useLibraryStateStore } from "@/utils/store/libraryState"; import { Card } from "../card/card"; const libraryRoute = getRouteApi("/_api/library/$id"); +/** + * Virtualized library items grid. + * Virtualizes vertical scrolling only; items are arranged into responsive columns. + * Assumptions: + * - Card aspect ratio handled by CSS; we approximate a fixed height for virtualization. + * - Width changes trigger re-measure via ResizeObserver. + * Future improvements: + * - Dynamic row height based on item type. + * - Horizontal virtualization for extremely wide displays. + */ const LibraryItemsGrid = () => { const api = useApiInContext((s) => s.api); const user = useCentralStore((s) => s.currentUser); + const { id: currentLibraryId } = libraryRoute.useParams(); const { currentViewType, - sortAscending = true, - sortBy = "SortName", - filters = {}, - videoTypesState = {}, - } = libraryRoute.useSearch(); - const currentLibraryId = libraryRoute.useParams().id; + sortAscending, + sortBy, + filters, + videoTypesState, + nameStartsWith, + genreIds, + } = useLibraryStateStore( + useShallow((s) => { + const slice = s.libraries[currentLibraryId || ""]; + return { + currentViewType: slice?.currentViewType, + sortAscending: slice?.sortAscending ?? true, + sortBy: slice?.sortBy ?? "Name", + filters: slice?.filters, + videoTypesState: slice?.videoTypesState, + nameStartsWith: slice?.nameStartsWith, + genreIds: slice?.genreIds, + }; + }), + ); + const updateLibrary = useLibraryStateStore((s) => s.updateLibrary); const currentLibrary = useSuspenseQuery( getLibraryQueryOptions(api, user?.Id, currentLibraryId), ); - const items = useSuspenseQuery({ - queryKey: [ - "library", - "items", - currentLibraryId, - { - currentViewType: currentViewType, - sortAscending: sortAscending, - sortBy: sortBy, - filters, - videoTypesState, - // genreFilter, - }, - ], - queryFn: async () => { - if (!api) return null; - let result: AxiosResponse; - if (currentViewType === "MusicArtist") { - result = await getArtistsApi(api).getAlbumArtists({ - userId: user?.Id, - parentId: currentLibraryId, - }); - } else if (currentViewType === "Artist") { - result = await getArtistsApi(api).getArtists({ - userId: user?.Id, - parentId: currentLibraryId, - }); - } else if (currentViewType === "Person") { - result = await getPersonsApi(api).getPersons({ - userId: user?.Id, - personTypes: ["Actor"], - }); - } else if (currentViewType === "Studio") { - result = await getStudiosApi(api).getStudios({ - userId: user?.Id, - parentId: currentLibraryId, - }); - } else if (currentViewType === "BoxSet") { - const videoTypes: VideoType[] = []; - if (videoTypesState.BluRay) videoTypes.push(VideoType.BluRay); - if (videoTypesState.Dvd) videoTypes.push(VideoType.Dvd); - if (videoTypesState.Iso) videoTypes.push(VideoType.Iso); - if (videoTypesState.VideoFile) videoTypes.push(VideoType.VideoFile); - - const filtersArray: ItemFilter[] = []; - if (filters.isPlayed) filtersArray.push(ItemFilter.IsPlayed); - if (filters.isUnPlayed) filtersArray.push(ItemFilter.IsUnplayed); - if (filters.isResumable) filtersArray.push(ItemFilter.IsResumable); - if (filters.isFavorite) filtersArray.push(ItemFilter.IsFavorite); - - result = await getItemsApi(api).getItems({ - userId: user?.Id, - parentId: currentLibraryId, - recursive: - currentLibrary.data.CollectionType === "boxsets" ? undefined : true, - // includeItemTypes: [currentViewType], - sortOrder: [ - sortAscending ? SortOrder.Ascending : SortOrder.Descending, - ], - sortBy: sortBy.split(",") as ItemSortBy[], - filters: filtersArray, - hasSubtitles: filters.hasSubtitles ? true : undefined, - hasTrailer: filters.hasTrailer ? true : undefined, - hasSpecialFeature: filters.hasSpecialFeature ? true : undefined, - hasThemeSong: filters.hasThemeSong ? true : undefined, - hasThemeVideo: filters.hasThemeVideo ? true : undefined, - videoTypes: videoTypes, - isHd: filters.isSD ? true : filters.isHD || undefined, - is4K: filters.is4K || undefined, - is3D: filters.is3D || undefined, - enableUserData: true, - // genreIds: genreFilter, - }); - } else { - const videoTypes: VideoType[] = []; - if (videoTypesState.BluRay) videoTypes.push(VideoType.BluRay); - if (videoTypesState.Dvd) videoTypes.push(VideoType.Dvd); - if (videoTypesState.Iso) videoTypes.push(VideoType.Iso); - if (videoTypesState.VideoFile) videoTypes.push(VideoType.VideoFile); - - const filtersArray: ItemFilter[] = []; - if (filters.isPlayed) filtersArray.push(ItemFilter.IsPlayed); - if (filters.isUnPlayed) filtersArray.push(ItemFilter.IsUnplayed); - if (filters.isResumable) filtersArray.push(ItemFilter.IsResumable); - if (filters.isFavorite) filtersArray.push(ItemFilter.IsFavorite); - if (!currentViewType) { - throw new Error("currentViewType is required"); - } - result = await getItemsApi(api).getItems({ - userId: user?.Id, - parentId: currentLibraryId, - recursive: true, - includeItemTypes: [currentViewType], - sortOrder: [ - sortAscending ? SortOrder.Ascending : SortOrder.Descending, - ], - sortBy: sortBy.split(",") as ItemSortBy[], - filters: filtersArray, - hasSubtitles: filters.hasSubtitles ? true : undefined, - hasTrailer: filters.hasTrailer ? true : undefined, - hasSpecialFeature: filters.hasSpecialFeature ? true : undefined, - hasThemeSong: filters.hasThemeSong ? true : undefined, - hasThemeVideo: filters.hasThemeVideo ? true : undefined, - videoTypes: videoTypes, - isHd: filters.isSD ? true : filters.isHD || undefined, - is4K: filters.is4K || undefined, - is3D: filters.is3D || undefined, - enableUserData: true, - // genreIds: genreFilter, - }); - } - return result.data; - }, - networkMode: "always", - }); + const items = useSuspenseQuery( + getLibraryItemsQueryOptions(api, user?.Id, currentLibraryId, { + currentViewType, + sortAscending, + sortBy, + filters, + videoTypesState, + nameStartsWith, + genreIds, + collectionType: currentLibrary.data.CollectionType as any, + }), + ); // --- Backdrop --- const setBackdrop = useBackdropStore(useShallow((s) => s.setBackdrop)); - const [currentBackdropIndex, setCurrentBackdropIndex] = useState(1); - const backdropItems = useMemo(() => { - if (items.isSuccess) { - const temp = items.data?.Items?.filter( - (item) => Object.keys(item.ImageBlurHashes?.Backdrop ?? {}).length > 0, - ); - const backdropItem = temp?.[0]; - - const currentBackdropItemHash = - backdropItem?.ImageBlurHashes?.Backdrop?.[ - Object.keys(backdropItem?.ImageBlurHashes?.Backdrop ?? {})[0] - ]; - setBackdrop(currentBackdropItemHash); - - return temp; - } - }, [items]); + const backdropIndexRef = useRef(0); + const backdropItems = useMemo(() => { + if (!items.isSuccess || !items.data?.Items) return []; + return items.data.Items.filter( + (item) => Object.keys(item.ImageBlurHashes?.Backdrop ?? {}).length > 0, + ); + }, [items.isSuccess, items.data?.Items]); useEffect(() => { - if (backdropItems?.length === 0 || !api || !backdropItems) { - return; // No backdrop items available - } + if (!api || !backdropItems || backdropItems.length === 0) return; + // Set initial backdrop once when items change + const firstBackdrop = backdropItems[0]; + const firstKey = Object.keys( + firstBackdrop?.ImageBlurHashes?.Backdrop ?? {}, + )[0]; + const initialHash = firstBackdrop?.ImageBlurHashes?.Backdrop?.[firstKey]; + if (initialHash) setBackdrop(initialHash); + backdropIndexRef.current = 0; + const intervalId = setInterval(() => { - const currentBackdropItemHash = - backdropItems[currentBackdropIndex].ImageBlurHashes?.Backdrop?.[ - Object.keys( - backdropItems[currentBackdropIndex].ImageBlurHashes?.Backdrop ?? {}, - )[0] - ]; - if (!currentBackdropItemHash) return; // No backdrop image available - setBackdrop(currentBackdropItemHash); - setCurrentBackdropIndex( - (prevIndex) => (prevIndex + 1) % backdropItems.length, + backdropIndexRef.current = + (backdropIndexRef.current + 1) % backdropItems.length; + const idx = backdropIndexRef.current; + const keys = Object.keys( + backdropItems[idx]?.ImageBlurHashes?.Backdrop ?? {}, ); + const nextHash = backdropItems[idx]?.ImageBlurHashes?.Backdrop?.[keys[0]]; + if (nextHash) { + // Defer backdrop update to idle/raf to avoid blocking UI + const schedule = + (window as any).requestIdleCallback || window.requestAnimationFrame; + schedule(() => setBackdrop(nextHash)); + } }, 10_000); // Update backdrop every 10s return () => clearInterval(intervalId); - }, [backdropItems]); + }, [api, backdropItems, setBackdrop]); + // --- Virtualization setup --- + const parentRef = useRef(null); + const scrollParentRef = useRef(null); + const [containerWidth, setContainerWidth] = useState(0); + + // Determine column count based on container width (simple heuristic) + const [columns, setColumns] = useState(1); + const measureColumns = useCallback(() => { + if (!parentRef.current) return; + const width = parentRef.current.clientWidth; + setContainerWidth(width); + // Base desired approximate card width (including gap) 180px + const ideal = Math.max(1, Math.floor(width / 180)); + setColumns(ideal); + }, []); + + useEffect(() => { + measureColumns(); + if (!parentRef.current) return; + // Find the page's scroll container ('.scrollY') to avoid nested scrolling + scrollParentRef.current = parentRef.current.closest( + ".scrollY", + ) as HTMLElement | null; + const ro = new ResizeObserver(() => measureColumns()); + ro.observe(parentRef.current); + return () => ro.disconnect(); + }, [measureColumns]); + + const itemCount = items.data?.Items?.length ?? 0; + // Compute number of virtual rows + const rowCount = Math.ceil(itemCount / columns); + + // Estimated row height (depends on card type). Using 260px as base (portrait taller) + // Compute card width minus gaps + const cardGap = 16; // px gap between cards + const cardWidth = useMemo(() => { + if (columns <= 0) return 180; + const totalGap = (columns - 1) * cardGap; + return Math.floor((containerWidth - totalGap) / columns); + }, [columns, containerWidth]); + + // Approximate tallest card height (portrait ratio ~ 2:3 => height ≈ width / 0.666) + text/footer area + // We add a small buffer (20px) for hover overlays and progress bars + const estimatedTallCardHeight = useMemo( + () => Math.round(cardWidth / 0.666666 + 90), + [cardWidth], + ); + + const estimateRowHeight = useCallback( + () => estimatedTallCardHeight, + [estimatedTallCardHeight], + ); + + const virtualizer = useVirtualizer({ + count: rowCount, + getScrollElement: () => scrollParentRef.current, + estimateSize: estimateRowHeight, + overscan: 2, + }); + + const virtualItems = virtualizer.getVirtualItems(); + + // Update count in Zustand so header can display it without extra fetches + useEffect(() => { + const total = items.data?.TotalRecordCount; + if (currentLibraryId && typeof total === "number") { + updateLibrary(currentLibraryId, { itemsTotalCount: total }); + } + }, [items.data?.TotalRecordCount, currentLibraryId, updateLibrary]); + return ( -
- {items.data?.Items?.map((item) => ( - - ))} +
+ {items.isSuccess && itemCount === 0 ? ( +
+
+
+ sentiment_dissatisfied +
+
No items to show
+
+ Try adjusting filters, sort, or the A–Z selector. +
+
+
+ ) : ( +
+ {virtualItems.map((row) => { + const startIndex = row.index * columns; + const endIndex = Math.min(startIndex + columns, itemCount); + return ( +
{ + if (el) virtualizer.measureElement(el); + }} + > + {items.data?.Items?.slice(startIndex, endIndex).map( + (item: BaseItemDto, localIndex: number) => { + return ( +
+ +
+ ); + }, + )} +
+ ); + })} +
+ )}
); }; diff --git a/src/components/libraryItemsGrid/libraryItemsGrid.scss b/src/components/libraryItemsGrid/libraryItemsGrid.scss new file mode 100644 index 0000000..0019124 --- /dev/null +++ b/src/components/libraryItemsGrid/libraryItemsGrid.scss @@ -0,0 +1,31 @@ +// Overrides for virtualized library items layout to prevent horizontal overflow +.library-items-container.virtualized { + overflow-x: hidden; + box-sizing: border-box; + width: 100%; + display: block !important; // override grid from route styles + padding: 0 !important; // override padding from route styles + position: relative; // required for absolutely positioned rows + gap: 0 !important; + justify-items: normal !important; + align-content: stretch !important; + > .card { + max-width: none !important; + } + // Ensure no unintended padding expands width + padding-right: 0; + padding-left: 0; + .card { + margin-right: 0 !important; + margin-bottom: 0.6em !important; // keep a consistent vertical rhythm + } + .card-image-container { + // Remove box shadow spread from affecting layout width calculation + box-sizing: border-box; + } +} + +// When page has audio-playing class, avoid extra bottom padding causing scrollbars +.audio-playing .library-items-container.virtualized { + padding-bottom: 8em; // mimic original intent without affecting width +} diff --git a/src/components/libraryMenu/index.tsx b/src/components/libraryMenu/index.tsx deleted file mode 100644 index 81d55b0..0000000 --- a/src/components/libraryMenu/index.tsx +++ /dev/null @@ -1,126 +0,0 @@ -import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client"; -import { useScrollTrigger } from "@mui/material"; -import { useSuspenseQuery } from "@tanstack/react-query"; -import { getRouteApi, useNavigate } from "@tanstack/react-router"; -import React, { type ChangeEvent, useMemo } from "react"; -import { - AVAILABLE_VIEWS, - type FILTERS, - SORT_BY_OPTIONS, -} from "@/utils/constants/library"; -import { getLibraryQueryOptions } from "@/utils/queries/library"; - -const route = getRouteApi("/_api/library/$id"); - -const LibraryMenu = () => { - const { currentViewType, sortAscending, filters, sortBy } = route.useSearch(); - const { id: currentLibraryId } = route.useParams(); - const { api, user } = route.useRouteContext(); - const currentLibrary = useSuspenseQuery( - getLibraryQueryOptions(api, user?.Id, currentLibraryId), - ); - const scrollTrigger = useScrollTrigger({ - disableHysteresis: true, - threshold: 20, - }); - const navigate = useNavigate(); - const _handleSortAsecendingToggle = () => { - navigate({ - search: { - sortAscending: !sortAscending, - sortBy, - }, - to: "/library/$id", - params: { - id: currentLibraryId ?? "", - }, - }); - }; - const _handleChangeSortBy = () => { - navigate({ - search: { - sortBy, - }, - to: "/library/$id", - params: { - id: currentLibraryId ?? "", - }, - }); - }; - const _handleChangeCurrentViewType = (viewType: BaseItemKind) => { - navigate({ - search: { - currentViewType: viewType, - }, - to: "/library/$id", - params: { - id: currentLibraryId ?? "", - }, - }); - }; - - const [filterButtonAnchorEl, setFilterButtonAnchorEl] = - React.useState(null); - const _filterMenuOpen = useMemo( - () => Boolean(filterButtonAnchorEl), - [filterButtonAnchorEl], - ); - const _handleFilterDropdown = (event: React.MouseEvent) => { - setFilterButtonAnchorEl(event.currentTarget); - }; - - const _handleFilterChange = (key: FILTERS, value: boolean) => { - // Update filter state and navigate - navigate({ - search: { - filters: { ...filters, [key]: value }, - }, - to: "/library/$id", - params: { - id: currentLibraryId ?? "", - }, - }); - // Close the filter menu - setFilterButtonAnchorEl(null); - }; - - const _disableSortOption = useMemo(() => { - return ( - !currentViewType || - !SORT_BY_OPTIONS.some( - (option) => - option.compatibleViewTypes?.includes(currentViewType as any) || - option.compatibleCollectionTypes?.includes( - currentLibrary.data.CollectionType as any, - ), - ) - ); - }, [currentViewType, currentLibrary.data.CollectionType]); - const _disableFilters = useMemo(() => { - switch (currentViewType) { - case BaseItemKind.Movie: - case BaseItemKind.Audio: - case BaseItemKind.Series: - case BaseItemKind.BoxSet: - return false; - default: - return true; - } - }, [currentViewType]); - - if (!filters) { - return null; - } - - return ( -
- ); -}; - -export default LibraryMenu; diff --git a/src/components/userAvatarMenu/index.tsx b/src/components/userAvatarMenu/index.tsx new file mode 100644 index 0000000..0fbccd2 --- /dev/null +++ b/src/components/userAvatarMenu/index.tsx @@ -0,0 +1,144 @@ +import { + Avatar, + Divider, + IconButton, + ListItemIcon, + Menu, + MenuItem, +} from "@mui/material"; +import { useQueryClient } from "@tanstack/react-query"; +import { useNavigate, useRouter } from "@tanstack/react-router"; +import React, { + type MouseEventHandler, + useCallback, + useMemo, + useState, +} from "react"; +import { delUser } from "@/utils/storage/user"; +import { useApiInContext } from "@/utils/store/api"; +import { useCentralStore } from "@/utils/store/central"; +import { + setSettingsDialogOpen, + setSettingsTabValue, +} from "@/utils/store/settings"; + +export const UserAvatarMenu = () => { + const api = useApiInContext((s) => s.api); + const createApi = useApiInContext((s) => s.createApi); + const [user, resetCurrentUser] = useCentralStore((s) => [ + s.currentUser, + s.resetCurrentUser, + ]); + const navigate = useNavigate(); + const router = useRouter(); + const queryClient = useQueryClient(); + + const [anchorEl, setAnchorEl] = useState(null); + const openMenu = Boolean(anchorEl); + + const handleMenuOpen: MouseEventHandler = useCallback( + (event) => { + setAnchorEl(event.currentTarget); + }, + [], + ); + + const handleMenuClose = useCallback(() => { + setAnchorEl(null); + }, []); + + const handleLogout = useCallback(async () => { + console.log("Logging out user..."); + await api?.logout(); + createApi(api?.basePath ?? "", undefined); + resetCurrentUser(); + delUser(); + sessionStorage.removeItem("accessToken"); + queryClient.clear(); + await router.invalidate(); + setAnchorEl(null); + navigate({ to: "/login", replace: true }); + }, [api, createApi, navigate, queryClient, resetCurrentUser, router]); + + const menuButtonSx = useMemo(() => ({ p: 0 }), []); + const menuStyle = useMemo(() => ({ mt: 2 }), []); + + return ( +
+ + {!!user?.Id && + (user?.PrimaryImageTag === undefined ? ( + + + account_circle + + + ) : ( + + + account_circle + + + ))} + + + { + handleLogout(); + handleMenuClose(); + }} + > + +
logout
+
+ Logout +
+ + { + setSettingsDialogOpen(true); + setSettingsTabValue(1); + handleMenuClose(); + }} + > + +
settings
+
+ Settings +
+ { + navigate({ to: "/settings/preferences" }); + handleMenuClose(); + }} + > + +
tune
+
+ Preferences +
+ { + navigate({ to: "/settings/about" }); + handleMenuClose(); + }} + > + +
info
+
+ About +
+
+
+ ); +}; diff --git a/src/routes/_api/home/index.tsx b/src/routes/_api/home/index.tsx index 86c06ce..2d14ae4 100644 --- a/src/routes/_api/home/index.tsx +++ b/src/routes/_api/home/index.tsx @@ -190,10 +190,7 @@ function Home() { disableOverlay onClick={() => { if (item.Id) { - navigate({ - to: "/library/$id", - params: { id: item.Id }, - }); + navigate({ to: "/library/$id", params: { id: item.Id } }); } }} overrideIcon={item.CollectionType} @@ -209,9 +206,7 @@ function Home() {
} > - {upNextItems.isSuccess && !upNextItems.data?.TotalRecordCount ? ( - <> - ) : ( + {upNextItems.isSuccess && !upNextItems.data?.TotalRecordCount && ( {upNextItems.data?.Items?.map((item) => { return ( diff --git a/src/routes/_api/library/$id.tsx b/src/routes/_api/library/$id.tsx index f8d6689..0034f62 100644 --- a/src/routes/_api/library/$id.tsx +++ b/src/routes/_api/library/$id.tsx @@ -1,17 +1,19 @@ import { BaseItemKind, ItemSortBy } from "@jellyfin/sdk/lib/generated-client"; -import CircularProgress from "@mui/material/CircularProgress"; -import Typography from "@mui/material/Typography"; import { useSuspenseQuery } from "@tanstack/react-query"; -import React, { Suspense } from "react"; +import React, { Suspense, useEffect } from "react"; import "./library.scss"; -import { createFileRoute, redirect } from "@tanstack/react-router"; -import { z } from "zod"; +import { createFileRoute } from "@tanstack/react-router"; +import { useShallow } from "zustand/shallow"; +import { AlphaSelector } from "@/components/alphaSelector"; +import { LibraryHeader } from "@/components/libraryHeader"; import LibraryItemsGrid from "@/components/libraryItemsGrid"; -import LibraryMenu from "@/components/libraryMenu"; import LibraryItemsSkeleton from "@/components/skeleton/libraryItems"; +import { getDefaultSortByForCollectionType } from "@/utils/constants/library"; import { getLibraryQueryOptions } from "@/utils/queries/library"; import { useApiInContext } from "@/utils/store/api"; import { useCentralStore } from "@/utils/store/central"; +import useHeaderStore from "@/utils/store/header"; +import { useLibraryStateStore } from "@/utils/store/libraryState"; // type SortByObject = { title: string; value: string }; // type ViewObject = { title: string; value: BaseItemKind | "Artist" }; @@ -19,107 +21,6 @@ import { useCentralStore } from "@/utils/store/central"; export const Route = createFileRoute("/_api/library/$id")({ component: Library, - validateSearch: z.object({ - sortBy: z.optional(z.enum(ItemSortBy)), - sortAscending: z.optional(z.boolean()), - currentViewType: z.optional( - z.union([z.enum(BaseItemKind), z.literal("Artist")]), - ), - filters: z.optional( - z.object({ - isPlayed: z.optional(z.boolean()), - isUnPlayed: z.optional(z.boolean()), - isResumable: z.optional(z.boolean()), - isFavorite: z.optional(z.boolean()), - hasSubtitles: z.optional(z.boolean()), - hasTrailer: z.optional(z.boolean()), - hasSpecialFeature: z.optional(z.boolean()), - hasThemeSong: z.optional(z.boolean()), - hasThemeVideo: z.optional(z.boolean()), - isSD: z.optional(z.boolean()), - isHD: z.optional(z.boolean()), - is4K: z.optional(z.boolean()), - is3D: z.optional(z.boolean()), - }), - ), - videoTypesState: z.optional( - z.object({ - BluRay: z.optional(z.boolean()), - Dvd: z.optional(z.boolean()), - Iso: z.optional(z.boolean()), - VideoFile: z.optional(z.boolean()), - }), - ), - }), - loaderDeps: ({ search }) => ({ - ...search, - }), - loader: async ({ - context: { queryClient, api, user }, - params, - deps: { ...search }, - }) => { - if (!api || !user?.Id) return null; - - if (Object.keys(search).length > 0) { - console.log("Using search params:", search); - // If search is not empty, ensure the library data is fetched - return await queryClient.ensureQueryData( - getLibraryQueryOptions(api, user.Id, params.id), - ); - } - const cachedSearch = sessionStorage.getItem(`library-${params.id}-config`); - if (cachedSearch) { - console.log("Using cached search params:", cachedSearch); - throw redirect({ - to: "/library/$id", - params: { id: params.id }, - search: JSON.parse(cachedSearch), - replace: true, - }); - } - - // Priority 3: No params anywhere, fetch the initial type to create them - const initialData = await queryClient.ensureQueryData( - getLibraryQueryOptions(api, user.Id, params.id), - ); - - // Now, redirect to the URL with the new initial params - throw redirect({ - to: "/library/$id", - search: { - sortAscending: true, - sortBy: ItemSortBy.Name, - currentViewType: - initialData?.CollectionType === "music" - ? BaseItemKind.MusicAlbum - : BaseItemKind.Movie, - filters: { - isPlayed: false, - isUnPlayed: false, - isResumable: false, - isFavorite: false, - hasSubtitles: false, - hasTrailer: false, - hasSpecialFeature: false, - hasThemeSong: false, - hasThemeVideo: false, - isSD: false, - isHD: undefined, - is4K: false, - is3D: false, - }, - videoTypesState: { - BluRay: false, - Dvd: false, - Iso: false, - VideoFile: false, - }, - }, - params: { id: params.id }, - replace: true, - }); - }, }); function Library() { @@ -132,45 +33,79 @@ function Library() { const currentLib = useSuspenseQuery( getLibraryQueryOptions(api, user?.Id, id), ); + const initLibrary = useLibraryStateStore((s) => s.initLibrary); + const updateLibrary = useLibraryStateStore((s) => s.updateLibrary); + const { currentViewType: storeViewType, libraryName: storeLibraryName } = + useLibraryStateStore( + useShallow((s) => { + const sl = s.libraries[id || ""]; + return { + currentViewType: sl?.currentViewType, + libraryName: sl?.libraryName, + } as const; + }), + ); + + React.useEffect(() => { + if (!id || !currentLib.data) return; + // Ensure library name is available in Zustand for header consumption + updateLibrary(id, { libraryName: currentLib.data.Name ?? undefined }); + const collectionType = currentLib.data.CollectionType; + + const detectedViewType: BaseItemKind | "Artist" = + collectionType === "music" + ? BaseItemKind.MusicAlbum + : collectionType === "movies" + ? BaseItemKind.Movie + : collectionType === "tvshows" + ? BaseItemKind.Series + : collectionType === "boxsets" + ? BaseItemKind.BoxSet + : collectionType === "books" + ? BaseItemKind.Book + : collectionType === "playlists" + ? BaseItemKind.Playlist + : BaseItemKind.Movie; + + // Initialize defaults if state not yet set + if (storeViewType === undefined) { + initLibrary(id, { + currentViewType: detectedViewType, + sortBy: + getDefaultSortByForCollectionType(collectionType as any) || + ItemSortBy.Name, + sortAscending: true, + }); + } + }, [id, storeViewType, initLibrary, updateLibrary, currentLib.data]); + + const { setPageTitle } = useHeaderStore( + useShallow((state) => ({ + setPageTitle: state.setPageTitle, + })), + ); + // Derive top app title from Zustand slice (library name) + useEffect(() => { + const title = storeLibraryName ?? "Library"; + setPageTitle(title); + }, [storeLibraryName, setPageTitle]); + + /* if (!id) { + // show loading if any route param is missing + return ; + } */ return (
-
-
- - {currentLib.isPending ? ( - - ) : ( - currentLib.data?.Name - )} - -
-
+ + }>
-
+
+ +
); diff --git a/src/routes/_api/library/library.scss b/src/routes/_api/library/library.scss index 2a0f10b..24a5154 100644 --- a/src/routes/_api/library/library.scss +++ b/src/routes/_api/library/library.scss @@ -54,10 +54,10 @@ overflow-y: auto; overflow-x: hidden; padding: 1.5em $page-margin; - padding-top: 4em; + // padding-top: 4em; &-header { position: fixed; - top: 4.4em; + top: 1em; z-index: 10; display: flex; align-items: center; @@ -67,12 +67,11 @@ transform: translate(-50%); border-radius: 100px; overflow: hidden; - transition: $transition-time-default; + transition: background $transition-time-default, box-shadow $transition-time-default; z-index: 1000; &.scrolling { background: rgb(0 0 0 / 0.4) !important; box-shadow: 0 0 25px rgb(0 0 0 / 0.45); - top: 1em; } } &-options { diff --git a/src/routes/_api/login/list.tsx b/src/routes/_api/login/list.tsx index b521dea..2ca19ad 100644 --- a/src/routes/_api/login/list.tsx +++ b/src/routes/_api/login/list.tsx @@ -1,18 +1,15 @@ +import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api"; +import { Chip, Typography } from "@mui/material"; import { useQuery } from "@tanstack/react-query"; import React, { useEffect } from "react"; -import { Chip, Typography } from "@mui/material"; - - -import { getUserApi } from "@jellyfin/sdk/lib/utils/api/user-api"; - import { ErrorNotice } from "@/components/notices/errorNotice/errorNotice.jsx"; import "./login.scss"; +import type { UserDto } from "@jellyfin/sdk/lib/generated-client"; +import { createFileRoute, Link } from "@tanstack/react-router"; import { useApiInContext } from "@/utils/store/api"; import { useBackdropStore } from "@/utils/store/backdrop.js"; -import type { UserDto } from "@jellyfin/sdk/lib/generated-client"; -import { Link, createFileRoute } from "@tanstack/react-router"; import avatar from "../../../assets/icons/avatar.png"; @@ -44,7 +41,7 @@ const UserCard = ({ user }: { user: UserDto }) => { ); -} +}; function LoginPublicUsersList() { const api = useApiInContext((s) => s.api); @@ -61,7 +58,7 @@ function LoginPublicUsersList() { const setBackdrop = useBackdropStore((state) => state.setBackdrop); useEffect(() => { - setBackdrop("", ""); + setBackdrop(""); }, []); if (users.isSuccess) { diff --git a/src/theme.ts b/src/theme.ts index 60b848b..29266fc 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -5,6 +5,7 @@ import { clrBackgroundDefault, clrSecondaryDefault, //@ts-ignore } from "./palette.module.scss"; + const { palette } = createTheme({}); const { augmentColor } = palette; export const theme = createTheme({ @@ -23,7 +24,7 @@ export const theme = createTheme({ default: clrBackgroundDefault, paper: clrBackgroundDark, }, - //@ts-ignore + //@ts-expect-error white: augmentColor({ color: { main: "#ffffff" } }), black: augmentColor({ color: { main: "#000" } }), mode: "dark", diff --git a/src/utils/constants/library.ts b/src/utils/constants/library.ts index 2f900f9..5999b6d 100644 --- a/src/utils/constants/library.ts +++ b/src/utils/constants/library.ts @@ -173,14 +173,14 @@ export const SORT_BY_OPTIONS: Array<{ title: "Random", value: ItemSortBy.Random, compatibleViewTypes: [ - BaseItemKind.MusicAlbum, - BaseItemKind.Audio, - BaseItemKind.Playlist, + // BaseItemKind.MusicAlbum, + // BaseItemKind.Audio, + // BaseItemKind.Playlist, ], compatibleCollectionTypes: [ - CollectionType.Movies, - CollectionType.Tvshows, - CollectionType.Boxsets, + // CollectionType.Movies, + // CollectionType.Tvshows, + // CollectionType.Boxsets, ], }, { @@ -242,6 +242,18 @@ export const SORT_BY_OPTIONS: Array<{ }, ]; +export const getDefaultSortByForCollectionType = ( + collectionType: CollectionType, +): ItemSortBy => { + const option = SORT_BY_OPTIONS.find((opt) => + opt.compatibleCollectionTypes?.includes(collectionType), + ); + return Array.isArray(option?.value) + ? option.value[0] + : option?.value || ItemSortBy.SortName; +}; + + export type FILTERS = | "isPlayed" | "isUnPlayed" diff --git a/src/utils/navigation.ts b/src/utils/navigation.ts new file mode 100644 index 0000000..20ae42c --- /dev/null +++ b/src/utils/navigation.ts @@ -0,0 +1,4 @@ +// Deprecated: navigation helpers for search-param based library state were removed. +// This file will be removed in a future commit. No exports remain. + +export {}; // keep as empty module diff --git a/src/utils/queries/library.ts b/src/utils/queries/library.ts index e3296da..61f3550 100644 --- a/src/utils/queries/library.ts +++ b/src/utils/queries/library.ts @@ -23,4 +23,5 @@ export const getLibraryQueryOptions = ( }); return result.data; }, + enabled: !!api && !!userId, }); diff --git a/src/utils/queries/libraryItems.ts b/src/utils/queries/libraryItems.ts new file mode 100644 index 0000000..7236a69 --- /dev/null +++ b/src/utils/queries/libraryItems.ts @@ -0,0 +1,174 @@ +import type { Api } from "@jellyfin/sdk"; +import type { + BaseItemDtoQueryResult, + BaseItemKind, + ItemSortBy, +} from "@jellyfin/sdk/lib/generated-client"; +import { + ItemFilter, + SortOrder, + VideoType, +} from "@jellyfin/sdk/lib/generated-client"; +import { getArtistsApi } from "@jellyfin/sdk/lib/utils/api/artists-api"; +import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api"; +import { getPersonsApi } from "@jellyfin/sdk/lib/utils/api/persons-api"; +import { getStudiosApi } from "@jellyfin/sdk/lib/utils/api/studios-api"; +import { queryOptions } from "@tanstack/react-query"; + +export interface LibraryItemsParams { + currentViewType?: + | BaseItemKind + | "Artist" + | "Person" + | "Studio" + | "MusicArtist" + | "BoxSet"; + sortAscending: boolean; + sortBy: string; // comma separated + filters?: Record; + videoTypesState?: { + BluRay?: boolean; + Dvd?: boolean; + Iso?: boolean; + VideoFile?: boolean; + }; + nameStartsWith?: string; + genreIds?: string[]; + collectionType?: string; // from library metadata (e.g. boxsets) + limit?: number; // optional (e.g. 0 for count-only) +} + +/** Build TanStack Query options for fetching library items with unified branching logic. */ +export const getLibraryItemsQueryOptions = ( + api: Api | null | undefined, + userId: string | null | undefined, + libraryId: string | null | undefined, + params: LibraryItemsParams, +) => { + return queryOptions({ + queryKey: [ + "library", + "items", + libraryId, + { + currentViewType: params.currentViewType, + sortAscending: params.sortAscending, + sortBy: params.sortBy, + filters: params.filters, + videoTypesState: params.videoTypesState, + nameStartsWith: params.nameStartsWith, + genreIds: params.genreIds, + collectionType: params.collectionType, + limit: params.limit, + }, + ], + queryFn: async () => { + if (!api || !userId || !libraryId || !params.currentViewType) { + return { Items: [], TotalRecordCount: 0 } as BaseItemDtoQueryResult; + } + const { currentViewType, videoTypesState, filters } = params; + const buildVideoTypes = (state: typeof videoTypesState) => { + const videoTypes: VideoType[] = []; + if (state?.BluRay) videoTypes.push(VideoType.BluRay); + if (state?.Dvd) videoTypes.push(VideoType.Dvd); + if (state?.Iso) videoTypes.push(VideoType.Iso); + if (state?.VideoFile) videoTypes.push(VideoType.VideoFile); + return videoTypes; + }; + const buildFilters = (f: typeof filters) => { + const filtersArray: ItemFilter[] = []; + if (f?.isPlayed) filtersArray.push(ItemFilter.IsPlayed); + if (f?.isUnPlayed) filtersArray.push(ItemFilter.IsUnplayed); + if (f?.isResumable) filtersArray.push(ItemFilter.IsResumable); + if (f?.isFavorite) filtersArray.push(ItemFilter.IsFavorite); + return filtersArray; + }; + let result: { data: BaseItemDtoQueryResult }; + if (currentViewType === "MusicArtist") { + result = await getArtistsApi(api).getAlbumArtists({ + userId: userId, + parentId: libraryId, + limit: params.limit, + }); + } else if (currentViewType === "Artist") { + result = await getArtistsApi(api).getArtists({ + userId: userId, + parentId: libraryId, + limit: params.limit, + }); + } else if (currentViewType === "Person") { + result = await getPersonsApi(api).getPersons({ + userId: userId, + personTypes: ["Actor"], + limit: params.limit, + }); + } else if (currentViewType === "Studio") { + result = await getStudiosApi(api).getStudios({ + userId: userId, + parentId: libraryId, + limit: params.limit, + }); + } else if (currentViewType === "BoxSet") { + result = await getItemsApi(api).getItems({ + userId: userId, + parentId: libraryId, + recursive: params.collectionType === "boxsets" ? undefined : true, + sortOrder: [ + params.sortAscending ? SortOrder.Ascending : SortOrder.Descending, + ], + sortBy: params.sortBy.split(",") as ItemSortBy[], + filters: buildFilters(filters), + hasSubtitles: filters?.hasSubtitles ? true : undefined, + hasTrailer: filters?.hasTrailer ? true : undefined, + hasSpecialFeature: filters?.hasSpecialFeature ? true : undefined, + hasThemeSong: filters?.hasThemeSong ? true : undefined, + hasThemeVideo: filters?.hasThemeVideo ? true : undefined, + videoTypes: buildVideoTypes(videoTypesState), + isHd: filters?.isSD ? true : filters?.isHD || undefined, + is4K: filters?.is4K || undefined, + is3D: filters?.is3D || undefined, + enableUserData: true, + nameStartsWith: params.nameStartsWith || undefined, + genreIds: + params.genreIds && params.genreIds.length > 0 + ? params.genreIds + : undefined, + limit: params.limit, + }); + } else { + result = await getItemsApi(api).getItems({ + userId: userId, + parentId: libraryId, + recursive: true, + includeItemTypes: [currentViewType], + sortOrder: [ + params.sortAscending ? SortOrder.Ascending : SortOrder.Descending, + ], + sortBy: params.sortBy.split(",") as ItemSortBy[], + filters: buildFilters(filters), + hasSubtitles: filters?.hasSubtitles ? true : undefined, + hasTrailer: filters?.hasTrailer ? true : undefined, + hasSpecialFeature: filters?.hasSpecialFeature ? true : undefined, + hasThemeSong: filters?.hasThemeSong ? true : undefined, + hasThemeVideo: filters?.hasThemeVideo ? true : undefined, + videoTypes: buildVideoTypes(videoTypesState), + isHd: filters?.isSD ? true : filters?.isHD || undefined, + is4K: filters?.is4K || undefined, + is3D: filters?.is3D || undefined, + enableUserData: true, + nameStartsWith: params.nameStartsWith || undefined, + genreIds: + params.genreIds && params.genreIds.length > 0 + ? params.genreIds + : undefined, + limit: params.limit, + }); + } + return result.data; + }, + staleTime: 5_000, + gcTime: 5 * 60_000, + refetchOnWindowFocus: false, + refetchOnReconnect: false, + }); +}; diff --git a/src/utils/schema/librarySearch.ts b/src/utils/schema/librarySearch.ts new file mode 100644 index 0000000..747cf78 --- /dev/null +++ b/src/utils/schema/librarySearch.ts @@ -0,0 +1,3 @@ +// Deprecated: Router search schema removed in favor of Zustand store. +// This file will be removed in a future commit. No exports remain. + diff --git a/src/utils/store/header.ts b/src/utils/store/header.ts new file mode 100644 index 0000000..29e4837 --- /dev/null +++ b/src/utils/store/header.ts @@ -0,0 +1,13 @@ +import { create } from "zustand"; + +type HeaderStoreType = { + pageTitle: string | null; + setPageTitle: (title: string | null) => void; +}; + +const useHeaderStore = create((set) => ({ + pageTitle: null, + setPageTitle: (title: string | null) => set(() => ({ pageTitle: title })), +})); + +export default useHeaderStore; diff --git a/src/utils/store/libraryDraft.ts b/src/utils/store/libraryDraft.ts new file mode 100644 index 0000000..767078c --- /dev/null +++ b/src/utils/store/libraryDraft.ts @@ -0,0 +1,4 @@ +// Deprecated: Draft store replaced by unified library state store in Zustand. +// This file will be removed in a future commit. No exports remain. + +export {}; // ensure this is a module with no exports diff --git a/src/utils/store/libraryState.ts b/src/utils/store/libraryState.ts new file mode 100644 index 0000000..4b12d8d --- /dev/null +++ b/src/utils/store/libraryState.ts @@ -0,0 +1,87 @@ +import type { BaseItemKind } from "@jellyfin/sdk/lib/generated-client"; +import { create } from "zustand"; +import { createJSONStorage, persist } from "zustand/middleware"; + +export type VideoTypesState = { + BluRay?: boolean; + Dvd?: boolean; + Iso?: boolean; + VideoFile?: boolean; +}; + +export type FiltersState = Record; + +export interface LibraryStateSlice { + currentViewType?: BaseItemKind | "Artist"; + sortBy: string; // comma joined for multi-key + sortAscending: boolean; + nameStartsWith?: string; + genreIds: string[]; + filters: FiltersState; + videoTypesState: VideoTypesState; + libraryName?: string; + itemsTotalCount?: number; +} + +export interface LibraryStateStore { + libraries: Record; + initLibrary: ( + libraryId: string, + defaults: Partial, + ) => void; + updateLibrary: ( + libraryId: string, + partial: Partial, + ) => void; + resetLibrary: (libraryId: string) => void; +} + +const defaultSlice: LibraryStateSlice = { + currentViewType: undefined, + sortBy: "Name", + sortAscending: true, + nameStartsWith: undefined, + genreIds: [], + filters: {}, + videoTypesState: {}, + libraryName: undefined, + itemsTotalCount: undefined, +}; + +export const useLibraryStateStore = create()( + persist( + (set) => ({ + libraries: {}, + initLibrary: (libraryId, defaults) => + set((s) => { + if (s.libraries[libraryId]) return s; // already initialized + return { + libraries: { + ...s.libraries, + [libraryId]: { ...defaultSlice, ...defaults }, + }, + }; + }), + updateLibrary: (libraryId, partial) => + set((s) => ({ + libraries: { + ...s.libraries, + [libraryId]: { + ...(s.libraries[libraryId] || defaultSlice), + ...partial, + }, + }, + })), + resetLibrary: (libraryId) => + set((s) => ({ + libraries: { ...s.libraries, [libraryId]: { ...defaultSlice } }, + })), + }), + { + name: "blink-library-state", + storage: createJSONStorage(() => sessionStorage), + partialize: (state) => ({ libraries: state.libraries }), + version: 1, + }, + ), +);