@paroicms/quill-editor-plugin
Advanced tools
Comparing version 1.14.0 to 1.15.0
@@ -22,2 +22,4 @@ "use strict"; | ||
return imgBlotProcessing(service, value, options); | ||
if (type === "video-plugin") | ||
return videoPluginBlotProcessing(service, value, options); | ||
service.logger.warn(`Invalid blot '${type}'`); | ||
@@ -36,2 +38,4 @@ return ""; | ||
return ""; | ||
if (type === "video-plugin") | ||
return ""; | ||
service.logger.warn(`Invalid blot '${type}'`); | ||
@@ -137,1 +141,13 @@ return ""; | ||
} | ||
function videoPluginBlotProcessing(service, value, options) { | ||
const videoId = (0, data_formatters_lib_1.strValOrUndef)(value); | ||
if (!videoId) | ||
return ""; | ||
return ` | ||
<iframe | ||
width="420" | ||
height="315" | ||
src="https://www.youtube.com/embed/${encodeURIComponent(videoId)}" | ||
></iframe> | ||
`; | ||
} |
{ | ||
"name": "@paroicms/quill-editor-plugin", | ||
"version": "1.14.0", | ||
"version": "1.15.0", | ||
"description": "Quill Editor plugin for ParoiCMS", | ||
@@ -40,4 +40,4 @@ "keywords": [ | ||
"@paroicms/public-anywhere-lib": "0.8.0", | ||
"@paroicms/public-bo-lib": "0.13.1", | ||
"@paroicms/public-server-lib": "0.14.1", | ||
"@paroicms/public-bo-lib": "0.14.0", | ||
"@paroicms/public-server-lib": "0.15.0", | ||
"@solid-primitives/i18n": "~2.1.1", | ||
@@ -58,2 +58,3 @@ "@types/node": "~20.14.8", | ||
"main": "backend/dist/plugin.js", | ||
"types": "types/html-editor-public-types.d.ts", | ||
"files": [ | ||
@@ -63,4 +64,5 @@ "backend/dist", | ||
"bo-front/dist", | ||
"site-schema-lib" | ||
"site-schema-lib", | ||
"types" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
373433
13
392
6