@copilotkit/web-components 1.62.0
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/LICENSE +21 -0
- package/README.md +90 -0
- package/dist/index.cjs +12 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.mjs +7 -0
- package/dist/index.umd.js +2548 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/threads-drawer/copilotkit-threads-drawer.cjs +677 -0
- package/dist/threads-drawer/copilotkit-threads-drawer.cjs.map +1 -0
- package/dist/threads-drawer/copilotkit-threads-drawer.d.cts +182 -0
- package/dist/threads-drawer/copilotkit-threads-drawer.d.cts.map +1 -0
- package/dist/threads-drawer/copilotkit-threads-drawer.d.mts +182 -0
- package/dist/threads-drawer/copilotkit-threads-drawer.d.mts.map +1 -0
- package/dist/threads-drawer/copilotkit-threads-drawer.mjs +676 -0
- package/dist/threads-drawer/copilotkit-threads-drawer.mjs.map +1 -0
- package/dist/threads-drawer/define.cjs +15 -0
- package/dist/threads-drawer/define.cjs.map +1 -0
- package/dist/threads-drawer/define.d.cts +17 -0
- package/dist/threads-drawer/define.d.cts.map +1 -0
- package/dist/threads-drawer/define.d.mts +17 -0
- package/dist/threads-drawer/define.d.mts.map +1 -0
- package/dist/threads-drawer/define.mjs +15 -0
- package/dist/threads-drawer/define.mjs.map +1 -0
- package/dist/threads-drawer/generated-tokens.cjs +33 -0
- package/dist/threads-drawer/generated-tokens.cjs.map +1 -0
- package/dist/threads-drawer/generated-tokens.d.cts +32 -0
- package/dist/threads-drawer/generated-tokens.d.cts.map +1 -0
- package/dist/threads-drawer/generated-tokens.d.mts +32 -0
- package/dist/threads-drawer/generated-tokens.d.mts.map +1 -0
- package/dist/threads-drawer/generated-tokens.mjs +32 -0
- package/dist/threads-drawer/generated-tokens.mjs.map +1 -0
- package/dist/threads-drawer/index.cjs +11 -0
- package/dist/threads-drawer/index.d.cts +6 -0
- package/dist/threads-drawer/index.d.mts +6 -0
- package/dist/threads-drawer/index.mjs +6 -0
- package/dist/threads-drawer/styles.cjs +499 -0
- package/dist/threads-drawer/styles.cjs.map +1 -0
- package/dist/threads-drawer/styles.d.cts +24 -0
- package/dist/threads-drawer/styles.d.cts.map +1 -0
- package/dist/threads-drawer/styles.d.mts +24 -0
- package/dist/threads-drawer/styles.d.mts.map +1 -0
- package/dist/threads-drawer/styles.mjs +499 -0
- package/dist/threads-drawer/styles.mjs.map +1 -0
- package/dist/threads-drawer/types.d.cts +97 -0
- package/dist/threads-drawer/types.d.cts.map +1 -0
- package/dist/threads-drawer/types.d.mts +97 -0
- package/dist/threads-drawer/types.d.mts.map +1 -0
- package/package.json +85 -0
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
import { GENERATED_DRAWER_TOKEN_DEFAULTS } from "./generated-tokens.mjs";
|
|
2
|
+
import { css, unsafeCSS } from "lit";
|
|
3
|
+
|
|
4
|
+
//#region src/threads-drawer/styles.ts
|
|
5
|
+
/**
|
|
6
|
+
* Wraps a generated token default value so it can be safely interpolated into a
|
|
7
|
+
* lit `css` template. Values come from the checked-in generated tokens file
|
|
8
|
+
* (derived from react-core), never from user input, so `unsafeCSS` is safe
|
|
9
|
+
* here.
|
|
10
|
+
*/
|
|
11
|
+
const tok = (value) => unsafeCSS(value);
|
|
12
|
+
const T = GENERATED_DRAWER_TOKEN_DEFAULTS;
|
|
13
|
+
/**
|
|
14
|
+
* Self-contained shadow-DOM styles for `<copilotkit-threads-drawer>`.
|
|
15
|
+
*
|
|
16
|
+
* Authoring rules baked in here:
|
|
17
|
+
* - Every visual value is a `var(--cpk-drawer-<token>, <built default>)`. The
|
|
18
|
+
* built defaults come from {@link GENERATED_DRAWER_TOKEN_DEFAULTS}, derived
|
|
19
|
+
* from react-core's canonical theme at build time (anti-drift). Consumers
|
|
20
|
+
* override by setting `--cpk-drawer-*` from the light DOM — CSS custom
|
|
21
|
+
* properties pierce the shadow boundary by design.
|
|
22
|
+
* - Inherited properties (font, color, line-height) are RE-PINNED on `:host`
|
|
23
|
+
* so a hostile host stylesheet (`all: unset`, `* { ... !important }`,
|
|
24
|
+
* Tailwind preflight) cannot leak into or strip styling from the element.
|
|
25
|
+
* - Structural nodes expose `::part(...)` hooks for fine-grained theming.
|
|
26
|
+
*
|
|
27
|
+
* Token fallbacks are interpolated as literals (not runtime-read) so the CSS is
|
|
28
|
+
* static and ships compiled.
|
|
29
|
+
*/
|
|
30
|
+
const drawerStyles = css`
|
|
31
|
+
:host {
|
|
32
|
+
/* Re-pin inheritable properties to close inheritance leaks from hostile
|
|
33
|
+
host CSS. These are the only properties that cross the shadow boundary
|
|
34
|
+
via inheritance, so we hard-set them at the root. */
|
|
35
|
+
all: initial;
|
|
36
|
+
display: block;
|
|
37
|
+
height: 100%;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
font-family:
|
|
40
|
+
var(--cpk-drawer-font-family, ui-sans-serif, system-ui, sans-serif);
|
|
41
|
+
font-size: var(--cpk-drawer-font-size, 14px);
|
|
42
|
+
line-height: var(--cpk-drawer-line-height, 1.4);
|
|
43
|
+
color: var(--cpk-drawer-fg, var(--foreground, ${tok(T.fg)}));
|
|
44
|
+
|
|
45
|
+
/* Three-level token resolution, highest priority first:
|
|
46
|
+
1. explicit per-token override (--cpk-drawer-*),
|
|
47
|
+
2. the host app's theme variable (--background/--card/… — the standard
|
|
48
|
+
react-core/shadcn names), so the drawer follows the host's light/dark
|
|
49
|
+
theme by inheritance (custom properties are NOT reset by all:initial),
|
|
50
|
+
3. the built-in light default derived from react-core at build time, so a
|
|
51
|
+
host with no theme still renders correctly (self-contained). */
|
|
52
|
+
--_bg: var(--cpk-drawer-bg, var(--background, ${tok(T.bg)}));
|
|
53
|
+
--_surface: var(--cpk-drawer-surface, var(--card, ${tok(T.surface)}));
|
|
54
|
+
--_surface-fg: var(
|
|
55
|
+
--cpk-drawer-surface-fg,
|
|
56
|
+
var(--card-foreground, ${tok(T["surface-fg"])})
|
|
57
|
+
);
|
|
58
|
+
--_muted: var(--cpk-drawer-muted, var(--muted, ${tok(T.muted)}));
|
|
59
|
+
--_muted-fg: var(
|
|
60
|
+
--cpk-drawer-muted-fg,
|
|
61
|
+
var(--muted-foreground, ${tok(T["muted-fg"])})
|
|
62
|
+
);
|
|
63
|
+
--_accent: var(--cpk-drawer-accent, var(--accent, ${tok(T.accent)}));
|
|
64
|
+
--_accent-fg: var(
|
|
65
|
+
--cpk-drawer-accent-fg,
|
|
66
|
+
var(--accent-foreground, ${tok(T["accent-fg"])})
|
|
67
|
+
);
|
|
68
|
+
--_primary: var(--cpk-drawer-primary, var(--primary, ${tok(T.primary)}));
|
|
69
|
+
--_primary-fg: var(
|
|
70
|
+
--cpk-drawer-primary-fg,
|
|
71
|
+
var(--primary-foreground, ${tok(T["primary-fg"])})
|
|
72
|
+
);
|
|
73
|
+
--_danger: var(--cpk-drawer-danger, var(--destructive, ${tok(T.danger)}));
|
|
74
|
+
--_border: var(--cpk-drawer-border, var(--border, ${tok(T.border)}));
|
|
75
|
+
--_ring: var(--cpk-drawer-ring, var(--ring, ${tok(T.ring)}));
|
|
76
|
+
--_radius: var(--cpk-drawer-radius, var(--radius, ${tok(T.radius)}));
|
|
77
|
+
--_width: var(--cpk-drawer-width, 320px);
|
|
78
|
+
--_rail-width: var(--cpk-drawer-rail-width, 56px);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:host([hidden]) {
|
|
82
|
+
display: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
* {
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.root {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
height: 100%;
|
|
93
|
+
width: var(--_width);
|
|
94
|
+
background: var(--_bg);
|
|
95
|
+
border-right: 1px solid var(--_border);
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
transition: width 0.2s ease;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.root.collapsed {
|
|
101
|
+
width: var(--_rail-width);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Mobile: off-canvas overlay (modal pattern). */
|
|
105
|
+
.root.mobile {
|
|
106
|
+
position: fixed;
|
|
107
|
+
inset: 0 auto 0 0;
|
|
108
|
+
z-index: 1000;
|
|
109
|
+
width: min(var(--_width), 85vw);
|
|
110
|
+
transform: translateX(-100%);
|
|
111
|
+
transition: transform 0.2s ease;
|
|
112
|
+
box-shadow: 0 0 0 100vmax transparent;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.root.mobile.open {
|
|
116
|
+
transform: translateX(0);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.backdrop {
|
|
120
|
+
position: fixed;
|
|
121
|
+
inset: 0;
|
|
122
|
+
z-index: 999;
|
|
123
|
+
background: rgba(0, 0, 0, 0.4);
|
|
124
|
+
border: 0;
|
|
125
|
+
padding: 0;
|
|
126
|
+
margin: 0;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Mobile-only floating affordance to OPEN the off-canvas drawer. Rendered by
|
|
131
|
+
the element itself so phones always have a way in with no host wiring. */
|
|
132
|
+
.launcher {
|
|
133
|
+
position: fixed;
|
|
134
|
+
z-index: 998;
|
|
135
|
+
/* Position is themeable so a host can line the launcher up with its own
|
|
136
|
+
header controls (e.g. vertically centering it on a toggle group). */
|
|
137
|
+
top: var(--cpk-drawer-launcher-top, 12px);
|
|
138
|
+
left: var(--cpk-drawer-launcher-left, 12px);
|
|
139
|
+
display: inline-flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
width: 40px;
|
|
143
|
+
height: 40px;
|
|
144
|
+
border-radius: 999px;
|
|
145
|
+
border: 1px solid var(--_border);
|
|
146
|
+
background: var(--_surface);
|
|
147
|
+
color: var(--_surface-fg);
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.launcher-icon {
|
|
153
|
+
width: 18px;
|
|
154
|
+
height: 18px;
|
|
155
|
+
display: block;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.header {
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
justify-content: space-between;
|
|
162
|
+
gap: 8px;
|
|
163
|
+
padding: 12px;
|
|
164
|
+
border-bottom: 1px solid var(--_border);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.filters {
|
|
168
|
+
display: flex;
|
|
169
|
+
gap: 4px;
|
|
170
|
+
padding: 8px 12px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.filter-btn {
|
|
174
|
+
flex: 1;
|
|
175
|
+
padding: 6px 10px;
|
|
176
|
+
border: 1px solid var(--_border);
|
|
177
|
+
border-radius: var(--_radius);
|
|
178
|
+
background: var(--_bg);
|
|
179
|
+
color: var(--_muted-fg);
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
font: inherit;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.filter-btn[aria-pressed="true"] {
|
|
185
|
+
background: var(--_accent);
|
|
186
|
+
color: var(--_accent-fg);
|
|
187
|
+
border-color: var(--_ring);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.list {
|
|
191
|
+
flex: 1;
|
|
192
|
+
min-height: 0;
|
|
193
|
+
overflow-y: auto;
|
|
194
|
+
padding: 8px 12px;
|
|
195
|
+
margin: 0;
|
|
196
|
+
list-style: none;
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
gap: 4px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.row {
|
|
203
|
+
display: flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
gap: 8px;
|
|
206
|
+
padding: 8px 10px;
|
|
207
|
+
border-radius: var(--_radius);
|
|
208
|
+
cursor: pointer;
|
|
209
|
+
background: transparent;
|
|
210
|
+
color: inherit;
|
|
211
|
+
border: 1px solid transparent;
|
|
212
|
+
opacity: 0;
|
|
213
|
+
transform: translateY(4px);
|
|
214
|
+
animation: cpk-drawer-row-in 0.18s ease forwards;
|
|
215
|
+
/* Positioned so the hovered row can be lifted above later rows (below). */
|
|
216
|
+
position: relative;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* The entry animation leaves each row with a (non-none) transform, making it
|
|
220
|
+
its own stacking context — which would paint the name tooltip UNDER the
|
|
221
|
+
following rows (their text bled through the bubble). Lifting the hovered
|
|
222
|
+
row's z-index re-floats its tooltip above the rows beneath it. */
|
|
223
|
+
.row.name-clipped:hover {
|
|
224
|
+
z-index: 2;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@keyframes cpk-drawer-row-in {
|
|
228
|
+
to {
|
|
229
|
+
opacity: 1;
|
|
230
|
+
transform: translateY(0);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.row.active {
|
|
235
|
+
background: var(--_accent);
|
|
236
|
+
color: var(--_accent-fg);
|
|
237
|
+
border-color: var(--_ring);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.row.archived .row-name {
|
|
241
|
+
color: var(--_muted-fg);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.row-name {
|
|
245
|
+
/* The outer name element owns NO overflow clip so it can host the name
|
|
246
|
+
tooltip pseudo-element; the inner .row-name-text does the ellipsis. */
|
|
247
|
+
flex: 1;
|
|
248
|
+
min-width: 0;
|
|
249
|
+
position: relative;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.row-name-text {
|
|
253
|
+
display: block;
|
|
254
|
+
overflow: hidden;
|
|
255
|
+
text-overflow: ellipsis;
|
|
256
|
+
white-space: nowrap;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* Name tooltip: matches the row-action tooltip (instant primary bubble with
|
|
260
|
+
an arrow), shown ONLY when the name is clipped. Positioned below the name,
|
|
261
|
+
wrapping within the drawer width (a long name can't fit one line). */
|
|
262
|
+
.row-name.name-clipped[data-tooltip]:hover::after {
|
|
263
|
+
content: attr(data-tooltip);
|
|
264
|
+
position: absolute;
|
|
265
|
+
left: 0;
|
|
266
|
+
top: calc(100% + 6px);
|
|
267
|
+
white-space: normal;
|
|
268
|
+
max-width: 240px;
|
|
269
|
+
background: var(--_primary);
|
|
270
|
+
color: var(--_primary-fg);
|
|
271
|
+
border-radius: 6px;
|
|
272
|
+
padding: 4px 8px;
|
|
273
|
+
font-size: 12px;
|
|
274
|
+
line-height: 1.4;
|
|
275
|
+
box-shadow: 0 4px 12px rgb(0 0 0 / 0.18);
|
|
276
|
+
pointer-events: none;
|
|
277
|
+
z-index: 20;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.row-name.name-clipped[data-tooltip]:hover::before {
|
|
281
|
+
content: "";
|
|
282
|
+
position: absolute;
|
|
283
|
+
left: 10px;
|
|
284
|
+
top: calc(100% + 1.5px);
|
|
285
|
+
transform: rotate(45deg);
|
|
286
|
+
width: 7px;
|
|
287
|
+
height: 7px;
|
|
288
|
+
background: var(--_primary);
|
|
289
|
+
border-radius: 1px;
|
|
290
|
+
pointer-events: none;
|
|
291
|
+
z-index: 21;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.row-name.placeholder {
|
|
295
|
+
color: var(--_muted-fg);
|
|
296
|
+
font-style: italic;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.row-name.revealed {
|
|
300
|
+
animation: cpk-drawer-name-reveal 0.3s ease;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
@keyframes cpk-drawer-name-reveal {
|
|
304
|
+
from {
|
|
305
|
+
opacity: 0.4;
|
|
306
|
+
}
|
|
307
|
+
to {
|
|
308
|
+
opacity: 1;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.row-action {
|
|
313
|
+
position: relative;
|
|
314
|
+
display: inline-flex;
|
|
315
|
+
align-items: center;
|
|
316
|
+
justify-content: center;
|
|
317
|
+
flex: none;
|
|
318
|
+
border: 0;
|
|
319
|
+
background: transparent;
|
|
320
|
+
color: var(--_muted-fg);
|
|
321
|
+
cursor: pointer;
|
|
322
|
+
font: inherit;
|
|
323
|
+
padding: 5px;
|
|
324
|
+
border-radius: 6px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* Instant tooltip (matches the react components' delayDuration:0) styled to
|
|
328
|
+
match the CPK standard tooltip: a solid primary-colored bubble with
|
|
329
|
+
primary-foreground text, rounded corners, no border, and a small arrow —
|
|
330
|
+
NOT a surface/bordered box (which reads as a button). Rendered to the LEFT
|
|
331
|
+
of the action so the list's vertical overflow never clips it; the native
|
|
332
|
+
\`title\` tooltip is avoided because its show-delay is browser-fixed (~1.5s)
|
|
333
|
+
and cannot be tuned. */
|
|
334
|
+
.row-action[data-tooltip]:hover::after,
|
|
335
|
+
.row-action[data-tooltip]:focus-visible::after {
|
|
336
|
+
content: attr(data-tooltip);
|
|
337
|
+
position: absolute;
|
|
338
|
+
right: calc(100% + 8px);
|
|
339
|
+
top: 50%;
|
|
340
|
+
transform: translateY(-50%);
|
|
341
|
+
white-space: nowrap;
|
|
342
|
+
background: var(--_primary);
|
|
343
|
+
color: var(--_primary-fg);
|
|
344
|
+
border-radius: 6px;
|
|
345
|
+
padding: 4px 8px;
|
|
346
|
+
font-size: 12px;
|
|
347
|
+
line-height: 1.4;
|
|
348
|
+
box-shadow: 0 4px 12px rgb(0 0 0 / 0.18);
|
|
349
|
+
pointer-events: none;
|
|
350
|
+
z-index: 20;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* Arrow: a small rotated square at the bubble's right edge, pointing at the
|
|
354
|
+
action — same primary fill as the bubble. */
|
|
355
|
+
.row-action[data-tooltip]:hover::before,
|
|
356
|
+
.row-action[data-tooltip]:focus-visible::before {
|
|
357
|
+
content: "";
|
|
358
|
+
position: absolute;
|
|
359
|
+
right: calc(100% + 4.5px);
|
|
360
|
+
top: 50%;
|
|
361
|
+
transform: translateY(-50%) rotate(45deg);
|
|
362
|
+
width: 7px;
|
|
363
|
+
height: 7px;
|
|
364
|
+
background: var(--_primary);
|
|
365
|
+
border-radius: 1px;
|
|
366
|
+
pointer-events: none;
|
|
367
|
+
z-index: 21;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* While the delete-confirmation dialog is open, suppress row-action tooltips:
|
|
371
|
+
the clicked trash button keeps :focus-visible (and may stay hovered), which
|
|
372
|
+
would otherwise leave its "Delete" tooltip floating over the dialog. */
|
|
373
|
+
.root.confirming .row-action[data-tooltip]:hover::after,
|
|
374
|
+
.root.confirming .row-action[data-tooltip]:focus-visible::after,
|
|
375
|
+
.root.confirming .row-action[data-tooltip]:hover::before,
|
|
376
|
+
.root.confirming .row-action[data-tooltip]:focus-visible::before {
|
|
377
|
+
content: none;
|
|
378
|
+
display: none;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.row-action:hover,
|
|
382
|
+
.row-action:focus-visible {
|
|
383
|
+
background: var(--_muted);
|
|
384
|
+
color: inherit;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.row-action.danger:hover,
|
|
388
|
+
.row-action.danger:focus-visible {
|
|
389
|
+
color: var(--_danger);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.row-action-icon {
|
|
393
|
+
width: 15px;
|
|
394
|
+
height: 15px;
|
|
395
|
+
display: block;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
button.primary {
|
|
399
|
+
background: var(--_primary);
|
|
400
|
+
color: var(--_primary-fg);
|
|
401
|
+
border: 0;
|
|
402
|
+
border-radius: var(--_radius);
|
|
403
|
+
padding: 8px 12px;
|
|
404
|
+
cursor: pointer;
|
|
405
|
+
font: inherit;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.state {
|
|
409
|
+
padding: 24px 16px;
|
|
410
|
+
text-align: center;
|
|
411
|
+
color: var(--_muted-fg);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.state.error {
|
|
415
|
+
color: var(--_danger);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.fetch-more-error {
|
|
419
|
+
padding: 8px 12px;
|
|
420
|
+
text-align: center;
|
|
421
|
+
color: var(--_danger);
|
|
422
|
+
font-size: 0.9em;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.load-more {
|
|
426
|
+
display: block;
|
|
427
|
+
width: 100%;
|
|
428
|
+
padding: 8px 12px;
|
|
429
|
+
background: none;
|
|
430
|
+
border: none;
|
|
431
|
+
color: var(--_muted-fg);
|
|
432
|
+
font: inherit;
|
|
433
|
+
font-size: 0.9em;
|
|
434
|
+
cursor: pointer;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.load-more:hover,
|
|
438
|
+
.load-more:focus-visible {
|
|
439
|
+
color: var(--_surface-fg);
|
|
440
|
+
background: var(--_muted);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.licensed {
|
|
444
|
+
padding: 24px 16px;
|
|
445
|
+
text-align: center;
|
|
446
|
+
display: flex;
|
|
447
|
+
flex-direction: column;
|
|
448
|
+
gap: 12px;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.memories {
|
|
452
|
+
border-top: 1px solid var(--_border);
|
|
453
|
+
padding: 8px 12px;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.memories[hidden] {
|
|
457
|
+
display: none;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.dialog-backdrop {
|
|
461
|
+
position: absolute;
|
|
462
|
+
inset: 0;
|
|
463
|
+
background: rgba(0, 0, 0, 0.3);
|
|
464
|
+
display: flex;
|
|
465
|
+
align-items: center;
|
|
466
|
+
justify-content: center;
|
|
467
|
+
z-index: 10;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.dialog {
|
|
471
|
+
background: var(--_surface);
|
|
472
|
+
color: var(--_surface-fg);
|
|
473
|
+
border-radius: var(--_radius);
|
|
474
|
+
padding: 16px;
|
|
475
|
+
max-width: 80%;
|
|
476
|
+
display: flex;
|
|
477
|
+
flex-direction: column;
|
|
478
|
+
gap: 12px;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.dialog-actions {
|
|
482
|
+
display: flex;
|
|
483
|
+
justify-content: flex-end;
|
|
484
|
+
gap: 8px;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.footer {
|
|
488
|
+
border-top: 1px solid var(--_border);
|
|
489
|
+
padding: 12px;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.footer[hidden] {
|
|
493
|
+
display: none;
|
|
494
|
+
}
|
|
495
|
+
`;
|
|
496
|
+
|
|
497
|
+
//#endregion
|
|
498
|
+
export { drawerStyles };
|
|
499
|
+
//# sourceMappingURL=styles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.mjs","names":[],"sources":["../../src/threads-drawer/styles.ts"],"sourcesContent":["import { css, unsafeCSS } from \"lit\";\nimport { GENERATED_DRAWER_TOKEN_DEFAULTS } from \"./generated-tokens\";\n\n/**\n * Wraps a generated token default value so it can be safely interpolated into a\n * lit `css` template. Values come from the checked-in generated tokens file\n * (derived from react-core), never from user input, so `unsafeCSS` is safe\n * here.\n */\nconst tok = (value: string) => unsafeCSS(value);\nconst T = GENERATED_DRAWER_TOKEN_DEFAULTS;\n\n/**\n * Self-contained shadow-DOM styles for `<copilotkit-threads-drawer>`.\n *\n * Authoring rules baked in here:\n * - Every visual value is a `var(--cpk-drawer-<token>, <built default>)`. The\n * built defaults come from {@link GENERATED_DRAWER_TOKEN_DEFAULTS}, derived\n * from react-core's canonical theme at build time (anti-drift). Consumers\n * override by setting `--cpk-drawer-*` from the light DOM — CSS custom\n * properties pierce the shadow boundary by design.\n * - Inherited properties (font, color, line-height) are RE-PINNED on `:host`\n * so a hostile host stylesheet (`all: unset`, `* { ... !important }`,\n * Tailwind preflight) cannot leak into or strip styling from the element.\n * - Structural nodes expose `::part(...)` hooks for fine-grained theming.\n *\n * Token fallbacks are interpolated as literals (not runtime-read) so the CSS is\n * static and ships compiled.\n */\nexport const drawerStyles = css`\n :host {\n /* Re-pin inheritable properties to close inheritance leaks from hostile\n host CSS. These are the only properties that cross the shadow boundary\n via inheritance, so we hard-set them at the root. */\n all: initial;\n display: block;\n height: 100%;\n box-sizing: border-box;\n font-family:\n var(--cpk-drawer-font-family, ui-sans-serif, system-ui, sans-serif);\n font-size: var(--cpk-drawer-font-size, 14px);\n line-height: var(--cpk-drawer-line-height, 1.4);\n color: var(--cpk-drawer-fg, var(--foreground, ${tok(T.fg)}));\n\n /* Three-level token resolution, highest priority first:\n 1. explicit per-token override (--cpk-drawer-*),\n 2. the host app's theme variable (--background/--card/… — the standard\n react-core/shadcn names), so the drawer follows the host's light/dark\n theme by inheritance (custom properties are NOT reset by all:initial),\n 3. the built-in light default derived from react-core at build time, so a\n host with no theme still renders correctly (self-contained). */\n --_bg: var(--cpk-drawer-bg, var(--background, ${tok(T.bg)}));\n --_surface: var(--cpk-drawer-surface, var(--card, ${tok(T.surface)}));\n --_surface-fg: var(\n --cpk-drawer-surface-fg,\n var(--card-foreground, ${tok(T[\"surface-fg\"])})\n );\n --_muted: var(--cpk-drawer-muted, var(--muted, ${tok(T.muted)}));\n --_muted-fg: var(\n --cpk-drawer-muted-fg,\n var(--muted-foreground, ${tok(T[\"muted-fg\"])})\n );\n --_accent: var(--cpk-drawer-accent, var(--accent, ${tok(T.accent)}));\n --_accent-fg: var(\n --cpk-drawer-accent-fg,\n var(--accent-foreground, ${tok(T[\"accent-fg\"])})\n );\n --_primary: var(--cpk-drawer-primary, var(--primary, ${tok(T.primary)}));\n --_primary-fg: var(\n --cpk-drawer-primary-fg,\n var(--primary-foreground, ${tok(T[\"primary-fg\"])})\n );\n --_danger: var(--cpk-drawer-danger, var(--destructive, ${tok(T.danger)}));\n --_border: var(--cpk-drawer-border, var(--border, ${tok(T.border)}));\n --_ring: var(--cpk-drawer-ring, var(--ring, ${tok(T.ring)}));\n --_radius: var(--cpk-drawer-radius, var(--radius, ${tok(T.radius)}));\n --_width: var(--cpk-drawer-width, 320px);\n --_rail-width: var(--cpk-drawer-rail-width, 56px);\n }\n\n :host([hidden]) {\n display: none;\n }\n\n * {\n box-sizing: border-box;\n }\n\n .root {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: var(--_width);\n background: var(--_bg);\n border-right: 1px solid var(--_border);\n overflow: hidden;\n transition: width 0.2s ease;\n }\n\n .root.collapsed {\n width: var(--_rail-width);\n }\n\n /* Mobile: off-canvas overlay (modal pattern). */\n .root.mobile {\n position: fixed;\n inset: 0 auto 0 0;\n z-index: 1000;\n width: min(var(--_width), 85vw);\n transform: translateX(-100%);\n transition: transform 0.2s ease;\n box-shadow: 0 0 0 100vmax transparent;\n }\n\n .root.mobile.open {\n transform: translateX(0);\n }\n\n .backdrop {\n position: fixed;\n inset: 0;\n z-index: 999;\n background: rgba(0, 0, 0, 0.4);\n border: 0;\n padding: 0;\n margin: 0;\n cursor: pointer;\n }\n\n /* Mobile-only floating affordance to OPEN the off-canvas drawer. Rendered by\n the element itself so phones always have a way in with no host wiring. */\n .launcher {\n position: fixed;\n z-index: 998;\n /* Position is themeable so a host can line the launcher up with its own\n header controls (e.g. vertically centering it on a toggle group). */\n top: var(--cpk-drawer-launcher-top, 12px);\n left: var(--cpk-drawer-launcher-left, 12px);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 999px;\n border: 1px solid var(--_border);\n background: var(--_surface);\n color: var(--_surface-fg);\n cursor: pointer;\n box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);\n }\n\n .launcher-icon {\n width: 18px;\n height: 18px;\n display: block;\n }\n\n .header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 12px;\n border-bottom: 1px solid var(--_border);\n }\n\n .filters {\n display: flex;\n gap: 4px;\n padding: 8px 12px;\n }\n\n .filter-btn {\n flex: 1;\n padding: 6px 10px;\n border: 1px solid var(--_border);\n border-radius: var(--_radius);\n background: var(--_bg);\n color: var(--_muted-fg);\n cursor: pointer;\n font: inherit;\n }\n\n .filter-btn[aria-pressed=\"true\"] {\n background: var(--_accent);\n color: var(--_accent-fg);\n border-color: var(--_ring);\n }\n\n .list {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n padding: 8px 12px;\n margin: 0;\n list-style: none;\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .row {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 8px 10px;\n border-radius: var(--_radius);\n cursor: pointer;\n background: transparent;\n color: inherit;\n border: 1px solid transparent;\n opacity: 0;\n transform: translateY(4px);\n animation: cpk-drawer-row-in 0.18s ease forwards;\n /* Positioned so the hovered row can be lifted above later rows (below). */\n position: relative;\n }\n\n /* The entry animation leaves each row with a (non-none) transform, making it\n its own stacking context — which would paint the name tooltip UNDER the\n following rows (their text bled through the bubble). Lifting the hovered\n row's z-index re-floats its tooltip above the rows beneath it. */\n .row.name-clipped:hover {\n z-index: 2;\n }\n\n @keyframes cpk-drawer-row-in {\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n\n .row.active {\n background: var(--_accent);\n color: var(--_accent-fg);\n border-color: var(--_ring);\n }\n\n .row.archived .row-name {\n color: var(--_muted-fg);\n }\n\n .row-name {\n /* The outer name element owns NO overflow clip so it can host the name\n tooltip pseudo-element; the inner .row-name-text does the ellipsis. */\n flex: 1;\n min-width: 0;\n position: relative;\n }\n\n .row-name-text {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n /* Name tooltip: matches the row-action tooltip (instant primary bubble with\n an arrow), shown ONLY when the name is clipped. Positioned below the name,\n wrapping within the drawer width (a long name can't fit one line). */\n .row-name.name-clipped[data-tooltip]:hover::after {\n content: attr(data-tooltip);\n position: absolute;\n left: 0;\n top: calc(100% + 6px);\n white-space: normal;\n max-width: 240px;\n background: var(--_primary);\n color: var(--_primary-fg);\n border-radius: 6px;\n padding: 4px 8px;\n font-size: 12px;\n line-height: 1.4;\n box-shadow: 0 4px 12px rgb(0 0 0 / 0.18);\n pointer-events: none;\n z-index: 20;\n }\n\n .row-name.name-clipped[data-tooltip]:hover::before {\n content: \"\";\n position: absolute;\n left: 10px;\n top: calc(100% + 1.5px);\n transform: rotate(45deg);\n width: 7px;\n height: 7px;\n background: var(--_primary);\n border-radius: 1px;\n pointer-events: none;\n z-index: 21;\n }\n\n .row-name.placeholder {\n color: var(--_muted-fg);\n font-style: italic;\n }\n\n .row-name.revealed {\n animation: cpk-drawer-name-reveal 0.3s ease;\n }\n\n @keyframes cpk-drawer-name-reveal {\n from {\n opacity: 0.4;\n }\n to {\n opacity: 1;\n }\n }\n\n .row-action {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n border: 0;\n background: transparent;\n color: var(--_muted-fg);\n cursor: pointer;\n font: inherit;\n padding: 5px;\n border-radius: 6px;\n }\n\n /* Instant tooltip (matches the react components' delayDuration:0) styled to\n match the CPK standard tooltip: a solid primary-colored bubble with\n primary-foreground text, rounded corners, no border, and a small arrow —\n NOT a surface/bordered box (which reads as a button). Rendered to the LEFT\n of the action so the list's vertical overflow never clips it; the native\n \\`title\\` tooltip is avoided because its show-delay is browser-fixed (~1.5s)\n and cannot be tuned. */\n .row-action[data-tooltip]:hover::after,\n .row-action[data-tooltip]:focus-visible::after {\n content: attr(data-tooltip);\n position: absolute;\n right: calc(100% + 8px);\n top: 50%;\n transform: translateY(-50%);\n white-space: nowrap;\n background: var(--_primary);\n color: var(--_primary-fg);\n border-radius: 6px;\n padding: 4px 8px;\n font-size: 12px;\n line-height: 1.4;\n box-shadow: 0 4px 12px rgb(0 0 0 / 0.18);\n pointer-events: none;\n z-index: 20;\n }\n\n /* Arrow: a small rotated square at the bubble's right edge, pointing at the\n action — same primary fill as the bubble. */\n .row-action[data-tooltip]:hover::before,\n .row-action[data-tooltip]:focus-visible::before {\n content: \"\";\n position: absolute;\n right: calc(100% + 4.5px);\n top: 50%;\n transform: translateY(-50%) rotate(45deg);\n width: 7px;\n height: 7px;\n background: var(--_primary);\n border-radius: 1px;\n pointer-events: none;\n z-index: 21;\n }\n\n /* While the delete-confirmation dialog is open, suppress row-action tooltips:\n the clicked trash button keeps :focus-visible (and may stay hovered), which\n would otherwise leave its \"Delete\" tooltip floating over the dialog. */\n .root.confirming .row-action[data-tooltip]:hover::after,\n .root.confirming .row-action[data-tooltip]:focus-visible::after,\n .root.confirming .row-action[data-tooltip]:hover::before,\n .root.confirming .row-action[data-tooltip]:focus-visible::before {\n content: none;\n display: none;\n }\n\n .row-action:hover,\n .row-action:focus-visible {\n background: var(--_muted);\n color: inherit;\n }\n\n .row-action.danger:hover,\n .row-action.danger:focus-visible {\n color: var(--_danger);\n }\n\n .row-action-icon {\n width: 15px;\n height: 15px;\n display: block;\n }\n\n button.primary {\n background: var(--_primary);\n color: var(--_primary-fg);\n border: 0;\n border-radius: var(--_radius);\n padding: 8px 12px;\n cursor: pointer;\n font: inherit;\n }\n\n .state {\n padding: 24px 16px;\n text-align: center;\n color: var(--_muted-fg);\n }\n\n .state.error {\n color: var(--_danger);\n }\n\n .fetch-more-error {\n padding: 8px 12px;\n text-align: center;\n color: var(--_danger);\n font-size: 0.9em;\n }\n\n .load-more {\n display: block;\n width: 100%;\n padding: 8px 12px;\n background: none;\n border: none;\n color: var(--_muted-fg);\n font: inherit;\n font-size: 0.9em;\n cursor: pointer;\n }\n\n .load-more:hover,\n .load-more:focus-visible {\n color: var(--_surface-fg);\n background: var(--_muted);\n }\n\n .licensed {\n padding: 24px 16px;\n text-align: center;\n display: flex;\n flex-direction: column;\n gap: 12px;\n }\n\n .memories {\n border-top: 1px solid var(--_border);\n padding: 8px 12px;\n }\n\n .memories[hidden] {\n display: none;\n }\n\n .dialog-backdrop {\n position: absolute;\n inset: 0;\n background: rgba(0, 0, 0, 0.3);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n }\n\n .dialog {\n background: var(--_surface);\n color: var(--_surface-fg);\n border-radius: var(--_radius);\n padding: 16px;\n max-width: 80%;\n display: flex;\n flex-direction: column;\n gap: 12px;\n }\n\n .dialog-actions {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n }\n\n .footer {\n border-top: 1px solid var(--_border);\n padding: 12px;\n }\n\n .footer[hidden] {\n display: none;\n }\n`;\n"],"mappings":";;;;;;;;;;AASA,MAAM,OAAO,UAAkB,UAAU,MAAM;AAC/C,MAAM,IAAI;;;;;;;;;;;;;;;;;;AAmBV,MAAa,eAAe,GAAG;;;;;;;;;;;;;oDAaqB,IAAI,EAAE,GAAG,CAAC;;;;;;;;;oDASV,IAAI,EAAE,GAAG,CAAC;wDACN,IAAI,EAAE,QAAQ,CAAC;;;+BAGxC,IAAI,EAAE,cAAc,CAAC;;qDAEC,IAAI,EAAE,MAAM,CAAC;;;gCAGlC,IAAI,EAAE,YAAY,CAAC;;wDAEK,IAAI,EAAE,OAAO,CAAC;;;iCAGrC,IAAI,EAAE,aAAa,CAAC;;2DAEM,IAAI,EAAE,QAAQ,CAAC;;;kCAGxC,IAAI,EAAE,cAAc,CAAC;;6DAEM,IAAI,EAAE,OAAO,CAAC;wDACnB,IAAI,EAAE,OAAO,CAAC;kDACpB,IAAI,EAAE,KAAK,CAAC;wDACN,IAAI,EAAE,OAAO,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
//#region src/threads-drawer/types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Public type surface for the `<copilotkit-threads-drawer>` custom element.
|
|
4
|
+
*
|
|
5
|
+
* The element is a pure VIEW: domain data flows IN as properties and user
|
|
6
|
+
* intent flows OUT as DOM `CustomEvent`s. These types intentionally do NOT
|
|
7
|
+
* import from `@copilotkit/core` or any framework — the element is
|
|
8
|
+
* framework-agnostic and self-contained. The thread shape mirrors the fields
|
|
9
|
+
* the drawer needs to render and is structurally compatible with core's thread
|
|
10
|
+
* record (`id`, `name`, `archived`, timestamps).
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Minimal thread record the drawer renders. A `null` name signals an
|
|
14
|
+
* as-yet-unnamed thread and is rendered as a "New thread" placeholder until the
|
|
15
|
+
* async name arrives.
|
|
16
|
+
*/
|
|
17
|
+
interface DrawerThread {
|
|
18
|
+
/** Stable thread identifier; drives row keying and slot reconciliation. */
|
|
19
|
+
readonly id: string;
|
|
20
|
+
/** Display name, or `null` when not yet named. */
|
|
21
|
+
readonly name: string | null;
|
|
22
|
+
/** Whether the thread is archived (affects styling + available actions). */
|
|
23
|
+
readonly archived: boolean;
|
|
24
|
+
/** ISO timestamp the thread was created. */
|
|
25
|
+
readonly createdAt: string;
|
|
26
|
+
/** ISO timestamp the thread was last updated. */
|
|
27
|
+
readonly updatedAt: string;
|
|
28
|
+
/** ISO timestamp of the most recent run, if any. */
|
|
29
|
+
readonly lastRunAt?: string;
|
|
30
|
+
}
|
|
31
|
+
/** The Active/All filter the element owns authoritatively. */
|
|
32
|
+
type DrawerFilter = "active" | "all";
|
|
33
|
+
/** `detail` for the `thread-selected` event. */
|
|
34
|
+
interface ThreadSelectedDetail {
|
|
35
|
+
readonly threadId: string;
|
|
36
|
+
}
|
|
37
|
+
/** `detail` for the `archive` event. */
|
|
38
|
+
interface ArchiveDetail {
|
|
39
|
+
readonly threadId: string;
|
|
40
|
+
}
|
|
41
|
+
/** `detail` for the `unarchive` event. */
|
|
42
|
+
interface UnarchiveDetail {
|
|
43
|
+
readonly threadId: string;
|
|
44
|
+
}
|
|
45
|
+
/** `detail` for the `delete` event (fired only after in-element confirm). */
|
|
46
|
+
interface DeleteDetail {
|
|
47
|
+
readonly threadId: string;
|
|
48
|
+
}
|
|
49
|
+
/** `detail` for the `filter-change` event. */
|
|
50
|
+
interface FilterChangeDetail {
|
|
51
|
+
readonly filter: DrawerFilter;
|
|
52
|
+
}
|
|
53
|
+
/** `detail` for the `open-change` event. */
|
|
54
|
+
interface OpenChangeDetail {
|
|
55
|
+
readonly open: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* `detail` for the `retry` event, emitted from the actionable error state so a
|
|
59
|
+
* wrapper can back it with a core refetch. `scope` distinguishes an initial
|
|
60
|
+
* fetch retry from a fetch-more retry.
|
|
61
|
+
*/
|
|
62
|
+
interface RetryDetail {
|
|
63
|
+
readonly scope: "initial" | "fetch-more";
|
|
64
|
+
}
|
|
65
|
+
/** `detail` for the `new-thread` event. */
|
|
66
|
+
type NewThreadDetail = Record<string, never>;
|
|
67
|
+
/**
|
|
68
|
+
* `detail` for the `licensed` event (Upgrade CTA click). Carries the
|
|
69
|
+
* `licenseUrl` the element will open in a new tab. The event is cancelable:
|
|
70
|
+
* a host that calls `preventDefault()` suppresses the default navigation and
|
|
71
|
+
* takes over (e.g. to route in-app or fire its own telemetry).
|
|
72
|
+
*/
|
|
73
|
+
interface LicensedDetail {
|
|
74
|
+
readonly licenseUrl: string | null;
|
|
75
|
+
}
|
|
76
|
+
/** `detail` for the `load-more` event (advance pagination; no payload). */
|
|
77
|
+
type LoadMoreDetail = Record<string, never>;
|
|
78
|
+
/**
|
|
79
|
+
* Strongly-typed event map for `<copilotkit-threads-drawer>`. Consumers can use this to
|
|
80
|
+
* type `addEventListener` callbacks. All events bubble and are composed so they
|
|
81
|
+
* cross the shadow boundary.
|
|
82
|
+
*/
|
|
83
|
+
interface CopilotKitThreadsDrawerEventMap {
|
|
84
|
+
"thread-selected": CustomEvent<ThreadSelectedDetail>;
|
|
85
|
+
archive: CustomEvent<ArchiveDetail>;
|
|
86
|
+
unarchive: CustomEvent<UnarchiveDetail>;
|
|
87
|
+
delete: CustomEvent<DeleteDetail>;
|
|
88
|
+
"new-thread": CustomEvent<NewThreadDetail>;
|
|
89
|
+
"filter-change": CustomEvent<FilterChangeDetail>;
|
|
90
|
+
"open-change": CustomEvent<OpenChangeDetail>;
|
|
91
|
+
retry: CustomEvent<RetryDetail>;
|
|
92
|
+
licensed: CustomEvent<LicensedDetail>;
|
|
93
|
+
"load-more": CustomEvent<LoadMoreDetail>;
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
export { ArchiveDetail, CopilotKitThreadsDrawerEventMap, DeleteDetail, DrawerFilter, DrawerThread, FilterChangeDetail, LicensedDetail, LoadMoreDetail, NewThreadDetail, OpenChangeDetail, RetryDetail, ThreadSelectedDetail, UnarchiveDetail };
|
|
97
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/threads-drawer/types.ts"],"mappings":";;AAgBA;;;;;;;;;;;;AAgBA;;UAhBiB,YAAA;EAgBO;EAAA,SAdb,EAAA;EAiBM;EAAA,SAfN,IAAA;;WAEA,QAAA;EAcQ;EAAA,SAZR,SAAA;EAgBmB;EAAA,SAdnB,SAAA;EAeA;EAAA,SAbA,SAAA;AAAA;;KAIC,YAAA;;UAGK,oBAAA;EAAA,SACN,QAAA;AAAA;;UAIM,aAAA;EAAA,SACN,QAAA;AAAA;;UAIM,eAAA;EAAA,SACN,QAAA;AAAA;AAcX;AAAA,UAViB,YAAA;EAAA,SACN,QAAA;AAAA;;UAIM,kBAAA;EAAA,SACN,MAAA,EAAQ,YAAA;AAAA;;UAIF,gBAAA;EAAA,SACN,IAAA;AAAA;;;;AAqBX;;UAbiB,WAAA;EAAA,SACN,KAAA;AAAA;AAiBX;AAAA,KAbY,eAAA,GAAkB,MAAA;;;;AAoB9B;;;UAZiB,cAAA;EAAA,SACN,UAAA;AAAA;;KAIC,cAAA,GAAiB,MAAA;;;;;;UAOZ,+BAAA;EACf,iBAAA,EAAmB,WAAA,CAAY,oBAAA;EAC/B,OAAA,EAAS,WAAA,CAAY,aAAA;EACrB,SAAA,EAAW,WAAA,CAAY,eAAA;EACvB,MAAA,EAAQ,WAAA,CAAY,YAAA;EACpB,YAAA,EAAc,WAAA,CAAY,eAAA;EAC1B,eAAA,EAAiB,WAAA,CAAY,kBAAA;EAC7B,aAAA,EAAe,WAAA,CAAY,gBAAA;EAC3B,KAAA,EAAO,WAAA,CAAY,WAAA;EACnB,QAAA,EAAU,WAAA,CAAY,cAAA;EACtB,WAAA,EAAa,WAAA,CAAY,cAAA;AAAA"}
|