cec-nuxt-lib 0.10.10 → 0.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -306,6 +306,10 @@ const htmlComponent = (props2) => {
|
|
|
306
306
|
let item = props2.block?.value;
|
|
307
307
|
return item.html;
|
|
308
308
|
};
|
|
309
|
+
const linkComponent = (props2) => {
|
|
310
|
+
let item = props2.block?.value;
|
|
311
|
+
return `<a href="${item.target}" >${item.label}</a>`;
|
|
312
|
+
};
|
|
309
313
|
const imageWithCSS = (props2) => {
|
|
310
314
|
let data = props2.block?.value;
|
|
311
315
|
let classes = data.alignment || "";
|
|
@@ -656,6 +660,7 @@ const renderer = createRenderer({
|
|
|
656
660
|
horizontalTable,
|
|
657
661
|
htmlComponent,
|
|
658
662
|
imageWithCSS,
|
|
663
|
+
linkComponent,
|
|
659
664
|
promotionalBannerWithText,
|
|
660
665
|
promotionalContrastRegion
|
|
661
666
|
}
|
package/package.json
CHANGED