pwa-auth 3.3.4 → 3.3.6
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/LICENSES.txt +5 -5
- package/README.md +37 -23
- package/base/export/pwa-auth.d.ts +6 -6
- package/base/export/pwa-auth.js +6 -6
- package/base/firebase/authentication.d.ts +10 -10
- package/base/firebase/authentication.js +10 -10
- package/base/firebase/interface.d.ts +4 -4
- package/base/firebase/interface.js +79 -79
- package/base/firebase/interface.js.map +1 -1
- package/base/lazy-loader.d.ts +11 -11
- package/base/lazy-loader.js +22 -22
- package/base/lazy-loader.js.map +1 -1
- package/base/redux/backend.d.ts +113 -122
- package/base/redux/backend.js +43 -43
- package/base/redux/drawer.d.ts +17 -19
- package/base/redux/drawer.js +21 -21
- package/base/redux/drawer.js.map +1 -1
- package/base/redux/frontend.d.ts +185 -198
- package/base/redux/frontend.js +86 -86
- package/base/redux/frontend.js.map +1 -1
- package/base/store.d.ts +62 -62
- package/base/store.js +13 -13
- package/base/webcomponents/css/animation.d.ts +2 -2
- package/base/webcomponents/css/animation.js +2 -2
- package/base/webcomponents/css/svg.d.ts +3 -3
- package/base/webcomponents/css/svg.js +4 -4
- package/base/webcomponents/css/toggle.d.ts +1 -1
- package/base/webcomponents/css/toggle.js +2 -2
- package/base/webcomponents/drawer/css/drawer.d.ts +2 -2
- package/base/webcomponents/drawer/css/drawer.js +2 -2
- package/base/webcomponents/drawer/css/exit.d.ts +2 -2
- package/base/webcomponents/drawer/css/exit.js +2 -2
- package/base/webcomponents/drawer/css/link.d.ts +2 -2
- package/base/webcomponents/drawer/css/link.js +2 -2
- package/base/webcomponents/drawer/css/paragraph.d.ts +2 -2
- package/base/webcomponents/drawer/css/paragraph.js +2 -2
- package/base/webcomponents/drawer/drawer.d.ts +58 -58
- package/base/webcomponents/drawer/drawer.js +100 -100
- package/base/webcomponents/drawer/drawer.js.map +1 -1
- package/base/webcomponents/form/css/button.d.ts +2 -2
- package/base/webcomponents/form/css/button.js +2 -2
- package/base/webcomponents/form/css/input.d.ts +2 -2
- package/base/webcomponents/form/css/input.js +2 -2
- package/base/webcomponents/form/css/label.d.ts +2 -2
- package/base/webcomponents/form/css/label.js +2 -2
- package/base/webcomponents/form/css/list.d.ts +2 -2
- package/base/webcomponents/form/css/list.js +2 -2
- package/base/webcomponents/form/css/toggle.d.ts +2 -2
- package/base/webcomponents/form/css/toggle.js +2 -2
- package/base/webcomponents/form/forgot.d.ts +15 -15
- package/base/webcomponents/form/forgot.js +45 -45
- package/base/webcomponents/form/forgot.js.map +1 -1
- package/base/webcomponents/form/login.d.ts +20 -20
- package/base/webcomponents/form/login.js +88 -88
- package/base/webcomponents/form/login.js.map +1 -1
- package/base/webcomponents/form/signup.d.ts +20 -20
- package/base/webcomponents/form/signup.js +95 -95
- package/base/webcomponents/form/signup.js.map +1 -1
- package/base/webcomponents/icon/css/icon.d.ts +1 -1
- package/base/webcomponents/icon/css/icon.js +2 -2
- package/base/webcomponents/icon/icon.d.ts +54 -54
- package/base/webcomponents/icon/icon.js +59 -59
- package/base/webcomponents/icon/icon.js.map +1 -1
- package/base/webcomponents/login/css/auth.d.ts +2 -2
- package/base/webcomponents/login/css/auth.js +2 -2
- package/base/webcomponents/login/css/link.d.ts +2 -2
- package/base/webcomponents/login/css/link.js +2 -2
- package/base/webcomponents/login/css/paragraph.d.ts +2 -2
- package/base/webcomponents/login/css/paragraph.js +2 -2
- package/base/webcomponents/login/page.d.ts +55 -55
- package/base/webcomponents/login/page.js +71 -71
- package/base/webcomponents/login/page.js.map +1 -1
- package/base/webcomponents/settings/css/navigation.d.ts +1 -1
- package/base/webcomponents/settings/css/navigation.js +2 -2
- package/base/webcomponents/settings/input/delete.d.ts +55 -55
- package/base/webcomponents/settings/input/delete.js +73 -73
- package/base/webcomponents/settings/input/delete.js.map +1 -1
- package/base/webcomponents/settings/input/email.d.ts +55 -55
- package/base/webcomponents/settings/input/email.js +72 -72
- package/base/webcomponents/settings/input/email.js.map +1 -1
- package/base/webcomponents/settings/input/name.d.ts +54 -54
- package/base/webcomponents/settings/input/name.js +67 -67
- package/base/webcomponents/settings/input/name.js.map +1 -1
- package/base/webcomponents/settings/input/password.d.ts +57 -57
- package/base/webcomponents/settings/input/password.js +97 -97
- package/base/webcomponents/settings/input/password.js.map +1 -1
- package/base/webcomponents/settings/input/uploader.d.ts +58 -58
- package/base/webcomponents/settings/input/uploader.js +150 -150
- package/base/webcomponents/settings/input/uploader.js.map +1 -1
- package/base/webcomponents/settings/settings.d.ts +58 -58
- package/base/webcomponents/settings/settings.js +80 -80
- package/base/webcomponents/settings/settings.js.map +1 -1
- package/package.json +33 -37
- package/source/{development/pwa-auth.js → pwa-auth.js} +30 -31
- package/export/pwa-auth.ts +0 -4
- package/source/development/pwa-auth.js.map +0 -1
- package/source/esm/pwa-auth.js +0 -1109
package/base/redux/backend.d.ts
CHANGED
|
@@ -1,122 +1,113 @@
|
|
|
1
|
-
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
-
export declare const accountSlice: import("@reduxjs/toolkit").Slice<{
|
|
3
|
-
verified: boolean;
|
|
4
|
-
anon: boolean;
|
|
5
|
-
userId: string;
|
|
6
|
-
name: string;
|
|
7
|
-
email: string;
|
|
8
|
-
photoURL: string;
|
|
9
|
-
phone: string;
|
|
10
|
-
msgToken: string;
|
|
11
|
-
}, {
|
|
12
|
-
accVerified: (state: import("immer").WritableDraft<{
|
|
13
|
-
verified: boolean;
|
|
14
|
-
anon: boolean;
|
|
15
|
-
userId: string;
|
|
16
|
-
name: string;
|
|
17
|
-
email: string;
|
|
18
|
-
photoURL: string;
|
|
19
|
-
phone: string;
|
|
20
|
-
msgToken: string;
|
|
21
|
-
}>, action: PayloadAction<boolean>) => void;
|
|
22
|
-
accAnon: (state: import("immer").WritableDraft<{
|
|
23
|
-
verified: boolean;
|
|
24
|
-
anon: boolean;
|
|
25
|
-
userId: string;
|
|
26
|
-
name: string;
|
|
27
|
-
email: string;
|
|
28
|
-
photoURL: string;
|
|
29
|
-
phone: string;
|
|
30
|
-
msgToken: string;
|
|
31
|
-
}>, action: PayloadAction<boolean>) => void;
|
|
32
|
-
accID: (state: import("immer").WritableDraft<{
|
|
33
|
-
verified: boolean;
|
|
34
|
-
anon: boolean;
|
|
35
|
-
userId: string;
|
|
36
|
-
name: string;
|
|
37
|
-
email: string;
|
|
38
|
-
photoURL: string;
|
|
39
|
-
phone: string;
|
|
40
|
-
msgToken: string;
|
|
41
|
-
}>, action: PayloadAction<string>) => void;
|
|
42
|
-
accName: (state: import("immer").WritableDraft<{
|
|
43
|
-
verified: boolean;
|
|
44
|
-
anon: boolean;
|
|
45
|
-
userId: string;
|
|
46
|
-
name: string;
|
|
47
|
-
email: string;
|
|
48
|
-
photoURL: string;
|
|
49
|
-
phone: string;
|
|
50
|
-
msgToken: string;
|
|
51
|
-
}>, action: PayloadAction<string>) => void;
|
|
52
|
-
accPhone: (state: import("immer").WritableDraft<{
|
|
53
|
-
verified: boolean;
|
|
54
|
-
anon: boolean;
|
|
55
|
-
userId: string;
|
|
56
|
-
name: string;
|
|
57
|
-
email: string;
|
|
58
|
-
photoURL: string;
|
|
59
|
-
phone: string;
|
|
60
|
-
msgToken: string;
|
|
61
|
-
}>, action: PayloadAction<string>) => void;
|
|
62
|
-
accEmail: (state: import("immer").WritableDraft<{
|
|
63
|
-
verified: boolean;
|
|
64
|
-
anon: boolean;
|
|
65
|
-
userId: string;
|
|
66
|
-
name: string;
|
|
67
|
-
email: string;
|
|
68
|
-
photoURL: string;
|
|
69
|
-
phone: string;
|
|
70
|
-
msgToken: string;
|
|
71
|
-
}>, action: PayloadAction<string>) => void;
|
|
72
|
-
accImage: (state: import("immer").WritableDraft<{
|
|
73
|
-
verified: boolean;
|
|
74
|
-
anon: boolean;
|
|
75
|
-
userId: string;
|
|
76
|
-
name: string;
|
|
77
|
-
email: string;
|
|
78
|
-
photoURL: string;
|
|
79
|
-
phone: string;
|
|
80
|
-
msgToken: string;
|
|
81
|
-
}>, action: PayloadAction<string>) => void;
|
|
82
|
-
messageId: (state: import("immer").WritableDraft<{
|
|
83
|
-
verified: boolean;
|
|
84
|
-
anon: boolean;
|
|
85
|
-
userId: string;
|
|
86
|
-
name: string;
|
|
87
|
-
email: string;
|
|
88
|
-
photoURL: string;
|
|
89
|
-
phone: string;
|
|
90
|
-
msgToken: string;
|
|
91
|
-
}>, action: PayloadAction<string>) => void;
|
|
92
|
-
}, "backend", "backend", import("@reduxjs/toolkit").SliceSelectors<{
|
|
93
|
-
verified: boolean;
|
|
94
|
-
anon: boolean;
|
|
95
|
-
userId: string;
|
|
96
|
-
name: string;
|
|
97
|
-
email: string;
|
|
98
|
-
photoURL: string;
|
|
99
|
-
phone: string;
|
|
100
|
-
msgToken: string;
|
|
101
|
-
}>>;
|
|
102
|
-
export declare const accVerified: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "backend/accVerified">, accID: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/accID">, accName: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/accName">, accPhone: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/accPhone">, accEmail: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/accEmail">, accImage: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/accImage">, accAnon: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "backend/accAnon">, messageId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/messageId">;
|
|
103
|
-
declare const _default: import("redux").Reducer<{
|
|
104
|
-
verified: boolean;
|
|
105
|
-
anon: boolean;
|
|
106
|
-
userId: string;
|
|
107
|
-
name: string;
|
|
108
|
-
email: string;
|
|
109
|
-
photoURL: string;
|
|
110
|
-
phone: string;
|
|
111
|
-
msgToken: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
anon: boolean;
|
|
115
|
-
userId: string;
|
|
116
|
-
name: string;
|
|
117
|
-
email: string;
|
|
118
|
-
photoURL: string;
|
|
119
|
-
phone: string;
|
|
120
|
-
msgToken: string;
|
|
121
|
-
}>;
|
|
122
|
-
export default _default;
|
|
1
|
+
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
|
+
export declare const accountSlice: import("@reduxjs/toolkit").Slice<{
|
|
3
|
+
verified: boolean;
|
|
4
|
+
anon: boolean;
|
|
5
|
+
userId: string;
|
|
6
|
+
name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
photoURL: string;
|
|
9
|
+
phone: string;
|
|
10
|
+
msgToken: string;
|
|
11
|
+
}, {
|
|
12
|
+
accVerified: (state: import("immer").WritableDraft<{
|
|
13
|
+
verified: boolean;
|
|
14
|
+
anon: boolean;
|
|
15
|
+
userId: string;
|
|
16
|
+
name: string;
|
|
17
|
+
email: string;
|
|
18
|
+
photoURL: string;
|
|
19
|
+
phone: string;
|
|
20
|
+
msgToken: string;
|
|
21
|
+
}>, action: PayloadAction<boolean>) => void;
|
|
22
|
+
accAnon: (state: import("immer").WritableDraft<{
|
|
23
|
+
verified: boolean;
|
|
24
|
+
anon: boolean;
|
|
25
|
+
userId: string;
|
|
26
|
+
name: string;
|
|
27
|
+
email: string;
|
|
28
|
+
photoURL: string;
|
|
29
|
+
phone: string;
|
|
30
|
+
msgToken: string;
|
|
31
|
+
}>, action: PayloadAction<boolean>) => void;
|
|
32
|
+
accID: (state: import("immer").WritableDraft<{
|
|
33
|
+
verified: boolean;
|
|
34
|
+
anon: boolean;
|
|
35
|
+
userId: string;
|
|
36
|
+
name: string;
|
|
37
|
+
email: string;
|
|
38
|
+
photoURL: string;
|
|
39
|
+
phone: string;
|
|
40
|
+
msgToken: string;
|
|
41
|
+
}>, action: PayloadAction<string>) => void;
|
|
42
|
+
accName: (state: import("immer").WritableDraft<{
|
|
43
|
+
verified: boolean;
|
|
44
|
+
anon: boolean;
|
|
45
|
+
userId: string;
|
|
46
|
+
name: string;
|
|
47
|
+
email: string;
|
|
48
|
+
photoURL: string;
|
|
49
|
+
phone: string;
|
|
50
|
+
msgToken: string;
|
|
51
|
+
}>, action: PayloadAction<string>) => void;
|
|
52
|
+
accPhone: (state: import("immer").WritableDraft<{
|
|
53
|
+
verified: boolean;
|
|
54
|
+
anon: boolean;
|
|
55
|
+
userId: string;
|
|
56
|
+
name: string;
|
|
57
|
+
email: string;
|
|
58
|
+
photoURL: string;
|
|
59
|
+
phone: string;
|
|
60
|
+
msgToken: string;
|
|
61
|
+
}>, action: PayloadAction<string>) => void;
|
|
62
|
+
accEmail: (state: import("immer").WritableDraft<{
|
|
63
|
+
verified: boolean;
|
|
64
|
+
anon: boolean;
|
|
65
|
+
userId: string;
|
|
66
|
+
name: string;
|
|
67
|
+
email: string;
|
|
68
|
+
photoURL: string;
|
|
69
|
+
phone: string;
|
|
70
|
+
msgToken: string;
|
|
71
|
+
}>, action: PayloadAction<string>) => void;
|
|
72
|
+
accImage: (state: import("immer").WritableDraft<{
|
|
73
|
+
verified: boolean;
|
|
74
|
+
anon: boolean;
|
|
75
|
+
userId: string;
|
|
76
|
+
name: string;
|
|
77
|
+
email: string;
|
|
78
|
+
photoURL: string;
|
|
79
|
+
phone: string;
|
|
80
|
+
msgToken: string;
|
|
81
|
+
}>, action: PayloadAction<string>) => void;
|
|
82
|
+
messageId: (state: import("immer").WritableDraft<{
|
|
83
|
+
verified: boolean;
|
|
84
|
+
anon: boolean;
|
|
85
|
+
userId: string;
|
|
86
|
+
name: string;
|
|
87
|
+
email: string;
|
|
88
|
+
photoURL: string;
|
|
89
|
+
phone: string;
|
|
90
|
+
msgToken: string;
|
|
91
|
+
}>, action: PayloadAction<string>) => void;
|
|
92
|
+
}, "backend", "backend", import("@reduxjs/toolkit").SliceSelectors<{
|
|
93
|
+
verified: boolean;
|
|
94
|
+
anon: boolean;
|
|
95
|
+
userId: string;
|
|
96
|
+
name: string;
|
|
97
|
+
email: string;
|
|
98
|
+
photoURL: string;
|
|
99
|
+
phone: string;
|
|
100
|
+
msgToken: string;
|
|
101
|
+
}>>;
|
|
102
|
+
export declare const accVerified: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "backend/accVerified">, accID: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/accID">, accName: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/accName">, accPhone: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/accPhone">, accEmail: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/accEmail">, accImage: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/accImage">, accAnon: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "backend/accAnon">, messageId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "backend/messageId">;
|
|
103
|
+
declare const _default: import("redux").Reducer<{
|
|
104
|
+
verified: boolean;
|
|
105
|
+
anon: boolean;
|
|
106
|
+
userId: string;
|
|
107
|
+
name: string;
|
|
108
|
+
email: string;
|
|
109
|
+
photoURL: string;
|
|
110
|
+
phone: string;
|
|
111
|
+
msgToken: string;
|
|
112
|
+
}>;
|
|
113
|
+
export default _default;
|
package/base/redux/backend.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { createSlice } from "@reduxjs/toolkit";
|
|
2
|
-
const initialState = {
|
|
3
|
-
verified: false,
|
|
4
|
-
anon: false,
|
|
5
|
-
userId: '',
|
|
6
|
-
name: 'John Doe',
|
|
7
|
-
email: '',
|
|
8
|
-
photoURL: '',
|
|
9
|
-
phone: '',
|
|
10
|
-
msgToken: ''
|
|
11
|
-
};
|
|
12
|
-
export const accountSlice = createSlice({
|
|
13
|
-
name: 'backend',
|
|
14
|
-
initialState,
|
|
15
|
-
reducers: {
|
|
16
|
-
accVerified: (state, action) => {
|
|
17
|
-
state.verified = action.payload;
|
|
18
|
-
},
|
|
19
|
-
accAnon: (state, action) => {
|
|
20
|
-
state.anon = action.payload;
|
|
21
|
-
},
|
|
22
|
-
accID: (state, action) => {
|
|
23
|
-
state.userId = action.payload;
|
|
24
|
-
},
|
|
25
|
-
accName: (state, action) => {
|
|
26
|
-
state.name = action.payload;
|
|
27
|
-
},
|
|
28
|
-
accPhone: (state, action) => {
|
|
29
|
-
state.phone = action.payload;
|
|
30
|
-
},
|
|
31
|
-
accEmail: (state, action) => {
|
|
32
|
-
state.email = action.payload;
|
|
33
|
-
},
|
|
34
|
-
accImage: (state, action) => {
|
|
35
|
-
state.photoURL = action.payload;
|
|
36
|
-
},
|
|
37
|
-
messageId: (state, action) => {
|
|
38
|
-
state.msgToken = action.payload;
|
|
39
|
-
},
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
export const { accVerified, accID, accName, accPhone, accEmail, accImage, accAnon, messageId } = accountSlice.actions;
|
|
43
|
-
export default accountSlice.reducer;
|
|
1
|
+
import { createSlice } from "@reduxjs/toolkit";
|
|
2
|
+
const initialState = {
|
|
3
|
+
verified: false,
|
|
4
|
+
anon: false,
|
|
5
|
+
userId: '',
|
|
6
|
+
name: 'John Doe',
|
|
7
|
+
email: '',
|
|
8
|
+
photoURL: '',
|
|
9
|
+
phone: '',
|
|
10
|
+
msgToken: ''
|
|
11
|
+
};
|
|
12
|
+
export const accountSlice = createSlice({
|
|
13
|
+
name: 'backend',
|
|
14
|
+
initialState,
|
|
15
|
+
reducers: {
|
|
16
|
+
accVerified: (state, action) => {
|
|
17
|
+
state.verified = action.payload;
|
|
18
|
+
},
|
|
19
|
+
accAnon: (state, action) => {
|
|
20
|
+
state.anon = action.payload;
|
|
21
|
+
},
|
|
22
|
+
accID: (state, action) => {
|
|
23
|
+
state.userId = action.payload;
|
|
24
|
+
},
|
|
25
|
+
accName: (state, action) => {
|
|
26
|
+
state.name = action.payload;
|
|
27
|
+
},
|
|
28
|
+
accPhone: (state, action) => {
|
|
29
|
+
state.phone = action.payload;
|
|
30
|
+
},
|
|
31
|
+
accEmail: (state, action) => {
|
|
32
|
+
state.email = action.payload;
|
|
33
|
+
},
|
|
34
|
+
accImage: (state, action) => {
|
|
35
|
+
state.photoURL = action.payload;
|
|
36
|
+
},
|
|
37
|
+
messageId: (state, action) => {
|
|
38
|
+
state.msgToken = action.payload;
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
export const { accVerified, accID, accName, accPhone, accEmail, accImage, accAnon, messageId } = accountSlice.actions;
|
|
43
|
+
export default accountSlice.reducer;
|
|
44
44
|
//# sourceMappingURL=backend.js.map
|
package/base/redux/drawer.d.ts
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
export declare const drawerSlice: import("@reduxjs/toolkit").Slice<{
|
|
2
|
-
drawer: boolean;
|
|
3
|
-
}, {
|
|
4
|
-
setDrawer: (state: import("immer").WritableDraft<{
|
|
5
|
-
drawer: boolean;
|
|
6
|
-
}>) => void;
|
|
7
|
-
closeDrawer: (state: import("immer").WritableDraft<{
|
|
8
|
-
drawer: boolean;
|
|
9
|
-
}>) => void;
|
|
10
|
-
}, "drawers", "drawers", import("@reduxjs/toolkit").SliceSelectors<{
|
|
11
|
-
drawer: boolean;
|
|
12
|
-
}>>;
|
|
13
|
-
export declare const setDrawer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"drawers/setDrawer">, closeDrawer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"drawers/closeDrawer">;
|
|
14
|
-
declare const _default: import("redux").Reducer<{
|
|
15
|
-
drawer: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
}>;
|
|
19
|
-
export default _default;
|
|
1
|
+
export declare const drawerSlice: import("@reduxjs/toolkit").Slice<{
|
|
2
|
+
drawer: boolean;
|
|
3
|
+
}, {
|
|
4
|
+
setDrawer: (state: import("immer").WritableDraft<{
|
|
5
|
+
drawer: boolean;
|
|
6
|
+
}>) => void;
|
|
7
|
+
closeDrawer: (state: import("immer").WritableDraft<{
|
|
8
|
+
drawer: boolean;
|
|
9
|
+
}>) => void;
|
|
10
|
+
}, "drawers", "drawers", import("@reduxjs/toolkit").SliceSelectors<{
|
|
11
|
+
drawer: boolean;
|
|
12
|
+
}>>;
|
|
13
|
+
export declare const setDrawer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"drawers/setDrawer">, closeDrawer: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"drawers/closeDrawer">;
|
|
14
|
+
declare const _default: import("redux").Reducer<{
|
|
15
|
+
drawer: boolean;
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
package/base/redux/drawer.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { createSlice } from "@reduxjs/toolkit";
|
|
2
|
-
const initialState = { drawer: false };
|
|
3
|
-
export const drawerSlice = createSlice({
|
|
4
|
-
name: 'drawers',
|
|
5
|
-
initialState,
|
|
6
|
-
reducers: {
|
|
7
|
-
setDrawer: (state) => {
|
|
8
|
-
if (state.drawer === false) {
|
|
9
|
-
state.drawer = true;
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
state.drawer = false;
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
closeDrawer: (state) => {
|
|
16
|
-
state.drawer = false;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
export const { setDrawer, closeDrawer } = drawerSlice.actions;
|
|
21
|
-
export default drawerSlice.reducer;
|
|
1
|
+
import { createSlice } from "@reduxjs/toolkit";
|
|
2
|
+
const initialState = { drawer: false };
|
|
3
|
+
export const drawerSlice = createSlice({
|
|
4
|
+
name: 'drawers',
|
|
5
|
+
initialState,
|
|
6
|
+
reducers: {
|
|
7
|
+
setDrawer: (state) => {
|
|
8
|
+
if (state.drawer === false) {
|
|
9
|
+
state.drawer = true;
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
state.drawer = false;
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
closeDrawer: (state) => {
|
|
16
|
+
state.drawer = false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export const { setDrawer, closeDrawer } = drawerSlice.actions;
|
|
21
|
+
export default drawerSlice.reducer;
|
|
22
22
|
//# sourceMappingURL=drawer.js.map
|
package/base/redux/drawer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../typescript/redux/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAS,kBAAkB,CAAC;AAGlD,MAAM,YAAY,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA;AAGtC,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAC;IACnC,IAAI,EAAE,SAAS;IACf,YAAY;IACZ,QAAQ,EAAE;QAEP,SAAS,EAAE,CAAE,KAAK,EAAG,EAAE;YAEtB,IAAK,KAAK,CAAC,MAAM,KAAK,KAAK,EAAG;
|
|
1
|
+
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../typescript/redux/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAS,kBAAkB,CAAC;AAGlD,MAAM,YAAY,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA;AAGtC,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAC;IACnC,IAAI,EAAE,SAAS;IACf,YAAY;IACZ,QAAQ,EAAE;QAEP,SAAS,EAAE,CAAE,KAAK,EAAG,EAAE;YAEtB,IAAK,KAAK,CAAC,MAAM,KAAK,KAAK,EAAG,CAAC;gBAE7B,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;YAEtB,CAAC;iBAAM,CAAC;gBAEN,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;YAEvB,CAAC;QAEH,CAAC;QAED,WAAW,EAAE,CAAE,KAAK,EAAI,EAAE;YAExB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;QAEvB,CAAC;KAEF;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC;AAE9D,eAAe,WAAW,CAAC,OAAO,CAAC"}
|