This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new b46e2549 Backward compatibility for 4.6.0
b46e2549 is described below

commit b46e2549355ed782a43a20ffb64a3dca1db42bef
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Wed Jul 24 09:39:27 2024 -0400

    Backward compatibility for 4.6.0
---
 karavan-core/src/core/api/TopologyUtils.ts | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/karavan-core/src/core/api/TopologyUtils.ts 
b/karavan-core/src/core/api/TopologyUtils.ts
index a579d578..1788f740 100644
--- a/karavan-core/src/core/api/TopologyUtils.ts
+++ b/karavan-core/src/core/api/TopologyUtils.ts
@@ -58,6 +58,26 @@ export class TopologyUtils {
         return component !== undefined && component.component.remote !== true;
     }
 
+    static isComponentInternal = (label: string): boolean => {
+        const labels = label.split(",");
+        if (labels.includes('core') && (
+            labels.includes('transformation')
+            || labels.includes('testing')
+            || labels.includes('scheduling')
+            || labels.includes('monitoring')
+            || labels.includes('transformation')
+            || labels.includes('java')
+            || labels.includes('endpoint')
+            || labels.includes('script')
+            || labels.includes('validation')
+        )) {
+            return true;
+        } else if (label === 'transformation') {
+            return true;
+        }
+        return false;
+    }
+
     static getConnectorType = (element: CamelElement): 'component' | 'kamelet' 
=> {
         return CamelUtil.isKameletComponent(element) ? 'kamelet' : 'component';
     }

Reply via email to