git refactor(frontend-plugin-api): inline CommonAnalyticsContext type
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/frontend-plugin-api': minor
|
||||
---
|
||||
|
||||
BREAKING: The "CommonAnalyticsContext" type is now internal and no longer exported from this package.
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user