File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @red-hat-developer-hub/backstage-plugin-lightspeed ' : patch
3+ ---
4+
5+ Moved the ` CustomDrawer ` component from ` packages/app ` to ` plugins/lightspeed/dev ` to resolve workspace accessibility issues during development.
Original file line number Diff line number Diff line change 4747 "@material-ui/core" : " ^4.12.2" ,
4848 "@material-ui/icons" : " ^4.9.1" ,
4949 "@mui/material" : " ^5.12.2" ,
50- "@red-hat-developer-hub/backstage-plugin-lightspeed" : " * " ,
50+ "@red-hat-developer-hub/backstage-plugin-lightspeed" : " workspace:^ " ,
5151 "@red-hat-developer-hub/backstage-plugin-theme" : " ^0.12.0" ,
5252 "react" : " ^18.0.2" ,
5353 "react-dom" : " ^18.0.2" ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import {
2222 useEffect ,
2323 useRef ,
2424} from 'react' ;
25- import { CustomDrawer } from './CustomDrawer ' ;
25+ import { CustomDrawer } from '@red-hat-developer-hub/backstage-plugin-lightspeed/dev ' ;
2626
2727/**
2828 * Partial drawer state exposed by drawer plugins
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- /* eslint-disable no-restricted-imports */
1817import Box from '@mui/material/Box' ;
1918import Drawer from '@mui/material/Drawer' ;
20- /* eslint-enable no-restricted-imports */
2119
2220import { ThemeConfig } from '@red-hat-developer-hub/backstage-plugin-theme' ;
2321
22+ /**
23+ * @internal
24+ */
2425export type CustomDrawerProps = {
2526 children : React . ReactNode ;
2627 minWidth ?: number ;
@@ -32,6 +33,9 @@ export type CustomDrawerProps = {
3233 [ key : string ] : any ;
3334} ;
3435
36+ /**
37+ * @internal
38+ */
3539export const CustomDrawer = ( props : CustomDrawerProps ) => {
3640 const {
3741 children,
Original file line number Diff line number Diff line change @@ -18,9 +18,8 @@ import { PropsWithChildren } from 'react';
1818
1919import { ChatbotDisplayMode } from '@patternfly/chatbot' ;
2020
21- // eslint-disable-next-line @backstage/no-relative-monorepo-imports
22- import { CustomDrawer } from '../../../packages/app/src/components/Root/CustomDrawer' ;
2321import { useLightspeedDrawerContext } from '../src/hooks/useLightspeedDrawerContext' ;
22+ import { CustomDrawer } from './CustomDrawer' ;
2423
2524export const DrawerComponent = ( { children } : PropsWithChildren ) => {
2625 const { displayMode, drawerWidth, setDrawerWidth } =
Original file line number Diff line number Diff line change 1010 "exports" : {
1111 "." : " ./src/index.ts" ,
1212 "./alpha" : " ./src/alpha.ts" ,
13+ "./dev" : " ./dev/CustomDrawer.tsx" ,
1314 "./package.json" : " ./package.json"
1415 },
1516 "typesVersions" : {
Original file line number Diff line number Diff line change 1+ ## API Report File for "@red-hat-developer-hub/backstage-plugin-lightspeed "
2+
3+ > Do not edit this file. It is a report generated by [ API Extractor] ( https://api-extractor.com/ ) .
4+
5+ ``` ts
6+
7+ // (No @packageDocumentation comment for this package)
8+
9+ ```
Original file line number Diff line number Diff line change @@ -10387,7 +10387,7 @@ __metadata:
1038710387 languageName: unknown
1038810388 linkType: soft
1038910389
10390- "@red-hat-developer-hub/backstage-plugin-lightspeed@npm:* , @red-hat-developer-hub/backstage-plugin-lightspeed@workspace:plugins/lightspeed":
10390+ "@red-hat-developer-hub/backstage-plugin-lightspeed@workspace:^ , @red-hat-developer-hub/backstage-plugin-lightspeed@workspace:plugins/lightspeed":
1039110391 version: 0.0.0-use.local
1039210392 resolution: "@red-hat-developer-hub/backstage-plugin-lightspeed@workspace:plugins/lightspeed"
1039310393 dependencies:
@@ -14900,7 +14900,7 @@ __metadata:
1490014900 "@material-ui/icons": "npm:^4.9.1"
1490114901 "@mui/material": "npm:^5.12.2"
1490214902 "@playwright/test": "npm:1.58.2"
14903- "@red-hat-developer-hub/backstage-plugin-lightspeed": "npm:* "
14903+ "@red-hat-developer-hub/backstage-plugin-lightspeed": "workspace:^ "
1490414904 "@red-hat-developer-hub/backstage-plugin-theme": "npm:^0.12.0"
1490514905 "@testing-library/dom": "npm:^9.0.0"
1490614906 "@testing-library/jest-dom": "npm:^6.0.0"
You can’t perform that action at this time.
0 commit comments