@pronto-tools-and-more/components 12.27.0 → 12.28.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -289,7 +289,8 @@ var getNodeInfo = (element) => {
289
289
  publicationDate: `$functions.id($context, ${contentKey}, 'publicationDate')`,
290
290
  id: `$functions.id($context, ${contentKey}, 'id')`,
291
291
  primaryCategoryId: `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'id')`,
292
- primaryCategoryName: `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'name')`
292
+ primaryCategoryName: `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'name')`,
293
+ access: `$functions.id($context, ${contentKey}, 'access')`
293
294
  };
294
295
  };
295
296
  var unrender2 = (element, renderElement) => {
@@ -1213,7 +1214,8 @@ var unrender8 = (element, renderElement) => {
1213
1214
  };
1214
1215
  var OneEPaper = ({
1215
1216
  render,
1216
- ePaperId
1217
+ ePaperId,
1218
+ noContentFound
1217
1219
  }) => {
1218
1220
  const json = {
1219
1221
  content: {
@@ -1288,7 +1290,8 @@ var OneEPaper = ({
1288
1290
  },
1289
1291
  type: "list",
1290
1292
  render,
1291
- unrender: unrender8
1293
+ unrender: unrender8,
1294
+ emptyMessage: noContentFound
1292
1295
  };
1293
1296
  return /* @__PURE__ */ React.createElement("div", { className: "OneEpaper" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
1294
1297
  };
@@ -10,4 +10,5 @@ export interface IArticleListItem {
10
10
  readonly id: string;
11
11
  readonly primaryCategoryName?: string;
12
12
  readonly primaryCategoryId?: string;
13
+ readonly access?: string;
13
14
  }
@@ -1,5 +1,6 @@
1
1
  import type { EPaperRenderer } from "../EPaperRenderer/EPaperRenderer.ts";
2
- export declare const OneEPaper: ({ render, ePaperId, }: {
2
+ export declare const OneEPaper: ({ render, ePaperId, noContentFound, }: {
3
3
  render: EPaperRenderer;
4
4
  ePaperId: string;
5
+ noContentFound?: string;
5
6
  }) => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "12.27.0",
3
+ "version": "12.28.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -17,7 +17,7 @@
17
17
  "license": "MIT",
18
18
  "devDependencies": {
19
19
  "@types/node": "^22.10.1",
20
- "@types/react": "^19.0.2",
20
+ "@types/react": "^19.0.7",
21
21
  "esbuild": "^0.24.2",
22
22
  "react": "^19.0.0",
23
23
  "ts-jest": "^29.2.5"