chore(deps): snjs

This commit is contained in:
Mo
2022-02-08 14:25:53 -06:00
parent e07f3732c5
commit 1dd70364e7
6 changed files with 91 additions and 91 deletions

View File

@@ -1,7 +1,7 @@
import {
ComponentArea,
FeatureDescription,
Features,
GetFeatures,
NoteType,
} from '@standardnotes/features';
import { ContentType, SNComponent } from '@standardnotes/snjs';
@@ -49,20 +49,24 @@ export const createEditorMenuGroups = (editors: SNComponent[]) => {
others: [],
};
Features.filter(
(feature) =>
feature.content_type === ContentType.Component &&
feature.area === ComponentArea.Editor
).forEach((editorFeature) => {
if (
!editors.find((editor) => editor.identifier === editorFeature.identifier)
) {
editorItems[getEditorGroup(editorFeature)].push({
name: editorFeature.name as string,
isPremiumFeature: true,
});
}
});
GetFeatures()
.filter(
(feature) =>
feature.content_type === ContentType.Component &&
feature.area === ComponentArea.Editor
)
.forEach((editorFeature) => {
if (
!editors.find(
(editor) => editor.identifier === editorFeature.identifier
)
) {
editorItems[getEditorGroup(editorFeature)].push({
name: editorFeature.name as string,
isPremiumFeature: true,
});
}
});
editors.forEach((editor) => {
const editorItem: EditorMenuItem = {