Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-utils

Package Overview
Dependencies
Maintainers
1
Versions
619
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 43.0.0 to 43.1.0-alpha.0

dist/dom/getrangefrommouseevent.d.ts

5

dist/dom/isvisible.d.ts

@@ -10,5 +10,2 @@ /**

/**
* @module utils/dom/isvisible
*/
/**
* Checks whether the element is visible to the user in DOM:

@@ -23,2 +20,2 @@ *

*/
export default function isVisible(element: HTMLElement | null | undefined): boolean;
export default function isVisible(element: Text | HTMLElement | null | undefined): boolean;

4

dist/focustracker.d.ts

@@ -56,2 +56,6 @@ /**

/**
* List of registered elements.
*/
get elements(): Array<Element>;
/**
* Starts tracking the specified element.

@@ -58,0 +62,0 @@ */

@@ -35,2 +35,3 @@ /**

export { default as getBorderWidths } from './dom/getborderwidths.js';
export { default as getRangeFromMouseEvent } from './dom/getrangefrommouseevent.js';
export { default as isText } from './dom/istext.js';

@@ -37,0 +38,0 @@ export { default as Rect, type RectSource } from './dom/rect.js';

@@ -9,3 +9,3 @@ /**

*/
declare const version = "43.0.0";
declare const version = "43.1.0-alpha.0";
export default version;

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

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

@@ -5,0 +5,0 @@ "keywords": [

@@ -6,5 +6,2 @@ /**

/**
* @module utils/dom/isvisible
*/
/**
* Checks whether the element is visible to the user in DOM:

@@ -19,2 +16,2 @@ *

*/
export default function isVisible(element: HTMLElement | null | undefined): boolean;
export default function isVisible(element: Text | HTMLElement | null | undefined): boolean;

@@ -8,2 +8,3 @@ /**

*/
import isText from './istext.js';
/**

@@ -20,3 +21,12 @@ * Checks whether the element is visible to the user in DOM:

export default function isVisible(element) {
return !!(element && element.getClientRects && element.getClientRects().length);
if (!element) {
return false;
}
if (isText(element)) {
return isVisible(element.parentElement);
}
if (element.getClientRects) {
return !!(element.getClientRects().length);
}
return false;
}

@@ -52,2 +52,6 @@ /**

/**
* List of registered elements.
*/
get elements(): Array<Element>;
/**
* Starts tracking the specified element.

@@ -54,0 +58,0 @@ */

@@ -41,2 +41,8 @@ /**

/**
* List of registered elements.
*/
get elements() {
return Array.from(this._elements.values());
}
/**
* Starts tracking the specified element.

@@ -43,0 +49,0 @@ */

@@ -31,2 +31,3 @@ /**

export { default as getBorderWidths } from './dom/getborderwidths.js';
export { default as getRangeFromMouseEvent } from './dom/getrangefrommouseevent.js';
export { default as isText } from './dom/istext.js';

@@ -33,0 +34,0 @@ export { default as Rect, type RectSource } from './dom/rect.js';

@@ -30,2 +30,3 @@ /**

export { default as getBorderWidths } from './dom/getborderwidths.js';
export { default as getRangeFromMouseEvent } from './dom/getrangefrommouseevent.js';
export { default as isText } from './dom/istext.js';

@@ -32,0 +33,0 @@ export { default as Rect } from './dom/rect.js';

@@ -26,15 +26,3 @@ /**

// Let's create some positive random 32bit integers first.
//
// 1. Math.random() is a float between 0 and 1.
// 2. 0x100000000 is 2^32 = 4294967296.
// 3. >>> 0 enforces integer (in JS all numbers are floating point).
//
// For instance:
// Math.random() * 0x100000000 = 3366450031.853859
// but
// Math.random() * 0x100000000 >>> 0 = 3366450031.
const r1 = Math.random() * 0x100000000 >>> 0;
const r2 = Math.random() * 0x100000000 >>> 0;
const r3 = Math.random() * 0x100000000 >>> 0;
const r4 = Math.random() * 0x100000000 >>> 0;
const [r1, r2, r3, r4] = crypto.getRandomValues(new Uint32Array(4));
// Make sure that id does not start with number.

@@ -41,0 +29,0 @@ return 'e' +

@@ -5,3 +5,3 @@ /**

*/
declare const version = "43.0.0";
declare const version = "43.1.0-alpha.0";
export default version;

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

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

import CKEditorError from './ckeditorerror.js';
const version = '43.0.0';
const version = '43.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, 7, 7);
export const releaseDate = new Date(2024, 7, 28);
/* istanbul ignore next -- @preserve */

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

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