pwa-auth 3.0.5 → 3.1.1
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 +6 -0
- package/README.md +53 -42
- package/demonstration/compiled/pwa-auth.js +34 -34
- package/demonstration/compiled/pwa-auth.js.map +1 -1
- package/demonstration/compiled/pwa-helpers-BN4uXXdl.js +8 -0
- package/demonstration/compiled/pwa-helpers-BN4uXXdl.js.map +1 -0
- package/demonstration/compiled/pwa-helpers.js +8 -0
- package/demonstration/compiled/pwa-helpers.js.map +1 -0
- package/package.json +16 -3
- package/src/compiled/pwa-auth.js +34 -34
- package/src/compiled/pwa-auth.js.map +1 -1
- package/src/compiled/pwa-helpers-BN4uXXdl.js +8 -0
- package/src/compiled/pwa-helpers-BN4uXXdl.js.map +1 -0
- package/src/compiled/pwa-helpers.js +8 -0
- package/src/compiled/pwa-helpers.js.map +1 -0
- package/src/pwa-auth.js +0 -1
- package/src/pwa-helpers.js +1 -0
- package/src-classes/pwa-auth.js +3 -0
- package/src-compiled/pwa-auth.js +881 -0
- package/src-compiled/pwa-auth.js.map +1 -0
- package/src-compiled/pwa-helpers-BN4uXXdl.js +8 -0
- package/src-compiled/pwa-helpers-BN4uXXdl.js.map +1 -0
- package/src-compiled/pwa-helpers.js +8 -0
- package/src-compiled/pwa-helpers.js.map +1 -0
- package/src-export/pwa-auth.ts +3 -0
- package/src-export/pwa-helpers.ts +1 -0
- package/src-export/tsconfig.production.json +53 -0
- package/src-functions/pwa-helpers.js +1 -0
- package/src-typescript/development/helpers-array.ts +0 -0
- package/transpiled/src-export/pwa-auth.d.ts +4 -0
- package/transpiled/src-export/pwa-auth.d.ts.map +1 -0
- package/transpiled/src-export/pwa-auth.js +3 -0
- package/transpiled/src-export/pwa-helpers.d.ts +2 -0
- package/transpiled/src-export/pwa-helpers.d.ts.map +1 -0
- package/transpiled/src-export/pwa-helpers.js +1 -0
- package/transpiled/src-typescript/css/form/button.d.ts +3 -0
- package/transpiled/src-typescript/css/form/button.d.ts.map +1 -0
- package/transpiled/src-typescript/css/form/button.js +54 -0
- package/transpiled/src-typescript/css/form/input.d.ts +3 -0
- package/transpiled/src-typescript/css/form/input.d.ts.map +1 -0
- package/transpiled/src-typescript/css/form/input.js +24 -0
- package/transpiled/src-typescript/css/form/label.d.ts +3 -0
- package/transpiled/src-typescript/css/form/label.d.ts.map +1 -0
- package/transpiled/src-typescript/css/form/label.js +22 -0
- package/transpiled/src-typescript/css/form/list.d.ts +3 -0
- package/transpiled/src-typescript/css/form/list.d.ts.map +1 -0
- package/transpiled/src-typescript/css/form/list.js +22 -0
- package/transpiled/src-typescript/css/svg.d.ts +4 -0
- package/transpiled/src-typescript/css/svg.d.ts.map +1 -0
- package/transpiled/src-typescript/css/svg.js +4 -0
- package/transpiled/src-typescript/css/toggle.d.ts +2 -0
- package/transpiled/src-typescript/css/toggle.d.ts.map +1 -0
- package/transpiled/src-typescript/css/toggle.js +8 -0
- package/transpiled/src-typescript/firebase/authentication.d.ts +11 -0
- package/transpiled/src-typescript/firebase/authentication.d.ts.map +1 -0
- package/transpiled/src-typescript/firebase/authentication.js +10 -0
- package/transpiled/src-typescript/firebase/interface.d.ts +5 -0
- package/transpiled/src-typescript/firebase/interface.d.ts.map +1 -0
- package/transpiled/src-typescript/firebase/interface.js +79 -0
- package/transpiled/src-typescript/redux/backend.d.ts +16 -0
- package/transpiled/src-typescript/redux/backend.d.ts.map +1 -0
- package/transpiled/src-typescript/redux/backend.js +43 -0
- package/transpiled/src-typescript/redux/drawer.d.ts +20 -0
- package/transpiled/src-typescript/redux/drawer.d.ts.map +1 -0
- package/transpiled/src-typescript/redux/drawer.js +21 -0
- package/transpiled/src-typescript/redux/frontend.d.ts +17 -0
- package/transpiled/src-typescript/redux/frontend.d.ts.map +1 -0
- package/transpiled/src-typescript/redux/frontend.js +67 -0
- package/transpiled/src-typescript/redux/object.d.ts +24 -0
- package/transpiled/src-typescript/redux/object.d.ts.map +1 -0
- package/transpiled/src-typescript/redux/object.js +1 -0
- package/transpiled/src-typescript/store.d.ts +19 -0
- package/transpiled/src-typescript/store.d.ts.map +1 -0
- package/transpiled/src-typescript/store.js +13 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/drawer.d.ts +3 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/drawer.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/drawer.js +55 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/exit.d.ts +3 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/exit.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/exit.js +48 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/link.d.ts +3 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/link.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/link.js +12 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/paragraph.d.ts +3 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/paragraph.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/paragraph.js +10 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/toggle.d.ts +3 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/toggle.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/drawer/css/toggle.js +18 -0
- package/transpiled/src-typescript/webcomponents/drawer/drawer.d.ts +37 -0
- package/transpiled/src-typescript/webcomponents/drawer/drawer.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/drawer/drawer.js +138 -0
- package/transpiled/src-typescript/webcomponents/drawer/input/login.d.ts +20 -0
- package/transpiled/src-typescript/webcomponents/drawer/input/login.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/drawer/input/login.js +134 -0
- package/transpiled/src-typescript/webcomponents/drawer/input/sign-up.d.ts +20 -0
- package/transpiled/src-typescript/webcomponents/drawer/input/sign-up.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/drawer/input/sign-up.js +144 -0
- package/transpiled/src-typescript/webcomponents/icon/css/icon.d.ts +2 -0
- package/transpiled/src-typescript/webcomponents/icon/css/icon.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/icon/css/icon.js +59 -0
- package/transpiled/src-typescript/webcomponents/icon/icon.d.ts +33 -0
- package/transpiled/src-typescript/webcomponents/icon/icon.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/icon/icon.js +81 -0
- package/transpiled/src-typescript/webcomponents/settings/css/navigation.d.ts +2 -0
- package/transpiled/src-typescript/webcomponents/settings/css/navigation.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/settings/css/navigation.js +51 -0
- package/transpiled/src-typescript/webcomponents/settings/input/delete.d.ts +34 -0
- package/transpiled/src-typescript/webcomponents/settings/input/delete.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/settings/input/delete.js +92 -0
- package/transpiled/src-typescript/webcomponents/settings/input/email.d.ts +34 -0
- package/transpiled/src-typescript/webcomponents/settings/input/email.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/settings/input/email.js +104 -0
- package/transpiled/src-typescript/webcomponents/settings/input/name.d.ts +33 -0
- package/transpiled/src-typescript/webcomponents/settings/input/name.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/settings/input/name.js +95 -0
- package/transpiled/src-typescript/webcomponents/settings/input/password.d.ts +36 -0
- package/transpiled/src-typescript/webcomponents/settings/input/password.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/settings/input/password.js +151 -0
- package/transpiled/src-typescript/webcomponents/settings/input/uploader.d.ts +37 -0
- package/transpiled/src-typescript/webcomponents/settings/input/uploader.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/settings/input/uploader.js +235 -0
- package/transpiled/src-typescript/webcomponents/settings/settings.d.ts +37 -0
- package/transpiled/src-typescript/webcomponents/settings/settings.d.ts.map +1 -0
- package/transpiled/src-typescript/webcomponents/settings/settings.js +204 -0
- package/pwa-auth.js +0 -4
- /package/src-typescript/development/{object.ts → utilities-object.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ All notable changes to pwa-auth.js will be documented in this file.
|
|
|
6
6
|
- Social Login Flow
|
|
7
7
|
- animated login and data
|
|
8
8
|
|
|
9
|
+
# [3.1.1] - 2025-10-07
|
|
10
|
+
|
|
11
|
+
## Changed
|
|
12
|
+
- Two Source Options: ES Modules / Global Scope
|
|
13
|
+
- NPM Package Export Names
|
|
14
|
+
|
|
9
15
|
# [3.0.5] - 2025-10-07
|
|
10
16
|
|
|
11
17
|
## Changed
|
package/README.md
CHANGED
|
@@ -17,41 +17,43 @@ You will learn how to place 3 Custom HTML Tags, reference CSS, and How to Initia
|
|
|
17
17
|
|
|
18
18
|
Continue reading to understand how to install the project:
|
|
19
19
|
|
|
20
|
-
##
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
-
|
|
52
|
-
- pwa-
|
|
53
|
-
|
|
54
|
-
-
|
|
20
|
+
## Choose Project Type
|
|
21
|
+
|
|
22
|
+
ECMA Script Modules
|
|
23
|
+
```javascript
|
|
24
|
+
import 'pwa-auth';
|
|
25
|
+
import { db, storage, auth, user } from 'pwa-helpers';
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Global Scope Management
|
|
29
|
+
```html
|
|
30
|
+
<!-- Optional: Copy the Project Files from 'src' Folder -->
|
|
31
|
+
<script type="module" src="./pwa-auth.js"></script>
|
|
32
|
+
```
|
|
33
|
+
## Library
|
|
34
|
+
- 3 Tag Placement
|
|
35
|
+
- Color Scheme: CSS Custom Properties
|
|
36
|
+
- Firebase Initialization Object
|
|
37
|
+
|
|
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
|
+
|
|
48
|
+
## Modules
|
|
49
|
+
- db - firestore database reference
|
|
50
|
+
- getFirestore(pwa-env)
|
|
51
|
+
- storage - firebase storage reference
|
|
52
|
+
- getStorage(pwa-env)
|
|
53
|
+
- auth - user object reference
|
|
54
|
+
- getAuth(pwa-env)
|
|
55
|
+
- user - active user boolean reference
|
|
56
|
+
- auth.currentUser
|
|
55
57
|
|
|
56
58
|
## HTML Webcomponents
|
|
57
59
|
- user-icon
|
|
@@ -70,14 +72,22 @@ For simple projects, you can copy to disk
|
|
|
70
72
|
- Authentication - email login
|
|
71
73
|
- Cloud Storage - storage bucket
|
|
72
74
|
|
|
73
|
-
## Boilerplate
|
|
75
|
+
## Boilerplate
|
|
76
|
+
|
|
77
|
+
For simple projects, you can copy to disk
|
|
78
|
+
- src/compiled/
|
|
79
|
+
- pwa-auth.js
|
|
80
|
+
- pwa-styles.css
|
|
81
|
+
- empty.jpg
|
|
82
|
+
|
|
83
|
+
### ECMA Script Modules
|
|
74
84
|
```html
|
|
75
85
|
<head>
|
|
76
86
|
|
|
77
|
-
<!--
|
|
87
|
+
<!-- Optional - CSS Custom Variables-->
|
|
78
88
|
<link type="stylesheet" href="./path_to/pwa-styles.css">
|
|
79
89
|
|
|
80
|
-
<!--
|
|
90
|
+
<!-- Required - Configure Firebase Instance -->
|
|
81
91
|
<script>
|
|
82
92
|
window.process = { env: { FIREBASE_CONFIG: JSON.stringify({
|
|
83
93
|
apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
@@ -95,26 +105,27 @@ For simple projects, you can copy to disk
|
|
|
95
105
|
if (lolalhost) { window.process = { env: { FIREBASE_CONFIG: 'etc.' } } }
|
|
96
106
|
</script>
|
|
97
107
|
|
|
98
|
-
<!--
|
|
108
|
+
<!-- Webcomponent Library -->
|
|
99
109
|
<script type="module" src="./path_to/pwa-auth.js"></script>
|
|
100
110
|
|
|
101
111
|
</head>
|
|
102
112
|
```
|
|
113
|
+
## Boilerplate
|
|
103
114
|
|
|
104
|
-
|
|
115
|
+
### TypeScript Library for Bundlers
|
|
105
116
|
```javascript
|
|
106
117
|
import 'pwa-auth';
|
|
107
118
|
// <user-icon subscribe emptyArtwork="./images/empty.jpg"></user-icon>
|
|
108
119
|
// <user-drawer subscribe settingsURL="./settings"></user-drawer>
|
|
109
120
|
// <user-settings emptyArtwork="./images/empty.jpg"></user-settings>
|
|
110
|
-
import { db, storage, auth, user } from 'pwa-
|
|
121
|
+
import { db, storage, auth, user } from 'pwa-helpers';
|
|
111
122
|
// db - firestore database reference
|
|
112
123
|
// storage - firebase storage reference
|
|
113
124
|
// auth - user object reference
|
|
114
125
|
// user - active user boolean reference
|
|
115
126
|
```
|
|
116
127
|
|
|
117
|
-
##
|
|
128
|
+
## Implementation
|
|
118
129
|
```html
|
|
119
130
|
<body>
|
|
120
131
|
|