pollination-react-io 1.56.0 → 1.56.2
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/build/hooks/index.d.ts +0 -1
- package/build/index.esm.js +15 -15
- package/build/index.esm.js.map +1 -1
- package/build/index.js +14 -15
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
@@ -38041,7 +38041,7 @@ var usePollinationPanel = function () {
|
|
38041
38041
|
return run;
|
38042
38042
|
}
|
38043
38043
|
catch (error) {
|
38044
|
-
|
38044
|
+
throw error;
|
38045
38045
|
}
|
38046
38046
|
}, [panel]);
|
38047
38047
|
var fetchLocalJob = React.useCallback(function (path) {
|
@@ -38056,7 +38056,7 @@ var usePollinationPanel = function () {
|
|
38056
38056
|
return job;
|
38057
38057
|
}
|
38058
38058
|
catch (error) {
|
38059
|
-
|
38059
|
+
throw error;
|
38060
38060
|
}
|
38061
38061
|
}, [panel]);
|
38062
38062
|
return {
|
@@ -48768,6 +48768,10 @@ var RunCard = function (_a) {
|
|
48768
48768
|
fallbackData: localRun ? undefined : _run,
|
48769
48769
|
errorRetryCount: 3,
|
48770
48770
|
onSuccess: function (run, key, config) {
|
48771
|
+
if (localRun) {
|
48772
|
+
var jobInfo = fetchLocalJob(_run.id);
|
48773
|
+
setLocalStudy(jobInfo);
|
48774
|
+
}
|
48771
48775
|
sendRun(run);
|
48772
48776
|
if (run.status.finished_at)
|
48773
48777
|
setStopRefresh(true);
|
@@ -48781,17 +48785,13 @@ var RunCard = function (_a) {
|
|
48781
48785
|
React.useEffect(function () {
|
48782
48786
|
if (!_run)
|
48783
48787
|
return;
|
48784
|
-
if (localRun)
|
48785
|
-
|
48786
|
-
|
48787
|
-
|
48788
|
-
|
48789
|
-
|
48790
|
-
|
48791
|
-
setStudy(d);
|
48792
|
-
})
|
48793
|
-
.catch(function () { setStudy(undefined); });
|
48794
|
-
}
|
48788
|
+
if (localRun)
|
48789
|
+
return;
|
48790
|
+
fetchJob(projectOwner, projectName, run.status.job_id)
|
48791
|
+
.then(function (d) {
|
48792
|
+
setStudy(d);
|
48793
|
+
})
|
48794
|
+
.catch(function () { setStudy(undefined); });
|
48795
48795
|
}, [_run]);
|
48796
48796
|
/**
|
48797
48797
|
* Refresh status
|
@@ -48850,7 +48850,7 @@ var RunCard = function (_a) {
|
|
48850
48850
|
setHover(__assign(__assign({}, initialValues), (_a = {}, _a[defaultTab] = true, _a)));
|
48851
48851
|
}, [defaultTab]);
|
48852
48852
|
if (error)
|
48853
|
-
return React__default["default"].createElement(
|
48853
|
+
return React__default["default"].createElement(Logo, null);
|
48854
48854
|
return (React__default["default"].createElement("div", { className: enableClick ? "grid-container ".concat(isReady && !run.status.finished_at && 'blink-effect')
|
48855
48855
|
: "grid-container disable-click ".concat(isReady && !run.status.finished_at && 'blink-effect'), tabIndex: 0, role: 'button', style: __assign({ borderColor: (_d = (_c = statusMap[status]) === null || _c === void 0 ? void 0 : _c.color) !== null && _d !== void 0 ? _d : '#d0d7de' }, style), onClick: function () {
|
48856
48856
|
if (!enableClick)
|
@@ -50509,7 +50509,6 @@ exports.useGetHbjson = useGetHbjson;
|
|
50509
50509
|
exports.useHbjsontoVTK = useHbjsontoVTK;
|
50510
50510
|
exports.useJobs = useJobs;
|
50511
50511
|
exports.useManageSettings = useManageSettings;
|
50512
|
-
exports.usePollinationPanel = usePollinationPanel;
|
50513
50512
|
exports.useRunCommand = useRunCommand;
|
50514
50513
|
exports.useRuns = useRuns;
|
50515
50514
|
exports.useSendHbjson = useSendHbjson;
|