pwa-auth 3.2.4 → 3.3.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.
Files changed (153) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/{THIRD_PARTY_LICENSES.txt → LICENSES.txt} +57 -57
  3. package/README.md +88 -65
  4. package/{bundle/base → base}/export/pwa-auth.d.ts +2 -0
  5. package/{bundle/base → base}/export/pwa-auth.js +2 -0
  6. package/base/export/pwa-auth.js.map +1 -0
  7. package/base/firebase/authentication.js.map +1 -0
  8. package/base/firebase/interface.js.map +1 -0
  9. package/base/lazy-loader.d.ts +11 -0
  10. package/base/lazy-loader.js +23 -0
  11. package/base/lazy-loader.js.map +1 -0
  12. package/base/redux/backend.js.map +1 -0
  13. package/base/redux/drawer.js.map +1 -0
  14. package/{bundle/base → base}/redux/frontend.d.ts +41 -14
  15. package/{bundle/base → base}/redux/frontend.js +25 -6
  16. package/base/redux/frontend.js.map +1 -0
  17. package/{bundle/base → base}/store.d.ts +4 -2
  18. package/base/store.js.map +1 -0
  19. package/base/webcomponents/css/animation.d.ts +2 -0
  20. package/base/webcomponents/css/animation.js +68 -0
  21. package/base/webcomponents/css/animation.js.map +1 -0
  22. package/base/webcomponents/css/svg.js.map +1 -0
  23. package/{bundle/base → base/webcomponents}/css/toggle.js +0 -1
  24. package/base/webcomponents/css/toggle.js.map +1 -0
  25. package/{bundle/base → base}/webcomponents/drawer/css/drawer.js +7 -10
  26. package/base/webcomponents/drawer/css/drawer.js.map +1 -0
  27. package/base/webcomponents/drawer/css/exit.js.map +1 -0
  28. package/base/webcomponents/drawer/css/link.js.map +1 -0
  29. package/base/webcomponents/drawer/css/paragraph.js.map +1 -0
  30. package/{bundle/base → base}/webcomponents/drawer/drawer.d.ts +7 -6
  31. package/{bundle/base → base}/webcomponents/drawer/drawer.js +46 -31
  32. package/base/webcomponents/drawer/drawer.js.map +1 -0
  33. package/{bundle/base/css/form → base/webcomponents/form/css}/button.js +1 -2
  34. package/base/webcomponents/form/css/button.js.map +1 -0
  35. package/{bundle/base/css/form → base/webcomponents/form/css}/input.js +0 -1
  36. package/base/webcomponents/form/css/input.js.map +1 -0
  37. package/base/webcomponents/form/css/label.js.map +1 -0
  38. package/{bundle/base/css/form → base/webcomponents/form/css}/list.js +1 -2
  39. package/base/webcomponents/form/css/list.js.map +1 -0
  40. package/{bundle/base/webcomponents/drawer → base/webcomponents/form}/css/toggle.js +0 -1
  41. package/base/webcomponents/form/css/toggle.js.map +1 -0
  42. package/base/webcomponents/form/forgot.d.ts +15 -0
  43. package/base/webcomponents/form/forgot.js +66 -0
  44. package/base/webcomponents/form/forgot.js.map +1 -0
  45. package/{bundle/base/webcomponents/drawer/input → base/webcomponents/form}/login.d.ts +3 -2
  46. package/base/webcomponents/form/login.js +158 -0
  47. package/base/webcomponents/form/login.js.map +1 -0
  48. package/{bundle/base/webcomponents/drawer/input/sign-up.d.ts → base/webcomponents/form/signup.d.ts} +3 -2
  49. package/{bundle/base/webcomponents/drawer/input/sign-up.js → base/webcomponents/form/signup.js} +75 -49
  50. package/base/webcomponents/form/signup.js.map +1 -0
  51. package/{bundle/base → base}/webcomponents/icon/css/icon.js +0 -5
  52. package/base/webcomponents/icon/css/icon.js.map +1 -0
  53. package/{bundle/base → base}/webcomponents/icon/icon.d.ts +2 -1
  54. package/{bundle/base → base}/webcomponents/icon/icon.js +7 -5
  55. package/base/webcomponents/icon/icon.js.map +1 -0
  56. package/base/webcomponents/login/css/auth.d.ts +2 -0
  57. package/base/webcomponents/login/css/auth.js +37 -0
  58. package/base/webcomponents/login/css/auth.js.map +1 -0
  59. package/base/webcomponents/login/css/link.d.ts +2 -0
  60. package/base/webcomponents/login/css/link.js +13 -0
  61. package/base/webcomponents/login/css/link.js.map +1 -0
  62. package/base/webcomponents/login/css/paragraph.d.ts +2 -0
  63. package/base/webcomponents/login/css/paragraph.js +11 -0
  64. package/base/webcomponents/login/css/paragraph.js.map +1 -0
  65. package/base/webcomponents/login/page.d.ts +55 -0
  66. package/base/webcomponents/login/page.js +114 -0
  67. package/base/webcomponents/login/page.js.map +1 -0
  68. package/{bundle/base → base}/webcomponents/settings/css/navigation.js +6 -7
  69. package/base/webcomponents/settings/css/navigation.js.map +1 -0
  70. package/{bundle/base → base}/webcomponents/settings/input/delete.d.ts +2 -1
  71. package/{bundle/base → base}/webcomponents/settings/input/delete.js +15 -13
  72. package/base/webcomponents/settings/input/delete.js.map +1 -0
  73. package/{bundle/base → base}/webcomponents/settings/input/email.d.ts +2 -1
  74. package/{bundle/base → base}/webcomponents/settings/input/email.js +37 -35
  75. package/base/webcomponents/settings/input/email.js.map +1 -0
  76. package/{bundle/base → base}/webcomponents/settings/input/name.d.ts +2 -1
  77. package/{bundle/base → base}/webcomponents/settings/input/name.js +24 -20
  78. package/base/webcomponents/settings/input/name.js.map +1 -0
  79. package/{bundle/base → base}/webcomponents/settings/input/password.d.ts +2 -1
  80. package/{bundle/base → base}/webcomponents/settings/input/password.js +53 -39
  81. package/base/webcomponents/settings/input/password.js.map +1 -0
  82. package/{bundle/base → base}/webcomponents/settings/input/uploader.d.ts +2 -1
  83. package/{bundle/base → base}/webcomponents/settings/input/uploader.js +14 -14
  84. package/base/webcomponents/settings/input/uploader.js.map +1 -0
  85. package/{bundle/base → base}/webcomponents/settings/settings.d.ts +2 -1
  86. package/{bundle/base → base}/webcomponents/settings/settings.js +53 -44
  87. package/base/webcomponents/settings/settings.js.map +1 -0
  88. package/demonstration/index.html +53 -77
  89. package/demonstration/styles.css +76 -0
  90. package/export/pwa-auth.ts +4 -5
  91. package/package.json +32 -23
  92. package/source/production/pwa-auth.js +1109 -0
  93. package/source/pwa-styles.css +2 -0
  94. package/bundle/base/css/form/button.js.map +0 -1
  95. package/bundle/base/css/form/input.js.map +0 -1
  96. package/bundle/base/css/form/label.js.map +0 -1
  97. package/bundle/base/css/form/list.js.map +0 -1
  98. package/bundle/base/css/svg.js.map +0 -1
  99. package/bundle/base/css/toggle.js.map +0 -1
  100. package/bundle/base/export/pwa-auth.js.map +0 -1
  101. package/bundle/base/firebase/authentication.js.map +0 -1
  102. package/bundle/base/firebase/interface.js.map +0 -1
  103. package/bundle/base/redux/backend.js.map +0 -1
  104. package/bundle/base/redux/drawer.js.map +0 -1
  105. package/bundle/base/redux/frontend.js.map +0 -1
  106. package/bundle/base/store.js.map +0 -1
  107. package/bundle/base/webcomponents/drawer/css/drawer.js.map +0 -1
  108. package/bundle/base/webcomponents/drawer/css/exit.js.map +0 -1
  109. package/bundle/base/webcomponents/drawer/css/link.js.map +0 -1
  110. package/bundle/base/webcomponents/drawer/css/paragraph.js.map +0 -1
  111. package/bundle/base/webcomponents/drawer/css/toggle.js.map +0 -1
  112. package/bundle/base/webcomponents/drawer/drawer.js.map +0 -1
  113. package/bundle/base/webcomponents/drawer/input/login.js +0 -133
  114. package/bundle/base/webcomponents/drawer/input/login.js.map +0 -1
  115. package/bundle/base/webcomponents/drawer/input/sign-up.js.map +0 -1
  116. package/bundle/base/webcomponents/icon/css/icon.js.map +0 -1
  117. package/bundle/base/webcomponents/icon/icon.js.map +0 -1
  118. package/bundle/base/webcomponents/settings/css/navigation.js.map +0 -1
  119. package/bundle/base/webcomponents/settings/input/delete.js.map +0 -1
  120. package/bundle/base/webcomponents/settings/input/email.js.map +0 -1
  121. package/bundle/base/webcomponents/settings/input/name.js.map +0 -1
  122. package/bundle/base/webcomponents/settings/input/password.js.map +0 -1
  123. package/bundle/base/webcomponents/settings/input/uploader.js.map +0 -1
  124. package/bundle/base/webcomponents/settings/settings.js.map +0 -1
  125. package/source/esm/pwa-auth.js +0 -881
  126. package/source/esm/pwa-auth.js.map +0 -1
  127. /package/{bundle/base → base}/firebase/authentication.d.ts +0 -0
  128. /package/{bundle/base → base}/firebase/authentication.js +0 -0
  129. /package/{bundle/base → base}/firebase/interface.d.ts +0 -0
  130. /package/{bundle/base → base}/firebase/interface.js +0 -0
  131. /package/{bundle/base → base}/redux/backend.d.ts +0 -0
  132. /package/{bundle/base → base}/redux/backend.js +0 -0
  133. /package/{bundle/base → base}/redux/drawer.d.ts +0 -0
  134. /package/{bundle/base → base}/redux/drawer.js +0 -0
  135. /package/{bundle/base → base}/store.js +0 -0
  136. /package/{bundle/base → base/webcomponents}/css/svg.d.ts +0 -0
  137. /package/{bundle/base → base/webcomponents}/css/svg.js +0 -0
  138. /package/{bundle/base → base/webcomponents}/css/toggle.d.ts +0 -0
  139. /package/{bundle/base → base}/webcomponents/drawer/css/drawer.d.ts +0 -0
  140. /package/{bundle/base → base}/webcomponents/drawer/css/exit.d.ts +0 -0
  141. /package/{bundle/base → base}/webcomponents/drawer/css/exit.js +0 -0
  142. /package/{bundle/base → base}/webcomponents/drawer/css/link.d.ts +0 -0
  143. /package/{bundle/base → base}/webcomponents/drawer/css/link.js +0 -0
  144. /package/{bundle/base → base}/webcomponents/drawer/css/paragraph.d.ts +0 -0
  145. /package/{bundle/base → base}/webcomponents/drawer/css/paragraph.js +0 -0
  146. /package/{bundle/base/css/form → base/webcomponents/form/css}/button.d.ts +0 -0
  147. /package/{bundle/base/css/form → base/webcomponents/form/css}/input.d.ts +0 -0
  148. /package/{bundle/base/css/form → base/webcomponents/form/css}/label.d.ts +0 -0
  149. /package/{bundle/base/css/form → base/webcomponents/form/css}/label.js +0 -0
  150. /package/{bundle/base/css/form → base/webcomponents/form/css}/list.d.ts +0 -0
  151. /package/{bundle/base/webcomponents/drawer → base/webcomponents/form}/css/toggle.d.ts +0 -0
  152. /package/{bundle/base → base}/webcomponents/icon/css/icon.d.ts +0 -0
  153. /package/{bundle/base → base}/webcomponents/settings/css/navigation.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploader.js","sourceRoot":"","sources":["../../../../typescript/webcomponents/settings/input/uploader.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAkB,MAAQ,KAAK,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,KAAK,EA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AE,CAAC;YAIzB,CAAC,CAAC,CAAC;SAIF;IAIH,CAAC;CAiBF;AAlTC;IAAC,QAAQ,EAAE;;2CAAyC;AAGpD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;kDAA0B;AAElE;IAAC,KAAK,EAAE;;0CAAmC;AAC3C;IAAC,KAAK,EAAE;;2CAAiC;AAIzC;IAAC,KAAK,EAAE;;8CAA8B;AAEtC;IAAC,KAAK,EAAE;;2CAA4B;AACpC;IAAC,KAAK,EAAE;;4CAA6B;AAuSvC,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC"}
@@ -14,7 +14,8 @@ declare const UserSettings_base: (new (...args: any[]) => {
14
14
  settings: string;
15
15
  login: boolean;
16
16
  drawer: boolean;
17
- register: boolean;
17
+ registerOne: boolean;
18
+ registerTwo: boolean;
18
19
  userId: string;
19
20
  customer: string;
20
21
  profileChoice: string;
@@ -18,12 +18,15 @@ import './input/name';
18
18
  import './input/email';
19
19
  import './input/password';
20
20
  import './input/delete';
21
- import { listStyle } from '../../css/form/list';
21
+ import { listStyle } from '../form/css/list';
22
+ import { animation } from '../css/animation';
22
23
  let UserSettings = class UserSettings extends connect(store)(LitElement) {
23
- empty = '';
24
- profileTopic = '';
25
- name = '';
26
- constructor() { super(); }
24
+ constructor() {
25
+ super();
26
+ this.empty = '';
27
+ this.profileTopic = '';
28
+ this.name = '';
29
+ }
27
30
  firstUpdated() {
28
31
  const forms = this.querySelectorAll('form');
29
32
  forms.forEach(item => {
@@ -50,22 +53,20 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
50
53
  return [
51
54
  navigation,
52
55
  listStyle,
56
+ animation,
53
57
  css `
54
58
 
55
- /* Button Padding for Border Outline */
56
59
  :host {
57
60
  display: grid;
58
61
  background-color: var(--pwa_settings_background, white);
59
62
  }
60
63
 
61
- /* Page Form */
62
64
  form {
63
65
  box-sizing: border-box;
64
66
  display: grid;
65
67
  border: 0;
66
68
  }
67
69
 
68
- /* Page Title */
69
70
  .pageTitle { margin: 0; }
70
71
 
71
72
  h2 {
@@ -73,11 +74,10 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
73
74
  text-align: center;
74
75
  text-shadow: 1px 1px 2px black, 0 0 15px grey, 0 0 5px #fff;
75
76
 
76
- border-top: 2px solid var(--pwa_divider, black);
77
77
  border-bottom: 2px solid var(--pwa_divider, black);
78
78
 
79
79
  margin: 0;
80
- padding: 8px 0;
80
+ padding: 16px 0;
81
81
  }
82
82
 
83
83
  /* up to 576 pixels */
@@ -130,55 +130,64 @@ let UserSettings = class UserSettings extends connect(store)(LitElement) {
130
130
 
131
131
  </nav>
132
132
 
133
- <!-- Page 1: Profile -->
134
- <section ?on="${this.profileTopic === 'profile'}">
133
+
134
+ <div class= "wrapper">
135
+ <div class= "inner">
135
136
 
136
- <!-- Display Username -->
137
- <h2>${this.name}</h2>
138
137
 
139
- <!-- Custom Image Element - Display / Upload -->
140
- <contact-photo emptyArtwork="${this.empty}"></contact-photo>
138
+ <!-- Page 1: Profile -->
139
+ <section
140
+ class="content ${this.profileTopic === 'profile' ? 'opened' : 'closed'}">
141
141
 
142
- </section>
143
-
144
- <!-- Page 2: Verification -->
145
- <section ?on="${this.profileTopic === 'verification'}">
142
+ <!-- Display Username -->
143
+ <h2>${this.name}</h2>
146
144
 
147
- <!-- Page Title -->
148
- <h2>Contact Information</h2>
145
+ <!-- Custom Image Element - Display / Upload -->
146
+ <contact-photo emptyArtwork="${this.empty}"></contact-photo>
149
147
 
150
- <!-- Custom - Username -->
151
- <input-name></input-name>
148
+ </section>
149
+
150
+ <!-- Page 2: Verification -->
151
+ <section
152
+ class="content ${this.profileTopic === 'verification' ? 'opened' : 'closed'}">
152
153
 
153
- <!-- Custom - Email -->
154
- <contact-email></contact-email>
155
-
156
- <!-- Indicator - Verified -->
157
- <div class="verified"></div>
154
+ <!-- Page Title -->
155
+ <h2>Contact Information</h2>
156
+
157
+ <!-- Custom - Username -->
158
+ <input-name></input-name>
159
+
160
+ <!-- Custom - Email -->
161
+ <contact-email></contact-email>
162
+
163
+ </section>
158
164
 
159
- </section>
165
+ <!-- Page 3: Password -->
166
+ <section
167
+ class="content ${this.profileTopic === 'password' ? 'opened' : 'closed'}">
160
168
 
161
- <!-- Page 3: Password -->
162
- <section ?on="${this.profileTopic === 'password'}">
169
+ <!-- Page Title -->
170
+ <h2>Password</h2>
163
171
 
164
- <!-- Page Title -->
165
- <h2>Password</h2>
172
+ <!-- Custom - Password -->
173
+ <input-password></input-password>
166
174
 
167
- <!-- Custom - Password -->
168
- <input-password></input-password>
175
+ </section>
169
176
 
170
- </section>
177
+ <!-- Page 4: Delete -->
178
+ <section
179
+ class="content ${this.profileTopic === 'delete' ? 'opened' : 'closed'}">
171
180
 
172
- <!-- Page 4: Delete -->
173
- <section ?on="${this.profileTopic === 'delete'}">
181
+ <!-- Page Title -->
182
+ <h2>Delete Account</h2>
174
183
 
175
- <!-- Page Title -->
176
- <h2>Delete Account</h2>
184
+ <!-- Custom - Delete -->
185
+ <delete-user></delete-user>
177
186
 
178
- <!-- Custom - Delete -->
179
- <delete-user></delete-user>
187
+ </section>
180
188
 
181
- </section>
189
+ </div>
190
+ </div>
182
191
 
183
192
  `;
184
193
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../typescript/webcomponents/settings/settings.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,GAAG,EAAkB,IAAI,EAAE,UAAU,EAAE,MAAe,KAAK,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAgB,mBAAmB,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAA6B,8BAA8B,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAY,MAAqB,aAAa,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAwB,sBAAsB,CAAC;AACtE,OA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,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;;;;;;;;;;;;;KAa7E,CAAA;IACH,CAAC;CAEF,CAAA;AAxLC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;2CAAmB;AAE3D;IAAC,KAAK,EAAE;;kDAA2B;AACnC;IAAC,KAAK,EAAE;;0CAAmB;AANhB,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;;GAClB,YAAY,CA2LxB;SA3LY,YAAY"}
@@ -6,115 +6,91 @@
6
6
  <meta charset="UTF-8">
7
7
  <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1" />
8
8
 
9
+ <!-- pwa-auth.js - CSS Custom Variables - Option 1
10
+ <link rel="stylesheet" href="pwa-styles.css"> -->
11
+
12
+ <!-- pwa-auth.js - CSS Custom Variables - Option 2
13
+ <style> :root {} </style> -->
14
+
15
+ <link rel="stylesheet" href="styles.css">
16
+
9
17
  <!-- Preconnect -->
10
18
  <link rel="preconnect" href="https://firebasestorage.googleapis.com">
11
19
 
12
20
  <!-- Pre-Fetch -->
13
21
  <link rel="dns-prefetch" href="https://firebasestorage.googleapis.com">
14
22
 
15
- <!-- Cascading Style Sheets -->
16
- <link rel="stylesheet" href="css/styles.css">
17
-
18
- <!-- pwa-auth.js - CSS Custom Variables - Option 1
19
- <link rel="stylesheet" href="pwa-styles.css"> -->
20
-
21
- <style>
22
- html {
23
- overflow: auto;
24
- scroll-behavior: smooth;
25
- display: grid;
26
- height: 100%;
27
- padding: 16px;
28
- box-sizing: border-box;
29
- transition-duration: 1s;
30
- }
31
-
32
- body {
33
- overflow: hidden;
34
- margin: 0;
35
- font-family: Space Grotesk, system-ui, sans-serif;
36
- -webkit-font-smoothing: antialiased;
37
- font-size: .875rem;
38
- line-height: 1.25rem;
39
- }
40
-
41
- body {
42
- background-color: #0a2840;
43
- display: grid;
44
- grid-gap: 16px;
45
- grid-template-areas:
46
- "head"
47
- "main"
48
- "foot";
49
- grid-template-rows: auto 1fr auto;
50
- }
51
-
52
- header { grid-area: head; }
53
- main { grid-area: main; }
54
- footer { grid-area: foot; }
55
-
56
- header { display: grid; }
57
-
58
- main {
59
- border: 2px solid black;
60
- border-radius: 6px;
61
- overflow: hidden;
62
- background-color: cadetblue;
63
- }
64
-
65
- footer { display: grid; }
66
- </style>
67
-
68
23
  <!-- pwa-auth.js - Module Configuration Objects -->
69
24
  <script>
70
25
  window.process = { env: { NODE_ENV: 'production' } };
71
26
  window.process = { env: { FIREBASE_CONFIG: JSON.stringify({
72
- apiKey: "AIzaSyC1ZNYC9RAjSAE3syUBNi47AiqbAqkx99w",
73
- authDomain: "pwa-authentic.firebaseapp.com",
74
- projectId: "pwa-authentic",
75
- storageBucket: "pwa-authentic.firebasestorage.app",
76
- messagingSenderId: "749233996232",
77
- appId: "1:749233996232:web:bbc410d53b7d39bdfb80fd",
78
- measurementId: "G-G1GYM1HBJ4"
27
+ apiKey: "AIzaSyC1ZNYC9RAjSAE3syUBNi47AiqbAqkx99w",
28
+ authDomain: "pwa-authentic.firebaseapp.com",
29
+ projectId: "pwa-authentic",
30
+ storageBucket: "pwa-authentic.firebasestorage.app",
31
+ messagingSenderId: "749233996232",
32
+ appId: "1:749233996232:web:bbc410d53b7d39bdfb80fd",
33
+ measurementId: "G-G1GYM1HBJ4"
79
34
  })
80
35
  }
81
36
  };
82
37
  </script>
83
38
 
39
+ <!-- Application Shell -->
40
+ <script type="module" src="../base/export/pwa-auth.js"></script>
41
+
84
42
  </head>
85
43
  <body>
86
44
 
87
45
  <header>
88
46
 
89
- <!-- Icon Tag -->
90
- <user-icon subscribe empty="../source/empty.jpg"></user-icon>
47
+ <div style="margin: auto">
48
+
49
+ <!-- Sponsor Me -->
50
+ <iframe
51
+ src="https://github.com/sponsors/busynest/button"
52
+ title="Sponsor busynest"
53
+ height="32"
54
+ width="114"
55
+ style="border: 0; border-radius: 6px; margin: auto 0 auto 0;"></iframe>
56
+
57
+ </div>
91
58
 
92
59
  </header>
93
60
 
94
- <!-- Drawer Tag-->
95
- <user-drawer subscribe url="./settings"></user-drawer>
61
+ <!-- Drop-down - Drawer-->
62
+ <user-drawer url="./settings" subscribe ></user-drawer>
96
63
 
97
64
  <main>
98
65
 
99
- <!-- Settings Tag-->
100
- <user-settings empty="../source/empty.jpg"></user-settings>
66
+ <section>
101
67
 
102
- </main>
68
+ <h2>Example: Button: Login or Subscribe / Icon Picture</h2>
103
69
 
104
- <footer>
70
+ <!-- Login / Subscribe - Button -->
71
+ <user-icon empty="../source/empty.jpg" subscribe ></user-icon>
105
72
 
106
- <div style="margin: auto">
107
- <!-- Sponsor Me -->
108
- <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>
109
- </div>
73
+ </section>
110
74
 
111
- </footer>
75
+ <section>
112
76
 
113
- <!-- pwa-auth.js - CSS Custom Variables - Option 2
114
- <style></style> -->
77
+ <h2>Example: Auth Page</h2>
115
78
 
116
- <!-- Application Shell -->
117
- <script type="module" src="../base/export/pwa-auth.js" async></script>
79
+ <!-- Log-in - -Page-->
80
+ <user-login login ></user-login>
81
+
82
+ </section>
83
+
84
+ <section>
85
+
86
+ <h2>Example: Settings Page</h2>
87
+
88
+ <!-- Settings - Page-->
89
+ <user-settings empty="../source/empty.jpg"></user-settings>
90
+
91
+ </section>
92
+
93
+ </main>
118
94
 
119
95
  </body>
120
96
 
@@ -0,0 +1,76 @@
1
+ html {
2
+ overflow: auto;
3
+ scroll-behavior: smooth;
4
+ display: grid;
5
+ height: 100%;
6
+ padding: 16px;
7
+ box-sizing: border-box;
8
+ transition-duration: 1s;
9
+ }
10
+
11
+ body {
12
+ margin: 0;
13
+ font-family: Space Grotesk, system-ui, sans-serif;
14
+ -webkit-font-smoothing: antialiased;
15
+ font-size: .875rem;
16
+ line-height: 1.25rem;
17
+ }
18
+
19
+ body {
20
+ background-color: #0a2840;
21
+ display: grid;
22
+ grid-gap: 16px;
23
+ grid-template-areas:
24
+ "head"
25
+ "main"
26
+ "foot";
27
+ grid-template-rows: auto 1fr auto;
28
+ }
29
+
30
+ header { grid-area: head; }
31
+ main { grid-area: main; overflow: hidden; }
32
+ footer { grid-area: foot; }
33
+
34
+ header {
35
+ display: grid;
36
+ }
37
+
38
+ main {
39
+ display: grid;
40
+ grid-gap: 16px;
41
+ padding: 16px;
42
+ border: 2px solid black;
43
+ border-radius: 6px;
44
+ background-color: cadetblue;
45
+ }
46
+
47
+ section {
48
+ padding: 16px;
49
+ background-color: darkorange;
50
+ border: 2px solid black;
51
+ border-radius: 8px;
52
+ overflow: hidden;
53
+ }
54
+
55
+ h2 {
56
+ margin-top: 0;
57
+ border-bottom: 2px solid black;
58
+ padding: 0 16px 16px 16px;
59
+ white-space: break-spaces;
60
+ }
61
+
62
+ footer {
63
+ display: grid;
64
+ }
65
+
66
+ user-login {
67
+ border-radius: 8px;
68
+ overflow: hidden;
69
+ border: 2px solid black;
70
+ }
71
+
72
+ user-settings {
73
+ border-radius: 8px;
74
+ overflow: hidden;
75
+ border: 2px solid black;
76
+ }
@@ -1,5 +1,4 @@
1
- export { UserDrawer } from '../bundle/base/webcomponents/drawer/drawer';
2
- export { UserSettings } from '../bundle/base/webcomponents/settings/settings';
3
- export { UserIcon } from '../bundle/base/webcomponents/icon/icon';
4
- export { store } from '../bundle/base/store';
5
- export { db, storage, auth, user } from '../bundle/base/firebase/authentication';
1
+ export { UserDrawer } from '../base/webcomponents/drawer/drawer';
2
+ export { UserSettings } from '../base/webcomponents/settings/settings';
3
+ export { UserIcon } from '../base/webcomponents/icon/icon';
4
+ export { db, storage, auth, user } from '../base/firebase/authentication';
package/package.json CHANGED
@@ -1,15 +1,24 @@
1
1
  {
2
- "name": "pwa-auth",
3
- "type": "module",
4
- "author": "Jacek Markiewicz <jack.solutionbox@gmail.com>(https://www.jackspublishing.com)",
5
- "version": "3.2.4",
6
- "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.",
7
- "homepage" : "https://pwa-authentic.firebaseapp.com",
8
- "main" : "./base/export/pwa-auth.js",
9
- "types" : "./base/export/pwa-auth.d.ts",
2
+ "name": "pwa-auth",
3
+ "type": "module",
4
+ "author": {
5
+ "name": "Jacek Markiewicz",
6
+ "url": "https://www.jackspublishing.com",
7
+ "email": "jack.solutionbox@gmail.com"
8
+ },
9
+ "version": "3.3.1",
10
+ "description": "pwa-auth is a collection of four HTML webomponents for User Management to display a login button with icon picture state once logged in. Sign up and login within a drawer and optionally a static for a page. Being able to log out, change account details, and delete account.",
11
+ "homepage": "https://pwa-authentic.firebaseapp.com",
10
12
  "repository": {
11
- "type": "git",
12
- "url": "https://github.com/busynest/user"
13
+ "type": "git",
14
+ "url": "https://github.com/busynest/user"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/busynest/user/issues"
18
+ },
19
+ "funding": {
20
+ "type": "individual",
21
+ "url": "https://github.com/sponsors/busynest"
13
22
  },
14
23
  "keywords": [
15
24
  "login",
@@ -23,20 +32,20 @@
23
32
  "lit",
24
33
  "redux"
25
34
  ],
35
+ "main": "./base/export/pwa-auth.js",
36
+ "types": "./base/export/pwa-auth.d.ts",
26
37
  "exports": {
27
38
  ".": {
28
- "default" : "./base/export/pwa-auth.js",
29
- "types" : "./base/export/pwa-auth.d.ts"
39
+ "default": "./base/export/pwa-auth.js",
40
+ "types": "./base/export/pwa-auth.d.ts"
30
41
  }
31
42
  },
32
- "license": "BSD-3-Clause",
33
- "flat": true,
43
+ "license": "SEE LICENSES.txt",
34
44
  "scripts": {
35
- "demo" : "web-dev-server --node-resolve --watch --open --app-index demonstration/index.html",
36
- "website" : "web-dev-server --node-resolve --watch --open --app-index website/index.html",
37
- "rollup" : "rollup rollup.config.js",
38
- "build" : "tsc && rollup rollup.config.js",
39
- "production" : "tsc --project tsconfig.production.json"
45
+ "server": "web-dev-server --node-resolve --watch --open --app-index demonstration/index.html",
46
+ "website": "web-dev-server --node-resolve --watch --open --app-index website/index.html",
47
+ "rollup": "rollup rollup.config.js",
48
+ "build": "tsc --project tsconfig.production.json"
40
49
  },
41
50
  "dependencies": {
42
51
  "pwa-helpers": "^0.9.1",
@@ -44,22 +53,22 @@
44
53
  "redux-thunk": "^3.1.0"
45
54
  },
46
55
  "devDependencies": {
47
- "@babel/plugin-proposal-decorators": "^7.21.0",
56
+ "@babel/plugin-proposal-decorators": "^7.28.0",
48
57
  "@babel/preset-env": "^7.28.3",
49
58
  "@lit-labs/rollup-plugin-minify-html-literals": "^0.1.0",
50
59
  "@reduxjs/toolkit": "^2.9.0",
51
- "@rollup/plugin-alias": "^5.0.1",
60
+ "@rollup/plugin-alias": "^5.1.1",
52
61
  "@rollup/plugin-babel": "^6.0.4",
53
62
  "@rollup/plugin-commonjs": "^28.0.6",
54
63
  "@rollup/plugin-node-resolve": "^16.0.2",
55
64
  "@rollup/plugin-replace": "^6.0.2",
56
65
  "@rollup/plugin-terser": "^0.4.4",
57
66
  "@rollup/plugin-typescript": "^12.1.4",
58
- "@types/node": "^24.7.0",
67
+ "@types/node": "^24.7.2",
59
68
  "@web/dev-server": "^0.4.6",
60
69
  "@web/rollup-plugin-copy": "^0.5.1",
61
70
  "babel-plugin-template-html-minifier": "^4.1.0",
62
- "firebase": "^12.3.0",
71
+ "firebase": "^12.4.0",
63
72
  "lit": "^3.3.1",
64
73
  "rollup": "^4.52.4",
65
74
  "rollup-plugin-dts": "^6.2.3",