refactor: native feature management (#2350)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { ComponentOrNativeFeature, ComponentPreferencesEntry } from '@standardnotes/models'
|
||||
import { RunWithPermissionsCallback } from './Types'
|
||||
import { IframeComponentFeatureDescription } from '@standardnotes/features'
|
||||
|
||||
export interface ComponentViewerRequiresComponentManagerFunctions {
|
||||
runWithPermissions: RunWithPermissionsCallback
|
||||
urlsForActiveThemes: () => string[]
|
||||
setComponentPreferences(
|
||||
component: ComponentOrNativeFeature<IframeComponentFeatureDescription>,
|
||||
preferences: ComponentPreferencesEntry,
|
||||
): Promise<void>
|
||||
getComponentPreferences(
|
||||
component: ComponentOrNativeFeature<IframeComponentFeatureDescription>,
|
||||
): ComponentPreferencesEntry | undefined
|
||||
}
|
||||
Reference in New Issue
Block a user