solid-ui 2.4.9-beta-c74447e5 → 2.4.10-2c0725ed
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/lib/authn/authn.d.ts.map +1 -1
- package/lib/authn/authn.js +5 -5
- package/lib/authn/authn.js.map +1 -1
- package/lib/header/index.d.ts +5 -1
- package/lib/header/index.d.ts.map +1 -1
- package/lib/header/index.js +59 -5
- package/lib/header/index.js.map +1 -1
- package/lib/header/styleMap.d.ts +16 -1
- package/lib/header/styleMap.d.ts.map +1 -1
- package/lib/header/styleMap.js +21 -2
- package/lib/header/styleMap.js.map +1 -1
- package/lib/versionInfo.js +5 -5
- package/lib/versionInfo.js.map +1 -1
- package/lib/webpack-bundle.js +100 -27
- package/lib/webpack-bundle.js.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.d.ts.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
- package/package.json +9 -9
package/lib/webpack-bundle.js
CHANGED
|
@@ -4576,8 +4576,8 @@ function selectWorkspace(dom, appDetails, callbackWS) {
|
|
|
4576
4576
|
div: box
|
|
4577
4577
|
};
|
|
4578
4578
|
|
|
4579
|
-
function say(s) {
|
|
4580
|
-
box.appendChild(widgets.errorMessageBlock(dom, s));
|
|
4579
|
+
function say(s, background) {
|
|
4580
|
+
box.appendChild(widgets.errorMessageBlock(dom, s, background));
|
|
4581
4581
|
}
|
|
4582
4582
|
|
|
4583
4583
|
function figureOutBase(ws) {
|
|
@@ -4665,17 +4665,17 @@ function selectWorkspace(dom, appDetails, callbackWS) {
|
|
|
4665
4665
|
|
|
4666
4666
|
|
|
4667
4667
|
if (w.length === 0 && storages) {
|
|
4668
|
-
say("You don't seem to have any workspaces. You have ".concat(storages.length, " storage spaces."));
|
|
4668
|
+
say("You don't seem to have any workspaces. You have ".concat(storages.length, " storage spaces."), 'white');
|
|
4669
4669
|
storages.map(function (s) {
|
|
4670
4670
|
w = w.concat(_logic.solidLogicSingleton.store.each(s, ns.ldp('contains')));
|
|
4671
4671
|
return w;
|
|
4672
4672
|
}).filter(function (file) {
|
|
4673
|
-
return ['public', 'private'].includes(file.id().toLowerCase());
|
|
4673
|
+
return file.id ? ['public', 'private'].includes(file.id().toLowerCase()) : '';
|
|
4674
4674
|
});
|
|
4675
4675
|
}
|
|
4676
4676
|
|
|
4677
4677
|
if (w.length === 1) {
|
|
4678
|
-
say("Workspace used: ".concat(w[0].uri)); // @@ allow user to see URI
|
|
4678
|
+
say("Workspace used: ".concat(w[0].uri), 'white'); // @@ allow user to see URI
|
|
4679
4679
|
|
|
4680
4680
|
newBase = figureOutBase(w[0]); // callbackWS(w[0], newBase)
|
|
4681
4681
|
// } else if (w.length === 0) {
|
|
@@ -8576,6 +8576,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8576
8576
|
value: true
|
|
8577
8577
|
});
|
|
8578
8578
|
exports.createBanner = createBanner;
|
|
8579
|
+
exports.createHelpMenu = createHelpMenu;
|
|
8579
8580
|
exports.createLoginSignUpButtons = createLoginSignUpButtons;
|
|
8580
8581
|
exports.createUserMenu = createUserMenu;
|
|
8581
8582
|
exports.createUserMenuButton = createUserMenuButton;
|
|
@@ -8589,6 +8590,8 @@ var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime
|
|
|
8589
8590
|
|
|
8590
8591
|
var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "./node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
|
|
8591
8592
|
|
|
8593
|
+
var _ = __webpack_require__(/*! .. */ "./lib/index.js");
|
|
8594
|
+
|
|
8592
8595
|
var _authn = __webpack_require__(/*! ../authn/authn */ "./lib/authn/authn.js");
|
|
8593
8596
|
|
|
8594
8597
|
var widgets = _interopRequireWildcard(__webpack_require__(/*! ../widgets */ "./lib/widgets/index.js"));
|
|
@@ -8697,7 +8700,7 @@ function createBanner(_x3, _x4, _x5, _x6) {
|
|
|
8697
8700
|
|
|
8698
8701
|
function _createBanner() {
|
|
8699
8702
|
_createBanner = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(store, pod, user, options) {
|
|
8700
|
-
var podLink, image,
|
|
8703
|
+
var podLink, image, userMenu, helpMenu, banner, leftSideOfHeader;
|
|
8701
8704
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
8702
8705
|
while (1) {
|
|
8703
8706
|
switch (_context3.prev = _context3.next) {
|
|
@@ -8731,14 +8734,19 @@ function _createBanner() {
|
|
|
8731
8734
|
_context3.t0 = createLoginSignUpButtons();
|
|
8732
8735
|
|
|
8733
8736
|
case 14:
|
|
8734
|
-
|
|
8737
|
+
userMenu = _context3.t0;
|
|
8738
|
+
helpMenu = createHelpMenu();
|
|
8735
8739
|
banner = document.createElement('div');
|
|
8736
8740
|
(0, _headerHelpers.addStyleClassToElement)(banner, ['header-banner']);
|
|
8737
8741
|
banner.appendChild(podLink);
|
|
8738
|
-
|
|
8742
|
+
leftSideOfHeader = document.createElement('div');
|
|
8743
|
+
(0, _headerHelpers.addStyleClassToElement)(leftSideOfHeader, ['header-banner__right-menu']);
|
|
8744
|
+
leftSideOfHeader.appendChild(userMenu);
|
|
8745
|
+
leftSideOfHeader.appendChild(helpMenu);
|
|
8746
|
+
banner.appendChild(leftSideOfHeader);
|
|
8739
8747
|
return _context3.abrupt("return", banner);
|
|
8740
8748
|
|
|
8741
|
-
case
|
|
8749
|
+
case 25:
|
|
8742
8750
|
case "end":
|
|
8743
8751
|
return _context3.stop();
|
|
8744
8752
|
}
|
|
@@ -8748,6 +8756,51 @@ function _createBanner() {
|
|
|
8748
8756
|
return _createBanner.apply(this, arguments);
|
|
8749
8757
|
}
|
|
8750
8758
|
|
|
8759
|
+
function createHelpMenu() {
|
|
8760
|
+
var helpMenuList = document.createElement('ul');
|
|
8761
|
+
(0, _headerHelpers.addStyleClassToElement)(helpMenuList, ['header-user-menu__list']);
|
|
8762
|
+
helpMenuList.appendChild(createUserMenuItem(createUserMenuLink('User guide', 'https://github.com/solid/userguide', '_blank')));
|
|
8763
|
+
helpMenuList.appendChild(createUserMenuItem(createUserMenuLink('Report a problem', 'https://github.com/solid/solidos/issues', '_blank')));
|
|
8764
|
+
var helpMenu = document.createElement('nav');
|
|
8765
|
+
(0, _headerHelpers.addStyleClassToElement)(helpMenu, ['header-user-menu__navigation-menu']);
|
|
8766
|
+
helpMenu.setAttribute('aria-hidden', 'true');
|
|
8767
|
+
helpMenu.appendChild(helpMenuList);
|
|
8768
|
+
var helpIcon = _.icons.iconBase + 'noun_144.svg';
|
|
8769
|
+
var helpMenuContainer = document.createElement('div');
|
|
8770
|
+
(0, _headerHelpers.addStyleClassToElement)(helpMenuContainer, ['header-banner__user-menu']);
|
|
8771
|
+
(0, _headerHelpers.addStyleClassToElement)(helpMenuContainer, ['header-user-menu']);
|
|
8772
|
+
helpMenuContainer.appendChild(helpMenu);
|
|
8773
|
+
var helpMenuTrigger = document.createElement('button');
|
|
8774
|
+
(0, _headerHelpers.addStyleClassToElement)(helpMenuTrigger, ['header-user-menu__trigger']);
|
|
8775
|
+
helpMenuTrigger.type = 'button';
|
|
8776
|
+
var helpMenuIcon = document.createElement('img');
|
|
8777
|
+
helpMenuIcon.src = helpIcon;
|
|
8778
|
+
(0, _headerHelpers.addStyleClassToElement)(helpMenuIcon, ['header-banner__help-icon']);
|
|
8779
|
+
helpMenuContainer.appendChild(helpMenuTrigger);
|
|
8780
|
+
helpMenuTrigger.appendChild(helpMenuIcon);
|
|
8781
|
+
var throttledMenuToggle = (0, _headerHelpers.throttle)(function (event) {
|
|
8782
|
+
return toggleMenu(event, helpMenuTrigger, helpMenu);
|
|
8783
|
+
}, 50);
|
|
8784
|
+
helpMenuTrigger.addEventListener('click', throttledMenuToggle);
|
|
8785
|
+
var timer = setTimeout(function () {
|
|
8786
|
+
return null;
|
|
8787
|
+
}, 0);
|
|
8788
|
+
helpMenuContainer.addEventListener('mouseover', function (event) {
|
|
8789
|
+
clearTimeout(timer);
|
|
8790
|
+
throttledMenuToggle(event);
|
|
8791
|
+
});
|
|
8792
|
+
helpMenuContainer.addEventListener('mouseout', function (event) {
|
|
8793
|
+
timer = setTimeout(function () {
|
|
8794
|
+
return throttledMenuToggle(event);
|
|
8795
|
+
}, 200);
|
|
8796
|
+
});
|
|
8797
|
+
return helpMenuContainer;
|
|
8798
|
+
}
|
|
8799
|
+
/**
|
|
8800
|
+
* @ignore exporting this only for the unit test
|
|
8801
|
+
*/
|
|
8802
|
+
|
|
8803
|
+
|
|
8751
8804
|
function createLoginSignUpButtons() {
|
|
8752
8805
|
var profileLoginButtonPre = document.createElement('div');
|
|
8753
8806
|
(0, _headerHelpers.addStyleClassToElement)(profileLoginButtonPre, ['header-banner__login']);
|
|
@@ -8771,11 +8824,12 @@ function createUserMenuButton(label, onClick) {
|
|
|
8771
8824
|
*/
|
|
8772
8825
|
|
|
8773
8826
|
|
|
8774
|
-
function createUserMenuLink(label, href) {
|
|
8827
|
+
function createUserMenuLink(label, href, target) {
|
|
8775
8828
|
var link = document.createElement('a');
|
|
8776
8829
|
(0, _headerHelpers.addStyleClassToElement)(link, ['header-user-menu__link']);
|
|
8777
8830
|
link.href = href;
|
|
8778
8831
|
link.innerText = label;
|
|
8832
|
+
if (target) link.target = target;
|
|
8779
8833
|
return link;
|
|
8780
8834
|
}
|
|
8781
8835
|
/**
|
|
@@ -8956,7 +9010,11 @@ var styleMap = {
|
|
|
8956
9010
|
padding: '1em',
|
|
8957
9011
|
width: '100%',
|
|
8958
9012
|
'&:focus, &:hover': {
|
|
8959
|
-
backgroundColor: 'linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%)'
|
|
9013
|
+
backgroundColor: 'linear-gradient(to right, #7C4DFF 0%, #18A9E6 50%, #01C9EA 100%)' // backgroundColor: '#eee'
|
|
9014
|
+
|
|
9015
|
+
},
|
|
9016
|
+
a: {
|
|
9017
|
+
textDecoration: 'none'
|
|
8960
9018
|
}
|
|
8961
9019
|
},
|
|
8962
9020
|
'header-user-menu__trigger': {
|
|
@@ -9021,7 +9079,6 @@ var styleMap = {
|
|
|
9021
9079
|
backgroundPosition: 'center',
|
|
9022
9080
|
backgroundRepeat: 'no-repeat',
|
|
9023
9081
|
backgroundSize: 'cover',
|
|
9024
|
-
margin: '5px',
|
|
9025
9082
|
height: '50px',
|
|
9026
9083
|
// $icon-size - $image-margin * 2 image-margin was 5px in mashlib and icon size 60px
|
|
9027
9084
|
width: '50px'
|
|
@@ -9030,12 +9087,16 @@ var styleMap = {
|
|
|
9030
9087
|
boxShadow: '0px 1px 4px #000000',
|
|
9031
9088
|
// the color was defined in mashlib as a SASS variable $divider_color
|
|
9032
9089
|
display: 'flex',
|
|
9090
|
+
justifyContent: 'space-between',
|
|
9033
9091
|
padding: '0 1.5em',
|
|
9034
9092
|
marginBottom: '4px'
|
|
9035
9093
|
},
|
|
9036
9094
|
'header-banner__link': {
|
|
9037
9095
|
display: 'block'
|
|
9038
9096
|
},
|
|
9097
|
+
'header-banner__right-menu': {
|
|
9098
|
+
display: 'flex'
|
|
9099
|
+
},
|
|
9039
9100
|
'header-banner__login': {
|
|
9040
9101
|
marginLeft: 'auto',
|
|
9041
9102
|
input: {
|
|
@@ -9049,12 +9110,24 @@ var styleMap = {
|
|
|
9049
9110
|
// the color was defined in mashlib as a SASS variable $divider_color
|
|
9050
9111
|
marginLeft: 'auto'
|
|
9051
9112
|
},
|
|
9113
|
+
'header-banner__help-menu': {
|
|
9114
|
+
borderLeft: 'solid 1px #000000',
|
|
9115
|
+
// the color was defined in mashlib as a SASS variable $divider_color
|
|
9116
|
+
marginLeft: 'auto'
|
|
9117
|
+
},
|
|
9052
9118
|
'header-banner__icon': {
|
|
9053
9119
|
backgroundSize: '65px 60px',
|
|
9054
9120
|
height: '60px !important',
|
|
9055
9121
|
// this is the icon size
|
|
9056
9122
|
width: '65px !important' // may just be 65px round($icon-size * 352 / 322);
|
|
9057
9123
|
|
|
9124
|
+
},
|
|
9125
|
+
'header-banner__help-icon': {
|
|
9126
|
+
backgroundSize: '55px 50px',
|
|
9127
|
+
height: '50px !important',
|
|
9128
|
+
// this is the icon size
|
|
9129
|
+
width: '55px !important' // may just be 65px round($icon-size * 352 / 430);
|
|
9130
|
+
|
|
9058
9131
|
}
|
|
9059
9132
|
};
|
|
9060
9133
|
exports.styleMap = styleMap;
|
|
@@ -15315,20 +15388,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
15315
15388
|
});
|
|
15316
15389
|
exports["default"] = void 0;
|
|
15317
15390
|
var _default = {
|
|
15318
|
-
buildTime: '2021-10-
|
|
15319
|
-
commit: '
|
|
15391
|
+
buildTime: '2021-10-31T05:58:44Z',
|
|
15392
|
+
commit: '2c0725ed22e572a97859cb77ef4ea87e40fb990b',
|
|
15320
15393
|
npmInfo: {
|
|
15321
|
-
'solid-ui': '2.4.
|
|
15394
|
+
'solid-ui': '2.4.10',
|
|
15322
15395
|
npm: '6.14.15',
|
|
15323
15396
|
ares: '1.17.2',
|
|
15324
15397
|
brotli: '1.0.9',
|
|
15325
15398
|
cldr: '39.0',
|
|
15326
15399
|
icu: '69.1',
|
|
15327
|
-
llhttp: '2.1.
|
|
15400
|
+
llhttp: '2.1.4',
|
|
15328
15401
|
modules: '83',
|
|
15329
15402
|
napi: '8',
|
|
15330
15403
|
nghttp2: '1.42.0',
|
|
15331
|
-
node: '14.18.
|
|
15404
|
+
node: '14.18.1',
|
|
15332
15405
|
openssl: '1.1.1l',
|
|
15333
15406
|
tz: '2021a',
|
|
15334
15407
|
unicode: '13.0',
|
|
@@ -78335,7 +78408,7 @@ var SolidAuthnLogic = /** @class */ (function () {
|
|
|
78335
78408
|
}
|
|
78336
78409
|
SolidAuthnLogic.prototype.currentUser = function () {
|
|
78337
78410
|
var _a;
|
|
78338
|
-
return ((_a = this.session) === null || _a === void 0 ? void 0 : _a.info.webId) ? rdflib_1.sym(this.session.info.webId) : null;
|
|
78411
|
+
return ((_a = this.session) === null || _a === void 0 ? void 0 : _a.info.webId) ? (0, rdflib_1.sym)(this.session.info.webId) : null;
|
|
78339
78412
|
};
|
|
78340
78413
|
return SolidAuthnLogic;
|
|
78341
78414
|
}());
|
|
@@ -78460,11 +78533,11 @@ var ChatLogic = /** @class */ (function () {
|
|
|
78460
78533
|
return [4 /*yield*/, this.store.fetcher.load(privateTypeIndex)];
|
|
78461
78534
|
case 1:
|
|
78462
78535
|
_a.sent();
|
|
78463
|
-
reg = uri_1.newThing(privateTypeIndex);
|
|
78536
|
+
reg = (0, uri_1.newThing)(privateTypeIndex);
|
|
78464
78537
|
ins = [
|
|
78465
|
-
rdflib_1.st(reg, this.ns.rdf("type"), this.ns.solid("TypeRegistration"), privateTypeIndex.doc()),
|
|
78466
|
-
rdflib_1.st(reg, this.ns.solid("forClass"), this.ns.meeting("LongChat"), privateTypeIndex.doc()),
|
|
78467
|
-
rdflib_1.st(reg, this.ns.solid("instance"), chatThing, privateTypeIndex.doc()),
|
|
78538
|
+
(0, rdflib_1.st)(reg, this.ns.rdf("type"), this.ns.solid("TypeRegistration"), privateTypeIndex.doc()),
|
|
78539
|
+
(0, rdflib_1.st)(reg, this.ns.solid("forClass"), this.ns.meeting("LongChat"), privateTypeIndex.doc()),
|
|
78540
|
+
(0, rdflib_1.st)(reg, this.ns.solid("instance"), chatThing, privateTypeIndex.doc()),
|
|
78468
78541
|
];
|
|
78469
78542
|
return [4 /*yield*/, new Promise(function (resolve, reject) {
|
|
78470
78543
|
_this.store.updater.update([], ins, function (_uri, ok, errm) {
|
|
@@ -78494,7 +78567,7 @@ var ChatLogic = /** @class */ (function () {
|
|
|
78494
78567
|
return [4 /*yield*/, this.profile.getPodRoot(me)];
|
|
78495
78568
|
case 2:
|
|
78496
78569
|
podRoot = _a.sent();
|
|
78497
|
-
chatContainer = determineChatContainer_1.determineChatContainer(invitee, podRoot);
|
|
78570
|
+
chatContainer = (0, determineChatContainer_1.determineChatContainer)(invitee, podRoot);
|
|
78498
78571
|
exists = true;
|
|
78499
78572
|
_a.label = 3;
|
|
78500
78573
|
case 3:
|
|
@@ -78540,7 +78613,7 @@ var ChatLogic = /** @class */ (function () {
|
|
|
78540
78613
|
var newChatDoc = newInstance.doc();
|
|
78541
78614
|
kb.add(newInstance, this.ns.rdf("type"), this.ns.meeting("LongChat"), newChatDoc);
|
|
78542
78615
|
kb.add(newInstance, this.ns.dc("title"), "Chat channel", newChatDoc);
|
|
78543
|
-
kb.add(newInstance, this.ns.dc("created"), rdflib_1.term(new Date(Date.now())), newChatDoc);
|
|
78616
|
+
kb.add(newInstance, this.ns.dc("created"), (0, rdflib_1.term)(new Date(Date.now())), newChatDoc);
|
|
78544
78617
|
if (newPaneOptions.me) {
|
|
78545
78618
|
kb.add(newInstance, this.ns.dc("author"), newPaneOptions.me, newChatDoc);
|
|
78546
78619
|
}
|
|
@@ -78796,7 +78869,7 @@ var ProfileLogic_1 = __webpack_require__(/*! ./profile/ProfileLogic */ "./node_m
|
|
|
78796
78869
|
var UtilityLogic_1 = __webpack_require__(/*! ./util/UtilityLogic */ "./node_modules/solid-logic/lib/util/UtilityLogic.js");
|
|
78797
78870
|
var UtilityLogic_2 = __webpack_require__(/*! ./util/UtilityLogic */ "./node_modules/solid-logic/lib/util/UtilityLogic.js");
|
|
78798
78871
|
Object.defineProperty(exports, "ACL_LINK", { enumerable: true, get: function () { return UtilityLogic_2.ACL_LINK; } });
|
|
78799
|
-
var ns = solid_namespace_1.default(rdf);
|
|
78872
|
+
var ns = (0, solid_namespace_1.default)(rdf);
|
|
78800
78873
|
var SolidLogic = /** @class */ (function () {
|
|
78801
78874
|
function SolidLogic(fetcher, solidAuthSession) {
|
|
78802
78875
|
this.store = rdf.graph(); // Make a Quad store
|
|
@@ -79222,7 +79295,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
79222
79295
|
exports.newThing = void 0;
|
|
79223
79296
|
var rdflib_1 = __webpack_require__(/*! rdflib */ "./node_modules/rdflib/esm/index.js");
|
|
79224
79297
|
function newThing(doc) {
|
|
79225
|
-
return rdflib_1.sym(doc.uri + "#" + "id" + ("" + Date.now()));
|
|
79298
|
+
return (0, rdflib_1.sym)(doc.uri + "#" + "id" + ("" + Date.now()));
|
|
79226
79299
|
}
|
|
79227
79300
|
exports.newThing = newThing;
|
|
79228
79301
|
//# sourceMappingURL=uri.js.map
|
|
@@ -79277,7 +79350,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
79277
79350
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79278
79351
|
exports.UtilityLogic = exports.ACL_LINK = void 0;
|
|
79279
79352
|
var rdflib_1 = __webpack_require__(/*! rdflib */ "./node_modules/rdflib/esm/index.js");
|
|
79280
|
-
exports.ACL_LINK = rdflib_1.sym("http://www.iana.org/assignments/link-relations/acl");
|
|
79353
|
+
exports.ACL_LINK = (0, rdflib_1.sym)("http://www.iana.org/assignments/link-relations/acl");
|
|
79281
79354
|
/**
|
|
79282
79355
|
* Utility-related logic
|
|
79283
79356
|
*/
|