@pronto-tools-and-more/components 12.10.0 → 12.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +125 -11
- package/dist/parts/Components/Components.d.ts +2 -0
- package/dist/parts/EPaperRenderer/EPaperRenderer.d.ts +5 -0
- package/dist/parts/HubsportForm/HubSpotForm.d.ts +3 -0
- package/dist/parts/IEPaperItem/IEPaperItem.d.ts +5 -0
- package/dist/parts/OneEPaper/OneEPaper.d.ts +5 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -6,7 +6,7 @@ var JsonComponent = ({ json }) => {
|
|
6
6
|
|
7
7
|
// src/parts/ArticleAuthors/ArticleAuthors.tsx
|
8
8
|
var unrender = (element, renderElement) => {
|
9
|
-
const { render, unrender:
|
9
|
+
const { render, unrender: unrender11, ...rest } = element;
|
10
10
|
const node = render({
|
11
11
|
id: `$functions.id($context, 'context', 'id')`,
|
12
12
|
name: `$functions.id($context, 'context', 'name')`,
|
@@ -412,7 +412,7 @@ var Button = ({
|
|
412
412
|
|
413
413
|
// src/parts/CategoryList/CategoryList.tsx
|
414
414
|
var unrender3 = (element, renderElement) => {
|
415
|
-
const { render, unrender:
|
415
|
+
const { render, unrender: unrender11, ...rest } = element;
|
416
416
|
const node = render({
|
417
417
|
id: `$functions.id($context, 'context', 'id')`,
|
418
418
|
name: `$functions.id($context, 'context', 'name')`,
|
@@ -1021,6 +1021,22 @@ var HighlightedEPaper = ({ ePaperId }) => {
|
|
1021
1021
|
return /* @__PURE__ */ React.createElement("div", { className: "HighlightedEPaper" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
1022
1022
|
};
|
1023
1023
|
|
1024
|
+
// src/parts/HubsportForm/HubSpotForm.tsx
|
1025
|
+
var HubspotForm = ({ hubspotUrl }) => {
|
1026
|
+
const json = {
|
1027
|
+
content: [
|
1028
|
+
{
|
1029
|
+
tag: "div",
|
1030
|
+
type: "html",
|
1031
|
+
class: "",
|
1032
|
+
content: `<iframe src="${hubspotUrl}" title="Hubspot Formular"></iframe>`
|
1033
|
+
}
|
1034
|
+
],
|
1035
|
+
type: "section"
|
1036
|
+
};
|
1037
|
+
return /* @__PURE__ */ React.createElement("div", { className: "HubspotForm" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
1038
|
+
};
|
1039
|
+
|
1024
1040
|
// src/parts/Language/Language.ts
|
1025
1041
|
var Language = {
|
1026
1042
|
De: "de",
|
@@ -1115,9 +1131,105 @@ var MaskIcon = ({ src }) => {
|
|
1115
1131
|
return /* @__PURE__ */ React.createElement("div", { className: "MaskIcon" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
1116
1132
|
};
|
1117
1133
|
|
1118
|
-
// src/parts/
|
1134
|
+
// src/parts/OneEPaper/OneEPaper.tsx
|
1119
1135
|
var unrender6 = (element, renderElement) => {
|
1120
|
-
const { render,
|
1136
|
+
const { render, ...rest } = element;
|
1137
|
+
const node = render({
|
1138
|
+
id: `$functions.id($context, 'issue', 'id')`,
|
1139
|
+
imageSrc: `$functions.id($context, 'issue', 'thumbnails', 'default')`,
|
1140
|
+
date: `$functions.id($context, 'issue', 'publicationDate')`
|
1141
|
+
});
|
1142
|
+
const final = renderElement(node);
|
1143
|
+
return {
|
1144
|
+
...rest,
|
1145
|
+
content: final
|
1146
|
+
};
|
1147
|
+
};
|
1148
|
+
var OneEPaper = ({
|
1149
|
+
render,
|
1150
|
+
ePaperId
|
1151
|
+
}) => {
|
1152
|
+
const json = {
|
1153
|
+
content: {
|
1154
|
+
type: "issue",
|
1155
|
+
tapCover: {
|
1156
|
+
path: "issueDetails",
|
1157
|
+
type: "popup"
|
1158
|
+
},
|
1159
|
+
customMessages: [
|
1160
|
+
{
|
1161
|
+
message: "okay",
|
1162
|
+
class: "publication-date"
|
1163
|
+
},
|
1164
|
+
{
|
1165
|
+
message: "",
|
1166
|
+
class: "highlighted-epaper-badge"
|
1167
|
+
}
|
1168
|
+
],
|
1169
|
+
template: "highlight",
|
1170
|
+
downloadOptions: {
|
1171
|
+
buttonType: "SINGLE"
|
1172
|
+
},
|
1173
|
+
purchaseOptions: {
|
1174
|
+
login: true
|
1175
|
+
},
|
1176
|
+
customButtons: []
|
1177
|
+
},
|
1178
|
+
dataSource: {
|
1179
|
+
type: "issue",
|
1180
|
+
sort: [
|
1181
|
+
{
|
1182
|
+
publicationDate: {
|
1183
|
+
direction: "DESC"
|
1184
|
+
}
|
1185
|
+
}
|
1186
|
+
],
|
1187
|
+
limit: 1,
|
1188
|
+
filter: {
|
1189
|
+
OR: [
|
1190
|
+
{
|
1191
|
+
condition: {
|
1192
|
+
OR: [
|
1193
|
+
{
|
1194
|
+
value: "$context.userAttributes.activePublication",
|
1195
|
+
operation: "EMPTY"
|
1196
|
+
},
|
1197
|
+
{
|
1198
|
+
value: "$context.userAttributes.activePublication",
|
1199
|
+
operation: "NOT_SET"
|
1200
|
+
}
|
1201
|
+
]
|
1202
|
+
},
|
1203
|
+
publication: {
|
1204
|
+
id: {
|
1205
|
+
value: ePaperId
|
1206
|
+
}
|
1207
|
+
}
|
1208
|
+
},
|
1209
|
+
{
|
1210
|
+
condition: {
|
1211
|
+
value: "$context.userAttributes.activePublication",
|
1212
|
+
operation: "NOT_EMPTY"
|
1213
|
+
},
|
1214
|
+
publication: {
|
1215
|
+
id: {
|
1216
|
+
value: "$context.userAttributes.activePublication"
|
1217
|
+
}
|
1218
|
+
}
|
1219
|
+
}
|
1220
|
+
]
|
1221
|
+
}
|
1222
|
+
},
|
1223
|
+
type: "list",
|
1224
|
+
render,
|
1225
|
+
unrender: unrender6
|
1226
|
+
};
|
1227
|
+
return /* @__PURE__ */ React.createElement("div", { className: "OneEpaper" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
1228
|
+
};
|
1229
|
+
|
1230
|
+
// src/parts/PostContentBody/PostContentBody.tsx
|
1231
|
+
var unrender7 = (element, renderElement) => {
|
1232
|
+
const { render, unrender: unrender11, customBlocks, ...rest } = element;
|
1121
1233
|
const actualBlocks = customBlocks || [];
|
1122
1234
|
const renderedBlocks = actualBlocks.map((block) => {
|
1123
1235
|
if (block.render && block.props) {
|
@@ -1145,7 +1257,7 @@ var PostContentBody = ({
|
|
1145
1257
|
} = {}) => {
|
1146
1258
|
const json = {
|
1147
1259
|
render: {},
|
1148
|
-
unrender:
|
1260
|
+
unrender: unrender7,
|
1149
1261
|
type: "content-body",
|
1150
1262
|
id: "post-content-body",
|
1151
1263
|
customBlocks,
|
@@ -1165,7 +1277,7 @@ var PostContentBody = ({
|
|
1165
1277
|
};
|
1166
1278
|
|
1167
1279
|
// src/parts/PrimaryCategory/PrimaryCategory.tsx
|
1168
|
-
var
|
1280
|
+
var unrender8 = (element, renderElement) => {
|
1169
1281
|
const { render, category } = element;
|
1170
1282
|
const node = render(category);
|
1171
1283
|
const final = renderElement(node);
|
@@ -1181,7 +1293,7 @@ var PrimaryCategory = ({
|
|
1181
1293
|
const categoryType = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'type')`;
|
1182
1294
|
const json = {
|
1183
1295
|
render,
|
1184
|
-
unrender:
|
1296
|
+
unrender: unrender8,
|
1185
1297
|
category: {
|
1186
1298
|
id: categoryId,
|
1187
1299
|
name: categoryName,
|
@@ -1340,7 +1452,7 @@ var getImageSrc = (fallbackImage) => {
|
|
1340
1452
|
}
|
1341
1453
|
return `$functions.id($context, 'search-result', 'issue', 'thumbnails', 'default')`;
|
1342
1454
|
};
|
1343
|
-
var
|
1455
|
+
var unrender9 = (element, renderElement) => {
|
1344
1456
|
const { render, fallbackImage, ...rest } = element;
|
1345
1457
|
const node = render({
|
1346
1458
|
title: "$functions.id($context, 'search-result', 'issue', 'name')",
|
@@ -1433,7 +1545,7 @@ var SearchResultsNews = ({
|
|
1433
1545
|
}
|
1434
1546
|
const json = {
|
1435
1547
|
render,
|
1436
|
-
unrender:
|
1548
|
+
unrender: unrender9,
|
1437
1549
|
fallbackImage,
|
1438
1550
|
dataSource: {
|
1439
1551
|
phrase: "$context.phrase",
|
@@ -1652,7 +1764,7 @@ var SubscriptionLink = ({ message } = {}) => {
|
|
1652
1764
|
};
|
1653
1765
|
|
1654
1766
|
// src/parts/TagList/TagList.tsx
|
1655
|
-
var
|
1767
|
+
var unrender10 = (element, renderElement) => {
|
1656
1768
|
const { render, ...rest } = element;
|
1657
1769
|
const node = render({
|
1658
1770
|
id: `$functions.id($context, 'context', 'id')`,
|
@@ -1676,7 +1788,7 @@ var unrender9 = (element, renderElement) => {
|
|
1676
1788
|
var TagList = ({ render }) => {
|
1677
1789
|
const json = {
|
1678
1790
|
render,
|
1679
|
-
unrender:
|
1791
|
+
unrender: unrender10,
|
1680
1792
|
dataSource: {
|
1681
1793
|
data: "$context.content.taxonomies",
|
1682
1794
|
type: "context",
|
@@ -1712,6 +1824,7 @@ export {
|
|
1712
1824
|
HeaderMenuItems,
|
1713
1825
|
Heading,
|
1714
1826
|
HighlightedEPaper,
|
1827
|
+
HubspotForm,
|
1715
1828
|
JsonComponent,
|
1716
1829
|
Language,
|
1717
1830
|
LanguageMapping,
|
@@ -1719,6 +1832,7 @@ export {
|
|
1719
1832
|
Login,
|
1720
1833
|
MaskIcon,
|
1721
1834
|
MenuItems,
|
1835
|
+
OneEPaper,
|
1722
1836
|
PostContentBody,
|
1723
1837
|
PrimaryCategory,
|
1724
1838
|
PublicationToggle,
|
@@ -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";
|
@@ -50,6 +51,7 @@ export * from "../Link/Link.tsx";
|
|
50
51
|
export * from "../Login/Login.tsx";
|
51
52
|
export * from "../MaskIcon/MaskIcon.tsx";
|
52
53
|
export * from "../MenuItems/MenuItems.tsx";
|
54
|
+
export * from "../OneEPaper/OneEPaper.tsx";
|
53
55
|
export * from "../PostContentBody/PostContentBody.tsx";
|
54
56
|
export * from "../PrimaryCategory/PrimaryCategory.tsx";
|
55
57
|
export * from "../PublicationToggle/PublicationToggle.tsx";
|