@ckeditor/ckeditor5-track-changes 31.1.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/LICENSE.md +2 -2
- package/README.md +5 -2
- package/build/track-changes.js +5 -0
- package/build/translations/az.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.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/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.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/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +3 -0
- package/lang/contexts.json +1 -1
- package/lang/translations/az.po +387 -0
- package/lang/translations/cs.po +32 -32
- package/lang/translations/da.po +2 -2
- package/lang/translations/de.po +2 -2
- package/lang/translations/el.po +387 -0
- package/lang/translations/en-au.po +7 -7
- package/lang/translations/en.po +2 -2
- package/lang/translations/es.po +37 -37
- package/lang/translations/et.po +2 -2
- package/lang/translations/fr.po +2 -2
- package/lang/translations/gl.po +5 -5
- package/lang/translations/hi.po +2 -2
- package/lang/translations/hr.po +15 -15
- package/lang/translations/id.po +370 -0
- package/lang/translations/it.po +4 -4
- package/lang/translations/nl.po +2 -2
- package/lang/translations/pl.po +2 -2
- package/lang/translations/pt-br.po +4 -4
- package/lang/translations/sk.po +59 -59
- package/lang/translations/sr-latn.po +4 -4
- package/lang/translations/sr.po +4 -4
- package/lang/translations/tk.po +2 -2
- package/lang/translations/tr.po +2 -2
- package/lang/translations/zh-cn.po +2 -2
- package/lang/translations/zh.po +2 -2
- package/package.json +4 -7
- package/src/commands/acceptallsuggestionscommand.js +2 -2
- package/src/commands/acceptselectedsuggestionscommand.js +2 -2
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardallsuggestionscommand.js +2 -2
- package/src/commands/discardselectedsuggestionscommand.js +2 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.js +23 -0
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/font.js +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.js +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.js +2 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/getselectedsuggestions.js +2 -2
- package/src/utils/hashobject.js +2 -2
- package/src/utils/normalizedescription.js +2 -2
- package/src/utils/sortsuggestions.js +2 -2
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
- package/theme/integrations/horizontalline.css +0 -15
- package/theme/integrations/image.css +0 -55
- package/theme/integrations/mediaembed.css +0 -19
- package/theme/integrations/pagebreak.css +0 -15
- package/theme/integrations/table.css +0 -147
- package/theme/suggestion.css +0 -87
- package/theme/suggestionmarker.css +0 -161
package/src/trackchangesui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3c04e8}from'ckeditor5/src/core';import _0x18f2e1 from'./trackchangesediting';import _0x532981 from'@ckeditor/ckeditor5-comments/src/comments/commentsrepository';import Ct from'./ui/suggestioncontroller';import Tt from'./ui/view/suggestionthreadview';import _0xb52340 from'@ckeditor/ckeditor5-collaboration-core/src/users';import xt from'@ckeditor/ckeditor5-comments/src/annotations/editorannotations';import{Collection as Et}from'ckeditor5/src/utils';import{Model as At,SplitButtonView as Nt,createDropdown as Ut,addListToDropdown as Wt}from'ckeditor5/src/ui';import _t from'@ckeditor/ckeditor5-comments/src/utils/getdatetimeformatter';import Ot from'@ckeditor/ckeditor5-comments/src/utils/getmarkerdomelement';import Gt from'../theme/icons/track-changes.svg';import{debounce as Mt}from'lodash-es';import Pt from'@ckeditor/ckeditor5-comments/src/annotations/view/annotationview';import Vt from'@ckeditor/ckeditor5-comments/src/annotations/annotation';import qt from'@ckeditor/ckeditor5-comments/src/annotations/annotations';export default class f extends _0x3c04e8{static get['requires'](){return[qt,xt,_0x18f2e1,_0x532981,_0xb52340];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5ef2dc){super(_0x5ef2dc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_debouncedHandlers']=new Map();const _0x42a319=this['editor']['config'];_0x42a319['define']('trackChanges.SuggestionThreadView',Tt),_0x42a319['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x42a319['get']('trackChanges.disableComments');}['init'](){const _0x6f0e83=this['editor'],_0x2546a4=_0x6f0e83['plugins']['get'](_0x18f2e1),_0x18d9a2=_0x6f0e83['plugins']['get'](qt),_0x158a10=_0x6f0e83['plugins']['get'](xt),_0x50401b=_0x6f0e83['plugins']['get'](_0x532981);_0x6f0e83['ui']['componentFactory']['add']('trackChanges',_0x35eeb1=>this['_createUIButton'](_0x35eeb1)),_0x158a10['addSourceCollector'](()=>{const _0xc0277=[];for(const [_0x3a7c30,_0xa101c2]of Array['from'](this['_suggestionToController'])){const _0x57a982=_0x3a7c30['getAllAdjacentSuggestions'](),_0x112161=[];for(const _0x189242 of _0x57a982){if(!_0x189242['isInContent'])continue;if(_0x189242['isMultiRange']){_0x112161['push'](..._0x189242['getRanges']());continue;}const _0x80718c=_0x189242['getFirstRange']();if(_0x112161['length']>0x0){const _0x3233d8=_0x112161[0x0]['getJoined'](_0x80718c);if(_0x3233d8){_0x112161[0x0]=_0x3233d8;continue;}}_0x112161['push'](_0x80718c);}_0xc0277['push']([_0xa101c2['view'],_0x112161]);}return _0xc0277;}),this['listenTo'](_0x2546a4,'suggestionLoaded',(_0x19cb71,_0x19b437)=>{let _0x309be0=!0x1;const _0x8300ab=Mt(_0x1a38ba=>{_0x309be0||_0x1a38ba?_0x309be0&&_0x1a38ba&&(this['_destroyController'](_0x19b437),_0x158a10['refreshSelectedViews'](),_0x309be0=!0x1):(this['_initializeController'](_0x19b437),_0x158a10['refreshSelectedViews'](),_0x309be0=!0x0);},0xa);this['_debouncedHandlers']['set'](_0x19b437,_0x8300ab),this['listenTo'](_0x19b437,'change:previous',(_0x35e312,_0x3ffd59,_0x336e80,_0x248d30)=>{_0x19b437['isInContent']&&(null==_0x336e80?(this['_updateController'](_0x248d30['head']),_0x8300ab(!0x1)):(this['_updateController'](_0x336e80['head']),_0x8300ab(!0x0)));}),null===_0x19b437['previous']?_0x8300ab(!0x1):this['_updateController'](_0x19b437['head']);}),this['listenTo'](_0x2546a4,'suggestionUnloaded',(_0x56a522,_0x3ba85a,_0x26ef90)=>{this['stopListening'](_0x3ba85a,'change:previous'),this['_debouncedHandlers']['get'](_0x3ba85a)['cancel'](),this['_debouncedHandlers']['delete'](_0x3ba85a);const _0x19904b=_0x26ef90?_0x26ef90['head']:_0x3ba85a,_0x37480c=this['_suggestionToController']['get'](_0x19904b);null!==_0x26ef90&&this['_updateController'](_0x19904b),null===_0x26ef90&&_0x37480c&&this['_destroyController'](_0x3ba85a);}),this['listenTo'](_0x2546a4,'suggestionChanged',(_0x551ab8,_0x2e4ec7)=>{this['_updateController'](_0x2e4ec7);}),this['listenTo'](_0x18d9a2,'change:activeAnnotations',(_0x1b3321,_0x2f7cb5,_0x2f5579)=>{const _0x38ceba=Array['from'](_0x2f5579,_0x212f65=>_0x212f65['innerView'])['filter'](_0x554693=>this['_viewToController']['has'](_0x554693)),_0x4288ea=[];for(const _0x469dcf of _0x38ceba){const _0x2ca81c=this['_viewToController']['get'](_0x469dcf)['model']['getAllAdjacentSuggestions']();_0x4288ea['push'](..._0x2ca81c['reduce']((_0x5b88a9,_0x8d3b76)=>[..._0x5b88a9,..._0x8d3b76['getMarkerNames']()],[]));}_0x2546a4['activeMarkers']=_0x4288ea;}),this['listenTo'](_0x50401b,'addComment',(_0x1929a,{threadId:_0x442e10,isFromAdapter:_0x3cbeaa})=>{if(_0x3cbeaa||!_0x2546a4['hasSuggestion'](_0x442e10))return;const _0x28cdee=_0x2546a4['getSuggestion'](_0x442e10);this['_suggestionToController']['get'](_0x28cdee)['view']['focus']();},{'priority':'lowest'});}['_createUIButton'](_0x1df57d){const _0x2fdbcc=Ut(_0x1df57d,Nt),_0x36605f=this['editor']['commands']['get']('trackChanges'),{t:t}=this['editor'];_0x2fdbcc['buttonView']['set']({'tooltip':t('Track\x20changes'),'label':t('Track\x20changes'),'icon':Gt}),_0x2fdbcc['buttonView']['bind']('isOn')['to'](_0x36605f,'value'),_0x2fdbcc['buttonView']['on']('execute',()=>_0x36605f['execute']());const _0x22e675=new Et(),_0x21de81=[{'type':'switchbutton','model':{'withText':!0x0,'label':t('Track\x20changes'),'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x2f2b86 of _0x21de81){const _0x196c50={'type':_0x2f2b86['type']};if(_0x2f2b86['model']){const _0x431e1a=new At(_0x2f2b86['model']),_0x4b7a2f=this['editor']['commands']['get'](_0x431e1a['commandName']);_0x431e1a['bind']('isOn','isEnabled')['to'](_0x4b7a2f,'value','isEnabled'),_0x196c50['model']=_0x431e1a;}_0x22e675['add'](_0x196c50);}Wt(_0x2fdbcc,_0x22e675);const _0xc8f7e9=_0x21de81['filter'](_0x657c92=>null!=_0x657c92['model'])['map'](_0x5027b7=>this['editor']['commands']['get'](_0x5027b7['model']['commandName']));return _0x2fdbcc['buttonView']['actionView']['unbind']('isEnabled'),_0x2fdbcc['buttonView']['arrowView']['unbind']('isEnabled'),_0x2fdbcc['buttonView']['actionView']['bind']('isEnabled')['to'](_0x36605f,'isEnabled'),_0x2fdbcc['buttonView']['arrowView']['bind']('isEnabled')['toMany'](_0xc8f7e9,'isEnabled',(..._0x3fb4e1)=>_0x3fb4e1['some'](_0x51f3c1=>_0x51f3c1)),_0x2fdbcc['on']('execute',_0x53f9a9=>this['editor']['execute'](_0x53f9a9['source']['commandName'])),_0x2fdbcc;}['_initializeController'](_0x5d6e61){const _0x42f055=this['editor'],_0x968f43=_0x42f055['config'],_0x5ec3ad=_0x42f055['plugins']['get'](qt),_0x4c9f92=_0x5d6e61['getAllAdjacentSuggestions']()['filter'](_0x56218e=>_0x56218e['isInContent']),_0x5a749b=_0x42f055['plugins']['get']('Users')['me'],_0x3c17d0=_0x42f055['commands']['get']('acceptSuggestion'),_0xf851b=_0x42f055['commands']['get']('discardSuggestion'),_0x36eebc=new(0x0,(_0x968f43['get']('trackChanges'))['SuggestionThreadView'])(_0x42f055['locale'],_0x5d6e61,_0x5a749b,{'disableComments':this['_disableComments'],'editorConfig':_0x968f43['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x968f43['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x968f43['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x968f43['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_t(_0x968f43['get']('locale')),'CommentView':_0x968f43['get']('comments')['CommentView']}),_0x548a28=new Ct(_0x5d6e61,_0x36eebc,_0x3c17d0,_0xf851b);_0x36eebc['descriptionParts']=_0x42f055['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x4c9f92),this['_suggestionToController']['set'](_0x5d6e61,_0x548a28),this['_viewToController']['set'](_0x36eebc,_0x548a28);const _0x5db46b=new Pt(this['editor']['locale'],_0x36eebc);_0x5db46b['bind']('isDirty')['to'](_0x36eebc,'isDirty'),_0x5db46b['bind']('length')['to'](_0x36eebc),_0x5db46b['bind']('type')['to'](_0x36eebc,'type',_0x493900=>'suggestion-'+_0x493900);const _0x4cc596=new Vt({'view':_0x5db46b,'target':()=>{const _0x2a3bae=_0x4c9f92[0x0]['getFirstMarker']();if(!_0x2a3bae)return null;const _0x5a1581=_0x2a3bae['getRange']()['getContainedElement']();return _0x5a1581&&!_0x42f055['editing']['mapper']['toViewElement'](_0x5a1581)?null:Ot(_0x42f055['editing'],_0x2a3bae)||null;},'type':()=>'suggestion-'+_0x548a28['view']['type']});_0x5ec3ad['add'](_0x4cc596);const _0x35de61=_0x42f055['plugins']['get']('PendingActions');let _0x5c0ede;_0x36eebc['on']('change:isDirty',(_0x50fb78,_0xfa72d5,_0x100153)=>{if(_0x100153){const t=this['editor']['locale']['t'];_0x5c0ede=_0x35de61['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));}else _0x35de61['remove'](_0x5c0ede),_0x5c0ede=null;});}['_destroyController'](_0x580ca){const _0x51a444=this['editor']['plugins']['get']('Annotations'),_0x1866cb=this['_suggestionToController']['get'](_0x580ca),_0x5ab667=_0x1866cb['view'],_0x4d9021=_0x51a444['getByInnerView'](_0x5ab667);_0x51a444['remove'](_0x4d9021),this['_suggestionToController']['delete'](_0x580ca),this['_viewToController']['delete'](_0x5ab667),_0x1866cb['destroy'](),_0x5ab667['destroy']();}['_updateController'](_0x2acd56){if(!_0x2acd56['isInContent']||!this['_suggestionToController']['has'](_0x2acd56))return;const _0x4163b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16536b=this['_suggestionToController']['get'](_0x2acd56),_0x49e7d0=_0x2acd56['getAllAdjacentSuggestions']();_0x16536b['view']['descriptionParts']=_0x4163b6['_descriptionFactory']['getDescriptions'](_0x49e7d0);}['destroy'](){super['destroy']();for(const _0x426cf5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x426cf5);for(const _0x4a24c1 of this['_debouncedHandlers']['values']())_0x4a24c1['cancel']();this['_debouncedHandlers']['clear']();}}
|
|
23
|
+
import{Plugin as _0x5e89db}from'ckeditor5/src/core';import{Collection as Ct}from'ckeditor5/src/utils';import{Model as bt,SplitButtonView as Tt,createDropdown as At,addListToDropdown as xt}from'ckeditor5/src/ui';import{Users as _0x3b50b6,getDateTimeFormatter as Et,getMarkerDomElement as St}from'ckeditor5-collaboration/src/collaboration-core';import _0x3fab49 from'./trackchangesediting';import vt from'./ui/suggestioncontroller';import Nt from'./ui/view/suggestionthreadview';import It from'../theme/icons/track-changes.svg';import{debounce as Dt}from'lodash-es';export default class m extends _0x5e89db{static get['requires'](){return[_0x3fab49,_0x3b50b6,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1228e6){super(_0x1228e6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_debouncedHandlers']=new Map();const _0x2f36bc=this['editor']['config'];_0x2f36bc['define']('trackChanges.SuggestionThreadView',Nt),_0x2f36bc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2f36bc['get']('trackChanges.disableComments');}['init'](){const _0x2c8a14=this['editor'],_0x37fb78=_0x2c8a14['plugins']['get'](_0x3fab49),_0xea2eab=_0x2c8a14['plugins']['get']('Annotations'),_0xb6310b=_0x2c8a14['plugins']['get']('EditorAnnotations'),_0x5a27f3=_0x2c8a14['plugins']['get']('CommentsRepository');_0x2c8a14['ui']['componentFactory']['add']('trackChanges',_0x301877=>this['_createUIButton'](_0x301877)),_0xb6310b['addSourceCollector'](()=>{const _0x2bde2b=[];for(const [_0x292087,_0x1d68a0]of Array['from'](this['_suggestionToController'])){const _0x1d83e6=_0x292087['getAllAdjacentSuggestions'](),_0x127d60=[];for(const _0x3e0c3e of _0x1d83e6){if(!_0x3e0c3e['isInContent'])continue;if(_0x3e0c3e['isMultiRange']){_0x127d60['push'](..._0x3e0c3e['getRanges']());continue;}const _0xa30520=_0x3e0c3e['getFirstRange']();if(_0x127d60['length']>0x0){const _0xddc0af=_0x127d60[0x0]['getJoined'](_0xa30520);if(_0xddc0af){_0x127d60[0x0]=_0xddc0af;continue;}}_0x127d60['push'](_0xa30520);}_0x2bde2b['push']([_0x1d68a0['view'],_0x127d60]);}return _0x2bde2b;}),this['listenTo'](_0x37fb78,'suggestionLoaded',(_0x45bc41,_0x8ad039)=>{let _0x3cab0b=!0x1;const _0x420916=Dt(_0x2b5334=>{_0x3cab0b||_0x2b5334?_0x3cab0b&&_0x2b5334&&(this['_destroyController'](_0x8ad039),_0xb6310b['refreshSelectedViews'](),_0x3cab0b=!0x1):(this['_initializeController'](_0x8ad039),_0xb6310b['refreshSelectedViews'](),_0x3cab0b=!0x0);},0xa);this['_debouncedHandlers']['set'](_0x8ad039,_0x420916),this['listenTo'](_0x8ad039,'change:previous',(_0x32203c,_0x499b6d,_0x245565,_0x356454)=>{_0x8ad039['isInContent']&&(null==_0x245565?(this['_updateController'](_0x356454['head']),_0x420916(!0x1)):(this['_updateController'](_0x245565['head']),_0x420916(!0x0)));}),null===_0x8ad039['previous']?_0x420916(!0x1):this['_updateController'](_0x8ad039['head']);}),this['listenTo'](_0x37fb78,'suggestionUnloaded',(_0x27d8d4,_0x371a13,_0x5cdcbb)=>{this['stopListening'](_0x371a13,'change:previous'),this['_debouncedHandlers']['get'](_0x371a13)['cancel'](),this['_debouncedHandlers']['delete'](_0x371a13);const _0xe7c268=_0x5cdcbb?_0x5cdcbb['head']:_0x371a13,_0x1c2284=this['_suggestionToController']['get'](_0xe7c268);null!==_0x5cdcbb&&this['_updateController'](_0xe7c268),null===_0x5cdcbb&&_0x1c2284&&this['_destroyController'](_0x371a13);}),this['listenTo'](_0x37fb78,'suggestionChanged',(_0x1e68ab,_0x5dc833)=>{this['_updateController'](_0x5dc833);}),this['listenTo'](_0xea2eab,'change:activeAnnotations',(_0x403884,_0x1cf42f,_0x604904)=>{const _0x206fd9=Array['from'](_0x604904,_0x5c5a03=>_0x5c5a03['innerView'])['filter'](_0x26090f=>this['_viewToController']['has'](_0x26090f)),_0x4027b7=[];for(const _0x20ea47 of _0x206fd9){const _0x47d662=this['_viewToController']['get'](_0x20ea47)['model']['getAllAdjacentSuggestions']();_0x4027b7['push'](..._0x47d662['reduce']((_0x1d8853,_0x8c610)=>[..._0x1d8853,..._0x8c610['getMarkerNames']()],[]));}_0x37fb78['activeMarkers']=_0x4027b7;}),this['listenTo'](_0x5a27f3,'addComment',(_0x2726fd,{threadId:_0x4dd89c,isFromAdapter:_0x4b4219})=>{if(_0x4b4219||!_0x37fb78['hasSuggestion'](_0x4dd89c))return;const _0x2a5da1=_0x37fb78['getSuggestion'](_0x4dd89c);this['_suggestionToController']['get'](_0x2a5da1)['view']['focus']();},{'priority':'lowest'});}['_createUIButton'](_0x52ca0e){const _0x5e6349=At(_0x52ca0e,Tt),_0x255450=this['editor']['commands']['get']('trackChanges'),{t:t}=this['editor'];_0x5e6349['buttonView']['set']({'tooltip':t('Track\x20changes'),'label':t('Track\x20changes'),'icon':It}),_0x5e6349['buttonView']['bind']('isOn')['to'](_0x255450,'value'),_0x5e6349['buttonView']['on']('execute',()=>_0x255450['execute']());const _0x4c5a83=new Ct(),_0x56c198=[{'type':'switchbutton','model':{'withText':!0x0,'label':t('Track\x20changes'),'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x17d5c3 of _0x56c198){const _0x17655c={'type':_0x17d5c3['type']};if(_0x17d5c3['model']){const _0x3feae1=new bt(_0x17d5c3['model']),_0x4a301a=this['editor']['commands']['get'](_0x3feae1['commandName']);_0x3feae1['bind']('isOn','isEnabled')['to'](_0x4a301a,'value','isEnabled'),_0x17655c['model']=_0x3feae1;}_0x4c5a83['add'](_0x17655c);}xt(_0x5e6349,_0x4c5a83);const _0xcde064=_0x56c198['filter'](_0x5d0124=>null!=_0x5d0124['model'])['map'](_0x590b9b=>this['editor']['commands']['get'](_0x590b9b['model']['commandName']));return _0x5e6349['buttonView']['actionView']['unbind']('isEnabled'),_0x5e6349['buttonView']['arrowView']['unbind']('isEnabled'),_0x5e6349['buttonView']['actionView']['bind']('isEnabled')['to'](_0x255450,'isEnabled'),_0x5e6349['buttonView']['arrowView']['bind']('isEnabled')['toMany'](_0xcde064,'isEnabled',(..._0x3b1e32)=>_0x3b1e32['some'](_0x50a738=>_0x50a738)),_0x5e6349['on']('execute',_0x3822d9=>this['editor']['execute'](_0x3822d9['source']['commandName'])),_0x5e6349;}['_initializeController'](_0xca7a5e){const _0x383f48=this['editor'],_0x47f409=_0x383f48['config'],_0x729e09=_0x383f48['plugins']['get']('Annotations'),_0x3d8a11=_0x383f48['plugins']['get']('CommentsRepository'),_0x48f11f=_0xca7a5e['getAllAdjacentSuggestions']()['filter'](_0x4fc217=>_0x4fc217['isInContent']),_0x3ba3a7=_0x383f48['plugins']['get'](_0x3b50b6)['me'],_0x29dde8=_0x383f48['commands']['get']('acceptSuggestion'),_0x5c072f=_0x383f48['commands']['get']('discardSuggestion'),_0x51a8a5=_0x47f409['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x449d90,CommentThreadInputView:_0x5bc04f}=_0x383f48['plugins']['get']('CommentsUI'),_0x3c8824=new _0x51a8a5(_0x383f48['locale'],_0xca7a5e,_0x3ba3a7,{'disableComments':this['_disableComments'],'editorConfig':_0x47f409['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x47f409['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x47f409['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x47f409['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':Et(_0x47f409['get']('locale')),'CommentView':_0x47f409['get']('comments')['CommentView'],'CommentsListView':_0x449d90,'CommentThreadInputView':_0x5bc04f}),_0x26144f=_0x3d8a11['createCommentThreadController'](_0xca7a5e['commentThread'],_0x3c8824),_0x4538e1=new vt(_0xca7a5e,_0x3c8824,_0x29dde8,_0x5c072f,_0x26144f);_0x3c8824['descriptionParts']=_0x383f48['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x48f11f),this['_suggestionToController']['set'](_0xca7a5e,_0x4538e1),this['_viewToController']['set'](_0x3c8824,_0x4538e1);const _0x3c9481=_0x729e09['createAnnotationView'](this['editor']['locale'],_0x3c8824);_0x3c9481['bind']('isDirty')['to'](_0x3c8824,'isDirty'),_0x3c9481['bind']('length')['to'](_0x3c8824),_0x3c9481['bind']('type')['to'](_0x3c8824,'type',_0x58086b=>'suggestion-'+_0x58086b);const _0x8ae2db=_0x729e09['createAnnotation']({'view':_0x3c9481,'target':()=>{const _0x23411c=_0x48f11f[0x0]['getFirstMarker']();if(!_0x23411c)return null;const _0x281cb1=_0x23411c['getRange']()['getContainedElement']();return _0x281cb1&&!_0x383f48['editing']['mapper']['toViewElement'](_0x281cb1)?null:St(_0x383f48['editing'],_0x23411c)||null;},'type':()=>'suggestion-'+_0x4538e1['view']['type']});_0x729e09['add'](_0x8ae2db);const _0x32aebd=_0x383f48['plugins']['get']('PendingActions');let _0x29b347;_0x3c8824['on']('change:isDirty',(_0x285c58,_0xe34fd7,_0x327154)=>{if(_0x327154){const t=this['editor']['locale']['t'];_0x29b347=_0x32aebd['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));}else _0x32aebd['remove'](_0x29b347),_0x29b347=null;});}['_destroyController'](_0x346ccf){const _0x2842ff=this['editor']['plugins']['get']('Annotations'),_0x47f700=this['_suggestionToController']['get'](_0x346ccf),_0x5e15e9=_0x47f700['view'],_0x435c00=_0x2842ff['getByInnerView'](_0x5e15e9);_0x435c00&&_0x2842ff['remove'](_0x435c00),this['_suggestionToController']['delete'](_0x346ccf),this['_viewToController']['delete'](_0x5e15e9),_0x47f700['destroy'](),_0x5e15e9['destroy']();}['_updateController'](_0x2b130a){if(!_0x2b130a['isInContent']||!this['_suggestionToController']['has'](_0x2b130a))return;const _0xe9c78a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e12e4=this['_suggestionToController']['get'](_0x2b130a),_0x5af5be=_0x2b130a['getAllAdjacentSuggestions']();_0x3e12e4['view']['descriptionParts']=_0xe9c78a['_descriptionFactory']['getDescriptions'](_0x5af5be);}['destroy'](){super['destroy']();for(const _0x5687ee of this['_suggestionToController']['keys']())this['_destroyController'](_0x5687ee);for(const _0x558e54 of this['_debouncedHandlers']['values']())_0x558e54['cancel']();this['_debouncedHandlers']['clear']();}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x56eb=['commentThreadController','_acceptCommand','destroy','discardSuggestion','model','unbind','view','execute','isEnabled','acceptSuggestion','_discardCommand','bind'];(function(_0x133ff1,_0x56ebdf){var _0x4bad82=function(_0x3f4b0c){while(--_0x3f4b0c){_0x133ff1['push'](_0x133ff1['shift']());}};_0x4bad82(++_0x56ebdf);}(_0x56eb,0xb4));var _0x4bad=function(_0x133ff1,_0x56ebdf){_0x133ff1=_0x133ff1-0x0;var _0x4bad82=_0x56eb[_0x133ff1];return _0x4bad82;};import{ObservableMixin as _0x7a13f0,mix as _0x4678c0}from'ckeditor5/src/utils';export default class vt{constructor(_0x16dd5f,_0x313b25,_0x700be6,_0x521258,_0x4299d7){this[_0x4bad('0x4')]=_0x16dd5f,this[_0x4bad('0x6')]=_0x313b25,this[_0x4bad('0x0')]=_0x4299d7,this[_0x4bad('0x1')]=_0x700be6,this['_discardCommand']=_0x521258,this[_0x4bad('0x6')][_0x4bad('0xb')](_0x4bad('0x8'))['to'](this[_0x4bad('0x1')]),this['listenTo'](_0x313b25,_0x4bad('0x9'),()=>this[_0x4bad('0x9')]()),this['listenTo'](_0x313b25,_0x4bad('0x3'),()=>this[_0x4bad('0x3')]());}[_0x4bad('0x9')](){this[_0x4bad('0x1')][_0x4bad('0x7')](this[_0x4bad('0x4')]['id']);}[_0x4bad('0x3')](){this[_0x4bad('0xa')][_0x4bad('0x7')](this[_0x4bad('0x4')]['id']);}[_0x4bad('0x2')](){this[_0x4bad('0x6')][_0x4bad('0x5')](_0x4bad('0x8')),this['stopListening'](),this[_0x4bad('0x0')][_0x4bad('0x2')]();}}_0x4678c0(vt,_0x7a13f0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52ad=['showInput','addComment','fire','_createCommentThreadInputView','commentInputView','delegate','commentThreadInputView','bind','disableComments','commentThread','_createCommentViews','isEnabled','submit','editorConfig','destroy','removeComment','_localUser','focus','_config','set','value','element','isReadOnly','descriptionParts','isDirty','isActive','disabledSubmit','length','assign','commentsListView','createdAt','_model','locale'];(function(_0xe2be8d,_0x52ad71){const _0x331332=function(_0x216139){while(--_0x216139){_0xe2be8d['push'](_0xe2be8d['shift']());}};_0x331332(++_0x52ad71);}(_0x52ad,0x9f));const _0x3313=function(_0xe2be8d,_0x52ad71){_0xe2be8d=_0xe2be8d-0x0;let _0x331332=_0x52ad[_0xe2be8d];return _0x331332;};import{View as _0xb7e7f2}from'ckeditor5/src/ui';export default class Ht extends _0xb7e7f2{constructor(_0x32e8af,_0x3de91,_0x2f15fc,_0x13c9b2){super(_0x32e8af),this[_0x3313('0x2')]=null,this[_0x3313('0xc')]=null,this[_0x3313('0x19')](_0x3313('0x1f'),!0x1),this[_0x3313('0x19')](_0x3313('0x3'),_0x3de91[_0x3313('0x3')]),this[_0x3313('0xd')](_0x3313('0x3'))['to'](_0x3de91),this[_0x3313('0x19')](_0x3313('0x1d'),[]),this[_0x3313('0x19')](_0x3313('0x1e'),!0x1),this[_0x3313('0x19')](_0x3313('0x11'),!0x1),this[_0x3313('0x4')]=_0x3de91,this[_0x3313('0x16')]=_0x2f15fc,this[_0x3313('0x18')]=_0x13c9b2,_0x13c9b2[_0x3313('0xe')]?this['set']('length',0x1):this[_0x3313('0x10')]();}[_0x3313('0x17')](){this[_0x3313('0x1b')][_0x3313('0x17')]();}[_0x3313('0x14')](){this[_0x3313('0x1e')]=!0x1,this['commentsListView']&&this[_0x3313('0x2')][_0x3313('0x14')](),this[_0x3313('0xc')]&&this[_0x3313('0xc')][_0x3313('0x14')](),super[_0x3313('0x14')]();}[_0x3313('0x10')](){const {CommentsListView:_0x21ab12}=this[_0x3313('0x18')];this['commentsListView']=new _0x21ab12(this[_0x3313('0x5')],this[_0x3313('0x4')][_0x3313('0xf')],Object[_0x3313('0x1')]({'CommentView':this[_0x3313('0x18')]['CommentView']},this['_config'])),this[_0x3313('0x2')][_0x3313('0xb')]('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this[_0x3313('0x2')][_0x3313('0xd')](_0x3313('0x1f'))['to'](this),this['set'](_0x3313('0x0'),this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],_0x3313('0x0'),_0x104965=>_0x104965+0x1),this[_0x3313('0xc')]=this[_0x3313('0x9')](),this['on'](_0x3313('0x15'),()=>this[_0x3313('0x17')]()),this['bind'](_0x3313('0x1e'))['to'](this[_0x3313('0x2')],'hasDirtyComment',this[_0x3313('0xc')][_0x3313('0xa')],_0x3313('0x1a'),(_0x28a4d6,_0xd3de24)=>_0x28a4d6||!!_0xd3de24);}[_0x3313('0x9')](){const {CommentThreadInputView:_0x212e34}=this['_config'],_0x57c845=new _0x212e34(this[_0x3313('0x5')],this[_0x3313('0x16')],this[_0x3313('0x18')][_0x3313('0x13')]),_0x53ef2d=_0x57c845[_0x3313('0xa')];return _0x57c845[_0x3313('0xd')](_0x3313('0x6'))['to'](this,'isActive',this[_0x3313('0x4')][_0x3313('0xf')],_0x3313('0x1c'),_0x53ef2d,'value',(_0x23c7bb,_0x8fbef0,_0x37eb51)=>!!_0x37eb51||_0x23c7bb&&!_0x8fbef0),_0x53ef2d['on'](_0x3313('0x12'),(_0x960f1a,_0x4b6c5f)=>{this[_0x3313('0x8')](_0x3313('0x7'),_0x4b6c5f),_0x53ef2d['editor']['setData']('');}),_0x53ef2d['on']('cancel',()=>this[_0x3313('0x17')]()),_0x53ef2d[_0x3313('0xd')](_0x3313('0x20'))['to'](this['_model'][_0x3313('0xf')],_0x3313('0x1c')),_0x57c845;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
23
|
+
import Ht from'./basesuggestionthreadview';import{ButtonView as Jt}from'ckeditor5/src/ui';import{icons as Kt}from'ckeditor5/src/core';import{trimHtml as Ut,UserView as Xt}from'ckeditor5-collaboration/src/collaboration-core';export default class Nt extends Ht{constructor(_0x19be61,_0x31a6ca,_0x15849d,_0x113d1b){super(_0x19be61,_0x31a6ca,_0x15849d,_0x113d1b);const {t:t}=_0x19be61;this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1a9dd8=>_0x1a9dd8&&_0x1a9dd8[0x0]?_0x1a9dd8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x22c71c,_0x46661e)=>{let _0x2787fd='';for(const _0x27e7bc of _0x22c71c)_0x2787fd+='<p>'+Yt(_0x27e7bc['content'],_0x27e7bc['color'])+'</p>';return _0x46661e?_0x2787fd:Ut(_0x2787fd,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](t('Accept\x20suggestion'),Kt['check'],'ck-suggestion--accept','acceptSuggestion'),this['discardButton']=this['_createButton'](t('Discard\x20suggestion'),Kt['cancel'],'ck-suggestion--discard','discardSuggestion'),this['userView']=new Xt(_0x19be61,this['_model']['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5bc5e9=this['bindTemplate'],_0x383de9={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5bc5e9['if']('isActive','ck-suggestion-wrapper--active'),_0x5bc5e9['to']('type',_0x3ea1f5=>'ck-suggestion-'+_0x3ea1f5),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x5bc5e9['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5bc5e9['to']('createdAt',_0x10df94=>this['_config']['formatDateTime'](_0x10df94))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}]}]}]};return this['commentsListView']&&this['commentThreadInputView']&&_0x383de9['children']['push'](this['commentsListView'],this['commentThreadInputView']),_0x383de9;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4594d8,_0x1f1615,_0x571569)=>{this['_descriptionElement']['innerHTML']=_0x571569;});}['_createButton'](_0x12a0b0,_0x5d9be8,_0x1bf1c0,_0x8631de){const _0x3600e2=new Jt(this['locale']);return _0x3600e2['set']({'label':_0x12a0b0,'icon':_0x5d9be8,'tooltip':!0x0}),_0x3600e2['extendTemplate']({'attributes':{'class':_0x1bf1c0}}),_0x3600e2['on']('execute',()=>{this['fire'](_0x8631de,this['_model']['id']);}),_0x3600e2['bind']('isEnabled')['to'](this),_0x3600e2;}}function Yt(_0x3c1121,_0xaa85ba){let _0x3fe0dd='';return _0x3fe0dd+=_0x3c1121['split']('*')['map']((_0x41cfe8,_0x47d431)=>_0x47d431%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x41cfe8)+'</span>':Zt(_0x41cfe8))['join'](''),_0xaa85ba&&(_0x3fe0dd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xaa85ba['value']+'\x22\x20title=\x22'+_0xaa85ba['title']+'\x22></span>'),_0x3fe0dd;}function Zt(_0x3cef22){const _0x292b05=document['createElement']('span');return _0x292b05['innerText']=_0x3cef22,_0x292b05['innerHTML'];}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4e6a=['getRange','from','isTouching','start','isCollapsed','add','isIntersecting','isInContent','getRanges','end'];(function(_0x24651e,_0x4e6a1b){const _0x34470e=function(_0x2397ef){while(--_0x2397ef){_0x24651e['push'](_0x24651e['shift']());}};_0x34470e(++_0x4e6a1b);}(_0x4e6a,0xfd));const _0x3447=function(_0x24651e,_0x4e6a1b){_0x24651e=_0x24651e-0x0;let _0x34470e=_0x4e6a[_0x24651e];return _0x34470e;};export default function jt(_0x158ddb,_0x1581ec){const _0x36f9b5=Array[_0x3447('0x8')](_0x158ddb[_0x3447('0x5')]()),_0x4d4bc4=new Set();for(const _0x25d116 of _0x1581ec)if(_0x25d116[_0x3447('0x4')])for(const _0x289bc1 of _0x36f9b5)for(const _0x1f784f of _0x25d116['getMarkers']()){const _0x56d108=_0x1f784f[_0x3447('0x7')]();(_0x289bc1[_0x3447('0x3')](_0x56d108)||_0x158ddb[_0x3447('0x1')]&&!_0x25d116['isMultiRange']&&_0x25d116['next']&&_0x56d108[_0x3447('0x6')][_0x3447('0x9')](_0x289bc1[_0x3447('0x0')]))&&_0x4d4bc4[_0x3447('0x2')](_0x25d116);}return _0x4d4bc4;}
|
package/src/utils/hashobject.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bf8=['number','isArray','charCodeAt','sort','sign','keys','object','toString','string','boolean'];(function(_0x1c768f,_0x4bf823){const _0x2c32cc=function(_0x57a956){while(--_0x57a956){_0x1c768f['push'](_0x1c768f['shift']());}};_0x2c32cc(++_0x4bf823);}(_0x4bf8,0xdb));const _0x2c32=function(_0x1c768f,_0x4bf823){_0x1c768f=_0x1c768f-0x0;let _0x2c32cc=_0x4bf8[_0x1c768f];return _0x2c32cc;};export default function ft(_0x354542){let _0x91715d=0x0,_0x4a531a=0x0;for(const _0x4a4790 of ye(_0x354542))_0x91715d=(_0x91715d<<0x5)-_0x91715d+_0x4a4790,_0x91715d&=_0x91715d,[_0x91715d,_0x4a531a]=[_0x4a531a,_0x91715d];return ue(_0x91715d)+ue(_0x4a531a);}function*fe(_0x35e387){_0x35e387?_0x2c32('0x0')==typeof _0x35e387?yield 0x1:Array[_0x2c32('0x2')](_0x35e387)?yield*function*(_0x5e640c){for(const _0x15ac89 of _0x5e640c)yield*fe(_0x15ac89);}(_0x35e387):_0x2c32('0x7')==typeof _0x35e387?yield*ye(_0x35e387):_0x2c32('0x9')==typeof _0x35e387?yield*de(_0x35e387):_0x2c32('0x1')==typeof _0x35e387&&(yield _0x35e387):yield 0x0;}function*ye(_0x11717b){if(yield ce('{'),_0x11717b){const _0xef8428=Object[_0x2c32('0x6')](_0x11717b)[_0x2c32('0x4')]();for(const _0x511021 of _0xef8428){yield*de(_0x511021),yield ce(':');const _0xb2480a=_0x11717b[_0x511021];yield*fe(_0xb2480a);}}yield ce('}');}function*de(_0x43a5f4){yield ce('\x22');for(const _0x2b4d30 of _0x43a5f4)yield ce(_0x2b4d30);yield ce('\x22');}function ce(_0xb3c291){return _0xb3c291[_0x2c32('0x3')](0x0);}function ue(_0x4d2b9e){return(_0x4d2b9e*=Math[_0x2c32('0x5')](_0x4d2b9e))[_0x2c32('0x8')](0x24);}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x414d=['content','replace','color','map','\x20[color\x20','value','isArray','type','join'];(function(_0x25598e,_0x414d0e){const _0x36d004=function(_0x8e6d3d){while(--_0x8e6d3d){_0x25598e['push'](_0x25598e['shift']());}};_0x36d004(++_0x414d0e);}(_0x414d,0x101));const _0x36d0=function(_0x25598e,_0x414d0e){_0x25598e=_0x25598e-0x0;let _0x36d004=_0x414d[_0x25598e];return _0x36d004;};export function normalizeDescription(_0x316439){return Array[_0x36d0('0x1')](_0x316439)||(_0x316439=[_0x316439]),_0x316439[_0x36d0('0x7')](_0x2f9466=>{const _0xf44d6a=_0x2f9466[_0x36d0('0x4')][_0x36d0('0x5')](/\*/g,''),_0x5666cb=_0x2f9466[_0x36d0('0x6')]?_0x36d0('0x8')+_0x2f9466[_0x36d0('0x6')][_0x36d0('0x0')]+']':'';return'['+_0x2f9466[_0x36d0('0x2')]+']\x20'+_0xf44d6a+_0x5666cb;})[_0x36d0('0x3')](';\x20');}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2016 -
|
|
2
|
+
* Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3f40=['deletion','type'];(function(_0x272756,_0x3f40c0){var _0x4e147b=function(_0x4d046e){while(--_0x4d046e){_0x272756['push'](_0x272756['shift']());}};_0x4e147b(++_0x3f40c0);}(_0x3f40,0x108));var _0x4e14=function(_0x272756,_0x3f40c0){_0x272756=_0x272756-0x0;var _0x4e147b=_0x3f40[_0x272756];return _0x4e147b;};export default function ts(_0x4a521d){return _0x4a521d['sort']((_0x387af5,_0xd35f41)=>_0x4e14('0x0')==_0x387af5[_0x4e14('0x1')]&&_0x4e14('0x0')!=_0xd35f41[_0x4e14('0x1')]?-0x1:'deletion'!=_0x387af5[_0x4e14('0x1')]&&_0x4e14('0x0')==_0xd35f41['type']?0x1:0x0);}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
5
5
|
all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
6
6
|
|
|
7
|
-
Copyright (c) 2003-
|
|
7
|
+
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
5
5
|
all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
6
6
|
|
|
7
|
-
Copyright (c) 2003-
|
|
7
|
+
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
5
5
|
all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
6
6
|
|
|
7
|
-
Copyright (c) 2003-
|
|
7
|
+
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
8
8
|
|
|
9
9
|
!-->
|
|
10
10
|
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line {
|
|
2
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
3
|
-
|
|
4
|
-
&.ck-suggestion-marker--active {
|
|
5
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line {
|
|
10
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
11
|
-
|
|
12
|
-
&.ck-suggestion-marker--active {
|
|
13
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
.ck-content .ck-suggestion-marker-deletion.ck-widget.image {
|
|
2
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
3
|
-
|
|
4
|
-
& img {
|
|
5
|
-
opacity: 0.6;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
& figcaption {
|
|
9
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&.ck-suggestion-marker--active {
|
|
13
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
14
|
-
|
|
15
|
-
& figcaption {
|
|
16
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ck-content .ck-suggestion-marker-insertion.ck-widget.image {
|
|
22
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
23
|
-
|
|
24
|
-
& figcaption {
|
|
25
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.ck-suggestion-marker--active {
|
|
29
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
30
|
-
|
|
31
|
-
& figcaption {
|
|
32
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.ck-content .ck-widget.image > figcaption {
|
|
38
|
-
&.ck-suggestion-marker-deletion {
|
|
39
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
40
|
-
border: none;
|
|
41
|
-
|
|
42
|
-
&.ck-suggestion-marker--active {
|
|
43
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&.ck-suggestion-marker-insertion {
|
|
48
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
49
|
-
border: none;
|
|
50
|
-
|
|
51
|
-
&.ck-suggestion-marker--active {
|
|
52
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
.ck-content .ck-suggestion-marker-deletion.ck-widget.media {
|
|
2
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
3
|
-
|
|
4
|
-
& .ck-media__wrapper {
|
|
5
|
-
opacity: 0.6;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
&.ck-suggestion-marker--active {
|
|
9
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ck-content .ck-suggestion-marker-insertion.ck-widget.media {
|
|
14
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
15
|
-
|
|
16
|
-
&.ck-suggestion-marker--active {
|
|
17
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break {
|
|
2
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
3
|
-
|
|
4
|
-
&.ck-suggestion-marker--active {
|
|
5
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break {
|
|
10
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
11
|
-
|
|
12
|
-
&.ck-suggestion-marker--active {
|
|
13
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--ck-color-suggestion-widget-th-insertion-background: hsla(128, 71%, 65%, .12);
|
|
3
|
-
--ck-color-suggestion-widget-th-insertion-background-active: hsla(128, 71%, 50%, .14);
|
|
4
|
-
|
|
5
|
-
--ck-color-suggestion-widget-th-deletion-background: hsla(345, 71%, 65%, .14);
|
|
6
|
-
--ck-color-suggestion-widget-th-deletion-background-active: hsla(345, 71%, 45%, .16);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.ck-content figure.table .ck-suggestion-marker-formatBlock {
|
|
10
|
-
box-shadow: -3px 0 0 0 var(--ck-color-suggestion-marker-format-border);
|
|
11
|
-
|
|
12
|
-
&.ck-suggestion-marker--active {
|
|
13
|
-
box-shadow: -3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ck-content .ck-suggestion-marker-insertion.table > table {
|
|
18
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
|
19
|
-
|
|
20
|
-
& > tbody > tr > th {
|
|
21
|
-
background-color: var(--ck-color-suggestion-widget-th-insertion-background);
|
|
22
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
& > thead > tr > th {
|
|
26
|
-
background-color: var(--ck-color-suggestion-widget-th-insertion-background);
|
|
27
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
& > tbody > tr > td {
|
|
31
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
32
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table > table {
|
|
37
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
38
|
-
|
|
39
|
-
& > tbody > tr > th {
|
|
40
|
-
background-color: var(--ck-color-suggestion-widget-th-insertion-background-active);
|
|
41
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
& > thead > tr > th {
|
|
45
|
-
background-color: var(--ck-color-suggestion-widget-th-insertion-background-active);
|
|
46
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
& > tbody > tr > td {
|
|
50
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
51
|
-
border-color: var(--ck-color-suggestion-marker-insertion-border-active);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.ck-content .ck-suggestion-marker-deletion.table > table {
|
|
56
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
|
57
|
-
|
|
58
|
-
& > tbody > tr > th {
|
|
59
|
-
background-color: var(--ck-color-suggestion-widget-th-deletion-background);
|
|
60
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
|
61
|
-
text-decoration: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
& > thead > tr > th {
|
|
65
|
-
background-color: var(--ck-color-suggestion-widget-th-deletion-background);
|
|
66
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
|
67
|
-
text-decoration: none;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
& > tbody > tr > td {
|
|
71
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
72
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border);
|
|
73
|
-
text-decoration: none;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table > table {
|
|
78
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
79
|
-
|
|
80
|
-
& > tbody > tr > th {
|
|
81
|
-
background-color: var(--ck-color-suggestion-widget-th-deletion-background-active);
|
|
82
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
& > thead > tr > th {
|
|
86
|
-
background-color: var(--ck-color-suggestion-widget-th-deletion-background-active);
|
|
87
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
& > tbody > tr > td {
|
|
91
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
92
|
-
border-color: var(--ck-color-suggestion-marker-deletion-border-active);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/*
|
|
97
|
-
* We need here at least 022 CSS Specificity because of table styles like `.ck-content .table table th { background: ... }
|
|
98
|
-
* See: https://github.com/ckeditor/ckeditor5-table/blob/master/theme/table.css#L29
|
|
99
|
-
*/
|
|
100
|
-
.ck-content .table {
|
|
101
|
-
& th.ck-suggestion-marker-insertion {
|
|
102
|
-
background-color: var(--ck-color-suggestion-widget-th-insertion-background);
|
|
103
|
-
|
|
104
|
-
&.ck-suggestion-marker--active {
|
|
105
|
-
background-color: var(--ck-color-suggestion-widget-th-insertion-background-active);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
& th.ck-suggestion-marker-deletion {
|
|
110
|
-
background-color: var(--ck-color-suggestion-widget-th-deletion-background);
|
|
111
|
-
text-decoration: none;
|
|
112
|
-
|
|
113
|
-
&.ck-suggestion-marker--active {
|
|
114
|
-
background-color: var(--ck-color-suggestion-widget-th-deletion-background-active);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
& td.ck-suggestion-marker-insertion {
|
|
119
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background);
|
|
120
|
-
|
|
121
|
-
&.ck-suggestion-marker--active {
|
|
122
|
-
background-color: var(--ck-color-suggestion-widget-insertion-background-active);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
& td.ck-suggestion-marker-deletion {
|
|
127
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background);
|
|
128
|
-
text-decoration: none;
|
|
129
|
-
|
|
130
|
-
&.ck-suggestion-marker--active {
|
|
131
|
-
background-color: var(--ck-color-suggestion-widget-deletion-background-active);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
& th.ck-suggestion-marker-formatInline,
|
|
136
|
-
& td.ck-suggestion-marker-formatInline,
|
|
137
|
-
& th.ck-suggestion-marker-formatBlock,
|
|
138
|
-
& td.ck-suggestion-marker-formatBlock {
|
|
139
|
-
background-color: var(--ck-color-suggestion-widget-format-background);
|
|
140
|
-
box-shadow: none;
|
|
141
|
-
|
|
142
|
-
&.ck-suggestion-marker--active {
|
|
143
|
-
background-color: var(--ck-color-suggestion-widget-format-background-active);
|
|
144
|
-
box-shadow: none;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|