@parca/profile 0.16.277 → 0.16.278
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 +4 -0
- package/dist/MetricsGraph/MetricsContextMenu/index.js +2 -2
- package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.js +1 -2
- package/package.json +3 -3
- package/src/MetricsGraph/MetricsContextMenu/index.tsx +2 -2
- package/src/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.tsx +1 -2
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.278](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.277...@parca/profile@0.16.278) (2023-10-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
6
10
|
## [0.16.277](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.276...@parca/profile@0.16.277) (2023-10-16)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -13,9 +13,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { Icon } from '@iconify/react';
|
|
15
15
|
import { Item, Menu, Submenu } from 'react-contexify';
|
|
16
|
-
import {
|
|
16
|
+
import { useParcaContext } from '@parca/components';
|
|
17
17
|
const MetricsContextMenu = ({ menuId, onAddLabelMatcher, highlighted, trackVisibility, }) => {
|
|
18
|
-
const isDarkMode =
|
|
18
|
+
const { isDarkMode } = useParcaContext();
|
|
19
19
|
const labels = highlighted?.labels.filter((label) => label.name !== '__name__');
|
|
20
20
|
const handleFocusOnSingleSeries = () => {
|
|
21
21
|
const labelsToAdd = labels?.map((label) => ({
|
|
@@ -16,12 +16,11 @@ import { Item, Menu, Separator, Submenu } from 'react-contexify';
|
|
|
16
16
|
import { Tooltip } from 'react-tooltip';
|
|
17
17
|
import { useParcaContext } from '@parca/components';
|
|
18
18
|
import { USER_PREFERENCES, useUserPreference } from '@parca/hooks';
|
|
19
|
-
import { selectDarkMode, useAppSelector } from '@parca/store';
|
|
20
19
|
import { useGraphTooltip } from '../../GraphTooltipArrow/useGraphTooltip';
|
|
21
20
|
import { useGraphTooltipMetaInfo } from '../../GraphTooltipArrow/useGraphTooltipMetaInfo';
|
|
22
21
|
import { hexifyAddress, truncateString } from '../../utils';
|
|
23
22
|
const ContextMenu = ({ menuId, table, unit, total, totalUnfiltered, row, level, navigateTo, trackVisibility, curPath, setCurPath, hideMenu, }) => {
|
|
24
|
-
const isDarkMode =
|
|
23
|
+
const { isDarkMode } = useParcaContext();
|
|
25
24
|
const { enableSourcesView } = useParcaContext();
|
|
26
25
|
const [isGraphTooltipDocked, setIsDocked] = useUserPreference(USER_PREFERENCES.GRAPH_METAINFO_DOCKED.key);
|
|
27
26
|
const contextMenuData = useGraphTooltip({
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.278",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@parca/client": "^0.16.93",
|
|
7
|
-
"@parca/components": "^0.16.
|
|
7
|
+
"@parca/components": "^0.16.211",
|
|
8
8
|
"@parca/dynamicsize": "^0.16.59",
|
|
9
9
|
"@parca/hooks": "^0.0.30",
|
|
10
10
|
"@parca/parser": "^0.16.63",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public",
|
|
51
51
|
"registry": "https://registry.npmjs.org/"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "37a327047d5ba77bc33e6a9303b0039c825a3a30"
|
|
54
54
|
}
|
|
@@ -15,7 +15,7 @@ import {Icon} from '@iconify/react';
|
|
|
15
15
|
import {Item, Menu, Submenu} from 'react-contexify';
|
|
16
16
|
|
|
17
17
|
import {Label} from '@parca/client';
|
|
18
|
-
import {
|
|
18
|
+
import {useParcaContext} from '@parca/components';
|
|
19
19
|
|
|
20
20
|
import {HighlightedSeries} from '../';
|
|
21
21
|
|
|
@@ -34,7 +34,7 @@ const MetricsContextMenu = ({
|
|
|
34
34
|
highlighted,
|
|
35
35
|
trackVisibility,
|
|
36
36
|
}: MetricsContextMenuProps): JSX.Element => {
|
|
37
|
-
const isDarkMode =
|
|
37
|
+
const {isDarkMode} = useParcaContext();
|
|
38
38
|
const labels = highlighted?.labels.filter((label: Label) => label.name !== '__name__');
|
|
39
39
|
|
|
40
40
|
const handleFocusOnSingleSeries = (): void => {
|
|
@@ -18,7 +18,6 @@ import {Tooltip} from 'react-tooltip';
|
|
|
18
18
|
|
|
19
19
|
import {useParcaContext} from '@parca/components';
|
|
20
20
|
import {USER_PREFERENCES, useUserPreference} from '@parca/hooks';
|
|
21
|
-
import {selectDarkMode, useAppSelector} from '@parca/store';
|
|
22
21
|
import {type NavigateFunction} from '@parca/utilities';
|
|
23
22
|
|
|
24
23
|
import {useGraphTooltip} from '../../GraphTooltipArrow/useGraphTooltip';
|
|
@@ -54,7 +53,7 @@ const ContextMenu = ({
|
|
|
54
53
|
setCurPath,
|
|
55
54
|
hideMenu,
|
|
56
55
|
}: ContextMenuProps): JSX.Element => {
|
|
57
|
-
const isDarkMode =
|
|
56
|
+
const {isDarkMode} = useParcaContext();
|
|
58
57
|
const {enableSourcesView} = useParcaContext();
|
|
59
58
|
const [isGraphTooltipDocked, setIsDocked] = useUserPreference<boolean>(
|
|
60
59
|
USER_PREFERENCES.GRAPH_METAINFO_DOCKED.key
|