solid-ui 2.4.28-e581c53c → 2.4.28-e5cde855
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/dist/solid-ui.js +36 -47
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +1 -1
- package/dist/solid-ui.min.js.map +1 -1
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +30 -41
- package/lib/login/login.js.map +1 -1
- package/lib/versionInfo.js +6 -6
- package/lib/versionInfo.js.map +1 -1
- package/package.json +1 -1
package/dist/solid-ui.js
CHANGED
|
@@ -7575,104 +7575,93 @@ function ensureLoadedPreferences(_x) {
|
|
|
7575
7575
|
// used to be logInLoadProfile
|
|
7576
7576
|
function _ensureLoadedPreferences() {
|
|
7577
7577
|
_ensureLoadedPreferences = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(context) {
|
|
7578
|
-
var
|
|
7578
|
+
var progressDisplay, preferencesFile, m2;
|
|
7579
7579
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
7580
7580
|
while (1) switch (_context4.prev = _context4.next) {
|
|
7581
7581
|
case 0:
|
|
7582
|
-
complain = function _complain(message) {
|
|
7583
|
-
message = "ensureLoadedPreferences: ".concat(message);
|
|
7584
|
-
if (statusArea) {
|
|
7585
|
-
// statusArea.innerHTML = ''
|
|
7586
|
-
statusArea.appendChild(widgets.errorMessageBlock(context.dom, message));
|
|
7587
|
-
}
|
|
7588
|
-
debug.log(message);
|
|
7589
|
-
// reject(new Error(message))
|
|
7590
|
-
};
|
|
7591
7582
|
if (!context.preferencesFile) {
|
|
7592
|
-
_context4.next =
|
|
7583
|
+
_context4.next = 2;
|
|
7593
7584
|
break;
|
|
7594
7585
|
}
|
|
7595
7586
|
return _context4.abrupt("return", Promise.resolve(context));
|
|
7596
|
-
case
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
_context4.prev = 4;
|
|
7600
|
-
_context4.next = 7;
|
|
7587
|
+
case 2:
|
|
7588
|
+
_context4.prev = 2;
|
|
7589
|
+
_context4.next = 5;
|
|
7601
7590
|
return ensureLoadedProfile(context);
|
|
7602
|
-
case
|
|
7591
|
+
case 5:
|
|
7603
7592
|
context = _context4.sent;
|
|
7604
|
-
_context4.next =
|
|
7593
|
+
_context4.next = 8;
|
|
7605
7594
|
return loadPreferences(context.me);
|
|
7606
|
-
case
|
|
7595
|
+
case 8:
|
|
7607
7596
|
preferencesFile = _context4.sent;
|
|
7608
7597
|
if (progressDisplay) {
|
|
7609
7598
|
progressDisplay.parentNode.removeChild(progressDisplay);
|
|
7610
7599
|
}
|
|
7611
7600
|
context.preferencesFile = preferencesFile;
|
|
7612
|
-
_context4.next =
|
|
7601
|
+
_context4.next = 49;
|
|
7613
7602
|
break;
|
|
7614
|
-
case
|
|
7615
|
-
_context4.prev =
|
|
7616
|
-
_context4.t0 = _context4["catch"](
|
|
7603
|
+
case 13:
|
|
7604
|
+
_context4.prev = 13;
|
|
7605
|
+
_context4.t0 = _context4["catch"](2);
|
|
7617
7606
|
if (!(_context4.t0 instanceof _solidLogic.UnauthorizedError)) {
|
|
7618
|
-
_context4.next =
|
|
7607
|
+
_context4.next = 20;
|
|
7619
7608
|
break;
|
|
7620
7609
|
}
|
|
7621
7610
|
m2 = 'Ooops - you are not authenticated (properly logged in) to for me to read your preference file. Try loggin out and logging in?';
|
|
7622
7611
|
(0, _log.alert)(m2);
|
|
7623
|
-
_context4.next =
|
|
7612
|
+
_context4.next = 49;
|
|
7624
7613
|
break;
|
|
7625
|
-
case
|
|
7614
|
+
case 20:
|
|
7626
7615
|
if (!(_context4.t0 instanceof _solidLogic.CrossOriginForbiddenError)) {
|
|
7627
|
-
_context4.next =
|
|
7616
|
+
_context4.next = 26;
|
|
7628
7617
|
break;
|
|
7629
7618
|
}
|
|
7630
7619
|
m2 = "Unauthorized: Assuming preference file blocked for origin ".concat(window.location.origin);
|
|
7631
7620
|
context.preferencesFileError = m2;
|
|
7632
7621
|
return _context4.abrupt("return", context);
|
|
7633
|
-
case
|
|
7622
|
+
case 26:
|
|
7634
7623
|
if (!(_context4.t0 instanceof _solidLogic.SameOriginForbiddenError)) {
|
|
7635
|
-
_context4.next =
|
|
7624
|
+
_context4.next = 32;
|
|
7636
7625
|
break;
|
|
7637
7626
|
}
|
|
7638
7627
|
m2 = 'You are not authorized to read your preference file. This may be because you are using an untrusted web app.';
|
|
7639
7628
|
debug.warn(m2);
|
|
7640
7629
|
return _context4.abrupt("return", context);
|
|
7641
|
-
case
|
|
7630
|
+
case 32:
|
|
7642
7631
|
if (!(_context4.t0 instanceof _solidLogic.NotEditableError)) {
|
|
7643
|
-
_context4.next =
|
|
7632
|
+
_context4.next = 38;
|
|
7644
7633
|
break;
|
|
7645
7634
|
}
|
|
7646
7635
|
m2 = 'You are not authorized to edit your preference file. This may be because you are using an untrusted web app.';
|
|
7647
7636
|
debug.warn(m2);
|
|
7648
7637
|
return _context4.abrupt("return", context);
|
|
7649
|
-
case
|
|
7638
|
+
case 38:
|
|
7650
7639
|
if (!(_context4.t0 instanceof _solidLogic.WebOperationError)) {
|
|
7651
|
-
_context4.next =
|
|
7640
|
+
_context4.next = 43;
|
|
7652
7641
|
break;
|
|
7653
7642
|
}
|
|
7654
7643
|
m2 = 'You are not authorized to edit your preference file. This may be because you are using an untrusted web app.';
|
|
7655
7644
|
debug.warn(m2);
|
|
7656
|
-
_context4.next =
|
|
7645
|
+
_context4.next = 49;
|
|
7657
7646
|
break;
|
|
7658
|
-
case
|
|
7647
|
+
case 43:
|
|
7659
7648
|
if (!(_context4.t0 instanceof _solidLogic.FetchError)) {
|
|
7660
|
-
_context4.next =
|
|
7649
|
+
_context4.next = 48;
|
|
7661
7650
|
break;
|
|
7662
7651
|
}
|
|
7663
7652
|
m2 = "Strange: Error ".concat(_context4.t0.status, " trying to read your preference file.").concat(_context4.t0.message);
|
|
7664
7653
|
(0, _log.alert)(m2);
|
|
7665
|
-
_context4.next =
|
|
7654
|
+
_context4.next = 49;
|
|
7666
7655
|
break;
|
|
7667
|
-
case
|
|
7656
|
+
case 48:
|
|
7668
7657
|
throw new Error("(via loadPrefs) ".concat(_context4.t0));
|
|
7669
|
-
case
|
|
7658
|
+
case 49:
|
|
7670
7659
|
return _context4.abrupt("return", context);
|
|
7671
|
-
case
|
|
7660
|
+
case 50:
|
|
7672
7661
|
case "end":
|
|
7673
7662
|
return _context4.stop();
|
|
7674
7663
|
}
|
|
7675
|
-
}, _callee4, null, [[
|
|
7664
|
+
}, _callee4, null, [[2, 13]]);
|
|
7676
7665
|
}));
|
|
7677
7666
|
return _ensureLoadedPreferences.apply(this, arguments);
|
|
7678
7667
|
}
|
|
@@ -14440,22 +14429,22 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
14440
14429
|
}));
|
|
14441
14430
|
exports.versionInfo = void 0;
|
|
14442
14431
|
var versionInfo = {
|
|
14443
|
-
buildTime: '2023-
|
|
14444
|
-
commit: '
|
|
14432
|
+
buildTime: '2023-07-05T09:52:09Z',
|
|
14433
|
+
commit: 'e5cde85544413439f617ecc892e656b288a5f4e4',
|
|
14445
14434
|
npmInfo: {
|
|
14446
14435
|
'solid-ui': '2.4.28',
|
|
14447
14436
|
npm: '8.19.4',
|
|
14448
|
-
node: '16.20.
|
|
14437
|
+
node: '16.20.1',
|
|
14449
14438
|
v8: '9.4.146.26-node.26',
|
|
14450
14439
|
uv: '1.43.0',
|
|
14451
14440
|
zlib: '1.2.11',
|
|
14452
14441
|
brotli: '1.0.9',
|
|
14453
|
-
ares: '1.19.
|
|
14442
|
+
ares: '1.19.1',
|
|
14454
14443
|
modules: '93',
|
|
14455
14444
|
nghttp2: '1.47.0',
|
|
14456
14445
|
napi: '8',
|
|
14457
|
-
llhttp: '6.0.
|
|
14458
|
-
openssl: '1.1.
|
|
14446
|
+
llhttp: '6.0.11',
|
|
14447
|
+
openssl: '1.1.1u+quic',
|
|
14459
14448
|
cldr: '41.0',
|
|
14460
14449
|
icu: '71.1',
|
|
14461
14450
|
tz: '2022f',
|