@mashroom-content/mashroom-content-media-library-app
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0
{ | ||
"name": "@mashroom-content/mashroom-content-media-library-app", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0", | ||
"description": "Mashroom Content Media Library App", | ||
@@ -14,6 +14,6 @@ "homepage": "https://www.mashroom-server.com", | ||
"devDependencies": { | ||
"@mashroom-content/mashroom-content-api": "1.0.0-alpha.5", | ||
"@mashroom-content/mashroom-content-api": "1.0.0", | ||
"@types/lodash.debounce": "^4.0.7", | ||
"@types/react": "^18.0.25", | ||
"@types/react-dom": "^18.0.8", | ||
"@types/react": "^18.0.26", | ||
"@types/react-dom": "^18.0.9", | ||
"filesize": "^10.0.5", | ||
@@ -24,3 +24,3 @@ "lodash.debounce": "^4.0.8", | ||
"react-dom": "^18.2.0", | ||
"react-intl": "^6.2.1", | ||
"react-intl": "^6.2.5", | ||
"react-redux": "^8.0.5", | ||
@@ -27,0 +27,0 @@ "redux": "^4.2.0", |
@@ -14,1 +14,19 @@ | ||
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: | ||
```typescript | ||
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); | ||
}); | ||
}); | ||
``` |
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
248861
0
32