@stigmer/react 3.4.0 → 3.4.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/agent/useAgentCount.d.ts +2 -0
- package/agent/useAgentCount.d.ts.map +1 -1
- package/agent/useAgentCount.js.map +1 -1
- package/api-key/CreateApiKeyForm.d.ts +7 -1
- package/api-key/CreateApiKeyForm.d.ts.map +1 -1
- package/api-key/CreateApiKeyForm.js +2 -2
- package/api-key/CreateApiKeyForm.js.map +1 -1
- package/datastore/useDatastoreCount.d.ts +2 -0
- package/datastore/useDatastoreCount.d.ts.map +1 -1
- package/datastore/useDatastoreCount.js.map +1 -1
- package/index.d.ts +4 -4
- package/index.d.ts.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/manifest/ApplyManifestDialog.d.ts +10 -5
- package/manifest/ApplyManifestDialog.d.ts.map +1 -1
- package/manifest/ApplyManifestDialog.js +30 -13
- package/manifest/ApplyManifestDialog.js.map +1 -1
- package/manifest/useApplyManifest.d.ts +6 -2
- package/manifest/useApplyManifest.d.ts.map +1 -1
- package/manifest/useApplyManifest.js +5 -5
- package/manifest/useApplyManifest.js.map +1 -1
- package/mcp-server/McpServerDetailView.d.ts +38 -2
- package/mcp-server/McpServerDetailView.d.ts.map +1 -1
- package/mcp-server/McpServerDetailView.js +21 -5
- package/mcp-server/McpServerDetailView.js.map +1 -1
- package/mcp-server/index.d.ts +7 -0
- package/mcp-server/index.d.ts.map +1 -1
- package/mcp-server/index.js +9 -0
- package/mcp-server/index.js.map +1 -1
- package/mcp-server/steps/EnvironmentAuthStep.d.ts +4 -0
- package/mcp-server/steps/EnvironmentAuthStep.d.ts.map +1 -1
- package/mcp-server/steps/EnvironmentAuthStep.js +4 -0
- package/mcp-server/steps/EnvironmentAuthStep.js.map +1 -1
- package/mcp-server/steps/IdentityTransportStep.d.ts +6 -0
- package/mcp-server/steps/IdentityTransportStep.d.ts.map +1 -1
- package/mcp-server/steps/IdentityTransportStep.js +7 -1
- package/mcp-server/steps/IdentityTransportStep.js.map +1 -1
- package/mcp-server/steps/ReviewStep.d.ts +5 -0
- package/mcp-server/steps/ReviewStep.d.ts.map +1 -1
- package/mcp-server/steps/ReviewStep.js +16 -2
- package/mcp-server/steps/ReviewStep.js.map +1 -1
- package/mcp-server/useMcpServerCount.d.ts +2 -0
- package/mcp-server/useMcpServerCount.d.ts.map +1 -1
- package/mcp-server/useMcpServerCount.js.map +1 -1
- package/package.json +4 -4
- package/resource-creation/CreationPicker.d.ts.map +1 -1
- package/resource-creation/CreationPicker.js +3 -3
- package/resource-creation/CreationPicker.js.map +1 -1
- package/resource-creation/WizardNav.d.ts.map +1 -1
- package/resource-creation/WizardNav.js +1 -1
- package/resource-creation/WizardNav.js.map +1 -1
- package/resource-detail/Section.d.ts +8 -1
- package/resource-detail/Section.d.ts.map +1 -1
- package/resource-detail/Section.js +2 -2
- package/resource-detail/Section.js.map +1 -1
- package/resource-workbench/components/ResourceWorkbench.d.ts +9 -1
- package/resource-workbench/components/ResourceWorkbench.d.ts.map +1 -1
- package/resource-workbench/components/ResourceWorkbench.js +2 -1
- package/resource-workbench/components/ResourceWorkbench.js.map +1 -1
- package/resource-workbench/hooks/useResourceCollection.d.ts +9 -0
- package/resource-workbench/hooks/useResourceCollection.d.ts.map +1 -1
- package/resource-workbench/hooks/useResourceCollection.js +2 -2
- package/resource-workbench/hooks/useResourceCollection.js.map +1 -1
- package/search/useResourceCount.d.ts +7 -0
- package/search/useResourceCount.d.ts.map +1 -1
- package/search/useResourceCount.js +2 -1
- package/search/useResourceCount.js.map +1 -1
- package/session/NewSessionViewer.d.ts.map +1 -1
- package/session/NewSessionViewer.js +17 -3
- package/session/NewSessionViewer.js.map +1 -1
- package/session/SessionViewer.d.ts +2 -1
- package/session/SessionViewer.d.ts.map +1 -1
- package/session/SessionViewer.js +19 -11
- package/session/SessionViewer.js.map +1 -1
- package/session/SessionViewerLayout.d.ts +90 -0
- package/session/SessionViewerLayout.d.ts.map +1 -0
- package/session/SessionViewerLayout.js +32 -0
- package/session/SessionViewerLayout.js.map +1 -0
- package/session/index.d.ts +4 -0
- package/session/index.d.ts.map +1 -1
- package/session/index.js +10 -0
- package/session/index.js.map +1 -1
- package/session/useSessionRailViews.d.ts +2 -2
- package/skill/useSkillCount.d.ts +2 -0
- package/skill/useSkillCount.d.ts.map +1 -1
- package/skill/useSkillCount.js.map +1 -1
- package/src/agent/useAgentCount.ts +2 -0
- package/src/api-key/CreateApiKeyForm.tsx +8 -1
- package/src/api-key/__tests__/CreateApiKeyForm.test.tsx +58 -0
- package/src/datastore/useDatastoreCount.ts +2 -0
- package/src/index.ts +11 -0
- package/src/manifest/ApplyManifestDialog.tsx +40 -16
- package/src/manifest/__tests__/ApplyManifestDialog.test.tsx +147 -0
- package/src/manifest/__tests__/useApplyManifest.test.tsx +6 -6
- package/src/manifest/useApplyManifest.ts +12 -8
- package/src/mcp-server/McpServerDetailView.tsx +52 -4
- package/src/mcp-server/__tests__/McpServerDetailView.test.tsx +345 -0
- package/src/mcp-server/index.ts +13 -0
- package/src/mcp-server/steps/EnvironmentAuthStep.tsx +4 -0
- package/src/mcp-server/steps/IdentityTransportStep.tsx +9 -1
- package/src/mcp-server/steps/ReviewStep.tsx +18 -1
- package/src/mcp-server/useMcpServerCount.ts +2 -0
- package/src/resource-creation/CreationPicker.tsx +7 -0
- package/src/resource-creation/WizardNav.tsx +1 -0
- package/src/resource-detail/Section.tsx +9 -1
- package/src/resource-workbench/components/ResourceWorkbench.tsx +13 -0
- package/src/resource-workbench/hooks/useResourceCollection.ts +11 -1
- package/src/search/useResourceCount.ts +9 -1
- package/src/session/NewSessionViewer.tsx +48 -61
- package/src/session/SessionViewer.tsx +71 -86
- package/src/session/SessionViewerLayout.tsx +131 -0
- package/src/session/__tests__/SessionViewerLayout.test.tsx +140 -0
- package/src/session/index.ts +14 -0
- package/src/session/useSessionRailViews.tsx +2 -2
- package/src/skill/useSkillCount.ts +2 -0
- package/src/test/__tests__/samples.test.ts +159 -2
- package/src/test/index.ts +1 -1
- package/src/test/samples.ts +109 -14
- package/src/workflow/useWorkflowCount.ts +2 -0
- package/test/index.d.ts +1 -1
- package/test/index.d.ts.map +1 -1
- package/test/index.js +1 -1
- package/test/index.js.map +1 -1
- package/test/samples.d.ts +79 -7
- package/test/samples.d.ts.map +1 -1
- package/test/samples.js +101 -14
- package/test/samples.js.map +1 -1
- package/workflow/useWorkflowCount.d.ts +2 -0
- package/workflow/useWorkflowCount.d.ts.map +1 -1
- package/workflow/useWorkflowCount.js.map +1 -1
package/test/samples.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { create } from "@bufbuild/protobuf";
|
|
2
|
+
import { timestampFromDate } from "@bufbuild/protobuf/wkt";
|
|
2
3
|
import { AgentSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb";
|
|
3
4
|
import { AgentSpecSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
|
|
4
5
|
import { AgentExecutionSchema, AgentExecutionStatusSchema, } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/api_pb";
|
|
@@ -25,6 +26,71 @@ import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/
|
|
|
25
26
|
import { ApiResourceMetadataSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/metadata_pb";
|
|
26
27
|
import { SearchResponseSchema, SearchResultSchema, } from "@stigmer/protos/ai/stigmer/search/v1/io_pb";
|
|
27
28
|
// ---------------------------------------------------------------------------
|
|
29
|
+
// The frozen instant
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
/**
|
|
32
|
+
* The frozen instant every timestamped `samples.*` factory defaults to — the
|
|
33
|
+
* tour world's single clock. Anything in a demo that needs an instant derives
|
|
34
|
+
* from this one via {@link sampleInstant} / {@link sampleDate}; nothing
|
|
35
|
+
* authors a second instant of its own (`scripts/verify-scenar-tours.mjs`
|
|
36
|
+
* enforces that under `demos/tours/`).
|
|
37
|
+
*
|
|
38
|
+
* These factories must never read the live clock. A `samples.*` value is
|
|
39
|
+
* rendered into Scenar tours that replay in the browser and export to video
|
|
40
|
+
* frame by frame; a clock read paints a pixel that changes between runs, which
|
|
41
|
+
* breaks the "same source, same result" guarantee (scenar-cloud DD-006).
|
|
42
|
+
*
|
|
43
|
+
* The date is `2026-07-20`, the tour world's demo day. The time is 11:00 UTC,
|
|
44
|
+
* chosen by the *reader offset window*: components format dates in the
|
|
45
|
+
* reader's local time (e.g. `ApiKeyListPanel` via `toLocaleDateString`), and
|
|
46
|
+
* real UTC offsets span −11:00 (Midway) to +14:00 (Kiritimati) — a 25-hour
|
|
47
|
+
* range against a 24-hour day, so **no instant renders one calendar date
|
|
48
|
+
* everywhere**. The supported window is UTC−11:00 through UTC+12:45 — every
|
|
49
|
+
* inhabited zone except Tongatapu (+13, ~100k) and Kiritimati (+14, ~6k).
|
|
50
|
+
* 11:00Z holds `Jul 20` across that whole window; the previous noon anchor
|
|
51
|
+
* flipped to `Jul 21` at UTC+12:45 and beyond (Auckland, Fiji, Chatham).
|
|
52
|
+
* Instants whose calendar *date* is rendered must stay inside the window's
|
|
53
|
+
* stable band, 11:00:00Z–11:14:59Z — the anchor sits at its start so all
|
|
54
|
+
* derivation headroom points forward. Duration deltas (end minus start) are
|
|
55
|
+
* zone-invariant and may leave the band freely.
|
|
56
|
+
*
|
|
57
|
+
* The window stabilises the rendered *date*, not the rendered *string*:
|
|
58
|
+
* locale-unpinned formatters still vary the format per reader ("Jul 20, 2026"
|
|
59
|
+
* vs "20 Jul 2026"), and a component that renders a *time of day* is
|
|
60
|
+
* zone-dependent no matter which instant is chosen. The property test in
|
|
61
|
+
* `__tests__/samples.test.ts` locks the date-stability claim at both window
|
|
62
|
+
* boundaries.
|
|
63
|
+
*/
|
|
64
|
+
export const SAMPLE_INSTANT = "2026-07-20T11:00:00.000Z";
|
|
65
|
+
/** {@link SAMPLE_INSTANT} in epoch milliseconds, the base all derivation uses. */
|
|
66
|
+
const SAMPLE_INSTANT_MS = Date.parse(SAMPLE_INSTANT);
|
|
67
|
+
/**
|
|
68
|
+
* An ISO-8601 instant `deltaMs` after {@link SAMPLE_INSTANT} — the way a
|
|
69
|
+
* fixture expresses "2.4 seconds later" or "a day earlier" without authoring
|
|
70
|
+
* a second instant. `sampleInstant()` with no argument is the anchor itself.
|
|
71
|
+
*
|
|
72
|
+
* Prefer this over a hand-written literal even for values that never render:
|
|
73
|
+
* derivation keeps the whole fixture world moving together if the demo day is
|
|
74
|
+
* ever refreshed, and the tour gate rejects authored instant literals anyway.
|
|
75
|
+
*/
|
|
76
|
+
export function sampleInstant(deltaMs = 0) {
|
|
77
|
+
return new Date(SAMPLE_INSTANT_MS + deltaMs).toISOString();
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* {@link sampleInstant} as a `Date`, for APIs that take one (e.g. protobuf's
|
|
81
|
+
* `timestampFromDate`). Same instant, same derivation rule.
|
|
82
|
+
*/
|
|
83
|
+
export function sampleDate(deltaMs = 0) {
|
|
84
|
+
return new Date(SAMPLE_INSTANT_MS + deltaMs);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* When a default {@link samples.toolCall} completes: {@link SAMPLE_INSTANT}
|
|
88
|
+
* plus 1.2s, so the rendered duration chip reads a stable "1.2s" — long
|
|
89
|
+
* enough to never collapse to the "0ms" that two adjacent live clock reads
|
|
90
|
+
* used to produce.
|
|
91
|
+
*/
|
|
92
|
+
const SAMPLE_TOOL_CALL_COMPLETED_AT = sampleInstant(1_200);
|
|
93
|
+
// ---------------------------------------------------------------------------
|
|
28
94
|
// Resource factories
|
|
29
95
|
// ---------------------------------------------------------------------------
|
|
30
96
|
/**
|
|
@@ -32,17 +98,30 @@ import { SearchResponseSchema, SearchResultSchema, } from "@stigmer/protos/ai/st
|
|
|
32
98
|
*
|
|
33
99
|
* Each factory returns a realistic protobuf object with sensible defaults.
|
|
34
100
|
* Pass an overrides object to customize the most commonly-needed fields.
|
|
35
|
-
*
|
|
36
|
-
*
|
|
101
|
+
*
|
|
102
|
+
* Every timestamp is frozen at {@link SAMPLE_INSTANT} — these factories never
|
|
103
|
+
* read the live clock, so a fixture renders identical pixels on every browser
|
|
104
|
+
* replay and every video-export frame (scenar-cloud DD-006). Do not
|
|
105
|
+
* reintroduce `Date.now()` or `new Date()` here.
|
|
106
|
+
*
|
|
107
|
+
* For a value the overrides do not cover — a different timestamp, a distinct
|
|
108
|
+
* tool-call id — modify the returned object directly rather than growing the
|
|
109
|
+
* override surface: protobuf messages from `create()` are mutable plain
|
|
110
|
+
* objects. Timestamps derive from the anchor via {@link sampleInstant} rather
|
|
111
|
+
* than a hand-written literal, so the fixture world keeps a single clock.
|
|
37
112
|
*
|
|
38
113
|
* @example
|
|
39
114
|
* ```ts
|
|
40
|
-
* import { samples } from "@stigmer/react/test";
|
|
115
|
+
* import { samples, sampleInstant } from "@stigmer/react/test";
|
|
41
116
|
*
|
|
42
117
|
* const scenario = buildScenario(
|
|
43
118
|
* fixtures.session.get(() => samples.session({ subject: "My topic" })),
|
|
44
119
|
* fixtures.agent.getByReference(() => samples.agent({ name: "My Agent" })),
|
|
45
120
|
* );
|
|
121
|
+
*
|
|
122
|
+
* // Deeper customization — derive "5 seconds later" from the anchor:
|
|
123
|
+
* const later = samples.humanMessage("later");
|
|
124
|
+
* later.timestamp = sampleInstant(5_000);
|
|
46
125
|
* ```
|
|
47
126
|
*/
|
|
48
127
|
export const samples = {
|
|
@@ -213,48 +292,56 @@ export const samples = {
|
|
|
213
292
|
status: create(ApiKeyStatusSchema, {
|
|
214
293
|
audit: create(ApiResourceAuditSchema, {
|
|
215
294
|
specAudit: create(ApiResourceAuditInfoSchema, {
|
|
216
|
-
createdAt:
|
|
295
|
+
createdAt: timestampFromDate(new Date(o?.createdAt ?? SAMPLE_INSTANT)),
|
|
217
296
|
}),
|
|
218
297
|
}),
|
|
219
298
|
}),
|
|
220
299
|
});
|
|
221
300
|
},
|
|
222
301
|
// ---- Message & artifact primitives ----
|
|
223
|
-
/** A human (user) message. */
|
|
302
|
+
/** A human (user) message, stamped at {@link SAMPLE_INSTANT}. */
|
|
224
303
|
humanMessage(content) {
|
|
225
304
|
return create(AgentMessageSchema, {
|
|
226
305
|
type: MessageType.MESSAGE_HUMAN,
|
|
227
306
|
content,
|
|
228
|
-
timestamp:
|
|
307
|
+
timestamp: SAMPLE_INSTANT,
|
|
229
308
|
});
|
|
230
309
|
},
|
|
231
|
-
/** An AI (assistant) message, optionally with tool calls. */
|
|
310
|
+
/** An AI (assistant) message, optionally with tool calls, stamped at {@link SAMPLE_INSTANT}. */
|
|
232
311
|
aiMessage(content, toolCalls) {
|
|
233
312
|
return create(AgentMessageSchema, {
|
|
234
313
|
type: MessageType.MESSAGE_AI,
|
|
235
314
|
content,
|
|
236
|
-
timestamp:
|
|
315
|
+
timestamp: SAMPLE_INSTANT,
|
|
237
316
|
toolCalls: toolCalls ?? [],
|
|
238
317
|
});
|
|
239
318
|
},
|
|
240
|
-
/**
|
|
319
|
+
/**
|
|
320
|
+
* A completed tool call with a result, spanning {@link SAMPLE_INSTANT} to 1.2s
|
|
321
|
+
* later so its duration chip reads a stable "1.2s".
|
|
322
|
+
*
|
|
323
|
+
* The `id` is `tc-${name}`, derived from the name so it is stable across
|
|
324
|
+
* runs. Two tool calls sharing a name therefore share an id — if a single
|
|
325
|
+
* demo renders both and one drives an approval (`useApproval(toolCall.id)`),
|
|
326
|
+
* build the second by hand with a distinct id via `create(ToolCallSchema)`.
|
|
327
|
+
*/
|
|
241
328
|
toolCall(name, result) {
|
|
242
329
|
return create(ToolCallSchema, {
|
|
243
|
-
id: `tc-${name}
|
|
330
|
+
id: `tc-${name}`,
|
|
244
331
|
name,
|
|
245
332
|
result,
|
|
246
333
|
status: ToolCallStatus.TOOL_CALL_COMPLETED,
|
|
247
|
-
startedAt:
|
|
248
|
-
completedAt:
|
|
334
|
+
startedAt: SAMPLE_INSTANT,
|
|
335
|
+
completedAt: SAMPLE_TOOL_CALL_COMPLETED_AT,
|
|
249
336
|
});
|
|
250
337
|
},
|
|
251
|
-
/** A file artifact produced by an execution. */
|
|
338
|
+
/** A file artifact produced by an execution, stamped at {@link SAMPLE_INSTANT}. */
|
|
252
339
|
artifact(name, kind) {
|
|
253
340
|
return create(ExecutionArtifactSchema, {
|
|
254
341
|
name,
|
|
255
342
|
kind: kind ?? ExecutionArtifactKind.FILE,
|
|
256
343
|
storageKey: `demo-artifact-${name}`,
|
|
257
|
-
createdAt:
|
|
344
|
+
createdAt: SAMPLE_INSTANT,
|
|
258
345
|
});
|
|
259
346
|
},
|
|
260
347
|
// ---- List response factories ----
|
package/test/samples.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"samples.js","sourceRoot":"","sources":["../../src/test/samples.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAc,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,EACL,oBAAoB,EACpB,0BAA0B,GAE3B,MAAM,6DAA6D,CAAC;AACrE,OAAO,EACL,uBAAuB,GAExB,MAAM,kEAAkE,CAAC;AAC1E,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,WAAW,EACX,cAAc,GACf,MAAM,8DAA8D,CAAC;AACtE,OAAO,EACL,wBAAwB,GAEzB,MAAM,4DAA4D,CAAC;AACpE,OAAO,EACL,kBAAkB,EAClB,cAAc,GAGf,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AACxG,OAAO,EACL,mBAAmB,GAEpB,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6DAA6D,CAAC;AACtG,OAAO,EACL,iBAAiB,GAElB,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,YAAY,E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wB,EACxB,UAAmB;QAEnB,MAAM,KAAK,GAAG,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;QAClD,OAAO,MAAM,CAAC,oBAAoB,EAAE;YAClC,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,UAAU,IAAI,KAAK,CAAC,MAAM;YACtC,UAAU,EAAE,CAAC;SACd,CAAC,CAAC;IACL,CAAC;IAED,8DAA8D;IAC9D,UAAU,CAAC,OAAkB;QAC3B,MAAM,KAAK,GAAG,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QAC5C,OAAO,MAAM,CAAC,aAAa,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;IACnD,CAAC;IAED,oCAAoC;IACpC,YAAY,CAAC,CAAyB;QACpC,OAAO,MAAM,CAAC,kBAAkB,EAAE;YAChC,IAAI,EAAE,CAAC,EAAE,IAAI,IAAI,eAAe,CAAC,KAAK;YACtC,EAAE,EAAE,CAAC,EAAE,EAAE,IAAI,0CAA0C;YACvD,IAAI,EAAE,CAAC,EAAE,IAAI,IAAI,YAAY;YAC7B,IAAI,EAAE,CAAC,EAAE,IAAI,IAAI,YAAY;YAC7B,aAAa,EAAE,GAAG,CAAC,EAAE,GAAG,IAAI,MAAM,IAAI,CAAC,EAAE,IAAI,IAAI,YAAY,EAAE;YAC/D,GAAG,EAAE,CAAC,EAAE,GAAG,IAAI,MAAM;YACrB,WAAW,EAAE,CAAC,EAAE,WAAW,IAAI,sCAAsC;YACrE,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,CAAC,EAAE,OAAO,IAAI,EAAE;SAC1B,CAAC,CAAC;IACL,CAAC;CACO,CAAC"}
|
|
@@ -12,6 +12,8 @@ export interface UseWorkflowCountOptions {
|
|
|
12
12
|
* @default "org"
|
|
13
13
|
*/
|
|
14
14
|
readonly scope?: ResourceListScope;
|
|
15
|
+
/** Opaque token that forces a recount when its value changes. */
|
|
16
|
+
readonly refetchToken?: unknown;
|
|
15
17
|
}
|
|
16
18
|
/** Return value of {@link useWorkflowCount}. */
|
|
17
19
|
export interface UseWorkflowCountReturn {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkflowCount.d.ts","sourceRoot":"","sources":["../../src/workflow/useWorkflowCount.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoB,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE9E,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB;IACtC,sDAAsD;IACtD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;OAOG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"useWorkflowCount.d.ts","sourceRoot":"","sources":["../../src/workflow/useWorkflowCount.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoB,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE9E,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB;IACtC,sDAAsD;IACtD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;OAOG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC;IACnC,iEAAiE;IACjE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,gDAAgD;AAChD,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,iDAAiD;IACjD,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,mDAAmD;IACnD,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,GAAG,IAAI,EAClB,OAAO,CAAC,EAAE,uBAAuB,GAChC,sBAAsB,CAUxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkflowCount.js","sourceRoot":"","sources":["../../src/workflow/useWorkflowCount.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAA0B,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"useWorkflowCount.js","sourceRoot":"","sources":["../../src/workflow/useWorkflowCount.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAA0B,MAAM,oBAAoB,CAAC;AAkC9E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,gBAAgB,CAC9B,GAAkB,EAClB,OAAiC;IAEjC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAE7B,MAAM,MAAM,GAAG,WAAW,CACxB,CAAC,MAAmD,EAAE,EAAE,CACtD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAC/B,CAAC,OAAO,CAAC,CACV,CAAC;IAEF,OAAO,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC"}
|