@plurid/plurid-ui-state-react 0.0.0-1 → 0.0.0-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.
- package/distribution/data/interfaces/index.d.ts +15 -0
- package/distribution/index.d.ts +1 -0
- package/distribution/index.es.js +154 -245
- package/distribution/index.es.js.map +1 -1
- package/distribution/index.js +157 -252
- package/distribution/index.js.map +1 -1
- package/distribution/modules/head/index.d.ts +59 -6
- package/distribution/modules/notifications/index.d.ts +132 -6
- package/distribution/modules/shortcuts/index.d.ts +35 -6
- package/distribution/modules/sitting/index.d.ts +64 -6
- package/distribution/modules/themes/index.d.ts +726 -6
- package/package.json +24 -20
- package/distribution/modules/head/actions/index.d.ts +0 -5
- package/distribution/modules/head/initial/index.d.ts +0 -3
- package/distribution/modules/head/reducer/index.d.ts +0 -4
- package/distribution/modules/head/resolvers/index.d.ts +0 -5
- package/distribution/modules/head/selectors/index.d.ts +0 -6
- package/distribution/modules/head/types/index.d.ts +0 -21
- package/distribution/modules/notifications/actions/index.d.ts +0 -7
- package/distribution/modules/notifications/initial/index.d.ts +0 -3
- package/distribution/modules/notifications/reducer/index.d.ts +0 -3
- package/distribution/modules/notifications/resolvers/index.d.ts +0 -7
- package/distribution/modules/notifications/selectors/index.d.ts +0 -6
- package/distribution/modules/notifications/types/index.d.ts +0 -31
- package/distribution/modules/shortcuts/actions/index.d.ts +0 -5
- package/distribution/modules/shortcuts/initial/index.d.ts +0 -3
- package/distribution/modules/shortcuts/reducer/index.d.ts +0 -3
- package/distribution/modules/shortcuts/resolvers/index.d.ts +0 -7
- package/distribution/modules/shortcuts/selectors/index.d.ts +0 -6
- package/distribution/modules/shortcuts/types/index.d.ts +0 -9
- package/distribution/modules/sitting/actions/index.d.ts +0 -6
- package/distribution/modules/sitting/initial/index.d.ts +0 -3
- package/distribution/modules/sitting/reducer/index.d.ts +0 -4
- package/distribution/modules/sitting/resolvers/index.d.ts +0 -6
- package/distribution/modules/sitting/selectors/index.d.ts +0 -7
- package/distribution/modules/sitting/types/index.d.ts +0 -15
- package/distribution/modules/themes/actions/index.d.ts +0 -5
- package/distribution/modules/themes/initial/index.d.ts +0 -3
- package/distribution/modules/themes/reducer/index.d.ts +0 -4
- package/distribution/modules/themes/resolvers/index.d.ts +0 -5
- package/distribution/modules/themes/selectors/index.d.ts +0 -7
- package/distribution/modules/themes/types/index.d.ts +0 -15
|
@@ -1,6 +1,59 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { StateWithSlice } from "../../data/interfaces";
|
|
3
|
+
export interface HeadState {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
canonicalURL: string;
|
|
7
|
+
ogTitle: string;
|
|
8
|
+
ogImage: string;
|
|
9
|
+
ogURL: string;
|
|
10
|
+
ogDescription: string;
|
|
11
|
+
styles: string[];
|
|
12
|
+
scripts: string[];
|
|
13
|
+
}
|
|
14
|
+
export declare const initialState: HeadState;
|
|
15
|
+
export declare const name: "head";
|
|
16
|
+
export declare const factory: (state?: HeadState) => import("@reduxjs/toolkit").Slice<HeadState, {
|
|
17
|
+
setHead: (state: {
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
canonicalURL: string;
|
|
21
|
+
ogTitle: string;
|
|
22
|
+
ogImage: string;
|
|
23
|
+
ogURL: string;
|
|
24
|
+
ogDescription: string;
|
|
25
|
+
styles: string[];
|
|
26
|
+
scripts: string[];
|
|
27
|
+
}, action: PayloadAction<Partial<HeadState>>) => void;
|
|
28
|
+
}, "head">;
|
|
29
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<HeadState, {
|
|
30
|
+
setHead: (state: {
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
canonicalURL: string;
|
|
34
|
+
ogTitle: string;
|
|
35
|
+
ogImage: string;
|
|
36
|
+
ogURL: string;
|
|
37
|
+
ogDescription: string;
|
|
38
|
+
styles: string[];
|
|
39
|
+
scripts: string[];
|
|
40
|
+
}, action: PayloadAction<Partial<HeadState>>) => void;
|
|
41
|
+
}, "head">;
|
|
42
|
+
export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
43
|
+
setHead: (state: {
|
|
44
|
+
title: string;
|
|
45
|
+
description: string;
|
|
46
|
+
canonicalURL: string;
|
|
47
|
+
ogTitle: string;
|
|
48
|
+
ogImage: string;
|
|
49
|
+
ogURL: string;
|
|
50
|
+
ogDescription: string;
|
|
51
|
+
styles: string[];
|
|
52
|
+
scripts: string[];
|
|
53
|
+
}, action: PayloadAction<Partial<HeadState>>) => void;
|
|
54
|
+
}, "head">;
|
|
55
|
+
export declare const getHead: (state: StateWithSlice<typeof name, HeadState>) => HeadState;
|
|
56
|
+
export declare const selectors: {
|
|
57
|
+
getHead: (state: StateWithSlice<typeof name, HeadState>) => HeadState;
|
|
58
|
+
};
|
|
59
|
+
export declare const reducer: Reducer<State>;
|
|
@@ -1,6 +1,132 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { Notification, AddNotificationPayload, StateWithSlice } from "../../data/interfaces";
|
|
3
|
+
export declare type NotificationsState = Notification[];
|
|
4
|
+
export declare const initialState: NotificationsState;
|
|
5
|
+
export declare const name: "notifications";
|
|
6
|
+
export declare const factory: (state?: NotificationsState) => import("@reduxjs/toolkit").Slice<NotificationsState, {
|
|
7
|
+
new: (state: {
|
|
8
|
+
id: string;
|
|
9
|
+
text: string;
|
|
10
|
+
html?: boolean | undefined;
|
|
11
|
+
react?: boolean | undefined;
|
|
12
|
+
timeout?: number | undefined;
|
|
13
|
+
wordBreak?: boolean | undefined;
|
|
14
|
+
}[], action: PayloadAction<string>) => Notification[];
|
|
15
|
+
add: (state: {
|
|
16
|
+
id: string;
|
|
17
|
+
text: string;
|
|
18
|
+
html?: boolean | undefined;
|
|
19
|
+
react?: boolean | undefined;
|
|
20
|
+
timeout?: number | undefined;
|
|
21
|
+
wordBreak?: boolean | undefined;
|
|
22
|
+
}[], action: PayloadAction<AddNotificationPayload>) => Notification[];
|
|
23
|
+
update: (state: {
|
|
24
|
+
id: string;
|
|
25
|
+
text: string;
|
|
26
|
+
html?: boolean | undefined;
|
|
27
|
+
react?: boolean | undefined;
|
|
28
|
+
timeout?: number | undefined;
|
|
29
|
+
wordBreak?: boolean | undefined;
|
|
30
|
+
}[], action: PayloadAction<Notification>) => Notification[];
|
|
31
|
+
remove: (state: {
|
|
32
|
+
id: string;
|
|
33
|
+
text: string;
|
|
34
|
+
html?: boolean | undefined;
|
|
35
|
+
react?: boolean | undefined;
|
|
36
|
+
timeout?: number | undefined;
|
|
37
|
+
wordBreak?: boolean | undefined;
|
|
38
|
+
}[], action: PayloadAction<string>) => {
|
|
39
|
+
id: string;
|
|
40
|
+
text: string;
|
|
41
|
+
html?: boolean | undefined;
|
|
42
|
+
react?: boolean | undefined;
|
|
43
|
+
timeout?: number | undefined;
|
|
44
|
+
wordBreak?: boolean | undefined;
|
|
45
|
+
}[];
|
|
46
|
+
}, "notifications">;
|
|
47
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<NotificationsState, {
|
|
48
|
+
new: (state: {
|
|
49
|
+
id: string;
|
|
50
|
+
text: string;
|
|
51
|
+
html?: boolean | undefined;
|
|
52
|
+
react?: boolean | undefined;
|
|
53
|
+
timeout?: number | undefined;
|
|
54
|
+
wordBreak?: boolean | undefined;
|
|
55
|
+
}[], action: PayloadAction<string>) => Notification[];
|
|
56
|
+
add: (state: {
|
|
57
|
+
id: string;
|
|
58
|
+
text: string;
|
|
59
|
+
html?: boolean | undefined;
|
|
60
|
+
react?: boolean | undefined;
|
|
61
|
+
timeout?: number | undefined;
|
|
62
|
+
wordBreak?: boolean | undefined;
|
|
63
|
+
}[], action: PayloadAction<AddNotificationPayload>) => Notification[];
|
|
64
|
+
update: (state: {
|
|
65
|
+
id: string;
|
|
66
|
+
text: string;
|
|
67
|
+
html?: boolean | undefined;
|
|
68
|
+
react?: boolean | undefined;
|
|
69
|
+
timeout?: number | undefined;
|
|
70
|
+
wordBreak?: boolean | undefined;
|
|
71
|
+
}[], action: PayloadAction<Notification>) => Notification[];
|
|
72
|
+
remove: (state: {
|
|
73
|
+
id: string;
|
|
74
|
+
text: string;
|
|
75
|
+
html?: boolean | undefined;
|
|
76
|
+
react?: boolean | undefined;
|
|
77
|
+
timeout?: number | undefined;
|
|
78
|
+
wordBreak?: boolean | undefined;
|
|
79
|
+
}[], action: PayloadAction<string>) => {
|
|
80
|
+
id: string;
|
|
81
|
+
text: string;
|
|
82
|
+
html?: boolean | undefined;
|
|
83
|
+
react?: boolean | undefined;
|
|
84
|
+
timeout?: number | undefined;
|
|
85
|
+
wordBreak?: boolean | undefined;
|
|
86
|
+
}[];
|
|
87
|
+
}, "notifications">;
|
|
88
|
+
export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
89
|
+
new: (state: {
|
|
90
|
+
id: string;
|
|
91
|
+
text: string;
|
|
92
|
+
html?: boolean | undefined;
|
|
93
|
+
react?: boolean | undefined;
|
|
94
|
+
timeout?: number | undefined;
|
|
95
|
+
wordBreak?: boolean | undefined;
|
|
96
|
+
}[], action: PayloadAction<string>) => Notification[];
|
|
97
|
+
add: (state: {
|
|
98
|
+
id: string;
|
|
99
|
+
text: string;
|
|
100
|
+
html?: boolean | undefined;
|
|
101
|
+
react?: boolean | undefined;
|
|
102
|
+
timeout?: number | undefined;
|
|
103
|
+
wordBreak?: boolean | undefined;
|
|
104
|
+
}[], action: PayloadAction<AddNotificationPayload>) => Notification[];
|
|
105
|
+
update: (state: {
|
|
106
|
+
id: string;
|
|
107
|
+
text: string;
|
|
108
|
+
html?: boolean | undefined;
|
|
109
|
+
react?: boolean | undefined;
|
|
110
|
+
timeout?: number | undefined;
|
|
111
|
+
wordBreak?: boolean | undefined;
|
|
112
|
+
}[], action: PayloadAction<Notification>) => Notification[];
|
|
113
|
+
remove: (state: {
|
|
114
|
+
id: string;
|
|
115
|
+
text: string;
|
|
116
|
+
html?: boolean | undefined;
|
|
117
|
+
react?: boolean | undefined;
|
|
118
|
+
timeout?: number | undefined;
|
|
119
|
+
wordBreak?: boolean | undefined;
|
|
120
|
+
}[], action: PayloadAction<string>) => {
|
|
121
|
+
id: string;
|
|
122
|
+
text: string;
|
|
123
|
+
html?: boolean | undefined;
|
|
124
|
+
react?: boolean | undefined;
|
|
125
|
+
timeout?: number | undefined;
|
|
126
|
+
wordBreak?: boolean | undefined;
|
|
127
|
+
}[];
|
|
128
|
+
}, "notifications">;
|
|
129
|
+
export declare const selectors: {
|
|
130
|
+
getAll: (state: StateWithSlice<typeof name, NotificationsState>) => NotificationsState;
|
|
131
|
+
};
|
|
132
|
+
export declare const reducer: Reducer<State>;
|
|
@@ -1,6 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { StateWithSlice } from "../../data/interfaces";
|
|
3
|
+
export interface ShortcutsState {
|
|
4
|
+
global: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const initialState: ShortcutsState;
|
|
7
|
+
export declare const name: "shortcuts";
|
|
8
|
+
export declare const factory: (state?: ShortcutsState) => import("@reduxjs/toolkit").Slice<ShortcutsState, {
|
|
9
|
+
setGlobalShortcuts: (state: {
|
|
10
|
+
global: boolean;
|
|
11
|
+
}, action: PayloadAction<boolean>) => void;
|
|
12
|
+
toggleGlobalShortcuts: (state: {
|
|
13
|
+
global: boolean;
|
|
14
|
+
}, _action: PayloadAction<void>) => void;
|
|
15
|
+
}, "shortcuts">;
|
|
16
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<ShortcutsState, {
|
|
17
|
+
setGlobalShortcuts: (state: {
|
|
18
|
+
global: boolean;
|
|
19
|
+
}, action: PayloadAction<boolean>) => void;
|
|
20
|
+
toggleGlobalShortcuts: (state: {
|
|
21
|
+
global: boolean;
|
|
22
|
+
}, _action: PayloadAction<void>) => void;
|
|
23
|
+
}, "shortcuts">;
|
|
24
|
+
export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
25
|
+
setGlobalShortcuts: (state: {
|
|
26
|
+
global: boolean;
|
|
27
|
+
}, action: PayloadAction<boolean>) => void;
|
|
28
|
+
toggleGlobalShortcuts: (state: {
|
|
29
|
+
global: boolean;
|
|
30
|
+
}, _action: PayloadAction<void>) => void;
|
|
31
|
+
}, "shortcuts">;
|
|
32
|
+
export declare const selectors: {
|
|
33
|
+
getGlobal: (state: StateWithSlice<typeof name, ShortcutsState>) => boolean;
|
|
34
|
+
};
|
|
35
|
+
export declare const reducer: Reducer<State>;
|
|
@@ -1,6 +1,64 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { StateWithSlice } from "../../data/interfaces";
|
|
3
|
+
export interface SittingState {
|
|
4
|
+
currentLink: string;
|
|
5
|
+
tray: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const initialState: SittingState;
|
|
8
|
+
export declare const name: "sitting";
|
|
9
|
+
export declare const factory: (state?: SittingState) => import("@reduxjs/toolkit").Slice<SittingState, {
|
|
10
|
+
setSittingCurrentLink: (state: {
|
|
11
|
+
currentLink: string;
|
|
12
|
+
tray: boolean;
|
|
13
|
+
}, action: PayloadAction<string>) => {
|
|
14
|
+
currentLink: string;
|
|
15
|
+
tray: boolean;
|
|
16
|
+
};
|
|
17
|
+
setSittingTray: (state: {
|
|
18
|
+
currentLink: string;
|
|
19
|
+
tray: boolean;
|
|
20
|
+
}, action: PayloadAction<boolean>) => void;
|
|
21
|
+
toggleSittingTray: (state: {
|
|
22
|
+
currentLink: string;
|
|
23
|
+
tray: boolean;
|
|
24
|
+
}, _action: PayloadAction<void>) => void;
|
|
25
|
+
}, "sitting">;
|
|
26
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<SittingState, {
|
|
27
|
+
setSittingCurrentLink: (state: {
|
|
28
|
+
currentLink: string;
|
|
29
|
+
tray: boolean;
|
|
30
|
+
}, action: PayloadAction<string>) => {
|
|
31
|
+
currentLink: string;
|
|
32
|
+
tray: boolean;
|
|
33
|
+
};
|
|
34
|
+
setSittingTray: (state: {
|
|
35
|
+
currentLink: string;
|
|
36
|
+
tray: boolean;
|
|
37
|
+
}, action: PayloadAction<boolean>) => void;
|
|
38
|
+
toggleSittingTray: (state: {
|
|
39
|
+
currentLink: string;
|
|
40
|
+
tray: boolean;
|
|
41
|
+
}, _action: PayloadAction<void>) => void;
|
|
42
|
+
}, "sitting">;
|
|
43
|
+
export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
44
|
+
setSittingCurrentLink: (state: {
|
|
45
|
+
currentLink: string;
|
|
46
|
+
tray: boolean;
|
|
47
|
+
}, action: PayloadAction<string>) => {
|
|
48
|
+
currentLink: string;
|
|
49
|
+
tray: boolean;
|
|
50
|
+
};
|
|
51
|
+
setSittingTray: (state: {
|
|
52
|
+
currentLink: string;
|
|
53
|
+
tray: boolean;
|
|
54
|
+
}, action: PayloadAction<boolean>) => void;
|
|
55
|
+
toggleSittingTray: (state: {
|
|
56
|
+
currentLink: string;
|
|
57
|
+
tray: boolean;
|
|
58
|
+
}, _action: PayloadAction<void>) => void;
|
|
59
|
+
}, "sitting">;
|
|
60
|
+
export declare const selectors: {
|
|
61
|
+
getCurrentLink: (state: StateWithSlice<typeof name, SittingState>) => string;
|
|
62
|
+
getTray: (state: StateWithSlice<typeof name, SittingState>) => boolean;
|
|
63
|
+
};
|
|
64
|
+
export declare const reducer: Reducer<State>;
|