web-manager 3.2.2 → 3.2.5
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/index.js +15 -4
- package/lib/account.js +11 -3
- package/package.json +3 -3
package/index.js
CHANGED
@@ -794,10 +794,21 @@ function Manager() {
|
|
794
794
|
// self.log('Error', error.message);
|
795
795
|
});
|
796
796
|
} else {
|
797
|
-
|
798
|
-
.
|
799
|
-
|
800
|
-
|
797
|
+
// @@@ REMOVED NOV 6, 2023
|
798
|
+
// firebase.auth().signInWithRedirect(new firebase.auth.OAuthProvider(method))
|
799
|
+
// .catch(function (e) {
|
800
|
+
// _displayError(e);
|
801
|
+
// })
|
802
|
+
|
803
|
+
// @@@ ADDED NOV 6, 2023
|
804
|
+
var authDomain = self.properties.options.libraries.firebase_app.config.authDomain;
|
805
|
+
var newURL = new URL('https://' + authDomain + '/auth/handler');
|
806
|
+
|
807
|
+
newURL.searchParams.set('provider', method);
|
808
|
+
newURL.searchParams.set('destination', window.location.href);
|
809
|
+
|
810
|
+
window.location.href = newURL.toString();
|
811
|
+
|
801
812
|
}
|
802
813
|
},
|
803
814
|
signUp: function(method, email, password, passwordConfirm) {
|
package/lib/account.js
CHANGED
@@ -160,12 +160,20 @@ function handlePlanVisibility(planId) {
|
|
160
160
|
|
161
161
|
// Special case for '$paid'
|
162
162
|
if (requiredPlans.includes('$paid')) {
|
163
|
-
shouldBeVisible =
|
163
|
+
shouldBeVisible = planId !== 'basic';
|
164
164
|
} else {
|
165
|
-
shouldBeVisible =
|
165
|
+
shouldBeVisible = requiredPlans.includes(planId);
|
166
166
|
}
|
167
167
|
|
168
|
-
|
168
|
+
var shouldHide = shouldBeVisible
|
169
|
+
? visibility === 'hidden'
|
170
|
+
: visibility === 'visible';
|
171
|
+
|
172
|
+
if (shouldHide) {
|
173
|
+
element.setAttribute('hidden', true);
|
174
|
+
} else {
|
175
|
+
element.removeAttribute('hidden');
|
176
|
+
}
|
169
177
|
});
|
170
178
|
}
|
171
179
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "web-manager",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.5",
|
4
4
|
"description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -31,9 +31,9 @@
|
|
31
31
|
}
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
|
-
"@sentry/browser": "^7.
|
34
|
+
"@sentry/browser": "^7.77.0",
|
35
35
|
"cookieconsent": "^3.1.1",
|
36
36
|
"firebase": "^9.23.0",
|
37
37
|
"lazysizes": "^5.3.2"
|
38
38
|
}
|
39
|
-
}
|
39
|
+
}
|