@yugabytedb/perf-advisor-ui 1.0.135 → 1.0.137

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.
@@ -160,16 +160,20 @@ export declare const ensureCompletePath: (appName: AppName, tab: InsightsTabs) =
160
160
  */
161
161
  export declare const buildPrimaryDashboardUrl: (appName: AppName, isQueryViewFromAnomaly?: boolean) => string;
162
162
  /**
163
- * Builds the YBM current URL by removing specific query parameters
164
- * @returns The YBM URL with cleaned query parameters
163
+ * Builds the primary-dashboard URL for embedded SPA hosts (YBA, YBM) by removing
164
+ * the query-drilldown search params from the current location. These hosts render
165
+ * the drilldown vs. dashboard from state and navigate client-side (history.push),
166
+ * so the URL is kept in sync without a full page reload.
167
+ * @returns The current URL with query-drilldown params/segments removed
165
168
  */
166
- export declare const buildYbmUrl: (isHistoricalQueryView: boolean, isQueryViewFromAnomalyView?: boolean, showStandaloneAnomalies?: boolean) => URL;
169
+ export declare const buildEmbeddedPrimaryDashboardUrl: (isHistoricalQueryView: boolean, isQueryViewFromAnomalyView?: boolean, showStandaloneAnomalies?: boolean) => URL;
167
170
  /**
168
- * Builds the YBM drilldown URL by removing query-specific path segments and parameters
169
- * This is used when navigating from query level (level 3) back to anomaly level (level 2)
170
- * @returns The YBM URL with query path and parameters removed
171
+ * Builds the anomaly-drilldown URL for embedded SPA hosts (YBA, YBM) by removing
172
+ * the query-specific path segment and params. Used when navigating from query
173
+ * level (level 3) back to anomaly level (level 2).
174
+ * @returns The current URL with query path and parameters removed
171
175
  */
172
- export declare const buildYbmDrilldownUrl: () => URL;
176
+ export declare const buildEmbeddedDrilldownUrl: () => URL;
173
177
  /**
174
178
  * Navigates back to the primary dashboard
175
179
  * @param appName - The application name (YBA, YBM, or Web)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yugabytedb/perf-advisor-ui",
3
- "version": "1.0.135",
3
+ "version": "1.0.137",
4
4
  "type": "module",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -35,7 +35,7 @@
35
35
  "@typescript-eslint/eslint-plugin": "6.21.0",
36
36
  "@typescript-eslint/parser": "6.21.0",
37
37
  "@vitejs/plugin-react": "5.2.0",
38
- "@yugabyte-ui-library/core": "2.0.25",
38
+ "@yugabyte-ui-library/core": "2.0.27",
39
39
  "eslint": "7.32.0",
40
40
  "eslint-config-prettier": "8.3.0",
41
41
  "eslint-plugin-import": "2.23.4",
@@ -81,7 +81,7 @@
81
81
  "@material-ui/core": "4.12.3",
82
82
  "@material-ui/icons": "4.11.2",
83
83
  "@material-ui/lab": "4.0.0-alpha.58",
84
- "@yugabyte-ui-library/core": "2.0.25",
84
+ "@yugabyte-ui-library/core": "2.0.27",
85
85
  "react": "17.0.2",
86
86
  "react-dom": "17.0.2",
87
87
  "react-query": "3.32.1"
@@ -90,6 +90,7 @@
90
90
  "build": "NODE_ENV=production vite build",
91
91
  "build:dev": "NODE_ENV=development vite build",
92
92
  "dev": "NODE_ENV=development vite build --watch",
93
+ "dev:prod": "NODE_ENV=production vite build --watch",
93
94
  "typecheck": "tsc --noEmit",
94
95
  "lint": "eslint src --ext .ts,.tsx,.js,.jsx",
95
96
  "lint:fix": "eslint src --ext .ts,.tsx,.js,.jsx --fix",