Explorar el Código

Updated imports to use scoped packages.

Piotrek Koszuliński hace 9 años
padre
commit
4bfe675350

+ 5 - 5
packages/ckeditor5-autoformat/src/autoformat.js

@@ -9,11 +9,11 @@
 
 import BlockAutoformatEngine from './blockautoformatengine';
 import InlineAutoformatEngine from './inlineautoformatengine';
-import Plugin from 'ckeditor5-core/src/plugin';
-import HeadingEngine from 'ckeditor5-heading/src/headingengine';
-import ListEngine from 'ckeditor5-list/src/listengine';
-import BoldEngine from 'ckeditor5-basic-styles/src/boldengine';
-import ItalicEngine from 'ckeditor5-basic-styles/src/italicengine';
+import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
+import HeadingEngine from '@ckeditor/ckeditor5-heading/src/headingengine';
+import ListEngine from '@ckeditor/ckeditor5-list/src/listengine';
+import BoldEngine from '@ckeditor/ckeditor5-basic-styles/src/boldengine';
+import ItalicEngine from '@ckeditor/ckeditor5-basic-styles/src/italicengine';
 
 /**
  * Includes a set of predefined autoformatting actions.

+ 2 - 2
packages/ckeditor5-autoformat/src/blockautoformatengine.js

@@ -7,8 +7,8 @@
  * @module autoformat/blockautoformatengine
  */
 
-import Range from 'ckeditor5-engine/src/model/range';
-import TextProxy from 'ckeditor5-engine/src/model/textproxy';
+import Range from '@ckeditor/ckeditor5-engine/src/model/range';
+import TextProxy from '@ckeditor/ckeditor5-engine/src/model/textproxy';
 
 /**
  * The block autoformatting engine. Allows to format various block patterns. For example,

+ 2 - 2
packages/ckeditor5-autoformat/src/inlineautoformatengine.js

@@ -7,8 +7,8 @@
  * @module autoformat/inlineautoformatengine
  */
 
-import LiveRange from 'ckeditor5-engine/src/model/liverange';
-import getSchemaValidRanges from 'ckeditor5-core/src/command/helpers/getschemavalidranges';
+import LiveRange from '@ckeditor/ckeditor5-engine/src/model/liverange';
+import getSchemaValidRanges from '@ckeditor/ckeditor5-core/src/command/helpers/getschemavalidranges';
 
 /**
  * The inline autoformatting engine. Allows to format various inline patterns. For example,

+ 6 - 6
packages/ckeditor5-autoformat/tests/autoformat.js

@@ -3,12 +3,12 @@
  * For licensing, see LICENSE.md.
  */
 
-import Autoformat from 'ckeditor5-autoformat/src/autoformat';
-import Paragraph from 'ckeditor5-paragraph/src/paragraph';
-import VirtualTestEditor from 'ckeditor5-core/tests/_utils/virtualtesteditor';
-import Enter from 'ckeditor5-enter/src/enter';
-import { setData, getData } from 'ckeditor5-engine/src/dev-utils/model';
-import testUtils from 'ckeditor5-core/tests/_utils/utils';
+import Autoformat from '../src/autoformat';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
+import Enter from '@ckeditor/ckeditor5-enter/src/enter';
+import { setData, getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
+import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 
 testUtils.createSinonSandbox();
 

+ 7 - 7
packages/ckeditor5-autoformat/tests/blockautoformatengine.js

@@ -3,13 +3,13 @@
  * For licensing, see LICENSE.md.
  */
 
-import BlockAutoformatEngine from 'ckeditor5-autoformat/src/blockautoformatengine';
-import Paragraph from 'ckeditor5-paragraph/src/paragraph';
-import VirtualTestEditor from 'ckeditor5-core/tests/_utils/virtualtesteditor';
-import Enter from 'ckeditor5-enter/src/enter';
-import { setData, getData } from 'ckeditor5-engine/src/dev-utils/model';
-import testUtils from 'ckeditor5-core/tests/_utils/utils';
-import Command from 'ckeditor5-core/src/command/command';
+import BlockAutoformatEngine from '../src/blockautoformatengine';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
+import Enter from '@ckeditor/ckeditor5-enter/src/enter';
+import { setData, getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
+import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
+import Command from '@ckeditor/ckeditor5-core/src/command/command';
 
 testUtils.createSinonSandbox();
 

+ 6 - 6
packages/ckeditor5-autoformat/tests/inlineautoformatengine.js

@@ -3,12 +3,12 @@
  * For licensing, see LICENSE.md.
  */
 
-import InlineAutoformatEngine from 'ckeditor5-autoformat/src/inlineautoformatengine';
-import Paragraph from 'ckeditor5-paragraph/src/paragraph';
-import VirtualTestEditor from 'ckeditor5-core/tests/_utils/virtualtesteditor';
-import Enter from 'ckeditor5-enter/src/enter';
-import { setData, getData } from 'ckeditor5-engine/src/dev-utils/model';
-import testUtils from 'ckeditor5-core/tests/_utils/utils';
+import InlineAutoformatEngine from '../src/inlineautoformatengine';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
+import Enter from '@ckeditor/ckeditor5-enter/src/enter';
+import { setData, getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
+import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 
 testUtils.createSinonSandbox();
 

+ 10 - 10
packages/ckeditor5-autoformat/tests/manual/autoformat.js

@@ -5,16 +5,16 @@
 
 /* globals console, window, document */
 
-import ClassicEditor from 'ckeditor5-editor-classic/src/classic';
-import Autoformat from 'ckeditor5-autoformat/src/autoformat';
-import Enter from 'ckeditor5-enter/src/enter';
-import List from 'ckeditor5-list/src/list';
-import Typing from 'ckeditor5-typing/src/typing';
-import Heading from 'ckeditor5-heading/src/heading';
-import Paragraph from 'ckeditor5-paragraph/src/paragraph';
-import Undo from 'ckeditor5-undo/src/undo';
-import Bold from 'ckeditor5-basic-styles/src/bold';
-import Italic from 'ckeditor5-basic-styles/src/italic';
+import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classic';
+import Autoformat from '../../src/autoformat';
+import Enter from '@ckeditor/ckeditor5-enter/src/enter';
+import List from '@ckeditor/ckeditor5-list/src/list';
+import Typing from '@ckeditor/ckeditor5-typing/src/typing';
+import Heading from '@ckeditor/ckeditor5-heading/src/heading';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+import Undo from '@ckeditor/ckeditor5-undo/src/undo';
+import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
+import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
 
 ClassicEditor.create( document.querySelector( '#editor' ), {
 	plugins: [ Enter, Typing, Paragraph, Undo, Bold, Italic, Heading, List, Autoformat ],