@vicinae/api 0.16.14 → 0.17.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.
|
@@ -38,8 +38,9 @@ const Open = ({ target, app, ...props }) => {
|
|
|
38
38
|
} }));
|
|
39
39
|
};
|
|
40
40
|
const OpenInBrowser = ({ url, title = "Open in Browser", ...props }) => {
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)(ActionRoot, { ...props, title: title, onAction: () => {
|
|
42
|
-
(0, utils_1.open)(url);
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(ActionRoot, { ...props, title: title, onAction: async () => {
|
|
42
|
+
await (0, utils_1.open)(url);
|
|
43
|
+
await (0, controls_1.closeMainWindow)();
|
|
43
44
|
} }));
|
|
44
45
|
};
|
|
45
46
|
const ShowInFinder = ({ path, title = "Show in Finder", ...props }) => {
|
package/dist/api/proto/daemon.js
CHANGED
|
@@ -196,6 +196,9 @@ function createBaseDmenuRequest() {
|
|
|
196
196
|
noIcon: false,
|
|
197
197
|
noMetadata: false,
|
|
198
198
|
query: "",
|
|
199
|
+
width: undefined,
|
|
200
|
+
height: undefined,
|
|
201
|
+
noFooter: false,
|
|
199
202
|
};
|
|
200
203
|
}
|
|
201
204
|
exports.DmenuRequest = {
|
|
@@ -227,6 +230,15 @@ exports.DmenuRequest = {
|
|
|
227
230
|
if (message.query !== "") {
|
|
228
231
|
writer.uint32(74).string(message.query);
|
|
229
232
|
}
|
|
233
|
+
if (message.width !== undefined) {
|
|
234
|
+
writer.uint32(80).int32(message.width);
|
|
235
|
+
}
|
|
236
|
+
if (message.height !== undefined) {
|
|
237
|
+
writer.uint32(88).int32(message.height);
|
|
238
|
+
}
|
|
239
|
+
if (message.noFooter !== false) {
|
|
240
|
+
writer.uint32(96).bool(message.noFooter);
|
|
241
|
+
}
|
|
230
242
|
return writer;
|
|
231
243
|
},
|
|
232
244
|
decode(input, length) {
|
|
@@ -299,6 +311,27 @@ exports.DmenuRequest = {
|
|
|
299
311
|
message.query = reader.string();
|
|
300
312
|
continue;
|
|
301
313
|
}
|
|
314
|
+
case 10: {
|
|
315
|
+
if (tag !== 80) {
|
|
316
|
+
break;
|
|
317
|
+
}
|
|
318
|
+
message.width = reader.int32();
|
|
319
|
+
continue;
|
|
320
|
+
}
|
|
321
|
+
case 11: {
|
|
322
|
+
if (tag !== 88) {
|
|
323
|
+
break;
|
|
324
|
+
}
|
|
325
|
+
message.height = reader.int32();
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
case 12: {
|
|
329
|
+
if (tag !== 96) {
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
message.noFooter = reader.bool();
|
|
333
|
+
continue;
|
|
334
|
+
}
|
|
302
335
|
}
|
|
303
336
|
if ((tag & 7) === 4 || tag === 0) {
|
|
304
337
|
break;
|
|
@@ -318,6 +351,9 @@ exports.DmenuRequest = {
|
|
|
318
351
|
noIcon: isSet(object.noIcon) ? globalThis.Boolean(object.noIcon) : false,
|
|
319
352
|
noMetadata: isSet(object.noMetadata) ? globalThis.Boolean(object.noMetadata) : false,
|
|
320
353
|
query: isSet(object.query) ? globalThis.String(object.query) : "",
|
|
354
|
+
width: isSet(object.width) ? globalThis.Number(object.width) : undefined,
|
|
355
|
+
height: isSet(object.height) ? globalThis.Number(object.height) : undefined,
|
|
356
|
+
noFooter: isSet(object.noFooter) ? globalThis.Boolean(object.noFooter) : false,
|
|
321
357
|
};
|
|
322
358
|
},
|
|
323
359
|
toJSON(message) {
|
|
@@ -349,6 +385,15 @@ exports.DmenuRequest = {
|
|
|
349
385
|
if (message.query !== "") {
|
|
350
386
|
obj.query = message.query;
|
|
351
387
|
}
|
|
388
|
+
if (message.width !== undefined) {
|
|
389
|
+
obj.width = Math.round(message.width);
|
|
390
|
+
}
|
|
391
|
+
if (message.height !== undefined) {
|
|
392
|
+
obj.height = Math.round(message.height);
|
|
393
|
+
}
|
|
394
|
+
if (message.noFooter !== false) {
|
|
395
|
+
obj.noFooter = message.noFooter;
|
|
396
|
+
}
|
|
352
397
|
return obj;
|
|
353
398
|
},
|
|
354
399
|
create(base) {
|
|
@@ -365,6 +410,9 @@ exports.DmenuRequest = {
|
|
|
365
410
|
message.noIcon = object.noIcon ?? false;
|
|
366
411
|
message.noMetadata = object.noMetadata ?? false;
|
|
367
412
|
message.query = object.query ?? "";
|
|
413
|
+
message.width = object.width ?? undefined;
|
|
414
|
+
message.height = object.height ?? undefined;
|
|
415
|
+
message.noFooter = object.noFooter ?? false;
|
|
368
416
|
return message;
|
|
369
417
|
},
|
|
370
418
|
};
|