Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@backstage/frontend-plugin-api

Package Overview
Dependencies
Maintainers
3
Versions
494
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/frontend-plugin-api - npm Package Compare versions

Comparing version 0.0.0-nightly-20230929021128 to 0.0.0-nightly-20230930021146

5

CHANGELOG.md
# @backstage/frontend-plugin-api
## 0.0.0-nightly-20230929021128
## 0.0.0-nightly-20230930021146

@@ -8,4 +8,5 @@ ### Patch Changes

- d3a37f55c086: Add support for `SidebarGroup` on the sidebar item extension.
- 52366db5b36a: Added `createThemeExtension` and `coreExtensionData.theme`.
- Updated dependencies
- @backstage/core-plugin-api@0.0.0-nightly-20230929021128
- @backstage/core-plugin-api@0.0.0-nightly-20230930021146
- @backstage/types@1.1.1

@@ -12,0 +13,0 @@

8

dist/index.d.ts
/// <reference types="react" />
import React, { JSX as JSX$1, ReactNode } from 'react';
import { JsonObject } from '@backstage/types';
import { IconComponent, RouteRef, AnyApiFactory, AnyApiRef } from '@backstage/core-plugin-api';
import { IconComponent, RouteRef, AnyApiFactory, AppTheme, AnyApiRef } from '@backstage/core-plugin-api';
import { z, ZodSchema, ZodTypeDef } from 'zod';

@@ -40,2 +40,3 @@

navTarget: ConfigurableExtensionDataRef<NavTarget, {}>;
theme: ConfigurableExtensionDataRef<AppTheme, {}>;
};

@@ -219,4 +220,7 @@

/** @public */
declare function createThemeExtension(theme: AppTheme): Extension<never>;
/** @public */
declare function useRouteRef(routeRef: RouteRef<any>): () => string;
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, useRouteRef };
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, useRouteRef };

@@ -27,3 +27,4 @@ import React, { useContext, useMemo } from 'react';

routeRef: createExtensionDataRef("core.routing.ref"),
navTarget: createExtensionDataRef("core.nav.target")
navTarget: createExtensionDataRef("core.nav.target"),
theme: createExtensionDataRef("core.theme")
};

@@ -172,2 +173,15 @@

function createThemeExtension(theme) {
return createExtension({
id: `themes.${theme.id}`,
at: "core/themes",
output: {
theme: coreExtensionData.theme
},
factory({ bind }) {
bind({ theme });
}
});
}
function useRouteRef(routeRef) {

@@ -186,3 +200,3 @@ const { pathname } = useLocation();

export { ExtensionBoundary, coreExtensionData, createApiExtension, createExtension, createExtensionDataRef, createExtensionInput, createNavItemExtension, createPageExtension, createPlugin, createSchemaFromZod, useRouteRef };
export { ExtensionBoundary, coreExtensionData, createApiExtension, createExtension, createExtensionDataRef, createExtensionInput, createNavItemExtension, createPageExtension, createPlugin, createSchemaFromZod, createThemeExtension, useRouteRef };
//# sourceMappingURL=index.esm.js.map
{
"name": "@backstage/frontend-plugin-api",
"version": "0.0.0-nightly-20230929021128",
"version": "0.0.0-nightly-20230930021146",
"main": "dist/index.esm.js",

@@ -26,5 +26,5 @@ "types": "dist/index.d.ts",

"devDependencies": {
"@backstage/cli": "^0.0.0-nightly-20230929021128",
"@backstage/frontend-app-api": "^0.0.0-nightly-20230929021128",
"@backstage/test-utils": "^0.0.0-nightly-20230929021128",
"@backstage/cli": "^0.0.0-nightly-20230930021146",
"@backstage/frontend-app-api": "^0.0.0-nightly-20230930021146",
"@backstage/test-utils": "^0.0.0-nightly-20230930021146",
"@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-20230929021128",
"@backstage/core-plugin-api": "^0.0.0-nightly-20230930021146",
"@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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc