diff --git a/packages/browser/src/index.bundle.feedback.ts b/packages/browser/src/index.bundle.feedback.ts index 7aab6485d254..48d7b4aecf13 100644 --- a/packages/browser/src/index.bundle.feedback.ts +++ b/packages/browser/src/index.bundle.feedback.ts @@ -1,6 +1,6 @@ // This is exported so the loader does not fail when switching off Replay/Tracing import { Feedback } from '@sentry-internal/feedback'; -import { BrowserTracing, Replay, addTracingExtensions } from '@sentry-internal/integration-shims'; +import { BrowserTracing, Replay, ReplayCanvas, addTracingExtensions } from '@sentry-internal/integration-shims'; import * as Sentry from './index.bundle.base'; @@ -10,5 +10,5 @@ Sentry.Integrations.Replay = Replay; Sentry.Integrations.BrowserTracing = BrowserTracing; export * from './index.bundle.base'; -export { BrowserTracing, addTracingExtensions, Replay, Feedback }; +export { BrowserTracing, addTracingExtensions, Replay, ReplayCanvas, Feedback }; // Note: We do not export a shim for `Span` here, as that is quite complex and would blow up the bundle diff --git a/packages/browser/src/index.bundle.replay.ts b/packages/browser/src/index.bundle.replay.ts index 0b556bc71b8e..e1fe19cda06c 100644 --- a/packages/browser/src/index.bundle.replay.ts +++ b/packages/browser/src/index.bundle.replay.ts @@ -1,5 +1,6 @@ // This is exported so the loader does not fail when switching off Replay/Tracing import { BrowserTracing, Feedback, addTracingExtensions } from '@sentry-internal/integration-shims'; +import { ReplayCanvas } from '@sentry-internal/replay-canvas'; import { Replay } from '@sentry/replay'; import * as Sentry from './index.bundle.base'; @@ -10,5 +11,5 @@ Sentry.Integrations.Replay = Replay; Sentry.Integrations.BrowserTracing = BrowserTracing; export * from './index.bundle.base'; -export { BrowserTracing, addTracingExtensions, Replay, Feedback }; +export { BrowserTracing, addTracingExtensions, Replay, ReplayCanvas, Feedback }; // Note: We do not export a shim for `Span` here, as that is quite complex and would blow up the bundle diff --git a/packages/browser/src/index.bundle.tracing.replay.feedback.ts b/packages/browser/src/index.bundle.tracing.replay.feedback.ts index 5558703f7703..04dc02a8e946 100644 --- a/packages/browser/src/index.bundle.tracing.replay.feedback.ts +++ b/packages/browser/src/index.bundle.tracing.replay.feedback.ts @@ -1,4 +1,5 @@ import { Feedback } from '@sentry-internal/feedback'; +import { ReplayCanvas } from '@sentry-internal/replay-canvas'; import { BrowserTracing, Span, addExtensionMethods } from '@sentry-internal/tracing'; import { Replay } from '@sentry/replay'; @@ -14,5 +15,5 @@ Sentry.Integrations.BrowserTracing = BrowserTracing; // We are patching the global object with our hub extension methods addExtensionMethods(); -export { Feedback, Replay, BrowserTracing, Span, addExtensionMethods }; +export { Feedback, Replay, ReplayCanvas, BrowserTracing, Span, addExtensionMethods }; export * from './index.bundle.base'; diff --git a/packages/browser/src/index.bundle.tracing.replay.ts b/packages/browser/src/index.bundle.tracing.replay.ts index 0e7aa1ec19bc..683d1509f9d8 100644 --- a/packages/browser/src/index.bundle.tracing.replay.ts +++ b/packages/browser/src/index.bundle.tracing.replay.ts @@ -1,4 +1,5 @@ import { Feedback } from '@sentry-internal/integration-shims'; +import { ReplayCanvas } from '@sentry-internal/replay-canvas'; import { BrowserTracing, Span, addExtensionMethods } from '@sentry-internal/tracing'; import { Replay } from '@sentry/replay'; @@ -14,5 +15,5 @@ Sentry.Integrations.BrowserTracing = BrowserTracing; // We are patching the global object with our hub extension methods addExtensionMethods(); -export { Feedback, Replay, BrowserTracing, Span, addExtensionMethods }; +export { Feedback, Replay, ReplayCanvas, BrowserTracing, Span, addExtensionMethods }; export * from './index.bundle.base'; diff --git a/packages/browser/src/index.bundle.tracing.ts b/packages/browser/src/index.bundle.tracing.ts index 22b33962e860..0a958c634974 100644 --- a/packages/browser/src/index.bundle.tracing.ts +++ b/packages/browser/src/index.bundle.tracing.ts @@ -1,5 +1,5 @@ // This is exported so the loader does not fail when switching off Replay -import { Feedback, Replay } from '@sentry-internal/integration-shims'; +import { Feedback, Replay, ReplayCanvas } from '@sentry-internal/integration-shims'; import { BrowserTracing, Span, addExtensionMethods } from '@sentry-internal/tracing'; import * as Sentry from './index.bundle.base'; @@ -14,5 +14,5 @@ Sentry.Integrations.BrowserTracing = BrowserTracing; // We are patching the global object with our hub extension methods addExtensionMethods(); -export { Feedback, Replay, BrowserTracing, Span, addExtensionMethods }; +export { Feedback, Replay, ReplayCanvas, BrowserTracing, Span, addExtensionMethods }; export * from './index.bundle.base'; diff --git a/packages/browser/src/index.bundle.ts b/packages/browser/src/index.bundle.ts index a2541ceadda1..f479757db105 100644 --- a/packages/browser/src/index.bundle.ts +++ b/packages/browser/src/index.bundle.ts @@ -1,5 +1,11 @@ // This is exported so the loader does not fail when switching off Replay/Tracing -import { BrowserTracing, Feedback, Replay, addTracingExtensions } from '@sentry-internal/integration-shims'; +import { + BrowserTracing, + Feedback, + Replay, + ReplayCanvas, + addTracingExtensions, +} from '@sentry-internal/integration-shims'; import * as Sentry from './index.bundle.base'; @@ -9,5 +15,5 @@ Sentry.Integrations.Replay = Replay; Sentry.Integrations.BrowserTracing = BrowserTracing; export * from './index.bundle.base'; -export { BrowserTracing, addTracingExtensions, Replay, Feedback }; +export { BrowserTracing, addTracingExtensions, Replay, ReplayCanvas, Feedback }; // Note: We do not export a shim for `Span` here, as that is quite complex and would blow up the bundle diff --git a/packages/browser/test/unit/index.bundle.feedback.test.ts b/packages/browser/test/unit/index.bundle.feedback.test.ts index 4c5f26e5f313..03bb93047a5c 100644 --- a/packages/browser/test/unit/index.bundle.feedback.test.ts +++ b/packages/browser/test/unit/index.bundle.feedback.test.ts @@ -1,4 +1,8 @@ -import { BrowserTracing as BrowserTracingShim, Replay as ReplayShim } from '@sentry-internal/integration-shims'; +import { + BrowserTracing as BrowserTracingShim, + Replay as ReplayShim, + ReplayCanvas as ReplayCanvasShim, +} from '@sentry-internal/integration-shims'; import { Feedback } from '@sentry/browser'; import * as TracingReplayBundle from '../../src/index.bundle.feedback'; @@ -16,6 +20,7 @@ describe('index.bundle.feedback', () => { expect(TracingReplayBundle.Integrations.Replay).toBe(ReplayShim); expect(TracingReplayBundle.Replay).toBe(ReplayShim); + expect(TracingReplayBundle.ReplayCanvas).toBe(ReplayCanvasShim); expect(TracingReplayBundle.Integrations.BrowserTracing).toBe(BrowserTracingShim); expect(TracingReplayBundle.BrowserTracing).toBe(BrowserTracingShim); diff --git a/packages/browser/test/unit/index.bundle.replay.test.ts b/packages/browser/test/unit/index.bundle.replay.test.ts index b14eb70f6330..30eb69ee27cd 100644 --- a/packages/browser/test/unit/index.bundle.replay.test.ts +++ b/packages/browser/test/unit/index.bundle.replay.test.ts @@ -1,5 +1,6 @@ import { BrowserTracing as BrowserTracingShim, Feedback as FeedbackShim } from '@sentry-internal/integration-shims'; import { Replay } from '@sentry/browser'; +import { ReplayCanvas } from '@sentry/browser'; import * as TracingReplayBundle from '../../src/index.bundle.replay'; @@ -16,6 +17,7 @@ describe('index.bundle.replay', () => { expect(TracingReplayBundle.Integrations.Replay).toBe(Replay); expect(TracingReplayBundle.Replay).toBe(Replay); + expect(TracingReplayBundle.ReplayCanvas).toBe(ReplayCanvas); expect(TracingReplayBundle.Integrations.BrowserTracing).toBe(BrowserTracingShim); expect(TracingReplayBundle.BrowserTracing).toBe(BrowserTracingShim); diff --git a/packages/browser/test/unit/index.bundle.test.ts b/packages/browser/test/unit/index.bundle.test.ts index f61987732858..08cbd86145a4 100644 --- a/packages/browser/test/unit/index.bundle.test.ts +++ b/packages/browser/test/unit/index.bundle.test.ts @@ -2,6 +2,7 @@ import { BrowserTracing as BrowserTracingShim, Feedback as FeedbackShim, Replay as ReplayShim, + ReplayCanvas as ReplayCanvasShim, } from '@sentry-internal/integration-shims'; import * as TracingBundle from '../../src/index.bundle'; @@ -19,6 +20,7 @@ describe('index.bundle', () => { expect(TracingBundle.Integrations.Replay).toBe(ReplayShim); expect(TracingBundle.Replay).toBe(ReplayShim); + expect(TracingBundle.ReplayCanvas).toBe(ReplayCanvasShim); expect(TracingBundle.Integrations.BrowserTracing).toBe(BrowserTracingShim); expect(TracingBundle.BrowserTracing).toBe(BrowserTracingShim); diff --git a/packages/browser/test/unit/index.bundle.tracing.replay.feedback.test.ts b/packages/browser/test/unit/index.bundle.tracing.replay.feedback.test.ts index 0bd50453da43..9f9076374b1e 100644 --- a/packages/browser/test/unit/index.bundle.tracing.replay.feedback.test.ts +++ b/packages/browser/test/unit/index.bundle.tracing.replay.feedback.test.ts @@ -1,5 +1,5 @@ import { BrowserTracing } from '@sentry-internal/tracing'; -import { Feedback, Replay } from '@sentry/browser'; +import { Feedback, Replay, ReplayCanvas } from '@sentry/browser'; import * as TracingReplayFeedbackBundle from '../../src/index.bundle.tracing.replay.feedback'; @@ -16,6 +16,7 @@ describe('index.bundle.tracing.replay.feedback', () => { expect(TracingReplayFeedbackBundle.Integrations.Replay).toBe(Replay); expect(TracingReplayFeedbackBundle.Replay).toBe(Replay); + expect(TracingReplayFeedbackBundle.ReplayCanvas).toBe(ReplayCanvas); expect(TracingReplayFeedbackBundle.Integrations.BrowserTracing).toBe(BrowserTracing); expect(TracingReplayFeedbackBundle.BrowserTracing).toBe(BrowserTracing); diff --git a/packages/browser/test/unit/index.bundle.tracing.replay.test.ts b/packages/browser/test/unit/index.bundle.tracing.replay.test.ts index 4c8af2130a3b..c016367f2bf6 100644 --- a/packages/browser/test/unit/index.bundle.tracing.replay.test.ts +++ b/packages/browser/test/unit/index.bundle.tracing.replay.test.ts @@ -1,6 +1,7 @@ import { Feedback as FeedbackShim } from '@sentry-internal/integration-shims'; import { BrowserTracing } from '@sentry-internal/tracing'; import { Replay } from '@sentry/browser'; +import { ReplayCanvas } from '@sentry/browser'; import * as TracingReplayBundle from '../../src/index.bundle.tracing.replay'; @@ -17,6 +18,7 @@ describe('index.bundle.tracing.replay', () => { expect(TracingReplayBundle.Integrations.Replay).toBe(Replay); expect(TracingReplayBundle.Replay).toBe(Replay); + expect(TracingReplayBundle.ReplayCanvas).toBe(ReplayCanvas); expect(TracingReplayBundle.Integrations.BrowserTracing).toBe(BrowserTracing); expect(TracingReplayBundle.BrowserTracing).toBe(BrowserTracing); diff --git a/packages/browser/test/unit/index.bundle.tracing.test.ts b/packages/browser/test/unit/index.bundle.tracing.test.ts index b439dece8c6f..bce177ce0d72 100644 --- a/packages/browser/test/unit/index.bundle.tracing.test.ts +++ b/packages/browser/test/unit/index.bundle.tracing.test.ts @@ -1,4 +1,8 @@ -import { Feedback as FeedbackShim, Replay as ReplayShim } from '@sentry-internal/integration-shims'; +import { + Feedback as FeedbackShim, + Replay as ReplayShim, + ReplayCanvas as ReplayCanvasShim, +} from '@sentry-internal/integration-shims'; import { BrowserTracing } from '@sentry-internal/tracing'; import * as TracingBundle from '../../src/index.bundle.tracing'; @@ -16,6 +20,7 @@ describe('index.bundle.tracing', () => { expect(TracingBundle.Integrations.Replay).toBe(ReplayShim); expect(TracingBundle.Replay).toBe(ReplayShim); + expect(TracingBundle.ReplayCanvas).toBe(ReplayCanvasShim); expect(TracingBundle.Integrations.BrowserTracing).toBe(BrowserTracing); expect(TracingBundle.BrowserTracing).toBe(BrowserTracing); diff --git a/packages/integration-shims/src/index.ts b/packages/integration-shims/src/index.ts index 410a4a31d9c8..31958781ac44 100644 --- a/packages/integration-shims/src/index.ts +++ b/packages/integration-shims/src/index.ts @@ -1,3 +1,4 @@ export { Feedback } from './Feedback'; export { Replay } from './Replay'; +export { ReplayCanvas } from './ReplayCanvas'; export { BrowserTracing, addTracingExtensions } from './BrowserTracing';