@ckeditor/ckeditor5-comments 37.0.1 → 37.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/build/comments.js +1 -1
- package/package.json +3 -3
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.js +1 -1
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +81 -10
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +9 -4
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +15 -7
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.js +1 -1
- package/src/commentsonly.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -47,15 +47,25 @@ export default class CommentView extends CommentView_base {
|
|
|
47
47
|
*/
|
|
48
48
|
resolvedAt: Date | null;
|
|
49
49
|
/**
|
|
50
|
-
* Collection for
|
|
50
|
+
* Collection for UI elements that manage the comment.
|
|
51
|
+
*
|
|
52
|
+
* Elements that may be found in the action bar (depending on the comment view properties):
|
|
53
|
+
*
|
|
54
|
+
* * resolve comment thread button (only if the comment is the first comment),
|
|
55
|
+
* * dropdown with actions ({@link ~CommentView#dropdown `dropdown`}).
|
|
51
56
|
*/
|
|
52
57
|
actionBar: ViewCollection;
|
|
53
58
|
/**
|
|
54
59
|
* View collection which holds all the comments dropdown elements.
|
|
60
|
+
*
|
|
61
|
+
* May include, depending on the view properties:
|
|
62
|
+
*
|
|
63
|
+
* * {@link ~CommentView#editButton `editButton`},
|
|
64
|
+
* * {@link ~CommentView#removeButton `removeButton`}.
|
|
55
65
|
*/
|
|
56
66
|
items: ViewCollection<ButtonView>;
|
|
57
67
|
/**
|
|
58
|
-
* Dropdown containing comment action buttons.
|
|
68
|
+
* Dropdown containing comment action buttons defined in {@link ~CommentView#items `items`}.
|
|
59
69
|
*/
|
|
60
70
|
dropdown: DropdownView;
|
|
61
71
|
/**
|
|
@@ -103,6 +113,7 @@ export default class CommentView extends CommentView_base {
|
|
|
103
113
|
* class: [
|
|
104
114
|
* 'ck-comment',
|
|
105
115
|
* 'ck-annotation',
|
|
116
|
+
* bind.if( 'isSystemComment', 'ck-comment--info' ),
|
|
106
117
|
* bind.if( 'isEditMode', 'ck-comment--edit' ),
|
|
107
118
|
* bind.to( 'actionIndicator', value => value ? `ck-comment--${ value }` : '' )
|
|
108
119
|
* ],
|
|
@@ -169,10 +180,7 @@ export default class CommentView extends CommentView_base {
|
|
|
169
180
|
* ]
|
|
170
181
|
* },
|
|
171
182
|
*
|
|
172
|
-
* children:
|
|
173
|
-
* this.editButton,
|
|
174
|
-
* this.removeButton
|
|
175
|
-
* ]
|
|
183
|
+
* children: this.actionBar
|
|
176
184
|
* },
|
|
177
185
|
* {
|
|
178
186
|
* tag: 'div',
|
|
@@ -191,7 +199,7 @@ export default class CommentView extends CommentView_base {
|
|
|
191
199
|
* },
|
|
192
200
|
*
|
|
193
201
|
* children: [ {
|
|
194
|
-
* text:
|
|
202
|
+
* text: this.getExternalCommentNote()
|
|
195
203
|
* } ]
|
|
196
204
|
* }
|
|
197
205
|
* ]
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e33=['element','time','ck-comment__user','removeButton','items','ck-annotation__content-wrapper','_createEditButton','some','ck-annotation__actions','remove','EXTERNAL_AVATAR','editButton','EXTERNAL_IMPORT_WORD_COMMENT','render','author','change:isEnabled','ck-comment__info-time','ck-comment--','showConfirm','actionBar','getTemplate','ck-annotation__info-time','_createRemoveButton','label','isEnabled','setTemplate','importWord','buttonView','ck-comment__actions','cancelConfirm','pencil','getExternalCommentNote','ck-comment__info','visibleView','blur','add','name','_model','Reply...','isEditable','_attachActions','@external','isReadOnly','panelPosition','children','icon','div','ck-comment--info','ck-comment--remove-confirmation','resolvedAt','listenTo','focus','dropdown','_config','isExternal','isEditMode','then','execute','userView','fire','formatDateTime','isVisible','EXTERNAL_IMPORT_WORD_AVATAR','ck-comment__external','ck-comment__main','edit','locale','panelView','placeholder','isRemovable','authoredAt','ck-annotation__main','actionIndicator','Remove','_createCommentInputView','isSystemComment','ck-comment--edit','bind','mouseenter','createCollection','ck-comment__actions--hidden','Delete\x20comment?','set','Show\x20more\x20items','Edit','withText','source','ck-annotation__user','addMany','length','extendTemplate','removeComment'];(function(_0x88841a,_0x3e335d){const _0xa3e5f5=function(_0x5209f1){while(--_0x5209f1){_0x88841a['push'](_0x88841a['shift']());}};_0xa3e5f5(++_0x3e335d);}(_0x3e33,0x87));const _0xa3e5=function(_0x88841a,_0x3e335d){_0x88841a=_0x88841a-0x0;let _0xa3e5f5=_0x3e33[_0x88841a];return _0xa3e5f5;};import{ButtonView as _0x2f0860,createDropdown as _0x5e6e08,ListView as _0x128d99,ListItemView as _0x128197}from'ckeditor5/src/ui';import{icons as _0x3956a8}from'ckeditor5/src/core';import{UserView as _0x17566e,ConfirmMixin as _0x326f70}from'ckeditor5-collaboration/src/collaboration-core';import _0x258114 from'./basecommentview';import _0x27b608 from'../../../../theme/icons/remove-comment.svg';import{getTranslation as _0x5e1084}from'../../../utils/common-translations';export default class lt extends _0x326f70(_0x258114){constructor(_0x5c8a55,_0x3e28f7,_0x1574b1){super(_0x5c8a55,_0x3e28f7,_0x1574b1),this['set']('actionIndicator',null),this[_0xa3e5('0x27')](_0xa3e5('0x19'),_0x5e1084(_0x5c8a55,_0xa3e5('0x57'))),this[_0xa3e5('0x22')](_0xa3e5('0x1b'))['to'](_0x3e28f7),this[_0xa3e5('0x22')](_0xa3e5('0x6'))['to'](_0x3e28f7),this['actionBar']=this[_0xa3e5('0x24')](),this[_0xa3e5('0x20')]||(this[_0xa3e5('0x3c')]=this[_0xa3e5('0x37')](),this[_0xa3e5('0x34')]=this[_0xa3e5('0x47')](),this['items']=this['createCollection'](),this['items'][_0xa3e5('0x2d')]([this['editButton'],this[_0xa3e5('0x34')]]),this['dropdown']=this['_createDropdown'](),this[_0xa3e5('0x44')][_0xa3e5('0x54')](this[_0xa3e5('0x9')])),this['userView']=new _0x17566e(_0x5c8a55,_0x3e28f7['author'],this['getUserViewNotificationText']()),this[_0xa3e5('0xf')][_0xa3e5('0x2f')]({'attributes':{'class':[_0xa3e5('0x33'),_0xa3e5('0x2c')]}}),this['listenTo'](_0x3e28f7,'change:isRemovable',()=>this[_0xa3e5('0x4e')]()),this[_0xa3e5('0x4a')](this[_0xa3e5('0x45')]());}[_0xa3e5('0x45')](){const _0x28cbc6=this['bindTemplate'],_0x894353=[{'tag':_0xa3e5('0x3'),'attributes':{'class':[_0xa3e5('0x51'),'ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this[_0xa3e5('0xf')][_0xa3e5('0x55')]}],'attributes':{'class':['ck-comment__info-name','ck-annotation__info-name']}},{'tag':_0xa3e5('0x32'),'attributes':{'datetime':_0x28cbc6['to'](_0xa3e5('0x1b')),'class':[_0xa3e5('0x41'),_0xa3e5('0x46')]},'children':[{'text':_0x28cbc6['to'](_0xa3e5('0x1b'),_0x355697=>this[_0xa3e5('0xa')][_0xa3e5('0x11')](_0x355697))}]}]},{'tag':_0xa3e5('0x3'),'attributes':{'class':[_0xa3e5('0x4d'),_0xa3e5('0x39'),_0x28cbc6['if'](_0xa3e5('0xc'),_0xa3e5('0x25')),_0x28cbc6['if']('isEditMode','ck-annotation__actions--hidden')]},'children':this[_0xa3e5('0x44')]},{'tag':_0xa3e5('0x3'),'attributes':{'class':[_0xa3e5('0x36')]},'children':this[_0xa3e5('0x52')]}];return this[_0xa3e5('0x56')][_0xa3e5('0xb')]&&_0x894353['push']({'tag':'div','attributes':{'class':[_0xa3e5('0x14')]},'children':[{'text':this[_0xa3e5('0x50')]()}]}),{'tag':'li','attributes':{'class':['ck-comment__wrapper',_0x28cbc6['if']('isConfirm',_0xa3e5('0x5'))],'tabindex':-0x1},'children':[{'tag':_0xa3e5('0x3'),'attributes':{'class':['ck-comment','ck-annotation',_0x28cbc6['if'](_0xa3e5('0xc'),'ck-comment--edit'),_0x28cbc6['if']('isSystemComment',_0xa3e5('0x4')),_0x28cbc6['to'](_0xa3e5('0x1d'),_0x2a639a=>_0x2a639a?_0xa3e5('0x42')+_0x2a639a:'')],'data-author-id':this[_0xa3e5('0x56')][_0xa3e5('0x3f')]['id'],'data-comment-id':this[_0xa3e5('0x56')]['id']},'children':[this[_0xa3e5('0xf')],{'tag':_0xa3e5('0x3'),'attributes':{'class':[_0xa3e5('0x15'),_0xa3e5('0x1c')]},'children':_0x894353}]}]};}[_0xa3e5('0x37')](){const _0x2692ff=new _0x2f0860(this['locale']);return _0x2692ff[_0xa3e5('0x48')]=_0x5e1084(this['locale'],_0xa3e5('0x29')),_0x2692ff[_0xa3e5('0x2')]=_0x3956a8[_0xa3e5('0x4f')],_0x2692ff[_0xa3e5('0x2a')]=!0x0,_0x2692ff[_0xa3e5('0x2f')]({'attributes':{'class':_0xa3e5('0x21')}}),_0x2692ff[_0xa3e5('0x22')](_0xa3e5('0x49'))['to'](this['_model'],_0xa3e5('0x5b'),_0x8790e3=>!_0x8790e3),_0x2692ff[_0xa3e5('0x22')]('isVisible')['to'](this[_0xa3e5('0x56')],_0xa3e5('0x58')),_0x2692ff['on'](_0xa3e5('0xe'),()=>this['switchToEditMode']()),_0x2692ff;}[_0xa3e5('0x47')](){const _0x5498e7=new _0x2f0860(this['locale']);return _0x5498e7[_0xa3e5('0x48')]=_0x5e1084(this['locale'],_0xa3e5('0x1e')),_0x5498e7[_0xa3e5('0x2')]=_0x27b608,_0x5498e7[_0xa3e5('0x2a')]=!0x0,_0x5498e7[_0xa3e5('0x2f')]({'attributes':{'class':'ck-comment--remove'}}),_0x5498e7[_0xa3e5('0x22')]('isEnabled')['to'](this[_0xa3e5('0x56')],_0xa3e5('0x5b'),_0x76cfb9=>!_0x76cfb9),_0x5498e7['bind']('isVisible')['to'](this[_0xa3e5('0x56')],_0xa3e5('0x1a')),_0x5498e7['on']('execute',()=>{this[_0xa3e5('0x43')](_0x5e1084(this[_0xa3e5('0x17')],_0xa3e5('0x26')),this[_0xa3e5('0x31')])[_0xa3e5('0xd')](()=>{this[_0xa3e5('0x10')](_0xa3e5('0x30'),this['_model']['id']);});}),_0x5498e7;}['_createDropdown'](){const _0xc3a15=_0x5e6e08(this[_0xa3e5('0x17')]),_0x4471c5=_0xc3a15[_0xa3e5('0x18')]['children'],_0x16a338=new _0x128d99(this[_0xa3e5('0x17')]),_0x480418=(_0xd8a20d,_0x381289=-0x1)=>{const _0x7404f7=new _0x128197(this[_0xa3e5('0x17')]);_0x7404f7[_0xa3e5('0x1')]['add'](_0xd8a20d);const _0x567617=_0x381289>-0x1?_0x381289:_0x16a338[_0xa3e5('0x35')][_0xa3e5('0x2e')];_0x16a338[_0xa3e5('0x35')]['add'](_0x7404f7,_0x567617),_0xc3a15['listenTo'](_0xd8a20d,_0xa3e5('0x40'),()=>{_0xc3a15[_0xa3e5('0x49')]=[...this['items']][_0xa3e5('0x38')](_0x5e047e=>_0x5e047e[_0xa3e5('0x49')]);}),_0xc3a15[_0xa3e5('0x7')](_0xd8a20d,'change:isVisible',()=>{_0xc3a15[_0xa3e5('0x4c')][_0xa3e5('0x12')]=[...this[_0xa3e5('0x35')]]['some'](_0x25aac9=>_0x25aac9['isVisible']);});};_0xc3a15[_0xa3e5('0x0')]='sw',_0xc3a15[_0xa3e5('0x4c')]['set']({'label':_0x5e1084(this[_0xa3e5('0x17')],_0xa3e5('0x28')),'icon':_0x3956a8['threeVerticalDots']}),_0xc3a15[_0xa3e5('0x49')]=[...this['items']][_0xa3e5('0x38')](_0x3cfd9b=>_0x3cfd9b['isEnabled']),_0xc3a15['buttonView']['isVisible']=[...this['items']][_0xa3e5('0x38')](_0x4b142f=>_0x4b142f[_0xa3e5('0x12')]);for(const _0x3507cf of this['items'])_0x480418(_0x3507cf);return _0x4471c5[_0xa3e5('0x54')](_0x16a338),_0xc3a15['listenTo'](this['items'],_0xa3e5('0x54'),(_0x262732,_0x300b0c,_0x38a766)=>{_0x480418(_0x300b0c,_0x38a766);}),_0xc3a15['listenTo'](this[_0xa3e5('0x35')],_0xa3e5('0x3a'),(_0x4c2c36,_0x31c472,_0x16c86b)=>{_0x16a338[_0xa3e5('0x35')][_0xa3e5('0x3a')](_0x16c86b);}),_0xc3a15;}['_attachActions'](_0x34231e,_0x4d4e6d){const _0xb2c144=_0x34231e&&_0x34231e['element'];_0xb2c144&&(this['listenTo'](_0xb2c144,_0xa3e5('0x23'),()=>this[_0xa3e5('0x1d')]=_0x4d4e6d),this[_0xa3e5('0x7')](_0xb2c144,_0xa3e5('0x8'),()=>this['actionIndicator']=_0x4d4e6d),this[_0xa3e5('0x7')](_0xb2c144,'mouseleave',()=>this[_0xa3e5('0x1d')]=null),this[_0xa3e5('0x7')](_0xb2c144,_0xa3e5('0x53'),()=>this[_0xa3e5('0x1d')]=null));}[_0xa3e5('0x1f')](){const _0x1f45d4=super[_0xa3e5('0x1f')]();return _0x1f45d4['bind'](_0xa3e5('0x19'))['to'](this),_0x1f45d4;}[_0xa3e5('0x50')](){return _0xa3e5('0x4b')===this[_0xa3e5('0x56')]['attributes'][_0xa3e5('0x5a')][_0xa3e5('0x2b')]?_0x5e1084(this[_0xa3e5('0x17')],_0xa3e5('0x3d')):_0x5e1084(this['locale'],'EXTERNAL_COMMENT');}['getUserViewNotificationText'](){return this[_0xa3e5('0x56')][_0xa3e5('0xb')]?_0xa3e5('0x4b')===this[_0xa3e5('0x56')]['attributes'][_0xa3e5('0x5a')][_0xa3e5('0x2b')]?_0x5e1084(this['locale'],_0xa3e5('0x13'),this[_0xa3e5('0x56')]['creator'][_0xa3e5('0x55')]):_0x5e1084(this[_0xa3e5('0x17')],_0xa3e5('0x3b'),this[_0xa3e5('0x56')]['creator']['name']):null;}[_0xa3e5('0x3e')](){super['render'](),this['_attachActions'](this[_0xa3e5('0x3c')],_0xa3e5('0x16')),this[_0xa3e5('0x59')](this[_0xa3e5('0x34')],_0xa3e5('0x3a'));}}
|
package/src/comments.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x117f=['Comments'];(function(_0x82bf1f,_0x117f57){var _0x31bf30=function(_0x32dd5c){while(--_0x32dd5c){_0x82bf1f['push'](_0x82bf1f['shift']());}};_0x31bf30(++_0x117f57);}(_0x117f,0x86));var _0x31bf=function(_0x82bf1f,_0x117f57){_0x82bf1f=_0x82bf1f-0x0;var _0x31bf30=_0x117f[_0x82bf1f];return _0x31bf30;};import{Plugin as _0x54cdb3}from'ckeditor5/src/core';import _0x4021fd from'./comments/commentsrepository';import _0x3b8738 from'./comments/commentsediting';import _0x389476 from'./comments/commentsui';import _0x1d6ca4 from'./commentsonly';import _0x43ce51 from'./annotations/widesidebar';import _0x559b9d from'./annotations/narrowsidebar';import _0x189829 from'./annotations/inlineannotations';import _0x4f0c3a from'./comments/commentsarchiveui';import _0x548f0a from'./comments/commentsarchive';export default class f extends _0x54cdb3{static get['requires'](){return[_0x4021fd,_0x3b8738,_0x389476,_0x548f0a,_0x4f0c3a,_0x1d6ca4,_0x43ce51,_0x559b9d,_0x189829];}static get['pluginName'](){return _0x31bf('0x0');}}
|
package/src/commentsonly.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33d7=['_disableCommentsOnlyMode','pluginName','editor','cut','view','delete','forceDisabled','plugins','has','commentsOnlyMode','get','listenTo','addCommentThread','change:isEnabled','editing','_enableCommentsOnlyMode','stop','clipboardInput','affectsData','isEnabled','config','CommentsOnly','commands','DragDrop','afterInit','document','highest'];(function(_0x2702a3,_0x33d746){const _0x105acc=function(_0x46f2df){while(--_0x46f2df){_0x2702a3['push'](_0x2702a3['shift']());}};_0x105acc(++_0x33d746);}(_0x33d7,0x108));const _0x105a=function(_0x2702a3,_0x33d746){_0x2702a3=_0x2702a3-0x0;let _0x105acc=_0x33d7[_0x2702a3];return _0x105acc;};import{Plugin as _0xfe1d2c}from'ckeditor5/src/core';import _0x3c49fa from'./comments/commentsediting';export default class n extends _0xfe1d2c{static get[_0x105a('0x7')](){return _0x105a('0x0');}static get['requires'](){return[_0x3c49fa];}constructor(_0x28fa47){super(_0x28fa47),this['set'](_0x105a('0x19'),!0x1),this['on'](_0x105a('0x13'),(_0x4ea04c,_0x46f351,_0x3bd6c3)=>{_0x3bd6c3?this[_0x105a('0x15')]():this[_0x105a('0x6')]();});}[_0x105a('0x3')](){!this[_0x105a('0x19')]&&this[_0x105a('0x8')][_0x105a('0x1a')][_0x105a('0x10')]('commentsOnly')&&(this[_0x105a('0x19')]=!0x0);}[_0x105a('0x15')](){for(const [_0x4a4f4e,_0x508f45]of this[_0x105a('0x8')][_0x105a('0x1')])_0x508f45[_0x105a('0x18')]&&_0x105a('0x12')!==_0x4a4f4e&&_0x508f45[_0x105a('0xc')](_0x105a('0xf'));this['editor'][_0x105a('0xd')][_0x105a('0xe')](_0x105a('0x2'))&&this['editor']['plugins'][_0x105a('0x10')](_0x105a('0x2'))[_0x105a('0xc')](_0x105a('0xf'));const _0x488562=this[_0x105a('0x8')][_0x105a('0x14')]['view']['document'];this[_0x105a('0x11')](_0x488562,_0x105a('0x9'),_0x33f2ce=>_0x33f2ce[_0x105a('0x16')](),{'priority':_0x105a('0x5')}),this[_0x105a('0x11')](_0x488562,_0x105a('0x17'),_0x13f806=>_0x13f806[_0x105a('0x16')](),{'priority':_0x105a('0x5')}),this[_0x105a('0x11')](_0x488562,_0x105a('0xb'),_0x103cf3=>_0x103cf3['stop'](),{'priority':_0x105a('0x5')});}['_disableCommentsOnlyMode'](){for(const [_0x540b64,_0x109340]of this[_0x105a('0x8')]['commands'])_0x109340[_0x105a('0x18')]&&'addCommentThread'!==_0x540b64&&_0x109340['clearForceDisabled'](_0x105a('0xf'));this['stopListening'](this[_0x105a('0x8')][_0x105a('0x14')][_0x105a('0xa')][_0x105a('0x4')]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x3f7099,_0x51b149,_0x517a41){const t=_0x3f7099['t'];switch(_0x51b149){case'PENDING_ACTION_COMMENT_THREAD':return t({'string':'Unsaved\x20change\x20in\x20comment\x20thread.','id':'PENDING_ACTION_COMMENT_THREAD'});case'Comment':return t('Comment');case'Reply...':return t('Reply...');case'Reply\x20to\x20reopen\x20discussion...':return t('Reply\x20to\x20reopen\x20discussion...');case'Write\x20a\x20comment...':return t('Write\x20a\x20comment...');case'Comment\x20was\x20made\x20on\x20an\x20element':return t('Comment\x20was\x20made\x20on\x20an\x20element');case'Comment\x20editor':return t('Comment\x20editor');case'Delete\x20comment\x20thread?':return t('Delete\x20comment\x20thread?');case'Delete\x20comment?':return t('Delete\x20comment?');case'Marked\x20as\x20resolved':return t('Marked\x20as\x20resolved');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Cancel':return t('Cancel');case'Edit':return t('Edit');case'Resolve':return t('Resolve');case'Reopen':return t('Reopen');case'Remove':return t('Remove');case'Submit':return t('Submit');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x517a41);case'TOO_LONG_COMMENT_ALERT':return t({'string':'Comment\x20content\x20is\x20too\x20long.\x20Your\x20comment\x20has\x20%0\x20characters\x20but\x20the\x20limit\x20is\x20%1\x20characters.','id':'TOO_LONG_COMMENT_ALERT'},_0x517a41);case'EXTERNAL_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20external\x20source.','id':'EXTERNAL_COMMENT'});case'EXTERNAL_IMPORT_WORD_COMMENT':return t({'string':'This\x20comment\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_COMMENT'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x517a41);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x517a41);case'COMMENTS_ARCHIVE':return t({'string':'Comments\x20archive','id':'COMMENTS_ARCHIVE'});case'EMPTY_COMMENTS_ARCHIVE':return t({'string':'There\x20are\x20no\x20archived\x20comment\x20threads.','id':'EMPTY_COMMENTS_ARCHIVE'});default:return'';}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x349d=['observe','attributes','type','attributeName','class','disconnect','childList'];(function(_0x58df9b,_0x349d51){const _0x48358b=function(_0x1b3e49){while(--_0x1b3e49){_0x58df9b['push'](_0x58df9b['shift']());}};_0x48358b(++_0x349d51);}(_0x349d,0x1d9));const _0x4835=function(_0x58df9b,_0x349d51){_0x58df9b=_0x58df9b-0x0;let _0x48358b=_0x349d[_0x58df9b];return _0x48358b;};import{throttle as _0x47991f}from'lodash-es';export default function Lt(_0x23d2b9){const _0x42f88f=_0x47991f(_0x23d2b9,0x1e),_0xc979a9=new MutationObserver(_0x22f655=>{for(const _0x4094f2 of _0x22f655)(_0x4835('0x4')==_0x4094f2[_0x4835('0x5')]&&_0x4835('0x0')==_0x4094f2[_0x4835('0x6')]||_0x4835('0x2')==_0x4094f2[_0x4835('0x5')])&&_0x42f88f();});return{'attach'(_0x4ac826){_0xc979a9[_0x4835('0x3')](_0x4ac826,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0});},'detach'(){_0xc979a9[_0x4835('0x1')](),_0x42f88f['cancel']();}};}
|