@pronto-tools-and-more/components 14.35.0 → 14.36.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
@@ -589,6 +589,11 @@ var Collection = ({
589
589
  return /* @__PURE__ */ React.createElement("div", { className: "Collection" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
590
590
  };
591
591
 
592
+ // src/parts/Conditions/Conditions.ts
593
+ var Conditions = {
594
+ SearchResultsAreEmpty: "!$context.phrase"
595
+ };
596
+
592
597
  // src/parts/Container/Container.tsx
593
598
  var Container = ({
594
599
  children,
@@ -1738,13 +1743,16 @@ var getImageSrc = (fallbackImage) => {
1738
1743
  };
1739
1744
  var getNodeInfo3 = (element) => {
1740
1745
  const { render, fallbackImage, ...rest } = element;
1746
+ const contentKey = "'search-result'";
1741
1747
  return {
1742
- title: "$functions.id($context, 'search-result', 'issue', 'name')",
1743
- name: "$functions.id($context, 'search-result', 'issue', 'name')",
1744
- description: "$functions.id($context, 'search-result', 'issue', 'description')",
1748
+ title: `$functions.id($context, ${contentKey}, 'issue', 'name')`,
1749
+ name: `$functions.id($context, ${contentKey}, 'issue', 'name')`,
1750
+ description: `$functions.id($context, ${contentKey}, 'issue', 'description')`,
1745
1751
  imageSrc: getImageSrc(fallbackImage),
1746
- language: "$functions.getLanguage($functions.id($context, 'search-result', 'issue'))",
1747
- slug: "$functions.id($context, 'search-result', 'issue', 'properties', 'slug')"
1752
+ language: `$functions.getLanguage($functions.id($context, ${contentKey}, 'issue'))`,
1753
+ slug: `$functions.id($context, ${contentKey}, 'issue', 'properties', 'slug')`,
1754
+ primaryCategoryId: `$functions.getPrimaryCategoryProperty($context[${contentKey}], 'id')`,
1755
+ primaryCategoryName: `$functions.getPrimaryCategoryProperty($context[${contentKey}], 'name')`
1748
1756
  };
1749
1757
  };
1750
1758
  var unrender15 = (element, renderElement) => {
@@ -2115,6 +2123,7 @@ export {
2115
2123
  Button,
2116
2124
  CategoryList,
2117
2125
  Collection,
2126
+ Conditions,
2118
2127
  Container,
2119
2128
  ContentBody,
2120
2129
  ContentTitle,
@@ -7,6 +7,7 @@ export * from "../BaseSideBar/BaseSideBar.tsx";
7
7
  export * from "../Button/Button.tsx";
8
8
  export * from "../CategoryList/CategoryList.tsx";
9
9
  export * from "../Collection/Collection.tsx";
10
+ export * from "../Conditions/Conditions.ts";
10
11
  export * from "../Container/Container.tsx";
11
12
  export * from "../ContentBody/ContentBody.tsx";
12
13
  export * from "../ContentTitle/ContentTitle.tsx";
@@ -0,0 +1,3 @@
1
+ export declare const Conditions: {
2
+ SearchResultsAreEmpty: string;
3
+ };
@@ -1,7 +1,10 @@
1
1
  export interface ISearchResult {
2
+ readonly primaryCategoryName?: string;
3
+ readonly primaryCategoryId?: string;
2
4
  readonly label: string;
3
5
  readonly readtime: string;
4
6
  readonly title: string;
5
7
  readonly description: string;
6
8
  readonly imageSrc: string;
9
+ readonly slug: string;
7
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "14.35.0",
3
+ "version": "14.36.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",