@pronto-tools-and-more/components 9.2.0 → 9.4.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.
package/dist/main.js
CHANGED
@@ -242,7 +242,25 @@ var Heading = ({
|
|
242
242
|
};
|
243
243
|
|
244
244
|
// src/parts/CreateFilterFromProperties/CreateFilterFromProperties.ts
|
245
|
-
var createFilterFromProperties = (
|
245
|
+
var createFilterFromProperties = ({
|
246
|
+
properties,
|
247
|
+
authorId
|
248
|
+
}) => {
|
249
|
+
if (authorId) {
|
250
|
+
return [
|
251
|
+
{
|
252
|
+
taxonomies: {
|
253
|
+
content: {
|
254
|
+
value: {
|
255
|
+
id: {
|
256
|
+
value: authorId
|
257
|
+
}
|
258
|
+
}
|
259
|
+
}
|
260
|
+
}
|
261
|
+
}
|
262
|
+
];
|
263
|
+
}
|
246
264
|
const entries = Object.entries(properties);
|
247
265
|
if (entries.length === 0) {
|
248
266
|
return [];
|
@@ -272,9 +290,13 @@ var createFilterFromProperties = (properties) => {
|
|
272
290
|
// src/parts/IssueList/IssueList.tsx
|
273
291
|
var IssueList = ({
|
274
292
|
properties,
|
275
|
-
render
|
293
|
+
render,
|
294
|
+
authorId
|
276
295
|
}) => {
|
277
|
-
const additionalFilter = createFilterFromProperties(
|
296
|
+
const additionalFilter = createFilterFromProperties({
|
297
|
+
properties,
|
298
|
+
authorId
|
299
|
+
});
|
278
300
|
const json = {
|
279
301
|
render,
|
280
302
|
dataSource: {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { IssueListItemRenderer } from "../IssueListItemRenderer/IssueListItemRenderer.ts";
|
2
|
-
export declare const IssueList: ({ properties, render, }: {
|
2
|
+
export declare const IssueList: ({ properties, render, authorId, }: {
|
3
3
|
properties: any;
|
4
|
+
authorId?: string;
|
4
5
|
render: IssueListItemRenderer;
|
5
6
|
}) => import("react").JSX.Element;
|