diff --git a/workspaces/lightspeed/.changeset/bright-doors-glow.md b/workspaces/lightspeed/.changeset/bright-doors-glow.md new file mode 100644 index 0000000000..f539eed468 --- /dev/null +++ b/workspaces/lightspeed/.changeset/bright-doors-glow.md @@ -0,0 +1,5 @@ +--- +'@red-hat-developer-hub/backstage-plugin-lightspeed': minor +--- + +Add dedicated module export for the Lightspeed FAB component to enable standalone app-root-wrapper registration in the new frontend system. diff --git a/workspaces/lightspeed/packages/backend/src/index.ts b/workspaces/lightspeed/packages/backend/src/index.ts index 28d8a7f3ab..740b542546 100644 --- a/workspaces/lightspeed/packages/backend/src/index.ts +++ b/workspaces/lightspeed/packages/backend/src/index.ts @@ -38,7 +38,8 @@ backend.add( // See https://backstage.io/docs/features/software-catalog/configuration#subscribing-to-catalog-errors backend.add(import('@backstage/plugin-catalog-backend-module-logs')); -// RBAC backend (registers as "permission" and provides /rbac; do not add plugin-permission-backend separately) +backend.add(import('@backstage/plugin-permission-backend')); + backend.add(import('@backstage-community/plugin-rbac-backend')); // search plugin diff --git a/workspaces/lightspeed/plugins/lightspeed/package.json b/workspaces/lightspeed/plugins/lightspeed/package.json index aee0807718..9b9061bef1 100644 --- a/workspaces/lightspeed/plugins/lightspeed/package.json +++ b/workspaces/lightspeed/plugins/lightspeed/package.json @@ -10,6 +10,7 @@ "exports": { ".": "./src/index.ts", "./alpha": "./src/alpha/index.tsx", + "./lightspeed-fab-module": "./src/alpha/lightspeedFABModuleExport.ts", "./dev": "./dev/CustomDrawer.tsx", "./package.json": "./package.json" }, @@ -18,6 +19,9 @@ "alpha": [ "src/alpha/index.tsx" ], + "lightspeed-fab-module": [ + "src/alpha/lightspeedFABModuleExport.ts" + ], "dev": [ "dev/CustomDrawer.tsx" ], @@ -110,6 +114,7 @@ "name": "red-hat-developer-hub.backstage-plugin-lightspeed", "exposedModules": { "Alpha": "./src/alpha/index.tsx", + "LightspeedFABModule": "./src/alpha/lightspeedFABModuleExport.ts", "PluginRoot": "./src/index.ts", "LightspeedPlugin": "./src/index.ts" } diff --git a/workspaces/lightspeed/plugins/lightspeed/report-lightspeed-fab-module.api.md b/workspaces/lightspeed/plugins/lightspeed/report-lightspeed-fab-module.api.md new file mode 100644 index 0000000000..e25697607d --- /dev/null +++ b/workspaces/lightspeed/plugins/lightspeed/report-lightspeed-fab-module.api.md @@ -0,0 +1,13 @@ +## API Report File for "@red-hat-developer-hub/backstage-plugin-lightspeed" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts +import { FrontendModule } from '@backstage/frontend-plugin-api'; + +// @alpha (undocumented) +const lightspeedFABModule: FrontendModule; +export default lightspeedFABModule; + +// (No @packageDocumentation comment for this package) +``` diff --git a/workspaces/lightspeed/plugins/lightspeed/src/alpha/lightspeedFABModuleExport.ts b/workspaces/lightspeed/plugins/lightspeed/src/alpha/lightspeedFABModuleExport.ts new file mode 100644 index 0000000000..1a9cb887fa --- /dev/null +++ b/workspaces/lightspeed/plugins/lightspeed/src/alpha/lightspeedFABModuleExport.ts @@ -0,0 +1,17 @@ +/* + * Copyright Red Hat, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export { lightspeedFABModule as default } from './index';