@arbidocs/blocks 0.4.122 → 0.4.124
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/{StreamedArtifactEditor-IZWYNFMM.cjs → StreamedArtifactEditor-DNBDUNP2.cjs} +5 -5
- package/dist/{StreamedArtifactEditor-IZWYNFMM.cjs.map → StreamedArtifactEditor-DNBDUNP2.cjs.map} +1 -1
- package/dist/{StreamedArtifactEditor-HTNPG4NB.js → StreamedArtifactEditor-WDHPTWX7.js} +3 -3
- package/dist/{StreamedArtifactEditor-HTNPG4NB.js.map → StreamedArtifactEditor-WDHPTWX7.js.map} +1 -1
- package/dist/agents/index.cjs +390 -326
- package/dist/agents/index.js +9 -9
- package/dist/agents/tasks/ConversationListView.d.ts +2 -1
- package/dist/agents/tasks/ConversationTurnSpeaker.d.ts +3 -1
- package/dist/agents/tasks/TaskFlow.d.ts +17 -0
- package/dist/agents/tasks/ThreadLauncher.d.ts +51 -0
- package/dist/agents/tasks/ThreadStatusLine.d.ts +33 -0
- package/dist/agents/tasks/WorkflowRunStatus.d.ts +32 -0
- package/dist/agents/tasks/WorkflowThreadStrip.d.ts +29 -3
- package/dist/agents/tasks/compact-thread-activity.d.ts +5 -2
- package/dist/agents/tasks/index.d.ts +3 -0
- package/dist/agents/workflows/StepBarFrame.d.ts +18 -17
- package/dist/agents/workflows/StepChip.d.ts +37 -0
- package/dist/agents/workflows/StepDocuments.d.ts +64 -0
- package/dist/agents/workflows/WorkflowStepBar.d.ts +1 -2
- package/dist/agents/workflows/index.d.ts +2 -0
- package/dist/agents/workflows/stepKinds.d.ts +24 -0
- package/dist/artifacts/VersionTimeline.d.ts +7 -0
- package/dist/artifacts/index.cjs +21 -21
- package/dist/artifacts/index.js +1 -1
- package/dist/chat/ChatPage.d.ts +1 -1
- package/dist/chat/DraftingDocChip.d.ts +22 -0
- package/dist/chat/WorkflowStepChip.d.ts +23 -5
- package/dist/chat/chat-page-types.d.ts +18 -2
- package/dist/chat/flashMessage.d.ts +6 -0
- package/dist/chat/index.cjs +144 -131
- package/dist/chat/index.d.ts +2 -0
- package/dist/chat/index.js +4 -3
- package/dist/{chunk-SHASZLGD.js → chunk-3AV7HP6G.js} +3 -3
- package/dist/{chunk-SHASZLGD.js.map → chunk-3AV7HP6G.js.map} +1 -1
- package/dist/{chunk-UDK553WP.cjs → chunk-4VCKYR4D.cjs} +4 -4
- package/dist/{chunk-UDK553WP.cjs.map → chunk-4VCKYR4D.cjs.map} +1 -1
- package/dist/chunk-7HAM7Y5U.js +907 -0
- package/dist/chunk-7HAM7Y5U.js.map +1 -0
- package/dist/{chunk-TCNYKDYE.js → chunk-CXLVI3SB.js} +73 -40
- package/dist/chunk-CXLVI3SB.js.map +1 -0
- package/dist/{chunk-N7ARMX3O.cjs → chunk-D7WCGOD4.cjs} +3 -3
- package/dist/{chunk-N7ARMX3O.cjs.map → chunk-D7WCGOD4.cjs.map} +1 -1
- package/dist/{chunk-ZP4IFW2E.js → chunk-EJSJ27HV.js} +733 -185
- package/dist/chunk-EJSJ27HV.js.map +1 -0
- package/dist/{chunk-AY32GGKU.js → chunk-ERNMU6RV.js} +132 -752
- package/dist/chunk-ERNMU6RV.js.map +1 -0
- package/dist/{chunk-XFZ7HNPG.js → chunk-ETN5EZI4.js} +3 -3
- package/dist/{chunk-XFZ7HNPG.js.map → chunk-ETN5EZI4.js.map} +1 -1
- package/dist/{chunk-Z2NSU7D5.cjs → chunk-FL5TEBTM.cjs} +770 -216
- package/dist/chunk-FL5TEBTM.cjs.map +1 -0
- package/dist/chunk-HM23LXUP.cjs +976 -0
- package/dist/chunk-HM23LXUP.cjs.map +1 -0
- package/dist/{chunk-WN64RF46.js → chunk-HQH35JWC.js} +3 -3
- package/dist/{chunk-WN64RF46.js.map → chunk-HQH35JWC.js.map} +1 -1
- package/dist/{chunk-XSUOEJB3.cjs → chunk-MRURIBBB.cjs} +163 -837
- package/dist/chunk-MRURIBBB.cjs.map +1 -0
- package/dist/{chunk-65HZ36MY.js → chunk-OTDGTBAS.js} +20 -3
- package/dist/chunk-OTDGTBAS.js.map +1 -0
- package/dist/{chunk-CK4C3IQR.cjs → chunk-VMZXFYHK.cjs} +47 -6
- package/dist/chunk-VMZXFYHK.cjs.map +1 -0
- package/dist/{chunk-SVJQWLOF.cjs → chunk-W4GXDARU.cjs} +20 -3
- package/dist/chunk-W4GXDARU.cjs.map +1 -0
- package/dist/{chunk-US5ASM4G.cjs → chunk-WEUCLOBB.cjs} +5 -5
- package/dist/{chunk-US5ASM4G.cjs.map → chunk-WEUCLOBB.cjs.map} +1 -1
- package/dist/{chunk-S2KVJYBD.cjs → chunk-WV4IDVDQ.cjs} +76 -43
- package/dist/chunk-WV4IDVDQ.cjs.map +1 -0
- package/dist/{chunk-2FUJXMGO.js → chunk-Y4X3RBFI.js} +44 -6
- package/dist/{chunk-CK4C3IQR.cjs.map → chunk-Y4X3RBFI.js.map} +1 -1
- package/dist/collaboration/index.cjs +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/connect/docx.cjs +4 -4
- package/dist/connect/docx.js +3 -3
- package/dist/connect/index.cjs +68 -51
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +37 -20
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/WorkflowRunThread.d.ts +4 -4
- package/dist/connection/ai.d.ts +2 -0
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +3 -3
- package/dist/index.cjs +728 -652
- package/dist/index.js +16 -16
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +1 -1
- package/dist/shell/index.cjs +10 -10
- package/dist/shell/index.js +2 -2
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +6 -5
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +5 -4
- package/dist/studio/index.js.map +1 -1
- package/dist/workflow-canvas/WorkflowCanvas.d.ts +0 -9
- package/dist/workflow-canvas/edit.d.ts +2 -11
- package/dist/workflow-canvas/index.cjs +63 -87
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +14 -38
- package/dist/workflow-canvas/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +25 -13
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +3 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +3 -1
- package/node_modules/@arbidocs/coedit/dist/commands.js +25 -14
- package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/src/blocks.css +168 -0
- package/src/workflow-canvas/canvas.css +2 -40
- package/dist/chunk-2FUJXMGO.js.map +0 -1
- package/dist/chunk-65HZ36MY.js.map +0 -1
- package/dist/chunk-AY32GGKU.js.map +0 -1
- package/dist/chunk-B4SRYJLM.cjs +0 -107
- package/dist/chunk-B4SRYJLM.cjs.map +0 -1
- package/dist/chunk-HOXKR26S.js +0 -103
- package/dist/chunk-HOXKR26S.js.map +0 -1
- package/dist/chunk-S2KVJYBD.cjs.map +0 -1
- package/dist/chunk-SVJQWLOF.cjs.map +0 -1
- package/dist/chunk-TCNYKDYE.js.map +0 -1
- package/dist/chunk-XSUOEJB3.cjs.map +0 -1
- package/dist/chunk-Z2NSU7D5.cjs.map +0 -1
- package/dist/chunk-ZP4IFW2E.js.map +0 -1
package/dist/artifacts/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkW4GXDARU_cjs = require('../chunk-W4GXDARU.cjs');
|
|
5
5
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
6
6
|
require('../chunk-MHVNT4J3.cjs');
|
|
7
7
|
require('../chunk-DES3K4SD.cjs');
|
|
@@ -10,83 +10,83 @@ require('../chunk-DES3K4SD.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "ArtifactCompareBar", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkW4GXDARU_cjs.ArtifactCompareBar; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "ArtifactEditor", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkW4GXDARU_cjs.ArtifactEditor; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ArtifactEditorBody", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkW4GXDARU_cjs.ArtifactEditorBody; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ArtifactRedlineView", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkW4GXDARU_cjs.ArtifactRedlineView; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "ArtifactToolbar", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkW4GXDARU_cjs.ArtifactToolbar; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "ArtifactVersionBar", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkW4GXDARU_cjs.ArtifactVersionBar; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "DEFAULT_ARTIFACT_COMPARE_BAR_LABELS", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkW4GXDARU_cjs.DEFAULT_ARTIFACT_COMPARE_BAR_LABELS; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "DEFAULT_ARTIFACT_EDITOR_STATUS_LABELS", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkW4GXDARU_cjs.DEFAULT_ARTIFACT_EDITOR_STATUS_LABELS; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "DEFAULT_ARTIFACT_TOOLBAR_LABELS", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkW4GXDARU_cjs.DEFAULT_ARTIFACT_TOOLBAR_LABELS; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "DEFAULT_ARTIFACT_VERSION_BAR_LABELS", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkW4GXDARU_cjs.DEFAULT_ARTIFACT_VERSION_BAR_LABELS; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "DEFAULT_REDLINE_LABELS", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkW4GXDARU_cjs.DEFAULT_REDLINE_LABELS; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "DEFAULT_VERSION_TIMELINE_LABELS", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkW4GXDARU_cjs.DEFAULT_VERSION_TIMELINE_LABELS; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "RedlineComputing", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkW4GXDARU_cjs.RedlineComputing; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "RedlineDocument", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkW4GXDARU_cjs.RedlineDocument; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "RedlineFrame", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkW4GXDARU_cjs.RedlineFrame; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "RedlineHeader", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkW4GXDARU_cjs.RedlineHeader; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "RedlineMark", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkW4GXDARU_cjs.RedlineMark; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "RedlineRevertGutter", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkW4GXDARU_cjs.RedlineRevertGutter; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "RedlineStatus", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkW4GXDARU_cjs.RedlineStatus; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "VersionTimeline", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkW4GXDARU_cjs.VersionTimeline; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "DEFAULT_STREAMED_ARTIFACT_FRAME_LABELS", {
|
|
92
92
|
enumerable: true,
|
package/dist/artifacts/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { ArtifactCompareBar, ArtifactEditor, ArtifactEditorBody, ArtifactRedlineView, ArtifactToolbar, ArtifactVersionBar, DEFAULT_ARTIFACT_COMPARE_BAR_LABELS, DEFAULT_ARTIFACT_EDITOR_STATUS_LABELS, DEFAULT_ARTIFACT_TOOLBAR_LABELS, DEFAULT_ARTIFACT_VERSION_BAR_LABELS, DEFAULT_REDLINE_LABELS, DEFAULT_VERSION_TIMELINE_LABELS, RedlineComputing, RedlineDocument, RedlineFrame, RedlineHeader, RedlineMark, RedlineRevertGutter, RedlineStatus, VersionTimeline } from '../chunk-
|
|
2
|
+
export { ArtifactCompareBar, ArtifactEditor, ArtifactEditorBody, ArtifactRedlineView, ArtifactToolbar, ArtifactVersionBar, DEFAULT_ARTIFACT_COMPARE_BAR_LABELS, DEFAULT_ARTIFACT_EDITOR_STATUS_LABELS, DEFAULT_ARTIFACT_TOOLBAR_LABELS, DEFAULT_ARTIFACT_VERSION_BAR_LABELS, DEFAULT_REDLINE_LABELS, DEFAULT_VERSION_TIMELINE_LABELS, RedlineComputing, RedlineDocument, RedlineFrame, RedlineHeader, RedlineMark, RedlineRevertGutter, RedlineStatus, VersionTimeline } from '../chunk-OTDGTBAS.js';
|
|
3
3
|
export { DEFAULT_STREAMED_ARTIFACT_FRAME_LABELS, StreamedArtifactFrame } from '../chunk-LOJVUGBJ.js';
|
|
4
4
|
import '../chunk-7F6CBP3Z.js';
|
|
5
5
|
import '../chunk-VUNV25KB.js';
|
package/dist/chat/ChatPage.d.ts
CHANGED
|
@@ -16,4 +16,4 @@ import { type ChatPageProps } from './chat-page-types';
|
|
|
16
16
|
* With `surface="page"` it claims the page-chat slot, so `useChatSurface()` tells the host's dock
|
|
17
17
|
* to yield: one chat on screen, never two.
|
|
18
18
|
*/
|
|
19
|
-
export declare function ChatPage({ chat, surface, header, headerActions, aside, prompts, documentsRequired, emptyTitle, emptyDescription, identity, renderContent, onOpenCitation,
|
|
19
|
+
export declare function ChatPage({ chat, surface, header, headerActions, aside, prompts, documentsRequired, emptyTitle, emptyDescription, identity, renderContent, onOpenCitation, workflowStepOf, singleThread, targetMessageId, asideBreakpoint, fillHeight, minHeight, compactHeader, accept, labels, className, testIds, }: ChatPageProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Every fixed string of the chip. Pass a partial `labels` to translate or reword. */
|
|
2
|
+
export interface DraftingDocChipLabels {
|
|
3
|
+
/** `{title}` is the open document's name. */
|
|
4
|
+
drafting: string;
|
|
5
|
+
/** What it means, on hover. */
|
|
6
|
+
hint: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DEFAULT_DRAFTING_DOC_CHIP_LABELS: DraftingDocChipLabels;
|
|
9
|
+
export interface DraftingDocChipProps {
|
|
10
|
+
/** The document open beside the chat (the one the assistant drafts in). */
|
|
11
|
+
title: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
labels?: Partial<DraftingDocChipLabels>;
|
|
14
|
+
testId?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Drafting mode, said in the composer: the document open beside the chat is the one the assistant
|
|
18
|
+
* works in — it reads it on demand and edits it granularly as tracked changes, never as a whole
|
|
19
|
+
* document resent each turn (that is what a pin is for). Not removable: closing the document ends
|
|
20
|
+
* it.
|
|
21
|
+
*/
|
|
22
|
+
export declare function DraftingDocChip({ title, className, labels, testId, }: DraftingDocChipProps): import("react").JSX.Element;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A message the server sent to start a workflow's step, shown as that step:
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* A message the server sent to start a workflow's step, shown as that step: centred in the chat
|
|
3
|
+
* like the thread's other events, as the same chip the thread's top bar draws (`StepChip`: the
|
|
4
|
+
* step's kind in its colour and icon, its phase), between two lines in that colour. It expands to
|
|
5
|
+
* the full instruction. Any chat that knows a message's step (its `tools.workflow_step`) renders
|
|
6
|
+
* this instead of the raw instruction.
|
|
5
7
|
*/
|
|
8
|
+
import { type WorkflowStepKind } from '../agents/workflows/stepKinds';
|
|
9
|
+
import type { WorkflowStepPhase } from '../agents/workflows/run';
|
|
6
10
|
export interface WorkflowStepChipLabels {
|
|
7
|
-
/** `{title}` is the step's title (its id when the title is not known). */
|
|
11
|
+
/** The chip's text; `{title}` is the step's title (its id when the title is not known). */
|
|
8
12
|
chip: string;
|
|
13
|
+
/** Its accessible name; `{kind}` and `{title}` are replaced. */
|
|
14
|
+
name: string;
|
|
9
15
|
show: string;
|
|
10
16
|
hide: string;
|
|
17
|
+
kinds: Record<WorkflowStepKind, string>;
|
|
11
18
|
}
|
|
12
19
|
export declare const DEFAULT_WORKFLOW_STEP_CHIP_LABELS: WorkflowStepChipLabels;
|
|
13
20
|
export interface WorkflowStepChipProps {
|
|
@@ -15,10 +22,21 @@ export interface WorkflowStepChipProps {
|
|
|
15
22
|
step: string;
|
|
16
23
|
/** The step's title, when the host knows it (from the run's plan). */
|
|
17
24
|
title?: string;
|
|
25
|
+
/** The step's kind (`stepKindOf`), for its colour and icon; unknown = an AI step. */
|
|
26
|
+
kind?: WorkflowStepKind;
|
|
27
|
+
/** Where the step is now (`stepPhase`); unknown = started. */
|
|
28
|
+
phase?: WorkflowStepPhase;
|
|
29
|
+
/** The step's document (its latest version): a button beside the chip opens it. */
|
|
30
|
+
document?: {
|
|
31
|
+
name: string;
|
|
32
|
+
onOpen: () => void;
|
|
33
|
+
};
|
|
18
34
|
/** The instruction the step sent. */
|
|
19
35
|
content: string;
|
|
36
|
+
/** The message it stands for: the chat scrolls to it by this id. */
|
|
37
|
+
messageId?: string;
|
|
20
38
|
labels?: Partial<WorkflowStepChipLabels>;
|
|
21
39
|
className?: string;
|
|
22
40
|
testId?: string;
|
|
23
41
|
}
|
|
24
|
-
export declare function WorkflowStepChip({ step, title, content, labels, className, testId, }: WorkflowStepChipProps): import("react").JSX.Element;
|
|
42
|
+
export declare function WorkflowStepChip({ step, title, kind, phase, document, content, messageId, labels, className, testId, }: WorkflowStepChipProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import type { WorkflowStepKind } from '../agents/workflows/stepKinds';
|
|
3
|
+
import type { WorkflowStepPhase } from '../agents/workflows/run';
|
|
2
4
|
import type { MentionCandidate, MessageMentionRef } from './mentions';
|
|
3
5
|
/**
|
|
4
6
|
* The view-model of a chat page. It is the shape `useArbiChat()` from `@arbidocs/react` returns,
|
|
@@ -177,8 +179,11 @@ export interface ChatPageProps {
|
|
|
177
179
|
* shows the source and passage and offers no open action.
|
|
178
180
|
*/
|
|
179
181
|
onOpenCitation?: (target: ChatCitationTarget) => void;
|
|
180
|
-
/**
|
|
181
|
-
|
|
182
|
+
/**
|
|
183
|
+
* A workflow step by id — its title, kind and phase: a message that started a step shows as that
|
|
184
|
+
* step's chip, as the thread's bar draws it (else its id, as an AI step).
|
|
185
|
+
*/
|
|
186
|
+
workflowStepOf?: (stepId: string) => WorkflowStepView | undefined;
|
|
182
187
|
/**
|
|
183
188
|
* Container width, in rem, from which `aside` is a column beside the chat; narrower, it is a
|
|
184
189
|
* button-toggled panel over the transcript. Default 60.
|
|
@@ -215,3 +220,14 @@ export interface ChatPageProps {
|
|
|
215
220
|
aside: string;
|
|
216
221
|
}>;
|
|
217
222
|
}
|
|
223
|
+
/** A workflow step as a chat shows it: its title, kind and where it is. */
|
|
224
|
+
export interface WorkflowStepView {
|
|
225
|
+
title?: string;
|
|
226
|
+
kind?: WorkflowStepKind;
|
|
227
|
+
phase?: WorkflowStepPhase;
|
|
228
|
+
/** The step's document (its latest version): opened from beside its chip. */
|
|
229
|
+
document?: {
|
|
230
|
+
name: string;
|
|
231
|
+
onOpen: () => void;
|
|
232
|
+
};
|
|
233
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mark the message a link took the reader to: a brief, gentle highlight on the message itself (on
|
|
3
|
+
* the theme's accent and ring, `[data-deep-link-target]` in `blocks.css`) that fades out and
|
|
4
|
+
* removes itself, so nothing is left tinted afterwards.
|
|
5
|
+
*/
|
|
6
|
+
export declare function flashMessage(el: Element): void;
|