@parca/profile 0.16.345 → 0.16.346

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/Callgraph/index.d.ts +0 -1
  3. package/dist/GraphTooltip/ExpandOnHoverValue.d.ts +0 -1
  4. package/dist/GraphTooltip/index.d.ts +0 -1
  5. package/dist/GraphTooltip/index.js +1 -2
  6. package/dist/GraphTooltipArrow/DockedGraphTooltip/index.d.ts +0 -1
  7. package/dist/GraphTooltipArrow/ExpandOnHoverValue.d.ts +0 -1
  8. package/dist/MatchersInput/SuggestionItem.d.ts +0 -1
  9. package/dist/MatchersInput/SuggestionsList.d.ts +0 -1
  10. package/dist/MatchersInput/index.d.ts +0 -1
  11. package/dist/MetricsCircle/index.d.ts +0 -1
  12. package/dist/MetricsGraph/MetricsContextMenu/index.d.ts +0 -1
  13. package/dist/MetricsGraph/MetricsInfoPanel/index.d.ts +0 -1
  14. package/dist/MetricsGraph/MetricsTooltip/index.d.ts +0 -1
  15. package/dist/MetricsGraph/index.d.ts +0 -1
  16. package/dist/MetricsSeries/index.d.ts +0 -1
  17. package/dist/ProfileExplorer/ProfileExplorerCompare.d.ts +0 -1
  18. package/dist/ProfileExplorer/ProfileExplorerSingle.d.ts +0 -1
  19. package/dist/ProfileExplorer/index.d.ts +0 -1
  20. package/dist/ProfileIcicleGraph/ActionButtons/GroupByDropdown.d.ts +0 -1
  21. package/dist/ProfileIcicleGraph/ActionButtons/RuntimeFilterDropdown.d.ts +0 -1
  22. package/dist/ProfileIcicleGraph/ActionButtons/SortBySelect.d.ts +0 -1
  23. package/dist/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.d.ts +0 -1
  24. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.d.ts +0 -1
  25. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.js +1 -1
  26. package/dist/ProfileMetricsGraph/index.d.ts +0 -1
  27. package/dist/ProfileSelector/CompareButton.d.ts +0 -1
  28. package/dist/ProfileSelector/index.d.ts +0 -1
  29. package/dist/ProfileSource.d.ts +0 -1
  30. package/dist/ProfileTypeSelector/index.d.ts +0 -1
  31. package/dist/ProfileView/FilterByFunctionButton.d.ts +0 -1
  32. package/dist/ProfileView/ViewSelector.d.ts +0 -1
  33. package/dist/ProfileView/index.d.ts +0 -1
  34. package/dist/ProfileViewWithData.d.ts +0 -1
  35. package/dist/SourceView/Highlighter.d.ts +0 -1
  36. package/dist/SourceView/LineNo.d.ts +0 -1
  37. package/dist/Table/ColumnsVisibility.d.ts +0 -1
  38. package/dist/components/DiffLegend.d.ts +0 -1
  39. package/dist/components/ProfileShareButton/ResultBox.d.ts +0 -1
  40. package/dist/components/ProfileShareButton/ResultBox.js +1 -2
  41. package/dist/components/ProfileShareButton/index.d.ts +0 -1
  42. package/dist/useGrpcQuery/index.d.ts +1 -1
  43. package/package.json +4 -6
  44. package/src/GraphTooltip/index.tsx +1 -2
  45. package/src/components/ProfileShareButton/ResultBox.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.346](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.345...@parca/profile@0.16.346) (2024-02-22)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## [0.16.345](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.344...@parca/profile@0.16.345) (2024-02-22)
7
11
 
8
12
  **Note:** Version bump only for package @parca/profile
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Callgraph as CallgraphType } from '@parca/client';
3
2
  export interface Props {
4
3
  data: CallgraphType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface Props {
3
2
  value: string | number | undefined;
4
3
  displayValue?: string | number | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CallgraphNode, CallgraphNodeMeta, FlamegraphNode, FlamegraphNodeMeta, FlamegraphRootNode } from '@parca/client';
3
2
  import { Location, Mapping, Function as ParcaFunction } from '@parca/client/dist/parca/metastore/v1alpha1/metastore';
4
3
  interface ExtendedCallgraphNodeMeta extends CallgraphNodeMeta {
@@ -13,9 +13,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
13
13
  // limitations under the License.
14
14
  import { useEffect, useMemo, useState } from 'react';
15
15
  import { pointer } from 'd3-selection';
16
- import { CopyToClipboard } from 'react-copy-to-clipboard';
17
16
  import { usePopper } from 'react-popper';
18
- import { useKeyDown } from '@parca/components';
17
+ import { CopyToClipboard, useKeyDown } from '@parca/components';
19
18
  import { selectHoveringNode, useAppSelector } from '@parca/store';
20
19
  import { divide, getLastItem, valueFormatter } from '@parca/utilities';
21
20
  import { hexifyAddress, truncateString, truncateStringReverse } from '../';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Table } from 'apache-arrow';
3
2
  interface Props {
4
3
  table: Table<any>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface Props {
3
2
  value: string | number | undefined;
4
3
  displayValue?: string | number | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface Props {
3
2
  isHighlighted: boolean;
4
3
  onHighlight: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare class Suggestion {
3
2
  type: string;
4
3
  typeahead: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LabelsResponse, QueryServiceClient } from '@parca/client';
3
2
  import { Query } from '@parca/parser';
4
3
  interface MatchersInputProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface MetricsCircleProps {
3
2
  cx: number;
4
3
  cy: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { HighlightedSeries } from '../';
3
2
  interface MetricsContextMenuProps {
4
3
  menuId: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface MetricsInfoPanelProps {
3
2
  isInfoPanelOpen: boolean;
4
3
  onInfoIconClick: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { HighlightedSeries } from '../';
3
2
  interface Props {
4
3
  x: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Label, MetricsSeries as MetricsSeriesPb } from '@parca/client';
3
2
  import { DateTimeRange } from '@parca/components';
4
3
  import { MergedProfileSelection } from '..';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as d3 from 'd3';
3
2
  interface MetricsSeriesProps {
4
3
  data: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { QueryServiceClient } from '@parca/client';
3
2
  import type { NavigateFunction } from '@parca/utilities';
4
3
  import { ProfileSelection } from '..';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { QueryServiceClient } from '@parca/client';
3
2
  import type { NavigateFunction } from '@parca/utilities';
4
3
  import { ProfileSelection } from '..';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { QueryServiceClient } from '@parca/client';
3
2
  import { type NavigateFunction } from '@parca/utilities';
4
3
  interface ProfileExplorerProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const GroupByDropdown: ({ groupBy, toggleGroupBy, }: {
3
2
  groupBy: string[];
4
3
  toggleGroupBy: (key: string) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const RuntimeFilterDropdown: ({ showRuntimeRuby, toggleShowRuntimeRuby, showRuntimePython, toggleShowRuntimePython, showInterpretedOnly, toggleShowInterpretedOnly, }: {
3
2
  showRuntimeRuby: boolean;
4
3
  toggleShowRuntimeRuby: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SortBySelect: ({ sortBy, setSortBy, compareMode, }: {
3
2
  sortBy: string;
4
3
  setSortBy: (key: string) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { NavigateFunction } from '@parca/utilities';
3
2
  interface Props {
4
3
  navigateTo?: NavigateFunction;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Table } from 'apache-arrow';
3
2
  import { type NavigateFunction } from '@parca/utilities';
4
3
  interface ContextMenuProps {
@@ -62,7 +62,7 @@ const ContextMenu = ({ menuId, table, unit, total, totalUnfiltered, row, level,
62
62
  {
63
63
  id: 'Function system name',
64
64
  value: functionSystemName === functionName ? '' : functionSystemName,
65
- },
65
+ }, // an empty string will be filtered out below
66
66
  { id: 'Cumulative', value: cumulativeText ?? '' },
67
67
  { id: 'Diff', value: diff !== 0n ? diffText : '' },
68
68
  {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RpcError } from '@protobuf-ts/runtime-rpc';
3
2
  import { Label, QueryRangeResponse, QueryServiceClient } from '@parca/client';
4
3
  import { DateTimeRange } from '@parca/components';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const CompareButton: ({ disabled, onClick, }: {
3
2
  disabled: boolean;
4
3
  onClick: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RpcError } from '@protobuf-ts/runtime-rpc';
3
2
  import { ProfileTypesResponse, QueryServiceClient } from '@parca/client';
4
3
  import { ProfileSelection } from '..';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Label, ProfileDiffSelection, QueryRequest } from '@parca/client';
3
2
  import { ProfileType, Query } from '@parca/parser';
4
3
  export interface ProfileSource {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RpcError } from '@protobuf-ts/runtime-rpc';
3
2
  import { ProfileType, ProfileTypesResponse } from '@parca/client';
4
3
  import { type SelectElement } from '@parca/components';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { NavigateFunction } from '@parca/utilities';
3
2
  declare const FilterByFunctionButton: ({ navigateTo, }: {
4
3
  navigateTo: NavigateFunction | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { NavigateFunction } from '@parca/utilities';
3
2
  interface Props {
4
3
  position: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Callgraph as CallgraphType, Flamegraph, FlamegraphArrow, QueryServiceClient, Source, TableArrow, Top } from '@parca/client';
3
2
  import { ProfileSource } from '../ProfileSource';
4
3
  type NavigateFunction = (path: string, queryParams: any, options?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { QueryServiceClient } from '@parca/client';
3
2
  import { type NavigateFunction } from '@parca/utilities';
4
3
  import { ProfileSource } from './ProfileSource';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Vector } from 'apache-arrow';
3
2
  import { type createElementProps } from 'react-syntax-highlighter';
4
3
  interface RendererProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface Props {
3
2
  value: number;
4
3
  isCurrent?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type VisibilityState } from '@tanstack/react-table';
3
2
  import { ColumnDef } from '.';
4
3
  declare const ColumnsVisibility: ({ columns, visibility, setVisibility, }: {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DiffLegend: () => JSX.Element;
3
2
  export default DiffLegend;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface Props {
3
2
  value: string;
4
3
  className?: string;
@@ -14,8 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  import { useState } from 'react';
15
15
  import { Icon } from '@iconify/react';
16
16
  import cx from 'classnames';
17
- import { CopyToClipboard } from 'react-copy-to-clipboard';
18
- import { Button } from '@parca/components';
17
+ import { Button, CopyToClipboard } from '@parca/components';
19
18
  let timeoutHandle = null;
20
19
  const ResultBox = ({ value, className = '' }) => {
21
20
  const [isCopied, setIsCopied] = useState(false);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { QueryRequest, QueryServiceClient } from '@parca/client';
3
2
  interface Props {
4
3
  queryRequest: QueryRequest;
@@ -8,5 +8,5 @@ interface Props<IRes> {
8
8
  retry?: number | boolean;
9
9
  };
10
10
  }
11
- declare const useGrpcQuery: <IRes>({ key, queryFn, options: { enabled, staleTime, retry }, }: Props<IRes>) => UseQueryResult<IRes, unknown>;
11
+ declare const useGrpcQuery: <IRes>({ key, queryFn, options: { enabled, staleTime, retry }, }: Props<IRes>) => UseQueryResult<IRes>;
12
12
  export default useGrpcQuery;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.345",
3
+ "version": "0.16.346",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@parca/client": "^0.16.104",
7
- "@parca/components": "^0.16.254",
7
+ "@parca/components": "^0.16.255",
8
8
  "@parca/dynamicsize": "^0.16.60",
9
9
  "@parca/hooks": "^0.0.42",
10
10
  "@parca/parser": "^0.16.68",
11
11
  "@parca/store": "^0.16.130",
12
12
  "@parca/utilities": "^0.0.58",
13
13
  "@tanstack/react-query": "^4.0.5",
14
- "@types/react-beautiful-dnd": "^13.1.3",
14
+ "@types/react-beautiful-dnd": "^13.1.8",
15
15
  "apache-arrow": "^12.0.0",
16
16
  "d3": "7.8.5",
17
17
  "d3-scale": "^4.0.2",
@@ -20,7 +20,6 @@
20
20
  "graphviz-wasm": "3.0.1",
21
21
  "react-beautiful-dnd": "^13.1.1",
22
22
  "react-contexify": "^6.0.0",
23
- "react-copy-to-clipboard": "^5.1.0",
24
23
  "react-flame-graph": "^1.4.0",
25
24
  "react-inlinesvg": "^3.0.2",
26
25
  "react-map-interaction": "^2.1.0",
@@ -30,7 +29,6 @@
30
29
  },
31
30
  "devDependencies": {
32
31
  "@types/d3": "7.4.3",
33
- "@types/react-copy-to-clipboard": "5.0.7",
34
32
  "@types/react-syntax-highlighter": "15.5.11"
35
33
  },
36
34
  "resolutions": {
@@ -52,5 +50,5 @@
52
50
  "access": "public",
53
51
  "registry": "https://registry.npmjs.org/"
54
52
  },
55
- "gitHead": "2dd29faf547650031ad6518e34cc58fbe1c552bc"
53
+ "gitHead": "e67b6cc961d96ffac0971d1fb1b4c27019284964"
56
54
  }
@@ -14,7 +14,6 @@
14
14
  import {useEffect, useMemo, useState} from 'react';
15
15
 
16
16
  import {pointer} from 'd3-selection';
17
- import {CopyToClipboard} from 'react-copy-to-clipboard';
18
17
  import {usePopper} from 'react-popper';
19
18
 
20
19
  import {
@@ -29,7 +28,7 @@ import {
29
28
  Mapping,
30
29
  Function as ParcaFunction,
31
30
  } from '@parca/client/dist/parca/metastore/v1alpha1/metastore';
32
- import {useKeyDown} from '@parca/components';
31
+ import {CopyToClipboard, useKeyDown} from '@parca/components';
33
32
  import {selectHoveringNode, useAppSelector} from '@parca/store';
34
33
  import {divide, getLastItem, valueFormatter} from '@parca/utilities';
35
34
 
@@ -15,9 +15,8 @@ import {useState} from 'react';
15
15
 
16
16
  import {Icon} from '@iconify/react';
17
17
  import cx from 'classnames';
18
- import {CopyToClipboard} from 'react-copy-to-clipboard';
19
18
 
20
- import {Button} from '@parca/components';
19
+ import {Button, CopyToClipboard} from '@parca/components';
21
20
 
22
21
  interface Props {
23
22
  value: string;