@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchestrator-ui/orchestrator-ui-components",
3
- "version": "2.7.0",
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": "^95.1.0",
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": "^14.0.0",
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 (
@@ -13,6 +13,7 @@ export const getWfoPageHeaderStyles = ({ theme }: WfoTheme) => {
13
13
  return css({
14
14
  backgroundColor: theme.colors.header,
15
15
  height: navigationHeight,
16
+ borderBottom: theme.colors.header, // Overrides EuiHeader default border bottom
16
17
  });
17
18
  };
18
19
 
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
- import { EuiFlexGroup, EuiFlexItem, EuiPageHeader } from '@elastic/eui';
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
- return (
18
- <EuiFlexGroup gutterSize="s" alignItems="baseline">
19
- <EuiFlexItem grow={0}>
20
- <EuiPageHeader pageTitle={title} />
21
- </EuiFlexItem>
22
- <EuiFlexItem grow={0}>
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.7.0';
1
+ export const ORCHESTRATOR_UI_LIBRARY_VERSION = '2.8.0';