chore: upgrade snjs and sncrypto deps
This commit is contained in:
@@ -1,11 +1,24 @@
|
||||
import { PurePayload, Environment } from "snjs";
|
||||
/** Platform-specific (i-e Electron/browser) behavior is handled by a Bridge object. */
|
||||
export interface Bridge {
|
||||
environment: Environment;
|
||||
getKeychainValue(): Promise<unknown>;
|
||||
setKeychainValue(value: any): Promise<void>;
|
||||
clearKeychainValue(): Promise<void>;
|
||||
extensionsServerHost?: string;
|
||||
syncComponents(payloads: PurePayload[]): void;
|
||||
onMajorDataChange(): void;
|
||||
onInitialDataLoad(): void;
|
||||
onSearch(text?: string): void;
|
||||
}
|
||||
export declare class BrowserBridge implements Bridge {
|
||||
environment: Environment;
|
||||
getKeychainValue(): Promise<unknown>;
|
||||
setKeychainValue(value: any): Promise<void>;
|
||||
clearKeychainValue(): Promise<void>;
|
||||
/** No-ops */
|
||||
syncComponents(): void;
|
||||
onMajorDataChange(): void;
|
||||
onInitialDataLoad(): void;
|
||||
onSearch(): void;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import { SNComponent, PurePayload } from 'snjs';
|
||||
import { WebApplication } from '@/ui_models/application';
|
||||
import { ApplicationService, ApplicationEvent } from 'snjs';
|
||||
import { Bridge } from './bridge';
|
||||
declare type UpdateObserverCallback = (component: SNComponent) => void;
|
||||
declare type ComponentActivationCallback = (payload: PurePayload) => void;
|
||||
declare type ComponentActivationObserver = {
|
||||
@@ -9,6 +10,7 @@ declare type ComponentActivationObserver = {
|
||||
callback: ComponentActivationCallback;
|
||||
};
|
||||
export declare class DesktopManager extends ApplicationService {
|
||||
private bridge;
|
||||
$rootScope: ng.IRootScopeService;
|
||||
$timeout: ng.ITimeoutService;
|
||||
componentActivationObservers: ComponentActivationObserver[];
|
||||
@@ -17,14 +19,9 @@ export declare class DesktopManager extends ApplicationService {
|
||||
}[];
|
||||
isDesktop: any;
|
||||
dataLoaded: boolean;
|
||||
dataLoadHandler?: () => void;
|
||||
majorDataChangeHandler?: () => void;
|
||||
extServerHost?: string;
|
||||
installationSyncHandler?: (payloads: PurePayload[]) => void;
|
||||
installComponentHandler?: (payload: PurePayload) => void;
|
||||
lastSearchedText?: string;
|
||||
searchHandler?: (text?: string) => void;
|
||||
constructor($rootScope: ng.IRootScopeService, $timeout: ng.ITimeoutService, application: WebApplication);
|
||||
private removeComponentObserver?;
|
||||
constructor($rootScope: ng.IRootScopeService, $timeout: ng.ITimeoutService, application: WebApplication, bridge: Bridge);
|
||||
get webApplication(): WebApplication;
|
||||
deinit(): void;
|
||||
onAppEvent(eventName: ApplicationEvent): Promise<void>;
|
||||
@@ -36,11 +33,9 @@ export declare class DesktopManager extends ApplicationService {
|
||||
*/
|
||||
convertComponentForTransmission(component: SNComponent): Promise<PurePayload>;
|
||||
syncComponentsInstallation(components: SNComponent[]): void;
|
||||
installComponent(component: SNComponent): Promise<void>;
|
||||
registerUpdateObserver(callback: UpdateObserverCallback): () => void;
|
||||
searchText(text?: string): void;
|
||||
redoSearch(): void;
|
||||
desktop_setSearchHandler(handler: (text?: string) => void): void;
|
||||
desktop_windowGainedFocus(): void;
|
||||
desktop_windowLostFocus(): void;
|
||||
desktop_onComponentInstallationComplete(componentData: any, error: any): Promise<void>;
|
||||
@@ -50,12 +45,8 @@ export declare class DesktopManager extends ApplicationService {
|
||||
};
|
||||
desktop_deregisterComponentActivationObserver(observer: ComponentActivationObserver): void;
|
||||
notifyComponentActivation(component: SNComponent): Promise<void>;
|
||||
desktop_setExtServerHost(host: string): void;
|
||||
desktop_setComponentInstallationSyncHandler(handler: (payloads: PurePayload[]) => void): void;
|
||||
desktop_setInstallComponentHandler(handler: (payload: PurePayload) => void): void;
|
||||
desktop_setInitialDataLoadHandler(handler: () => void): void;
|
||||
desktop_requestBackupFile(callback: (data: any) => void): Promise<void>;
|
||||
desktop_setMajorDataChangeHandler(handler: () => void): void;
|
||||
onExtensionsReady(): void;
|
||||
desktop_requestBackupFile(): Promise<string | undefined>;
|
||||
desktop_didBeginBackup(): void;
|
||||
desktop_didFinishBackup(success: boolean): void;
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ export declare const STRING_ENTER_ACCOUNT_PASSWORD = "Enter your account passwor
|
||||
export declare const STRING_ENTER_PASSCODE_FOR_MIGRATION = "Your application passcode is required to perform an upgrade of your local data storage structure.";
|
||||
export declare const STRING_STORAGE_UPDATE = "Storage Update";
|
||||
export declare const STRING_AUTHENTICATION_REQUIRED = "Authentication Required";
|
||||
export declare const STRING_UNSUPPORTED_BACKUP_FILE_VERSION = "This backup file was created using an unsupported version of the application and cannot be imported here. Please update your application and try again.";
|
||||
/** @password_change */
|
||||
export declare const STRING_FAILED_PASSWORD_CHANGE = "There was an error re-encrypting your items. Your password was changed, but not all your items were properly re-encrypted and synced. You should try syncing again. If all else fails, you should restore your notes from backup.";
|
||||
export declare const STRING_CONFIRM_APP_QUIT_DURING_UPGRADE: string;
|
||||
|
||||
@@ -25,7 +25,7 @@ export declare class WebApplication extends SNApplication {
|
||||
private currentAuthenticationElement?;
|
||||
editorGroup: EditorGroup;
|
||||
componentGroup: ComponentGroup;
|
||||
constructor($compile: ng.ICompileService, $timeout: ng.ITimeoutService, scope: ng.IScope, onDeinit: (app: WebApplication) => void, bridge: Bridge);
|
||||
constructor($compile: ng.ICompileService, $timeout: ng.ITimeoutService, scope: ng.IScope, onDeinit: (app: WebApplication) => void, defaultSyncServerHost: string, bridge: Bridge);
|
||||
/** @override */
|
||||
deinit(): void;
|
||||
setWebServices(services: WebServices): void;
|
||||
|
||||
@@ -3,6 +3,7 @@ import { WebApplication } from './application';
|
||||
import { Bridge } from '@/services/bridge';
|
||||
declare type AppManagerChangeCallback = () => void;
|
||||
export declare class ApplicationGroup {
|
||||
private defaultSyncServerHost;
|
||||
private bridge;
|
||||
$compile: ng.ICompileService;
|
||||
$rootScope: ng.IRootScopeService;
|
||||
@@ -10,7 +11,7 @@ export declare class ApplicationGroup {
|
||||
applications: WebApplication[];
|
||||
changeObservers: AppManagerChangeCallback[];
|
||||
activeApplication?: WebApplication;
|
||||
constructor($compile: ng.ICompileService, $rootScope: ng.IRootScopeService, $timeout: ng.ITimeoutService, bridge: Bridge);
|
||||
constructor($compile: ng.ICompileService, $rootScope: ng.IRootScopeService, $timeout: ng.ITimeoutService, defaultSyncServerHost: string, bridge: Bridge);
|
||||
private createDefaultApplication;
|
||||
/** @callback */
|
||||
onApplicationDeinit(application: WebApplication): void;
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Bridge } from './services/bridge';
|
||||
export declare class WebDeviceInterface extends DeviceInterface {
|
||||
private bridge;
|
||||
private database;
|
||||
constructor(namespace: string, timeout: any, bridge: Bridge);
|
||||
constructor(timeout: any, bridge: Bridge);
|
||||
setApplication(application: SNApplication): void;
|
||||
deinit(): void;
|
||||
getRawStorageValue(key: string): Promise<string | null>;
|
||||
@@ -24,8 +24,10 @@ export declare class WebDeviceInterface extends DeviceInterface {
|
||||
saveRawDatabasePayloads(payloads: any[]): Promise<void>;
|
||||
removeRawDatabasePayloadWithId(id: string): Promise<void>;
|
||||
removeAllRawDatabasePayloads(): Promise<void>;
|
||||
getKeychainValue(): Promise<unknown>;
|
||||
setKeychainValue(value: any): Promise<void>;
|
||||
clearKeychainValue(): Promise<void>;
|
||||
getNamespacedKeychainValue(): Promise<any>;
|
||||
setNamespacedKeychainValue(value: any): Promise<void>;
|
||||
clearNamespacedKeychainValue(): Promise<void>;
|
||||
getRawKeychainValue(): Promise<any>;
|
||||
clearRawKeychainValue(): Promise<void>;
|
||||
openUrl(url: string): void;
|
||||
}
|
||||
|
||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -10952,12 +10952,12 @@
|
||||
}
|
||||
},
|
||||
"sncrypto": {
|
||||
"version": "github:standardnotes/sncrypto#49732d8215312a08a71b833b79e94ba7c1872e11",
|
||||
"from": "github:standardnotes/sncrypto#49732d8215312a08a71b833b79e94ba7c1872e11"
|
||||
"version": "github:standardnotes/sncrypto#0b12b9748fde7c82e48609836838953b03c9200a",
|
||||
"from": "github:standardnotes/sncrypto#0b12b9748fde7c82e48609836838953b03c9200a"
|
||||
},
|
||||
"snjs": {
|
||||
"version": "github:standardnotes/snjs#ee696470fa0d5e762a39ce179f215052327acbc3",
|
||||
"from": "github:standardnotes/snjs#ee696470fa0d5e762a39ce179f215052327acbc3"
|
||||
"version": "github:standardnotes/snjs#bb04a94a9b91f2ce95ecb55f823d4a98a6654291",
|
||||
"from": "github:standardnotes/snjs#bb04a94a9b91f2ce95ecb55f823d4a98a6654291"
|
||||
},
|
||||
"sockjs": {
|
||||
"version": "0.3.20",
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
"webpack-merge": "^4.2.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"sncrypto": "github:standardnotes/sncrypto#49732d8215312a08a71b833b79e94ba7c1872e11",
|
||||
"snjs": "github:standardnotes/snjs#ee696470fa0d5e762a39ce179f215052327acbc3"
|
||||
"sncrypto": "github:standardnotes/sncrypto#0b12b9748fde7c82e48609836838953b03c9200a",
|
||||
"snjs": "github:standardnotes/snjs#bb04a94a9b91f2ce95ecb55f823d4a98a6654291"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user