solid-ui 2.4.22-027fc53e → 2.4.22-0594fb94

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 (106) hide show
  1. package/dist/main.js +1004 -1593
  2. package/dist/main.js.map +1 -1
  3. package/lib/acl/access-controller.js +9 -14
  4. package/lib/acl/access-controller.js.map +1 -1
  5. package/lib/acl/access-groups.js +10 -15
  6. package/lib/acl/access-groups.js.map +1 -1
  7. package/lib/acl/acl-control.js +9 -13
  8. package/lib/acl/acl-control.js.map +1 -1
  9. package/lib/acl/acl.js +7 -11
  10. package/lib/acl/acl.js.map +1 -1
  11. package/lib/acl/add-agent-buttons.js +13 -19
  12. package/lib/acl/add-agent-buttons.js.map +1 -1
  13. package/lib/acl/index.js.map +1 -1
  14. package/lib/acl/styles.js.map +1 -1
  15. package/lib/acl/types.js.map +1 -1
  16. package/lib/chat/bookmarks.js +16 -20
  17. package/lib/chat/bookmarks.js.map +1 -1
  18. package/lib/chat/chatLogic.js +9 -15
  19. package/lib/chat/chatLogic.js.map +1 -1
  20. package/lib/chat/dateFolder.js +12 -17
  21. package/lib/chat/dateFolder.js.map +1 -1
  22. package/lib/chat/infinite.js +29 -37
  23. package/lib/chat/infinite.js.map +1 -1
  24. package/lib/chat/message.js +14 -14
  25. package/lib/chat/message.js.map +1 -1
  26. package/lib/chat/messageTools.js +10 -23
  27. package/lib/chat/messageTools.js.map +1 -1
  28. package/lib/chat/thread.js +4 -9
  29. package/lib/chat/thread.js.map +1 -1
  30. package/lib/create/create.js.map +1 -1
  31. package/lib/create/index.js.map +1 -1
  32. package/lib/create/types.js.map +1 -1
  33. package/lib/debug.js.map +1 -1
  34. package/lib/folders.js.map +1 -1
  35. package/lib/footer/index.js +8 -10
  36. package/lib/footer/index.js.map +1 -1
  37. package/lib/footer/styleMap.js.map +1 -1
  38. package/lib/header/empty-profile.js.map +1 -1
  39. package/lib/header/index.js +9 -17
  40. package/lib/header/index.js.map +1 -1
  41. package/lib/header/styleMap.js.map +1 -1
  42. package/lib/iconBase.js +2 -3
  43. package/lib/iconBase.js.map +1 -1
  44. package/lib/icons/solid_logo.js.map +1 -1
  45. package/lib/index.js.map +1 -1
  46. package/lib/jss/index.js.map +1 -1
  47. package/lib/log.js.map +1 -1
  48. package/lib/login/login.d.ts +8 -12
  49. package/lib/login/login.d.ts.map +1 -1
  50. package/lib/login/login.js +284 -273
  51. package/lib/login/login.js.map +1 -1
  52. package/lib/matrix/index.js.map +1 -1
  53. package/lib/matrix/matrix.js.map +1 -1
  54. package/lib/matrix/types.js.map +1 -1
  55. package/lib/media/index.js.map +1 -1
  56. package/lib/media/media-capture.js +4 -20
  57. package/lib/media/media-capture.js.map +1 -1
  58. package/lib/messageArea.js.map +1 -1
  59. package/lib/noun_Camera_1618446_000000.js.map +1 -1
  60. package/lib/ns.js.map +1 -1
  61. package/lib/pad.js.map +1 -1
  62. package/lib/participation.js.map +1 -1
  63. package/lib/preferences.js.map +1 -1
  64. package/lib/signup/config-default.js.map +1 -1
  65. package/lib/signup/signup.js.map +1 -1
  66. package/lib/stories/decorators.js.map +1 -1
  67. package/lib/style.js.map +1 -1
  68. package/lib/style_multiSelect.js.map +1 -1
  69. package/lib/table.js.map +1 -1
  70. package/lib/tabs.js.map +1 -1
  71. package/lib/typings.d.js.map +1 -1
  72. package/lib/utils/headerFooterHelpers.js +5 -7
  73. package/lib/utils/headerFooterHelpers.js.map +1 -1
  74. package/lib/utils/index.js.map +1 -1
  75. package/lib/utils/label.js.map +1 -1
  76. package/lib/versionInfo.js +2 -2
  77. package/lib/versionInfo.js.map +1 -1
  78. package/lib/widgets/buttons/iconLinks.js.map +1 -1
  79. package/lib/widgets/buttons.js.map +1 -1
  80. package/lib/widgets/dragAndDrop.js.map +1 -1
  81. package/lib/widgets/error.d.ts +12 -0
  82. package/lib/widgets/error.d.ts.map +1 -1
  83. package/lib/widgets/error.js +0 -5
  84. package/lib/widgets/error.js.map +1 -1
  85. package/lib/widgets/forms/autocomplete/autocompleteBar.js +17 -15
  86. package/lib/widgets/forms/autocomplete/autocompleteBar.js.map +1 -1
  87. package/lib/widgets/forms/autocomplete/autocompleteField.js +5 -8
  88. package/lib/widgets/forms/autocomplete/autocompleteField.js.map +1 -1
  89. package/lib/widgets/forms/autocomplete/autocompletePicker.js +21 -19
  90. package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +1 -1
  91. package/lib/widgets/forms/autocomplete/language.js +8 -15
  92. package/lib/widgets/forms/autocomplete/language.js.map +1 -1
  93. package/lib/widgets/forms/autocomplete/publicData.js +22 -27
  94. package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
  95. package/lib/widgets/forms/basic.js.map +1 -1
  96. package/lib/widgets/forms/comment.js.map +1 -1
  97. package/lib/widgets/forms/fieldFunction.js.map +1 -1
  98. package/lib/widgets/forms/fieldParams.js.map +1 -1
  99. package/lib/widgets/forms/formStyle.js.map +1 -1
  100. package/lib/widgets/forms.js +48 -34
  101. package/lib/widgets/forms.js.map +1 -1
  102. package/lib/widgets/index.js.map +1 -1
  103. package/lib/widgets/multiSelect.js.map +1 -1
  104. package/lib/widgets/peoplePicker.js.map +1 -1
  105. package/lib/widgets/widgetHelpers.js.map +1 -1
  106. package/package.json +4 -4
@@ -17,13 +17,9 @@ exports.loginStatusBox = loginStatusBox;
17
17
  exports.newAppInstance = newAppInstance;
18
18
  exports.registrationControl = registrationControl;
19
19
  exports.registrationList = registrationList;
20
- exports.renderScopeHeadingRow = renderScopeHeadingRow;
21
20
  exports.renderSignInPopup = renderSignInPopup;
22
- exports.scopeLabel = scopeLabel;
23
21
  exports.selectWorkspace = selectWorkspace;
24
22
 
25
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
26
-
27
23
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
28
24
 
29
25
  var _rdflib = require("rdflib");
@@ -40,7 +36,7 @@ var _signup = require("../signup/signup.js");
40
36
 
41
37
  var _style = require("../style");
42
38
 
43
- var utils = _interopRequireWildcard(require("../utils"));
39
+ var _index = require("../utils/index");
44
40
 
45
41
  var widgets = _interopRequireWildcard(require("../widgets"));
46
42
 
@@ -48,20 +44,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
48
44
 
49
45
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
50
46
 
51
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
52
-
53
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
47
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
54
48
 
55
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
56
-
57
- var store = _solidLogic.solidLogicSingleton.store;
58
49
  /**
59
50
  * Resolves with the logged in user's WebID
60
51
  *
61
52
  * @param context
62
53
  */
63
54
  // used to be logIn
64
-
65
55
  function ensureLoggedIn(context) {
66
56
  var me = _solidLogic.authn.currentUser();
67
57
 
@@ -103,7 +93,7 @@ function ensureLoggedIn(context) {
103
93
  // used to be logInLoadPreferences
104
94
 
105
95
 
106
- function ensureLoadedPreferences(_x) {
96
+ function ensureLoadedPreferences(_x2) {
107
97
  return _ensureLoadedPreferences.apply(this, arguments);
108
98
  }
109
99
  /**
@@ -117,9 +107,9 @@ function ensureLoadedPreferences(_x) {
117
107
 
118
108
 
119
109
  function _ensureLoadedPreferences() {
120
- _ensureLoadedPreferences = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(context) {
110
+ _ensureLoadedPreferences = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(context) {
121
111
  var statusArea, progressDisplay, complain, preferencesFile, m2;
122
- return _regenerator["default"].wrap(function _callee4$(_context4) {
112
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
123
113
  while (1) {
124
114
  switch (_context4.prev = _context4.next) {
125
115
  case 0:
@@ -250,23 +240,21 @@ function _ensureLoadedPreferences() {
250
240
  return _ensureLoadedPreferences.apply(this, arguments);
251
241
  }
252
242
 
253
- function ensureLoadedProfile(_x2) {
243
+ function ensureLoadedProfile(_x3) {
254
244
  return _ensureLoadedProfile.apply(this, arguments);
255
245
  }
256
246
  /**
257
- * Returns promise of context with arrays of symbols
258
- *
259
- * 2016-12-11 change to include forClass arc a la
260
- * https://github.com/solid/solid/blob/main/proposals/data-discovery.md
261
- * This is now legacy; should instead use solid-logic getAppInstances
262
- * leaving the `isPublic` param undefined will bring in community index things, too
263
- */
247
+ * Returns promise of context with arrays of symbols
248
+ *
249
+ * 2016-12-11 change to include forClass arc a la
250
+ * https://github.com/solid/solid/blob/main/proposals/data-discovery.md
251
+ */
264
252
 
265
253
 
266
254
  function _ensureLoadedProfile() {
267
- _ensureLoadedProfile = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5(context) {
255
+ _ensureLoadedProfile = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(context) {
268
256
  var logInContext;
269
- return _regenerator["default"].wrap(function _callee5$(_context5) {
257
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
270
258
  while (1) {
271
259
  switch (_context5.prev = _context5.next) {
272
260
  case 0:
@@ -324,139 +312,210 @@ function _ensureLoadedProfile() {
324
312
  return _ensureLoadedProfile.apply(this, arguments);
325
313
  }
326
314
 
327
- function findAppInstances(_x3, _x4, _x5) {
315
+ function findAppInstances(_x4, _x5, _x6) {
328
316
  return _findAppInstances.apply(this, arguments);
329
317
  }
318
+ /**
319
+ * UI to control registration of instance
320
+ */
321
+
330
322
 
331
323
  function _findAppInstances() {
332
- _findAppInstances = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(context, theClass, isPublic) {
333
- var items;
334
- return _regenerator["default"].wrap(function _callee6$(_context6) {
324
+ _findAppInstances = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(context, theClass, isPublic) {
325
+ var visibility, index, thisIndex, registrations, instances, containers, unique, e, i, cont;
326
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
335
327
  while (1) {
336
328
  switch (_context6.prev = _context6.next) {
337
329
  case 0:
338
- if (!context.me) {
339
- _context6.next = 6;
330
+ unique = function _unique(arr) {
331
+ return Array.from(new Set(arr));
332
+ };
333
+
334
+ if (!(isPublic === undefined)) {
335
+ _context6.next = 7;
340
336
  break;
341
337
  }
342
338
 
343
- _context6.next = 3;
344
- return (0, _solidLogic.getScopedAppInstances)(store, theClass, context.me);
339
+ _context6.next = 4;
340
+ return findAppInstances(context, theClass, true);
345
341
 
346
- case 3:
347
- _context6.t0 = _context6.sent;
348
- _context6.next = 7;
349
- break;
342
+ case 4:
343
+ _context6.next = 6;
344
+ return findAppInstances(context, theClass, false);
350
345
 
351
346
  case 6:
352
- _context6.t0 = [];
347
+ return _context6.abrupt("return", context);
353
348
 
354
349
  case 7:
355
- items = _context6.t0;
350
+ _context6.prev = 7;
351
+ _context6.next = 10;
352
+ return isPublic ? ensureLoadedProfile(context) : ensureLoadedPreferences(context);
356
353
 
357
- if (isPublic === true) {
358
- // old API - not recommended!
359
- items = items.filter(function (item) {
360
- return item.scope.label === 'public';
361
- });
362
- } else if (isPublic === false) {
363
- items = items.filter(function (item) {
364
- return item.scope.label === 'private';
365
- });
354
+ case 10:
355
+ _context6.next = 15;
356
+ break;
357
+
358
+ case 12:
359
+ _context6.prev = 12;
360
+ _context6.t0 = _context6["catch"](7);
361
+ widgets.complain(context, "loadIndex: login and load problem ".concat(_context6.t0));
362
+
363
+ case 15:
364
+ // console.log('awaited LogInLoad!', context)
365
+ visibility = isPublic ? 'public' : 'private';
366
+ _context6.prev = 16;
367
+ _context6.next = 19;
368
+ return (0, _solidLogic.loadIndex)(context, isPublic);
369
+
370
+ case 19:
371
+ _context6.next = 24;
372
+ break;
373
+
374
+ case 21:
375
+ _context6.prev = 21;
376
+ _context6.t1 = _context6["catch"](16);
377
+ debug.error(_context6.t1);
378
+
379
+ case 24:
380
+ index = context.index;
381
+ thisIndex = index[visibility];
382
+ registrations = thisIndex.map(function (ix) {
383
+ return _solidLogic.solidLogicSingleton.store.each(undefined, ns.solid('forClass'), theClass, ix);
384
+ }).reduce(function (acc, curr) {
385
+ return acc.concat(curr);
386
+ }, []);
387
+ instances = registrations.map(function (reg) {
388
+ return _solidLogic.solidLogicSingleton.store.each(reg, ns.solid('instance'));
389
+ }).reduce(function (acc, curr) {
390
+ return acc.concat(curr);
391
+ }, []);
392
+ containers = registrations.map(function (reg) {
393
+ return _solidLogic.solidLogicSingleton.store.each(reg, ns.solid('instanceContainer'));
394
+ }).reduce(function (acc, curr) {
395
+ return acc.concat(curr);
396
+ }, []);
397
+ context.instances = context.instances || [];
398
+ context.instances = unique(context.instances.concat(instances));
399
+ context.containers = context.containers || [];
400
+ context.containers = unique(context.containers.concat(containers));
401
+
402
+ if (containers.length) {
403
+ _context6.next = 35;
404
+ break;
405
+ }
406
+
407
+ return _context6.abrupt("return", context);
408
+
409
+ case 35:
410
+ _context6.prev = 35;
411
+ _context6.next = 38;
412
+ return _solidLogic.solidLogicSingleton.load(containers);
413
+
414
+ case 38:
415
+ _context6.next = 45;
416
+ break;
417
+
418
+ case 40:
419
+ _context6.prev = 40;
420
+ _context6.t2 = _context6["catch"](35);
421
+ e = new Error("[FAI] Unable to load containers".concat(_context6.t2));
422
+ debug.log(e); // complain
423
+
424
+ widgets.complain(context, "Error looking for ".concat(_index.utils.label(theClass), ": ").concat(_context6.t2)); // but then ignore it
425
+ // throw new Error(e)
426
+
427
+ case 45:
428
+ i = 0;
429
+
430
+ case 46:
431
+ if (!(i < containers.length)) {
432
+ _context6.next = 56;
433
+ break;
366
434
  }
367
435
 
368
- context.instances = items.map(function (item) {
369
- return item.instance;
436
+ cont = containers[i];
437
+ _context6.t3 = context.instances;
438
+ _context6.next = 51;
439
+ return _solidLogic.solidLogicSingleton.getContainerMembers(cont.value);
440
+
441
+ case 51:
442
+ _context6.t4 = _context6.sent.map(function (uri) {
443
+ return _solidLogic.solidLogicSingleton.store.sym(uri);
370
444
  });
445
+ context.instances = _context6.t3.concat.call(_context6.t3, _context6.t4);
446
+
447
+ case 53:
448
+ i++;
449
+ _context6.next = 46;
450
+ break;
451
+
452
+ case 56:
371
453
  return _context6.abrupt("return", context);
372
454
 
373
- case 11:
455
+ case 57:
374
456
  case "end":
375
457
  return _context6.stop();
376
458
  }
377
459
  }
378
- }, _callee6);
460
+ }, _callee6, null, [[7, 12], [16, 21], [35, 40]]);
379
461
  }));
380
462
  return _findAppInstances.apply(this, arguments);
381
463
  }
382
464
 
383
- function scopeLabel(context, scope) {
384
- var mine = context.me && context.me.sameTerm(scope.agent);
385
- var name = mine ? '' : utils.label(scope.agent) + ' ';
386
- return "".concat(name).concat(scope.label);
465
+ function registrationControl(_x7, _x8, _x9) {
466
+ return _registrationControl.apply(this, arguments);
387
467
  }
388
468
  /**
389
- * UI to control registration of instance
469
+ * UI to List at all registered things
390
470
  */
391
471
 
392
472
 
393
- function registrationControl(_x6, _x7, _x8) {
394
- return _registrationControl.apply(this, arguments);
395
- }
396
-
397
473
  function _registrationControl() {
398
- _registrationControl = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7(context, instance, theClass) {
399
- var registrationStatements, renderScopeCheckbox, dom, box, me, scopes, msg, tbody, form, _iterator, _step, scope, row;
474
+ _registrationControl = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(context, instance, theClass) {
475
+ var dom, box, context2, msg, tbody, form, registrationStatements, index, statements, _msg;
400
476
 
401
- return _regenerator["default"].wrap(function _callee7$(_context7) {
477
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
402
478
  while (1) {
403
479
  switch (_context7.prev = _context7.next) {
404
480
  case 0:
405
- renderScopeCheckbox = function _renderScopeCheckbox(scope) {
406
- var statements = registrationStatements(scope.index);
407
- var name = scopeLabel(context, scope);
408
- var label = "".concat(name, " link to this ").concat(context.noun);
409
- return widgets.buildCheckboxForm(context.dom, _solidLogic.solidLogicSingleton.store, label, null, statements, form, scope.index);
410
- };
411
-
412
- registrationStatements = function _registrationStatemen(index) {
413
- var registrations = _solidLogic.solidLogicSingleton.getRegistrations(instance, theClass);
414
-
415
- var reg = registrations.length ? registrations[0] : widgets.newThing(index);
416
- return [(0, _rdflib.st)(reg, ns.solid('instance'), instance, index), (0, _rdflib.st)(reg, ns.solid('forClass'), theClass, index)];
417
- };
418
-
419
- /// / body of registrationControl
420
481
  dom = context.dom;
421
482
 
422
483
  if (!(!dom || !context.div)) {
423
- _context7.next = 5;
484
+ _context7.next = 3;
424
485
  break;
425
486
  }
426
487
 
427
- throw new Error('registrationControl: need dom and div');
488
+ return _context7.abrupt("return", context);
428
489
 
429
- case 5:
490
+ case 3:
430
491
  box = dom.createElement('div');
431
492
  context.div.appendChild(box);
432
493
  context.me = _solidLogic.authn.currentUser(); // @@
433
494
 
434
- me = context.me;
435
-
436
- if (me) {
437
- _context7.next = 12;
495
+ if (context.me) {
496
+ _context7.next = 9;
438
497
  break;
439
498
  }
440
499
 
441
500
  box.innerHTML = '<p style="margin:2em;">(Log in to save a link to this)</p>';
442
501
  return _context7.abrupt("return", context);
443
502
 
444
- case 12:
445
- _context7.prev = 12;
446
- _context7.next = 15;
447
- return (0, _solidLogic.loadAllTypeIndexes)(store, me);
503
+ case 9:
504
+ _context7.prev = 9;
505
+ _context7.next = 12;
506
+ return (0, _solidLogic.ensureTypeIndexes)(context);
448
507
 
449
- case 15:
450
- scopes = _context7.sent;
451
- _context7.next = 23;
508
+ case 12:
509
+ context2 = _context7.sent;
510
+ _context7.next = 19;
452
511
  break;
453
512
 
454
- case 18:
455
- _context7.prev = 18;
456
- _context7.t0 = _context7["catch"](12);
513
+ case 15:
514
+ _context7.prev = 15;
515
+ _context7.t0 = _context7["catch"](9);
457
516
 
458
517
  if (context.div && context.preferencesFileError) {
459
- msg = '(Lists of stuff not available)';
518
+ msg = '(Preferences not available)';
460
519
  context.div.appendChild(dom.createElement('p')).textContent = msg;
461
520
  } else if (context.div) {
462
521
  msg = "registrationControl: Type indexes not available: ".concat(_context7.t0);
@@ -464,201 +523,153 @@ function _registrationControl() {
464
523
  }
465
524
 
466
525
  debug.log(msg);
467
- return _context7.abrupt("return", context);
468
526
 
469
- case 23:
470
- box.innerHTML = '<table><tbody></tbody></table>'; // tbody will be inserted anyway
527
+ case 19:
528
+ box.innerHTML = '<table><tbody><tr></tr><tr></tr></tbody></table>'; // tbody will be inserted anyway
471
529
 
472
530
  box.setAttribute('style', 'font-size: 120%; text-align: right; padding: 1em; border: solid gray 0.05em;');
473
531
  tbody = box.children[0].children[0];
474
532
  form = new _rdflib.BlankNode(); // @@ say for now
475
533
 
476
- _iterator = _createForOfIteratorHelper(scopes);
534
+ registrationStatements = function registrationStatements(index) {
535
+ var registrations = _solidLogic.solidLogicSingleton.getRegistrations(instance, theClass);
536
+
537
+ var reg = registrations.length ? registrations[0] : widgets.newThing(index);
538
+ return [(0, _rdflib.st)(reg, ns.solid('instance'), instance, index), (0, _rdflib.st)(reg, ns.solid('forClass'), theClass, index)];
539
+ };
477
540
 
478
541
  try {
479
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
480
- scope = _step.value;
481
- row = tbody.appendChild(dom.createElement('tr'));
482
- row.appendChild(renderScopeCheckbox(scope)); // @@ index
542
+ if (context2.index && context2.index["public"] && context2.index["public"].length > 0) {
543
+ index = context2.index["public"][0];
544
+ statements = registrationStatements(index);
545
+ tbody.children[0].appendChild(widgets.buildCheckboxForm(context2.dom, _solidLogic.solidLogicSingleton.store, "Public link to this ".concat(context2.noun), null, statements, form, index));
546
+ }
547
+
548
+ if (context2.index && context2.index["private"] && context2.index["private"].length > 0) {
549
+ index = context2.index["private"][0];
550
+ statements = registrationStatements(index);
551
+ tbody.children[1].appendChild(widgets.buildCheckboxForm(context2.dom, _solidLogic.solidLogicSingleton.store, "Personal note of this ".concat(context2.noun), null, statements, form, index));
552
+ }
553
+ } catch (e) {
554
+ _msg = "registrationControl: Error making panel: ".concat(e);
555
+
556
+ if (context.div) {
557
+ context.div.appendChild(widgets.errorMessageBlock(context.dom, e));
483
558
  }
484
- } catch (err) {
485
- _iterator.e(err);
486
- } finally {
487
- _iterator.f();
559
+
560
+ debug.log(_msg);
488
561
  }
489
562
 
490
- return _context7.abrupt("return", context);
563
+ return _context7.abrupt("return", context2);
491
564
 
492
- case 30:
565
+ case 26:
493
566
  case "end":
494
567
  return _context7.stop();
495
568
  }
496
569
  }
497
- }, _callee7, null, [[12, 18]]);
570
+ }, _callee7, null, [[9, 15]]);
498
571
  }));
499
572
  return _registrationControl.apply(this, arguments);
500
573
  }
501
574
 
502
- function renderScopeHeadingRow(context, store, scope) {
503
- var backgroundColor = {
504
- "private": '#fee',
505
- "public": '#efe'
506
- };
507
- var dom = context.dom;
508
- var name = scopeLabel(context, scope);
509
- var row = dom.createElement('tr');
510
- var cell = row.appendChild(dom.createElement('td'));
511
- cell.setAttribute('colspan', '3');
512
- cell.style.backgoundColor = backgroundColor[scope.label] || 'white';
513
- var header = cell.appendChild(dom.createElement('h3'));
514
- header.textContent = name + ' links';
515
- header.style.textAlign = 'left';
516
- return row;
517
- }
518
- /**
519
- * UI to List at all registered things
520
- */
521
-
522
-
523
- function registrationList(_x9, _x10) {
575
+ function registrationList(_x10, _x11) {
524
576
  return _registrationList.apply(this, arguments);
525
- } // registrationList
526
-
577
+ }
527
578
 
528
579
  function _registrationList() {
529
- _registrationList = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(context, options) {
530
- var dom, div, box, scopes, table, tbody, _iterator2, _step2, scope, headingRow, items, _iterator3, _step3, _loop;
531
-
532
- return _regenerator["default"].wrap(function _callee9$(_context9) {
580
+ _registrationList = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(context0, options) {
581
+ var dom, div, box;
582
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
533
583
  while (1) {
534
- switch (_context9.prev = _context9.next) {
584
+ switch (_context8.prev = _context8.next) {
535
585
  case 0:
536
- dom = context.dom;
537
- div = context.div;
586
+ dom = context0.dom;
587
+ div = context0.div;
538
588
  box = dom.createElement('div');
539
589
  div.appendChild(box);
540
- context.me = _solidLogic.authn.currentUser(); // @@
590
+ context0.me = _solidLogic.authn.currentUser(); // @@
541
591
 
542
- if (context.me) {
543
- _context9.next = 8;
592
+ if (context0.me) {
593
+ _context8.next = 8;
544
594
  break;
545
595
  }
546
596
 
547
597
  box.innerHTML = '<p style="margin:2em;">(Log in list your stuff)</p>';
548
- return _context9.abrupt("return", context);
598
+ return _context8.abrupt("return", context0);
549
599
 
550
600
  case 8:
551
- _context9.next = 10;
552
- return (0, _solidLogic.loadAllTypeIndexes)(store, context.me);
553
-
554
- case 10:
555
- scopes = _context9.sent;
556
- // includes community indexes
557
- // console.log('@@ registrationList ', scopes)
558
- box.innerHTML = '<table><tbody></tbody></table>'; // tbody will be inserted anyway
559
-
560
- box.setAttribute('style', 'font-size: 120%; text-align: right; padding: 1em; border: solid #eee 0.5em;');
561
- table = box.firstChild;
562
- tbody = table.firstChild;
563
- _iterator2 = _createForOfIteratorHelper(scopes);
564
- _context9.prev = 16;
565
-
566
- _iterator2.s();
567
-
568
- case 18:
569
- if ((_step2 = _iterator2.n()).done) {
570
- _context9.next = 30;
571
- break;
572
- }
601
+ return _context8.abrupt("return", (0, _solidLogic.ensureTypeIndexes)(context0).then(function (context) {
602
+ box.innerHTML = '<table><tbody></tbody></table>'; // tbody will be inserted anyway
603
+
604
+ box.setAttribute('style', 'font-size: 120%; text-align: right; padding: 1em; border: solid #eee 0.5em;');
605
+ var table = box.firstChild;
606
+ var ix = [];
607
+ var sts = [];
608
+ var vs = ['private', 'public'];
609
+ vs.forEach(function (visibility) {
610
+ if (context.index && context.index[visibility].length > 0 && options[visibility]) {
611
+ ix = ix.concat(context.index[visibility][0]);
612
+ sts = sts.concat(_solidLogic.solidLogicSingleton.store.statementsMatching(undefined, ns.solid('instance'), undefined, context.index[visibility][0]));
613
+ }
614
+ });
573
615
 
574
- scope = _step2.value;
575
- // need some predicate for listing/adding agents
576
- headingRow = renderScopeHeadingRow(context, store, scope);
577
- tbody.appendChild(headingRow);
578
- _context9.next = 24;
579
- return (0, _solidLogic.getScopedAppsFromIndex)(store, scope, options.type || null);
616
+ var _loop = function _loop(i) {
617
+ var statement = sts[i];
580
618
 
581
- case 24:
582
- items = _context9.sent;
583
- // any class
584
- if (items.length === 0) headingRow.style.display = 'none'; // console.log(`registrationList: @@ instance items for class ${options.type || 'undefined' }:`, items)
619
+ if (options.type) {
620
+ // now check terms:forClass
621
+ if (!_solidLogic.solidLogicSingleton.store.holds(statement.subject, ns.solid('forClass'), options.type, statement.why)) {
622
+ return "continue"; // skip irrelevant ones
623
+ }
624
+ } // const cla = statement.subject
585
625
 
586
- _iterator3 = _createForOfIteratorHelper(items);
587
626
 
588
- try {
589
- _loop = function _loop() {
590
- var item = _step3.value;
591
- var row = widgets.personTR(dom, ns.solid('instance'), item.instance, {
592
- deleteFunction: function () {
593
- var _deleteFunction = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8() {
594
- return _regenerator["default"].wrap(function _callee8$(_context8) {
595
- while (1) {
596
- switch (_context8.prev = _context8.next) {
597
- case 0:
598
- _context8.next = 2;
599
- return (0, _solidLogic.deleteTypeIndexRegistration)(store, item);
600
-
601
- case 2:
602
- tbody.removeChild(row);
603
-
604
- case 3:
605
- case "end":
606
- return _context8.stop();
607
- }
608
- }
609
- }, _callee8);
610
- }));
611
-
612
- function deleteFunction() {
613
- return _deleteFunction.apply(this, arguments);
627
+ var inst = statement.object;
628
+ table.appendChild(widgets.personTR(dom, ns.solid('instance'), inst, {
629
+ deleteFunction: function deleteFunction(_x) {
630
+ if (!_solidLogic.solidLogicSingleton.store.updater) {
631
+ throw new Error('Cannot delete this, store has no updater');
614
632
  }
615
633
 
616
- return deleteFunction;
617
- }()
618
- });
619
- row.children[0].style.paddingLeft = '3em';
620
- tbody.appendChild(row);
634
+ _solidLogic.solidLogicSingleton.store.updater.update([statement], [], function (uri, ok, errorBody) {
635
+ if (ok) {
636
+ debug.log("Removed from index: ".concat(statement.subject));
637
+ } else {
638
+ debug.log("Error: Cannot delete ".concat(statement, ": ").concat(errorBody));
639
+ }
640
+ });
641
+ }
642
+ }));
621
643
  };
622
644
 
623
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
624
- _loop();
625
- }
626
- } catch (err) {
627
- _iterator3.e(err);
628
- } finally {
629
- _iterator3.f();
630
- }
631
-
632
- case 28:
633
- _context9.next = 18;
634
- break;
635
-
636
- case 30:
637
- _context9.next = 35;
638
- break;
639
-
640
- case 32:
641
- _context9.prev = 32;
642
- _context9.t0 = _context9["catch"](16);
643
-
644
- _iterator2.e(_context9.t0);
645
+ for (var i = 0; i < sts.length; i++) {
646
+ var _ret = _loop(i);
645
647
 
646
- case 35:
647
- _context9.prev = 35;
648
+ if (_ret === "continue") continue;
649
+ } // registrationList
648
650
 
649
- _iterator2.f();
651
+ /*
652
+ //const containers = solidLogicSingleton.store.each(theClass, ns.solid('instanceContainer'));
653
+ if (containers.length) {
654
+ fetcher.load(containers).then(function(xhrs){
655
+ for (const i=0; i<containers.length; i++) {
656
+ const cont = containers[i];
657
+ instances = instances.concat(solidLogicSingleton.store.each(cont, ns.ldp('contains')));
658
+ }
659
+ });
660
+ }
661
+ */
650
662
 
651
- return _context9.finish(35);
652
663
 
653
- case 38:
654
- return _context9.abrupt("return", context);
664
+ return context;
665
+ }));
655
666
 
656
- case 39:
667
+ case 9:
657
668
  case "end":
658
- return _context9.stop();
669
+ return _context8.stop();
659
670
  }
660
671
  }
661
- }, _callee9, null, [[16, 32, 35, 38]]);
672
+ }, _callee8);
662
673
  }));
663
674
  return _registrationList.apply(this, arguments);
664
675
  }
@@ -776,9 +787,9 @@ function renderSignInPopup(dom) {
776
787
  issuerPopupBoxTopMenu.appendChild(issuerPopupBoxCloseButton);
777
788
 
778
789
  var loginToIssuer = /*#__PURE__*/function () {
779
- var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(issuerUri) {
790
+ var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(issuerUri) {
780
791
  var preLoginRedirectHash;
781
- return _regenerator["default"].wrap(function _callee$(_context) {
792
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
782
793
  while (1) {
783
794
  switch (_context.prev = _context.next) {
784
795
  case 0:
@@ -815,7 +826,7 @@ function renderSignInPopup(dom) {
815
826
  }, _callee, null, [[0, 8]]);
816
827
  }));
817
828
 
818
- return function loginToIssuer(_x11) {
829
+ return function loginToIssuer(_x12) {
819
830
  return _ref.apply(this, arguments);
820
831
  };
821
832
  }();
@@ -976,9 +987,9 @@ function loginStatusBox(dom) {
976
987
  return box;
977
988
  }
978
989
 
979
- _solidLogic.authSession.onLogout( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
990
+ _solidLogic.authSession.onLogout( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
980
991
  var issuer, wellKnownUri, wellKnownResult, openidConfiguration;
981
- return _regenerator["default"].wrap(function _callee2$(_context2) {
992
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
982
993
  while (1) {
983
994
  switch (_context2.prev = _context2.next) {
984
995
  case 0:
@@ -1102,15 +1113,15 @@ function selectWorkspace(dom, appDetails, callbackWS) {
1102
1113
 
1103
1114
  function displayOptions(context) {
1104
1115
  // console.log('displayOptions!', context)
1105
- function makeNewWorkspace(_x12) {
1116
+ function makeNewWorkspace(_x13) {
1106
1117
  return _makeNewWorkspace.apply(this, arguments);
1107
1118
  } // const status = ''
1108
1119
 
1109
1120
 
1110
1121
  function _makeNewWorkspace() {
1111
- _makeNewWorkspace = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(_event) {
1122
+ _makeNewWorkspace = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_event) {
1112
1123
  var row, cell, newBase, newWs, newData;
1113
- return _regenerator["default"].wrap(function _callee3$(_context3) {
1124
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1114
1125
  while (1) {
1115
1126
  switch (_context3.prev = _context3.next) {
1116
1127
  case 0:
@@ -1371,77 +1382,77 @@ function getUserRoles() {
1371
1382
 
1372
1383
 
1373
1384
  function _getUserRoles() {
1374
- _getUserRoles = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10() {
1385
+ _getUserRoles = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
1375
1386
  var _yield$ensureLoadedPr, me, preferencesFile, preferencesFileError;
1376
1387
 
1377
- return _regenerator["default"].wrap(function _callee10$(_context10) {
1388
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
1378
1389
  while (1) {
1379
- switch (_context10.prev = _context10.next) {
1390
+ switch (_context9.prev = _context9.next) {
1380
1391
  case 0:
1381
- _context10.prev = 0;
1382
- _context10.next = 3;
1392
+ _context9.prev = 0;
1393
+ _context9.next = 3;
1383
1394
  return ensureLoadedPreferences({});
1384
1395
 
1385
1396
  case 3:
1386
- _yield$ensureLoadedPr = _context10.sent;
1397
+ _yield$ensureLoadedPr = _context9.sent;
1387
1398
  me = _yield$ensureLoadedPr.me;
1388
1399
  preferencesFile = _yield$ensureLoadedPr.preferencesFile;
1389
1400
  preferencesFileError = _yield$ensureLoadedPr.preferencesFileError;
1390
1401
 
1391
1402
  if (!(!preferencesFile || preferencesFileError)) {
1392
- _context10.next = 9;
1403
+ _context9.next = 9;
1393
1404
  break;
1394
1405
  }
1395
1406
 
1396
1407
  throw new Error(preferencesFileError);
1397
1408
 
1398
1409
  case 9:
1399
- return _context10.abrupt("return", _solidLogic.solidLogicSingleton.store.each(me, ns.rdf('type'), null, preferencesFile.doc()));
1410
+ return _context9.abrupt("return", _solidLogic.solidLogicSingleton.store.each(me, ns.rdf('type'), null, preferencesFile.doc()));
1400
1411
 
1401
1412
  case 12:
1402
- _context10.prev = 12;
1403
- _context10.t0 = _context10["catch"](0);
1404
- debug.warn('Unable to fetch your preferences - this was the error: ', _context10.t0);
1413
+ _context9.prev = 12;
1414
+ _context9.t0 = _context9["catch"](0);
1415
+ debug.warn('Unable to fetch your preferences - this was the error: ', _context9.t0);
1405
1416
 
1406
1417
  case 15:
1407
- return _context10.abrupt("return", []);
1418
+ return _context9.abrupt("return", []);
1408
1419
 
1409
1420
  case 16:
1410
1421
  case "end":
1411
- return _context10.stop();
1422
+ return _context9.stop();
1412
1423
  }
1413
1424
  }
1414
- }, _callee10, null, [[0, 12]]);
1425
+ }, _callee9, null, [[0, 12]]);
1415
1426
  }));
1416
1427
  return _getUserRoles.apply(this, arguments);
1417
1428
  }
1418
1429
 
1419
- function filterAvailablePanes(_x13) {
1430
+ function filterAvailablePanes(_x14) {
1420
1431
  return _filterAvailablePanes.apply(this, arguments);
1421
1432
  }
1422
1433
 
1423
1434
  function _filterAvailablePanes() {
1424
- _filterAvailablePanes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(panes) {
1435
+ _filterAvailablePanes = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(panes) {
1425
1436
  var userRoles;
1426
- return _regenerator["default"].wrap(function _callee11$(_context11) {
1437
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
1427
1438
  while (1) {
1428
- switch (_context11.prev = _context11.next) {
1439
+ switch (_context10.prev = _context10.next) {
1429
1440
  case 0:
1430
- _context11.next = 2;
1441
+ _context10.next = 2;
1431
1442
  return getUserRoles();
1432
1443
 
1433
1444
  case 2:
1434
- userRoles = _context11.sent;
1435
- return _context11.abrupt("return", panes.filter(function (pane) {
1445
+ userRoles = _context10.sent;
1446
+ return _context10.abrupt("return", panes.filter(function (pane) {
1436
1447
  return isMatchingAudience(pane, userRoles);
1437
1448
  }));
1438
1449
 
1439
1450
  case 4:
1440
1451
  case "end":
1441
- return _context11.stop();
1452
+ return _context10.stop();
1442
1453
  }
1443
1454
  }
1444
- }, _callee11);
1455
+ }, _callee10);
1445
1456
  }));
1446
1457
  return _filterAvailablePanes.apply(this, arguments);
1447
1458
  }