chore(deps): snjs
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user