@ckeditor/ckeditor5-utils 38.0.0-rc.1 → 38.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-utils",
3
- "version": "38.0.0-rc.1",
3
+ "version": "38.0.0",
4
4
  "description": "Miscellaneous utilities used by CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -14,10 +14,10 @@
14
14
  "lodash-es": "^4.17.15"
15
15
  },
16
16
  "devDependencies": {
17
- "@ckeditor/ckeditor5-build-classic": "^38.0.0-rc.1",
18
- "@ckeditor/ckeditor5-editor-classic": "^38.0.0-rc.1",
19
- "@ckeditor/ckeditor5-core": "^38.0.0-rc.1",
20
- "@ckeditor/ckeditor5-engine": "^38.0.0-rc.1",
17
+ "@ckeditor/ckeditor5-build-classic": "^38.0.0",
18
+ "@ckeditor/ckeditor5-editor-classic": "^38.0.0",
19
+ "@ckeditor/ckeditor5-core": "^38.0.0",
20
+ "@ckeditor/ckeditor5-engine": "^38.0.0",
21
21
  "@types/lodash-es": "^4.17.6",
22
22
  "typescript": "^4.8.4"
23
23
  },
@@ -2,9 +2,6 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- /**
6
- * @module utils/dom/findclosestscrollableancestor
7
- */
8
5
  /**
9
6
  * Returns the closest scrollable ancestor of a DOM element.
10
7
  *
@@ -5,6 +5,7 @@
5
5
  /**
6
6
  * @module utils/dom/findclosestscrollableancestor
7
7
  */
8
+ import global from './global';
8
9
  /**
9
10
  * Returns the closest scrollable ancestor of a DOM element.
10
11
  *
@@ -13,6 +13,16 @@ import { releaseDate } from './version';
13
13
  * @returns String that represents the state of given `token` parameter.
14
14
  */
15
15
  export default function verifyLicense(token) {
16
+ // This function implements naive and partial license key check mechanism,
17
+ // used only to decide whether to show or hide the "Powered by CKEditor" logo.
18
+ //
19
+ // You can read the reasoning behind showing the logo to unlicensed (GPL) users
20
+ // in this thread: https://github.com/ckeditor/ckeditor5/issues/14082.
21
+ //
22
+ // We firmly believe in the values behind creating open-source software, even when that
23
+ // means keeping the license verification logic open for everyone to see.
24
+ //
25
+ // Please keep this code intact. Thank you for your understanding.
16
26
  function oldTokenCheck(token) {
17
27
  if (token.match(/^[a-zA-Z0-9+/=$]+$/g) && (token.length >= 40 && token.length <= 255)) {
18
28
  return 'VALID';
package/src/version.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- declare const version = "38.0.0-rc.1";
5
+ declare const version = "38.0.0";
6
6
  export default version;
7
7
  export declare const releaseDate: Date;
8
8
  declare global {
package/src/version.js CHANGED
@@ -7,10 +7,10 @@
7
7
  */
8
8
  /* globals window, global */
9
9
  import CKEditorError from './ckeditorerror';
10
- const version = '38.0.0-rc.1';
10
+ const version = '38.0.0';
11
11
  export default version;
12
12
  // The second argument is not a month. It is `monthIndex` and starts from `0`.
13
- export const releaseDate = new Date(2023, 4, 16);
13
+ export const releaseDate = new Date(2023, 4, 22);
14
14
  /* istanbul ignore next -- @preserve */
15
15
  const windowOrGlobal = typeof window === 'object' ? window : global;
16
16
  /* istanbul ignore next -- @preserve */