@ckeditor/ckeditor5-ui 41.4.1 → 42.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.
Files changed (48) hide show
  1. package/README.md +7 -1
  2. package/ckeditor5-metadata.json +1 -1
  3. package/dist/index.js +10016 -8366
  4. package/dist/index.js.map +1 -1
  5. package/dist/types/colorselector/documentcolorcollection.d.ts +1 -1
  6. package/dist/types/dialog/dialogview.d.ts +1 -1
  7. package/dist/types/editorui/accessibilityhelp/accessibilityhelp.d.ts +1 -1
  8. package/dist/types/editorui/editorui.d.ts +1 -1
  9. package/dist/types/editorui/poweredby.d.ts +1 -1
  10. package/dist/types/focuscycler.d.ts +1 -1
  11. package/dist/types/menubar/utils.d.ts +3 -1
  12. package/dist/types/model.d.ts +1 -1
  13. package/dist/types/panel/balloon/balloonpanelview.d.ts +27 -27
  14. package/dist/types/template.d.ts +1 -1
  15. package/dist/types/tooltipmanager.d.ts +1 -1
  16. package/dist/types/view.d.ts +1 -1
  17. package/package.json +3 -3
  18. package/src/colorselector/colorgridsfragmentview.js +2 -3
  19. package/src/colorselector/documentcolorcollection.d.ts +1 -1
  20. package/src/colorselector/documentcolorcollection.js +1 -1
  21. package/src/dialog/dialogview.d.ts +1 -1
  22. package/src/dialog/dialogview.js +2 -2
  23. package/src/editorui/accessibilityhelp/accessibilityhelp.d.ts +1 -1
  24. package/src/editorui/accessibilityhelp/accessibilityhelp.js +3 -1
  25. package/src/editorui/editorui.d.ts +1 -1
  26. package/src/editorui/editorui.js +1 -1
  27. package/src/editorui/poweredby.d.ts +1 -1
  28. package/src/editorui/poweredby.js +1 -1
  29. package/src/focuscycler.d.ts +1 -1
  30. package/src/focuscycler.js +1 -1
  31. package/src/menubar/utils.d.ts +3 -1
  32. package/src/menubar/utils.js +6 -2
  33. package/src/model.d.ts +1 -1
  34. package/src/model.js +1 -1
  35. package/src/panel/balloon/balloonpanelview.d.ts +27 -27
  36. package/src/panel/balloon/balloonpanelview.js +268 -269
  37. package/src/panel/balloon/contextualballoon.js +1 -1
  38. package/src/panel/sticky/stickypanelview.js +1 -1
  39. package/src/template.d.ts +1 -1
  40. package/src/template.js +1 -1
  41. package/src/toolbar/balloon/balloontoolbar.js +3 -3
  42. package/src/toolbar/block/blockbuttonview.js +1 -1
  43. package/src/toolbar/block/blocktoolbar.js +1 -1
  44. package/src/toolbar/toolbarview.js +2 -2
  45. package/src/tooltipmanager.d.ts +1 -1
  46. package/src/tooltipmanager.js +19 -7
  47. package/src/view.d.ts +1 -1
  48. package/src/view.js +1 -1
@@ -22,7 +22,7 @@ declare const DocumentColorCollection_base: import("@ckeditor/ckeditor5-utils").
22
22
  /**
23
23
  * A collection to store document colors. It enforces colors to be unique.
24
24
  */
25
- export default class DocumentColorCollection extends DocumentColorCollection_base {
25
+ export default class DocumentColorCollection extends /* #__PURE__ */ DocumentColorCollection_base {
26
26
  /**
27
27
  * Indicates whether the document color collection is empty.
28
28
  *
@@ -47,7 +47,7 @@ declare const DialogView_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof
47
47
  /**
48
48
  * A dialog view class.
49
49
  */
50
- export default class DialogView extends DialogView_base implements DraggableView {
50
+ export default class DialogView extends /* #__PURE__ */ DialogView_base implements DraggableView {
51
51
  /**
52
52
  * A collection of the child views inside of the dialog.
53
53
  * A dialog can have 3 optional parts: header, content, and actions.
@@ -10,7 +10,7 @@
10
10
  * @module ui/editorui/accessibilityhelp/accessibilityhelp
11
11
  */
12
12
  import { Plugin } from '@ckeditor/ckeditor5-core';
13
- import { Dialog } from '../../index.js';
13
+ import Dialog from '../../dialog/dialog.js';
14
14
  import AccessibilityHelpContentView from './accessibilityhelpcontentview.js';
15
15
  import '../../../theme/components/editorui/accessibilityhelp.css';
16
16
  /**
@@ -24,7 +24,7 @@ declare const EditorUI_base: {
24
24
  /**
25
25
  * A class providing the minimal interface that is required to successfully bootstrap any editor UI.
26
26
  */
27
- export default abstract class EditorUI extends EditorUI_base {
27
+ export default abstract class EditorUI extends /* #__PURE__ */ EditorUI_base {
28
28
  /**
29
29
  * The editor that the UI belongs to.
30
30
  */
@@ -20,7 +20,7 @@ declare const PoweredBy_base: {
20
20
  *
21
21
  * @private
22
22
  */
23
- export default class PoweredBy extends PoweredBy_base {
23
+ export default class PoweredBy extends /* #__PURE__ */ PoweredBy_base {
24
24
  /**
25
25
  * Editor instance the helper was created for.
26
26
  */
@@ -68,7 +68,7 @@ declare const FocusCycler_base: {
68
68
  *
69
69
  * Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more.
70
70
  */
71
- export default class FocusCycler extends FocusCycler_base {
71
+ export default class FocusCycler extends /* #__PURE__ */ FocusCycler_base {
72
72
  /**
73
73
  * A {@link module:ui/focuscycler~FocusableView focusable views} collection that the cycler operates on.
74
74
  */
@@ -251,7 +251,7 @@ export declare const MenuBarMenuViewPanelPositioningFunctions: Record<string, Po
251
251
  * {
252
252
  * groupId: 'insertMainWidgets',
253
253
  * items: [
254
- * 'menuBar:uploadImage',
254
+ * 'menuBar:insertImage',
255
255
  * 'menuBar:ckbox',
256
256
  * 'menuBar:ckfinder',
257
257
  * 'menuBar:insertTable'
@@ -267,6 +267,7 @@ export declare const MenuBarMenuViewPanelPositioningFunctions: Record<string, Po
267
267
  * {
268
268
  * groupId: 'insertMinorWidgets',
269
269
  * items: [
270
+ * 'menuBar:mediaEmbed',
270
271
  * 'menuBar:insertTemplate',
271
272
  * 'menuBar:blockQuote',
272
273
  * 'menuBar:codeBlock',
@@ -354,6 +355,7 @@ export declare const MenuBarMenuViewPanelPositioningFunctions: Record<string, Po
354
355
  * items: [
355
356
  * 'menuBar:bulletedList',
356
357
  * 'menuBar:numberedList',
358
+ * 'menuBar:multiLevelList',
357
359
  * 'menuBar:todoList'
358
360
  * ]
359
361
  * },
@@ -13,7 +13,7 @@ declare const Model_base: {
13
13
  /**
14
14
  * The base MVC model class.
15
15
  */
16
- export default class Model extends Model_base {
16
+ export default class Model extends /* #__PURE__ */ Model_base {
17
17
  [x: string]: unknown;
18
18
  /**
19
19
  * Creates a new Model instance.
@@ -212,6 +212,32 @@ export default class BalloonPanelView extends View {
212
212
  * Stops managing the pinned state of the panel. See {@link #pin}.
213
213
  */
214
214
  private _stopPinning;
215
+ /**
216
+ * Returns available {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView}
217
+ * {@link module:utils/dom/position~PositioningFunction positioning functions} adjusted by the specific offsets.
218
+ *
219
+ * @internal
220
+ * @param options Options to generate positions. If not specified, this helper will simply return
221
+ * {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.defaultPositions}.
222
+ * @param options.sideOffset A custom side offset (in pixels) of each position. If
223
+ * not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.arrowSideOffset the default value}
224
+ * will be used.
225
+ * @param options.heightOffset A custom height offset (in pixels) of each position. If
226
+ * not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.arrowHeightOffset the default value}
227
+ * will be used.
228
+ * @param options.stickyVerticalOffset A custom offset (in pixels) of the `viewportStickyNorth` positioning function.
229
+ * If not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.stickyVerticalOffset the default value}
230
+ * will be used.
231
+ * @param options.config Additional configuration of the balloon balloon panel view.
232
+ * Currently only {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#withArrow} is supported. Learn more
233
+ * about {@link module:utils/dom/position~PositioningFunction positioning functions}.
234
+ */
235
+ static generatePositions(options?: {
236
+ sideOffset?: number;
237
+ heightOffset?: number;
238
+ stickyVerticalOffset?: number;
239
+ config?: object;
240
+ }): Record<string, PositioningFunction>;
215
241
  /**
216
242
  * A side offset of the arrow tip from the edge of the balloon. Controlled by CSS.
217
243
  *
@@ -654,36 +680,10 @@ export default class BalloonPanelView extends View {
654
680
  * Positioning functions must be compatible with {@link module:utils/dom/position~DomPoint}.
655
681
  *
656
682
  * Default positioning functions with customized offsets can be generated using
657
- * {@link module:ui/panel/balloon/balloonpanelview~generatePositions}.
683
+ * {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.generatePositions}.
658
684
  *
659
685
  * The name that the position function returns will be reflected in the balloon panel's class that
660
686
  * controls the placement of the "arrow". See {@link #position} to learn more.
661
687
  */
662
688
  static defaultPositions: Record<string, PositioningFunction>;
663
689
  }
664
- /**
665
- * Returns available {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView}
666
- * {@link module:utils/dom/position~PositioningFunction positioning functions} adjusted by the specific offsets.
667
- *
668
- * @internal
669
- * @param options Options to generate positions. If not specified, this helper will simply return
670
- * {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.defaultPositions}.
671
- * @param options.sideOffset A custom side offset (in pixels) of each position. If
672
- * not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.arrowSideOffset the default value}
673
- * will be used.
674
- * @param options.heightOffset A custom height offset (in pixels) of each position. If
675
- * not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.arrowHeightOffset the default value}
676
- * will be used.
677
- * @param options.stickyVerticalOffset A custom offset (in pixels) of the `viewportStickyNorth` positioning function.
678
- * If not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.stickyVerticalOffset the default value}
679
- * will be used.
680
- * @param options.config Additional configuration of the balloon balloon panel view.
681
- * Currently only {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#withArrow} is supported. Learn more
682
- * about {@link module:utils/dom/position~PositioningFunction positioning functions}.
683
- */
684
- export declare function generatePositions(options?: {
685
- sideOffset?: number;
686
- heightOffset?: number;
687
- stickyVerticalOffset?: number;
688
- config?: object;
689
- }): Record<string, PositioningFunction>;
@@ -54,7 +54,7 @@ declare const Template_base: {
54
54
  * See {@link module:ui/template~TemplateDefinition} to know more about templates and complex
55
55
  * template definitions.
56
56
  */
57
- export default class Template extends Template_base {
57
+ export default class Template extends /* #__PURE__ */ Template_base {
58
58
  ns?: string;
59
59
  /**
60
60
  * The tag (`tagName`) of this template, e.g. `div`. It also indicates that the template
@@ -72,7 +72,7 @@ declare const TooltipManager_base: {
72
72
  * **Note**: This class is a singleton. All editor instances re-use the same instance loaded by
73
73
  * {@link module:ui/editorui/editorui~EditorUI} of the first editor.
74
74
  */
75
- export default class TooltipManager extends TooltipManager_base {
75
+ export default class TooltipManager extends /* #__PURE__ */ TooltipManager_base {
76
76
  /**
77
77
  * The view rendering text of the tooltip.
78
78
  */
@@ -82,7 +82,7 @@ declare const View_base: import("@ckeditor/ckeditor5-utils").Mixed<{
82
82
  * } );
83
83
  * ```
84
84
  */
85
- export default class View<TElement extends HTMLElement = HTMLElement> extends View_base {
85
+ export default class View<TElement extends HTMLElement = HTMLElement> extends /* #__PURE__ */ View_base {
86
86
  /**
87
87
  * An HTML element of the view. `null` until {@link #render rendered}
88
88
  * from the {@link #template}.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ui",
3
- "version": "41.4.1",
3
+ "version": "42.0.0-alpha.0",
4
4
  "description": "The UI framework and standard UI library of CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -12,8 +12,8 @@
12
12
  "type": "module",
13
13
  "main": "src/index.js",
14
14
  "dependencies": {
15
- "@ckeditor/ckeditor5-core": "41.4.1",
16
- "@ckeditor/ckeditor5-utils": "41.4.1",
15
+ "@ckeditor/ckeditor5-core": "42.0.0-alpha.0",
16
+ "@ckeditor/ckeditor5-utils": "42.0.0-alpha.0",
17
17
  "color-convert": "2.0.1",
18
18
  "color-parse": "1.4.2",
19
19
  "lodash-es": "4.17.21",
@@ -13,7 +13,6 @@ import LabelView from '../label/labelview.js';
13
13
  import Template from '../template.js';
14
14
  import DocumentColorCollection from './documentcolorcollection.js';
15
15
  import { icons } from '@ckeditor/ckeditor5-core';
16
- const { eraser: removeButtonIcon, colorPalette: colorPaletteIcon } = icons;
17
16
  /**
18
17
  * One of the fragments of {@link module:ui/colorselector/colorselectorview~ColorSelectorView}.
19
18
  *
@@ -179,7 +178,7 @@ export default class ColorGridsFragmentView extends View {
179
178
  this.colorPickerButtonView.set({
180
179
  label: this._colorPickerLabel,
181
180
  withText: true,
182
- icon: colorPaletteIcon,
181
+ icon: icons.colorPalette,
183
182
  class: 'ck-color-selector__color-picker'
184
183
  });
185
184
  this.colorPickerButtonView.on('execute', () => {
@@ -193,7 +192,7 @@ export default class ColorGridsFragmentView extends View {
193
192
  const buttonView = new ButtonView();
194
193
  buttonView.set({
195
194
  withText: true,
196
- icon: removeButtonIcon,
195
+ icon: icons.eraser,
197
196
  label: this._removeButtonLabel
198
197
  });
199
198
  buttonView.class = 'ck-color-selector__remove-color';
@@ -18,7 +18,7 @@ declare const DocumentColorCollection_base: import("@ckeditor/ckeditor5-utils").
18
18
  /**
19
19
  * A collection to store document colors. It enforces colors to be unique.
20
20
  */
21
- export default class DocumentColorCollection extends DocumentColorCollection_base {
21
+ export default class DocumentColorCollection extends /* #__PURE__ */ DocumentColorCollection_base {
22
22
  /**
23
23
  * Indicates whether the document color collection is empty.
24
24
  *
@@ -6,7 +6,7 @@ import { Collection, ObservableMixin } from '@ckeditor/ckeditor5-utils';
6
6
  /**
7
7
  * A collection to store document colors. It enforces colors to be unique.
8
8
  */
9
- export default class DocumentColorCollection extends ObservableMixin((Collection)) {
9
+ export default class DocumentColorCollection extends /* #__PURE__ */ ObservableMixin((Collection)) {
10
10
  constructor(options) {
11
11
  super(options);
12
12
  this.set('isEmpty', true);
@@ -43,7 +43,7 @@ declare const DialogView_base: import("@ckeditor/ckeditor5-utils").Mixed<typeof
43
43
  /**
44
44
  * A dialog view class.
45
45
  */
46
- export default class DialogView extends DialogView_base implements DraggableView {
46
+ export default class DialogView extends /* #__PURE__ */ DialogView_base implements DraggableView {
47
47
  /**
48
48
  * A collection of the child views inside of the dialog.
49
49
  * A dialog can have 3 optional parts: header, content, and actions.
@@ -41,11 +41,11 @@ export const DialogViewPosition = {
41
41
  EDITOR_ABOVE_CENTER: 'editor-above-center',
42
42
  EDITOR_BELOW_CENTER: 'editor-below-center'
43
43
  };
44
- const toPx = toUnit('px');
44
+ const toPx = /* #__PURE__ */ toUnit('px');
45
45
  /**
46
46
  * A dialog view class.
47
47
  */
48
- class DialogView extends DraggableViewMixin(View) {
48
+ class DialogView extends /* #__PURE__ */ DraggableViewMixin(View) {
49
49
  /**
50
50
  * @inheritDoc
51
51
  */
@@ -6,7 +6,7 @@
6
6
  * @module ui/editorui/accessibilityhelp/accessibilityhelp
7
7
  */
8
8
  import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { Dialog } from '../../index.js';
9
+ import Dialog from '../../dialog/dialog.js';
10
10
  import AccessibilityHelpContentView from './accessibilityhelpcontentview.js';
11
11
  import '../../../theme/components/editorui/accessibilityhelp.css';
12
12
  /**
@@ -6,7 +6,9 @@
6
6
  * @module ui/editorui/accessibilityhelp/accessibilityhelp
7
7
  */
8
8
  import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { ButtonView, MenuBarMenuListItemButtonView, Dialog } from '../../index.js';
9
+ import ButtonView from '../../button/buttonview.js';
10
+ import Dialog from '../../dialog/dialog.js';
11
+ import MenuBarMenuListItemButtonView from '../../menubar/menubarmenulistitembuttonview.js';
10
12
  import AccessibilityHelpContentView from './accessibilityhelpcontentview.js';
11
13
  import { getEnvKeystrokeText } from '@ckeditor/ckeditor5-utils';
12
14
  import accessibilityIcon from '../../../theme/icons/accessibility.svg';
@@ -20,7 +20,7 @@ declare const EditorUI_base: {
20
20
  /**
21
21
  * A class providing the minimal interface that is required to successfully bootstrap any editor UI.
22
22
  */
23
- export default abstract class EditorUI extends EditorUI_base {
23
+ export default abstract class EditorUI extends /* #__PURE__ */ EditorUI_base {
24
24
  /**
25
25
  * The editor that the UI belongs to.
26
26
  */
@@ -14,7 +14,7 @@ import { ObservableMixin, isVisible, FocusTracker } from '@ckeditor/ckeditor5-ut
14
14
  /**
15
15
  * A class providing the minimal interface that is required to successfully bootstrap any editor UI.
16
16
  */
17
- export default class EditorUI extends ObservableMixin() {
17
+ export default class EditorUI extends /* #__PURE__ */ ObservableMixin() {
18
18
  /**
19
19
  * Creates an instance of the editor UI class.
20
20
  *
@@ -16,7 +16,7 @@ declare const PoweredBy_base: {
16
16
  *
17
17
  * @private
18
18
  */
19
- export default class PoweredBy extends PoweredBy_base {
19
+ export default class PoweredBy extends /* #__PURE__ */ PoweredBy_base {
20
20
  /**
21
21
  * Editor instance the helper was created for.
22
22
  */
@@ -21,7 +21,7 @@ const DEFAULT_LABEL = 'Powered by';
21
21
  *
22
22
  * @private
23
23
  */
24
- export default class PoweredBy extends DomEmitterMixin() {
24
+ export default class PoweredBy extends /* #__PURE__ */ DomEmitterMixin() {
25
25
  /**
26
26
  * Creates a "powered by" helper for a given editor. The feature is initialized on Editor#ready
27
27
  * event.
@@ -64,7 +64,7 @@ declare const FocusCycler_base: {
64
64
  *
65
65
  * Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more.
66
66
  */
67
- export default class FocusCycler extends FocusCycler_base {
67
+ export default class FocusCycler extends /* #__PURE__ */ FocusCycler_base {
68
68
  /**
69
69
  * A {@link module:ui/focuscycler~FocusableView focusable views} collection that the cycler operates on.
70
70
  */
@@ -58,7 +58,7 @@ import { isVisible, EmitterMixin } from '@ckeditor/ckeditor5-utils';
58
58
  *
59
59
  * Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more.
60
60
  */
61
- export default class FocusCycler extends EmitterMixin() {
61
+ export default class FocusCycler extends /* #__PURE__ */ EmitterMixin() {
62
62
  /**
63
63
  * Creates an instance of the focus cycler utility.
64
64
  *
@@ -247,7 +247,7 @@ export declare const MenuBarMenuViewPanelPositioningFunctions: Record<string, Po
247
247
  * {
248
248
  * groupId: 'insertMainWidgets',
249
249
  * items: [
250
- * 'menuBar:uploadImage',
250
+ * 'menuBar:insertImage',
251
251
  * 'menuBar:ckbox',
252
252
  * 'menuBar:ckfinder',
253
253
  * 'menuBar:insertTable'
@@ -263,6 +263,7 @@ export declare const MenuBarMenuViewPanelPositioningFunctions: Record<string, Po
263
263
  * {
264
264
  * groupId: 'insertMinorWidgets',
265
265
  * items: [
266
+ * 'menuBar:mediaEmbed',
266
267
  * 'menuBar:insertTemplate',
267
268
  * 'menuBar:blockQuote',
268
269
  * 'menuBar:codeBlock',
@@ -350,6 +351,7 @@ export declare const MenuBarMenuViewPanelPositioningFunctions: Record<string, Po
350
351
  * items: [
351
352
  * 'menuBar:bulletedList',
352
353
  * 'menuBar:numberedList',
354
+ * 'menuBar:multiLevelList',
353
355
  * 'menuBar:todoList'
354
356
  * ]
355
357
  * },
@@ -434,7 +434,7 @@ export const MenuBarMenuViewPanelPositioningFunctions = {
434
434
  * {
435
435
  * groupId: 'insertMainWidgets',
436
436
  * items: [
437
- * 'menuBar:uploadImage',
437
+ * 'menuBar:insertImage',
438
438
  * 'menuBar:ckbox',
439
439
  * 'menuBar:ckfinder',
440
440
  * 'menuBar:insertTable'
@@ -450,6 +450,7 @@ export const MenuBarMenuViewPanelPositioningFunctions = {
450
450
  * {
451
451
  * groupId: 'insertMinorWidgets',
452
452
  * items: [
453
+ * 'menuBar:mediaEmbed',
453
454
  * 'menuBar:insertTemplate',
454
455
  * 'menuBar:blockQuote',
455
456
  * 'menuBar:codeBlock',
@@ -537,6 +538,7 @@ export const MenuBarMenuViewPanelPositioningFunctions = {
537
538
  * items: [
538
539
  * 'menuBar:bulletedList',
539
540
  * 'menuBar:numberedList',
541
+ * 'menuBar:multiLevelList',
540
542
  * 'menuBar:todoList'
541
543
  * ]
542
544
  * },
@@ -682,7 +684,7 @@ export const DefaultMenuBarItems = [
682
684
  {
683
685
  groupId: 'insertMainWidgets',
684
686
  items: [
685
- 'menuBar:uploadImage',
687
+ 'menuBar:insertImage',
686
688
  'menuBar:ckbox',
687
689
  'menuBar:ckfinder',
688
690
  'menuBar:insertTable'
@@ -698,6 +700,7 @@ export const DefaultMenuBarItems = [
698
700
  {
699
701
  groupId: 'insertMinorWidgets',
700
702
  items: [
703
+ 'menuBar:mediaEmbed',
701
704
  'menuBar:insertTemplate',
702
705
  'menuBar:blockQuote',
703
706
  'menuBar:codeBlock',
@@ -785,6 +788,7 @@ export const DefaultMenuBarItems = [
785
788
  items: [
786
789
  'menuBar:bulletedList',
787
790
  'menuBar:numberedList',
791
+ 'menuBar:multiLevelList',
788
792
  'menuBar:todoList'
789
793
  ]
790
794
  },
package/src/model.d.ts CHANGED
@@ -9,7 +9,7 @@ declare const Model_base: {
9
9
  /**
10
10
  * The base MVC model class.
11
11
  */
12
- export default class Model extends Model_base {
12
+ export default class Model extends /* #__PURE__ */ Model_base {
13
13
  [x: string]: unknown;
14
14
  /**
15
15
  * Creates a new Model instance.
package/src/model.js CHANGED
@@ -10,7 +10,7 @@ import { extend } from 'lodash-es';
10
10
  /**
11
11
  * The base MVC model class.
12
12
  */
13
- export default class Model extends ObservableMixin() {
13
+ export default class Model extends /* #__PURE__ */ ObservableMixin() {
14
14
  /**
15
15
  * Creates a new Model instance.
16
16
  *
@@ -208,6 +208,32 @@ export default class BalloonPanelView extends View {
208
208
  * Stops managing the pinned state of the panel. See {@link #pin}.
209
209
  */
210
210
  private _stopPinning;
211
+ /**
212
+ * Returns available {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView}
213
+ * {@link module:utils/dom/position~PositioningFunction positioning functions} adjusted by the specific offsets.
214
+ *
215
+ * @internal
216
+ * @param options Options to generate positions. If not specified, this helper will simply return
217
+ * {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.defaultPositions}.
218
+ * @param options.sideOffset A custom side offset (in pixels) of each position. If
219
+ * not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.arrowSideOffset the default value}
220
+ * will be used.
221
+ * @param options.heightOffset A custom height offset (in pixels) of each position. If
222
+ * not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.arrowHeightOffset the default value}
223
+ * will be used.
224
+ * @param options.stickyVerticalOffset A custom offset (in pixels) of the `viewportStickyNorth` positioning function.
225
+ * If not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.stickyVerticalOffset the default value}
226
+ * will be used.
227
+ * @param options.config Additional configuration of the balloon balloon panel view.
228
+ * Currently only {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#withArrow} is supported. Learn more
229
+ * about {@link module:utils/dom/position~PositioningFunction positioning functions}.
230
+ */
231
+ static generatePositions(options?: {
232
+ sideOffset?: number;
233
+ heightOffset?: number;
234
+ stickyVerticalOffset?: number;
235
+ config?: object;
236
+ }): Record<string, PositioningFunction>;
211
237
  /**
212
238
  * A side offset of the arrow tip from the edge of the balloon. Controlled by CSS.
213
239
  *
@@ -650,36 +676,10 @@ export default class BalloonPanelView extends View {
650
676
  * Positioning functions must be compatible with {@link module:utils/dom/position~DomPoint}.
651
677
  *
652
678
  * Default positioning functions with customized offsets can be generated using
653
- * {@link module:ui/panel/balloon/balloonpanelview~generatePositions}.
679
+ * {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.generatePositions}.
654
680
  *
655
681
  * The name that the position function returns will be reflected in the balloon panel's class that
656
682
  * controls the placement of the "arrow". See {@link #position} to learn more.
657
683
  */
658
684
  static defaultPositions: Record<string, PositioningFunction>;
659
685
  }
660
- /**
661
- * Returns available {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView}
662
- * {@link module:utils/dom/position~PositioningFunction positioning functions} adjusted by the specific offsets.
663
- *
664
- * @internal
665
- * @param options Options to generate positions. If not specified, this helper will simply return
666
- * {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.defaultPositions}.
667
- * @param options.sideOffset A custom side offset (in pixels) of each position. If
668
- * not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.arrowSideOffset the default value}
669
- * will be used.
670
- * @param options.heightOffset A custom height offset (in pixels) of each position. If
671
- * not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.arrowHeightOffset the default value}
672
- * will be used.
673
- * @param options.stickyVerticalOffset A custom offset (in pixels) of the `viewportStickyNorth` positioning function.
674
- * If not specified, {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.stickyVerticalOffset the default value}
675
- * will be used.
676
- * @param options.config Additional configuration of the balloon balloon panel view.
677
- * Currently only {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#withArrow} is supported. Learn more
678
- * about {@link module:utils/dom/position~PositioningFunction positioning functions}.
679
- */
680
- export declare function generatePositions(options?: {
681
- sideOffset?: number;
682
- heightOffset?: number;
683
- stickyVerticalOffset?: number;
684
- config?: object;
685
- }): Record<string, PositioningFunction>;