Skip to content

Commit

Permalink
chore: Expose metrics as separate file export (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris authored Nov 4, 2024
1 parent e7584f4 commit c8a5c73
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/internal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions src/internal/metrics.ts
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit c8a5c73

Please sign in to comment.