@pronto-tools-and-more/components 6.29.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
@@ -111,6 +111,35 @@ var PostContentBody = () => {
111
111
  return /* @__PURE__ */ React.createElement(JsonComponent, { json });
112
112
  };
113
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
+
114
143
  // src/parts/SearchField/SearchField.tsx
115
144
  var SearchField = () => {
116
145
  const json = {
@@ -363,6 +392,7 @@ export {
363
392
  Login,
364
393
  MenuItems,
365
394
  PostContentBody,
395
+ PublicationToggle,
366
396
  SearchField,
367
397
  SearchLink,
368
398
  SearchResults,
@@ -8,6 +8,7 @@ export * from "../Link/Link.tsx";
8
8
  export * from "../Login/Login.tsx";
9
9
  export * from "../MenuItems/MenuItems.tsx";
10
10
  export * from "../PostContentBody/PostContentBody.tsx";
11
+ export * from "../PublicationToggle/PublicationToggle.tsx";
11
12
  export * from "../SearchField/SearchField.tsx";
12
13
  export * from "../SearchLink/SearchLink.tsx";
13
14
  export * from "../SearchResults/SearchResults.tsx";
@@ -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.29.0",
3
+ "version": "6.30.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",