@xpert-ai/plugin-live-dashboard 0.6.1 → 0.6.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/plugin-live-dashboard",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "level": "system",
5
5
  "artifactNamespace": "live_dashboard",
6
6
  "sandboxActions": "./dist/sandbox-actions/action.json",
@@ -83,7 +83,9 @@ let DashboardViewProvider = class DashboardViewProvider {
83
83
  const params = dashboard_navigation_1.dashboardNavigationSchema.parse(query);
84
84
  const access = await this.service.access(context);
85
85
  const currentProject = await this.projects.current(context);
86
- const mode = params.newDashboard ? 'draft' : params.mode ?? (access.canReadDraft ? 'draft' : 'published');
86
+ // Explicit revision/version selections use the same precedence as openDocument.
87
+ const mode = params.newDashboard || params.draftRevision !== undefined ? 'draft'
88
+ : params.versionId ? 'published' : params.mode ?? (access.canReadDraft ? 'draft' : 'published');
87
89
  if (mode === 'draft' && !access.canReadDraft)
88
90
  throw new common_1.ForbiddenException('DASHBOARD_DRAFT_ACCESS_DENIED');
89
91
  const page = await this.service.listPage(context, params.page, params.pageSize);