@firecms/core 3.0.0-canary.294 → 3.0.0-canary.296

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/index.es.js CHANGED
@@ -23693,7 +23693,15 @@ function SideDialogView({
23693
23693
  pendingClose,
23694
23694
  setPendingClose
23695
23695
  }, children: [
23696
- /* @__PURE__ */ jsxs(Sheet, { open: Boolean(panel), onOpenChange: (open) => !open && onCloseRequest(), title: "Side dialog " + panel?.key, children: [
23696
+ /* @__PURE__ */ jsxs(Sheet, { open: Boolean(panel), onOpenChange: (open) => {
23697
+ if (!open) {
23698
+ const suggestionMenu = document.querySelector('[data-suggestion-menu="true"]');
23699
+ if (suggestionMenu && window.getComputedStyle(suggestionMenu).visibility !== "hidden") {
23700
+ return;
23701
+ }
23702
+ onCloseRequest();
23703
+ }
23704
+ }, title: "Side dialog " + panel?.key, children: [
23697
23705
  panel && /* @__PURE__ */ jsx("div", { className: "transform max-w-[100vw] lg:max-w-[95vw] flex flex-col h-full transition-all duration-250 ease-in-out bg-white dark:bg-surface-900 ", style: {
23698
23706
  width: panel.width,
23699
23707
  transform: `translateX(-${offsetPosition * 200}px)`