@pronto-tools-and-more/components 10.3.0 → 10.5.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 +21 -3
- package/dist/parts/CategoryList/CategoryList.d.ts +2 -1
- package/dist/parts/Components/Components.d.ts +2 -0
- package/dist/parts/ITagItem/ITagItem.d.ts +5 -0
- package/dist/parts/TagList/TagList.d.ts +4 -0
- package/dist/parts/TagListItemRenderer/TagListItemRenderer.d.ts +5 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -188,12 +188,13 @@ var Button = ({
|
|
188
188
|
|
189
189
|
// src/parts/CategoryList/CategoryList.tsx
|
190
190
|
var CategoryList = ({
|
191
|
-
render
|
191
|
+
render,
|
192
|
+
contentKey
|
192
193
|
}) => {
|
193
194
|
const json = {
|
194
195
|
render,
|
195
196
|
dataSource: {
|
196
|
-
data: "
|
197
|
+
data: `$context.${contentKey ?? "content"}.taxonomies`,
|
197
198
|
type: "context",
|
198
199
|
batchSize: 1e6
|
199
200
|
},
|
@@ -703,6 +704,22 @@ var SubscriptionLink = ({ message } = {}) => {
|
|
703
704
|
};
|
704
705
|
return /* @__PURE__ */ React.createElement("div", { className: "SubscriptionLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
705
706
|
};
|
707
|
+
|
708
|
+
// src/parts/TagList/TagList.tsx
|
709
|
+
var TagList = ({ render }) => {
|
710
|
+
const json = {
|
711
|
+
render,
|
712
|
+
dataSource: {
|
713
|
+
data: "$context.content.taxonomies",
|
714
|
+
type: "context",
|
715
|
+
batchSize: 1e6
|
716
|
+
},
|
717
|
+
type: "list",
|
718
|
+
class: "data-custom-tag-list",
|
719
|
+
template: "horizontal"
|
720
|
+
};
|
721
|
+
return /* @__PURE__ */ React.createElement("div", { className: "TagList" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
722
|
+
};
|
706
723
|
export {
|
707
724
|
ArticleAuthors,
|
708
725
|
ArticleList,
|
@@ -734,5 +751,6 @@ export {
|
|
734
751
|
SearchHeaderToggle,
|
735
752
|
SearchLink,
|
736
753
|
SearchResults,
|
737
|
-
SubscriptionLink
|
754
|
+
SubscriptionLink,
|
755
|
+
TagList
|
738
756
|
};
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { CategoryListItemRenderer } from "../CategoryListItemRenderer/CategoryListItemRenderer.ts";
|
2
|
-
export declare const CategoryList: ({ render, }: {
|
2
|
+
export declare const CategoryList: ({ render, contentKey, }: {
|
3
3
|
render: CategoryListItemRenderer;
|
4
|
+
contentKey?: string;
|
4
5
|
}) => import("react").JSX.Element;
|
@@ -22,6 +22,7 @@ export * from "../ICategoryItem/ICategoryItem.ts";
|
|
22
22
|
export * from "../IFooterSocialLink/IFooterSocialLink.ts";
|
23
23
|
export * from "../ISearchResult/ISearchResult.ts";
|
24
24
|
export * from "../ISearchResultComponent/ISearchResultComponent.tsx";
|
25
|
+
export * from "../ITagItem/ITagItem.ts";
|
25
26
|
export * from "../JsonComponent/JsonComponent.tsx";
|
26
27
|
export * from "../Link/Link.tsx";
|
27
28
|
export * from "../Login/Login.tsx";
|
@@ -35,3 +36,4 @@ export * from "../SearchHeaderToggle/SearchHeaderToggle.tsx";
|
|
35
36
|
export * from "../SearchLink/SearchLink.tsx";
|
36
37
|
export * from "../SearchResults/SearchResults.tsx";
|
37
38
|
export * from "../SubscriptionLink/SubscriptionLink.tsx";
|
39
|
+
export * from "../TagList/TagList.tsx";
|