@pronto-tools-and-more/components 12.0.0 → 12.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -250,7 +250,9 @@ var getNodeInfo = (element) => {
250
250
  metadataVideoPodcast: `$functions.id($context, ${contentKey}, 'metadataVideoPodcast')`,
251
251
  readTime: `$functions.id($context, ${contentKey}, 'readTime')`,
252
252
  publicationDate: `$functions.id($context, ${contentKey}, 'publicationDate')`,
253
- id: `$functions.id($context, ${contentKey}, 'id')`
253
+ id: `$functions.id($context, ${contentKey}, 'id')`,
254
+ primaryCategoryName: `$functions.id($context, ${contentKey}, 'primaryCategoryName')`,
255
+ primaryCategoryId: `$functions.id($context, ${contentKey}, 'primaryCategoryId')`
254
256
  };
255
257
  }
256
258
  return {
@@ -261,7 +263,9 @@ var getNodeInfo = (element) => {
261
263
  metadataVideoPodcast: `$functions.id($context, ${contentKey}, 'properties', 'metadataVideoPodcast')`,
262
264
  readTime: `$functions.getReadTime($functions.id($context, ${contentKey}))`,
263
265
  publicationDate: `$functions.id($context, ${contentKey}, 'publicationDate')`,
264
- id: `$functions.id($context, ${contentKey}, 'id')`
266
+ id: `$functions.id($context, ${contentKey}, 'id')`,
267
+ primaryCategoryId: `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'id')`,
268
+ primaryCategoryName: `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'name')`
265
269
  };
266
270
  };
267
271
  var unrender2 = (element, renderElement) => {
@@ -8,4 +8,6 @@ export interface IArticleListItem {
8
8
  readonly readTime?: string;
9
9
  readonly publicationDate: string;
10
10
  readonly id: string;
11
+ readonly primaryCategoryName?: string;
12
+ readonly primaryCategoryId?: string;
11
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "12.0.0",
3
+ "version": "12.1.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",