@vicinae/api 0.16.1 → 0.16.3
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 +5 -0
- package/dist/api/cache.js +5 -4
- package/dist/api/color.d.ts +2 -1
- package/dist/api/color.js +48 -3
- package/dist/api/components/action-pannel.d.ts +3 -3
- package/dist/api/components/action-pannel.js +4 -2
- package/dist/api/components/actions.d.ts +10 -1
- package/dist/api/components/actions.js +13 -1
- package/dist/api/components/dropdown.d.ts +1 -1
- package/dist/api/components/dropdown.js +3 -1
- package/dist/api/components/empty-view.js +4 -2
- package/dist/api/components/form.d.ts +16 -2
- package/dist/api/components/form.js +28 -4
- package/dist/api/components/grid.d.ts +8 -19
- package/dist/api/components/grid.js +32 -2
- package/dist/api/components/list.d.ts +22 -3
- package/dist/api/components/list.js +49 -2
- package/dist/api/components/metadata.d.ts +1 -1
- package/dist/api/components/metadata.js +5 -1
- package/dist/api/components/tag.d.ts +2 -2
- package/dist/api/components/tag.js +4 -3
- package/dist/api/context/navigation-provider.js +1 -4
- package/dist/api/environment.d.ts +4 -0
- package/dist/api/image.d.ts +7 -5
- package/dist/api/image.js +4 -0
- package/dist/api/oauth.d.ts +3 -8
- package/dist/api/oauth.js +51 -21
- package/dist/api/proto/application.d.ts +10 -0
- package/dist/api/proto/application.js +150 -3
- package/dist/api/proto/daemon.d.ts +4 -1
- package/dist/api/proto/daemon.js +71 -16
- 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/ui.d.ts +12 -1
- package/dist/api/proto/ui.js +164 -9
- 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 +24 -1
- package/dist/api/window-management.d.ts +29 -0
- package/dist/api/window-management.js +17 -0
- package/dist/commands/build/index.js +5 -2
- package/dist/commands/develop/index.js +7 -2
- package/dist/schemas/manifest.d.ts +255 -5
- package/dist/schemas/manifest.js +202 -4
- package/dist/utils/extension-types.d.ts +14 -0
- package/dist/utils/extension-types.js +162 -0
- package/package.json +1 -1
- package/types/jsx.d.ts +54 -33
package/dist/api/proto/ui.d.ts
CHANGED
|
@@ -146,11 +146,20 @@ export interface ImageSource {
|
|
|
146
146
|
raw?: string | undefined;
|
|
147
147
|
themed?: ThemedImageSource | undefined;
|
|
148
148
|
}
|
|
149
|
+
export interface DynamicColor {
|
|
150
|
+
light: string;
|
|
151
|
+
dark: string;
|
|
152
|
+
adjustContrast?: boolean | undefined;
|
|
153
|
+
}
|
|
154
|
+
export interface ColorLike {
|
|
155
|
+
raw?: string | undefined;
|
|
156
|
+
dynamic?: DynamicColor | undefined;
|
|
157
|
+
}
|
|
149
158
|
export interface Image {
|
|
150
159
|
source: ImageSource | undefined;
|
|
151
160
|
fallback?: ImageSource | undefined;
|
|
152
161
|
mask?: ImageMask | undefined;
|
|
153
|
-
|
|
162
|
+
tintColor?: ColorLike | undefined;
|
|
154
163
|
}
|
|
155
164
|
export declare const ShowToastRequest: MessageFns<ShowToastRequest>;
|
|
156
165
|
export declare const HideToastRequest: MessageFns<HideToastRequest>;
|
|
@@ -174,6 +183,8 @@ export declare const RenderNode: MessageFns<RenderNode>;
|
|
|
174
183
|
export declare const RenderNode_PropsEntry: MessageFns<RenderNode_PropsEntry>;
|
|
175
184
|
export declare const ThemedImageSource: MessageFns<ThemedImageSource>;
|
|
176
185
|
export declare const ImageSource: MessageFns<ImageSource>;
|
|
186
|
+
export declare const DynamicColor: MessageFns<DynamicColor>;
|
|
187
|
+
export declare const ColorLike: MessageFns<ColorLike>;
|
|
177
188
|
export declare const Image: MessageFns<Image>;
|
|
178
189
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
179
190
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
package/dist/api/proto/ui.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v6.32.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.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;
|
|
8
|
+
exports.Image = exports.ColorLike = exports.DynamicColor = 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;
|
|
@@ -2036,8 +2036,161 @@ exports.ImageSource = {
|
|
|
2036
2036
|
return message;
|
|
2037
2037
|
},
|
|
2038
2038
|
};
|
|
2039
|
+
function createBaseDynamicColor() {
|
|
2040
|
+
return { light: "", dark: "", adjustContrast: undefined };
|
|
2041
|
+
}
|
|
2042
|
+
exports.DynamicColor = {
|
|
2043
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2044
|
+
if (message.light !== "") {
|
|
2045
|
+
writer.uint32(10).string(message.light);
|
|
2046
|
+
}
|
|
2047
|
+
if (message.dark !== "") {
|
|
2048
|
+
writer.uint32(18).string(message.dark);
|
|
2049
|
+
}
|
|
2050
|
+
if (message.adjustContrast !== undefined) {
|
|
2051
|
+
writer.uint32(24).bool(message.adjustContrast);
|
|
2052
|
+
}
|
|
2053
|
+
return writer;
|
|
2054
|
+
},
|
|
2055
|
+
decode(input, length) {
|
|
2056
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2057
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2058
|
+
const message = createBaseDynamicColor();
|
|
2059
|
+
while (reader.pos < end) {
|
|
2060
|
+
const tag = reader.uint32();
|
|
2061
|
+
switch (tag >>> 3) {
|
|
2062
|
+
case 1: {
|
|
2063
|
+
if (tag !== 10) {
|
|
2064
|
+
break;
|
|
2065
|
+
}
|
|
2066
|
+
message.light = reader.string();
|
|
2067
|
+
continue;
|
|
2068
|
+
}
|
|
2069
|
+
case 2: {
|
|
2070
|
+
if (tag !== 18) {
|
|
2071
|
+
break;
|
|
2072
|
+
}
|
|
2073
|
+
message.dark = reader.string();
|
|
2074
|
+
continue;
|
|
2075
|
+
}
|
|
2076
|
+
case 3: {
|
|
2077
|
+
if (tag !== 24) {
|
|
2078
|
+
break;
|
|
2079
|
+
}
|
|
2080
|
+
message.adjustContrast = reader.bool();
|
|
2081
|
+
continue;
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2085
|
+
break;
|
|
2086
|
+
}
|
|
2087
|
+
reader.skip(tag & 7);
|
|
2088
|
+
}
|
|
2089
|
+
return message;
|
|
2090
|
+
},
|
|
2091
|
+
fromJSON(object) {
|
|
2092
|
+
return {
|
|
2093
|
+
light: isSet(object.light) ? globalThis.String(object.light) : "",
|
|
2094
|
+
dark: isSet(object.dark) ? globalThis.String(object.dark) : "",
|
|
2095
|
+
adjustContrast: isSet(object.adjustContrast) ? globalThis.Boolean(object.adjustContrast) : undefined,
|
|
2096
|
+
};
|
|
2097
|
+
},
|
|
2098
|
+
toJSON(message) {
|
|
2099
|
+
const obj = {};
|
|
2100
|
+
if (message.light !== "") {
|
|
2101
|
+
obj.light = message.light;
|
|
2102
|
+
}
|
|
2103
|
+
if (message.dark !== "") {
|
|
2104
|
+
obj.dark = message.dark;
|
|
2105
|
+
}
|
|
2106
|
+
if (message.adjustContrast !== undefined) {
|
|
2107
|
+
obj.adjustContrast = message.adjustContrast;
|
|
2108
|
+
}
|
|
2109
|
+
return obj;
|
|
2110
|
+
},
|
|
2111
|
+
create(base) {
|
|
2112
|
+
return exports.DynamicColor.fromPartial(base ?? {});
|
|
2113
|
+
},
|
|
2114
|
+
fromPartial(object) {
|
|
2115
|
+
const message = createBaseDynamicColor();
|
|
2116
|
+
message.light = object.light ?? "";
|
|
2117
|
+
message.dark = object.dark ?? "";
|
|
2118
|
+
message.adjustContrast = object.adjustContrast ?? undefined;
|
|
2119
|
+
return message;
|
|
2120
|
+
},
|
|
2121
|
+
};
|
|
2122
|
+
function createBaseColorLike() {
|
|
2123
|
+
return { raw: undefined, dynamic: undefined };
|
|
2124
|
+
}
|
|
2125
|
+
exports.ColorLike = {
|
|
2126
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2127
|
+
if (message.raw !== undefined) {
|
|
2128
|
+
writer.uint32(10).string(message.raw);
|
|
2129
|
+
}
|
|
2130
|
+
if (message.dynamic !== undefined) {
|
|
2131
|
+
exports.DynamicColor.encode(message.dynamic, writer.uint32(18).fork()).join();
|
|
2132
|
+
}
|
|
2133
|
+
return writer;
|
|
2134
|
+
},
|
|
2135
|
+
decode(input, length) {
|
|
2136
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2137
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2138
|
+
const message = createBaseColorLike();
|
|
2139
|
+
while (reader.pos < end) {
|
|
2140
|
+
const tag = reader.uint32();
|
|
2141
|
+
switch (tag >>> 3) {
|
|
2142
|
+
case 1: {
|
|
2143
|
+
if (tag !== 10) {
|
|
2144
|
+
break;
|
|
2145
|
+
}
|
|
2146
|
+
message.raw = reader.string();
|
|
2147
|
+
continue;
|
|
2148
|
+
}
|
|
2149
|
+
case 2: {
|
|
2150
|
+
if (tag !== 18) {
|
|
2151
|
+
break;
|
|
2152
|
+
}
|
|
2153
|
+
message.dynamic = exports.DynamicColor.decode(reader, reader.uint32());
|
|
2154
|
+
continue;
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2158
|
+
break;
|
|
2159
|
+
}
|
|
2160
|
+
reader.skip(tag & 7);
|
|
2161
|
+
}
|
|
2162
|
+
return message;
|
|
2163
|
+
},
|
|
2164
|
+
fromJSON(object) {
|
|
2165
|
+
return {
|
|
2166
|
+
raw: isSet(object.raw) ? globalThis.String(object.raw) : undefined,
|
|
2167
|
+
dynamic: isSet(object.dynamic) ? exports.DynamicColor.fromJSON(object.dynamic) : undefined,
|
|
2168
|
+
};
|
|
2169
|
+
},
|
|
2170
|
+
toJSON(message) {
|
|
2171
|
+
const obj = {};
|
|
2172
|
+
if (message.raw !== undefined) {
|
|
2173
|
+
obj.raw = message.raw;
|
|
2174
|
+
}
|
|
2175
|
+
if (message.dynamic !== undefined) {
|
|
2176
|
+
obj.dynamic = exports.DynamicColor.toJSON(message.dynamic);
|
|
2177
|
+
}
|
|
2178
|
+
return obj;
|
|
2179
|
+
},
|
|
2180
|
+
create(base) {
|
|
2181
|
+
return exports.ColorLike.fromPartial(base ?? {});
|
|
2182
|
+
},
|
|
2183
|
+
fromPartial(object) {
|
|
2184
|
+
const message = createBaseColorLike();
|
|
2185
|
+
message.raw = object.raw ?? undefined;
|
|
2186
|
+
message.dynamic = (object.dynamic !== undefined && object.dynamic !== null)
|
|
2187
|
+
? exports.DynamicColor.fromPartial(object.dynamic)
|
|
2188
|
+
: undefined;
|
|
2189
|
+
return message;
|
|
2190
|
+
},
|
|
2191
|
+
};
|
|
2039
2192
|
function createBaseImage() {
|
|
2040
|
-
return { source: undefined, fallback: undefined, mask: undefined,
|
|
2193
|
+
return { source: undefined, fallback: undefined, mask: undefined, tintColor: undefined };
|
|
2041
2194
|
}
|
|
2042
2195
|
exports.Image = {
|
|
2043
2196
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -2050,8 +2203,8 @@ exports.Image = {
|
|
|
2050
2203
|
if (message.mask !== undefined) {
|
|
2051
2204
|
writer.uint32(24).int32(message.mask);
|
|
2052
2205
|
}
|
|
2053
|
-
if (message.
|
|
2054
|
-
writer.uint32(34).
|
|
2206
|
+
if (message.tintColor !== undefined) {
|
|
2207
|
+
exports.ColorLike.encode(message.tintColor, writer.uint32(34).fork()).join();
|
|
2055
2208
|
}
|
|
2056
2209
|
return writer;
|
|
2057
2210
|
},
|
|
@@ -2087,7 +2240,7 @@ exports.Image = {
|
|
|
2087
2240
|
if (tag !== 34) {
|
|
2088
2241
|
break;
|
|
2089
2242
|
}
|
|
2090
|
-
message.
|
|
2243
|
+
message.tintColor = exports.ColorLike.decode(reader, reader.uint32());
|
|
2091
2244
|
continue;
|
|
2092
2245
|
}
|
|
2093
2246
|
}
|
|
@@ -2103,7 +2256,7 @@ exports.Image = {
|
|
|
2103
2256
|
source: isSet(object.source) ? exports.ImageSource.fromJSON(object.source) : undefined,
|
|
2104
2257
|
fallback: isSet(object.fallback) ? exports.ImageSource.fromJSON(object.fallback) : undefined,
|
|
2105
2258
|
mask: isSet(object.mask) ? imageMaskFromJSON(object.mask) : undefined,
|
|
2106
|
-
|
|
2259
|
+
tintColor: isSet(object.tintColor) ? exports.ColorLike.fromJSON(object.tintColor) : undefined,
|
|
2107
2260
|
};
|
|
2108
2261
|
},
|
|
2109
2262
|
toJSON(message) {
|
|
@@ -2117,8 +2270,8 @@ exports.Image = {
|
|
|
2117
2270
|
if (message.mask !== undefined) {
|
|
2118
2271
|
obj.mask = imageMaskToJSON(message.mask);
|
|
2119
2272
|
}
|
|
2120
|
-
if (message.
|
|
2121
|
-
obj.
|
|
2273
|
+
if (message.tintColor !== undefined) {
|
|
2274
|
+
obj.tintColor = exports.ColorLike.toJSON(message.tintColor);
|
|
2122
2275
|
}
|
|
2123
2276
|
return obj;
|
|
2124
2277
|
},
|
|
@@ -2134,7 +2287,9 @@ exports.Image = {
|
|
|
2134
2287
|
? exports.ImageSource.fromPartial(object.fallback)
|
|
2135
2288
|
: undefined;
|
|
2136
2289
|
message.mask = object.mask ?? undefined;
|
|
2137
|
-
message.
|
|
2290
|
+
message.tintColor = (object.tintColor !== undefined && object.tintColor !== null)
|
|
2291
|
+
? exports.ColorLike.fromPartial(object.tintColor)
|
|
2292
|
+
: undefined;
|
|
2138
2293
|
return message;
|
|
2139
2294
|
},
|
|
2140
2295
|
};
|
package/dist/api/proto/wm.d.ts
CHANGED
|
@@ -12,6 +12,16 @@ export interface Window {
|
|
|
12
12
|
height: number;
|
|
13
13
|
app?: Application | undefined;
|
|
14
14
|
}
|
|
15
|
+
export interface Screen {
|
|
16
|
+
name: string;
|
|
17
|
+
model: string;
|
|
18
|
+
make: string;
|
|
19
|
+
serial?: string | undefined;
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
}
|
|
15
25
|
export interface Workspace {
|
|
16
26
|
id: string;
|
|
17
27
|
name: string;
|
|
@@ -44,6 +54,11 @@ export interface GetActiveWorkspaceWindowsRequest {
|
|
|
44
54
|
export interface GetActiveWorkspaceWindowsResponse {
|
|
45
55
|
windows: Window[];
|
|
46
56
|
}
|
|
57
|
+
export interface GetScreensRequest {
|
|
58
|
+
}
|
|
59
|
+
export interface GetScreensResponse {
|
|
60
|
+
screens: Screen[];
|
|
61
|
+
}
|
|
47
62
|
export interface GetWindowsRequest {
|
|
48
63
|
workspaceId?: string | undefined;
|
|
49
64
|
}
|
|
@@ -61,6 +76,7 @@ export interface Request {
|
|
|
61
76
|
getActiveWindow?: GetActiveWindowRequest | undefined;
|
|
62
77
|
getActiveWorkspace?: GetActiveWorkspaceRequest | undefined;
|
|
63
78
|
getWindows?: GetWindowsRequest | undefined;
|
|
79
|
+
getScreens?: GetScreensRequest | undefined;
|
|
64
80
|
getWorkspaces?: GetWorkspacesRequest | undefined;
|
|
65
81
|
setWindowBounds?: SetWindowBoundsRequest | undefined;
|
|
66
82
|
}
|
|
@@ -69,10 +85,12 @@ export interface Response {
|
|
|
69
85
|
getActiveWindow?: GetActiveWindowResponse | undefined;
|
|
70
86
|
getActiveWorkspace?: GetActiveWorkspaceResponse | undefined;
|
|
71
87
|
getWindows?: GetWindowsResponse | undefined;
|
|
88
|
+
getScreens?: GetScreensResponse | undefined;
|
|
72
89
|
getWorkspaces?: GetWorkspacesResponse | undefined;
|
|
73
90
|
setWindowBounds?: SetWindowBoundsResponse | undefined;
|
|
74
91
|
}
|
|
75
92
|
export declare const Window: MessageFns<Window>;
|
|
93
|
+
export declare const Screen: MessageFns<Screen>;
|
|
76
94
|
export declare const Workspace: MessageFns<Workspace>;
|
|
77
95
|
export declare const PingRequest: MessageFns<PingRequest>;
|
|
78
96
|
export declare const PingResponse: MessageFns<PingResponse>;
|
|
@@ -84,6 +102,8 @@ export declare const GetActiveWorkspaceRequest: MessageFns<GetActiveWorkspaceReq
|
|
|
84
102
|
export declare const GetActiveWorkspaceResponse: MessageFns<GetActiveWorkspaceResponse>;
|
|
85
103
|
export declare const GetActiveWorkspaceWindowsRequest: MessageFns<GetActiveWorkspaceWindowsRequest>;
|
|
86
104
|
export declare const GetActiveWorkspaceWindowsResponse: MessageFns<GetActiveWorkspaceWindowsResponse>;
|
|
105
|
+
export declare const GetScreensRequest: MessageFns<GetScreensRequest>;
|
|
106
|
+
export declare const GetScreensResponse: MessageFns<GetScreensResponse>;
|
|
87
107
|
export declare const GetWindowsRequest: MessageFns<GetWindowsRequest>;
|
|
88
108
|
export declare const GetWindowsResponse: MessageFns<GetWindowsResponse>;
|
|
89
109
|
export declare const SetWindowBoundsRequest: MessageFns<SetWindowBoundsRequest>;
|