@fluid-topics/ft-reader-context 1.0.63 → 1.1.1

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.
@@ -56,7 +56,8 @@ export declare enum FtReaderFeatures {
56
56
  RATING = "RATING",
57
57
  PRINT = "PRINT",
58
58
  BOOKMARK = "BOOKMARK",
59
- COLLECTIONS = "COLLECTIONS"
59
+ COLLECTIONS = "COLLECTIONS",
60
+ PERSONAL_BOOKS = "PERSONAL_BOOKS"
60
61
  }
61
62
  export interface FtReaderFeatureAccessData {
62
63
  session?: FtSession;
@@ -5,4 +5,5 @@ export var FtReaderFeatures;
5
5
  FtReaderFeatures["PRINT"] = "PRINT";
6
6
  FtReaderFeatures["BOOKMARK"] = "BOOKMARK";
7
7
  FtReaderFeatures["COLLECTIONS"] = "COLLECTIONS";
8
+ FtReaderFeatures["PERSONAL_BOOKS"] = "PERSONAL_BOOKS";
8
9
  })(FtReaderFeatures || (FtReaderFeatures = {}));
@@ -186,6 +186,8 @@ export class FtReaderService {
186
186
  return !!(session === null || session === void 0 ? void 0 : session.sessionAuthenticated);
187
187
  case FtReaderFeatures.COLLECTIONS:
188
188
  return userHasRole(session !== null && session !== void 0 ? session : [], FtUserRole.COLLECTION_USER);
189
+ case FtReaderFeatures.PERSONAL_BOOKS:
190
+ return userHasRole(session !== null && session !== void 0 ? session : [], FtUserRole.PERSONAL_BOOK_USER);
189
191
  default:
190
192
  return false;
191
193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-context",
3
- "version": "1.0.63",
3
+ "version": "1.1.1",
4
4
  "description": "Context block for integrated reader components",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,13 +19,13 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-app-context": "1.0.63",
23
- "@fluid-topics/ft-wc-utils": "1.0.63",
22
+ "@fluid-topics/ft-app-context": "1.1.1",
23
+ "@fluid-topics/ft-wc-utils": "1.1.1",
24
24
  "@reduxjs/toolkit": "^1.6.2",
25
- "lit": "2.7.2"
25
+ "lit": "3.1.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@fluid-topics/public-api": "1.0.50"
28
+ "@fluid-topics/public-api": "1.0.51"
29
29
  },
30
- "gitHead": "020d13bf82a28437f4d7a7395ad9b628bc4342f1"
30
+ "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
31
31
  }