dochub-sdk 0.1.185 → 0.1.186

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.
@@ -10,6 +10,11 @@ export enum DocHubNavigateTarget {
10
10
  top = '_top'
11
11
  }
12
12
 
13
+ /**
14
+ * Обработчик изменения расположения
15
+ */
16
+ export type DocHubLocationWatcher = (location: Location) => void;
17
+
13
18
  export interface IDocHubRouter {
14
19
  // Регистрирует роут в формате VUE2
15
20
  registerRoute(route: object);
@@ -17,4 +22,12 @@ export interface IDocHubRouter {
17
22
  registerMiddleware(middleware: object);
18
23
  // Указывает на какой роут перейти в DocHub
19
24
  navigate(url: string | DocHubNavigateCommands, target?:DocHubNavigateTarget);
25
+ /**
26
+ * Регистрирует наблюдателя за текущим location
27
+ */
28
+ registerLocationWatcher(watcher: DocHubLocationWatcher);
29
+ /**
30
+ * Удаляет наблюдателя за текущим location
31
+ */
32
+ unregisterLocationWatcher(watcher: DocHubLocationWatcher);
20
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.185",
3
+ "version": "0.1.186",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",