@vicinae/api 0.16.0 → 0.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/run.js +1 -1
- package/dist/api/ai.d.ts +2 -2
- package/dist/api/ai.js +2 -2
- package/dist/api/bus.d.ts +7 -2
- package/dist/api/cache.js +18 -12
- package/dist/api/clipboard.js +2 -2
- package/dist/api/command.js +2 -2
- package/dist/api/components/action-pannel.js +1 -1
- package/dist/api/components/actions.d.ts +21 -0
- package/dist/api/components/actions.js +25 -1
- package/dist/api/components/dropdown.js +2 -2
- package/dist/api/components/form.d.ts +19 -1
- package/dist/api/components/form.js +34 -11
- package/dist/api/components/grid.d.ts +1 -1
- package/dist/api/components/grid.js +11 -11
- package/dist/api/context/navigation-provider.js +1 -4
- package/dist/api/controls.js +6 -4
- package/dist/api/environment.d.ts +4 -0
- package/dist/api/file-search.d.ts +18 -18
- package/dist/api/file-search.js +18 -19
- package/dist/api/keyboard.d.ts +1 -1
- package/dist/api/keyboard.js +15 -17
- package/dist/api/lib/result.js +7 -1
- package/dist/api/oauth.d.ts +3 -8
- package/dist/api/oauth.js +51 -21
- package/dist/api/preference.js +2 -2
- package/dist/api/proto/application.d.ts +10 -0
- package/dist/api/proto/application.js +150 -3
- package/dist/api/proto/manager.d.ts +2 -0
- package/dist/api/proto/manager.js +32 -0
- package/dist/api/proto/oauth.d.ts +42 -0
- package/dist/api/proto/oauth.js +620 -5
- package/dist/api/proto/wm.d.ts +20 -0
- package/dist/api/proto/wm.js +291 -7
- package/dist/api/utils.d.ts +43 -0
- package/dist/api/utils.js +25 -2
- package/dist/api/window-management.d.ts +31 -2
- package/dist/api/window-management.js +29 -10
- package/dist/commands/develop/index.js +13 -11
- package/dist/schemas/manifest.d.ts +1 -1
- package/dist/schemas/manifest.js +5 -3
- package/package.json +73 -76
- package/types/jsx.d.ts +189 -170
package/types/jsx.d.ts
CHANGED
|
@@ -1,190 +1,209 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import type { ListItemDetailProps } from "../api/components/list";
|
|
4
4
|
import { ImageLike } from "../api/image";
|
|
5
5
|
import { SerializedColorLike } from "../api/color";
|
|
6
6
|
import { Keyboard } from "../api/keyboard";
|
|
7
7
|
import { Grid } from "../api/components/grid";
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
9
|
+
import "react";
|
|
10
|
+
import type { Application, DatePickerType, Quicklink } from "../src";
|
|
11
11
|
|
|
12
12
|
type BaseFormField = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
onBlur?: Function;
|
|
14
|
+
onFocus?: Function;
|
|
15
|
+
onChange?: Function;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
declare module "react" {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
19
|
+
namespace JSX {
|
|
20
|
+
interface IntrinsicElements {
|
|
21
|
+
view: {
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
};
|
|
24
|
+
detail: {
|
|
25
|
+
navigationTitle?: string;
|
|
26
|
+
markdown: string;
|
|
27
|
+
};
|
|
28
|
+
list: {
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
filtering?: boolean;
|
|
31
|
+
isLoading?: boolean;
|
|
32
|
+
isShowingDetail?: boolean;
|
|
33
|
+
searchBarPlaceholder?: string;
|
|
34
|
+
navigationTitle?: string;
|
|
35
|
+
onSearchTextChange?: (text: string) => void;
|
|
36
|
+
onSelectionChange?: (selectedItemId: string) => void;
|
|
37
|
+
};
|
|
38
|
+
"list-section": {
|
|
39
|
+
title?: string;
|
|
40
|
+
subtitle?: string;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
};
|
|
43
|
+
"list-item": {
|
|
44
|
+
title: string;
|
|
45
|
+
id?: string;
|
|
46
|
+
subtitle?: string;
|
|
47
|
+
icon?: ImageLike;
|
|
48
|
+
keywords?: string[];
|
|
49
|
+
children?: ReactNode;
|
|
50
|
+
};
|
|
51
|
+
"list-item-detail": ListItemDetailProps;
|
|
52
|
+
"list-item-detail-metadata": any;
|
|
50
53
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
grid: {
|
|
55
|
+
inset?: Grid.Inset;
|
|
56
|
+
columns?: number;
|
|
57
|
+
fit: Grid.Fit;
|
|
58
|
+
aspectRatio: Grid.AspectRatio;
|
|
56
59
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
60
|
+
children?: React.ReactNode;
|
|
61
|
+
filtering?: boolean;
|
|
62
|
+
isLoading?: boolean;
|
|
63
|
+
isShowingDetail?: boolean;
|
|
64
|
+
searchBarPlaceholder?: string;
|
|
65
|
+
navigationTitle?: string;
|
|
66
|
+
onSearchTextChange?: (text: string) => void;
|
|
67
|
+
onSelectionChange?: (selectedItemId: string) => void;
|
|
68
|
+
};
|
|
69
|
+
"grid-section": {
|
|
70
|
+
inset?: Grid.Inset;
|
|
71
|
+
columns?: number;
|
|
72
|
+
fit?: Grid.Fit;
|
|
73
|
+
aspectRatio?: Grid.AspectRatio;
|
|
71
74
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
title?: string;
|
|
76
|
+
subtitle?: string;
|
|
77
|
+
children?: React.ReactNode;
|
|
78
|
+
};
|
|
79
|
+
"grid-item": {
|
|
80
|
+
title?: string;
|
|
81
|
+
id?: string;
|
|
82
|
+
subtitle?: string;
|
|
83
|
+
content?:
|
|
84
|
+
| ImageLike
|
|
85
|
+
| { color: ColorLike }
|
|
86
|
+
| { value: ImageLike; tooltip?: string };
|
|
87
|
+
keywords?: string[];
|
|
88
|
+
children?: ReactNode;
|
|
89
|
+
};
|
|
84
90
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
91
|
+
"empty-view": {
|
|
92
|
+
description?: string;
|
|
93
|
+
title?: string;
|
|
94
|
+
icon?: ImageLike;
|
|
95
|
+
};
|
|
96
|
+
metadata: {
|
|
97
|
+
children?: React.ReactNode;
|
|
98
|
+
};
|
|
99
|
+
"metadata-label": {
|
|
100
|
+
title: string;
|
|
101
|
+
text: string;
|
|
102
|
+
icon?: ImageLike;
|
|
103
|
+
};
|
|
104
|
+
"metadata-separator": {};
|
|
105
|
+
"metadata-link": {
|
|
106
|
+
title: string;
|
|
107
|
+
target: string;
|
|
108
|
+
text: string;
|
|
109
|
+
};
|
|
110
|
+
"action-panel": {
|
|
111
|
+
title?: string;
|
|
112
|
+
children?: React.ReactNode;
|
|
113
|
+
};
|
|
114
|
+
"action-panel-submenu": {
|
|
115
|
+
title: string;
|
|
116
|
+
icon?: ImageLike;
|
|
117
|
+
onOpen?: () => void;
|
|
118
|
+
onSearchTextChange?: (text: string) => void;
|
|
119
|
+
children?: React.ReactNode;
|
|
120
|
+
};
|
|
121
|
+
"action-panel-section": {
|
|
122
|
+
title?: string;
|
|
123
|
+
children?: React.ReactNode;
|
|
124
|
+
};
|
|
125
|
+
action: {
|
|
126
|
+
title: string;
|
|
127
|
+
onAction: () => void;
|
|
128
|
+
onSubmit?: Function;
|
|
129
|
+
shortcut?: Keyboard.Shortcut;
|
|
130
|
+
icon?: ImageLike;
|
|
131
|
+
autoFocus?: boolean;
|
|
132
|
+
type?: string;
|
|
133
|
+
quicklink?: Quicklink;
|
|
134
|
+
};
|
|
135
|
+
"tag-list": {
|
|
136
|
+
title?: string;
|
|
137
|
+
children?: React.ReactNode;
|
|
138
|
+
};
|
|
139
|
+
"tag-item": {
|
|
140
|
+
color?: SerializedColorLike;
|
|
141
|
+
icon?: ImageLike;
|
|
142
|
+
text?: string;
|
|
143
|
+
onAction?: () => void;
|
|
144
|
+
};
|
|
145
|
+
form: {
|
|
146
|
+
enableDrafts: boolean;
|
|
147
|
+
isLoading: boolean;
|
|
148
|
+
navigationTitle?: string;
|
|
149
|
+
children?: React.ReactNode;
|
|
150
|
+
};
|
|
151
|
+
"link-accessory": {
|
|
152
|
+
target: string;
|
|
153
|
+
text: string;
|
|
154
|
+
};
|
|
155
|
+
"text-field": BaseFormField & {};
|
|
156
|
+
"tag-picker-field": BaseFormField & {};
|
|
157
|
+
"tag-picker-item": {
|
|
158
|
+
title: string;
|
|
159
|
+
value: string;
|
|
160
|
+
icon?: ImageLike;
|
|
161
|
+
};
|
|
162
|
+
"text-area-field": BaseFormField & {};
|
|
163
|
+
"file-picker-field": BaseFormField & {
|
|
164
|
+
allowMultipleSelection?: boolean;
|
|
165
|
+
canChooseDirectories?: boolean;
|
|
166
|
+
canChooseFiles?: boolean;
|
|
167
|
+
showHiddenFiles?: boolean;
|
|
168
|
+
};
|
|
169
|
+
"dropdown-field": BaseFormField & {
|
|
170
|
+
children?: ReactNode;
|
|
171
|
+
};
|
|
172
|
+
"date-picker-field": BaseFormField & {
|
|
173
|
+
min?: Date;
|
|
174
|
+
max?: Date;
|
|
175
|
+
type?: DatePickerType;
|
|
176
|
+
};
|
|
177
|
+
"checkbox-field": BaseFormField & {};
|
|
178
|
+
"password-field": {};
|
|
179
|
+
"textarea-field": {};
|
|
161
180
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
181
|
+
dropdown: {
|
|
182
|
+
onChange?: Function;
|
|
183
|
+
onSearchTextChange?: (text: string) => void;
|
|
184
|
+
children?: ReactNode;
|
|
185
|
+
};
|
|
186
|
+
"dropdown-section": {
|
|
187
|
+
title?: string;
|
|
188
|
+
children: ReactNode;
|
|
189
|
+
};
|
|
190
|
+
"dropdown-item": {
|
|
191
|
+
title: string;
|
|
192
|
+
value: string;
|
|
193
|
+
icon?: ImageLike;
|
|
194
|
+
keywords?: string[];
|
|
195
|
+
};
|
|
177
196
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
197
|
+
"form-description": {
|
|
198
|
+
title?: string;
|
|
199
|
+
text: string;
|
|
200
|
+
};
|
|
182
201
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
202
|
+
separator: {};
|
|
203
|
+
"menu-bar": {};
|
|
204
|
+
"menu-bar-item": {};
|
|
205
|
+
"menu-bar-submenu": {};
|
|
206
|
+
"menu-bar-section": {};
|
|
207
|
+
}
|
|
208
|
+
}
|
|
190
209
|
}
|