@pronto-tools-and-more/components 6.28.0 → 6.30.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 CHANGED
@@ -4,6 +4,22 @@ var JsonComponent = ({ json }) => {
4
4
  return node;
5
5
  };
6
6
 
7
+ // src/parts/ContentBody/ContentBody.tsx
8
+ var ContentBody = () => {
9
+ const json = {
10
+ type: "content-body"
11
+ };
12
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
13
+ };
14
+
15
+ // src/parts/ContentTitle/ContentTitle.tsx
16
+ var ContentTitle = () => {
17
+ const json = {
18
+ type: "content-title"
19
+ };
20
+ return /* @__PURE__ */ React.createElement(JsonComponent, { json });
21
+ };
22
+
7
23
  // src/parts/EPaperLink/EPaperLink.tsx
8
24
  var EPaperLink = ({ message } = {}) => {
9
25
  const json = {
@@ -95,6 +111,35 @@ var PostContentBody = () => {
95
111
  return /* @__PURE__ */ React.createElement(JsonComponent, { json });
96
112
  };
97
113
 
114
+ // src/parts/PublicationToggle/PublicationToggle.tsx
115
+ var PublicationToggle = () => {
116
+ const json = {
117
+ content: [
118
+ {
119
+ content: {
120
+ type: "button",
121
+ buttonClass: "PublicationToggleButton",
122
+ tap: {
123
+ key: "activePublication",
124
+ type: "setUserAttribute",
125
+ value: "$context.publication.id"
126
+ },
127
+ message: "$context.publication.name"
128
+ },
129
+ dataSource: {
130
+ type: "publication",
131
+ filter: {}
132
+ },
133
+ type: "list",
134
+ class: "Toggle storefront-toggle"
135
+ }
136
+ ],
137
+ type: "section",
138
+ class: "toggle-publication"
139
+ };
140
+ return /* @__PURE__ */ React.createElement("div", { className: "PublicationToggle" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
141
+ };
142
+
98
143
  // src/parts/SearchField/SearchField.tsx
99
144
  var SearchField = () => {
100
145
  const json = {
@@ -337,6 +382,8 @@ var SubscriptionLink = ({ message } = {}) => {
337
382
  return /* @__PURE__ */ React.createElement("div", { className: "SubscriptionLink" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
338
383
  };
339
384
  export {
385
+ ContentBody,
386
+ ContentTitle,
340
387
  EPaperLink,
341
388
  FooterItemsList,
342
389
  HeaderMenuItems,
@@ -345,6 +392,7 @@ export {
345
392
  Login,
346
393
  MenuItems,
347
394
  PostContentBody,
395
+ PublicationToggle,
348
396
  SearchField,
349
397
  SearchLink,
350
398
  SearchResults,
@@ -1,3 +1,5 @@
1
+ export * from "../ContentBody/ContentBody.tsx";
2
+ export * from "../ContentTitle/ContentTitle.tsx";
1
3
  export * from "../EPaperLink/EPaperLink.tsx";
2
4
  export * from "../FooterItemsList/FooterItemsList.tsx";
3
5
  export * from "../HeaderMenuItems/HeaderMenuItems.tsx";
@@ -6,6 +8,7 @@ export * from "../Link/Link.tsx";
6
8
  export * from "../Login/Login.tsx";
7
9
  export * from "../MenuItems/MenuItems.tsx";
8
10
  export * from "../PostContentBody/PostContentBody.tsx";
11
+ export * from "../PublicationToggle/PublicationToggle.tsx";
9
12
  export * from "../SearchField/SearchField.tsx";
10
13
  export * from "../SearchLink/SearchLink.tsx";
11
14
  export * from "../SearchResults/SearchResults.tsx";
@@ -0,0 +1 @@
1
+ export declare const ContentBody: () => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ContentTitle: () => import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type React from "react";
2
+ export declare const PublicationToggle: () => React.ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "6.28.0",
3
+ "version": "6.30.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",