Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remirror/react-renderer

Package Overview
Dependencies
Maintainers
1
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remirror/react-renderer - npm Package Compare versions

Comparing version 0.6.3 to 0.6.4-ci.1573124774.1

10

lib/dist/renderer-react.cjs.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc