@pronto-tools-and-more/components 12.11.0 → 12.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +183 -16
- package/dist/parts/Components/Components.d.ts +4 -0
- package/dist/parts/EPaperRenderer/EPaperRenderer.d.ts +5 -0
- package/dist/parts/IEPaperItem/IEPaperItem.d.ts +5 -0
- package/dist/parts/IMenuItem/IMenuItem.d.ts +5 -0
- package/dist/parts/MenuItemRenderer/MenuItemRenderer.d.ts +4 -0
- package/dist/parts/MenuItems/MenuItems.d.ts +3 -0
- package/dist/parts/MenuItems2/MenuItems2.d.ts +6 -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: unrender12, ...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: unrender12, ...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,177 @@ 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/MenuItems2/MenuItems2.tsx
|
|
1138
1135
|
var unrender6 = (element, renderElement) => {
|
|
1139
|
-
const { render,
|
|
1136
|
+
const { render, language, ...rest } = element;
|
|
1137
|
+
const contentKey = "'context'";
|
|
1138
|
+
const node = render({
|
|
1139
|
+
name: `$functions.id($context, ${contentKey}, 'name')`,
|
|
1140
|
+
description: `$functions.id($context, ${contentKey}, 'description')`,
|
|
1141
|
+
url: `$functions.id($context, ${contentKey}, 'url')`,
|
|
1142
|
+
language
|
|
1143
|
+
});
|
|
1144
|
+
const innerFinal = renderElement(node);
|
|
1145
|
+
const content = {
|
|
1146
|
+
content: innerFinal,
|
|
1147
|
+
dataSource: {
|
|
1148
|
+
contextKey: "menuItem",
|
|
1149
|
+
type: "context",
|
|
1150
|
+
data: "$context.menu.items"
|
|
1151
|
+
},
|
|
1152
|
+
type: "list"
|
|
1153
|
+
};
|
|
1154
|
+
return {
|
|
1155
|
+
...rest,
|
|
1156
|
+
content
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
var MenuItems2 = ({
|
|
1160
|
+
menuName,
|
|
1161
|
+
render,
|
|
1162
|
+
noContentFound
|
|
1163
|
+
}) => {
|
|
1164
|
+
const dataSource = {
|
|
1165
|
+
type: "menu",
|
|
1166
|
+
filter: {
|
|
1167
|
+
name: {
|
|
1168
|
+
value: menuName
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
};
|
|
1172
|
+
const json = {
|
|
1173
|
+
render,
|
|
1174
|
+
unrender: unrender6,
|
|
1175
|
+
dataSource,
|
|
1176
|
+
type: "list",
|
|
1177
|
+
tapEntry: {
|
|
1178
|
+
value: {
|
|
1179
|
+
type: "openUrl",
|
|
1180
|
+
url: "#",
|
|
1181
|
+
target: "#"
|
|
1182
|
+
},
|
|
1183
|
+
condition: {
|
|
1184
|
+
compareValue: "external_links",
|
|
1185
|
+
value: "#"
|
|
1186
|
+
},
|
|
1187
|
+
fallback: {
|
|
1188
|
+
type: "openContent"
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
class: "data-custom-list",
|
|
1192
|
+
template: "horizontal",
|
|
1193
|
+
pagination: {
|
|
1194
|
+
suffix: "articles",
|
|
1195
|
+
text: {
|
|
1196
|
+
next: {
|
|
1197
|
+
label: ""
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
emptyMessage: noContentFound
|
|
1202
|
+
};
|
|
1203
|
+
return /* @__PURE__ */ React.createElement("div", { className: "MenuItems2" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
// src/parts/OneEPaper/OneEPaper.tsx
|
|
1207
|
+
var unrender7 = (element, renderElement) => {
|
|
1208
|
+
const { render, ...rest } = element;
|
|
1209
|
+
const node = render({
|
|
1210
|
+
id: `$functions.id($context, 'issue', 'id')`,
|
|
1211
|
+
imageSrc: `$functions.id($context, 'issue', 'thumbnails', 'default')`,
|
|
1212
|
+
date: `$functions.id($context, 'issue', 'publicationDate')`
|
|
1213
|
+
});
|
|
1214
|
+
const final = renderElement(node);
|
|
1215
|
+
return {
|
|
1216
|
+
...rest,
|
|
1217
|
+
content: final
|
|
1218
|
+
};
|
|
1219
|
+
};
|
|
1220
|
+
var OneEPaper = ({
|
|
1221
|
+
render,
|
|
1222
|
+
ePaperId
|
|
1223
|
+
}) => {
|
|
1224
|
+
const json = {
|
|
1225
|
+
content: {
|
|
1226
|
+
type: "issue",
|
|
1227
|
+
tapCover: {
|
|
1228
|
+
path: "issueDetails",
|
|
1229
|
+
type: "popup"
|
|
1230
|
+
},
|
|
1231
|
+
customMessages: [
|
|
1232
|
+
{
|
|
1233
|
+
message: "okay",
|
|
1234
|
+
class: "publication-date"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
message: "",
|
|
1238
|
+
class: "highlighted-epaper-badge"
|
|
1239
|
+
}
|
|
1240
|
+
],
|
|
1241
|
+
template: "highlight",
|
|
1242
|
+
downloadOptions: {
|
|
1243
|
+
buttonType: "SINGLE"
|
|
1244
|
+
},
|
|
1245
|
+
purchaseOptions: {
|
|
1246
|
+
login: true
|
|
1247
|
+
},
|
|
1248
|
+
customButtons: []
|
|
1249
|
+
},
|
|
1250
|
+
dataSource: {
|
|
1251
|
+
type: "issue",
|
|
1252
|
+
sort: [
|
|
1253
|
+
{
|
|
1254
|
+
publicationDate: {
|
|
1255
|
+
direction: "DESC"
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
],
|
|
1259
|
+
limit: 1,
|
|
1260
|
+
filter: {
|
|
1261
|
+
OR: [
|
|
1262
|
+
{
|
|
1263
|
+
condition: {
|
|
1264
|
+
OR: [
|
|
1265
|
+
{
|
|
1266
|
+
value: "$context.userAttributes.activePublication",
|
|
1267
|
+
operation: "EMPTY"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
value: "$context.userAttributes.activePublication",
|
|
1271
|
+
operation: "NOT_SET"
|
|
1272
|
+
}
|
|
1273
|
+
]
|
|
1274
|
+
},
|
|
1275
|
+
publication: {
|
|
1276
|
+
id: {
|
|
1277
|
+
value: ePaperId
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
condition: {
|
|
1283
|
+
value: "$context.userAttributes.activePublication",
|
|
1284
|
+
operation: "NOT_EMPTY"
|
|
1285
|
+
},
|
|
1286
|
+
publication: {
|
|
1287
|
+
id: {
|
|
1288
|
+
value: "$context.userAttributes.activePublication"
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
]
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
type: "list",
|
|
1296
|
+
render,
|
|
1297
|
+
unrender: unrender7
|
|
1298
|
+
};
|
|
1299
|
+
return /* @__PURE__ */ React.createElement("div", { className: "OneEpaper" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
|
1300
|
+
};
|
|
1301
|
+
|
|
1302
|
+
// src/parts/PostContentBody/PostContentBody.tsx
|
|
1303
|
+
var unrender8 = (element, renderElement) => {
|
|
1304
|
+
const { render, unrender: unrender12, customBlocks, ...rest } = element;
|
|
1140
1305
|
const actualBlocks = customBlocks || [];
|
|
1141
1306
|
const renderedBlocks = actualBlocks.map((block) => {
|
|
1142
1307
|
if (block.render && block.props) {
|
|
@@ -1164,7 +1329,7 @@ var PostContentBody = ({
|
|
|
1164
1329
|
} = {}) => {
|
|
1165
1330
|
const json = {
|
|
1166
1331
|
render: {},
|
|
1167
|
-
unrender:
|
|
1332
|
+
unrender: unrender8,
|
|
1168
1333
|
type: "content-body",
|
|
1169
1334
|
id: "post-content-body",
|
|
1170
1335
|
customBlocks,
|
|
@@ -1184,7 +1349,7 @@ var PostContentBody = ({
|
|
|
1184
1349
|
};
|
|
1185
1350
|
|
|
1186
1351
|
// src/parts/PrimaryCategory/PrimaryCategory.tsx
|
|
1187
|
-
var
|
|
1352
|
+
var unrender9 = (element, renderElement) => {
|
|
1188
1353
|
const { render, category } = element;
|
|
1189
1354
|
const node = render(category);
|
|
1190
1355
|
const final = renderElement(node);
|
|
@@ -1200,7 +1365,7 @@ var PrimaryCategory = ({
|
|
|
1200
1365
|
const categoryType = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'type')`;
|
|
1201
1366
|
const json = {
|
|
1202
1367
|
render,
|
|
1203
|
-
unrender:
|
|
1368
|
+
unrender: unrender9,
|
|
1204
1369
|
category: {
|
|
1205
1370
|
id: categoryId,
|
|
1206
1371
|
name: categoryName,
|
|
@@ -1359,7 +1524,7 @@ var getImageSrc = (fallbackImage) => {
|
|
|
1359
1524
|
}
|
|
1360
1525
|
return `$functions.id($context, 'search-result', 'issue', 'thumbnails', 'default')`;
|
|
1361
1526
|
};
|
|
1362
|
-
var
|
|
1527
|
+
var unrender10 = (element, renderElement) => {
|
|
1363
1528
|
const { render, fallbackImage, ...rest } = element;
|
|
1364
1529
|
const node = render({
|
|
1365
1530
|
title: "$functions.id($context, 'search-result', 'issue', 'name')",
|
|
@@ -1452,7 +1617,7 @@ var SearchResultsNews = ({
|
|
|
1452
1617
|
}
|
|
1453
1618
|
const json = {
|
|
1454
1619
|
render,
|
|
1455
|
-
unrender:
|
|
1620
|
+
unrender: unrender10,
|
|
1456
1621
|
fallbackImage,
|
|
1457
1622
|
dataSource: {
|
|
1458
1623
|
phrase: "$context.phrase",
|
|
@@ -1671,7 +1836,7 @@ var SubscriptionLink = ({ message } = {}) => {
|
|
|
1671
1836
|
};
|
|
1672
1837
|
|
|
1673
1838
|
// src/parts/TagList/TagList.tsx
|
|
1674
|
-
var
|
|
1839
|
+
var unrender11 = (element, renderElement) => {
|
|
1675
1840
|
const { render, ...rest } = element;
|
|
1676
1841
|
const node = render({
|
|
1677
1842
|
id: `$functions.id($context, 'context', 'id')`,
|
|
@@ -1695,7 +1860,7 @@ var unrender9 = (element, renderElement) => {
|
|
|
1695
1860
|
var TagList = ({ render }) => {
|
|
1696
1861
|
const json = {
|
|
1697
1862
|
render,
|
|
1698
|
-
unrender:
|
|
1863
|
+
unrender: unrender11,
|
|
1699
1864
|
dataSource: {
|
|
1700
1865
|
data: "$context.content.taxonomies",
|
|
1701
1866
|
type: "context",
|
|
@@ -1739,6 +1904,8 @@ export {
|
|
|
1739
1904
|
Login,
|
|
1740
1905
|
MaskIcon,
|
|
1741
1906
|
MenuItems,
|
|
1907
|
+
MenuItems2,
|
|
1908
|
+
OneEPaper,
|
|
1742
1909
|
PostContentBody,
|
|
1743
1910
|
PrimaryCategory,
|
|
1744
1911
|
PublicationToggle,
|
|
@@ -39,6 +39,7 @@ export * from "../IBookmarkInfo/IBookmarkInfo.ts";
|
|
|
39
39
|
export * from "../ICategoryItem/ICategoryItem.ts";
|
|
40
40
|
export * from "../IDossierListItem/IDossierListItem.ts";
|
|
41
41
|
export * from "../IFooterSocialLink/IFooterSocialLink.ts";
|
|
42
|
+
export * from "../IMenuItem/IMenuItem.ts";
|
|
42
43
|
export * from "../ISearchResult/ISearchResult.ts";
|
|
43
44
|
export * from "../ISearchResultComponent/ISearchResultComponent.tsx";
|
|
44
45
|
export * from "../ISocialLink/ISocialLink.ts";
|
|
@@ -50,7 +51,10 @@ export * from "../LanguageRegistry/LanguageRegistry.ts";
|
|
|
50
51
|
export * from "../Link/Link.tsx";
|
|
51
52
|
export * from "../Login/Login.tsx";
|
|
52
53
|
export * from "../MaskIcon/MaskIcon.tsx";
|
|
54
|
+
export * from "../MenuItemRenderer/MenuItemRenderer.ts";
|
|
53
55
|
export * from "../MenuItems/MenuItems.tsx";
|
|
56
|
+
export * from "../MenuItems2/MenuItems2.tsx";
|
|
57
|
+
export * from "../OneEPaper/OneEPaper.tsx";
|
|
54
58
|
export * from "../PostContentBody/PostContentBody.tsx";
|
|
55
59
|
export * from "../PrimaryCategory/PrimaryCategory.tsx";
|
|
56
60
|
export * from "../PublicationToggle/PublicationToggle.tsx";
|