@kopexa/editor-utils 17.1.4 → 17.1.6

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/dist/index.js CHANGED
@@ -263,15 +263,9 @@ function isNodeTypeSelected(editor, types = []) {
263
263
  function isExtensionAvailable(editor, extensionNames) {
264
264
  if (!editor) return false;
265
265
  const names = Array.isArray(extensionNames) ? extensionNames : [extensionNames];
266
- const found = names.some(
266
+ return names.some(
267
267
  (name) => editor.extensionManager.extensions.some((ext) => ext.name === name)
268
268
  );
269
- if (!found) {
270
- console.warn(
271
- `None of the extensions [${names.join(", ")}] were found in the editor schema. Ensure they are included in the editor configuration.`
272
- );
273
- }
274
- return found;
275
269
  }
276
270
  function getEditorExtension(editor, extensionName) {
277
271
  if (!editor) return null;
package/dist/index.mjs CHANGED
@@ -102,15 +102,9 @@ function isNodeTypeSelected(editor, types = []) {
102
102
  function isExtensionAvailable(editor, extensionNames) {
103
103
  if (!editor) return false;
104
104
  const names = Array.isArray(extensionNames) ? extensionNames : [extensionNames];
105
- const found = names.some(
105
+ return names.some(
106
106
  (name) => editor.extensionManager.extensions.some((ext) => ext.name === name)
107
107
  );
108
- if (!found) {
109
- console.warn(
110
- `None of the extensions [${names.join(", ")}] were found in the editor schema. Ensure they are included in the editor configuration.`
111
- );
112
- }
113
- return found;
114
108
  }
115
109
  function getEditorExtension(editor, extensionName) {
116
110
  if (!editor) return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/editor-utils",
3
- "version": "17.1.4",
3
+ "version": "17.1.6",
4
4
  "description": "utility components for our editor",
5
5
  "keywords": [
6
6
  "editor-utils"
@@ -30,11 +30,11 @@
30
30
  "motion": ">=12.23.6",
31
31
  "react": ">=19.0.0-rc.0",
32
32
  "react-dom": ">=19.0.0-rc.0",
33
- "@kopexa/theme": "17.24.1"
33
+ "@kopexa/theme": "17.24.3"
34
34
  },
35
35
  "dependencies": {
36
- "@kopexa/react-utils": "17.0.53",
37
- "@kopexa/shared-utils": "17.0.53"
36
+ "@kopexa/react-utils": "17.0.55",
37
+ "@kopexa/shared-utils": "17.0.55"
38
38
  },
39
39
  "clean-package": "../../../clean-package.config.json",
40
40
  "module": "dist/index.mjs",