@pronto-tools-and-more/components 12.11.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
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')`,
|
@@ -1026,12 +1026,9 @@ var HubspotForm = ({ hubspotUrl }) => {
|
|
1026
1026
|
const json = {
|
1027
1027
|
content: [
|
1028
1028
|
{
|
1029
|
-
tag: "
|
1029
|
+
tag: "div",
|
1030
1030
|
type: "html",
|
1031
|
-
class: "
|
1032
|
-
attributes: {
|
1033
|
-
onclick: "window.scroll({ top: 0, left: 0, behavior: 'smooth' });"
|
1034
|
-
},
|
1031
|
+
class: "",
|
1035
1032
|
content: `<iframe src="${hubspotUrl}" title="Hubspot Formular"></iframe>`
|
1036
1033
|
}
|
1037
1034
|
],
|
@@ -1134,9 +1131,105 @@ var MaskIcon = ({ src }) => {
|
|
1134
1131
|
return /* @__PURE__ */ React.createElement("div", { className: "MaskIcon" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
1135
1132
|
};
|
1136
1133
|
|
1137
|
-
// src/parts/
|
1134
|
+
// src/parts/OneEPaper/OneEPaper.tsx
|
1138
1135
|
var unrender6 = (element, renderElement) => {
|
1139
|
-
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;
|
1140
1233
|
const actualBlocks = customBlocks || [];
|
1141
1234
|
const renderedBlocks = actualBlocks.map((block) => {
|
1142
1235
|
if (block.render && block.props) {
|
@@ -1164,7 +1257,7 @@ var PostContentBody = ({
|
|
1164
1257
|
} = {}) => {
|
1165
1258
|
const json = {
|
1166
1259
|
render: {},
|
1167
|
-
unrender:
|
1260
|
+
unrender: unrender7,
|
1168
1261
|
type: "content-body",
|
1169
1262
|
id: "post-content-body",
|
1170
1263
|
customBlocks,
|
@@ -1184,7 +1277,7 @@ var PostContentBody = ({
|
|
1184
1277
|
};
|
1185
1278
|
|
1186
1279
|
// src/parts/PrimaryCategory/PrimaryCategory.tsx
|
1187
|
-
var
|
1280
|
+
var unrender8 = (element, renderElement) => {
|
1188
1281
|
const { render, category } = element;
|
1189
1282
|
const node = render(category);
|
1190
1283
|
const final = renderElement(node);
|
@@ -1200,7 +1293,7 @@ var PrimaryCategory = ({
|
|
1200
1293
|
const categoryType = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'type')`;
|
1201
1294
|
const json = {
|
1202
1295
|
render,
|
1203
|
-
unrender:
|
1296
|
+
unrender: unrender8,
|
1204
1297
|
category: {
|
1205
1298
|
id: categoryId,
|
1206
1299
|
name: categoryName,
|
@@ -1359,7 +1452,7 @@ var getImageSrc = (fallbackImage) => {
|
|
1359
1452
|
}
|
1360
1453
|
return `$functions.id($context, 'search-result', 'issue', 'thumbnails', 'default')`;
|
1361
1454
|
};
|
1362
|
-
var
|
1455
|
+
var unrender9 = (element, renderElement) => {
|
1363
1456
|
const { render, fallbackImage, ...rest } = element;
|
1364
1457
|
const node = render({
|
1365
1458
|
title: "$functions.id($context, 'search-result', 'issue', 'name')",
|
@@ -1452,7 +1545,7 @@ var SearchResultsNews = ({
|
|
1452
1545
|
}
|
1453
1546
|
const json = {
|
1454
1547
|
render,
|
1455
|
-
unrender:
|
1548
|
+
unrender: unrender9,
|
1456
1549
|
fallbackImage,
|
1457
1550
|
dataSource: {
|
1458
1551
|
phrase: "$context.phrase",
|
@@ -1671,7 +1764,7 @@ var SubscriptionLink = ({ message } = {}) => {
|
|
1671
1764
|
};
|
1672
1765
|
|
1673
1766
|
// src/parts/TagList/TagList.tsx
|
1674
|
-
var
|
1767
|
+
var unrender10 = (element, renderElement) => {
|
1675
1768
|
const { render, ...rest } = element;
|
1676
1769
|
const node = render({
|
1677
1770
|
id: `$functions.id($context, 'context', 'id')`,
|
@@ -1695,7 +1788,7 @@ var unrender9 = (element, renderElement) => {
|
|
1695
1788
|
var TagList = ({ render }) => {
|
1696
1789
|
const json = {
|
1697
1790
|
render,
|
1698
|
-
unrender:
|
1791
|
+
unrender: unrender10,
|
1699
1792
|
dataSource: {
|
1700
1793
|
data: "$context.content.taxonomies",
|
1701
1794
|
type: "context",
|
@@ -1739,6 +1832,7 @@ export {
|
|
1739
1832
|
Login,
|
1740
1833
|
MaskIcon,
|
1741
1834
|
MenuItems,
|
1835
|
+
OneEPaper,
|
1742
1836
|
PostContentBody,
|
1743
1837
|
PrimaryCategory,
|
1744
1838
|
PublicationToggle,
|
@@ -51,6 +51,7 @@ export * from "../Link/Link.tsx";
|
|
51
51
|
export * from "../Login/Login.tsx";
|
52
52
|
export * from "../MaskIcon/MaskIcon.tsx";
|
53
53
|
export * from "../MenuItems/MenuItems.tsx";
|
54
|
+
export * from "../OneEPaper/OneEPaper.tsx";
|
54
55
|
export * from "../PostContentBody/PostContentBody.tsx";
|
55
56
|
export * from "../PrimaryCategory/PrimaryCategory.tsx";
|
56
57
|
export * from "../PublicationToggle/PublicationToggle.tsx";
|