Skip to content

Commit 150a209

Browse files
Added patternfly/react-topology to shared module list of dynamic plugin sdk
1 parent 7c5838d commit 150a209

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

frontend/packages/console-dynamic-plugin-sdk/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ The following shared modules are provided by Console, without plugins providing
129129

130130
- `@openshift-console/dynamic-plugin-sdk`
131131
- `@openshift-console/dynamic-plugin-sdk-internal`
132+
- `@patternfly/react-topology`
132133
- `react`
133134
- `react-i18next`
134135
- `react-redux`
@@ -175,6 +176,8 @@ This section documents notable changes in the Console provided shared modules ac
175176
`react-router-dom-v5-compat` will be removed in the future. Plugins should continue migration to the
176177
`react-router-dom-v5-compat` module until `react-router-dom` v6 is aliased to `react-router-dom` v6. See the
177178
[Official v5 to v6 Migration Guide](https://reactrouter.com/6.30.0/upgrading/v5) for details.
179+
- Added `@patternfly/react-topology` to shared modules. This supports dynamic plugins using PatternFly 6
180+
topology components with consistent context and styling.
178181

179182
##### CSS styling
180183

frontend/packages/console-dynamic-plugin-sdk/src/shared-modules/shared-modules-init.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const initSharedScope = () => {
3535
addModule('@openshift-console/dynamic-plugin-sdk-internal', async () => () =>
3636
require('@console/dynamic-plugin-sdk/src/lib-internal'),
3737
);
38+
addModule('@patternfly/react-topology', async () => () => require('@patternfly/react-topology'));
3839
addModule('react', async () => () => require('react'));
3940
addModule('react-i18next', async () => () => require('react-i18next'));
4041
addModule('react-redux', async () => () => require('react-redux'));

frontend/packages/console-dynamic-plugin-sdk/src/shared-modules/shared-modules-meta.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type SharedModuleMetadata = Partial<{
2424
export const sharedPluginModules = [
2525
'@openshift-console/dynamic-plugin-sdk',
2626
'@openshift-console/dynamic-plugin-sdk-internal',
27+
'@patternfly/react-topology',
2728
'react',
2829
'react-i18next',
2930
'react-redux',
@@ -42,6 +43,7 @@ export type SharedModuleNames = typeof sharedPluginModules[number];
4243
const sharedPluginModulesMetadata: Record<SharedModuleNames, SharedModuleMetadata> = {
4344
'@openshift-console/dynamic-plugin-sdk': { singleton: true, allowFallback: false },
4445
'@openshift-console/dynamic-plugin-sdk-internal': { singleton: true, allowFallback: false },
46+
'@patternfly/react-topology': { singleton: true, allowFallback: false },
4547
react: { singleton: true, allowFallback: false },
4648
'react-i18next': { singleton: true, allowFallback: false },
4749
'react-redux': { singleton: true, allowFallback: false },

0 commit comments

Comments
 (0)