@parca/profile 0.16.258 → 0.16.260
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,14 @@
|
|
|
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.260](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.259...@parca/profile@0.16.260) (2023-09-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
10
|
+
## [0.16.259](https://github.com/parca-dev/parca/compare/@parca/profile@0.16.258...@parca/profile@0.16.259) (2023-09-16)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @parca/profile
|
|
13
|
+
|
|
6
14
|
## 0.16.258 (2023-09-16)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -57,6 +57,7 @@ onCopy, row, navigateTo, }) => {
|
|
|
57
57
|
const { labelPairs, functionFilename, file, openFile, isSourceAvailable, locationAddress, mappingFile, mappingBuildID, } = useGraphTooltipMetaInfo({ table, row, navigateTo });
|
|
58
58
|
const { enableSourcesView } = useParcaContext();
|
|
59
59
|
const labels = labelPairs.map((l) => (_jsx("span", { className: "mr-3 inline-block rounded-lg bg-gray-200 px-2 py-1 text-xs font-bold text-gray-700 dark:bg-gray-700 dark:text-gray-400", children: `${l[0]}="${l[1]}"` }, l[0])));
|
|
60
|
-
|
|
60
|
+
const isMappingBuildIDAvailable = mappingBuildID !== null && mappingBuildID !== '';
|
|
61
|
+
return (_jsxs(_Fragment, { children: [_jsxs("tr", { children: [_jsx("td", { className: "w-1/4", children: "File" }), _jsx("td", { className: "w-3/4 break-all", children: functionFilename === '' ? (_jsx(NoData, {})) : (_jsxs("div", { className: "flex gap-4", children: [_jsx(CopyToClipboard, { onCopy: onCopy, text: file, children: _jsx("button", { className: "cursor-pointer whitespace-nowrap text-left", children: _jsx(ExpandOnHover, { value: file, displayValue: truncateStringReverse(file, 30) }) }) }), _jsxs("div", { className: cx('flex gap-2', { hidden: enableSourcesView === false }), children: [_jsx("div", { "data-tooltip-id": "open-source-button-help", "data-tooltip-content": "There is no source code uploaded for this build", children: _jsx(Button, { variant: 'neutral', onClick: () => openFile(), className: "shrink-0", disabled: !isSourceAvailable, children: "open" }) }), !isSourceAvailable ? _jsx(Tooltip, { id: "open-source-button-help" }) : null] })] })) })] }), _jsxs("tr", { children: [_jsx("td", { className: "w-1/4", children: "Address" }), _jsx("td", { className: "w-3/4 break-all", children: locationAddress === 0n ? (_jsx(NoData, {})) : (_jsx(CopyToClipboard, { onCopy: onCopy, text: hexifyAddress(locationAddress), children: _jsx("button", { className: "cursor-pointer", children: hexifyAddress(locationAddress) }) })) })] }), _jsxs("tr", { children: [_jsx("td", { className: "w-1/4", children: "Binary" }), _jsx("td", { className: "w-3/4 break-all", children: mappingFile === null ? (_jsx(NoData, {})) : (_jsx(CopyToClipboard, { onCopy: onCopy, text: mappingFile, children: _jsx("button", { className: "cursor-pointer", children: getLastItem(mappingFile) }) })) })] }), _jsxs("tr", { children: [_jsx("td", { className: "w-1/4", children: "Build Id" }), _jsx("td", { className: "w-3/4 break-all", children: !isMappingBuildIDAvailable ? (_jsx(NoData, {})) : (_jsx(CopyToClipboard, { onCopy: onCopy, text: mappingBuildID, children: _jsx("button", { className: "cursor-pointer", children: truncateString(getLastItem(mappingBuildID), 28) }) })) })] }), labelPairs.length > 0 && (_jsxs("tr", { children: [_jsx("td", { className: "w-1/4", children: "Labels" }), _jsx("td", { className: "w-3/4 break-all", children: labels })] }))] }));
|
|
61
62
|
};
|
|
62
63
|
export default GraphTooltipArrowContent;
|
|
@@ -48,7 +48,7 @@ const ProfileShareModal = ({ isOpen, closeModal, queryRequest, queryClient, }) =
|
|
|
48
48
|
setIsShared(false);
|
|
49
49
|
closeModal();
|
|
50
50
|
};
|
|
51
|
-
return (_jsx(Modal, { isOpen: isOpen, closeModal: onClose, title: "Share Profile", className: "w-[420px]", children: _jsxs("
|
|
51
|
+
return (_jsx(Modal, { isOpen: isOpen, closeModal: onClose, title: "Share Profile", className: "w-[420px]", children: _jsxs("div", { className: "py-2", children: [_jsx("p", { className: "text-sm text-gray-500 dark:text-gray-300", children: "Note: Shared profiles can be accessed by anyone with the link, even from people outside your organisation." }), !isShared || error?.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("p", { className: "mb-2 mt-3 text-sm text-gray-500 dark:text-gray-300", children: "Enter a description (optional)" }), _jsx("textarea", { className: "w-full border bg-inherit px-2 py-2 text-sm text-gray-500 dark:text-gray-300", value: description, onChange: e => setDescription(e.target.value) }), _jsx(Button, { variant: "primary", className: "mt-4", onClick: e => {
|
|
52
52
|
e.preventDefault();
|
|
53
53
|
void handleSubmit();
|
|
54
54
|
}, disabled: loading || !isFormDataValid(), type: "submit", children: loading ? 'Sharing' : 'Share' }), error !== '' ? _jsx("p", { children: "Something went wrong please try again" }) : null] })) : (_jsxs(_Fragment, { children: [_jsx(ResultBox, { value: sharedLink, className: "mt-4" }), _jsx("div", { className: "mt-8 flex justify-center", children: _jsx(Button, { variant: "neutral", className: "w-fit", onClick: onClose, children: "Close" }) })] }))] }) }));
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.260",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@parca/client": "^0.16.86",
|
|
7
|
-
"@parca/components": "^0.16.
|
|
7
|
+
"@parca/components": "^0.16.196",
|
|
8
8
|
"@parca/dynamicsize": "^0.16.54",
|
|
9
9
|
"@parca/hooks": "^0.0.23",
|
|
10
10
|
"@parca/parser": "^0.16.55",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"access": "public",
|
|
50
50
|
"registry": "https://registry.npmjs.org/"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "a0147622689ac5367fa5a6955441d95367a2cfdd"
|
|
53
53
|
}
|
|
@@ -193,6 +193,8 @@ const TooltipMetaInfo = ({
|
|
|
193
193
|
)
|
|
194
194
|
);
|
|
195
195
|
|
|
196
|
+
const isMappingBuildIDAvailable = mappingBuildID !== null && mappingBuildID !== '';
|
|
197
|
+
|
|
196
198
|
return (
|
|
197
199
|
<>
|
|
198
200
|
<tr>
|
|
@@ -254,7 +256,7 @@ const TooltipMetaInfo = ({
|
|
|
254
256
|
<tr>
|
|
255
257
|
<td className="w-1/4">Build Id</td>
|
|
256
258
|
<td className="w-3/4 break-all">
|
|
257
|
-
{
|
|
259
|
+
{!isMappingBuildIDAvailable ? (
|
|
258
260
|
<NoData />
|
|
259
261
|
) : (
|
|
260
262
|
<CopyToClipboard onCopy={onCopy} text={mappingBuildID}>
|
|
@@ -78,7 +78,7 @@ const ProfileShareModal = ({
|
|
|
78
78
|
|
|
79
79
|
return (
|
|
80
80
|
<Modal isOpen={isOpen} closeModal={onClose} title="Share Profile" className="w-[420px]">
|
|
81
|
-
<
|
|
81
|
+
<div className="py-2">
|
|
82
82
|
<p className="text-sm text-gray-500 dark:text-gray-300">
|
|
83
83
|
Note: Shared profiles can be accessed by anyone with the link, even from people outside
|
|
84
84
|
your organisation.
|
|
@@ -117,7 +117,7 @@ const ProfileShareModal = ({
|
|
|
117
117
|
</div>
|
|
118
118
|
</>
|
|
119
119
|
)}
|
|
120
|
-
</
|
|
120
|
+
</div>
|
|
121
121
|
</Modal>
|
|
122
122
|
);
|
|
123
123
|
};
|