From c621a0954f3bb0243ff8ef048e4363c96a248eac Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Sat, 22 Oct 2022 23:14:47 +0300
Subject: [PATCH] import Serivce

---
 wax-prosemirror-core/index.js                               | 6 +++---
 wax-prosemirror-core/src/Application.js                     | 2 +-
 .../config/defaultServices/LayoutService/LayoutService.js   | 2 +-
 .../src/config/defaultServices/MenuService/MenuService.js   | 2 +-
 .../config/defaultServices/OverlayService/OverlayService.js | 2 +-
 .../config/defaultServices/PortalService/PortalService.js   | 2 +-
 .../src/config/defaultServices/RulesService/RulesService.js | 2 +-
 .../config/defaultServices/SchemaService/SchemaService.js   | 2 +-
 .../defaultServices/ShortCutsService/ShortCutsService.js    | 2 +-
 9 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/wax-prosemirror-core/index.js b/wax-prosemirror-core/index.js
index 292f57b0c..6350d583b 100644
--- a/wax-prosemirror-core/index.js
+++ b/wax-prosemirror-core/index.js
@@ -1,3 +1,6 @@
+/* Editor */
+export { default as Wax } from './src/Wax';
+
 /* Cotext & ComponentPlugin */
 export { WaxContext, useInjection } from './src/WaxContext';
 export { PortalContext } from './src/PortalContext';
@@ -25,6 +28,3 @@ export { default as RulesService } from './src/config/defaultServices/RulesServi
 export { default as SchemaService } from './src/config/defaultServices/SchemaService/SchemaService';
 export { default as ShortCutsService } from './src/config/defaultServices/ShortCutsService/ShortCutsService';
 export { default as QuestionsNodeView } from './src/utilities/lib/helpers/QuestionsNodeView';
-
-/* Editor */
-export { default as Wax } from './src/Wax';
diff --git a/wax-prosemirror-core/src/Application.js b/wax-prosemirror-core/src/Application.js
index ef7f4f8a3..33d89fade 100644
--- a/wax-prosemirror-core/src/Application.js
+++ b/wax-prosemirror-core/src/Application.js
@@ -1,5 +1,5 @@
 import { Container } from 'inversify';
-// import 'reflect-metadata';
+import 'reflect-metadata';
 import deepmerge from 'deepmerge';
 import Config from './config/Config';
 import defaultConfig from './config/defaultConfig';
diff --git a/wax-prosemirror-core/src/config/defaultServices/LayoutService/LayoutService.js b/wax-prosemirror-core/src/config/defaultServices/LayoutService/LayoutService.js
index 7d6affbbe..7065dfc3b 100644
--- a/wax-prosemirror-core/src/config/defaultServices/LayoutService/LayoutService.js
+++ b/wax-prosemirror-core/src/config/defaultServices/LayoutService/LayoutService.js
@@ -1,4 +1,4 @@
-import { Service } from 'wax-prosemirror-core';
+import Service from '../../../Service';
 import Layout from './Layout';
 
 export default class LayoutService extends Service {
diff --git a/wax-prosemirror-core/src/config/defaultServices/MenuService/MenuService.js b/wax-prosemirror-core/src/config/defaultServices/MenuService/MenuService.js
index 48f93faa4..aa0c4ac73 100644
--- a/wax-prosemirror-core/src/config/defaultServices/MenuService/MenuService.js
+++ b/wax-prosemirror-core/src/config/defaultServices/MenuService/MenuService.js
@@ -1,4 +1,4 @@
-import { Service } from 'wax-prosemirror-core';
+import Service from '../../../Service';
 import { isPlainObject, isFunction } from 'lodash';
 import Menu from './Menu';
 import MenuCollection from './MenuCollection';
diff --git a/wax-prosemirror-core/src/config/defaultServices/OverlayService/OverlayService.js b/wax-prosemirror-core/src/config/defaultServices/OverlayService/OverlayService.js
index 02596a848..b7e641a03 100644
--- a/wax-prosemirror-core/src/config/defaultServices/OverlayService/OverlayService.js
+++ b/wax-prosemirror-core/src/config/defaultServices/OverlayService/OverlayService.js
@@ -1,4 +1,4 @@
-import { Service } from 'wax-prosemirror-core';
+import Service from '../../../Service';
 import OverlayComponent from './OverlayComponent';
 
 export default class OverlayService extends Service {
diff --git a/wax-prosemirror-core/src/config/defaultServices/PortalService/PortalService.js b/wax-prosemirror-core/src/config/defaultServices/PortalService/PortalService.js
index e48c30a76..ec3656830 100644
--- a/wax-prosemirror-core/src/config/defaultServices/PortalService/PortalService.js
+++ b/wax-prosemirror-core/src/config/defaultServices/PortalService/PortalService.js
@@ -1,4 +1,4 @@
-import { Service } from 'wax-prosemirror-core';
+import Service from '../../../Service';
 import PortalComponent from './components/PortalComponent';
 import PortalPlugin from './portalPlugin';
 import Portals from './Portals';
diff --git a/wax-prosemirror-core/src/config/defaultServices/RulesService/RulesService.js b/wax-prosemirror-core/src/config/defaultServices/RulesService/RulesService.js
index 8cb6cfb40..bd0e17260 100644
--- a/wax-prosemirror-core/src/config/defaultServices/RulesService/RulesService.js
+++ b/wax-prosemirror-core/src/config/defaultServices/RulesService/RulesService.js
@@ -1,4 +1,4 @@
-import { Service } from 'wax-prosemirror-core';
+import Service from '../../../Service';
 import Rules from './Rules';
 
 export default class RulesService extends Service {
diff --git a/wax-prosemirror-core/src/config/defaultServices/SchemaService/SchemaService.js b/wax-prosemirror-core/src/config/defaultServices/SchemaService/SchemaService.js
index 2a82bc0ee..0f2308d08 100644
--- a/wax-prosemirror-core/src/config/defaultServices/SchemaService/SchemaService.js
+++ b/wax-prosemirror-core/src/config/defaultServices/SchemaService/SchemaService.js
@@ -1,4 +1,4 @@
-import { Service } from 'wax-prosemirror-core';
+import Service from '../../../Service';
 import { each } from 'lodash';
 import Schema from './Schema';
 // import Node from './Node';
diff --git a/wax-prosemirror-core/src/config/defaultServices/ShortCutsService/ShortCutsService.js b/wax-prosemirror-core/src/config/defaultServices/ShortCutsService/ShortCutsService.js
index fc16808b6..b5c3dcc49 100644
--- a/wax-prosemirror-core/src/config/defaultServices/ShortCutsService/ShortCutsService.js
+++ b/wax-prosemirror-core/src/config/defaultServices/ShortCutsService/ShortCutsService.js
@@ -1,4 +1,4 @@
-import { Service } from 'wax-prosemirror-core';
+import Service from '../../../Service';
 import ShortCuts from './ShortCuts';
 
 export default class ShortCutsService extends Service {
-- 
GitLab