@expofp/debug 3.3.1 → 3.3.3
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/lib/ui/debug-overlay.js +12 -2
- package/dist/lib/ui/debug-ui.js +10 -10
- package/package.json +1 -1
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import '@radix-ui/themes/styles.css';
|
|
3
|
-
import {
|
|
3
|
+
import { Container, Theme } from '@radix-ui/themes';
|
|
4
4
|
import { DebugTabs } from './debug-tabs.js';
|
|
5
5
|
export const DebugOverlay = ({ onClose }) => {
|
|
6
|
-
return (_jsx(Theme, { appearance: "dark",
|
|
6
|
+
return (_jsx(Theme, { appearance: "dark", style: {
|
|
7
|
+
// gradient
|
|
8
|
+
backgroundColor: 'rgba(0, 0, 0, 0.9)',
|
|
9
|
+
backdropFilter: 'blur(10px)',
|
|
10
|
+
position: 'fixed',
|
|
11
|
+
top: 0,
|
|
12
|
+
right: 0,
|
|
13
|
+
width: '100vw',
|
|
14
|
+
height: '100dvh',
|
|
15
|
+
overflowY: 'auto',
|
|
16
|
+
}, children: _jsx(Container, { size: "4", px: "2", children: _jsx(DebugTabs, { onClose: onClose }) }) }));
|
|
7
17
|
};
|
package/dist/lib/ui/debug-ui.js
CHANGED
|
@@ -5,25 +5,25 @@ import { SideButton } from './side-button.js';
|
|
|
5
5
|
const LazyDebugOverlay = lazy(async () => ({
|
|
6
6
|
default: (await import('./debug-overlay.js')).DebugOverlay,
|
|
7
7
|
}));
|
|
8
|
-
const DEFAULT_HOST_SELECTOR = '[data-efp-floorplan-defaults]';
|
|
8
|
+
// const DEFAULT_HOST_SELECTOR = '[data-efp-floorplan-defaults]';
|
|
9
9
|
export const DebugUi = (props) => {
|
|
10
10
|
const [isOpen, setIsOpen] = useState(props.open);
|
|
11
11
|
const [debugButtonEnabled, setDebugButtonEnabled] = props.useDebugButtonState();
|
|
12
|
-
const selector = props.hostSelector ?? DEFAULT_HOST_SELECTOR;
|
|
12
|
+
// const selector = props.hostSelector ?? DEFAULT_HOST_SELECTOR;
|
|
13
13
|
useEffect(() => {
|
|
14
14
|
return addDebugSecretListener(() => {
|
|
15
15
|
setDebugButtonEnabled(true);
|
|
16
16
|
setIsOpen(true);
|
|
17
17
|
});
|
|
18
18
|
}, []);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
useEffect(() => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, [isOpen, selector]);
|
|
19
|
+
//// set visibility of efp floorplan to none when debug ui is open
|
|
20
|
+
//// otherwise, z-index issues occur
|
|
21
|
+
// useEffect(() => {
|
|
22
|
+
// const efpFloorplan = document.querySelector(selector) as HTMLElement | null;
|
|
23
|
+
// if (efpFloorplan) {
|
|
24
|
+
// efpFloorplan.style.visibility = isOpen ? 'hidden' : 'visible';
|
|
25
|
+
// }
|
|
26
|
+
// }, [isOpen, selector]);
|
|
27
27
|
if (isOpen) {
|
|
28
28
|
return (_jsx(Suspense, { fallback: null, children: _jsx(LazyDebugOverlay, { onClose: () => {
|
|
29
29
|
setIsOpen(false);
|