storyblok-react
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -44,6 +44,10 @@ 'use strict'; | ||
el.setAttribute('data-blok-c', JSON.stringify(options)); | ||
el.setAttribute('data-blok-uid', options.id + '-' + options.uid); | ||
if (typeof el.setAttribute === 'function') { | ||
el.setAttribute('data-blok-c', JSON.stringify(options)); | ||
el.setAttribute('data-blok-uid', options.id + '-' + options.uid); | ||
this.addClass(el, 'storyblok__outline'); | ||
this.addClass(el, 'storyblok__outline'); | ||
} else { | ||
console.warn('I seams that you are using a text dom element inside the SbEditable wrapper. Please wrap it with a HTML dom element.'); | ||
} | ||
} | ||
@@ -50,0 +54,0 @@ }, { |
{ | ||
"name": "storyblok-react", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "React component for storyblok.", | ||
@@ -20,8 +20,8 @@ "keywords": [ | ||
"devDependencies": { | ||
"babel-cli": "~6.11.4", | ||
"babel-core": "~6.13.2", | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-plugin-transform-runtime": "~6.12.0", | ||
"babel-preset-es2015": "~6.13.2", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-react": "~6.11.1", | ||
"babel-preset-stage-2": "~6.13.0", | ||
"babel-preset-stage-2": "^6.24.1", | ||
"babel-runtime": "~6.11.6", | ||
@@ -28,0 +28,0 @@ "watch": "~0.19.1" |
@@ -18,6 +18,10 @@ import React from 'react' | ||
el.setAttribute('data-blok-c', JSON.stringify(options)) | ||
el.setAttribute('data-blok-uid', options.id + '-' + options.uid) | ||
if (typeof el.setAttribute === 'function') { | ||
el.setAttribute('data-blok-c', JSON.stringify(options)) | ||
el.setAttribute('data-blok-uid', options.id + '-' + options.uid) | ||
this.addClass(el, 'storyblok__outline') | ||
this.addClass(el, 'storyblok__outline') | ||
} else { | ||
console.warn('I seams that you are using a text dom element inside the SbEditable wrapper. Please wrap it with a HTML dom element.') | ||
} | ||
} | ||
@@ -24,0 +28,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
6317
104