Skip to content

Commit

Permalink
KOGITO-9122: [SWF Dev UI] Patternfly version upgrades, specific impor…
Browse files Browse the repository at this point in the history
…ts and removed unused packages
  • Loading branch information
Sara4994 committed Jun 28, 2023
1 parent d7f0082 commit a5dec54
Show file tree
Hide file tree
Showing 578 changed files with 13,985 additions and 115,136 deletions.
4 changes: 2 additions & 2 deletions ui-packages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"prepare": "cd .. && husky install"
},
"devDependencies": {
"@kie-tools/dashbuilder-client": "^0.23.0",
"@kie-tools/dashbuilder-client": "^0.29.0",
"@kie/lock-treatment-tool": "^0.2.4",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^4.24.0",
Expand All @@ -36,7 +36,7 @@
"pretty-quick": "^3.1.3"
},
"resolutions": {
"@patternfly/react-core": "4.157.3",
"@patternfly/react-core": "^4.276.6",
"@types/express-serve-static-core": "^4.17.21",
"@types/minimatch": "^3.0.5",
"axios": "0.21.2",
Expand Down
26 changes: 13 additions & 13 deletions ui-packages/packages/cloud-event-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,25 @@
},
"dependencies": {
"@kogito-apps/components-common": "workspace:*",
"@kogito-tooling/envelope": "0.10.0",
"@kogito-tooling/envelope-bus": "0.10.0",
"@patternfly/patternfly": "^4.108.2",
"@patternfly/react-code-editor": "4.2.92",
"@patternfly/react-core": "4.157.3",
"@patternfly/react-icons": "4.11.17",
"lodash": "^4.17.15",
"monaco-yaml": "3.0.0",
"@kie-tools-core/envelope": "0.29.0",
"@kie-tools-core/envelope-bus": "0.29.0",
"@patternfly/patternfly": "^4.224.2",
"@patternfly/react-code-editor": "4.82.113",
"@patternfly/react-core": "^4.276.6",
"@patternfly/react-icons": "^4.93.6",
"lodash": "^4.17.21",
"monaco-yaml": "^4.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-monaco-editor": "^0.41.2"
"react-monaco-editor": "^0.49.0"
},
"devDependencies": {
"@babel/core": "^7.14.0",
"@babel/core": "^7.16.0",
"@kogito-apps/ouia-tools": "workspace:*",
"@testing-library/jest-dom": "^5.12.0",
"@testing-library/jest-dom": "^5.16.1",
"@types/enzyme": "^3.10.8",
"@types/jest": "^26.0.23",
"@types/react": "^17.0.5",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"babel-jest": "^25.1.0",
Expand All @@ -56,7 +56,7 @@
"enzyme-to-json": "^3.6.1",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"jest-junit": "^10.0.0",
"jest-junit": "^14.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.6",
"typescript": "^4.6.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
*/

import React, { useCallback, useMemo } from 'react';
import { EnvelopeServer } from '@kogito-tooling/envelope-bus/dist/channel';
import { EmbeddedEnvelopeFactory } from '@kogito-tooling/envelope/dist/embedded';
import { EnvelopeServer } from '@kie-tools-core/envelope-bus/dist/channel';
import { EmbeddedEnvelopeFactory } from '@kie-tools-core/envelope/dist/embedded';
import {
CloudEventFormApi,
CloudEventFormChannelApi,
CloudEventFormEnvelopeApi,
CloudEventFormDriver
} from '../api';
import { init } from '../envelope';
import { ContainerType } from '@kogito-tooling/envelope/dist/api';
import { ContainerType } from '@kie-tools-core/envelope/dist/api';
import { EmbeddedCloudEventFormChannelApiImpl } from './EmbeddedCloudEventFormChannelApiImpl';

export interface EmbeddedCloudEventFormProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { EnvelopeBus } from '@kogito-tooling/envelope-bus/dist/api';
import { Envelope, EnvelopeDivConfig } from '@kogito-tooling/envelope';
import { EnvelopeBus } from '@kie-tools-core/envelope-bus/dist/api';
import { Envelope, EnvelopeDivConfig } from '@kie-tools-core/envelope';
import { CloudEventFormChannelApi, CloudEventFormEnvelopeApi } from '../api';

import './styles.css';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { EnvelopeApiFactoryArgs } from '@kogito-tooling/envelope';
import { EnvelopeApiFactoryArgs } from '@kie-tools-core/envelope';
import {
Association,
CloudEventFormChannelApi,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import React, {
useMemo,
useState
} from 'react';
import { Bullseye } from '@patternfly/react-core';
import { Bullseye } from '@patternfly/react-core/dist/js/layouts/Bullseye';
import { componentOuiaProps, OUIAProps } from '@kogito-apps/ouia-tools';
import { KogitoSpinner } from '@kogito-apps/components-common';
import { MessageBusClientApi } from '@kogito-tooling/envelope-bus/dist/api';
import { MessageBusClientApi } from '@kie-tools-core/envelope-bus/dist/api';
import {
CloudEventFormChannelApi,
CloudEventFormDefaultValues,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { MessageBusClientApi } from '@kogito-tooling/envelope-bus/dist/api';
import { MessageBusClientApi } from '@kie-tools-core/envelope-bus/dist/api';
import {
CloudEventRequest,
CloudEventFormChannelApi,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@ import React, {
useState
} from 'react';
import uuidv4 from 'uuid';
import {
Button,
Grid,
GridItem,
Stack,
StackItem,
TextInput
} from '@patternfly/react-core';
import { Button } from '@patternfly/react-core/dist/js/components/Button';
import { Grid, GridItem } from '@patternfly/react-core/dist/js/layouts/Grid';
import { Stack, StackItem } from '@patternfly/react-core/dist/js/layouts/Stack';
import { TextInput } from '@patternfly/react-core/dist/js/components/TextInput';
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
import TrashIcon from '@patternfly/react-icons/dist/esm/icons/trash-icon';
import { componentOuiaProps, OUIAProps } from '@kogito-apps/ouia-tools';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import { act } from 'react-dom/test-utils';
import CloudEventCustomHeadersEditor, {
CloudEventCustomHeadersEditorApi
} from '../CloudEventCustomHeadersEditor';
import { Grid, TextInput } from '@patternfly/react-core';
import { TextInput } from '@patternfly/react-core/dist/js/components/TextInput';
import { Grid } from '@patternfly/react-core/dist/js/layouts/Grid';

jest.mock('uuid', () => {
let count = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import React from 'react';
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
import { Popover } from '@patternfly/react-core';
import { Popover } from '@patternfly/react-core/dist/js/components/Popover';

export interface CloudEventFieldLabelIconProps {
fieldId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,24 @@ import {
KOGITO_BUSINESS_KEY,
KOGITO_PROCESS_REFERENCE_ID
} from '../../../api';
import { ActionListGroup } from '@patternfly/react-core/dist/js/components/ActionList';
import {
ActionGroup,
Button,
Form,
FormGroup,
InputGroup,
Select,
SelectOption,
SelectVariant,
TextInput,
ValidatedOptions
} from '@patternfly/react-core';
import { CodeEditor, Language } from '@patternfly/react-code-editor';
SelectVariant
} from '@patternfly/react-core/dist/js/components/Select';
import { TextInput } from '@patternfly/react-core/dist/js/components/TextInput';
import { Button } from '@patternfly/react-core/dist/js/components/Button';
import {
Form,
FormGroup
} from '@patternfly/react-core/dist/js/components/Form';
import { InputGroup } from '@patternfly/react-core/dist/js/components/InputGroup';
import { ValidatedOptions } from '@patternfly/react-core/dist/js/helpers';
import {
CodeEditor,
Language
} from '@patternfly/react-code-editor/dist/js/components/CodeEditor';
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
import {
FormValidations,
Expand Down Expand Up @@ -337,7 +342,7 @@ export const CloudEventForm: React.FC<CloudEventFormProps & OUIAProps> = ({
onChange={setEventData}
/>
</FormGroup>
<ActionGroup>
<ActionListGroup>
<Button
key={'triggerCloudEventButton'}
variant="primary"
Expand All @@ -352,7 +357,7 @@ export const CloudEventForm: React.FC<CloudEventFormProps & OUIAProps> = ({
>
Reset
</Button>
</ActionGroup>
</ActionListGroup>
</Form>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { CloudEventFormDriver } from '../../../../api';
import CloudEventCustomHeadersEditor, {
CloudEventCustomHeadersEditorApi
} from '../../CloudEventCustomHeadersEditor/CloudEventCustomHeadersEditor';
import { CodeEditor } from '@patternfly/react-code-editor';
import { CodeEditor } from '@patternfly/react-code-editor/dist/js/components/CodeEditor';
import { act } from 'react-dom/test-utils';
import wait from 'waait';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import {
MockedCloudEventFormEnvelopeViewApi,
MockedEnvelopeBusControllerDefinition
} from './mocks/Mocks';
import { EnvelopeApiFactoryArgs } from '@kogito-tooling/envelope';
import { EnvelopeBusController } from '@kogito-tooling/envelope-bus/dist/envelope';
import { EnvelopeApiFactoryArgs } from '@kie-tools-core/envelope';
import { EnvelopeBusController } from '@kie-tools-core/envelope-bus/dist/envelope';
import { CloudEventFormChannelApi, CloudEventFormEnvelopeApi } from '../../api';
import { CloudEventFormEnvelopeViewApi } from '../CloudEventFormEnvelopeView';
import { CloudEventFormEnvelopeApiImpl } from '../CloudEventFormEnvelopeApiImpl';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import {
MessageBusClientApi,
RequestPropertyNames
} from '@kogito-tooling/envelope-bus/dist/api';
} from '@kie-tools-core/envelope-bus/dist/api';
import { MockedMessageBusClientApi } from './mocks/Mocks';
import {
CloudEventFormChannelApi,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
import {
MessageBusClientApi,
RequestPropertyNames
} from '@kogito-tooling/envelope-bus/dist/api';
} from '@kie-tools-core/envelope-bus/dist/api';
import {
CloudEventFormChannelApi,
CloudEventFormDriver,
CloudEventFormEnvelopeApi,
CloudEventRequest
} from '../../../api';
import { MessageBusServer } from '@kogito-tooling/envelope-bus/dist/api';
import { EnvelopeBusMessageManager } from '@kogito-tooling/envelope-bus/dist/common';
import { EnvelopeBusController } from '@kogito-tooling/envelope-bus/dist/envelope';
import { MessageBusServer } from '@kie-tools-core/envelope-bus/dist/api';
import { EnvelopeBusMessageManager } from '@kie-tools-core/envelope-bus/dist/common';
import { EnvelopeBusController } from '@kie-tools-core/envelope-bus/dist/envelope';
import { CloudEventFormEnvelopeViewApi } from '../../CloudEventFormEnvelopeView';

export class MockedCloudEventFormDriver implements CloudEventFormDriver {
Expand Down
16 changes: 0 additions & 16 deletions ui-packages/packages/common/.storybook/main.js

This file was deleted.

11 changes: 0 additions & 11 deletions ui-packages/packages/common/.storybook/preview.js

This file was deleted.

3 changes: 0 additions & 3 deletions ui-packages/packages/common/.storybook/storybook.css

This file was deleted.

24 changes: 0 additions & 24 deletions ui-packages/packages/common/codegen.yml

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions ui-packages/packages/common/config/Jest-config/fileMocks.js

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions ui-packages/packages/common/config/Jest-config/test-setup.js

This file was deleted.

3 changes: 0 additions & 3 deletions ui-packages/packages/common/config/Jest-config/test-shim.js

This file was deleted.

9 changes: 0 additions & 9 deletions ui-packages/packages/common/config/declare.d.ts

This file was deleted.

Loading

0 comments on commit a5dec54

Please sign in to comment.