@finsemble/finsemble-electron-adapter 0.0.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/LICENSE +1 -0
- package/README.md +9 -0
- package/dist/app.d.ts +1 -0
- package/dist/app.js +3 -0
- package/dist/app.js.LICENSE.txt +334 -0
- package/dist/app.js.map +1 -0
- package/dist/deploy/deploymentHelpers.d.ts +46 -0
- package/dist/deploy/installer.d.ts +5 -0
- package/dist/deploy/packageCreator.d.ts +4 -0
- package/dist/e2o.d.ts +2 -0
- package/dist/e2o.js +2 -0
- package/dist/e2o.js.map +1 -0
- package/dist/exports.d.ts +16 -0
- package/dist/exports.js +3 -0
- package/dist/exports.js.LICENSE.txt +334 -0
- package/dist/exports.js.map +1 -0
- package/dist/logger/classes/LoggerMain.d.ts +30 -0
- package/dist/logger/classes/LoggerRenderer.d.ts +11 -0
- package/dist/logger/colorizer.d.ts +2 -0
- package/dist/logger/config.d.ts +12 -0
- package/dist/logger/formatters/basic.d.ts +2 -0
- package/dist/logger/main.d.ts +2 -0
- package/dist/logger/renderer.d.ts +1 -0
- package/dist/logger/transports/winston-daily-rotate-file.d.ts +2 -0
- package/dist/logger/transports/winston-terminal-transport.d.ts +2 -0
- package/dist/logger/types.d.ts +9 -0
- package/dist/main/AffinityGroupManager.d.ts +15 -0
- package/dist/main/BrowserViews.d.ts +39 -0
- package/dist/main/Config.d.ts +16 -0
- package/dist/main/DownloadManager.d.ts +31 -0
- package/dist/main/ExternalApplicationManager.d.ts +42 -0
- package/dist/main/IAB.d.ts +17 -0
- package/dist/main/IAC.d.ts +33 -0
- package/dist/main/Main.d.ts +6 -0
- package/dist/main/MainBus.d.ts +22 -0
- package/dist/main/MainSystem.d.ts +82 -0
- package/dist/main/MainWindow.d.ts +154 -0
- package/dist/main/Manifest.d.ts +13 -0
- package/dist/main/MonitorInfo.d.ts +4 -0
- package/dist/main/PermissionsManager.d.ts +12 -0
- package/dist/main/ScreenCapture.d.ts +7 -0
- package/dist/main/SplashScreen.d.ts +13 -0
- package/dist/main/appDataFolder.d.ts +9 -0
- package/dist/main/autoUpdaterWrapper.d.ts +37 -0
- package/dist/main/contentSecurity.d.ts +17 -0
- package/dist/main/contextMenu.d.ts +2 -0
- package/dist/main/download.d.ts +28 -0
- package/dist/main/getWindowIdentity.d.ts +3 -0
- package/dist/main/listeners.d.ts +7 -0
- package/dist/main/mainStore.d.ts +3 -0
- package/dist/main/preloads.d.ts +8 -0
- package/dist/main/protocolHandler.d.ts +11 -0
- package/dist/main/updateManager.d.ts +20 -0
- package/dist/makeInstaller.d.ts +9 -0
- package/dist/makeInstaller.js +3 -0
- package/dist/makeInstaller.js.LICENSE.txt +12 -0
- package/dist/makeInstaller.js.map +1 -0
- package/dist/permissions/chromePermissions.d.ts +59 -0
- package/dist/permissions/defaultWindowOptions.d.ts +385 -0
- package/dist/render/InterApplicationBus.d.ts +16 -0
- package/dist/render/Notification.d.ts +3 -0
- package/dist/render/RequestHelper.d.ts +23 -0
- package/dist/render/System.d.ts +72 -0
- package/dist/render/Window.d.ts +75 -0
- package/dist/render/renderHelpers.d.ts +1 -0
- package/dist/server/AppD.d.ts +18 -0
- package/dist/server/AppDStaticConfigPlugin.d.ts +8 -0
- package/dist/server/CosaicCloud.d.ts +21 -0
- package/dist/server/Progress.d.ts +26 -0
- package/dist/server/Server.d.ts +18 -0
- package/dist/server/SmartDesktop.d.ts +41 -0
- package/dist/server/SmartDesktopEndpoints.d.ts +106 -0
- package/dist/server/SmartDesktopStaticConfigPlugin.d.ts +10 -0
- package/dist/server/cssUtilities.d.ts +6 -0
- package/dist/server/writeJSON.d.ts +1 -0
- package/dist/startup/e2oLauncher.d.ts +1 -0
- package/dist/startup/runScriptInElectron.d.ts +6 -0
- package/dist/types/types.d.ts +144 -0
- package/dist/util.d.ts +24 -0
- package/exports.js +10 -0
- package/node_modules/electron-ipc-mock/.npmignore +2 -0
- package/node_modules/electron-ipc-mock/.travis.yml +8 -0
- package/node_modules/electron-ipc-mock/LICENSE +19 -0
- package/node_modules/electron-ipc-mock/README.md +42 -0
- package/node_modules/electron-ipc-mock/dist/constants.js +8 -0
- package/node_modules/electron-ipc-mock/dist/electron-ipc-mock.js +56 -0
- package/node_modules/electron-ipc-mock/dist/event.js +25 -0
- package/node_modules/electron-ipc-mock/dist/index.js +22 -0
- package/node_modules/electron-ipc-mock/dist/ipc-main.js +103 -0
- package/node_modules/electron-ipc-mock/dist/ipc-renderer.js +113 -0
- package/node_modules/electron-ipc-mock/dist/pipe.js +40 -0
- package/node_modules/electron-ipc-mock/dist/utils.js +33 -0
- package/node_modules/electron-ipc-mock/package.json +34 -0
- package/node_modules/image-size/LICENSE +9 -0
- package/node_modules/image-size/Readme.md +185 -0
- package/node_modules/image-size/bin/image-size.js +48 -0
- package/node_modules/image-size/dist/detector.d.ts +3 -0
- package/node_modules/image-size/dist/detector.js +30 -0
- package/node_modules/image-size/dist/index.d.ts +11 -0
- package/node_modules/image-size/dist/index.js +123 -0
- package/node_modules/image-size/dist/readUInt.d.ts +4 -0
- package/node_modules/image-size/dist/readUInt.js +11 -0
- package/node_modules/image-size/dist/types/bmp.d.ts +2 -0
- package/node_modules/image-size/dist/types/bmp.js +14 -0
- package/node_modules/image-size/dist/types/cur.d.ts +2 -0
- package/node_modules/image-size/dist/types/cur.js +19 -0
- package/node_modules/image-size/dist/types/dds.d.ts +2 -0
- package/node_modules/image-size/dist/types/dds.js +14 -0
- package/node_modules/image-size/dist/types/gif.d.ts +2 -0
- package/node_modules/image-size/dist/types/gif.js +16 -0
- package/node_modules/image-size/dist/types/icns.d.ts +2 -0
- package/node_modules/image-size/dist/types/icns.js +103 -0
- package/node_modules/image-size/dist/types/ico.d.ts +2 -0
- package/node_modules/image-size/dist/types/ico.js +70 -0
- package/node_modules/image-size/dist/types/interface.d.ts +14 -0
- package/node_modules/image-size/dist/types/interface.js +2 -0
- package/node_modules/image-size/dist/types/j2c.d.ts +2 -0
- package/node_modules/image-size/dist/types/j2c.js +15 -0
- package/node_modules/image-size/dist/types/jp2.d.ts +2 -0
- package/node_modules/image-size/dist/types/jp2.js +58 -0
- package/node_modules/image-size/dist/types/jpg.d.ts +2 -0
- package/node_modules/image-size/dist/types/jpg.js +123 -0
- package/node_modules/image-size/dist/types/ktx.d.ts +2 -0
- package/node_modules/image-size/dist/types/ktx.js +15 -0
- package/node_modules/image-size/dist/types/png.d.ts +2 -0
- package/node_modules/image-size/dist/types/png.js +34 -0
- package/node_modules/image-size/dist/types/pnm.d.ts +2 -0
- package/node_modules/image-size/dist/types/pnm.js +75 -0
- package/node_modules/image-size/dist/types/psd.d.ts +2 -0
- package/node_modules/image-size/dist/types/psd.js +14 -0
- package/node_modules/image-size/dist/types/svg.d.ts +2 -0
- package/node_modules/image-size/dist/types/svg.js +91 -0
- package/node_modules/image-size/dist/types/tga.d.ts +2 -0
- package/node_modules/image-size/dist/types/tga.js +14 -0
- package/node_modules/image-size/dist/types/tiff.d.ts +2 -0
- package/node_modules/image-size/dist/types/tiff.js +97 -0
- package/node_modules/image-size/dist/types/webp.d.ts +2 -0
- package/node_modules/image-size/dist/types/webp.js +58 -0
- package/node_modules/image-size/dist/types.d.ts +20 -0
- package/node_modules/image-size/dist/types.js +40 -0
- package/node_modules/image-size/package.json +68 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/queue/LICENSE +8 -0
- package/node_modules/queue/index.d.ts +173 -0
- package/node_modules/queue/index.js +195 -0
- package/node_modules/queue/package.json +43 -0
- package/node_modules/queue/readme.md +221 -0
- package/package.json +106 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { StandardResponse } from "../types/types";
|
|
2
|
+
import { AutoUpdater, Event, FeedURLOptions } from "electron";
|
|
3
|
+
declare type Listener = (event: Event, releaseNotes: string, releaseName: string, releaseDate: Date, updateURL: string) => void;
|
|
4
|
+
declare type EventName = "update-not-available" | "checking-for-update" | "error" | "before-quit-for-update" | "update-available" | "update-downloaded";
|
|
5
|
+
declare class AutoUpdaterWrapper {
|
|
6
|
+
autoUpdater: AutoUpdater;
|
|
7
|
+
useProxy: boolean;
|
|
8
|
+
feedURL?: FeedURLOptions;
|
|
9
|
+
localCache: FeedURLOptions;
|
|
10
|
+
releaseFileChecksum?: string;
|
|
11
|
+
latestReleaseFileName?: string;
|
|
12
|
+
constructor();
|
|
13
|
+
bindCorrectContext(): void;
|
|
14
|
+
on(event: EventName, listener: Listener): AutoUpdaterWrapper;
|
|
15
|
+
quitAndInstall(): void;
|
|
16
|
+
setFeedURL(options: FeedURLOptions): void;
|
|
17
|
+
_setFeedUrl(): void;
|
|
18
|
+
downloadViaElectron(downloadViaElectron: boolean): void;
|
|
19
|
+
downloadFile(params: any): Promise<{
|
|
20
|
+
err?: import("../types/types").StandardError;
|
|
21
|
+
data?: string | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
checkForUpdates(): void;
|
|
24
|
+
_checkForUpdates(): void;
|
|
25
|
+
removeOlderVersions(): void;
|
|
26
|
+
onReleaseFileDownloaded(releasesObj: StandardResponse): Promise<void>;
|
|
27
|
+
getReleaseEntriesToDownload(fileContents: any): Promise<any[]>;
|
|
28
|
+
validateLocalFiles(entries: any): Promise<any[]>;
|
|
29
|
+
hashIsValid(fileName: string, sha1: string): Promise<boolean>;
|
|
30
|
+
parseReleaseEntry(entry: any): {
|
|
31
|
+
sha1: any;
|
|
32
|
+
fileName: any;
|
|
33
|
+
filesize: number;
|
|
34
|
+
} | null;
|
|
35
|
+
}
|
|
36
|
+
export declare const autoUpdaterWrapper: AutoUpdaterWrapper;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Manifest } from "../types/types";
|
|
2
|
+
import { OnHeadersReceivedListenerDetails, HeadersReceivedResponse } from "electron";
|
|
3
|
+
export declare class CSPParser {
|
|
4
|
+
directives: any;
|
|
5
|
+
constructor(csp?: string | string[]);
|
|
6
|
+
convertToObject(cspString: string): void;
|
|
7
|
+
has(key: string): any;
|
|
8
|
+
delete(key: string): this;
|
|
9
|
+
set(key: string, value: string): this;
|
|
10
|
+
toString(): string;
|
|
11
|
+
getObject(): any;
|
|
12
|
+
}
|
|
13
|
+
export declare const removeFetchDirectives: (originalHeaders: Record<string, string[]>, url: string) => Record<string, string[]>;
|
|
14
|
+
export declare const substituteOurCSP: (originalHeaders: Record<string, string[]>, csp: string | string[]) => {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
};
|
|
17
|
+
export declare const maybeModifyResponseHeaders: (manifest: Manifest, details: OnHeadersReceivedListenerDetails, callback: (headersReceivedResponse: HeadersReceivedResponse) => void) => void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { ConsoleLogger } from "../logger/types";
|
|
4
|
+
import { StandardPromise } from "../types/types";
|
|
5
|
+
import { Transform as Stream } from "stream";
|
|
6
|
+
interface Headers {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type DownloadOptions = {
|
|
10
|
+
headers?: Headers;
|
|
11
|
+
returnStream?: boolean;
|
|
12
|
+
timeout?: number;
|
|
13
|
+
retries?: number;
|
|
14
|
+
logger?: ConsoleLogger;
|
|
15
|
+
};
|
|
16
|
+
export declare type DownloadResult = {
|
|
17
|
+
data: Buffer;
|
|
18
|
+
response: Electron.IncomingMessage;
|
|
19
|
+
};
|
|
20
|
+
export declare type StreamResult = {
|
|
21
|
+
data: Stream;
|
|
22
|
+
response: Electron.IncomingMessage;
|
|
23
|
+
};
|
|
24
|
+
export declare const download: (url: string, options?: DownloadOptions) => Promise<DownloadResult>;
|
|
25
|
+
export declare const downloadGoLang: (url: string, options?: DownloadOptions) => StandardPromise<DownloadResult>;
|
|
26
|
+
export declare const stream: (url: string, options?: DownloadOptions) => StandardPromise<StreamResult>;
|
|
27
|
+
export declare const downloadFile: (params?: any) => StandardPromise<string>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MainSystem } from "./MainSystem";
|
|
2
|
+
import { ProtocolHandler } from "./protocolHandler";
|
|
3
|
+
import { DownloadManager } from "./DownloadManager";
|
|
4
|
+
import { SplashScreen } from "./SplashScreen";
|
|
5
|
+
import { Manifest } from "../types/types";
|
|
6
|
+
import { App } from "electron";
|
|
7
|
+
export declare const setupListeners: (app: App, system: MainSystem, manifest: Manifest, protocolHandler: ProtocolHandler, downloadManager: DownloadManager, splashScreen: SplashScreen) => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Manifest } from "../types/types";
|
|
2
|
+
import { StandardResponse, WebContentsId, Preload } from "../types/types";
|
|
3
|
+
export declare const makePreloadDirectories: () => void;
|
|
4
|
+
export declare const calculateWindowTitleBarUrl: (url: string, extension: "js" | "html") => string;
|
|
5
|
+
export declare const getPreloads: (webContentsId: WebContentsId) => StandardResponse<Preload[]>;
|
|
6
|
+
export declare const validateTrustedPreloadArray: (manifest: Manifest) => void;
|
|
7
|
+
export declare const clearPreloadCache: () => Promise<void>;
|
|
8
|
+
export declare const initializePreloads: (manifest: Manifest) => Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { App } from "electron";
|
|
2
|
+
export declare class ProtocolHandler {
|
|
3
|
+
protocolURL?: URL;
|
|
4
|
+
app: App;
|
|
5
|
+
constructor(app: App);
|
|
6
|
+
saveIfProtocolString(s: string): void;
|
|
7
|
+
isCustom(): boolean;
|
|
8
|
+
handleFirstInstance(): void;
|
|
9
|
+
handleSecondInstance(commandLineParameter: string): void;
|
|
10
|
+
private registerProtocolHandler;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare class UpdateManager {
|
|
2
|
+
feedURL: any;
|
|
3
|
+
updateTimeout: number;
|
|
4
|
+
updateAvailable: boolean;
|
|
5
|
+
signalUpdateAvailable: Function | null;
|
|
6
|
+
setUpdateAvailable: Function | null;
|
|
7
|
+
updateChecker: ReturnType<typeof setTimeout> | undefined;
|
|
8
|
+
constructor();
|
|
9
|
+
setFeedUrl(feedUrl: any): void;
|
|
10
|
+
usePreloadUpdater(usePreloader: any): void;
|
|
11
|
+
setUpdateFrequency(timeInMs: number): void;
|
|
12
|
+
setOnRestartAndUpdateRequested(signalUpdateAvailable: Function): void;
|
|
13
|
+
setOnUpdateAvailable(setUpdateAvailable: Function): void;
|
|
14
|
+
requestRestart(): void;
|
|
15
|
+
_startUpdater(): void;
|
|
16
|
+
listenForNewUpdates(): void;
|
|
17
|
+
}
|
|
18
|
+
export declare const updateManager: UpdateManager;
|
|
19
|
+
export declare function handleSquirrelEvents(app: any): boolean;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare type InstallerConfig = {
|
|
2
|
+
manifestUrl?: string;
|
|
3
|
+
updateUrl?: string;
|
|
4
|
+
chromiumFlags?: Record<string, string>;
|
|
5
|
+
sddMode?: boolean;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const makeInstaller: (installerConfig: InstallerConfig) => Promise<void>;
|
|
9
|
+
export {};
|