@ckeditor/ckeditor5-minimap 37.0.0-alpha.0 → 37.0.0-alpha.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/package.json +17 -17
- package/src/augmentation.d.ts +18 -0
- package/src/augmentation.js +5 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +1 -0
- package/src/minimap.d.ts +2 -8
- package/src/minimap.js +0 -1
- package/src/minimapconfig.d.ts +0 -10
- package/src/minimapview.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-minimap",
|
|
3
|
-
"version": "37.0.0-alpha.
|
|
3
|
+
"version": "37.0.0-alpha.1",
|
|
4
4
|
"description": "Content minimap feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,23 +12,23 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "^37.0.0-alpha.
|
|
15
|
+
"ckeditor5": "^37.0.0-alpha.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@ckeditor/ckeditor5-alignment": "^37.0.0-alpha.
|
|
19
|
-
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.
|
|
20
|
-
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.
|
|
21
|
-
"@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
24
|
-
"@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-editor-decoupled": "^37.0.0-alpha.
|
|
26
|
-
"@ckeditor/ckeditor5-font": "^37.0.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-page-break": "^37.0.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.
|
|
18
|
+
"@ckeditor/ckeditor5-alignment": "^37.0.0-alpha.1",
|
|
19
|
+
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.1",
|
|
20
|
+
"@ckeditor/ckeditor5-cloud-services": "^37.0.0-alpha.1",
|
|
21
|
+
"@ckeditor/ckeditor5-code-block": "^37.0.0-alpha.1",
|
|
22
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.1",
|
|
23
|
+
"@ckeditor/ckeditor5-dev-utils": "^35.0.0",
|
|
24
|
+
"@ckeditor/ckeditor5-easy-image": "^37.0.0-alpha.1",
|
|
25
|
+
"@ckeditor/ckeditor5-editor-decoupled": "^37.0.0-alpha.1",
|
|
26
|
+
"@ckeditor/ckeditor5-font": "^37.0.0-alpha.1",
|
|
27
|
+
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.1",
|
|
28
|
+
"@ckeditor/ckeditor5-indent": "^37.0.0-alpha.1",
|
|
29
|
+
"@ckeditor/ckeditor5-page-break": "^37.0.0-alpha.1",
|
|
30
|
+
"@ckeditor/ckeditor5-table": "^37.0.0-alpha.1",
|
|
31
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.1",
|
|
32
32
|
"typescript": "^4.8.4",
|
|
33
33
|
"webpack": "^5.58.1",
|
|
34
34
|
"webpack-cli": "^4.9.0"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
],
|
|
58
58
|
"scripts": {
|
|
59
59
|
"dll:build": "webpack",
|
|
60
|
-
"build": "tsc -p ./tsconfig.
|
|
60
|
+
"build": "tsc -p ./tsconfig.json",
|
|
61
61
|
"postversion": "npm run build"
|
|
62
62
|
},
|
|
63
63
|
"types": "src/index.d.ts"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
import type { MinimapConfig, Minimap } from './index';
|
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The configuration of the minimap feature. Introduced by the {@link module:minimap/minimap~Minimap} feature.
|
|
10
|
+
*
|
|
11
|
+
* Read more in {@link module:minimap/minimapconfig~MinimapConfig}.
|
|
12
|
+
*/
|
|
13
|
+
minimap?: MinimapConfig;
|
|
14
|
+
}
|
|
15
|
+
interface PluginsMap {
|
|
16
|
+
[Minimap.pluginName]: Minimap;
|
|
17
|
+
}
|
|
18
|
+
}
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
package/src/minimap.d.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* @module minimap/minimap
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import './minimapconfig';
|
|
10
9
|
import '../theme/minimap.css';
|
|
11
10
|
/**
|
|
12
11
|
* The content minimap feature.
|
|
@@ -22,12 +21,12 @@ export default class Minimap extends Plugin {
|
|
|
22
21
|
private _minimapView;
|
|
23
22
|
/**
|
|
24
23
|
* The DOM element closest to the editable element of the editor as returned
|
|
25
|
-
* by {@link module:
|
|
24
|
+
* by {@link module:ui/editorui/editorui~EditorUI#getEditableElement}.
|
|
26
25
|
*/
|
|
27
26
|
private _scrollableRootAncestor;
|
|
28
27
|
/**
|
|
29
28
|
* The DOM element closest to the editable element of the editor as returned
|
|
30
|
-
* by {@link module:
|
|
29
|
+
* by {@link module:ui/editorui/editorui~EditorUI#getEditableElement}.
|
|
31
30
|
*/
|
|
32
31
|
private _editingRootElement?;
|
|
33
32
|
/**
|
|
@@ -53,8 +52,3 @@ export default class Minimap extends Plugin {
|
|
|
53
52
|
*/
|
|
54
53
|
private _syncMinimapToEditingRootScrollPosition;
|
|
55
54
|
}
|
|
56
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
57
|
-
interface PluginsMap {
|
|
58
|
-
[Minimap.pluginName]: Minimap;
|
|
59
|
-
}
|
|
60
|
-
}
|
package/src/minimap.js
CHANGED
|
@@ -10,7 +10,6 @@ import { findClosestScrollableAncestor, global } from 'ckeditor5/src/utils';
|
|
|
10
10
|
import MinimapView from './minimapview';
|
|
11
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
|
-
import './minimapconfig';
|
|
14
13
|
import '../theme/minimap.css';
|
|
15
14
|
/**
|
|
16
15
|
* The content minimap feature.
|
package/src/minimapconfig.d.ts
CHANGED
|
@@ -83,13 +83,3 @@ export interface MinimapConfig {
|
|
|
83
83
|
*/
|
|
84
84
|
extraClasses?: string;
|
|
85
85
|
}
|
|
86
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
87
|
-
interface EditorConfig {
|
|
88
|
-
/**
|
|
89
|
-
* The configuration of the minimap feature. Introduced by the {@link module:minimap/minimap~Minimap} feature.
|
|
90
|
-
*
|
|
91
|
-
* Read more in {@link module:minimap/minimapconfig~MinimapConfig}.
|
|
92
|
-
*/
|
|
93
|
-
minimap?: MinimapConfig;
|
|
94
|
-
}
|
|
95
|
-
}
|
package/src/minimapview.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ export default class MinimapView extends View {
|
|
|
90
90
|
/**
|
|
91
91
|
* Fired when the minimap view is clicked.
|
|
92
92
|
*
|
|
93
|
-
* @eventName click
|
|
93
|
+
* @eventName ~MinimapView#click
|
|
94
94
|
* @param percentage The number between 0 and 1 representing a place in the minimap (its height) that was clicked.
|
|
95
95
|
*/
|
|
96
96
|
export type MinimapClickEvent = {
|
|
@@ -100,7 +100,7 @@ export type MinimapClickEvent = {
|
|
|
100
100
|
/**
|
|
101
101
|
* Fired when the position tracker is dragged or the minimap is scrolled via mouse wheel.
|
|
102
102
|
*
|
|
103
|
-
* @eventName drag
|
|
103
|
+
* @eventName ~MinimapView#drag
|
|
104
104
|
* @param movementY The vertical movement of the minimap as a result of dragging or scrolling.
|
|
105
105
|
*/
|
|
106
106
|
export type MinimapDragEvent = {
|