@ckeditor/ckeditor5-revision-history 38.0.1 → 38.1.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.
Files changed (64) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +13 -11
  3. package/src/augmentation.d.ts +25 -25
  4. package/src/changeitem.d.ts +57 -57
  5. package/src/changeitem.js +1 -1
  6. package/src/editor/revisionviewereditor.d.ts +27 -27
  7. package/src/editor/revisionviewereditor.js +1 -1
  8. package/src/editor/revisionviewereditorui.d.ts +28 -28
  9. package/src/editor/revisionviewereditorui.js +1 -1
  10. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  11. package/src/editor/revisionviewereditoruiview.js +1 -1
  12. package/src/index.d.ts +11 -10
  13. package/src/revision.d.ts +153 -153
  14. package/src/revision.js +1 -1
  15. package/src/revisiondiff.d.ts +20 -20
  16. package/src/revisiondiff.js +1 -1
  17. package/src/revisionhistory.d.ts +95 -93
  18. package/src/revisionhistory.js +1 -1
  19. package/src/revisionhistoryadapter.d.ts +60 -60
  20. package/src/revisionhistoryconfig.d.ts +60 -60
  21. package/src/revisionsrepository.d.ts +48 -43
  22. package/src/revisionsrepository.js +1 -1
  23. package/src/revisiontracker.d.ts +77 -72
  24. package/src/revisiontracker.js +1 -1
  25. package/src/revisionviewer.d.ts +21 -21
  26. package/src/revisionviewer.js +1 -1
  27. package/src/ui/revision/createrevisionactionsdropdown.d.ts +9 -9
  28. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  29. package/src/ui/revision/revisionauthorview.d.ts +4 -4
  30. package/src/ui/revision/revisionauthorview.js +1 -1
  31. package/src/ui/revision/revisionnameview.d.ts +4 -4
  32. package/src/ui/revision/revisionnameview.js +1 -1
  33. package/src/ui/revision/revisionview.d.ts +91 -91
  34. package/src/ui/revision/revisionview.js +1 -1
  35. package/src/ui/revision/subrevisioncollapserview.d.ts +17 -17
  36. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  37. package/src/ui/revision/subrevisionview.d.ts +30 -30
  38. package/src/ui/revision/subrevisionview.js +1 -1
  39. package/src/ui/revision/utils.d.ts +4 -4
  40. package/src/ui/revision/utils.js +1 -1
  41. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +80 -80
  42. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  43. package/src/ui/revisionhistory/revisionhistoryui.d.ts +22 -21
  44. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  45. package/src/ui/revisionssidebar/revisionssidebar.d.ts +40 -39
  46. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  47. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +4 -4
  48. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  49. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +25 -25
  50. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  51. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +40 -40
  52. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  53. package/src/ui/revisionssidebar/utils.d.ts +8 -8
  54. package/src/ui/revisionssidebar/utils.js +1 -1
  55. package/src/ui/revisionviewer/changedetailsview.d.ts +18 -18
  56. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  57. package/src/ui/revisionviewer/changesnavigationview.d.ts +36 -36
  58. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  59. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +22 -22
  60. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  61. package/src/ui/revisionviewer/revisionviewerui.d.ts +24 -22
  62. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  63. package/src/utils/common-translations.d.ts +7 -7
  64. package/src/utils/common-translations.js +1 -1
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-revision-history",
3
- "version": "38.0.1",
3
+ "version": "38.1.1",
4
4
  "description": "Document revision history feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
7
+ "bugs": {
8
+ "url": "https://support.ckeditor.com/hc/en-us/requests/new"
9
+ },
7
10
  "homepage": "https://ckeditor.com/collaboration/",
8
11
  "keywords": [
9
12
  "CKEditor",
@@ -24,11 +27,6 @@
24
27
  "versioning"
25
28
  ],
26
29
  "main": "src/index.js",
27
- "scripts": {
28
- "dll:build": "webpack",
29
- "build": "tsc -p ./tsconfig.json",
30
- "postversion": "npm run build"
31
- },
32
30
  "files": [
33
31
  "build",
34
32
  "lang",
@@ -39,14 +37,18 @@
39
37
  "CHANGELOG.md"
40
38
  ],
41
39
  "dependencies": {
42
- "@ckeditor/ckeditor5-editor-classic": "^38.0.1",
43
- "@ckeditor/ckeditor5-ui": "^38.0.1",
44
- "@ckeditor/ckeditor5-undo": "^38.0.1",
45
- "ckeditor5": "^38.0.1",
46
- "ckeditor5-collaboration": "^38.0.1",
40
+ "@ckeditor/ckeditor5-editor-classic": "38.1.1",
41
+ "@ckeditor/ckeditor5-ui": "38.1.1",
42
+ "@ckeditor/ckeditor5-undo": "38.1.1",
43
+ "ckeditor5": "38.1.1",
44
+ "ckeditor5-collaboration": "38.1.1",
47
45
  "lodash-es": "^4.17.15",
48
46
  "luxon": "^1.25.0"
49
47
  },
48
+ "engines": {
49
+ "node": ">=16.0.0",
50
+ "npm": ">=5.7.1"
51
+ },
50
52
  "types": "src/index.d.ts",
51
53
  "obfuscated": true
52
54
  }
@@ -1,25 +1,25 @@
1
- import type { RevisionHistoryConfig, RevisionsRepository, RevisionViewerLoadingOverlay, RevisionHistoryUI, RevisionTracker, RevisionViewer, RestoreRevisionCommand, ShowChangeCommand, RevisionsSidebar, RevisionViewerUI } from './index';
2
- declare module '@ckeditor/ckeditor5-core' {
3
- interface EditorConfig {
4
- /**
5
- * The configuration of the revision history feature.
6
- * Introduced by the {@link module:revision-history/revisionhistory~RevisionHistory} feature.
7
- */
8
- revisionHistory?: RevisionHistoryConfig;
9
- }
10
- interface PluginsMap {
11
- [RevisionsRepository.pluginName]: RevisionsRepository;
12
- [RevisionViewerLoadingOverlay.pluginName]: RevisionViewerLoadingOverlay;
13
- [RevisionHistoryUI.pluginName]: RevisionHistoryUI;
14
- [RevisionTracker.pluginName]: RevisionTracker;
15
- [RevisionViewer.pluginName]: RevisionViewer;
16
- [RevisionViewer.pluginName]: RevisionViewer;
17
- [RevisionsSidebar.pluginName]: RevisionsSidebar;
18
- [RevisionViewerUI.pluginName]: RevisionViewerUI;
19
- }
20
- interface CommandsMap {
21
- restoreRevision: RestoreRevisionCommand;
22
- showPreviousChange: ShowChangeCommand<'backward'>;
23
- showNextChange: ShowChangeCommand<'forward'>;
24
- }
25
- }
1
+ import type { RevisionHistoryConfig, RevisionsRepository, RevisionViewerLoadingOverlay, RevisionHistoryUI, RevisionTracker, RevisionViewer, RestoreRevisionCommand, ShowChangeCommand, RevisionsSidebar, RevisionViewerUI } from './index';
2
+ declare module '@ckeditor/ckeditor5-core' {
3
+ interface EditorConfig {
4
+ /**
5
+ * The configuration of the revision history feature.
6
+ * Introduced by the {@link module:revision-history/revisionhistory~RevisionHistory} feature.
7
+ */
8
+ revisionHistory?: RevisionHistoryConfig;
9
+ }
10
+ interface PluginsMap {
11
+ [RevisionsRepository.pluginName]: RevisionsRepository;
12
+ [RevisionViewerLoadingOverlay.pluginName]: RevisionViewerLoadingOverlay;
13
+ [RevisionHistoryUI.pluginName]: RevisionHistoryUI;
14
+ [RevisionTracker.pluginName]: RevisionTracker;
15
+ [RevisionViewer.pluginName]: RevisionViewer;
16
+ [RevisionViewer.pluginName]: RevisionViewer;
17
+ [RevisionsSidebar.pluginName]: RevisionsSidebar;
18
+ [RevisionViewerUI.pluginName]: RevisionViewerUI;
19
+ }
20
+ interface CommandsMap {
21
+ restoreRevision: RestoreRevisionCommand;
22
+ showPreviousChange: ShowChangeCommand<'backward'>;
23
+ showNextChange: ShowChangeCommand<'forward'>;
24
+ }
25
+ }
@@ -1,57 +1,57 @@
1
- /**
2
- * @module revision-history/changeitem
3
- */
4
- import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
5
- declare const ChangeItem_base: {
6
- new (): import("ckeditor5/src/utils").Observable;
7
- prototype: import("ckeditor5/src/utils").Observable;
8
- };
9
- /**
10
- * Represents a singular change entry in the revision or in the revisions comparison.
11
- */
12
- export default class ChangeItem extends ChangeItem_base {
13
- /**
14
- * Unique change item id.
15
- */
16
- readonly id: string;
17
- /**
18
- * User who created the change.
19
- */
20
- readonly author: User;
21
- /**
22
- * Change type.
23
- */
24
- readonly type: string;
25
- /**
26
- * Additional details about the change.
27
- */
28
- readonly data: Record<string, unknown>;
29
- /**
30
- * Name of the root which contains the change.
31
- */
32
- readonly rootName: string;
33
- /**
34
- * The date when the change was created.
35
- *
36
- * @observable
37
- */
38
- readonly createdAt: Date;
39
- constructor(data: ChangeItemInput);
40
- toJSON(): ChangeItemJSON;
41
- }
42
- export interface ChangeItemInput {
43
- id?: string;
44
- author: User;
45
- type: string;
46
- data: Record<string, unknown>;
47
- createdAt: Date;
48
- rootName: string;
49
- }
50
- export interface ChangeItemJSON {
51
- id: string;
52
- authorId: string;
53
- type: string;
54
- data: Record<string, unknown>;
55
- createdAt: Date;
56
- }
57
- export {};
1
+ /**
2
+ * @module revision-history/changeitem
3
+ */
4
+ import type { User } from 'ckeditor5-collaboration/src/collaboration-core';
5
+ declare const ChangeItem_base: {
6
+ new (): import("ckeditor5/src/utils").Observable;
7
+ prototype: import("ckeditor5/src/utils").Observable;
8
+ };
9
+ /**
10
+ * Represents a singular change entry in the revision or in the revisions comparison.
11
+ */
12
+ export default class ChangeItem extends ChangeItem_base {
13
+ /**
14
+ * Unique change item id.
15
+ */
16
+ readonly id: string;
17
+ /**
18
+ * User who created the change.
19
+ */
20
+ readonly author: User;
21
+ /**
22
+ * Change type.
23
+ */
24
+ readonly type: string;
25
+ /**
26
+ * Additional details about the change.
27
+ */
28
+ readonly data: Record<string, unknown>;
29
+ /**
30
+ * Name of the root which contains the change.
31
+ */
32
+ readonly rootName: string;
33
+ /**
34
+ * The date when the change was created.
35
+ *
36
+ * @observable
37
+ */
38
+ readonly createdAt: Date;
39
+ constructor(data: ChangeItemInput);
40
+ toJSON(): ChangeItemJSON;
41
+ }
42
+ export interface ChangeItemInput {
43
+ id?: string;
44
+ author: User;
45
+ type: string;
46
+ data: Record<string, unknown>;
47
+ createdAt: Date;
48
+ rootName: string;
49
+ }
50
+ export interface ChangeItemJSON {
51
+ id: string;
52
+ authorId: string;
53
+ type: string;
54
+ data: Record<string, unknown>;
55
+ createdAt: Date;
56
+ }
57
+ export {};
package/src/changeitem.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x15a6=['data','toJSON','author','rootName','type','createdAt','set'];(function(_0x3bf6ab,_0x15a687){var _0x35f961=function(_0xd64c5f){while(--_0xd64c5f){_0x3bf6ab['push'](_0x3bf6ab['shift']());}};_0x35f961(++_0x15a687);}(_0x15a6,0x160));var _0x35f9=function(_0x3bf6ab,_0x15a687){_0x3bf6ab=_0x3bf6ab-0x0;var _0x35f961=_0x15a6[_0x3bf6ab];return _0x35f961;};import{ObservableMixin as _0x4de393,uid as _0x3ef864}from'ckeditor5/src/utils';export default class r extends _0x4de393(){constructor(_0x2547d6){super(),this['id']=_0x2547d6['id']||_0x3ef864(),this[_0x35f9('0x0')]=_0x2547d6[_0x35f9('0x0')],this[_0x35f9('0x2')]=_0x2547d6[_0x35f9('0x2')],this['data']=_0x2547d6[_0x35f9('0x5')]||{},this[_0x35f9('0x1')]=_0x2547d6[_0x35f9('0x1')],this[_0x35f9('0x4')](_0x35f9('0x3'),_0x2547d6[_0x35f9('0x3')]);}[_0x35f9('0x6')](){return{'id':this['id'],'authorId':this['author']['id'],'type':this[_0x35f9('0x2')],'data':this[_0x35f9('0x5')],'createdAt':this['createdAt']};}}
23
+ var _0xe66b=['type','author','createdAt','rootName','data','toJSON'];(function(_0x289bca,_0xe66ba6){var _0x23ae1e=function(_0x1084af){while(--_0x1084af){_0x289bca['push'](_0x289bca['shift']());}};_0x23ae1e(++_0xe66ba6);}(_0xe66b,0x10e));var _0x23ae=function(_0x289bca,_0xe66ba6){_0x289bca=_0x289bca-0x0;var _0x23ae1e=_0xe66b[_0x289bca];return _0x23ae1e;};import{ObservableMixin as _0x579e32,uid as _0x364d63}from'ckeditor5/src/utils';export default class r extends _0x579e32(){constructor(_0x340872){super(),this['id']=_0x340872['id']||_0x364d63(),this[_0x23ae('0x1')]=_0x340872[_0x23ae('0x1')],this['type']=_0x340872['type'],this['data']=_0x340872[_0x23ae('0x4')]||{},this[_0x23ae('0x3')]=_0x340872[_0x23ae('0x3')],this['set'](_0x23ae('0x2'),_0x340872[_0x23ae('0x2')]);}[_0x23ae('0x5')](){return{'id':this['id'],'authorId':this['author']['id'],'type':this[_0x23ae('0x0')],'data':this[_0x23ae('0x4')],'createdAt':this[_0x23ae('0x2')]};}}
@@ -1,27 +1,27 @@
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
- /**
6
- * @module revision-history/editor/revisionviewereditor
7
- */
8
- import { Editor, type EditorConfig } from 'ckeditor5/src/core';
9
- import RevisionViewerEditorUI from './revisionviewereditorui';
10
- declare const RevisionViewerEditor_base: import("@ckeditor/ckeditor5-utils").Mixed<import("@ckeditor/ckeditor5-utils").Mixed<typeof Editor, import("ckeditor5/src/core").ElementApi>, import("ckeditor5/src/core").DataApi>;
11
- /**
12
- * Editor class used to show revision comparisons.
13
- */
14
- export default class RevisionViewerEditor extends RevisionViewerEditor_base {
15
- get ui(): RevisionViewerEditorUI;
16
- /**
17
- * @param sourceElement Editor source element.
18
- * @param config Editor configuration.
19
- */
20
- constructor(sourceElement: HTMLElement, config?: EditorConfig);
21
- /**
22
- * @inheritDoc
23
- */
24
- destroy(): Promise<unknown>;
25
- static create(sourceElement: HTMLElement, config?: EditorConfig): Promise<RevisionViewerEditor>;
26
- }
27
- export {};
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
+ /**
6
+ * @module revision-history/editor/revisionviewereditor
7
+ */
8
+ import { Editor, type EditorConfig } from 'ckeditor5/src/core';
9
+ import RevisionViewerEditorUI from './revisionviewereditorui';
10
+ declare const RevisionViewerEditor_base: import("@ckeditor/ckeditor5-utils").Mixed<import("@ckeditor/ckeditor5-utils").Mixed<typeof Editor, import("ckeditor5/src/core").ElementApi>, import("ckeditor5/src/core").DataApi>;
11
+ /**
12
+ * Editor class used to show revision comparisons.
13
+ */
14
+ export default class RevisionViewerEditor extends RevisionViewerEditor_base {
15
+ get ui(): RevisionViewerEditorUI;
16
+ /**
17
+ * @param sourceElement Editor source element.
18
+ * @param config Editor configuration.
19
+ */
20
+ constructor(sourceElement: HTMLElement, config?: EditorConfig);
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ destroy(): Promise<unknown>;
25
+ static create(sourceElement: HTMLElement, config?: EditorConfig): Promise<RevisionViewerEditor>;
26
+ }
27
+ export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d54=['config','create','fire','destroy','initialData','document','data','editing','updateSourceElement','_ui','sourceElement','model','initPlugins','get','init','locale'];(function(_0xb56bd,_0x4d543f){const _0x5a5c81=function(_0x2adb16){while(--_0x2adb16){_0xb56bd['push'](_0xb56bd['shift']());}};_0x5a5c81(++_0x4d543f);}(_0x4d54,0x66));const _0x5a5c=function(_0xb56bd,_0x4d543f){_0xb56bd=_0xb56bd-0x0;let _0x5a5c81=_0x4d54[_0xb56bd];return _0x5a5c81;};import{Editor as _0x18d2ce,DataApiMixin as _0x2496f2,ElementApiMixin as _0x249c26}from'ckeditor5/src/core';import _0x13d286 from'./revisionviewereditorui';import _0x35e221 from'./revisionviewereditoruiview';export default class R extends _0x2496f2(_0x249c26(_0x18d2ce)){get['ui'](){return this[_0x5a5c('0x3')];}constructor(_0x65f3e1,_0x3a697d){super(_0x3a697d),this[_0x5a5c('0x4')]=_0x65f3e1,this[_0x5a5c('0x5')][_0x5a5c('0xf')]['createRoot']();const _0xf4542f=new _0x35e221(this[_0x5a5c('0x9')],this[_0x5a5c('0x1')]['view'],{'shouldToolbarGroupWhenFull':!0x0});this[_0x5a5c('0x3')]=new _0x13d286(this,_0xf4542f);}[_0x5a5c('0xd')](){return this[_0x5a5c('0x2')](),this['ui']['destroy'](),super[_0x5a5c('0xd')]();}static async[_0x5a5c('0xb')](_0x230d07,_0x1382cf){const _0x6cee21=new this(_0x230d07,_0x1382cf);return await _0x6cee21[_0x5a5c('0x6')](),await _0x6cee21['ui'][_0x5a5c('0x8')](_0x230d07),await _0x6cee21[_0x5a5c('0x0')][_0x5a5c('0x8')](_0x6cee21[_0x5a5c('0xa')][_0x5a5c('0x7')](_0x5a5c('0xe'))||''),_0x6cee21[_0x5a5c('0xc')]('ready'),_0x6cee21;}}
23
+ const _0x1d14=['_ui','updateSourceElement','createRoot','create','data','document','initPlugins','get','ready','model','destroy','init','locale','config','initialData'];(function(_0x1794f1,_0x1d1481){const _0x139291=function(_0x15f186){while(--_0x15f186){_0x1794f1['push'](_0x1794f1['shift']());}};_0x139291(++_0x1d1481);}(_0x1d14,0xc7));const _0x1392=function(_0x1794f1,_0x1d1481){_0x1794f1=_0x1794f1-0x0;let _0x139291=_0x1d14[_0x1794f1];return _0x139291;};import{Editor as _0x4b996d,DataApiMixin as _0x1a2703,ElementApiMixin as _0xa25420}from'ckeditor5/src/core';import _0x59c63f from'./revisionviewereditorui';import _0x631d54 from'./revisionviewereditoruiview';export default class y extends _0x1a2703(_0xa25420(_0x4b996d)){get['ui'](){return this['_ui'];}constructor(_0x3b587b,_0x338ab5){super(_0x338ab5),this['sourceElement']=_0x3b587b,this[_0x1392('0x5')][_0x1392('0x1')][_0x1392('0xd')]();const _0x41d1ba=new _0x631d54(this[_0x1392('0x8')],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this[_0x1392('0xb')]=new _0x59c63f(this,_0x41d1ba);}['destroy'](){return this[_0x1392('0xc')](),this['ui'][_0x1392('0x6')](),super[_0x1392('0x6')]();}static async[_0x1392('0xe')](_0xc9ce73,_0x1a69fd){const _0x23b01f=new this(_0xc9ce73,_0x1a69fd);return await _0x23b01f[_0x1392('0x2')](),await _0x23b01f['ui'][_0x1392('0x7')](_0xc9ce73),await _0x23b01f[_0x1392('0x0')]['init'](_0x23b01f[_0x1392('0x9')][_0x1392('0x3')](_0x1392('0xa'))||''),_0x23b01f['fire'](_0x1392('0x4')),_0x23b01f;}}
@@ -1,28 +1,28 @@
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
- /**
6
- * @module revision-history/editor/revisionviewereditorui
7
- */
8
- import type { Editor } from 'ckeditor5/src/core';
9
- import { EditorUI } from 'ckeditor5/src/ui';
10
- import type RevisionViewerEditorUIView from './revisionviewereditoruiview';
11
- export default class RevisionViewerEditorUI extends EditorUI {
12
- get view(): RevisionViewerEditorUIView;
13
- constructor(editor: Editor, view: RevisionViewerEditorUIView);
14
- /**
15
- * @inheritDoc
16
- */
17
- get element(): HTMLElement | null;
18
- /**
19
- * Initializes the UI.
20
- *
21
- * @param replacementElement The DOM element that will be the source for the created editor.
22
- */
23
- init(replacementElement: HTMLElement): void;
24
- /**
25
- * @inheritDoc
26
- */
27
- destroy(): void;
28
- }
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
+ /**
6
+ * @module revision-history/editor/revisionviewereditorui
7
+ */
8
+ import type { Editor } from 'ckeditor5/src/core';
9
+ import { EditorUI } from 'ckeditor5/src/ui';
10
+ import type RevisionViewerEditorUIView from './revisionviewereditoruiview';
11
+ export default class RevisionViewerEditorUI extends EditorUI {
12
+ get view(): RevisionViewerEditorUIView;
13
+ constructor(editor: Editor, view: RevisionViewerEditorUIView);
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ get element(): HTMLElement | null;
18
+ /**
19
+ * Initializes the UI.
20
+ *
21
+ * @param replacementElement The DOM element that will be the source for the created editor.
22
+ */
23
+ init(replacementElement: HTMLElement): void;
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ destroy(): void;
28
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e81=['rootName','editor','fillFromConfig','limiterElement','_initToolbar','setEditableElement','restore','ready','editable','viewportOffset','name','get','focusTracker','config','detachDomRoot','editing','init','view','getRoot','componentFactory','viewportTopOffset','addToolbar','_view','bind','stickyPanel','_elementReplacer','_toolbarConfig','destroy','document','element','toolbar'];(function(_0x17400f,_0x2e81bf){const _0x33341c=function(_0x31faf8){while(--_0x31faf8){_0x17400f['push'](_0x17400f['shift']());}};_0x33341c(++_0x2e81bf);}(_0x2e81,0xc5));const _0x3334=function(_0x17400f,_0x2e81bf){_0x17400f=_0x17400f-0x0;let _0x33341c=_0x2e81[_0x17400f];return _0x33341c;};import{EditorUI as _0x57a418,normalizeToolbarConfig as _0x55dbe1}from'ckeditor5/src/ui';import{ElementReplacer as _0x2cc353}from'ckeditor5/src/utils';export default class rt extends _0x57a418{get[_0x3334('0x6')](){return this[_0x3334('0xb')];}constructor(_0x9aa1f8,_0x3c2532){super(_0x9aa1f8),this[_0x3334('0xb')]=_0x3c2532,this[_0x3334('0xf')]=_0x55dbe1(_0x9aa1f8[_0x3334('0x2')][_0x3334('0x0')](_0x3334('0x13'))),this[_0x3334('0xe')]=new _0x2cc353();}get[_0x3334('0x12')](){return this[_0x3334('0x6')][_0x3334('0x12')];}[_0x3334('0x5')](_0x4476c8){const _0x3f343b=this[_0x3334('0x15')],_0xdc377e=this[_0x3334('0x6')],_0x5070d6=_0x3f343b[_0x3334('0x4')][_0x3334('0x6')],_0x3815c0=_0xdc377e[_0x3334('0x1c')],_0xefde64=_0x5070d6[_0x3334('0x11')][_0x3334('0x7')]();_0x3815c0[_0x3334('0x1e')]=_0xefde64[_0x3334('0x14')],_0xdc377e['render']();const _0x41cdfd=_0x3815c0[_0x3334('0x12')];this[_0x3334('0x19')](_0x3815c0['name'],_0x41cdfd),_0xdc377e[_0x3334('0x1c')][_0x3334('0xc')]('isFocused')['to'](this['focusTracker']),_0x5070d6['attachDomRoot'](_0x41cdfd),this[_0x3334('0xe')]['replace'](_0x4476c8,this[_0x3334('0x12')]),this[_0x3334('0x18')](),this['fire'](_0x3334('0x1b'));}[_0x3334('0x10')](){super[_0x3334('0x10')]();const _0x518ab0=this[_0x3334('0x6')],_0x131b9d=this[_0x3334('0x15')][_0x3334('0x4')]['view'];this[_0x3334('0xe')][_0x3334('0x1a')](),_0x131b9d[_0x3334('0x3')](_0x518ab0['editable'][_0x3334('0x1e')]),_0x518ab0[_0x3334('0x10')]();}[_0x3334('0x18')](){const _0x5b8792=this[_0x3334('0x6')];_0x5b8792[_0x3334('0xd')][_0x3334('0xc')]('isActive')['to'](this[_0x3334('0x1')],'isFocused'),_0x5b8792['stickyPanel'][_0x3334('0x17')]=_0x5b8792['element'],_0x5b8792[_0x3334('0xd')][_0x3334('0xc')](_0x3334('0x9'))['to'](this,_0x3334('0x1d'),({top:_0x5a3fd9})=>_0x5a3fd9),_0x5b8792['toolbar'][_0x3334('0x16')](this['_toolbarConfig'],this[_0x3334('0x8')]),this[_0x3334('0xa')](_0x5b8792[_0x3334('0x13')]);}}
23
+ const _0x3a36=['get','name','fillFromConfig','restore','rootName','editable','_initToolbar','detachDomRoot','viewportTopOffset','editing','attachDomRoot','render','stickyPanel','limiterElement','addToolbar','bind','view','element','getRoot','isActive','destroy','replace','focusTracker','_toolbarConfig','editor','config','fire','componentFactory','init','ready','toolbar','isFocused','_view','_elementReplacer'];(function(_0x45a06e,_0x3a36ce){const _0x252513=function(_0xd8e65){while(--_0xd8e65){_0x45a06e['push'](_0x45a06e['shift']());}};_0x252513(++_0x3a36ce);}(_0x3a36,0x188));const _0x2525=function(_0x45a06e,_0x3a36ce){_0x45a06e=_0x45a06e-0x0;let _0x252513=_0x3a36[_0x45a06e];return _0x252513;};import{EditorUI as _0x5aaeb8,normalizeToolbarConfig as _0x32b184}from'ckeditor5/src/ui';import{ElementReplacer as _0x3887fe}from'ckeditor5/src/utils';export default class et extends _0x5aaeb8{get[_0x2525('0x20')](){return this[_0x2525('0xe')];}constructor(_0xef123e,_0xa214a2){super(_0xef123e),this['_view']=_0xa214a2,this[_0x2525('0x5')]=_0x32b184(_0xef123e[_0x2525('0x7')][_0x2525('0x10')](_0x2525('0xc'))),this[_0x2525('0xf')]=new _0x3887fe();}get[_0x2525('0x21')](){return this[_0x2525('0x20')][_0x2525('0x21')];}[_0x2525('0xa')](_0x316b12){const _0x5accba=this[_0x2525('0x6')],_0x2d005f=this[_0x2525('0x20')],_0xd65f22=_0x5accba['editing'][_0x2525('0x20')],_0x3c08b3=_0x2d005f['editable'],_0x4adca1=_0xd65f22['document'][_0x2525('0x0')]();_0x3c08b3[_0x2525('0x11')]=_0x4adca1[_0x2525('0x14')],_0x2d005f[_0x2525('0x1b')]();const _0x3325e6=_0x3c08b3[_0x2525('0x21')];this['setEditableElement'](_0x3c08b3[_0x2525('0x11')],_0x3325e6),_0x2d005f[_0x2525('0x15')][_0x2525('0x1f')](_0x2525('0xd'))['to'](this[_0x2525('0x4')]),_0xd65f22[_0x2525('0x1a')](_0x3325e6),this[_0x2525('0xf')][_0x2525('0x3')](_0x316b12,this[_0x2525('0x21')]),this[_0x2525('0x16')](),this[_0x2525('0x8')](_0x2525('0xb'));}[_0x2525('0x2')](){super['destroy']();const _0x510dba=this[_0x2525('0x20')],_0x4c0c17=this[_0x2525('0x6')][_0x2525('0x19')][_0x2525('0x20')];this[_0x2525('0xf')][_0x2525('0x13')](),_0x4c0c17[_0x2525('0x17')](_0x510dba[_0x2525('0x15')]['name']),_0x510dba[_0x2525('0x2')]();}[_0x2525('0x16')](){const _0x473122=this[_0x2525('0x20')];_0x473122[_0x2525('0x1c')][_0x2525('0x1f')](_0x2525('0x1'))['to'](this[_0x2525('0x4')],_0x2525('0xd')),_0x473122[_0x2525('0x1c')][_0x2525('0x1d')]=_0x473122[_0x2525('0x21')],_0x473122[_0x2525('0x1c')]['bind'](_0x2525('0x18'))['to'](this,'viewportOffset',({top:_0x260fb0})=>_0x260fb0),_0x473122['toolbar'][_0x2525('0x12')](this[_0x2525('0x5')],this[_0x2525('0x9')]),this[_0x2525('0x1e')](_0x473122[_0x2525('0xc')]);}}
@@ -1,43 +1,43 @@
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
- /**
6
- * @module revision-history/editor/revisionviewereditoruiview
7
- */
8
- import { BoxedEditorUIView, InlineEditableUIView, StickyPanelView, ToolbarView } from 'ckeditor5/src/ui';
9
- import type { View } from 'ckeditor5/src/engine';
10
- import type { Locale } from 'ckeditor5/src/utils';
11
- import '@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';
12
- export default class RevisionViewerEditorUIView extends BoxedEditorUIView {
13
- /**
14
- * Sticky panel view instance. This is a parent view of a {@link #toolbar}
15
- * that makes toolbar sticky.
16
- */
17
- readonly stickyPanel: StickyPanelView;
18
- /**
19
- * Toolbar view instance.
20
- */
21
- readonly toolbar: ToolbarView;
22
- get editable(): InlineEditableUIView;
23
- /**
24
- * Creates an instance of the classic editor UI view.
25
- *
26
- * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
27
- * @param editingView The editing view instance this view is related to.
28
- * @param options Configuration options for the view instance.
29
- */
30
- constructor(locale: Locale, editingView: View, options?: RevisionViewerEditorUIViewOptions);
31
- /**
32
- * @inheritDoc
33
- */
34
- render(): void;
35
- }
36
- export interface RevisionViewerEditorUIViewOptions {
37
- /**
38
- * When set `true` enables automatic items grouping
39
- * in the main {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#toolbar toolbar}.
40
- * See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.
41
- */
42
- shouldToolbarGroupWhenFull?: boolean;
43
- }
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
+ /**
6
+ * @module revision-history/editor/revisionviewereditoruiview
7
+ */
8
+ import { BoxedEditorUIView, InlineEditableUIView, StickyPanelView, ToolbarView } from 'ckeditor5/src/ui';
9
+ import type { View } from 'ckeditor5/src/engine';
10
+ import type { Locale } from 'ckeditor5/src/utils';
11
+ import '@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';
12
+ export default class RevisionViewerEditorUIView extends BoxedEditorUIView {
13
+ /**
14
+ * Sticky panel view instance. This is a parent view of a {@link #toolbar}
15
+ * that makes toolbar sticky.
16
+ */
17
+ readonly stickyPanel: StickyPanelView;
18
+ /**
19
+ * Toolbar view instance.
20
+ */
21
+ readonly toolbar: ToolbarView;
22
+ get editable(): InlineEditableUIView;
23
+ /**
24
+ * Creates an instance of the classic editor UI view.
25
+ *
26
+ * @param locale The {@link module:core/editor/editor~Editor#locale} instance.
27
+ * @param editingView The editing view instance this view is related to.
28
+ * @param options Configuration options for the view instance.
29
+ */
30
+ constructor(locale: Locale, editingView: View, options?: RevisionViewerEditorUIViewOptions);
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ render(): void;
35
+ }
36
+ export interface RevisionViewerEditorUIViewOptions {
37
+ /**
38
+ * When set `true` enables automatic items grouping
39
+ * in the main {@link module:editor-classic/classiceditoruiview~ClassicEditorUIView#toolbar toolbar}.
40
+ * See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more.
41
+ */
42
+ shouldToolbarGroupWhenFull?: boolean;
43
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x164a=['top','editable','toolbar','content','main','render','_editable','add','stickyPanel','shouldToolbarGroupWhenFull'];(function(_0x40a381,_0x164a10){var _0x3cdbec=function(_0x834440){while(--_0x834440){_0x40a381['push'](_0x40a381['shift']());}};_0x3cdbec(++_0x164a10);}(_0x164a,0x173));var _0x3cdb=function(_0x40a381,_0x164a10){_0x40a381=_0x40a381-0x0;var _0x3cdbec=_0x164a[_0x40a381];return _0x3cdbec;};import{BoxedEditorUIView as _0x4fb7f5,InlineEditableUIView as _0x30fea7,StickyPanelView as _0x3495c0,ToolbarView as _0x129738}from'ckeditor5/src/ui';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class et extends _0x4fb7f5{get[_0x3cdb('0x0')](){return this[_0x3cdb('0x5')];}constructor(_0x33752d,_0x397353,_0x442969={}){super(_0x33752d),this['stickyPanel']=new _0x3495c0(_0x33752d),this[_0x3cdb('0x1')]=new _0x129738(_0x33752d,{'shouldGroupWhenFull':_0x442969[_0x3cdb('0x8')]}),this[_0x3cdb('0x5')]=new _0x30fea7(_0x33752d,_0x397353);}['render'](){super[_0x3cdb('0x4')](),this[_0x3cdb('0x7')][_0x3cdb('0x2')][_0x3cdb('0x6')](this['toolbar']),this[_0x3cdb('0x9')][_0x3cdb('0x6')](this[_0x3cdb('0x7')]),this[_0x3cdb('0x3')]['add'](this['editable']);}}
23
+ var _0x3079=['render','main','stickyPanel','editable','toolbar','shouldToolbarGroupWhenFull','_editable','top','add'];(function(_0x4d5f35,_0x30790c){var _0xc79d54=function(_0x2f863d){while(--_0x2f863d){_0x4d5f35['push'](_0x4d5f35['shift']());}};_0xc79d54(++_0x30790c);}(_0x3079,0x1a9));var _0xc79d=function(_0x4d5f35,_0x30790c){_0x4d5f35=_0x4d5f35-0x0;var _0xc79d54=_0x3079[_0x4d5f35];return _0xc79d54;};import{BoxedEditorUIView as _0x5e99ff,InlineEditableUIView as _0x5c42bb,StickyPanelView as _0x1879e7,ToolbarView as _0x3cd662}from'ckeditor5/src/ui';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class st extends _0x5e99ff{get['editable'](){return this[_0xc79d('0x4')];}constructor(_0x38db6a,_0x56cf6a,_0x465233={}){super(_0x38db6a),this[_0xc79d('0x0')]=new _0x1879e7(_0x38db6a),this[_0xc79d('0x2')]=new _0x3cd662(_0x38db6a,{'shouldGroupWhenFull':_0x465233[_0xc79d('0x3')]}),this['_editable']=new _0x5c42bb(_0x38db6a,_0x56cf6a);}[_0xc79d('0x7')](){super['render'](),this[_0xc79d('0x0')]['content'][_0xc79d('0x6')](this['toolbar']),this[_0xc79d('0x5')][_0xc79d('0x6')](this[_0xc79d('0x0')]),this[_0xc79d('0x8')]['add'](this[_0xc79d('0x1')]);}}
package/src/index.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- export { default as RevisionHistory } from './revisionhistory';
2
- export { default as RevisionsRepository } from './revisionsrepository';
3
- export { default as RevisionViewerLoadingOverlay } from './ui/revisionviewer/revisionviewerloadingoverlay';
4
- export { default as RevisionHistoryUI } from './ui/revisionhistory/revisionhistoryui';
5
- export { default as RevisionTracker } from './revisiontracker';
6
- export { default as RevisionViewer, type RestoreRevisionCommand, type ShowChangeCommand } from './revisionviewer';
7
- export { default as RevisionsSidebar } from './ui/revisionssidebar/revisionssidebar';
8
- export { default as RevisionViewerUI } from './ui/revisionviewer/revisionviewerui';
9
- export type { RevisionHistoryConfig } from './revisionhistoryconfig';
10
- import './augmentation';
1
+ export { default as RevisionHistory } from './revisionhistory';
2
+ export { default as RevisionsRepository } from './revisionsrepository';
3
+ export { default as RevisionViewerLoadingOverlay } from './ui/revisionviewer/revisionviewerloadingoverlay';
4
+ export { default as RevisionHistoryUI } from './ui/revisionhistory/revisionhistoryui';
5
+ export { default as RevisionTracker } from './revisiontracker';
6
+ export { default as RevisionViewer, type RestoreRevisionCommand, type ShowChangeCommand } from './revisionviewer';
7
+ export { default as RevisionsSidebar } from './ui/revisionssidebar/revisionssidebar';
8
+ export { default as RevisionViewerUI } from './ui/revisionviewer/revisionviewerui';
9
+ export type { RevisionData } from './revision';
10
+ export type { RevisionHistoryConfig } from './revisionhistoryconfig';
11
+ import './augmentation';