@backstage/frontend-plugin-api
Advanced tools
Comparing version 0.0.0-nightly-20231010021207 to 0.0.0-nightly-20231011021258
# @backstage/frontend-plugin-api | ||
## 0.0.0-nightly-20231010021207 | ||
## 0.0.0-nightly-20231011021258 | ||
@@ -13,7 +13,21 @@ ### Minor Changes | ||
- d3a37f55c086: Add support for `SidebarGroup` on the sidebar item extension. | ||
- c1e9ca650049: Added `createExtensionOverrides` which can be used to install a collection of extensions in an app that will replace any existing ones. | ||
- 52366db5b36a: Added `createThemeExtension` and `coreExtensionData.theme`. | ||
- Updated dependencies | ||
- @backstage/core-plugin-api@0.0.0-nightly-20231010021207 | ||
- @backstage/core-plugin-api@0.0.0-nightly-20231011021258 | ||
- @backstage/types@1.1.1 | ||
## 0.2.0-next.2 | ||
### Minor Changes | ||
- 06432f900c: Extension attachment point is now configured via `attachTo: { id, input }` instead of `at: 'id/input'`. | ||
- 4461d87d5a: Removed support for the new `useRouteRef`. | ||
### Patch Changes | ||
- Updated dependencies | ||
- @backstage/core-plugin-api@1.7.0-next.1 | ||
- @backstage/types@1.1.1 | ||
## 0.1.1-next.1 | ||
@@ -20,0 +34,0 @@ |
@@ -167,2 +167,13 @@ /// <reference types="react" /> | ||
/** @public */ | ||
interface ExtensionOverridesOptions { | ||
extensions: Extension<unknown>[]; | ||
} | ||
/** @public */ | ||
interface ExtensionOverrides { | ||
$$type: '@backstage/ExtensionOverrides'; | ||
} | ||
/** @public */ | ||
declare function createExtensionOverrides(options: ExtensionOverridesOptions): ExtensionOverrides; | ||
/** @public */ | ||
interface ExtensionBoundaryProps { | ||
@@ -231,2 +242,2 @@ children: ReactNode; | ||
export { AnyExtensionDataMap, AnyExtensionInputMap, BackstagePlugin, ConfigurableExtensionDataRef, CreateExtensionOptions, Extension, ExtensionBoundary, ExtensionBoundaryProps, ExtensionDataRef, ExtensionDataValues, ExtensionInput, ExtensionInputValues, NavTarget, PluginOptions, PortableSchema, coreExtensionData, createApiExtension, createExtension, createExtensionDataRef, createExtensionInput, createNavItemExtension, createPageExtension, createPlugin, createSchemaFromZod, createThemeExtension }; | ||
export { AnyExtensionDataMap, AnyExtensionInputMap, BackstagePlugin, ConfigurableExtensionDataRef, CreateExtensionOptions, Extension, ExtensionBoundary, ExtensionBoundaryProps, ExtensionDataRef, ExtensionDataValues, ExtensionInput, ExtensionInputValues, ExtensionOverrides, ExtensionOverridesOptions, NavTarget, PluginOptions, PortableSchema, coreExtensionData, createApiExtension, createExtension, createExtensionDataRef, createExtensionInput, createExtensionOverrides, createNavItemExtension, createPageExtension, createPlugin, createSchemaFromZod, createThemeExtension }; |
@@ -66,2 +66,10 @@ import React from 'react'; | ||
function createExtensionOverrides(options) { | ||
return { | ||
$$type: "@backstage/ExtensionOverrides", | ||
version: "v1", | ||
extensions: options.extensions | ||
}; | ||
} | ||
function createApiExtension(options) { | ||
@@ -184,3 +192,3 @@ const { factory, configSchema, inputs: extensionInputs } = options; | ||
export { ExtensionBoundary, coreExtensionData, createApiExtension, createExtension, createExtensionDataRef, createExtensionInput, createNavItemExtension, createPageExtension, createPlugin, createSchemaFromZod, createThemeExtension }; | ||
export { ExtensionBoundary, coreExtensionData, createApiExtension, createExtension, createExtensionDataRef, createExtensionInput, createExtensionOverrides, createNavItemExtension, createPageExtension, createPlugin, createSchemaFromZod, createThemeExtension }; | ||
//# sourceMappingURL=index.esm.js.map |
{ | ||
"name": "@backstage/frontend-plugin-api", | ||
"version": "0.0.0-nightly-20231010021207", | ||
"version": "0.0.0-nightly-20231011021258", | ||
"main": "dist/index.esm.js", | ||
@@ -26,5 +26,5 @@ "types": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@backstage/cli": "^0.0.0-nightly-20231010021207", | ||
"@backstage/frontend-app-api": "^0.0.0-nightly-20231010021207", | ||
"@backstage/test-utils": "^0.0.0-nightly-20231010021207", | ||
"@backstage/cli": "^0.0.0-nightly-20231011021258", | ||
"@backstage/frontend-app-api": "^0.0.0-nightly-20231011021258", | ||
"@backstage/test-utils": "^0.0.0-nightly-20231011021258", | ||
"@testing-library/jest-dom": "^5.10.1", | ||
@@ -41,3 +41,3 @@ "@testing-library/react": "^12.1.3" | ||
"dependencies": { | ||
"@backstage/core-plugin-api": "^0.0.0-nightly-20231010021207", | ||
"@backstage/core-plugin-api": "^0.0.0-nightly-20231011021258", | ||
"@backstage/types": "^1.1.1", | ||
@@ -44,0 +44,0 @@ "@types/react": "^16.13.1 || ^17.0.0", |
Sorry, the diff of this file is not supported yet
45551
409