@ckeditor/ckeditor5-minimap 38.2.0-alpha.1 → 39.0.0
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 +0 -1
- package/package.json +2 -3
- package/src/augmentation.d.ts +1 -1
- package/src/index.d.ts +3 -3
- package/src/index.js +2 -2
- package/src/minimap.d.ts +1 -1
- package/src/minimap.js +4 -4
- package/src/minimapiframeview.d.ts +3 -3
- package/src/minimapiframeview.js +2 -2
- package/src/minimappositiontrackerview.d.ts +2 -2
- package/src/minimappositiontrackerview.js +2 -2
- package/src/minimapview.d.ts +2 -2
- package/src/minimapview.js +4 -4
- package/src/utils.d.ts +2 -2
- package/src/utils.js +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@ CKEditor 5 Minimap Feature
|
|
|
4
4
|
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-minimap)
|
|
5
5
|
[](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
|
|
6
6
|
[](https://app.travis-ci.com/github/ckeditor/ckeditor5)
|
|
7
|
-

|
|
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": "
|
|
3
|
+
"version": "39.0.0",
|
|
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": "
|
|
15
|
+
"ckeditor5": "39.0.0"
|
|
17
16
|
},
|
|
18
17
|
"engines": {
|
|
19
18
|
"node": ">=16.0.0",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
9
|
-
export type { MinimapConfig } from './minimapconfig
|
|
10
|
-
import './augmentation
|
|
8
|
+
export { default as Minimap } from './minimap';
|
|
9
|
+
export type { MinimapConfig } from './minimapconfig';
|
|
10
|
+
import './augmentation';
|
package/src/index.js
CHANGED
package/src/minimap.d.ts
CHANGED
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
|
|
9
|
-
import { findClosestScrollableAncestor, global } from 'ckeditor5/src/utils
|
|
10
|
-
import MinimapView from './minimapview
|
|
11
|
-
import { cloneEditingViewDomRoot, getClientHeight, getDomElementRect, getPageStyles, getScrollable } from './utils
|
|
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
|
|
9
|
-
import { type Locale } from 'ckeditor5/src/utils
|
|
10
|
-
import type { MinimapViewOptions } from './minimapview
|
|
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
|
*
|
package/src/minimapiframeview.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module minimap/minimapiframeview
|
|
7
7
|
*/
|
|
8
|
-
import { IframeView } from 'ckeditor5/src/ui
|
|
9
|
-
import { toUnit } from 'ckeditor5/src/utils
|
|
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
|
|
9
|
-
import { type Locale } from 'ckeditor5/src/utils
|
|
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
|
|
9
|
-
import { toUnit, global } from 'ckeditor5/src/utils
|
|
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.
|
package/src/minimapview.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module minimap/minimapview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5/src/ui
|
|
9
|
-
import { type Locale } from 'ckeditor5/src/utils
|
|
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 | {
|
package/src/minimapview.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module minimap/minimapview
|
|
7
7
|
*/
|
|
8
|
-
import { View } from 'ckeditor5/src/ui
|
|
9
|
-
import { Rect } from 'ckeditor5/src/utils
|
|
10
|
-
import MinimapIframeView from './minimapiframeview
|
|
11
|
-
import MinimapPositionTrackerView from './minimappositiontrackerview
|
|
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
|
|
9
|
-
import type { Editor } from 'ckeditor5/src/core
|
|
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
|
|
10
|
-
import { DomConverter, Renderer } from 'ckeditor5/src/engine
|
|
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
|