@fluid-topics/ft-app-context 1.1.114 → 1.1.116
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.
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
interface FluidTopicsRouterService {
|
|
2
2
|
navigateTo(token: string): void;
|
|
3
|
+
attachNavigationHook(callback: () => Promise<boolean>): void;
|
|
4
|
+
detachNavigationHook(): void;
|
|
3
5
|
}
|
|
4
6
|
declare global {
|
|
5
7
|
interface Window {
|
|
@@ -8,5 +10,7 @@ declare global {
|
|
|
8
10
|
}
|
|
9
11
|
export declare class FtWebappRouterService {
|
|
10
12
|
static navigateTo(token: string): void;
|
|
13
|
+
static attachNavigationHook(callback: () => Promise<boolean>): void;
|
|
14
|
+
static detachNavigationHook(): void;
|
|
11
15
|
}
|
|
12
16
|
export {};
|
|
@@ -2,4 +2,10 @@ export class FtWebappRouterService {
|
|
|
2
2
|
static navigateTo(token) {
|
|
3
3
|
window.FluidTopicsRouterService.navigateTo(token);
|
|
4
4
|
}
|
|
5
|
+
static attachNavigationHook(callback) {
|
|
6
|
+
window.FluidTopicsRouterService.attachNavigationHook(callback);
|
|
7
|
+
}
|
|
8
|
+
static detachNavigationHook() {
|
|
9
|
+
window.FluidTopicsRouterService.detachNavigationHook();
|
|
10
|
+
}
|
|
5
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-app-context",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.116",
|
|
4
4
|
"description": "Global application context for Fluid Topics integrations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.1.116",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@fluid-topics/public-api": "1.0.77"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "261937d678cb0ad3ae752ef48cde5e906123c3e2"
|
|
29
29
|
}
|