Add @kbn/analytics to UI Shared Deps (#91810)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Alejandro Fernández Haro 2021-02-19 18:59:03 +00:00 committed by GitHub
parent 4e2601d9c9
commit fb2f6abed2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 9 deletions

View file

@ -6,8 +6,13 @@
* Side Public License, v 1.
*/
export { ReportHTTP, Reporter, ReporterConfig } from './reporter';
export { UiCounterMetricType, METRIC_TYPE } from './metrics';
export { Report, ReportManager } from './report';
// Export types separately to the actual run-time objects
export type { ReportHTTP, ReporterConfig } from './reporter';
export type { UiCounterMetricType } from './metrics';
export type { Report } from './report';
export type { Storage } from './storage';
export { Reporter } from './reporter';
export { METRIC_TYPE } from './metrics';
export { ReportManager } from './report';
export { ApplicationUsageTracker } from './application_usage_tracker';
export { Storage } from './storage';

View file

@ -6,13 +6,17 @@
* Side Public License, v 1.
*/
import { UiCounterMetric } from './ui_counter';
import { UserAgentMetric } from './user_agent';
import { ApplicationUsageMetric } from './application_usage';
import type { UiCounterMetric } from './ui_counter';
import type { UserAgentMetric } from './user_agent';
import type { ApplicationUsageMetric } from './application_usage';
export { UiCounterMetric, createUiCounterMetric, UiCounterMetricType } from './ui_counter';
// Export types separately to the actual run-time objects
export type { ApplicationUsageMetric } from './application_usage';
export type { UiCounterMetric, UiCounterMetricType } from './ui_counter';
export { createUiCounterMetric } from './ui_counter';
export { trackUsageAgent } from './user_agent';
export { createApplicationUsageMetric, ApplicationUsageMetric } from './application_usage';
export { createApplicationUsageMetric } from './application_usage';
export type Metric = UiCounterMetric | UserAgentMetric | ApplicationUsageMetric;
export enum METRIC_TYPE {

View file

@ -46,3 +46,4 @@ export const LodashFp = require('lodash/fp');
// runtime deps which don't need to be copied across all bundles
export const TsLib = require('tslib');
export const KbnAnalytics = require('@kbn/analytics');

View file

@ -57,5 +57,6 @@ exports.externals = {
* runtime deps which don't need to be copied across all bundles
*/
tslib: '__kbnSharedDeps__.TsLib',
'@kbn/analytics': '__kbnSharedDeps__.KbnAnalytics',
};
exports.publicPathLoader = require.resolve('./public_path_loader');