Skip to content

Commit abb83dd

Browse files
committed
Merge branch 'main' into fix/checkbox-dblclk
2 parents 16a6fa9 + f4617fa commit abb83dd

10 files changed

Lines changed: 714 additions & 178 deletions

File tree

package-lock.json

Lines changed: 267 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "solid-ui",
3-
"version": "3.0.4",
3+
"version": "3.0.5",
44
"description": "UI library for Solid applications",
55
"main": "dist/solid-ui.js",
66
"types": "dist/index.d.ts",
@@ -69,13 +69,13 @@
6969
"@noble/hashes": "^2.0.1",
7070
"escape-html": "^1.0.3",
7171
"mime-types": "^3.0.2",
72-
"pane-registry": "^3.0.1",
72+
"pane-registry": "^3.0.2",
7373
"solid-namespace": "^0.5.4",
7474
"uuid": "^13.0.0"
7575
},
7676
"peerDependencies": {
77-
"rdflib": "^2.3.5",
78-
"solid-logic": "^4.0.2"
77+
"rdflib": "^2.3.6",
78+
"solid-logic": "^4.0.6"
7979
},
8080
"devDependencies": {
8181
"@babel/cli": "^7.28.6",

src/acl/access-groups.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,15 @@ export class AccessGroups {
258258
}
259259
return this.handleDroppedUri(uri, combo, true)
260260
} else if (!agent) {
261-
const error = ` Error: Drop fails to drop appropriate thing! ${uri}`
261+
const detectedTypes = Object.keys(this.store.findTypeURIs(thing))
262+
const typeDetails = detectedTypes.length > 0
263+
? `Detected RDF types: ${detectedTypes.join(', ')}`
264+
: 'No RDF type was detected for this URI.'
265+
const error =
266+
`Error: Failed to add access target: ${uri} is not a recognized ACL target type.` +
267+
` Expected one of: vcard:WebID, vcard:Group, foaf:Person, foaf:Agent, solid:AppProvider, solid:AppProviderClass, or recognized ACL classes.` +
268+
' Hint: try dropping a WebID profile URI, a vcard:Group URI, or a web app origin.' +
269+
typeDetails
262270
debug.error(error)
263271
return Promise.reject(new Error(error))
264272
}

0 commit comments

Comments
 (0)