@todesktop/shared 7.61.0 → 7.62.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/lib/base.d.ts +12 -0
- package/lib/base.js +2 -0
- package/lib/desktopify2.d.ts +4 -13
- package/lib/index.d.ts +1 -0
- package/lib/toDesktop.d.ts +2 -13
- package/package.json +1 -1
- package/src/base.ts +13 -0
- package/src/desktopify2.ts +4 -13
- package/src/index.ts +1 -0
- package/src/toDesktop.ts +2 -15
package/lib/base.d.ts
ADDED
package/lib/base.js
ADDED
package/lib/desktopify2.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import {
|
|
2
|
+
import { ISwitchableValue } from "./toDesktop";
|
|
3
3
|
import { MenuItemConstructorOptions, BrowserWindowConstructorOptions, WebPreferences } from "@todesktop/client-electron-types";
|
|
4
|
+
import { BaseApp, Schemable } from "./base";
|
|
4
5
|
/**
|
|
5
6
|
* Custom ToDesktop Roles for Application & Tray Menus
|
|
6
7
|
*/
|
|
@@ -136,14 +137,6 @@ export interface DesktopifyAppWindow {
|
|
|
136
137
|
};
|
|
137
138
|
}
|
|
138
139
|
export interface DesktopifyApp2 extends Schemable {
|
|
139
|
-
/**
|
|
140
|
-
* A unique app id
|
|
141
|
-
*/
|
|
142
|
-
id: string;
|
|
143
|
-
/**
|
|
144
|
-
* The current schema version, 2 or higher
|
|
145
|
-
*/
|
|
146
|
-
schemaVersion: number;
|
|
147
140
|
/**
|
|
148
141
|
* The name of the app
|
|
149
142
|
*/
|
|
@@ -254,9 +247,7 @@ export interface DesktopifyApp2 extends Schemable {
|
|
|
254
247
|
*/
|
|
255
248
|
menus: DesktopifyAppMenu[];
|
|
256
249
|
}
|
|
257
|
-
export interface IApp2 extends
|
|
258
|
-
|
|
259
|
-
trays: DesktopifyAppTray[];
|
|
260
|
-
menus: DesktopifyAppMenu[];
|
|
250
|
+
export interface IApp2 extends BaseApp {
|
|
251
|
+
desktopApp?: DesktopifyApp2;
|
|
261
252
|
}
|
|
262
253
|
export {};
|
package/lib/index.d.ts
CHANGED
package/lib/toDesktop.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
+
import { BaseApp, Schemable } from "./base";
|
|
1
2
|
import { ExtraFileReference, FilePath, IAppBuilderLib, URL } from "./desktopify";
|
|
2
|
-
export interface Schemable {
|
|
3
|
-
schemaVersion?: number;
|
|
4
|
-
}
|
|
5
3
|
export declare type IUploadFileStatus = "error" | "success" | "done" | "uploading" | "removed";
|
|
6
4
|
export interface IUploadFile {
|
|
7
5
|
uid: string;
|
|
@@ -194,12 +192,6 @@ export interface IAppPublishedVersions {
|
|
|
194
192
|
desktopify?: string;
|
|
195
193
|
version?: string;
|
|
196
194
|
}
|
|
197
|
-
interface IStripeSubscription {
|
|
198
|
-
status: string;
|
|
199
|
-
subscriptionId: string;
|
|
200
|
-
itemId: string;
|
|
201
|
-
planId: string;
|
|
202
|
-
}
|
|
203
195
|
export interface ISwitchableValue<T> {
|
|
204
196
|
enabled: boolean;
|
|
205
197
|
value: T;
|
|
@@ -236,7 +228,7 @@ export interface CustomWindowsCodeSignEV {
|
|
|
236
228
|
hsmCertType: WindowsHSMCertType.ev;
|
|
237
229
|
hsmCertName: string;
|
|
238
230
|
}
|
|
239
|
-
export interface IApp extends
|
|
231
|
+
export interface IApp extends BaseApp {
|
|
240
232
|
appModelId: string;
|
|
241
233
|
appPkgName?: string;
|
|
242
234
|
appProtocol?: ISwitchableValue<string>;
|
|
@@ -257,7 +249,6 @@ export interface IApp extends Schemable {
|
|
|
257
249
|
};
|
|
258
250
|
icon?: string;
|
|
259
251
|
icons?: IIcon[];
|
|
260
|
-
id: string;
|
|
261
252
|
internalUrls?: ISwitchableValue<string>;
|
|
262
253
|
isContextMenuDisabled: boolean;
|
|
263
254
|
isDevToolsDisabled: boolean;
|
|
@@ -296,7 +287,6 @@ export interface IApp extends Schemable {
|
|
|
296
287
|
snapStore?: {
|
|
297
288
|
login?: string;
|
|
298
289
|
};
|
|
299
|
-
subscription?: IStripeSubscription;
|
|
300
290
|
themeSource?: "system" | "light" | "dark";
|
|
301
291
|
themeSourceMac?: "system" | "light" | "dark";
|
|
302
292
|
toggleVisibilityKeyboardShortcut?: ISwitchableValue<string>;
|
|
@@ -324,4 +314,3 @@ export interface CiInput {
|
|
|
324
314
|
buildId?: string;
|
|
325
315
|
userId: string;
|
|
326
316
|
}
|
|
327
|
-
export {};
|
package/package.json
CHANGED
package/src/base.ts
ADDED
package/src/desktopify2.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISwitchableValue } from "./toDesktop";
|
|
2
2
|
import {
|
|
3
3
|
MenuItemConstructorOptions,
|
|
4
4
|
BrowserWindowConstructorOptions,
|
|
5
5
|
WebPreferences,
|
|
6
6
|
} from "@todesktop/client-electron-types";
|
|
7
|
+
import { BaseApp, Schemable } from "./base";
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Custom ToDesktop Roles for Application & Tray Menus
|
|
@@ -243,14 +244,6 @@ export interface DesktopifyAppWindow {
|
|
|
243
244
|
// TODO: Look into hasMinHeight, etc
|
|
244
245
|
|
|
245
246
|
export interface DesktopifyApp2 extends Schemable {
|
|
246
|
-
/**
|
|
247
|
-
* A unique app id
|
|
248
|
-
*/
|
|
249
|
-
id: string;
|
|
250
|
-
/**
|
|
251
|
-
* The current schema version, 2 or higher
|
|
252
|
-
*/
|
|
253
|
-
schemaVersion: number;
|
|
254
247
|
/**
|
|
255
248
|
* The name of the app
|
|
256
249
|
*/
|
|
@@ -362,8 +355,6 @@ export interface DesktopifyApp2 extends Schemable {
|
|
|
362
355
|
menus: DesktopifyAppMenu[];
|
|
363
356
|
}
|
|
364
357
|
|
|
365
|
-
export interface IApp2 extends
|
|
366
|
-
|
|
367
|
-
trays: DesktopifyAppTray[];
|
|
368
|
-
menus: DesktopifyAppMenu[];
|
|
358
|
+
export interface IApp2 extends BaseApp {
|
|
359
|
+
desktopApp?: DesktopifyApp2;
|
|
369
360
|
}
|
package/src/index.ts
CHANGED
package/src/toDesktop.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BaseApp, Schemable } from "./base";
|
|
1
2
|
import {
|
|
2
3
|
ExtraFileReference,
|
|
3
4
|
FilePath,
|
|
@@ -5,10 +6,6 @@ import {
|
|
|
5
6
|
URL,
|
|
6
7
|
} from "./desktopify";
|
|
7
8
|
|
|
8
|
-
export interface Schemable {
|
|
9
|
-
schemaVersion?: number;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
9
|
export type IUploadFileStatus =
|
|
13
10
|
| "error"
|
|
14
11
|
| "success"
|
|
@@ -220,13 +217,6 @@ export interface IAppPublishedVersions {
|
|
|
220
217
|
version?: string;
|
|
221
218
|
}
|
|
222
219
|
|
|
223
|
-
interface IStripeSubscription {
|
|
224
|
-
status: string;
|
|
225
|
-
subscriptionId: string;
|
|
226
|
-
itemId: string;
|
|
227
|
-
planId: string;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
220
|
export interface ISwitchableValue<T> {
|
|
231
221
|
enabled: boolean;
|
|
232
222
|
value: T;
|
|
@@ -271,7 +261,7 @@ export interface CustomWindowsCodeSignEV {
|
|
|
271
261
|
hsmCertName: string;
|
|
272
262
|
}
|
|
273
263
|
|
|
274
|
-
export interface IApp extends
|
|
264
|
+
export interface IApp extends BaseApp {
|
|
275
265
|
appModelId: string;
|
|
276
266
|
appPkgName?: string;
|
|
277
267
|
appProtocol?: ISwitchableValue<string>;
|
|
@@ -290,7 +280,6 @@ export interface IApp extends Schemable {
|
|
|
290
280
|
environmentVariables?: { [propertyName: string]: string };
|
|
291
281
|
icon?: string;
|
|
292
282
|
icons?: IIcon[];
|
|
293
|
-
id: string;
|
|
294
283
|
internalUrls?: ISwitchableValue<string>;
|
|
295
284
|
isContextMenuDisabled: boolean;
|
|
296
285
|
isDevToolsDisabled: boolean;
|
|
@@ -305,7 +294,6 @@ export interface IApp extends Schemable {
|
|
|
305
294
|
shouldUseRealUserAgent?: boolean;
|
|
306
295
|
extraBrowserWindowOptions?: string;
|
|
307
296
|
enablePushNotifications?: boolean;
|
|
308
|
-
|
|
309
297
|
isTransitioningFromSquirrelWindows?: boolean;
|
|
310
298
|
jsToInject?: string;
|
|
311
299
|
menubarIcon?: string;
|
|
@@ -328,7 +316,6 @@ export interface IApp extends Schemable {
|
|
|
328
316
|
shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
|
|
329
317
|
shouldReuseRendererProcess?: boolean;
|
|
330
318
|
snapStore?: { login?: string };
|
|
331
|
-
subscription?: IStripeSubscription;
|
|
332
319
|
themeSource?: "system" | "light" | "dark";
|
|
333
320
|
themeSourceMac?: "system" | "light" | "dark";
|
|
334
321
|
toggleVisibilityKeyboardShortcut?: ISwitchableValue<string>;
|