@ckeditor/ckeditor5-revision-history 33.0.0 → 34.0.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/README.md +3 -0
- package/build/revision-history.js +5 -0
- package/build/translations/az.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/en-gb.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/ku.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ne.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/tk.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/ug.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/lang/translations/en-au.po +25 -25
- package/lang/translations/gl.po +5 -5
- package/lang/translations/hr.po +6 -6
- package/lang/translations/jv.po +122 -0
- package/lang/translations/pt-br.po +3 -3
- package/lang/translations/sk.po +27 -27
- package/package.json +8 -11
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +23 -0
- package/src/editor/revisionviewereditorui.js +23 -0
- package/src/editor/revisionviewereditoruiview.js +23 -0
- package/src/index.js +23 -0
- 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/sk.po
CHANGED
|
@@ -18,79 +18,79 @@ 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 "Obnovené"
|
|
22
22
|
|
|
23
23
|
msgctxt "The name for an initial revision that is empty."
|
|
24
24
|
msgid "Empty document"
|
|
25
|
-
msgstr ""
|
|
25
|
+
msgstr "Prázdny dokument"
|
|
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 "Počiatočná revízia"
|
|
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 "Porovnajte s vybranými"
|
|
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 "Pomenujte túto revíziu"
|
|
38
38
|
|
|
39
39
|
msgctxt "The label for the user who saved the revision."
|
|
40
40
|
msgid "Revision creator"
|
|
41
|
-
msgstr ""
|
|
41
|
+
msgstr "Tvorca revízie"
|
|
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 revízie"
|
|
46
46
|
|
|
47
47
|
msgctxt "The label for the revision name."
|
|
48
48
|
msgid "Revision name"
|
|
49
|
-
msgstr ""
|
|
49
|
+
msgstr "Názov revízie"
|
|
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 "Názov revízie (nepovinné)"
|
|
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 "Uložiť aktuálnu revíziu"
|
|
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 "Otvoriť históriu verzií"
|
|
62
62
|
|
|
63
63
|
msgctxt "The label for the sidebar in revision viewer."
|
|
64
64
|
msgid "Revision history"
|
|
65
|
-
msgstr ""
|
|
65
|
+
msgstr "História revízií"
|
|
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 "Navrhol"
|
|
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 "Pridal"
|
|
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 "Odstránil"
|
|
78
78
|
|
|
79
79
|
msgctxt "Displayed in the revision viewer toolbar when loading a revision."
|
|
80
80
|
msgid "Loading..."
|
|
81
|
-
msgstr ""
|
|
81
|
+
msgstr "Načítava..."
|
|
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 "Bez zmien"
|
|
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] ""
|
|
92
|
-
msgstr[2] ""
|
|
93
|
-
msgstr[3] ""
|
|
90
|
+
msgstr[0] "%0 zmena"
|
|
91
|
+
msgstr[1] "%0 zmeny"
|
|
92
|
+
msgstr[2] "%0 zmien"
|
|
93
|
+
msgstr[3] "%0 zmien"
|
|
94
94
|
|
|
95
95
|
msgctxt "Edit: (2 of 5)"
|
|
96
96
|
msgid "X_OF_Y_CHANGES"
|
|
@@ -98,15 +98,15 @@ msgstr "%0 z %1"
|
|
|
98
98
|
|
|
99
99
|
msgctxt "The label for a button that highlights previous change in revision viewer."
|
|
100
100
|
msgid "Show previous change"
|
|
101
|
-
msgstr ""
|
|
101
|
+
msgstr "Zobraziť predchádzajúcu zmenu"
|
|
102
102
|
|
|
103
103
|
msgctxt "The label for a button that highlights next change in revision viewer."
|
|
104
104
|
msgid "Show next change"
|
|
105
|
-
msgstr ""
|
|
105
|
+
msgstr "Zobraziť nasledovnú zmenu"
|
|
106
106
|
|
|
107
107
|
msgctxt "(Total): 5 changes"
|
|
108
108
|
msgid "Total"
|
|
109
|
-
msgstr ""
|
|
109
|
+
msgstr "Spolu"
|
|
110
110
|
|
|
111
111
|
msgctxt "(Edit): 2 of 5"
|
|
112
112
|
msgid "EDIT_X_OF_Y_REVISIONS"
|
|
@@ -114,12 +114,12 @@ msgstr "Upraviť"
|
|
|
114
114
|
|
|
115
115
|
msgctxt "The label for a button that closes revision viewer and shows editor."
|
|
116
116
|
msgid "Back to editing"
|
|
117
|
-
msgstr ""
|
|
117
|
+
msgstr "Späť k úpravám"
|
|
118
118
|
|
|
119
119
|
msgctxt "The label for a button that restores given revision."
|
|
120
120
|
msgid "Restore this revision"
|
|
121
|
-
msgstr ""
|
|
121
|
+
msgstr "Obnovte túto revíziu"
|
|
122
122
|
|
|
123
123
|
msgctxt "The label for the alert shown when closing the editor with an unsaved revision history change."
|
|
124
124
|
msgid "PENDING_ACTION_REVISION_HISTORY"
|
|
125
|
-
msgstr ""
|
|
125
|
+
msgstr "Neuložená zmena v histórii verzií."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-revision-history",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "34.0.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/)",
|
|
@@ -23,17 +23,14 @@
|
|
|
23
23
|
"version history",
|
|
24
24
|
"versioning"
|
|
25
25
|
],
|
|
26
|
+
"main": "src/index.js",
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"@ckeditor/ckeditor5-
|
|
28
|
-
"@ckeditor/ckeditor5-
|
|
29
|
-
"@ckeditor/ckeditor5-
|
|
30
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"@ckeditor/ckeditor5-ui": "^33.0.0",
|
|
34
|
-
"@ckeditor/ckeditor5-undo": "^33.0.0",
|
|
35
|
-
"@ckeditor/ckeditor5-utils": "^33.0.0",
|
|
36
|
-
"ckeditor5": "^33.0.0",
|
|
28
|
+
"@ckeditor/ckeditor5-core": "^34.0.0",
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "^34.0.0",
|
|
30
|
+
"@ckeditor/ckeditor5-undo": "^34.0.0",
|
|
31
|
+
"@ckeditor/ckeditor5-editor-classic": "^34.0.0",
|
|
32
|
+
"ckeditor5": "^34.0.0",
|
|
33
|
+
"ckeditor5-collaboration": "^34.0.0",
|
|
37
34
|
"lodash-es": "^4.17.15",
|
|
38
35
|
"luxon": "^1.25.0"
|
|
39
36
|
}
|
package/src/changeitem.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1671=['toJSON','createdAt','set','data','type'];(function(_0x57ad57,_0x1671f6){var _0x51938c=function(_0x3cad51){while(--_0x3cad51){_0x57ad57['push'](_0x57ad57['shift']());}};_0x51938c(++_0x1671f6);}(_0x1671,0x1d4));var _0x5193=function(_0x57ad57,_0x1671f6){_0x57ad57=_0x57ad57-0x0;var _0x51938c=_0x1671[_0x57ad57];return _0x51938c;};import{ObservableMixin as _0x38d66b,mix as _0x178fff,uid as _0x1631de}from'ckeditor5/src/utils';export default class h{constructor(_0x34bb6b){this['id']=_0x34bb6b['id']||_0x1631de(),this['author']=_0x34bb6b['author'],this[_0x5193('0x1')]=_0x34bb6b['type'],this[_0x5193('0x0')]=_0x34bb6b[_0x5193('0x0')]||{},this[_0x5193('0x4')]('createdAt',_0x34bb6b[_0x5193('0x3')]);}[_0x5193('0x2')](){return{'id':this['id'],'authorId':this['author']['id'],'type':this[_0x5193('0x1')],'data':this['data'],'createdAt':this[_0x5193('0x3')]};}}_0x178fff(h,_0x38d66b);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x50dc=['sourceElement','createRoot','destroy','data','get','init','initPlugins','updateSourceElement','model','editing','initialData','fire','config','view','create','document','ready'];(function(_0x10c723,_0x50dc7f){const _0x1783f6=function(_0x507149){while(--_0x507149){_0x10c723['push'](_0x10c723['shift']());}};_0x1783f6(++_0x50dc7f);}(_0x50dc,0xaa));const _0x1783=function(_0x10c723,_0x50dc7f){_0x10c723=_0x10c723-0x0;let _0x1783f6=_0x50dc[_0x10c723];return _0x1783f6;};import{Editor as _0x3a90bd,DataApiMixin as _0x421821,ElementApiMixin as _0xdec06d}from'ckeditor5/src/core';import{mix as _0x33b197}from'ckeditor5/src/utils';import _0xca7a79 from'./revisionviewereditorui';import _0x5823fa from'./revisionviewereditoruiview';export default class p extends _0x3a90bd{constructor(_0x238e92,_0x2be483){super(_0x2be483),this[_0x1783('0x0')]=_0x238e92,this[_0x1783('0x8')][_0x1783('0xf')][_0x1783('0x1')]();const _0x20ed0d=new _0x5823fa(this['locale'],this[_0x1783('0x9')][_0x1783('0xd')],{'shouldToolbarGroupWhenFull':!0x0});this['ui']=new _0xca7a79(this,_0x20ed0d);}['destroy'](){return this[_0x1783('0x7')](),this['ui'][_0x1783('0x2')](),super[_0x1783('0x2')]();}static async[_0x1783('0xe')](_0x1df224,_0x2e0fae){const _0xb26ba6=new this(_0x1df224,_0x2e0fae);return await _0xb26ba6[_0x1783('0x6')](),await _0xb26ba6['ui'][_0x1783('0x5')](_0x1df224),await _0xb26ba6[_0x1783('0x3')]['init'](_0xb26ba6[_0x1783('0xc')][_0x1783('0x4')](_0x1783('0xa'))),_0xb26ba6[_0x1783('0xb')](_0x1783('0x10')),_0xb26ba6;}}_0x33b197(p,_0x421821),_0x33b197(p,_0xdec06d);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x2ba5=['limiterElement','restore','name','rootName','componentFactory','toolbar','render','config','add','focusTracker','init','editable','stickyPanel','element','detachDomRoot','keystrokes','viewportTopOffset','bind','editing','fire','_elementReplacer','setEditableElement','destroy','replace','ready','editor','viewportOffset','attachDomRoot','_toolbarConfig','fillFromConfig','_initToolbar','isFocused','document','getRoot','view'];(function(_0x44f1a5,_0x2ba586){const _0x2c3ff4=function(_0x3726be){while(--_0x3726be){_0x44f1a5['push'](_0x44f1a5['shift']());}};_0x2c3ff4(++_0x2ba586);}(_0x2ba5,0x185));const _0x2c3f=function(_0x44f1a5,_0x2ba586){_0x44f1a5=_0x44f1a5-0x0;let _0x2c3ff4=_0x2ba5[_0x44f1a5];return _0x2c3ff4;};import{EditorUI as _0x107c99}from'ckeditor5/src/core';import{enableToolbarKeyboardFocus as _0xde1e4c,normalizeToolbarConfig as _0x138297}from'ckeditor5/src/ui';import{ElementReplacer as _0x18fd1e}from'ckeditor5/src/utils';export default class B extends _0x107c99{constructor(_0x3f2a9d,_0x12cb22){super(_0x3f2a9d),this[_0x2c3f('0x1e')]=_0x12cb22,this[_0x2c3f('0x18')]=_0x138297(_0x3f2a9d[_0x2c3f('0x3')]['get']('toolbar')),this[_0x2c3f('0x10')]=new _0x18fd1e();}get['element'](){return this[_0x2c3f('0x1e')][_0x2c3f('0x9')];}[_0x2c3f('0x6')](_0x1624c5){const _0x108915=this['editor'],_0xbd5d50=this[_0x2c3f('0x1e')],_0x3ea936=_0x108915[_0x2c3f('0xe')]['view'],_0x2ee695=_0xbd5d50[_0x2c3f('0x7')],_0x426582=_0x3ea936[_0x2c3f('0x1c')][_0x2c3f('0x1d')]();_0x2ee695[_0x2c3f('0x21')]=_0x426582[_0x2c3f('0x22')],_0xbd5d50[_0x2c3f('0x2')]();const _0x3c793a=_0x2ee695[_0x2c3f('0x9')];this[_0x2c3f('0x11')](_0x2ee695[_0x2c3f('0x21')],_0x3c793a),this[_0x2c3f('0x5')][_0x2c3f('0x4')](_0x3c793a),_0xbd5d50['editable']['bind'](_0x2c3f('0x1b'))['to'](this['focusTracker']),_0x3ea936[_0x2c3f('0x17')](_0x3c793a),this[_0x2c3f('0x10')][_0x2c3f('0x13')](_0x1624c5,this['element']),this[_0x2c3f('0x1a')](),this[_0x2c3f('0xf')](_0x2c3f('0x14'));}['destroy'](){const _0x4bfc0b=this[_0x2c3f('0x1e')],_0x5ee628=this[_0x2c3f('0x15')][_0x2c3f('0xe')]['view'];this[_0x2c3f('0x10')][_0x2c3f('0x20')](),_0x5ee628[_0x2c3f('0xa')](_0x4bfc0b['editable']['name']),_0x4bfc0b['destroy'](),super[_0x2c3f('0x12')]();}[_0x2c3f('0x1a')](){const _0x35fe59=this['editor'],_0x6c83a0=this[_0x2c3f('0x1e')],_0x17a2cf=_0x35fe59[_0x2c3f('0xe')][_0x2c3f('0x1e')];_0x6c83a0['stickyPanel'][_0x2c3f('0xd')]('isActive')['to'](this[_0x2c3f('0x5')],_0x2c3f('0x1b')),_0x6c83a0[_0x2c3f('0x8')][_0x2c3f('0x1f')]=_0x6c83a0['element'],_0x6c83a0['stickyPanel'][_0x2c3f('0xd')](_0x2c3f('0xc'))['to'](this,_0x2c3f('0x16'),({top:_0x39abd8})=>_0x39abd8),_0x6c83a0[_0x2c3f('0x1')][_0x2c3f('0x19')](this[_0x2c3f('0x18')],this[_0x2c3f('0x0')]),_0xde1e4c({'origin':_0x17a2cf,'originFocusTracker':this[_0x2c3f('0x5')],'originKeystrokeHandler':_0x35fe59[_0x2c3f('0xb')],'toolbar':_0x6c83a0[_0x2c3f('0x1')]});}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
var _0x3c1e=['editable','toolbar','stickyPanel','main','add'];(function(_0x2f65bc,_0x3c1ec0){var _0x304174=function(_0x2b5bb4){while(--_0x2b5bb4){_0x2f65bc['push'](_0x2f65bc['shift']());}};_0x304174(++_0x3c1ec0);}(_0x3c1e,0x12b));var _0x3041=function(_0x2f65bc,_0x3c1ec0){_0x2f65bc=_0x2f65bc-0x0;var _0x304174=_0x3c1e[_0x2f65bc];return _0x304174;};import{BoxedEditorUIView as _0x56585d,InlineEditableUIView as _0x5d3050,StickyPanelView as _0x4969e2,ToolbarView as _0x1c1074}from'ckeditor5/src/ui';import'@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css';export default class K extends _0x56585d{constructor(_0x468007,_0x438405,_0x25b6a0={}){super(_0x468007),this[_0x3041('0x3')]=new _0x4969e2(_0x468007),this['toolbar']=new _0x1c1074(_0x468007,{'shouldGroupWhenFull':_0x25b6a0['shouldToolbarGroupWhenFull']}),this[_0x3041('0x1')]=new _0x5d3050(_0x468007,_0x438405);}['render'](){super['render'](),this['stickyPanel']['content'][_0x3041('0x0')](this[_0x3041('0x2')]),this['top'][_0x3041('0x0')](this[_0x3041('0x3')]),this[_0x3041('0x4')][_0x3041('0x0')](this[_0x3041('0x1')]);}}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export{default as RevisionHistory}from'./revisionhistory';export{default as RevisionTracker}from'./revisiontracker';
|
package/src/revision.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31f0=['name','attributes','createdAt','set','creatorId','setAttribute','creator','authors','fromVersion','_update','diffData','map','toVersion'];(function(_0x166cc4,_0x31f054){const _0x42bcb2=function(_0x30260b){while(--_0x30260b){_0x166cc4['push'](_0x166cc4['shift']());}};_0x42bcb2(++_0x31f054);}(_0x31f0,0xc2));const _0x42bc=function(_0x166cc4,_0x31f054){_0x166cc4=_0x166cc4-0x0;let _0x42bcb2=_0x31f0[_0x166cc4];return _0x42bcb2;};import{ObservableMixin as _0x13b782,mix as _0x3abbe1,uid as _0xca3391}from'ckeditor5/src/utils';import{cloneDeep as _0x573a71,set as _0x5aa5cd,unset as _0x4dc3f2}from'lodash-es';export default class n{constructor(_0x100fd1){this['id']=_0x100fd1['id']||_0xca3391(),this[_0x42bc('0x4')](_0x42bc('0x1'),_0x100fd1['name']||''),this[_0x42bc('0x7')]=_0x100fd1[_0x42bc('0x7')]||null,this[_0x42bc('0x8')]=_0x100fd1['authors']||[],this[_0x42bc('0x4')](_0x42bc('0x3'),_0x100fd1[_0x42bc('0x3')]||new Date()),this[_0x42bc('0xb')]=_0x100fd1[_0x42bc('0xb')]||null,this['set'](_0x42bc('0x2'),_0x100fd1[_0x42bc('0x2')]||{}),this[_0x42bc('0x0')]=_0x100fd1[_0x42bc('0x0')]||0x0,this[_0x42bc('0x9')]=_0x100fd1[_0x42bc('0x9')]||0x0;}['setName'](_0x4a648c){this[_0x42bc('0xa')]({'name':_0x4a648c});}[_0x42bc('0x6')](_0x4cb623,_0x3e51d1){const _0x2211bb=_0x573a71(this[_0x42bc('0x2')]);_0x5aa5cd(_0x2211bb,_0x4cb623,_0x3e51d1),this[_0x42bc('0xa')]({'attributes':_0x2211bb});}['removeAttribute'](_0x405cb0){const _0x3b64a2=_0x573a71(this[_0x42bc('0x2')]);_0x4dc3f2(_0x3b64a2,_0x405cb0),this[_0x42bc('0xa')]({'attributes':_0x3b64a2});}['_update'](_0x20320f,_0x973cfc=!0x1){let _0x31afce=!0x1;const _0x57abe9={'id':this['id']};for(const _0x31fa31 of['name',_0x42bc('0x3'),_0x42bc('0xb'),_0x42bc('0x8'),'attributes','toVersion',_0x42bc('0x9'),_0x42bc('0x5')]){const _0x351f1c=_0x20320f[_0x31fa31];void 0x0!==_0x351f1c&&_0x351f1c!==this[_0x31fa31]&&(this[_0x31fa31]=_0x351f1c,_0x57abe9[_0x31fa31]=_0x351f1c,_0x31afce=!0x0);}_0x31afce&&(_0x57abe9[_0x42bc('0x8')]&&(_0x57abe9['authorsIds']=_0x57abe9['authors'][_0x42bc('0xc')](_0x25bfc0=>_0x25bfc0['id']),delete _0x57abe9[_0x42bc('0x8')]),this['fire']('_update',_0x57abe9,_0x973cfc));}['toJSON'](){return{'id':this['id'],'name':this[_0x42bc('0x1')],'creatorId':this['creator']?this[_0x42bc('0x7')]['id']:null,'authorsIds':this[_0x42bc('0x8')][_0x42bc('0xc')](_0x449932=>_0x449932['id']),'diffData':this[_0x42bc('0xb')],'createdAt':this[_0x42bc('0x3')],'attributes':this['attributes'],'fromVersion':this[_0x42bc('0x9')],'toVersion':this[_0x42bc('0x0')]};}}_0x3abbe1(n,_0x13b782);
|
package/src/revisiondiff.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbc35=['newRevisionId','add','changes','_setData'];(function(_0x4490c7,_0xbc3588){const _0x3ec424=function(_0x118450){while(--_0x118450){_0x4490c7['push'](_0x4490c7['shift']());}};_0x3ec424(++_0xbc3588);}(_0xbc35,0x184));const _0x3ec4=function(_0x4490c7,_0xbc3588){_0x4490c7=_0x4490c7-0x0;let _0x3ec424=_0xbc35[_0x4490c7];return _0x3ec424;};import{Collection as _0x109e6f}from'ckeditor5/src/utils';export default class f{constructor(_0x36bc3d,_0x7f0be8){this[_0x3ec4('0x0')]=_0x36bc3d,this['oldRevisionId']=_0x7f0be8,this[_0x3ec4('0x2')]=new _0x109e6f();}[_0x3ec4('0x3')](_0x24d53a){for(const _0x49191c of _0x24d53a['changes'])this['changes'][_0x3ec4('0x1')](_0x49191c);}}
|
package/src/revisionhistory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x26cd4c}from'ckeditor5/src/core';import{CKEditorError as _0x3a0bb6,uid as _0x34f956}from'ckeditor5/src/utils';import _0x401acf from'./revisiontracker';import _0x3aa691 from'./ui/revisionhistory/revisionhistoryui';import _0x5739de from'./revisionviewer';import _0x59aab6 from'./ui/revisionviewer/revisionviewerui';import _0xf8236a from'./ui/revisionssidebar/revisionssidebar';import _0x27f8ba from'./editor/revisionviewereditor';const m=['RevisionTracker','RevisionHistoryUI','WebSocketGateway','CommentsRepository','TrackChangesEditing','RestrictedEditingMode','Autosave'];export default class g extends _0x26cd4c{static get['pluginName'](){return'RevisionHistory';}static get['requires'](){return[_0x401acf,_0x3aa691];}constructor(..._0x466626){if(super(..._0x466626),!this['editor']['config']['get']('revisionHistory'))throw new _0x3a0bb6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2f7f87=>this['_showRevisionViewer'](_0x2f7f87)),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1125ee=>this['_closeRevisionViewer'](_0x1125ee)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x25ffd6=>this['_restoreRevision'](_0x25ffd6)),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2f58ad){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2f58ad;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](..._0x35e059){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](..._0x35e059);}['getRevision'](..._0x57fca2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](..._0x57fca2);}['getRevisions'](..._0xf8ab2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](..._0xf8ab2);}['_getRevisionViewerEditorConfig'](){const _0x3d3270={},_0x27d851=this['editor'],_0x503b46=_0x27d851['plugins']['get']('RevisionTracker'),_0x4dbfb6=_0x27d851['plugins']['get']('Users')['users'];for(const _0x564fac of _0x27d851['config']['names']())_0x3d3270[_0x564fac]=_0x27d851['config']['get'](_0x564fac);delete _0x3d3270['context'],_0x3d3270['initialData']='',_0x3d3270['toolbar']=['exitToEditing','restoreRevision','changesNavigation'];const _0x21cf0e=this['editor']['constructor']['builtinPlugins']||[],_0x3eb305=_0x3d3270['extraPlugins']||[];delete _0x3d3270['extraPlugins'];const _0x3446fb=_0x21cf0e['concat'](_0x3d3270['plugins'])['concat'](_0x3eb305)['map'](_0x596dfd=>'string'==typeof _0x596dfd?_0x21cf0e['find'](_0x5bf14f=>_0x5bf14f['pluginName']==_0x596dfd):_0x596dfd);return _0x3d3270['plugins']=Array['from'](new Set(_0x3446fb))['filter'](_0x506026=>k(_0x506026,_0x27d851['plugins'],[])),(_0x3d3270['plugins']['push'](_0x5739de,_0x59aab6,class extends _0x26cd4c{static get['requires'](){return[_0x5739de,'Users'];}['init'](){const _0x277b59=this['editor']['plugins']['get']('Users');for(const _0x5150be of _0x4dbfb6)_0x5150be['isAnonymous']||_0x277b59['getUser'](_0x5150be['id'])||_0x277b59['addUser'](_0x5150be);const _0x44dd80=_0x503b46['repository']['getRevisions']();let _0x1db798=null;const _0x5992a4=this['editor']['plugins']['get']('RevisionViewer');_0x5992a4['adapter']=_0x503b46['adapter'],_0x5992a4['bind']('isEnabled')['to'](_0x503b46),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x27d851,'isReadOnly',_0x4fd38a=>!_0x4fd38a);for(const _0x49eb69 of _0x44dd80){const _0x25a995=null===_0x49eb69['creator'];if(_0x25a995&&_0x49eb69['toVersion']===_0x49eb69['fromVersion'])continue;const _0x3335e7=_0x49eb69['toJSON']();_0x5992a4['addRevisionData'](_0x3335e7,(_0x126dfc,_0xbd110f,_0x1f1150)=>{if(_0x25a995){if(_0x1db798)_0x1db798['_update'](_0x126dfc,_0xbd110f);else{if(!_0xbd110f){const _0x318ea9=_0x1f1150['toJSON']();_0x318ea9['id']=_0x34f956(),_0x503b46['saveRevision'](_0x318ea9,_0x1f1150['toVersion'])['then'](_0x5a4afe=>{_0x1db798=_0x5a4afe;});}}}else _0x49eb69['_update'](_0x126dfc,_0xbd110f);});}}},_0xf8236a),_0x3d3270);}['_enhanceShowRevisionViewerCallback'](){const _0x11f64e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2b5386=this['editor']['plugins']['get']('RevisionTracker');this['editor']['plugins']['has']('Autosave')?await this['editor']['plugins']['get']('Autosave')['save']():await _0x2b5386['update'](),this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks']();const _0xec5b19=this['_getRevisionViewerEditorConfig']();return _0x11f64e(_0xec5b19)['then'](_0x50fc37=>{this['_viewerEditor']=_0x50fc37,this['editor']['plugins']['has']('Annotations')&&this['editor']['plugins']['get']('Annotations')['refreshVisibility']();})['catch'](_0x733fc7=>{console['error'](_0x733fc7),this['editor']['isReadOnly']=!0x1;});});}['_enhanceCloseRevisionViewerCallback'](){const _0x263ef1=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),_0x263ef1(this['_viewerEditor'])['then'](()=>{this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')&&(this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),this['editor']['plugins']['get']('Annotations')['refreshPositioning']());})));}['_showRevisionViewer'](_0x13ac28){const _0x2df1bc=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3311bf=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x26f233=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return _0x27f8ba['create'](_0x26f233,_0x13ac28)['then'](_0x582c04=>(_0x3311bf['style']['display']='block',_0x2df1bc['style']['display']='none',_0x582c04));}['_closeRevisionViewer'](_0x32a78b){const _0x220ed8=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x220ed8['style']['display']='',_0x32a78b['destroy']();}async['_restoreRevision'](_0x3e87a8){const _0x410168=this['editor'],t=_0x410168['t'],_0x514e4b=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3bc37b=_0x410168['plugins']['get']('RevisionTracker'),_0x2d9bfb=_0x514e4b['repository']['getRevision'](_0x3e87a8);let _0x42eeeb,_0x4cf68b;try{_0x42eeeb=await _0x514e4b['getRevisionData'](_0x2d9bfb);}catch(_0x5be137){return void console['error'](_0x5be137);}_0x410168['model']['change'](_0x1cb0ad=>{for(const _0x57866a of Array['from'](_0x410168['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1cb0ad['removeMarker'](_0x57866a);}),_0x514e4b['isReady']=!0x1,_0x410168['data']['set'](_0x42eeeb,{'suppressErrorInCollaboration':!0x0});const _0x9000d1=t('Restored');if(_0x2d9bfb['name'])_0x4cf68b=-0x1==_0x2d9bfb['name']['indexOf'](_0x9000d1)?_0x9000d1+':\x20'+_0x2d9bfb['name']:_0x2d9bfb['name'];else _0x4cf68b=_0x9000d1+':\x20'+(_0x2d9bfb['createdAt']['toLocaleDateString'](_0x410168['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2d9bfb['createdAt']['toLocaleTimeString'](_0x410168['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3bc37b['saveRevision']({'name':_0x4cf68b}),_0x514e4b['isReady']=!0x0,_0x410168['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}function k(_0x3a2de9,_0x1b550a,_0x3da7dd){const _0x5407cf='function'==typeof _0x3a2de9?_0x3a2de9['pluginName']||_0x3a2de9['name']:_0x3a2de9;if(_0x3da7dd['includes'](_0x5407cf))return!0x0;if(_0x3da7dd['push'](_0x5407cf),m['includes'](_0x5407cf))return!0x1;const _0x3f455d=(('function'==typeof _0x3a2de9?_0x3a2de9:_0x1b550a['has'](_0x5407cf)?_0x1b550a['get'](_0x5407cf):{})['requires']||[])['every'](_0x432e02=>k(_0x432e02,_0x1b550a,_0x3da7dd));return _0x3f455d||m['push'](_0x5407cf),_0x3f455d;}
|