pwa-auth 2.0.7 → 2.0.8
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 +9 -0
- package/README.md +35 -43
- package/demo/css/styles.css +4 -2
- package/demo/index.html +6 -3
- package/deploy/css/form/label.d.ts.map +1 -1
- package/deploy/css/form/label.js +0 -2
- package/deploy/custom-elements/settings/input/uploader.d.ts.map +1 -1
- package/deploy/custom-elements/settings/input/uploader.js +1 -0
- package/npm/pwa-auth.js +1 -1
- package/package.json +7 -6
- package/source/css/form/label.ts +0 -2
- package/source/custom-elements/settings/input/uploader.ts +1 -0
- package/website/css/styles.css +2 -21
- package/website/index.html +9 -12
- package/website/js/images/empty.jpg +0 -0
- package/website/js/pwa-auth.js +1 -1
- /package/npm/{images/empty.jpg → empty.jpg} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,8 +6,17 @@ 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
|
+
# [2.0.8] - 2025-09-08
|
|
10
|
+
|
|
11
|
+
## Changed
|
|
12
|
+
- Read Me Instructions Updated
|
|
13
|
+
- photo-uploader : design
|
|
14
|
+
|
|
9
15
|
# [2.0.7] - 2025-09-07
|
|
10
16
|
|
|
17
|
+
## Added
|
|
18
|
+
- Individual Custom Element Package Modules
|
|
19
|
+
|
|
11
20
|
## Changed
|
|
12
21
|
- CSS Custom Properties Default
|
|
13
22
|
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Continue reading to start installing the bundle:
|
|
|
23
23
|
|
|
24
24
|
Visit: [Live Demo](https://pwa-authentic.firebaseapp.com)
|
|
25
25
|
|
|
26
|
-
## Features
|
|
26
|
+
## Features
|
|
27
27
|
- Register through Email and Password
|
|
28
28
|
- Log-in
|
|
29
29
|
- Log-out
|
|
@@ -33,11 +33,12 @@ Visit: [Live Demo](https://pwa-authentic.firebaseapp.com)
|
|
|
33
33
|
- Change Password
|
|
34
34
|
- Delete Account
|
|
35
35
|
|
|
36
|
-
##
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
36
|
+
## Copy Project Files
|
|
37
|
+
For simple projects, you can copy to disk
|
|
38
|
+
- node_modules/pwa-auth/npm/
|
|
39
|
+
- pwa-auth.js
|
|
40
|
+
- pwa-styles.css
|
|
41
|
+
- empty.jpg
|
|
41
42
|
|
|
42
43
|
## Modular JavaScript
|
|
43
44
|
```javascript
|
|
@@ -63,10 +64,32 @@ import 'pwa-auth';
|
|
|
63
64
|
## Boilerplate
|
|
64
65
|
```html
|
|
65
66
|
<head>
|
|
66
|
-
<!-- pwa-auth.js - CSS Custom Properties - Choice 1: Link Tag -->
|
|
67
|
-
<link type="stylesheet" href="pwa-styles.css">
|
|
68
|
-
</head>
|
|
69
67
|
|
|
68
|
+
<!-- EXAMPLE 1: CSS Custom Variables - Optional -->
|
|
69
|
+
<link type="stylesheet" href="./pwa-styles.css">
|
|
70
|
+
|
|
71
|
+
<!-- EXAMPLE 2: Configure Firebase Instance -->
|
|
72
|
+
<script>
|
|
73
|
+
window.process = { env: { FIREBASE_CONFIG: JSON.stringify({
|
|
74
|
+
apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
75
|
+
authDomain: "xxxxxxx.xxxxxxx.xxx",
|
|
76
|
+
databaseURL: "https://xxxxxxx.xxxxxxx.xxx",
|
|
77
|
+
projectId: "xxxxxxx",
|
|
78
|
+
storageBucket: "xxxxxxx.xxxxxxx.xxx",
|
|
79
|
+
messagingSenderId: "xxxxxxxxxxx",
|
|
80
|
+
appId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
81
|
+
measurementId: "xxxxxxxxxxx"
|
|
82
|
+
})
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
if (lolalhost) { window.process = { env: { FIREBASE_CONFIG: 'etc.' } } }
|
|
87
|
+
</script>
|
|
88
|
+
|
|
89
|
+
<!-- EXAMPLE 3: Load Webcomponents Library -->
|
|
90
|
+
<script src="./pwa-auth.js"></script>
|
|
91
|
+
|
|
92
|
+
</head>
|
|
70
93
|
<body>
|
|
71
94
|
|
|
72
95
|
<header>
|
|
@@ -76,7 +99,7 @@ import 'pwa-auth';
|
|
|
76
99
|
<!-- Logged-out (State): txt: Subscribe Button -->
|
|
77
100
|
<!-- Logged-in (State): photo: Icon Button -->
|
|
78
101
|
<!-- emptyArtwork property: location of empty image -->
|
|
79
|
-
<user-icon subscribe emptyArtwork="images/empty.jpg"></user-icon>
|
|
102
|
+
<user-icon subscribe emptyArtwork="./images/empty.jpg"></user-icon>
|
|
80
103
|
</header>
|
|
81
104
|
|
|
82
105
|
<!-- settingsURL property: location of <pwa-settings> Tag -->
|
|
@@ -86,7 +109,7 @@ import 'pwa-auth';
|
|
|
86
109
|
<!-- logged-out (State): Sign-up by Email Addresses and Password -->
|
|
87
110
|
<!-- logged-out (State): Sign-in by Email Addresses and Password -->
|
|
88
111
|
<!-- logged-in (State): Settings Page Link, Log-out Button -->
|
|
89
|
-
<user-drawer subscribe settingsURL="
|
|
112
|
+
<user-drawer subscribe settingsURL="./settings"></user-drawer>
|
|
90
113
|
|
|
91
114
|
<main>
|
|
92
115
|
<!-- 1 Photo Upload Feature, view uploaded bucket of photos, photo ediotr -->
|
|
@@ -96,40 +119,9 @@ import 'pwa-auth';
|
|
|
96
119
|
<!-- Update Password -->
|
|
97
120
|
<!-- Delete Account, Photos, Information -->
|
|
98
121
|
<!-- emptyArtwork property: location of empty image -->
|
|
99
|
-
<user-settings emptyArtwork="images/empty.jpg"></user-settings>
|
|
122
|
+
<user-settings emptyArtwork="./images/empty.jpg"></user-settings>
|
|
100
123
|
</main>
|
|
101
124
|
|
|
102
|
-
<!-- pwa-auth.js - CSS Custom Variables - Choice 2: Style Tag -->
|
|
103
|
-
<style>
|
|
104
|
-
:root {
|
|
105
|
-
--pwa_icon_diameter: 32px;
|
|
106
|
-
/* copy all properties from css/pwa-styles.css */
|
|
107
|
-
}
|
|
108
|
-
</style>
|
|
109
|
-
|
|
110
|
-
<!-- pwa-auth.js - Firebase Instance -->
|
|
111
|
-
<script>
|
|
112
|
-
// Firebase Configuration Object
|
|
113
|
-
window.process = { env: { FIREBASE_CONFIG: JSON.stringify({
|
|
114
|
-
apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
115
|
-
authDomain: "xxxxxxx.xxxxxxx.xxx",
|
|
116
|
-
databaseURL: "https://xxxxxxx.xxxxxxx.xxx",
|
|
117
|
-
projectId: "xxxxxxx",
|
|
118
|
-
storageBucket: "xxxxxxx.xxxxxxx.xxx",
|
|
119
|
-
messagingSenderId: "xxxxxxxxxxx",
|
|
120
|
-
appId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
121
|
-
measurementId: "xxxxxxxxxxx"
|
|
122
|
-
})
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
// Localhost - Firebase Configuratioon Object
|
|
127
|
-
if (lolalhost) { window.process = { env: { FIREBASE_CONFIG: 'etc.' } } }
|
|
128
|
-
</script>
|
|
129
|
-
|
|
130
|
-
<!-- pwa-auth.js - Webcomponent Library -->
|
|
131
|
-
<script src="pwa-auth.js"></script>
|
|
132
|
-
|
|
133
125
|
</body>
|
|
134
126
|
```
|
|
135
127
|
## CSS Custom Properties
|
package/demo/css/styles.css
CHANGED
|
@@ -18,6 +18,7 @@ body {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
body {
|
|
21
|
+
background-color: #0a2840;
|
|
21
22
|
display: grid;
|
|
22
23
|
grid-gap: 16px;
|
|
23
24
|
grid-template-areas:
|
|
@@ -39,12 +40,13 @@ main {
|
|
|
39
40
|
border: 2px solid black;
|
|
40
41
|
border-radius: 6px;
|
|
41
42
|
overflow: hidden;
|
|
43
|
+
background-color: cadetblue;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
footer {
|
|
45
47
|
display: grid;
|
|
46
48
|
}
|
|
47
|
-
|
|
49
|
+
/*
|
|
48
50
|
body {
|
|
49
51
|
background: linear-gradient(124deg, #e8891d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3);
|
|
50
52
|
background-size: 1800%;
|
|
@@ -64,4 +66,4 @@ body {
|
|
|
64
66
|
100% {
|
|
65
67
|
background-position: 0% 100%;
|
|
66
68
|
}
|
|
67
|
-
}
|
|
69
|
+
}*/
|
package/demo/index.html
CHANGED
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
<header>
|
|
41
41
|
|
|
42
42
|
<!-- Icon Tag -->
|
|
43
|
-
<user-icon subscribe emptyArtwork="images/empty.jpg"></user-icon>
|
|
43
|
+
<user-icon subscribe emptyArtwork="./images/empty.jpg"></user-icon>
|
|
44
44
|
|
|
45
45
|
</header>
|
|
46
46
|
|
|
47
47
|
<!-- Drawer Tag-->
|
|
48
|
-
<user-drawer subscribe settingsURL="settings"></user-drawer>
|
|
48
|
+
<user-drawer subscribe settingsURL="./settings"></user-drawer>
|
|
49
49
|
|
|
50
50
|
<main>
|
|
51
51
|
|
|
52
52
|
<!-- Settings Tag-->
|
|
53
|
-
<user-settings emptyArtwork="images/empty.jpg"></user-settings>
|
|
53
|
+
<user-settings emptyArtwork="./images/empty.jpg"></user-settings>
|
|
54
54
|
|
|
55
55
|
</main>
|
|
56
56
|
|
|
@@ -63,6 +63,9 @@
|
|
|
63
63
|
|
|
64
64
|
</footer>
|
|
65
65
|
|
|
66
|
+
<!-- pwa-auth.js - CSS Custom Variables - Option 2
|
|
67
|
+
<style></style> -->
|
|
68
|
+
|
|
66
69
|
<!-- Application Shell -->
|
|
67
70
|
<script type="module" src="../pwa-auth.js" async></script>
|
|
68
71
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../source/css/form/label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,UAAU,EAAG,
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../source/css/form/label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,UAAU,EAAG,SAoBzB,CAAC"}
|
package/deploy/css/form/label.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploader.d.ts","sourceRoot":"","sources":["../../../../source/custom-elements/settings/input/uploader.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAQ,KAAK,CAAC;AAE9D,OAAO,EAAS,QAAQ,EAAE,MAAe,gBAAgB,CAAC;;;;;;;;;;;;;;AAQ1D,qBAAa,YAAa,SAAQ,iBAA0B;IAGvC,KAAK,EAAG,MAAM,GAAG,IAAI,GAAG,GAAG,CAAM;IAGJ,YAAY,SAAM;IAEzD,OAAO,CAAC,IAAI,CAAsB;IAClC,OAAO,CAAC,KAAK,CAAmB;IAIhC,OAAO,CAAC,QAAQ,CAAa;IAE7B,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,MAAM,CAAc;;IAWrC,YAAY,CAAC,KAAK,EAAE,QAAQ;IAU5B,MAAM,KAAK,MAAM,IAAG,cAAc,CAwBjC;IAED,SAAS,CAAC,MAAM;
|
|
1
|
+
{"version":3,"file":"uploader.d.ts","sourceRoot":"","sources":["../../../../source/custom-elements/settings/input/uploader.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAQ,KAAK,CAAC;AAE9D,OAAO,EAAS,QAAQ,EAAE,MAAe,gBAAgB,CAAC;;;;;;;;;;;;;;AAQ1D,qBAAa,YAAa,SAAQ,iBAA0B;IAGvC,KAAK,EAAG,MAAM,GAAG,IAAI,GAAG,GAAG,CAAM;IAGJ,YAAY,SAAM;IAEzD,OAAO,CAAC,IAAI,CAAsB;IAClC,OAAO,CAAC,KAAK,CAAmB;IAIhC,OAAO,CAAC,QAAQ,CAAa;IAE7B,OAAO,CAAC,KAAK,CAAc;IAC3B,OAAO,CAAC,MAAM,CAAc;;IAWrC,YAAY,CAAC,KAAK,EAAE,QAAQ;IAU5B,MAAM,KAAK,MAAM,IAAG,cAAc,CAwBjC;IAED,SAAS,CAAC,MAAM;YA8FF,SAAS;IA0IvB,OAAO,CAAC,aAAa,CAYpB;CAEF;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,eAAe,EAAE,YAAY,CAAC;KACjC;CACF"}
|