Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-utils

Package Overview
Dependencies
Maintainers
1
Versions
762
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-utils - npm Package Compare versions

Comparing version 44.0.0 to 44.1.0-alpha.0

2

dist/abortabledebounce.d.ts

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ declare const Collection_base: {

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ import type { DiffResult } from './diff.js';

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ import Rect, { type RectSource } from './rect.js';

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ type IfTrue<T> = T extends true ? true : never;

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ import type { DiffResult } from './diff.js';

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ import { type View } from '@ckeditor/ckeditor5-ui';

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ import { type PriorityString } from './priorities.js';

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ import type { Emitter } from './emittermixin.js';

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,16 +7,17 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/**
* Splices one array into another. To be used instead of `Array.prototype.splice` as the latter may
* throw "Maximum call stack size exceeded" when passed huge number of items to insert.
* @module utils/splicearray
*/
/**
* Splices one array into another. To be used instead of `Array.prototype.splice` for better
* performance and because the latter may throw "Maximum call stack size exceeded" error when
* passing huge number of items to insert.
*
* Note: in contrary to Array.splice, this function does not modify the original `target`.
*
* ```ts
* spliceArray( [ 1, 2 ], [ 3, 4 ], 0, 0 ); // [ 3, 4, 1, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 1, 1 ); // [ 1, 3, 4 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 1, 0 ); // [ 1, 3, 4, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 2, 0 ); // [ 1, 2, 3, 4 ]
* spliceArray( [ 1, 2 ], [], 0, 1 ); // [ 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 0 ); // [ 3, 4, 1, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 1 ); // [ 1, 3, 4, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 2 ); // [ 1, 2, 3, 4 ]
* spliceArray( [ 1, 2 ], [], 0 ); // [ 1, 2 ]
* ```

@@ -31,2 +32,2 @@ *

*/
export default function spliceArray<T>(target: ReadonlyArray<T>, source: ReadonlyArray<T>, start: number, count: number): Array<T>;
export default function spliceArray<T>(targetArray: Array<T>, insertArray: Array<T>, index: number): void;

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

@@ -7,5 +7,5 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
declare const version = "44.0.0";
declare const version = "44.1.0-alpha.0";
export default version;

@@ -12,0 +12,0 @@ export declare const releaseDate: Date;

@@ -7,3 +7,3 @@ /**

* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -10,0 +10,0 @@ /**

{
"name": "@ckeditor/ckeditor5-utils",
"version": "44.0.0",
"version": "44.1.0-alpha.0",
"description": "Miscellaneous utilities used by CKEditor 5.",

@@ -16,3 +16,3 @@ "keywords": [

"lodash-es": "4.17.21",
"@ckeditor/ckeditor5-ui": "44.0.0"
"@ckeditor/ckeditor5-ui": "44.1.0-alpha.0"
},

@@ -19,0 +19,0 @@ "author": "CKSource (http://cksource.com/)",

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ declare const Collection_base: {

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ import type { DiffResult } from './diff.js';

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /* globals Node */

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /* globals HTMLTextAreaElement */

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /* globals Node */

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ import Rect, { type RectSource } from './rect.js';

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ type IfTrue<T> = T extends true ? true : never;

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -137,4 +137,2 @@ /**

if (callbacks) {
// Arguments passed to each callback.
const callbackArgs = [eventInfo, ...args];
// Copying callbacks array is the easiest and most secure way of preventing infinite loops, when event callbacks

@@ -145,5 +143,6 @@ // are added while processing other callbacks. Previous solution involved adding counters (unique ids) but

// event is currently processed. Then, `.fire()` at the end, would have to add all stored events.
callbacks = Array.from(callbacks);
callbacks = callbacks.slice();
for (let i = 0; i < callbacks.length; i++) {
callbacks[i].callback.apply(this, callbackArgs);
const fn = callbacks[i].callback;
fn.call(this, eventInfo, ...args);
// Remove the callback from future requests if off() has been called.

@@ -153,3 +152,3 @@ if (eventInfo.off.called) {

delete eventInfo.off.called;
this._removeEventListener(event, callbacks[i].callback);
this._removeEventListener(event, fn);
}

@@ -396,16 +395,15 @@ // Do not execute next callbacks if stop() was called.

function getCallbacksForEvent(source, eventName) {
let event;
if (!source._events || !(event = source._events[eventName]) || !event.callbacks.length) {
// There are no callbacks registered for specified eventName.
// But this could be a specific-type event that is in a namespace.
if (eventName.indexOf(':') > -1) {
// If the eventName is specific, try to find callback lists for more generic event.
return getCallbacksForEvent(source, eventName.substr(0, eventName.lastIndexOf(':')));
if (!source._events) {
return null;
}
let currentEventName = eventName;
do {
const event = source._events[currentEventName];
if (event && event.callbacks && event.callbacks.length) {
return event.callbacks;
}
else {
// If this is a top-level generic event, return null;
return null;
}
}
return event.callbacks;
const colonIndex = currentEventName.lastIndexOf(':');
currentEventName = colonIndex > -1 ? currentEventName.substring(0, colonIndex) : '';
} while (currentEventName);
return null;
}

@@ -412,0 +410,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /* globals navigator:false */

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ import type { DiffResult } from './diff.js';

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ import { type View } from '@ckeditor/ckeditor5-ui';

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /* global setTimeout, clearTimeout */

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ import { type PriorityString } from './priorities.js';

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ import priorities from './priorities.js';

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ import CKEditorError from './ckeditorerror.js';

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ import type { Emitter } from './emittermixin.js';

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ const RTL_LANGUAGE_CODES = [

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /* eslint-disable @typescript-eslint/unified-signatures */

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
/**
* Splices one array into another. To be used instead of `Array.prototype.splice` as the latter may
* throw "Maximum call stack size exceeded" when passed huge number of items to insert.
* @module utils/splicearray
*/
/**
* Splices one array into another. To be used instead of `Array.prototype.splice` for better
* performance and because the latter may throw "Maximum call stack size exceeded" error when
* passing huge number of items to insert.
*
* Note: in contrary to Array.splice, this function does not modify the original `target`.
*
* ```ts
* spliceArray( [ 1, 2 ], [ 3, 4 ], 0, 0 ); // [ 3, 4, 1, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 1, 1 ); // [ 1, 3, 4 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 1, 0 ); // [ 1, 3, 4, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 2, 0 ); // [ 1, 2, 3, 4 ]
* spliceArray( [ 1, 2 ], [], 0, 1 ); // [ 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 0 ); // [ 3, 4, 1, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 1 ); // [ 1, 3, 4, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 2 ); // [ 1, 2, 3, 4 ]
* spliceArray( [ 1, 2 ], [], 0 ); // [ 1, 2 ]
* ```

@@ -26,2 +27,2 @@ *

*/
export default function spliceArray<T>(target: ReadonlyArray<T>, source: ReadonlyArray<T>, start: number, count: number): Array<T>;
export default function spliceArray<T>(targetArray: Array<T>, insertArray: Array<T>, index: number): void;
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -8,15 +8,12 @@ /**

*/
const BIG_CHUNK_SIZE = 10000;
/**
* Splices one array into another. To be used instead of `Array.prototype.splice` as the latter may
* throw "Maximum call stack size exceeded" when passed huge number of items to insert.
* Splices one array into another. To be used instead of `Array.prototype.splice` for better
* performance and because the latter may throw "Maximum call stack size exceeded" error when
* passing huge number of items to insert.
*
* Note: in contrary to Array.splice, this function does not modify the original `target`.
*
* ```ts
* spliceArray( [ 1, 2 ], [ 3, 4 ], 0, 0 ); // [ 3, 4, 1, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 1, 1 ); // [ 1, 3, 4 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 1, 0 ); // [ 1, 3, 4, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 2, 0 ); // [ 1, 2, 3, 4 ]
* spliceArray( [ 1, 2 ], [], 0, 1 ); // [ 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 0 ); // [ 3, 4, 1, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 1 ); // [ 1, 3, 4, 2 ]
* spliceArray( [ 1, 2 ], [ 3, 4 ], 2 ); // [ 1, 2, 3, 4 ]
* spliceArray( [ 1, 2 ], [], 0 ); // [ 1, 2 ]
* ```

@@ -31,12 +28,13 @@ *

*/
export default function spliceArray(target, source, start, count) {
// In case of performance problems, see: https://github.com/ckeditor/ckeditor5/pull/12429/files#r965850568
if (Math.max(source.length, target.length) > BIG_CHUNK_SIZE) {
return target.slice(0, start).concat(source).concat(target.slice(start + count, target.length));
export default function spliceArray(targetArray, insertArray, index) {
const originalLength = targetArray.length;
const insertLength = insertArray.length;
// Shift elements in the target array to make space for insertArray
for (let i = originalLength - 1; i >= index; i--) {
targetArray[i + insertLength] = targetArray[i];
}
else {
const newTarget = Array.from(target);
newTarget.splice(start, count, ...source);
return newTarget;
// Copy elements from insertArray into the target array
for (let i = 0; i < insertLength; i++) {
targetArray[index + i] = insertArray[i];
}
}
/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ export default function toArray(data) {

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ import CKEditorError from './ckeditorerror.js';

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
declare const version = "44.0.0";
declare const version = "44.1.0-alpha.0";
export default version;

@@ -7,0 +7,0 @@ export declare const releaseDate: Date;

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -9,6 +9,6 @@ /**

import CKEditorError from './ckeditorerror.js';
const version = '44.0.0';
const version = '44.1.0-alpha.0';
export default version;
// The second argument is not a month. It is `monthIndex` and starts from `0`.
export const releaseDate = new Date(2024, 11, 2);
export const releaseDate = new Date(2024, 11, 11);
/* istanbul ignore next -- @preserve */

@@ -15,0 +15,0 @@ if (globalThis.CKEDITOR_VERSION) {

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

/**
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/

@@ -5,0 +5,0 @@ /**

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc