@ckeditor/ckeditor5-utils
Advanced tools
Comparing version 36.0.1 to 37.0.0-alpha.0
{ | ||
"name": "@ckeditor/ckeditor5-utils", | ||
"version": "36.0.1", | ||
"version": "37.0.0-alpha.0", | ||
"description": "Miscellaneous utilities used by CKEditor 5.", | ||
@@ -17,6 +17,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-build-classic": "^36.0.1", | ||
"@ckeditor/ckeditor5-editor-classic": "^36.0.1", | ||
"@ckeditor/ckeditor5-core": "^36.0.1", | ||
"@ckeditor/ckeditor5-engine": "^36.0.1", | ||
"@ckeditor/ckeditor5-build-classic": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.0", | ||
"@ckeditor/ckeditor5-engine": "^37.0.0-alpha.0", | ||
"@types/lodash-es": "^4.17.6", | ||
@@ -52,3 +52,4 @@ "typescript": "^4.8.4" | ||
"postversion": "npm run build" | ||
} | ||
}, | ||
"types": "src/index.d.ts" | ||
} |
@@ -11,17 +11,14 @@ /** | ||
/** | ||
* Creates element with attributes and children. | ||
* Creates an HTML or SVG element with attributes and children elements. | ||
* | ||
* ```ts | ||
* createElement( document, 'p' ); // <p> | ||
* createElement( document, 'p', { class: 'foo' } ); // <p class="foo"> | ||
* createElement( document, 'p', null, 'foo' ); // <p>foo</p> | ||
* createElement( document, 'p', null, [ 'foo', createElement( document, 'img' ) ] ); // <p>foo<img></p> | ||
* createElement( document, 'mask', { xmlns: 'http://www.w3.org/2000/svg' } ); // <mask> | ||
* ``` | ||
* | ||
* @param doc Document used to create element. | ||
* @param doc Document used to create the element. | ||
* @param name Name of the element. | ||
* @param attributes Object keys will become attributes keys and object values will became attributes values. | ||
* @param children Child or any iterable of children. Strings will be automatically turned | ||
* into Text nodes. | ||
* @returns Created element. | ||
* @param attributes Object where keys represent attribute keys and values represent attribute values. | ||
* @param children Child or any iterable of children. Strings will be automatically turned into Text nodes. | ||
* @returns HTML or SVG element. | ||
*/ | ||
@@ -28,0 +25,0 @@ export default function createElement(doc, name, attributes = {}, children = []) { |
@@ -13,3 +13,3 @@ /** | ||
import { isFunction } from 'lodash-es'; | ||
// @if CK_DEBUG_POSITION // const { RectDrawer } = require( '@ckeditor/ckeditor5-minimap/src/utils' ); | ||
// @if CK_DEBUG_POSITION // const RectDrawer = require( '@ckeditor/ckeditor5-utils/tests/_utils/rectdrawer' ).default | ||
/** | ||
@@ -16,0 +16,0 @@ * Calculates the `position: absolute` coordinates of a given element so it can be positioned with respect to the |
@@ -22,3 +22,3 @@ /** | ||
* | ||
* Check out the {@glink framework/guides/deep-dive/ui/focus-tracking "Deep dive into focus tracking" guide} to learn more. | ||
* Check out the {@glink framework/deep-dive/ui/focus-tracking "Deep dive into focus tracking"} guide to learn more. | ||
*/ | ||
@@ -25,0 +25,0 @@ export default class FocusTracker extends DomEmitterMixin(ObservableMixin()) { |
@@ -10,3 +10,3 @@ /** | ||
import CKEditorError from './ckeditorerror'; | ||
const version = '36.0.1'; | ||
const version = '37.0.0-alpha.0'; | ||
export default version; | ||
@@ -48,3 +48,3 @@ /* istanbul ignore next */ | ||
* | ||
* Read more in the {@glink installation/getting-started/installing-plugins "Installing plugins"} guide. | ||
* Read more in the {@glink installation/plugins/installing-plugins Installing plugins} guide. | ||
* | ||
@@ -56,4 +56,4 @@ * # Confused an editor build with an editor implementation | ||
* Let's assume that you wanted to use CKEditor 5 from source, as explained in the | ||
* {@glink installation/advanced/alternative-setups/integrating-from-source "Building from source"} section | ||
* or in the {@glink framework/guides/quick-start "Quick start"} guide of CKEditor 5 Framework. | ||
* {@glink installation/advanced/alternative-setups/integrating-from-source-webpack "Building from source"} section | ||
* or in the {@glink framework/quick-start "Quick start"} guide of CKEditor 5 Framework. | ||
* | ||
@@ -60,0 +60,0 @@ * The correct way to do so is to import an editor and plugins and run them together like this: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
407855
124
9863
1