orcs-design-system 3.3.10 → 3.3.11

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.
@@ -49,7 +49,7 @@ const panels = [{
49
49
  id: "view-options",
50
50
  iconName: "eye",
51
51
  title: "View Options",
52
- defaultExpanded: true,
52
+ expanded: true,
53
53
  content: /*#__PURE__*/_jsx(Properties, {})
54
54
  }, {
55
55
  id: "properties",
@@ -14,12 +14,10 @@ const FloatingPanels = _ref => {
14
14
  onClick = () => {}
15
15
  } = _ref;
16
16
  const [expandedPanelId, setExpandedPanelId] = useState(null);
17
-
18
- // Set the default expanded panel on component mount
19
17
  useEffect(() => {
20
- const defaultExpandedPanel = panels.find(panel => panel.defaultExpanded);
21
- if (defaultExpandedPanel) {
22
- setExpandedPanelId(defaultExpandedPanel.id);
18
+ const expandedPanel = panels.find(panel => panel.expanded);
19
+ if (expandedPanel?.id) {
20
+ setExpandedPanelId(expandedPanel.id);
23
21
  }
24
22
  }, [panels]);
25
23
  const togglePanel = panelId => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orcs-design-system",
3
- "version": "3.3.10",
3
+ "version": "3.3.11",
4
4
  "engines": {
5
5
  "node": "20.12.2"
6
6
  },