@firecms/core 3.0.0-canary.295 → 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 +9 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +9 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/core/SideDialogs.tsx +18 -8
package/dist/index.umd.js
CHANGED
|
@@ -23691,7 +23691,15 @@
|
|
|
23691
23691
|
pendingClose,
|
|
23692
23692
|
setPendingClose
|
|
23693
23693
|
}, children: [
|
|
23694
|
-
/* @__PURE__ */ jsxRuntime.jsxs(ui.Sheet, { open: Boolean(panel), onOpenChange: (open) =>
|
|
23694
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Sheet, { open: Boolean(panel), onOpenChange: (open) => {
|
|
23695
|
+
if (!open) {
|
|
23696
|
+
const suggestionMenu = document.querySelector('[data-suggestion-menu="true"]');
|
|
23697
|
+
if (suggestionMenu && window.getComputedStyle(suggestionMenu).visibility !== "hidden") {
|
|
23698
|
+
return;
|
|
23699
|
+
}
|
|
23700
|
+
onCloseRequest();
|
|
23701
|
+
}
|
|
23702
|
+
}, title: "Side dialog " + panel?.key, children: [
|
|
23695
23703
|
panel && /* @__PURE__ */ jsxRuntime.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: {
|
|
23696
23704
|
width: panel.width,
|
|
23697
23705
|
transform: `translateX(-${offsetPosition * 200}px)`
|