dochub-sdk 0.1.26 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/interfaces/core.ts +6 -1
- package/package.json +1 -1
package/interfaces/core.ts
CHANGED
@@ -35,13 +35,18 @@ export interface IDocHubSettings {
|
|
35
35
|
pull(fields: IDocHubSettingsCollection | string[]): IDocHubSettingsCollection;
|
36
36
|
}
|
37
37
|
|
38
|
+
export enum DocHubNavigateCommands {
|
39
|
+
back = '$_back_$',
|
40
|
+
root = '$_root_$'
|
41
|
+
}
|
42
|
+
|
38
43
|
export interface IDocHubRouter {
|
39
44
|
// Регистрирует роут в формате VUE2
|
40
45
|
registerRoute(route: object);
|
41
46
|
// Регистрирует middleware в формате VUE2
|
42
47
|
registerMiddleware(middleware: object);
|
43
48
|
// Указывает на какой роут перейти в DocHub
|
44
|
-
navigate(url: string);
|
49
|
+
navigate(url: string | DocHubNavigateCommands);
|
45
50
|
}
|
46
51
|
|
47
52
|
export interface IDocHubContentProviders {
|