pwa-auth 1.2.0 → 1.2.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.
- package/CHANGELOG.md +6 -0
- package/README.md +2 -1
- package/demo/index.html +16 -5
- package/demo/styles.css +5 -0
- package/deploy/custom-elements/drawer/css/drawer.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/css/drawer.js +11 -1
- package/deploy/custom-elements/drawer/css/old/visibility.d.ts +3 -0
- package/deploy/custom-elements/drawer/css/old/visibility.d.ts.map +1 -0
- package/deploy/custom-elements/drawer/css/old/visibility.js +22 -0
- package/deploy/custom-elements/drawer/css/paragraph.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/css/paragraph.js +4 -5
- package/deploy/custom-elements/drawer/css/visibility.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/css/visibility.js +4 -2
- package/deploy/custom-elements/drawer/drawer.d.ts.map +1 -1
- package/deploy/custom-elements/drawer/drawer.js +20 -12
- package/deploy/custom-elements/drawer/input/login.js +1 -1
- package/deploy/custom-elements/drawer/input/sign-up.js +1 -1
- package/npm/pwa-auth.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,12 @@ Security - in case of vulnerabilities.
|
|
|
14
14
|
|
|
15
15
|
# [1.1.6] - 2025-08-25
|
|
16
16
|
|
|
17
|
+
## Changed
|
|
18
|
+
- Login Button Standard Height: Medium: 40px
|
|
19
|
+
- Drawer Animation: from 3d transition, to max-height mechanism
|
|
20
|
+
|
|
21
|
+
# [1.1.6] - 2025-08-25
|
|
22
|
+
|
|
17
23
|
## Changed
|
|
18
24
|
- Drawer - should be the custome element itself, not internal wrapper
|
|
19
25
|
|
package/README.md
CHANGED
|
@@ -175,4 +175,5 @@ if (lolalhost) { connect = { /* etc. */ } }
|
|
|
175
175
|
All feedback, comments, bugs, and requests are welcome.
|
|
176
176
|
* [Jack's Publishing](https://www.jackspublishing.com)
|
|
177
177
|
* [contractor's centre](https://www.contractorscentre.com)
|
|
178
|
-
* [Node Package Manager](https://www.npmjs.com/package/pwa-auth)
|
|
178
|
+
* [Node Package Manager](https://www.npmjs.com/package/pwa-auth)
|
|
179
|
+
* [Sponsor Jacek Markiewicz](https://github.com/sponsors/busynest/button)
|
package/demo/index.html
CHANGED
|
@@ -41,14 +41,25 @@
|
|
|
41
41
|
<!-- Start Body -->
|
|
42
42
|
<body>
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
<header><user-icon register></user-icon></header>
|
|
44
|
+
<header>
|
|
46
45
|
|
|
47
|
-
|
|
46
|
+
<!-- Sponsor Me -->
|
|
47
|
+
<iframe src="https://github.com/sponsors/busynest/button" title="Sponsor busynest" height="32" width="114" style="border: 0; border-radius: 6px; margin: auto 0 auto 0;"></iframe>
|
|
48
|
+
|
|
49
|
+
<!-- Icon Tag -->
|
|
50
|
+
<user-icon register></user-icon>
|
|
51
|
+
|
|
52
|
+
</header>
|
|
53
|
+
|
|
54
|
+
<!-- Drawer Tag-->
|
|
48
55
|
<user-drawer register url="/demo/settings"></user-drawer>
|
|
49
56
|
|
|
50
|
-
|
|
51
|
-
|
|
57
|
+
<main>
|
|
58
|
+
|
|
59
|
+
<!-- Settings Tag-->
|
|
60
|
+
<user-settings></user-settings>
|
|
61
|
+
|
|
62
|
+
</main>
|
|
52
63
|
|
|
53
64
|
<!-- CSS: Custom Variables: <head> tag -->
|
|
54
65
|
<style>
|
package/demo/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,SAuBzB,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { css } from "lit";
|
|
|
2
2
|
export const drawerStyle = css `
|
|
3
3
|
|
|
4
4
|
.userDrawer {
|
|
5
|
-
z-index: 1;
|
|
6
5
|
max-width: 600px;
|
|
7
6
|
margin: 16px auto auto auto;
|
|
8
7
|
background-color: var(--pwa_drawer_background_color);
|
|
@@ -10,6 +9,17 @@ export const drawerStyle = css `
|
|
|
10
9
|
box-sizing: border-box;
|
|
11
10
|
border: 3px #303030 solid;
|
|
12
11
|
border-radius: 20px;
|
|
12
|
+
height: auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.closed {
|
|
16
|
+
max-height: 0px;
|
|
17
|
+
transition: max-height 1.4s ease-out;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.opened {
|
|
21
|
+
max-height: 100%;
|
|
22
|
+
transition: max-height 1.4s ease-out;
|
|
13
23
|
}
|
|
14
24
|
|
|
15
25
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../../../../src/custom-elements/drawer/css/old/visibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,UAAU,EAAE,SAoBxB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export const visibility = css `
|
|
3
|
+
|
|
4
|
+
.visibility[on] {
|
|
5
|
+
visibility: visible;
|
|
6
|
+
transform: translate3d(0, 0, 0);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.visibility {
|
|
10
|
+
position: fixed;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
visibility: hidden;
|
|
15
|
+
will-change: transform;
|
|
16
|
+
transform: translate3d(0, -150%, 0);
|
|
17
|
+
transition-property: visibility, transform;
|
|
18
|
+
transition-duration: 1.4s;
|
|
19
|
+
display: block;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,SAAS,EAAE,SAQvB,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
export const lineStyle = css `
|
|
3
|
-
|
|
4
|
-
p {
|
|
3
|
+
|
|
4
|
+
.setLog > p {
|
|
5
|
+
margin: 12px;
|
|
6
|
+
box-sizing: border-box;
|
|
5
7
|
text-align: center;
|
|
6
8
|
}
|
|
7
|
-
|
|
8
|
-
.setLog > p { margin: 12px; box-sizing: border-box; }
|
|
9
|
-
.divide { border: 2px solid #606060; margin: 6px 0 0 0; border-radius: 50%; }
|
|
10
9
|
|
|
11
10
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/visibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"visibility.d.ts","sourceRoot":"","sources":["../../../../src/custom-elements/drawer/css/visibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,eAAO,MAAM,UAAU,EAAE,SAsBxB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
export const visibility = css `
|
|
3
|
-
|
|
3
|
+
/*
|
|
4
4
|
.visibility[on] {
|
|
5
5
|
visibility: visible;
|
|
6
6
|
transform: translate3d(0, 0, 0);
|
|
@@ -15,8 +15,10 @@ export const visibility = css `
|
|
|
15
15
|
will-change: transform;
|
|
16
16
|
transform: translate3d(0, -150%, 0);
|
|
17
17
|
transition-property: visibility, transform;
|
|
18
|
-
transition-duration: 1.4s;
|
|
19
18
|
display: block;
|
|
20
19
|
}
|
|
20
|
+
*/
|
|
21
|
+
/* max-height is a programmed transition effect */
|
|
22
|
+
|
|
21
23
|
|
|
22
24
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,MAAoB,KAAK,CAAC;AAG1E,OAAO,EAAS,QAAQ,EAAE,MAAqB,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/custom-elements/drawer/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAQ,UAAU,EAAE,MAAoB,KAAK,CAAC;AAG1E,OAAO,EAAS,QAAQ,EAAE,MAAqB,aAAa,CAAC;AAa7D,OAAO,eAAe,CAAC;AACvB,OAAO,iBAAiB,CAAC;;;;;;;;;;;;;;AAEzB,qBACa,UAAW,SAAQ,eAA0B;IAGf,OAAO,CAAC,GAAG,CAAM;IAGO,MAAM,UAAS;IAGf,QAAQ,UAAS;IAEzE,OAAO,CAAC,KAAK,CAAa;IAC1B,OAAO,CAAC,IAAI,CAAiB;IAC7B,OAAO,CAAC,KAAK,CAAgB;;IAMtC,YAAY,CAAC,KAAK,EAAE,QAAQ;IAO5B,SAAS,CAAC,YAAY;IAatB,MAAM,KAAK,MAAM,IAAI,cAAc,CA0ChC;IAEH,SAAS,CAAC,MAAM;CA+CjB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC3B,aAAa,EAAE,UAAU,CAAC;KAC7B;CACF"}
|
|
@@ -10,7 +10,6 @@ import { connect } from 'pwa-helpers/connect-mixin';
|
|
|
10
10
|
import { store } from '../../store';
|
|
11
11
|
import { close } from '../../css/svg';
|
|
12
12
|
import { show } from '../../css/toggle';
|
|
13
|
-
import { visibility } from './css/visibility';
|
|
14
13
|
import { drawerStyle } from './css/drawer';
|
|
15
14
|
import { exitStyle } from './css/exit';
|
|
16
15
|
import { linkStyle } from './css/link';
|
|
@@ -50,7 +49,6 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
50
49
|
static get styles() {
|
|
51
50
|
return [
|
|
52
51
|
show,
|
|
53
|
-
visibility,
|
|
54
52
|
drawerStyle,
|
|
55
53
|
exitStyle,
|
|
56
54
|
linkStyle,
|
|
@@ -59,22 +57,34 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
59
57
|
css `
|
|
60
58
|
|
|
61
59
|
:host {
|
|
60
|
+
z-index: 2;
|
|
62
61
|
position: fixed;
|
|
63
62
|
top: 0;
|
|
64
63
|
left: 0;
|
|
65
64
|
right: 0;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
transition-
|
|
70
|
-
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
|
|
67
|
+
transition-property: max-height;
|
|
68
|
+
transition-duration: 1.4s;
|
|
69
|
+
height: auto;
|
|
70
|
+
max-height: 0px;
|
|
71
|
+
transition: max-height 1.5s ease-out;
|
|
72
|
+
|
|
71
73
|
display: block;
|
|
74
|
+
padding-top: env(safe-area-inset-top);
|
|
72
75
|
}
|
|
73
76
|
|
|
77
|
+
/*visibility: hidden;
|
|
78
|
+
/*will-change: transform;
|
|
79
|
+
transform: translate3d(0, -150%, 0);
|
|
80
|
+
transition-property: visibility, transform;*/
|
|
81
|
+
|
|
82
|
+
/*transform: translate3d(0, 0, 0);*/
|
|
83
|
+
|
|
74
84
|
:host([drawer]) {
|
|
75
85
|
transition-duration: 1.4s;
|
|
76
|
-
|
|
77
|
-
|
|
86
|
+
max-height: 100%;
|
|
87
|
+
transition: max-height 1.5s ease-out;
|
|
78
88
|
}
|
|
79
89
|
|
|
80
90
|
`
|
|
@@ -86,8 +96,7 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
86
96
|
|
|
87
97
|
<!-- Drawer Wrapper -->
|
|
88
98
|
<section
|
|
89
|
-
class="
|
|
90
|
-
?on="${this.drawer === true}">
|
|
99
|
+
class="userDrawer ${this.drawer ? 'opened' : 'closed'}">
|
|
91
100
|
|
|
92
101
|
<!-- Exit Button -->
|
|
93
102
|
<header class="exit">
|
|
@@ -104,7 +113,6 @@ let UserDrawer = class UserDrawer extends connect(store)(LitElement) {
|
|
|
104
113
|
<!-- Log-in State -->
|
|
105
114
|
<user-log-in
|
|
106
115
|
class="spec"
|
|
107
|
-
|
|
108
116
|
?on="${true === this._sign ? !this.register : this.register}"></user-log-in>
|
|
109
117
|
|
|
110
118
|
<!-- Sign-up State -->
|
|
@@ -72,7 +72,7 @@ let UserLogIn = class UserLogIn extends LitElement {
|
|
|
72
72
|
<!-- Change State -->
|
|
73
73
|
<button
|
|
74
74
|
class="new"
|
|
75
|
-
@click="${this.change}">
|
|
75
|
+
@click="${this.change}">create a new account</button>
|
|
76
76
|
|
|
77
77
|
<button
|
|
78
78
|
class="login action-button"
|
|
@@ -82,7 +82,7 @@ let UserSignUp = class UserSignUp extends LitElement {
|
|
|
82
82
|
<!-- Change State -->
|
|
83
83
|
<button
|
|
84
84
|
class="new"
|
|
85
|
-
@click="${this.change}">
|
|
85
|
+
@click="${this.change}">login with existing email</button>
|
|
86
86
|
|
|
87
87
|
<button
|
|
88
88
|
class="newUser action-button"
|