@vicinae/api 0.13.3 → 0.14.0
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/dist/api/bus.d.ts +2 -0
- package/dist/api/clipboard.d.ts +34 -4
- package/dist/api/clipboard.js +38 -4
- package/dist/api/components/action-pannel.js +2 -6
- package/dist/api/components/actions.js +3 -13
- package/dist/api/components/dropdown.js +1 -2
- package/dist/api/components/empty-view.js +2 -6
- package/dist/api/components/form.js +1 -2
- package/dist/api/components/grid.d.ts +36 -40
- package/dist/api/components/grid.js +4 -35
- package/dist/api/components/list.d.ts +48 -47
- package/dist/api/components/list.js +3 -17
- package/dist/api/components/metadata.js +1 -5
- package/dist/api/components/tag.js +1 -5
- package/dist/api/controls.js +1 -0
- package/dist/api/image.d.ts +0 -7
- package/dist/api/image.js +1 -11
- package/dist/api/proto/clipboard.d.ts +23 -0
- package/dist/api/proto/clipboard.js +318 -3
- package/dist/api/proto/daemon.d.ts +23 -0
- package/dist/api/proto/daemon.js +332 -7
- package/package.json +2 -2
- package/types/jsx.d.ts +13 -11
- package/dist/api/raycast/components/action-panel.d.ts +0 -18
- package/dist/api/raycast/components/action-panel.js +0 -41
- package/dist/api/raycast/index.d.ts +0 -26
- package/dist/api/raycast/index.js +0 -50
- package/dist/api/raycast/local-storage.d.ts +0 -9
- package/dist/api/raycast/local-storage.js +0 -13
- package/dist/api/raycast/system.d.ts +0 -20
- package/dist/api/raycast/system.js +0 -73
- package/dist/api/raycast/utils.d.ts +0 -2
- package/dist/api/raycast/utils.js +0 -6
- package/dist/api/raycast/window-management.d.ts +0 -42
- package/dist/api/raycast/window-management.js +0 -82
package/dist/api/proto/daemon.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v6.32.0
|
|
6
6
|
// source: daemon.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Response = exports.Request = exports.UrlRequest = exports.UrlResponse = exports.protobufPackage = void 0;
|
|
8
|
+
exports.Response = exports.Request = exports.DmenuResponse = exports.DmenuRequest = exports.PingResponse = exports.PingRequest = exports.UrlRequest = exports.UrlResponse = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
exports.protobufPackage = "proto.ext.daemon";
|
|
@@ -97,13 +97,272 @@ exports.UrlRequest = {
|
|
|
97
97
|
return message;
|
|
98
98
|
},
|
|
99
99
|
};
|
|
100
|
+
function createBasePingRequest() {
|
|
101
|
+
return {};
|
|
102
|
+
}
|
|
103
|
+
exports.PingRequest = {
|
|
104
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
105
|
+
return writer;
|
|
106
|
+
},
|
|
107
|
+
decode(input, length) {
|
|
108
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
109
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
110
|
+
const message = createBasePingRequest();
|
|
111
|
+
while (reader.pos < end) {
|
|
112
|
+
const tag = reader.uint32();
|
|
113
|
+
switch (tag >>> 3) {
|
|
114
|
+
}
|
|
115
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
reader.skip(tag & 7);
|
|
119
|
+
}
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
fromJSON(_) {
|
|
123
|
+
return {};
|
|
124
|
+
},
|
|
125
|
+
toJSON(_) {
|
|
126
|
+
const obj = {};
|
|
127
|
+
return obj;
|
|
128
|
+
},
|
|
129
|
+
create(base) {
|
|
130
|
+
return exports.PingRequest.fromPartial(base ?? {});
|
|
131
|
+
},
|
|
132
|
+
fromPartial(_) {
|
|
133
|
+
const message = createBasePingRequest();
|
|
134
|
+
return message;
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
function createBasePingResponse() {
|
|
138
|
+
return {};
|
|
139
|
+
}
|
|
140
|
+
exports.PingResponse = {
|
|
141
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
142
|
+
return writer;
|
|
143
|
+
},
|
|
144
|
+
decode(input, length) {
|
|
145
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
146
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
147
|
+
const message = createBasePingResponse();
|
|
148
|
+
while (reader.pos < end) {
|
|
149
|
+
const tag = reader.uint32();
|
|
150
|
+
switch (tag >>> 3) {
|
|
151
|
+
}
|
|
152
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
reader.skip(tag & 7);
|
|
156
|
+
}
|
|
157
|
+
return message;
|
|
158
|
+
},
|
|
159
|
+
fromJSON(_) {
|
|
160
|
+
return {};
|
|
161
|
+
},
|
|
162
|
+
toJSON(_) {
|
|
163
|
+
const obj = {};
|
|
164
|
+
return obj;
|
|
165
|
+
},
|
|
166
|
+
create(base) {
|
|
167
|
+
return exports.PingResponse.fromPartial(base ?? {});
|
|
168
|
+
},
|
|
169
|
+
fromPartial(_) {
|
|
170
|
+
const message = createBasePingResponse();
|
|
171
|
+
return message;
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
function createBaseDmenuRequest() {
|
|
175
|
+
return { rawContent: "", navigationTitle: "", placeholder: "", noIcon: false, sectionTitle: "", noSection: false };
|
|
176
|
+
}
|
|
177
|
+
exports.DmenuRequest = {
|
|
178
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
179
|
+
if (message.rawContent !== "") {
|
|
180
|
+
writer.uint32(10).string(message.rawContent);
|
|
181
|
+
}
|
|
182
|
+
if (message.navigationTitle !== "") {
|
|
183
|
+
writer.uint32(18).string(message.navigationTitle);
|
|
184
|
+
}
|
|
185
|
+
if (message.placeholder !== "") {
|
|
186
|
+
writer.uint32(26).string(message.placeholder);
|
|
187
|
+
}
|
|
188
|
+
if (message.noIcon !== false) {
|
|
189
|
+
writer.uint32(32).bool(message.noIcon);
|
|
190
|
+
}
|
|
191
|
+
if (message.sectionTitle !== "") {
|
|
192
|
+
writer.uint32(42).string(message.sectionTitle);
|
|
193
|
+
}
|
|
194
|
+
if (message.noSection !== false) {
|
|
195
|
+
writer.uint32(48).bool(message.noSection);
|
|
196
|
+
}
|
|
197
|
+
return writer;
|
|
198
|
+
},
|
|
199
|
+
decode(input, length) {
|
|
200
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
201
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
202
|
+
const message = createBaseDmenuRequest();
|
|
203
|
+
while (reader.pos < end) {
|
|
204
|
+
const tag = reader.uint32();
|
|
205
|
+
switch (tag >>> 3) {
|
|
206
|
+
case 1: {
|
|
207
|
+
if (tag !== 10) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
message.rawContent = reader.string();
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
case 2: {
|
|
214
|
+
if (tag !== 18) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
message.navigationTitle = reader.string();
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
case 3: {
|
|
221
|
+
if (tag !== 26) {
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
message.placeholder = reader.string();
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
case 4: {
|
|
228
|
+
if (tag !== 32) {
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
message.noIcon = reader.bool();
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
case 5: {
|
|
235
|
+
if (tag !== 42) {
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
message.sectionTitle = reader.string();
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
case 6: {
|
|
242
|
+
if (tag !== 48) {
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
message.noSection = reader.bool();
|
|
246
|
+
continue;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
reader.skip(tag & 7);
|
|
253
|
+
}
|
|
254
|
+
return message;
|
|
255
|
+
},
|
|
256
|
+
fromJSON(object) {
|
|
257
|
+
return {
|
|
258
|
+
rawContent: isSet(object.rawContent) ? globalThis.String(object.rawContent) : "",
|
|
259
|
+
navigationTitle: isSet(object.navigationTitle) ? globalThis.String(object.navigationTitle) : "",
|
|
260
|
+
placeholder: isSet(object.placeholder) ? globalThis.String(object.placeholder) : "",
|
|
261
|
+
noIcon: isSet(object.noIcon) ? globalThis.Boolean(object.noIcon) : false,
|
|
262
|
+
sectionTitle: isSet(object.sectionTitle) ? globalThis.String(object.sectionTitle) : "",
|
|
263
|
+
noSection: isSet(object.noSection) ? globalThis.Boolean(object.noSection) : false,
|
|
264
|
+
};
|
|
265
|
+
},
|
|
266
|
+
toJSON(message) {
|
|
267
|
+
const obj = {};
|
|
268
|
+
if (message.rawContent !== "") {
|
|
269
|
+
obj.rawContent = message.rawContent;
|
|
270
|
+
}
|
|
271
|
+
if (message.navigationTitle !== "") {
|
|
272
|
+
obj.navigationTitle = message.navigationTitle;
|
|
273
|
+
}
|
|
274
|
+
if (message.placeholder !== "") {
|
|
275
|
+
obj.placeholder = message.placeholder;
|
|
276
|
+
}
|
|
277
|
+
if (message.noIcon !== false) {
|
|
278
|
+
obj.noIcon = message.noIcon;
|
|
279
|
+
}
|
|
280
|
+
if (message.sectionTitle !== "") {
|
|
281
|
+
obj.sectionTitle = message.sectionTitle;
|
|
282
|
+
}
|
|
283
|
+
if (message.noSection !== false) {
|
|
284
|
+
obj.noSection = message.noSection;
|
|
285
|
+
}
|
|
286
|
+
return obj;
|
|
287
|
+
},
|
|
288
|
+
create(base) {
|
|
289
|
+
return exports.DmenuRequest.fromPartial(base ?? {});
|
|
290
|
+
},
|
|
291
|
+
fromPartial(object) {
|
|
292
|
+
const message = createBaseDmenuRequest();
|
|
293
|
+
message.rawContent = object.rawContent ?? "";
|
|
294
|
+
message.navigationTitle = object.navigationTitle ?? "";
|
|
295
|
+
message.placeholder = object.placeholder ?? "";
|
|
296
|
+
message.noIcon = object.noIcon ?? false;
|
|
297
|
+
message.sectionTitle = object.sectionTitle ?? "";
|
|
298
|
+
message.noSection = object.noSection ?? false;
|
|
299
|
+
return message;
|
|
300
|
+
},
|
|
301
|
+
};
|
|
302
|
+
function createBaseDmenuResponse() {
|
|
303
|
+
return { output: "" };
|
|
304
|
+
}
|
|
305
|
+
exports.DmenuResponse = {
|
|
306
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
307
|
+
if (message.output !== "") {
|
|
308
|
+
writer.uint32(10).string(message.output);
|
|
309
|
+
}
|
|
310
|
+
return writer;
|
|
311
|
+
},
|
|
312
|
+
decode(input, length) {
|
|
313
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
314
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
315
|
+
const message = createBaseDmenuResponse();
|
|
316
|
+
while (reader.pos < end) {
|
|
317
|
+
const tag = reader.uint32();
|
|
318
|
+
switch (tag >>> 3) {
|
|
319
|
+
case 1: {
|
|
320
|
+
if (tag !== 10) {
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
message.output = reader.string();
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
reader.skip(tag & 7);
|
|
331
|
+
}
|
|
332
|
+
return message;
|
|
333
|
+
},
|
|
334
|
+
fromJSON(object) {
|
|
335
|
+
return { output: isSet(object.output) ? globalThis.String(object.output) : "" };
|
|
336
|
+
},
|
|
337
|
+
toJSON(message) {
|
|
338
|
+
const obj = {};
|
|
339
|
+
if (message.output !== "") {
|
|
340
|
+
obj.output = message.output;
|
|
341
|
+
}
|
|
342
|
+
return obj;
|
|
343
|
+
},
|
|
344
|
+
create(base) {
|
|
345
|
+
return exports.DmenuResponse.fromPartial(base ?? {});
|
|
346
|
+
},
|
|
347
|
+
fromPartial(object) {
|
|
348
|
+
const message = createBaseDmenuResponse();
|
|
349
|
+
message.output = object.output ?? "";
|
|
350
|
+
return message;
|
|
351
|
+
},
|
|
352
|
+
};
|
|
100
353
|
function createBaseRequest() {
|
|
101
|
-
return { url: undefined };
|
|
354
|
+
return { ping: undefined, url: undefined, dmenu: undefined };
|
|
102
355
|
}
|
|
103
356
|
exports.Request = {
|
|
104
357
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
358
|
+
if (message.ping !== undefined) {
|
|
359
|
+
exports.PingRequest.encode(message.ping, writer.uint32(10).fork()).join();
|
|
360
|
+
}
|
|
105
361
|
if (message.url !== undefined) {
|
|
106
|
-
exports.UrlRequest.encode(message.url, writer.uint32(
|
|
362
|
+
exports.UrlRequest.encode(message.url, writer.uint32(18).fork()).join();
|
|
363
|
+
}
|
|
364
|
+
if (message.dmenu !== undefined) {
|
|
365
|
+
exports.DmenuRequest.encode(message.dmenu, writer.uint32(26).fork()).join();
|
|
107
366
|
}
|
|
108
367
|
return writer;
|
|
109
368
|
},
|
|
@@ -118,9 +377,23 @@ exports.Request = {
|
|
|
118
377
|
if (tag !== 10) {
|
|
119
378
|
break;
|
|
120
379
|
}
|
|
380
|
+
message.ping = exports.PingRequest.decode(reader, reader.uint32());
|
|
381
|
+
continue;
|
|
382
|
+
}
|
|
383
|
+
case 2: {
|
|
384
|
+
if (tag !== 18) {
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
121
387
|
message.url = exports.UrlRequest.decode(reader, reader.uint32());
|
|
122
388
|
continue;
|
|
123
389
|
}
|
|
390
|
+
case 3: {
|
|
391
|
+
if (tag !== 26) {
|
|
392
|
+
break;
|
|
393
|
+
}
|
|
394
|
+
message.dmenu = exports.DmenuRequest.decode(reader, reader.uint32());
|
|
395
|
+
continue;
|
|
396
|
+
}
|
|
124
397
|
}
|
|
125
398
|
if ((tag & 7) === 4 || tag === 0) {
|
|
126
399
|
break;
|
|
@@ -130,13 +403,23 @@ exports.Request = {
|
|
|
130
403
|
return message;
|
|
131
404
|
},
|
|
132
405
|
fromJSON(object) {
|
|
133
|
-
return {
|
|
406
|
+
return {
|
|
407
|
+
ping: isSet(object.ping) ? exports.PingRequest.fromJSON(object.ping) : undefined,
|
|
408
|
+
url: isSet(object.url) ? exports.UrlRequest.fromJSON(object.url) : undefined,
|
|
409
|
+
dmenu: isSet(object.dmenu) ? exports.DmenuRequest.fromJSON(object.dmenu) : undefined,
|
|
410
|
+
};
|
|
134
411
|
},
|
|
135
412
|
toJSON(message) {
|
|
136
413
|
const obj = {};
|
|
414
|
+
if (message.ping !== undefined) {
|
|
415
|
+
obj.ping = exports.PingRequest.toJSON(message.ping);
|
|
416
|
+
}
|
|
137
417
|
if (message.url !== undefined) {
|
|
138
418
|
obj.url = exports.UrlRequest.toJSON(message.url);
|
|
139
419
|
}
|
|
420
|
+
if (message.dmenu !== undefined) {
|
|
421
|
+
obj.dmenu = exports.DmenuRequest.toJSON(message.dmenu);
|
|
422
|
+
}
|
|
140
423
|
return obj;
|
|
141
424
|
},
|
|
142
425
|
create(base) {
|
|
@@ -144,17 +427,29 @@ exports.Request = {
|
|
|
144
427
|
},
|
|
145
428
|
fromPartial(object) {
|
|
146
429
|
const message = createBaseRequest();
|
|
430
|
+
message.ping = (object.ping !== undefined && object.ping !== null)
|
|
431
|
+
? exports.PingRequest.fromPartial(object.ping)
|
|
432
|
+
: undefined;
|
|
147
433
|
message.url = (object.url !== undefined && object.url !== null) ? exports.UrlRequest.fromPartial(object.url) : undefined;
|
|
434
|
+
message.dmenu = (object.dmenu !== undefined && object.dmenu !== null)
|
|
435
|
+
? exports.DmenuRequest.fromPartial(object.dmenu)
|
|
436
|
+
: undefined;
|
|
148
437
|
return message;
|
|
149
438
|
},
|
|
150
439
|
};
|
|
151
440
|
function createBaseResponse() {
|
|
152
|
-
return { url: undefined };
|
|
441
|
+
return { ping: undefined, url: undefined, dmenu: undefined };
|
|
153
442
|
}
|
|
154
443
|
exports.Response = {
|
|
155
444
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
445
|
+
if (message.ping !== undefined) {
|
|
446
|
+
exports.PingResponse.encode(message.ping, writer.uint32(10).fork()).join();
|
|
447
|
+
}
|
|
156
448
|
if (message.url !== undefined) {
|
|
157
|
-
exports.UrlResponse.encode(message.url, writer.uint32(
|
|
449
|
+
exports.UrlResponse.encode(message.url, writer.uint32(18).fork()).join();
|
|
450
|
+
}
|
|
451
|
+
if (message.dmenu !== undefined) {
|
|
452
|
+
exports.DmenuResponse.encode(message.dmenu, writer.uint32(26).fork()).join();
|
|
158
453
|
}
|
|
159
454
|
return writer;
|
|
160
455
|
},
|
|
@@ -169,9 +464,23 @@ exports.Response = {
|
|
|
169
464
|
if (tag !== 10) {
|
|
170
465
|
break;
|
|
171
466
|
}
|
|
467
|
+
message.ping = exports.PingResponse.decode(reader, reader.uint32());
|
|
468
|
+
continue;
|
|
469
|
+
}
|
|
470
|
+
case 2: {
|
|
471
|
+
if (tag !== 18) {
|
|
472
|
+
break;
|
|
473
|
+
}
|
|
172
474
|
message.url = exports.UrlResponse.decode(reader, reader.uint32());
|
|
173
475
|
continue;
|
|
174
476
|
}
|
|
477
|
+
case 3: {
|
|
478
|
+
if (tag !== 26) {
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
message.dmenu = exports.DmenuResponse.decode(reader, reader.uint32());
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
175
484
|
}
|
|
176
485
|
if ((tag & 7) === 4 || tag === 0) {
|
|
177
486
|
break;
|
|
@@ -181,13 +490,23 @@ exports.Response = {
|
|
|
181
490
|
return message;
|
|
182
491
|
},
|
|
183
492
|
fromJSON(object) {
|
|
184
|
-
return {
|
|
493
|
+
return {
|
|
494
|
+
ping: isSet(object.ping) ? exports.PingResponse.fromJSON(object.ping) : undefined,
|
|
495
|
+
url: isSet(object.url) ? exports.UrlResponse.fromJSON(object.url) : undefined,
|
|
496
|
+
dmenu: isSet(object.dmenu) ? exports.DmenuResponse.fromJSON(object.dmenu) : undefined,
|
|
497
|
+
};
|
|
185
498
|
},
|
|
186
499
|
toJSON(message) {
|
|
187
500
|
const obj = {};
|
|
501
|
+
if (message.ping !== undefined) {
|
|
502
|
+
obj.ping = exports.PingResponse.toJSON(message.ping);
|
|
503
|
+
}
|
|
188
504
|
if (message.url !== undefined) {
|
|
189
505
|
obj.url = exports.UrlResponse.toJSON(message.url);
|
|
190
506
|
}
|
|
507
|
+
if (message.dmenu !== undefined) {
|
|
508
|
+
obj.dmenu = exports.DmenuResponse.toJSON(message.dmenu);
|
|
509
|
+
}
|
|
191
510
|
return obj;
|
|
192
511
|
},
|
|
193
512
|
create(base) {
|
|
@@ -195,7 +514,13 @@ exports.Response = {
|
|
|
195
514
|
},
|
|
196
515
|
fromPartial(object) {
|
|
197
516
|
const message = createBaseResponse();
|
|
517
|
+
message.ping = (object.ping !== undefined && object.ping !== null)
|
|
518
|
+
? exports.PingResponse.fromPartial(object.ping)
|
|
519
|
+
: undefined;
|
|
198
520
|
message.url = (object.url !== undefined && object.url !== null) ? exports.UrlResponse.fromPartial(object.url) : undefined;
|
|
521
|
+
message.dmenu = (object.dmenu !== undefined && object.dmenu !== null)
|
|
522
|
+
? exports.DmenuResponse.fromPartial(object.dmenu)
|
|
523
|
+
: undefined;
|
|
199
524
|
return message;
|
|
200
525
|
},
|
|
201
526
|
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vicinae/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "TypeScript SDK to build Vicinae extensions",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
7
7
|
"build": "tsc --outDir dist",
|
|
8
|
-
"protogen": "mkdir ./src/api/proto && protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto -I
|
|
8
|
+
"protogen": "mkdir -p ./src/api/proto && protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto -I../../proto ../../proto/*.proto --ts_proto_out ./src/api/proto",
|
|
9
9
|
"pack": "npm run build && npm pack",
|
|
10
10
|
"docgen-html": "typedoc src/api/index.ts",
|
|
11
11
|
"docgen-md": "typedoc src/api/index.ts --disableSources --readme none --plugin typedoc-plugin-markdown --out ./docs"
|
package/types/jsx.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
|
|
3
3
|
import type { ListItemDetailProps } from "../api/components/list";
|
|
4
|
-
import {
|
|
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
9
|
import 'react';
|
|
10
|
+
import { ImageLike, List } from "../src";
|
|
10
11
|
|
|
11
12
|
type BaseFormField = {
|
|
12
13
|
onBlur?: Function;
|
|
@@ -40,12 +41,12 @@ declare module "react" {
|
|
|
40
41
|
title: string;
|
|
41
42
|
id?: string;
|
|
42
43
|
subtitle?: string;
|
|
43
|
-
icon?:
|
|
44
|
+
icon?: ImageLike;
|
|
44
45
|
keywords?: string[];
|
|
46
|
+
children?: ReactNode;
|
|
45
47
|
};
|
|
46
48
|
"list-item-detail": ListItemDetailProps;
|
|
47
49
|
"list-item-detail-metadata": any;
|
|
48
|
-
"list-accessory": {};
|
|
49
50
|
|
|
50
51
|
grid: {
|
|
51
52
|
inset?: Grid.Inset;
|
|
@@ -76,14 +77,15 @@ declare module "react" {
|
|
|
76
77
|
title?: string;
|
|
77
78
|
id?: string;
|
|
78
79
|
subtitle?: string;
|
|
79
|
-
content?:
|
|
80
|
+
content?: ImageLike | { color: ColorLike } | { value: ImageLike, tooltip?: string };
|
|
80
81
|
keywords?: string[];
|
|
82
|
+
children?: ReactNode;
|
|
81
83
|
};
|
|
82
84
|
|
|
83
85
|
"empty-view": {
|
|
84
86
|
description?: string;
|
|
85
87
|
title?: string;
|
|
86
|
-
icon?:
|
|
88
|
+
icon?: ImageLike;
|
|
87
89
|
};
|
|
88
90
|
metadata: {
|
|
89
91
|
children?: React.ReactNode;
|
|
@@ -91,7 +93,7 @@ declare module "react" {
|
|
|
91
93
|
"metadata-label": {
|
|
92
94
|
title: string;
|
|
93
95
|
text: string;
|
|
94
|
-
icon?:
|
|
96
|
+
icon?: ImageLike;
|
|
95
97
|
};
|
|
96
98
|
"metadata-separator": {};
|
|
97
99
|
"metadata-link": {
|
|
@@ -105,7 +107,7 @@ declare module "react" {
|
|
|
105
107
|
};
|
|
106
108
|
"action-panel-submenu": {
|
|
107
109
|
title: string;
|
|
108
|
-
icon?:
|
|
110
|
+
icon?: ImageLike;
|
|
109
111
|
onOpen?: () => void;
|
|
110
112
|
onSearchTextChange?: (text: string) => void;
|
|
111
113
|
children?: React.ReactNode;
|
|
@@ -119,7 +121,7 @@ declare module "react" {
|
|
|
119
121
|
onAction: () => void;
|
|
120
122
|
onSubmit?: Function;
|
|
121
123
|
shortcut?: Keyboard.Shortcut;
|
|
122
|
-
icon?:
|
|
124
|
+
icon?: ImageLike;
|
|
123
125
|
autoFocus?: boolean;
|
|
124
126
|
};
|
|
125
127
|
"tag-list": {
|
|
@@ -128,7 +130,7 @@ declare module "react" {
|
|
|
128
130
|
};
|
|
129
131
|
"tag-item": {
|
|
130
132
|
color?: SerializedColorLike;
|
|
131
|
-
icon?:
|
|
133
|
+
icon?: ImageLike;
|
|
132
134
|
text?: string;
|
|
133
135
|
onAction?: () => void;
|
|
134
136
|
};
|
|
@@ -143,7 +145,7 @@ declare module "react" {
|
|
|
143
145
|
"tag-picker-item": {
|
|
144
146
|
title: string;
|
|
145
147
|
value: string;
|
|
146
|
-
icon?:
|
|
148
|
+
icon?: ImageLike;
|
|
147
149
|
},
|
|
148
150
|
"text-area-field": BaseFormField & {
|
|
149
151
|
}
|
|
@@ -169,7 +171,7 @@ declare module "react" {
|
|
|
169
171
|
"dropdown-item": {
|
|
170
172
|
title: string;
|
|
171
173
|
value: string;
|
|
172
|
-
icon?:
|
|
174
|
+
icon?: ImageLike;
|
|
173
175
|
keywords?: string[];
|
|
174
176
|
};
|
|
175
177
|
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as vicinae from '../../';
|
|
2
|
-
export declare const ActionPanel: import("react").FC<vicinae.ActionPanelProps> & {
|
|
3
|
-
Section: import("react").FC<import("react").PropsWithChildren<vicinae.ActionPanelSectionProps>>;
|
|
4
|
-
Submenu: import("react").FC<vicinae.ActionPanelSubmenuProps>;
|
|
5
|
-
} & {
|
|
6
|
-
Item: import("react").FC<vicinae.ActionProps> & {
|
|
7
|
-
CopyToClipboard: import("react").FC<vicinae.CopyToClipboardProps>;
|
|
8
|
-
Push: import("react").FC<vicinae.ActionPushProps>;
|
|
9
|
-
Open: import("react").FC<vicinae.ActionOpenProps>;
|
|
10
|
-
Paste: import("react").FC<vicinae.ActionPasteProps>;
|
|
11
|
-
SubmitForm: import("react").FC<vicinae.ActionSubmitFormProps>;
|
|
12
|
-
OpenInBrowser: import("react").FC<vicinae.ActionOpenInBrowserProps>;
|
|
13
|
-
Style: {
|
|
14
|
-
Regular: "regular";
|
|
15
|
-
Destructive: "destructive";
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.ActionPanel = void 0;
|
|
37
|
-
const vicinae = __importStar(require("../../"));
|
|
38
|
-
// older versions of the Raycast API had ActionPanel.Item
|
|
39
|
-
exports.ActionPanel = Object.assign(vicinae.ActionPanel, {
|
|
40
|
-
Item: vicinae.Action
|
|
41
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This entrypoint is used instead of the normal index.ts when we are
|
|
3
|
-
* dealing with a Raycast extension, e.g an extension that makes use of
|
|
4
|
-
* `@raycast/api` package instead of `@vicinae/api`.
|
|
5
|
-
*/
|
|
6
|
-
export * from "../hooks/index.js";
|
|
7
|
-
export * from "../context/index.js";
|
|
8
|
-
export * from "../bus.js";
|
|
9
|
-
export * from "../color.js";
|
|
10
|
-
export * from "../keyboard.js";
|
|
11
|
-
export * from "../image.js";
|
|
12
|
-
export * from "../icon.js";
|
|
13
|
-
export * from "../environment.js";
|
|
14
|
-
export * from "../controls.js";
|
|
15
|
-
export * from "../cache";
|
|
16
|
-
export * from "../toast";
|
|
17
|
-
export * from "../clipboard.js";
|
|
18
|
-
export * from "../oauth.js";
|
|
19
|
-
export * from "../alert.js";
|
|
20
|
-
export * from "../preference.js";
|
|
21
|
-
export * from "./system.js";
|
|
22
|
-
export * from "./local-storage.js";
|
|
23
|
-
export * from './window-management.js';
|
|
24
|
-
export { randomId } from './utils.js';
|
|
25
|
-
export { List, Grid, Form, Detail, Action } from '../components';
|
|
26
|
-
export { ActionPanel } from "./components/action-panel.js";
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This entrypoint is used instead of the normal index.ts when we are
|
|
4
|
-
* dealing with a Raycast extension, e.g an extension that makes use of
|
|
5
|
-
* `@raycast/api` package instead of `@vicinae/api`.
|
|
6
|
-
*/
|
|
7
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
-
}
|
|
13
|
-
Object.defineProperty(o, k2, desc);
|
|
14
|
-
}) : (function(o, m, k, k2) {
|
|
15
|
-
if (k2 === undefined) k2 = k;
|
|
16
|
-
o[k2] = m[k];
|
|
17
|
-
}));
|
|
18
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.ActionPanel = exports.Action = exports.Detail = exports.Form = exports.Grid = exports.List = exports.randomId = void 0;
|
|
23
|
-
__exportStar(require("../hooks/index.js"), exports);
|
|
24
|
-
__exportStar(require("../context/index.js"), exports);
|
|
25
|
-
__exportStar(require("../bus.js"), exports);
|
|
26
|
-
__exportStar(require("../color.js"), exports);
|
|
27
|
-
__exportStar(require("../keyboard.js"), exports);
|
|
28
|
-
__exportStar(require("../image.js"), exports);
|
|
29
|
-
__exportStar(require("../icon.js"), exports);
|
|
30
|
-
__exportStar(require("../environment.js"), exports);
|
|
31
|
-
__exportStar(require("../controls.js"), exports);
|
|
32
|
-
__exportStar(require("../cache"), exports);
|
|
33
|
-
__exportStar(require("../toast"), exports);
|
|
34
|
-
__exportStar(require("../clipboard.js"), exports);
|
|
35
|
-
__exportStar(require("../oauth.js"), exports);
|
|
36
|
-
__exportStar(require("../alert.js"), exports);
|
|
37
|
-
__exportStar(require("../preference.js"), exports);
|
|
38
|
-
__exportStar(require("./system.js"), exports);
|
|
39
|
-
__exportStar(require("./local-storage.js"), exports);
|
|
40
|
-
__exportStar(require("./window-management.js"), exports);
|
|
41
|
-
var utils_js_1 = require("./utils.js");
|
|
42
|
-
Object.defineProperty(exports, "randomId", { enumerable: true, get: function () { return utils_js_1.randomId; } });
|
|
43
|
-
var components_1 = require("../components");
|
|
44
|
-
Object.defineProperty(exports, "List", { enumerable: true, get: function () { return components_1.List; } });
|
|
45
|
-
Object.defineProperty(exports, "Grid", { enumerable: true, get: function () { return components_1.Grid; } });
|
|
46
|
-
Object.defineProperty(exports, "Form", { enumerable: true, get: function () { return components_1.Form; } });
|
|
47
|
-
Object.defineProperty(exports, "Detail", { enumerable: true, get: function () { return components_1.Detail; } });
|
|
48
|
-
Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return components_1.Action; } });
|
|
49
|
-
var action_panel_js_1 = require("./components/action-panel.js");
|
|
50
|
-
Object.defineProperty(exports, "ActionPanel", { enumerable: true, get: function () { return action_panel_js_1.ActionPanel; } });
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LocalStorage } from '../local-storage';
|
|
2
|
-
export declare const allLocalStorageItems: typeof LocalStorage.allItems;
|
|
3
|
-
export declare const getLocalStorageItem: typeof LocalStorage.getItem;
|
|
4
|
-
export declare const setLocalStorageItem: typeof LocalStorage.setItem;
|
|
5
|
-
export declare const removeLocalStorageItem: typeof LocalStorage.removeItem;
|
|
6
|
-
export declare const clearLocalStorage: typeof LocalStorage.clear;
|
|
7
|
-
export type LocalStorageValues = LocalStorage.Values;
|
|
8
|
-
export type LocalStorageValue = LocalStorage.Value;
|
|
9
|
-
export { LocalStorage } from '../local-storage';
|