@opengeni/react 0.6.0 → 0.6.1
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/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/timeline/projection.ts +11 -0
package/dist/index.js
CHANGED
|
@@ -320,6 +320,9 @@ ${message}` : message;
|
|
|
320
320
|
if (!isSessionStatus(status)) {
|
|
321
321
|
break;
|
|
322
322
|
}
|
|
323
|
+
if (!ATTENTION_STATUSES.has(status)) {
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
323
326
|
const previous = [...items].reverse().find((item) => item.kind === "session-status");
|
|
324
327
|
if (previous?.status === status) {
|
|
325
328
|
break;
|
|
@@ -572,6 +575,7 @@ function asRecord(value) {
|
|
|
572
575
|
return value !== null && typeof value === "object" ? value : {};
|
|
573
576
|
}
|
|
574
577
|
var SESSION_STATUSES = ["queued", "running", "idle", "requires_action", "failed", "cancelled"];
|
|
578
|
+
var ATTENTION_STATUSES = /* @__PURE__ */ new Set(["requires_action", "failed", "cancelled"]);
|
|
575
579
|
function resourceRefs(value) {
|
|
576
580
|
if (!Array.isArray(value)) {
|
|
577
581
|
return [];
|