solid-ui 3.0.4-9a90250 → 3.0.4-acc6e97

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 CHANGED
@@ -11454,6 +11454,8 @@ var AccessGroups = /*#__PURE__*/function () {
11454
11454
  thing,
11455
11455
  _this$_store,
11456
11456
  message,
11457
+ detectedTypes,
11458
+ typeDetails,
11457
11459
  error,
11458
11460
  _args4 = arguments,
11459
11461
  _t2;
@@ -11487,7 +11489,9 @@ var AccessGroups = /*#__PURE__*/function () {
11487
11489
  _context4.next = 6;
11488
11490
  break;
11489
11491
  }
11490
- error = " Error: Drop fails to drop appropriate thing! ".concat(uri);
11492
+ detectedTypes = Object.keys(this.store.findTypeURIs(thing));
11493
+ typeDetails = detectedTypes.length > 0 ? "Detected RDF types: ".concat(detectedTypes.join(', ')) : 'No RDF type was detected for this URI.';
11494
+ error = "Error: Failed to add access target: ".concat(uri, " is not a recognized ACL target type.") + " Expected one of: vcard:WebID, vcard:Group, foaf:Person/foaf:Agent, solid:AppProvider, solid:AppProviderClass, or recognized ACL classes." + ' Hint: try dropping a WebID profile URI, a vcard:Group URI, or a web app origin. ' + typeDetails;
11491
11495
  src_debug/* error */.z3(error);
11492
11496
  return _context4.abrupt("return", Promise.reject(new Error(error)));
11493
11497
  case 6: