@ckeditor/ckeditor5-comments 38.2.0-alpha.1 → 39.0.1
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 +0 -1
- package/build/comments.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/es.po +1 -1
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +12 -12
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +1 -1
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sq.po +2 -2
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -5
- package/src/annotations/annotation.d.ts +10 -6
- package/src/annotations/annotation.js +2 -2
- package/src/annotations/annotationcollection.d.ts +7 -3
- package/src/annotations/annotationcollection.js +2 -2
- package/src/annotations/annotations.d.ts +10 -6
- package/src/annotations/annotations.js +2 -2
- package/src/annotations/annotationsuis.d.ts +9 -5
- package/src/annotations/annotationsuis.js +2 -2
- package/src/annotations/editorannotations.d.ts +8 -4
- package/src/annotations/editorannotations.js +2 -2
- package/src/annotations/inlineannotations.d.ts +10 -6
- package/src/annotations/inlineannotations.js +2 -2
- package/src/annotations/narrowsidebar.d.ts +10 -6
- package/src/annotations/narrowsidebar.js +2 -2
- package/src/annotations/sidebar.d.ts +9 -5
- package/src/annotations/sidebar.js +2 -2
- package/src/annotations/view/annotationcounterbuttonview.d.ts +6 -2
- package/src/annotations/view/annotationcounterbuttonview.js +2 -2
- package/src/annotations/view/annotationview.d.ts +6 -2
- package/src/annotations/view/annotationview.js +2 -2
- package/src/annotations/view/sidebaritemview.d.ts +6 -2
- package/src/annotations/view/sidebaritemview.js +2 -2
- package/src/annotations/view/sidebarview.d.ts +6 -2
- package/src/annotations/view/sidebarview.js +2 -2
- package/src/annotations/widesidebar.d.ts +9 -5
- package/src/annotations/widesidebar.js +2 -2
- package/src/augmentation.d.ts +5 -1
- package/src/augmentation.js +1 -1
- package/src/comments/addcommentthreadcommand.d.ts +5 -1
- package/src/comments/addcommentthreadcommand.js +2 -2
- package/src/comments/commentsarchive.d.ts +8 -4
- package/src/comments/commentsarchive.js +2 -2
- package/src/comments/commentsarchiveui.d.ts +9 -5
- package/src/comments/commentsarchiveui.js +2 -2
- package/src/comments/commentsediting.d.ts +10 -6
- package/src/comments/commentsediting.js +2 -2
- package/src/comments/commentsrepository.d.ts +30 -13
- package/src/comments/commentsrepository.js +2 -2
- package/src/comments/commentsui.d.ts +9 -5
- package/src/comments/commentsui.js +2 -2
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +5 -1
- package/src/comments/integrations/commentsrestrictededitingmode.js +2 -2
- package/src/comments/integrations/importword.d.ts +5 -1
- package/src/comments/integrations/importword.js +2 -2
- package/src/comments/ui/commenteditor/commenteditor.d.ts +9 -5
- package/src/comments/ui/commenteditor/commenteditor.js +2 -2
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +7 -3
- package/src/comments/ui/commenteditor/commenteditorui.js +2 -2
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +7 -3
- package/src/comments/ui/commenteditor/commenteditoruiview.js +2 -2
- package/src/comments/ui/commentthreadcontroller.d.ts +6 -6
- package/src/comments/ui/commentthreadcontroller.js +2 -2
- package/src/comments/ui/view/basecommentthreadview.d.ts +12 -8
- package/src/comments/ui/view/basecommentthreadview.js +2 -2
- package/src/comments/ui/view/basecommentview.d.ts +8 -4
- package/src/comments/ui/view/basecommentview.js +2 -2
- package/src/comments/ui/view/collapsedcommentsview.d.ts +6 -2
- package/src/comments/ui/view/collapsedcommentsview.js +2 -2
- package/src/comments/ui/view/commentcontentview.d.ts +6 -2
- package/src/comments/ui/view/commentcontentview.js +2 -2
- package/src/comments/ui/view/commentinputview.d.ts +8 -4
- package/src/comments/ui/view/commentinputview.js +2 -2
- package/src/comments/ui/view/commentsarchiveview.d.ts +7 -3
- package/src/comments/ui/view/commentsarchiveview.js +2 -2
- package/src/comments/ui/view/commentslistview.d.ts +9 -5
- package/src/comments/ui/view/commentslistview.js +2 -2
- package/src/comments/ui/view/commentthreadheaderview.d.ts +7 -3
- package/src/comments/ui/view/commentthreadheaderview.js +2 -2
- package/src/comments/ui/view/commentthreadinputview.d.ts +9 -5
- package/src/comments/ui/view/commentthreadinputview.js +2 -2
- package/src/comments/ui/view/commentthreadview.d.ts +11 -7
- package/src/comments/ui/view/commentthreadview.js +2 -2
- package/src/comments/ui/view/commentview.d.ts +12 -8
- package/src/comments/ui/view/commentview.js +2 -2
- package/src/comments.d.ts +14 -10
- package/src/comments.js +2 -2
- package/src/commentsonly.d.ts +6 -2
- package/src/commentsonly.js +2 -2
- package/src/config.d.ts +11 -7
- package/src/config.js +1 -1
- package/src/index.d.ts +24 -21
- package/src/index.js +2 -2
- package/src/utils/common-translations.d.ts +5 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/createmutationobserver.d.ts +2 -1
- package/src/utils/createmutationobserver.js +2 -2
package/src/comments.d.ts
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/comments
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5/src/core
|
|
6
|
-
import CommentsRepository from './comments/commentsrepository
|
|
7
|
-
import CommentsEditing from './comments/commentsediting
|
|
8
|
-
import CommentsUI from './comments/commentsui
|
|
9
|
-
import CommentsOnly from './commentsonly
|
|
10
|
-
import WideSidebar from './annotations/widesidebar
|
|
11
|
-
import NarrowSidebar from './annotations/narrowsidebar
|
|
12
|
-
import InlineAnnotations from './annotations/inlineannotations
|
|
13
|
-
import CommentsArchiveUI from './comments/commentsarchiveui
|
|
14
|
-
import CommentsArchive from './comments/commentsarchive
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core';
|
|
10
|
+
import CommentsRepository from './comments/commentsrepository';
|
|
11
|
+
import CommentsEditing from './comments/commentsediting';
|
|
12
|
+
import CommentsUI from './comments/commentsui';
|
|
13
|
+
import CommentsOnly from './commentsonly';
|
|
14
|
+
import WideSidebar from './annotations/widesidebar';
|
|
15
|
+
import NarrowSidebar from './annotations/narrowsidebar';
|
|
16
|
+
import InlineAnnotations from './annotations/inlineannotations';
|
|
17
|
+
import CommentsArchiveUI from './comments/commentsarchiveui';
|
|
18
|
+
import CommentsArchive from './comments/commentsarchive';
|
|
15
19
|
/**
|
|
16
20
|
* The comments plugin, which brings both the UI part and the editing part of this feature.
|
|
17
21
|
*
|
package/src/comments.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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 _0x3506=['requires','pluginName'];(function(_0x516f74,_0x3506fe){var _0x265b37=function(_0xbabfd4){while(--_0xbabfd4){_0x516f74['push'](_0x516f74['shift']());}};_0x265b37(++_0x3506fe);}(_0x3506,0x1ba));var _0x265b=function(_0x516f74,_0x3506fe){_0x516f74=_0x516f74-0x0;var _0x265b37=_0x3506[_0x516f74];return _0x265b37;};import{Plugin as _0x20825f}from'ckeditor5/src/core';import _0x3b6d1a from'./comments/commentsrepository';import _0x38a97e from'./comments/commentsediting';import _0x4ef95f from'./comments/commentsui';import _0x277b46 from'./commentsonly';import _0x359663 from'./annotations/widesidebar';import _0x36757c from'./annotations/narrowsidebar';import _0x4fbd1b from'./annotations/inlineannotations';import _0x3fa7f8 from'./comments/commentsarchiveui';import _0x51da30 from'./comments/commentsarchive';export default class f extends _0x20825f{static get[_0x265b('0x0')](){return[_0x3b6d1a,_0x38a97e,_0x4ef95f,_0x51da30,_0x3fa7f8,_0x277b46,_0x359663,_0x36757c,_0x4fbd1b];}static get[_0x265b('0x1')](){return'Comments';}}
|
package/src/commentsonly.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/commentsonly
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
6
|
-
import CommentsEditing from './comments/commentsediting
|
|
9
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
10
|
+
import CommentsEditing from './comments/commentsediting';
|
|
7
11
|
/**
|
|
8
12
|
* The `CommentsOnly` plugin allows you to put the editor in a mode where a user can only add, edit or delete comments.
|
|
9
13
|
*
|
package/src/commentsonly.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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 _0x1f4d=['affectsData','requires','afterInit','addCommentThread','editor','config','get','has','commentsOnlyMode','isEnabled','CommentsOnly','commentsOnly','plugins','highest','commands','stop','view','set','editing','listenTo','pluginName','_disableCommentsOnlyMode','change:isEnabled','_enableCommentsOnlyMode','clearForceDisabled','DragDrop','document','forceDisabled','clipboardInput'];(function(_0x527184,_0x1f4d86){const _0x33db7f=function(_0x1d0122){while(--_0x1d0122){_0x527184['push'](_0x527184['shift']());}};_0x33db7f(++_0x1f4d86);}(_0x1f4d,0x1be));const _0x33db=function(_0x527184,_0x1f4d86){_0x527184=_0x527184-0x0;let _0x33db7f=_0x1f4d[_0x527184];return _0x33db7f;};import{Plugin as _0x38f1c7}from'ckeditor5/src/core';import _0x4e490b from'./comments/commentsediting';export default class n extends _0x38f1c7{static get[_0x33db('0x9')](){return _0x33db('0x1c');}static get[_0x33db('0x13')](){return[_0x4e490b];}constructor(_0x2c1ff1){super(_0x2c1ff1),this[_0x33db('0x6')](_0x33db('0x1b'),!0x1),this['on'](_0x33db('0xb'),(_0x200dfe,_0x21e1ff,_0x4b3edb)=>{_0x4b3edb?this['_enableCommentsOnlyMode']():this['_disableCommentsOnlyMode']();});}[_0x33db('0x14')](){!this[_0x33db('0x1b')]&&this[_0x33db('0x16')][_0x33db('0x17')]['get'](_0x33db('0x0'))&&(this['isEnabled']=!0x0);}[_0x33db('0xc')](){for(const [_0x2d0abc,_0x4ea5a1]of this[_0x33db('0x16')][_0x33db('0x3')])_0x4ea5a1[_0x33db('0x12')]&&_0x33db('0x15')!==_0x2d0abc&&_0x4ea5a1[_0x33db('0x10')](_0x33db('0x1a'));this[_0x33db('0x16')][_0x33db('0x1')][_0x33db('0x19')]('DragDrop')&&this[_0x33db('0x16')][_0x33db('0x1')][_0x33db('0x18')](_0x33db('0xe'))['forceDisabled'](_0x33db('0x1a'));const _0x35088b=this[_0x33db('0x16')][_0x33db('0x7')]['view'][_0x33db('0xf')];this[_0x33db('0x8')](_0x35088b,'cut',_0x4b91a7=>_0x4b91a7['stop'](),{'priority':_0x33db('0x2')}),this[_0x33db('0x8')](_0x35088b,_0x33db('0x11'),_0x550297=>_0x550297[_0x33db('0x4')](),{'priority':_0x33db('0x2')}),this[_0x33db('0x8')](_0x35088b,'delete',_0x5605a8=>_0x5605a8[_0x33db('0x4')](),{'priority':_0x33db('0x2')});}[_0x33db('0xa')](){for(const [_0x4a368a,_0x2e80b0]of this[_0x33db('0x16')][_0x33db('0x3')])_0x2e80b0[_0x33db('0x12')]&&'addCommentThread'!==_0x4a368a&&_0x2e80b0[_0x33db('0xd')]('commentsOnlyMode');this['stopListening'](this[_0x33db('0x16')][_0x33db('0x7')][_0x33db('0x5')][_0x33db('0xf')]);}}
|
package/src/config.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/config
|
|
3
7
|
* @publicApi
|
|
4
8
|
*/
|
|
5
|
-
import type { EditorConfig } from 'ckeditor5/src/core
|
|
6
|
-
import type CommentView from './comments/ui/view/commentview
|
|
7
|
-
import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview
|
|
9
|
+
import type { EditorConfig } from 'ckeditor5/src/core';
|
|
10
|
+
import type CommentView from './comments/ui/view/commentview';
|
|
11
|
+
import type BaseCommentThreadView from './comments/ui/view/basecommentthreadview';
|
|
8
12
|
/**
|
|
9
13
|
* The configuration of the comments feature.
|
|
10
14
|
*
|
|
@@ -85,10 +89,10 @@ export interface CommentsConfig {
|
|
|
85
89
|
* To provide a better experience, you may add more plugins, that will extend the default editor configuration.
|
|
86
90
|
*
|
|
87
91
|
* ```ts
|
|
88
|
-
* import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat
|
|
89
|
-
* import List from '@ckeditor/ckeditor5-list/src/list
|
|
90
|
-
* import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold
|
|
91
|
-
* import Italic from '@ckeditor/ckeditor5-italic/src/italic
|
|
92
|
+
* import Autoformat from '@ckeditor/ckeditor5-autoformat/src/autoformat';
|
|
93
|
+
* import List from '@ckeditor/ckeditor5-list/src/list';
|
|
94
|
+
* import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
|
|
95
|
+
* import Italic from '@ckeditor/ckeditor5-italic/src/italic';
|
|
92
96
|
*
|
|
93
97
|
* ClassicEditor
|
|
94
98
|
* .create( {
|
package/src/config.js
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
export { default as Comments } from './comments';
|
|
6
|
+
export { default as CommentsOnly } from './commentsonly';
|
|
7
|
+
export { default as CommentsUI } from './comments/commentsui';
|
|
8
|
+
export { default as CommentsRepository, CommentThread, Comment, type CommentDataJSON, type CommentThreadContext, type CommentThreadDataJSON } from './comments/commentsrepository';
|
|
9
|
+
export { default as CommentThreadController } from './comments/ui/commentthreadcontroller';
|
|
10
|
+
export { default as Annotations } from './annotations/annotations';
|
|
11
|
+
export { default as AnnotationsUIs } from './annotations/annotationsuis';
|
|
12
|
+
export { default as EditorAnnotations } from './annotations/editorannotations';
|
|
13
|
+
export { default as InlineAnnotations } from './annotations/inlineannotations';
|
|
14
|
+
export { default as WideSidebar } from './annotations/widesidebar';
|
|
15
|
+
export { default as NarrowSidebar } from './annotations/narrowsidebar';
|
|
16
|
+
export { default as AnnotationView } from './annotations/view/annotationview';
|
|
17
|
+
export { default as BaseCommentView } from './comments/ui/view/basecommentview';
|
|
18
|
+
export { default as BaseCommentThreadView } from './comments/ui/view/basecommentthreadview';
|
|
19
|
+
export { default as CommentsListView } from './comments/ui/view/commentslistview';
|
|
20
|
+
export { default as CommentView } from './comments/ui/view/commentview';
|
|
21
|
+
export { default as CommentThreadInputView } from './comments/ui/view/commentthreadinputview';
|
|
22
|
+
export type { CommentsConfig, SidebarConfig } from './config';
|
|
23
|
+
export type { default as CommentsEditing } from './comments/commentsediting';
|
|
24
|
+
import './augmentation';
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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
|
-
export{default as Comments}from'./comments
|
|
23
|
+
export{default as Comments}from'./comments';export{default as CommentsOnly}from'./commentsonly';export{default as CommentsUI}from'./comments/commentsui';export{default as CommentsRepository,CommentThread,Comment}from'./comments/commentsrepository';export{default as CommentThreadController}from'./comments/ui/commentthreadcontroller';export{default as Annotations}from'./annotations/annotations';export{default as AnnotationsUIs}from'./annotations/annotationsuis';export{default as EditorAnnotations}from'./annotations/editorannotations';export{default as InlineAnnotations}from'./annotations/inlineannotations';export{default as WideSidebar}from'./annotations/widesidebar';export{default as NarrowSidebar}from'./annotations/narrowsidebar';export{default as AnnotationView}from'./annotations/view/annotationview';export{default as BaseCommentView}from'./comments/ui/view/basecommentview';export{default as BaseCommentThreadView}from'./comments/ui/view/basecommentthreadview';export{default as CommentsListView}from'./comments/ui/view/commentslistview';export{default as CommentView}from'./comments/ui/view/commentview';export{default as CommentThreadInputView}from'./comments/ui/view/commentthreadinputview';import'./augmentation';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module comments/utils/common-translations
|
|
3
7
|
*/
|
|
4
|
-
import type { Locale } from 'ckeditor5/src/utils
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils';
|
|
5
9
|
export declare function getTranslation(locale: Locale, id: string, values?: string | Array<string> | number): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x566be7,_0x525cff,_0x30a043){const t=_0x566be7['t'];switch(_0x525cff){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'Reply':return t('Reply');case'Save':return t('Save');case'NUMBER_OF_COMMENTS':return t({'string':'%0\x20Comment','plural':'%0\x20Comments','id':'NUMBER_OF_COMMENTS'},_0x30a043);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'},_0x30a043);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'},_0x30a043);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'},_0x30a043);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'';}}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3
4
|
*/
|
|
4
5
|
/**
|
|
5
6
|
* Creates mutation observer to observe changes that might cause height change.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, 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 _0x9f2d=['attributeName','cancel','childList','characterData','attributes','type'];(function(_0x155337,_0x9f2de2){const _0x39ddfd=function(_0x21c7d9){while(--_0x21c7d9){_0x155337['push'](_0x155337['shift']());}};_0x39ddfd(++_0x9f2de2);}(_0x9f2d,0xbd));const _0x39dd=function(_0x155337,_0x9f2de2){_0x155337=_0x155337-0x0;let _0x39ddfd=_0x9f2d[_0x155337];return _0x39ddfd;};import{throttle as _0x5594c7}from'lodash-es';export default function Dt(_0x480c73){const _0x479abd=_0x5594c7(_0x480c73,0x1e),_0x4ef2f3=new MutationObserver(_0x54481b=>{for(const _0x367272 of _0x54481b)(_0x39dd('0x1')==_0x367272[_0x39dd('0x2')]&&'class'==_0x367272[_0x39dd('0x3')]||_0x39dd('0x5')==_0x367272[_0x39dd('0x2')]||_0x39dd('0x0')==_0x367272[_0x39dd('0x2')])&&_0x479abd();});return{'attach'(_0x420383){_0x4ef2f3['observe'](_0x420383,{'attributes':!0x0,'childList':!0x0,'subtree':!0x0,'characterData':!0x0});},'detach'(){_0x4ef2f3['disconnect'](),_0x479abd[_0x39dd('0x4')]();}};}
|