From 01143eb1493b12edcd003fa56aeb73b7894b060b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 08:27:30 +0000 Subject: [PATCH 1/2] chore(deps): update dependency prettier to v3.3.3 --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 12581084a..e0d4bebb6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14765,11 +14765,11 @@ __metadata: linkType: hard "prettier@npm:^3.0.0, prettier@npm:^3.1.1, prettier@npm:^3.2.5": - version: 3.3.2 - resolution: "prettier@npm:3.3.2" + version: 3.3.3 + resolution: "prettier@npm:3.3.3" bin: prettier: bin/prettier.cjs - checksum: 10/83214e154afa5aa9b664c2506640212323eb1376b13379b2413dc351b7de0687629dca3f00ff2ec895ebd7e3a2adb7d7e231b6c77606e2358137f2150807405b + checksum: 10/5beac1f30b5b40162532b8e2f7c3a4eb650910a2695e9c8512a62ffdc09dae93190c29db9107fa7f26d1b6c71aad3628ecb9b5de1ecb0911191099be109434d7 languageName: node linkType: hard From 99f7c50c6e799046977228994773c99a595e2df5 Mon Sep 17 00:00:00 2001 From: "Ricardo M." Date: Mon, 9 Sep 2024 10:58:41 +0200 Subject: [PATCH 2/2] fix(prettier): Resolve prettier to 3.3.3 --- package.json | 1 + .../EmptyState/FlowType/FlowTypeSelector.tsx | 2 +- .../models/visualization/flows/pipe-visual-entity.ts | 2 +- yarn.lock | 11 +---------- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 012680fed..27b74a0a8 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "axios": "1.7.7", "react": "18.2.0", "react-dom": "18.2.0", + "prettier": "3.3.3", "uniforms": "4.0.0-alpha.5", "uniforms-bridge-json-schema": "4.0.0-alpha.6", "uniforms-bridge-simple-schema-2": "4.0.0-alpha.6", diff --git a/packages/ui/src/components/Visualization/EmptyState/FlowType/FlowTypeSelector.tsx b/packages/ui/src/components/Visualization/EmptyState/FlowType/FlowTypeSelector.tsx index 2f0126eb1..7520b5eae 100644 --- a/packages/ui/src/components/Visualization/EmptyState/FlowType/FlowTypeSelector.tsx +++ b/packages/ui/src/components/Visualization/EmptyState/FlowType/FlowTypeSelector.tsx @@ -132,7 +132,7 @@ export const FlowTypeSelector: FunctionComponent = (props) {getDescriptionForType(sourceType) !== undefined ? getDescriptionForType(sourceType) - : (sourceSchema.schema?.schema as { description: string }).description ?? ''} + : ((sourceSchema.schema?.schema as { description: string }).description ?? '')} } isDisabled={isOptionDisabled} 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 5fde095dc..d467a2a6c 100644 --- a/packages/ui/src/models/visualization/flows/pipe-visual-entity.ts +++ b/packages/ui/src/models/visualization/flows/pipe-visual-entity.ts @@ -252,7 +252,7 @@ export class PipeVisualEntity implements BaseVisualCamelEntity { const isPlaceholder = step?.ref?.name === undefined; const icon = isPlaceholder ? NodeIconResolver.getPlaceholderIcon() - : kameletDefinition?.metadata.annotations['camel.apache.org/kamelet.icon'] ?? NodeIconResolver.getUnknownIcon(); + : (kameletDefinition?.metadata.annotations['camel.apache.org/kamelet.icon'] ?? NodeIconResolver.getUnknownIcon()); const data: IVisualizationNodeData = { path, diff --git a/yarn.lock b/yarn.lock index e0d4bebb6..8bf2ad8e7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14755,16 +14755,7 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^2.0.0": - version: 2.8.8 - resolution: "prettier@npm:2.8.8" - bin: - prettier: bin-prettier.js - checksum: 10/00cdb6ab0281f98306cd1847425c24cbaaa48a5ff03633945ab4c701901b8e96ad558eb0777364ffc312f437af9b5a07d0f45346266e8245beaf6247b9c62b24 - languageName: node - linkType: hard - -"prettier@npm:^3.0.0, prettier@npm:^3.1.1, prettier@npm:^3.2.5": +"prettier@npm:3.3.3": version: 3.3.3 resolution: "prettier@npm:3.3.3" bin: