@ckeditor/ckeditor5-editor-multi-root 47.6.1 → 48.0.0-alpha.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 CHANGED
@@ -18,7 +18,7 @@ Where not otherwise indicated, all CKEditor 5 content is authored by CKSour
18
18
 
19
19
  The following libraries are included in CKEditor 5 under the [MIT license](https://opensource.org/licenses/MIT):
20
20
 
21
- * es-toolkit - Copyright (c) 2024 Viva Republica, Inc.
21
+ * es-toolkit - Copyright (c) 2024 Viva Republica, Inc and Copyright OpenJS Foundation and other contributors.
22
22
 
23
23
  Trademarks
24
24
  ----------
@@ -4,9 +4,9 @@
4
4
  */
5
5
  import { type RootAttributes } from './multirooteditor.js';
6
6
  declare module '@ckeditor/ckeditor5-core' {
7
- interface EditorConfig {
7
+ interface RootConfig {
8
8
  /**
9
- * Initial roots attributes for the document roots.
9
+ * Initial root attributes for a root.
10
10
  *
11
11
  * **Note: This configuration option is supported only by the
12
12
  * {@link module:editor-multi-root/multirooteditor~MultiRootEditor multi-root} editor type.**
@@ -34,11 +34,19 @@ declare module '@ckeditor/ckeditor5-core' {
34
34
  * },
35
35
  * // Config:
36
36
  * {
37
- * rootsAttributes: {
38
- * uid1: { order: 20, isLocked: false }, // Third, unlocked.
39
- * uid2: { order: 10, isLocked: true }, // Second, locked.
40
- * uid3: { order: 30, isLocked: true }, // Fourth, locked.
41
- * uid4: { order: 0, isLocked: false } // First, unlocked.
37
+ * roots: {
38
+ * uid1: {
39
+ * modelAttributes: { order: 20, isLocked: false } // Third, unlocked.
40
+ * },
41
+ * uid2: {
42
+ * modelAttributes: { order: 10, isLocked: true } // Second, locked.
43
+ * },
44
+ * uid3: {
45
+ * modelAttributes: { order: 30, isLocked: true } // Fourth, locked.
46
+ * },
47
+ * uid4: {
48
+ * modelAttributes: { order: 0, isLocked: false } // First, unlocked.
49
+ * }
42
50
  * }
43
51
  * }
44
52
  * )
@@ -75,9 +83,9 @@ declare module '@ckeditor/ckeditor5-core' {
75
83
  * } );
76
84
  * ```
77
85
  */
78
- rootsAttributes?: Record<string, RootAttributes>;
86
+ modelAttributes?: RootAttributes;
79
87
  /**
80
- * A list of names of all the roots that exist in the document but are not initially loaded by the editor.
88
+ * Flag for the root that exist in the document but is not initially loaded by the editor.
81
89
  *
82
90
  * **Important! Lazy roots loading is an experimental feature, and may become deprecated. Be advised of the following
83
91
  * known limitations:**
@@ -97,7 +105,14 @@ declare module '@ckeditor/ckeditor5-core' {
97
105
  *
98
106
  * This is useful for handling big documents that contain hundreds of roots, or contain very large roots, which may have
99
107
  * impact editor performance if loaded all at once.
108
+ *
109
+ * **Note: This configuration option is supported only by the
110
+ * {@link module:editor-multi-root/multirooteditor~MultiRootEditor multi-root} editor type.**
111
+ *
112
+ * **Note: This property has been deprecated and will be removed in the future versions of CKEditor.**
113
+ *
114
+ * @deprecated
100
115
  */
101
- lazyRoots?: Array<string>;
116
+ lazyLoad?: boolean;
102
117
  }
103
118
  }
package/dist/index.css CHANGED
@@ -2,3 +2,6 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
+
6
+
7
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index.css.map */"]}
@@ -8,5 +8,5 @@
8
8
  export { MultiRootEditor } from './multirooteditor.js';
9
9
  export { MultiRootEditorUI } from './multirooteditorui.js';
10
10
  export { MultiRootEditorUIView } from './multirooteditoruiview.js';
11
- export type { RootAttributes, AddRootEvent, DetachRootEvent, LoadRootEvent, AddRootOptions, LoadRootOptions } from './multirooteditor.js';
11
+ export type { RootAttributes, AddRootEvent, DetachRootEvent, LoadRootEvent, AddRootOptions, LoadRootOptions, AddRootRootConfig, RootEditableOptions } from './multirooteditor.js';
12
12
  import './augmentation.js';