@remirror/react-renderer
Advanced tools
Comparing version 0.6.3 to 0.6.4-ci.1573124774.1
@@ -11,4 +11,3 @@ 'use strict'; | ||
var core$1 = require('@remirror/core'); | ||
var React = require('react'); | ||
var React__default = _interopDefault(React); | ||
var react = require('react'); | ||
var _extends = _interopDefault(require('@babel/runtime/helpers/extends')); | ||
@@ -601,3 +600,3 @@ var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties')); | ||
}); | ||
return core.jsx.apply(void 0, [React.Fragment, {}].concat(children)); | ||
return core.jsx.apply(void 0, [react.Fragment, {}].concat(children)); | ||
} | ||
@@ -742,2 +741,3 @@ /** | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
/* Inspired by https://github.com/rexxars/react-prosemirror-document */ | ||
@@ -761,3 +761,3 @@ var normalizeMark = function normalizeMark(mark) { | ||
var textElement = core.jsx(React__default.Fragment, null, node.text); | ||
var textElement = core.jsx(react.Fragment, null, node.text); | ||
@@ -851,3 +851,3 @@ if (!node.marks) { | ||
if (json.type === 'text' && json.text && (!json.marks || !json.marks.length)) { | ||
return core.jsx(React__default.Fragment, null, json.text); // For some reason FunctionalComponent don't allow returning react-nodes | ||
return core.jsx(react.Fragment, null, json.text); // For some reason FunctionalComponent don't allow returning react-nodes | ||
} | ||
@@ -854,0 +854,0 @@ |
@@ -5,3 +5,3 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck'; | ||
import { hasOwnProperty, bool, isString, isPlainObject, isArray } from '@remirror/core'; | ||
import React, { Fragment } from 'react'; | ||
import { Fragment } from 'react'; | ||
import _extends from '@babel/runtime/helpers/extends'; | ||
@@ -734,2 +734,3 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
/* Inspired by https://github.com/rexxars/react-prosemirror-document */ | ||
@@ -753,3 +754,3 @@ var normalizeMark = function normalizeMark(mark) { | ||
var textElement = jsx(React.Fragment, null, node.text); | ||
var textElement = jsx(Fragment, null, node.text); | ||
@@ -843,3 +844,3 @@ if (!node.marks) { | ||
if (json.type === 'text' && json.text && (!json.marks || !json.marks.length)) { | ||
return jsx(React.Fragment, null, json.text); // For some reason FunctionalComponent don't allow returning react-nodes | ||
return jsx(Fragment, null, json.text); // For some reason FunctionalComponent don't allow returning react-nodes | ||
} | ||
@@ -846,0 +847,0 @@ |
@@ -0,1 +1,2 @@ | ||
/** @jsx jsx */ | ||
import { AnyExtension, DOMOutputSpec, ExtensionManager, Fragment as ProsemirrorFragment, Mark, MarkExtensionSpec, NodeExtensionSpec, ProsemirrorNode } from '@remirror/core'; | ||
@@ -2,0 +3,0 @@ import { ReactNode } from 'react'; |
@@ -9,4 +9,3 @@ 'use strict'; | ||
var core$1 = require('@remirror/core'); | ||
var React = require('react'); | ||
var React__default = _interopDefault(React); | ||
var react = require('react'); | ||
var rendererUtils = require('./renderer-utils.js'); | ||
@@ -54,3 +53,3 @@ | ||
}); | ||
return core.jsx.apply(void 0, [React.Fragment, {}].concat(children)); | ||
return core.jsx.apply(void 0, [react.Fragment, {}].concat(children)); | ||
} | ||
@@ -57,0 +56,0 @@ /** |
@@ -0,1 +1,2 @@ | ||
/** @jsx jsx */ | ||
import { ComponentType, FC } from 'react'; | ||
@@ -2,0 +3,0 @@ import { ObjectNode } from '@remirror/core'; |
@@ -7,4 +7,3 @@ 'use strict'; | ||
var core$1 = require('@remirror/core'); | ||
var React = require('react'); | ||
var React__default = _interopDefault(React); | ||
var react = require('react'); | ||
var _extends = _interopDefault(require('@babel/runtime/helpers/extends')); | ||
@@ -17,2 +16,3 @@ var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties')); | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
/* Inspired by https://github.com/rexxars/react-prosemirror-document */ | ||
@@ -36,3 +36,3 @@ var normalizeMark = function normalizeMark(mark) { | ||
var textElement = core.jsx(React__default.Fragment, null, node.text); | ||
var textElement = core.jsx(react.Fragment, null, node.text); | ||
@@ -126,3 +126,3 @@ if (!node.marks) { | ||
if (json.type === 'text' && json.text && (!json.marks || !json.marks.length)) { | ||
return core.jsx(React__default.Fragment, null, json.text); // For some reason FunctionalComponent don't allow returning react-nodes | ||
return core.jsx(react.Fragment, null, json.text); // For some reason FunctionalComponent don't allow returning react-nodes | ||
} | ||
@@ -129,0 +129,0 @@ |
@@ -8,3 +8,3 @@ { | ||
"repository": "https://github.com/ifiokjr/remirror/tree/master/@remirror/react-renderer", | ||
"version": "0.6.3", | ||
"version": "0.6.4-ci.1573124774.1+0ebb5233", | ||
"main": "lib/index.js", | ||
@@ -19,4 +19,4 @@ "module": "lib/dist/renderer-react.esm.js", | ||
"@babel/runtime": "^7", | ||
"@remirror/core": "0.6.3", | ||
"@remirror/react-utils": "0.6.3" | ||
"@remirror/core": "^0.6.4-ci.1573124774.1+0ebb5233", | ||
"@remirror/react-utils": "^0.6.4-ci.1573124774.1+0ebb5233" | ||
}, | ||
@@ -38,3 +38,3 @@ "peerDependencies": { | ||
"sideEffects": false, | ||
"gitHead": "2ce54971bc170ead0310640cbe95630a21a04160" | ||
"gitHead": "0ebb52333284f08a679816394d9b5ce1359da48a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
260303
3558
1
+ Added@remirror/core@0.6.5(transitive)
+ Added@remirror/core-constants@0.6.5(transitive)
+ Added@remirror/core-helpers@0.6.5(transitive)
+ Added@remirror/core-types@0.6.5(transitive)
+ Added@remirror/core-utils@0.6.5(transitive)
+ Added@remirror/react-portals@0.6.5(transitive)
+ Added@remirror/react-utils@0.6.5(transitive)
+ Addednanoid@2.1.7(transitive)
+ Addedprosemirror-suggest@0.6.5(transitive)
- Removed@remirror/core@0.6.3(transitive)
- Removed@remirror/core-constants@0.6.3(transitive)
- Removed@remirror/core-helpers@0.6.3(transitive)
- Removed@remirror/core-types@0.6.3(transitive)
- Removed@remirror/core-utils@0.6.3(transitive)
- Removed@remirror/react-portals@0.6.3(transitive)
- Removed@remirror/react-utils@0.6.3(transitive)
- Removednanoid@2.1.6(transitive)
- Removedprosemirror-suggest@0.6.3(transitive)
Updated@remirror/react-utils@^0.6.4-ci.1573124774.1+0ebb5233