pwa-auth 3.7.4 → 3.7.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/README.md +11 -4
- package/base/api/drawer.js +1 -1
- package/base/api/drawer.js.map +1 -1
- package/base/api/verify.js +1 -1
- package/base/firebase/interface.d.ts.map +1 -1
- package/base/firebase/interface.js +1 -8
- package/base/firebase/interface.js.map +1 -1
- package/base/redux/session.d.ts +158 -0
- package/base/redux/session.d.ts.map +1 -0
- package/base/redux/session.js +55 -0
- package/base/redux/session.js.map +1 -0
- package/base/store.d.ts +4 -30
- package/base/store.d.ts.map +1 -1
- package/base/store.js +2 -4
- package/base/store.js.map +1 -1
- package/base/webcomponents/css/svg.d.ts.map +1 -1
- package/base/webcomponents/css/svg.js +4 -1
- package/base/webcomponents/css/svg.js.map +1 -1
- package/base/webcomponents/drawer/css/exit.d.ts.map +1 -1
- package/base/webcomponents/drawer/css/exit.js +29 -11
- package/base/webcomponents/drawer/css/exit.js.map +1 -1
- package/base/webcomponents/drawer/drawer.d.ts +10 -15
- package/base/webcomponents/drawer/drawer.d.ts.map +1 -1
- package/base/webcomponents/drawer/drawer.js +76 -17
- package/base/webcomponents/drawer/drawer.js.map +1 -1
- package/base/webcomponents/form/forgot.js +3 -3
- package/base/webcomponents/form/forgot.js.map +1 -1
- package/base/webcomponents/form/login.js +1 -1
- package/base/webcomponents/form/login.js.map +1 -1
- package/base/webcomponents/form/signup.js +1 -1
- package/base/webcomponents/form/signup.js.map +1 -1
- package/base/webcomponents/icon/icon.d.ts +2 -15
- package/base/webcomponents/icon/icon.d.ts.map +1 -1
- package/base/webcomponents/icon/icon.js +6 -6
- package/base/webcomponents/icon/icon.js.map +1 -1
- package/base/webcomponents/login/css/auth.d.ts.map +1 -1
- package/base/webcomponents/login/css/auth.js +5 -0
- package/base/webcomponents/login/css/auth.js.map +1 -1
- package/base/webcomponents/login/page.d.ts +2 -15
- package/base/webcomponents/login/page.d.ts.map +1 -1
- package/base/webcomponents/login/page.js +5 -5
- package/base/webcomponents/login/page.js.map +1 -1
- package/base/webcomponents/settings/input/delete.d.ts +2 -15
- package/base/webcomponents/settings/input/delete.d.ts.map +1 -1
- package/base/webcomponents/settings/input/delete.js +2 -2
- package/base/webcomponents/settings/input/delete.js.map +1 -1
- package/base/webcomponents/settings/input/email.d.ts +2 -15
- package/base/webcomponents/settings/input/email.d.ts.map +1 -1
- package/base/webcomponents/settings/input/email.js +2 -2
- package/base/webcomponents/settings/input/email.js.map +1 -1
- package/base/webcomponents/settings/input/name.d.ts +2 -15
- package/base/webcomponents/settings/input/name.d.ts.map +1 -1
- package/base/webcomponents/settings/input/name.js +3 -5
- package/base/webcomponents/settings/input/name.js.map +1 -1
- package/base/webcomponents/settings/input/password.d.ts +2 -15
- package/base/webcomponents/settings/input/password.d.ts.map +1 -1
- package/base/webcomponents/settings/input/password.js +1 -1
- package/base/webcomponents/settings/input/password.js.map +1 -1
- package/base/webcomponents/settings/input/uploader.d.ts +2 -15
- package/base/webcomponents/settings/input/uploader.d.ts.map +1 -1
- package/base/webcomponents/settings/input/uploader.js +4 -4
- package/base/webcomponents/settings/input/uploader.js.map +1 -1
- package/base/webcomponents/settings/input/verify.d.ts +2 -15
- package/base/webcomponents/settings/input/verify.d.ts.map +1 -1
- package/base/webcomponents/settings/input/verify.js +3 -3
- package/base/webcomponents/settings/input/verify.js.map +1 -1
- package/base/webcomponents/settings/settings.d.ts +2 -15
- package/base/webcomponents/settings/settings.d.ts.map +1 -1
- package/base/webcomponents/settings/settings.js +5 -5
- package/base/webcomponents/settings/settings.js.map +1 -1
- package/docs/drawer-slide.md +4 -2
- package/package.json +1 -1
- package/source/pwa-auth.js +112 -86
- package/base/redux/backend.d.ts +0 -114
- package/base/redux/backend.d.ts.map +0 -1
- package/base/redux/backend.js +0 -44
- package/base/redux/backend.js.map +0 -1
- package/base/redux/frontend.d.ts +0 -200
- package/base/redux/frontend.d.ts.map +0 -1
- package/base/redux/frontend.js +0 -90
- package/base/redux/frontend.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# pwa-auth
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Turnkey Firebase sign-in UI. Drop in the tags. [Demo](https://pwa-authentic.firebaseapp.com).
|
|
4
4
|
|
|
5
5
|
Five tags. They share one sign-in. MIT.
|
|
6
6
|
|
|
@@ -140,7 +140,14 @@ Set these on the element. `--pwa_background` replaces the older background names
|
|
|
140
140
|
| `--pwa_action_text_color` | Button text | white |
|
|
141
141
|
| `--pwa_action_background_color` | Green buttons and links | `#2a6b45` |
|
|
142
142
|
| `--pwa_action_border_color` | Button border | `#214f34` |
|
|
143
|
-
| `--pwa_close_color` |
|
|
143
|
+
| `--pwa_close_color` | Errors | `#9a3b32` |
|
|
144
|
+
| `--pwa_close_mark` | Drawer close icon | the drawer text, `#1c2430` |
|
|
145
|
+
| `--pwa_close_background` | Drawer close button | white |
|
|
146
|
+
| `--pwa_close_hover` | Drawer close, pointer over it | `#f2f2f2` |
|
|
147
|
+
| `--pwa_close_active` | Drawer close, pressed | `#e7e2d6` |
|
|
148
|
+
| `--pwa_close_border` | Drawer close border | `1px solid` the line color |
|
|
149
|
+
| `--pwa_close_radius` | Drawer close corners | `10px` |
|
|
150
|
+
| `--pwa_close_size` | Drawer close tap target | `44px` |
|
|
144
151
|
| `--pwa_verified_color` | Verified check | the button green |
|
|
145
152
|
| `--pwa_tap` | Shortest a control can be | `44px` |
|
|
146
153
|
| `--pwa_icon_background_color` | Icon button | `#2a6b45` |
|
|
@@ -163,13 +170,13 @@ user-drawer, user-login, user-settings, email-reset {
|
|
|
163
170
|
}
|
|
164
171
|
```
|
|
165
172
|
|
|
166
|
-
The drawer unrolls downward and its buttons ride the bottom edge. Nothing animates on page load. Less motion makes that instant. [The roll](docs/drawer-slide.md).
|
|
173
|
+
The drawer unrolls downward and its buttons ride the bottom edge. Nothing animates on page load. Less motion makes that instant. Signing out keeps the open menu until that roll finishes. Focus returns to the account button without scrolling the page. Put the tag between the header and the content. If that parent is a grid, give `user-drawer` that row. [The roll](docs/drawer-slide.md).
|
|
167
174
|
|
|
168
175
|
## Accessibility
|
|
169
176
|
|
|
170
177
|
| What | How |
|
|
171
178
|
| --- | --- |
|
|
172
|
-
| Open and close | The icon is a button. `aria-expanded` says if the drawer is open. `aria-controls` points at it. Focus moves to Close. Escape closes and focus returns to the button |
|
|
179
|
+
| Open and close | The icon is a button. `aria-expanded` says if the drawer is open. `aria-controls` points at it. Focus moves to Close. Escape closes and focus returns to the button without scrolling the page |
|
|
173
180
|
| Closed pieces | A shut drawer, a hidden form, and a hidden settings tab are inert. They are not in the tab order |
|
|
174
181
|
| Fields | Each field has a label, autocomplete, and `aria-invalid`. The error is a live region the field names with `aria-describedby` |
|
|
175
182
|
| Settings tabs | Arrow keys move across the four tabs |
|
package/base/api/drawer.js
CHANGED
package/base/api/drawer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../typescript/api/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../typescript/api/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtE,MAAM,UAAU,UAAU;IACxB,KAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;AAC7B,CAAC;AAGD,MAAM,UAAU,WAAW;IACzB,KAAK,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC;AAC9B,CAAC;AAGD,MAAM,UAAU,YAAY;IAC1B,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;AAC/B,CAAC"}
|
package/base/api/verify.js
CHANGED
|
@@ -3,7 +3,7 @@ import { auth, emailActionCodeSettings, isReady, onReady } from '../firebase/aut
|
|
|
3
3
|
import { pwaAuthError, pwaEmailVerified, pwaVerificationSent } from '../events/names.js';
|
|
4
4
|
import { emitWindow, toAuthError, toPwaUser } from '../events/emit.js';
|
|
5
5
|
import store from '../store.js';
|
|
6
|
-
import { accVerified } from '../redux/
|
|
6
|
+
import { accVerified } from '../redux/session.js';
|
|
7
7
|
let trackedUid = '';
|
|
8
8
|
let trackedVerified = false;
|
|
9
9
|
let watching = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../typescript/firebase/interface.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../typescript/firebase/interface.ts"],"names":[],"mappings":"AAkCA,wBAAgB,eAAe,IAAI;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAI1E;AA4BD,eAAO,MAAM,eAAe,YAG3B,CAAA;AAkED,eAAO,MAAM,cAAc,GAAU,UAAU,MAAM,qBAkBpD,CAAC;AAEF,eAAO,MAAM,MAAM,qBAalB,CAAC;AAEF,eAAO,MAAM,UAAU,qBAItB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qBAI5B,CAAC;AAGF,eAAO,MAAM,eAAe,GAAa,KAAK,MAAM,kBAYnD,CAAC;AAEF,eAAO,MAAM,cAAc,GAAc,SAAQ,MAAM,EAAE,MAAK,MAAM,kBAInE,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { store } from '../store.js';
|
|
2
|
-
import {
|
|
3
|
-
import { accID, accEmail, accImage, accName, accVerified } from '../redux/backend.js';
|
|
2
|
+
import { accEmail, accImage, accName, accVerified, closeSign, userAuth } from '../redux/session.js';
|
|
4
3
|
import { EmailAuthProvider, getAuth, onAuthStateChanged, reauthenticateWithCredential, signOut } from 'firebase/auth';
|
|
5
4
|
import { doc, deleteDoc } from "firebase/firestore";
|
|
6
5
|
import { getAnalytics, isSupported, logEvent } from "firebase/analytics";
|
|
@@ -37,23 +36,17 @@ onReady(() => {
|
|
|
37
36
|
if (user) {
|
|
38
37
|
store.dispatch(userAuth(true));
|
|
39
38
|
store.dispatch(closeSign());
|
|
40
|
-
store.dispatch(accID(user.uid));
|
|
41
39
|
store.dispatch(accName(user.displayName ?? ''));
|
|
42
40
|
store.dispatch(accEmail(user.email || ''));
|
|
43
41
|
store.dispatch(accImage(user.photoURL || ''));
|
|
44
42
|
store.dispatch(accVerified(user.emailVerified === true));
|
|
45
|
-
store.dispatch(nameAuth(user.displayName ?? ''));
|
|
46
|
-
store.dispatch(iconAuth(user.photoURL || ''));
|
|
47
43
|
}
|
|
48
44
|
else {
|
|
49
45
|
store.dispatch(userAuth(false));
|
|
50
|
-
store.dispatch(accID(''));
|
|
51
46
|
store.dispatch(accName(''));
|
|
52
47
|
store.dispatch(accEmail(''));
|
|
53
48
|
store.dispatch(accImage(''));
|
|
54
49
|
store.dispatch(accVerified(false));
|
|
55
|
-
store.dispatch(nameAuth(''));
|
|
56
|
-
store.dispatch(iconAuth(''));
|
|
57
50
|
}
|
|
58
51
|
});
|
|
59
52
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../typescript/firebase/interface.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../typescript/firebase/interface.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAA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E,EAAE;IAEtE,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAE1C,CAAC,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
export declare const initialState: {
|
|
3
|
+
login: boolean;
|
|
4
|
+
drawer: boolean;
|
|
5
|
+
registerOne: boolean;
|
|
6
|
+
registerTwo: boolean;
|
|
7
|
+
settings: string;
|
|
8
|
+
verified: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
email: string;
|
|
11
|
+
photoURL: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const sessionSlice: import("@reduxjs/toolkit").Slice<{
|
|
14
|
+
login: boolean;
|
|
15
|
+
drawer: boolean;
|
|
16
|
+
registerOne: boolean;
|
|
17
|
+
registerTwo: boolean;
|
|
18
|
+
settings: string;
|
|
19
|
+
verified: boolean;
|
|
20
|
+
name: string;
|
|
21
|
+
email: string;
|
|
22
|
+
photoURL: string;
|
|
23
|
+
}, {
|
|
24
|
+
navigateAuth(state: {
|
|
25
|
+
login: boolean;
|
|
26
|
+
drawer: boolean;
|
|
27
|
+
registerOne: boolean;
|
|
28
|
+
registerTwo: boolean;
|
|
29
|
+
settings: string;
|
|
30
|
+
verified: boolean;
|
|
31
|
+
name: string;
|
|
32
|
+
email: string;
|
|
33
|
+
photoURL: string;
|
|
34
|
+
}, action: PayloadAction<string>): void;
|
|
35
|
+
userAuth(state: {
|
|
36
|
+
login: boolean;
|
|
37
|
+
drawer: boolean;
|
|
38
|
+
registerOne: boolean;
|
|
39
|
+
registerTwo: boolean;
|
|
40
|
+
settings: string;
|
|
41
|
+
verified: boolean;
|
|
42
|
+
name: string;
|
|
43
|
+
email: string;
|
|
44
|
+
photoURL: string;
|
|
45
|
+
}, action: PayloadAction<boolean>): void;
|
|
46
|
+
toggleSign(state: {
|
|
47
|
+
login: boolean;
|
|
48
|
+
drawer: boolean;
|
|
49
|
+
registerOne: boolean;
|
|
50
|
+
registerTwo: boolean;
|
|
51
|
+
settings: string;
|
|
52
|
+
verified: boolean;
|
|
53
|
+
name: string;
|
|
54
|
+
email: string;
|
|
55
|
+
photoURL: string;
|
|
56
|
+
}): void;
|
|
57
|
+
openSign(state: {
|
|
58
|
+
login: boolean;
|
|
59
|
+
drawer: boolean;
|
|
60
|
+
registerOne: boolean;
|
|
61
|
+
registerTwo: boolean;
|
|
62
|
+
settings: string;
|
|
63
|
+
verified: boolean;
|
|
64
|
+
name: string;
|
|
65
|
+
email: string;
|
|
66
|
+
photoURL: string;
|
|
67
|
+
}): void;
|
|
68
|
+
closeSign(state: {
|
|
69
|
+
login: boolean;
|
|
70
|
+
drawer: boolean;
|
|
71
|
+
registerOne: boolean;
|
|
72
|
+
registerTwo: boolean;
|
|
73
|
+
settings: string;
|
|
74
|
+
verified: boolean;
|
|
75
|
+
name: string;
|
|
76
|
+
email: string;
|
|
77
|
+
photoURL: string;
|
|
78
|
+
}): void;
|
|
79
|
+
universalToggle(state: {
|
|
80
|
+
login: boolean;
|
|
81
|
+
drawer: boolean;
|
|
82
|
+
registerOne: boolean;
|
|
83
|
+
registerTwo: boolean;
|
|
84
|
+
settings: string;
|
|
85
|
+
verified: boolean;
|
|
86
|
+
name: string;
|
|
87
|
+
email: string;
|
|
88
|
+
photoURL: string;
|
|
89
|
+
}, action: PayloadAction<string>): void;
|
|
90
|
+
accName(state: {
|
|
91
|
+
login: boolean;
|
|
92
|
+
drawer: boolean;
|
|
93
|
+
registerOne: boolean;
|
|
94
|
+
registerTwo: boolean;
|
|
95
|
+
settings: string;
|
|
96
|
+
verified: boolean;
|
|
97
|
+
name: string;
|
|
98
|
+
email: string;
|
|
99
|
+
photoURL: string;
|
|
100
|
+
}, action: PayloadAction<string>): void;
|
|
101
|
+
accEmail(state: {
|
|
102
|
+
login: boolean;
|
|
103
|
+
drawer: boolean;
|
|
104
|
+
registerOne: boolean;
|
|
105
|
+
registerTwo: boolean;
|
|
106
|
+
settings: string;
|
|
107
|
+
verified: boolean;
|
|
108
|
+
name: string;
|
|
109
|
+
email: string;
|
|
110
|
+
photoURL: string;
|
|
111
|
+
}, action: PayloadAction<string>): void;
|
|
112
|
+
accImage(state: {
|
|
113
|
+
login: boolean;
|
|
114
|
+
drawer: boolean;
|
|
115
|
+
registerOne: boolean;
|
|
116
|
+
registerTwo: boolean;
|
|
117
|
+
settings: string;
|
|
118
|
+
verified: boolean;
|
|
119
|
+
name: string;
|
|
120
|
+
email: string;
|
|
121
|
+
photoURL: string;
|
|
122
|
+
}, action: PayloadAction<string>): void;
|
|
123
|
+
accVerified(state: {
|
|
124
|
+
login: boolean;
|
|
125
|
+
drawer: boolean;
|
|
126
|
+
registerOne: boolean;
|
|
127
|
+
registerTwo: boolean;
|
|
128
|
+
settings: string;
|
|
129
|
+
verified: boolean;
|
|
130
|
+
name: string;
|
|
131
|
+
email: string;
|
|
132
|
+
photoURL: string;
|
|
133
|
+
}, action: PayloadAction<boolean>): void;
|
|
134
|
+
}, "session", "session", import("@reduxjs/toolkit").SliceSelectors<{
|
|
135
|
+
login: boolean;
|
|
136
|
+
drawer: boolean;
|
|
137
|
+
registerOne: boolean;
|
|
138
|
+
registerTwo: boolean;
|
|
139
|
+
settings: string;
|
|
140
|
+
verified: boolean;
|
|
141
|
+
name: string;
|
|
142
|
+
email: string;
|
|
143
|
+
photoURL: string;
|
|
144
|
+
}>>;
|
|
145
|
+
export declare const navigateAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "session/navigateAuth">, userAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "session/userAuth">, toggleSign: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"session/toggleSign">, openSign: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"session/openSign">, closeSign: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"session/closeSign">, universalToggle: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "session/universalToggle">, accName: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "session/accName">, accEmail: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "session/accEmail">, accImage: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "session/accImage">, accVerified: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "session/accVerified">;
|
|
146
|
+
declare const _default: import("redux").Reducer<{
|
|
147
|
+
login: boolean;
|
|
148
|
+
drawer: boolean;
|
|
149
|
+
registerOne: boolean;
|
|
150
|
+
registerTwo: boolean;
|
|
151
|
+
settings: string;
|
|
152
|
+
verified: boolean;
|
|
153
|
+
name: string;
|
|
154
|
+
email: string;
|
|
155
|
+
photoURL: string;
|
|
156
|
+
}>;
|
|
157
|
+
export default _default;
|
|
158
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../typescript/redux/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG9D,eAAO,MAAM,YAAY;;;;;;;;;;CAUxB,CAAC;AAIF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;eAKO,aAAa,CAAC,MAAM,CAAC;;;;;;;;;;;eAIzB,aAAa,CAAC,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAgBf,aAAa,CAAC,MAAM,CAAC;;;;;;;;;;;eAK7B,aAAa,CAAC,MAAM,CAAC;;;;;;;;;;;eAIpB,aAAa,CAAC,MAAM,CAAC;;;;;;;;;;;eAIrB,aAAa,CAAC,MAAM,CAAC;;;;;;;;;;;eAIlB,aAAa,CAAC,OAAO,CAAC;;;;;;;;;;;GAKnD,CAAC;AAEH,eAAO,MACL,YAAY,uFACZ,QAAQ,oFACR,UAAU,gFACV,QAAQ,8EACR,SAAS,+EACT,eAAe,0FACf,OAAO,kFACP,QAAQ,mFACR,QAAQ,mFACR,WAAW,qFACW,CAAC;;;;;;;;;;;;AAEzB,wBAAoC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createSlice } from '@reduxjs/toolkit';
|
|
2
|
+
export const initialState = {
|
|
3
|
+
login: false,
|
|
4
|
+
drawer: false,
|
|
5
|
+
registerOne: false,
|
|
6
|
+
registerTwo: false,
|
|
7
|
+
settings: 'profile',
|
|
8
|
+
verified: false,
|
|
9
|
+
name: '',
|
|
10
|
+
email: '',
|
|
11
|
+
photoURL: ''
|
|
12
|
+
};
|
|
13
|
+
const settingsTabs = new Set(['profile', 'verification', 'password', 'delete']);
|
|
14
|
+
export const sessionSlice = createSlice({
|
|
15
|
+
name: 'session',
|
|
16
|
+
initialState,
|
|
17
|
+
reducers: {
|
|
18
|
+
navigateAuth(state, action) {
|
|
19
|
+
state.settings = settingsTabs.has(action.payload) ? action.payload : 'profile';
|
|
20
|
+
},
|
|
21
|
+
userAuth(state, action) {
|
|
22
|
+
state.login = action.payload;
|
|
23
|
+
},
|
|
24
|
+
toggleSign(state) {
|
|
25
|
+
state.drawer = !state.drawer;
|
|
26
|
+
},
|
|
27
|
+
openSign(state) {
|
|
28
|
+
state.drawer = true;
|
|
29
|
+
},
|
|
30
|
+
closeSign(state) {
|
|
31
|
+
state.drawer = false;
|
|
32
|
+
},
|
|
33
|
+
universalToggle(state, action) {
|
|
34
|
+
if (action.payload === 'drawer')
|
|
35
|
+
state.registerOne = !state.registerOne;
|
|
36
|
+
else
|
|
37
|
+
state.registerTwo = !state.registerTwo;
|
|
38
|
+
},
|
|
39
|
+
accName(state, action) {
|
|
40
|
+
state.name = action.payload;
|
|
41
|
+
},
|
|
42
|
+
accEmail(state, action) {
|
|
43
|
+
state.email = action.payload;
|
|
44
|
+
},
|
|
45
|
+
accImage(state, action) {
|
|
46
|
+
state.photoURL = action.payload;
|
|
47
|
+
},
|
|
48
|
+
accVerified(state, action) {
|
|
49
|
+
state.verified = action.payload;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export const { navigateAuth, userAuth, toggleSign, openSign, closeSign, universalToggle, accName, accEmail, accImage, accVerified } = sessionSlice.actions;
|
|
54
|
+
export default sessionSlice.reducer;
|
|
55
|
+
//# sourceMappingURL=session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../typescript/redux/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,kBAAkB,CAAC;AAG9D,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,KAAK,EAAS,KAAK;IACnB,MAAM,EAAQ,KAAK;IACnB,WAAW,EAAG,KAAK;IACnB,WAAW,EAAG,KAAK;IACnB,QAAQ,EAAM,SAAS;IACvB,QAAQ,EAAM,KAAK;IACnB,IAAI,EAAU,EAAE;IAChB,KAAK,EAAS,EAAE;IAChB,QAAQ,EAAM,EAAE;CACjB,CAAC;AAEF,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEhF,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;IACtC,IAAI,EAAE,SAAS;IACf,YAAY;IACZ,QAAQ,EAAE;QAER,YAAY,CAAC,KAAK,EAAE,MAA6B;YAC/C,KAAK,CAAC,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;QACjF,CAAC;QAED,QAAQ,CAAC,KAAK,EAAE,MAA8B;YAC5C,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/B,CAAC;QAED,UAAU,CAAC,KAAK;YACd,KAAK,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC;QAC/B,CAAC;QAED,QAAQ,CAAC,KAAK;YACZ,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;QACtB,CAAC;QAED,SAAS,CAAC,KAAK;YACb,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;QACvB,CAAC;QAED,eAAe,CAAC,KAAK,EAAE,MAA6B;YAClD,IAAI,MAAM,CAAC,OAAO,KAAK,QAAQ;gBAAE,KAAK,CAAC,WAAW,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC;;gBACnE,KAAK,CAAC,WAAW,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC;QAC9C,CAAC;QAED,OAAO,CAAC,KAAK,EAAE,MAA6B;YAC1C,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,CAAC;QAED,QAAQ,CAAC,KAAK,EAAE,MAA6B;YAC3C,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/B,CAAC;QAED,QAAQ,CAAC,KAAK,EAAE,MAA6B;YAC3C,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC;QAClC,CAAC;QAED,WAAW,CAAC,KAAK,EAAE,MAA8B;YAC/C,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC;QAClC,CAAC;KAEF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,EACX,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,SAAS,EACT,eAAe,EACf,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,WAAW,EACZ,GAAG,YAAY,CAAC,OAAO,CAAC;AAEzB,eAAe,YAAY,CAAC,OAAO,CAAC"}
|
package/base/store.d.ts
CHANGED
|
@@ -1,53 +1,27 @@
|
|
|
1
1
|
export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
2
|
-
|
|
3
|
-
settings: string;
|
|
2
|
+
session: {
|
|
4
3
|
login: boolean;
|
|
5
4
|
drawer: boolean;
|
|
6
5
|
registerOne: boolean;
|
|
7
6
|
registerTwo: boolean;
|
|
8
|
-
|
|
9
|
-
customer: string;
|
|
10
|
-
profileChoice: string;
|
|
11
|
-
name: string;
|
|
12
|
-
photoURL: string;
|
|
13
|
-
phone: string;
|
|
14
|
-
email: string;
|
|
15
|
-
};
|
|
16
|
-
backend: {
|
|
7
|
+
settings: string;
|
|
17
8
|
verified: boolean;
|
|
18
|
-
anon: boolean;
|
|
19
|
-
userId: string;
|
|
20
9
|
name: string;
|
|
21
10
|
email: string;
|
|
22
11
|
photoURL: string;
|
|
23
|
-
phone: string;
|
|
24
|
-
msgToken: string;
|
|
25
12
|
};
|
|
26
13
|
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
27
14
|
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
28
|
-
|
|
29
|
-
settings: string;
|
|
15
|
+
session: {
|
|
30
16
|
login: boolean;
|
|
31
17
|
drawer: boolean;
|
|
32
18
|
registerOne: boolean;
|
|
33
19
|
registerTwo: boolean;
|
|
34
|
-
|
|
35
|
-
customer: string;
|
|
36
|
-
profileChoice: string;
|
|
37
|
-
name: string;
|
|
38
|
-
photoURL: string;
|
|
39
|
-
phone: string;
|
|
40
|
-
email: string;
|
|
41
|
-
};
|
|
42
|
-
backend: {
|
|
20
|
+
settings: string;
|
|
43
21
|
verified: boolean;
|
|
44
|
-
anon: boolean;
|
|
45
|
-
userId: string;
|
|
46
22
|
name: string;
|
|
47
23
|
email: string;
|
|
48
24
|
photoURL: string;
|
|
49
|
-
phone: string;
|
|
50
|
-
msgToken: string;
|
|
51
25
|
};
|
|
52
26
|
}, undefined, import("redux").UnknownAction>;
|
|
53
27
|
}>, import("redux").StoreEnhancer]>>;
|
package/base/store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../typescript/store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../typescript/store.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;oCAKhB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC;AACzD,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC,QAAQ,CAAC;AAEhD,eAAe,KAAK,CAAC"}
|
package/base/store.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { configureStore } from '@reduxjs/toolkit';
|
|
2
|
-
import {
|
|
3
|
-
import { accountSlice } from './redux/backend.js';
|
|
2
|
+
import { sessionSlice } from './redux/session.js';
|
|
4
3
|
export const store = configureStore({
|
|
5
4
|
reducer: {
|
|
6
|
-
|
|
7
|
-
backend: accountSlice.reducer,
|
|
5
|
+
session: sessionSlice.reducer,
|
|
8
6
|
},
|
|
9
7
|
devTools: true
|
|
10
8
|
});
|
package/base/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../typescript/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAU,kBAAkB,CAAC;AACtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../typescript/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAU,kBAAkB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAY,oBAAoB,CAAC;AAGxD,MAAM,CAAC,MAAM,KAAK,GAAG,cAAc,CAAC;IAClC,OAAO,EAAE;QACP,OAAO,EAAE,YAAY,CAAC,OAAO;KAC9B;IACD,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAKH,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/css/svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"svg.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/css/svg.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,sCAGX,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { html } from 'lit';
|
|
2
|
-
export const close = html `<svg viewBox="0 0 24 24" aria-hidden="true"
|
|
2
|
+
export const close = html `<svg viewBox="0 0 24 24" aria-hidden="true" fill="none">
|
|
3
|
+
<line x1="7" y1="7" x2="17" y2="17" stroke="currentColor" stroke-width="2" stroke-linecap="round"></line>
|
|
4
|
+
<line x1="17" y1="7" x2="7" y2="17" stroke="currentColor" stroke-width="2" stroke-linecap="round"></line>
|
|
5
|
+
</svg>`;
|
|
3
6
|
//# sourceMappingURL=svg.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg.js","sourceRoot":"","sources":["../../../typescript/webcomponents/css/svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,CAAA,
|
|
1
|
+
{"version":3,"file":"svg.js","sourceRoot":"","sources":["../../../typescript/webcomponents/css/svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,CAAA;;;OAGlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/exit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/exit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SA4EvB,CAAC"}
|
|
@@ -3,8 +3,9 @@ export const exitStyle = css `
|
|
|
3
3
|
|
|
4
4
|
.exit {
|
|
5
5
|
display: grid;
|
|
6
|
-
grid-template-columns:
|
|
7
|
-
|
|
6
|
+
grid-template-columns: var(--pwa_close_size, 44px) minmax(0, 1fr) var(--pwa_close_size, 44px);
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding: 8px 12px;
|
|
8
9
|
z-index: 2;
|
|
9
10
|
background-color: var(--pwa_background, var(--pwa_drawer_background_color, #fff));
|
|
10
11
|
border-bottom: 1px solid var(--pwa_line_color, #e3daca);
|
|
@@ -39,22 +40,39 @@ export const exitStyle = css `
|
|
|
39
40
|
}
|
|
40
41
|
*/
|
|
41
42
|
.close {
|
|
42
|
-
|
|
43
|
+
appearance: none;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
display: grid;
|
|
46
|
+
place-items: center;
|
|
47
|
+
justify-self: end;
|
|
48
|
+
align-self: center;
|
|
49
|
+
width: var(--pwa_close_size, 44px);
|
|
50
|
+
height: var(--pwa_close_size, 44px);
|
|
43
51
|
min-width: var(--pwa_tap, 44px);
|
|
44
|
-
height:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
border:
|
|
49
|
-
|
|
52
|
+
min-height: var(--pwa_tap, 44px);
|
|
53
|
+
margin: 0;
|
|
54
|
+
padding: 0;
|
|
55
|
+
border-radius: var(--pwa_close_radius, 10px);
|
|
56
|
+
border: var(--pwa_close_border, 1px solid var(--pwa_line_color, #e3daca));
|
|
57
|
+
background: var(--pwa_close_background, #fff);
|
|
58
|
+
color: var(--pwa_close_mark, var(--pwa_drawer_text_color, #1c2430));
|
|
59
|
+
cursor: pointer;
|
|
50
60
|
}
|
|
51
61
|
|
|
52
62
|
.close svg {
|
|
53
|
-
width:
|
|
54
|
-
height:
|
|
63
|
+
width: 18px;
|
|
64
|
+
height: 18px;
|
|
55
65
|
display: block;
|
|
56
66
|
}
|
|
57
67
|
|
|
68
|
+
.close:hover {
|
|
69
|
+
background: var(--pwa_close_hover, var(--pwa_nav_on_background, #f2f2f2));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.close:active {
|
|
73
|
+
background: var(--pwa_close_active, #e7e2d6);
|
|
74
|
+
}
|
|
75
|
+
|
|
58
76
|
|
|
59
77
|
|
|
60
78
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exit.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/exit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAc,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"exit.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/drawer/css/exit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,SAAS,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EtC,CAAC"}
|
|
@@ -8,29 +8,16 @@ declare const UserDrawer_base: (new (...args: any[]) => {
|
|
|
8
8
|
connectedCallback(): void;
|
|
9
9
|
disconnectedCallback(): void;
|
|
10
10
|
stateChanged(_state: {
|
|
11
|
-
|
|
12
|
-
settings: string;
|
|
11
|
+
session: {
|
|
13
12
|
login: boolean;
|
|
14
13
|
drawer: boolean;
|
|
15
14
|
registerOne: boolean;
|
|
16
15
|
registerTwo: boolean;
|
|
17
|
-
|
|
18
|
-
customer: string;
|
|
19
|
-
profileChoice: string;
|
|
20
|
-
name: string;
|
|
21
|
-
photoURL: string;
|
|
22
|
-
phone: string;
|
|
23
|
-
email: string;
|
|
24
|
-
};
|
|
25
|
-
backend: {
|
|
16
|
+
settings: string;
|
|
26
17
|
verified: boolean;
|
|
27
|
-
anon: boolean;
|
|
28
|
-
userId: string;
|
|
29
18
|
name: string;
|
|
30
19
|
email: string;
|
|
31
20
|
photoURL: string;
|
|
32
|
-
phone: string;
|
|
33
|
-
msgToken: string;
|
|
34
21
|
};
|
|
35
22
|
}): void;
|
|
36
23
|
readonly isConnected: boolean;
|
|
@@ -45,6 +32,12 @@ export declare class UserDrawer extends UserDrawer_base {
|
|
|
45
32
|
private verified;
|
|
46
33
|
private notice;
|
|
47
34
|
private user;
|
|
35
|
+
private sheetSigned;
|
|
36
|
+
private holdSheet;
|
|
37
|
+
private openSheetPx;
|
|
38
|
+
private liveName;
|
|
39
|
+
private liveEmail;
|
|
40
|
+
private liveVerified;
|
|
48
41
|
private signup;
|
|
49
42
|
private sliding;
|
|
50
43
|
private motion;
|
|
@@ -63,6 +56,8 @@ export declare class UserDrawer extends UserDrawer_base {
|
|
|
63
56
|
connectedCallback(): void;
|
|
64
57
|
disconnectedCallback(): void;
|
|
65
58
|
stateChanged(state: AppState): void;
|
|
59
|
+
private paintAccount;
|
|
60
|
+
private releaseSheet;
|
|
66
61
|
protected willUpdate(changed: PropertyValues): void;
|
|
67
62
|
protected updated(changed: PropertyValues): void;
|
|
68
63
|
private clip;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAQ,KAAK,CAAC;AAM9E,OAAO,EAAS,QAAQ,EAAE,MAAO,gBAAgB,CAAC;AAwBlD,OAAO,6BAA6B,CAAC;AAErC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,mBAAmB,CAAC
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../typescript/webcomponents/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cA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