cloudinary-react
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -0,9 +1,18 @@ | ||
1.3.1 / 2020-03-01 | ||
================== | ||
* Fix contextType to be class property of CloudinaryComponent (#145) | ||
* Update sample project's dependencies (#127) | ||
* Add Transformation test for font antialiasing and hinting (#126) | ||
* Add /docs folder with storybook output | ||
* Fix spelling in README.md | ||
1.3.0 / 2019-12-26 | ||
================== | ||
* Add support for innerRef to the Image & Video components | ||
* Fix compile script | ||
* Fix photo album sample app startup | ||
* Add support for innerRef to the Image & Video components | ||
* Fix compile script | ||
* Fix photo album sample app startup | ||
1.2.1 / 2019-09-30 | ||
@@ -10,0 +19,0 @@ ================== |
@@ -22,3 +22,3 @@ "use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -45,2 +45,4 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
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 camelCase = _cloudinaryCore.Util.camelCase; | ||
@@ -75,5 +77,3 @@ /** | ||
var CloudinaryComponent = | ||
/*#__PURE__*/ | ||
function (_PureComponent) { | ||
var CloudinaryComponent = /*#__PURE__*/function (_PureComponent) { | ||
_inherits(CloudinaryComponent, _PureComponent); | ||
@@ -208,3 +208,4 @@ | ||
CloudinaryComponent.contextType = _CloudinaryContextType.CloudinaryContextType; | ||
_defineProperty(CloudinaryComponent, "contextType", _CloudinaryContextType.CloudinaryContextType); | ||
CloudinaryComponent.propTypes = typesFrom(_cloudinaryCore.Transformation.PARAM_NAMES.map(camelCase)); | ||
@@ -211,0 +212,0 @@ CloudinaryComponent.propTypes.publicId = _propTypes["default"].string; |
@@ -20,3 +20,3 @@ "use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -55,5 +55,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
*/ | ||
var CloudinaryContext = | ||
/*#__PURE__*/ | ||
function (_CloudinaryComponent) { | ||
var CloudinaryContext = /*#__PURE__*/function (_CloudinaryComponent) { | ||
_inherits(CloudinaryContext, _CloudinaryComponent); | ||
@@ -93,4 +91,3 @@ | ||
}; | ||
CloudinaryContext.contextType = _CloudinaryContextType.CloudinaryContextType; | ||
var _default = CloudinaryContext; | ||
exports["default"] = _default; |
"use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { |
@@ -22,3 +22,3 @@ "use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -62,5 +62,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
var Image = | ||
/*#__PURE__*/ | ||
function (_CloudinaryComponent) { | ||
var Image = /*#__PURE__*/function (_CloudinaryComponent) { | ||
_inherits(Image, _CloudinaryComponent); | ||
@@ -67,0 +65,0 @@ |
@@ -14,3 +14,3 @@ "use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -36,5 +36,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
*/ | ||
var Transformation = | ||
/*#__PURE__*/ | ||
function (_CloudinaryComponent) { | ||
var Transformation = /*#__PURE__*/function (_CloudinaryComponent) { | ||
_inherits(Transformation, _CloudinaryComponent); | ||
@@ -41,0 +39,0 @@ |
@@ -18,3 +18,3 @@ "use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -51,5 +51,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
var Video = | ||
/*#__PURE__*/ | ||
function (_CloudinaryComponent) { | ||
var Video = /*#__PURE__*/function (_CloudinaryComponent) { | ||
_inherits(Video, _CloudinaryComponent); | ||
@@ -56,0 +54,0 @@ |
@@ -8,3 +8,3 @@ "use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -11,0 +11,0 @@ // Originally from lodash |
{ | ||
"name": "cloudinary-react", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Present Cloudinary images and videos using React components", | ||
@@ -12,5 +12,5 @@ "main": "lib/index.js", | ||
"compile": "node_modules/.bin/babel src --out-dir lib --copy-files ", | ||
"dist": "node_modules/.bin/webpack", | ||
"dist": "node_modules/.bin/webpack && npm run build-storybook", | ||
"storybook": "start-storybook -p 6006", | ||
"build-storybook": "build-storybook" | ||
"build-storybook": "build-storybook -c .storybook -o docs" | ||
}, | ||
@@ -30,2 +30,3 @@ "repository": { | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-proposal-class-properties": "^7.8.3", | ||
"@babel/plugin-proposal-export-default-from": "^7.2.0", | ||
@@ -32,0 +33,0 @@ "@babel/preset-env": "^7.2.0", |
@@ -116,5 +116,6 @@ import React, {PureComponent} from 'react'; | ||
} | ||
static contextType = CloudinaryContextType; | ||
} | ||
CloudinaryComponent.contextType = CloudinaryContextType; | ||
CloudinaryComponent.propTypes = typesFrom(Transformation.PARAM_NAMES.map(camelCase)); | ||
@@ -121,0 +122,0 @@ CloudinaryComponent.propTypes.publicId = PropTypes.string; |
@@ -37,4 +37,3 @@ import React from 'react'; | ||
CloudinaryContext.defaultProps = {includeOwnBody: false}; | ||
CloudinaryContext.contextType = CloudinaryContextType; | ||
export default CloudinaryContext; |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5145097
71
17426
25
1