From 5774f3878b022175c8a6131cecc9928799b7f253 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Sun, 23 Oct 2022 12:29:56 +0300 Subject: [PATCH] fix-imports --- .../LayoutService/DefaultLayout/DefaultLayout.js | 7 ++++--- .../LayoutService/components/LayoutFactory.js | 3 ++- .../LayoutService/components/componentPlugin.js | 2 +- .../src/config/defaultServices/MenuService/MenuService.js | 2 +- .../defaultServices/OverlayService/OverlayComponent.js | 3 +-- .../PortalService/components/PortalComponent.js | 3 +-- .../src/config/defaultServices/SchemaService/Mark.js | 2 +- .../src/config/defaultServices/SchemaService/Node.js | 2 +- .../src/config/defaultServices/SchemaService/ParseRule.js | 2 +- .../config/defaultServices/SchemaService/SchemaService.js | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/wax-prosemirror-core/src/config/defaultServices/LayoutService/DefaultLayout/DefaultLayout.js b/wax-prosemirror-core/src/config/defaultServices/LayoutService/DefaultLayout/DefaultLayout.js index 5fdfdf314..8e5005396 100644 --- a/wax-prosemirror-core/src/config/defaultServices/LayoutService/DefaultLayout/DefaultLayout.js +++ b/wax-prosemirror-core/src/config/defaultServices/LayoutService/DefaultLayout/DefaultLayout.js @@ -1,5 +1,6 @@ -import React from 'react' +/* eslint-disable react/prop-types */ +import React from 'react'; -const DefaultLayout = ({ editor }) => <>{editor}</> +const DefaultLayout = ({ editor }) => <>{editor}</>; -export default DefaultLayout +export default DefaultLayout; diff --git a/wax-prosemirror-core/src/config/defaultServices/LayoutService/components/LayoutFactory.js b/wax-prosemirror-core/src/config/defaultServices/LayoutService/components/LayoutFactory.js index 776982f7b..b7011ad96 100644 --- a/wax-prosemirror-core/src/config/defaultServices/LayoutService/components/LayoutFactory.js +++ b/wax-prosemirror-core/src/config/defaultServices/LayoutService/components/LayoutFactory.js @@ -1,3 +1,4 @@ -import React from "react"; +/* eslint-disable react/jsx-props-no-spreading */ +import React from 'react'; export default Component => props => <Component {...props} />; diff --git a/wax-prosemirror-core/src/config/defaultServices/LayoutService/components/componentPlugin.js b/wax-prosemirror-core/src/config/defaultServices/LayoutService/components/componentPlugin.js index 8e280523b..1fe7a1431 100644 --- a/wax-prosemirror-core/src/config/defaultServices/LayoutService/components/componentPlugin.js +++ b/wax-prosemirror-core/src/config/defaultServices/LayoutService/components/componentPlugin.js @@ -4,7 +4,7 @@ /* eslint-disable react/no-array-index-key */ /* eslint-disable react/destructuring-assignment */ import React, { Component } from 'react'; -import { useInjection } from 'wax-prosemirror-core'; +import { useInjection } from '../../../../WaxContext'; // eslint-disable-next-line no-unused-vars class UpdateView extends Component { diff --git a/wax-prosemirror-core/src/config/defaultServices/MenuService/MenuService.js b/wax-prosemirror-core/src/config/defaultServices/MenuService/MenuService.js index aa0c4ac73..c2fc849c6 100644 --- a/wax-prosemirror-core/src/config/defaultServices/MenuService/MenuService.js +++ b/wax-prosemirror-core/src/config/defaultServices/MenuService/MenuService.js @@ -1,5 +1,5 @@ -import Service from '../../../Service'; import { isPlainObject, isFunction } from 'lodash'; +import Service from '../../../Service'; import Menu from './Menu'; import MenuCollection from './MenuCollection'; diff --git a/wax-prosemirror-core/src/config/defaultServices/OverlayService/OverlayComponent.js b/wax-prosemirror-core/src/config/defaultServices/OverlayService/OverlayComponent.js index d29c4e095..754757a65 100644 --- a/wax-prosemirror-core/src/config/defaultServices/OverlayService/OverlayComponent.js +++ b/wax-prosemirror-core/src/config/defaultServices/OverlayService/OverlayComponent.js @@ -1,8 +1,7 @@ /* eslint-disable react/jsx-props-no-spreading */ import React, { useMemo, useContext } from 'react'; -import { WaxContext } from 'wax-prosemirror-core'; - import { Overlay } from 'wax-prosemirror-components'; +import { WaxContext } from '../../../WaxContext'; import usePosition from './usePosition'; export default (Component, markType) => props => { diff --git a/wax-prosemirror-core/src/config/defaultServices/PortalService/components/PortalComponent.js b/wax-prosemirror-core/src/config/defaultServices/PortalService/components/PortalComponent.js index 3f3cf8813..5ac27e77b 100644 --- a/wax-prosemirror-core/src/config/defaultServices/PortalService/components/PortalComponent.js +++ b/wax-prosemirror-core/src/config/defaultServices/PortalService/components/PortalComponent.js @@ -1,7 +1,6 @@ import React, { useContext } from 'react'; -import { PortalContext } from 'wax-prosemirror-core'; import ReactDOM from 'react-dom'; -// import { isEmpty } from 'lodash'; +import { PortalContext } from '../../../../PortalContext'; export default () => { const { portals } = useContext(PortalContext); diff --git a/wax-prosemirror-core/src/config/defaultServices/SchemaService/Mark.js b/wax-prosemirror-core/src/config/defaultServices/SchemaService/Mark.js index 268f68395..b1dc8d268 100644 --- a/wax-prosemirror-core/src/config/defaultServices/SchemaService/Mark.js +++ b/wax-prosemirror-core/src/config/defaultServices/SchemaService/Mark.js @@ -1,6 +1,6 @@ /* eslint-disable no-underscore-dangle */ -import { Middleware } from 'wax-prosemirror-core'; import { isPlainObject } from 'lodash'; +import Middleware from '../../../utilities/lib/Middleware'; import ParseRule from './ParseRule'; export default class Mark { diff --git a/wax-prosemirror-core/src/config/defaultServices/SchemaService/Node.js b/wax-prosemirror-core/src/config/defaultServices/SchemaService/Node.js index 095d2bb02..84c58236a 100644 --- a/wax-prosemirror-core/src/config/defaultServices/SchemaService/Node.js +++ b/wax-prosemirror-core/src/config/defaultServices/SchemaService/Node.js @@ -1,6 +1,6 @@ /* eslint-disable no-underscore-dangle */ -import { Middleware } from 'wax-prosemirror-core'; import { isPlainObject } from 'lodash'; +import Middleware from '../../../utilities/lib/Middleware'; import ParseRule from './ParseRule'; export default class Node { diff --git a/wax-prosemirror-core/src/config/defaultServices/SchemaService/ParseRule.js b/wax-prosemirror-core/src/config/defaultServices/SchemaService/ParseRule.js index 250f3ea7b..199059881 100644 --- a/wax-prosemirror-core/src/config/defaultServices/SchemaService/ParseRule.js +++ b/wax-prosemirror-core/src/config/defaultServices/SchemaService/ParseRule.js @@ -1,5 +1,5 @@ -import { Middleware } from 'wax-prosemirror-core'; import { omit } from 'lodash'; +import Middleware from '../../../utilities/lib/Middleware'; export default class ParseRule { tag = null; diff --git a/wax-prosemirror-core/src/config/defaultServices/SchemaService/SchemaService.js b/wax-prosemirror-core/src/config/defaultServices/SchemaService/SchemaService.js index 0f2308d08..b3dbdfc99 100644 --- a/wax-prosemirror-core/src/config/defaultServices/SchemaService/SchemaService.js +++ b/wax-prosemirror-core/src/config/defaultServices/SchemaService/SchemaService.js @@ -1,5 +1,5 @@ -import Service from '../../../Service'; import { each } from 'lodash'; +import Service from '../../../Service'; import Schema from './Schema'; // import Node from './Node'; // import Mark from './Mark'; -- GitLab