@pronto-tools-and-more/components 14.9.0 → 14.11.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
@@ -184,12 +184,14 @@ var getArticleListDataSource = ({
|
|
184
184
|
limit,
|
185
185
|
offset,
|
186
186
|
bookmarks,
|
187
|
-
contextId
|
187
|
+
contextId,
|
188
|
+
asContext
|
188
189
|
}) => {
|
189
190
|
if (contextId) {
|
190
191
|
const dataSource2 = {
|
191
192
|
type: "context",
|
192
|
-
data: contextId
|
193
|
+
data: contextId,
|
194
|
+
contextKey: asContext
|
193
195
|
};
|
194
196
|
return dataSource2;
|
195
197
|
}
|
@@ -205,7 +207,8 @@ var getArticleListDataSource = ({
|
|
205
207
|
}
|
206
208
|
}
|
207
209
|
]
|
208
|
-
}
|
210
|
+
},
|
211
|
+
contextKey: asContext
|
209
212
|
};
|
210
213
|
return dataSource2;
|
211
214
|
}
|
@@ -218,7 +221,8 @@ var getArticleListDataSource = ({
|
|
218
221
|
name: {
|
219
222
|
value: collectionName
|
220
223
|
}
|
221
|
-
}
|
224
|
+
},
|
225
|
+
contextKey: asContext
|
222
226
|
};
|
223
227
|
}
|
224
228
|
const additionalFilter = createFilterFromProperties({
|
@@ -254,13 +258,16 @@ var getArticleListDataSource = ({
|
|
254
258
|
}
|
255
259
|
}
|
256
260
|
],
|
257
|
-
contextKey: "content"
|
261
|
+
contextKey: asContext || "content"
|
258
262
|
};
|
259
263
|
return dataSource;
|
260
264
|
};
|
261
265
|
|
262
266
|
// src/parts/ArticleList/ArticleList.tsx
|
263
267
|
var getContentKey = (element) => {
|
268
|
+
if (element.dataSource.contextKey) {
|
269
|
+
return `'${element.dataSource.contextKey}'`;
|
270
|
+
}
|
264
271
|
if (element.dataSource.type === "collection-content") {
|
265
272
|
return "'collection-content'";
|
266
273
|
}
|
@@ -325,7 +332,8 @@ var ArticleList = ({
|
|
325
332
|
collectionName,
|
326
333
|
noContentFound,
|
327
334
|
bookmarks,
|
328
|
-
contextId
|
335
|
+
contextId,
|
336
|
+
asContext
|
329
337
|
}) => {
|
330
338
|
const dataSource = getArticleListDataSource({
|
331
339
|
properties,
|
@@ -336,7 +344,8 @@ var ArticleList = ({
|
|
336
344
|
offset,
|
337
345
|
collectionName,
|
338
346
|
bookmarks,
|
339
|
-
contextId
|
347
|
+
contextId,
|
348
|
+
asContext
|
340
349
|
});
|
341
350
|
const json = {
|
342
351
|
render,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ArticleListItemRenderer } from "../ArticleListItemRenderer/ArticleListItemRenderer.ts";
|
2
|
-
export declare const ArticleList: ({ properties, render, authorId, categoryId, bundleId, limit, offset, collectionName, noContentFound, bookmarks, contextId, }: {
|
2
|
+
export declare const ArticleList: ({ properties, render, authorId, categoryId, bundleId, limit, offset, collectionName, noContentFound, bookmarks, contextId, asContext, }: {
|
3
3
|
properties?: any;
|
4
4
|
authorId?: string;
|
5
5
|
categoryId?: string;
|
@@ -11,4 +11,5 @@ export declare const ArticleList: ({ properties, render, authorId, categoryId, b
|
|
11
11
|
noContentFound?: string;
|
12
12
|
bookmarks?: boolean;
|
13
13
|
contextId?: string;
|
14
|
+
asContext?: string;
|
14
15
|
}) => import("react").JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const getArticleListDataSource: ({ properties, authorId, categoryId, bundleId, collectionName, limit, offset, bookmarks, contextId, }: {
|
1
|
+
export declare const getArticleListDataSource: ({ properties, authorId, categoryId, bundleId, collectionName, limit, offset, bookmarks, contextId, asContext, }: {
|
2
2
|
properties: any;
|
3
3
|
authorId: any;
|
4
4
|
categoryId: any;
|
@@ -8,9 +8,11 @@ export declare const getArticleListDataSource: ({ properties, authorId, category
|
|
8
8
|
offset: any;
|
9
9
|
bookmarks: any;
|
10
10
|
contextId: any;
|
11
|
+
asContext: any;
|
11
12
|
}) => {
|
12
13
|
type: string;
|
13
14
|
data: any;
|
15
|
+
contextKey: any;
|
14
16
|
} | {
|
15
17
|
type: string;
|
16
18
|
filter: {
|
@@ -21,6 +23,7 @@ export declare const getArticleListDataSource: ({ properties, authorId, category
|
|
21
23
|
};
|
22
24
|
}[];
|
23
25
|
};
|
26
|
+
contextKey: any;
|
24
27
|
} | {
|
25
28
|
type: string;
|
26
29
|
filter: {
|
@@ -33,7 +36,7 @@ export declare const getArticleListDataSource: ({ properties, authorId, category
|
|
33
36
|
direction: string;
|
34
37
|
};
|
35
38
|
}[];
|
36
|
-
contextKey:
|
39
|
+
contextKey: any;
|
37
40
|
} | {
|
38
41
|
type: string;
|
39
42
|
limit: string;
|
@@ -43,4 +46,5 @@ export declare const getArticleListDataSource: ({ properties, authorId, category
|
|
43
46
|
value: any;
|
44
47
|
};
|
45
48
|
};
|
49
|
+
contextKey: any;
|
46
50
|
};
|