@arbidocs/react 0.5.114 → 0.5.116
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/chat/thread-binding.js +23 -1
- package/dist/chat/thread-binding.js.map +2 -2
- package/dist/chat/useAutoSendDraft.js +3 -3
- package/dist/chat/useAutoSendDraft.js.map +2 -2
- package/dist/chat/useThreadDocument.js +10 -6
- package/dist/chat/useThreadDocument.js.map +2 -2
- package/dist/{chunk-UDDJIUHJ.cjs → chunk-K6ELFSG6.cjs} +7 -5
- package/dist/chunk-K6ELFSG6.cjs.map +1 -0
- package/dist/{chunk-FQVNZCTD.cjs → chunk-LBAG7KL7.cjs} +3 -3
- package/dist/{chunk-FQVNZCTD.cjs.map → chunk-LBAG7KL7.cjs.map} +1 -1
- package/dist/{chunk-C72FSQUE.cjs → chunk-Z3W4XFWB.cjs} +3 -3
- package/dist/{chunk-C72FSQUE.cjs.map → chunk-Z3W4XFWB.cjs.map} +1 -1
- package/dist/document-tools/core.cjs +80 -80
- package/dist/document-tools/index.cjs +80 -80
- package/dist/document-tools/useDocumentBytes.js +5 -2
- package/dist/document-tools/useDocumentBytes.js.map +2 -2
- package/dist/index.cjs +318 -292
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -7
- package/dist/shell/index.cjs +37 -37
- package/dist/ui/index.cjs +154 -154
- package/package.json +3 -3
- package/dist/chunk-UDDJIUHJ.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -3175,11 +3175,6 @@ declare function threadBinding(queryClient: QueryClient, conversationId: string
|
|
|
3175
3175
|
declare function boundDocumentOf(queryClient: QueryClient, state: ReturnType<NewChatSession['getState']>): string | null;
|
|
3176
3176
|
/** Put a binding in the cache (the list rows and the threads response that hold the conversation). */
|
|
3177
3177
|
declare function cacheThreadBinding(queryClient: QueryClient, conversationId: string, binding: ThreadBinding): void;
|
|
3178
|
-
/**
|
|
3179
|
-
* Bind a saved conversation to a document, or (null) unbind it: shown at once, written to the
|
|
3180
|
-
* server. Rejects (with the cache put back) when the server refuses: a document of another
|
|
3181
|
-
* workspace, or one the caller cannot read.
|
|
3182
|
-
*/
|
|
3183
3178
|
declare function bindThreadDocument(arbi: Pick<Arbi, 'conversations'>, queryClient: QueryClient, conversationId: string, documentId: string | null): Promise<void>;
|
|
3184
3179
|
/**
|
|
3185
3180
|
* A new chat got its server id: the document its first turn was sent with is now the
|
|
@@ -3203,7 +3198,7 @@ declare function migrateLegacyThreadDocuments(arbi: Pick<Arbi, 'conversations'>,
|
|
|
3203
3198
|
declare function useThreadDocument(): {
|
|
3204
3199
|
documentId: string | null;
|
|
3205
3200
|
unavailable: boolean;
|
|
3206
|
-
bind: (documentId: string | null) =>
|
|
3201
|
+
bind: (documentId: string | null) => Promise<boolean>;
|
|
3207
3202
|
};
|
|
3208
3203
|
|
|
3209
3204
|
/**
|
|
@@ -3545,7 +3540,7 @@ declare function useDocumentAutoAdd({ selectedWorkspaceId, allWorkspaceDocuments
|
|
|
3545
3540
|
* One-shot: the flag is cleared before sending, so a failed send never
|
|
3546
3541
|
* retries itself.
|
|
3547
3542
|
*/
|
|
3548
|
-
declare function useAutoSendDraft(sendDraft: () => void, ready?: boolean): void;
|
|
3543
|
+
declare function useAutoSendDraft(sendDraft: () => void, ready?: boolean, canSend?: () => boolean): void;
|
|
3549
3544
|
|
|
3550
3545
|
/**
|
|
3551
3546
|
* A question left without its answer: the answer failed on the server, or it never started (the
|
package/dist/shell/index.cjs
CHANGED
|
@@ -1,156 +1,156 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZ3W4XFWB_cjs = require('../chunk-Z3W4XFWB.cjs');
|
|
4
4
|
var chunkRLSBRZ6Z_cjs = require('../chunk-RLSBRZ6Z.cjs');
|
|
5
5
|
require('../chunk-N73IMVFF.cjs');
|
|
6
6
|
require('../chunk-NDIKMOBJ.cjs');
|
|
7
7
|
require('../chunk-VOFNX4P6.cjs');
|
|
8
8
|
require('../chunk-KC474WVG.cjs');
|
|
9
|
-
var chunk5NOZDH3F_cjs = require('../chunk-5NOZDH3F.cjs');
|
|
10
9
|
require('../chunk-HJDR5HEO.cjs');
|
|
10
|
+
var chunk5NOZDH3F_cjs = require('../chunk-5NOZDH3F.cjs');
|
|
11
11
|
require('../chunk-S6A6FSG7.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "ArbiHost", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkZ3W4XFWB_cjs.ArbiHost; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "DEFAULT_ASSISTANT_NAME", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkZ3W4XFWB_cjs.DEFAULT_ASSISTANT_NAME; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "LEGACY_THREAD_DOCUMENTS_KEY", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkZ3W4XFWB_cjs.LEGACY_THREAD_DOCUMENTS_KEY; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "MENTION_HREF_PREFIX", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkZ3W4XFWB_cjs.MENTION_HREF_PREFIX; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "NotificationBell", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkZ3W4XFWB_cjs.NotificationBell; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "Toaster", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkZ3W4XFWB_cjs.Toaster; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "UNBOUND", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkZ3W4XFWB_cjs.UNBOUND; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "assistantCopy", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkZ3W4XFWB_cjs.assistantCopy; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "bindingOfRow", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkZ3W4XFWB_cjs.bindingOfRow; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "clearSearchSession", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkZ3W4XFWB_cjs.clearSearchSession; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "createSearchSession", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkZ3W4XFWB_cjs.createSearchSession; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "extractMentions", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkZ3W4XFWB_cjs.extractMentions; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "filterMentionCandidates", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkZ3W4XFWB_cjs.filterMentionCandidates; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "findMentionQuery", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkZ3W4XFWB_cjs.findMentionQuery; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "forgetLegacyThreadDocuments", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkZ3W4XFWB_cjs.forgetLegacyThreadDocuments; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "hasMessageBody", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkZ3W4XFWB_cjs.hasMessageBody; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "insertMention", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkZ3W4XFWB_cjs.insertMention; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "latestThreadOfDocument", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkZ3W4XFWB_cjs.latestThreadOfDocument; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "linkMentions", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkZ3W4XFWB_cjs.linkMentions; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "mentionFromHref", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkZ3W4XFWB_cjs.mentionFromHref; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "openDocumentId", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkZ3W4XFWB_cjs.openDocumentId; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "opensInWord", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkZ3W4XFWB_cjs.opensInWord; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "persistSearchSession", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkZ3W4XFWB_cjs.persistSearchSession; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "readLegacyThreadDocuments", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkZ3W4XFWB_cjs.readLegacyThreadDocuments; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "requestSearch", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkZ3W4XFWB_cjs.requestSearch; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "savedDocumentIdFor", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkZ3W4XFWB_cjs.savedDocumentIdFor; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "sharedSearchSession", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkZ3W4XFWB_cjs.sharedSearchSession; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "takeDocumentForTurn", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkZ3W4XFWB_cjs.takeDocumentForTurn; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "takePendingSearch", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkZ3W4XFWB_cjs.takePendingSearch; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "toMessageMentions", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkZ3W4XFWB_cjs.toMessageMentions; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "useAssistantCopy", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkZ3W4XFWB_cjs.useAssistantCopy; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "useAssistantName", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkZ3W4XFWB_cjs.useAssistantName; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "useOpenDocumentId", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkZ3W4XFWB_cjs.useOpenDocumentId; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "useRegisterOpenDocument", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkZ3W4XFWB_cjs.useRegisterOpenDocument; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "useTurnDocumentId", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkZ3W4XFWB_cjs.useTurnDocumentId; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "clearChatArtifacts", {
|
|
156
156
|
enumerable: true,
|