@parca/profile 0.16.121 → 0.16.122

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.122](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.121...@parca/profile@0.16.122) (2023-02-22)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## 0.16.121 (2023-02-21)
7
11
 
8
12
  **Note:** Version bump only for package @parca/profile
@@ -100,9 +100,9 @@ export var ProfileView = function (_a) {
100
100
  var type = _a.type, isHalfScreen = _a.isHalfScreen;
101
101
  switch (type) {
102
102
  case 'icicle': {
103
- return (flamegraphData === null || flamegraphData === void 0 ? void 0 : flamegraphData.data) != null ? (_jsx(ConditionalWrapper, __assign({ condition: (perf === null || perf === void 0 ? void 0 : perf.onRender) != null, wrapper: function (_a) {
104
- var children = _a.children;
105
- return (_jsx(Profiler, __assign({ id: "icicleGraph", onRender: perf === null || perf === void 0 ? void 0 : perf.onRender }, { children: children })));
103
+ return (flamegraphData === null || flamegraphData === void 0 ? void 0 : flamegraphData.data) != null ? (_jsx(ConditionalWrapper, __assign({ condition: (perf === null || perf === void 0 ? void 0 : perf.onRender) != null, WrapperComponent: Profiler, wrapperProps: {
104
+ id: 'icicleGraph',
105
+ onRender: perf === null || perf === void 0 ? void 0 : perf.onRender,
106
106
  } }, { children: _jsx(ProfileIcicleGraph, { curPath: curPath, setNewCurPath: setNewCurPath, graph: flamegraphData.data, sampleUnit: sampleUnit, onContainerResize: onFlamegraphContainerResize, navigateTo: navigateTo, loading: flamegraphData.loading }) }))) : (_jsx(_Fragment, { children: " " }));
107
107
  }
108
108
  case 'callgraph': {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.16.121",
3
+ "version": "0.16.122",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@parca/client": "^0.16.63",
7
- "@parca/components": "^0.16.101",
7
+ "@parca/components": "^0.16.102",
8
8
  "@parca/dynamicsize": "^0.16.53",
9
9
  "@parca/functions": "^0.16.63",
10
10
  "@parca/parser": "^0.16.54",
@@ -45,5 +45,5 @@
45
45
  "access": "public",
46
46
  "registry": "https://registry.npmjs.org/"
47
47
  },
48
- "gitHead": "7a07bf57f7092b0ee9c1b742c495229ce1231ee7"
48
+ "gitHead": "c2165c6991e55c1afd7d11e9c797a3de58578959"
49
49
  }
@@ -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 {Profiler, useEffect, useMemo, useState} from 'react';
14
+ import {Profiler, ProfilerProps, useEffect, useMemo, useState} from 'react';
15
15
 
16
16
  import {Icon} from '@iconify/react';
17
17
  import cx from 'classnames';
@@ -161,16 +161,13 @@ export const ProfileView = ({
161
161
  switch (type) {
162
162
  case 'icicle': {
163
163
  return flamegraphData?.data != null ? (
164
- <ConditionalWrapper
164
+ <ConditionalWrapper<ProfilerProps>
165
165
  condition={perf?.onRender != null}
166
- wrapper={({children}) => (
167
- <Profiler
168
- id="icicleGraph"
169
- onRender={perf?.onRender as React.ProfilerOnRenderCallback}
170
- >
171
- {children}
172
- </Profiler>
173
- )}
166
+ WrapperComponent={Profiler}
167
+ wrapperProps={{
168
+ id: 'icicleGraph',
169
+ onRender: perf?.onRender as React.ProfilerOnRenderCallback,
170
+ }}
174
171
  >
175
172
  <ProfileIcicleGraph
176
173
  curPath={curPath}