@arbidocs/blocks 0.4.126 → 0.4.128
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/calls/index.cjs +2 -2
- package/dist/calls/index.js +1 -1
- package/dist/chat/index.cjs +89 -72
- package/dist/chat/index.d.ts +1 -0
- package/dist/chat/index.js +2 -1
- package/dist/chat/open-document.d.ts +66 -0
- package/dist/{chunk-DZI7WOUD.cjs → chunk-3BJLNKOB.cjs} +6 -2
- package/dist/chunk-3BJLNKOB.cjs.map +1 -0
- package/dist/{chunk-IXTQYFIF.js → chunk-6HCJ3ZEU.js} +34 -6
- package/dist/chunk-6HCJ3ZEU.js.map +1 -0
- package/dist/{chunk-HQH35JWC.js → chunk-7BJRLP3U.js} +6 -3
- package/dist/chunk-7BJRLP3U.js.map +1 -0
- package/dist/{chunk-6Z72CXZR.js → chunk-CJBN5HIS.js} +6 -2
- package/dist/chunk-CJBN5HIS.js.map +1 -0
- package/dist/{chunk-JJLMCV3T.js → chunk-ECERC6TI.js} +32 -28
- package/dist/chunk-ECERC6TI.js.map +1 -0
- package/dist/{chunk-4VCKYR4D.cjs → chunk-FSBY2S4V.cjs} +6 -3
- package/dist/chunk-FSBY2S4V.cjs.map +1 -0
- package/dist/chunk-GYCQ3FNL.js +60 -0
- package/dist/chunk-GYCQ3FNL.js.map +1 -0
- package/dist/{chunk-VMZXFYHK.cjs → chunk-NZUQFF35.cjs} +2 -2
- package/dist/{chunk-VMZXFYHK.cjs.map → chunk-NZUQFF35.cjs.map} +1 -1
- package/dist/{chunk-U6MPHCEB.cjs → chunk-O6IEZDRC.cjs} +33 -5
- package/dist/chunk-O6IEZDRC.cjs.map +1 -0
- package/dist/chunk-SWQX6CTT.cjs +65 -0
- package/dist/chunk-SWQX6CTT.cjs.map +1 -0
- package/dist/{chunk-GICUGQNN.cjs → chunk-ZAVEMQ37.cjs} +31 -27
- package/dist/chunk-ZAVEMQ37.cjs.map +1 -0
- package/dist/{chunk-Y4X3RBFI.js → chunk-ZCHSJUCI.js} +2 -2
- package/dist/{chunk-Y4X3RBFI.js.map → chunk-ZCHSJUCI.js.map} +1 -1
- package/dist/collaboration/index.cjs +15 -15
- package/dist/collaboration/index.js +1 -1
- package/dist/collaboration/mail/MailMessageView.d.ts +5 -1
- package/dist/connect/docx.cjs +4 -3
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.js +3 -2
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +93 -36
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +66 -9
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/mail/types.d.ts +2 -6
- package/dist/index.cjs +113 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/settings/ConfirmDialog.d.ts +4 -1
- package/dist/settings/index.cjs +3 -3
- package/dist/settings/index.js +1 -1
- package/dist/studio/index.cjs +3 -2
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +2 -1
- package/dist/studio/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/docx/README.md +7 -3
- package/dist/chunk-4VCKYR4D.cjs.map +0 -1
- package/dist/chunk-6Z72CXZR.js.map +0 -1
- package/dist/chunk-DZI7WOUD.cjs.map +0 -1
- package/dist/chunk-GICUGQNN.cjs.map +0 -1
- package/dist/chunk-HQH35JWC.js.map +0 -1
- package/dist/chunk-IXTQYFIF.js.map +0 -1
- package/dist/chunk-JJLMCV3T.js.map +0 -1
- package/dist/chunk-U6MPHCEB.cjs.map +0 -1
package/dist/calls/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkZAVEMQ37_cjs = require('../chunk-ZAVEMQ37.cjs');
|
|
5
5
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
6
6
|
require('../chunk-ULWRNGGE.cjs');
|
|
7
7
|
var chunkMWDW5UBW_cjs = require('../chunk-MWDW5UBW.cjs');
|
|
@@ -1986,7 +1986,7 @@ function WebinarEndConfirm({
|
|
|
1986
1986
|
const { isPending, run } = usePending();
|
|
1987
1987
|
const ending = isPending("end");
|
|
1988
1988
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1989
|
-
|
|
1989
|
+
chunkZAVEMQ37_cjs.ConfirmDialog,
|
|
1990
1990
|
{
|
|
1991
1991
|
isOpen: open,
|
|
1992
1992
|
onClose: () => onOpenChange(false),
|
package/dist/calls/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ConfirmDialog } from '../chunk-
|
|
2
|
+
import { ConfirmDialog } from '../chunk-ECERC6TI.js';
|
|
3
3
|
import { TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
4
4
|
import '../chunk-TX2ZICS7.js';
|
|
5
5
|
import { NOTICE_MS, gridSlots, gridLayout, spotlightBox, CAPTION_TTL_MS, CAPTION_LINES, speakerAccent, formatElapsed, initialsOf } from '../chunk-Z3AZ7Q5X.js';
|
package/dist/chat/index.cjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkNZUQFF35_cjs = require('../chunk-NZUQFF35.cjs');
|
|
5
5
|
require('../chunk-5UHAWSEX.cjs');
|
|
6
6
|
var chunkWV4IDVDQ_cjs = require('../chunk-WV4IDVDQ.cjs');
|
|
7
7
|
require('../chunk-B6MVQCXW.cjs');
|
|
8
|
+
var chunkSWQX6CTT_cjs = require('../chunk-SWQX6CTT.cjs');
|
|
8
9
|
var chunkHM23LXUP_cjs = require('../chunk-HM23LXUP.cjs');
|
|
9
10
|
var chunk7UTB4PHM_cjs = require('../chunk-7UTB4PHM.cjs');
|
|
10
11
|
require('../chunk-32HW2Q33.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
|
|
23
|
+
get: function () { return chunkNZUQFF35_cjs.AssistantToaster; }
|
|
23
24
|
});
|
|
24
25
|
Object.defineProperty(exports, "BranchControls", {
|
|
25
26
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkNZUQFF35_cjs.BranchControls; }
|
|
27
28
|
});
|
|
28
29
|
Object.defineProperty(exports, "ComposerAccessories", {
|
|
29
30
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkNZUQFF35_cjs.ComposerAccessories; }
|
|
31
32
|
});
|
|
32
33
|
Object.defineProperty(exports, "ComposerTools", {
|
|
33
34
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkNZUQFF35_cjs.ComposerTools; }
|
|
35
36
|
});
|
|
36
37
|
Object.defineProperty(exports, "ContextActionButton", {
|
|
37
38
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkNZUQFF35_cjs.ContextActionButton; }
|
|
39
40
|
});
|
|
40
41
|
Object.defineProperty(exports, "ContextCheckRow", {
|
|
41
42
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkNZUQFF35_cjs.ContextCheckRow; }
|
|
43
44
|
});
|
|
44
45
|
Object.defineProperty(exports, "ContextPanelContent", {
|
|
45
46
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkNZUQFF35_cjs.ContextPanelContent; }
|
|
47
48
|
});
|
|
48
49
|
Object.defineProperty(exports, "ContextPanelFooter", {
|
|
49
50
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkNZUQFF35_cjs.ContextPanelFooter; }
|
|
51
52
|
});
|
|
52
53
|
Object.defineProperty(exports, "ContextPanelTabs", {
|
|
53
54
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkNZUQFF35_cjs.ContextPanelTabs; }
|
|
55
56
|
});
|
|
56
57
|
Object.defineProperty(exports, "ContextPickerList", {
|
|
57
58
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkNZUQFF35_cjs.ContextPickerList; }
|
|
59
60
|
});
|
|
60
61
|
Object.defineProperty(exports, "ContextPickerRow", {
|
|
61
62
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkNZUQFF35_cjs.ContextPickerRow; }
|
|
63
64
|
});
|
|
64
65
|
Object.defineProperty(exports, "ContextSearchInput", {
|
|
65
66
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkNZUQFF35_cjs.ContextSearchInput; }
|
|
67
68
|
});
|
|
68
69
|
Object.defineProperty(exports, "ContextSelectList", {
|
|
69
70
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkNZUQFF35_cjs.ContextSelectList; }
|
|
71
72
|
});
|
|
72
73
|
Object.defineProperty(exports, "ContextSelectRow", {
|
|
73
74
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkNZUQFF35_cjs.ContextSelectRow; }
|
|
75
76
|
});
|
|
76
77
|
Object.defineProperty(exports, "Conversation", {
|
|
77
78
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkNZUQFF35_cjs.Conversation; }
|
|
79
80
|
});
|
|
80
81
|
Object.defineProperty(exports, "ConversationBody", {
|
|
81
82
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkNZUQFF35_cjs.ConversationBody; }
|
|
83
84
|
});
|
|
84
85
|
Object.defineProperty(exports, "ConversationFilter", {
|
|
85
86
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkNZUQFF35_cjs.ConversationFilter; }
|
|
87
88
|
});
|
|
88
89
|
Object.defineProperty(exports, "ConversationHeader", {
|
|
89
90
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkNZUQFF35_cjs.ConversationHeader; }
|
|
91
92
|
});
|
|
92
93
|
Object.defineProperty(exports, "ConversationHeaderActions", {
|
|
93
94
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkNZUQFF35_cjs.ConversationHeaderActions; }
|
|
95
96
|
});
|
|
96
97
|
Object.defineProperty(exports, "ConversationHistoryPane", {
|
|
97
98
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkNZUQFF35_cjs.ConversationHistoryPane; }
|
|
99
100
|
});
|
|
100
101
|
Object.defineProperty(exports, "ConversationLoading", {
|
|
101
102
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkNZUQFF35_cjs.ConversationLoading; }
|
|
103
104
|
});
|
|
104
105
|
Object.defineProperty(exports, "ConversationMain", {
|
|
105
106
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkNZUQFF35_cjs.ConversationMain; }
|
|
107
108
|
});
|
|
108
109
|
Object.defineProperty(exports, "ConversationRoot", {
|
|
109
110
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkNZUQFF35_cjs.ConversationRoot; }
|
|
111
112
|
});
|
|
112
113
|
Object.defineProperty(exports, "ConversationSearchView", {
|
|
113
114
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkNZUQFF35_cjs.ConversationSearchView; }
|
|
115
116
|
});
|
|
116
117
|
Object.defineProperty(exports, "ConversationSettingsButton", {
|
|
117
118
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkNZUQFF35_cjs.ConversationSettingsButton; }
|
|
119
120
|
});
|
|
120
121
|
Object.defineProperty(exports, "DEFAULT_BRANCH_CONTROLS_LABELS", {
|
|
121
122
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkNZUQFF35_cjs.DEFAULT_BRANCH_CONTROLS_LABELS; }
|
|
123
124
|
});
|
|
124
125
|
Object.defineProperty(exports, "DEFAULT_CONVERSATION_LAYOUT_LABELS", {
|
|
125
126
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkNZUQFF35_cjs.DEFAULT_CONVERSATION_LAYOUT_LABELS; }
|
|
127
128
|
});
|
|
128
129
|
Object.defineProperty(exports, "DEFAULT_CONVERSATION_PARTS_LABELS", {
|
|
129
130
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkNZUQFF35_cjs.DEFAULT_CONVERSATION_PARTS_LABELS; }
|
|
131
132
|
});
|
|
132
133
|
Object.defineProperty(exports, "DEFAULT_CONVERSATION_SEARCH_LABELS", {
|
|
133
134
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkNZUQFF35_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
|
|
139
|
+
get: function () { return chunkNZUQFF35_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
|
|
143
|
+
get: function () { return chunkNZUQFF35_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
|
|
147
|
+
get: function () { return chunkNZUQFF35_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
|
|
151
|
+
get: function () { return chunkNZUQFF35_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
|
|
155
|
+
get: function () { return chunkNZUQFF35_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
|
|
159
|
+
get: function () { return chunkNZUQFF35_cjs.DEFAULT_SLASH_MENU_LABELS; }
|
|
159
160
|
});
|
|
160
161
|
Object.defineProperty(exports, "DEFAULT_THREAD_MAP_LABELS", {
|
|
161
162
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkNZUQFF35_cjs.DEFAULT_THREAD_MAP_LABELS; }
|
|
163
164
|
});
|
|
164
165
|
Object.defineProperty(exports, "DraftingDocChip", {
|
|
165
166
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkNZUQFF35_cjs.DraftingDocChip; }
|
|
167
168
|
});
|
|
168
169
|
Object.defineProperty(exports, "LabelPinRow", {
|
|
169
170
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkNZUQFF35_cjs.LabelPinRow; }
|
|
171
172
|
});
|
|
172
173
|
Object.defineProperty(exports, "ModelAutoIcon", {
|
|
173
174
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkNZUQFF35_cjs.ModelAutoIcon; }
|
|
175
176
|
});
|
|
176
177
|
Object.defineProperty(exports, "ModelConfigureButton", {
|
|
177
178
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkNZUQFF35_cjs.ModelConfigureButton; }
|
|
179
180
|
});
|
|
180
181
|
Object.defineProperty(exports, "ModelDot", {
|
|
181
182
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkNZUQFF35_cjs.ModelDot; }
|
|
183
184
|
});
|
|
184
185
|
Object.defineProperty(exports, "ModelMenuDivider", {
|
|
185
186
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkNZUQFF35_cjs.ModelMenuDivider; }
|
|
187
188
|
});
|
|
188
189
|
Object.defineProperty(exports, "ModelMenuMessage", {
|
|
189
190
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkNZUQFF35_cjs.ModelMenuMessage; }
|
|
191
192
|
});
|
|
192
193
|
Object.defineProperty(exports, "ModelOption", {
|
|
193
194
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkNZUQFF35_cjs.ModelOption; }
|
|
195
196
|
});
|
|
196
197
|
Object.defineProperty(exports, "ModelOptionLabel", {
|
|
197
198
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkNZUQFF35_cjs.ModelOptionLabel; }
|
|
199
200
|
});
|
|
200
201
|
Object.defineProperty(exports, "ModelPickerPopover", {
|
|
201
202
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkNZUQFF35_cjs.ModelPickerPopover; }
|
|
203
204
|
});
|
|
204
205
|
Object.defineProperty(exports, "ModelPickerTrigger", {
|
|
205
206
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkNZUQFF35_cjs.ModelPickerTrigger; }
|
|
207
208
|
});
|
|
208
209
|
Object.defineProperty(exports, "ModelPricingTip", {
|
|
209
210
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkNZUQFF35_cjs.ModelPricingTip; }
|
|
211
212
|
});
|
|
212
213
|
Object.defineProperty(exports, "ModelTierIcon", {
|
|
213
214
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkNZUQFF35_cjs.ModelTierIcon; }
|
|
215
216
|
});
|
|
216
217
|
Object.defineProperty(exports, "ModelTierOption", {
|
|
217
218
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkNZUQFF35_cjs.ModelTierOption; }
|
|
219
220
|
});
|
|
220
221
|
Object.defineProperty(exports, "ModelTriggerContent", {
|
|
221
222
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkNZUQFF35_cjs.ModelTriggerContent; }
|
|
223
224
|
});
|
|
224
225
|
Object.defineProperty(exports, "NewChatButton", {
|
|
225
226
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkNZUQFF35_cjs.NewChatButton; }
|
|
227
228
|
});
|
|
228
229
|
Object.defineProperty(exports, "NewPaChatButton", {
|
|
229
230
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkNZUQFF35_cjs.NewPaChatButton; }
|
|
231
232
|
});
|
|
232
233
|
Object.defineProperty(exports, "PaModeBadge", {
|
|
233
234
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunkNZUQFF35_cjs.PaModeBadge; }
|
|
235
236
|
});
|
|
236
237
|
Object.defineProperty(exports, "PendingAnswerBar", {
|
|
237
238
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkNZUQFF35_cjs.PendingAnswerBar; }
|
|
239
240
|
});
|
|
240
241
|
Object.defineProperty(exports, "PinnedDocChip", {
|
|
241
242
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunkNZUQFF35_cjs.PinnedDocChip; }
|
|
243
244
|
});
|
|
244
245
|
Object.defineProperty(exports, "ProvisionalTranscriptLine", {
|
|
245
246
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunkNZUQFF35_cjs.ProvisionalTranscriptLine; }
|
|
247
248
|
});
|
|
248
249
|
Object.defineProperty(exports, "SlashMenu", {
|
|
249
250
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunkNZUQFF35_cjs.SlashMenu; }
|
|
251
252
|
});
|
|
252
253
|
Object.defineProperty(exports, "ThreadMap", {
|
|
253
254
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunkNZUQFF35_cjs.ThreadMap; }
|
|
255
256
|
});
|
|
256
257
|
Object.defineProperty(exports, "ThreadMapDiagram", {
|
|
257
258
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkNZUQFF35_cjs.ThreadMapDiagram; }
|
|
259
260
|
});
|
|
260
261
|
Object.defineProperty(exports, "ThreadMapError", {
|
|
261
262
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkNZUQFF35_cjs.ThreadMapError; }
|
|
263
264
|
});
|
|
264
265
|
Object.defineProperty(exports, "ThreadMapLoading", {
|
|
265
266
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunkNZUQFF35_cjs.ThreadMapLoading; }
|
|
267
268
|
});
|
|
268
269
|
Object.defineProperty(exports, "TranscriptLine", {
|
|
269
270
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunkNZUQFF35_cjs.TranscriptLine; }
|
|
271
272
|
});
|
|
272
273
|
Object.defineProperty(exports, "flashMessage", {
|
|
273
274
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunkNZUQFF35_cjs.flashMessage; }
|
|
275
276
|
});
|
|
276
277
|
Object.defineProperty(exports, "getParticipantTints", {
|
|
277
278
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunkNZUQFF35_cjs.getParticipantTints; }
|
|
279
280
|
});
|
|
280
281
|
Object.defineProperty(exports, "hasMessageBody", {
|
|
281
282
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunkNZUQFF35_cjs.hasMessageBody; }
|
|
283
284
|
});
|
|
284
285
|
Object.defineProperty(exports, "isLongPastedText", {
|
|
285
286
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunkNZUQFF35_cjs.isLongPastedText; }
|
|
287
288
|
});
|
|
288
289
|
Object.defineProperty(exports, "transcriptRuns", {
|
|
289
290
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunkNZUQFF35_cjs.transcriptRuns; }
|
|
291
292
|
});
|
|
292
293
|
Object.defineProperty(exports, "useDismissibleCard", {
|
|
293
294
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunkNZUQFF35_cjs.useDismissibleCard; }
|
|
295
296
|
});
|
|
296
297
|
Object.defineProperty(exports, "useLongPaste", {
|
|
297
298
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunkNZUQFF35_cjs.useLongPaste; }
|
|
299
300
|
});
|
|
300
301
|
Object.defineProperty(exports, "useRecipientDraft", {
|
|
301
302
|
enumerable: true,
|
|
302
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunkNZUQFF35_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 chunkWV4IDVDQ_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 chunkHM23LXUP_cjs.useMentionAutocomplete; }
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/chat/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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-
|
|
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-ZCHSJUCI.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-CXLVI3SB.js';
|
|
5
5
|
import '../chunk-7XF5SFJ2.js';
|
|
6
|
+
export { savedDocumentIdFor, takeOpenDocumentForTurn, useOpenDocumentId, useRegisterOpenDocument } from '../chunk-GYCQ3FNL.js';
|
|
6
7
|
export { useMentionAutocomplete } from '../chunk-7HAM7Y5U.js';
|
|
7
8
|
export { DEFAULT_MENTION_LABELS, MENTION_HREF_PREFIX, MentionChip, MentionMenu, extractMentions, filterMentionCandidates, findMentionQuery, insertMention, linkMentions, mentionFromHref, toMessageMentions, useListKeyNav } from '../chunk-AA3PT6KR.js';
|
|
8
9
|
import '../chunk-AUS3KBHJ.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;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
var chunkMUMH3Z6K_cjs = require('./chunk-MUMH3Z6K.cjs');
|
|
5
5
|
var chunkS24XEVPS_cjs = require('./chunk-S24XEVPS.cjs');
|
|
6
6
|
var chunkV5OAXIBN_cjs = require('./chunk-V5OAXIBN.cjs');
|
|
7
|
+
var chunkSWQX6CTT_cjs = require('./chunk-SWQX6CTT.cjs');
|
|
7
8
|
var react$1 = require('react');
|
|
8
9
|
var reactQuery = require('@tanstack/react-query');
|
|
9
10
|
var react = require('@arbidocs/react');
|
|
@@ -14,6 +15,9 @@ function ConnectedNativeDocxEditor({
|
|
|
14
15
|
...props
|
|
15
16
|
}) {
|
|
16
17
|
const adapter = useConnectedNativeDocxAdapter(fontBaseUrl);
|
|
18
|
+
const { workspaceId } = chunkMUMH3Z6K_cjs.useConnection();
|
|
19
|
+
const live = !props.snapshot && !props.stream && !props.draftContent && !props.compact;
|
|
20
|
+
chunkSWQX6CTT_cjs.useRegisterOpenDocument({ documentId: live ? props.documentId : null, workspaceId });
|
|
17
21
|
return /* @__PURE__ */ jsxRuntime.jsx(chunkV5OAXIBN_cjs.NativeDocxEditor, { ...props, adapter });
|
|
18
22
|
}
|
|
19
23
|
function useConnectedNativeDocxAdapter(fontBaseUrl = "/native-docx/fonts") {
|
|
@@ -92,5 +96,5 @@ function useConnectedNativeDocxAdapter(fontBaseUrl = "/native-docx/fonts") {
|
|
|
92
96
|
|
|
93
97
|
exports.ConnectedNativeDocxEditor = ConnectedNativeDocxEditor;
|
|
94
98
|
exports.useConnectedNativeDocxAdapter = useConnectedNativeDocxAdapter;
|
|
95
|
-
//# sourceMappingURL=chunk-
|
|
96
|
-
//# sourceMappingURL=chunk-
|
|
99
|
+
//# sourceMappingURL=chunk-3BJLNKOB.cjs.map
|
|
100
|
+
//# sourceMappingURL=chunk-3BJLNKOB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/connection/ConnectedNativeDocxEditor.tsx"],"names":["useConnection","useRegisterOpenDocument","jsx","NativeDocxEditor","useArbi","useQueryClient","useQuery","useMemo","loadDocxFonts","arbiQueryKeys","notify"],"mappings":";;;;;;;;;;;AAaO,SAAS,yBAAA,CAA0B;AAAA,EACxC,WAAA,GAAc,oBAAA;AAAA,EACd,GAAG;AACL,CAAA,EAAsE;AACpE,EAAA,MAAM,OAAA,GAAU,8BAA8B,WAAW,CAAA;AACzD,EAAA,MAAM,EAAE,WAAA,EAAY,GAAIA,+BAAA,EAAc;AAGtC,EAAA,MAAM,IAAA,GAAO,CAAC,KAAA,CAAM,QAAA,IAAY,CAAC,KAAA,CAAM,MAAA,IAAU,CAAC,KAAA,CAAM,YAAA,IAAgB,CAAC,KAAA,CAAM,OAAA;AAC/E,EAAAC,yCAAA,CAAwB,EAAE,UAA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CAAA,EAAG;AAAA,KACvF,CAAA;AAAA,IACA,CAAC,MAAM,MAAA,EAAQ,IAAA,EAAM,MAAM,OAAA,EAAS,mBAAA,EAAqB,WAAA,EAAa,OAAA,EAAS,WAAW;AAAA,GAC5F;AACA,EAAA,OAAO,OAAA;AACT","file":"chunk-3BJLNKOB.cjs","sourcesContent":["import { useMemo } from 'react'\nimport { useQuery, useQueryClient } from '@tanstack/react-query'\nimport { useArbi, notify, arbiQueryKeys } from '@arbidocs/react'\nimport { useConnection } from './ConnectionProvider'\nimport {\n NativeDocxEditor,\n type NativeDocxAdapter,\n type NativeDocxEditorProps,\n} from '../docx/NativeDocxEditor'\nimport { loadDocxFonts } from '../docx/fonts'\nimport { useRegisterOpenDocument } from '../chat/open-document'\n\n/** Native Word widget bound to the standard blocks connection and SDK session. */\nexport function ConnectedNativeDocxEditor({\n fontBaseUrl = '/native-docx/fonts',\n ...props\n}: Omit<NativeDocxEditorProps, 'adapter'> & { fontBaseUrl?: string }) {\n const adapter = useConnectedNativeDocxAdapter(fontBaseUrl)\n const { workspaceId } = useConnection()\n // Drafting mode: the saved Word document being edited is what the chat is about. A history\n // snapshot, a streamed preview, an unsaved draft and an embedded body field are not.\n const live = !props.snapshot && !props.stream && !props.draftContent && !props.compact\n useRegisterOpenDocument({ documentId: live ? props.documentId : null, workspaceId })\n return <NativeDocxEditor {...props} adapter={adapter} />\n}\n\nexport function useConnectedNativeDocxAdapter(fontBaseUrl = '/native-docx/fonts') {\n const arbi = useArbi()\n const { workspaceId, apiUrl, user, ensureWorkspaceOpen } = useConnection()\n const queries = useQueryClient()\n const { data: members } = useQuery({\n queryKey: ['native-docx-members', apiUrl, user?.externalId, workspaceId],\n enabled: arbi.isLoggedIn && !!workspaceId,\n queryFn: async () => {\n await ensureWorkspaceOpen()\n return arbi.workspaces.listUsers()\n },\n })\n const adapter = useMemo<NativeDocxAdapter>(\n () => ({\n request: async (path, options) => {\n await ensureWorkspaceOpen()\n return arbi.editor.request(path, options)\n },\n open: async (id) => {\n await ensureWorkspaceOpen()\n return (\n await arbi.editor.request(`/${encodeURIComponent(id)}/session`, { method: 'POST' })\n ).json()\n },\n save: async (id, state) =>\n (\n await arbi.editor.request(`/${encodeURIComponent(id)}/save`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ state }),\n })\n ).json(),\n loadFonts: () => loadDocxFonts(fontBaseUrl),\n baseUrl: apiUrl,\n author: user?.name || 'You',\n onVersionSaved: async (id) => {\n if (!workspaceId) return\n const key = arbiQueryKeys.documents(workspaceId)\n try {\n const documents = await arbi.documents.get([id])\n if (!documents.length) throw new Error('The saved version is not available yet.')\n queries.setQueryData<Awaited<ReturnType<typeof arbi.documents.list>>>(key, (previous) => [\n ...documents,\n ...(previous || []).filter(\n (doc) => !documents.some((saved) => saved.external_id === doc.external_id)\n ),\n ])\n } catch {\n await queries.invalidateQueries({ queryKey: key })\n }\n },\n notify: (message, kind) => notify[kind](message),\n mentions: members?.map(({ user: member }) => ({\n id: member.external_id,\n name: [member.given_name, member.family_name].filter(Boolean).join(' '),\n kind: member.external_id.startsWith('agt-') ? 'agent' : 'human',\n })),\n requestAgent: async (id, request) => {\n const response = await arbi.editor.request(`/${encodeURIComponent(id)}/mentions`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n comment_id: request.commentId,\n instruction: request.instruction,\n request_id: request.requestId,\n recipient_ids: request.recipientIds,\n }),\n })\n const delivery = (await response.json()) as { response_ids: string[] }\n notify.success('Mention delivered.')\n return { responseIds: delivery.response_ids || [] }\n },\n getAgentStatus: async (responseId) => (await arbi.assistant.getResponse(responseId)).status,\n }),\n [arbi, apiUrl, user?.name, members, ensureWorkspaceOpen, fontBaseUrl, queries, workspaceId]\n )\n return adapter\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { GridView } from './chunk-N5YEF3LC.js';
|
|
3
|
-
import { Paperclip, Mail, AlertCircle, Clock, CheckCircle2, Send, ArrowLeft, Reply, Sparkles, Forward, Archive, Trash2, FolderOpen } from 'lucide-react';
|
|
3
|
+
import { Paperclip, Mail, AlertCircle, Clock, CheckCircle2, Send, ArrowLeft, Reply, Sparkles, Forward, RotateCcw, Archive, Trash2, FolderOpen } from 'lucide-react';
|
|
4
4
|
import { cn, Button, Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from '@arbidocs/react/ui';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import { useMemo, useState } from 'react';
|
|
@@ -322,7 +322,9 @@ function MailMessageView({
|
|
|
322
322
|
onDownloadOriginal,
|
|
323
323
|
onSaveToWorkspace,
|
|
324
324
|
personLabel = mailAddressLabel,
|
|
325
|
-
renderInvite
|
|
325
|
+
renderInvite,
|
|
326
|
+
onRestore,
|
|
327
|
+
onDeleteForever
|
|
326
328
|
}) {
|
|
327
329
|
const offlineTitle = isOnline ? void 0 : NEEDS_CONNECTION;
|
|
328
330
|
return /* @__PURE__ */ jsxs("article", { className: "min-w-0 flex-1 overflow-auto p-4 sm:p-5", children: [
|
|
@@ -357,7 +359,20 @@ function MailMessageView({
|
|
|
357
359
|
children: message.unread ? "Mark read" : "Mark unread"
|
|
358
360
|
}
|
|
359
361
|
),
|
|
360
|
-
|
|
362
|
+
folderRole === "trash" && onRestore ? /* @__PURE__ */ jsxs(
|
|
363
|
+
Button,
|
|
364
|
+
{
|
|
365
|
+
variant: "ghost",
|
|
366
|
+
disabled: !isOnline,
|
|
367
|
+
title: offlineTitle,
|
|
368
|
+
onClick: onRestore,
|
|
369
|
+
"data-testid": "mail-restore-button",
|
|
370
|
+
children: [
|
|
371
|
+
/* @__PURE__ */ jsx(RotateCcw, { className: "mr-2 size-4" }),
|
|
372
|
+
"Restore"
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
) : (folderRole === "archive" || folderRole === "trash") && /* @__PURE__ */ jsx(
|
|
361
376
|
Button,
|
|
362
377
|
{
|
|
363
378
|
variant: "ghost",
|
|
@@ -378,7 +393,20 @@ function MailMessageView({
|
|
|
378
393
|
children: /* @__PURE__ */ jsx(Archive, { className: "size-4" })
|
|
379
394
|
}
|
|
380
395
|
),
|
|
381
|
-
/* @__PURE__ */
|
|
396
|
+
folderRole === "trash" && onDeleteForever ? /* @__PURE__ */ jsxs(
|
|
397
|
+
Button,
|
|
398
|
+
{
|
|
399
|
+
variant: "ghost",
|
|
400
|
+
disabled: !isOnline,
|
|
401
|
+
title: offlineTitle,
|
|
402
|
+
onClick: onDeleteForever,
|
|
403
|
+
"data-testid": "mail-delete-forever-button",
|
|
404
|
+
children: [
|
|
405
|
+
/* @__PURE__ */ jsx(Trash2, { className: "mr-2 size-4" }),
|
|
406
|
+
"Delete forever"
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
) : /* @__PURE__ */ jsx(
|
|
382
410
|
Button,
|
|
383
411
|
{
|
|
384
412
|
variant: "ghost",
|
|
@@ -566,5 +594,5 @@ function PlainMailBodyEditor({ text, disabled, onChange }) {
|
|
|
566
594
|
}
|
|
567
595
|
|
|
568
596
|
export { MailDeliveryBadge, MailDeliveryList, MailDocumentPicker, MailGrid, MailMessagePreview, MailMessageView, NEEDS_CONNECTION, PlainMailBodyEditor, draftMailCompose, emptyMailCompose, hasCalendarPart, mailAddressLabel, parseMailRecipients, replyMailCompose };
|
|
569
|
-
//# sourceMappingURL=chunk-
|
|
570
|
-
//# sourceMappingURL=chunk-
|
|
597
|
+
//# sourceMappingURL=chunk-6HCJ3ZEU.js.map
|
|
598
|
+
//# sourceMappingURL=chunk-6HCJ3ZEU.js.map
|