@bigbinary/neeto-molecules 5.7.6 → 5.8.0-beta1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-molecules",
3
- "version": "5.7.6",
3
+ "version": "5.8.0-beta1",
4
4
  "description": "A package of reusable molecular components for neeto products.",
5
5
  "repository": "git@github.com:bigbinary/neeto-molecules.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",
@@ -59,12 +59,12 @@
59
59
  "@babel/runtime": "7.26.10",
60
60
  "@bigbinary/babel-preset-neeto": "^1.0.14",
61
61
  "@bigbinary/eslint-plugin-neeto": "1.9.1",
62
- "@bigbinary/neeto-atoms": "1.0.140",
62
+ "@bigbinary/neeto-atoms": "1.0.145",
63
63
  "@bigbinary/neeto-audit-frontend": "2.5.5",
64
64
  "@bigbinary/neeto-cist": "1.0.17",
65
- "@bigbinary/neeto-commons-frontend": "4.13.165",
66
- "@bigbinary/neeto-editor-frontend": "2.0.1",
67
- "@bigbinary/neeto-filters-frontend": "4.3.42",
65
+ "@bigbinary/neeto-commons-frontend": "4.14.1",
66
+ "@bigbinary/neeto-editor-frontend": "2.0.9",
67
+ "@bigbinary/neeto-filters-frontend": "4.5.1",
68
68
  "@bigbinary/neeto-hotkeys": "1.0.9",
69
69
  "@bigbinary/neeto-icons": "1.20.89",
70
70
  "@bigbinary/neeto-image-uploader-frontend": "4.0.14",
@@ -236,11 +236,11 @@
236
236
  "peerDependencies": {
237
237
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
238
238
  "@babel/runtime": "7.26.0",
239
- "@bigbinary/neeto-atoms": "1.0.140",
239
+ "@bigbinary/neeto-atoms": "1.0.145",
240
240
  "@bigbinary/neeto-cist": "1.0.17",
241
- "@bigbinary/neeto-commons-frontend": "4.13.165",
242
- "@bigbinary/neeto-editor-frontend": "2.0.1",
243
- "@bigbinary/neeto-filters-frontend": "4.3.42",
241
+ "@bigbinary/neeto-commons-frontend": "4.14.1",
242
+ "@bigbinary/neeto-editor-frontend": "2.0.9",
243
+ "@bigbinary/neeto-filters-frontend": "4.5.1",
244
244
  "@bigbinary/neeto-hotkeys": "1.0.9",
245
245
  "@bigbinary/neeto-icons": "1.20.89",
246
246
  "@bigbinary/neeto-image-uploader-frontend": "4.0.14",
@@ -301,4 +301,4 @@
301
301
  "zustand": "4.4.2"
302
302
  },
303
303
  "packageManager": "yarn@4.9.2"
304
- }
304
+ }
@@ -190,6 +190,33 @@ type MenuItem = {
190
190
  * );
191
191
  * };
192
192
  * @endexample
193
+ * import VersionHistory from "@bigbinary/neeto-molecules/v2/VersionHistory";
194
+ *
195
+ * The v2 component is a non-modal, docked column. It pushes the page content
196
+ *
197
+ * aside (like KeyboardShortcuts.Pane) instead of an overlay, so users can click
198
+ *
199
+ * through versions while the selected one is shown beside the list. Place it as
200
+ *
201
+ * the last child of a horizontal flex container.
202
+ *
203
+ * It accepts the same props as above, plus selectedVersionId (string, optional),
204
+ *
205
+ * which highlights that row. Pressing Escape while open calls onClose.
206
+ *
207
+ * @example
208
+ *
209
+ * <div className="flex h-dvh">
210
+ * <main className="flex-grow">{ selected version content }</main>
211
+ * <VersionHistory
212
+ * isOpen={isOpen}
213
+ * selectedVersionId={selectedVersionId}
214
+ * draftVersions={draftVersions}
215
+ * publishedVersions={publishedVersions}
216
+ * onClose={() => setIsOpen(false)}
217
+ * />
218
+ * </div>
219
+ * @endexample
193
220
  */
194
221
  declare const VersionHistory: React.FC<{
195
222
  isOpen: boolean;
@@ -1,7 +1,5 @@
1
1
  import React from "react";
2
2
 
3
- import { ButtonProps, PaneProps, TypographyProps } from "@bigbinary/neetoui";
4
-
5
3
  type Version = {
6
4
  id: string;
7
5
  date: Date;
@@ -36,6 +34,7 @@ const VersionHistory: React.FC<{
36
34
  isLoading?: boolean;
37
35
  draftVersions?: Version[];
38
36
  publishedVersions?: Version[];
37
+ selectedVersionId?: string;
39
38
  paneTitle?: string;
40
39
  showRefreshButton?: boolean;
41
40
  onRefreshClick?: () => void;
@@ -1,19 +0,0 @@
1
- import { c as createLucideIcon } from './createLucideIcon--oLqczpc.js';
2
-
3
- /**
4
- * @license lucide-react v1.24.0 - ISC
5
- *
6
- * This source code is licensed under the ISC license.
7
- * See the LICENSE file in the root directory of this source tree.
8
- */
9
-
10
-
11
- const __iconNode = [
12
- ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
13
- ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }],
14
- ["path", { d: "M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662", key: "154egf" }]
15
- ];
16
- const CircleUser = createLucideIcon("circle-user", __iconNode);
17
-
18
- export { CircleUser as C };
19
- //# sourceMappingURL=circle-user-ieD_gMjm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"circle-user-ieD_gMjm.js","sources":["../node_modules/lucide-react/dist/esm/icons/circle-user.mjs"],"sourcesContent":["/**\n * @license lucide-react v1.24.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"circle\", { cx: \"12\", cy: \"10\", r: \"3\", key: \"ilqhr7\" }],\n [\"path\", { d: \"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662\", key: \"154egf\" }]\n];\nconst CircleUser = createLucideIcon(\"circle-user\", __iconNode);\n\nexport { __iconNode, CircleUser as default };\n//# sourceMappingURL=circle-user.mjs.map\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAM,UAAU,GAAG;AACnB,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAC5D,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAC3D,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,kDAAkD,EAAE,GAAG,EAAE,QAAQ,EAAE;AACnF,CAAC;AACI,MAAC,UAAU,GAAG,gBAAgB,CAAC,aAAa,EAAE,UAAU;;;;","x_google_ignoreList":[0]}
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- var createLucideIcon = require('./createLucideIcon-BbuuRL2u.js');
4
-
5
- /**
6
- * @license lucide-react v1.24.0 - ISC
7
- *
8
- * This source code is licensed under the ISC license.
9
- * See the LICENSE file in the root directory of this source tree.
10
- */
11
-
12
-
13
- const __iconNode = [
14
- ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
15
- ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }],
16
- ["path", { d: "M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662", key: "154egf" }]
17
- ];
18
- const CircleUser = createLucideIcon.createLucideIcon("circle-user", __iconNode);
19
-
20
- exports.CircleUser = CircleUser;
21
- //# sourceMappingURL=circle-user-D5aGw9mw.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"circle-user-D5aGw9mw.js","sources":["../../node_modules/lucide-react/dist/esm/icons/circle-user.mjs"],"sourcesContent":["/**\n * @license lucide-react v1.24.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconNode = [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"circle\", { cx: \"12\", cy: \"10\", r: \"3\", key: \"ilqhr7\" }],\n [\"path\", { d: \"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662\", key: \"154egf\" }]\n];\nconst CircleUser = createLucideIcon(\"circle-user\", __iconNode);\n\nexport { __iconNode, CircleUser as default };\n//# sourceMappingURL=circle-user.mjs.map\n"],"names":["createLucideIcon"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAM,UAAU,GAAG;AACnB,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAC5D,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC;AAC3D,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,kDAAkD,EAAE,GAAG,EAAE,QAAQ,EAAE;AACnF,CAAC;AACI,MAAC,UAAU,GAAGA,iCAAgB,CAAC,aAAa,EAAE,UAAU;;;;","x_google_ignoreList":[0]}