From 609441f8a2c490a91b535e3275ba108cea94af30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Maro=C5=A1i?= Date: Thu, 7 Sep 2023 15:47:19 +0200 Subject: [PATCH] Fix missing props export for NotAuthorized component. --- package-lock.json | 18 +++++++++--------- packages/components/package.json | 2 +- .../src/NotAuthorized/NotAuthorized.tsx | 9 ++------- packages/components/src/NotAuthorized/index.ts | 1 + 4 files changed, 13 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index 02da0a090..15d69a933 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7999,9 +7999,9 @@ } }, "node_modules/@patternfly/react-component-groups": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/@patternfly/react-component-groups/-/react-component-groups-1.0.13.tgz", - "integrity": "sha512-7RNhHgJKwKfEQ/lBqc/USQlmxk69yHzeTHZpNn37ljLTT837JrXr2R0eSEY5Mmuyu4vaiSKD4SPlUqDnLsQSsg==", + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/@patternfly/react-component-groups/-/react-component-groups-1.0.14.tgz", + "integrity": "sha512-Jn6whmN+CNPQYhkPN8ITGfLvYyNrrZ/OgN2xR93sFBR4fW2XBUYugw+vKrXJp7s5qflaOl5Xx5d+Crny7sgHfg==", "dependencies": { "@patternfly/react-core": "^5.0.0", "@patternfly/react-icons": "^5.0.0", @@ -42000,10 +42000,10 @@ }, "packages/components": { "name": "@redhat-cloud-services/frontend-components", - "version": "4.0.6", + "version": "4.0.8", "license": "Apache-2.0", "dependencies": { - "@patternfly/react-component-groups": "^1.0.13", + "@patternfly/react-component-groups": "^1.0.14", "@redhat-cloud-services/frontend-components-utilities": "^4.0.0", "@redhat-cloud-services/types": "^0.0.24", "@scalprum/core": "^0.5.1", @@ -49099,9 +49099,9 @@ } }, "@patternfly/react-component-groups": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/@patternfly/react-component-groups/-/react-component-groups-1.0.13.tgz", - "integrity": "sha512-7RNhHgJKwKfEQ/lBqc/USQlmxk69yHzeTHZpNn37ljLTT837JrXr2R0eSEY5Mmuyu4vaiSKD4SPlUqDnLsQSsg==", + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/@patternfly/react-component-groups/-/react-component-groups-1.0.14.tgz", + "integrity": "sha512-Jn6whmN+CNPQYhkPN8ITGfLvYyNrrZ/OgN2xR93sFBR4fW2XBUYugw+vKrXJp7s5qflaOl5Xx5d+Crny7sgHfg==", "requires": { "@patternfly/react-core": "^5.0.0", "@patternfly/react-icons": "^5.0.0", @@ -49273,7 +49273,7 @@ "requires": { "@cypress/webpack-dev-server": "^1.8.4", "@patternfly/patternfly": "^5.0.0", - "@patternfly/react-component-groups": "^1.0.13", + "@patternfly/react-component-groups": "^1.0.14", "@redhat-cloud-services/frontend-components-config-utilities": "^3.0.0", "@redhat-cloud-services/frontend-components-utilities": "^4.0.0", "@redhat-cloud-services/types": "^0.0.24", diff --git a/packages/components/package.json b/packages/components/package.json index 2f87dd57d..6e795a0b5 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -49,7 +49,7 @@ "dependencies": { "@redhat-cloud-services/frontend-components-utilities": "^4.0.0", "@redhat-cloud-services/types": "^0.0.24", - "@patternfly/react-component-groups": "^1.0.13", + "@patternfly/react-component-groups": "^1.0.14", "@scalprum/core": "^0.5.1", "@scalprum/react-core": "^0.5.1", "sanitize-html": "^2.7.2" diff --git a/packages/components/src/NotAuthorized/NotAuthorized.tsx b/packages/components/src/NotAuthorized/NotAuthorized.tsx index 07a15bdfb..1df5a827a 100644 --- a/packages/components/src/NotAuthorized/NotAuthorized.tsx +++ b/packages/components/src/NotAuthorized/NotAuthorized.tsx @@ -1,11 +1,6 @@ import React from 'react'; -import { NotAuthorized as NotAuthorizedPF } from '@patternfly/react-component-groups/dist/dynamic/NotAuthorized'; - -interface NotAuthorizedProps { - /** Custom description */ - description?: React.ReactNode; -} - +import { NotAuthorized as NotAuthorizedPF, NotAuthorizedProps } from '@patternfly/react-component-groups/dist/dynamic/NotAuthorized'; +export { NotAuthorizedProps } from '@patternfly/react-component-groups/dist/dynamic/NotAuthorized'; /** * @deprecated Do not use deprecated NotAuthorized import, the component has been moved to @patternfly/react-component-groups */ diff --git a/packages/components/src/NotAuthorized/index.ts b/packages/components/src/NotAuthorized/index.ts index 6e26c42a0..d3ae7fe96 100644 --- a/packages/components/src/NotAuthorized/index.ts +++ b/packages/components/src/NotAuthorized/index.ts @@ -1,2 +1,3 @@ export { default } from './NotAuthorized'; +export * from './NotAuthorized'; export { default as NotAuthorized } from './NotAuthorized';