@fluid-topics/ft-app-context 1.2.61 → 1.2.63
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.
|
@@ -4,11 +4,15 @@ export interface HistoryState {
|
|
|
4
4
|
token?: string;
|
|
5
5
|
title: string;
|
|
6
6
|
majorState?: boolean;
|
|
7
|
+
category?: string;
|
|
8
|
+
[additionalInfo: string]: any;
|
|
7
9
|
}
|
|
8
10
|
export interface HistoryStateUpdate {
|
|
9
11
|
token?: string;
|
|
10
12
|
title?: string;
|
|
11
13
|
majorState?: boolean;
|
|
14
|
+
category?: string;
|
|
15
|
+
[additionalInfo: string]: any;
|
|
12
16
|
}
|
|
13
17
|
export declare class HistoryChangeEvent extends CustomEvent<{
|
|
14
18
|
currentItem: HistoryState;
|
|
@@ -2,6 +2,7 @@ import { Constructor, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
|
2
2
|
import { HistoryState } from "./HistoryService.models";
|
|
3
3
|
export interface WithHistoryInterface extends EventTarget {
|
|
4
4
|
backwardItem?: HistoryState;
|
|
5
|
+
currentItem?: HistoryState;
|
|
5
6
|
forwardItem?: HistoryState;
|
|
6
7
|
}
|
|
7
8
|
export type WithHistoryComponentType<T extends Constructor<FtLitElement>> = T & Constructor<WithHistoryInterface>;
|
|
@@ -12,6 +12,7 @@ export function withHistory(ReduxClass) {
|
|
|
12
12
|
super(...arguments);
|
|
13
13
|
this.updateState = () => {
|
|
14
14
|
this.backwardItem = window.FluidTopicsHistoryService.backwardItem();
|
|
15
|
+
this.currentItem = window.FluidTopicsHistoryService.currentItem();
|
|
15
16
|
this.forwardItem = window.FluidTopicsHistoryService.forwardItem();
|
|
16
17
|
};
|
|
17
18
|
}
|
|
@@ -31,6 +32,9 @@ export function withHistory(ReduxClass) {
|
|
|
31
32
|
__decorate([
|
|
32
33
|
state()
|
|
33
34
|
], WithHistoryClass.prototype, "forwardItem", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
state()
|
|
37
|
+
], WithHistoryClass.prototype, "currentItem", void 0);
|
|
34
38
|
return WithHistoryClass;
|
|
35
39
|
}
|
|
36
40
|
export class WithHistory extends withHistory(FtLitElement) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-app-context",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.63",
|
|
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.2.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.2.63",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@fluid-topics/public-api": "1.0.95"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "04f9005b2cadc3b804e208ffb54fc763a4a3b19a"
|
|
29
29
|
}
|