cloudinary-react
Advanced tools
Comparing version 1.3.4 to 1.4.0
@@ -0,1 +1,7 @@ | ||
1.4.0 / 2020-03-25 | ||
================== | ||
* Add support for signature param | ||
* Upgrade cloudianry-core version to ^2.8.2 | ||
1.3.4 / 2020-03-18 | ||
@@ -2,0 +8,0 @@ ================== |
@@ -34,8 +34,12 @@ "use strict"; | ||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
@@ -79,2 +83,4 @@ | ||
var _super = _createSuper(CloudinaryComponent); | ||
function CloudinaryComponent(props, context) { | ||
@@ -85,3 +91,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(CloudinaryComponent).call(this, props, context)); | ||
_this = _super.call(this, props, context); | ||
_this.getContext = _this.getContext.bind(_assertThisInitialized(_this)); | ||
@@ -88,0 +94,0 @@ return _this; |
@@ -34,2 +34,4 @@ "use strict"; | ||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -39,2 +41,4 @@ | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -59,6 +63,8 @@ | ||
var _super = _createSuper(CloudinaryContext); | ||
function CloudinaryContext(props, context) { | ||
_classCallCheck(this, CloudinaryContext); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(CloudinaryContext).call(this, props, context)); | ||
return _super.call(this, props, context); | ||
} | ||
@@ -77,5 +83,5 @@ | ||
return _react["default"].createElement(_CloudinaryContextType.CloudinaryContextType.Provider, { | ||
return /*#__PURE__*/_react["default"].createElement(_CloudinaryContextType.CloudinaryContextType.Provider, { | ||
value: cloudinaryProps | ||
}, cloudinaryReactProps.includeOwnBody ? children : _react["default"].createElement("div", nonCloudinaryProps, children)); | ||
}, cloudinaryReactProps.includeOwnBody ? children : /*#__PURE__*/_react["default"].createElement("div", nonCloudinaryProps, children)); | ||
} | ||
@@ -82,0 +88,0 @@ }]); |
@@ -42,8 +42,12 @@ "use strict"; | ||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
@@ -65,2 +69,4 @@ | ||
var _super = _createSuper(Image); | ||
function Image(props, context) { | ||
@@ -71,3 +77,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(Image).call(this, props, context)); | ||
_this = _super.call(this, props, context); | ||
_this.handleResize = _this.handleResize.bind(_assertThisInitialized(_this)); | ||
@@ -199,3 +205,3 @@ _this.attachRef = _this.attachRef.bind(_assertThisInitialized(_this)); | ||
var url = this.state.url; | ||
return _react["default"].createElement("img", _extends({}, attributes, { | ||
return /*#__PURE__*/_react["default"].createElement("img", _extends({}, attributes, { | ||
src: url, | ||
@@ -202,0 +208,0 @@ ref: this.attachRef |
@@ -22,2 +22,4 @@ "use strict"; | ||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
@@ -27,2 +29,4 @@ | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
@@ -40,6 +44,8 @@ | ||
var _super = _createSuper(Transformation); | ||
function Transformation(props, context) { | ||
_classCallCheck(this, Transformation); | ||
return _possibleConstructorReturn(this, _getPrototypeOf(Transformation).call(this, props, context)); | ||
return _super.call(this, props, context); | ||
} | ||
@@ -46,0 +52,0 @@ |
@@ -36,8 +36,12 @@ "use strict"; | ||
function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
@@ -55,5 +59,5 @@ | ||
var _super = _createSuper(Video); | ||
function Video() { | ||
var _getPrototypeOf2; | ||
var _this; | ||
@@ -67,3 +71,3 @@ | ||
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Video)).call.apply(_getPrototypeOf2, [this].concat(args))); | ||
_this = _super.call.apply(_super, [this].concat(args)); | ||
@@ -90,3 +94,3 @@ _defineProperty(_assertThisInitialized(_this), "getMergedProps", function () { | ||
var mimeType = 'video/' + (sourceType === 'ogv' ? 'ogg' : sourceType); | ||
return _react["default"].createElement("source", { | ||
return /*#__PURE__*/_react["default"].createElement("source", { | ||
key: mimeType, | ||
@@ -160,3 +164,3 @@ src: src, | ||
return _react["default"].createElement("video", _extends({ | ||
return /*#__PURE__*/_react["default"].createElement("video", _extends({ | ||
ref: innerRef | ||
@@ -163,0 +167,0 @@ }, tagAttributes), sources, fallback, children); |
{ | ||
"name": "cloudinary-react", | ||
"version": "1.3.4", | ||
"version": "1.4.0", | ||
"description": "Present Cloudinary images and videos using React components", | ||
@@ -55,3 +55,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"cloudinary-core": "^2.7.4", | ||
"cloudinary-core": "^2.8.2", | ||
"prop-types": "^15.6.2" | ||
@@ -58,0 +58,0 @@ }, |
Sorry, the diff of this file is too big to display
259195
2056
Updatedcloudinary-core@^2.8.2