Skip to content

Commit 79aefd6

Browse files
Merge branch 'main' into feat/light-speed
2 parents 50efea7 + 19dfd42 commit 79aefd6

File tree

13 files changed

+40
-13
lines changed

13 files changed

+40
-13
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-orchestrator': patch
3+
'@red-hat-developer-hub/backstage-plugin-orchestrator-common': patch
4+
'@red-hat-developer-hub/backstage-plugin-orchestrator-form-widgets': patch
5+
'@red-hat-developer-hub/backstage-plugin-orchestrator-form-react': patch
6+
'@red-hat-developer-hub/backstage-plugin-scaffolder-backend-module-orchestrator': patch
7+
---
8+
9+
Fix TypeScript compilation errors in orchestrator plugins

workspaces/orchestrator/plugins/orchestrator-common/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"devDependencies": {
6565
"@backstage/cli": "^0.34.5",
6666
"@openapitools/openapi-generator-cli": "2.25.2",
67+
"@types/js-yaml": "^4.0.0",
6768
"@types/json-schema": "7.0.15",
6869
"js-yaml-cli": "^0.6.0"
6970
},

workspaces/orchestrator/plugins/orchestrator-form-react/src/components/AuthRequester.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
import { useEffect } from 'react';
1717

18-
import { JsonObject } from '@backstage/types/index';
18+
import { JsonObject } from '@backstage/types';
1919

2020
import { Widget } from '@rjsf/utils';
2121
import type { JSONSchema7 } from 'json-schema';

workspaces/orchestrator/plugins/orchestrator-form-widgets/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@
6767
"tss-react": "^4.9.18"
6868
},
6969
"peerDependencies": {
70-
"react": "^16.13.1 || ^17.0.0 || ^18.0.0"
70+
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
71+
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
72+
"react-router-dom": "^6.3.0"
7173
},
7274
"scalprum": {
7375
"name": "red-hat-developer-hub.backstage-plugin-orchestrator-form-widgets",
@@ -86,7 +88,9 @@
8688
"@testing-library/user-event": "^14.0.0",
8789
"express": "^5.1.0",
8890
"msw": "^1.0.0",
89-
"react": "^16.13.1 || ^17.0.0 || ^18.0.0"
91+
"react": "^18.0.0",
92+
"react-dom": "^18.0.0",
93+
"react-router-dom": "^6.3.0"
9094
},
9195
"files": [
9296
"app-config.yaml",

workspaces/orchestrator/plugins/orchestrator-form-widgets/src/uiPropTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import { JsonValue } from '@backstage/types/index';
16+
import { JsonValue } from '@backstage/types';
1717
import { TypographyVariant } from '@mui/material/styles';
1818

1919
export type UiProps = {

workspaces/orchestrator/plugins/orchestrator-form-widgets/src/utils/evaluateTemplate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { JsonValue } from '@backstage/types/index';
17+
import { JsonValue } from '@backstage/types';
1818
import { evaluateTemplate, evaluateTemplateProps } from './evaluateTemplate';
1919
import get from 'lodash/get';
2020

workspaces/orchestrator/plugins/orchestrator-form-widgets/src/utils/useFetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
import { useApi, fetchApiRef } from '@backstage/core-plugin-api';
18-
import { JsonObject } from '@backstage/types/index';
18+
import { JsonObject } from '@backstage/types';
1919
import { useState } from 'react';
2020
import { UiProps } from '../uiPropTypes';
2121
import { getErrorMessage } from './errorUtils';

workspaces/orchestrator/plugins/orchestrator-form-widgets/src/utils/useFetchAndEvaluate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { JsonObject } from '@backstage/types/index';
17+
import { JsonObject } from '@backstage/types';
1818
import React, { useState, useEffect } from 'react';
1919
import { UiProps } from '../uiPropTypes';
2020
import { getErrorMessage } from './errorUtils';

workspaces/orchestrator/plugins/orchestrator/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@
9090
"@types/react": "^18.2.58",
9191
"@types/react-dom": "^18.2.19",
9292
"@types/uuid": "^9.0.0",
93-
"prettier": "3.6.2"
93+
"prettier": "3.6.2",
94+
"react": "^18.0.0",
95+
"react-dom": "^18.0.0",
96+
"react-router-dom": "^6.3.0"
9497
},
9598
"peerDependencies": {
9699
"@mui/icons-material": "^5.17.1",

workspaces/orchestrator/plugins/orchestrator/src/utils/deepSearchObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { JsonObject } from '@backstage/types/index';
17+
import { JsonObject } from '@backstage/types';
1818

1919
import { isJsonObject } from '@red-hat-developer-hub/backstage-plugin-orchestrator-common';
2020

0 commit comments

Comments
 (0)