@ckeditor/ckeditor5-revision-history 31.0.0 → 31.1.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.
Files changed (30) hide show
  1. package/lang/translations/da.po +1 -1
  2. package/lang/translations/es.po +7 -7
  3. package/lang/translations/id.po +13 -13
  4. package/lang/translations/pt-br.po +24 -24
  5. package/package.json +11 -11
  6. package/src/changeitem.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
@@ -108,7 +108,7 @@ msgstr ""
108
108
 
109
109
  msgctxt "(Edit): 2 of 5"
110
110
  msgid "EDIT_X_OF_Y_REVISIONS"
111
- msgstr ""
111
+ msgstr "Rediger"
112
112
 
113
113
  msgctxt "The label for a button that closes revision viewer and shows editor"
114
114
  msgid "Back to editing"
@@ -26,7 +26,7 @@ msgstr ""
26
26
 
27
27
  msgctxt "The name for an initial revision (if it was not empty)"
28
28
  msgid "Initial revision"
29
- msgstr ""
29
+ msgstr "Revisión inicial"
30
30
 
31
31
  msgctxt "The label for a dropdown item to compare given revision with already selected revision"
32
32
  msgid "Compare against selected"
@@ -66,15 +66,15 @@ msgstr ""
66
66
 
67
67
  msgctxt "The label for a change tooltip for a suggestion change, shown in revision viewer"
68
68
  msgid "Suggested by"
69
- msgstr ""
69
+ msgstr "Sugerido por"
70
70
 
71
71
  msgctxt "The label for a change tooltip for an insertion change, shown in revision viewer"
72
72
  msgid "Added by"
73
- msgstr ""
73
+ msgstr "Añadido por"
74
74
 
75
75
  msgctxt "The label for a change tooltip for a remove change, shown in revision viewer"
76
76
  msgid "Removed by"
77
- msgstr ""
77
+ msgstr "Eliminado por"
78
78
 
79
79
  msgctxt "Displayed in the revision viewer toolbar when loading a revision"
80
80
  msgid "Loading..."
@@ -96,11 +96,11 @@ msgstr "%0 de %1"
96
96
 
97
97
  msgctxt "The label for a button that highlights previous change in revision viewer"
98
98
  msgid "Show previous change"
99
- msgstr ""
99
+ msgstr "Ver cambio anterior"
100
100
 
101
101
  msgctxt "The label for a button that highlights next change in revision viewer"
102
102
  msgid "Show next change"
103
- msgstr ""
103
+ msgstr "Ver siguiente cambio"
104
104
 
105
105
  msgctxt "(Total): 5 changes"
106
106
  msgid "Total"
@@ -116,4 +116,4 @@ msgstr "Volver a la edición"
116
116
 
117
117
  msgctxt "The label for a button that restores given revision"
118
118
  msgid "Restore this revision"
119
- msgstr ""
119
+ msgstr "Restaurar esta revisión"
@@ -22,11 +22,11 @@ msgstr ""
22
22
 
23
23
  msgctxt "The name for an initial revision that is empty"
24
24
  msgid "Empty document"
25
- msgstr ""
25
+ msgstr "Dokumen kosong"
26
26
 
27
27
  msgctxt "The name for an initial revision (if it was not empty)"
28
28
  msgid "Initial revision"
29
- msgstr ""
29
+ msgstr "Revisi awal"
30
30
 
31
31
  msgctxt "The label for a dropdown item to compare given revision with already selected revision"
32
32
  msgid "Compare against selected"
@@ -34,7 +34,7 @@ msgstr ""
34
34
 
35
35
  msgctxt "The label for a dropdown item to rename given revision"
36
36
  msgid "Name this revision"
37
- msgstr ""
37
+ msgstr "Beri nama untuk revisi ini"
38
38
 
39
39
  msgctxt "The label for the user who saved the revision"
40
40
  msgid "Revision creator"
@@ -46,11 +46,11 @@ msgstr ""
46
46
 
47
47
  msgctxt "The label for the revision name"
48
48
  msgid "Revision name"
49
- msgstr ""
49
+ msgstr "Nama revisi"
50
50
 
51
51
  msgctxt "The label for a toolbar form field where a name for a new revision should be provided"
52
52
  msgid "Name of the revision (optional)"
53
- msgstr ""
53
+ msgstr "Nama dari revisi (opsional)"
54
54
 
55
55
  msgctxt "The label for a dropdown item that saves current revision"
56
56
  msgid "Save current revision"
@@ -66,28 +66,28 @@ msgstr ""
66
66
 
67
67
  msgctxt "The label for a change tooltip for a suggestion change, shown in revision viewer"
68
68
  msgid "Suggested by"
69
- msgstr ""
69
+ msgstr "Disarankan oleh"
70
70
 
71
71
  msgctxt "The label for a change tooltip for an insertion change, shown in revision viewer"
72
72
  msgid "Added by"
73
- msgstr ""
73
+ msgstr "Ditambahkan oleh"
74
74
 
75
75
  msgctxt "The label for a change tooltip for a remove change, shown in revision viewer"
76
76
  msgid "Removed by"
77
- msgstr ""
77
+ msgstr "Dihapus oleh"
78
78
 
79
79
  msgctxt "Displayed in the revision viewer toolbar when loading a revision"
80
80
  msgid "Loading..."
81
- msgstr ""
81
+ msgstr "Memuat..."
82
82
 
83
83
  msgctxt "Displayed in the revision viewer toolbar when the compared revisions have no changes"
84
84
  msgid "No changes"
85
- msgstr ""
85
+ msgstr "Tidak ada perubahan"
86
86
 
87
87
  msgctxt "Displayed in the revision viewer toolbar when the compared revisions have changes"
88
88
  msgid "NUMBER_OF_CHANGES"
89
89
  msgid_plural "%0 changes"
90
- msgstr[0] ""
90
+ msgstr[0] "%0 perubahan"
91
91
 
92
92
  msgctxt "Edit: (2 of 5)"
93
93
  msgid "X_OF_Y_CHANGES"
@@ -103,11 +103,11 @@ msgstr ""
103
103
 
104
104
  msgctxt "(Total): 5 changes"
105
105
  msgid "Total"
106
- msgstr ""
106
+ msgstr "Total"
107
107
 
108
108
  msgctxt "(Edit): 2 of 5"
109
109
  msgid "EDIT_X_OF_Y_REVISIONS"
110
- msgstr ""
110
+ msgstr "Ubah"
111
111
 
112
112
  msgctxt "The label for a button that closes revision viewer and shows editor"
113
113
  msgid "Back to editing"
@@ -18,77 +18,77 @@ msgstr ""
18
18
 
19
19
  msgctxt "The prefix for a name of a revision created by restoring other revision"
20
20
  msgid "Restored"
21
- msgstr ""
21
+ msgstr "Restaurado"
22
22
 
23
23
  msgctxt "The name for an initial revision that is empty"
24
24
  msgid "Empty document"
25
- msgstr ""
25
+ msgstr "Documento vazio"
26
26
 
27
27
  msgctxt "The name for an initial revision (if it was not empty)"
28
28
  msgid "Initial revision"
29
- msgstr ""
29
+ msgstr "Revisão inicial"
30
30
 
31
31
  msgctxt "The label for a dropdown item to compare given revision with already selected revision"
32
32
  msgid "Compare against selected"
33
- msgstr ""
33
+ msgstr "Comparar com o selecionado"
34
34
 
35
35
  msgctxt "The label for a dropdown item to rename given revision"
36
36
  msgid "Name this revision"
37
- msgstr ""
37
+ msgstr "Nomear esta revisão"
38
38
 
39
39
  msgctxt "The label for the user who saved the revision"
40
40
  msgid "Revision creator"
41
- msgstr ""
41
+ msgstr "Criador da revisão"
42
42
 
43
43
  msgctxt "The label for users who introduced changes in the revision"
44
44
  msgid "Revision author"
45
- msgstr ""
45
+ msgstr "Autor da revisão"
46
46
 
47
47
  msgctxt "The label for the revision name"
48
48
  msgid "Revision name"
49
- msgstr ""
49
+ msgstr "Nome da revisão"
50
50
 
51
51
  msgctxt "The label for a toolbar form field where a name for a new revision should be provided"
52
52
  msgid "Name of the revision (optional)"
53
- msgstr ""
53
+ msgstr "Nome da revisão (opcional)"
54
54
 
55
55
  msgctxt "The label for a dropdown item that saves current revision"
56
56
  msgid "Save current revision"
57
- msgstr ""
57
+ msgstr "Salvar revisão atual"
58
58
 
59
59
  msgctxt "The label for a dropdown item to open the revision history view (revision viewer)"
60
60
  msgid "Open revision history"
61
- msgstr ""
61
+ msgstr "Abrir histórico de revisões"
62
62
 
63
63
  msgctxt "The label for the sidebar in revision viewer"
64
64
  msgid "Revision history"
65
- msgstr ""
65
+ msgstr "Histórico de revisões"
66
66
 
67
67
  msgctxt "The label for a change tooltip for a suggestion change, shown in revision viewer"
68
68
  msgid "Suggested by"
69
- msgstr ""
69
+ msgstr "Sugerido por"
70
70
 
71
71
  msgctxt "The label for a change tooltip for an insertion change, shown in revision viewer"
72
72
  msgid "Added by"
73
- msgstr ""
73
+ msgstr "Adicionado por"
74
74
 
75
75
  msgctxt "The label for a change tooltip for a remove change, shown in revision viewer"
76
76
  msgid "Removed by"
77
- msgstr ""
77
+ msgstr "Removido por"
78
78
 
79
79
  msgctxt "Displayed in the revision viewer toolbar when loading a revision"
80
80
  msgid "Loading..."
81
- msgstr ""
81
+ msgstr "Carregando..."
82
82
 
83
83
  msgctxt "Displayed in the revision viewer toolbar when the compared revisions have no changes"
84
84
  msgid "No changes"
85
- msgstr ""
85
+ msgstr "Sem alterações"
86
86
 
87
87
  msgctxt "Displayed in the revision viewer toolbar when the compared revisions have changes"
88
88
  msgid "NUMBER_OF_CHANGES"
89
89
  msgid_plural "%0 changes"
90
- msgstr[0] ""
91
- msgstr[1] ""
90
+ msgstr[0] "%0 alteração"
91
+ msgstr[1] "%0 alterações"
92
92
 
93
93
  msgctxt "Edit: (2 of 5)"
94
94
  msgid "X_OF_Y_CHANGES"
@@ -96,15 +96,15 @@ msgstr "%0 de %1"
96
96
 
97
97
  msgctxt "The label for a button that highlights previous change in revision viewer"
98
98
  msgid "Show previous change"
99
- msgstr ""
99
+ msgstr "Mostrar alteração anterior"
100
100
 
101
101
  msgctxt "The label for a button that highlights next change in revision viewer"
102
102
  msgid "Show next change"
103
- msgstr ""
103
+ msgstr "Mostrar próxima alteração"
104
104
 
105
105
  msgctxt "(Total): 5 changes"
106
106
  msgid "Total"
107
- msgstr ""
107
+ msgstr "Total"
108
108
 
109
109
  msgctxt "(Edit): 2 of 5"
110
110
  msgid "EDIT_X_OF_Y_REVISIONS"
@@ -112,8 +112,8 @@ msgstr "Editar"
112
112
 
113
113
  msgctxt "The label for a button that closes revision viewer and shows editor"
114
114
  msgid "Back to editing"
115
- msgstr ""
115
+ msgstr "Voltar para edição"
116
116
 
117
117
  msgctxt "The label for a button that restores given revision"
118
118
  msgid "Restore this revision"
119
- msgstr ""
119
+ msgstr "Restaurar esta revisão"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-revision-history",
3
- "version": "31.0.0",
3
+ "version": "31.1.0",
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/)",
@@ -24,16 +24,16 @@
24
24
  "versioning"
25
25
  ],
26
26
  "dependencies": {
27
- "@ckeditor/ckeditor5-collaboration-core": "^31.0.0",
28
- "@ckeditor/ckeditor5-comments": "^31.0.0",
29
- "@ckeditor/ckeditor5-track-changes": "^31.0.0",
30
- "@ckeditor/ckeditor5-core": "^31.0.0",
31
- "@ckeditor/ckeditor5-ui": "^31.0.0",
32
- "@ckeditor/ckeditor5-engine": "^31.0.0",
33
- "@ckeditor/ckeditor5-utils": "^31.0.0",
34
- "@ckeditor/ckeditor5-undo": "^31.0.0",
35
- "@ckeditor/ckeditor5-editor-classic": "^31.0.0",
36
- "ckeditor5": "^31.0.0",
27
+ "@ckeditor/ckeditor5-collaboration-core": "^31.1.0",
28
+ "@ckeditor/ckeditor5-comments": "^31.1.0",
29
+ "@ckeditor/ckeditor5-track-changes": "^31.1.0",
30
+ "@ckeditor/ckeditor5-core": "^31.1.0",
31
+ "@ckeditor/ckeditor5-ui": "^31.1.0",
32
+ "@ckeditor/ckeditor5-engine": "^31.1.0",
33
+ "@ckeditor/ckeditor5-utils": "^31.1.0",
34
+ "@ckeditor/ckeditor5-undo": "^31.1.0",
35
+ "@ckeditor/ckeditor5-editor-classic": "^31.1.0",
36
+ "ckeditor5": "^31.1.0",
37
37
  "lodash-es": "^4.17.15",
38
38
  "luxon": "^1.25.0"
39
39
  }
package/src/changeitem.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x10c1=['type','toJSON','author','set','data','createdAt'];(function(_0x5b14c3,_0x10c18a){var _0x5c5e45=function(_0x356121){while(--_0x356121){_0x5b14c3['push'](_0x5b14c3['shift']());}};_0x5c5e45(++_0x10c18a);}(_0x10c1,0x1e2));var _0x5c5e=function(_0x5b14c3,_0x10c18a){_0x5b14c3=_0x5b14c3-0x0;var _0x5c5e45=_0x10c1[_0x5b14c3];return _0x5c5e45;};import{ObservableMixin as _0x2f2e89,mix as _0x26e06e,uid as _0x3e01a7}from'ckeditor5/src/utils';export default class h{constructor(_0x1f1560){this['id']=_0x1f1560['id']||_0x3e01a7(),this[_0x5c5e('0x0')]=_0x1f1560[_0x5c5e('0x0')],this[_0x5c5e('0x4')]=_0x1f1560[_0x5c5e('0x4')],this[_0x5c5e('0x2')]=_0x1f1560['data']||{},this[_0x5c5e('0x1')](_0x5c5e('0x3'),_0x1f1560[_0x5c5e('0x3')]);}[_0x5c5e('0x5')](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this[_0x5c5e('0x3')]};}}_0x26e06e(h,_0x2f2e89);
23
+ var _0xa248=['data','toJSON','type','set','createdAt','author'];(function(_0x366b71,_0xa248b8){var _0x1bf74c=function(_0x638c9a){while(--_0x638c9a){_0x366b71['push'](_0x366b71['shift']());}};_0x1bf74c(++_0xa248b8);}(_0xa248,0x148));var _0x1bf7=function(_0x366b71,_0xa248b8){_0x366b71=_0x366b71-0x0;var _0x1bf74c=_0xa248[_0x366b71];return _0x1bf74c;};import{ObservableMixin as _0x35f45f,mix as _0x2a5150,uid as _0x565a0e}from'ckeditor5/src/utils';export default class h{constructor(_0xf920c4){this['id']=_0xf920c4['id']||_0x565a0e(),this['author']=_0xf920c4[_0x1bf7('0x1')],this[_0x1bf7('0x4')]=_0xf920c4[_0x1bf7('0x4')],this[_0x1bf7('0x2')]=_0xf920c4[_0x1bf7('0x2')]||{},this[_0x1bf7('0x5')](_0x1bf7('0x0'),_0xf920c4[_0x1bf7('0x0')]);}[_0x1bf7('0x3')](){return{'id':this['id'],'authorId':this[_0x1bf7('0x1')]['id'],'type':this[_0x1bf7('0x4')],'data':this[_0x1bf7('0x2')],'createdAt':this[_0x1bf7('0x0')]};}}_0x2a5150(h,_0x35f45f);
package/src/revision.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3ba1=['creator','attributes','removeAttribute','lock','authors','data','isLocked','createdAt','_update','name','fire','set','map','toJSON'];(function(_0x1c5d13,_0x3ba167){const _0xca61db=function(_0xccacff){while(--_0xccacff){_0x1c5d13['push'](_0x1c5d13['shift']());}};_0xca61db(++_0x3ba167);}(_0x3ba1,0xdb));const _0xca61=function(_0x1c5d13,_0x3ba167){_0x1c5d13=_0x1c5d13-0x0;let _0xca61db=_0x3ba1[_0x1c5d13];return _0xca61db;};import{ObservableMixin as _0x40dd24,mix as _0x439c2b,uid as _0x546094}from'ckeditor5/src/utils';import{cloneDeep as _0x24e8f1,set as _0x12c1fb,unset as _0x23e4c2}from'lodash-es';export default class c{constructor(_0x5ed8e7){this['id']=_0x5ed8e7['id']||_0x546094(),this[_0xca61('0x2')](_0xca61('0x0'),_0x5ed8e7[_0xca61('0x0')]||null),this[_0xca61('0x5')]=_0x5ed8e7[_0xca61('0x5')]||null,this[_0xca61('0x9')]=_0x5ed8e7[_0xca61('0x9')]||[],this[_0xca61('0x2')]('createdAt',_0x5ed8e7[_0xca61('0xc')]||new Date()),this[_0xca61('0xa')]=_0x5ed8e7['data']||null,this[_0xca61('0x2')](_0xca61('0x6'),_0x5ed8e7[_0xca61('0x6')]||{}),this['isLocked']=!!_0x5ed8e7[_0xca61('0xb')];}['setName'](_0x1ad8a2){this[_0xca61('0xd')]({'name':_0x1ad8a2,'isLocked':!0x0});}[_0xca61('0x8')](){this['_update']({'isLocked':!0x0});}['setAttribute'](_0x5be619,_0x9ad1b7){const _0x4c191a=_0x24e8f1(this[_0xca61('0x6')]);_0x12c1fb(_0x4c191a,_0x5be619,_0x9ad1b7),this['_update']({'attributes':_0x4c191a});}[_0xca61('0x7')](_0x469f5f){const _0x32d44e=_0x24e8f1(this[_0xca61('0x6')]);_0x23e4c2(_0x32d44e,_0x469f5f),this[_0xca61('0xd')]({'attributes':_0x32d44e});}['_update'](_0x12581a){let _0x10ffee=!0x1;const _0x2ea92d={'id':this['id']};for(const _0x3fbcbe of['name',_0xca61('0xc'),_0xca61('0xa'),'authors',_0xca61('0x6'),_0xca61('0xb')]){const _0x10c3f5=_0x12581a[_0x3fbcbe];_0x10c3f5&&_0x10c3f5!==this[_0x3fbcbe]&&(this[_0x3fbcbe]=_0x10c3f5,_0x2ea92d[_0x3fbcbe]=_0x10c3f5,_0x10ffee=!0x0);}_0x10ffee&&(_0x2ea92d[_0xca61('0x9')]&&(_0x2ea92d['authorsIds']=_0x2ea92d['authors']['map'](_0x50ce67=>_0x50ce67['id']),delete _0x2ea92d[_0xca61('0x9')]),this[_0xca61('0x1')](_0xca61('0xd'),_0x2ea92d));}[_0xca61('0x4')](){return{'id':this['id'],'name':this[_0xca61('0x0')],'creatorId':this['creator']?this[_0xca61('0x5')]['id']:null,'authorsIds':this['authors'][_0xca61('0x3')](_0x85b002=>_0x85b002['id']),'data':this['data'],'createdAt':this['createdAt'],'attributes':this['attributes'],'isLocked':this[_0xca61('0xb')]};}}_0x439c2b(c,_0x40dd24);
23
+ const _0x449c=['set','toJSON','creator','data','_update','authors','name','isLocked','createdAt','setAttribute','map','setName','attributes','authorsIds','removeAttribute','lock'];(function(_0x3a0baa,_0x449ca4){const _0x29e667=function(_0x1d1f73){while(--_0x1d1f73){_0x3a0baa['push'](_0x3a0baa['shift']());}};_0x29e667(++_0x449ca4);}(_0x449c,0x158));const _0x29e6=function(_0x3a0baa,_0x449ca4){_0x3a0baa=_0x3a0baa-0x0;let _0x29e667=_0x449c[_0x3a0baa];return _0x29e667;};import{ObservableMixin as _0x4af77d,mix as _0x572274,uid as _0xc0c38a}from'ckeditor5/src/utils';import{cloneDeep as _0x5c5442,set as _0x5acf9e,unset as _0x59522e}from'lodash-es';export default class c{constructor(_0x396bb1){this['id']=_0x396bb1['id']||_0xc0c38a(),this[_0x29e6('0x8')](_0x29e6('0xe'),_0x396bb1[_0x29e6('0xe')]||null),this[_0x29e6('0xa')]=_0x396bb1[_0x29e6('0xa')]||null,this[_0x29e6('0xd')]=_0x396bb1[_0x29e6('0xd')]||[],this['set'](_0x29e6('0x0'),_0x396bb1[_0x29e6('0x0')]||new Date()),this[_0x29e6('0xb')]=_0x396bb1[_0x29e6('0xb')]||null,this[_0x29e6('0x8')](_0x29e6('0x4'),_0x396bb1[_0x29e6('0x4')]||{}),this[_0x29e6('0xf')]=!!_0x396bb1[_0x29e6('0xf')];}[_0x29e6('0x3')](_0x1da6fb){this[_0x29e6('0xc')]({'name':_0x1da6fb,'isLocked':!0x0});}[_0x29e6('0x7')](){this['_update']({'isLocked':!0x0});}[_0x29e6('0x1')](_0x1d5b67,_0x3f26a8){const _0x2ef6b4=_0x5c5442(this[_0x29e6('0x4')]);_0x5acf9e(_0x2ef6b4,_0x1d5b67,_0x3f26a8),this[_0x29e6('0xc')]({'attributes':_0x2ef6b4});}[_0x29e6('0x6')](_0x49ca2b){const _0x172cb2=_0x5c5442(this['attributes']);_0x59522e(_0x172cb2,_0x49ca2b),this['_update']({'attributes':_0x172cb2});}[_0x29e6('0xc')](_0xf228c4){let _0x7cc548=!0x1;const _0x4f8955={'id':this['id']};for(const _0xa2342f of[_0x29e6('0xe'),'createdAt','data',_0x29e6('0xd'),'attributes',_0x29e6('0xf')]){const _0x4b90da=_0xf228c4[_0xa2342f];_0x4b90da&&_0x4b90da!==this[_0xa2342f]&&(this[_0xa2342f]=_0x4b90da,_0x4f8955[_0xa2342f]=_0x4b90da,_0x7cc548=!0x0);}_0x7cc548&&(_0x4f8955[_0x29e6('0xd')]&&(_0x4f8955[_0x29e6('0x5')]=_0x4f8955[_0x29e6('0xd')][_0x29e6('0x2')](_0x140a98=>_0x140a98['id']),delete _0x4f8955[_0x29e6('0xd')]),this['fire'](_0x29e6('0xc'),_0x4f8955));}[_0x29e6('0x9')](){return{'id':this['id'],'name':this[_0x29e6('0xe')],'creatorId':this[_0x29e6('0xa')]?this['creator']['id']:null,'authorsIds':this[_0x29e6('0xd')][_0x29e6('0x2')](_0x3417c1=>_0x3417c1['id']),'data':this[_0x29e6('0xb')],'createdAt':this['createdAt'],'attributes':this[_0x29e6('0x4')],'isLocked':this['isLocked']};}}_0x572274(c,_0x4af77d);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e04=['_setData','add','newRevisionId','changes'];(function(_0x4d6ca1,_0x3e0431){const _0xe1364f=function(_0x3b7c9c){while(--_0x3b7c9c){_0x4d6ca1['push'](_0x4d6ca1['shift']());}};_0xe1364f(++_0x3e0431);}(_0x3e04,0x1a9));const _0xe136=function(_0x4d6ca1,_0x3e0431){_0x4d6ca1=_0x4d6ca1-0x0;let _0xe1364f=_0x3e04[_0x4d6ca1];return _0xe1364f;};import{Collection as _0x624a2b}from'ckeditor5/src/utils';export default class l{constructor(_0x2c2033,_0x3eccf6){this[_0xe136('0x1')]=_0x2c2033,this['oldRevisionId']=_0x3eccf6;}[_0xe136('0x3')](_0x2fe6f6){this[_0xe136('0x2')]=new _0x624a2b();for(const _0x16b200 of _0x2fe6f6[_0xe136('0x2')])this[_0xe136('0x2')][_0xe136('0x0')](_0x16b200);}}
23
+ const _0x4003=['changes','newRevisionId','oldRevisionId','_setData'];(function(_0x1783f2,_0x40035c){const _0xabec91=function(_0x20f714){while(--_0x20f714){_0x1783f2['push'](_0x1783f2['shift']());}};_0xabec91(++_0x40035c);}(_0x4003,0xc6));const _0xabec=function(_0x1783f2,_0x40035c){_0x1783f2=_0x1783f2-0x0;let _0xabec91=_0x4003[_0x1783f2];return _0xabec91;};import{Collection as _0x102e58}from'ckeditor5/src/utils';export default class l{constructor(_0x396dcf,_0x84591a){this[_0xabec('0x3')]=_0x396dcf,this[_0xabec('0x0')]=_0x84591a;}[_0xabec('0x1')](_0x53190a){this[_0xabec('0x2')]=new _0x102e58();for(const _0x92d277 of _0x53190a[_0xabec('0x2')])this[_0xabec('0x2')]['add'](_0x92d277);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x57fc40}from'ckeditor5/src/core';import _0x354c5e from'./revisiontracker';import _0x28aff4 from'./ui/revisionhistory/revisionhistoryui';import _0x508292 from'./revisionviewer';import _0x36312c from'./ui/revisionviewer/revisionviewerui';import _0x1ed709 from'./ui/revisionssidebar/revisionssidebar';import _0x33f90d from'@ckeditor/ckeditor5-editor-classic/src/classiceditor';const m=['RevisionTracker','RevisionHistoryUI','WebSocketGateway','CommentsRepository','TrackChangesEditing','RestrictedEditingMode','Autosave'];export default class w extends _0x57fc40{static get['pluginName'](){return'RevisionHistory';}static get['requires'](){return[_0x354c5e,_0x28aff4];}constructor(..._0x66999e){super(..._0x66999e),this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xfd0ba4=>this['_showRevisionViewer'](_0xfd0ba4)),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x41b5e3=>this['_closeRevisionViewer'](_0x41b5e3)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x26e7ed=>this['_restoreRevision'](_0x26e7ed)),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4070c4){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4070c4;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['_getRevisionViewerEditorConfig'](){const _0x355d93={},_0x3f5529=this['editor'],_0x30dec3=_0x3f5529['plugins']['get']('RevisionTracker');for(const _0x5bd26e of _0x3f5529['config']['names']())_0x355d93[_0x5bd26e]=_0x3f5529['config']['get'](_0x5bd26e);delete _0x355d93['context'],_0x355d93['initialData']='',_0x355d93['toolbar']=['exitToEditing','restoreRevision','changesNavigation'];const _0x395606=this['editor']['constructor']['builtinPlugins']||[],_0x3bbaf0=_0x355d93['extraPlugins']||[];delete _0x355d93['extraPlugins'];const _0x52adfc=_0x395606['concat'](_0x355d93['plugins'])['concat'](_0x3bbaf0)['map'](_0x39a7fa=>'string'==typeof _0x39a7fa?_0x395606['find'](_0x51d8e1=>_0x51d8e1['pluginName']==_0x39a7fa):_0x39a7fa);return _0x355d93['plugins']=Array['from'](new Set(_0x52adfc))['filter'](_0x5d287f=>p(_0x5d287f,_0x3f5529['plugins'],[])),_0x355d93['plugins']['push'](_0x508292,_0x36312c,_0x1ed709,function(_0x548188){const _0x3a7afc=_0x548188['plugins']['get']('RevisionViewer'),_0x53447e=_0x3a7afc['repository'],_0x2a33d7=_0x30dec3['repository']['getRevisions']();for(const _0x866b44 of _0x2a33d7)_0x53447e['addRevision'](_0x866b44);_0x3a7afc['adapter']=_0x30dec3['adapter'];}),_0x355d93;}['_enhanceShowRevisionViewerCallback'](){const _0x5c3432=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',()=>{this['editor']['isReadOnly']=!0x0;const _0x2d1801=this['editor']['plugins']['get']('RevisionTracker');_0x2d1801['isDirty']&&(this['editor']['plugins']['has']('Autosave')?this['editor']['plugins']['get']('Autosave')['save']():_0x2d1801['updateRevision']()),this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks']();const _0x5aa0d1=this['_getRevisionViewerEditorConfig']();return _0x5c3432(_0x5aa0d1)['then'](_0x571d31=>{this['_viewerEditor']=_0x571d31;});});}['_enhanceCloseRevisionViewerCallback'](){const _0x360098=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['isReadOnly']=!0x1,this['editor']['plugins']['has']('Annotations')&&this['editor']['plugins']['get']('Annotations')['collection']['refreshPositioning'](),this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),_0x360098(this['_viewerEditor'])['then'](()=>{this['_viewerEditor']=null;})));}['_showRevisionViewer'](_0x5172ce){const _0x4f8739=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4d54ee=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x565636=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return _0x33f90d['create'](_0x565636,_0x5172ce)['then'](_0x5202b2=>(_0x4d54ee['style']['display']='block',_0x4f8739['style']['display']='none',_0x5202b2));}['_closeRevisionViewer'](_0x14aaa7){const _0x2cca29=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2cca29['style']['display']='',_0x14aaa7['destroy']();}async['_restoreRevision'](_0x39c27c){const _0x25397e=this['editor'],t=_0x25397e['t'],_0x46f2e5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5578d9=_0x25397e['plugins']['get']('RevisionTracker'),_0x5b352c=_0x46f2e5['repository']['getRevision'](_0x39c27c);_0x25397e['model']['change'](_0x5d08ef=>{for(const _0x583756 of Array['from'](_0x25397e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5d08ef['removeMarker'](_0x583756);}),_0x46f2e5['isReady']=!0x1;const _0x3120aa=await _0x46f2e5['getRevisionData'](_0x5b352c);let _0x1edd0b;_0x46f2e5['isReady']=!0x0,_0x25397e['data']['set'](_0x3120aa,{'suppressErrorInCollaboration':!0x0});const _0x4400b9=t('Restored');if(_0x5b352c['name'])_0x1edd0b=-0x1==_0x5b352c['name']['indexOf'](_0x4400b9)?_0x4400b9+':\x20'+_0x5b352c['name']:_0x5b352c['name'];else _0x1edd0b=_0x4400b9+':\x20'+(_0x5b352c['createdAt']['toLocaleDateString'](_0x25397e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5b352c['createdAt']['toLocaleTimeString'](_0x25397e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return _0x5578d9['updateRevision']({'name':_0x1edd0b,'isLocked':!0x0}),_0x25397e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}function p(_0x236969,_0x22292b,_0xfdf73f){const _0x9a321f='function'==typeof _0x236969?_0x236969['pluginName']||_0x236969['name']:_0x236969;if(_0xfdf73f['includes'](_0x9a321f))return!0x0;if(_0xfdf73f['push'](_0x9a321f),m['includes'](_0x9a321f))return!0x1;const _0x5abc0b=(('function'==typeof _0x236969?_0x236969:_0x22292b['has'](_0x9a321f)?_0x22292b['get'](_0x9a321f):{})['requires']||[])['every'](_0xa0c4e5=>p(_0xa0c4e5,_0x22292b,_0xfdf73f));return _0x5abc0b||m['push'](_0x9a321f),_0x5abc0b;}
23
+ import{Plugin as _0x142a4a}from'ckeditor5/src/core';import _0x2508ce from'./revisiontracker';import _0x403f07 from'./ui/revisionhistory/revisionhistoryui';import _0x27c1b4 from'./revisionviewer';import _0x1d59f9 from'./ui/revisionviewer/revisionviewerui';import _0x5083e3 from'./ui/revisionssidebar/revisionssidebar';import _0x1bcc41 from'@ckeditor/ckeditor5-editor-classic/src/classiceditor';const m=['RevisionTracker','RevisionHistoryUI','WebSocketGateway','CommentsRepository','TrackChangesEditing','RestrictedEditingMode','Autosave'];export default class w extends _0x142a4a{static get['pluginName'](){return'RevisionHistory';}static get['requires'](){return[_0x2508ce,_0x403f07];}constructor(..._0x302ca5){super(..._0x302ca5),this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1a8f96=>this['_showRevisionViewer'](_0x1a8f96)),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xea94e4=>this['_closeRevisionViewer'](_0xea94e4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x16fee3=>this['_restoreRevision'](_0x16fee3)),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x236ff4){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x236ff4;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['_getRevisionViewerEditorConfig'](){const _0x43c0cd={},_0x312710=this['editor'],_0x195f42=_0x312710['plugins']['get']('RevisionTracker');for(const _0x1dca9c of _0x312710['config']['names']())_0x43c0cd[_0x1dca9c]=_0x312710['config']['get'](_0x1dca9c);delete _0x43c0cd['context'],_0x43c0cd['initialData']='',_0x43c0cd['toolbar']=['exitToEditing','restoreRevision','changesNavigation'];const _0xcacc2d=this['editor']['constructor']['builtinPlugins']||[],_0x370963=_0x43c0cd['extraPlugins']||[];delete _0x43c0cd['extraPlugins'];const _0x2dc07c=_0xcacc2d['concat'](_0x43c0cd['plugins'])['concat'](_0x370963)['map'](_0x143631=>'string'==typeof _0x143631?_0xcacc2d['find'](_0x41c859=>_0x41c859['pluginName']==_0x143631):_0x143631);return _0x43c0cd['plugins']=Array['from'](new Set(_0x2dc07c))['filter'](_0x371686=>p(_0x371686,_0x312710['plugins'],[])),_0x43c0cd['plugins']['push'](_0x27c1b4,_0x1d59f9,_0x5083e3,function(_0x2b462f){const _0x33e9d6=_0x2b462f['plugins']['get']('RevisionViewer'),_0x206524=_0x33e9d6['repository'],_0x2872a0=_0x195f42['repository']['getRevisions']();for(const _0x44e966 of _0x2872a0)_0x206524['addRevision'](_0x44e966);_0x33e9d6['adapter']=_0x195f42['adapter'];}),_0x43c0cd;}['_enhanceShowRevisionViewerCallback'](){const _0x53c22f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',()=>{this['editor']['isReadOnly']=!0x0;const _0x69f4b8=this['editor']['plugins']['get']('RevisionTracker');_0x69f4b8['isDirty']&&(this['editor']['plugins']['has']('Autosave')?this['editor']['plugins']['get']('Autosave')['save']():_0x69f4b8['updateRevision']()),this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks']();const _0x4edd6e=this['_getRevisionViewerEditorConfig']();return _0x53c22f(_0x4edd6e)['then'](_0x52dfde=>{this['_viewerEditor']=_0x52dfde;});});}['_enhanceCloseRevisionViewerCallback'](){const _0x6566b8=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['isReadOnly']=!0x1,this['editor']['plugins']['has']('Annotations')&&this['editor']['plugins']['get']('Annotations')['collection']['refreshPositioning'](),this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),_0x6566b8(this['_viewerEditor'])['then'](()=>{this['_viewerEditor']=null;})));}['_showRevisionViewer'](_0x479da6){const _0x504795=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x296af2=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x599f7a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return _0x1bcc41['create'](_0x599f7a,_0x479da6)['then'](_0x2ce163=>(_0x296af2['style']['display']='block',_0x504795['style']['display']='none',_0x2ce163));}['_closeRevisionViewer'](_0x37fa84){const _0x4f5803=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4f5803['style']['display']='',_0x37fa84['destroy']();}async['_restoreRevision'](_0x2de152){const _0x397c41=this['editor'],t=_0x397c41['t'],_0x453ed7=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x26c2fc=_0x397c41['plugins']['get']('RevisionTracker'),_0x1165e3=_0x453ed7['repository']['getRevision'](_0x2de152);_0x397c41['model']['change'](_0x2ee3d3=>{for(const _0x5188ac of Array['from'](_0x397c41['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2ee3d3['removeMarker'](_0x5188ac);}),_0x453ed7['isReady']=!0x1;const _0x15c7b5=await _0x453ed7['getRevisionData'](_0x1165e3);let _0x2e4867;_0x453ed7['isReady']=!0x0,_0x397c41['data']['set'](_0x15c7b5,{'suppressErrorInCollaboration':!0x0});const _0x1c2acd=t('Restored');if(_0x1165e3['name'])_0x2e4867=-0x1==_0x1165e3['name']['indexOf'](_0x1c2acd)?_0x1c2acd+':\x20'+_0x1165e3['name']:_0x1165e3['name'];else _0x2e4867=_0x1c2acd+':\x20'+(_0x1165e3['createdAt']['toLocaleDateString'](_0x397c41['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1165e3['createdAt']['toLocaleTimeString'](_0x397c41['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return _0x26c2fc['updateRevision']({'name':_0x2e4867,'isLocked':!0x0}),_0x397c41['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}function p(_0x14b7cf,_0x4fdbc6,_0x4e8709){const _0x49ff4b='function'==typeof _0x14b7cf?_0x14b7cf['pluginName']||_0x14b7cf['name']:_0x14b7cf;if(_0x4e8709['includes'](_0x49ff4b))return!0x0;if(_0x4e8709['push'](_0x49ff4b),m['includes'](_0x49ff4b))return!0x1;const _0x555c8b=(('function'==typeof _0x14b7cf?_0x14b7cf:_0x4fdbc6['has'](_0x49ff4b)?_0x4fdbc6['get'](_0x49ff4b):{})['requires']||[])['every'](_0x5f3c78=>p(_0x5f3c78,_0x4fdbc6,_0x4e8709));return _0x555c8b||m['push'](_0x49ff4b),_0x555c8b;}