pwa-auth 3.2.5 → 3.3.2

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.
Files changed (108) hide show
  1. package/{THIRD_PARTY_LICENSES.txt → LICENSES.txt} +57 -57
  2. package/README.md +91 -66
  3. package/base/export/pwa-auth.d.ts +2 -0
  4. package/base/export/pwa-auth.js +2 -0
  5. package/base/export/pwa-auth.js.map +1 -1
  6. package/base/lazy-loader.d.ts +11 -0
  7. package/base/lazy-loader.js +23 -0
  8. package/base/lazy-loader.js.map +1 -0
  9. package/base/redux/frontend.d.ts +41 -14
  10. package/base/redux/frontend.js +25 -6
  11. package/base/redux/frontend.js.map +1 -1
  12. package/base/store.d.ts +4 -2
  13. package/base/webcomponents/css/animation.d.ts +2 -0
  14. package/base/webcomponents/css/animation.js +68 -0
  15. package/base/webcomponents/css/animation.js.map +1 -0
  16. package/base/webcomponents/css/svg.js.map +1 -0
  17. package/base/{css → webcomponents/css}/toggle.js +0 -1
  18. package/base/webcomponents/css/toggle.js.map +1 -0
  19. package/base/webcomponents/drawer/css/drawer.js +7 -10
  20. package/base/webcomponents/drawer/css/drawer.js.map +1 -1
  21. package/base/webcomponents/drawer/drawer.d.ts +7 -6
  22. package/base/webcomponents/drawer/drawer.js +46 -31
  23. package/base/webcomponents/drawer/drawer.js.map +1 -1
  24. package/base/{css/form → webcomponents/form/css}/button.js +1 -2
  25. package/base/webcomponents/form/css/button.js.map +1 -0
  26. package/base/{css/form → webcomponents/form/css}/input.js +0 -1
  27. package/base/webcomponents/form/css/input.js.map +1 -0
  28. package/base/webcomponents/form/css/label.js.map +1 -0
  29. package/base/{css/form → webcomponents/form/css}/list.js +1 -2
  30. package/base/webcomponents/form/css/list.js.map +1 -0
  31. package/base/webcomponents/{drawer → form}/css/toggle.js +0 -1
  32. package/base/webcomponents/form/css/toggle.js.map +1 -0
  33. package/base/webcomponents/form/forgot.d.ts +15 -0
  34. package/base/webcomponents/form/forgot.js +66 -0
  35. package/base/webcomponents/form/forgot.js.map +1 -0
  36. package/base/webcomponents/{drawer/input → form}/login.d.ts +3 -2
  37. package/base/webcomponents/form/login.js +158 -0
  38. package/base/webcomponents/form/login.js.map +1 -0
  39. package/base/webcomponents/{drawer/input/sign-up.d.ts → form/signup.d.ts} +3 -2
  40. package/base/webcomponents/{drawer/input/sign-up.js → form/signup.js} +75 -49
  41. package/base/webcomponents/form/signup.js.map +1 -0
  42. package/base/webcomponents/icon/css/icon.js +0 -5
  43. package/base/webcomponents/icon/css/icon.js.map +1 -1
  44. package/base/webcomponents/icon/icon.d.ts +2 -1
  45. package/base/webcomponents/icon/icon.js +7 -5
  46. package/base/webcomponents/icon/icon.js.map +1 -1
  47. package/base/webcomponents/login/css/auth.d.ts +2 -0
  48. package/base/webcomponents/login/css/auth.js +37 -0
  49. package/base/webcomponents/login/css/auth.js.map +1 -0
  50. package/base/webcomponents/login/css/link.d.ts +2 -0
  51. package/base/webcomponents/login/css/link.js +13 -0
  52. package/base/webcomponents/login/css/link.js.map +1 -0
  53. package/base/webcomponents/login/css/paragraph.d.ts +2 -0
  54. package/base/webcomponents/login/css/paragraph.js +11 -0
  55. package/base/webcomponents/login/css/paragraph.js.map +1 -0
  56. package/base/webcomponents/login/page.d.ts +55 -0
  57. package/base/webcomponents/login/page.js +114 -0
  58. package/base/webcomponents/login/page.js.map +1 -0
  59. package/base/webcomponents/settings/css/navigation.js +6 -7
  60. package/base/webcomponents/settings/css/navigation.js.map +1 -1
  61. package/base/webcomponents/settings/input/delete.d.ts +2 -1
  62. package/base/webcomponents/settings/input/delete.js +15 -13
  63. package/base/webcomponents/settings/input/delete.js.map +1 -1
  64. package/base/webcomponents/settings/input/email.d.ts +2 -1
  65. package/base/webcomponents/settings/input/email.js +37 -35
  66. package/base/webcomponents/settings/input/email.js.map +1 -1
  67. package/base/webcomponents/settings/input/name.d.ts +2 -1
  68. package/base/webcomponents/settings/input/name.js +24 -20
  69. package/base/webcomponents/settings/input/name.js.map +1 -1
  70. package/base/webcomponents/settings/input/password.d.ts +2 -1
  71. package/base/webcomponents/settings/input/password.js +53 -39
  72. package/base/webcomponents/settings/input/password.js.map +1 -1
  73. package/base/webcomponents/settings/input/uploader.d.ts +2 -1
  74. package/base/webcomponents/settings/input/uploader.js +14 -14
  75. package/base/webcomponents/settings/input/uploader.js.map +1 -1
  76. package/base/webcomponents/settings/settings.d.ts +2 -1
  77. package/base/webcomponents/settings/settings.js +53 -44
  78. package/base/webcomponents/settings/settings.js.map +1 -1
  79. package/demonstration/index.html +53 -77
  80. package/demonstration/styles.css +76 -0
  81. package/export/pwa-auth.ts +0 -1
  82. package/package.json +32 -23
  83. package/source/dev bundle/pwa-auth.js +1110 -0
  84. package/source/dev bundle/pwa-auth.js.map +1 -0
  85. package/source/production/pwa-auth.js +1109 -0
  86. package/source/pwa-styles.css +2 -0
  87. package/CHANGELOG.md +0 -231
  88. package/base/css/form/button.js.map +0 -1
  89. package/base/css/form/input.js.map +0 -1
  90. package/base/css/form/label.js.map +0 -1
  91. package/base/css/form/list.js.map +0 -1
  92. package/base/css/svg.js.map +0 -1
  93. package/base/css/toggle.js.map +0 -1
  94. package/base/webcomponents/drawer/css/toggle.js.map +0 -1
  95. package/base/webcomponents/drawer/input/login.js +0 -133
  96. package/base/webcomponents/drawer/input/login.js.map +0 -1
  97. package/base/webcomponents/drawer/input/sign-up.js.map +0 -1
  98. package/source/esm/pwa-auth.js +0 -881
  99. package/source/esm/pwa-auth.js.map +0 -1
  100. /package/base/{css → webcomponents/css}/svg.d.ts +0 -0
  101. /package/base/{css → webcomponents/css}/svg.js +0 -0
  102. /package/base/{css → webcomponents/css}/toggle.d.ts +0 -0
  103. /package/base/{css/form → webcomponents/form/css}/button.d.ts +0 -0
  104. /package/base/{css/form → webcomponents/form/css}/input.d.ts +0 -0
  105. /package/base/{css/form → webcomponents/form/css}/label.d.ts +0 -0
  106. /package/base/{css/form → webcomponents/form/css}/label.js +0 -0
  107. /package/base/{css/form → webcomponents/form/css}/list.d.ts +0 -0
  108. /package/base/webcomponents/{drawer → form}/css/toggle.d.ts +0 -0
@@ -1,59 +1,3 @@
1
- @firebase/util@1.13.0
2
- Apache-2.0
3
- No license text provided
4
-
5
- ---
6
- @firebase/component@0.7.0
7
- Apache-2.0
8
- No license text provided
9
-
10
- ---
11
- @firebase/logger@0.5.0
12
- Apache-2.0
13
- No license text provided
14
-
15
- ---
16
- idb@7.1.1
17
- ISC
18
- ISC License (ISC)
19
- Copyright (c) 2016, Jake Archibald <jaffathecake@gmail.com>
20
-
21
- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
22
-
23
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24
-
25
-
26
- ---
27
- @firebase/app@0.14.3
28
- Apache-2.0
29
- No license text provided
30
-
31
- ---
32
- firebase@12.3.0
33
- Apache-2.0
34
- No license text provided
35
-
36
- ---
37
- @firebase/webchannel-wrapper@1.0.5
38
- Apache-2.0
39
- No license text provided
40
-
41
- ---
42
- @firebase/firestore@4.9.2
43
- Apache-2.0
44
- No license text provided
45
-
46
- ---
47
- @firebase/storage@0.14.0
48
- Apache-2.0
49
- No license text provided
50
-
51
- ---
52
- @firebase/auth@1.11.0
53
- Apache-2.0
54
- No license text provided
55
-
56
- ---
57
1
  @lit/reactive-element@2.1.1
58
2
  BSD-3-Clause
59
3
  BSD 3-Clause License
@@ -287,13 +231,69 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
287
231
  SOFTWARE.
288
232
 
289
233
 
234
+ ---
235
+ @firebase/util@1.13.0
236
+ Apache-2.0
237
+ No license text provided
238
+
239
+ ---
240
+ @firebase/component@0.7.0
241
+ Apache-2.0
242
+ No license text provided
243
+
244
+ ---
245
+ @firebase/logger@0.5.0
246
+ Apache-2.0
247
+ No license text provided
248
+
249
+ ---
250
+ idb@7.1.1
251
+ ISC
252
+ ISC License (ISC)
253
+ Copyright (c) 2016, Jake Archibald <jaffathecake@gmail.com>
254
+
255
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
256
+
257
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
258
+
259
+
260
+ ---
261
+ @firebase/app@0.14.4
262
+ Apache-2.0
263
+ No license text provided
264
+
265
+ ---
266
+ @firebase/auth@1.11.0
267
+ Apache-2.0
268
+ No license text provided
269
+
270
+ ---
271
+ firebase@12.4.0
272
+ Apache-2.0
273
+ No license text provided
274
+
275
+ ---
276
+ @firebase/webchannel-wrapper@1.0.5
277
+ Apache-2.0
278
+ No license text provided
279
+
280
+ ---
281
+ @firebase/firestore@4.9.2
282
+ Apache-2.0
283
+ No license text provided
284
+
285
+ ---
286
+ @firebase/storage@0.14.0
287
+ Apache-2.0
288
+ No license text provided
289
+
290
290
  ---
291
291
  @firebase/installations@0.6.19
292
292
  Apache-2.0
293
293
  No license text provided
294
294
 
295
295
  ---
296
- @firebase/analytics@0.10.18
296
+ @firebase/analytics@0.10.19
297
297
  Apache-2.0
298
298
  No license text provided
299
299
 
package/README.md CHANGED
@@ -4,25 +4,45 @@ Jack's Publishing maintains Custom HTML Elements where developers can focus on U
4
4
 
5
5
  Visit the [Live Demo](https://pwa-authentic.firebaseapp.com)
6
6
 
7
- pwa-auth.js is a bundle of 3 Custom HTML Elements for Firebase (IAM) Authenication using email and password, with the ability to change username, icon, email, password, or delete your own account and it's content all together.
7
+ pwa-auth.js is a bundle of 5 Custom HTML Elements for Firebase (IAM) Authenication using email and password, with the ability to change username, icon, email, password, or delete your own account and it's content all together.
8
8
 
9
9
  pwa-auth.js (Authentication Webcomponents) are for anyone who is looking for a quick and simple way to sign-up, log-in, log-out, modify, or delete a firebase account information from thier own personal domain.
10
10
 
11
- pwa-auth.js meets basic user needs with the interplay of:
12
- - Icon Button
13
- - Drop-down Drawer
14
- - Settings Page
15
-
16
- You will learn how to place 3 Custom HTML Tags, reference CSS, and How to Initialize an Firebase Instance. By either <b>Standard</b> or <b>Modular</b> ECMA Script.
11
+ You will learn how to place 5 Custom HTML Tags, reference CSS, and How to Initialize an Firebase Instance. By either <b>Standard</b> or <b>Modular</b> ECMA Script.
17
12
 
18
13
  Continue reading to understand how to install the project:
19
14
 
15
+ ## Features
16
+ - Register through Email and Password
17
+ - Log-in
18
+ - Log-out
19
+ - Change Username
20
+ - Change Email
21
+ - Change Password
22
+ - Upload Profile Picture
23
+ - Delete Account
24
+ - Global Functions
25
+ - Redux State Connection
26
+
27
+ # Elements
28
+ - Button:
29
+ - Email Log-in / Email Subscribe / Icon
30
+ - Drop-down Drawer:
31
+ - Email Log-in / Email Subscribe / Menu with Log-out
32
+ - Pages:
33
+ - Account Settings
34
+ - Auth: Email Log-in / email Subscribe
35
+ - Password Reset
36
+
20
37
  ## Choose Project Type
21
38
 
22
39
  ECMA Script Modules
23
40
  ```javascript
41
+ // Custom HTML Elements
24
42
  import 'pwa-auth';
25
- import { store, db, storage, auth, user } from 'pwa-auth';
43
+
44
+ // Firebase Objects
45
+ import { db, storage, auth, user } from 'pwa-auth';
26
46
  ```
27
47
 
28
48
  Global Scope Management
@@ -30,24 +50,46 @@ Global Scope Management
30
50
  <!-- Optional: Copy the Project Files from 'src' Folder -->
31
51
  <script type="module" src="./pwa-auth.js"></script>
32
52
  ```
53
+
33
54
  ## Library
34
- - 3 Tag Placement
55
+ - 5 Tag Placement
35
56
  - Color Scheme: CSS Custom Properties
36
- - Firebase Initialization Object
57
+ - Firebase Initialization `window` Object
37
58
 
38
- ## Features
39
- - Register through Email and Password
40
- - Log-in
41
- - Log-out
42
- - Change Username
43
- - Change Profile Picture
44
- - Change Email
45
- - Change Password
46
- - Delete Account
47
- - Global Functions
48
- - Redux State Connection
59
+ ## HTML Webcomponents
60
+ - `<user-icon>`
61
+ - property: subscribe: (Initial State): Subscribe
62
+ - property: subscribe: else (Initial State): Login
63
+ - property; empty: location of empty image
64
+ - state: Logged-out: txt: Login Button
65
+ - state: Logged-out: txt: Subscribe Button
66
+ - state: Logged-in: photo: Icon Button
67
+ - `<user-drawer>`
68
+ - feature: Top-down drawer: 1.4 seconds
69
+ - property: url: location of `<pwa-settings>` Tag
70
+ - property: subscribe: (Initial State): Subscribe
71
+ - property: subscribe: else (Initial State): Login
72
+ - state: logged-out: Sign-up by Email Addresses and Password
73
+ - state: logged-out: Sign-in by Email Addresses and Password
74
+ - state: logged-in: Settings Page Link, Log-out Button
75
+ - `<user-login>`
76
+ - feature: regular visible page component
77
+ - state: logged-out: Sign-up by Email Addresses and Password
78
+ - state: logged-out: Sign-in by Email Addresses and Password
79
+ - state: logged-in: content: `<slot></slot>`
80
+ - `<user-settings>`
81
+ - 1 Photo Upload Feature, view uploaded bucket of photos, photo ediotr
82
+ - empty property: location of empty image
83
+ - Unavailable Photo
84
+ - Update Username
85
+ - Update Email / Verify
86
+ - Update Password
87
+ - Delete Account, Photos, Information
88
+ - `<email-reset>`
89
+ - Coming Soon
90
+ - Optional: Custom CSS Properties
49
91
 
50
- ## Modules
92
+ ## Functional Modules
51
93
  - store - redux store state
52
94
  - verified, userId, name, email, photoURL
53
95
  - db - firestore database reference
@@ -59,12 +101,6 @@ Global Scope Management
59
101
  - user - active user boolean reference
60
102
  - auth.currentUser
61
103
 
62
- ## HTML Webcomponents
63
- - user-icon
64
- - user-drawer
65
- - user-settings
66
- - Optional: Custom CSS Properties
67
-
68
104
  ## Prerequisites
69
105
  - Google:
70
106
  - Google Analytics
@@ -74,16 +110,13 @@ Global Scope Management
74
110
  - Authentication - email login
75
111
  - Cloud Storage - storage bucket
76
112
 
77
- ## Boilerplate
78
-
113
+ ## Boilerplate JavaScript
79
114
  For simple projects, copy project bundle to disk
80
115
  - source/esm/
81
116
  - pwa-auth.js
82
117
  - pwa-auth.js.map
83
118
  - pwa-styles.css
84
119
  - empty.jpg
85
-
86
- ### ECMA Script Modules
87
120
  ```html
88
121
  <head>
89
122
 
@@ -113,65 +146,53 @@ For simple projects, copy project bundle to disk
113
146
 
114
147
  </head>
115
148
  ```
116
- ## Boilerplate
117
-
118
- ### TypeScript Library for Bundlers
119
- The Start File exports: classes and objects
149
+ ## Modular Library for Bundlers
150
+ pwa-auth.js exports: classes and objects
120
151
  ```javascript
121
152
  import 'pwa-auth';
122
153
  // <user-icon subscribe emptyArtwork="./images/empty.jpg"></user-icon>
123
154
  // <user-drawer subscribe settingsURL="./settings"></user-drawer>
124
155
  // <user-settings emptyArtwork="./images/empty.jpg"></user-settings>
125
- import { store, db, storage, auth, user } from 'pwa-auth';
156
+ import { db, storage, auth, user } from 'pwa-auth';
126
157
  // db - firestore database reference
127
158
  // storage - firebase storage reference
128
159
  // auth - user object reference
129
160
  // user - active user boolean reference
130
- // store - Redux States:
131
- // store.backend.verified - verified email: true/false
132
- // store.backend.userId - user ID
133
- // store.backend.name - user name
134
- // store.backend.email - user email
135
- // store.backend.photoURL - user profile photo
136
161
  ```
137
162
 
138
- ## Implementation
163
+ ## Implementation - Drawer
139
164
  ```html
140
165
  <body>
141
166
 
142
167
  <header>
143
- <!-- subscribe property: (Initial State): Subscribe -->
144
- <!-- subscribe property: else (Initial State): Login -->
145
- <!-- empty property: location of empty image -->
146
- <!-- Logged-out (State): txt: Login Button -->
147
- <!-- Logged-out (State): txt: Subscribe Button -->
148
- <!-- Logged-in (State): photo: Icon Button -->
149
168
  <user-icon subscribe empty="./images/empty.jpg"></user-icon>
150
169
  </header>
151
170
 
152
- <!-- url property: location of <pwa-settings> Tag -->
153
- <!-- subscribe property: (Initial State): Subscribe -->
154
- <!-- subscribe property: else (Initial State): Login -->
155
- <!-- Top-down, Drop-down Feature: height, 1.4 seconds -->
156
- <!-- logged-out (State): Sign-up by Email Addresses and Password -->
157
- <!-- logged-out (State): Sign-in by Email Addresses and Password -->
158
- <!-- logged-in (State): Settings Page Link, Log-out Button -->
159
171
  <user-drawer subscribe url="./settings"></user-drawer>
160
172
 
161
173
  <main>
162
- <!-- 1 Photo Upload Feature, view uploaded bucket of photos, photo ediotr -->
163
- <!-- empty property: location of empty image -->
164
- <!-- Unavailable Photo -->
165
- <!-- Update Username -->
166
- <!-- Update Email / Verify -->
167
- <!-- Update Password -->
168
- <!-- Delete Account, Photos, Information -->
169
174
  <user-settings empty="./images/empty.jpg"></user-settings>
170
175
  </main>
171
176
 
172
177
  </body>
173
178
  ```
174
179
 
180
+ ## Implementation - Page
181
+ ```html
182
+ <body>
183
+
184
+ <header>
185
+ <user-icon empty="./images/empty.jpg" subscribe ></user-icon>
186
+ </header>
187
+
188
+ <main>
189
+ <user-login subscribe ></user-login>
190
+ <user-settings empty="./images/empty.jpg"></user-settings>
191
+ </main>
192
+
193
+ </body>
194
+ ```
195
+
175
196
  ## CSS Custom Properties
176
197
  ```css
177
198
  :root {
@@ -196,6 +217,9 @@ import { store, db, storage, auth, user } from 'pwa-auth';
196
217
  --pwa_drawer_text_color: #303030;
197
218
  --pwa_drawer_background_color: #fff;
198
219
 
220
+ /* <user-settings> - Page Design */
221
+ --section_background: white;
222
+
199
223
  /* <user-settings> - Navigation Design */
200
224
  --pwa_settings_background: grey;
201
225
  --pwa_nav_button: grey;
@@ -211,6 +235,9 @@ import { store, db, storage, auth, user } from 'pwa-auth';
211
235
  --pwa_action_text_color: #fff;
212
236
  --pwa_action_background_color: #6cc04a;
213
237
  --pwa_action_border_color: #60b23e;
238
+
239
+ /* Section */
240
+ --section_background: white;
214
241
  }
215
242
  ```
216
243
 
@@ -218,8 +245,6 @@ import { store, db, storage, auth, user } from 'pwa-auth';
218
245
  pwa-auth.js is built upon the Firebase SDK (Software Development Kit).
219
246
  The entire bundle is one instance of firebase that takes in the configuration information, internally.
220
247
 
221
- If you are looking for a Namespaced Firebase Configuration, please send it as feedback, and will make that version for you.
222
-
223
248
  ## Technological Engineering
224
249
  - Development (Server-side) Environment: [Node JavaScript](https://nodejs.org)
225
250
  - Backend: Google Cloud: [Firebase](https://firebase.google.com/)
@@ -1,4 +1,6 @@
1
+ export { UserLogin } from '../webcomponents/login/page';
1
2
  export { UserDrawer } from '../webcomponents/drawer/drawer';
2
3
  export { UserSettings } from '../webcomponents/settings/settings';
3
4
  export { UserIcon } from '../webcomponents/icon/icon';
5
+ export { EmailReset } from '../webcomponents/form/forgot';
4
6
  export { firebaseConfig, application, db, storage, auth, user } from '../firebase/authentication';
@@ -1,5 +1,7 @@
1
+ export { UserLogin } from '../webcomponents/login/page';
1
2
  export { UserDrawer } from '../webcomponents/drawer/drawer';
2
3
  export { UserSettings } from '../webcomponents/settings/settings';
3
4
  export { UserIcon } from '../webcomponents/icon/icon';
5
+ export { EmailReset } from '../webcomponents/form/forgot';
4
6
  export { firebaseConfig, application, db, storage, auth, user } from '../firebase/authentication';
5
7
  //# sourceMappingURL=pwa-auth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pwa-auth.js","sourceRoot":"","sources":["../../typescript/export/pwa-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAgB,gCAAgC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAc,oCAAoC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAkB,4BAA4B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"pwa-auth.js","sourceRoot":"","sources":["../../typescript/export/pwa-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAiB,6BAA6B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAgB,gCAAgC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAc,oCAAoC,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAkB,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAgB,8BAA8B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class LazyLoader extends LitElement {
3
+ active: boolean;
4
+ constructor();
5
+ shouldUpdate(): boolean;
6
+ }
7
+ declare global {
8
+ interface HTMLElementTagNameMap {
9
+ 'lazy-loader': LazyLoader;
10
+ }
11
+ }
@@ -0,0 +1,23 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { LitElement } from 'lit';
11
+ import { property } from 'lit/decorators.js';
12
+ export class LazyLoader extends LitElement {
13
+ constructor() {
14
+ super();
15
+ this.active = false;
16
+ }
17
+ shouldUpdate() { return this.active; }
18
+ }
19
+ __decorate([
20
+ property({ type: Boolean }),
21
+ __metadata("design:type", Boolean)
22
+ ], LazyLoader.prototype, "active", void 0);
23
+ //# sourceMappingURL=lazy-loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy-loader.js","sourceRoot":"","sources":["../typescript/lazy-loader.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAQ,mBAAmB,CAAC;AAE/C,MAAM,OAAO,UAAW,SAAQ,UAAU;IAKxC;QACE,KAAK,EAAE,CAAC;QAHwB,WAAM,GAAa,KAAK,CAAC;IAI3D,CAAC;IAGD,YAAY,KAAK,OAAO,IAAI,CAAC,MAAM,CAAC,CAAE,CAAC;CAExC;AATC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;;0CAAiC"}
@@ -3,7 +3,8 @@ export declare const initialState: {
3
3
  settings: string;
4
4
  login: boolean;
5
5
  drawer: boolean;
6
- register: boolean;
6
+ registerOne: boolean;
7
+ registerTwo: boolean;
7
8
  userId: string;
8
9
  customer: string;
9
10
  profileChoice: string;
@@ -16,7 +17,8 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<{
16
17
  settings: string;
17
18
  login: boolean;
18
19
  drawer: boolean;
19
- register: boolean;
20
+ registerOne: boolean;
21
+ registerTwo: boolean;
20
22
  userId: string;
21
23
  customer: string;
22
24
  profileChoice: string;
@@ -29,7 +31,8 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<{
29
31
  settings: string;
30
32
  login: boolean;
31
33
  drawer: boolean;
32
- register: boolean;
34
+ registerOne: boolean;
35
+ registerTwo: boolean;
33
36
  userId: string;
34
37
  customer: string;
35
38
  profileChoice: string;
@@ -42,7 +45,8 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<{
42
45
  settings: string;
43
46
  login: boolean;
44
47
  drawer: boolean;
45
- register: boolean;
48
+ registerOne: boolean;
49
+ registerTwo: boolean;
46
50
  userId: string;
47
51
  customer: string;
48
52
  profileChoice: string;
@@ -55,7 +59,8 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<{
55
59
  settings: string;
56
60
  login: boolean;
57
61
  drawer: boolean;
58
- register: boolean;
62
+ registerOne: boolean;
63
+ registerTwo: boolean;
59
64
  userId: string;
60
65
  customer: string;
61
66
  profileChoice: string;
@@ -68,7 +73,8 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<{
68
73
  settings: string;
69
74
  login: boolean;
70
75
  drawer: boolean;
71
- register: boolean;
76
+ registerOne: boolean;
77
+ registerTwo: boolean;
72
78
  userId: string;
73
79
  customer: string;
74
80
  profileChoice: string;
@@ -81,7 +87,8 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<{
81
87
  settings: string;
82
88
  login: boolean;
83
89
  drawer: boolean;
84
- register: boolean;
90
+ registerOne: boolean;
91
+ registerTwo: boolean;
85
92
  userId: string;
86
93
  customer: string;
87
94
  profileChoice: string;
@@ -90,11 +97,26 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<{
90
97
  phone: string;
91
98
  email: string;
92
99
  }>) => void;
100
+ universalToggle: (state: import("immer").WritableDraft<{
101
+ settings: string;
102
+ login: boolean;
103
+ drawer: boolean;
104
+ registerOne: boolean;
105
+ registerTwo: boolean;
106
+ userId: string;
107
+ customer: string;
108
+ profileChoice: string;
109
+ name: string;
110
+ photoURL: string;
111
+ phone: string;
112
+ email: string;
113
+ }>, action: PayloadAction<string>) => void;
93
114
  signUpClose: (state: import("immer").WritableDraft<{
94
115
  settings: string;
95
116
  login: boolean;
96
117
  drawer: boolean;
97
- register: boolean;
118
+ registerOne: boolean;
119
+ registerTwo: boolean;
98
120
  userId: string;
99
121
  customer: string;
100
122
  profileChoice: string;
@@ -107,7 +129,8 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<{
107
129
  settings: string;
108
130
  login: boolean;
109
131
  drawer: boolean;
110
- register: boolean;
132
+ registerOne: boolean;
133
+ registerTwo: boolean;
111
134
  userId: string;
112
135
  customer: string;
113
136
  profileChoice: string;
@@ -120,7 +143,8 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<{
120
143
  settings: string;
121
144
  login: boolean;
122
145
  drawer: boolean;
123
- register: boolean;
146
+ registerOne: boolean;
147
+ registerTwo: boolean;
124
148
  userId: string;
125
149
  customer: string;
126
150
  profileChoice: string;
@@ -133,7 +157,8 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<{
133
157
  settings: string;
134
158
  login: boolean;
135
159
  drawer: boolean;
136
- register: boolean;
160
+ registerOne: boolean;
161
+ registerTwo: boolean;
137
162
  userId: string;
138
163
  customer: string;
139
164
  profileChoice: string;
@@ -142,12 +167,13 @@ export declare const userSlice: import("@reduxjs/toolkit").Slice<{
142
167
  phone: string;
143
168
  email: string;
144
169
  }>>;
145
- export declare const navigateAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "user/navigateAuth">, iconAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "user/iconAuth">, nameAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "user/nameAuth">, userAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "user/userAuth">, toggleSign: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"user/toggleSign">, closeSign: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"user/closeSign">, signUpAction: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"user/signUpAction">, signUpClose: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "user/signUpClose">;
170
+ export declare const universalToggle: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "user/universalToggle">, navigateAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "user/navigateAuth">, iconAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "user/iconAuth">, nameAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "user/nameAuth">, userAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "user/userAuth">, toggleSign: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"user/toggleSign">, closeSign: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"user/closeSign">, signUpAction: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"user/signUpAction">, signUpClose: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "user/signUpClose">;
146
171
  declare const _default: import("redux").Reducer<{
147
172
  settings: string;
148
173
  login: boolean;
149
174
  drawer: boolean;
150
- register: boolean;
175
+ registerOne: boolean;
176
+ registerTwo: boolean;
151
177
  userId: string;
152
178
  customer: string;
153
179
  profileChoice: string;
@@ -159,7 +185,8 @@ declare const _default: import("redux").Reducer<{
159
185
  settings: string;
160
186
  login: boolean;
161
187
  drawer: boolean;
162
- register: boolean;
188
+ registerOne: boolean;
189
+ registerTwo: boolean;
163
190
  userId: string;
164
191
  customer: string;
165
192
  profileChoice: string;
@@ -3,7 +3,8 @@ export const initialState = {
3
3
  settings: 'profile',
4
4
  login: false,
5
5
  drawer: false,
6
- register: true,
6
+ registerOne: false,
7
+ registerTwo: false,
7
8
  userId: "user",
8
9
  customer: "John Doe",
9
10
  profileChoice: 'unChosen',
@@ -45,15 +46,33 @@ export const userSlice = createSlice({
45
46
  state.drawer = false;
46
47
  },
47
48
  signUpAction: (state) => {
48
- if (state.register === false) {
49
- state.register = true;
49
+ if (state.registerOne === false) {
50
+ state.registerOne = true;
50
51
  }
51
52
  else {
52
- state.register = false;
53
+ state.registerOne = false;
54
+ }
55
+ },
56
+ universalToggle: (state, action) => {
57
+ if (action.payload === 'drawer') {
58
+ if (state.registerOne === false) {
59
+ state.registerOne = true;
60
+ }
61
+ else {
62
+ state.registerOne = false;
63
+ }
64
+ }
65
+ else {
66
+ if (state.registerTwo === false) {
67
+ state.registerTwo = true;
68
+ }
69
+ else {
70
+ state.registerTwo = false;
71
+ }
53
72
  }
54
73
  },
55
74
  signUpClose: (state, action) => {
56
- state.register = action.payload;
75
+ state.registerOne = action.payload;
57
76
  },
58
77
  iconAuth: (state, action) => {
59
78
  state.photoURL = action.payload;
@@ -63,6 +82,6 @@ export const userSlice = createSlice({
63
82
  }
64
83
  }
65
84
  });
66
- export const { navigateAuth, iconAuth, nameAuth, userAuth, toggleSign, closeSign, signUpAction, signUpClose } = userSlice.actions;
85
+ export const { universalToggle, navigateAuth, iconAuth, nameAuth, userAuth, toggleSign, closeSign, signUpAction, signUpClose } = userSlice.actions;
67
86
  export default userSlice.reducer;
68
87
  //# sourceMappingURL=frontend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"frontend.js","sourceRoot":"","sources":["../../typescript/redux/frontend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAI9D,MAAM,CAAC,MAAM,YAAY,GAAqB;IAC5C,QAAQ,EAAU,SAAS;IAC3B,KAAK,EAAa,KAAK;IACvB,MAAM,EAAY,KAAK;IACvB,QAAQ,EAAU,IAAI;IACtB,MAAM,EAAY,MAAM;IACxB,QAAQ,EAAU,UAAU;IAC5B,aAAa,EAAK,UAAU;IAC5B,IAAI,EAAc,iBAAiB;IACnC,QAAQ,EAAU,EAAE;IACpB,KAAK,EAAa,kBAAkB;IACpC,KAAK,EAAa,EAAE;CACrB,CAAA;AAGD,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;IACjC,IAAI,EAAE,MAAM;IACZ,YAA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