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/hooks/index.d.ts
CHANGED
package/build/index.esm.js
CHANGED
@@ -38015,7 +38015,7 @@ var usePollinationPanel = function () {
|
|
38015
38015
|
return run;
|
38016
38016
|
}
|
38017
38017
|
catch (error) {
|
38018
|
-
|
38018
|
+
throw error;
|
38019
38019
|
}
|
38020
38020
|
}, [panel]);
|
38021
38021
|
var fetchLocalJob = useCallback(function (path) {
|
@@ -38030,7 +38030,7 @@ var usePollinationPanel = function () {
|
|
38030
38030
|
return job;
|
38031
38031
|
}
|
38032
38032
|
catch (error) {
|
38033
|
-
|
38033
|
+
throw error;
|
38034
38034
|
}
|
38035
38035
|
}, [panel]);
|
38036
38036
|
return {
|
@@ -48742,6 +48742,10 @@ var RunCard = function (_a) {
|
|
48742
48742
|
fallbackData: localRun ? undefined : _run,
|
48743
48743
|
errorRetryCount: 3,
|
48744
48744
|
onSuccess: function (run, key, config) {
|
48745
|
+
if (localRun) {
|
48746
|
+
var jobInfo = fetchLocalJob(_run.id);
|
48747
|
+
setLocalStudy(jobInfo);
|
48748
|
+
}
|
48745
48749
|
sendRun(run);
|
48746
48750
|
if (run.status.finished_at)
|
48747
48751
|
setStopRefresh(true);
|
@@ -48755,17 +48759,13 @@ var RunCard = function (_a) {
|
|
48755
48759
|
useEffect(function () {
|
48756
48760
|
if (!_run)
|
48757
48761
|
return;
|
48758
|
-
if (localRun)
|
48759
|
-
|
48760
|
-
|
48761
|
-
|
48762
|
-
|
48763
|
-
|
48764
|
-
|
48765
|
-
setStudy(d);
|
48766
|
-
})
|
48767
|
-
.catch(function () { setStudy(undefined); });
|
48768
|
-
}
|
48762
|
+
if (localRun)
|
48763
|
+
return;
|
48764
|
+
fetchJob(projectOwner, projectName, run.status.job_id)
|
48765
|
+
.then(function (d) {
|
48766
|
+
setStudy(d);
|
48767
|
+
})
|
48768
|
+
.catch(function () { setStudy(undefined); });
|
48769
48769
|
}, [_run]);
|
48770
48770
|
/**
|
48771
48771
|
* Refresh status
|
@@ -48824,7 +48824,7 @@ var RunCard = function (_a) {
|
|
48824
48824
|
setHover(__assign(__assign({}, initialValues), (_a = {}, _a[defaultTab] = true, _a)));
|
48825
48825
|
}, [defaultTab]);
|
48826
48826
|
if (error)
|
48827
|
-
return React__default.createElement(
|
48827
|
+
return React__default.createElement(Logo, null);
|
48828
48828
|
return (React__default.createElement("div", { className: enableClick ? "grid-container ".concat(isReady && !run.status.finished_at && 'blink-effect')
|
48829
48829
|
: "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 () {
|
48830
48830
|
if (!enableClick)
|
@@ -50427,5 +50427,5 @@ var RunTable = function (_a) {
|
|
50427
50427
|
React__default.createElement(ChevronRight$1, null)))))));
|
50428
50428
|
};
|
50429
50429
|
|
50430
|
-
export { APIClient, AuthUser, Avatar, Button, ComboBox, ComboFileSelector, ConditionalWrapper, ConfigureLocalRun, CreateStudy, Dropdown, FileInput, FilePreview, FormInput, GetGeometry, GetModel, InputDescription, Label, Logo, NumberInput, RadioList, RecipeForm, RunCard, RunDetails, RunRow, RunTable, SelectAccount, SelectCloudArtifacts, SelectLocalArtifacts, SelectProject, SelectRecipe, SelectRun, SelectStudy, SendGeometry, SendModel, SendResults, SettingsButton, StudyCard, TextInput, Tooltip, _defaultConfig, checkDotNet, checkPollinationPanel, checkRuby, formatBytes, getHost, recipeLinkFromSource, sendMessageDotNet, sendMessageRuby, useAPIClient, useArtifacts, useCreateStudy, useGetGeometry, useGetHbjson, useHbjsontoVTK, useJobs, useManageSettings,
|
50430
|
+
export { APIClient, AuthUser, Avatar, Button, ComboBox, ComboFileSelector, ConditionalWrapper, ConfigureLocalRun, CreateStudy, Dropdown, FileInput, FilePreview, FormInput, GetGeometry, GetModel, InputDescription, Label, Logo, NumberInput, RadioList, RecipeForm, RunCard, RunDetails, RunRow, RunTable, SelectAccount, SelectCloudArtifacts, SelectLocalArtifacts, SelectProject, SelectRecipe, SelectRun, SelectStudy, SendGeometry, SendModel, SendResults, SettingsButton, StudyCard, TextInput, Tooltip, _defaultConfig, checkDotNet, checkPollinationPanel, checkRuby, formatBytes, getHost, recipeLinkFromSource, sendMessageDotNet, sendMessageRuby, useAPIClient, useArtifacts, useCreateStudy, useGetGeometry, useGetHbjson, useHbjsontoVTK, useJobs, useManageSettings, useRunCommand, useRuns, useSendHbjson, useSendMessage, useWindowDimensions };
|
50431
50431
|
//# sourceMappingURL=index.esm.js.map
|