@vicinae/api 0.9.0 → 0.9.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/dist/api/ai.js +2 -41
- package/dist/api/alert.js +8 -21
- package/dist/api/bus.d.ts +10 -7
- package/dist/api/bus.js +0 -33
- package/dist/api/cache.d.ts +64 -73
- package/dist/api/cache.js +163 -14
- package/dist/api/clipboard.d.ts +1 -1
- package/dist/api/clipboard.js +3 -9
- package/dist/api/controls.d.ts +3 -0
- package/dist/api/controls.js +5 -1
- package/dist/api/environment.d.ts +5 -0
- package/dist/api/file-search.d.ts +49 -0
- package/dist/api/file-search.js +49 -0
- package/dist/api/index.d.ts +2 -1
- package/dist/api/index.js +2 -1
- package/dist/api/lib/result.d.ts +3 -1
- package/dist/api/lib/result.js +2 -2
- package/dist/api/preference.js +2 -3
- package/dist/api/proto/application.d.ts +14 -0
- package/dist/api/proto/application.js +207 -37
- package/dist/api/proto/clipboard.js +38 -71
- package/dist/api/proto/common.js +2 -6
- package/dist/api/proto/daemon.js +5 -15
- package/dist/api/proto/extension.d.ts +16 -10
- package/dist/api/proto/extension.js +118 -91
- package/dist/api/proto/file-search.d.ts +42 -0
- package/dist/api/proto/file-search.js +290 -0
- package/dist/api/proto/google/protobuf/struct.js +9 -26
- package/dist/api/proto/ipc.js +53 -100
- package/dist/api/proto/manager.d.ts +2 -0
- package/dist/api/proto/manager.js +54 -49
- package/dist/api/proto/oauth.js +15 -33
- package/dist/api/proto/storage.js +29 -67
- package/dist/api/proto/ui.d.ts +11 -2
- package/dist/api/proto/ui.js +267 -254
- package/dist/api/proto/wlr-clipboard.js +4 -12
- package/dist/api/proto/wm.d.ts +111 -0
- package/dist/api/proto/wm.js +1266 -0
- package/dist/api/raycast/index.d.ts +24 -0
- package/dist/api/raycast/index.js +40 -0
- package/dist/api/raycast/system.d.ts +20 -0
- package/dist/api/raycast/system.js +73 -0
- package/dist/api/raycast/window-management.d.ts +42 -0
- package/dist/api/raycast/window-management.js +82 -0
- package/dist/api/toast.js +47 -5
- package/dist/api/utils.d.ts +5 -11
- package/dist/api/utils.js +20 -31
- package/dist/api/window-management.d.ts +39 -0
- package/dist/api/window-management.js +55 -0
- package/package.json +1 -1
package/dist/api/proto/ui.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
5
|
// protoc v6.31.1
|
|
6
6
|
// source: ui.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Image = exports.ImageSource = exports.ThemedImageSource = exports.RenderNode_PropsEntry = exports.RenderNode = exports.Response = exports.Request = exports.ConfirmAlertAction = exports.ConfirmAlertRequest = exports.RenderRequest = exports.ShowHudRequest = exports.GetSelectedTextResponse = exports.GetSelectedTextRequest = exports.SetSearchTextRequest = exports.ClearSearchBarRequest = exports.CloseMainWindowRequest = exports.PopViewRequest = exports.PushViewRequest = exports.UpdateToastRequest = exports.HideToastRequest = exports.ShowToastRequest = exports.ImageMask = exports.ConfirmAlertActionStyle = exports.PopToRootType = exports.ToastStyle = exports.protobufPackage = void 0;
|
|
8
|
+
exports.Image = exports.ImageSource = exports.ThemedImageSource = exports.RenderNode_PropsEntry = exports.RenderNode = exports.Response = exports.Request = exports.PopToRootRequest = exports.ConfirmAlertAction = exports.ConfirmAlertResponse = exports.ConfirmAlertRequest = exports.RenderRequest = exports.ShowHudRequest = exports.GetSelectedTextResponse = exports.GetSelectedTextRequest = exports.SetSearchTextRequest = exports.ClearSearchBarRequest = exports.CloseMainWindowRequest = exports.PopViewRequest = exports.PushViewRequest = exports.UpdateToastRequest = exports.HideToastRequest = exports.ShowToastRequest = exports.ImageMask = exports.ConfirmAlertActionStyle = exports.PopToRootType = exports.ToastStyle = exports.protobufPackage = void 0;
|
|
9
9
|
exports.toastStyleFromJSON = toastStyleFromJSON;
|
|
10
10
|
exports.toastStyleToJSON = toastStyleToJSON;
|
|
11
11
|
exports.popToRootTypeFromJSON = popToRootTypeFromJSON;
|
|
@@ -723,12 +723,8 @@ exports.ShowHudRequest = {
|
|
|
723
723
|
fromJSON(object) {
|
|
724
724
|
return {
|
|
725
725
|
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
726
|
-
clearRootSearch: isSet(object.clearRootSearch)
|
|
727
|
-
|
|
728
|
-
: false,
|
|
729
|
-
popToRoot: isSet(object.popToRoot)
|
|
730
|
-
? popToRootTypeFromJSON(object.popToRoot)
|
|
731
|
-
: 0,
|
|
726
|
+
clearRootSearch: isSet(object.clearRootSearch) ? globalThis.Boolean(object.clearRootSearch) : false,
|
|
727
|
+
popToRoot: isSet(object.popToRoot) ? popToRootTypeFromJSON(object.popToRoot) : 0,
|
|
732
728
|
};
|
|
733
729
|
},
|
|
734
730
|
toJSON(message) {
|
|
@@ -814,7 +810,6 @@ function createBaseConfirmAlertRequest() {
|
|
|
814
810
|
dismissAction: undefined,
|
|
815
811
|
primaryAction: undefined,
|
|
816
812
|
rememberUserChoice: false,
|
|
817
|
-
handle: "",
|
|
818
813
|
};
|
|
819
814
|
}
|
|
820
815
|
exports.ConfirmAlertRequest = {
|
|
@@ -837,9 +832,6 @@ exports.ConfirmAlertRequest = {
|
|
|
837
832
|
if (message.rememberUserChoice !== false) {
|
|
838
833
|
writer.uint32(48).bool(message.rememberUserChoice);
|
|
839
834
|
}
|
|
840
|
-
if (message.handle !== "") {
|
|
841
|
-
writer.uint32(58).string(message.handle);
|
|
842
|
-
}
|
|
843
835
|
return writer;
|
|
844
836
|
},
|
|
845
837
|
decode(input, length) {
|
|
@@ -891,13 +883,6 @@ exports.ConfirmAlertRequest = {
|
|
|
891
883
|
message.rememberUserChoice = reader.bool();
|
|
892
884
|
continue;
|
|
893
885
|
}
|
|
894
|
-
case 7: {
|
|
895
|
-
if (tag !== 58) {
|
|
896
|
-
break;
|
|
897
|
-
}
|
|
898
|
-
message.handle = reader.string();
|
|
899
|
-
continue;
|
|
900
|
-
}
|
|
901
886
|
}
|
|
902
887
|
if ((tag & 7) === 4 || tag === 0) {
|
|
903
888
|
break;
|
|
@@ -909,20 +894,11 @@ exports.ConfirmAlertRequest = {
|
|
|
909
894
|
fromJSON(object) {
|
|
910
895
|
return {
|
|
911
896
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
912
|
-
description: isSet(object.description)
|
|
913
|
-
? globalThis.String(object.description)
|
|
914
|
-
: "",
|
|
897
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
915
898
|
icon: isSet(object.icon) ? globalThis.String(object.icon) : undefined,
|
|
916
|
-
dismissAction: isSet(object.dismissAction)
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
primaryAction: isSet(object.primaryAction)
|
|
920
|
-
? exports.ConfirmAlertAction.fromJSON(object.primaryAction)
|
|
921
|
-
: undefined,
|
|
922
|
-
rememberUserChoice: isSet(object.rememberUserChoice)
|
|
923
|
-
? globalThis.Boolean(object.rememberUserChoice)
|
|
924
|
-
: false,
|
|
925
|
-
handle: isSet(object.handle) ? globalThis.String(object.handle) : "",
|
|
899
|
+
dismissAction: isSet(object.dismissAction) ? exports.ConfirmAlertAction.fromJSON(object.dismissAction) : undefined,
|
|
900
|
+
primaryAction: isSet(object.primaryAction) ? exports.ConfirmAlertAction.fromJSON(object.primaryAction) : undefined,
|
|
901
|
+
rememberUserChoice: isSet(object.rememberUserChoice) ? globalThis.Boolean(object.rememberUserChoice) : false,
|
|
926
902
|
};
|
|
927
903
|
},
|
|
928
904
|
toJSON(message) {
|
|
@@ -945,9 +921,6 @@ exports.ConfirmAlertRequest = {
|
|
|
945
921
|
if (message.rememberUserChoice !== false) {
|
|
946
922
|
obj.rememberUserChoice = message.rememberUserChoice;
|
|
947
923
|
}
|
|
948
|
-
if (message.handle !== "") {
|
|
949
|
-
obj.handle = message.handle;
|
|
950
|
-
}
|
|
951
924
|
return obj;
|
|
952
925
|
},
|
|
953
926
|
create(base) {
|
|
@@ -958,16 +931,64 @@ exports.ConfirmAlertRequest = {
|
|
|
958
931
|
message.title = object.title ?? "";
|
|
959
932
|
message.description = object.description ?? "";
|
|
960
933
|
message.icon = object.icon ?? undefined;
|
|
961
|
-
message.dismissAction =
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
? exports.ConfirmAlertAction.fromPartial(object.primaryAction)
|
|
968
|
-
: undefined;
|
|
934
|
+
message.dismissAction = (object.dismissAction !== undefined && object.dismissAction !== null)
|
|
935
|
+
? exports.ConfirmAlertAction.fromPartial(object.dismissAction)
|
|
936
|
+
: undefined;
|
|
937
|
+
message.primaryAction = (object.primaryAction !== undefined && object.primaryAction !== null)
|
|
938
|
+
? exports.ConfirmAlertAction.fromPartial(object.primaryAction)
|
|
939
|
+
: undefined;
|
|
969
940
|
message.rememberUserChoice = object.rememberUserChoice ?? false;
|
|
970
|
-
message
|
|
941
|
+
return message;
|
|
942
|
+
},
|
|
943
|
+
};
|
|
944
|
+
function createBaseConfirmAlertResponse() {
|
|
945
|
+
return { confirmed: false };
|
|
946
|
+
}
|
|
947
|
+
exports.ConfirmAlertResponse = {
|
|
948
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
949
|
+
if (message.confirmed !== false) {
|
|
950
|
+
writer.uint32(8).bool(message.confirmed);
|
|
951
|
+
}
|
|
952
|
+
return writer;
|
|
953
|
+
},
|
|
954
|
+
decode(input, length) {
|
|
955
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
956
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
957
|
+
const message = createBaseConfirmAlertResponse();
|
|
958
|
+
while (reader.pos < end) {
|
|
959
|
+
const tag = reader.uint32();
|
|
960
|
+
switch (tag >>> 3) {
|
|
961
|
+
case 1: {
|
|
962
|
+
if (tag !== 8) {
|
|
963
|
+
break;
|
|
964
|
+
}
|
|
965
|
+
message.confirmed = reader.bool();
|
|
966
|
+
continue;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
970
|
+
break;
|
|
971
|
+
}
|
|
972
|
+
reader.skip(tag & 7);
|
|
973
|
+
}
|
|
974
|
+
return message;
|
|
975
|
+
},
|
|
976
|
+
fromJSON(object) {
|
|
977
|
+
return { confirmed: isSet(object.confirmed) ? globalThis.Boolean(object.confirmed) : false };
|
|
978
|
+
},
|
|
979
|
+
toJSON(message) {
|
|
980
|
+
const obj = {};
|
|
981
|
+
if (message.confirmed !== false) {
|
|
982
|
+
obj.confirmed = message.confirmed;
|
|
983
|
+
}
|
|
984
|
+
return obj;
|
|
985
|
+
},
|
|
986
|
+
create(base) {
|
|
987
|
+
return exports.ConfirmAlertResponse.fromPartial(base ?? {});
|
|
988
|
+
},
|
|
989
|
+
fromPartial(object) {
|
|
990
|
+
const message = createBaseConfirmAlertResponse();
|
|
991
|
+
message.confirmed = object.confirmed ?? false;
|
|
971
992
|
return message;
|
|
972
993
|
},
|
|
973
994
|
};
|
|
@@ -1016,9 +1037,7 @@ exports.ConfirmAlertAction = {
|
|
|
1016
1037
|
fromJSON(object) {
|
|
1017
1038
|
return {
|
|
1018
1039
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
1019
|
-
style: isSet(object.style)
|
|
1020
|
-
? confirmAlertActionStyleFromJSON(object.style)
|
|
1021
|
-
: 0,
|
|
1040
|
+
style: isSet(object.style) ? confirmAlertActionStyleFromJSON(object.style) : 0,
|
|
1022
1041
|
};
|
|
1023
1042
|
},
|
|
1024
1043
|
toJSON(message) {
|
|
@@ -1041,6 +1060,57 @@ exports.ConfirmAlertAction = {
|
|
|
1041
1060
|
return message;
|
|
1042
1061
|
},
|
|
1043
1062
|
};
|
|
1063
|
+
function createBasePopToRootRequest() {
|
|
1064
|
+
return { clearSearchBar: false };
|
|
1065
|
+
}
|
|
1066
|
+
exports.PopToRootRequest = {
|
|
1067
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1068
|
+
if (message.clearSearchBar !== false) {
|
|
1069
|
+
writer.uint32(8).bool(message.clearSearchBar);
|
|
1070
|
+
}
|
|
1071
|
+
return writer;
|
|
1072
|
+
},
|
|
1073
|
+
decode(input, length) {
|
|
1074
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1075
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1076
|
+
const message = createBasePopToRootRequest();
|
|
1077
|
+
while (reader.pos < end) {
|
|
1078
|
+
const tag = reader.uint32();
|
|
1079
|
+
switch (tag >>> 3) {
|
|
1080
|
+
case 1: {
|
|
1081
|
+
if (tag !== 8) {
|
|
1082
|
+
break;
|
|
1083
|
+
}
|
|
1084
|
+
message.clearSearchBar = reader.bool();
|
|
1085
|
+
continue;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1089
|
+
break;
|
|
1090
|
+
}
|
|
1091
|
+
reader.skip(tag & 7);
|
|
1092
|
+
}
|
|
1093
|
+
return message;
|
|
1094
|
+
},
|
|
1095
|
+
fromJSON(object) {
|
|
1096
|
+
return { clearSearchBar: isSet(object.clearSearchBar) ? globalThis.Boolean(object.clearSearchBar) : false };
|
|
1097
|
+
},
|
|
1098
|
+
toJSON(message) {
|
|
1099
|
+
const obj = {};
|
|
1100
|
+
if (message.clearSearchBar !== false) {
|
|
1101
|
+
obj.clearSearchBar = message.clearSearchBar;
|
|
1102
|
+
}
|
|
1103
|
+
return obj;
|
|
1104
|
+
},
|
|
1105
|
+
create(base) {
|
|
1106
|
+
return exports.PopToRootRequest.fromPartial(base ?? {});
|
|
1107
|
+
},
|
|
1108
|
+
fromPartial(object) {
|
|
1109
|
+
const message = createBasePopToRootRequest();
|
|
1110
|
+
message.clearSearchBar = object.clearSearchBar ?? false;
|
|
1111
|
+
return message;
|
|
1112
|
+
},
|
|
1113
|
+
};
|
|
1044
1114
|
function createBaseRequest() {
|
|
1045
1115
|
return {
|
|
1046
1116
|
render: undefined,
|
|
@@ -1055,6 +1125,7 @@ function createBaseRequest() {
|
|
|
1055
1125
|
setSearchText: undefined,
|
|
1056
1126
|
confirmAlert: undefined,
|
|
1057
1127
|
getSelectedText: undefined,
|
|
1128
|
+
popToRoot: undefined,
|
|
1058
1129
|
};
|
|
1059
1130
|
}
|
|
1060
1131
|
exports.Request = {
|
|
@@ -1095,6 +1166,9 @@ exports.Request = {
|
|
|
1095
1166
|
if (message.getSelectedText !== undefined) {
|
|
1096
1167
|
exports.GetSelectedTextRequest.encode(message.getSelectedText, writer.uint32(98).fork()).join();
|
|
1097
1168
|
}
|
|
1169
|
+
if (message.popToRoot !== undefined) {
|
|
1170
|
+
exports.PopToRootRequest.encode(message.popToRoot, writer.uint32(106).fork()).join();
|
|
1171
|
+
}
|
|
1098
1172
|
return writer;
|
|
1099
1173
|
},
|
|
1100
1174
|
decode(input, length) {
|
|
@@ -1188,6 +1262,13 @@ exports.Request = {
|
|
|
1188
1262
|
message.getSelectedText = exports.GetSelectedTextRequest.decode(reader, reader.uint32());
|
|
1189
1263
|
continue;
|
|
1190
1264
|
}
|
|
1265
|
+
case 13: {
|
|
1266
|
+
if (tag !== 106) {
|
|
1267
|
+
break;
|
|
1268
|
+
}
|
|
1269
|
+
message.popToRoot = exports.PopToRootRequest.decode(reader, reader.uint32());
|
|
1270
|
+
continue;
|
|
1271
|
+
}
|
|
1191
1272
|
}
|
|
1192
1273
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1193
1274
|
break;
|
|
@@ -1198,42 +1279,23 @@ exports.Request = {
|
|
|
1198
1279
|
},
|
|
1199
1280
|
fromJSON(object) {
|
|
1200
1281
|
return {
|
|
1201
|
-
render: isSet(object.render)
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
? exports.HideToastRequest.fromJSON(object.hideToast)
|
|
1209
|
-
: undefined,
|
|
1210
|
-
updateToast: isSet(object.updateToast)
|
|
1211
|
-
? exports.UpdateToastRequest.fromJSON(object.updateToast)
|
|
1212
|
-
: undefined,
|
|
1213
|
-
pushView: isSet(object.pushView)
|
|
1214
|
-
? exports.PushViewRequest.fromJSON(object.pushView)
|
|
1215
|
-
: undefined,
|
|
1216
|
-
popView: isSet(object.popView)
|
|
1217
|
-
? exports.PopViewRequest.fromJSON(object.popView)
|
|
1218
|
-
: undefined,
|
|
1219
|
-
clearSearch: isSet(object.clearSearch)
|
|
1220
|
-
? exports.ClearSearchBarRequest.fromJSON(object.clearSearch)
|
|
1221
|
-
: undefined,
|
|
1282
|
+
render: isSet(object.render) ? exports.RenderRequest.fromJSON(object.render) : undefined,
|
|
1283
|
+
showToast: isSet(object.showToast) ? exports.ShowToastRequest.fromJSON(object.showToast) : undefined,
|
|
1284
|
+
hideToast: isSet(object.hideToast) ? exports.HideToastRequest.fromJSON(object.hideToast) : undefined,
|
|
1285
|
+
updateToast: isSet(object.updateToast) ? exports.UpdateToastRequest.fromJSON(object.updateToast) : undefined,
|
|
1286
|
+
pushView: isSet(object.pushView) ? exports.PushViewRequest.fromJSON(object.pushView) : undefined,
|
|
1287
|
+
popView: isSet(object.popView) ? exports.PopViewRequest.fromJSON(object.popView) : undefined,
|
|
1288
|
+
clearSearch: isSet(object.clearSearch) ? exports.ClearSearchBarRequest.fromJSON(object.clearSearch) : undefined,
|
|
1222
1289
|
closeMainWindow: isSet(object.closeMainWindow)
|
|
1223
1290
|
? exports.CloseMainWindowRequest.fromJSON(object.closeMainWindow)
|
|
1224
1291
|
: undefined,
|
|
1225
|
-
showHud: isSet(object.showHud)
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
setSearchText: isSet(object.setSearchText)
|
|
1229
|
-
? exports.SetSearchTextRequest.fromJSON(object.setSearchText)
|
|
1230
|
-
: undefined,
|
|
1231
|
-
confirmAlert: isSet(object.confirmAlert)
|
|
1232
|
-
? exports.ConfirmAlertRequest.fromJSON(object.confirmAlert)
|
|
1233
|
-
: undefined,
|
|
1292
|
+
showHud: isSet(object.showHud) ? exports.ShowHudRequest.fromJSON(object.showHud) : undefined,
|
|
1293
|
+
setSearchText: isSet(object.setSearchText) ? exports.SetSearchTextRequest.fromJSON(object.setSearchText) : undefined,
|
|
1294
|
+
confirmAlert: isSet(object.confirmAlert) ? exports.ConfirmAlertRequest.fromJSON(object.confirmAlert) : undefined,
|
|
1234
1295
|
getSelectedText: isSet(object.getSelectedText)
|
|
1235
1296
|
? exports.GetSelectedTextRequest.fromJSON(object.getSelectedText)
|
|
1236
1297
|
: undefined,
|
|
1298
|
+
popToRoot: isSet(object.popToRoot) ? exports.PopToRootRequest.fromJSON(object.popToRoot) : undefined,
|
|
1237
1299
|
};
|
|
1238
1300
|
},
|
|
1239
1301
|
toJSON(message) {
|
|
@@ -1274,6 +1336,9 @@ exports.Request = {
|
|
|
1274
1336
|
if (message.getSelectedText !== undefined) {
|
|
1275
1337
|
obj.getSelectedText = exports.GetSelectedTextRequest.toJSON(message.getSelectedText);
|
|
1276
1338
|
}
|
|
1339
|
+
if (message.popToRoot !== undefined) {
|
|
1340
|
+
obj.popToRoot = exports.PopToRootRequest.toJSON(message.popToRoot);
|
|
1341
|
+
}
|
|
1277
1342
|
return obj;
|
|
1278
1343
|
},
|
|
1279
1344
|
create(base) {
|
|
@@ -1281,54 +1346,45 @@ exports.Request = {
|
|
|
1281
1346
|
},
|
|
1282
1347
|
fromPartial(object) {
|
|
1283
1348
|
const message = createBaseRequest();
|
|
1284
|
-
message.render =
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
message.
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
message.
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
message.
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
: undefined;
|
|
1324
|
-
message.confirmAlert =
|
|
1325
|
-
object.confirmAlert !== undefined && object.confirmAlert !== null
|
|
1326
|
-
? exports.ConfirmAlertRequest.fromPartial(object.confirmAlert)
|
|
1327
|
-
: undefined;
|
|
1328
|
-
message.getSelectedText =
|
|
1329
|
-
object.getSelectedText !== undefined && object.getSelectedText !== null
|
|
1330
|
-
? exports.GetSelectedTextRequest.fromPartial(object.getSelectedText)
|
|
1331
|
-
: undefined;
|
|
1349
|
+
message.render = (object.render !== undefined && object.render !== null)
|
|
1350
|
+
? exports.RenderRequest.fromPartial(object.render)
|
|
1351
|
+
: undefined;
|
|
1352
|
+
message.showToast = (object.showToast !== undefined && object.showToast !== null)
|
|
1353
|
+
? exports.ShowToastRequest.fromPartial(object.showToast)
|
|
1354
|
+
: undefined;
|
|
1355
|
+
message.hideToast = (object.hideToast !== undefined && object.hideToast !== null)
|
|
1356
|
+
? exports.HideToastRequest.fromPartial(object.hideToast)
|
|
1357
|
+
: undefined;
|
|
1358
|
+
message.updateToast = (object.updateToast !== undefined && object.updateToast !== null)
|
|
1359
|
+
? exports.UpdateToastRequest.fromPartial(object.updateToast)
|
|
1360
|
+
: undefined;
|
|
1361
|
+
message.pushView = (object.pushView !== undefined && object.pushView !== null)
|
|
1362
|
+
? exports.PushViewRequest.fromPartial(object.pushView)
|
|
1363
|
+
: undefined;
|
|
1364
|
+
message.popView = (object.popView !== undefined && object.popView !== null)
|
|
1365
|
+
? exports.PopViewRequest.fromPartial(object.popView)
|
|
1366
|
+
: undefined;
|
|
1367
|
+
message.clearSearch = (object.clearSearch !== undefined && object.clearSearch !== null)
|
|
1368
|
+
? exports.ClearSearchBarRequest.fromPartial(object.clearSearch)
|
|
1369
|
+
: undefined;
|
|
1370
|
+
message.closeMainWindow = (object.closeMainWindow !== undefined && object.closeMainWindow !== null)
|
|
1371
|
+
? exports.CloseMainWindowRequest.fromPartial(object.closeMainWindow)
|
|
1372
|
+
: undefined;
|
|
1373
|
+
message.showHud = (object.showHud !== undefined && object.showHud !== null)
|
|
1374
|
+
? exports.ShowHudRequest.fromPartial(object.showHud)
|
|
1375
|
+
: undefined;
|
|
1376
|
+
message.setSearchText = (object.setSearchText !== undefined && object.setSearchText !== null)
|
|
1377
|
+
? exports.SetSearchTextRequest.fromPartial(object.setSearchText)
|
|
1378
|
+
: undefined;
|
|
1379
|
+
message.confirmAlert = (object.confirmAlert !== undefined && object.confirmAlert !== null)
|
|
1380
|
+
? exports.ConfirmAlertRequest.fromPartial(object.confirmAlert)
|
|
1381
|
+
: undefined;
|
|
1382
|
+
message.getSelectedText = (object.getSelectedText !== undefined && object.getSelectedText !== null)
|
|
1383
|
+
? exports.GetSelectedTextRequest.fromPartial(object.getSelectedText)
|
|
1384
|
+
: undefined;
|
|
1385
|
+
message.popToRoot = (object.popToRoot !== undefined && object.popToRoot !== null)
|
|
1386
|
+
? exports.PopToRootRequest.fromPartial(object.popToRoot)
|
|
1387
|
+
: undefined;
|
|
1332
1388
|
return message;
|
|
1333
1389
|
},
|
|
1334
1390
|
};
|
|
@@ -1346,6 +1402,7 @@ function createBaseResponse() {
|
|
|
1346
1402
|
setSearchText: undefined,
|
|
1347
1403
|
confirmAlert: undefined,
|
|
1348
1404
|
getSelectedText: undefined,
|
|
1405
|
+
popToRoot: undefined,
|
|
1349
1406
|
};
|
|
1350
1407
|
}
|
|
1351
1408
|
exports.Response = {
|
|
@@ -1381,11 +1438,14 @@ exports.Response = {
|
|
|
1381
1438
|
common_1.AckResponse.encode(message.setSearchText, writer.uint32(82).fork()).join();
|
|
1382
1439
|
}
|
|
1383
1440
|
if (message.confirmAlert !== undefined) {
|
|
1384
|
-
|
|
1441
|
+
exports.ConfirmAlertResponse.encode(message.confirmAlert, writer.uint32(90).fork()).join();
|
|
1385
1442
|
}
|
|
1386
1443
|
if (message.getSelectedText !== undefined) {
|
|
1387
1444
|
exports.GetSelectedTextResponse.encode(message.getSelectedText, writer.uint32(98).fork()).join();
|
|
1388
1445
|
}
|
|
1446
|
+
if (message.popToRoot !== undefined) {
|
|
1447
|
+
common_1.AckResponse.encode(message.popToRoot, writer.uint32(106).fork()).join();
|
|
1448
|
+
}
|
|
1389
1449
|
return writer;
|
|
1390
1450
|
},
|
|
1391
1451
|
decode(input, length) {
|
|
@@ -1469,7 +1529,7 @@ exports.Response = {
|
|
|
1469
1529
|
if (tag !== 90) {
|
|
1470
1530
|
break;
|
|
1471
1531
|
}
|
|
1472
|
-
message.confirmAlert =
|
|
1532
|
+
message.confirmAlert = exports.ConfirmAlertResponse.decode(reader, reader.uint32());
|
|
1473
1533
|
continue;
|
|
1474
1534
|
}
|
|
1475
1535
|
case 12: {
|
|
@@ -1479,6 +1539,13 @@ exports.Response = {
|
|
|
1479
1539
|
message.getSelectedText = exports.GetSelectedTextResponse.decode(reader, reader.uint32());
|
|
1480
1540
|
continue;
|
|
1481
1541
|
}
|
|
1542
|
+
case 13: {
|
|
1543
|
+
if (tag !== 106) {
|
|
1544
|
+
break;
|
|
1545
|
+
}
|
|
1546
|
+
message.popToRoot = common_1.AckResponse.decode(reader, reader.uint32());
|
|
1547
|
+
continue;
|
|
1548
|
+
}
|
|
1482
1549
|
}
|
|
1483
1550
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1484
1551
|
break;
|
|
@@ -1489,42 +1556,21 @@ exports.Response = {
|
|
|
1489
1556
|
},
|
|
1490
1557
|
fromJSON(object) {
|
|
1491
1558
|
return {
|
|
1492
|
-
render: isSet(object.render)
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
: undefined,
|
|
1504
|
-
pushView: isSet(object.pushView)
|
|
1505
|
-
? common_1.AckResponse.fromJSON(object.pushView)
|
|
1506
|
-
: undefined,
|
|
1507
|
-
popView: isSet(object.popView)
|
|
1508
|
-
? common_1.AckResponse.fromJSON(object.popView)
|
|
1509
|
-
: undefined,
|
|
1510
|
-
clearSearch: isSet(object.clearSearch)
|
|
1511
|
-
? common_1.AckResponse.fromJSON(object.clearSearch)
|
|
1512
|
-
: undefined,
|
|
1513
|
-
closeMainWindow: isSet(object.closeMainWindow)
|
|
1514
|
-
? common_1.AckResponse.fromJSON(object.closeMainWindow)
|
|
1515
|
-
: undefined,
|
|
1516
|
-
showHud: isSet(object.showHud)
|
|
1517
|
-
? common_1.AckResponse.fromJSON(object.showHud)
|
|
1518
|
-
: undefined,
|
|
1519
|
-
setSearchText: isSet(object.setSearchText)
|
|
1520
|
-
? common_1.AckResponse.fromJSON(object.setSearchText)
|
|
1521
|
-
: undefined,
|
|
1522
|
-
confirmAlert: isSet(object.confirmAlert)
|
|
1523
|
-
? common_1.AckResponse.fromJSON(object.confirmAlert)
|
|
1524
|
-
: undefined,
|
|
1559
|
+
render: isSet(object.render) ? common_1.AckResponse.fromJSON(object.render) : undefined,
|
|
1560
|
+
showToast: isSet(object.showToast) ? common_1.AckResponse.fromJSON(object.showToast) : undefined,
|
|
1561
|
+
hideToast: isSet(object.hideToast) ? common_1.AckResponse.fromJSON(object.hideToast) : undefined,
|
|
1562
|
+
updateToast: isSet(object.updateToast) ? common_1.AckResponse.fromJSON(object.updateToast) : undefined,
|
|
1563
|
+
pushView: isSet(object.pushView) ? common_1.AckResponse.fromJSON(object.pushView) : undefined,
|
|
1564
|
+
popView: isSet(object.popView) ? common_1.AckResponse.fromJSON(object.popView) : undefined,
|
|
1565
|
+
clearSearch: isSet(object.clearSearch) ? common_1.AckResponse.fromJSON(object.clearSearch) : undefined,
|
|
1566
|
+
closeMainWindow: isSet(object.closeMainWindow) ? common_1.AckResponse.fromJSON(object.closeMainWindow) : undefined,
|
|
1567
|
+
showHud: isSet(object.showHud) ? common_1.AckResponse.fromJSON(object.showHud) : undefined,
|
|
1568
|
+
setSearchText: isSet(object.setSearchText) ? common_1.AckResponse.fromJSON(object.setSearchText) : undefined,
|
|
1569
|
+
confirmAlert: isSet(object.confirmAlert) ? exports.ConfirmAlertResponse.fromJSON(object.confirmAlert) : undefined,
|
|
1525
1570
|
getSelectedText: isSet(object.getSelectedText)
|
|
1526
1571
|
? exports.GetSelectedTextResponse.fromJSON(object.getSelectedText)
|
|
1527
1572
|
: undefined,
|
|
1573
|
+
popToRoot: isSet(object.popToRoot) ? common_1.AckResponse.fromJSON(object.popToRoot) : undefined,
|
|
1528
1574
|
};
|
|
1529
1575
|
},
|
|
1530
1576
|
toJSON(message) {
|
|
@@ -1560,11 +1606,14 @@ exports.Response = {
|
|
|
1560
1606
|
obj.setSearchText = common_1.AckResponse.toJSON(message.setSearchText);
|
|
1561
1607
|
}
|
|
1562
1608
|
if (message.confirmAlert !== undefined) {
|
|
1563
|
-
obj.confirmAlert =
|
|
1609
|
+
obj.confirmAlert = exports.ConfirmAlertResponse.toJSON(message.confirmAlert);
|
|
1564
1610
|
}
|
|
1565
1611
|
if (message.getSelectedText !== undefined) {
|
|
1566
1612
|
obj.getSelectedText = exports.GetSelectedTextResponse.toJSON(message.getSelectedText);
|
|
1567
1613
|
}
|
|
1614
|
+
if (message.popToRoot !== undefined) {
|
|
1615
|
+
obj.popToRoot = common_1.AckResponse.toJSON(message.popToRoot);
|
|
1616
|
+
}
|
|
1568
1617
|
return obj;
|
|
1569
1618
|
},
|
|
1570
1619
|
create(base) {
|
|
@@ -1572,65 +1621,50 @@ exports.Response = {
|
|
|
1572
1621
|
},
|
|
1573
1622
|
fromPartial(object) {
|
|
1574
1623
|
const message = createBaseResponse();
|
|
1575
|
-
message.render =
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
message.
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
message.
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
message.
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
: undefined;
|
|
1615
|
-
message.confirmAlert =
|
|
1616
|
-
object.confirmAlert !== undefined && object.confirmAlert !== null
|
|
1617
|
-
? common_1.AckResponse.fromPartial(object.confirmAlert)
|
|
1618
|
-
: undefined;
|
|
1619
|
-
message.getSelectedText =
|
|
1620
|
-
object.getSelectedText !== undefined && object.getSelectedText !== null
|
|
1621
|
-
? exports.GetSelectedTextResponse.fromPartial(object.getSelectedText)
|
|
1622
|
-
: undefined;
|
|
1624
|
+
message.render = (object.render !== undefined && object.render !== null)
|
|
1625
|
+
? common_1.AckResponse.fromPartial(object.render)
|
|
1626
|
+
: undefined;
|
|
1627
|
+
message.showToast = (object.showToast !== undefined && object.showToast !== null)
|
|
1628
|
+
? common_1.AckResponse.fromPartial(object.showToast)
|
|
1629
|
+
: undefined;
|
|
1630
|
+
message.hideToast = (object.hideToast !== undefined && object.hideToast !== null)
|
|
1631
|
+
? common_1.AckResponse.fromPartial(object.hideToast)
|
|
1632
|
+
: undefined;
|
|
1633
|
+
message.updateToast = (object.updateToast !== undefined && object.updateToast !== null)
|
|
1634
|
+
? common_1.AckResponse.fromPartial(object.updateToast)
|
|
1635
|
+
: undefined;
|
|
1636
|
+
message.pushView = (object.pushView !== undefined && object.pushView !== null)
|
|
1637
|
+
? common_1.AckResponse.fromPartial(object.pushView)
|
|
1638
|
+
: undefined;
|
|
1639
|
+
message.popView = (object.popView !== undefined && object.popView !== null)
|
|
1640
|
+
? common_1.AckResponse.fromPartial(object.popView)
|
|
1641
|
+
: undefined;
|
|
1642
|
+
message.clearSearch = (object.clearSearch !== undefined && object.clearSearch !== null)
|
|
1643
|
+
? common_1.AckResponse.fromPartial(object.clearSearch)
|
|
1644
|
+
: undefined;
|
|
1645
|
+
message.closeMainWindow = (object.closeMainWindow !== undefined && object.closeMainWindow !== null)
|
|
1646
|
+
? common_1.AckResponse.fromPartial(object.closeMainWindow)
|
|
1647
|
+
: undefined;
|
|
1648
|
+
message.showHud = (object.showHud !== undefined && object.showHud !== null)
|
|
1649
|
+
? common_1.AckResponse.fromPartial(object.showHud)
|
|
1650
|
+
: undefined;
|
|
1651
|
+
message.setSearchText = (object.setSearchText !== undefined && object.setSearchText !== null)
|
|
1652
|
+
? common_1.AckResponse.fromPartial(object.setSearchText)
|
|
1653
|
+
: undefined;
|
|
1654
|
+
message.confirmAlert = (object.confirmAlert !== undefined && object.confirmAlert !== null)
|
|
1655
|
+
? exports.ConfirmAlertResponse.fromPartial(object.confirmAlert)
|
|
1656
|
+
: undefined;
|
|
1657
|
+
message.getSelectedText = (object.getSelectedText !== undefined && object.getSelectedText !== null)
|
|
1658
|
+
? exports.GetSelectedTextResponse.fromPartial(object.getSelectedText)
|
|
1659
|
+
: undefined;
|
|
1660
|
+
message.popToRoot = (object.popToRoot !== undefined && object.popToRoot !== null)
|
|
1661
|
+
? common_1.AckResponse.fromPartial(object.popToRoot)
|
|
1662
|
+
: undefined;
|
|
1623
1663
|
return message;
|
|
1624
1664
|
},
|
|
1625
1665
|
};
|
|
1626
1666
|
function createBaseRenderNode() {
|
|
1627
|
-
return {
|
|
1628
|
-
type: "",
|
|
1629
|
-
hasDirtyChild: false,
|
|
1630
|
-
hasDirtyProps: false,
|
|
1631
|
-
props: {},
|
|
1632
|
-
children: [],
|
|
1633
|
-
};
|
|
1667
|
+
return { type: "", hasDirtyChild: false, hasDirtyProps: false, props: {}, children: [] };
|
|
1634
1668
|
}
|
|
1635
1669
|
exports.RenderNode = {
|
|
1636
1670
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -1709,12 +1743,8 @@ exports.RenderNode = {
|
|
|
1709
1743
|
fromJSON(object) {
|
|
1710
1744
|
return {
|
|
1711
1745
|
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
1712
|
-
hasDirtyChild: isSet(object.hasDirtyChild)
|
|
1713
|
-
|
|
1714
|
-
: false,
|
|
1715
|
-
hasDirtyProps: isSet(object.hasDirtyProps)
|
|
1716
|
-
? globalThis.Boolean(object.hasDirtyProps)
|
|
1717
|
-
: false,
|
|
1746
|
+
hasDirtyChild: isSet(object.hasDirtyChild) ? globalThis.Boolean(object.hasDirtyChild) : false,
|
|
1747
|
+
hasDirtyProps: isSet(object.hasDirtyProps) ? globalThis.Boolean(object.hasDirtyProps) : false,
|
|
1718
1748
|
props: isObject(object.props)
|
|
1719
1749
|
? Object.entries(object.props).reduce((acc, [key, value]) => {
|
|
1720
1750
|
acc[key] = value;
|
|
@@ -1765,8 +1795,7 @@ exports.RenderNode = {
|
|
|
1765
1795
|
}
|
|
1766
1796
|
return acc;
|
|
1767
1797
|
}, {});
|
|
1768
|
-
message.children =
|
|
1769
|
-
object.children?.map((e) => exports.RenderNode.fromPartial(e)) || [];
|
|
1798
|
+
message.children = object.children?.map((e) => exports.RenderNode.fromPartial(e)) || [];
|
|
1770
1799
|
return message;
|
|
1771
1800
|
},
|
|
1772
1801
|
};
|
|
@@ -1951,9 +1980,7 @@ exports.ImageSource = {
|
|
|
1951
1980
|
fromJSON(object) {
|
|
1952
1981
|
return {
|
|
1953
1982
|
raw: isSet(object.raw) ? globalThis.String(object.raw) : undefined,
|
|
1954
|
-
themed: isSet(object.themed)
|
|
1955
|
-
? exports.ThemedImageSource.fromJSON(object.themed)
|
|
1956
|
-
: undefined,
|
|
1983
|
+
themed: isSet(object.themed) ? exports.ThemedImageSource.fromJSON(object.themed) : undefined,
|
|
1957
1984
|
};
|
|
1958
1985
|
},
|
|
1959
1986
|
toJSON(message) {
|
|
@@ -1972,20 +1999,14 @@ exports.ImageSource = {
|
|
|
1972
1999
|
fromPartial(object) {
|
|
1973
2000
|
const message = createBaseImageSource();
|
|
1974
2001
|
message.raw = object.raw ?? undefined;
|
|
1975
|
-
message.themed =
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
: undefined;
|
|
2002
|
+
message.themed = (object.themed !== undefined && object.themed !== null)
|
|
2003
|
+
? exports.ThemedImageSource.fromPartial(object.themed)
|
|
2004
|
+
: undefined;
|
|
1979
2005
|
return message;
|
|
1980
2006
|
},
|
|
1981
2007
|
};
|
|
1982
2008
|
function createBaseImage() {
|
|
1983
|
-
return {
|
|
1984
|
-
source: undefined,
|
|
1985
|
-
fallback: undefined,
|
|
1986
|
-
mask: undefined,
|
|
1987
|
-
colorTint: undefined,
|
|
1988
|
-
};
|
|
2009
|
+
return { source: undefined, fallback: undefined, mask: undefined, colorTint: undefined };
|
|
1989
2010
|
}
|
|
1990
2011
|
exports.Image = {
|
|
1991
2012
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -2048,16 +2069,10 @@ exports.Image = {
|
|
|
2048
2069
|
},
|
|
2049
2070
|
fromJSON(object) {
|
|
2050
2071
|
return {
|
|
2051
|
-
source: isSet(object.source)
|
|
2052
|
-
|
|
2053
|
-
: undefined,
|
|
2054
|
-
fallback: isSet(object.fallback)
|
|
2055
|
-
? exports.ImageSource.fromJSON(object.fallback)
|
|
2056
|
-
: undefined,
|
|
2072
|
+
source: isSet(object.source) ? exports.ImageSource.fromJSON(object.source) : undefined,
|
|
2073
|
+
fallback: isSet(object.fallback) ? exports.ImageSource.fromJSON(object.fallback) : undefined,
|
|
2057
2074
|
mask: isSet(object.mask) ? imageMaskFromJSON(object.mask) : undefined,
|
|
2058
|
-
colorTint: isSet(object.colorTint)
|
|
2059
|
-
? globalThis.String(object.colorTint)
|
|
2060
|
-
: undefined,
|
|
2075
|
+
colorTint: isSet(object.colorTint) ? globalThis.String(object.colorTint) : undefined,
|
|
2061
2076
|
};
|
|
2062
2077
|
},
|
|
2063
2078
|
toJSON(message) {
|
|
@@ -2081,14 +2096,12 @@ exports.Image = {
|
|
|
2081
2096
|
},
|
|
2082
2097
|
fromPartial(object) {
|
|
2083
2098
|
const message = createBaseImage();
|
|
2084
|
-
message.source =
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
? exports.ImageSource.fromPartial(object.fallback)
|
|
2091
|
-
: undefined;
|
|
2099
|
+
message.source = (object.source !== undefined && object.source !== null)
|
|
2100
|
+
? exports.ImageSource.fromPartial(object.source)
|
|
2101
|
+
: undefined;
|
|
2102
|
+
message.fallback = (object.fallback !== undefined && object.fallback !== null)
|
|
2103
|
+
? exports.ImageSource.fromPartial(object.fallback)
|
|
2104
|
+
: undefined;
|
|
2092
2105
|
message.mask = object.mask ?? undefined;
|
|
2093
2106
|
message.colorTint = object.colorTint ?? undefined;
|
|
2094
2107
|
return message;
|