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