@parca/profile 0.16.418 → 0.16.419

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.16.419](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.418...@parca/profile@0.16.419) (2024-07-30)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## [0.16.418](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.417...@parca/profile@0.16.418) (2024-07-29)
7
11
 
8
12
  **Note:** Version bump only for package @parca/profile
@@ -1 +1 @@
1
- {"version":3,"file":"ViewSelector.d.ts","sourceRoot":"","sources":["../../src/ProfileView/ViewSelector.tsx"],"names":[],"mappings":"AAgBA,UAAU,KAAK;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,YAAY,uFASf,KAAK,KAAG,GAAG,CAAC,OAoFd,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ViewSelector.d.ts","sourceRoot":"","sources":["../../src/ProfileView/ViewSelector.tsx"],"names":[],"mappings":"AAeA,UAAU,KAAK;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,QAAA,MAAM,YAAY,uFASf,KAAK,KAAG,GAAG,CAAC,OA6Ed,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -12,9 +12,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
  import { Select, useParcaContext, useURLState } from '@parca/components';
15
- import { useUIFeatureFlag } from '@parca/hooks';
16
15
  const ViewSelector = ({ defaultValue, position, placeholderText, primary = false, addView = false, disabled = false, icon, id, }) => {
17
- const [callgraphEnabled] = useUIFeatureFlag('callgraph');
18
16
  const [dashboardItems = ['icicle'], setDashboardItems] = useURLState('dashboard_items', {
19
17
  alwaysReturnArray: true,
20
18
  });
@@ -26,12 +24,6 @@ const ViewSelector = ({ defaultValue, position, placeholderText, primary = false
26
24
  if (enableSourcesView === true) {
27
25
  allItems.push({ key: 'source', canBeSelected: false });
28
26
  }
29
- if (callgraphEnabled) {
30
- allItems.push({
31
- key: 'callgraph',
32
- canBeSelected: !dashboardItems.includes('callgraph'),
33
- });
34
- }
35
27
  const getOption = ({ key, supportingText, }) => {
36
28
  const title = _jsx("span", { className: "capitalize", children: key.replaceAll('-', ' ') });
37
29
  return {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.418",
3
+ "version": "0.16.419",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@headlessui/react": "^1.7.19",
7
7
  "@iconify/react": "^4.0.0",
8
8
  "@parca/client": "0.16.123",
9
- "@parca/components": "0.16.295",
9
+ "@parca/components": "0.16.296",
10
10
  "@parca/dynamicsize": "0.16.65",
11
11
  "@parca/hooks": "0.0.69",
12
12
  "@parca/icons": "0.16.70",
@@ -73,5 +73,5 @@
73
73
  "access": "public",
74
74
  "registry": "https://registry.npmjs.org/"
75
75
  },
76
- "gitHead": "cdd20a679a256fa717088741fb9065eaec99c2d3"
76
+ "gitHead": "56b6cf7ee9cc3e7421fcf676def25aafe7dd1ff4"
77
77
  }
@@ -12,7 +12,6 @@
12
12
  // limitations under the License.
13
13
 
14
14
  import {Select, useParcaContext, useURLState, type SelectElement} from '@parca/components';
15
- import {useUIFeatureFlag} from '@parca/hooks';
16
15
 
17
16
  interface Props {
18
17
  position: number;
@@ -35,7 +34,6 @@ const ViewSelector = ({
35
34
  icon,
36
35
  id,
37
36
  }: Props): JSX.Element => {
38
- const [callgraphEnabled] = useUIFeatureFlag('callgraph');
39
37
  const [dashboardItems = ['icicle'], setDashboardItems] = useURLState<string[]>(
40
38
  'dashboard_items',
41
39
  {
@@ -51,12 +49,6 @@ const ViewSelector = ({
51
49
  if (enableSourcesView === true) {
52
50
  allItems.push({key: 'source', canBeSelected: false});
53
51
  }
54
- if (callgraphEnabled) {
55
- allItems.push({
56
- key: 'callgraph',
57
- canBeSelected: !dashboardItems.includes('callgraph'),
58
- });
59
- }
60
52
 
61
53
  const getOption = ({
62
54
  key,