@arbidocs/blocks 0.4.127 → 0.4.129

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 (115) hide show
  1. package/README.md +21 -7
  2. package/dist/{StreamedArtifactEditor-EEYAXJ4H.cjs → StreamedArtifactEditor-TQAND4H5.cjs} +6 -5
  3. package/dist/StreamedArtifactEditor-TQAND4H5.cjs.map +1 -0
  4. package/dist/{StreamedArtifactEditor-TDATDYD2.js → StreamedArtifactEditor-XQNANTWM.js} +4 -3
  5. package/dist/StreamedArtifactEditor-XQNANTWM.js.map +1 -0
  6. package/dist/agents/index.cjs +213 -213
  7. package/dist/agents/index.js +2 -2
  8. package/dist/artifacts/ArtifactCodeView.d.ts +6 -0
  9. package/dist/artifacts/ArtifactPreview.d.ts +22 -0
  10. package/dist/artifacts/index.cjs +50 -21
  11. package/dist/artifacts/index.d.ts +3 -0
  12. package/dist/artifacts/index.js +2 -1
  13. package/dist/artifacts/sandbox-policy.d.ts +34 -0
  14. package/dist/artifacts/sandboxDocument.d.ts +7 -0
  15. package/dist/calendar/index.cjs +156 -243
  16. package/dist/calendar/index.cjs.map +1 -1
  17. package/dist/calendar/index.js +8 -151
  18. package/dist/calendar/index.js.map +1 -1
  19. package/dist/chat/index.cjs +90 -73
  20. package/dist/chat/index.d.ts +1 -0
  21. package/dist/chat/index.js +3 -2
  22. package/dist/chat/open-document.d.ts +66 -0
  23. package/dist/{chunk-INW76PEL.cjs → chunk-2YV7FBLO.cjs} +175 -2
  24. package/dist/chunk-2YV7FBLO.cjs.map +1 -0
  25. package/dist/{chunk-DZI7WOUD.cjs → chunk-3BJLNKOB.cjs} +6 -2
  26. package/dist/chunk-3BJLNKOB.cjs.map +1 -0
  27. package/dist/{chunk-KELGOCJA.js → chunk-65S53MZK.js} +174 -5
  28. package/dist/chunk-65S53MZK.js.map +1 -0
  29. package/dist/{chunk-T6I6ZCBE.js → chunk-6BTCDKCK.js} +6 -3
  30. package/dist/chunk-6BTCDKCK.js.map +1 -0
  31. package/dist/{chunk-ZLRQ5K77.cjs → chunk-7423V6RM.cjs} +6 -3
  32. package/dist/chunk-7423V6RM.cjs.map +1 -0
  33. package/dist/{chunk-6Z72CXZR.js → chunk-CJBN5HIS.js} +6 -2
  34. package/dist/chunk-CJBN5HIS.js.map +1 -0
  35. package/dist/{chunk-XFKF3WRN.cjs → chunk-DZYAAL4H.cjs} +2 -2
  36. package/dist/{chunk-XFKF3WRN.cjs.map → chunk-DZYAAL4H.cjs.map} +1 -1
  37. package/dist/chunk-GYCQ3FNL.js +60 -0
  38. package/dist/chunk-GYCQ3FNL.js.map +1 -0
  39. package/dist/{chunk-UUXKB3WQ.js → chunk-H2KQ6OSU.js} +2 -2
  40. package/dist/{chunk-UUXKB3WQ.js.map → chunk-H2KQ6OSU.js.map} +1 -1
  41. package/dist/{chunk-T2CVFK2I.js → chunk-HSFLEVZY.js} +3 -3
  42. package/dist/{chunk-T2CVFK2I.js.map → chunk-HSFLEVZY.js.map} +1 -1
  43. package/dist/{chunk-MCPRNDOJ.cjs → chunk-JLTXVW25.cjs} +3 -3
  44. package/dist/{chunk-MCPRNDOJ.cjs.map → chunk-JLTXVW25.cjs.map} +1 -1
  45. package/dist/chunk-NS4JD2VR.js +22 -0
  46. package/dist/chunk-NS4JD2VR.js.map +1 -0
  47. package/dist/chunk-SWQX6CTT.cjs +65 -0
  48. package/dist/chunk-SWQX6CTT.cjs.map +1 -0
  49. package/dist/chunk-TGJNPKST.js +153 -0
  50. package/dist/chunk-TGJNPKST.js.map +1 -0
  51. package/dist/chunk-TGWTLNXW.cjs +177 -0
  52. package/dist/chunk-TGWTLNXW.cjs.map +1 -0
  53. package/dist/chunk-VG24E4JJ.cjs +26 -0
  54. package/dist/chunk-VG24E4JJ.cjs.map +1 -0
  55. package/dist/components/DroppableContainer.d.ts +6 -0
  56. package/dist/components/GridRowNavigator.d.ts +29 -0
  57. package/dist/components/LoadingIndicator.d.ts +21 -0
  58. package/dist/components/RowNavigatorControls.d.ts +29 -0
  59. package/dist/components/SharedCell.d.ts +27 -0
  60. package/dist/connect/docx.cjs +4 -3
  61. package/dist/connect/docx.cjs.map +1 -1
  62. package/dist/connect/docx.js +3 -2
  63. package/dist/connect/docx.js.map +1 -1
  64. package/dist/connect/index.cjs +22 -20
  65. package/dist/connect/index.cjs.map +1 -1
  66. package/dist/connect/index.js +12 -10
  67. package/dist/connect/index.js.map +1 -1
  68. package/dist/connection/mail/types.d.ts +2 -6
  69. package/dist/facts/index.cjs +5 -23
  70. package/dist/facts/index.cjs.map +1 -1
  71. package/dist/facts/index.d.ts +0 -1
  72. package/dist/facts/index.js +6 -22
  73. package/dist/facts/index.js.map +1 -1
  74. package/dist/index.cjs +616 -417
  75. package/dist/index.cjs.map +1 -1
  76. package/dist/index.d.ts +5 -0
  77. package/dist/index.js +189 -11
  78. package/dist/index.js.map +1 -1
  79. package/dist/sandboxDocument-JLEETIWW.js +71 -0
  80. package/dist/sandboxDocument-JLEETIWW.js.map +1 -0
  81. package/dist/sandboxDocument-WQUNODSC.cjs +76 -0
  82. package/dist/sandboxDocument-WQUNODSC.cjs.map +1 -0
  83. package/dist/settings/DraggableHeader.d.ts +10 -0
  84. package/dist/settings/FilterChip.d.ts +15 -0
  85. package/dist/settings/MessageJsonTree.d.ts +7 -0
  86. package/dist/settings/index.cjs +248 -5
  87. package/dist/settings/index.cjs.map +1 -1
  88. package/dist/settings/index.d.ts +3 -0
  89. package/dist/settings/index.js +247 -7
  90. package/dist/settings/index.js.map +1 -1
  91. package/dist/settings/message-schema-hints.d.ts +19 -0
  92. package/dist/studio/index.cjs +3 -2
  93. package/dist/studio/index.cjs.map +1 -1
  94. package/dist/studio/index.js +2 -1
  95. package/dist/studio/index.js.map +1 -1
  96. package/dist/workflow-canvas/index.cjs +9 -9
  97. package/dist/workflow-canvas/index.js +2 -2
  98. package/dist/workspaces/index.cjs +39 -0
  99. package/dist/workspaces/index.cjs.map +1 -1
  100. package/dist/workspaces/index.d.ts +1 -0
  101. package/dist/workspaces/index.js +36 -1
  102. package/dist/workspaces/index.js.map +1 -1
  103. package/dist/workspaces/workspace-type.d.ts +29 -0
  104. package/node_modules/@arbidocs/coedit/package.json +1 -1
  105. package/package.json +6 -5
  106. package/src/docx/README.md +7 -3
  107. package/dist/StreamedArtifactEditor-EEYAXJ4H.cjs.map +0 -1
  108. package/dist/StreamedArtifactEditor-TDATDYD2.js.map +0 -1
  109. package/dist/chunk-6Z72CXZR.js.map +0 -1
  110. package/dist/chunk-DZI7WOUD.cjs.map +0 -1
  111. package/dist/chunk-INW76PEL.cjs.map +0 -1
  112. package/dist/chunk-KELGOCJA.js.map +0 -1
  113. package/dist/chunk-T6I6ZCBE.js.map +0 -1
  114. package/dist/chunk-ZLRQ5K77.cjs.map +0 -1
  115. package/dist/facts/timezone.d.ts +0 -4
@@ -1,14 +1,15 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkXFKF3WRN_cjs = require('../chunk-XFKF3WRN.cjs');
4
+ var chunkDZYAAL4H_cjs = require('../chunk-DZYAAL4H.cjs');
5
5
  require('../chunk-5UHAWSEX.cjs');
6
6
  var chunkPJJY6CYL_cjs = require('../chunk-PJJY6CYL.cjs');
7
7
  require('../chunk-B6MVQCXW.cjs');
8
+ var chunkSWQX6CTT_cjs = require('../chunk-SWQX6CTT.cjs');
8
9
  var chunk6AALMYPS_cjs = require('../chunk-6AALMYPS.cjs');
9
10
  require('../chunk-32HW2Q33.cjs');
10
- require('../chunk-FX3K6LNZ.cjs');
11
11
  var chunk7UTB4PHM_cjs = require('../chunk-7UTB4PHM.cjs');
12
+ require('../chunk-FX3K6LNZ.cjs');
12
13
  require('../chunk-MWDW5UBW.cjs');
13
14
  require('../chunk-PPCATBOY.cjs');
14
15
  require('../chunk-MHVNT4J3.cjs');
@@ -19,287 +20,287 @@ require('../chunk-DES3K4SD.cjs');
19
20
 
20
21
  Object.defineProperty(exports, "AssistantToaster", {
21
22
  enumerable: true,
22
- get: function () { return chunkXFKF3WRN_cjs.AssistantToaster; }
23
+ get: function () { return chunkDZYAAL4H_cjs.AssistantToaster; }
23
24
  });
24
25
  Object.defineProperty(exports, "BranchControls", {
25
26
  enumerable: true,
26
- get: function () { return chunkXFKF3WRN_cjs.BranchControls; }
27
+ get: function () { return chunkDZYAAL4H_cjs.BranchControls; }
27
28
  });
28
29
  Object.defineProperty(exports, "ComposerAccessories", {
29
30
  enumerable: true,
30
- get: function () { return chunkXFKF3WRN_cjs.ComposerAccessories; }
31
+ get: function () { return chunkDZYAAL4H_cjs.ComposerAccessories; }
31
32
  });
32
33
  Object.defineProperty(exports, "ComposerTools", {
33
34
  enumerable: true,
34
- get: function () { return chunkXFKF3WRN_cjs.ComposerTools; }
35
+ get: function () { return chunkDZYAAL4H_cjs.ComposerTools; }
35
36
  });
36
37
  Object.defineProperty(exports, "ContextActionButton", {
37
38
  enumerable: true,
38
- get: function () { return chunkXFKF3WRN_cjs.ContextActionButton; }
39
+ get: function () { return chunkDZYAAL4H_cjs.ContextActionButton; }
39
40
  });
40
41
  Object.defineProperty(exports, "ContextCheckRow", {
41
42
  enumerable: true,
42
- get: function () { return chunkXFKF3WRN_cjs.ContextCheckRow; }
43
+ get: function () { return chunkDZYAAL4H_cjs.ContextCheckRow; }
43
44
  });
44
45
  Object.defineProperty(exports, "ContextPanelContent", {
45
46
  enumerable: true,
46
- get: function () { return chunkXFKF3WRN_cjs.ContextPanelContent; }
47
+ get: function () { return chunkDZYAAL4H_cjs.ContextPanelContent; }
47
48
  });
48
49
  Object.defineProperty(exports, "ContextPanelFooter", {
49
50
  enumerable: true,
50
- get: function () { return chunkXFKF3WRN_cjs.ContextPanelFooter; }
51
+ get: function () { return chunkDZYAAL4H_cjs.ContextPanelFooter; }
51
52
  });
52
53
  Object.defineProperty(exports, "ContextPanelTabs", {
53
54
  enumerable: true,
54
- get: function () { return chunkXFKF3WRN_cjs.ContextPanelTabs; }
55
+ get: function () { return chunkDZYAAL4H_cjs.ContextPanelTabs; }
55
56
  });
56
57
  Object.defineProperty(exports, "ContextPickerList", {
57
58
  enumerable: true,
58
- get: function () { return chunkXFKF3WRN_cjs.ContextPickerList; }
59
+ get: function () { return chunkDZYAAL4H_cjs.ContextPickerList; }
59
60
  });
60
61
  Object.defineProperty(exports, "ContextPickerRow", {
61
62
  enumerable: true,
62
- get: function () { return chunkXFKF3WRN_cjs.ContextPickerRow; }
63
+ get: function () { return chunkDZYAAL4H_cjs.ContextPickerRow; }
63
64
  });
64
65
  Object.defineProperty(exports, "ContextSearchInput", {
65
66
  enumerable: true,
66
- get: function () { return chunkXFKF3WRN_cjs.ContextSearchInput; }
67
+ get: function () { return chunkDZYAAL4H_cjs.ContextSearchInput; }
67
68
  });
68
69
  Object.defineProperty(exports, "ContextSelectList", {
69
70
  enumerable: true,
70
- get: function () { return chunkXFKF3WRN_cjs.ContextSelectList; }
71
+ get: function () { return chunkDZYAAL4H_cjs.ContextSelectList; }
71
72
  });
72
73
  Object.defineProperty(exports, "ContextSelectRow", {
73
74
  enumerable: true,
74
- get: function () { return chunkXFKF3WRN_cjs.ContextSelectRow; }
75
+ get: function () { return chunkDZYAAL4H_cjs.ContextSelectRow; }
75
76
  });
76
77
  Object.defineProperty(exports, "Conversation", {
77
78
  enumerable: true,
78
- get: function () { return chunkXFKF3WRN_cjs.Conversation; }
79
+ get: function () { return chunkDZYAAL4H_cjs.Conversation; }
79
80
  });
80
81
  Object.defineProperty(exports, "ConversationBody", {
81
82
  enumerable: true,
82
- get: function () { return chunkXFKF3WRN_cjs.ConversationBody; }
83
+ get: function () { return chunkDZYAAL4H_cjs.ConversationBody; }
83
84
  });
84
85
  Object.defineProperty(exports, "ConversationFilter", {
85
86
  enumerable: true,
86
- get: function () { return chunkXFKF3WRN_cjs.ConversationFilter; }
87
+ get: function () { return chunkDZYAAL4H_cjs.ConversationFilter; }
87
88
  });
88
89
  Object.defineProperty(exports, "ConversationHeader", {
89
90
  enumerable: true,
90
- get: function () { return chunkXFKF3WRN_cjs.ConversationHeader; }
91
+ get: function () { return chunkDZYAAL4H_cjs.ConversationHeader; }
91
92
  });
92
93
  Object.defineProperty(exports, "ConversationHeaderActions", {
93
94
  enumerable: true,
94
- get: function () { return chunkXFKF3WRN_cjs.ConversationHeaderActions; }
95
+ get: function () { return chunkDZYAAL4H_cjs.ConversationHeaderActions; }
95
96
  });
96
97
  Object.defineProperty(exports, "ConversationHistoryPane", {
97
98
  enumerable: true,
98
- get: function () { return chunkXFKF3WRN_cjs.ConversationHistoryPane; }
99
+ get: function () { return chunkDZYAAL4H_cjs.ConversationHistoryPane; }
99
100
  });
100
101
  Object.defineProperty(exports, "ConversationLoading", {
101
102
  enumerable: true,
102
- get: function () { return chunkXFKF3WRN_cjs.ConversationLoading; }
103
+ get: function () { return chunkDZYAAL4H_cjs.ConversationLoading; }
103
104
  });
104
105
  Object.defineProperty(exports, "ConversationMain", {
105
106
  enumerable: true,
106
- get: function () { return chunkXFKF3WRN_cjs.ConversationMain; }
107
+ get: function () { return chunkDZYAAL4H_cjs.ConversationMain; }
107
108
  });
108
109
  Object.defineProperty(exports, "ConversationRoot", {
109
110
  enumerable: true,
110
- get: function () { return chunkXFKF3WRN_cjs.ConversationRoot; }
111
+ get: function () { return chunkDZYAAL4H_cjs.ConversationRoot; }
111
112
  });
112
113
  Object.defineProperty(exports, "ConversationSearchView", {
113
114
  enumerable: true,
114
- get: function () { return chunkXFKF3WRN_cjs.ConversationSearchView; }
115
+ get: function () { return chunkDZYAAL4H_cjs.ConversationSearchView; }
115
116
  });
116
117
  Object.defineProperty(exports, "ConversationSettingsButton", {
117
118
  enumerable: true,
118
- get: function () { return chunkXFKF3WRN_cjs.ConversationSettingsButton; }
119
+ get: function () { return chunkDZYAAL4H_cjs.ConversationSettingsButton; }
119
120
  });
120
121
  Object.defineProperty(exports, "DEFAULT_BRANCH_CONTROLS_LABELS", {
121
122
  enumerable: true,
122
- get: function () { return chunkXFKF3WRN_cjs.DEFAULT_BRANCH_CONTROLS_LABELS; }
123
+ get: function () { return chunkDZYAAL4H_cjs.DEFAULT_BRANCH_CONTROLS_LABELS; }
123
124
  });
124
125
  Object.defineProperty(exports, "DEFAULT_CONVERSATION_LAYOUT_LABELS", {
125
126
  enumerable: true,
126
- get: function () { return chunkXFKF3WRN_cjs.DEFAULT_CONVERSATION_LAYOUT_LABELS; }
127
+ get: function () { return chunkDZYAAL4H_cjs.DEFAULT_CONVERSATION_LAYOUT_LABELS; }
127
128
  });
128
129
  Object.defineProperty(exports, "DEFAULT_CONVERSATION_PARTS_LABELS", {
129
130
  enumerable: true,
130
- get: function () { return chunkXFKF3WRN_cjs.DEFAULT_CONVERSATION_PARTS_LABELS; }
131
+ get: function () { return chunkDZYAAL4H_cjs.DEFAULT_CONVERSATION_PARTS_LABELS; }
131
132
  });
132
133
  Object.defineProperty(exports, "DEFAULT_CONVERSATION_SEARCH_LABELS", {
133
134
  enumerable: true,
134
- get: function () { return chunkXFKF3WRN_cjs.DEFAULT_CONVERSATION_SEARCH_LABELS; }
135
+ get: function () { return chunkDZYAAL4H_cjs.DEFAULT_CONVERSATION_SEARCH_LABELS; }
135
136
  });
136
137
  Object.defineProperty(exports, "DEFAULT_DRAFTING_DOC_CHIP_LABELS", {
137
138
  enumerable: true,
138
- get: function () { return chunkXFKF3WRN_cjs.DEFAULT_DRAFTING_DOC_CHIP_LABELS; }
139
+ get: function () { return chunkDZYAAL4H_cjs.DEFAULT_DRAFTING_DOC_CHIP_LABELS; }
139
140
  });
140
141
  Object.defineProperty(exports, "DEFAULT_LABEL_PIN_ROW_LABELS", {
141
142
  enumerable: true,
142
- get: function () { return chunkXFKF3WRN_cjs.DEFAULT_LABEL_PIN_ROW_LABELS; }
143
+ get: function () { return chunkDZYAAL4H_cjs.DEFAULT_LABEL_PIN_ROW_LABELS; }
143
144
  });
144
145
  Object.defineProperty(exports, "DEFAULT_MODEL_PRICING_TIP_LABELS", {
145
146
  enumerable: true,
146
- get: function () { return chunkXFKF3WRN_cjs.DEFAULT_MODEL_PRICING_TIP_LABELS; }
147
+ get: function () { return chunkDZYAAL4H_cjs.DEFAULT_MODEL_PRICING_TIP_LABELS; }
147
148
  });
148
149
  Object.defineProperty(exports, "DEFAULT_PENDING_ANSWER_BAR_LABELS", {
149
150
  enumerable: true,
150
- get: function () { return chunkXFKF3WRN_cjs.DEFAULT_PENDING_ANSWER_BAR_LABELS; }
151
+ get: function () { return chunkDZYAAL4H_cjs.DEFAULT_PENDING_ANSWER_BAR_LABELS; }
151
152
  });
152
153
  Object.defineProperty(exports, "DEFAULT_PINNED_DOC_CHIP_LABELS", {
153
154
  enumerable: true,
154
- get: function () { return chunkXFKF3WRN_cjs.DEFAULT_PINNED_DOC_CHIP_LABELS; }
155
+ get: function () { return chunkDZYAAL4H_cjs.DEFAULT_PINNED_DOC_CHIP_LABELS; }
155
156
  });
156
157
  Object.defineProperty(exports, "DEFAULT_SLASH_MENU_LABELS", {
157
158
  enumerable: true,
158
- get: function () { return chunkXFKF3WRN_cjs.DEFAULT_SLASH_MENU_LABELS; }
159
+ get: function () { return chunkDZYAAL4H_cjs.DEFAULT_SLASH_MENU_LABELS; }
159
160
  });
160
161
  Object.defineProperty(exports, "DEFAULT_THREAD_MAP_LABELS", {
161
162
  enumerable: true,
162
- get: function () { return chunkXFKF3WRN_cjs.DEFAULT_THREAD_MAP_LABELS; }
163
+ get: function () { return chunkDZYAAL4H_cjs.DEFAULT_THREAD_MAP_LABELS; }
163
164
  });
164
165
  Object.defineProperty(exports, "DraftingDocChip", {
165
166
  enumerable: true,
166
- get: function () { return chunkXFKF3WRN_cjs.DraftingDocChip; }
167
+ get: function () { return chunkDZYAAL4H_cjs.DraftingDocChip; }
167
168
  });
168
169
  Object.defineProperty(exports, "LabelPinRow", {
169
170
  enumerable: true,
170
- get: function () { return chunkXFKF3WRN_cjs.LabelPinRow; }
171
+ get: function () { return chunkDZYAAL4H_cjs.LabelPinRow; }
171
172
  });
172
173
  Object.defineProperty(exports, "ModelAutoIcon", {
173
174
  enumerable: true,
174
- get: function () { return chunkXFKF3WRN_cjs.ModelAutoIcon; }
175
+ get: function () { return chunkDZYAAL4H_cjs.ModelAutoIcon; }
175
176
  });
176
177
  Object.defineProperty(exports, "ModelConfigureButton", {
177
178
  enumerable: true,
178
- get: function () { return chunkXFKF3WRN_cjs.ModelConfigureButton; }
179
+ get: function () { return chunkDZYAAL4H_cjs.ModelConfigureButton; }
179
180
  });
180
181
  Object.defineProperty(exports, "ModelDot", {
181
182
  enumerable: true,
182
- get: function () { return chunkXFKF3WRN_cjs.ModelDot; }
183
+ get: function () { return chunkDZYAAL4H_cjs.ModelDot; }
183
184
  });
184
185
  Object.defineProperty(exports, "ModelMenuDivider", {
185
186
  enumerable: true,
186
- get: function () { return chunkXFKF3WRN_cjs.ModelMenuDivider; }
187
+ get: function () { return chunkDZYAAL4H_cjs.ModelMenuDivider; }
187
188
  });
188
189
  Object.defineProperty(exports, "ModelMenuMessage", {
189
190
  enumerable: true,
190
- get: function () { return chunkXFKF3WRN_cjs.ModelMenuMessage; }
191
+ get: function () { return chunkDZYAAL4H_cjs.ModelMenuMessage; }
191
192
  });
192
193
  Object.defineProperty(exports, "ModelOption", {
193
194
  enumerable: true,
194
- get: function () { return chunkXFKF3WRN_cjs.ModelOption; }
195
+ get: function () { return chunkDZYAAL4H_cjs.ModelOption; }
195
196
  });
196
197
  Object.defineProperty(exports, "ModelOptionLabel", {
197
198
  enumerable: true,
198
- get: function () { return chunkXFKF3WRN_cjs.ModelOptionLabel; }
199
+ get: function () { return chunkDZYAAL4H_cjs.ModelOptionLabel; }
199
200
  });
200
201
  Object.defineProperty(exports, "ModelPickerPopover", {
201
202
  enumerable: true,
202
- get: function () { return chunkXFKF3WRN_cjs.ModelPickerPopover; }
203
+ get: function () { return chunkDZYAAL4H_cjs.ModelPickerPopover; }
203
204
  });
204
205
  Object.defineProperty(exports, "ModelPickerTrigger", {
205
206
  enumerable: true,
206
- get: function () { return chunkXFKF3WRN_cjs.ModelPickerTrigger; }
207
+ get: function () { return chunkDZYAAL4H_cjs.ModelPickerTrigger; }
207
208
  });
208
209
  Object.defineProperty(exports, "ModelPricingTip", {
209
210
  enumerable: true,
210
- get: function () { return chunkXFKF3WRN_cjs.ModelPricingTip; }
211
+ get: function () { return chunkDZYAAL4H_cjs.ModelPricingTip; }
211
212
  });
212
213
  Object.defineProperty(exports, "ModelTierIcon", {
213
214
  enumerable: true,
214
- get: function () { return chunkXFKF3WRN_cjs.ModelTierIcon; }
215
+ get: function () { return chunkDZYAAL4H_cjs.ModelTierIcon; }
215
216
  });
216
217
  Object.defineProperty(exports, "ModelTierOption", {
217
218
  enumerable: true,
218
- get: function () { return chunkXFKF3WRN_cjs.ModelTierOption; }
219
+ get: function () { return chunkDZYAAL4H_cjs.ModelTierOption; }
219
220
  });
220
221
  Object.defineProperty(exports, "ModelTriggerContent", {
221
222
  enumerable: true,
222
- get: function () { return chunkXFKF3WRN_cjs.ModelTriggerContent; }
223
+ get: function () { return chunkDZYAAL4H_cjs.ModelTriggerContent; }
223
224
  });
224
225
  Object.defineProperty(exports, "NewChatButton", {
225
226
  enumerable: true,
226
- get: function () { return chunkXFKF3WRN_cjs.NewChatButton; }
227
+ get: function () { return chunkDZYAAL4H_cjs.NewChatButton; }
227
228
  });
228
229
  Object.defineProperty(exports, "NewPaChatButton", {
229
230
  enumerable: true,
230
- get: function () { return chunkXFKF3WRN_cjs.NewPaChatButton; }
231
+ get: function () { return chunkDZYAAL4H_cjs.NewPaChatButton; }
231
232
  });
232
233
  Object.defineProperty(exports, "PaModeBadge", {
233
234
  enumerable: true,
234
- get: function () { return chunkXFKF3WRN_cjs.PaModeBadge; }
235
+ get: function () { return chunkDZYAAL4H_cjs.PaModeBadge; }
235
236
  });
236
237
  Object.defineProperty(exports, "PendingAnswerBar", {
237
238
  enumerable: true,
238
- get: function () { return chunkXFKF3WRN_cjs.PendingAnswerBar; }
239
+ get: function () { return chunkDZYAAL4H_cjs.PendingAnswerBar; }
239
240
  });
240
241
  Object.defineProperty(exports, "PinnedDocChip", {
241
242
  enumerable: true,
242
- get: function () { return chunkXFKF3WRN_cjs.PinnedDocChip; }
243
+ get: function () { return chunkDZYAAL4H_cjs.PinnedDocChip; }
243
244
  });
244
245
  Object.defineProperty(exports, "ProvisionalTranscriptLine", {
245
246
  enumerable: true,
246
- get: function () { return chunkXFKF3WRN_cjs.ProvisionalTranscriptLine; }
247
+ get: function () { return chunkDZYAAL4H_cjs.ProvisionalTranscriptLine; }
247
248
  });
248
249
  Object.defineProperty(exports, "SlashMenu", {
249
250
  enumerable: true,
250
- get: function () { return chunkXFKF3WRN_cjs.SlashMenu; }
251
+ get: function () { return chunkDZYAAL4H_cjs.SlashMenu; }
251
252
  });
252
253
  Object.defineProperty(exports, "ThreadMap", {
253
254
  enumerable: true,
254
- get: function () { return chunkXFKF3WRN_cjs.ThreadMap; }
255
+ get: function () { return chunkDZYAAL4H_cjs.ThreadMap; }
255
256
  });
256
257
  Object.defineProperty(exports, "ThreadMapDiagram", {
257
258
  enumerable: true,
258
- get: function () { return chunkXFKF3WRN_cjs.ThreadMapDiagram; }
259
+ get: function () { return chunkDZYAAL4H_cjs.ThreadMapDiagram; }
259
260
  });
260
261
  Object.defineProperty(exports, "ThreadMapError", {
261
262
  enumerable: true,
262
- get: function () { return chunkXFKF3WRN_cjs.ThreadMapError; }
263
+ get: function () { return chunkDZYAAL4H_cjs.ThreadMapError; }
263
264
  });
264
265
  Object.defineProperty(exports, "ThreadMapLoading", {
265
266
  enumerable: true,
266
- get: function () { return chunkXFKF3WRN_cjs.ThreadMapLoading; }
267
+ get: function () { return chunkDZYAAL4H_cjs.ThreadMapLoading; }
267
268
  });
268
269
  Object.defineProperty(exports, "TranscriptLine", {
269
270
  enumerable: true,
270
- get: function () { return chunkXFKF3WRN_cjs.TranscriptLine; }
271
+ get: function () { return chunkDZYAAL4H_cjs.TranscriptLine; }
271
272
  });
272
273
  Object.defineProperty(exports, "flashMessage", {
273
274
  enumerable: true,
274
- get: function () { return chunkXFKF3WRN_cjs.flashMessage; }
275
+ get: function () { return chunkDZYAAL4H_cjs.flashMessage; }
275
276
  });
276
277
  Object.defineProperty(exports, "getParticipantTints", {
277
278
  enumerable: true,
278
- get: function () { return chunkXFKF3WRN_cjs.getParticipantTints; }
279
+ get: function () { return chunkDZYAAL4H_cjs.getParticipantTints; }
279
280
  });
280
281
  Object.defineProperty(exports, "hasMessageBody", {
281
282
  enumerable: true,
282
- get: function () { return chunkXFKF3WRN_cjs.hasMessageBody; }
283
+ get: function () { return chunkDZYAAL4H_cjs.hasMessageBody; }
283
284
  });
284
285
  Object.defineProperty(exports, "isLongPastedText", {
285
286
  enumerable: true,
286
- get: function () { return chunkXFKF3WRN_cjs.isLongPastedText; }
287
+ get: function () { return chunkDZYAAL4H_cjs.isLongPastedText; }
287
288
  });
288
289
  Object.defineProperty(exports, "transcriptRuns", {
289
290
  enumerable: true,
290
- get: function () { return chunkXFKF3WRN_cjs.transcriptRuns; }
291
+ get: function () { return chunkDZYAAL4H_cjs.transcriptRuns; }
291
292
  });
292
293
  Object.defineProperty(exports, "useDismissibleCard", {
293
294
  enumerable: true,
294
- get: function () { return chunkXFKF3WRN_cjs.useDismissibleCard; }
295
+ get: function () { return chunkDZYAAL4H_cjs.useDismissibleCard; }
295
296
  });
296
297
  Object.defineProperty(exports, "useLongPaste", {
297
298
  enumerable: true,
298
- get: function () { return chunkXFKF3WRN_cjs.useLongPaste; }
299
+ get: function () { return chunkDZYAAL4H_cjs.useLongPaste; }
299
300
  });
300
301
  Object.defineProperty(exports, "useRecipientDraft", {
301
302
  enumerable: true,
302
- get: function () { return chunkXFKF3WRN_cjs.useRecipientDraft; }
303
+ get: function () { return chunkDZYAAL4H_cjs.useRecipientDraft; }
303
304
  });
304
305
  Object.defineProperty(exports, "AssistantDock", {
305
306
  enumerable: true,
@@ -537,6 +538,22 @@ Object.defineProperty(exports, "useStreamAnnouncement", {
537
538
  enumerable: true,
538
539
  get: function () { return chunkPJJY6CYL_cjs.useStreamAnnouncement; }
539
540
  });
541
+ Object.defineProperty(exports, "savedDocumentIdFor", {
542
+ enumerable: true,
543
+ get: function () { return chunkSWQX6CTT_cjs.savedDocumentIdFor; }
544
+ });
545
+ Object.defineProperty(exports, "takeOpenDocumentForTurn", {
546
+ enumerable: true,
547
+ get: function () { return chunkSWQX6CTT_cjs.takeOpenDocumentForTurn; }
548
+ });
549
+ Object.defineProperty(exports, "useOpenDocumentId", {
550
+ enumerable: true,
551
+ get: function () { return chunkSWQX6CTT_cjs.useOpenDocumentId; }
552
+ });
553
+ Object.defineProperty(exports, "useRegisterOpenDocument", {
554
+ enumerable: true,
555
+ get: function () { return chunkSWQX6CTT_cjs.useRegisterOpenDocument; }
556
+ });
540
557
  Object.defineProperty(exports, "useMentionAutocomplete", {
541
558
  enumerable: true,
542
559
  get: function () { return chunk6AALMYPS_cjs.useMentionAutocomplete; }
@@ -33,6 +33,7 @@ export { ChatMessageContent, type ChatMessageContentProps } from './ChatMessageC
33
33
  export { CitationMark, type CitationMarkProps, type CitationLabels } from './CitationMark';
34
34
  export { ChatThreadList, ChatThreadSelect } from './ChatThreads';
35
35
  export { useChatSurface, useRegisterEmbeddedChat, type ChatSurface } from './chat-surface';
36
+ export { savedDocumentIdFor, useRegisterOpenDocument, useOpenDocumentId, takeOpenDocumentForTurn, type SavedDocumentInput, type OpenDocumentRegistration, } from './open-document';
36
37
  export { DEFAULT_CHAT_PAGE_LABELS, type ChatCitationTarget, type ChatPageCitation, type ChatPageController, type ChatPageDocument, type ChatPageLabels, type ChatPageMessage, type ChatPagePassage, type ChatPageProps, type ChatPageThread, } from './chat-page-types';
37
38
  export { AssistantDock, AssistantDockToggle, useAssistantDock, type AssistantDockProps, type AssistantDockToggleProps, } from './AssistantDock';
38
39
  export { AssistantToaster, type AssistantToasterProps } from './AssistantToaster';
@@ -1,12 +1,13 @@
1
1
  "use client";
2
- export { AssistantToaster, BranchControls, ComposerAccessories, ComposerTools, ContextActionButton, ContextCheckRow, ContextPanelContent, ContextPanelFooter, ContextPanelTabs, ContextPickerList, ContextPickerRow, ContextSearchInput, ContextSelectList, ContextSelectRow, Conversation, ConversationBody, ConversationFilter, 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_DRAFTING_DOC_CHIP_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, DraftingDocChip, LabelPinRow, ModelAutoIcon, ModelConfigureButton, ModelDot, ModelMenuDivider, ModelMenuMessage, ModelOption, ModelOptionLabel, ModelPickerPopover, ModelPickerTrigger, ModelPricingTip, ModelTierIcon, ModelTierOption, ModelTriggerContent, NewChatButton, NewPaChatButton, PaModeBadge, PendingAnswerBar, PinnedDocChip, ProvisionalTranscriptLine, SlashMenu, ThreadMap, ThreadMapDiagram, ThreadMapError, ThreadMapLoading, TranscriptLine, flashMessage, getParticipantTints, hasMessageBody, isLongPastedText, transcriptRuns, useDismissibleCard, useLongPaste, useRecipientDraft } from '../chunk-UUXKB3WQ.js';
2
+ export { AssistantToaster, BranchControls, ComposerAccessories, ComposerTools, ContextActionButton, ContextCheckRow, ContextPanelContent, ContextPanelFooter, ContextPanelTabs, ContextPickerList, ContextPickerRow, ContextSearchInput, ContextSelectList, ContextSelectRow, Conversation, ConversationBody, ConversationFilter, 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_DRAFTING_DOC_CHIP_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, DraftingDocChip, LabelPinRow, ModelAutoIcon, ModelConfigureButton, ModelDot, ModelMenuDivider, ModelMenuMessage, ModelOption, ModelOptionLabel, ModelPickerPopover, ModelPickerTrigger, ModelPricingTip, ModelTierIcon, ModelTierOption, ModelTriggerContent, NewChatButton, NewPaChatButton, PaModeBadge, PendingAnswerBar, PinnedDocChip, ProvisionalTranscriptLine, SlashMenu, ThreadMap, ThreadMapDiagram, ThreadMapError, ThreadMapLoading, TranscriptLine, flashMessage, getParticipantTints, hasMessageBody, isLongPastedText, transcriptRuns, useDismissibleCard, useLongPaste, useRecipientDraft } from '../chunk-H2KQ6OSU.js';
3
3
  import '../chunk-OKERRHLH.js';
4
4
  export { AssistantDock, AssistantDockToggle, AssistantModeToggle, ChatDocuments, ChatMessageContent, ChatPage, ChatThreadList, ChatThreadSelect, CitationMark, Composer, ComposerBranchingNotice, ComposerContainer, ComposerDock, ComposerFrame, ComposerInput, ComposerRoot, ComposerSend, ComposerToolbar, ComposerVoiceButton, ContextChip, ConversationEmpty, DEFAULT_ASSISTANT_MODE_TOGGLE_LABELS, DEFAULT_CHAT_PAGE_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_CONVERSATION_EMPTY_LABELS, DEFAULT_MESSAGE_ALERT_LABELS, DEFAULT_MESSAGE_LABELS, DEFAULT_MESSAGE_LIST_LABELS, DEFAULT_WORKFLOW_STEP_CHIP_LABELS, Message, MessageActionButton, MessageActionMenu, MessageAlert, MessageAuthor, MessageBody, MessageBubble, MessageByline, MessageContent, MessageFooter, MessageList, MessageListBanner, MessageListEmpty, MessageListRoot, MessageListRow, MessageListRows, MessageListStatus, MessageListTail, MessageNarration, MessageRoot, MessageSources, MessageSubagentBadge, ScrollToBottom, SourceChip, WorkflowStepChip, toSpeakableText, useAssistantDock, useChatSurface, useRegisterEmbeddedChat, useStreamAnnouncement } from '../chunk-PUCY3UXN.js';
5
5
  import '../chunk-7XF5SFJ2.js';
6
+ export { savedDocumentIdFor, takeOpenDocumentForTurn, useOpenDocumentId, useRegisterOpenDocument } from '../chunk-GYCQ3FNL.js';
6
7
  export { useMentionAutocomplete } from '../chunk-2DFDFOM7.js';
7
8
  import '../chunk-AUS3KBHJ.js';
8
- import '../chunk-SLSBJRWW.js';
9
9
  export { DEFAULT_MENTION_LABELS, MENTION_HREF_PREFIX, MentionChip, MentionMenu, extractMentions, filterMentionCandidates, findMentionQuery, insertMention, linkMentions, mentionFromHref, toMessageMentions, useListKeyNav } from '../chunk-AA3PT6KR.js';
10
+ import '../chunk-SLSBJRWW.js';
10
11
  import '../chunk-Z3AZ7Q5X.js';
11
12
  import '../chunk-NPLYHR2E.js';
12
13
  import '../chunk-7F6CBP3Z.js';
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Drafting mode: the saved document open beside the chat is what a chat turn is about.
3
+ *
4
+ * A viewer registers the document it shows (`useRegisterOpenDocument`); every assistant turn names
5
+ * it (`active_artifact_ext_id`, read with `takeOpenDocumentForTurn` as the question is sent), so the
6
+ * server binds the live document to the turn: a Word document is read on demand and edited as
7
+ * tracked changes in the open editor, and what the assistant saves becomes a child version of it.
8
+ * The request carries a reference, never the content.
9
+ *
10
+ * The open document is always the subject, also while one of its earlier versions is on screen
11
+ * read-only: a version still names its document. Sending a turn then returns the viewer to the live
12
+ * document (`showLive`), where the assistant's edits appear as they are made. (Pinning a specific
13
+ * version as a source is a separate feature: it does not go through here.)
14
+ *
15
+ * A module-level registry (not React context), like `useChatSurface`, so a viewer and a chat agree
16
+ * wherever they sit in the tree; the most recently opened document wins and closing it hands back
17
+ * to the one before.
18
+ */
19
+ /** What a viewer knows about the document it shows. */
20
+ export interface SavedDocumentInput {
21
+ /** The document (`doc-…`), never a version reference. */
22
+ documentId: string | null | undefined;
23
+ /** An unsaved draft (client-minted id, no backend record). */
24
+ isDraft: boolean;
25
+ /** Still streaming: nothing is persisted yet. */
26
+ isStreaming: boolean;
27
+ /** An image, audio or video artifact: there is no text to draft in. */
28
+ isBlobArtifact: boolean;
29
+ /** The loaded document record. */
30
+ documentData: {
31
+ external_id?: string | null;
32
+ wp_type?: string | null;
33
+ file_name?: string | null;
34
+ } | null | undefined;
35
+ }
36
+ /**
37
+ * The saved, content-backed document a chat can draft in, or null. Only a saved artifact or Word
38
+ * document counts: drafts, an artifact still streaming and blob artifacts do not.
39
+ */
40
+ export declare function savedDocumentIdFor(input: SavedDocumentInput): string | null;
41
+ export interface OpenDocumentRegistration {
42
+ /** The saved document the viewer shows (`doc-…`); null or empty registers nothing. */
43
+ documentId: string | null | undefined;
44
+ /** What is on screen: the document itself, or one of its earlier versions (`doc-…@v2`). */
45
+ shownId?: string | null;
46
+ /** Show the live document again. Called when a turn starts while an earlier version is shown. */
47
+ showLive?: () => void;
48
+ /** The workspace the document belongs to; a chat in another workspace does not draft in it. */
49
+ workspaceId?: string | null;
50
+ }
51
+ /**
52
+ * Registers the document a viewer shows as the open document while the caller is mounted and
53
+ * `documentId` is set. Pass `savedDocumentIdFor(...)`, or the id of a document known to be saved.
54
+ */
55
+ export declare function useRegisterOpenDocument(registration: OpenDocumentRegistration): void;
56
+ /** The open document's id, or null. Re-renders when another document opens or it closes. */
57
+ export declare function useOpenDocumentId(): string | null;
58
+ /**
59
+ * The document an assistant turn about to be sent drafts in, or null. Call it once per turn as the
60
+ * question is sent: when an earlier version of the document is on screen, the viewer returns to the
61
+ * live document, where the assistant's edits appear. With `workspaceId`, a document registered in
62
+ * another workspace is not named (and its viewer is left alone).
63
+ */
64
+ export declare function takeOpenDocumentForTurn(options?: {
65
+ workspaceId?: string | null;
66
+ }): string | null;