solid-ui 3.1.1-test.0 → 3.1.2

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
@@ -8477,6 +8477,7 @@ async function ensureLoadedPreferences(context) {
8477
8477
  } else {
8478
8478
  throw new Error(`(via loadPrefs) ${err}`);
8479
8479
  }
8480
+ context.preferencesFileError = m2;
8480
8481
  }
8481
8482
  return context;
8482
8483
  }
@@ -9216,24 +9217,14 @@ function newAppInstance(dom, appDetails, callback) {
9216
9217
  * and/or a developer
9217
9218
  */
9218
9219
  async function getUserRoles() {
9219
- const sessionInfo = external_SolidLogic_.authSession.info;
9220
- if (!sessionInfo?.isLoggedIn || !sessionInfo?.webId) {
9221
- return [];
9222
- }
9223
- const currentUser = external_SolidLogic_.authn.currentUser();
9224
- if (!currentUser) {
9225
- return [];
9226
- }
9227
9220
  try {
9228
9221
  const {
9229
9222
  me,
9230
9223
  preferencesFile,
9231
9224
  preferencesFileError
9232
- } = await ensureLoadedPreferences({
9233
- me: currentUser
9234
- });
9225
+ } = await ensureLoadedPreferences({});
9235
9226
  if (!preferencesFile || preferencesFileError) {
9236
- throw new Error(preferencesFileError || 'Unable to load user preferences file.');
9227
+ throw new Error(preferencesFileError);
9237
9228
  }
9238
9229
  return external_SolidLogic_.solidLogicSingleton.store.each(me, ns.rdf('type'), null, preferencesFile.doc());
9239
9230
  } catch (error) {