@ckeditor/ckeditor5-minimap 38.2.0-alpha.1 → 39.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,7 +4,6 @@ CKEditor 5 Minimap Feature
4
4
  [![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-minimap.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-minimap)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
6
6
  [![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://app.travis-ci.com/github/ckeditor/ckeditor5)
7
- ![Dependency Status](https://img.shields.io/librariesio/release/npm/@ckeditor/ckeditor5-minimap)
8
7
 
9
8
  This package implements the content minimap feature for CKEditor 5.
10
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-minimap",
3
- "version": "38.2.0-alpha.1",
3
+ "version": "39.0.1",
4
4
  "description": "Content minimap feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -11,9 +11,8 @@
11
11
  "ckeditor5-dll"
12
12
  ],
13
13
  "main": "src/index.js",
14
- "type": "module",
15
14
  "dependencies": {
16
- "ckeditor5": "38.2.0-alpha.1"
15
+ "ckeditor5": "39.0.1"
17
16
  },
18
17
  "engines": {
19
18
  "node": ">=16.0.0",
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { MinimapConfig, Minimap } from './index.js';
5
+ import type { MinimapConfig, Minimap } from './index';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
7
  interface EditorConfig {
8
8
  /**
package/src/index.d.ts CHANGED
@@ -5,6 +5,6 @@
5
5
  /**
6
6
  * @module minimap
7
7
  */
8
- export { default as Minimap } from './minimap.js';
9
- export type { MinimapConfig } from './minimapconfig.js';
10
- import './augmentation.js';
8
+ export { default as Minimap } from './minimap';
9
+ export type { MinimapConfig } from './minimapconfig';
10
+ import './augmentation';
package/src/index.js CHANGED
@@ -5,5 +5,5 @@
5
5
  /**
6
6
  * @module minimap
7
7
  */
8
- export { default as Minimap } from './minimap.js';
9
- import './augmentation.js';
8
+ export { default as Minimap } from './minimap';
9
+ import './augmentation';
package/src/minimap.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * @module minimap/minimap
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
9
  import '../theme/minimap.css';
10
10
  /**
11
11
  * The content minimap feature.
package/src/minimap.js CHANGED
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module minimap/minimap
7
7
  */
8
- import { Plugin } from 'ckeditor5/src/core.js';
9
- import { findClosestScrollableAncestor, global } from 'ckeditor5/src/utils.js';
10
- import MinimapView from './minimapview.js';
11
- import { cloneEditingViewDomRoot, getClientHeight, getDomElementRect, getPageStyles, getScrollable } from './utils.js';
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { findClosestScrollableAncestor, global } from 'ckeditor5/src/utils';
10
+ import MinimapView from './minimapview';
11
+ import { cloneEditingViewDomRoot, getClientHeight, getDomElementRect, getPageStyles, getScrollable } from './utils';
12
12
  // @if CK_DEBUG_MINIMAP // const RectDrawer = require( '@ckeditor/ckeditor5-utils/tests/_utils/rectdrawer' ).default;
13
13
  import '../theme/minimap.css';
14
14
  /**
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module minimap/minimapiframeview
7
7
  */
8
- import { IframeView } from 'ckeditor5/src/ui.js';
9
- import { type Locale } from 'ckeditor5/src/utils.js';
10
- import type { MinimapViewOptions } from './minimapview.js';
8
+ import { IframeView } from 'ckeditor5/src/ui';
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
+ import type { MinimapViewOptions } from './minimapview';
11
11
  /**
12
12
  * The internal `<iframe>` view that hosts the minimap content.
13
13
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module minimap/minimapiframeview
7
7
  */
8
- import { IframeView } from 'ckeditor5/src/ui.js';
9
- import { toUnit } from 'ckeditor5/src/utils.js';
8
+ import { IframeView } from 'ckeditor5/src/ui';
9
+ import { toUnit } from 'ckeditor5/src/utils';
10
10
  const toPx = toUnit('px');
11
11
  /**
12
12
  * The internal `<iframe>` view that hosts the minimap content.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module minimap/minimappositiontrackerview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui.js';
9
- import { type Locale } from 'ckeditor5/src/utils.js';
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
10
  /**
11
11
  * The position tracker visualizing the visible subset of the content. Displayed over the minimap.
12
12
  *
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module minimap/minimappositiontrackerview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui.js';
9
- import { toUnit, global } from 'ckeditor5/src/utils.js';
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import { toUnit, global } from 'ckeditor5/src/utils';
10
10
  const toPx = toUnit('px');
11
11
  /**
12
12
  * The position tracker visualizing the visible subset of the content. Displayed over the minimap.
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module minimap/minimapview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui.js';
9
- import { type Locale } from 'ckeditor5/src/utils.js';
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import { type Locale } from 'ckeditor5/src/utils';
10
10
  export type MinimapViewOptions = {
11
11
  domRootClone: HTMLElement;
12
12
  pageStyles: Array<string | {
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module minimap/minimapview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui.js';
9
- import { Rect } from 'ckeditor5/src/utils.js';
10
- import MinimapIframeView from './minimapiframeview.js';
11
- import MinimapPositionTrackerView from './minimappositiontrackerview.js';
8
+ import { View } from 'ckeditor5/src/ui';
9
+ import { Rect } from 'ckeditor5/src/utils';
10
+ import MinimapIframeView from './minimapiframeview';
11
+ import MinimapPositionTrackerView from './minimappositiontrackerview';
12
12
  /**
13
13
  * The main view of the minimap. It renders the original content but scaled down with a tracker element
14
14
  * visualizing the subset of the content visible to the user and allowing interactions (scrolling, dragging).
package/src/utils.d.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module minimap/utils
7
7
  */
8
- import { Rect } from 'ckeditor5/src/utils.js';
9
- import type { Editor } from 'ckeditor5/src/core.js';
8
+ import { Rect } from 'ckeditor5/src/utils';
9
+ import type { Editor } from 'ckeditor5/src/core';
10
10
  /**
11
11
  * Clones the editing view DOM root by using a dedicated pair of {@link module:engine/view/renderer~Renderer} and
12
12
  * {@link module:engine/view/domconverter~DomConverter}. The DOM root clone updates incrementally to stay in sync with the
package/src/utils.js CHANGED
@@ -6,8 +6,8 @@
6
6
  /**
7
7
  * @module minimap/utils
8
8
  */
9
- import { Rect, global } from 'ckeditor5/src/utils.js';
10
- import { DomConverter, Renderer } from 'ckeditor5/src/engine.js';
9
+ import { Rect, global } from 'ckeditor5/src/utils';
10
+ import { DomConverter, Renderer } from 'ckeditor5/src/engine';
11
11
  /**
12
12
  * Clones the editing view DOM root by using a dedicated pair of {@link module:engine/view/renderer~Renderer} and
13
13
  * {@link module:engine/view/domconverter~DomConverter}. The DOM root clone updates incrementally to stay in sync with the