@cratis/stage.runtime 4.209.0 → 4.210.0

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.
@@ -32,6 +32,11 @@ export interface StageQueryRequest {
32
32
  export interface StageQueryResult {
33
33
  rows: Record<string, unknown>[];
34
34
  loading: boolean;
35
+ /**
36
+ * The query has held no rows since it was shown, and a command that just succeeded may still be projecting the one it is waiting for -
37
+ * a list opened right after adding to it. Until the command's reads settle, an empty answer is not yet the answer.
38
+ */
39
+ awaitingCommand: boolean;
35
40
  error: string;
36
41
  refresh: () => void;
37
42
  }
@@ -68,6 +73,8 @@ export interface StageDataState {
68
73
  queryResults: Record<string, unknown>;
69
74
  refreshQuery: (query?: string) => void;
70
75
  refreshAfterCommand: () => void;
76
+ /** A command succeeded and its queries are still being read again while its projections catch up (see `commandSettleDelays`). */
77
+ settling: boolean;
71
78
  resolveBinding: (binding: BindingExpression | string | undefined) => unknown;
72
79
  /**
73
80
  * Resolves a command argument source the way Scene does: `component.<id>.<output>` reads what another
@@ -79,7 +86,11 @@ export interface StageDataState {
79
86
  refreshVersion: number;
80
87
  refreshQueryName?: string;
81
88
  }
82
- /** When, after a command's own refresh, its queries are read again so an asynchronous projection has caught up. */
89
+ /**
90
+ * When, after a command's own refresh, its queries are read again so an asynchronous projection has caught up. A projection under load can take
91
+ * several seconds (Stage#720), so the reads go on for a while; the last delay is how long a list opened after the command waits before it
92
+ * says it is empty.
93
+ */
83
94
  export declare const commandSettleDelays: number[];
84
95
  export interface StageDataProviderProps {
85
96
  routes: StageRoutes | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/stage.runtime",
3
- "version": "4.209.0",
3
+ "version": "4.210.0",
4
4
  "description": "The Cratis Stage application runtime for Arc and Scene",
5
5
  "author": "Cratis",
6
6
  "type": "module",
@@ -41,10 +41,10 @@
41
41
  "test": "vitest run"
42
42
  },
43
43
  "peerDependencies": {
44
- "@cratis/arc": "22.143.0",
45
- "@cratis/arc.react": "22.143.0",
44
+ "@cratis/arc": "22.146.0",
45
+ "@cratis/arc.react": "22.146.0",
46
46
  "@cratis/components": "4.34.0",
47
- "@cratis/fundamentals": "7.26.0",
47
+ "@cratis/fundamentals": "7.27.0",
48
48
  "@cratis/scene.blueprint.default": "4.80.2",
49
49
  "@cratis/scene.components": "4.80.2",
50
50
  "@cratis/scene.engine": "4.80.2",