@remirror/extension-react-component
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -0,0 +0,0 @@ export type { CreateNodeViewProps, NodeViewComponentProps, ReactComponentEnvironment, ReactComponentOptions, } from './node-view-types'; |
@@ -0,0 +0,0 @@ import type { ComponentType, RefCallback } from 'react'; |
export * from './portal-container'; | ||
export * from './react-portals'; |
@@ -0,0 +0,0 @@ import { Unsubscribe } from 'nanoevents'; |
@@ -0,0 +0,0 @@ import type { MountedPortal, PortalContainer } from './portal-container'; |
@@ -0,0 +0,0 @@ import type { ComponentType } from 'react'; |
@@ -0,0 +0,0 @@ import { Decoration, EditorView, NodeView, NodeWithAttributes, ProsemirrorNode } from '@remirror/core'; |
@@ -18,2 +18,13 @@ 'use strict'; | ||
function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
} | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
_checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
} | ||
var _events = /*#__PURE__*/new WeakMap(); | ||
@@ -29,3 +40,3 @@ | ||
_events.set(this, { | ||
_classPrivateFieldInitSpec(this, _events, { | ||
writable: true, | ||
@@ -250,3 +261,3 @@ value: nanoevents.createNanoEvents() | ||
_node.set(this, { | ||
_classPrivateFieldInitSpec(this, _node, { | ||
writable: true, | ||
@@ -256,3 +267,3 @@ value: void 0 | ||
_decorations.set(this, { | ||
_classPrivateFieldInitSpec(this, _decorations, { | ||
writable: true, | ||
@@ -262,3 +273,3 @@ value: [] | ||
_view.set(this, { | ||
_classPrivateFieldInitSpec(this, _view, { | ||
writable: true, | ||
@@ -268,3 +279,3 @@ value: void 0 | ||
_portalContainer.set(this, { | ||
_classPrivateFieldInitSpec(this, _portalContainer, { | ||
writable: true, | ||
@@ -274,3 +285,3 @@ value: void 0 | ||
_Component.set(this, { | ||
_classPrivateFieldInitSpec(this, _Component, { | ||
writable: true, | ||
@@ -280,3 +291,3 @@ value: void 0 | ||
_getPosition.set(this, { | ||
_classPrivateFieldInitSpec(this, _getPosition, { | ||
writable: true, | ||
@@ -286,3 +297,3 @@ value: void 0 | ||
_options.set(this, { | ||
_classPrivateFieldInitSpec(this, _options, { | ||
writable: true, | ||
@@ -292,3 +303,3 @@ value: void 0 | ||
_selected.set(this, { | ||
_classPrivateFieldInitSpec(this, _selected, { | ||
writable: true, | ||
@@ -298,3 +309,3 @@ value: false | ||
_contentDOM.set(this, { | ||
_classPrivateFieldInitSpec(this, _contentDOM, { | ||
writable: true, | ||
@@ -304,3 +315,3 @@ value: void 0 | ||
_contentDOMWrapper.set(this, { | ||
_classPrivateFieldInitSpec(this, _contentDOMWrapper, { | ||
writable: true, | ||
@@ -310,3 +321,3 @@ value: void 0 | ||
_dom.set(this, { | ||
_classPrivateFieldInitSpec(this, _dom, { | ||
writable: true, | ||
@@ -316,3 +327,3 @@ value: void 0 | ||
_forwardRef.set(this, { | ||
_classPrivateFieldInitSpec(this, _forwardRef, { | ||
writable: true, | ||
@@ -319,0 +330,0 @@ value: node => { |
@@ -14,2 +14,13 @@ import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray'; | ||
function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
} | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
_checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
} | ||
var _events = /*#__PURE__*/new WeakMap(); | ||
@@ -25,3 +36,3 @@ | ||
_events.set(this, { | ||
_classPrivateFieldInitSpec(this, _events, { | ||
writable: true, | ||
@@ -246,3 +257,3 @@ value: createNanoEvents() | ||
_node.set(this, { | ||
_classPrivateFieldInitSpec(this, _node, { | ||
writable: true, | ||
@@ -252,3 +263,3 @@ value: void 0 | ||
_decorations.set(this, { | ||
_classPrivateFieldInitSpec(this, _decorations, { | ||
writable: true, | ||
@@ -258,3 +269,3 @@ value: [] | ||
_view.set(this, { | ||
_classPrivateFieldInitSpec(this, _view, { | ||
writable: true, | ||
@@ -264,3 +275,3 @@ value: void 0 | ||
_portalContainer.set(this, { | ||
_classPrivateFieldInitSpec(this, _portalContainer, { | ||
writable: true, | ||
@@ -270,3 +281,3 @@ value: void 0 | ||
_Component.set(this, { | ||
_classPrivateFieldInitSpec(this, _Component, { | ||
writable: true, | ||
@@ -276,3 +287,3 @@ value: void 0 | ||
_getPosition.set(this, { | ||
_classPrivateFieldInitSpec(this, _getPosition, { | ||
writable: true, | ||
@@ -282,3 +293,3 @@ value: void 0 | ||
_options.set(this, { | ||
_classPrivateFieldInitSpec(this, _options, { | ||
writable: true, | ||
@@ -288,3 +299,3 @@ value: void 0 | ||
_selected.set(this, { | ||
_classPrivateFieldInitSpec(this, _selected, { | ||
writable: true, | ||
@@ -294,3 +305,3 @@ value: false | ||
_contentDOM.set(this, { | ||
_classPrivateFieldInitSpec(this, _contentDOM, { | ||
writable: true, | ||
@@ -300,3 +311,3 @@ value: void 0 | ||
_contentDOMWrapper.set(this, { | ||
_classPrivateFieldInitSpec(this, _contentDOMWrapper, { | ||
writable: true, | ||
@@ -306,3 +317,3 @@ value: void 0 | ||
_dom.set(this, { | ||
_classPrivateFieldInitSpec(this, _dom, { | ||
writable: true, | ||
@@ -312,3 +323,3 @@ value: void 0 | ||
_forwardRef.set(this, { | ||
_classPrivateFieldInitSpec(this, _forwardRef, { | ||
writable: true, | ||
@@ -315,0 +326,0 @@ value: node => { |
@@ -18,2 +18,13 @@ 'use strict'; | ||
function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
} | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
_checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
} | ||
var _events = /*#__PURE__*/new WeakMap(); | ||
@@ -29,3 +40,3 @@ | ||
_events.set(this, { | ||
_classPrivateFieldInitSpec(this, _events, { | ||
writable: true, | ||
@@ -250,3 +261,3 @@ value: nanoevents.createNanoEvents() | ||
_node.set(this, { | ||
_classPrivateFieldInitSpec(this, _node, { | ||
writable: true, | ||
@@ -256,3 +267,3 @@ value: void 0 | ||
_decorations.set(this, { | ||
_classPrivateFieldInitSpec(this, _decorations, { | ||
writable: true, | ||
@@ -262,3 +273,3 @@ value: [] | ||
_view.set(this, { | ||
_classPrivateFieldInitSpec(this, _view, { | ||
writable: true, | ||
@@ -268,3 +279,3 @@ value: void 0 | ||
_portalContainer.set(this, { | ||
_classPrivateFieldInitSpec(this, _portalContainer, { | ||
writable: true, | ||
@@ -274,3 +285,3 @@ value: void 0 | ||
_Component.set(this, { | ||
_classPrivateFieldInitSpec(this, _Component, { | ||
writable: true, | ||
@@ -280,3 +291,3 @@ value: void 0 | ||
_getPosition.set(this, { | ||
_classPrivateFieldInitSpec(this, _getPosition, { | ||
writable: true, | ||
@@ -286,3 +297,3 @@ value: void 0 | ||
_options.set(this, { | ||
_classPrivateFieldInitSpec(this, _options, { | ||
writable: true, | ||
@@ -292,3 +303,3 @@ value: void 0 | ||
_selected.set(this, { | ||
_classPrivateFieldInitSpec(this, _selected, { | ||
writable: true, | ||
@@ -298,3 +309,3 @@ value: false | ||
_contentDOM.set(this, { | ||
_classPrivateFieldInitSpec(this, _contentDOM, { | ||
writable: true, | ||
@@ -304,3 +315,3 @@ value: void 0 | ||
_contentDOMWrapper.set(this, { | ||
_classPrivateFieldInitSpec(this, _contentDOMWrapper, { | ||
writable: true, | ||
@@ -310,3 +321,3 @@ value: void 0 | ||
_dom.set(this, { | ||
_classPrivateFieldInitSpec(this, _dom, { | ||
writable: true, | ||
@@ -316,3 +327,3 @@ value: void 0 | ||
_forwardRef.set(this, { | ||
_classPrivateFieldInitSpec(this, _forwardRef, { | ||
writable: true, | ||
@@ -319,0 +330,0 @@ value: node => { |
@@ -18,2 +18,13 @@ 'use strict'; | ||
function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
} | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
_checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
} | ||
var _events = /*#__PURE__*/new WeakMap(); | ||
@@ -29,3 +40,3 @@ | ||
_events.set(this, { | ||
_classPrivateFieldInitSpec(this, _events, { | ||
writable: true, | ||
@@ -250,3 +261,3 @@ value: nanoevents.createNanoEvents() | ||
_node.set(this, { | ||
_classPrivateFieldInitSpec(this, _node, { | ||
writable: true, | ||
@@ -256,3 +267,3 @@ value: void 0 | ||
_decorations.set(this, { | ||
_classPrivateFieldInitSpec(this, _decorations, { | ||
writable: true, | ||
@@ -262,3 +273,3 @@ value: [] | ||
_view.set(this, { | ||
_classPrivateFieldInitSpec(this, _view, { | ||
writable: true, | ||
@@ -268,3 +279,3 @@ value: void 0 | ||
_portalContainer.set(this, { | ||
_classPrivateFieldInitSpec(this, _portalContainer, { | ||
writable: true, | ||
@@ -274,3 +285,3 @@ value: void 0 | ||
_Component.set(this, { | ||
_classPrivateFieldInitSpec(this, _Component, { | ||
writable: true, | ||
@@ -280,3 +291,3 @@ value: void 0 | ||
_getPosition.set(this, { | ||
_classPrivateFieldInitSpec(this, _getPosition, { | ||
writable: true, | ||
@@ -286,3 +297,3 @@ value: void 0 | ||
_options.set(this, { | ||
_classPrivateFieldInitSpec(this, _options, { | ||
writable: true, | ||
@@ -292,3 +303,3 @@ value: void 0 | ||
_selected.set(this, { | ||
_classPrivateFieldInitSpec(this, _selected, { | ||
writable: true, | ||
@@ -298,3 +309,3 @@ value: false | ||
_contentDOM.set(this, { | ||
_classPrivateFieldInitSpec(this, _contentDOM, { | ||
writable: true, | ||
@@ -304,3 +315,3 @@ value: void 0 | ||
_contentDOMWrapper.set(this, { | ||
_classPrivateFieldInitSpec(this, _contentDOMWrapper, { | ||
writable: true, | ||
@@ -310,3 +321,3 @@ value: void 0 | ||
_dom.set(this, { | ||
_classPrivateFieldInitSpec(this, _dom, { | ||
writable: true, | ||
@@ -316,3 +327,3 @@ value: void 0 | ||
_forwardRef.set(this, { | ||
_classPrivateFieldInitSpec(this, _forwardRef, { | ||
writable: true, | ||
@@ -319,0 +330,0 @@ value: node => { |
@@ -14,2 +14,13 @@ import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray'; | ||
function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
} | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
_checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
} | ||
var _events = /*#__PURE__*/new WeakMap(); | ||
@@ -25,3 +36,3 @@ | ||
_events.set(this, { | ||
_classPrivateFieldInitSpec(this, _events, { | ||
writable: true, | ||
@@ -246,3 +257,3 @@ value: createNanoEvents() | ||
_node.set(this, { | ||
_classPrivateFieldInitSpec(this, _node, { | ||
writable: true, | ||
@@ -252,3 +263,3 @@ value: void 0 | ||
_decorations.set(this, { | ||
_classPrivateFieldInitSpec(this, _decorations, { | ||
writable: true, | ||
@@ -258,3 +269,3 @@ value: [] | ||
_view.set(this, { | ||
_classPrivateFieldInitSpec(this, _view, { | ||
writable: true, | ||
@@ -264,3 +275,3 @@ value: void 0 | ||
_portalContainer.set(this, { | ||
_classPrivateFieldInitSpec(this, _portalContainer, { | ||
writable: true, | ||
@@ -270,3 +281,3 @@ value: void 0 | ||
_Component.set(this, { | ||
_classPrivateFieldInitSpec(this, _Component, { | ||
writable: true, | ||
@@ -276,3 +287,3 @@ value: void 0 | ||
_getPosition.set(this, { | ||
_classPrivateFieldInitSpec(this, _getPosition, { | ||
writable: true, | ||
@@ -282,3 +293,3 @@ value: void 0 | ||
_options.set(this, { | ||
_classPrivateFieldInitSpec(this, _options, { | ||
writable: true, | ||
@@ -288,3 +299,3 @@ value: void 0 | ||
_selected.set(this, { | ||
_classPrivateFieldInitSpec(this, _selected, { | ||
writable: true, | ||
@@ -294,3 +305,3 @@ value: false | ||
_contentDOM.set(this, { | ||
_classPrivateFieldInitSpec(this, _contentDOM, { | ||
writable: true, | ||
@@ -300,3 +311,3 @@ value: void 0 | ||
_contentDOMWrapper.set(this, { | ||
_classPrivateFieldInitSpec(this, _contentDOMWrapper, { | ||
writable: true, | ||
@@ -306,3 +317,3 @@ value: void 0 | ||
_dom.set(this, { | ||
_classPrivateFieldInitSpec(this, _dom, { | ||
writable: true, | ||
@@ -312,3 +323,3 @@ value: void 0 | ||
_forwardRef.set(this, { | ||
_classPrivateFieldInitSpec(this, _forwardRef, { | ||
writable: true, | ||
@@ -315,0 +326,0 @@ value: node => { |
{ | ||
"name": "@remirror/extension-react-component", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Create prosemirror node views from your react components", | ||
@@ -44,9 +44,9 @@ "keywords": [ | ||
"@babel/runtime": "^7.13.10", | ||
"@remirror/core": "^1.1.2", | ||
"@remirror/messages": "^1.0.2", | ||
"@remirror/core": "^1.1.3", | ||
"@remirror/messages": "^1.0.3", | ||
"nanoevents": "^5.1.13" | ||
}, | ||
"devDependencies": { | ||
"@remirror/pm": "^1.0.2", | ||
"@remirror/react": "^1.0.10", | ||
"@remirror/pm": "^1.0.3", | ||
"@remirror/react": "^1.0.11", | ||
"@types/react": "^17.0.14", | ||
@@ -58,3 +58,3 @@ "@types/react-dom": "^17.0.9", | ||
"peerDependencies": { | ||
"@remirror/pm": "^1.0.1", | ||
"@remirror/pm": "^1.0.3", | ||
"@types/react": "^16.14.0 || ^17 || ^18", | ||
@@ -61,0 +61,0 @@ "@types/react-dom": "^16.9.0 || ^17 || ^18", |
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
133139
3388
Updated@remirror/core@^1.1.3
Updated@remirror/messages@^1.0.3