@omnia/fx 7.9.10 → 7.9.11
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,4 +1,5 @@
|
|
|
1
1
|
import { AnchorLinkRoute, TokenBasedRouteStateData, IMessageBusSubscriptionHandler } from "../models";
|
|
2
|
+
import { StateData } from "../ux/InternalRouter";
|
|
2
3
|
import { TokenBasedRouter } from "./TokenBasedRouter";
|
|
3
4
|
import { VueComponentBase } from "./VueComponentBase";
|
|
4
5
|
interface AnchorLinkConfiguration {
|
|
@@ -21,6 +22,7 @@ declare class InternalAnchorLinkRouter extends TokenBasedRouter<AnchorLinkRoute,
|
|
|
21
22
|
subscribe: (config: AnchorLinkConfiguration) => IMessageBusSubscriptionHandler;
|
|
22
23
|
silentNavigate: (anchorName: string) => void;
|
|
23
24
|
clearRoute: () => void;
|
|
25
|
+
getTokenValue: (stateData: StateData) => TokenBasedRouteStateData;
|
|
24
26
|
private useConfiguration;
|
|
25
27
|
private scrollToElement;
|
|
26
28
|
private onMutationObserved;
|
|
@@ -37,6 +39,7 @@ export declare class AnchorLink {
|
|
|
37
39
|
clear(): void;
|
|
38
40
|
subscribe(config: AnchorLinkConfiguration): IMessageBusSubscriptionHandler;
|
|
39
41
|
silentNavigate(anchorName: string): void;
|
|
42
|
+
getTokenValue(stateData: StateData): TokenBasedRouteStateData;
|
|
40
43
|
static combine(path: string, anchorName: string): string | null;
|
|
41
44
|
static split(path: string): string[];
|
|
42
45
|
static transformToDefaultFormat(value: string): string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StateData } from "./InternalRouter";
|
|
1
2
|
import { ITokenBasedRouteContext, TokenBasedRouteStateData, IMessageBusTopicSubscription, TokenBasedRoute } from "../models";
|
|
2
3
|
export declare abstract class TokenBasedRouter<T1 extends TokenBasedRoute, T2 extends TokenBasedRouteStateData> {
|
|
3
4
|
private static initialized;
|
|
@@ -19,6 +20,7 @@ export declare abstract class TokenBasedRouter<T1 extends TokenBasedRoute, T2 ex
|
|
|
19
20
|
get onNavigate(): IMessageBusTopicSubscription<ITokenBasedRouteContext<T1, T2>>;
|
|
20
21
|
get routeContext(): ITokenBasedRouteContext<T1, T2>;
|
|
21
22
|
get tokenExistsOnUrl(): boolean;
|
|
23
|
+
protected protectedGetTokenValue(stateData?: StateData): TokenBasedRouteStateData;
|
|
22
24
|
protected protectedNavigate(title: string, route: T1, stateData?: T2, replaceState?: boolean): void;
|
|
23
25
|
protected protectedClearRoute(): void;
|
|
24
26
|
protected combinePathParts(...parts: string[]): string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.9.
|
|
4
|
+
"version": "7.9.11",
|
|
5
5
|
"description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"author": "Omnia Digital Workplace AB",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@omnia/fx-models": "7.9.
|
|
23
|
+
"@omnia/fx-models": "7.9.11",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|