12 |
13 | Identifier |
14 | Description |
15 |
16 |
17 |
18 |
19 |
20 |
21 | `drag-as-window:allow-drag-back`
22 |
23 | |
24 |
25 |
26 | Enables the drag_back command without any pre-configured scope.
27 |
28 | |
29 |
30 |
31 |
32 |
33 |
34 | `drag-as-window:deny-drag-back`
35 |
36 | |
37 |
38 |
39 | Denies the drag_back command without any pre-configured scope.
40 |
41 | |
42 |
43 |
44 |
45 |
46 |
47 | `drag-as-window:allow-drag-new-window`
48 |
49 | |
50 |
51 |
52 | Enables the drag_new_window command without any pre-configured scope.
53 |
54 | |
55 |
56 |
57 |
58 |
59 |
60 | `drag-as-window:deny-drag-new-window`
61 |
62 | |
63 |
64 |
65 | Denies the drag_new_window command without any pre-configured scope.
66 |
67 | |
68 |
69 |
70 |
71 |
72 |
73 | `drag-as-window:allow-on-drop`
74 |
75 | |
76 |
77 |
78 | Enables the on_drop command without any pre-configured scope.
79 |
80 | |
81 |
82 |
83 |
84 |
85 |
86 | `drag-as-window:deny-on-drop`
87 |
88 | |
89 |
90 |
91 | Denies the on_drop command without any pre-configured scope.
92 |
93 | |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/crates/tauri-plugin-drag-as-window/permissions/default.toml:
--------------------------------------------------------------------------------
1 | "$schema" = "schemas/schema.json"
2 |
3 | [default]
4 | description = "Default permissions for the plugin"
5 | permissions = ["allow-drag-new-window", "allow-drag-back", "allow-on-drop"]
6 |
--------------------------------------------------------------------------------
/crates/tauri-plugin-drag-as-window/permissions/schemas/schema.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "http://json-schema.org/draft-07/schema#",
3 | "title": "PermissionFile",
4 | "description": "Permission file that can define a default permission, a set of permissions or a list of inlined permissions.",
5 | "type": "object",
6 | "properties": {
7 | "default": {
8 | "description": "The default permission set for the plugin",
9 | "anyOf": [
10 | {
11 | "$ref": "#/definitions/DefaultPermission"
12 | },
13 | {
14 | "type": "null"
15 | }
16 | ]
17 | },
18 | "set": {
19 | "description": "A list of permissions sets defined",
20 | "type": "array",
21 | "items": {
22 | "$ref": "#/definitions/PermissionSet"
23 | }
24 | },
25 | "permission": {
26 | "description": "A list of inlined permissions",
27 | "default": [],
28 | "type": "array",
29 | "items": {
30 | "$ref": "#/definitions/Permission"
31 | }
32 | }
33 | },
34 | "definitions": {
35 | "DefaultPermission": {
36 | "description": "The default permission set of the plugin.\n\nWorks similarly to a permission with the \"default\" identifier.",
37 | "type": "object",
38 | "required": [
39 | "permissions"
40 | ],
41 | "properties": {
42 | "version": {
43 | "description": "The version of the permission.",
44 | "type": [
45 | "integer",
46 | "null"
47 | ],
48 | "format": "uint64",
49 | "minimum": 1.0
50 | },
51 | "description": {
52 | "description": "Human-readable description of what the permission does. Tauri convention is to use