@vicinae/api 0.20.9 → 0.20.10

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 (76) hide show
  1. package/dist/api/alert.d.ts +1 -1
  2. package/dist/api/alert.js +9 -14
  3. package/dist/api/client.d.ts +7 -0
  4. package/dist/api/client.js +11 -0
  5. package/dist/api/clipboard.d.ts +4 -8
  6. package/dist/api/clipboard.js +13 -18
  7. package/dist/api/color.d.ts +4 -10
  8. package/dist/api/color.js +8 -47
  9. package/dist/api/command.js +4 -6
  10. package/dist/api/controls.js +9 -56
  11. package/dist/api/environment.d.ts +0 -11
  12. package/dist/api/environment.js +2 -1
  13. package/dist/api/file-search.d.ts +3 -4
  14. package/dist/api/file-search.js +6 -4
  15. package/dist/api/globals.d.ts +9 -0
  16. package/dist/api/globals.js +5 -0
  17. package/dist/api/hooks/use-imperative-form-handle.d.ts +1 -1
  18. package/dist/api/hooks/use-imperative-form-handle.js +6 -3
  19. package/dist/api/hooks/use-navigation.d.ts +2 -2
  20. package/dist/api/hooks/use-navigation.js +2 -5
  21. package/dist/api/image.d.ts +4 -4
  22. package/dist/api/image.js +12 -51
  23. package/dist/api/index.d.ts +0 -2
  24. package/dist/api/index.js +0 -2
  25. package/dist/api/local-storage.js +7 -14
  26. package/dist/api/oauth.d.ts +1 -1
  27. package/dist/api/oauth.js +7 -15
  28. package/dist/api/preference.d.ts +2 -4
  29. package/dist/api/preference.js +10 -6
  30. package/dist/api/proto/api.d.ts +240 -0
  31. package/dist/api/proto/api.js +271 -0
  32. package/dist/api/toast.js +7 -77
  33. package/dist/api/utils.d.ts +6 -2
  34. package/dist/api/utils.js +9 -26
  35. package/dist/api/window-management.d.ts +3 -5
  36. package/dist/api/window-management.js +14 -27
  37. package/dist/schemas/manifest.d.ts +3 -3
  38. package/package.json +1 -4
  39. package/dist/api/bus.d.ts +0 -125
  40. package/dist/api/bus.js +0 -201
  41. package/dist/api/context/index.d.ts +0 -1
  42. package/dist/api/context/index.js +0 -17
  43. package/dist/api/context/navigation-context.d.ts +0 -7
  44. package/dist/api/context/navigation-context.js +0 -12
  45. package/dist/api/context/navigation-provider.d.ts +0 -7
  46. package/dist/api/context/navigation-provider.js +0 -58
  47. package/dist/api/hooks.d.ts +0 -1
  48. package/dist/api/hooks.js +0 -30
  49. package/dist/api/proto/application.d.ts +0 -79
  50. package/dist/api/proto/application.js +0 -826
  51. package/dist/api/proto/clipboard.d.ts +0 -88
  52. package/dist/api/proto/clipboard.js +0 -929
  53. package/dist/api/proto/command.d.ts +0 -35
  54. package/dist/api/proto/command.js +0 -182
  55. package/dist/api/proto/common.d.ts +0 -28
  56. package/dist/api/proto/common.js +0 -102
  57. package/dist/api/proto/extension.d.ts +0 -106
  58. package/dist/api/proto/extension.js +0 -1122
  59. package/dist/api/proto/file-search.d.ts +0 -42
  60. package/dist/api/proto/file-search.js +0 -290
  61. package/dist/api/proto/google/protobuf/struct.d.ts +0 -107
  62. package/dist/api/proto/google/protobuf/struct.js +0 -456
  63. package/dist/api/proto/ipc.d.ts +0 -64
  64. package/dist/api/proto/ipc.js +0 -604
  65. package/dist/api/proto/manager.d.ts +0 -87
  66. package/dist/api/proto/manager.js +0 -776
  67. package/dist/api/proto/oauth.d.ts +0 -97
  68. package/dist/api/proto/oauth.js +0 -994
  69. package/dist/api/proto/storage.d.ts +0 -80
  70. package/dist/api/proto/storage.js +0 -804
  71. package/dist/api/proto/ui.d.ts +0 -208
  72. package/dist/api/proto/ui.js +0 -2316
  73. package/dist/api/proto/wlr-clipboard.d.ts +0 -30
  74. package/dist/api/proto/wlr-clipboard.js +0 -158
  75. package/dist/api/proto/wm.d.ts +0 -142
  76. package/dist/api/proto/wm.js +0 -1714
@@ -1,30 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export declare const protobufPackage = "proto.ext.wlrclip";
3
- export interface Offer {
4
- data: Uint8Array;
5
- mimeType: string;
6
- }
7
- export interface Selection {
8
- offers: Offer[];
9
- }
10
- export declare const Offer: MessageFns<Offer>;
11
- export declare const Selection: MessageFns<Selection>;
12
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
13
- 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 {} ? {
14
- [K in keyof T]?: DeepPartial<T[K]>;
15
- } : Partial<T>;
16
- type KeysOfUnion<T> = T extends T ? keyof T : never;
17
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
18
- [K in keyof P]: Exact<P[K], I[K]>;
19
- } & {
20
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
21
- };
22
- export interface MessageFns<T> {
23
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
24
- decode(input: BinaryReader | Uint8Array, length?: number): T;
25
- fromJSON(object: any): T;
26
- toJSON(message: T): unknown;
27
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
28
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
29
- }
30
- export {};
@@ -1,158 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v2.7.7
5
- // protoc v6.33.1
6
- // source: wlr-clipboard.proto
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.Selection = exports.Offer = exports.protobufPackage = void 0;
9
- /* eslint-disable */
10
- const wire_1 = require("@bufbuild/protobuf/wire");
11
- exports.protobufPackage = "proto.ext.wlrclip";
12
- function createBaseOffer() {
13
- return { data: new Uint8Array(0), mimeType: "" };
14
- }
15
- exports.Offer = {
16
- encode(message, writer = new wire_1.BinaryWriter()) {
17
- if (message.data.length !== 0) {
18
- writer.uint32(10).bytes(message.data);
19
- }
20
- if (message.mimeType !== "") {
21
- writer.uint32(18).string(message.mimeType);
22
- }
23
- return writer;
24
- },
25
- decode(input, length) {
26
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
27
- const end = length === undefined ? reader.len : reader.pos + length;
28
- const message = createBaseOffer();
29
- while (reader.pos < end) {
30
- const tag = reader.uint32();
31
- switch (tag >>> 3) {
32
- case 1: {
33
- if (tag !== 10) {
34
- break;
35
- }
36
- message.data = reader.bytes();
37
- continue;
38
- }
39
- case 2: {
40
- if (tag !== 18) {
41
- break;
42
- }
43
- message.mimeType = reader.string();
44
- continue;
45
- }
46
- }
47
- if ((tag & 7) === 4 || tag === 0) {
48
- break;
49
- }
50
- reader.skip(tag & 7);
51
- }
52
- return message;
53
- },
54
- fromJSON(object) {
55
- return {
56
- data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
57
- mimeType: isSet(object.mimeType) ? globalThis.String(object.mimeType) : "",
58
- };
59
- },
60
- toJSON(message) {
61
- const obj = {};
62
- if (message.data.length !== 0) {
63
- obj.data = base64FromBytes(message.data);
64
- }
65
- if (message.mimeType !== "") {
66
- obj.mimeType = message.mimeType;
67
- }
68
- return obj;
69
- },
70
- create(base) {
71
- return exports.Offer.fromPartial(base ?? {});
72
- },
73
- fromPartial(object) {
74
- const message = createBaseOffer();
75
- message.data = object.data ?? new Uint8Array(0);
76
- message.mimeType = object.mimeType ?? "";
77
- return message;
78
- },
79
- };
80
- function createBaseSelection() {
81
- return { offers: [] };
82
- }
83
- exports.Selection = {
84
- encode(message, writer = new wire_1.BinaryWriter()) {
85
- for (const v of message.offers) {
86
- exports.Offer.encode(v, writer.uint32(10).fork()).join();
87
- }
88
- return writer;
89
- },
90
- decode(input, length) {
91
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
92
- const end = length === undefined ? reader.len : reader.pos + length;
93
- const message = createBaseSelection();
94
- while (reader.pos < end) {
95
- const tag = reader.uint32();
96
- switch (tag >>> 3) {
97
- case 1: {
98
- if (tag !== 10) {
99
- break;
100
- }
101
- message.offers.push(exports.Offer.decode(reader, reader.uint32()));
102
- continue;
103
- }
104
- }
105
- if ((tag & 7) === 4 || tag === 0) {
106
- break;
107
- }
108
- reader.skip(tag & 7);
109
- }
110
- return message;
111
- },
112
- fromJSON(object) {
113
- return { offers: globalThis.Array.isArray(object?.offers) ? object.offers.map((e) => exports.Offer.fromJSON(e)) : [] };
114
- },
115
- toJSON(message) {
116
- const obj = {};
117
- if (message.offers?.length) {
118
- obj.offers = message.offers.map((e) => exports.Offer.toJSON(e));
119
- }
120
- return obj;
121
- },
122
- create(base) {
123
- return exports.Selection.fromPartial(base ?? {});
124
- },
125
- fromPartial(object) {
126
- const message = createBaseSelection();
127
- message.offers = object.offers?.map((e) => exports.Offer.fromPartial(e)) || [];
128
- return message;
129
- },
130
- };
131
- function bytesFromBase64(b64) {
132
- if (globalThis.Buffer) {
133
- return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
134
- }
135
- else {
136
- const bin = globalThis.atob(b64);
137
- const arr = new Uint8Array(bin.length);
138
- for (let i = 0; i < bin.length; ++i) {
139
- arr[i] = bin.charCodeAt(i);
140
- }
141
- return arr;
142
- }
143
- }
144
- function base64FromBytes(arr) {
145
- if (globalThis.Buffer) {
146
- return globalThis.Buffer.from(arr).toString("base64");
147
- }
148
- else {
149
- const bin = [];
150
- arr.forEach((byte) => {
151
- bin.push(globalThis.String.fromCharCode(byte));
152
- });
153
- return globalThis.btoa(bin.join(""));
154
- }
155
- }
156
- function isSet(value) {
157
- return value !== null && value !== undefined;
158
- }
@@ -1,142 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { Application } from "./application";
3
- export declare const protobufPackage = "proto.ext.wm";
4
- export interface Window {
5
- id: string;
6
- title: string;
7
- workspaceId: string;
8
- active: boolean;
9
- fullscreen: boolean;
10
- x: number;
11
- y: number;
12
- width: number;
13
- height: number;
14
- app?: Application | undefined;
15
- }
16
- export interface Screen {
17
- name: string;
18
- model: string;
19
- make: string;
20
- serial?: string | undefined;
21
- x: number;
22
- y: number;
23
- width: number;
24
- height: number;
25
- }
26
- export interface Workspace {
27
- id: string;
28
- name: string;
29
- active: boolean;
30
- fullscreen: boolean;
31
- monitor: string;
32
- }
33
- export interface PingRequest {
34
- }
35
- export interface PingResponse {
36
- ok: boolean;
37
- }
38
- export interface FocusWindowRequest {
39
- id: string;
40
- }
41
- export interface FocusWindowResponse {
42
- ok: boolean;
43
- }
44
- export interface GetActiveWindowRequest {
45
- }
46
- export interface GetActiveWindowResponse {
47
- window: Window | undefined;
48
- }
49
- export interface GetWorkspacesRequest {
50
- }
51
- export interface GetWorkspacesResponse {
52
- workspaces: Workspace[];
53
- }
54
- export interface GetActiveWorkspaceRequest {
55
- }
56
- export interface GetActiveWorkspaceResponse {
57
- workspace: Workspace | undefined;
58
- }
59
- export interface GetActiveWorkspaceWindowsRequest {
60
- }
61
- export interface GetActiveWorkspaceWindowsResponse {
62
- windows: Window[];
63
- }
64
- export interface GetScreensRequest {
65
- }
66
- export interface GetScreensResponse {
67
- screens: Screen[];
68
- }
69
- export interface GetWindowsRequest {
70
- workspaceId?: string | undefined;
71
- }
72
- export interface GetWindowsResponse {
73
- windows: Window[];
74
- }
75
- export interface SetWindowBoundsRequest {
76
- id: string;
77
- workspaceId?: string | undefined;
78
- }
79
- export interface SetWindowBoundsResponse {
80
- }
81
- export interface Request {
82
- ping?: PingRequest | undefined;
83
- getActiveWindow?: GetActiveWindowRequest | undefined;
84
- getActiveWorkspace?: GetActiveWorkspaceRequest | undefined;
85
- getWindows?: GetWindowsRequest | undefined;
86
- getScreens?: GetScreensRequest | undefined;
87
- getWorkspaces?: GetWorkspacesRequest | undefined;
88
- setWindowBounds?: SetWindowBoundsRequest | undefined;
89
- focusWindow?: FocusWindowRequest | undefined;
90
- }
91
- export interface Response {
92
- ping?: PingResponse | undefined;
93
- getActiveWindow?: GetActiveWindowResponse | undefined;
94
- getActiveWorkspace?: GetActiveWorkspaceResponse | undefined;
95
- getWindows?: GetWindowsResponse | undefined;
96
- getScreens?: GetScreensResponse | undefined;
97
- getWorkspaces?: GetWorkspacesResponse | undefined;
98
- setWindowBounds?: SetWindowBoundsResponse | undefined;
99
- focusWindow?: FocusWindowResponse | undefined;
100
- }
101
- export declare const Window: MessageFns<Window>;
102
- export declare const Screen: MessageFns<Screen>;
103
- export declare const Workspace: MessageFns<Workspace>;
104
- export declare const PingRequest: MessageFns<PingRequest>;
105
- export declare const PingResponse: MessageFns<PingResponse>;
106
- export declare const FocusWindowRequest: MessageFns<FocusWindowRequest>;
107
- export declare const FocusWindowResponse: MessageFns<FocusWindowResponse>;
108
- export declare const GetActiveWindowRequest: MessageFns<GetActiveWindowRequest>;
109
- export declare const GetActiveWindowResponse: MessageFns<GetActiveWindowResponse>;
110
- export declare const GetWorkspacesRequest: MessageFns<GetWorkspacesRequest>;
111
- export declare const GetWorkspacesResponse: MessageFns<GetWorkspacesResponse>;
112
- export declare const GetActiveWorkspaceRequest: MessageFns<GetActiveWorkspaceRequest>;
113
- export declare const GetActiveWorkspaceResponse: MessageFns<GetActiveWorkspaceResponse>;
114
- export declare const GetActiveWorkspaceWindowsRequest: MessageFns<GetActiveWorkspaceWindowsRequest>;
115
- export declare const GetActiveWorkspaceWindowsResponse: MessageFns<GetActiveWorkspaceWindowsResponse>;
116
- export declare const GetScreensRequest: MessageFns<GetScreensRequest>;
117
- export declare const GetScreensResponse: MessageFns<GetScreensResponse>;
118
- export declare const GetWindowsRequest: MessageFns<GetWindowsRequest>;
119
- export declare const GetWindowsResponse: MessageFns<GetWindowsResponse>;
120
- export declare const SetWindowBoundsRequest: MessageFns<SetWindowBoundsRequest>;
121
- export declare const SetWindowBoundsResponse: MessageFns<SetWindowBoundsResponse>;
122
- export declare const Request: MessageFns<Request>;
123
- export declare const Response: MessageFns<Response>;
124
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
125
- 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 {} ? {
126
- [K in keyof T]?: DeepPartial<T[K]>;
127
- } : Partial<T>;
128
- type KeysOfUnion<T> = T extends T ? keyof T : never;
129
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
130
- [K in keyof P]: Exact<P[K], I[K]>;
131
- } & {
132
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
133
- };
134
- export interface MessageFns<T> {
135
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
136
- decode(input: BinaryReader | Uint8Array, length?: number): T;
137
- fromJSON(object: any): T;
138
- toJSON(message: T): unknown;
139
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
140
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
141
- }
142
- export {};