From 5b3a6b9c925e6db35761620f85aebf05e0dc2665 Mon Sep 17 00:00:00 2001 From: Ricardo M Date: Thu, 29 Feb 2024 08:47:44 +0100 Subject: [PATCH] chore(release): 2.0.0-TP2-RC2 --- packages/ui/package.json | 2 +- packages/ui/src/components/Form/bean/NewBeanModal.tsx | 2 +- packages/ui/src/models/camel/kamelet-resource.ts | 2 +- .../visualization/flows/abstract-camel-visual-entity.test.ts | 2 +- .../visualization/flows/camel-route-visual-entity.test.ts | 2 +- .../ui/src/models/visualization/flows/pipe-visual-entity.ts | 4 ++-- packages/ui/src/utils/camel-uri-helper.ts | 2 +- packages/ui/src/utils/get-array-property.ts | 4 ++-- packages/ui/src/utils/get-value.ts | 2 +- packages/ui/src/utils/set-value.ts | 2 +- .../ui/src/utils/update-kamelet-from-custom-schema.test.ts | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/ui/package.json b/packages/ui/package.json index eab32fd51..e2fb735f5 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -56,6 +56,7 @@ "ajv-formats": "^2.1.1", "clsx": "^2.1.0", "html-to-image": "^1.11.11", + "lodash.clonedeep": "^4.5.0", "lodash.get": "^4.4.2", "lodash.isempty": "^4.4.0", "lodash.set": "^4.3.2", @@ -107,7 +108,6 @@ "jest": "^29.4.2", "jest-canvas-mock": "^2.5.2", "jest-environment-jsdom": "^29.4.2", - "lodash.clonedeep": "^4.5.0", "prettier": "^3.0.0", "react-test-renderer": "^18.2.0", "rimraf": "^5.0.5", diff --git a/packages/ui/src/components/Form/bean/NewBeanModal.tsx b/packages/ui/src/components/Form/bean/NewBeanModal.tsx index 6c94f3872..c681d570f 100644 --- a/packages/ui/src/components/Form/bean/NewBeanModal.tsx +++ b/packages/ui/src/components/Form/bean/NewBeanModal.tsx @@ -4,7 +4,7 @@ import { FunctionComponent, useCallback, useEffect, useRef, useState } from 'rea import { KaotoSchemaDefinition } from '../../../models'; import { MetadataEditor } from '../../MetadataEditor'; import { CustomAutoFormRef } from '../CustomAutoForm'; -import cloneDeep from 'lodash.clonedeep'; +import cloneDeep from 'lodash/cloneDeep'; import { isDefined } from '../../../utils'; export type NewBeanModalProps = { diff --git a/packages/ui/src/models/camel/kamelet-resource.ts b/packages/ui/src/models/camel/kamelet-resource.ts index 4fb895789..729feaba9 100644 --- a/packages/ui/src/models/camel/kamelet-resource.ts +++ b/packages/ui/src/models/camel/kamelet-resource.ts @@ -1,4 +1,4 @@ -import set from 'lodash.set'; +import set from 'lodash/set'; import { TileFilter } from '../../public-api'; import { IKameletDefinition } from '../kamelets-catalog'; import { AddStepMode } from '../visualization/base-visual-entity'; diff --git a/packages/ui/src/models/visualization/flows/abstract-camel-visual-entity.test.ts b/packages/ui/src/models/visualization/flows/abstract-camel-visual-entity.test.ts index 21996916a..b27047678 100644 --- a/packages/ui/src/models/visualization/flows/abstract-camel-visual-entity.test.ts +++ b/packages/ui/src/models/visualization/flows/abstract-camel-visual-entity.test.ts @@ -1,5 +1,5 @@ import * as catalogIndex from '@kaoto-next/camel-catalog/index.json'; -import cloneDeep from 'lodash.clonedeep'; +import cloneDeep from 'lodash/cloneDeep'; import { camelRouteJson } from '../../../stubs/camel-route'; import { CamelRouteVisualEntity } from './camel-route-visual-entity'; import { CamelCatalogService } from './camel-catalog.service'; diff --git a/packages/ui/src/models/visualization/flows/camel-route-visual-entity.test.ts b/packages/ui/src/models/visualization/flows/camel-route-visual-entity.test.ts index dfa77d95d..89df10510 100644 --- a/packages/ui/src/models/visualization/flows/camel-route-visual-entity.test.ts +++ b/packages/ui/src/models/visualization/flows/camel-route-visual-entity.test.ts @@ -1,5 +1,5 @@ import { ProcessorDefinition, RouteDefinition } from '@kaoto-next/camel-catalog/types'; -import cloneDeep from 'lodash.clonedeep'; +import cloneDeep from 'lodash/cloneDeep'; import { camelFromJson } from '../../../stubs/camel-from'; import { camelRouteJson } from '../../../stubs/camel-route'; import { ROOT_PATH } from '../../../utils'; diff --git a/packages/ui/src/models/visualization/flows/pipe-visual-entity.ts b/packages/ui/src/models/visualization/flows/pipe-visual-entity.ts index e1c61ccd5..6fc9fb316 100644 --- a/packages/ui/src/models/visualization/flows/pipe-visual-entity.ts +++ b/packages/ui/src/models/visualization/flows/pipe-visual-entity.ts @@ -1,6 +1,6 @@ import { Pipe } from '@kaoto-next/camel-catalog/types'; -import get from 'lodash.get'; -import set from 'lodash.set'; +import get from 'lodash/get'; +import set from 'lodash/set'; import { getCamelRandomId } from '../../../camel-utils/camel-random-id'; import { getArrayProperty, NodeIconResolver } from '../../../utils'; import { DefinedComponent } from '../../camel-catalog-index'; diff --git a/packages/ui/src/utils/camel-uri-helper.ts b/packages/ui/src/utils/camel-uri-helper.ts index c8ee44e2a..96c17fe9d 100644 --- a/packages/ui/src/utils/camel-uri-helper.ts +++ b/packages/ui/src/utils/camel-uri-helper.ts @@ -1,4 +1,4 @@ -import get from 'lodash.get'; +import get from 'lodash/get'; import { getParsedValue } from './get-parsed-value'; type ParsedParameters = Record; diff --git a/packages/ui/src/utils/get-array-property.ts b/packages/ui/src/utils/get-array-property.ts index 54c7a19b6..9b832499b 100644 --- a/packages/ui/src/utils/get-array-property.ts +++ b/packages/ui/src/utils/get-array-property.ts @@ -1,5 +1,5 @@ -import get from 'lodash.get'; -import set from 'lodash.set'; +import get from 'lodash/get'; +import set from 'lodash/set'; export const getArrayProperty = (model: object, path: string): unknown[] => { let stepsArray: unknown[] | undefined = get(model, path); diff --git a/packages/ui/src/utils/get-value.ts b/packages/ui/src/utils/get-value.ts index d90e588f3..1cafcb77d 100644 --- a/packages/ui/src/utils/get-value.ts +++ b/packages/ui/src/utils/get-value.ts @@ -1,4 +1,4 @@ -import get from 'lodash.get'; +import get from 'lodash/get'; export const ROOT_PATH = '#'; diff --git a/packages/ui/src/utils/set-value.ts b/packages/ui/src/utils/set-value.ts index 06b54ac0f..f44398370 100644 --- a/packages/ui/src/utils/set-value.ts +++ b/packages/ui/src/utils/set-value.ts @@ -1,4 +1,4 @@ -import set from 'lodash.set'; +import set from 'lodash/set'; import { ROOT_PATH } from './get-value'; import isEmpty from 'lodash.isempty'; diff --git a/packages/ui/src/utils/update-kamelet-from-custom-schema.test.ts b/packages/ui/src/utils/update-kamelet-from-custom-schema.test.ts index ce4ad975a..4bf549201 100644 --- a/packages/ui/src/utils/update-kamelet-from-custom-schema.test.ts +++ b/packages/ui/src/utils/update-kamelet-from-custom-schema.test.ts @@ -1,4 +1,4 @@ -import cloneDeep from 'lodash.clonedeep'; +import cloneDeep from 'lodash/cloneDeep'; import { SourceSchemaType } from '../models/camel/source-schema-type'; import { IKameletDefinition } from '../models/kamelets-catalog'; import { updateKameletFromCustomSchema } from './update-kamelet-from-custom-schema';