fix: Fixed issue on Android where deprecated editors wouldn't load
This commit is contained in:
@@ -10,6 +10,7 @@ import { IframeEditors } from '../Lists/IframeEditors'
|
||||
import { themes } from '../Lists/Themes'
|
||||
import { nativeEditors } from '../Lists/NativeEditors'
|
||||
import { IframeComponentFeatureDescription } from './IframeComponentFeatureDescription'
|
||||
import { ComponentArea } from '../Component/ComponentArea'
|
||||
|
||||
export function GetFeatures(): AnyFeatureDescription[] {
|
||||
return [
|
||||
@@ -54,3 +55,7 @@ export function GetNativeThemes(): ThemeFeatureDescription[] {
|
||||
export function GetDarkThemeFeature(): ThemeFeatureDescription {
|
||||
return themes().find((t) => t.identifier === NativeFeatureIdentifier.TYPES.DarkTheme) as ThemeFeatureDescription
|
||||
}
|
||||
|
||||
export function GetDeprecatedEditors(): IframeComponentFeatureDescription[] {
|
||||
return (GetDeprecatedFeatures() as IframeComponentFeatureDescription[]).filter((f) => f.area === ComponentArea.Editor)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user