@pronto-tools-and-more/components 10.56.0 → 11.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -408,10 +408,11 @@ var Collection = ({
408
408
 
409
409
  // src/parts/Container/Container.tsx
410
410
  var Container = ({
411
- children
411
+ children,
412
+ key
412
413
  }) => {
413
414
  const childrenArray = Array.isArray(children) ? children : [children];
414
- return /* @__PURE__ */ React.createElement("div", { className: "Container" }, ...childrenArray);
415
+ return /* @__PURE__ */ React.createElement("div", { className: "Container", "data-key": key }, ...childrenArray);
415
416
  };
416
417
 
417
418
  // src/parts/ContentBody/ContentBody.tsx
@@ -437,7 +438,7 @@ var dateHelper = (date, format, language = "de") => {
437
438
 
438
439
  // src/parts/DossierList/DossierList.tsx
439
440
  var unrender5 = (element, renderElement) => {
440
- const { render, ...rest } = element;
441
+ const { render, language, ...rest } = element;
441
442
  const isCollection = element.dataSource.type === "collection-content";
442
443
  const contentKey = isCollection ? "'collection-content'" : "'content'";
443
444
  const node = render({
@@ -445,8 +446,9 @@ var unrender5 = (element, renderElement) => {
445
446
  description: `$functions.id($context, ${contentKey}, 'description')`,
446
447
  imageSrc: `$functions.id($context, ${contentKey}, 'thumbnails', 'default')`,
447
448
  slug: `$functions.id($context, ${contentKey}, 'properties', 'slug')`,
448
- totalCount: 12
449
+ totalCount: 12,
449
450
  // TODO use real total count once supported
451
+ language
450
452
  });
451
453
  const final = renderElement(node);
452
454
  return {
@@ -482,7 +484,8 @@ var getDossierDataSource = ({
482
484
  };
483
485
  var DossierList = ({
484
486
  render,
485
- collectionName
487
+ collectionName,
488
+ language
486
489
  }) => {
487
490
  const dataSource = getDossierDataSource({ collectionName });
488
491
  const json = {
@@ -491,7 +494,8 @@ var DossierList = ({
491
494
  dataSource,
492
495
  type: "list",
493
496
  class: "epaper-issues",
494
- template: "grid"
497
+ template: "grid",
498
+ language
495
499
  };
496
500
  return /* @__PURE__ */ React.createElement("div", { className: "DossierList" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
497
501
  };
@@ -1,3 +1,4 @@
1
- export declare const Container: ({ children, }: {
1
+ export declare const Container: ({ children, key, }: {
2
2
  children: React.ReactNode;
3
+ key?: string;
3
4
  }) => React.ReactNode;
@@ -1,5 +1,6 @@
1
1
  import { DossierListItemRenderer } from "../DossierListItemRenderer/DossierListItemRenderer.ts";
2
- export declare const DossierList: ({ render, collectionName, }: {
2
+ export declare const DossierList: ({ render, collectionName, language, }: {
3
3
  render: DossierListItemRenderer;
4
4
  collectionName?: string;
5
+ language?: string;
5
6
  }) => import("react").JSX.Element;
@@ -4,4 +4,5 @@ export interface IDossierListItem {
4
4
  readonly imageSrc: string;
5
5
  readonly slug: string;
6
6
  readonly totalCount: number;
7
+ readonly language: string;
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "10.56.0",
3
+ "version": "11.0.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",