
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@asicupv/paella-extra-plugins
Advanced tools
A extra plugin set for Paella Player
Install the plugin via npm:
npm install @asicupv/paella-extra-plugins
A plugin to manage cookie consent in Paella Player.
This plugin is useful when the site integrating Paella Player does not already have a way to manage cookie consent. If the site already handles cookie consent, you should implement the getCookieConsentFunction
from PaellaInitParams
. For more details on how to implement this function, refer to the Paella documentation.
The es.upv.paella.cookieConsentPlugin
displays a cookie consent banner in the video player.
import { CookieConsentPlugin } from '@asicupv/paella-extra-plugins';
import '@asicupv/paella-extra-plugins/paella-extra-plugins.css';
cookieConsent
property into the Paella Player configurationlet paella = new Paella('player-container', {
"cookieConsent": [
{
"type": "necessary",
"title": "Necessary",
"description": "Cookies required for proper operation.",
"required": true
},
{
"type": "preferences",
"title": "Preferences",
"description": "Cookies used to store user preferences that can be configured in the application. If disabled, some of these features may not work properly.",
"required": false
},
{
"type": "analytical",
"title": "Analytical",
"description": "Cookies used to analyze user behavior and thus provide clues about future improvements in the application.",
"required": false
},
{
"type": "marketing",
"title": "Marketing",
"description": "Cookies used to better tailor ads to user preferences.",
"required": false
}
],
...
plugins: [
{
plugin: CookieConsentPlugin,
config: {
enabled: true
}
}
]
});
getCookieConsentFunction
function to the InitParams
when creating the player.The getCookieConsentFunction
is used to retrieve the user's cookie consent preferences. This function must be passed as part of the initialization parameters when creating the Paella Player instance.
import { getCookieConsentFunction } from 'paella-extra-plugins';
const player = new Paella('playerContainer', {
getCookieConsentFunction: getCookieConsentFunction,
...
});
This function ensures that the plugins and features in Paella Player respect the user's cookie preferences, such as enabling or disabling specific functionalities based on the consent type.
es.upv.paella.cookieConsentPlugin
cookieIcon
{
"cookieConsent": [
{
"type": "necessary",
"title": "Necessary",
"description": "Cookies required for proper operation.",
"required": true
},
{
"type": "preferences",
"title": "Preferences",
"description": "Cookies used to store user preferences that can be configured in the application. If disabled, some of these features may not work properly.",
"required": false
},
{
"type": "analytical",
"title": "Analytical",
"description": "Cookies used to analyze user behavior and thus provide clues about future improvements in the application.",
"required": false
},
{
"type": "marketing",
"title": "Marketing",
"description": "Cookies used to better tailor ads to user preferences.",
"required": false
}
],
"plugins": {
"es.upv.paella.cookieConsentPlugin": {
"enabled": true
}
}
}
The es.upv.paella.onboarding
provides an interactive tutorial for users to familiarize themselves with the features of the Paella Player. It uses the shepherd.js
library to create guided tours.
import { OnboardingPlugin } from '@asicupv/paella-extra-plugins';
import '@asicupv/paella-extra-plugins/paella-extra-plugins.css';
let paella = new Paella('player-container', {
plugins: [
{
plugin: OnboardingPlugin,
config: {
enabled: true
}
}
]
});
The plugin can be configured in the config.json
file:
{
"plugins": {
"es.upv.paella.onboarding": {
"enabled": true
}
}
}
enabled
: Enable or disable the plugin.FAQs
Extra plugins for Paella Player.
The npm package @asicupv/paella-extra-plugins receives a total of 12 weekly downloads. As such, @asicupv/paella-extra-plugins popularity was classified as not popular.
We found that @asicupv/paella-extra-plugins demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.