@arbidocs/blocks 0.4.15 → 0.4.17

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.
Files changed (96) hide show
  1. package/dist/agents/index.cjs +369 -171
  2. package/dist/agents/index.js +4 -2
  3. package/dist/agents/tasks/DueDateMenu.d.ts +32 -0
  4. package/dist/agents/tasks/NewThreadDialog.d.ts +53 -0
  5. package/dist/agents/tasks/PersonPill.d.ts +22 -0
  6. package/dist/agents/tasks/PillSelect.d.ts +39 -0
  7. package/dist/agents/tasks/TaskActivityDialog.d.ts +14 -0
  8. package/dist/agents/tasks/TaskActivityTimeline.d.ts +54 -0
  9. package/dist/agents/tasks/TaskComposer.d.ts +6 -106
  10. package/dist/agents/tasks/TaskMoveDialog.d.ts +25 -0
  11. package/dist/agents/tasks/TaskOutputsCell.d.ts +23 -0
  12. package/dist/agents/tasks/TaskPlan.d.ts +4 -2
  13. package/dist/agents/tasks/TaskReviewActions.d.ts +44 -0
  14. package/dist/agents/tasks/TaskRowMenu.d.ts +28 -0
  15. package/dist/agents/tasks/TaskStatusPill.d.ts +24 -0
  16. package/dist/agents/tasks/TaskTable.d.ts +99 -0
  17. package/dist/agents/tasks/TaskThreadChip.d.ts +19 -0
  18. package/dist/agents/tasks/TaskTriggerChip.d.ts +24 -0
  19. package/dist/agents/tasks/TasksChrome.d.ts +17 -17
  20. package/dist/agents/tasks/WorkflowComposer.d.ts +10 -0
  21. package/dist/agents/tasks/WorkflowsTable.d.ts +72 -0
  22. package/dist/agents/tasks/gridWidth.d.ts +11 -0
  23. package/dist/agents/tasks/index.d.ts +23 -7
  24. package/dist/agents/tasks/taskColumns.d.ts +39 -63
  25. package/dist/agents/tasks/taskComposerTypes.d.ts +217 -0
  26. package/dist/agents/tasks/taskLabels.d.ts +27 -10
  27. package/dist/agents/tasks/taskRequest.d.ts +151 -25
  28. package/dist/agents/tasks/taskRows.d.ts +111 -0
  29. package/dist/agents/tasks/taskTableLabels.d.ts +64 -0
  30. package/dist/agents/tasks/workflowColumns.d.ts +23 -0
  31. package/dist/agents/tasks/workflowRows.d.ts +44 -0
  32. package/dist/agents/tasks/workflowTableLabels.d.ts +53 -0
  33. package/dist/agents/workflows/WorkflowConfigDialog.d.ts +5 -0
  34. package/dist/agents/workflows/index.d.ts +1 -0
  35. package/dist/agents/workflows/scopeRender.d.ts +10 -0
  36. package/dist/agents/workflows/types.d.ts +2 -0
  37. package/dist/chat/AssistantModeToggle.d.ts +25 -0
  38. package/dist/chat/MentionMenu.d.ts +52 -0
  39. package/dist/chat/index.cjs +119 -63
  40. package/dist/chat/index.d.ts +4 -0
  41. package/dist/chat/index.js +1 -1
  42. package/dist/chat/mentions.d.ts +64 -0
  43. package/dist/chat/useMentionAutocomplete.d.ts +33 -0
  44. package/dist/{chunk-IMA6I73C.js → chunk-ABSII3ND.js} +336 -4
  45. package/dist/chunk-ABSII3ND.js.map +1 -0
  46. package/dist/{chunk-22T6KHGB.cjs → chunk-C2V6HQKG.cjs} +348 -2
  47. package/dist/chunk-C2V6HQKG.cjs.map +1 -0
  48. package/dist/chunk-IC2VHFWR.js +158 -0
  49. package/dist/chunk-IC2VHFWR.js.map +1 -0
  50. package/dist/{chunk-67HGXV4I.cjs → chunk-IWOOGRNG.cjs} +4276 -855
  51. package/dist/chunk-IWOOGRNG.cjs.map +1 -0
  52. package/dist/{chunk-D6XY3C4O.cjs → chunk-JGZTRLKL.cjs} +207 -139
  53. package/dist/chunk-JGZTRLKL.cjs.map +1 -0
  54. package/dist/{chunk-H7OD4CHN.js → chunk-NUPVHEJW.js} +208 -140
  55. package/dist/chunk-NUPVHEJW.js.map +1 -0
  56. package/dist/{chunk-CVFBSUXL.js → chunk-OMF7444S.js} +4223 -851
  57. package/dist/chunk-OMF7444S.js.map +1 -0
  58. package/dist/chunk-ZPERNIMP.cjs +162 -0
  59. package/dist/chunk-ZPERNIMP.cjs.map +1 -0
  60. package/dist/connection/ai.d.ts +4 -1
  61. package/dist/facts/FactRowActions.d.ts +5 -1
  62. package/dist/facts/factColumns.d.ts +1 -1
  63. package/dist/facts/index.cjs +18 -9
  64. package/dist/facts/index.cjs.map +1 -1
  65. package/dist/facts/index.js +13 -4
  66. package/dist/facts/index.js.map +1 -1
  67. package/dist/files/GridView.d.ts +5 -0
  68. package/dist/files/index.cjs +17 -17
  69. package/dist/files/index.js +3 -4
  70. package/dist/files/index.js.map +1 -1
  71. package/dist/index.cjs +495 -243
  72. package/dist/index.js +4 -4
  73. package/dist/settings/ConversationSettingsParts.d.ts +5 -1
  74. package/dist/settings/index.cjs +8 -3
  75. package/dist/settings/index.cjs.map +1 -1
  76. package/dist/settings/index.js +8 -3
  77. package/dist/settings/index.js.map +1 -1
  78. package/dist/site/index.cjs +9 -9
  79. package/dist/site/index.js +1 -1
  80. package/dist/workspaces/index.cjs +1 -1
  81. package/dist/workspaces/index.cjs.map +1 -1
  82. package/dist/workspaces/index.js +1 -1
  83. package/dist/workspaces/index.js.map +1 -1
  84. package/package.json +3 -3
  85. package/dist/agents/tasks/LiveRunsBanner.d.ts +0 -26
  86. package/dist/agents/tasks/TaskRowActions.d.ts +0 -43
  87. package/dist/chunk-22T6KHGB.cjs.map +0 -1
  88. package/dist/chunk-67HGXV4I.cjs.map +0 -1
  89. package/dist/chunk-CVFBSUXL.js.map +0 -1
  90. package/dist/chunk-D6XY3C4O.cjs.map +0 -1
  91. package/dist/chunk-H7OD4CHN.js.map +0 -1
  92. package/dist/chunk-IMA6I73C.js.map +0 -1
  93. package/dist/chunk-NUNKSZKU.js +0 -203
  94. package/dist/chunk-NUNKSZKU.js.map +0 -1
  95. package/dist/chunk-V4ISCZJ7.cjs +0 -207
  96. package/dist/chunk-V4ISCZJ7.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunk22T6KHGB_cjs = require('../chunk-22T6KHGB.cjs');
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 chunk22T6KHGB_cjs.AssistantToaster; }
21
+ get: function () { return chunkC2V6HQKG_cjs.AssistantToaster; }
18
22
  });
19
23
  Object.defineProperty(exports, "BranchControls", {
20
24
  enumerable: true,
21
- get: function () { return chunk22T6KHGB_cjs.BranchControls; }
25
+ get: function () { return chunkC2V6HQKG_cjs.BranchControls; }
22
26
  });
23
27
  Object.defineProperty(exports, "ComposerAccessories", {
24
28
  enumerable: true,
25
- get: function () { return chunk22T6KHGB_cjs.ComposerAccessories; }
29
+ get: function () { return chunkC2V6HQKG_cjs.ComposerAccessories; }
26
30
  });
27
31
  Object.defineProperty(exports, "ComposerTools", {
28
32
  enumerable: true,
29
- get: function () { return chunk22T6KHGB_cjs.ComposerTools; }
33
+ get: function () { return chunkC2V6HQKG_cjs.ComposerTools; }
30
34
  });
31
35
  Object.defineProperty(exports, "ContextActionButton", {
32
36
  enumerable: true,
33
- get: function () { return chunk22T6KHGB_cjs.ContextActionButton; }
37
+ get: function () { return chunkC2V6HQKG_cjs.ContextActionButton; }
34
38
  });
35
39
  Object.defineProperty(exports, "ContextCheckRow", {
36
40
  enumerable: true,
37
- get: function () { return chunk22T6KHGB_cjs.ContextCheckRow; }
41
+ get: function () { return chunkC2V6HQKG_cjs.ContextCheckRow; }
38
42
  });
39
43
  Object.defineProperty(exports, "ContextPanelContent", {
40
44
  enumerable: true,
41
- get: function () { return chunk22T6KHGB_cjs.ContextPanelContent; }
45
+ get: function () { return chunkC2V6HQKG_cjs.ContextPanelContent; }
42
46
  });
43
47
  Object.defineProperty(exports, "ContextPanelFooter", {
44
48
  enumerable: true,
45
- get: function () { return chunk22T6KHGB_cjs.ContextPanelFooter; }
49
+ get: function () { return chunkC2V6HQKG_cjs.ContextPanelFooter; }
46
50
  });
47
51
  Object.defineProperty(exports, "ContextPanelTabs", {
48
52
  enumerable: true,
49
- get: function () { return chunk22T6KHGB_cjs.ContextPanelTabs; }
53
+ get: function () { return chunkC2V6HQKG_cjs.ContextPanelTabs; }
50
54
  });
51
55
  Object.defineProperty(exports, "ContextPickerList", {
52
56
  enumerable: true,
53
- get: function () { return chunk22T6KHGB_cjs.ContextPickerList; }
57
+ get: function () { return chunkC2V6HQKG_cjs.ContextPickerList; }
54
58
  });
55
59
  Object.defineProperty(exports, "ContextPickerRow", {
56
60
  enumerable: true,
57
- get: function () { return chunk22T6KHGB_cjs.ContextPickerRow; }
61
+ get: function () { return chunkC2V6HQKG_cjs.ContextPickerRow; }
58
62
  });
59
63
  Object.defineProperty(exports, "ContextSearchInput", {
60
64
  enumerable: true,
61
- get: function () { return chunk22T6KHGB_cjs.ContextSearchInput; }
65
+ get: function () { return chunkC2V6HQKG_cjs.ContextSearchInput; }
62
66
  });
63
67
  Object.defineProperty(exports, "ContextSelectList", {
64
68
  enumerable: true,
65
- get: function () { return chunk22T6KHGB_cjs.ContextSelectList; }
69
+ get: function () { return chunkC2V6HQKG_cjs.ContextSelectList; }
66
70
  });
67
71
  Object.defineProperty(exports, "ContextSelectRow", {
68
72
  enumerable: true,
69
- get: function () { return chunk22T6KHGB_cjs.ContextSelectRow; }
73
+ get: function () { return chunkC2V6HQKG_cjs.ContextSelectRow; }
70
74
  });
71
75
  Object.defineProperty(exports, "Conversation", {
72
76
  enumerable: true,
73
- get: function () { return chunk22T6KHGB_cjs.Conversation; }
77
+ get: function () { return chunkC2V6HQKG_cjs.Conversation; }
74
78
  });
75
79
  Object.defineProperty(exports, "ConversationBody", {
76
80
  enumerable: true,
77
- get: function () { return chunk22T6KHGB_cjs.ConversationBody; }
81
+ get: function () { return chunkC2V6HQKG_cjs.ConversationBody; }
78
82
  });
79
83
  Object.defineProperty(exports, "ConversationHeader", {
80
84
  enumerable: true,
81
- get: function () { return chunk22T6KHGB_cjs.ConversationHeader; }
85
+ get: function () { return chunkC2V6HQKG_cjs.ConversationHeader; }
82
86
  });
83
87
  Object.defineProperty(exports, "ConversationHeaderActions", {
84
88
  enumerable: true,
85
- get: function () { return chunk22T6KHGB_cjs.ConversationHeaderActions; }
89
+ get: function () { return chunkC2V6HQKG_cjs.ConversationHeaderActions; }
86
90
  });
87
91
  Object.defineProperty(exports, "ConversationHistoryPane", {
88
92
  enumerable: true,
89
- get: function () { return chunk22T6KHGB_cjs.ConversationHistoryPane; }
93
+ get: function () { return chunkC2V6HQKG_cjs.ConversationHistoryPane; }
90
94
  });
91
95
  Object.defineProperty(exports, "ConversationLoading", {
92
96
  enumerable: true,
93
- get: function () { return chunk22T6KHGB_cjs.ConversationLoading; }
97
+ get: function () { return chunkC2V6HQKG_cjs.ConversationLoading; }
94
98
  });
95
99
  Object.defineProperty(exports, "ConversationMain", {
96
100
  enumerable: true,
97
- get: function () { return chunk22T6KHGB_cjs.ConversationMain; }
101
+ get: function () { return chunkC2V6HQKG_cjs.ConversationMain; }
98
102
  });
99
103
  Object.defineProperty(exports, "ConversationRoot", {
100
104
  enumerable: true,
101
- get: function () { return chunk22T6KHGB_cjs.ConversationRoot; }
105
+ get: function () { return chunkC2V6HQKG_cjs.ConversationRoot; }
102
106
  });
103
107
  Object.defineProperty(exports, "ConversationSearchView", {
104
108
  enumerable: true,
105
- get: function () { return chunk22T6KHGB_cjs.ConversationSearchView; }
109
+ get: function () { return chunkC2V6HQKG_cjs.ConversationSearchView; }
106
110
  });
107
111
  Object.defineProperty(exports, "ConversationSettingsButton", {
108
112
  enumerable: true,
109
- get: function () { return chunk22T6KHGB_cjs.ConversationSettingsButton; }
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 chunk22T6KHGB_cjs.DEFAULT_BRANCH_CONTROLS_LABELS; }
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 chunk22T6KHGB_cjs.DEFAULT_CONVERSATION_LAYOUT_LABELS; }
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 chunk22T6KHGB_cjs.DEFAULT_CONVERSATION_PARTS_LABELS; }
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 chunk22T6KHGB_cjs.DEFAULT_CONVERSATION_SEARCH_LABELS; }
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 chunk22T6KHGB_cjs.DEFAULT_LABEL_PIN_ROW_LABELS; }
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 chunk22T6KHGB_cjs.DEFAULT_MODEL_PRICING_TIP_LABELS; }
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 chunk22T6KHGB_cjs.DEFAULT_PENDING_ANSWER_BAR_LABELS; }
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 chunk22T6KHGB_cjs.DEFAULT_PINNED_DOC_CHIP_LABELS; }
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 chunk22T6KHGB_cjs.DEFAULT_SLASH_MENU_LABELS; }
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 chunk22T6KHGB_cjs.DEFAULT_THREAD_MAP_LABELS; }
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 chunk22T6KHGB_cjs.LabelPinRow; }
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 chunk22T6KHGB_cjs.ModelAutoIcon; }
181
+ get: function () { return chunkC2V6HQKG_cjs.ModelAutoIcon; }
158
182
  });
159
183
  Object.defineProperty(exports, "ModelConfigureButton", {
160
184
  enumerable: true,
161
- get: function () { return chunk22T6KHGB_cjs.ModelConfigureButton; }
185
+ get: function () { return chunkC2V6HQKG_cjs.ModelConfigureButton; }
162
186
  });
163
187
  Object.defineProperty(exports, "ModelDot", {
164
188
  enumerable: true,
165
- get: function () { return chunk22T6KHGB_cjs.ModelDot; }
189
+ get: function () { return chunkC2V6HQKG_cjs.ModelDot; }
166
190
  });
167
191
  Object.defineProperty(exports, "ModelMenuDivider", {
168
192
  enumerable: true,
169
- get: function () { return chunk22T6KHGB_cjs.ModelMenuDivider; }
193
+ get: function () { return chunkC2V6HQKG_cjs.ModelMenuDivider; }
170
194
  });
171
195
  Object.defineProperty(exports, "ModelMenuMessage", {
172
196
  enumerable: true,
173
- get: function () { return chunk22T6KHGB_cjs.ModelMenuMessage; }
197
+ get: function () { return chunkC2V6HQKG_cjs.ModelMenuMessage; }
174
198
  });
175
199
  Object.defineProperty(exports, "ModelOption", {
176
200
  enumerable: true,
177
- get: function () { return chunk22T6KHGB_cjs.ModelOption; }
201
+ get: function () { return chunkC2V6HQKG_cjs.ModelOption; }
178
202
  });
179
203
  Object.defineProperty(exports, "ModelOptionLabel", {
180
204
  enumerable: true,
181
- get: function () { return chunk22T6KHGB_cjs.ModelOptionLabel; }
205
+ get: function () { return chunkC2V6HQKG_cjs.ModelOptionLabel; }
182
206
  });
183
207
  Object.defineProperty(exports, "ModelPickerPopover", {
184
208
  enumerable: true,
185
- get: function () { return chunk22T6KHGB_cjs.ModelPickerPopover; }
209
+ get: function () { return chunkC2V6HQKG_cjs.ModelPickerPopover; }
186
210
  });
187
211
  Object.defineProperty(exports, "ModelPickerTrigger", {
188
212
  enumerable: true,
189
- get: function () { return chunk22T6KHGB_cjs.ModelPickerTrigger; }
213
+ get: function () { return chunkC2V6HQKG_cjs.ModelPickerTrigger; }
190
214
  });
191
215
  Object.defineProperty(exports, "ModelPricingTip", {
192
216
  enumerable: true,
193
- get: function () { return chunk22T6KHGB_cjs.ModelPricingTip; }
217
+ get: function () { return chunkC2V6HQKG_cjs.ModelPricingTip; }
194
218
  });
195
219
  Object.defineProperty(exports, "ModelTierIcon", {
196
220
  enumerable: true,
197
- get: function () { return chunk22T6KHGB_cjs.ModelTierIcon; }
221
+ get: function () { return chunkC2V6HQKG_cjs.ModelTierIcon; }
198
222
  });
199
223
  Object.defineProperty(exports, "ModelTierOption", {
200
224
  enumerable: true,
201
- get: function () { return chunk22T6KHGB_cjs.ModelTierOption; }
225
+ get: function () { return chunkC2V6HQKG_cjs.ModelTierOption; }
202
226
  });
203
227
  Object.defineProperty(exports, "ModelTriggerContent", {
204
228
  enumerable: true,
205
- get: function () { return chunk22T6KHGB_cjs.ModelTriggerContent; }
229
+ get: function () { return chunkC2V6HQKG_cjs.ModelTriggerContent; }
206
230
  });
207
231
  Object.defineProperty(exports, "NewChatButton", {
208
232
  enumerable: true,
209
- get: function () { return chunk22T6KHGB_cjs.NewChatButton; }
233
+ get: function () { return chunkC2V6HQKG_cjs.NewChatButton; }
210
234
  });
211
235
  Object.defineProperty(exports, "NewPaChatButton", {
212
236
  enumerable: true,
213
- get: function () { return chunk22T6KHGB_cjs.NewPaChatButton; }
237
+ get: function () { return chunkC2V6HQKG_cjs.NewPaChatButton; }
214
238
  });
215
239
  Object.defineProperty(exports, "PaModeBadge", {
216
240
  enumerable: true,
217
- get: function () { return chunk22T6KHGB_cjs.PaModeBadge; }
241
+ get: function () { return chunkC2V6HQKG_cjs.PaModeBadge; }
218
242
  });
219
243
  Object.defineProperty(exports, "PendingAnswerBar", {
220
244
  enumerable: true,
221
- get: function () { return chunk22T6KHGB_cjs.PendingAnswerBar; }
245
+ get: function () { return chunkC2V6HQKG_cjs.PendingAnswerBar; }
222
246
  });
223
247
  Object.defineProperty(exports, "PinnedDocChip", {
224
248
  enumerable: true,
225
- get: function () { return chunk22T6KHGB_cjs.PinnedDocChip; }
249
+ get: function () { return chunkC2V6HQKG_cjs.PinnedDocChip; }
226
250
  });
227
251
  Object.defineProperty(exports, "SlashMenu", {
228
252
  enumerable: true,
229
- get: function () { return chunk22T6KHGB_cjs.SlashMenu; }
253
+ get: function () { return chunkC2V6HQKG_cjs.SlashMenu; }
230
254
  });
231
255
  Object.defineProperty(exports, "ThreadMap", {
232
256
  enumerable: true,
233
- get: function () { return chunk22T6KHGB_cjs.ThreadMap; }
257
+ get: function () { return chunkC2V6HQKG_cjs.ThreadMap; }
234
258
  });
235
259
  Object.defineProperty(exports, "ThreadMapDiagram", {
236
260
  enumerable: true,
237
- get: function () { return chunk22T6KHGB_cjs.ThreadMapDiagram; }
261
+ get: function () { return chunkC2V6HQKG_cjs.ThreadMapDiagram; }
238
262
  });
239
263
  Object.defineProperty(exports, "ThreadMapError", {
240
264
  enumerable: true,
241
- get: function () { return chunk22T6KHGB_cjs.ThreadMapError; }
265
+ get: function () { return chunkC2V6HQKG_cjs.ThreadMapError; }
242
266
  });
243
267
  Object.defineProperty(exports, "ThreadMapLoading", {
244
268
  enumerable: true,
245
- get: function () { return chunk22T6KHGB_cjs.ThreadMapLoading; }
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 chunk22T6KHGB_cjs.isLongPastedText; }
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 chunk22T6KHGB_cjs.useDismissibleCard; }
305
+ get: function () { return chunkC2V6HQKG_cjs.useDismissibleCard; }
254
306
  });
255
307
  Object.defineProperty(exports, "useListKeyNav", {
256
308
  enumerable: true,
257
- get: function () { return chunk22T6KHGB_cjs.useListKeyNav; }
309
+ get: function () { return chunkC2V6HQKG_cjs.useListKeyNav; }
258
310
  });
259
311
  Object.defineProperty(exports, "useLongPaste", {
260
312
  enumerable: true,
261
- get: function () { return chunk22T6KHGB_cjs.useLongPaste; }
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,
@@ -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';
@@ -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-IMA6I73C.js';
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;