@ckeditor/ckeditor5-revision-history 38.1.0 → 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 +6 -6
  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 -11
  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 -95
  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 -48
  22. package/src/revisionsrepository.js +1 -1
  23. package/src/revisiontracker.d.ts +77 -77
  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 -22
  44. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  45. package/src/ui/revisionssidebar/revisionssidebar.d.ts +40 -40
  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 -24
  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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-revision-history",
3
- "version": "38.1.0",
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/)",
@@ -37,11 +37,11 @@
37
37
  "CHANGELOG.md"
38
38
  ],
39
39
  "dependencies": {
40
- "@ckeditor/ckeditor5-editor-classic": "38.1.0",
41
- "@ckeditor/ckeditor5-ui": "38.1.0",
42
- "@ckeditor/ckeditor5-undo": "38.1.0",
43
- "ckeditor5": "38.1.0",
44
- "ckeditor5-collaboration": "38.1.0",
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",
45
45
  "lodash-es": "^4.17.15",
46
46
  "luxon": "^1.25.0"
47
47
  },
@@ -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 _0x12a8=['type','rootName','author','toJSON','data','createdAt'];(function(_0x189bdf,_0x12a87d){var _0x108a5e=function(_0x4f4467){while(--_0x4f4467){_0x189bdf['push'](_0x189bdf['shift']());}};_0x108a5e(++_0x12a87d);}(_0x12a8,0xcb));var _0x108a=function(_0x189bdf,_0x12a87d){_0x189bdf=_0x189bdf-0x0;var _0x108a5e=_0x12a8[_0x189bdf];return _0x108a5e;};import{ObservableMixin as _0x4049c3,uid as _0x5cfbc4}from'ckeditor5/src/utils';export default class r extends _0x4049c3(){constructor(_0x3c538d){super(),this['id']=_0x3c538d['id']||_0x5cfbc4(),this[_0x108a('0x3')]=_0x3c538d[_0x108a('0x3')],this[_0x108a('0x1')]=_0x3c538d[_0x108a('0x1')],this['data']=_0x3c538d['data']||{},this[_0x108a('0x2')]=_0x3c538d['rootName'],this['set']('createdAt',_0x3c538d[_0x108a('0x0')]);}[_0x108a('0x4')](){return{'id':this['id'],'authorId':this[_0x108a('0x3')]['id'],'type':this[_0x108a('0x1')],'data':this[_0x108a('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 _0x14a1=['init','create','document','get','data','_ui','createRoot','fire','model','sourceElement','editing','view','config','initPlugins','destroy','initialData','locale','updateSourceElement'];(function(_0x1d9c1c,_0x14a198){const _0x4aafdc=function(_0x526456){while(--_0x526456){_0x1d9c1c['push'](_0x1d9c1c['shift']());}};_0x4aafdc(++_0x14a198);}(_0x14a1,0xe0));const _0x4aaf=function(_0x1d9c1c,_0x14a198){_0x1d9c1c=_0x1d9c1c-0x0;let _0x4aafdc=_0x14a1[_0x1d9c1c];return _0x4aafdc;};import{Editor as _0xede6e5,DataApiMixin as _0x25d427,ElementApiMixin as _0x5bc850}from'ckeditor5/src/core';import _0x3a7264 from'./revisionviewereditorui';import _0x4d1e52 from'./revisionviewereditoruiview';export default class y extends _0x25d427(_0x5bc850(_0xede6e5)){get['ui'](){return this[_0x4aaf('0xf')];}constructor(_0x4bff68,_0x185523){super(_0x185523),this[_0x4aaf('0x1')]=_0x4bff68,this[_0x4aaf('0x0')][_0x4aaf('0xc')][_0x4aaf('0x10')]();const _0x460bc3=new _0x4d1e52(this[_0x4aaf('0x8')],this[_0x4aaf('0x2')][_0x4aaf('0x3')],{'shouldToolbarGroupWhenFull':!0x0});this[_0x4aaf('0xf')]=new _0x3a7264(this,_0x460bc3);}[_0x4aaf('0x6')](){return this[_0x4aaf('0x9')](),this['ui'][_0x4aaf('0x6')](),super['destroy']();}static async[_0x4aaf('0xb')](_0x34f407,_0x354b93){const _0x254f5d=new this(_0x34f407,_0x354b93);return await _0x254f5d[_0x4aaf('0x5')](),await _0x254f5d['ui']['init'](_0x34f407),await _0x254f5d[_0x4aaf('0xe')][_0x4aaf('0xa')](_0x254f5d[_0x4aaf('0x4')][_0x4aaf('0xd')](_0x4aaf('0x7'))||''),_0x254f5d[_0x4aaf('0x11')]('ready'),_0x254f5d;}}
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 _0x1c1a=['toolbar','attachDomRoot','destroy','editable','componentFactory','rootName','config','_elementReplacer','bind','fillFromConfig','focusTracker','_initToolbar','element','name','viewportTopOffset','init','_view','render','setEditableElement','fire','isActive','editing','_toolbarConfig','detachDomRoot','limiterElement','stickyPanel','view','editor','isFocused','document','ready'];(function(_0x97222,_0x1c1a5e){const _0x2f9fbb=function(_0x484be9){while(--_0x484be9){_0x97222['push'](_0x97222['shift']());}};_0x2f9fbb(++_0x1c1a5e);}(_0x1c1a,0x66));const _0x2f9f=function(_0x97222,_0x1c1a5e){_0x97222=_0x97222-0x0;let _0x2f9fbb=_0x1c1a[_0x97222];return _0x2f9fbb;};import{EditorUI as _0x38fff8,normalizeToolbarConfig as _0x174f6c}from'ckeditor5/src/ui';import{ElementReplacer as _0x2631c0}from'ckeditor5/src/utils';export default class et extends _0x38fff8{get[_0x2f9f('0x11')](){return this[_0x2f9f('0x7')];}constructor(_0x33c19d,_0x122115){super(_0x33c19d),this[_0x2f9f('0x7')]=_0x122115,this['_toolbarConfig']=_0x174f6c(_0x33c19d[_0x2f9f('0x1c')]['get'](_0x2f9f('0x16'))),this[_0x2f9f('0x1d')]=new _0x2631c0();}get[_0x2f9f('0x3')](){return this['view'][_0x2f9f('0x3')];}[_0x2f9f('0x6')](_0x284092){const _0x527e48=this[_0x2f9f('0x12')],_0x1fe0af=this['view'],_0x165ff0=_0x527e48['editing'][_0x2f9f('0x11')],_0x6b61c4=_0x1fe0af[_0x2f9f('0x19')],_0x19d6e4=_0x165ff0[_0x2f9f('0x14')]['getRoot']();_0x6b61c4['name']=_0x19d6e4[_0x2f9f('0x1b')],_0x1fe0af[_0x2f9f('0x8')]();const _0x16e7b7=_0x6b61c4['element'];this[_0x2f9f('0x9')](_0x6b61c4[_0x2f9f('0x4')],_0x16e7b7),_0x1fe0af[_0x2f9f('0x19')]['bind'](_0x2f9f('0x13'))['to'](this[_0x2f9f('0x1')]),_0x165ff0[_0x2f9f('0x17')](_0x16e7b7),this[_0x2f9f('0x1d')]['replace'](_0x284092,this[_0x2f9f('0x3')]),this[_0x2f9f('0x2')](),this[_0x2f9f('0xa')](_0x2f9f('0x15'));}['destroy'](){super[_0x2f9f('0x18')]();const _0x339083=this[_0x2f9f('0x11')],_0x5093b0=this[_0x2f9f('0x12')][_0x2f9f('0xc')][_0x2f9f('0x11')];this['_elementReplacer']['restore'](),_0x5093b0[_0x2f9f('0xe')](_0x339083['editable'][_0x2f9f('0x4')]),_0x339083['destroy']();}[_0x2f9f('0x2')](){const _0x160475=this['view'];_0x160475['stickyPanel'][_0x2f9f('0x1e')](_0x2f9f('0xb'))['to'](this[_0x2f9f('0x1')],'isFocused'),_0x160475[_0x2f9f('0x10')][_0x2f9f('0xf')]=_0x160475[_0x2f9f('0x3')],_0x160475[_0x2f9f('0x10')]['bind'](_0x2f9f('0x5'))['to'](this,'viewportOffset',({top:_0x274d44})=>_0x274d44),_0x160475[_0x2f9f('0x16')][_0x2f9f('0x0')](this[_0x2f9f('0xd')],this[_0x2f9f('0x1a')]),this['addToolbar'](_0x160475['toolbar']);}}
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 _0x3914=['editable','top','shouldToolbarGroupWhenFull','render','content','_editable','toolbar','main','stickyPanel','add'];(function(_0x34dfb0,_0x3914d3){var _0x470482=function(_0xe91fb3){while(--_0xe91fb3){_0x34dfb0['push'](_0x34dfb0['shift']());}};_0x470482(++_0x3914d3);}(_0x3914,0x142));var _0x4704=function(_0x34dfb0,_0x3914d3){_0x34dfb0=_0x34dfb0-0x0;var _0x470482=_0x3914[_0x34dfb0];return _0x470482;};import{BoxedEditorUIView as _0x351a60,InlineEditableUIView as _0x52b735,StickyPanelView as _0x5a25c7,ToolbarView as _0x436aa9}from'ckeditor5/src/ui';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class st extends _0x351a60{get[_0x4704('0x8')](){return this[_0x4704('0x3')];}constructor(_0x3c3db2,_0xf0f24f,_0x57b30e={}){super(_0x3c3db2),this[_0x4704('0x6')]=new _0x5a25c7(_0x3c3db2),this['toolbar']=new _0x436aa9(_0x3c3db2,{'shouldGroupWhenFull':_0x57b30e[_0x4704('0x0')]}),this[_0x4704('0x3')]=new _0x52b735(_0x3c3db2,_0xf0f24f);}[_0x4704('0x1')](){super['render'](),this['stickyPanel'][_0x4704('0x2')][_0x4704('0x7')](this[_0x4704('0x4')]),this[_0x4704('0x9')]['add'](this['stickyPanel']),this[_0x4704('0x5')]['add'](this[_0x4704('0x8')]);}}
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,11 +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 { RevisionData } from './revision';
10
- export type { RevisionHistoryConfig } from './revisionhistoryconfig';
11
- 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';