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

@mashroom-content/mashroom-content-media-library-app

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mashroom-content/mashroom-content-media-library-app

Mashroom Content Media Library App

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Mashroom Content Media Library App

Plugin for Mashroom Server, a Microfrontend Integration Platform. Part of the Mashroom Content extension.

This Portal App allows it to manage a Media Library (Images, Videos).

Usage

If node_modules/@mashroom is configured as plugin path just add @mashroom-content/mashroom-content-media-library-app as dependency.

After that you can Drag the App Mashroom Content Media Library App onto any page via Admin Toolbar.

And you can also use it in your custom Portal Apps to lookup assets like this:

const responseChannelTopic = `__selected_video_${randomId()}__`;
const mediaLibraryAppConfig = {
    modalMode: true,
    typeFilter: 'image',
    responseChannelTopic,
};
portalAppService.loadAppModal('Mashroom Content Media Library App', 'Select Image', mediaLibraryAppConfig).then((portalApp) => {
    messageBus.subscribeOnce(responseChannelTopic, (asset: MashroomContentAsset) => {
        console.debug('Received asset:', asset);
        // TODO: process received asset
        portalAppService.unloadApp(portalApp.id);
    });
});

FAQs

Package last updated on 28 Dec 2022

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