@arbidocs/blocks 0.4.16 → 0.4.18
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/agents/index.cjs +369 -171
- package/dist/agents/index.js +4 -2
- package/dist/agents/tasks/DueDateMenu.d.ts +32 -0
- package/dist/agents/tasks/NewThreadDialog.d.ts +53 -0
- package/dist/agents/tasks/PersonPill.d.ts +22 -0
- package/dist/agents/tasks/PillSelect.d.ts +39 -0
- package/dist/agents/tasks/TaskActivityDialog.d.ts +14 -0
- package/dist/agents/tasks/TaskActivityTimeline.d.ts +54 -0
- package/dist/agents/tasks/TaskComposer.d.ts +6 -106
- package/dist/agents/tasks/TaskMoveDialog.d.ts +25 -0
- package/dist/agents/tasks/TaskOutputsCell.d.ts +23 -0
- package/dist/agents/tasks/TaskPlan.d.ts +4 -2
- package/dist/agents/tasks/TaskReviewActions.d.ts +44 -0
- package/dist/agents/tasks/TaskRowMenu.d.ts +28 -0
- package/dist/agents/tasks/TaskStatusPill.d.ts +24 -0
- package/dist/agents/tasks/TaskTable.d.ts +99 -0
- package/dist/agents/tasks/TaskThreadChip.d.ts +19 -0
- package/dist/agents/tasks/TaskTriggerChip.d.ts +24 -0
- package/dist/agents/tasks/TasksChrome.d.ts +17 -17
- package/dist/agents/tasks/WorkflowComposer.d.ts +10 -0
- package/dist/agents/tasks/WorkflowsTable.d.ts +72 -0
- package/dist/agents/tasks/gridWidth.d.ts +11 -0
- package/dist/agents/tasks/index.d.ts +23 -7
- package/dist/agents/tasks/taskColumns.d.ts +39 -63
- package/dist/agents/tasks/taskComposerTypes.d.ts +217 -0
- package/dist/agents/tasks/taskLabels.d.ts +27 -10
- package/dist/agents/tasks/taskRequest.d.ts +151 -25
- package/dist/agents/tasks/taskRows.d.ts +111 -0
- package/dist/agents/tasks/taskTableLabels.d.ts +64 -0
- package/dist/agents/tasks/workflowColumns.d.ts +23 -0
- package/dist/agents/tasks/workflowRows.d.ts +44 -0
- package/dist/agents/tasks/workflowTableLabels.d.ts +53 -0
- package/dist/agents/workflows/WorkflowConfigDialog.d.ts +5 -0
- package/dist/agents/workflows/index.d.ts +1 -0
- package/dist/agents/workflows/scopeRender.d.ts +10 -0
- package/dist/agents/workflows/types.d.ts +2 -0
- package/dist/chat/AssistantModeToggle.d.ts +25 -0
- package/dist/chat/MentionMenu.d.ts +52 -0
- package/dist/chat/index.cjs +119 -63
- package/dist/chat/index.d.ts +4 -0
- package/dist/chat/index.js +1 -1
- package/dist/chat/mentions.d.ts +64 -0
- package/dist/chat/useMentionAutocomplete.d.ts +33 -0
- package/dist/{chunk-IMA6I73C.js → chunk-ABSII3ND.js} +336 -4
- package/dist/chunk-ABSII3ND.js.map +1 -0
- package/dist/{chunk-22T6KHGB.cjs → chunk-C2V6HQKG.cjs} +348 -2
- package/dist/chunk-C2V6HQKG.cjs.map +1 -0
- package/dist/{chunk-CVFBSUXL.js → chunk-F3F56LOR.js} +4227 -851
- package/dist/chunk-F3F56LOR.js.map +1 -0
- package/dist/chunk-IC2VHFWR.js +158 -0
- package/dist/chunk-IC2VHFWR.js.map +1 -0
- package/dist/{chunk-D6XY3C4O.cjs → chunk-JGZTRLKL.cjs} +207 -139
- package/dist/chunk-JGZTRLKL.cjs.map +1 -0
- package/dist/{chunk-H7OD4CHN.js → chunk-NUPVHEJW.js} +208 -140
- package/dist/chunk-NUPVHEJW.js.map +1 -0
- package/dist/{chunk-67HGXV4I.cjs → chunk-TP7JJAXZ.cjs} +4280 -855
- package/dist/chunk-TP7JJAXZ.cjs.map +1 -0
- package/dist/chunk-ZPERNIMP.cjs +162 -0
- package/dist/chunk-ZPERNIMP.cjs.map +1 -0
- package/dist/connection/ai.d.ts +4 -1
- package/dist/facts/FactRowActions.d.ts +5 -1
- package/dist/facts/factColumns.d.ts +1 -1
- package/dist/facts/index.cjs +19 -10
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.js +14 -5
- package/dist/facts/index.js.map +1 -1
- package/dist/files/GridView.d.ts +5 -0
- package/dist/files/index.cjs +18 -18
- package/dist/files/index.js +4 -5
- package/dist/files/index.js.map +1 -1
- package/dist/index.cjs +549 -297
- package/dist/index.js +8 -8
- package/dist/settings/ConversationSettingsParts.d.ts +5 -1
- package/dist/settings/index.cjs +8 -3
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.js +8 -3
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/site/index.cjs +12 -12
- package/dist/site/index.js +2 -2
- package/dist/studio/index.cjs +1 -1
- package/dist/studio/index.js +1 -1
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.js +1 -1
- package/dist/workspaces/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/agents/tasks/LiveRunsBanner.d.ts +0 -26
- package/dist/agents/tasks/TaskRowActions.d.ts +0 -43
- package/dist/chunk-22T6KHGB.cjs.map +0 -1
- package/dist/chunk-67HGXV4I.cjs.map +0 -1
- package/dist/chunk-CVFBSUXL.js.map +0 -1
- package/dist/chunk-D6XY3C4O.cjs.map +0 -1
- package/dist/chunk-H7OD4CHN.js.map +0 -1
- package/dist/chunk-IMA6I73C.js.map +0 -1
- package/dist/chunk-NUNKSZKU.js +0 -203
- package/dist/chunk-NUNKSZKU.js.map +0 -1
- package/dist/chunk-V4ISCZJ7.cjs +0 -207
- package/dist/chunk-V4ISCZJ7.cjs.map +0 -1
package/dist/chat/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkC2V6HQKG_cjs = require('../chunk-C2V6HQKG.cjs');
|
|
5
5
|
require('../chunk-TO4FAMQP.cjs');
|
|
6
6
|
require('../chunk-FX3K6LNZ.cjs');
|
|
7
7
|
var chunkPRVKJ5XL_cjs = require('../chunk-PRVKJ5XL.cjs');
|
|
@@ -12,253 +12,309 @@ require('../chunk-MHVNT4J3.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
Object.defineProperty(exports, "AssistantModeToggle", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkC2V6HQKG_cjs.AssistantModeToggle; }
|
|
18
|
+
});
|
|
15
19
|
Object.defineProperty(exports, "AssistantToaster", {
|
|
16
20
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkC2V6HQKG_cjs.AssistantToaster; }
|
|
18
22
|
});
|
|
19
23
|
Object.defineProperty(exports, "BranchControls", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkC2V6HQKG_cjs.BranchControls; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "ComposerAccessories", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkC2V6HQKG_cjs.ComposerAccessories; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "ComposerTools", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkC2V6HQKG_cjs.ComposerTools; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "ContextActionButton", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkC2V6HQKG_cjs.ContextActionButton; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "ContextCheckRow", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkC2V6HQKG_cjs.ContextCheckRow; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "ContextPanelContent", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkC2V6HQKG_cjs.ContextPanelContent; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "ContextPanelFooter", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkC2V6HQKG_cjs.ContextPanelFooter; }
|
|
46
50
|
});
|
|
47
51
|
Object.defineProperty(exports, "ContextPanelTabs", {
|
|
48
52
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkC2V6HQKG_cjs.ContextPanelTabs; }
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(exports, "ContextPickerList", {
|
|
52
56
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkC2V6HQKG_cjs.ContextPickerList; }
|
|
54
58
|
});
|
|
55
59
|
Object.defineProperty(exports, "ContextPickerRow", {
|
|
56
60
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkC2V6HQKG_cjs.ContextPickerRow; }
|
|
58
62
|
});
|
|
59
63
|
Object.defineProperty(exports, "ContextSearchInput", {
|
|
60
64
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkC2V6HQKG_cjs.ContextSearchInput; }
|
|
62
66
|
});
|
|
63
67
|
Object.defineProperty(exports, "ContextSelectList", {
|
|
64
68
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkC2V6HQKG_cjs.ContextSelectList; }
|
|
66
70
|
});
|
|
67
71
|
Object.defineProperty(exports, "ContextSelectRow", {
|
|
68
72
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkC2V6HQKG_cjs.ContextSelectRow; }
|
|
70
74
|
});
|
|
71
75
|
Object.defineProperty(exports, "Conversation", {
|
|
72
76
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkC2V6HQKG_cjs.Conversation; }
|
|
74
78
|
});
|
|
75
79
|
Object.defineProperty(exports, "ConversationBody", {
|
|
76
80
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkC2V6HQKG_cjs.ConversationBody; }
|
|
78
82
|
});
|
|
79
83
|
Object.defineProperty(exports, "ConversationHeader", {
|
|
80
84
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkC2V6HQKG_cjs.ConversationHeader; }
|
|
82
86
|
});
|
|
83
87
|
Object.defineProperty(exports, "ConversationHeaderActions", {
|
|
84
88
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkC2V6HQKG_cjs.ConversationHeaderActions; }
|
|
86
90
|
});
|
|
87
91
|
Object.defineProperty(exports, "ConversationHistoryPane", {
|
|
88
92
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkC2V6HQKG_cjs.ConversationHistoryPane; }
|
|
90
94
|
});
|
|
91
95
|
Object.defineProperty(exports, "ConversationLoading", {
|
|
92
96
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkC2V6HQKG_cjs.ConversationLoading; }
|
|
94
98
|
});
|
|
95
99
|
Object.defineProperty(exports, "ConversationMain", {
|
|
96
100
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkC2V6HQKG_cjs.ConversationMain; }
|
|
98
102
|
});
|
|
99
103
|
Object.defineProperty(exports, "ConversationRoot", {
|
|
100
104
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkC2V6HQKG_cjs.ConversationRoot; }
|
|
102
106
|
});
|
|
103
107
|
Object.defineProperty(exports, "ConversationSearchView", {
|
|
104
108
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkC2V6HQKG_cjs.ConversationSearchView; }
|
|
106
110
|
});
|
|
107
111
|
Object.defineProperty(exports, "ConversationSettingsButton", {
|
|
108
112
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkC2V6HQKG_cjs.ConversationSettingsButton; }
|
|
114
|
+
});
|
|
115
|
+
Object.defineProperty(exports, "DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS", {
|
|
116
|
+
enumerable: true,
|
|
117
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS; }
|
|
110
118
|
});
|
|
111
119
|
Object.defineProperty(exports, "DEFAULT_BRANCH_CONTROLS_LABELS", {
|
|
112
120
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_BRANCH_CONTROLS_LABELS; }
|
|
114
122
|
});
|
|
115
123
|
Object.defineProperty(exports, "DEFAULT_CONVERSATION_LAYOUT_LABELS", {
|
|
116
124
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_CONVERSATION_LAYOUT_LABELS; }
|
|
118
126
|
});
|
|
119
127
|
Object.defineProperty(exports, "DEFAULT_CONVERSATION_PARTS_LABELS", {
|
|
120
128
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_CONVERSATION_PARTS_LABELS; }
|
|
122
130
|
});
|
|
123
131
|
Object.defineProperty(exports, "DEFAULT_CONVERSATION_SEARCH_LABELS", {
|
|
124
132
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_CONVERSATION_SEARCH_LABELS; }
|
|
126
134
|
});
|
|
127
135
|
Object.defineProperty(exports, "DEFAULT_LABEL_PIN_ROW_LABELS", {
|
|
128
136
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_LABEL_PIN_ROW_LABELS; }
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(exports, "DEFAULT_MENTION_LABELS", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_MENTION_LABELS; }
|
|
130
142
|
});
|
|
131
143
|
Object.defineProperty(exports, "DEFAULT_MODEL_PRICING_TIP_LABELS", {
|
|
132
144
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_MODEL_PRICING_TIP_LABELS; }
|
|
134
146
|
});
|
|
135
147
|
Object.defineProperty(exports, "DEFAULT_PENDING_ANSWER_BAR_LABELS", {
|
|
136
148
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_PENDING_ANSWER_BAR_LABELS; }
|
|
138
150
|
});
|
|
139
151
|
Object.defineProperty(exports, "DEFAULT_PINNED_DOC_CHIP_LABELS", {
|
|
140
152
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_PINNED_DOC_CHIP_LABELS; }
|
|
142
154
|
});
|
|
143
155
|
Object.defineProperty(exports, "DEFAULT_SLASH_MENU_LABELS", {
|
|
144
156
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_SLASH_MENU_LABELS; }
|
|
146
158
|
});
|
|
147
159
|
Object.defineProperty(exports, "DEFAULT_THREAD_MAP_LABELS", {
|
|
148
160
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkC2V6HQKG_cjs.DEFAULT_THREAD_MAP_LABELS; }
|
|
150
162
|
});
|
|
151
163
|
Object.defineProperty(exports, "LabelPinRow", {
|
|
152
164
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkC2V6HQKG_cjs.LabelPinRow; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "MENTION_HREF_PREFIX", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return chunkC2V6HQKG_cjs.MENTION_HREF_PREFIX; }
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, "MentionChip", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return chunkC2V6HQKG_cjs.MentionChip; }
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "MentionMenu", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () { return chunkC2V6HQKG_cjs.MentionMenu; }
|
|
154
178
|
});
|
|
155
179
|
Object.defineProperty(exports, "ModelAutoIcon", {
|
|
156
180
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelAutoIcon; }
|
|
158
182
|
});
|
|
159
183
|
Object.defineProperty(exports, "ModelConfigureButton", {
|
|
160
184
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelConfigureButton; }
|
|
162
186
|
});
|
|
163
187
|
Object.defineProperty(exports, "ModelDot", {
|
|
164
188
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelDot; }
|
|
166
190
|
});
|
|
167
191
|
Object.defineProperty(exports, "ModelMenuDivider", {
|
|
168
192
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelMenuDivider; }
|
|
170
194
|
});
|
|
171
195
|
Object.defineProperty(exports, "ModelMenuMessage", {
|
|
172
196
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelMenuMessage; }
|
|
174
198
|
});
|
|
175
199
|
Object.defineProperty(exports, "ModelOption", {
|
|
176
200
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelOption; }
|
|
178
202
|
});
|
|
179
203
|
Object.defineProperty(exports, "ModelOptionLabel", {
|
|
180
204
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelOptionLabel; }
|
|
182
206
|
});
|
|
183
207
|
Object.defineProperty(exports, "ModelPickerPopover", {
|
|
184
208
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelPickerPopover; }
|
|
186
210
|
});
|
|
187
211
|
Object.defineProperty(exports, "ModelPickerTrigger", {
|
|
188
212
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelPickerTrigger; }
|
|
190
214
|
});
|
|
191
215
|
Object.defineProperty(exports, "ModelPricingTip", {
|
|
192
216
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelPricingTip; }
|
|
194
218
|
});
|
|
195
219
|
Object.defineProperty(exports, "ModelTierIcon", {
|
|
196
220
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelTierIcon; }
|
|
198
222
|
});
|
|
199
223
|
Object.defineProperty(exports, "ModelTierOption", {
|
|
200
224
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelTierOption; }
|
|
202
226
|
});
|
|
203
227
|
Object.defineProperty(exports, "ModelTriggerContent", {
|
|
204
228
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkC2V6HQKG_cjs.ModelTriggerContent; }
|
|
206
230
|
});
|
|
207
231
|
Object.defineProperty(exports, "NewChatButton", {
|
|
208
232
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkC2V6HQKG_cjs.NewChatButton; }
|
|
210
234
|
});
|
|
211
235
|
Object.defineProperty(exports, "NewPaChatButton", {
|
|
212
236
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkC2V6HQKG_cjs.NewPaChatButton; }
|
|
214
238
|
});
|
|
215
239
|
Object.defineProperty(exports, "PaModeBadge", {
|
|
216
240
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkC2V6HQKG_cjs.PaModeBadge; }
|
|
218
242
|
});
|
|
219
243
|
Object.defineProperty(exports, "PendingAnswerBar", {
|
|
220
244
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkC2V6HQKG_cjs.PendingAnswerBar; }
|
|
222
246
|
});
|
|
223
247
|
Object.defineProperty(exports, "PinnedDocChip", {
|
|
224
248
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkC2V6HQKG_cjs.PinnedDocChip; }
|
|
226
250
|
});
|
|
227
251
|
Object.defineProperty(exports, "SlashMenu", {
|
|
228
252
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkC2V6HQKG_cjs.SlashMenu; }
|
|
230
254
|
});
|
|
231
255
|
Object.defineProperty(exports, "ThreadMap", {
|
|
232
256
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkC2V6HQKG_cjs.ThreadMap; }
|
|
234
258
|
});
|
|
235
259
|
Object.defineProperty(exports, "ThreadMapDiagram", {
|
|
236
260
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkC2V6HQKG_cjs.ThreadMapDiagram; }
|
|
238
262
|
});
|
|
239
263
|
Object.defineProperty(exports, "ThreadMapError", {
|
|
240
264
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkC2V6HQKG_cjs.ThreadMapError; }
|
|
242
266
|
});
|
|
243
267
|
Object.defineProperty(exports, "ThreadMapLoading", {
|
|
244
268
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkC2V6HQKG_cjs.ThreadMapLoading; }
|
|
270
|
+
});
|
|
271
|
+
Object.defineProperty(exports, "extractMentions", {
|
|
272
|
+
enumerable: true,
|
|
273
|
+
get: function () { return chunkC2V6HQKG_cjs.extractMentions; }
|
|
274
|
+
});
|
|
275
|
+
Object.defineProperty(exports, "filterMentionCandidates", {
|
|
276
|
+
enumerable: true,
|
|
277
|
+
get: function () { return chunkC2V6HQKG_cjs.filterMentionCandidates; }
|
|
278
|
+
});
|
|
279
|
+
Object.defineProperty(exports, "findMentionQuery", {
|
|
280
|
+
enumerable: true,
|
|
281
|
+
get: function () { return chunkC2V6HQKG_cjs.findMentionQuery; }
|
|
282
|
+
});
|
|
283
|
+
Object.defineProperty(exports, "insertMention", {
|
|
284
|
+
enumerable: true,
|
|
285
|
+
get: function () { return chunkC2V6HQKG_cjs.insertMention; }
|
|
246
286
|
});
|
|
247
287
|
Object.defineProperty(exports, "isLongPastedText", {
|
|
248
288
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkC2V6HQKG_cjs.isLongPastedText; }
|
|
290
|
+
});
|
|
291
|
+
Object.defineProperty(exports, "linkMentions", {
|
|
292
|
+
enumerable: true,
|
|
293
|
+
get: function () { return chunkC2V6HQKG_cjs.linkMentions; }
|
|
294
|
+
});
|
|
295
|
+
Object.defineProperty(exports, "mentionFromHref", {
|
|
296
|
+
enumerable: true,
|
|
297
|
+
get: function () { return chunkC2V6HQKG_cjs.mentionFromHref; }
|
|
298
|
+
});
|
|
299
|
+
Object.defineProperty(exports, "toMessageMentions", {
|
|
300
|
+
enumerable: true,
|
|
301
|
+
get: function () { return chunkC2V6HQKG_cjs.toMessageMentions; }
|
|
250
302
|
});
|
|
251
303
|
Object.defineProperty(exports, "useDismissibleCard", {
|
|
252
304
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunkC2V6HQKG_cjs.useDismissibleCard; }
|
|
254
306
|
});
|
|
255
307
|
Object.defineProperty(exports, "useListKeyNav", {
|
|
256
308
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunkC2V6HQKG_cjs.useListKeyNav; }
|
|
258
310
|
});
|
|
259
311
|
Object.defineProperty(exports, "useLongPaste", {
|
|
260
312
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunkC2V6HQKG_cjs.useLongPaste; }
|
|
314
|
+
});
|
|
315
|
+
Object.defineProperty(exports, "useMentionAutocomplete", {
|
|
316
|
+
enumerable: true,
|
|
317
|
+
get: function () { return chunkC2V6HQKG_cjs.useMentionAutocomplete; }
|
|
262
318
|
});
|
|
263
319
|
Object.defineProperty(exports, "AssistantDock", {
|
|
264
320
|
enumerable: true,
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ export { MessageList, MessageListRoot, MessageListEmpty, MessageListStatus, Mess
|
|
|
4
4
|
export { useStreamAnnouncement, toSpeakableText, type UseStreamAnnouncementOptions, } from './useStreamAnnouncement';
|
|
5
5
|
export { Composer, ComposerRoot, ComposerBranchingNotice, ComposerFrame, ComposerInput, ComposerToolbar, ComposerSend, ComposerVoiceButton, ComposerContainer, ComposerDock, ScrollToBottom, DEFAULT_COMPOSER_LABELS, type ComposerLabels, type ComposerBranchingNoticeProps, type ComposerRootProps, type ComposerInputProps, type ComposerToolbarProps, type ComposerSendProps, type ComposerVoiceButtonProps, type ComposerDockProps, type ScrollToBottomProps, } from './Composer';
|
|
6
6
|
export { SlashMenu, DEFAULT_SLASH_MENU_LABELS, type SlashMenuLabels, type SlashMenuProps, type SlashMenuItem, type SlashItemKind, } from './SlashMenu';
|
|
7
|
+
export { MentionMenu, MentionChip, DEFAULT_MENTION_LABELS, type MentionLabels, type MentionMenuProps, type MentionChipProps, } from './MentionMenu';
|
|
8
|
+
export { findMentionQuery, filterMentionCandidates, insertMention, extractMentions, toMessageMentions, linkMentions, mentionFromHref, MENTION_HREF_PREFIX, type MentionKind, type MentionCandidate, type MessageMentionRef, } from './mentions';
|
|
9
|
+
export { useMentionAutocomplete, type UseMentionAutocompleteOptions, type UseMentionAutocomplete, } from './useMentionAutocomplete';
|
|
10
|
+
export { AssistantModeToggle, DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS, type AssistantMode, type AssistantModeToggleLabels, type AssistantModeToggleProps, } from './AssistantModeToggle';
|
|
7
11
|
export { PinnedDocChip, DEFAULT_PINNED_DOC_CHIP_LABELS, type PinnedDocChipLabels, type PinnedDocChipProps, } from './PinnedDocChip';
|
|
8
12
|
export { ConversationEmpty, DEFAULT_CONVERSATION_EMPTY_LABELS, type ConversationEmptyLabels, type ConversationEmptyProps, type ConversationShortcut, } from './ConversationEmpty';
|
|
9
13
|
export { Conversation, ConversationRoot, ConversationHeader, ConversationBody, ConversationMain, ConversationLoading, DEFAULT_CONVERSATION_LAYOUT_LABELS, type ConversationLayoutLabels, } from './ConversationLayout';
|
package/dist/chat/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { AssistantToaster, BranchControls, ComposerAccessories, ComposerTools, ContextActionButton, ContextCheckRow, ContextPanelContent, ContextPanelFooter, ContextPanelTabs, ContextPickerList, ContextPickerRow, ContextSearchInput, ContextSelectList, ContextSelectRow, Conversation, ConversationBody, ConversationHeader, ConversationHeaderActions, ConversationHistoryPane, ConversationLoading, ConversationMain, ConversationRoot, ConversationSearchView, ConversationSettingsButton, DEFAULT_BRANCH_CONTROLS_LABELS, DEFAULT_CONVERSATION_LAYOUT_LABELS, DEFAULT_CONVERSATION_PARTS_LABELS, DEFAULT_CONVERSATION_SEARCH_LABELS, DEFAULT_LABEL_PIN_ROW_LABELS, DEFAULT_MODEL_PRICING_TIP_LABELS, DEFAULT_PENDING_ANSWER_BAR_LABELS, DEFAULT_PINNED_DOC_CHIP_LABELS, DEFAULT_SLASH_MENU_LABELS, DEFAULT_THREAD_MAP_LABELS, LabelPinRow, ModelAutoIcon, ModelConfigureButton, ModelDot, ModelMenuDivider, ModelMenuMessage, ModelOption, ModelOptionLabel, ModelPickerPopover, ModelPickerTrigger, ModelPricingTip, ModelTierIcon, ModelTierOption, ModelTriggerContent, NewChatButton, NewPaChatButton, PaModeBadge, PendingAnswerBar, PinnedDocChip, SlashMenu, ThreadMap, ThreadMapDiagram, ThreadMapError, ThreadMapLoading, isLongPastedText, useDismissibleCard, useListKeyNav, useLongPaste } from '../chunk-
|
|
2
|
+
export { AssistantModeToggle, AssistantToaster, BranchControls, ComposerAccessories, ComposerTools, ContextActionButton, ContextCheckRow, ContextPanelContent, ContextPanelFooter, ContextPanelTabs, ContextPickerList, ContextPickerRow, ContextSearchInput, ContextSelectList, ContextSelectRow, Conversation, ConversationBody, ConversationHeader, ConversationHeaderActions, ConversationHistoryPane, ConversationLoading, ConversationMain, ConversationRoot, ConversationSearchView, ConversationSettingsButton, DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS, DEFAULT_BRANCH_CONTROLS_LABELS, DEFAULT_CONVERSATION_LAYOUT_LABELS, DEFAULT_CONVERSATION_PARTS_LABELS, DEFAULT_CONVERSATION_SEARCH_LABELS, DEFAULT_LABEL_PIN_ROW_LABELS, DEFAULT_MENTION_LABELS, DEFAULT_MODEL_PRICING_TIP_LABELS, DEFAULT_PENDING_ANSWER_BAR_LABELS, DEFAULT_PINNED_DOC_CHIP_LABELS, DEFAULT_SLASH_MENU_LABELS, DEFAULT_THREAD_MAP_LABELS, LabelPinRow, MENTION_HREF_PREFIX, MentionChip, MentionMenu, ModelAutoIcon, ModelConfigureButton, ModelDot, ModelMenuDivider, ModelMenuMessage, ModelOption, ModelOptionLabel, ModelPickerPopover, ModelPickerTrigger, ModelPricingTip, ModelTierIcon, ModelTierOption, ModelTriggerContent, NewChatButton, NewPaChatButton, PaModeBadge, PendingAnswerBar, PinnedDocChip, SlashMenu, ThreadMap, ThreadMapDiagram, ThreadMapError, ThreadMapLoading, extractMentions, filterMentionCandidates, findMentionQuery, insertMention, isLongPastedText, linkMentions, mentionFromHref, toMessageMentions, useDismissibleCard, useListKeyNav, useLongPaste, useMentionAutocomplete } from '../chunk-ABSII3ND.js';
|
|
3
3
|
import '../chunk-5LUI4G5R.js';
|
|
4
4
|
import '../chunk-SLSBJRWW.js';
|
|
5
5
|
export { AssistantDock, AssistantDockToggle, ChatDocuments, ChatMessageContent, ChatPage, ChatThreadList, ChatThreadSelect, CitationMark, Composer, ComposerBranchingNotice, ComposerContainer, ComposerDock, ComposerFrame, ComposerInput, ComposerRoot, ComposerSend, ComposerToolbar, ComposerVoiceButton, ContextChip, ConversationEmpty, DEFAULT_CHAT_PAGE_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_CONVERSATION_EMPTY_LABELS, DEFAULT_MESSAGE_ALERT_LABELS, DEFAULT_MESSAGE_LABELS, DEFAULT_MESSAGE_LIST_LABELS, Message, MessageActionButton, MessageActionMenu, MessageAlert, MessageBody, MessageBubble, MessageByline, MessageContent, MessageFooter, MessageList, MessageListBanner, MessageListEmpty, MessageListRoot, MessageListRow, MessageListRows, MessageListStatus, MessageListTail, MessageNarration, MessageRoot, MessageSources, MessageSubagentBadge, ScrollToBottom, SourceChip, toSpeakableText, useAssistantDock, useChatSurface, useRegisterEmbeddedChat, useStreamAnnouncement } from '../chunk-UVIOQUJA.js';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mentions in chat text: pure helpers shared by the composer (autocomplete, extraction) and
|
|
3
|
+
* the message renderer (chips). No React, no SDK.
|
|
4
|
+
*
|
|
5
|
+
* A mention lives in two places: the readable `@Label` text in the message content, and a
|
|
6
|
+
* structured entry on the message (`{ type, user_ext_id, label }`) that the server reads to share
|
|
7
|
+
* the conversation and notify. The composer only ever inserts `@<label>` for a known candidate,
|
|
8
|
+
* so the structured list can be recovered from the text at send time ({@link extractMentions});
|
|
9
|
+
* the renderer turns each stored mention back into a chip ({@link linkMentions}).
|
|
10
|
+
*/
|
|
11
|
+
/** Who can be mentioned: a workspace member, or the assistant. */
|
|
12
|
+
export type MentionKind = 'user' | 'assistant';
|
|
13
|
+
/** One entry of the mention autocomplete. */
|
|
14
|
+
export interface MentionCandidate {
|
|
15
|
+
/** User external id (`usr-…`) for a person; any stable key (e.g. `assistant`) for the assistant. */
|
|
16
|
+
id: string;
|
|
17
|
+
kind: MentionKind;
|
|
18
|
+
/** Inserted as `@<label>`. For people this must be the server's display name (given + family). */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Secondary line in the menu (email, role, …). */
|
|
21
|
+
description?: string;
|
|
22
|
+
}
|
|
23
|
+
/** The structured mention a message carries (the API's `MessageMention`). */
|
|
24
|
+
export interface MessageMentionRef {
|
|
25
|
+
type: MentionKind;
|
|
26
|
+
user_ext_id?: string | null;
|
|
27
|
+
label?: string | null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The `@query` the caret is in, if any: the `@` must start the text or follow whitespace, and the
|
|
31
|
+
* query may contain spaces (names do) but no newline. Returns the index of the `@` and the query.
|
|
32
|
+
*/
|
|
33
|
+
export declare function findMentionQuery(text: string, caret: number): {
|
|
34
|
+
start: number;
|
|
35
|
+
query: string;
|
|
36
|
+
} | null;
|
|
37
|
+
/** Candidates matching a query: label prefix (or word-prefix) matches, prefix matches first. */
|
|
38
|
+
export declare function filterMentionCandidates(candidates: ReadonlyArray<MentionCandidate>, query: string): MentionCandidate[];
|
|
39
|
+
/** Replace the `@query` at `start…caret` with `@<label> `; returns the new text and caret. */
|
|
40
|
+
export declare function insertMention(text: string, start: number, caret: number, label: string): {
|
|
41
|
+
text: string;
|
|
42
|
+
caret: number;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* The candidates mentioned in `text`, in order of first appearance. Longer labels win overlaps,
|
|
46
|
+
* so `@Bob Smith` is Bob Smith, not a separate `@Bob`.
|
|
47
|
+
*/
|
|
48
|
+
export declare function extractMentions(text: string, candidates: ReadonlyArray<MentionCandidate>): MentionCandidate[];
|
|
49
|
+
/** The API payload for mentioned candidates. */
|
|
50
|
+
export declare function toMessageMentions(mentioned: ReadonlyArray<MentionCandidate>): MessageMentionRef[];
|
|
51
|
+
/** Fragment prefix of the links {@link linkMentions} writes. */
|
|
52
|
+
export declare const MENTION_HREF_PREFIX = "#mention-";
|
|
53
|
+
/**
|
|
54
|
+
* Turn each stored mention's `@<label>` in `content` into a markdown link
|
|
55
|
+
* `[@<label>](#mention-<id>)`, so a markdown renderer can draw it as a chip (see
|
|
56
|
+
* {@link mentionFromHref}). Text that no longer matches (a renamed user) stays plain text.
|
|
57
|
+
* `assistantLabels` lists other names the assistant may have been mentioned by.
|
|
58
|
+
*/
|
|
59
|
+
export declare function linkMentions(content: string, mentions: ReadonlyArray<MessageMentionRef> | null | undefined, assistantLabels?: ReadonlyArray<string>): string;
|
|
60
|
+
/** The mention a `#mention-…` href points at, or null for any other href. */
|
|
61
|
+
export declare function mentionFromHref(href: string | null | undefined): {
|
|
62
|
+
kind: MentionKind;
|
|
63
|
+
id: string;
|
|
64
|
+
} | null;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type RefObject, type SyntheticEvent } from 'react';
|
|
2
|
+
import { type UseListKeyNav } from '../lib/useListKeyNav';
|
|
3
|
+
import { type MentionCandidate } from './mentions';
|
|
4
|
+
export interface UseMentionAutocompleteOptions {
|
|
5
|
+
/** The draft. */
|
|
6
|
+
value: string;
|
|
7
|
+
/** Writes the draft (the same setter the composer uses). */
|
|
8
|
+
onValueChange: (next: string) => void;
|
|
9
|
+
/** Who can be mentioned: workspace members and the assistant. */
|
|
10
|
+
candidates: ReadonlyArray<MentionCandidate>;
|
|
11
|
+
/** The composer textarea; read for the caret and refocused after a pick. */
|
|
12
|
+
textareaRef: RefObject<HTMLTextAreaElement | null>;
|
|
13
|
+
}
|
|
14
|
+
export interface UseMentionAutocomplete {
|
|
15
|
+
isOpen: boolean;
|
|
16
|
+
/** Filtered candidates for the `@query` at the caret. */
|
|
17
|
+
items: MentionCandidate[];
|
|
18
|
+
/** Keyboard navigation; call `nav.handleKeyDown` first in the textarea's `onKeyDown`. */
|
|
19
|
+
nav: UseListKeyNav;
|
|
20
|
+
/** Insert a candidate in place of the `@query`. */
|
|
21
|
+
pick: (candidate: MentionCandidate) => void;
|
|
22
|
+
/** Wrap the composer's `onValueChange` with this so the caret is tracked as the user types. */
|
|
23
|
+
onValueChange: (next: string) => void;
|
|
24
|
+
/** Spread onto the textarea (via `textareaProps`): tracks caret moves (clicks, arrows). */
|
|
25
|
+
textareaProps: {
|
|
26
|
+
onSelect: (event: SyntheticEvent<HTMLTextAreaElement>) => void;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Headless `@mention` autocomplete for a textarea: finds the `@query` at the caret, filters the
|
|
31
|
+
* candidates, and on pick replaces the query with `@<label> `. Pair with {@link MentionMenu}.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useMentionAutocomplete({ value, onValueChange, candidates, textareaRef, }: UseMentionAutocompleteOptions): UseMentionAutocomplete;
|