@sitevision/api 1.0.15 → 1.0.17
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/common/router/index.d.ts +15 -1
- package/common/router/index.js +4 -1
- package/package.json +2 -2
package/common/router/index.d.ts
CHANGED
|
@@ -73,8 +73,22 @@ export function use(callback: () => void): void;
|
|
|
73
73
|
export function getUrl(url: string): string;
|
|
74
74
|
export function getStandaloneUrl(url: string): string;
|
|
75
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Note! Client side only
|
|
78
|
+
*/
|
|
79
|
+
export function on(event: string, callback: () => void, context: any): void;
|
|
80
|
+
/**
|
|
81
|
+
* Note! Client side only
|
|
82
|
+
*/
|
|
83
|
+
export function off(event: string, callback: () => void, context: any): void;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Note! Client side only
|
|
87
|
+
*/
|
|
88
|
+
export function navigate(url: string, options: any): void;
|
|
89
|
+
|
|
76
90
|
declare namespace router {
|
|
77
|
-
export { get, post, put, use, getUrl, getStandaloneUrl };
|
|
91
|
+
export { get, post, put, use, getUrl, getStandaloneUrl, on, off, navigate };
|
|
78
92
|
}
|
|
79
93
|
|
|
80
94
|
export default router;
|
package/common/router/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitevision/api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"author": "Sitevision AB",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"access": "public",
|
|
27
27
|
"directory": "dist"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "48df240efe51785350797940a0d77436c1800e46"
|
|
30
30
|
}
|