@plurid/plurid-ui-state-react 0.0.0-11 → 0.0.0-12
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/index.d.mts +201 -0
- package/distribution/index.d.ts +201 -3
- package/distribution/index.js +279 -258
- package/distribution/index.js.map +1 -1
- package/distribution/index.mjs +292 -0
- package/distribution/index.mjs.map +1 -0
- package/package.json +65 -66
- package/distribution/data/interfaces/index.d.ts +0 -18
- package/distribution/index.es.js +0 -274
- package/distribution/index.es.js.map +0 -1
- package/distribution/modules/head/index.d.ts +0 -59
- package/distribution/modules/index.d.ts +0 -6
- package/distribution/modules/notifications/index.d.ts +0 -132
- package/distribution/modules/shortcuts/index.d.ts +0 -35
- package/distribution/modules/sitting/index.d.ts +0 -64
- package/distribution/modules/themes/index.d.ts +0 -726
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
2
|
+
import { ActionCreatorWithPayload, ActionCreatorWithoutPayload, PayloadAction } from '@reduxjs/toolkit';
|
|
3
|
+
import * as immer from 'immer';
|
|
4
|
+
import { Theme } from '@plurid/plurid-themes';
|
|
5
|
+
|
|
6
|
+
interface StateOfAny {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
type StateWithSlice<Key extends string, State = any> = StateOfAny & Record<Key, State>;
|
|
10
|
+
type DispatchAction<A> = A extends ActionCreatorWithPayload<infer P, infer T> ? P extends void ? () => ReturnType<ActionCreatorWithoutPayload<T>> : (payload: P) => ReturnType<ActionCreatorWithPayload<P, T>> : A extends ActionCreatorWithoutPayload<infer T> ? () => ReturnType<ActionCreatorWithoutPayload<T>> : void;
|
|
11
|
+
type DispatchActionWithoutPayload<A> = A extends ActionCreatorWithoutPayload<infer T> ? () => ReturnType<ActionCreatorWithoutPayload<T>> : void;
|
|
12
|
+
interface Notification {
|
|
13
|
+
id: string;
|
|
14
|
+
text: string;
|
|
15
|
+
html?: boolean;
|
|
16
|
+
react?: boolean;
|
|
17
|
+
timeout?: number;
|
|
18
|
+
wordBreak?: boolean;
|
|
19
|
+
}
|
|
20
|
+
type AddNotificationPayload = Partial<Notification> & {
|
|
21
|
+
text: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
interface HeadState {
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
canonicalURL: string;
|
|
28
|
+
ogTitle: string;
|
|
29
|
+
ogImage: string;
|
|
30
|
+
ogURL: string;
|
|
31
|
+
ogDescription: string;
|
|
32
|
+
styles: string[];
|
|
33
|
+
scripts: string[];
|
|
34
|
+
}
|
|
35
|
+
declare const initialState$4: HeadState;
|
|
36
|
+
declare const name$4: "head";
|
|
37
|
+
declare const factory$4: (state?: HeadState) => _reduxjs_toolkit.Slice<HeadState, {
|
|
38
|
+
setHead: (state: immer.WritableDraft<HeadState>, action: PayloadAction<Partial<HeadState>>) => void;
|
|
39
|
+
}, "head", "head", _reduxjs_toolkit.SliceSelectors<HeadState>>;
|
|
40
|
+
declare const slice$4: _reduxjs_toolkit.Slice<HeadState, {
|
|
41
|
+
setHead: (state: immer.WritableDraft<HeadState>, action: PayloadAction<Partial<HeadState>>) => void;
|
|
42
|
+
}, "head", "head", _reduxjs_toolkit.SliceSelectors<HeadState>>;
|
|
43
|
+
declare const actions$4: _reduxjs_toolkit.CaseReducerActions<{
|
|
44
|
+
setHead: (state: immer.WritableDraft<HeadState>, action: PayloadAction<Partial<HeadState>>) => void;
|
|
45
|
+
}, "head">;
|
|
46
|
+
declare const getHead: (state: StateWithSlice<typeof name$4, HeadState>) => HeadState;
|
|
47
|
+
declare const selectors$4: {
|
|
48
|
+
getHead: (state: StateWithSlice<typeof name$4, HeadState>) => HeadState;
|
|
49
|
+
};
|
|
50
|
+
declare const reducer$4: _reduxjs_toolkit.Reducer<HeadState>;
|
|
51
|
+
|
|
52
|
+
type index$4_HeadState = HeadState;
|
|
53
|
+
declare const index$4_getHead: typeof getHead;
|
|
54
|
+
declare namespace index$4 {
|
|
55
|
+
export { type index$4_HeadState as HeadState, actions$4 as actions, factory$4 as factory, index$4_getHead as getHead, initialState$4 as initialState, name$4 as name, reducer$4 as reducer, selectors$4 as selectors, slice$4 as slice };
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type NotificationsState = Notification[];
|
|
59
|
+
declare const initialState$3: NotificationsState;
|
|
60
|
+
declare const name$3: "notifications";
|
|
61
|
+
declare const factory$3: (state?: NotificationsState) => _reduxjs_toolkit.Slice<NotificationsState, {
|
|
62
|
+
new: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => Notification[];
|
|
63
|
+
add: (state: immer.WritableDraft<Notification>[], action: PayloadAction<AddNotificationPayload>) => Notification[];
|
|
64
|
+
update: (state: immer.WritableDraft<Notification>[], action: PayloadAction<Notification>) => Notification[];
|
|
65
|
+
remove: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => immer.WritableDraft<Notification>[];
|
|
66
|
+
}, "notifications", "notifications", _reduxjs_toolkit.SliceSelectors<NotificationsState>>;
|
|
67
|
+
declare const slice$3: _reduxjs_toolkit.Slice<NotificationsState, {
|
|
68
|
+
new: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => Notification[];
|
|
69
|
+
add: (state: immer.WritableDraft<Notification>[], action: PayloadAction<AddNotificationPayload>) => Notification[];
|
|
70
|
+
update: (state: immer.WritableDraft<Notification>[], action: PayloadAction<Notification>) => Notification[];
|
|
71
|
+
remove: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => immer.WritableDraft<Notification>[];
|
|
72
|
+
}, "notifications", "notifications", _reduxjs_toolkit.SliceSelectors<NotificationsState>>;
|
|
73
|
+
declare const actions$3: _reduxjs_toolkit.CaseReducerActions<{
|
|
74
|
+
new: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => Notification[];
|
|
75
|
+
add: (state: immer.WritableDraft<Notification>[], action: PayloadAction<AddNotificationPayload>) => Notification[];
|
|
76
|
+
update: (state: immer.WritableDraft<Notification>[], action: PayloadAction<Notification>) => Notification[];
|
|
77
|
+
remove: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => immer.WritableDraft<Notification>[];
|
|
78
|
+
}, "notifications">;
|
|
79
|
+
declare const selectors$3: {
|
|
80
|
+
getAll: (state: StateWithSlice<typeof name$3, NotificationsState>) => NotificationsState;
|
|
81
|
+
};
|
|
82
|
+
declare const reducer$3: _reduxjs_toolkit.Reducer<NotificationsState>;
|
|
83
|
+
|
|
84
|
+
type index$3_NotificationsState = NotificationsState;
|
|
85
|
+
declare namespace index$3 {
|
|
86
|
+
export { type index$3_NotificationsState as NotificationsState, actions$3 as actions, factory$3 as factory, initialState$3 as initialState, name$3 as name, reducer$3 as reducer, selectors$3 as selectors, slice$3 as slice };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
interface ShortcutsState {
|
|
90
|
+
global: boolean;
|
|
91
|
+
}
|
|
92
|
+
declare const initialState$2: ShortcutsState;
|
|
93
|
+
declare const name$2: "shortcuts";
|
|
94
|
+
declare const factory$2: (state?: ShortcutsState) => _reduxjs_toolkit.Slice<ShortcutsState, {
|
|
95
|
+
setGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, action: PayloadAction<boolean>) => void;
|
|
96
|
+
toggleGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, _action: PayloadAction<void>) => void;
|
|
97
|
+
}, "shortcuts", "shortcuts", _reduxjs_toolkit.SliceSelectors<ShortcutsState>>;
|
|
98
|
+
declare const slice$2: _reduxjs_toolkit.Slice<ShortcutsState, {
|
|
99
|
+
setGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, action: PayloadAction<boolean>) => void;
|
|
100
|
+
toggleGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, _action: PayloadAction<void>) => void;
|
|
101
|
+
}, "shortcuts", "shortcuts", _reduxjs_toolkit.SliceSelectors<ShortcutsState>>;
|
|
102
|
+
declare const actions$2: _reduxjs_toolkit.CaseReducerActions<{
|
|
103
|
+
setGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, action: PayloadAction<boolean>) => void;
|
|
104
|
+
toggleGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, _action: PayloadAction<void>) => void;
|
|
105
|
+
}, "shortcuts">;
|
|
106
|
+
declare const selectors$2: {
|
|
107
|
+
getGlobal: (state: StateWithSlice<typeof name$2, ShortcutsState>) => boolean;
|
|
108
|
+
};
|
|
109
|
+
declare const reducer$2: _reduxjs_toolkit.Reducer<ShortcutsState>;
|
|
110
|
+
|
|
111
|
+
type index$2_ShortcutsState = ShortcutsState;
|
|
112
|
+
declare namespace index$2 {
|
|
113
|
+
export { type index$2_ShortcutsState as ShortcutsState, actions$2 as actions, factory$2 as factory, initialState$2 as initialState, name$2 as name, reducer$2 as reducer, selectors$2 as selectors, slice$2 as slice };
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface SittingState {
|
|
117
|
+
currentLink: string;
|
|
118
|
+
tray: boolean;
|
|
119
|
+
}
|
|
120
|
+
declare const initialState$1: SittingState;
|
|
121
|
+
declare const name$1: "sitting";
|
|
122
|
+
declare const factory$1: (state?: SittingState) => _reduxjs_toolkit.Slice<SittingState, {
|
|
123
|
+
setSittingCurrentLink: (state: immer.WritableDraft<SittingState>, action: PayloadAction<string>) => {
|
|
124
|
+
currentLink: string;
|
|
125
|
+
tray: boolean;
|
|
126
|
+
};
|
|
127
|
+
setSittingTray: (state: immer.WritableDraft<SittingState>, action: PayloadAction<boolean>) => void;
|
|
128
|
+
toggleSittingTray: (state: immer.WritableDraft<SittingState>, _action: PayloadAction<void>) => void;
|
|
129
|
+
}, "sitting", "sitting", _reduxjs_toolkit.SliceSelectors<SittingState>>;
|
|
130
|
+
declare const slice$1: _reduxjs_toolkit.Slice<SittingState, {
|
|
131
|
+
setSittingCurrentLink: (state: immer.WritableDraft<SittingState>, action: PayloadAction<string>) => {
|
|
132
|
+
currentLink: string;
|
|
133
|
+
tray: boolean;
|
|
134
|
+
};
|
|
135
|
+
setSittingTray: (state: immer.WritableDraft<SittingState>, action: PayloadAction<boolean>) => void;
|
|
136
|
+
toggleSittingTray: (state: immer.WritableDraft<SittingState>, _action: PayloadAction<void>) => void;
|
|
137
|
+
}, "sitting", "sitting", _reduxjs_toolkit.SliceSelectors<SittingState>>;
|
|
138
|
+
declare const actions$1: _reduxjs_toolkit.CaseReducerActions<{
|
|
139
|
+
setSittingCurrentLink: (state: immer.WritableDraft<SittingState>, action: PayloadAction<string>) => {
|
|
140
|
+
currentLink: string;
|
|
141
|
+
tray: boolean;
|
|
142
|
+
};
|
|
143
|
+
setSittingTray: (state: immer.WritableDraft<SittingState>, action: PayloadAction<boolean>) => void;
|
|
144
|
+
toggleSittingTray: (state: immer.WritableDraft<SittingState>, _action: PayloadAction<void>) => void;
|
|
145
|
+
}, "sitting">;
|
|
146
|
+
declare const selectors$1: {
|
|
147
|
+
getCurrentLink: (state: StateWithSlice<typeof name$1, SittingState>) => string;
|
|
148
|
+
getTray: (state: StateWithSlice<typeof name$1, SittingState>) => boolean;
|
|
149
|
+
};
|
|
150
|
+
declare const reducer$1: _reduxjs_toolkit.Reducer<SittingState>;
|
|
151
|
+
|
|
152
|
+
type index$1_SittingState = SittingState;
|
|
153
|
+
declare namespace index$1 {
|
|
154
|
+
export { type index$1_SittingState as SittingState, actions$1 as actions, factory$1 as factory, initialState$1 as initialState, name$1 as name, reducer$1 as reducer, selectors$1 as selectors, slice$1 as slice };
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
interface ThemesState {
|
|
158
|
+
general: Theme;
|
|
159
|
+
interaction: Theme;
|
|
160
|
+
}
|
|
161
|
+
declare const initialState: ThemesState;
|
|
162
|
+
declare const name: "themes";
|
|
163
|
+
interface SetThemePayload {
|
|
164
|
+
type: 'general' | 'interaction';
|
|
165
|
+
theme: Theme;
|
|
166
|
+
}
|
|
167
|
+
declare const factory: (state?: ThemesState) => _reduxjs_toolkit.Slice<ThemesState, {
|
|
168
|
+
setTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<SetThemePayload>) => void;
|
|
169
|
+
setGeneralTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
170
|
+
setInteractionTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
171
|
+
}, "themes", "themes", _reduxjs_toolkit.SliceSelectors<ThemesState>>;
|
|
172
|
+
declare const slice: _reduxjs_toolkit.Slice<ThemesState, {
|
|
173
|
+
setTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<SetThemePayload>) => void;
|
|
174
|
+
setGeneralTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
175
|
+
setInteractionTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
176
|
+
}, "themes", "themes", _reduxjs_toolkit.SliceSelectors<ThemesState>>;
|
|
177
|
+
declare const actions: _reduxjs_toolkit.CaseReducerActions<{
|
|
178
|
+
setTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<SetThemePayload>) => void;
|
|
179
|
+
setGeneralTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
180
|
+
setInteractionTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
181
|
+
}, "themes">;
|
|
182
|
+
declare const selectors: {
|
|
183
|
+
getGeneralTheme: (state: StateWithSlice<typeof name, ThemesState>) => Theme;
|
|
184
|
+
getInteractionTheme: (state: StateWithSlice<typeof name, ThemesState>) => Theme;
|
|
185
|
+
};
|
|
186
|
+
declare const reducer: _reduxjs_toolkit.Reducer<ThemesState>;
|
|
187
|
+
|
|
188
|
+
type index_SetThemePayload = SetThemePayload;
|
|
189
|
+
type index_ThemesState = ThemesState;
|
|
190
|
+
declare const index_actions: typeof actions;
|
|
191
|
+
declare const index_factory: typeof factory;
|
|
192
|
+
declare const index_initialState: typeof initialState;
|
|
193
|
+
declare const index_name: typeof name;
|
|
194
|
+
declare const index_reducer: typeof reducer;
|
|
195
|
+
declare const index_selectors: typeof selectors;
|
|
196
|
+
declare const index_slice: typeof slice;
|
|
197
|
+
declare namespace index {
|
|
198
|
+
export { type index_SetThemePayload as SetThemePayload, type index_ThemesState as ThemesState, index_actions as actions, index_factory as factory, index_initialState as initialState, index_name as name, index_reducer as reducer, index_selectors as selectors, index_slice as slice };
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export { type AddNotificationPayload, type DispatchAction, type DispatchActionWithoutPayload, type HeadState, type Notification, type NotificationsState, type ShortcutsState, type SittingState, type StateOfAny, type StateWithSlice, type ThemesState, index$4 as head, index$3 as notifications, index$2 as shortcuts, index$1 as sitting, index as themes };
|
package/distribution/index.d.ts
CHANGED
|
@@ -1,3 +1,201 @@
|
|
|
1
|
-
import '
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
2
|
+
import { ActionCreatorWithPayload, ActionCreatorWithoutPayload, PayloadAction } from '@reduxjs/toolkit';
|
|
3
|
+
import * as immer from 'immer';
|
|
4
|
+
import { Theme } from '@plurid/plurid-themes';
|
|
5
|
+
|
|
6
|
+
interface StateOfAny {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
type StateWithSlice<Key extends string, State = any> = StateOfAny & Record<Key, State>;
|
|
10
|
+
type DispatchAction<A> = A extends ActionCreatorWithPayload<infer P, infer T> ? P extends void ? () => ReturnType<ActionCreatorWithoutPayload<T>> : (payload: P) => ReturnType<ActionCreatorWithPayload<P, T>> : A extends ActionCreatorWithoutPayload<infer T> ? () => ReturnType<ActionCreatorWithoutPayload<T>> : void;
|
|
11
|
+
type DispatchActionWithoutPayload<A> = A extends ActionCreatorWithoutPayload<infer T> ? () => ReturnType<ActionCreatorWithoutPayload<T>> : void;
|
|
12
|
+
interface Notification {
|
|
13
|
+
id: string;
|
|
14
|
+
text: string;
|
|
15
|
+
html?: boolean;
|
|
16
|
+
react?: boolean;
|
|
17
|
+
timeout?: number;
|
|
18
|
+
wordBreak?: boolean;
|
|
19
|
+
}
|
|
20
|
+
type AddNotificationPayload = Partial<Notification> & {
|
|
21
|
+
text: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
interface HeadState {
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
canonicalURL: string;
|
|
28
|
+
ogTitle: string;
|
|
29
|
+
ogImage: string;
|
|
30
|
+
ogURL: string;
|
|
31
|
+
ogDescription: string;
|
|
32
|
+
styles: string[];
|
|
33
|
+
scripts: string[];
|
|
34
|
+
}
|
|
35
|
+
declare const initialState$4: HeadState;
|
|
36
|
+
declare const name$4: "head";
|
|
37
|
+
declare const factory$4: (state?: HeadState) => _reduxjs_toolkit.Slice<HeadState, {
|
|
38
|
+
setHead: (state: immer.WritableDraft<HeadState>, action: PayloadAction<Partial<HeadState>>) => void;
|
|
39
|
+
}, "head", "head", _reduxjs_toolkit.SliceSelectors<HeadState>>;
|
|
40
|
+
declare const slice$4: _reduxjs_toolkit.Slice<HeadState, {
|
|
41
|
+
setHead: (state: immer.WritableDraft<HeadState>, action: PayloadAction<Partial<HeadState>>) => void;
|
|
42
|
+
}, "head", "head", _reduxjs_toolkit.SliceSelectors<HeadState>>;
|
|
43
|
+
declare const actions$4: _reduxjs_toolkit.CaseReducerActions<{
|
|
44
|
+
setHead: (state: immer.WritableDraft<HeadState>, action: PayloadAction<Partial<HeadState>>) => void;
|
|
45
|
+
}, "head">;
|
|
46
|
+
declare const getHead: (state: StateWithSlice<typeof name$4, HeadState>) => HeadState;
|
|
47
|
+
declare const selectors$4: {
|
|
48
|
+
getHead: (state: StateWithSlice<typeof name$4, HeadState>) => HeadState;
|
|
49
|
+
};
|
|
50
|
+
declare const reducer$4: _reduxjs_toolkit.Reducer<HeadState>;
|
|
51
|
+
|
|
52
|
+
type index$4_HeadState = HeadState;
|
|
53
|
+
declare const index$4_getHead: typeof getHead;
|
|
54
|
+
declare namespace index$4 {
|
|
55
|
+
export { type index$4_HeadState as HeadState, actions$4 as actions, factory$4 as factory, index$4_getHead as getHead, initialState$4 as initialState, name$4 as name, reducer$4 as reducer, selectors$4 as selectors, slice$4 as slice };
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type NotificationsState = Notification[];
|
|
59
|
+
declare const initialState$3: NotificationsState;
|
|
60
|
+
declare const name$3: "notifications";
|
|
61
|
+
declare const factory$3: (state?: NotificationsState) => _reduxjs_toolkit.Slice<NotificationsState, {
|
|
62
|
+
new: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => Notification[];
|
|
63
|
+
add: (state: immer.WritableDraft<Notification>[], action: PayloadAction<AddNotificationPayload>) => Notification[];
|
|
64
|
+
update: (state: immer.WritableDraft<Notification>[], action: PayloadAction<Notification>) => Notification[];
|
|
65
|
+
remove: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => immer.WritableDraft<Notification>[];
|
|
66
|
+
}, "notifications", "notifications", _reduxjs_toolkit.SliceSelectors<NotificationsState>>;
|
|
67
|
+
declare const slice$3: _reduxjs_toolkit.Slice<NotificationsState, {
|
|
68
|
+
new: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => Notification[];
|
|
69
|
+
add: (state: immer.WritableDraft<Notification>[], action: PayloadAction<AddNotificationPayload>) => Notification[];
|
|
70
|
+
update: (state: immer.WritableDraft<Notification>[], action: PayloadAction<Notification>) => Notification[];
|
|
71
|
+
remove: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => immer.WritableDraft<Notification>[];
|
|
72
|
+
}, "notifications", "notifications", _reduxjs_toolkit.SliceSelectors<NotificationsState>>;
|
|
73
|
+
declare const actions$3: _reduxjs_toolkit.CaseReducerActions<{
|
|
74
|
+
new: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => Notification[];
|
|
75
|
+
add: (state: immer.WritableDraft<Notification>[], action: PayloadAction<AddNotificationPayload>) => Notification[];
|
|
76
|
+
update: (state: immer.WritableDraft<Notification>[], action: PayloadAction<Notification>) => Notification[];
|
|
77
|
+
remove: (state: immer.WritableDraft<Notification>[], action: PayloadAction<string>) => immer.WritableDraft<Notification>[];
|
|
78
|
+
}, "notifications">;
|
|
79
|
+
declare const selectors$3: {
|
|
80
|
+
getAll: (state: StateWithSlice<typeof name$3, NotificationsState>) => NotificationsState;
|
|
81
|
+
};
|
|
82
|
+
declare const reducer$3: _reduxjs_toolkit.Reducer<NotificationsState>;
|
|
83
|
+
|
|
84
|
+
type index$3_NotificationsState = NotificationsState;
|
|
85
|
+
declare namespace index$3 {
|
|
86
|
+
export { type index$3_NotificationsState as NotificationsState, actions$3 as actions, factory$3 as factory, initialState$3 as initialState, name$3 as name, reducer$3 as reducer, selectors$3 as selectors, slice$3 as slice };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
interface ShortcutsState {
|
|
90
|
+
global: boolean;
|
|
91
|
+
}
|
|
92
|
+
declare const initialState$2: ShortcutsState;
|
|
93
|
+
declare const name$2: "shortcuts";
|
|
94
|
+
declare const factory$2: (state?: ShortcutsState) => _reduxjs_toolkit.Slice<ShortcutsState, {
|
|
95
|
+
setGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, action: PayloadAction<boolean>) => void;
|
|
96
|
+
toggleGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, _action: PayloadAction<void>) => void;
|
|
97
|
+
}, "shortcuts", "shortcuts", _reduxjs_toolkit.SliceSelectors<ShortcutsState>>;
|
|
98
|
+
declare const slice$2: _reduxjs_toolkit.Slice<ShortcutsState, {
|
|
99
|
+
setGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, action: PayloadAction<boolean>) => void;
|
|
100
|
+
toggleGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, _action: PayloadAction<void>) => void;
|
|
101
|
+
}, "shortcuts", "shortcuts", _reduxjs_toolkit.SliceSelectors<ShortcutsState>>;
|
|
102
|
+
declare const actions$2: _reduxjs_toolkit.CaseReducerActions<{
|
|
103
|
+
setGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, action: PayloadAction<boolean>) => void;
|
|
104
|
+
toggleGlobalShortcuts: (state: immer.WritableDraft<ShortcutsState>, _action: PayloadAction<void>) => void;
|
|
105
|
+
}, "shortcuts">;
|
|
106
|
+
declare const selectors$2: {
|
|
107
|
+
getGlobal: (state: StateWithSlice<typeof name$2, ShortcutsState>) => boolean;
|
|
108
|
+
};
|
|
109
|
+
declare const reducer$2: _reduxjs_toolkit.Reducer<ShortcutsState>;
|
|
110
|
+
|
|
111
|
+
type index$2_ShortcutsState = ShortcutsState;
|
|
112
|
+
declare namespace index$2 {
|
|
113
|
+
export { type index$2_ShortcutsState as ShortcutsState, actions$2 as actions, factory$2 as factory, initialState$2 as initialState, name$2 as name, reducer$2 as reducer, selectors$2 as selectors, slice$2 as slice };
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface SittingState {
|
|
117
|
+
currentLink: string;
|
|
118
|
+
tray: boolean;
|
|
119
|
+
}
|
|
120
|
+
declare const initialState$1: SittingState;
|
|
121
|
+
declare const name$1: "sitting";
|
|
122
|
+
declare const factory$1: (state?: SittingState) => _reduxjs_toolkit.Slice<SittingState, {
|
|
123
|
+
setSittingCurrentLink: (state: immer.WritableDraft<SittingState>, action: PayloadAction<string>) => {
|
|
124
|
+
currentLink: string;
|
|
125
|
+
tray: boolean;
|
|
126
|
+
};
|
|
127
|
+
setSittingTray: (state: immer.WritableDraft<SittingState>, action: PayloadAction<boolean>) => void;
|
|
128
|
+
toggleSittingTray: (state: immer.WritableDraft<SittingState>, _action: PayloadAction<void>) => void;
|
|
129
|
+
}, "sitting", "sitting", _reduxjs_toolkit.SliceSelectors<SittingState>>;
|
|
130
|
+
declare const slice$1: _reduxjs_toolkit.Slice<SittingState, {
|
|
131
|
+
setSittingCurrentLink: (state: immer.WritableDraft<SittingState>, action: PayloadAction<string>) => {
|
|
132
|
+
currentLink: string;
|
|
133
|
+
tray: boolean;
|
|
134
|
+
};
|
|
135
|
+
setSittingTray: (state: immer.WritableDraft<SittingState>, action: PayloadAction<boolean>) => void;
|
|
136
|
+
toggleSittingTray: (state: immer.WritableDraft<SittingState>, _action: PayloadAction<void>) => void;
|
|
137
|
+
}, "sitting", "sitting", _reduxjs_toolkit.SliceSelectors<SittingState>>;
|
|
138
|
+
declare const actions$1: _reduxjs_toolkit.CaseReducerActions<{
|
|
139
|
+
setSittingCurrentLink: (state: immer.WritableDraft<SittingState>, action: PayloadAction<string>) => {
|
|
140
|
+
currentLink: string;
|
|
141
|
+
tray: boolean;
|
|
142
|
+
};
|
|
143
|
+
setSittingTray: (state: immer.WritableDraft<SittingState>, action: PayloadAction<boolean>) => void;
|
|
144
|
+
toggleSittingTray: (state: immer.WritableDraft<SittingState>, _action: PayloadAction<void>) => void;
|
|
145
|
+
}, "sitting">;
|
|
146
|
+
declare const selectors$1: {
|
|
147
|
+
getCurrentLink: (state: StateWithSlice<typeof name$1, SittingState>) => string;
|
|
148
|
+
getTray: (state: StateWithSlice<typeof name$1, SittingState>) => boolean;
|
|
149
|
+
};
|
|
150
|
+
declare const reducer$1: _reduxjs_toolkit.Reducer<SittingState>;
|
|
151
|
+
|
|
152
|
+
type index$1_SittingState = SittingState;
|
|
153
|
+
declare namespace index$1 {
|
|
154
|
+
export { type index$1_SittingState as SittingState, actions$1 as actions, factory$1 as factory, initialState$1 as initialState, name$1 as name, reducer$1 as reducer, selectors$1 as selectors, slice$1 as slice };
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
interface ThemesState {
|
|
158
|
+
general: Theme;
|
|
159
|
+
interaction: Theme;
|
|
160
|
+
}
|
|
161
|
+
declare const initialState: ThemesState;
|
|
162
|
+
declare const name: "themes";
|
|
163
|
+
interface SetThemePayload {
|
|
164
|
+
type: 'general' | 'interaction';
|
|
165
|
+
theme: Theme;
|
|
166
|
+
}
|
|
167
|
+
declare const factory: (state?: ThemesState) => _reduxjs_toolkit.Slice<ThemesState, {
|
|
168
|
+
setTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<SetThemePayload>) => void;
|
|
169
|
+
setGeneralTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
170
|
+
setInteractionTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
171
|
+
}, "themes", "themes", _reduxjs_toolkit.SliceSelectors<ThemesState>>;
|
|
172
|
+
declare const slice: _reduxjs_toolkit.Slice<ThemesState, {
|
|
173
|
+
setTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<SetThemePayload>) => void;
|
|
174
|
+
setGeneralTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
175
|
+
setInteractionTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
176
|
+
}, "themes", "themes", _reduxjs_toolkit.SliceSelectors<ThemesState>>;
|
|
177
|
+
declare const actions: _reduxjs_toolkit.CaseReducerActions<{
|
|
178
|
+
setTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<SetThemePayload>) => void;
|
|
179
|
+
setGeneralTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
180
|
+
setInteractionTheme: (state: immer.WritableDraft<ThemesState>, action: PayloadAction<Theme>) => void;
|
|
181
|
+
}, "themes">;
|
|
182
|
+
declare const selectors: {
|
|
183
|
+
getGeneralTheme: (state: StateWithSlice<typeof name, ThemesState>) => Theme;
|
|
184
|
+
getInteractionTheme: (state: StateWithSlice<typeof name, ThemesState>) => Theme;
|
|
185
|
+
};
|
|
186
|
+
declare const reducer: _reduxjs_toolkit.Reducer<ThemesState>;
|
|
187
|
+
|
|
188
|
+
type index_SetThemePayload = SetThemePayload;
|
|
189
|
+
type index_ThemesState = ThemesState;
|
|
190
|
+
declare const index_actions: typeof actions;
|
|
191
|
+
declare const index_factory: typeof factory;
|
|
192
|
+
declare const index_initialState: typeof initialState;
|
|
193
|
+
declare const index_name: typeof name;
|
|
194
|
+
declare const index_reducer: typeof reducer;
|
|
195
|
+
declare const index_selectors: typeof selectors;
|
|
196
|
+
declare const index_slice: typeof slice;
|
|
197
|
+
declare namespace index {
|
|
198
|
+
export { type index_SetThemePayload as SetThemePayload, type index_ThemesState as ThemesState, index_actions as actions, index_factory as factory, index_initialState as initialState, index_name as name, index_reducer as reducer, index_selectors as selectors, index_slice as slice };
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export { type AddNotificationPayload, type DispatchAction, type DispatchActionWithoutPayload, type HeadState, type Notification, type NotificationsState, type ShortcutsState, type SittingState, type StateOfAny, type StateWithSlice, type ThemesState, index$4 as head, index$3 as notifications, index$2 as shortcuts, index$1 as sitting, index as themes };
|