
Research
/Security News
11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windows Host-Surveillance Payload
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.
@elementor/editor-panels
Advanced tools
> [!WARNING] > This package is under development and not ready for production use.
[!WARNING] This package is under development and not ready for production use.
Creating panel contains 3 steps:
// components/my-panel.tsx
import { Panel, PanelHeader, PanelHeaderTitle, PanelBody } from '@elementor/editor-panels';
export default function MyPanel() {
return (
<Panel>
<PanelHeader>
<PanelHeaderTitle>{ /* Panel title */ }</PanelHeaderTitle>
</PanelHeader>
<PanelBody>
{ /* Here should be all the content of the panel */ }
</PanelBody>
</Panel>
);
}
// panel.ts
import { createPanel } from '@elementor/editor-panels';
import MyPanel from './components/my-panel';
export const {
panel,
usePanelStatus,
usePanelActions,
} = createPanel( {
id: 'my-panel',
component: MyPanel
} );
// init.ts
import { registerPanel } from '@elementor/editor-panels';
import { panel } from './panel';
function init() {
registerPanel( panel );
}
// index.ts
import init from './init';
init();
To change or read the state of a panel (open/close), you can use 2 hooks that are being returned
from the createPanel() function.
Let's assume that we have a button that should open the panel when clicked, and close it when clicked again.
// components/my-panel-button.tsx
import { usePanelStatus, usePanelActions } from '../panel';
export default function MyPanelButton() {
const { isOpen, isBlocked } = usePanelStatus();
const { open, close } = usePanelActions();
return (
<button onClick={ isOpen ? close : open } disabled={ isBlocked }>
{ isOpen ? 'Close panel' : 'Open panel' }
</button>
);
}
FAQs
> [!WARNING] > This package is under development and not ready for production use.
The npm package @elementor/editor-panels receives a total of 1,507 weekly downloads. As such, @elementor/editor-panels popularity was classified as popular.
We found that @elementor/editor-panels demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.