@remirror/react-utils
Advanced tools
Comparing version 1.0.0-next.33 to 1.0.0-next.34
# @remirror/react-utils | ||
## 1.0.0-next.34 | ||
> 2020-09-10 | ||
### Patch Changes | ||
- Updated dependencies [[`27b358e4`](https://github.com/remirror/remirror/commit/27b358e4cb877a1e8df61c9d5326f366e66f30dc), [`5945dffe`](https://github.com/remirror/remirror/commit/5945dffeadac8ae568be1ab0014e1186e03d5fb0)]: | ||
- @remirror/core-constants@1.0.0-next.34 | ||
- @remirror/core-helpers@1.0.0-next.34 | ||
- @remirror/core-types@1.0.0-next.34 | ||
## 1.0.0-next.33 | ||
@@ -4,0 +15,0 @@ |
@@ -5,13 +5,15 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty')); | ||
var _defineProperty = require('@babel/runtime/helpers/defineProperty'); | ||
var React = require('react'); | ||
var React__default = _interopDefault(React); | ||
var coreConstants = require('@remirror/core-constants'); | ||
var coreHelpers = require('@remirror/core-helpers'); | ||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; } | ||
var _defineProperty__default = /*#__PURE__*/_interopDefault(_defineProperty); | ||
var React__default = /*#__PURE__*/_interopDefault(React); | ||
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; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
/** | ||
@@ -146,3 +148,3 @@ * A drop in replacement for built in React.isValidElement which accepts a test value of any type | ||
return /*#__PURE__*/React__default.cloneElement(element, _objectSpread(_objectSpread({}, element.props), {}, { | ||
return /*#__PURE__*/React__default['default'].cloneElement(element, _objectSpread(_objectSpread({}, element.props), {}, { | ||
key | ||
@@ -149,0 +151,0 @@ })); |
@@ -5,13 +5,15 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _defineProperty = _interopDefault(require('@babel/runtime/helpers/defineProperty')); | ||
var _defineProperty = require('@babel/runtime/helpers/defineProperty'); | ||
var React = require('react'); | ||
var React__default = _interopDefault(React); | ||
var coreConstants = require('@remirror/core-constants'); | ||
var coreHelpers = require('@remirror/core-helpers'); | ||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; } | ||
var _defineProperty__default = /*#__PURE__*/_interopDefault(_defineProperty); | ||
var React__default = /*#__PURE__*/_interopDefault(React); | ||
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; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
/** | ||
@@ -146,3 +148,3 @@ * A drop in replacement for built in React.isValidElement which accepts a test value of any type | ||
return /*#__PURE__*/React__default.cloneElement(element, _objectSpread(_objectSpread({}, element.props), {}, { | ||
return /*#__PURE__*/React__default['default'].cloneElement(element, _objectSpread(_objectSpread({}, element.props), {}, { | ||
key | ||
@@ -149,0 +151,0 @@ })); |
"use strict"; | ||
function _interopDefault(ex) { | ||
return ex && "object" == typeof ex && "default" in ex ? ex.default : ex; | ||
} | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -11,4 +7,12 @@ value: !0 | ||
var _defineProperty = _interopDefault(require("@babel/runtime/helpers/defineProperty")), React = require("react"), React__default = _interopDefault(React), coreConstants = require("@remirror/core-constants"), coreHelpers = require("@remirror/core-helpers"); | ||
var _defineProperty = require("@babel/runtime/helpers/defineProperty"), React = require("react"), coreConstants = require("@remirror/core-constants"), coreHelpers = require("@remirror/core-helpers"); | ||
function _interopDefault(e) { | ||
return e && e.__esModule ? e : { | ||
default: e | ||
}; | ||
} | ||
var _defineProperty__default = _interopDefault(_defineProperty), React__default = _interopDefault(React); | ||
function ownKeys(object, enumerableOnly) { | ||
@@ -29,3 +33,3 @@ var keys = Object.keys(object); | ||
i % 2 ? ownKeys(Object(source), !0).forEach((function(key) { | ||
_defineProperty(target, key, source[key]); | ||
_defineProperty__default.default(target, key, source[key]); | ||
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach((function(key) { | ||
@@ -67,3 +71,3 @@ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
return React.Children.only(value); | ||
}, addKeyToElement = (element, key) => isValidElement(element) ? React__default.cloneElement(element, _objectSpread(_objectSpread({}, element.props), {}, { | ||
}, addKeyToElement = (element, key) => isValidElement(element) ? React__default.default.cloneElement(element, _objectSpread(_objectSpread({}, element.props), {}, { | ||
key: key | ||
@@ -70,0 +74,0 @@ })) : element; |
{ | ||
"name": "@remirror/react-utils", | ||
"version": "1.0.0-next.33", | ||
"version": "1.0.0-next.34", | ||
"description": "A small set of utilities for react components in remirror.", | ||
@@ -30,5 +30,5 @@ "keywords": [ | ||
"@babel/runtime": "^7.11.0", | ||
"@remirror/core-constants": "1.0.0-next.33", | ||
"@remirror/core-helpers": "1.0.0-next.33", | ||
"@remirror/core-types": "1.0.0-next.33" | ||
"@remirror/core-constants": "1.0.0-next.34", | ||
"@remirror/core-helpers": "1.0.0-next.34", | ||
"@remirror/core-types": "1.0.0-next.34" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
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
41326
729
+ Added@remirror/core-constants@1.0.0-next.34(transitive)
+ Added@remirror/core-helpers@1.0.0-next.34(transitive)
+ Added@remirror/core-types@1.0.0-next.34(transitive)
+ Added@remirror/pm@1.0.0-next.34(transitive)
- Removed@remirror/core-constants@1.0.0-next.33(transitive)
- Removed@remirror/core-helpers@1.0.0-next.33(transitive)
- Removed@remirror/core-types@1.0.0-next.33(transitive)
- Removed@remirror/pm@1.0.0-next.32(transitive)