@pronto-tools-and-more/components 12.9.0 → 12.11.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -94,9 +94,27 @@ var createCategoryFilter = (categoryId) => {
94
94
  taxonomies: {
95
95
  content: {
96
96
  value: {
97
- id: {
98
- value: categoryId
99
- }
97
+ AND: [
98
+ {
99
+ type: {
100
+ value: "category"
101
+ }
102
+ },
103
+ {
104
+ OR: [
105
+ {
106
+ id: {
107
+ value: categoryId
108
+ }
109
+ },
110
+ {
111
+ parentId: {
112
+ value: categoryId
113
+ }
114
+ }
115
+ ]
116
+ }
117
+ ]
100
118
  }
101
119
  }
102
120
  }
@@ -1003,6 +1021,25 @@ var HighlightedEPaper = ({ ePaperId }) => {
1003
1021
  return /* @__PURE__ */ React.createElement("div", { className: "HighlightedEPaper" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
1004
1022
  };
1005
1023
 
1024
+ // src/parts/HubsportForm/HubSpotForm.tsx
1025
+ var HubspotForm = ({ hubspotUrl }) => {
1026
+ const json = {
1027
+ content: [
1028
+ {
1029
+ tag: "button",
1030
+ type: "html",
1031
+ class: "scroll-top",
1032
+ attributes: {
1033
+ onclick: "window.scroll({ top: 0, left: 0, behavior: 'smooth' });"
1034
+ },
1035
+ content: `<iframe src="${hubspotUrl}" title="Hubspot Formular"></iframe>`
1036
+ }
1037
+ ],
1038
+ type: "section"
1039
+ };
1040
+ return /* @__PURE__ */ React.createElement("div", { className: "HubspotForm" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
1041
+ };
1042
+
1006
1043
  // src/parts/Language/Language.ts
1007
1044
  var Language = {
1008
1045
  De: "de",
@@ -1694,6 +1731,7 @@ export {
1694
1731
  HeaderMenuItems,
1695
1732
  Heading,
1696
1733
  HighlightedEPaper,
1734
+ HubspotForm,
1697
1735
  JsonComponent,
1698
1736
  Language,
1699
1737
  LanguageMapping,
@@ -33,6 +33,7 @@ export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
33
33
  export * from "../Heading/Heading.tsx";
34
34
  export * from "../HighlightedEPaper/HighlightedEpaper.tsx";
35
35
  export * from "../HrefLangAlternate/HrefLangAlternate.ts";
36
+ export * from "../HubsportForm/HubSpotForm.tsx";
36
37
  export * from "../IArticleListItem/IArticleListItem.ts";
37
38
  export * from "../IBookmarkInfo/IBookmarkInfo.ts";
38
39
  export * from "../ICategoryItem/ICategoryItem.ts";
@@ -0,0 +1,3 @@
1
+ export declare const HubspotForm: ({ hubspotUrl }: {
2
+ hubspotUrl: string;
3
+ }) => 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.9.0",
3
+ "version": "12.11.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",