@parca/profile 0.16.352 → 0.16.353

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 (43) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/Callgraph/index.d.ts +1 -0
  3. package/dist/GraphTooltip/ExpandOnHoverValue.d.ts +1 -0
  4. package/dist/GraphTooltip/index.d.ts +1 -0
  5. package/dist/GraphTooltipArrow/DockedGraphTooltip/index.d.ts +1 -0
  6. package/dist/GraphTooltipArrow/ExpandOnHoverValue.d.ts +1 -0
  7. package/dist/MatchersInput/SuggestionItem.d.ts +1 -0
  8. package/dist/MatchersInput/SuggestionsList.d.ts +1 -0
  9. package/dist/MatchersInput/index.d.ts +1 -0
  10. package/dist/MetricsCircle/index.d.ts +1 -0
  11. package/dist/MetricsGraph/MetricsContextMenu/index.d.ts +1 -0
  12. package/dist/MetricsGraph/MetricsInfoPanel/index.d.ts +1 -0
  13. package/dist/MetricsGraph/MetricsTooltip/index.d.ts +1 -0
  14. package/dist/MetricsGraph/index.d.ts +1 -0
  15. package/dist/MetricsSeries/index.d.ts +1 -0
  16. package/dist/ProfileExplorer/ProfileExplorerCompare.d.ts +1 -0
  17. package/dist/ProfileExplorer/ProfileExplorerSingle.d.ts +1 -0
  18. package/dist/ProfileExplorer/index.d.ts +1 -0
  19. package/dist/ProfileIcicleGraph/ActionButtons/GroupByDropdown.d.ts +1 -0
  20. package/dist/ProfileIcicleGraph/ActionButtons/RuntimeFilterDropdown.d.ts +1 -0
  21. package/dist/ProfileIcicleGraph/ActionButtons/SortBySelect.d.ts +1 -0
  22. package/dist/ProfileIcicleGraph/IcicleGraph/ColorStackLegend.d.ts +1 -0
  23. package/dist/ProfileIcicleGraph/IcicleGraphArrow/ContextMenu.d.ts +1 -0
  24. package/dist/ProfileMetricsGraph/index.d.ts +1 -0
  25. package/dist/ProfileSelector/CompareButton.d.ts +1 -0
  26. package/dist/ProfileSelector/index.d.ts +1 -0
  27. package/dist/ProfileSource.d.ts +1 -0
  28. package/dist/ProfileTypeSelector/index.d.ts +1 -0
  29. package/dist/ProfileView/FilterByFunctionButton.d.ts +1 -0
  30. package/dist/ProfileView/ViewSelector.d.ts +1 -0
  31. package/dist/ProfileView/index.d.ts +1 -0
  32. package/dist/ProfileViewWithData.d.ts +1 -0
  33. package/dist/SourceView/Highlighter.js +3 -2
  34. package/dist/SourceView/LineNo.d.ts +1 -0
  35. package/dist/SourceView/lang-detector/index.js +1 -1
  36. package/dist/Table/ColumnsVisibility.d.ts +1 -0
  37. package/dist/components/DiffLegend.d.ts +1 -0
  38. package/dist/components/ProfileShareButton/ResultBox.d.ts +1 -0
  39. package/dist/components/ProfileShareButton/index.d.ts +1 -0
  40. package/package.json +2 -2
  41. package/src/SourceView/Highlighter.tsx +4 -2
  42. package/src/SourceView/lang-detector/index.ts +1 -1
  43. package/typings.d.ts +1 -1
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.353 (2024-03-06)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## 0.16.352 (2024-02-29)
7
11
 
8
12
  **Note:** Version bump only for package @parca/profile
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Callgraph as CallgraphType } from '@parca/client';
2
3
  export interface Props {
3
4
  data: CallgraphType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  value: string | number | undefined;
3
4
  displayValue?: string | number | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CallgraphNode, CallgraphNodeMeta, FlamegraphNode, FlamegraphNodeMeta, FlamegraphRootNode } from '@parca/client';
2
3
  import { Location, Mapping, Function as ParcaFunction } from '@parca/client/dist/parca/metastore/v1alpha1/metastore';
3
4
  interface ExtendedCallgraphNodeMeta extends CallgraphNodeMeta {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Table } from 'apache-arrow';
2
3
  interface Props {
3
4
  table: Table<any>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  value: string | number | undefined;
3
4
  displayValue?: string | number | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  isHighlighted: boolean;
3
4
  onHighlight: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare class Suggestion {
2
3
  type: string;
3
4
  typeahead: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LabelsResponse, QueryServiceClient } from '@parca/client';
2
3
  import { Query } from '@parca/parser';
3
4
  interface MatchersInputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface MetricsCircleProps {
2
3
  cx: number;
3
4
  cy: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { HighlightedSeries } from '../';
2
3
  interface MetricsContextMenuProps {
3
4
  menuId: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface MetricsInfoPanelProps {
2
3
  isInfoPanelOpen: boolean;
3
4
  onInfoIconClick: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { HighlightedSeries } from '../';
2
3
  interface Props {
3
4
  x: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Label, MetricsSeries as MetricsSeriesPb } from '@parca/client';
2
3
  import { DateTimeRange } from '@parca/components';
3
4
  import { MergedProfileSelection } from '..';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import * as d3 from 'd3';
2
3
  interface MetricsSeriesProps {
3
4
  data: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { QueryServiceClient } from '@parca/client';
2
3
  import type { NavigateFunction } from '@parca/utilities';
3
4
  import { ProfileSelection } from '..';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { QueryServiceClient } from '@parca/client';
2
3
  import type { NavigateFunction } from '@parca/utilities';
3
4
  import { ProfileSelection } from '..';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { QueryServiceClient } from '@parca/client';
2
3
  import { type NavigateFunction } from '@parca/utilities';
3
4
  interface ProfileExplorerProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const GroupByDropdown: ({ groupBy, toggleGroupBy, }: {
2
3
  groupBy: string[];
3
4
  toggleGroupBy: (key: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const RuntimeFilterDropdown: ({ showRuntimeRuby, toggleShowRuntimeRuby, showRuntimePython, toggleShowRuntimePython, showInterpretedOnly, toggleShowInterpretedOnly, }: {
2
3
  showRuntimeRuby: boolean;
3
4
  toggleShowRuntimeRuby: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SortBySelect: ({ sortBy, setSortBy, compareMode, }: {
2
3
  sortBy: string;
3
4
  setSortBy: (key: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { NavigateFunction } from '@parca/utilities';
2
3
  interface Props {
3
4
  navigateTo?: NavigateFunction;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Table } from 'apache-arrow';
2
3
  import { type NavigateFunction } from '@parca/utilities';
3
4
  interface ContextMenuProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RpcError } from '@protobuf-ts/runtime-rpc';
2
3
  import { Label, QueryRangeResponse, QueryServiceClient } from '@parca/client';
3
4
  import { DateTimeRange } from '@parca/components';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const CompareButton: ({ disabled, onClick, }: {
2
3
  disabled: boolean;
3
4
  onClick: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RpcError } from '@protobuf-ts/runtime-rpc';
2
3
  import { ProfileTypesResponse, QueryServiceClient } from '@parca/client';
3
4
  import { ProfileSelection } from '..';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Label, ProfileDiffSelection, QueryRequest } from '@parca/client';
2
3
  import { ProfileType, Query } from '@parca/parser';
3
4
  export interface ProfileSource {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RpcError } from '@protobuf-ts/runtime-rpc';
2
3
  import { ProfileType, ProfileTypesResponse } from '@parca/client';
3
4
  import { type SelectElement } from '@parca/components';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { NavigateFunction } from '@parca/utilities';
2
3
  declare const FilterByFunctionButton: ({ navigateTo, }: {
3
4
  navigateTo: NavigateFunction | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { NavigateFunction } from '@parca/utilities';
2
3
  interface Props {
3
4
  position: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Callgraph as CallgraphType, Flamegraph, FlamegraphArrow, QueryServiceClient, Source, TableArrow, Top } from '@parca/client';
2
3
  import { ProfileSource } from '../ProfileSource';
3
4
  type NavigateFunction = (path: string, queryParams: any, options?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { QueryServiceClient } from '@parca/client';
2
3
  import { type NavigateFunction } from '@parca/utilities';
3
4
  import { ProfileSource } from './ProfileSource';
@@ -14,8 +14,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
14
14
  import { useId, useMemo } from 'react';
15
15
  import cx from 'classnames';
16
16
  import { scaleLinear } from 'd3-scale';
17
- import SyntaxHighlighter, { createElement } from 'react-syntax-highlighter';
18
- import { atomOneDark, atomOneLight } from 'react-syntax-highlighter/dist/esm/styles/hljs';
17
+ import createElement from 'react-syntax-highlighter/dist/cjs/create-element';
18
+ import SyntaxHighlighter from 'react-syntax-highlighter/dist/cjs/default-highlight';
19
+ import { atomOneDark, atomOneLight } from 'react-syntax-highlighter/dist/cjs/styles/hljs';
19
20
  import { Tooltip } from 'react-tooltip';
20
21
  import { useParcaContext } from '@parca/components';
21
22
  import { valueFormatter } from '@parca/utilities';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  value: number;
3
4
  isCurrent?: boolean;
@@ -10,7 +10,7 @@
10
10
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
- import * as hljsLangs from 'react-syntax-highlighter/dist/esm/languages/hljs';
13
+ import * as hljsLangs from 'react-syntax-highlighter/dist/cjs/languages/hljs';
14
14
  import _extLangMap from './ext-to-lang.json';
15
15
  const extLangMap = _extLangMap;
16
16
  export const langaugeFromFile = (file) => {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type VisibilityState } from '@tanstack/react-table';
2
3
  import { ColumnDef } from '.';
3
4
  declare const ColumnsVisibility: ({ columns, visibility, setVisibility, }: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DiffLegend: () => JSX.Element;
2
3
  export default DiffLegend;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface Props {
2
3
  value: string;
3
4
  className?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { QueryRequest, QueryServiceClient } from '@parca/client';
2
3
  interface Props {
3
4
  queryRequest: QueryRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.352",
3
+ "version": "0.16.353",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@parca/client": "^0.16.106",
@@ -50,5 +50,5 @@
50
50
  "access": "public",
51
51
  "registry": "https://registry.npmjs.org/"
52
52
  },
53
- "gitHead": "21d9b84fb528ea62b8d3c931671264371aca90c2"
53
+ "gitHead": "b5d2f03ac76f9059da8ec256475545d0db0e11a8"
54
54
  }
@@ -16,8 +16,10 @@ import {MouseEventHandler, useId, useMemo} from 'react';
16
16
  import {Vector} from 'apache-arrow';
17
17
  import cx from 'classnames';
18
18
  import {scaleLinear} from 'd3-scale';
19
- import SyntaxHighlighter, {createElement, type createElementProps} from 'react-syntax-highlighter';
20
- import {atomOneDark, atomOneLight} from 'react-syntax-highlighter/dist/esm/styles/hljs';
19
+ import {type createElementProps} from 'react-syntax-highlighter';
20
+ import createElement from 'react-syntax-highlighter/dist/cjs/create-element';
21
+ import SyntaxHighlighter from 'react-syntax-highlighter/dist/cjs/default-highlight';
22
+ import {atomOneDark, atomOneLight} from 'react-syntax-highlighter/dist/cjs/styles/hljs';
21
23
  import {Tooltip} from 'react-tooltip';
22
24
 
23
25
  import {useParcaContext} from '@parca/components';
@@ -11,7 +11,7 @@
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
13
 
14
- import * as hljsLangs from 'react-syntax-highlighter/dist/esm/languages/hljs';
14
+ import * as hljsLangs from 'react-syntax-highlighter/dist/cjs/languages/hljs';
15
15
 
16
16
  import _extLangMap from './ext-to-lang.json';
17
17
 
package/typings.d.ts CHANGED
@@ -13,4 +13,4 @@
13
13
 
14
14
  declare module '*.svg';
15
15
  declare module 'react-map-interaction';
16
- declare module 'react-syntax-highlighter/dist/esm/languages/hljs';
16
+ declare module 'react-syntax-highlighter/dist/cjs/languages/hljs';