ai-design-system 0.1.59 → 0.1.60

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.
@@ -37,6 +37,7 @@ export interface NodeEditorProps {
37
37
 
38
38
  showMinimap?: boolean;
39
39
  interactive?: boolean;
40
+ hideDefaultActions?: boolean;
40
41
  className?: string;
41
42
  }
42
43
 
@@ -62,6 +63,7 @@ export function NodeEditor({
62
63
  extraActions,
63
64
  showMinimap,
64
65
  interactive = false,
66
+ hideDefaultActions = false,
65
67
  className,
66
68
  }: NodeEditorProps) {
67
69
  const defaultActionGroups: ToolbarAction[][] = [
@@ -72,9 +74,9 @@ export function NodeEditor({
72
74
  ],
73
75
  ];
74
76
 
75
- const allActionGroups = extraActions
76
- ? [...extraActions, ...defaultActionGroups]
77
- : defaultActionGroups;
77
+ let allActionGroups: ToolbarAction[][] = [];
78
+ if (extraActions) allActionGroups = [...allActionGroups, ...extraActions];
79
+ if (!hideDefaultActions) allActionGroups = [...allActionGroups, ...defaultActionGroups];
78
80
 
79
81
  return (
80
82
  <div
package/dist/index.cjs CHANGED
@@ -12107,6 +12107,7 @@ function NodeEditor({
12107
12107
  extraActions,
12108
12108
  showMinimap,
12109
12109
  interactive = false,
12110
+ hideDefaultActions = false,
12110
12111
  className
12111
12112
  }) {
12112
12113
  const defaultActionGroups = [
@@ -12116,7 +12117,9 @@ function NodeEditor({
12116
12117
  { id: "save", icon: "save", title: "Save", onClick: onSave, loading: isSaving, indicator: hasUnsavedChanges }
12117
12118
  ]
12118
12119
  ];
12119
- const allActionGroups = extraActions ? [...extraActions, ...defaultActionGroups] : defaultActionGroups;
12120
+ let allActionGroups = [];
12121
+ if (extraActions) allActionGroups = [...allActionGroups, ...extraActions];
12122
+ if (!hideDefaultActions) allActionGroups = [...allActionGroups, ...defaultActionGroups];
12120
12123
  return /* @__PURE__ */ jsxRuntime.jsx(
12121
12124
  "div",
12122
12125
  {