chore: upgrade deps (#906)
* chore: upgrade deps * fix: MenuArrowRight import * fix: type naming
This commit is contained in:
@@ -99,6 +99,7 @@ export class AlertService implements SNAlertService {
|
||||
const alert = new SKAlert({
|
||||
title: title && sanitizeHtmlString(title),
|
||||
text: sanitizeHtmlString(text),
|
||||
buttons: [],
|
||||
});
|
||||
alert.present();
|
||||
return () => {
|
||||
|
||||
@@ -14,6 +14,7 @@ import {
|
||||
import { WebAppEvent, WebApplication } from '@/ui_models/application';
|
||||
import { isDesktopApplication } from '@/utils';
|
||||
import { Bridge, ElectronDesktopCallbacks } from './bridge';
|
||||
import { InternalEventBus } from '@standardnotes/services';
|
||||
|
||||
/**
|
||||
* An interface used by the Desktop application to interact with SN
|
||||
@@ -31,7 +32,7 @@ export class DesktopManager
|
||||
lastSearchedText?: string;
|
||||
|
||||
constructor(application: WebApplication, private bridge: Bridge) {
|
||||
super(application);
|
||||
super(application, new InternalEventBus());
|
||||
}
|
||||
|
||||
get webApplication() {
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
PayloadSource,
|
||||
PrefKey,
|
||||
} from '@standardnotes/snjs';
|
||||
import { InternalEventBus } from '@standardnotes/services';
|
||||
|
||||
const CACHED_THEMES_KEY = 'cachedThemes';
|
||||
|
||||
@@ -21,7 +22,7 @@ export class ThemeManager extends ApplicationService {
|
||||
private unregisterStream!: () => void;
|
||||
|
||||
constructor(application: WebApplication) {
|
||||
super(application);
|
||||
super(application, new InternalEventBus());
|
||||
this.colorSchemeEventHandler = this.colorSchemeEventHandler.bind(this);
|
||||
}
|
||||
|
||||
@@ -127,7 +128,9 @@ export class ThemeManager extends ApplicationService {
|
||||
this.deactivateTheme(themeUuid);
|
||||
hasChange = true;
|
||||
} else {
|
||||
const status = this.application.getFeatureStatus(theme.identifier);
|
||||
const status = this.application.features.getFeatureStatus(
|
||||
theme.identifier
|
||||
);
|
||||
if (status !== FeatureStatus.Entitled) {
|
||||
if (theme.active) {
|
||||
this.application.toggleTheme(theme);
|
||||
@@ -212,7 +215,7 @@ export class ThemeManager extends ApplicationService {
|
||||
|
||||
if (
|
||||
!skipEntitlementCheck &&
|
||||
this.application.getFeatureStatus(theme.identifier) !==
|
||||
this.application.features.getFeatureStatus(theme.identifier) !==
|
||||
FeatureStatus.Entitled
|
||||
) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user