@ckeditor/ckeditor5-bookmark 45.2.1-alpha.9 → 46.0.0-alpha.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/build/bookmark.js +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/bookmark.d.ts +3 -3
- package/src/bookmark.js +3 -3
- package/src/bookmarkediting.d.ts +3 -3
- package/src/bookmarkediting.js +3 -3
- package/src/bookmarkui.d.ts +5 -5
- package/src/bookmarkui.js +5 -5
- package/src/index.d.ts +7 -5
- package/src/index.js +7 -5
- package/src/insertbookmarkcommand.d.ts +1 -1
- package/src/insertbookmarkcommand.js +1 -1
- package/src/ui/bookmarkformview.d.ts +1 -1
- package/src/ui/bookmarkformview.js +1 -1
- package/src/updatebookmarkcommand.d.ts +1 -1
- package/src/updatebookmarkcommand.js +1 -1
- package/src/utils.d.ts +2 -0
- package/src/utils.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-bookmark",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "46.0.0-alpha.0",
|
|
4
4
|
"description": "Bookmark feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"ckeditor5": "
|
|
17
|
-
"@ckeditor/ckeditor5-core": "
|
|
18
|
-
"@ckeditor/ckeditor5-icons": "
|
|
19
|
-
"@ckeditor/ckeditor5-widget": "
|
|
20
|
-
"@ckeditor/ckeditor5-utils": "
|
|
21
|
-
"@ckeditor/ckeditor5-ui": "
|
|
22
|
-
"@ckeditor/ckeditor5-link": "
|
|
16
|
+
"ckeditor5": "46.0.0-alpha.0",
|
|
17
|
+
"@ckeditor/ckeditor5-core": "46.0.0-alpha.0",
|
|
18
|
+
"@ckeditor/ckeditor5-icons": "46.0.0-alpha.0",
|
|
19
|
+
"@ckeditor/ckeditor5-widget": "46.0.0-alpha.0",
|
|
20
|
+
"@ckeditor/ckeditor5-utils": "46.0.0-alpha.0",
|
|
21
|
+
"@ckeditor/ckeditor5-ui": "46.0.0-alpha.0",
|
|
22
|
+
"@ckeditor/ckeditor5-link": "46.0.0-alpha.0"
|
|
23
23
|
},
|
|
24
24
|
"author": "CKSource (http://cksource.com/)",
|
|
25
25
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/src/bookmark.d.ts
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { Widget } from 'ckeditor5/src/widget.js';
|
|
10
|
-
import BookmarkUI from './bookmarkui.js';
|
|
11
|
-
import BookmarkEditing from './bookmarkediting.js';
|
|
10
|
+
import { BookmarkUI } from './bookmarkui.js';
|
|
11
|
+
import { BookmarkEditing } from './bookmarkediting.js';
|
|
12
12
|
/**
|
|
13
13
|
* The bookmark feature.
|
|
14
14
|
*
|
|
15
15
|
* For a detailed overview, check the {@glink features/bookmarks Bookmarks} feature guide.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export declare class Bookmark extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
package/src/bookmark.js
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
9
|
import { Widget } from 'ckeditor5/src/widget.js';
|
|
10
|
-
import BookmarkUI from './bookmarkui.js';
|
|
11
|
-
import BookmarkEditing from './bookmarkediting.js';
|
|
10
|
+
import { BookmarkUI } from './bookmarkui.js';
|
|
11
|
+
import { BookmarkEditing } from './bookmarkediting.js';
|
|
12
12
|
/**
|
|
13
13
|
* The bookmark feature.
|
|
14
14
|
*
|
|
15
15
|
* For a detailed overview, check the {@glink features/bookmarks Bookmarks} feature guide.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export class Bookmark extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
package/src/bookmarkediting.d.ts
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* @module bookmark/bookmarkediting
|
|
7
7
|
*/
|
|
8
8
|
import { type Editor, Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
-
import type {
|
|
9
|
+
import type { ModelElement } from 'ckeditor5/src/engine.js';
|
|
10
10
|
import '../theme/bookmark.css';
|
|
11
11
|
/**
|
|
12
12
|
* The bookmark editing plugin.
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export declare class BookmarkEditing extends Plugin {
|
|
15
15
|
/**
|
|
16
16
|
* A collection of bookmarks elements in the document.
|
|
17
17
|
*/
|
|
@@ -35,7 +35,7 @@ export default class BookmarkEditing extends Plugin {
|
|
|
35
35
|
/**
|
|
36
36
|
* Returns the model element for the given bookmark ID if it exists.
|
|
37
37
|
*/
|
|
38
|
-
getElementForBookmarkId(bookmarkId: string):
|
|
38
|
+
getElementForBookmarkId(bookmarkId: string): ModelElement | null;
|
|
39
39
|
/**
|
|
40
40
|
* Returns all unique bookmark names existing in the content.
|
|
41
41
|
*/
|
package/src/bookmarkediting.js
CHANGED
|
@@ -9,13 +9,13 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
9
9
|
import { toWidget } from 'ckeditor5/src/widget.js';
|
|
10
10
|
import { IconView } from 'ckeditor5/src/ui.js';
|
|
11
11
|
import { IconBookmarkInline } from 'ckeditor5/src/icons.js';
|
|
12
|
-
import InsertBookmarkCommand from './insertbookmarkcommand.js';
|
|
13
|
-
import UpdateBookmarkCommand from './updatebookmarkcommand.js';
|
|
12
|
+
import { InsertBookmarkCommand } from './insertbookmarkcommand.js';
|
|
13
|
+
import { UpdateBookmarkCommand } from './updatebookmarkcommand.js';
|
|
14
14
|
import '../theme/bookmark.css';
|
|
15
15
|
/**
|
|
16
16
|
* The bookmark editing plugin.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export class BookmarkEditing extends Plugin {
|
|
19
19
|
/**
|
|
20
20
|
* A collection of bookmarks elements in the document.
|
|
21
21
|
*/
|
package/src/bookmarkui.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
6
|
import { ContextualBalloon, type ViewWithCssTransitionDisabler } from 'ckeditor5/src/ui.js';
|
|
7
7
|
import { WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
|
|
8
|
-
import BookmarkFormView from './ui/bookmarkformview.js';
|
|
9
|
-
import BookmarkEditing from './bookmarkediting.js';
|
|
8
|
+
import { BookmarkFormView } from './ui/bookmarkformview.js';
|
|
9
|
+
import { BookmarkEditing } from './bookmarkediting.js';
|
|
10
10
|
import '../theme/bookmarktoolbar.css';
|
|
11
11
|
/**
|
|
12
12
|
* The UI plugin of the bookmark feature.
|
|
@@ -14,7 +14,7 @@ import '../theme/bookmarktoolbar.css';
|
|
|
14
14
|
* It registers the `'bookmark'` UI button in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
|
|
15
15
|
* which inserts the `bookmark` element upon selection.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export declare class BookmarkUI extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* The form view displayed inside the balloon.
|
|
20
20
|
*/
|
|
@@ -115,8 +115,8 @@ export default class BookmarkUI extends Plugin {
|
|
|
115
115
|
*/
|
|
116
116
|
private _getBalloonPositionData;
|
|
117
117
|
/**
|
|
118
|
-
* Returns the bookmark {@link module:engine/view/attributeelement~
|
|
119
|
-
* the {@link module:engine/view/document~
|
|
118
|
+
* Returns the bookmark {@link module:engine/view/attributeelement~ViewAttributeElement} under
|
|
119
|
+
* the {@link module:engine/view/document~ViewDocument editing view's} selection or `null`
|
|
120
120
|
* if there is none.
|
|
121
121
|
*/
|
|
122
122
|
private _getSelectedBookmarkElement;
|
package/src/bookmarkui.js
CHANGED
|
@@ -6,8 +6,8 @@ import { Plugin } from 'ckeditor5/src/core.js';
|
|
|
6
6
|
import { ButtonView, ContextualBalloon, CssTransitionDisablerMixin, MenuBarMenuListItemButtonView, clickOutsideHandler, LabelView, BalloonPanelView } from 'ckeditor5/src/ui.js';
|
|
7
7
|
import { IconBookmark, IconRemove, IconBookmarkMedium, IconBookmarkSmall, IconPencil } from 'ckeditor5/src/icons.js';
|
|
8
8
|
import { isWidget, WidgetToolbarRepository } from 'ckeditor5/src/widget.js';
|
|
9
|
-
import BookmarkFormView from './ui/bookmarkformview.js';
|
|
10
|
-
import BookmarkEditing from './bookmarkediting.js';
|
|
9
|
+
import { BookmarkFormView } from './ui/bookmarkformview.js';
|
|
10
|
+
import { BookmarkEditing } from './bookmarkediting.js';
|
|
11
11
|
import '../theme/bookmarktoolbar.css';
|
|
12
12
|
const VISUAL_SELECTION_MARKER_NAME = 'bookmark-ui';
|
|
13
13
|
/**
|
|
@@ -16,7 +16,7 @@ const VISUAL_SELECTION_MARKER_NAME = 'bookmark-ui';
|
|
|
16
16
|
* It registers the `'bookmark'` UI button in the editor's {@link module:ui/componentfactory~ComponentFactory component factory}
|
|
17
17
|
* which inserts the `bookmark` element upon selection.
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export class BookmarkUI extends Plugin {
|
|
20
20
|
/**
|
|
21
21
|
* The form view displayed inside the balloon.
|
|
22
22
|
*/
|
|
@@ -494,8 +494,8 @@ export default class BookmarkUI extends Plugin {
|
|
|
494
494
|
};
|
|
495
495
|
}
|
|
496
496
|
/**
|
|
497
|
-
* Returns the bookmark {@link module:engine/view/attributeelement~
|
|
498
|
-
* the {@link module:engine/view/document~
|
|
497
|
+
* Returns the bookmark {@link module:engine/view/attributeelement~ViewAttributeElement} under
|
|
498
|
+
* the {@link module:engine/view/document~ViewDocument editing view's} selection or `null`
|
|
499
499
|
* if there is none.
|
|
500
500
|
*/
|
|
501
501
|
_getSelectedBookmarkElement() {
|
package/src/index.d.ts
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module bookmark
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
8
|
+
export { Bookmark } from './bookmark.js';
|
|
9
|
+
export { BookmarkEditing } from './bookmarkediting.js';
|
|
10
|
+
export { BookmarkUI } from './bookmarkui.js';
|
|
11
|
+
export { InsertBookmarkCommand } from './insertbookmarkcommand.js';
|
|
12
|
+
export { UpdateBookmarkCommand } from './updatebookmarkcommand.js';
|
|
13
|
+
export { BookmarkFormView, type BookmarkFormValidatorCallback, type BookmarkFormViewCancelEvent } from './ui/bookmarkformview.js';
|
|
13
14
|
export type { BookmarkConfig } from './bookmarkconfig.js';
|
|
15
|
+
export { isBookmarkIdValid as _isBookmarkIdValid } from './utils.js';
|
|
14
16
|
import './augmentation.js';
|
package/src/index.js
CHANGED
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module bookmark
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
8
|
+
export { Bookmark } from './bookmark.js';
|
|
9
|
+
export { BookmarkEditing } from './bookmarkediting.js';
|
|
10
|
+
export { BookmarkUI } from './bookmarkui.js';
|
|
11
|
+
export { InsertBookmarkCommand } from './insertbookmarkcommand.js';
|
|
12
|
+
export { UpdateBookmarkCommand } from './updatebookmarkcommand.js';
|
|
13
|
+
export { BookmarkFormView } from './ui/bookmarkformview.js';
|
|
14
|
+
export { isBookmarkIdValid as _isBookmarkIdValid } from './utils.js';
|
|
13
15
|
import './augmentation.js';
|
|
@@ -15,7 +15,7 @@ import { Command } from 'ckeditor5/src/core.js';
|
|
|
15
15
|
* editor.execute( 'insertBookmark', { bookmarkId: 'foo_bar' } );
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export declare class InsertBookmarkCommand extends Command {
|
|
19
19
|
/**
|
|
20
20
|
* @inheritDoc
|
|
21
21
|
*/
|
|
@@ -17,7 +17,7 @@ import { isBookmarkIdValid } from './utils.js';
|
|
|
17
17
|
* editor.execute( 'insertBookmark', { bookmarkId: 'foo_bar' } );
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export class InsertBookmarkCommand extends Command {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|
|
@@ -15,7 +15,7 @@ import '../../theme/bookmarkform.css';
|
|
|
15
15
|
*
|
|
16
16
|
* See {@link module:bookmark/ui/bookmarkformview~BookmarkFormView}.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export declare class BookmarkFormView extends View {
|
|
19
19
|
/**
|
|
20
20
|
* Tracks information about DOM focus in the form.
|
|
21
21
|
*/
|
|
@@ -19,7 +19,7 @@ import '../../theme/bookmarkform.css';
|
|
|
19
19
|
*
|
|
20
20
|
* See {@link module:bookmark/ui/bookmarkformview~BookmarkFormView}.
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export class BookmarkFormView extends View {
|
|
23
23
|
/**
|
|
24
24
|
* Tracks information about DOM focus in the form.
|
|
25
25
|
*/
|
|
@@ -17,7 +17,7 @@ import { Command } from 'ckeditor5/src/core.js';
|
|
|
17
17
|
* editor.execute( 'updateBookmark', { bookmarkId: 'newId' } );
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export declare class UpdateBookmarkCommand extends Command {
|
|
21
21
|
/**
|
|
22
22
|
* The value of the `'bookmarkId'` attribute.
|
|
23
23
|
*
|
|
@@ -19,7 +19,7 @@ import { isBookmarkIdValid } from './utils.js';
|
|
|
19
19
|
* editor.execute( 'updateBookmark', { bookmarkId: 'newId' } );
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export class UpdateBookmarkCommand extends Command {
|
|
23
23
|
/**
|
|
24
24
|
* @inheritDoc
|
|
25
25
|
*/
|
package/src/utils.d.ts
CHANGED