@pronto-tools-and-more/components 10.38.0 → 10.40.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: unrender8, ...rest } = element;
|
10
10
|
const node = render({
|
11
11
|
id: `$functions.id($context, 'context', 'id')`,
|
12
12
|
name: `$functions.id($context, 'context', 'name')`,
|
@@ -310,7 +310,7 @@ var Button = ({
|
|
310
310
|
|
311
311
|
// src/parts/CategoryList/CategoryList.tsx
|
312
312
|
var unrender3 = (element, renderElement) => {
|
313
|
-
const { render, unrender:
|
313
|
+
const { render, unrender: unrender8, ...rest } = element;
|
314
314
|
const node = render({
|
315
315
|
id: `$functions.id($context, 'context', 'id')`,
|
316
316
|
name: `$functions.id($context, 'context', 'name')`,
|
@@ -743,6 +743,34 @@ var PostContentBody = ({
|
|
743
743
|
return /* @__PURE__ */ React.createElement(JsonComponent, { json });
|
744
744
|
};
|
745
745
|
|
746
|
+
// src/parts/PrimaryCategory/PrimaryCategory.tsx
|
747
|
+
var unrender5 = (element, renderElement) => {
|
748
|
+
const { render, category } = element;
|
749
|
+
const node = render(category);
|
750
|
+
const final = renderElement(node);
|
751
|
+
return final;
|
752
|
+
};
|
753
|
+
var PrimaryCategory = ({
|
754
|
+
render,
|
755
|
+
contentKey
|
756
|
+
}) => {
|
757
|
+
const categoryId = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'id')`;
|
758
|
+
const categoryName = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'name')`;
|
759
|
+
const categoryLanguage = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'language')`;
|
760
|
+
const categoryType = `$functions.getPrimaryCategoryProperty($context["${contentKey ?? "content"}"], 'type')`;
|
761
|
+
const json = {
|
762
|
+
render,
|
763
|
+
unrender: unrender5,
|
764
|
+
category: {
|
765
|
+
id: categoryId,
|
766
|
+
name: categoryName,
|
767
|
+
language: categoryLanguage,
|
768
|
+
type: categoryType
|
769
|
+
}
|
770
|
+
};
|
771
|
+
return /* @__PURE__ */ React.createElement("div", { className: "PrimaryCategory" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
772
|
+
};
|
773
|
+
|
746
774
|
// src/parts/PublicationToggle/PublicationToggle.tsx
|
747
775
|
var PublicationToggle = () => {
|
748
776
|
const json = {
|
@@ -891,7 +919,7 @@ var getImageSrc = (fallbackImage) => {
|
|
891
919
|
}
|
892
920
|
return `$functions.id($context, 'search-result', 'issue', 'thumbnails', 'default')`;
|
893
921
|
};
|
894
|
-
var
|
922
|
+
var unrender6 = (element, renderElement) => {
|
895
923
|
const { render, fallbackImage, ...rest } = element;
|
896
924
|
const node = render({
|
897
925
|
title: "$functions.id($context, 'search-result', 'issue', 'name')",
|
@@ -984,7 +1012,7 @@ var SearchResults = ({
|
|
984
1012
|
}
|
985
1013
|
const json = {
|
986
1014
|
render,
|
987
|
-
unrender:
|
1015
|
+
unrender: unrender6,
|
988
1016
|
fallbackImage,
|
989
1017
|
dataSource: {
|
990
1018
|
phrase: "$context.phrase",
|
@@ -1057,7 +1085,7 @@ var SubscriptionLink = ({ message } = {}) => {
|
|
1057
1085
|
};
|
1058
1086
|
|
1059
1087
|
// src/parts/TagList/TagList.tsx
|
1060
|
-
var
|
1088
|
+
var unrender7 = (element, renderElement) => {
|
1061
1089
|
const { render, ...rest } = element;
|
1062
1090
|
const node = render({
|
1063
1091
|
id: `$functions.id($context, 'context', 'id')`,
|
@@ -1081,7 +1109,7 @@ var unrender6 = (element, renderElement) => {
|
|
1081
1109
|
var TagList = ({ render }) => {
|
1082
1110
|
const json = {
|
1083
1111
|
render,
|
1084
|
-
unrender:
|
1112
|
+
unrender: unrender7,
|
1085
1113
|
dataSource: {
|
1086
1114
|
data: "$context.content.taxonomies",
|
1087
1115
|
type: "context",
|
@@ -1119,6 +1147,7 @@ export {
|
|
1119
1147
|
MaskIcon,
|
1120
1148
|
MenuItems,
|
1121
1149
|
PostContentBody,
|
1150
|
+
PrimaryCategory,
|
1122
1151
|
PublicationToggle,
|
1123
1152
|
ScrollToTop,
|
1124
1153
|
SearchField,
|
@@ -33,6 +33,7 @@ export * from "../Login/Login.tsx";
|
|
33
33
|
export * from "../MaskIcon/MaskIcon.tsx";
|
34
34
|
export * from "../MenuItems/MenuItems.tsx";
|
35
35
|
export * from "../PostContentBody/PostContentBody.tsx";
|
36
|
+
export * from "../PrimaryCategory/PrimaryCategory.tsx";
|
36
37
|
export * from "../PublicationToggle/PublicationToggle.tsx";
|
37
38
|
export * from "../ScrollToTop/ScrollToTop.tsx";
|
38
39
|
export * from "../SearchField/SearchField.tsx";
|