@ckeditor/ckeditor5-collaboration-core 40.0.0 → 40.2.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/CHANGELOG.md CHANGED
@@ -6,31 +6,31 @@ All changes in the package are documented at https://github.com/ckeditor/ckedito
6
6
  Changes for the past releases are available below.
7
7
 
8
8
 
9
- ## 23.0.0 (2020-09-25)
9
+ ## 23.0.0 (September 25, 2020)
10
10
 
11
11
  Internal changes only (updated dependencies, documentation, etc.).
12
12
 
13
13
 
14
- ## 22.0.0 (2020-08-25)
14
+ ## 22.0.0 (August 25, 2020)
15
15
 
16
16
  Internal changes only (updated dependencies, documentation, etc.).
17
17
 
18
- ## 21.0.0 (2020-07-24)
18
+ ## 21.0.0 (July 24, 2020)
19
19
 
20
20
  Internal changes only (updated dependencies, documentation, etc.).
21
21
 
22
22
 
23
- ## 20.0.1 (2020-06-26)
23
+ ## 20.0.1 (June 26, 2020)
24
24
 
25
25
  Internal changes only (updated dependencies, documentation, etc.).
26
26
 
27
27
 
28
- ## 19.0.2 (2020-05-25)
28
+ ## 19.0.2 (May 25, 2020)
29
29
 
30
30
  Internal changes only (updated dependencies, documentation, etc.).
31
31
 
32
32
 
33
- ## 19.0.1 (2020-04-30)
33
+ ## 19.0.1 (April 30, 2020)
34
34
 
35
35
  ### BREAKING CHANGES
36
36
 
@@ -46,59 +46,59 @@ Internal changes only (updated dependencies, documentation, etc.).
46
46
  * `Users#me` will no longer set the local user to anonymous by default (if `Users#defineMe()` was not called).
47
47
 
48
48
 
49
- ## 18.0.0 (2020-03-19)
49
+ ## 18.0.0 (March 19, 2020)
50
50
 
51
51
  Internal changes only (updated dependencies, documentation, etc.).
52
52
 
53
53
 
54
- ## 17.0.0 (2020-02-20)
54
+ ## 17.0.0 (February 20, 2020)
55
55
 
56
56
  Internal changes only (updated dependencies, documentation, etc.).
57
57
 
58
58
 
59
- ## 16.0.0 (2019-12-02)
59
+ ## 16.0.0 (December 2, 2019)
60
60
 
61
61
  ### Features
62
62
 
63
63
  * Introduced the [`users.colorsCount`](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html#adding-more-users-colors) configuration option.
64
64
 
65
65
 
66
- ## 15.0.0 (2019-10-23)
66
+ ## 15.0.0 (October 23, 2019)
67
67
 
68
68
  ### Other changes
69
69
 
70
70
  * Added a more explanatory message for an error that is thrown when the local user is not defined.
71
71
 
72
72
 
73
- ## 1.2.0 (2019-08-22)
73
+ ## 1.2.0 (August 22, 2019)
74
74
 
75
75
  ### Features
76
76
 
77
77
  * Added a method to get an operation author. See the [Users API guide](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html#operation-authors) for more information.
78
78
 
79
79
 
80
- ## 1.1.0 (2019-07-04)
80
+ ## 1.1.0 (July 4, 2019)
81
81
 
82
82
  ### Features
83
83
 
84
84
  * Added the `user-id` data attribute to the `user` element. Now you can attach some action to user avatars in the presence list and comments.
85
85
 
86
86
 
87
- ## 1.0.3 (2019-06-05)
87
+ ## 1.0.3 (June 5, 2019)
88
88
 
89
89
  Internal changes only (updated dependencies, documentation, etc.).
90
90
 
91
91
 
92
- ## 1.0.2 (2019-04-05)
92
+ ## 1.0.2 (April 4, 2019)
93
93
 
94
94
  Internal changes only (updated dependencies, documentation, etc.).
95
95
 
96
96
 
97
- ## 1.0.1 (2019-02-25)
97
+ ## 1.0.1 (February 5, 2019)
98
98
 
99
99
  Internal changes only (updated dependencies, documentation, etc.).
100
100
 
101
101
 
102
- ## 1.0.0 (2018-12-06)
102
+ ## 1.0.0 (December 6, 2018)
103
103
 
104
- The initialization of this repository. CKEditor 5 collaboration core was extracted from the CKEditor 5 collaboration package. It contains a plugin that supports [user handling](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html) which is a common part for two collaboration features: [real-time collaboration](https://ckeditor.com/collaboration/real-time/) and [comments](https://ckeditor.com/collaboration/comments/).
104
+ The initialization of this repository. CKEditor 5 collaboration core was extracted from the CKEditor 5 collaboration package. It contains a plugin that supports [user handling](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/users.html) which is a common part of two collaboration features: [real-time collaboration](https://ckeditor.com/collaboration/real-time/) and [comments](https://ckeditor.com/collaboration/comments/).
package/LICENSE.md CHANGED
@@ -2,10 +2,10 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor&nbsp;5 collaboration core** (https://ckeditor.com/collaboration/)<br>
5
- Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
5
+ Copyright (c) 20032023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
6
6
 
7
7
  CKEditor&nbsp;5 collaboration core is licensed under a commercial license and is protected by copyright law.
8
- We operate on subscription-based licensing terms. For more details about available licensing options please contact us at sales@cksource.com.
8
+ For more details about available licensing options please contact us at sales@cksource.com.
9
9
 
10
10
  Sources of Intellectual Property Included in CKEditor&nbsp;5 collaboration core
11
11
  --------------------------------------------------------------------------
@@ -14,10 +14,10 @@ Where not otherwise indicated, all CKEditor&nbsp;5 collaboration core content is
14
14
 
15
15
  The following libraries are included in CKEditor&nbsp;5 collaboration core under the [MIT license](https://opensource.org/licenses/MIT):
16
16
 
17
- * Lo-Dash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas,
18
- * date-fns - Copyright (c) Sasha Koss.
17
+ * date-fns - Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org.
18
+ * Lodash - Copyright (c) JS Foundation and other contributors https://js.foundation/. Based on Underscore.js, copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors http://underscorejs.org/.
19
19
 
20
20
  Trademarks
21
21
  ----------
22
22
 
23
- **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
23
+ **CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
package/README.md CHANGED
@@ -19,7 +19,7 @@ As a licensed CKEditor&nbsp;5 collaboration features user you can report bugs an
19
19
  ## License
20
20
 
21
21
  **CKEditor&nbsp;5 collaboration core**<br>
22
- Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
22
+ Copyright (c) 20032023, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
23
23
 
24
24
  CKEditor&nbsp;5 collaboration core is licensed under a commercial license and is protected by copyright law.
25
25
  For more details about available licensing options please contact us at sales@cksource.com.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-collaboration-core",
3
- "version": "40.0.0",
3
+ "version": "40.2.0",
4
4
  "description": "Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "main": "src/index.js",
33
33
  "dependencies": {
34
- "ckeditor5": "40.0.0",
34
+ "ckeditor5": "40.2.0",
35
35
  "date-fns": "2.30.0"
36
36
  },
37
37
  "files": [
@@ -1,38 +1,38 @@
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
- import type { LocaleConfig, Users } from './index';
6
- import type { RealTimeCollaborationConfig } from './config';
7
- declare module '@ckeditor/ckeditor5-core' {
8
- interface EditorConfig {
9
- /**
10
- * The locale configuration of the editor.
11
- */
12
- locale?: LocaleConfig;
13
- /**
14
- * The users plugin configuration.
15
- */
16
- users?: {
17
- /**
18
- * User ID value that will be used for the anonymous user.
19
- */
20
- anonymousUserId?: string;
21
- /**
22
- * Number of defined colors that are randomly assigned to users.
23
- */
24
- colorsCount?: number;
25
- };
26
- /**
27
- * The configuration of the real time collaboration feature.
28
- *
29
- * Read more in {@link module:collaboration-core/config~RealTimeCollaborationConfig}.
30
- *
31
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
32
- */
33
- collaboration?: RealTimeCollaborationConfig;
34
- }
35
- interface PluginsMap {
36
- [Users.pluginName]: Users;
37
- }
38
- }
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
+ import type { LocaleConfig, Users } from './index';
6
+ import type { RealTimeCollaborationConfig } from './config';
7
+ declare module '@ckeditor/ckeditor5-core' {
8
+ interface EditorConfig {
9
+ /**
10
+ * The locale configuration of the editor.
11
+ */
12
+ locale?: LocaleConfig;
13
+ /**
14
+ * The users plugin configuration.
15
+ */
16
+ users?: {
17
+ /**
18
+ * User ID value that will be used for the anonymous user.
19
+ */
20
+ anonymousUserId?: string;
21
+ /**
22
+ * Number of defined colors that are randomly assigned to users.
23
+ */
24
+ colorsCount?: number;
25
+ };
26
+ /**
27
+ * The configuration of the real time collaboration feature.
28
+ *
29
+ * Read more in {@link module:collaboration-core/config~RealTimeCollaborationConfig}.
30
+ *
31
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
32
+ */
33
+ collaboration?: RealTimeCollaborationConfig;
34
+ }
35
+ interface PluginsMap {
36
+ [Users.pluginName]: Users;
37
+ }
38
+ }
@@ -1,21 +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
- */
5
- /**
6
- * @module collaboration-core/collaborationhistory
7
- * @publicApi
8
- */
9
- import type { default as CollaborationOperation } from './collaborationoperation';
10
- /**
11
- * Interface compatible with {@link module:engine/model/history~History} with the difference that it uses
12
- * {@link module:collaboration-core/collaborationoperation~CollaborationOperation} instead of regular model operations.
13
- */
14
- export default interface CollaborationHistory {
15
- _operations: Array<CollaborationOperation>;
16
- version: number;
17
- getOperations(fromBaseVersion?: number, toBaseVersion?: number): Array<CollaborationOperation>;
18
- getOperation(baseVersion: number): CollaborationOperation | undefined;
19
- addOperation(operation: CollaborationOperation): void;
20
- reset(): void;
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
+ /**
6
+ * @module collaboration-core/collaborationhistory
7
+ * @publicApi
8
+ */
9
+ import type { default as CollaborationOperation } from './collaborationoperation';
10
+ /**
11
+ * Interface compatible with {@link module:engine/model/history~History} with the difference that it uses
12
+ * {@link module:collaboration-core/collaborationoperation~CollaborationOperation} instead of regular model operations.
13
+ */
14
+ export default interface CollaborationHistory {
15
+ _operations: Array<CollaborationOperation>;
16
+ version: number;
17
+ getOperations(fromBaseVersion?: number, toBaseVersion?: number): Array<CollaborationOperation>;
18
+ getOperation(baseVersion: number): CollaborationOperation | undefined;
19
+ addOperation(operation: CollaborationOperation): void;
20
+ reset(): void;
21
+ }
@@ -1,28 +1,28 @@
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
- /**
6
- * @module collaboration-core/collaborationoperation
7
- * @publicApi
8
- */
9
- import type { Operation, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation, RootOperation, RootAttributeOperation } from 'ckeditor5/src/engine';
10
- /**
11
- * Extends the {@link module:engine/model/operation/operation operation}.
12
- */
13
- export default interface CollaborationOperation extends Operation {
14
- _isInit?: boolean;
15
- _authorId?: null | string;
16
- _isDisconnection?: boolean;
17
- createdAt?: Date;
18
- wasUndone?: boolean;
19
- affectsData?: Record<string, any>;
20
- clone(): CollaborationOperation;
21
- }
22
- export type InsertCollaborationOperation = CollaborationOperation & InsertOperation;
23
- export type MoveCollaborationOperation = CollaborationOperation & MoveOperation;
24
- export type MergeCollaborationOperation = CollaborationOperation & MergeOperation;
25
- export type SplitCollaborationOperation = CollaborationOperation & SplitOperation;
26
- export type MarkerCollaborationOperation = CollaborationOperation & MarkerOperation;
27
- export type RootCollaborationOperation = CollaborationOperation & RootOperation;
28
- export type RootAttributeCollaborationOperation = CollaborationOperation & RootAttributeOperation;
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
+ /**
6
+ * @module collaboration-core/collaborationoperation
7
+ * @publicApi
8
+ */
9
+ import type { Operation, InsertOperation, MergeOperation, MoveOperation, SplitOperation, MarkerOperation, RootOperation, RootAttributeOperation } from 'ckeditor5/src/engine';
10
+ /**
11
+ * Extends the {@link module:engine/model/operation/operation operation}.
12
+ */
13
+ export default interface CollaborationOperation extends Operation {
14
+ _isInit?: boolean;
15
+ _authorId?: null | string;
16
+ _isDisconnection?: boolean;
17
+ createdAt?: Date;
18
+ wasUndone?: boolean;
19
+ affectsData?: Record<string, any>;
20
+ clone(): CollaborationOperation;
21
+ }
22
+ export type InsertCollaborationOperation = CollaborationOperation & InsertOperation;
23
+ export type MoveCollaborationOperation = CollaborationOperation & MoveOperation;
24
+ export type MergeCollaborationOperation = CollaborationOperation & MergeOperation;
25
+ export type SplitCollaborationOperation = CollaborationOperation & SplitOperation;
26
+ export type MarkerCollaborationOperation = CollaborationOperation & MarkerOperation;
27
+ export type RootCollaborationOperation = CollaborationOperation & RootOperation;
28
+ export type RootAttributeCollaborationOperation = CollaborationOperation & RootAttributeOperation;
package/src/config.d.ts CHANGED
@@ -1,102 +1,102 @@
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
- /**
6
- * @module collaboration-core/config
7
- * @publicApi
8
- */
9
- /**
10
- * The locale configuration.
11
- *
12
- * ```ts
13
- * ClassicEditor
14
- * .create( {
15
- * locale: {
16
- * // The localization configuration.
17
- * }
18
- * } )
19
- * .then( ... )
20
- * .catch( ... );
21
- * ```
22
- *
23
- * See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
24
- */
25
- export interface LocaleConfig {
26
- /**
27
- * A function that formats date to the custom format. It is used in dates in annotations (balloons) displaying
28
- * comments and suggestions details.
29
- *
30
- * The default formatting can be changed by setting a custom formatting function to `config.locale.dateTimeFormat`.
31
- *
32
- * ```ts
33
- * import format from 'date-fns/format';
34
- *
35
- * ClassicEditor
36
- * .create( document.querySelector( '#editor' ), {
37
- * toolbar: {
38
- * items: [ 'bold', 'italic', '|', 'comment' ]
39
- * },
40
- * sidebar: {
41
- * container: document.querySelector( '#sidebar' )
42
- * },
43
- * locale: {
44
- * dateTimeFormat: date => format( date, 'dd/MM/yyyy' )
45
- * }
46
- * } )
47
- * .catch( error => console.error( error ) );
48
- * ```
49
- *
50
- * @returns The generated date.
51
- */
52
- dateTimeFormat?: (date: Date) => string;
53
- }
54
- /**
55
- * The configuration of the real-time collaboration features.
56
- *
57
- * ```ts
58
- * ClassicEditor
59
- * .create( {
60
- * collaboration: ... // Collaboration features configuration.
61
- * } )
62
- * .then( ... )
63
- * .catch( ... );
64
- * ```
65
- *
66
- * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
67
- */
68
- export interface RealTimeCollaborationConfig {
69
- /**
70
- * The channel ID is a unique ID that identifies the data loaded in the editor instance or used by
71
- * the context instance.
72
- *
73
- * If specified for the editor, it is the document ID.
74
- *
75
- * If you are using multiple editors instances at the same time, each of them should use a different
76
- * channel ID to connect to a specific document.
77
- *
78
- * If specified for context, it is the ID for all the data related to context instance.
79
- * This ID will be used for data that is not related to an editor instance, for example comments
80
- * outside the editor.
81
- *
82
- * In the case of context, the ID can be an ID of a subpage or a form, or a different entity accordingly
83
- * to your application.
84
- *
85
- * The channel ID can be used to recognize entity to which piece of data belongs in integrations that use `Context`
86
- * and context plugins. For example, if you are preparing a custom integration using the comments API,
87
- * you can use the channel ID to recognize whether the comment was added to an editor instance
88
- * (and which one) or to the context.
89
- *
90
- * ```ts
91
- * ClassicEditor
92
- * .create( {
93
- * collaboration: {
94
- * channelId: 'your-channel-id'
95
- * }
96
- * } )
97
- * .then( ... )
98
- * .catch( ... );
99
- * ```
100
- */
101
- channelId?: string;
102
- }
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
+ /**
6
+ * @module collaboration-core/config
7
+ * @publicApi
8
+ */
9
+ /**
10
+ * The locale configuration.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * locale: {
16
+ * // The localization configuration.
17
+ * }
18
+ * } )
19
+ * .then( ... )
20
+ * .catch( ... );
21
+ * ```
22
+ *
23
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
24
+ */
25
+ export interface LocaleConfig {
26
+ /**
27
+ * A function that formats date to the custom format. It is used in dates in annotations (balloons) displaying
28
+ * comments and suggestions details.
29
+ *
30
+ * The default formatting can be changed by setting a custom formatting function to `config.locale.dateTimeFormat`.
31
+ *
32
+ * ```ts
33
+ * import format from 'date-fns/format';
34
+ *
35
+ * ClassicEditor
36
+ * .create( document.querySelector( '#editor' ), {
37
+ * toolbar: {
38
+ * items: [ 'bold', 'italic', '|', 'comment' ]
39
+ * },
40
+ * sidebar: {
41
+ * container: document.querySelector( '#sidebar' )
42
+ * },
43
+ * locale: {
44
+ * dateTimeFormat: date => format( date, 'dd/MM/yyyy' )
45
+ * }
46
+ * } )
47
+ * .catch( error => console.error( error ) );
48
+ * ```
49
+ *
50
+ * @returns The generated date.
51
+ */
52
+ dateTimeFormat?: (date: Date) => string;
53
+ }
54
+ /**
55
+ * The configuration of the real-time collaboration features.
56
+ *
57
+ * ```ts
58
+ * ClassicEditor
59
+ * .create( {
60
+ * collaboration: ... // Collaboration features configuration.
61
+ * } )
62
+ * .then( ... )
63
+ * .catch( ... );
64
+ * ```
65
+ *
66
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
67
+ */
68
+ export interface RealTimeCollaborationConfig {
69
+ /**
70
+ * The channel ID is a unique ID that identifies the data loaded in the editor instance or used by
71
+ * the context instance.
72
+ *
73
+ * If specified for the editor, it is the document ID.
74
+ *
75
+ * If you are using multiple editors instances at the same time, each of them should use a different
76
+ * channel ID to connect to a specific document.
77
+ *
78
+ * If specified for context, it is the ID for all the data related to context instance.
79
+ * This ID will be used for data that is not related to an editor instance, for example comments
80
+ * outside the editor.
81
+ *
82
+ * In the case of context, the ID can be an ID of a subpage or a form, or a different entity accordingly
83
+ * to your application.
84
+ *
85
+ * The channel ID can be used to recognize entity to which piece of data belongs in integrations that use `Context`
86
+ * and context plugins. For example, if you are preparing a custom integration using the comments API,
87
+ * you can use the channel ID to recognize whether the comment was added to an editor instance
88
+ * (and which one) or to the context.
89
+ *
90
+ * ```ts
91
+ * ClassicEditor
92
+ * .create( {
93
+ * collaboration: {
94
+ * channelId: 'your-channel-id'
95
+ * }
96
+ * } )
97
+ * .then( ... )
98
+ * .catch( ... );
99
+ * ```
100
+ */
101
+ channelId?: string;
102
+ }
package/src/index.d.ts CHANGED
@@ -1,18 +1,19 @@
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 Permissions } from './permissions';
6
- export { default as Users, type User } from './users';
7
- export { default as UserView } from './users/view/userview';
8
- export { default as getDateTimeFormatter } from './utils/getdatetimeformatter';
9
- export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from './utils/getmarkerdomelement';
10
- export { default as trimHtml } from './utils/trim-html';
11
- export { default as ConfirmMixin } from './utils/confirmmixin';
12
- export { default as hashObject } from './utils/hashobject';
13
- export { default as sanitizeEditorConfig } from './utils/sanitizeEditorConfig';
14
- export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation';
15
- export { default as CollaborationHistory } from './collaborationhistory';
16
- export type { LocaleConfig, RealTimeCollaborationConfig } from './config';
17
- export * from './suggestionstyles';
18
- import './augmentation';
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 Permissions } from './permissions';
6
+ export { default as Users, type User } from './users';
7
+ export { default as UserView } from './users/view/userview';
8
+ export { default as getDateTimeFormatter } from './utils/getdatetimeformatter';
9
+ export { default as getMarkerDomElement, getAllMarkersDomElementsSorted } from './utils/getmarkerdomelement';
10
+ export { default as trimHtml } from './utils/trim-html';
11
+ export { default as ConfirmMixin } from './utils/confirmmixin';
12
+ export { default as hashObject } from './utils/hashobject';
13
+ export { default as sanitizeEditorConfig } from './utils/sanitizeEditorConfig';
14
+ export { default as surroundingMarkersDetector } from './utils/surroundingmarkersdetector';
15
+ export { default as CollaborationOperation, InsertCollaborationOperation, SplitCollaborationOperation, MarkerCollaborationOperation, MoveCollaborationOperation, MergeCollaborationOperation, RootCollaborationOperation, RootAttributeCollaborationOperation } from './collaborationoperation';
16
+ export { default as CollaborationHistory } from './collaborationhistory';
17
+ export type { LocaleConfig, RealTimeCollaborationConfig } from './config';
18
+ export * from './suggestionstyles';
19
+ import './augmentation';
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export{default as Permissions}from'./permissions';export{default as Users}from'./users';export{default as UserView}from'./users/view/userview';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';export{default as ConfirmMixin}from'./utils/confirmmixin';export{default as hashObject}from'./utils/hashobject';export{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig';export*from'./suggestionstyles';import'./augmentation';
23
+ export{default as Permissions}from'./permissions';export{default as Users}from'./users';export{default as UserView}from'./users/view/userview';export{default as getDateTimeFormatter}from'./utils/getdatetimeformatter';export{default as getMarkerDomElement,getAllMarkersDomElementsSorted}from'./utils/getmarkerdomelement';export{default as trimHtml}from'./utils/trim-html';export{default as ConfirmMixin}from'./utils/confirmmixin';export{default as hashObject}from'./utils/hashobject';export{default as sanitizeEditorConfig}from'./utils/sanitizeEditorConfig';export{default as surroundingMarkersDetector}from'./utils/surroundingmarkersdetector';export*from'./suggestionstyles';import'./augmentation';