pwa-auth 2.0.3 → 2.0.4

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/CHANGELOG.md CHANGED
@@ -1,16 +1,20 @@
1
1
  Change Log
2
2
  ==========
3
+ All notable changes to pwa-auth.js will be documented in this file.
3
4
 
4
- All notable changes to this project will be documented in this file.
5
+ ## [Unreleased]
6
+ - Social Login Flow
7
+ - animated login and data
5
8
 
6
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/).
9
+ # [2.0.4] - 2025-09-31
7
10
 
8
- Added - for new features.
9
- Changed - for changes in existing functionality.
10
- Deprecated - for soon-to-be removed features.
11
- Removed - for now removed features.
12
- Fixed - for any bug fixes.
13
- Security - in case of vulnerabilities.
11
+ ## Changed
12
+ - updated readme file
13
+
14
+ ## Goals
15
+ - Photo Editor
16
+ - Password Verifier
17
+ - Email Verifier
14
18
 
15
19
  # [1.2.4] - 2025-08-31
16
20
 
@@ -46,23 +50,6 @@ Security - in case of vulnerabilities.
46
50
  ## REMOVED
47
51
  - Telephone Verification for version 1 simplicity
48
52
 
49
-
50
-
51
-
52
-
53
- ## [Unreleased]
54
- - Facebook Login
55
- - Phone Login
56
- - Play Games Login
57
- - X Login
58
- - Github Login
59
- - display nested content after webcomponent loads
60
- - create password after social Login
61
- - animated login
62
- - animated data
63
- - update user info upon change submission
64
- - change user-icon to "Login" text
65
-
66
53
  ## [1.0.0] - 2025-08-04
67
54
 
68
55
  ## To Do
@@ -152,4 +139,15 @@ Security - in case of vulnerabilities.
152
139
  - settings > profile: user dashbaord
153
140
 
154
141
  ### Removed
155
- - `<user-drawer>`: Custom Drawer Header Text
142
+ - `<user-drawer>`: Custom Drawer Header Text
143
+
144
+
145
+ # Footnotes
146
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/).
147
+
148
+ Added - for new features.
149
+ Changed - for changes in existing functionality.
150
+ Deprecated - for soon-to-be removed features.
151
+ Removed - for now removed features.
152
+ Fixed - for any bug fixes.
153
+ Security - in case of vulnerabilities.
package/README.md CHANGED
@@ -18,7 +18,7 @@ Continue reading to start installing the bundle:
18
18
  - Color Scheme: CSS Custom Properties
19
19
  - Firebase Initialization
20
20
 
21
- [Live Demo](https://pwa-authentic.firebaseapp.com)
21
+ ## [Visit: Live Demo](https://pwa-authentic.firebaseapp.com)
22
22
 
23
23
  ## pwa-auth.js Features:
24
24
  - Register through Email and Password
@@ -34,72 +34,66 @@ Continue reading to start installing the bundle:
34
34
  - copy the bundle
35
35
  - node_modules/pwa-auth/npm/pwa-auth.js
36
36
 
37
- ## Technological Engineering
38
- - Development Environment: [Node JavaScript](https://nodejs.org)
39
- - Backend: Google Cloud: [Firebase](https://firebase.google.com/)
40
- - Predicate State Behavior: [Redux](https://redux.js.org/)
41
- - Frontend: [Lit](https://lit.dev)
42
-
43
37
  ## Modular JavaScript
44
38
  ```javascript
45
39
  import 'pwa-auth';
46
40
  ```
47
41
 
48
42
  ## Boilerplate
49
- - 3 Tag Placements (Custom HTML Elements)
43
+ - 3 Tag Placements (HTML - Custom Elements)
50
44
  - user-icon
51
45
  - user-drawer
52
46
  - user-settings
53
- - Cascading Style Sheets (CSS)
47
+ - Cascading Style Sheets (CSS - Custom Properties)
54
48
  - ECMA Script (JavaScript)
55
49
 
56
- ## Custom Elements
50
+ ## HTML Custom Elements
57
51
  ```html
58
- <user-icon subscribe></user-icon>
59
- <!-- Logged-out txt: Login Button (State) -->
60
- <!-- Logged-out txt: Subscribe Button (State) -->
61
- <!-- Logged-in Icon Button (State) -->
62
-
63
- <user-drawer subscribe settingsURL=""></user-drawer>
64
- <!-- Top-down, Drop-down Feature -->
65
- <!-- Sign-up by Email Addresses and Password (State) -->
66
- <!-- Sign-in by Email Addresses and Password (State) -->
67
- <!-- logged-in (State) -->
68
- <!-- logged-out (State) -->
69
-
70
- <user-settings></user-settings>
71
- <!-- 1 Photo Upload Feature, view uploaded bucket of photos, photo ediotr -->
72
- <!-- Unavailable Photo -->
73
- <!-- Update Username -->
74
- <!-- Update Email / Verify -->
75
- <!-- Update Password -->
76
- <!-- Delete Account, Photos, Information -->
52
+ <head>
53
+
54
+ <!-- CSS Custom Properties - Choice 1: Link Tag -->
55
+ <link type="stylesheet" href="pwa-styles.css">
56
+
57
+ </head>
58
+
59
+ <body>
60
+
61
+ <header>
62
+ <!-- subscribe property: (Initial State): Subscribe -->
63
+ <!-- subscribe property: else (Initial State): Login -->
64
+ <!-- Logged-out (State): txt: Login Button -->
65
+ <!-- Logged-out (State): txt: Subscribe Button -->
66
+ <!-- Logged-in (State): photo: Icon Button -->
67
+ <user-icon subscribe></user-icon>
68
+ </header>
69
+
70
+ <!-- settingsURL property: location of <pwa-settings> Tag -->
71
+ <!-- subscribe property: (Initial State): Subscribe -->
72
+ <!-- subscribe property: else (Initial State): Login -->
73
+ <!-- Top-down, Drop-down Feature: height, 1.4 seconds -->
74
+ <!-- logged-out (State): Sign-up by Email Addresses and Password -->
75
+ <!-- logged-out (State): Sign-in by Email Addresses and Password -->
76
+ <!-- logged-in (State): Settings Page Link, Log-out Button -->
77
+ <user-drawer subscribe settingsURL="/settings"></user-drawer>
78
+
79
+ <main>
80
+ <!-- 1 Photo Upload Feature, view uploaded bucket of photos, photo ediotr -->
81
+ <!-- Unavailable Photo -->
82
+ <!-- Update Username -->
83
+ <!-- Update Email / Verify -->
84
+ <!-- Update Password -->
85
+ <!-- Delete Account, Photos, Information -->
86
+ <user-settings></user-settings>
87
+ </main>
88
+
89
+ <script>/* Initialize ECMA Script Properties */</script>
90
+ <style>/* CSS Custom Properties - Choice 2: Style Tag */</style>
91
+ <script src="pwa-auth.js"></script>
92
+
93
+ </body>
77
94
  ```
78
-
79
- # Website Setup:
80
- ```html
81
- <header>
82
- <!-- subscribe: Indicate the 'register' boolean for 'subscribe state' -->
83
- <!-- subscribe: else 'login state' -->
84
- <user-icon subscribe></user-icon>
85
- </header>
86
-
87
- <!-- settingsURL: where the <pwa-settings> Tag will be placed-->
88
- <!-- subscribe: boolean for 'subscribe state' -->
89
- <!-- subscribe: else 'login state' -->
90
- <user-drawer subscribe settingsURL="/settings"></user-drawer>
91
-
92
- <main>
93
- <user-settings></user-settings>
94
- </main>
95
-
96
- <script>/* Initialize ECMA Script Properties */</script>
97
- <style>/* CSS Custom Properties */</style>
98
- <script src="pwa-auth.js"></script>
99
- ```
100
-
101
- ## CSS Default Custom Properties
102
- | CSS Custom Property | Description | Default | Custom Element |
95
+ ## CSS Custom Properties
96
+ | Custom Namespace | Description | Default | Custom Element |
103
97
  | :--- | ---: | :---: | :--- |
104
98
  | --pwa_icon_background | Button | #6cc04a; | user-icon |
105
99
  | --pwa_icon_hover | Button | lightgrey | user-icon |
@@ -125,7 +119,7 @@ import 'pwa-auth';
125
119
  | --pwa_action_background_color | Button | #6cc04a | user-settings |
126
120
  | --pwa_action_border_color | Button | #60b23e | user-settings |
127
121
 
128
-
122
+ ## CSS Setup
129
123
  ```html
130
124
  <!-- CSS: Custom Variables -->
131
125
  <!-- Place this txt into your document -->
@@ -183,7 +177,7 @@ import 'pwa-auth';
183
177
  --pwa_nav_select: black;
184
178
 
185
179
  /* Section Header */
186
- --pwa_section_header: black;
180
+ --pwa_section_header: black;
187
181
 
188
182
  /* Label */
189
183
  --pwa_label_text_color: black;
@@ -198,25 +192,19 @@ import 'pwa-auth';
198
192
 
199
193
  }
200
194
 
201
- /* Dark Theme */
202
- @media (prefers-color-scheme: dark) { /* etc. */ }
203
-
204
- /* Light Theme */
205
- @media (prefers-color-scheme: light) { /* etc. */ }
206
-
207
195
  </style>
208
196
  ```
197
+ # JavaScript Setup
209
198
 
210
- ## Google Setup
199
+ ## Google
211
200
  - Google Analytics
212
201
  - Firebase Project
213
202
 
214
- ## Firebase Setup
203
+ ## Firebase
215
204
  - Authentication - email login
216
205
  - Cloud Storage - icon save location
217
206
 
218
- ## Firebase Instance Configuration
219
- ### Modular Firebase Initialization
207
+ ### Initialize Modular Firebase Instance Configuration
220
208
  ```javascript
221
209
  // Initialize Firebase
222
210
  let connect = {
@@ -239,6 +227,12 @@ The entire bundle is one instance of firebase that takes in the configuration in
239
227
 
240
228
  If you are looking for a Namespaced Firebase Configuration, please send it as feedback, and will make that version for you.
241
229
 
230
+ # Technological Engineering
231
+ - Development Environment: [Node JavaScript](https://nodejs.org)
232
+ - Backend: Google Cloud: [Firebase](https://firebase.google.com/)
233
+ - Predicate State Behavior: [Redux](https://redux.js.org/)
234
+ - Frontend: [Lit](https://lit.dev)
235
+
242
236
  # Feedback
243
237
  All feedback, comments, bugs, and requests are welcome.
244
238
  * [Jack's Publishing](https://www.jackspublishing.com)
@@ -30,6 +30,7 @@ interface base {
30
30
  validatePassword: any;
31
31
  verifyPasswordResetCode: any;
32
32
  handleRecoverEmail: any;
33
+ sendEmailVerification: any;
33
34
  }
34
35
  export declare const authFunctions: base;
35
36
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":"AAIA,UAAU,IAAI;IAEd,eAAe,EAAG,GAAG,CAAC;IACtB,sBAAsB,EAAG,GAAG,CAAC;IAC7B,eAAe,EAAG,GAAG,CAAC;IACtB,oBAAoB,EAAG,GAAG,CAAC;IAC3B,mBAAmB,EAAG,GAAG,CAAC;IAC1B,8BAA8B,EAAG,GAAG,CAAC;IACrC,0BAA0B,EAAG,GAAG,CAAC;IACjC,sBAAsB,EAAG,GAAG,CAAC;IAC7B,iBAAiB,EAAG,GAAG,CAAC;IACxB,yBAAyB,EAAG,GAAG,CAAC;IAChC,qBAAqB,EAAG,GAAG,CAAC;IAC5B,kBAAkB,EAAG,GAAG,CAAC;IACzB,gBAAgB,EAAG,GAAG,CAAC;IACvB,iBAAiB,EAAG,GAAG,CAAC;IACxB,sBAAsB,EAAG,GAAG,CAAC;IAC7B,qBAAqB,EAAG,GAAG,CAAC;IAC5B,cAAc,E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C3B,qBAAqB,EAAG,GAAG,CAAC;IAC5B,0BAA0B,EAAG,GAAG,CAAC;IACjC,mBAAmB,EAAG,GAAG,CAAC;IAC1B,qBAAqB,EAAG,GAAG,CAAC;IAC5B,eAAe,EAAG,GAAG,CAAC;IACtB,kBAAkB,EAAG,GAAG,CAAC;IACzB,OAAO,EAAG,GAAG,CAAC;IACd,iBAAiB,EAAG,GAAG,CAAC;IACxB,iBAAiB,EAAG,GAAG,CAAC;IACxB,gBAAgB,EAAG,GAAG,CAAC;IACvB,uBAAuB,EAAG,GAAG,CAAC;IAC9B,kBAAkB,EAAC,GAAG,CAAC;IACvB,qBAAqB,EAAE,GAAG,CAAA;CACzB;AAqDD,eAAO,MAAM,aAAa,EAAG,IA6O1B,CAAA"}
@@ -0,0 +1,66 @@
1
+ :root {
2
+
3
+ /* WebComponent 1 : User Icon
4
+ <user-icon>
5
+ <button> */
6
+ --pwa_icon_hover: lightgrey;
7
+ --pwa_icon_background: #6cc04a;
8
+ --pwa_icon_border: 2px solid black;
9
+
10
+ /* WebComponent 1: logged-out
11
+ <user-icon>
12
+ <button class="login"> */
13
+ --pwa_icon_height: 32px; /* sync to --pwa_icon_diameter */
14
+ --pwa_icon_padding: 0px 16px;
15
+ --pwa_icon_radius: 6px;
16
+ --pwa_icon_font: 'Arial', sans-serif;
17
+
18
+ /* WebComponent 1: logged-in
19
+ <user-icon>
20
+ <button class="icon"> */
21
+ --pwa_icon_diameter: 32px; /* sync to --pwa_icon_height */
22
+
23
+
24
+
25
+ /* WebComponent 2: Drop-down Drawer
26
+ <user-drawer>
27
+ <section>
28
+ <header></header>
29
+ <div class="spec"> */
30
+ --pwa_drawer_border: 3px #303030 solid;
31
+ --pwa_drawer_z-index: 2;
32
+ --pwa_drawer_border-radius: 20px;
33
+
34
+ /* WebComponent 2: Drop-down Drawer - logged-out
35
+ <div class="spec"> */
36
+ --pwa_drawer_text_color: #303030;
37
+ --pwa_drawer_background_color: #fff;
38
+
39
+
40
+
41
+ /* WebComponent 3: Settings Page
42
+ <user-settings>
43
+ <nav></nav>
44
+ <section></section> */
45
+ --pwa_settings_background: white;
46
+ --pwa_divider: black;
47
+
48
+ /* Navigation */
49
+ --pwa_nav_button: grey;
50
+ --pwa_nav_select: black;
51
+
52
+ /* Section Header */
53
+ --pwa_section_header: black;
54
+
55
+ /* Label */
56
+ --pwa_label_text_color: black;
57
+
58
+ /* Input */
59
+ --pwa_input_background: #E1E5EB;
60
+
61
+ /* Button */
62
+ --pwa_action_text_color: #fff;
63
+ --pwa_action_background_color: #6cc04a;
64
+ --pwa_action_border_color: #60b23e;
65
+
66
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pwa-auth",
3
3
  "author": "Jacek Markiewicz <jack.solutionbox@gmail.com>(https://www.jackspublishing.com)",
4
- "version": "2.0.3",
4
+ "version": "2.0.4",
5
5
  "description": "User Management Component with 3 HTML Tags, and 1 Boilerplate Function to display user icon, sign up, login, log out, change account details, delete account.",
6
6
  "homepage": "https://pwa-authentic.firebaseapp.com",
7
7
  "main": "pwa-auth.js",