@fluid-topics/ft-reader-context 2.2.21 → 2.2.24

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.
@@ -18,5 +18,5 @@ export declare const createReaderStore: (id: string) => FtReduxStore<FtReaderSta
18
18
  setTranslationLoading: (state: FtReaderState, action: PayloadAction<FtReaderState["translation"]["isLoading"]>) => void;
19
19
  setTranslationError: (state: FtReaderState, action: PayloadAction<FtReaderState["translation"]["isError"]>) => void;
20
20
  setTopicsRating: (state: FtReaderState, action: PayloadAction<FtReaderState["topicsRating"]>) => void;
21
- }, import("redux").UnknownAction>;
21
+ }, import("@reduxjs/toolkit").UnknownAction>;
22
22
  export {};
@@ -17,7 +17,7 @@ export declare class FtOfficialReaderService extends FtReaderService {
17
17
  protected makeMapFeedbackRequest(message: string, from?: string): Promise<void>;
18
18
  protected makeRateMapRequest(type: FtRatingType | FtRatingTypeKeys, value: number): Promise<void>;
19
19
  protected makeRateTopicRequest(tocId: string, type: FtRatingType | FtRatingTypeKeys, value: number): Promise<void>;
20
- protected makeTopicFeedbackRequest(tocId: string, message: string, from?: string): Promise<void>;
20
+ protected makeTopicFeedbackRequest(tocId: string, message: string, from?: string, metadataFilters?: FtMetadataFilter[]): Promise<void>;
21
21
  protected makeUnrateMapRequest(): Promise<void>;
22
22
  protected makeUnrateTopicRequest(tocId: string): Promise<void>;
23
23
  protected getReaderLinkPrefix(): string;
@@ -88,8 +88,8 @@ export class FtOfficialReaderService extends FtReaderService {
88
88
  makeRateTopicRequest(tocId, type, value) {
89
89
  return this.api.rateTopic(this.mapId, tocId, type, value);
90
90
  }
91
- makeTopicFeedbackRequest(tocId, message, from) {
92
- return this.api.sendTopicFeedback(this.mapId, tocId, message, from);
91
+ makeTopicFeedbackRequest(tocId, message, from, metadataFilters) {
92
+ return this.api.sendTopicFeedback(this.mapId, tocId, message, from, metadataFilters);
93
93
  }
94
94
  makeUnrateMapRequest() {
95
95
  return this.api.unrateMap(this.mapId);
@@ -20,7 +20,7 @@ export declare abstract class FtReaderService extends FtServiceWithCache {
20
20
  protected abstract makeMapFeedbackRequest(message: string, from?: string): Promise<void>;
21
21
  protected abstract makeRateTopicRequest(tocId: string, type: FtRatingType | FtRatingTypeKeys, value: number): Promise<void>;
22
22
  protected abstract makeUnrateTopicRequest(tocId: string): Promise<void>;
23
- protected abstract makeTopicFeedbackRequest(tocId: string, message: string, from?: string): Promise<void>;
23
+ protected abstract makeTopicFeedbackRequest(tocId: string, message: string, from?: string, metadataFilters?: FtMetadataFilter[]): Promise<void>;
24
24
  protected abstract getReaderLinkPrefix(): string;
25
25
  protected abstract isFeatureAvailable(feature: FtReaderFeatures): boolean;
26
26
  private _mapId;
@@ -73,7 +73,7 @@ export declare abstract class FtReaderService extends FtServiceWithCache {
73
73
  rateTopic(tocId: string, type: FtRatingType | FtRatingTypeKeys, value: number): Promise<void>;
74
74
  unrateTopic(tocId: string): Promise<void>;
75
75
  private clearRatingIfNecessary;
76
- sendTopicFeedback(tocId: string, message: string, from?: string): Promise<void>;
76
+ sendTopicFeedback(tocId: string, message: string, from?: string, metadataFilters?: FtMetadataFilter[]): Promise<void>;
77
77
  fontsStylesheet(): string;
78
78
  themeStylesheet(): string;
79
79
  buildBreadcrumb(tocId: string, translationInput?: FtTranslationSettings): Array<FtReaderBreadcrumb>;
@@ -226,8 +226,8 @@ export class FtReaderService extends FtServiceWithCache {
226
226
  this.cache.clear("ratingSummary");
227
227
  }
228
228
  }
229
- sendTopicFeedback(tocId, message, from) {
230
- return this.makeTopicFeedbackRequest(tocId, message, from);
229
+ sendTopicFeedback(tocId, message, from, metadataFilters) {
230
+ return this.makeTopicFeedbackRequest(tocId, message, from, metadataFilters);
231
231
  }
232
232
  fontsStylesheet() {
233
233
  return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-context",
3
- "version": "2.2.21",
3
+ "version": "2.2.24",
4
4
  "description": "Context block for integrated reader components",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,14 @@
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": "2.2.21",
23
- "@fluid-topics/ft-wc-utils": "2.2.21",
22
+ "@fluid-topics/ft-app-context": "2.2.24",
23
+ "@fluid-topics/ft-search-context": "2.2.24",
24
+ "@fluid-topics/ft-wc-utils": "2.2.24",
25
+ "@reduxjs/toolkit": "2.12.0",
24
26
  "lit": "3.3.3"
25
27
  },
26
28
  "devDependencies": {
27
- "@fluid-topics/public-api": "1.0.143"
29
+ "@fluid-topics/public-api": "1.0.144"
28
30
  },
29
- "gitHead": "633b6db0fae9f56c46c4211bf5bce2c73ef31ecb"
31
+ "gitHead": "bd579348499e7551334af2e9dda560b9d05b3e41"
30
32
  }