diff --git a/package.json b/package.json index 0bcb5b5..b0cfbae 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ ".": "./index.js", "./dom": "./dom/index.js", "./internal": "./internal/index.js", + "./internal/metrics": "./internal/metrics.js", "./internal/testing": "./internal/testing.js", "./internal/analytics-metadata": "./internal/analytics-metadata/index.js", "./internal/analytics-metadata/utils": "./internal/analytics-metadata/utils.js", diff --git a/src/internal/index.ts b/src/internal/index.ts index fe1020b..02b06eb 100644 --- a/src/internal/index.ts +++ b/src/internal/index.ts @@ -4,8 +4,8 @@ export { useComponentMetadata, COMPONENT_METADATA_KEY } from './base-component/component-metadata'; export { useComponentMetrics, ComponentConfiguration } from './base-component/component-metrics'; export { initAwsUiVersions } from './base-component/init-awsui-versions'; -export { Metrics } from './base-component/metrics/metrics'; export { useResizeObserver } from './container-queries/use-resize-observer'; +export { Metrics } from './metrics'; export { createSingletonHandler, createSingletonState, UseSingleton } from './singleton-handler'; export { useStableCallback } from './stable-callback'; export { diff --git a/src/internal/metrics.ts b/src/internal/metrics.ts new file mode 100644 index 0000000..156ceca --- /dev/null +++ b/src/internal/metrics.ts @@ -0,0 +1,4 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +export { Metrics } from './base-component/metrics/metrics';