@orchestrator-ui/orchestrator-ui-components 2.7.0 → 2.8.0
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/.turbo/turbo-build.log +8 -8
- package/.turbo/turbo-lint.log +5 -2
- package/.turbo/turbo-test.log +12 -12
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +6780 -410
- package/dist/index.js +796 -797
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
- package/src/components/WfoForms/formFields/SelectField/SelectField.tsx +5 -1
- package/src/components/WfoPageTemplate/WfoPageHeader/styles.ts +1 -0
- package/src/components/WfoTitleWithWebsocketBadge/WfoTitleWithWebsocketBadge.tsx +9 -10
- package/src/configuration/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchestrator-ui/orchestrator-ui-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Library of UI Components used to display the workflow orchestrator frontend",
|
|
6
6
|
"author": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"build-storybook": "storybook build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@elastic/eui": "^
|
|
35
|
+
"@elastic/eui": "^97.0.0",
|
|
36
36
|
"@emotion/css": "^11.11.2",
|
|
37
37
|
"@emotion/react": "^11.11.4",
|
|
38
38
|
"@rtk-query/graphql-request-base-query": "^2.3.1",
|
|
@@ -66,9 +66,8 @@
|
|
|
66
66
|
"@storybook/blocks": "^8.1.10",
|
|
67
67
|
"@storybook/nextjs": "^8.1.10",
|
|
68
68
|
"@storybook/react": "^8.1.10",
|
|
69
|
-
"@storybook/testing-library": "^0.2.0",
|
|
70
69
|
"@testing-library/jest-dom": "^6.1.5",
|
|
71
|
-
"@testing-library/react": "^
|
|
70
|
+
"@testing-library/react": "^16.0.1",
|
|
72
71
|
"@testing-library/user-event": "^14.5.2",
|
|
73
72
|
"@types/invariant": "^2.2.33",
|
|
74
73
|
"@types/jest": "^29.5.8",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* limitations under the License.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
import React from 'react';
|
|
15
|
+
import React, { useEffect } from 'react';
|
|
16
16
|
import ReactSelect from 'react-select';
|
|
17
17
|
|
|
18
18
|
import { get } from 'lodash';
|
|
@@ -97,6 +97,10 @@ export function UnconnectedSelectField({
|
|
|
97
97
|
const { reactSelectInnerComponentStyles, formRowStyle } =
|
|
98
98
|
useWithOrchestratorTheme(getSelectFieldStyles);
|
|
99
99
|
|
|
100
|
+
useEffect(() => {
|
|
101
|
+
onChange(selectedValue?.value);
|
|
102
|
+
}, []);
|
|
103
|
+
|
|
100
104
|
if (fieldType === Array) {
|
|
101
105
|
// Avoid circular import with our own ListSelectField (instead of recursively trying to use SelectField)
|
|
102
106
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { EuiPageHeader } from '@elastic/eui';
|
|
4
4
|
|
|
5
5
|
import { WfoWebsocketStatusBadge } from '@/components';
|
|
6
6
|
import { useGetOrchestratorConfig } from '@/hooks';
|
|
@@ -14,14 +14,13 @@ export const WfoTitleWithWebsocketBadge = ({
|
|
|
14
14
|
}: WfoTitleWithWebsocketBadgeProps) => {
|
|
15
15
|
const { useWebSockets } = useGetOrchestratorConfig();
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{useWebSockets && <WfoWebsocketStatusBadge />}
|
|
24
|
-
</EuiFlexItem>
|
|
25
|
-
</EuiFlexGroup>
|
|
17
|
+
const pageTitle = useWebSockets ? (
|
|
18
|
+
<>
|
|
19
|
+
{title} <WfoWebsocketStatusBadge />
|
|
20
|
+
</>
|
|
21
|
+
) : (
|
|
22
|
+
title
|
|
26
23
|
);
|
|
24
|
+
|
|
25
|
+
return <EuiPageHeader pageTitle={pageTitle} />;
|
|
27
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '2.
|
|
1
|
+
export const ORCHESTRATOR_UI_LIBRARY_VERSION = '2.8.0';
|