@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.
- package/lang/translations/da.po +1 -1
- package/lang/translations/es.po +7 -7
- package/lang/translations/id.po +13 -13
- package/lang/translations/pt-br.po +24 -24
- package/package.json +11 -11
- package/src/changeitem.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
package/lang/translations/da.po
CHANGED
package/lang/translations/es.po
CHANGED
|
@@ -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"
|
package/lang/translations/id.po
CHANGED
|
@@ -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.
|
|
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.
|
|
28
|
-
"@ckeditor/ckeditor5-comments": "^31.
|
|
29
|
-
"@ckeditor/ckeditor5-track-changes": "^31.
|
|
30
|
-
"@ckeditor/ckeditor5-core": "^31.
|
|
31
|
-
"@ckeditor/ckeditor5-ui": "^31.
|
|
32
|
-
"@ckeditor/ckeditor5-engine": "^31.
|
|
33
|
-
"@ckeditor/ckeditor5-utils": "^31.
|
|
34
|
-
"@ckeditor/ckeditor5-undo": "^31.
|
|
35
|
-
"@ckeditor/ckeditor5-editor-classic": "^31.
|
|
36
|
-
"ckeditor5": "^31.
|
|
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
|
|
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
|
|
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);
|
package/src/revisiondiff.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
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);}}
|
package/src/revisionhistory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
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;}
|