@fluid-topics/ft-reader-context 1.1.107 → 1.1.109

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.
@@ -30,41 +30,49 @@ export class FtOfficialReaderService extends FtReaderService {
30
30
  return this.api.getMapAttachments(this.mapId).catch(() => []);
31
31
  }
32
32
  fetchRelativesForDocument(metadataPivotKey, metadataPivotValues) {
33
- return this.api.search({
33
+ const request = {
34
34
  query: "",
35
35
  paging: { page: 1, perPage: -1 },
36
36
  scope: "DOCUMENTS",
37
- filters: [
37
+ metadataFilters: [
38
38
  {
39
- negative: false,
40
- values: metadataPivotValues,
41
- key: metadataPivotKey
39
+ key: metadataPivotKey,
40
+ valueFilter: {
41
+ negative: false,
42
+ values: metadataPivotValues,
43
+ }
42
44
  }
43
45
  ],
44
46
  sort: [],
45
47
  facets: []
46
- });
48
+ };
49
+ return this.api.search(request);
47
50
  }
48
51
  fetchRelativesForTopicInMap(mapId, metadataPivotKey, metadataPivotValues) {
49
- return this.api.search({
52
+ const request = {
50
53
  query: "",
51
54
  paging: { page: 1, perPage: 1 },
52
55
  scope: "ALL_TOPICS",
53
- filters: [
56
+ metadataFilters: [
54
57
  {
55
- negative: false,
56
- values: metadataPivotValues,
57
- key: metadataPivotKey
58
+ key: metadataPivotKey,
59
+ valueFilter: {
60
+ negative: false,
61
+ values: metadataPivotValues,
62
+ }
58
63
  },
59
64
  {
60
- negative: false,
61
- values: [mapId],
62
65
  key: "ft:publicationId",
66
+ valueFilter: {
67
+ negative: false,
68
+ values: [mapId],
69
+ }
63
70
  }
64
71
  ],
65
72
  sort: [],
66
73
  facets: []
67
- });
74
+ };
75
+ return this.api.search(request);
68
76
  }
69
77
  makeMapFeedbackRequest(message, from) {
70
78
  return this.api.sendMapFeedback(this.mapId, message, from);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-context",
3
- "version": "1.1.107",
3
+ "version": "1.1.109",
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.1.107",
23
- "@fluid-topics/ft-wc-utils": "1.1.107",
22
+ "@fluid-topics/ft-app-context": "1.1.109",
23
+ "@fluid-topics/ft-wc-utils": "1.1.109",
24
24
  "@reduxjs/toolkit": "^1.6.2",
25
25
  "lit": "3.1.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@fluid-topics/public-api": "1.0.75"
28
+ "@fluid-topics/public-api": "1.0.76"
29
29
  },
30
- "gitHead": "8dd7bc8f7eb8c278b8d3ac319694daa86f9ac9af"
30
+ "gitHead": "560a26d338b5eb666a7aca5cb348c4f972deac82"
31
31
  }