git refactor(frontend-plugin-api): inline CommonAnalyticsContext type

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2025-08-04 11:21:18 +02:00
parent ff76965df3
commit a321f3be39
4 changed files with 16 additions and 21 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-plugin-api': minor
---
BREAKING: The "CommonAnalyticsContext" type is now internal and no longer exported from this package.
+6 -9
View File
@@ -115,9 +115,12 @@ export const AnalyticsContext: (options: {
}) => JSX_2.Element;
// @public
export type AnalyticsContextValue = CommonAnalyticsContext & {
[param in string]: string | boolean | number | undefined;
};
export interface AnalyticsContextValue {
// (undocumented)
[key: string]: string | boolean | number | undefined;
extensionId: string;
pluginId: string;
}
// @public
export type AnalyticsEvent = {
@@ -333,12 +336,6 @@ export { bitbucketAuthApiRef };
export { bitbucketServerAuthApiRef };
// @public
export type CommonAnalyticsContext = {
pluginId: string;
extensionId: string;
};
// @public (undocumented)
export type ComponentRef<T extends {} = {}> = {
id: string;
@@ -15,5 +15,5 @@
*/
export { AnalyticsContext } from './AnalyticsContext';
export type { AnalyticsContextValue, CommonAnalyticsContext } from './types';
export type { AnalyticsContextValue } from './types';
export { useAnalytics } from './useAnalytics';
@@ -15,11 +15,11 @@
*/
/**
* Common analytics context attributes.
* Analytics context envelope.
*
* @public
*/
export type CommonAnalyticsContext = {
export interface AnalyticsContextValue {
/**
* The nearest known parent plugin where the event was captured.
*/
@@ -29,13 +29,6 @@ export type CommonAnalyticsContext = {
* The nearest known parent extension where the event was captured.
*/
extensionId: string;
};
/**
* Analytics context envelope.
*
* @public
*/
export type AnalyticsContextValue = CommonAnalyticsContext & {
[param in string]: string | boolean | number | undefined;
};
[key: string]: string | boolean | number | undefined;
}