@pronto-tools-and-more/components 15.20.0 → 15.22.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 (2) hide show
  1. package/dist/main.js +10 -3
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -870,9 +870,16 @@ var getDossierDataSource = ({
870
870
 
871
871
  // src/parts/DossierList/DossierList.tsx
872
872
  var getContentKey3 = (element) => {
873
- const isCollection = element.dataSource.type === "collection-content";
874
- const contentKey = isCollection ? "'collection-content'" : "'content'";
875
- return contentKey;
873
+ if (element.dataSource.type === "context") {
874
+ return `'context'`;
875
+ }
876
+ if (element.dataSource.contextKey) {
877
+ return `'context'`;
878
+ }
879
+ if (element.dataSource.type === "collection-content") {
880
+ return "'collection-content'";
881
+ }
882
+ return "'content'";
876
883
  };
877
884
  var unrender8 = (element, renderElement) => {
878
885
  const { render, language, ...rest } = element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "15.20.0",
3
+ "version": "15.22.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",