From e934428a1c8723039167dc64c09ac1e8ba5b89ae Mon Sep 17 00:00:00 2001 From: Andrew Thauer <6507159+andrewthauer@users.noreply.github.com> Date: Wed, 3 Feb 2021 10:54:44 -0500 Subject: [PATCH] make rollbar props optional & export extension point --- .../src/components/EntityPageRollbar/EntityPageRollbar.tsx | 2 +- plugins/rollbar/src/components/Router.tsx | 2 +- plugins/rollbar/src/index.ts | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/rollbar/src/components/EntityPageRollbar/EntityPageRollbar.tsx b/plugins/rollbar/src/components/EntityPageRollbar/EntityPageRollbar.tsx index b30874865f..07a39bd147 100644 --- a/plugins/rollbar/src/components/EntityPageRollbar/EntityPageRollbar.tsx +++ b/plugins/rollbar/src/components/EntityPageRollbar/EntityPageRollbar.tsx @@ -21,7 +21,7 @@ import { RollbarProject } from '../RollbarProject/RollbarProject'; type Props = { /** @deprecated The entity is now grabbed from context instead */ - entity: Entity; + entity?: Entity; }; export const EntityPageRollbar = (_props: Props) => { diff --git a/plugins/rollbar/src/components/Router.tsx b/plugins/rollbar/src/components/Router.tsx index 6d793d7426..7b95a4ec7c 100644 --- a/plugins/rollbar/src/components/Router.tsx +++ b/plugins/rollbar/src/components/Router.tsx @@ -28,7 +28,7 @@ export const isPluginApplicableToEntity = (entity: Entity) => type Props = { /** @deprecated The entity is now grabbed from context instead */ - entity: Entity; + entity?: Entity; }; export const Router = (_props: Props) => { diff --git a/plugins/rollbar/src/index.ts b/plugins/rollbar/src/index.ts index 52c0c35fd7..def2d99658 100644 --- a/plugins/rollbar/src/index.ts +++ b/plugins/rollbar/src/index.ts @@ -22,4 +22,8 @@ export { Router, } from './components/Router'; export { ROLLBAR_ANNOTATION } from './constants'; -export { rollbarPlugin as plugin, rollbarPlugin } from './plugin'; +export { + EntityRollbarContent, + rollbarPlugin as plugin, + rollbarPlugin, +} from './plugin';