@sentry/junior-dashboard 0.74.1 → 0.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { type JuniorPluginRegistration } from "@sentry/junior-plugin-api";
1
+ import { type PluginRegistration } from "@sentry/junior-plugin-api";
2
2
  import { type JuniorDashboardOptions } from "./app";
3
3
  export { createDashboardApp, type JuniorDashboardOptions } from "./app";
4
4
  export interface JuniorDashboardPluginOptions extends JuniorDashboardOptions {
5
5
  disabled?: boolean;
6
6
  }
7
7
  /** Register dashboard routes and Slack footer links through plugin hooks. */
8
- export declare function juniorDashboardPlugin(options?: JuniorDashboardPluginOptions): JuniorPluginRegistration;
8
+ export declare function juniorDashboardPlugin(options?: JuniorDashboardPluginOptions): PluginRegistration;
package/dist/index.js CHANGED
@@ -2103,7 +2103,6 @@ function dashboardRoutes(options) {
2103
2103
  }
2104
2104
  function juniorDashboardPlugin(options = {}) {
2105
2105
  return defineJuniorPlugin({
2106
- name: "dashboard",
2107
2106
  manifest: {
2108
2107
  name: "dashboard",
2109
2108
  displayName: "Dashboard",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior-dashboard",
3
- "version": "0.74.1",
3
+ "version": "0.75.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -41,8 +41,8 @@
41
41
  "react-router": "^7.16.0",
42
42
  "recharts": "^3.8.1",
43
43
  "shiki": "4.1.0",
44
- "@sentry/junior": "0.74.1",
45
- "@sentry/junior-plugin-api": "0.74.1"
44
+ "@sentry/junior": "0.75.0",
45
+ "@sentry/junior-plugin-api": "0.75.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tailwindcss/cli": "^4.3.0",
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
- type AgentPluginRoute,
2
+ type PluginRoute,
3
3
  defineJuniorPlugin,
4
- type JuniorPluginRegistration,
4
+ type PluginRegistration,
5
5
  } from "@sentry/junior-plugin-api";
6
6
  import { buildDashboardConversationURL, normalizeDashboardPath } from "./url";
7
7
  import { createDashboardApp, type JuniorDashboardOptions } from "./app";
@@ -36,9 +36,7 @@ function dashboardRoutePaths(options: JuniorDashboardPluginOptions): string[] {
36
36
  ];
37
37
  }
38
38
 
39
- function dashboardRoutes(
40
- options: JuniorDashboardPluginOptions,
41
- ): AgentPluginRoute[] {
39
+ function dashboardRoutes(options: JuniorDashboardPluginOptions): PluginRoute[] {
42
40
  let app: ReturnType<typeof createDashboardApp> | undefined;
43
41
  const fetch = (request: Request) => {
44
42
  app ??= createDashboardApp(options);
@@ -54,9 +52,8 @@ function dashboardRoutes(
54
52
  /** Register dashboard routes and Slack footer links through plugin hooks. */
55
53
  export function juniorDashboardPlugin(
56
54
  options: JuniorDashboardPluginOptions = {},
57
- ): JuniorPluginRegistration {
55
+ ): PluginRegistration {
58
56
  return defineJuniorPlugin({
59
- name: "dashboard",
60
57
  manifest: {
61
58
  name: "dashboard",
62
59
  displayName: "Dashboard",