@auritylab/prismic-vue
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -18,3 +18,3 @@ 'use strict'; | ||
return createElement('div', { | ||
domProps: { | ||
attrs: { | ||
'data-wio-id': this.documentId | ||
@@ -34,11 +34,11 @@ } | ||
render: function (createElement) { | ||
var domProps = {}; | ||
var attrs = {}; | ||
if (this.field.embed_url) | ||
domProps['data-oembed'] = this.field.embed_url; | ||
attrs['data-oembed'] = this.field.embed_url; | ||
if (this.field.type) | ||
domProps['data-oembed-type'] = this.field.type; | ||
attrs['data-oembed-type'] = this.field.type; | ||
if (this.field.provider_name) | ||
domProps['data-oembed-provider'] = this.field.provider_name; | ||
attrs['data-oembed-provider'] = this.field.provider_name; | ||
return createElement('div', { | ||
domProps: domProps | ||
attrs: attrs | ||
}, [ | ||
@@ -60,10 +60,10 @@ this.field.html | ||
return null; | ||
var domProps = {}; | ||
domProps.src = this.field.url; | ||
var attrs = {}; | ||
attrs.src = this.field.url; | ||
if (this.field.alt) | ||
domProps.alt = this.field.alt; | ||
attrs.alt = this.field.alt; | ||
if (this.field.copyright) | ||
domProps.copyright = this.field.copyright; | ||
attrs.copyright = this.field.copyright; | ||
return createElement('img', { | ||
domProps: domProps | ||
attrs: attrs | ||
}); | ||
@@ -92,6 +92,6 @@ } | ||
else { | ||
var domProps = {}; | ||
var attrs = {}; | ||
if (this.field.target) | ||
domProps.target = this.field.target; | ||
return createElement('a', { domProps: domProps }, [ | ||
attrs.target = this.field.target; | ||
return createElement('a', { attrs: attrs }, [ | ||
createElement('slot') | ||
@@ -98,0 +98,0 @@ ]); |
@@ -15,3 +15,3 @@ import { Link, RichText } from 'prismic-dom'; | ||
return createElement('div', { | ||
domProps: { | ||
attrs: { | ||
'data-wio-id': this.documentId | ||
@@ -31,11 +31,11 @@ } | ||
render: function (createElement) { | ||
var domProps = {}; | ||
var attrs = {}; | ||
if (this.field.embed_url) | ||
domProps['data-oembed'] = this.field.embed_url; | ||
attrs['data-oembed'] = this.field.embed_url; | ||
if (this.field.type) | ||
domProps['data-oembed-type'] = this.field.type; | ||
attrs['data-oembed-type'] = this.field.type; | ||
if (this.field.provider_name) | ||
domProps['data-oembed-provider'] = this.field.provider_name; | ||
attrs['data-oembed-provider'] = this.field.provider_name; | ||
return createElement('div', { | ||
domProps: domProps | ||
attrs: attrs | ||
}, [ | ||
@@ -57,10 +57,10 @@ this.field.html | ||
return null; | ||
var domProps = {}; | ||
domProps.src = this.field.url; | ||
var attrs = {}; | ||
attrs.src = this.field.url; | ||
if (this.field.alt) | ||
domProps.alt = this.field.alt; | ||
attrs.alt = this.field.alt; | ||
if (this.field.copyright) | ||
domProps.copyright = this.field.copyright; | ||
attrs.copyright = this.field.copyright; | ||
return createElement('img', { | ||
domProps: domProps | ||
attrs: attrs | ||
}); | ||
@@ -89,6 +89,6 @@ } | ||
else { | ||
var domProps = {}; | ||
var attrs = {}; | ||
if (this.field.target) | ||
domProps.target = this.field.target; | ||
return createElement('a', { domProps: domProps }, [ | ||
attrs.target = this.field.target; | ||
return createElement('a', { attrs: attrs }, [ | ||
createElement('slot') | ||
@@ -95,0 +95,0 @@ ]); |
@@ -17,3 +17,3 @@ (function (global, factory) { | ||
return createElement('div', { | ||
domProps: { | ||
attrs: { | ||
'data-wio-id': this.documentId | ||
@@ -33,11 +33,11 @@ } | ||
render: function (createElement) { | ||
var domProps = {}; | ||
var attrs = {}; | ||
if (this.field.embed_url) | ||
domProps['data-oembed'] = this.field.embed_url; | ||
attrs['data-oembed'] = this.field.embed_url; | ||
if (this.field.type) | ||
domProps['data-oembed-type'] = this.field.type; | ||
attrs['data-oembed-type'] = this.field.type; | ||
if (this.field.provider_name) | ||
domProps['data-oembed-provider'] = this.field.provider_name; | ||
attrs['data-oembed-provider'] = this.field.provider_name; | ||
return createElement('div', { | ||
domProps: domProps | ||
attrs: attrs | ||
}, [ | ||
@@ -59,10 +59,10 @@ this.field.html | ||
return null; | ||
var domProps = {}; | ||
domProps.src = this.field.url; | ||
var attrs = {}; | ||
attrs.src = this.field.url; | ||
if (this.field.alt) | ||
domProps.alt = this.field.alt; | ||
attrs.alt = this.field.alt; | ||
if (this.field.copyright) | ||
domProps.copyright = this.field.copyright; | ||
attrs.copyright = this.field.copyright; | ||
return createElement('img', { | ||
domProps: domProps | ||
attrs: attrs | ||
}); | ||
@@ -91,6 +91,6 @@ } | ||
else { | ||
var domProps = {}; | ||
var attrs = {}; | ||
if (this.field.target) | ||
domProps.target = this.field.target; | ||
return createElement('a', { domProps: domProps }, [ | ||
attrs.target = this.field.target; | ||
return createElement('a', { attrs: attrs }, [ | ||
createElement('slot') | ||
@@ -97,0 +97,0 @@ ]); |
{ | ||
"name": "@auritylab/prismic-vue", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Vue.js plugin to facilitate integration of content managed with Prismic", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91893