@chaibuilder/sdk 2.5.9 → 2.6.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/core.js CHANGED
@@ -9746,14 +9746,10 @@ const SettingsPanel = () => {
9746
9746
  )
9747
9747
  ] }) });
9748
9748
  }, CHAI_BUILDER_PANELS = {}, registerChaiSidebarPanel = (o, r) => {
9749
- if (has(CHAI_BUILDER_PANELS, o)) {
9750
- console.warn(`Panel ${o} already registered. Overriding...`);
9751
- return;
9752
- }
9753
- set(CHAI_BUILDER_PANELS, o, { id: o, ...r });
9749
+ has(CHAI_BUILDER_PANELS, o) && console.warn(`Panel ${o} already registered. Overriding...`), set(CHAI_BUILDER_PANELS, o, { id: o, ...r });
9754
9750
  }, useChaiSidebarPanels = (o) => useMemo(
9755
9751
  () => filter(values(CHAI_BUILDER_PANELS), (r) => r.position === o),
9756
- [o]
9752
+ [o, CHAI_BUILDER_PANELS]
9757
9753
  ), DefaultTopBar = () => /* @__PURE__ */ jsx("div", {}), TOP_BAR = {
9758
9754
  component: DefaultTopBar
9759
9755
  }, registerChaiTopBar = (o) => {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "Suraj Air",
6
6
  "license": "BSD-3-Clause",
7
7
  "homepage": "https://chaibuilder.com",
8
- "version": "2.5.9",
8
+ "version": "2.6.0",
9
9
  "type": "module",
10
10
  "repository": {
11
11
  "type": "git",