|
1 |
| -export { |
2 |
| - // eslint-disable-next-line deprecation/deprecation |
3 |
| - Replay, |
4 |
| - replayIntegration, |
5 |
| -} from './integration'; |
| 1 | +// eslint-disable-next-line deprecation/deprecation |
| 2 | +import { Replay as InternalReplay, replayIntegration as internalReplayIntegration } from './integration'; |
| 3 | +import type { |
| 4 | + CanvasManagerInterface as InternalCanvasManagerInterface, |
| 5 | + CanvasManagerOptions as InternalCanvasManagerOptions, |
| 6 | + ReplayBreadcrumbFrame as InternalReplayBreadcrumbFrame, |
| 7 | + ReplayBreadcrumbFrameEvent as InternalReplayBreadcrumbFrameEvent, |
| 8 | + ReplayConfiguration as InternalReplayConfiguration, |
| 9 | + ReplayEventType as InternalReplayEventType, |
| 10 | + ReplayEventWithTime as InternalReplayEventWithTime, |
| 11 | + ReplayFrame as InternalReplayFrame, |
| 12 | + ReplayFrameEvent as InternalReplayFrameEvent, |
| 13 | + ReplayOptionFrameEvent as InternalReplayOptionFrameEvent, |
| 14 | + ReplaySpanFrame as InternalReplaySpanFrame, |
| 15 | + ReplaySpanFrameEvent as InternalReplaySpanFrameEvent, |
| 16 | +} from './types'; |
| 17 | +import { getReplay as internalGetReplay } from './util/getReplay'; |
| 18 | + |
| 19 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 20 | +const getReplay = internalGetReplay; |
| 21 | + |
| 22 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 23 | +const replayIntegration = internalReplayIntegration; |
| 24 | + |
| 25 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 26 | +// eslint-disable-next-line deprecation/deprecation |
| 27 | +class Replay extends InternalReplay {} |
| 28 | + |
| 29 | +// eslint-disable-next-line deprecation/deprecation |
| 30 | +export { replayIntegration, getReplay, Replay, internalReplayIntegration, internalGetReplay, InternalReplay }; |
| 31 | + |
| 32 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 33 | +type ReplayConfiguration = InternalReplayConfiguration; |
| 34 | + |
| 35 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 36 | +type ReplayEventType = InternalReplayEventType; |
| 37 | + |
| 38 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 39 | +type ReplayEventWithTime = InternalReplayEventWithTime; |
| 40 | + |
| 41 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 42 | +type ReplayBreadcrumbFrame = InternalReplayBreadcrumbFrame; |
| 43 | + |
| 44 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 45 | +type ReplayBreadcrumbFrameEvent = InternalReplayBreadcrumbFrameEvent; |
| 46 | + |
| 47 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 48 | +type ReplayOptionFrameEvent = InternalReplayOptionFrameEvent; |
| 49 | + |
| 50 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 51 | +type ReplayFrame = InternalReplayFrame; |
| 52 | + |
| 53 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 54 | +type ReplayFrameEvent = InternalReplayFrameEvent; |
| 55 | + |
| 56 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 57 | +type ReplaySpanFrame = InternalReplaySpanFrame; |
| 58 | + |
| 59 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 60 | +type ReplaySpanFrameEvent = InternalReplaySpanFrameEvent; |
| 61 | + |
| 62 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 63 | +type CanvasManagerInterface = InternalCanvasManagerInterface; |
| 64 | + |
| 65 | +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ |
| 66 | +type CanvasManagerOptions = InternalCanvasManagerOptions; |
6 | 67 |
|
7 | 68 | export type {
|
| 69 | + // eslint-disable-next-line deprecation/deprecation |
| 70 | + CanvasManagerInterface, |
| 71 | + // eslint-disable-next-line deprecation/deprecation |
| 72 | + CanvasManagerOptions, |
| 73 | + // eslint-disable-next-line deprecation/deprecation |
| 74 | + ReplayBreadcrumbFrame, |
| 75 | + // eslint-disable-next-line deprecation/deprecation |
| 76 | + ReplayBreadcrumbFrameEvent, |
| 77 | + // eslint-disable-next-line deprecation/deprecation |
8 | 78 | ReplayConfiguration,
|
| 79 | + // eslint-disable-next-line deprecation/deprecation |
9 | 80 | ReplayEventType,
|
| 81 | + // eslint-disable-next-line deprecation/deprecation |
10 | 82 | ReplayEventWithTime,
|
11 |
| - ReplayBreadcrumbFrame, |
12 |
| - ReplayBreadcrumbFrameEvent, |
13 |
| - ReplayOptionFrameEvent, |
| 83 | + // eslint-disable-next-line deprecation/deprecation |
14 | 84 | ReplayFrame,
|
| 85 | + // eslint-disable-next-line deprecation/deprecation |
15 | 86 | ReplayFrameEvent,
|
| 87 | + // eslint-disable-next-line deprecation/deprecation |
| 88 | + ReplayOptionFrameEvent, |
| 89 | + // eslint-disable-next-line deprecation/deprecation |
16 | 90 | ReplaySpanFrame,
|
| 91 | + // eslint-disable-next-line deprecation/deprecation |
17 | 92 | ReplaySpanFrameEvent,
|
18 |
| - CanvasManagerInterface, |
19 |
| - CanvasManagerOptions, |
20 |
| -} from './types'; |
21 |
| - |
22 |
| -export { getReplay } from './util/getReplay'; |
| 93 | + InternalCanvasManagerInterface, |
| 94 | + InternalCanvasManagerOptions, |
| 95 | + InternalReplayBreadcrumbFrame, |
| 96 | + InternalReplayBreadcrumbFrameEvent, |
| 97 | + InternalReplayConfiguration, |
| 98 | + InternalReplayEventType, |
| 99 | + InternalReplayEventWithTime, |
| 100 | + InternalReplayFrame, |
| 101 | + InternalReplayFrameEvent, |
| 102 | + InternalReplayOptionFrameEvent, |
| 103 | + InternalReplaySpanFrame, |
| 104 | + InternalReplaySpanFrameEvent, |
| 105 | +}; |
23 | 106 |
|
24 | 107 | // TODO (v8): Remove deprecated types
|
25 | 108 | export * from './types/deprecated';
|
0 commit comments