mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-20 21:20:42 +02:00
feat(positioner): add moveWindowConstrained for tray-icon positions (#2076)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-move-window-constrained"
|
||||
description = "Enables the move_window_constrained command without any pre-configured scope."
|
||||
commands.allow = ["move_window_constrained"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-move-window-constrained"
|
||||
description = "Denies the move_window_constrained command without any pre-configured scope."
|
||||
commands.deny = ["move_window_constrained"]
|
||||
@@ -3,7 +3,8 @@
|
||||
Allows the moveWindow and handleIconState APIs
|
||||
|
||||
- `allow-move-window`
|
||||
- `set-tray-icon-state`
|
||||
- `allow-move-window-constrained`
|
||||
- `allow-set-tray-icon-state`
|
||||
|
||||
## Permission Table
|
||||
|
||||
@@ -43,6 +44,32 @@ Denies the move_window command without any pre-configured scope.
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`positioner:allow-move-window-constrained`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Enables the move_window_constrained command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`positioner:deny-move-window-constrained`
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Denies the move_window_constrained command without any pre-configured scope.
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
`positioner:allow-set-tray-icon-state`
|
||||
|
||||
</td>
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
"$schema" = "schemas/schema.json"
|
||||
[default]
|
||||
description = "Allows the moveWindow and handleIconState APIs"
|
||||
permissions = ["allow-move-window", "set-tray-icon-state"]
|
||||
permissions = [
|
||||
"allow-move-window",
|
||||
"allow-move-window-constrained",
|
||||
"allow-set-tray-icon-state",
|
||||
]
|
||||
|
||||
@@ -304,6 +304,16 @@
|
||||
"type": "string",
|
||||
"const": "deny-move-window"
|
||||
},
|
||||
{
|
||||
"description": "Enables the move_window_constrained command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "allow-move-window-constrained"
|
||||
},
|
||||
{
|
||||
"description": "Denies the move_window_constrained command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"const": "deny-move-window-constrained"
|
||||
},
|
||||
{
|
||||
"description": "Enables the set_tray_icon_state command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
|
||||
Reference in New Issue
Block a user