@aintela/chat 0.4.29 → 0.4.31
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/components.js +2868 -2852
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +7 -6
- package/dist/index.js +77 -76
- package/dist/{predictionRows-CtyrlEUr.js → predictionRows-Cn0gzEx3.js} +15 -13
- package/dist/{predictionRows-CtyrlEUr.js.map → predictionRows-Cn0gzEx3.js.map} +1 -1
- package/dist/src/hooks/index.d.ts +1 -1
- package/dist/src/hooks/usePromptAssist.d.ts +8 -0
- package/dist/src/utils/swallowNextClick.d.ts +12 -1
- package/dist/src/utils/swallowNextClick.test.d.ts +1 -0
- package/dist/useContainerWidth-C33sJaCi.js +383 -0
- package/dist/useContainerWidth-C33sJaCi.js.map +1 -0
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/useContainerWidth-pE_-xmTN.js +0 -342
- package/dist/useContainerWidth-pE_-xmTN.js.map +0 -1
package/dist/hooks.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u } from "./useChatSessions-BzgPYfyj.js";
|
|
1
|
+
import { s as a, u as t, a as o, b as r } from "./useContainerWidth-C33sJaCi.js";
|
|
2
|
+
import { u as n } from "./useChatSessions-BzgPYfyj.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
t as
|
|
7
|
-
o as
|
|
4
|
+
a as slotDatesFor,
|
|
5
|
+
n as useChatSessions,
|
|
6
|
+
t as useContainerRectangle,
|
|
7
|
+
o as useInterval,
|
|
8
|
+
r as usePromptAssist
|
|
8
9
|
};
|
|
9
10
|
//# sourceMappingURL=hooks.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
|
-
import { A as s, a as
|
|
2
|
+
import { A as s, a as o, b as n, c as r, d as i, C as c, e as l, f as A, E as p, g, F as S, h as C, G as I, I as h, L as d, M as P, i as E, R as u, j as v, S as T, k as m, l as L, m as R, n as x, o as M, T as y, p as D, q as f, r as U, s as _, t as k, u as B, v as V, w as F } from "./serializer-BB8Cz7YD.js";
|
|
3
3
|
import { C as H, C as N } from "./ClientMessage-DUby3KyC.js";
|
|
4
4
|
import { A as G, a as O, M as W, b as z, S as J, i as K } from "./Memory-CjrYSkzB.js";
|
|
5
5
|
import { C as q, P as X } from "./Prompt-DZb7OaPp.js";
|
|
6
6
|
import { A as Y, a as Q, E as $, H as ee, I as ae, L as te, W as se } from "./httpArtifactService-_66bhjGo.js";
|
|
7
|
-
import { A as
|
|
7
|
+
import { A as ne } from "./artifactHtmlHandler-CMQJf1cX.js";
|
|
8
8
|
import { H as ie, d as ce, r as le } from "./httpSessionService-B3CxFtl1.js";
|
|
9
|
-
import { APPBAR_HEIGHT as pe, APPBAR_HEIGHT as ge, ASK_USER_CANCELLED as Se, AgentActivity as Ce, AgentActivity as Ie, AiChat as he, AiChatDrawer as de, AiChatFloating as Pe, AiChatFloating as Ee, AiChatPane as ue, AiChatProvider as ve, AiChatServiceContext as Te, AiChatPane as me, AppBar as Le, AppBar as Re, AppRail as xe, AppRail as Me, AppShell as ye, AppShell as
|
|
10
|
-
import {
|
|
11
|
-
import { A as
|
|
12
|
-
import { ALLOWED_DOMAINS as
|
|
13
|
-
import { S as
|
|
14
|
-
import { u as
|
|
15
|
-
import { Score as
|
|
9
|
+
import { APPBAR_HEIGHT as pe, APPBAR_HEIGHT as ge, ASK_USER_CANCELLED as Se, AgentActivity as Ce, AgentActivity as Ie, AiChat as he, AiChatDrawer as de, AiChatFloating as Pe, AiChatFloating as Ee, AiChatPane as ue, AiChatProvider as ve, AiChatServiceContext as Te, AiChatPane as me, AppBar as Le, AppBar as Re, AppRail as xe, AppRail as Me, AppShell as ye, AppShell as De, ArtifactRender as fe, AskUserDialog as Ue, AskUserSheet as _e, AttachmentPreviewModal as ke, BoxedPart as Be, BrainIcon as Ve, ChartIcon as Fe, ChatIcon as be, ChatPane as He, ChatsHistory as Ne, ChatsHistory as we, CheckIcon as Ge, ChevronIcon as Oe, ChevronRightIcon as We, CloseIcon as ze, CodeIcon as Je, ComposerIcon as Ke, CurrentMessage as je, DEFAULT_PART_RENDERERS as qe, DashboardIcon as Xe, DataExplorerIcon as Ze, DelayTextComponent as Ye, EnvironmentProvider as Qe, FileIcon as $e, FunctionPart as ea, GlobeIcon as aa, HistoryIcon as ta, IDLE_TIMEOUT as sa, InertEnvironmentProvider as oa, JsxErrorBoundary as na, LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL as ra, LastPrompts as ia, LastPrompts as ca, LinearBackgroundProgress as la, LinearProgressBarWithMarkers as Aa, ListCheckIcon as pa, LiveJsxBlock as ga, LiveTsxConfigProvider as Sa, LlmResponseRender as Ca, LoadingDots as Ia, LockClosedIcon as ha, LockOpenIcon as da, MOBILE_NAV_DEFAULT as Pa, MarkdownExtended as Ea, MentionPickerPanel as ua, MenuIcon as va, Message as Ta, MobileDrawer as ma, MobileDrawer as La, PanelIcon as Ra, PaperclipIcon as xa, PauseIcon as Ma, PenIcon as ya, PinIcon as Da, PlusIcon as fa, Prompt as Ua, PromptDateMarkers as _a, PromptGhostHint as ka, Prompt as Ba, RotateIcon as Va, RunProgressPanel as Fa, RunProgressPanel as ba, RunProgressStrip as Ha, RunProgressStrip as Na, SearchIcon as wa, SendIcon as Ga, SessionStateManagerService as Oa, SessionUsage as Wa, SessionUsage as za, SparkleIcon as Ja, Sparkline as Ka, StopIcon as ja, Stopwatch as qa, SubAgentBox as Xa, SubAgentBox as Za, SuspendedPart as Ya, TableIcon as Qa, TaskList as $a, TaskList as et, TerminalIcon as at, TextPart as tt, ThoughtPart as st, ToolIcon as ot, TrashIcon as nt, TriggerDropdown as rt, TurnAwareButton as it, UiToolDispatcher as ct, UndoIcon as lt, UsersIcon as At, V2_CHART_PALETTE as pt, WARNING_THRESHOLD as gt, WaitingPart as St, ZoomInIcon as Ct, ZoomOutIcon as It, classifyPart as ht, configureFriendlyMapping as dt, createAiChatEngine as Pt, createAiChatSessionStore as Et, createAiChatSessionStore as ut, createUiToolRegistry as vt, disposeSharedAiChatEngine as Tt, engineKeyFor as mt, extendDefaultScope as Lt, extendModuleRegistry as Rt, getDefaultJsxScope as xt, getFriendlyLabel as Mt, getSharedAiChatEngine as yt, parseClientOutput as Dt, parseContentBlocks as ft, parseUiArgs as Ut, slotEnterSx as _t, useAgentEngine as kt, useAiChatServices as Bt, useAiChatSessionStore as Vt, useCoarsePointer as Ft, useEnvironment as bt, useEnvironmentOptional as Ht, useLiveTsxMaxCharsForFull as Nt, useParkedAskUser as wt, useResponsiveLayout as Gt, useTurnOpen as Ot, useVisualViewport as Wt, v2Card as zt, v2Chip as Jt, v2IconBtn as Kt, v2MonoMeta as jt, v2SectionLabel as qt, v2Theme as Xt } from "./components.js";
|
|
10
|
+
import { s as Yt, u as Qt, a as $t, b as es } from "./useContainerWidth-C33sJaCi.js";
|
|
11
|
+
import { A as ts, D as ss, g as os, b as ns, c as rs, d as is, e as cs, f as ls, i as As, r as ps } from "./environmentUtils-VZNTCzEE.js";
|
|
12
|
+
import { ALLOWED_DOMAINS as Ss, ALLOWED_EMAILS as Cs, AUTH_CONFIG as Is, GOOGLE_CLIENT_ID as hs, getAgentBaseUrl as ds, getArtifactsBaseUrl as Ps, getDotNetBaseUrl as Es, getIconByName as us, iconCategories as vs, materialIcons as Ts, searchIcons as ms, setEbiContextData as Ls, setEbiContextSessionId as Rs } from "./utils.js";
|
|
13
|
+
import { S as Ms, a as ys, b as Ds, c as fs, d as Us, e as _s, f as ks, g as Bs, h as Vs, i as Fs, j as bs, k as Hs, l as Ns, p as ws, m as Gs, s as Os, o as Ws, q as zs, t as Js, r as Ks } from "./predictionRows-Cn0gzEx3.js";
|
|
14
|
+
import { u as qs } from "./useChatSessions-BzgPYfyj.js";
|
|
15
|
+
import { Score as Zs } from "./interfaces.js";
|
|
16
16
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
Ss as ALLOWED_DOMAINS,
|
|
18
|
+
Cs as ALLOWED_EMAILS,
|
|
19
|
+
ts as ANALYTICS_AGENT_NAME,
|
|
20
20
|
pe as APPBAR_HEIGHT,
|
|
21
21
|
ge as APPBAR_V2_HEIGHT,
|
|
22
22
|
Se as ASK_USER_CANCELLED,
|
|
23
|
-
|
|
23
|
+
Is as AUTH_CONFIG,
|
|
24
24
|
G as Account,
|
|
25
25
|
Ce as AgentActivity,
|
|
26
26
|
Ie as AgentActivityV2,
|
|
@@ -28,8 +28,8 @@ export {
|
|
|
28
28
|
Y as AgentGatewayService,
|
|
29
29
|
Q as AgentGatewayWSAsync,
|
|
30
30
|
O as AgentKind,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
o as AgentMode,
|
|
32
|
+
n as AgentType,
|
|
33
33
|
he as AiChat,
|
|
34
34
|
de as AiChatDrawer,
|
|
35
35
|
Pe as AiChatFloating,
|
|
@@ -43,9 +43,9 @@ export {
|
|
|
43
43
|
xe as AppRail,
|
|
44
44
|
Me as AppRailV2,
|
|
45
45
|
ye as AppShell,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
De as AppShellV2,
|
|
47
|
+
ne as ArtifactHtmlHandler,
|
|
48
|
+
fe as ArtifactRender,
|
|
49
49
|
r as ArtifactType,
|
|
50
50
|
Ue as AskUserDialog,
|
|
51
51
|
_e as AskUserSheet,
|
|
@@ -53,10 +53,10 @@ export {
|
|
|
53
53
|
i as AuthorType,
|
|
54
54
|
Be as BoxedPart,
|
|
55
55
|
Ve as BrainIcon,
|
|
56
|
-
|
|
56
|
+
Fe as ChartIcon,
|
|
57
57
|
c as ChatAction,
|
|
58
58
|
l as ChatEventType,
|
|
59
|
-
|
|
59
|
+
be as ChatIcon,
|
|
60
60
|
A as ChatMessageContent,
|
|
61
61
|
He as ChatPane,
|
|
62
62
|
Ne as ChatsHistory,
|
|
@@ -72,7 +72,7 @@ export {
|
|
|
72
72
|
q as ConnectionState,
|
|
73
73
|
je as CurrentMessage,
|
|
74
74
|
qe as DEFAULT_PART_RENDERERS,
|
|
75
|
-
|
|
75
|
+
ss as DEV_SERVER_CONFIG,
|
|
76
76
|
Xe as DashboardIcon,
|
|
77
77
|
Ze as DataExplorerIcon,
|
|
78
78
|
Ye as DelayTextComponent,
|
|
@@ -84,17 +84,17 @@ export {
|
|
|
84
84
|
S as FunctionCallContent,
|
|
85
85
|
ea as FunctionPart,
|
|
86
86
|
C as FunctionResultContent,
|
|
87
|
-
|
|
87
|
+
hs as GOOGLE_CLIENT_ID,
|
|
88
88
|
I as GetEventTypeFromDotNetName,
|
|
89
89
|
aa as GlobeIcon,
|
|
90
90
|
ta as HistoryIcon,
|
|
91
91
|
ee as HttpArtifactService,
|
|
92
92
|
ie as HttpSessionService,
|
|
93
93
|
sa as IDLE_TIMEOUT,
|
|
94
|
-
|
|
94
|
+
oa as InertEnvironmentProvider,
|
|
95
95
|
h as InteractionPartUtils,
|
|
96
96
|
ae as InteractionService,
|
|
97
|
-
|
|
97
|
+
na as JsxErrorBoundary,
|
|
98
98
|
ra as LIVE_TSX_DEFAULT_MAX_CHARS_FOR_FULL,
|
|
99
99
|
ia as LastPrompts,
|
|
100
100
|
ca as LastPromptsV2,
|
|
@@ -124,8 +124,8 @@ export {
|
|
|
124
124
|
xa as PaperclipIcon,
|
|
125
125
|
Ma as PauseIcon,
|
|
126
126
|
ya as PenIcon,
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
Da as PinIcon,
|
|
128
|
+
fa as PlusIcon,
|
|
129
129
|
Ua as Prompt,
|
|
130
130
|
_a as PromptDateMarkers,
|
|
131
131
|
ka as PromptGhostHint,
|
|
@@ -134,12 +134,12 @@ export {
|
|
|
134
134
|
u as ResponseType,
|
|
135
135
|
Va as RotateIcon,
|
|
136
136
|
v as RunMode,
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
Fa as RunProgressPanel,
|
|
138
|
+
ba as RunProgressPanelV2,
|
|
139
139
|
Ha as RunProgressStrip,
|
|
140
140
|
Na as RunProgressStripV2,
|
|
141
141
|
J as SUB_AGENT_TERMINAL_STATUSES,
|
|
142
|
-
|
|
142
|
+
Zs as Score,
|
|
143
143
|
wa as SearchIcon,
|
|
144
144
|
Ga as SendIcon,
|
|
145
145
|
T as ServerEvent,
|
|
@@ -147,7 +147,7 @@ export {
|
|
|
147
147
|
Wa as SessionUsage,
|
|
148
148
|
za as SessionUsagePanel,
|
|
149
149
|
m as SkillLevel,
|
|
150
|
-
|
|
150
|
+
Ms as SortableTable,
|
|
151
151
|
Ja as SparkleIcon,
|
|
152
152
|
Ka as Sparkline,
|
|
153
153
|
ja as StopIcon,
|
|
@@ -166,8 +166,8 @@ export {
|
|
|
166
166
|
y as TextContent,
|
|
167
167
|
tt as TextPart,
|
|
168
168
|
st as ThoughtPart,
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
ot as ToolIcon,
|
|
170
|
+
nt as TrashIcon,
|
|
171
171
|
rt as TriggerDropdown,
|
|
172
172
|
it as TurnAwareButton,
|
|
173
173
|
ct as UiToolDispatcher,
|
|
@@ -179,82 +179,83 @@ export {
|
|
|
179
179
|
se as WebSocketConnecionV2,
|
|
180
180
|
Ct as ZoomInIcon,
|
|
181
181
|
It as ZoomOutIcon,
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
ys as activatePlaceholder,
|
|
183
|
+
Ds as advanceToPlaceholder,
|
|
184
184
|
fs as applyTriggerInsertion,
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
Us as chipLocations,
|
|
186
|
+
_s as chunkArray,
|
|
187
187
|
ht as classifyPart,
|
|
188
188
|
dt as configureFriendlyMapping,
|
|
189
189
|
Pt as createAiChatEngine,
|
|
190
190
|
Et as createAiChatSessionStore,
|
|
191
191
|
ut as createAiChatStore,
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
D as createEventSerializer,
|
|
193
|
+
f as createStreamingResponseSerializer,
|
|
194
194
|
vt as createUiToolRegistry,
|
|
195
195
|
ce as decodeSessionEvents,
|
|
196
196
|
U as deserializeEvent,
|
|
197
197
|
_ as deserializePayload,
|
|
198
|
-
|
|
198
|
+
ks as detectTrigger,
|
|
199
199
|
Tt as disposeSharedAiChatEngine,
|
|
200
200
|
mt as engineKeyFor,
|
|
201
201
|
Lt as extendDefaultScope,
|
|
202
202
|
Rt as extendModuleRegistry,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
Bs as extractInteractionId,
|
|
204
|
+
Vs as extractLinkAction,
|
|
205
|
+
Fs as fetchAtMentions,
|
|
206
206
|
bs as findPlaceholder,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
ds as getAgentBaseUrl,
|
|
208
|
+
os as getAgentServerBaseUrl,
|
|
209
|
+
Ps as getArtifactsBaseUrl,
|
|
210
210
|
k as getConnectionStateColor,
|
|
211
211
|
xt as getDefaultJsxScope,
|
|
212
|
-
|
|
212
|
+
Es as getDotNetBaseUrl,
|
|
213
213
|
ns as getEnvVar,
|
|
214
|
-
|
|
214
|
+
rs as getEnvironmentInfo,
|
|
215
215
|
Mt as getFriendlyLabel,
|
|
216
|
-
|
|
216
|
+
us as getIconByName,
|
|
217
217
|
B as getModelVendor,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
218
|
+
is as getRandomUUID,
|
|
219
|
+
cs as getServerBaseUrl,
|
|
220
|
+
ls as getServerClientBaseUrl,
|
|
221
221
|
yt as getSharedAiChatEngine,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
vs as iconCategories,
|
|
223
|
+
Hs as isSectionStart,
|
|
224
|
+
As as isServer,
|
|
225
225
|
K as isSubAgentTerminalStatus,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
226
|
+
Ns as isValidInteractionId,
|
|
227
|
+
Ts as materialIcons,
|
|
228
|
+
Dt as parseClientOutput,
|
|
229
|
+
ft as parseContentBlocks,
|
|
230
230
|
Ut as parseUiArgs,
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
ws as placeCaret,
|
|
232
|
+
Gs as placeholderAt,
|
|
233
233
|
le as resolveAccessToken,
|
|
234
|
-
|
|
234
|
+
ps as resolveApiUrl,
|
|
235
235
|
V as sanitizeJsonString,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
ms as searchIcons,
|
|
237
|
+
F as serializeEvent,
|
|
238
|
+
Ls as setEbiContextData,
|
|
239
|
+
Rs as setEbiContextSessionId,
|
|
240
|
+
Yt as slotDatesFor,
|
|
240
241
|
_t as slotEnterSx,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
242
|
+
Os as splitBigLinesWithSpaces,
|
|
243
|
+
Ws as startsWithInteractionId,
|
|
244
|
+
zs as swallowNextClick,
|
|
245
|
+
Js as toPredictionRows,
|
|
246
|
+
Ks as tokenizeForHighlight,
|
|
246
247
|
kt as useAgentEngine,
|
|
247
248
|
Bt as useAiChatServices,
|
|
248
249
|
Vt as useAiChatSessionStore,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
qs as useChatSessions,
|
|
251
|
+
Ft as useCoarsePointer,
|
|
252
|
+
Qt as useContainerRectangle,
|
|
253
|
+
bt as useEnvironment,
|
|
253
254
|
Ht as useEnvironmentOptional,
|
|
254
|
-
|
|
255
|
+
$t as useInterval,
|
|
255
256
|
Nt as useLiveTsxMaxCharsForFull,
|
|
256
257
|
wt as useParkedAskUser,
|
|
257
|
-
|
|
258
|
+
es as usePromptAssist,
|
|
258
259
|
Gt as useResponsiveLayout,
|
|
259
260
|
Ot as useTurnOpen,
|
|
260
261
|
Wt as useVisualViewport,
|
|
@@ -2,7 +2,7 @@ var x = Object.defineProperty;
|
|
|
2
2
|
var $ = (o, e, t) => e in o ? x(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var d = (o, e) => x(o, "name", { value: e, configurable: !0 });
|
|
4
4
|
var E = (o, e, t) => $(o, typeof e != "symbol" ? e + "" : e, t);
|
|
5
|
-
const
|
|
5
|
+
const D = /^[a-z][a-z0-9+.-]*:\/\//i, B = /* @__PURE__ */ d((o, e, t) => {
|
|
6
6
|
let s = "URL", n = null, i = null, r = null;
|
|
7
7
|
if (o[0] == "#") {
|
|
8
8
|
const a = o.indexOf("-"), l = o.slice(1, a);
|
|
@@ -14,9 +14,9 @@ const N = /^[a-z][a-z0-9+.-]*:\/\//i, B = /* @__PURE__ */ d((o, e, t) => {
|
|
|
14
14
|
s = "Question", n = t;
|
|
15
15
|
break;
|
|
16
16
|
}
|
|
17
|
-
} else
|
|
17
|
+
} else D.test(o) ? (s = "URL", i = o) : o[0] === "/" ? (s = "Navigate", i = o) : (o = o.replaceAll("exported/", `exported/${e}/`), s = "Export");
|
|
18
18
|
return { action: s, url: i, question: n, parameter: r };
|
|
19
|
-
}, "extractLinkAction"),
|
|
19
|
+
}, "extractLinkAction"), N = /* @__PURE__ */ d((o, e) => Array.from(
|
|
20
20
|
{ length: Math.ceil(o.length / e) },
|
|
21
21
|
(t, s) => o.slice(s * e, s * e + e)
|
|
22
22
|
), "chunkArray"), F = /* @__PURE__ */ d((o) => {
|
|
@@ -27,7 +27,7 @@ const N = /^[a-z][a-z0-9+.-]*:\/\//i, B = /* @__PURE__ */ d((o, e, t) => {
|
|
|
27
27
|
for (const i of t)
|
|
28
28
|
if (i.length > e) {
|
|
29
29
|
n = !0;
|
|
30
|
-
const r = [...i], l =
|
|
30
|
+
const r = [...i], l = N(r, e).map((c) => c.join("")).join(`
|
|
31
31
|
`);
|
|
32
32
|
s.push(l);
|
|
33
33
|
} else
|
|
@@ -837,14 +837,16 @@ function j(o, e, t = e, s = 600) {
|
|
|
837
837
|
return document.addEventListener("selectionchange", l), o.addEventListener("keydown", r), o.addEventListener("input", r), o.addEventListener("pointerdown", r), r;
|
|
838
838
|
}
|
|
839
839
|
d(j, "placeCaret");
|
|
840
|
-
function K() {
|
|
840
|
+
function K(o = {}) {
|
|
841
841
|
if (typeof document > "u") return;
|
|
842
|
-
const
|
|
843
|
-
|
|
844
|
-
}, "onClick"),
|
|
845
|
-
document.removeEventListener("
|
|
846
|
-
}, "
|
|
847
|
-
|
|
842
|
+
const e = /* @__PURE__ */ d((i) => {
|
|
843
|
+
i.stopPropagation(), i.preventDefault(), s();
|
|
844
|
+
}, "onClick"), t = /* @__PURE__ */ d((i) => {
|
|
845
|
+
i.stopPropagation(), i.preventDefault(), document.removeEventListener("mousedown", t, !0);
|
|
846
|
+
}, "onMouseDown"), s = /* @__PURE__ */ d(() => {
|
|
847
|
+
document.removeEventListener("click", e, !0), document.removeEventListener("mousedown", t, !0), document.removeEventListener("pointerdown", s, !0), window.clearTimeout(n);
|
|
848
|
+
}, "cleanup"), n = window.setTimeout(s, 500);
|
|
849
|
+
document.addEventListener("click", e, !0), o.mousedown && (document.addEventListener("mousedown", t, !0), document.addEventListener("pointerdown", s, !0));
|
|
848
850
|
}
|
|
849
851
|
d(K, "swallowNextClick");
|
|
850
852
|
const H = 2;
|
|
@@ -972,7 +974,7 @@ export {
|
|
|
972
974
|
Y as b,
|
|
973
975
|
Q as c,
|
|
974
976
|
G as d,
|
|
975
|
-
|
|
977
|
+
N as e,
|
|
976
978
|
Z as f,
|
|
977
979
|
M as g,
|
|
978
980
|
B as h,
|
|
@@ -989,4 +991,4 @@ export {
|
|
|
989
991
|
F as s,
|
|
990
992
|
se as t
|
|
991
993
|
};
|
|
992
|
-
//# sourceMappingURL=predictionRows-
|
|
994
|
+
//# sourceMappingURL=predictionRows-Cn0gzEx3.js.map
|