@pronto-tools-and-more/components 12.3.0 → 12.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/main.js +18 -9
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -522,6 +522,19 @@ var unrender5 = (element, renderElement) => {
522
522
  content: final
523
523
  };
524
524
  };
525
+ var getAndFilter = ({ id }) => {
526
+ const and = [
527
+ {
528
+ bundleType: {
529
+ value: "DOSSIER"
530
+ }
531
+ }
532
+ ];
533
+ if (id) {
534
+ and.push({ id: { value: id } });
535
+ }
536
+ return and;
537
+ };
525
538
  var getDossierDataSource = ({
526
539
  collectionName,
527
540
  id
@@ -538,16 +551,10 @@ var getDossierDataSource = ({
538
551
  }
539
552
  };
540
553
  }
554
+ const and = getAndFilter({ id });
541
555
  return {
542
556
  filter: {
543
- AND: [
544
- {
545
- bundleType: {
546
- value: "DOSSIER"
547
- }
548
- },
549
- id ? { id: { value: id } } : void 0
550
- ]
557
+ AND: and
551
558
  },
552
559
  sort: [],
553
560
  type: "content",
@@ -1556,7 +1563,9 @@ var Seo = ({
1556
1563
  description,
1557
1564
  title: `${title}${titlePostfix}`,
1558
1565
  keywords,
1559
- "google-site-verification": googleSiteVerification
1566
+ "google-site-verification": googleSiteVerification,
1567
+ language,
1568
+ alternates
1560
1569
  }
1561
1570
  };
1562
1571
  return /* @__PURE__ */ React.createElement(JsonComponent, { json });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "12.3.0",
3
+ "version": "12.5.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",