@convertkit/editor-core
Advanced tools
Comparing version 0.2.1 to 0.2.2
56
index.js
@@ -7,19 +7,9 @@ 'use strict'; | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
function createCommonjsModule(fn, module) { | ||
return module = { exports: {} }, fn(module, module.exports), module.exports; | ||
} | ||
var _extends_1 = createCommonjsModule(function (module) { | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
module.exports = _extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
@@ -41,2 +31,22 @@ var source = arguments[i]; | ||
module.exports = _extends; | ||
}); | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
var defineProperty = _defineProperty; | ||
function _objectSpread(target) { | ||
@@ -54,3 +64,3 @@ for (var i = 1; i < arguments.length; i++) { | ||
ownKeys.forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
defineProperty(target, key, source[key]); | ||
}); | ||
@@ -62,6 +72,8 @@ } | ||
var objectSpread = _objectSpread; | ||
var index = (function () { | ||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var classNames = _objectSpread({}, options.classNames); | ||
var classNames = objectSpread({}, options.classNames); | ||
@@ -83,3 +95,3 @@ var defaultBlock = options.defaultBlock || "paragraph"; | ||
case "heading-one": | ||
return React.createElement("h1", _extends({}, attributes, { | ||
return React.createElement("h1", _extends_1({}, attributes, { | ||
className: className | ||
@@ -89,3 +101,3 @@ }), children); | ||
case "heading-two": | ||
return React.createElement("h2", _extends({}, attributes, { | ||
return React.createElement("h2", _extends_1({}, attributes, { | ||
className: className | ||
@@ -95,3 +107,3 @@ }), children); | ||
case "heading-three": | ||
return React.createElement("h3", _extends({}, attributes, { | ||
return React.createElement("h3", _extends_1({}, attributes, { | ||
className: className | ||
@@ -101,3 +113,3 @@ }), children); | ||
case "heading-four": | ||
return React.createElement("h4", _extends({}, attributes, { | ||
return React.createElement("h4", _extends_1({}, attributes, { | ||
className: className | ||
@@ -107,3 +119,3 @@ }), children); | ||
case "heading-five": | ||
return React.createElement("h5", _extends({}, attributes, { | ||
return React.createElement("h5", _extends_1({}, attributes, { | ||
className: className | ||
@@ -113,3 +125,3 @@ }), children); | ||
case "heading-six": | ||
return React.createElement("h6", _extends({}, attributes, { | ||
return React.createElement("h6", _extends_1({}, attributes, { | ||
className: className | ||
@@ -116,0 +128,0 @@ }), children); |
{ | ||
"name": "@convertkit/editor-core", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Core plugin for ConvertKit Editor", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"slate": "^0.45.0", | ||
"slate-react": "^0.22.0" | ||
"slate-react": "^0.21.0" | ||
}, | ||
@@ -29,3 +29,3 @@ "files": [ | ||
], | ||
"gitHead": "5c56d7ff292b0f711505967501252e92a29287c9" | ||
"gitHead": "8c740db1f52fd413fa98401f0b081eba76c08787" | ||
} |
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
6599
191