Skip to content

Commit b033233

Browse files
niieanibbrzoska
authored andcommitted
chore: move v1 to its own folder
1 parent c4f7604 commit b033233

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+27
-27
lines changed

src/main.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@
55
* found at http://www.apache.org/licenses/LICENSE-2.0.
66
*/
77

8-
export { ActionLog } from './ActionLog'
9-
export type { ActionLogRef } from './ActionLogCache'
10-
export { ActionLogCache } from './ActionLogCache'
11-
export * from './constants'
12-
export type { Report } from './generateReport'
13-
export { generateReport } from './generateReport'
14-
export { generateTimingHooks } from './generateTimingHooks'
15-
export { getExternalApi } from './getExternalApi'
16-
export * from './types'
17-
export { useActionLog } from './useActionLog'
18-
export { useTiming } from './useTiming'
19-
export { useTimingMeasurement } from './useTimingMeasurement'
8+
export { ActionLog } from './v1/ActionLog'
9+
export type { ActionLogRef } from './v1/ActionLogCache'
10+
export { ActionLogCache } from './v1/ActionLogCache'
11+
export * from './v1/constants'
12+
export type { Report } from './v1/generateReport'
13+
export { generateReport } from './v1/generateReport'
14+
export { generateTimingHooks } from './v1/generateTimingHooks'
15+
export { getExternalApi } from './v1/getExternalApi'
16+
export * from './v1/types'
17+
export { useActionLog } from './v1/useActionLog'
18+
export { useTiming } from './v1/useTiming'
19+
export { useTimingMeasurement } from './v1/useTimingMeasurement'
2020

2121
// utils
22-
export type { DebounceOptionsRef } from './debounce'
23-
export { debounce } from './debounce'
2422
export {
2523
ReactMeasureErrorBoundary,
2624
useOnErrorBoundaryDidCatch,
2725
} from './ErrorBoundary'
28-
export { performanceMark, performanceMeasure } from './performanceMark'
29-
export { switchFn } from './switchFn'
30-
export { getCurrentBrowserSupportForNonResponsiveStateDetection } from './utilities'
26+
export type { DebounceOptionsRef } from './v1/debounce'
27+
export { debounce } from './v1/debounce'
28+
export { performanceMark, performanceMeasure } from './v1/performanceMark'
29+
export { switchFn } from './v1/switchFn'
30+
export { getCurrentBrowserSupportForNonResponsiveStateDetection } from './v1/utilities'
3131

3232
// v3
3333
export * from './v3/constants'

src/stories/Visualizer/Viz.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { Meta, StoryObj } from '@storybook/react'
44
import { useScreenSize } from '@visx/responsive'
55
import OperationVisualizer, {
66
type OperationVisualizerProps,
7-
} from '../../v3/visualizer'
7+
} from '../../visualizer'
88

99
export const OperationVisualizerStory: StoryObj<OperationVisualizerProps> = {
1010
render: () => {
File renamed without changes.
File renamed without changes.

README.md renamed to src/v1/README.md

Lines changed: 2 additions & 2 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/useTimingMeasurement.ts renamed to src/v1/useTimingMeasurement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
import type { DependencyList } from 'react'
99
import { useEffect, useRef } from 'react'
10+
import { useOnErrorBoundaryDidCatch } from '../ErrorBoundary'
1011
import { ACTION_TYPE, DEFAULT_STAGES } from './constants'
11-
import { useOnErrorBoundaryDidCatch } from './ErrorBoundary'
1212
import { performanceMark, performanceMeasure } from './performanceMark'
1313
import type { UseTimingMeasurementHookConfiguration } from './types'
1414

File renamed without changes.

src/v3/visualizer/constants.ts renamed to src/visualizer/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SpanType } from '../spanTypes'
1+
import type { SpanType } from '../v3/spanTypes'
22

33
export const RESOURCES_TEXT = 'Show Resources'
44
export const MEASURES_TEXT = 'Show Measures'
File renamed without changes.

src/v3/visualizer/mapOperationForVisualization.ts renamed to src/visualizer/mapOperationForVisualization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { adjustTimestampBy } from '../ensureTimestamp'
1+
import { adjustTimestampBy } from '../v3/ensureTimestamp'
22
import type { SupportedSpanTypes } from './constants'
33
import type { MappedSpanAndAnnotation, RecordingInputFile } from './types'
44

src/v3/visualizer/types.ts renamed to src/visualizer/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
22
import type { IGardenTheme } from '@zendeskgarden/react-theming'
3-
import type { SpanAnnotation } from '../spanAnnotationTypes'
4-
import type { Attributes, Span, SpanBase } from '../spanTypes'
5-
import type { TraceRecording } from '../traceRecordingTypes'
6-
import type { Timestamp } from '../types'
3+
import type { SpanAnnotation } from '../v3/spanAnnotationTypes'
4+
import type { Attributes, Span, SpanBase } from '../v3/spanTypes'
5+
import type { TraceRecording } from '../v3/traceRecordingTypes'
6+
import type { Timestamp } from '../v3/types'
77
import type { SupportedSpanTypes } from './constants'
88

99
type DistributiveOmit<T, K extends keyof any> = T extends T ? Omit<T, K> : never

0 commit comments

Comments
 (0)