mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-3394] Generally available file preview feature for extensions (#1496)
* Adding general purpose preview overlay route Preparation for file preview feature Remove unnecessary preview root route and ability to use loadChildren Extract RouterExtensionService Remove loadChildren support and use component instead Cover RouterExtensionService with unit tests Fix tests Fix build Fix rebase issue Add generally available PluginPreviewAction Add data option to child routes and navigateBackAsClose option for the preview component Support plain mode preview Fix linting Update to latest alpha of ADF * Adding documentation * Rebase fix * Update to latest adf
This commit is contained in:
@@ -31,7 +31,8 @@ export enum ViewerActionTypes {
|
||||
ViewNode = 'VIEW_NODE',
|
||||
ViewNodeVersion = 'VIEW_NODE_VERSION',
|
||||
FullScreen = 'FULLSCREEN_VIEWER',
|
||||
ClosePreview = 'CLOSE_PREVIEW'
|
||||
ClosePreview = 'CLOSE_PREVIEW',
|
||||
PluginPreview = 'PLUGIN_PREVIEW'
|
||||
}
|
||||
|
||||
export interface ViewNodeExtras {
|
||||
@@ -67,3 +68,9 @@ export class ClosePreviewAction implements Action {
|
||||
readonly type = ViewerActionTypes.ClosePreview;
|
||||
constructor(public payload?: MinimalNodeEntity) {}
|
||||
}
|
||||
|
||||
export class PluginPreviewAction implements Action {
|
||||
readonly type = ViewerActionTypes.PluginPreview;
|
||||
|
||||
constructor(public pluginRoute: string, public nodeId: string) {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user