@plone/volto 16.22.1 → 16.23.0

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.
Files changed (49) hide show
  1. package/.changelog.draft +8 -15
  2. package/.yarn/install-state.gz +0 -0
  3. package/CHANGELOG.md +91 -1
  4. package/CONTRIBUTING.md +5 -1
  5. package/README.md +6 -0
  6. package/locales/es/LC_MESSAGES/volto.po +10 -10
  7. package/locales/es.json +1 -1
  8. package/package.json +1 -1
  9. package/packages/volto-slate/build/messages/src/blocks/Table/TableBlockEdit.json +90 -0
  10. package/packages/volto-slate/build/messages/src/blocks/Text/DefaultTextBlockEditor.json +6 -0
  11. package/packages/volto-slate/build/messages/src/blocks/Text/DetachedTextBlockEditor.json +6 -0
  12. package/packages/volto-slate/build/messages/src/blocks/Text/SlashMenu.json +6 -0
  13. package/packages/volto-slate/build/messages/src/editor/plugins/AdvancedLink/index.json +10 -0
  14. package/packages/volto-slate/build/messages/src/editor/plugins/Link/index.json +10 -0
  15. package/packages/volto-slate/build/messages/src/editor/plugins/Table/index.json +30 -0
  16. package/packages/volto-slate/build/messages/src/elementEditor/messages.json +10 -0
  17. package/packages/volto-slate/build/messages/src/widgets/HtmlSlateWidget.json +6 -0
  18. package/packages/volto-slate/build/messages/src/widgets/RichTextWidgetView.json +6 -0
  19. package/packages/volto-slate/package.json +1 -1
  20. package/pyvenv.cfg +3 -0
  21. package/share/man/man1/ttx.1 +225 -0
  22. package/src/components/manage/Blocks/Block/Settings.jsx +2 -0
  23. package/src/components/manage/Blocks/Block/Settings.test.jsx +90 -0
  24. package/src/components/manage/Blocks/Image/View.jsx +2 -1
  25. package/src/components/manage/Blocks/Listing/withQuerystringResults.jsx +18 -11
  26. package/src/components/manage/Contents/Contents.jsx +27 -0
  27. package/src/components/manage/Controlpanels/Rules/AddRule.jsx +1 -1
  28. package/src/components/manage/Controlpanels/Rules/EditRule.jsx +1 -1
  29. package/src/components/manage/Diff/DiffField.jsx +25 -1
  30. package/src/components/manage/Form/BlockDataForm.jsx +3 -2
  31. package/src/components/manage/Form/BlockDataForm.test.jsx +34 -2
  32. package/src/components/manage/Sharing/Sharing.jsx +11 -5
  33. package/src/components/manage/Widgets/ArrayWidget.jsx +3 -1
  34. package/src/components/manage/Widgets/ArrayWidget.test.jsx +45 -1
  35. package/src/components/manage/Widgets/FormFieldWrapper.jsx +1 -1
  36. package/src/components/manage/Widgets/SelectWidget.jsx +15 -1
  37. package/src/components/manage/Widgets/SelectWidget.test.jsx +45 -1
  38. package/src/components/theme/Sitemap/Sitemap.jsx +24 -13
  39. package/src/components/theme/Sitemap/Sitemap.test.jsx +23 -2
  40. package/styles/Vocab/Plone/accept.txt +9 -2
  41. package/styles/Vocab/Plone/reject.txt +2 -5
  42. package/theme/themes/pastanaga/collections/form.overrides +46 -0
  43. package/theme/themes/pastanaga/elements/input.overrides +6 -0
  44. package/theme/themes/pastanaga/elements/label.overrides +10 -0
  45. package/.gitignore~ +0 -71
  46. package/locales/volto.pot~ +0 -4705
  47. package/news/4547.breaking~ +0 -1
  48. package/package.json~ +0 -444
  49. package/src/config/index.js~ +0 -223
@@ -0,0 +1,90 @@
1
+ [
2
+ {
3
+ "id": "Insert row before",
4
+ "defaultMessage": "Insert row before"
5
+ },
6
+ {
7
+ "id": "Insert row after",
8
+ "defaultMessage": "Insert row after"
9
+ },
10
+ {
11
+ "id": "Delete row",
12
+ "defaultMessage": "Delete row"
13
+ },
14
+ {
15
+ "id": "Insert col before",
16
+ "defaultMessage": "Insert col before"
17
+ },
18
+ {
19
+ "id": "Insert col after",
20
+ "defaultMessage": "Insert col after"
21
+ },
22
+ {
23
+ "id": "Delete col",
24
+ "defaultMessage": "Delete col"
25
+ },
26
+ {
27
+ "id": "Hide headers",
28
+ "defaultMessage": "Hide headers"
29
+ },
30
+ {
31
+ "id": "Make the table sortable",
32
+ "defaultMessage": "Make the table sortable"
33
+ },
34
+ {
35
+ "id": "Visible only in view mode",
36
+ "defaultMessage": "Visible only in view mode"
37
+ },
38
+ {
39
+ "id": "Fixed width table cells",
40
+ "defaultMessage": "Fixed width table cells"
41
+ },
42
+ {
43
+ "id": "Make the table compact",
44
+ "defaultMessage": "Make the table compact"
45
+ },
46
+ {
47
+ "id": "Reduce complexity",
48
+ "defaultMessage": "Reduce complexity"
49
+ },
50
+ {
51
+ "id": "Divide each row into separate cells",
52
+ "defaultMessage": "Divide each row into separate cells"
53
+ },
54
+ {
55
+ "id": "Table color inverted",
56
+ "defaultMessage": "Table color inverted"
57
+ },
58
+ {
59
+ "id": "Stripe alternate rows with color",
60
+ "defaultMessage": "Stripe alternate rows with color"
61
+ },
62
+ {
63
+ "id": "Left",
64
+ "defaultMessage": "Left"
65
+ },
66
+ {
67
+ "id": "Center",
68
+ "defaultMessage": "Center"
69
+ },
70
+ {
71
+ "id": "Right",
72
+ "defaultMessage": "Right"
73
+ },
74
+ {
75
+ "id": "Bottom",
76
+ "defaultMessage": "Bottom"
77
+ },
78
+ {
79
+ "id": "Middle",
80
+ "defaultMessage": "Middle"
81
+ },
82
+ {
83
+ "id": "Top",
84
+ "defaultMessage": "Top"
85
+ },
86
+ {
87
+ "id": "Table",
88
+ "defaultMessage": "Table"
89
+ }
90
+ ]
@@ -0,0 +1,6 @@
1
+ [
2
+ {
3
+ "id": "Type text…",
4
+ "defaultMessage": "Type text…"
5
+ }
6
+ ]
@@ -0,0 +1,6 @@
1
+ [
2
+ {
3
+ "id": "Type text…",
4
+ "defaultMessage": "Type text…"
5
+ }
6
+ ]
@@ -0,0 +1,6 @@
1
+ [
2
+ {
3
+ "id": "No matching blocks",
4
+ "defaultMessage": "No matching blocks"
5
+ }
6
+ ]
@@ -0,0 +1,10 @@
1
+ [
2
+ {
3
+ "id": "Edit link",
4
+ "defaultMessage": "Edit link"
5
+ },
6
+ {
7
+ "id": "Remove link",
8
+ "defaultMessage": "Remove link"
9
+ }
10
+ ]
@@ -0,0 +1,10 @@
1
+ [
2
+ {
3
+ "id": "Add link",
4
+ "defaultMessage": "Add link"
5
+ },
6
+ {
7
+ "id": "Edit link",
8
+ "defaultMessage": "Edit link"
9
+ }
10
+ ]
@@ -0,0 +1,30 @@
1
+ [
2
+ {
3
+ "id": "Delete table",
4
+ "defaultMessage": "Delete table"
5
+ },
6
+ {
7
+ "id": "Insert row before",
8
+ "defaultMessage": "Insert row before"
9
+ },
10
+ {
11
+ "id": "Insert row after",
12
+ "defaultMessage": "Insert row after"
13
+ },
14
+ {
15
+ "id": "Delete row",
16
+ "defaultMessage": "Delete row"
17
+ },
18
+ {
19
+ "id": "Insert col before",
20
+ "defaultMessage": "Insert col before"
21
+ },
22
+ {
23
+ "id": "Insert col after",
24
+ "defaultMessage": "Insert col after"
25
+ },
26
+ {
27
+ "id": "Delete col",
28
+ "defaultMessage": "Delete col"
29
+ }
30
+ ]
@@ -0,0 +1,10 @@
1
+ [
2
+ {
3
+ "id": "Edit element",
4
+ "defaultMessage": "Edit element"
5
+ },
6
+ {
7
+ "id": "Remove element",
8
+ "defaultMessage": "Remove element"
9
+ }
10
+ ]
@@ -0,0 +1,6 @@
1
+ [
2
+ {
3
+ "id": "An error has occurred while editing \"{name}\" field. We have been notified and we are looking into it. Please save your work and retry. If the issue persists please contact the site administrator.",
4
+ "defaultMessage": "An error has occurred while editing \"{name}\" field. We have been notified and we are looking into it. Please save your work and retry. If the issue persists please contact the site administrator."
5
+ }
6
+ ]
@@ -0,0 +1,6 @@
1
+ [
2
+ {
3
+ "id": "An error has occurred while rendering \"{name}\" field. We have been notified and we are looking into it. If the issue persists please contact the site administrator.",
4
+ "defaultMessage": "An error has occurred while rendering \"{name}\" field. We have been notified and we are looking into it. If the issue persists please contact the site administrator."
5
+ }
6
+ ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plone/volto-slate",
3
- "version": "16.22.1",
3
+ "version": "16.23.0",
4
4
  "description": "Slate.js integration with Volto",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/pyvenv.cfg ADDED
@@ -0,0 +1,3 @@
1
+ home = /opt/homebrew/opt/python@3.9/bin
2
+ include-system-site-packages = false
3
+ version = 3.9.16
@@ -0,0 +1,225 @@
1
+ .Dd May 18, 2004
2
+ .\" ttx is not specific to any OS, but contrary to what groff_mdoc(7)
3
+ .\" seems to imply, entirely omitting the .Os macro causes 'BSD' to
4
+ .\" be used, so I give a zero-width space as its argument.
5
+ .Os \&
6
+ .\" The "FontTools Manual" argument apparently has no effect in
7
+ .\" groff 1.18.1. I think it is a bug in the -mdoc groff package.
8
+ .Dt TTX 1 "FontTools Manual"
9
+ .Sh NAME
10
+ .Nm ttx
11
+ .Nd tool for manipulating TrueType and OpenType fonts
12
+ .Sh SYNOPSIS
13
+ .Nm
14
+ .Bk
15
+ .Op Ar option ...
16
+ .Ek
17
+ .Bk
18
+ .Ar file ...
19
+ .Ek
20
+ .Sh DESCRIPTION
21
+ .Nm
22
+ is a tool for manipulating TrueType and OpenType fonts. It can convert
23
+ TrueType and OpenType fonts to and from an
24
+ .Tn XML Ns -based format called
25
+ .Tn TTX .
26
+ .Tn TTX
27
+ files have a
28
+ .Ql .ttx
29
+ extension.
30
+ .Pp
31
+ For each
32
+ .Ar file
33
+ argument it is given,
34
+ .Nm
35
+ detects whether it is a
36
+ .Ql .ttf ,
37
+ .Ql .otf
38
+ or
39
+ .Ql .ttx
40
+ file and acts accordingly: if it is a
41
+ .Ql .ttf
42
+ or
43
+ .Ql .otf
44
+ file, it generates a
45
+ .Ql .ttx
46
+ file; if it is a
47
+ .Ql .ttx
48
+ file, it generates a
49
+ .Ql .ttf
50
+ or
51
+ .Ql .otf
52
+ file.
53
+ .Pp
54
+ By default, every output file is created in the same directory as the
55
+ corresponding input file and with the same name except for the
56
+ extension, which is substituted appropriately.
57
+ .Nm
58
+ never overwrites existing files; if necessary, it appends a suffix to
59
+ the output file name before the extension, as in
60
+ .Pa Arial#1.ttf .
61
+ .Ss "General options"
62
+ .Bl -tag -width ".Fl t Ar table"
63
+ .It Fl h
64
+ Display usage information.
65
+ .It Fl d Ar dir
66
+ Write the output files to directory
67
+ .Ar dir
68
+ instead of writing every output file to the same directory as the
69
+ corresponding input file.
70
+ .It Fl o Ar file
71
+ Write the output to
72
+ .Ar file
73
+ instead of writing it to the same directory as the
74
+ corresponding input file.
75
+ .It Fl v
76
+ Be verbose. Write more messages to the standard output describing what
77
+ is being done.
78
+ .It Fl a
79
+ Allow virtual glyphs ID's on compile or decompile.
80
+ .El
81
+ .Ss "Dump options"
82
+ The following options control the process of dumping font files
83
+ (TrueType or OpenType) to
84
+ .Tn TTX
85
+ files.
86
+ .Bl -tag -width ".Fl t Ar table"
87
+ .It Fl l
88
+ List table information. Instead of dumping the font to a
89
+ .Tn TTX
90
+ file, display minimal information about each table.
91
+ .It Fl t Ar table
92
+ Dump table
93
+ .Ar table .
94
+ This option may be given multiple times to dump several tables at
95
+ once. When not specified, all tables are dumped.
96
+ .It Fl x Ar table
97
+ Exclude table
98
+ .Ar table
99
+ from the list of tables to dump. This option may be given multiple
100
+ times to exclude several tables from the dump. The
101
+ .Fl t
102
+ and
103
+ .Fl x
104
+ options are mutually exclusive.
105
+ .It Fl s
106
+ Split tables. Dump each table to a separate
107
+ .Tn TTX
108
+ file and write (under the name that would have been used for the output
109
+ file if the
110
+ .Fl s
111
+ option had not been given) one small
112
+ .Tn TTX
113
+ file containing references to the individual table dump files. This
114
+ file can be used as input to
115
+ .Nm
116
+ as long as the referenced files can be found in the same directory.
117
+ .It Fl i
118
+ .\" XXX: I suppose OpenType programs (exist and) are also affected.
119
+ Don't disassemble TrueType instructions. When this option is specified,
120
+ all TrueType programs (glyph programs, the font program and the
121
+ pre-program) are written to the
122
+ .Tn TTX
123
+ file as hexadecimal data instead of
124
+ assembly. This saves some time and results in smaller
125
+ .Tn TTX
126
+ files.
127
+ .It Fl y Ar n
128
+ When decompiling a TrueType Collection (TTC) file,
129
+ decompile font number
130
+ .Ar n ,
131
+ starting from 0.
132
+ .El
133
+ .Ss "Compilation options"
134
+ The following options control the process of compiling
135
+ .Tn TTX
136
+ files into font files (TrueType or OpenType):
137
+ .Bl -tag -width ".Fl t Ar table"
138
+ .It Fl m Ar fontfile
139
+ Merge the input
140
+ .Tn TTX
141
+ file
142
+ .Ar file
143
+ with
144
+ .Ar fontfile .
145
+ No more than one
146
+ .Ar file
147
+ argument can be specified when this option is used.
148
+ .It Fl b
149
+ Don't recalculate glyph bounding boxes. Use the values in the
150
+ .Tn TTX
151
+ file as is.
152
+ .El
153
+ .Sh "THE TTX FILE FORMAT"
154
+ You can find some information about the
155
+ .Tn TTX
156
+ file format in
157
+ .Pa documentation.html .
158
+ In particular, you will find in that file the list of tables understood by
159
+ .Nm
160
+ and the relations between TrueType GlyphIDs and the glyph names used in
161
+ .Tn TTX
162
+ files.
163
+ .Sh EXAMPLES
164
+ In the following examples, all files are read from and written to the
165
+ current directory. Additionally, the name given for the output file
166
+ assumes in every case that it did not exist before
167
+ .Nm
168
+ was invoked.
169
+ .Pp
170
+ Dump the TrueType font contained in
171
+ .Pa FreeSans.ttf
172
+ to
173
+ .Pa FreeSans.ttx :
174
+ .Pp
175
+ .Dl ttx FreeSans.ttf
176
+ .Pp
177
+ Compile
178
+ .Pa MyFont.ttx
179
+ into a TrueType or OpenType font file:
180
+ .Pp
181
+ .Dl ttx MyFont.ttx
182
+ .Pp
183
+ List the tables in
184
+ .Pa FreeSans.ttf
185
+ along with some information:
186
+ .Pp
187
+ .Dl ttx -l FreeSans.ttf
188
+ .Pp
189
+ Dump the
190
+ .Sq cmap
191
+ table from
192
+ .Pa FreeSans.ttf
193
+ to
194
+ .Pa FreeSans.ttx :
195
+ .Pp
196
+ .Dl ttx -t cmap FreeSans.ttf
197
+ .Sh NOTES
198
+ On MS\-Windows and MacOS,
199
+ .Nm
200
+ is available as a graphical application to which files can be dropped.
201
+ .Sh SEE ALSO
202
+ .Pa documentation.html
203
+ .Pp
204
+ .Xr fontforge 1 ,
205
+ .Xr ftinfo 1 ,
206
+ .Xr gfontview 1 ,
207
+ .Xr xmbdfed 1 ,
208
+ .Xr Font::TTF 3pm
209
+ .Sh AUTHORS
210
+ .Nm
211
+ was written by
212
+ .An -nosplit
213
+ .An "Just van Rossum" Aq just@letterror.com .
214
+ .Pp
215
+ This manual page was written by
216
+ .An "Florent Rougon" Aq f.rougon@free.fr
217
+ for the Debian GNU/Linux system based on the existing FontTools
218
+ documentation. It may be freely used, modified and distributed without
219
+ restrictions.
220
+ .\" For Emacs:
221
+ .\" Local Variables:
222
+ .\" fill-column: 72
223
+ .\" sentence-end: "[.?!][]\"')}]*\\($\\| $\\| \\| \\)[ \n]*"
224
+ .\" sentence-end-double-space: t
225
+ .\" End:
@@ -14,7 +14,9 @@ const Settings = ({ data, block, onChangeBlock, schema }) => {
14
14
  [id]: value,
15
15
  });
16
16
  }}
17
+ onChangeBlock={onChangeBlock}
17
18
  formData={data}
19
+ applySchemaEnhancers={false}
18
20
  />
19
21
  );
20
22
  };
@@ -0,0 +1,90 @@
1
+ import React from 'react';
2
+ import Settings from './Settings';
3
+ import { render } from '@testing-library/react';
4
+ import '@testing-library/jest-dom/extend-expect';
5
+ import configureStore from 'redux-mock-store';
6
+ import config from '@plone/volto/registry';
7
+ import { Provider } from 'react-intl-redux';
8
+
9
+ const mockStore = configureStore();
10
+
11
+ const withStateManagement = (Component) => ({ ...props }) => {
12
+ const [formData, onChangeFormData] = React.useState(props.formData || {});
13
+ const onChangeField = (id, value) => {
14
+ onChangeFormData({ ...formData, [id]: value });
15
+ };
16
+
17
+ // NOTE: onChangeBlock here is not "really" implemented
18
+
19
+ return (
20
+ <Component
21
+ {...props}
22
+ onChangeField={onChangeField}
23
+ onChangeBlock={(block, data) => onChangeFormData(data)}
24
+ formData={formData}
25
+ />
26
+ );
27
+ };
28
+
29
+ beforeAll(() => {
30
+ config.widgets = {
31
+ id: {},
32
+ widget: {},
33
+ vocabulary: {},
34
+ choices: (props) => (
35
+ <div className="SelectWidget">{JSON.stringify(props.choices)}</div>
36
+ ),
37
+ type: {},
38
+ default: () => <div className="TextWidget" />,
39
+ };
40
+
41
+ config.blocks.blocksConfig = {
42
+ ...config.blocks.blocksConfig,
43
+
44
+ testBlock: {
45
+ id: 'testBlock',
46
+ variations: [
47
+ {
48
+ id: 'default',
49
+ title: 'Default',
50
+ isDefault: true,
51
+ },
52
+ {
53
+ id: 'extra',
54
+ title: 'Extra',
55
+ },
56
+ ],
57
+ },
58
+ };
59
+ });
60
+
61
+ describe('Settings', () => {
62
+ it('renders block settings form without schema enhancers', () => {
63
+ const WrappedSettings = withStateManagement(Settings);
64
+ const store = mockStore({
65
+ intl: {
66
+ locale: 'en',
67
+ messages: {},
68
+ },
69
+ });
70
+ const testSchema = {
71
+ fieldsets: [{ title: 'Default', id: 'default', fields: [] }],
72
+ properties: {},
73
+ required: [],
74
+ };
75
+ const data = {
76
+ '@type': 'testBlock',
77
+ };
78
+ const { container } = render(
79
+ <Provider store={store}>
80
+ <WrappedSettings
81
+ data={data}
82
+ block="test"
83
+ schema={testSchema}
84
+ onChangeBlock={(block, value) => {}}
85
+ />
86
+ </Provider>,
87
+ );
88
+ expect(container).toMatchSnapshot();
89
+ });
90
+ });
@@ -15,7 +15,7 @@ import { flattenToAppURL, isInternalURL } from '@plone/volto/helpers';
15
15
  * @class View
16
16
  * @extends Component
17
17
  */
18
- export const View = ({ data, detached }) => {
18
+ export const View = ({ data, detached, className }) => {
19
19
  const href = data?.href?.[0]?.['@id'] || '';
20
20
  return (
21
21
  <p
@@ -26,6 +26,7 @@ export const View = ({ data, detached }) => {
26
26
  detached,
27
27
  },
28
28
  data.align,
29
+ className,
29
30
  )}
30
31
  >
31
32
  {data.url && (
@@ -23,7 +23,7 @@ export default function withQuerystringResults(WrappedComponent) {
23
23
  } = props;
24
24
  const { settings } = config;
25
25
  const querystring = data.querystring || data; // For backwards compat with data saved before Blocks schema. Note, this is also how the Search block passes data to ListingBody
26
-
26
+ const subrequestID = content?.UID + '-' + id;
27
27
  const { b_size = settings.defaultPageSize } = querystring; // batchsize
28
28
 
29
29
  // save the path so it won't trigger dispatch on eager router location change
@@ -52,31 +52,33 @@ export default function withQuerystringResults(WrappedComponent) {
52
52
 
53
53
  const folderItems = content?.is_folderish ? content.items : [];
54
54
  const hasQuery = querystring?.query?.length > 0;
55
- const hasLoaded = hasQuery ? querystringResults?.[id]?.loaded : true;
55
+ const hasLoaded = hasQuery
56
+ ? querystringResults?.[subrequestID]?.loaded
57
+ : true;
56
58
 
57
59
  const listingItems = hasQuery
58
- ? querystringResults?.[id]?.items || []
60
+ ? querystringResults?.[subrequestID]?.items || []
59
61
  : folderItems;
60
62
 
61
63
  const showAsFolderListing = !hasQuery && content?.items_total > b_size;
62
64
  const showAsQueryListing =
63
- hasQuery && querystringResults?.[id]?.total > b_size;
65
+ hasQuery && querystringResults?.[subrequestID]?.total > b_size;
64
66
 
65
67
  const totalPages = showAsFolderListing
66
68
  ? Math.ceil(content.items_total / b_size)
67
69
  : showAsQueryListing
68
- ? Math.ceil(querystringResults[id].total / b_size)
70
+ ? Math.ceil(querystringResults[subrequestID].total / b_size)
69
71
  : 0;
70
72
 
71
73
  const prevBatch = showAsFolderListing
72
74
  ? content.batching?.prev
73
75
  : showAsQueryListing
74
- ? querystringResults[id].batching?.prev
76
+ ? querystringResults[subrequestID].batching?.prev
75
77
  : null;
76
78
  const nextBatch = showAsFolderListing
77
79
  ? content.batching?.next
78
80
  : showAsQueryListing
79
- ? querystringResults[id].batching?.next
81
+ ? querystringResults[subrequestID].batching?.next
80
82
  : null;
81
83
 
82
84
  const isImageGallery =
@@ -86,7 +88,12 @@ export default function withQuerystringResults(WrappedComponent) {
86
88
  useDeepCompareEffect(() => {
87
89
  if (hasQuery) {
88
90
  dispatch(
89
- getQueryStringResults(initialPath, adaptedQuery, id, currentPage),
91
+ getQueryStringResults(
92
+ initialPath,
93
+ adaptedQuery,
94
+ subrequestID,
95
+ currentPage,
96
+ ),
90
97
  );
91
98
  } else if (isImageGallery && !hasQuery) {
92
99
  // when used as image gallery, it doesn't need a query to list children
@@ -104,7 +111,7 @@ export default function withQuerystringResults(WrappedComponent) {
104
111
  },
105
112
  ],
106
113
  },
107
- id,
114
+ subrequestID,
108
115
  ),
109
116
  );
110
117
  } else {
@@ -113,7 +120,7 @@ export default function withQuerystringResults(WrappedComponent) {
113
120
  adaptedQueryRef.current = adaptedQuery;
114
121
  currentPageRef.current = currentPage;
115
122
  }, [
116
- id,
123
+ subrequestID,
117
124
  isImageGallery,
118
125
  adaptedQuery,
119
126
  hasQuery,
@@ -126,7 +133,7 @@ export default function withQuerystringResults(WrappedComponent) {
126
133
  <WrappedComponent
127
134
  {...props}
128
135
  onPaginationChange={(e, { activePage }) => setCurrentPage(activePage)}
129
- total={querystringResults?.[id]?.total}
136
+ total={querystringResults?.[subrequestID]?.total}
130
137
  batch_size={b_size}
131
138
  currentPage={currentPage}
132
139
  totalPages={totalPages}