chore(deps): upgrade snjs & sncrypto-web to npm package versions
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable prefer-promise-reject-errors */
|
||||
import { SNAlertService, ButtonType } from 'snjs';
|
||||
import { SNAlertService, ButtonType } from '@standardnotes/snjs';
|
||||
import { SKAlert } from 'sn-stylekit';
|
||||
|
||||
/** @returns a promise resolving to true if the user confirmed, false if they canceled */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { WebApplication } from '@/ui_models/application';
|
||||
import { EncryptionIntent, ProtectedAction, SNItem, ContentType, SNNote } from 'snjs';
|
||||
import { EncryptionIntent, ProtectedAction, SNItem, ContentType, SNNote } from '@standardnotes/snjs';
|
||||
|
||||
function zippableTxtName(name: string, suffix = ""): string {
|
||||
const sanitizedName = name
|
||||
@@ -111,7 +111,7 @@ export class ArchiveManager {
|
||||
);
|
||||
zipWriter.add(fileName, new this.zip.BlobReader(blob), resolve);
|
||||
});
|
||||
|
||||
|
||||
let index = 0;
|
||||
const nextFile = () => {
|
||||
const item = items[index];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ApplicationService } from 'snjs';
|
||||
import { ApplicationService } from '@standardnotes/snjs';
|
||||
import { WebApplication } from '@/ui_models/application';
|
||||
import { isDesktopApplication } from '@/utils';
|
||||
import { AppStateEvent } from '@/ui_models/app_state';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* This file will be imported by desktop, so we make sure imports are not
|
||||
* carrying too much code with them that's not tree-shakeable.
|
||||
* This file will be imported by desktop, so we make sure imports are carrying
|
||||
* as little extra code as possible with them.
|
||||
*/
|
||||
import { Environment } from 'snjs/lib/platforms';
|
||||
import { Environment } from '@standardnotes/snjs/dist/@types/platforms';
|
||||
export { Environment };
|
||||
|
||||
/** Platform-specific (i-e Electron/browser) behavior is handled by a Bridge object. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Bridge } from "./bridge";
|
||||
import { Environment } from 'snjs';
|
||||
import { Environment } from '@standardnotes/snjs';
|
||||
|
||||
const KEYCHAIN_STORAGE_KEY = 'keychain';
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { SNComponent, PurePayload, ComponentMutator, AppDataField, ContentType } from 'snjs';
|
||||
import { SNComponent, PurePayload, ComponentMutator, AppDataField, ContentType } from '@standardnotes/snjs';
|
||||
/* eslint-disable camelcase */
|
||||
import { WebApplication } from '@/ui_models/application';
|
||||
// An interface used by the Desktop app to interact with SN
|
||||
import { isDesktopApplication } from '@/utils';
|
||||
import { EncryptionIntent, ApplicationService, ApplicationEvent, removeFromArray } from 'snjs';
|
||||
import { EncryptionIntent, ApplicationService, ApplicationEvent, removeFromArray } from '@standardnotes/snjs';
|
||||
import { Bridge } from './bridge';
|
||||
|
||||
type UpdateObserverCallback = (component: SNComponent) => void
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SNLog } from 'snjs';
|
||||
import { SNLog } from '@standardnotes/snjs';
|
||||
import { isDesktopApplication, isDev } from '@/utils';
|
||||
import { storage, StorageKey } from './localStorage';
|
||||
import Bugsnag from '@bugsnag/js';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { removeFromArray } from 'snjs';
|
||||
import { removeFromArray } from '@standardnotes/snjs';
|
||||
export enum KeyboardKey {
|
||||
Tab = "Tab",
|
||||
Backspace = "Backspace",
|
||||
|
||||
@@ -9,9 +9,9 @@ import {
|
||||
ComponentMutator,
|
||||
Copy,
|
||||
dictToArray
|
||||
} from 'snjs';
|
||||
import { PayloadContent } from 'snjs/dist/@types/protocol/payloads/generator';
|
||||
import { ComponentPermission } from 'snjs/dist/@types/models/app/component';
|
||||
} from '@standardnotes/snjs';
|
||||
import { PayloadContent } from '@standardnotes/snjs';
|
||||
import { ComponentPermission } from '@standardnotes/snjs';
|
||||
|
||||
/** A class for handling installation of system extensions */
|
||||
export class NativeExtManager extends ApplicationService {
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
UserPrefsMutator,
|
||||
FillItemContent,
|
||||
ApplicationEvent,
|
||||
} from 'snjs';
|
||||
} from '@standardnotes/snjs';
|
||||
|
||||
export class PreferencesManager extends ApplicationService {
|
||||
private userPreferences!: SNUserPrefs;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { removeFromArray } from 'snjs';
|
||||
import { removeFromArray } from '@standardnotes/snjs';
|
||||
|
||||
type StatusCallback = (string: string) => void;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
SNTheme,
|
||||
removeFromArray,
|
||||
ApplicationEvent, ContentType
|
||||
} from 'snjs';
|
||||
} from '@standardnotes/snjs';
|
||||
|
||||
const CACHED_THEMES_KEY = 'cachedThemes';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user