Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maestro_io/panel-sdk

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maestro_io/panel-sdk

Maestro panel SDK for Node.js

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-33.33%
Maintainers
3
Weekly downloads
 
Created
Source

Maestro Panel SDK

Version: 1.00.0

Initializing

const MaestroPanelSDK = require('MaestroPanelSDK');
const panel = new MaestroPanelSDK();

const run = async () => {
  panel.init();
}

// get style from parent
panel.getStyle().then((style) => {
  // do stuff
})

// parent is ready to render page
panel.on('parent-ready', () => {
  // do stuff, then tell parent to render
  panel.render();
})

// initialize the sdk
panel.init();

// destroy when finished
panel.destroy();

Methods

NameParamsDescriptionPayloadAsync
initregisters the iframe with the parent and inits listenerfalse
destroydestroys listeners and informs parent this iframe is destroyedfalse
getStylereturns a style object of the parent sitestyle objecttrue

FAQs

Package last updated on 30 Apr 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc