doccupine 0.0.145 → 0.0.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +11 -2
  2. package/dist/cli.d.ts +7 -0
  3. package/dist/cli.js +41 -0
  4. package/dist/generator/generated-page-publisher.d.ts +21 -0
  5. package/dist/generator/generated-page-publisher.js +124 -0
  6. package/dist/generator/generated-route-manager.d.ts +3 -0
  7. package/dist/generator/generated-route-manager.js +21 -8
  8. package/dist/generator/mdx-pass-builder.d.ts +31 -0
  9. package/dist/generator/mdx-pass-builder.js +45 -0
  10. package/dist/generator/mdx-reconciliation-coordinator.d.ts +83 -0
  11. package/dist/generator/mdx-reconciliation-coordinator.js +471 -0
  12. package/dist/generator/openapi-refresh-coordinator.d.ts +42 -0
  13. package/dist/generator/openapi-refresh-coordinator.js +211 -0
  14. package/dist/generator/page-renderer.js +18 -13
  15. package/dist/generator/section-index-generator.d.ts +10 -0
  16. package/dist/generator/section-index-generator.js +68 -0
  17. package/dist/generator/secure-source-fs.js +5 -4
  18. package/dist/generator/site-artifacts.js +2 -2
  19. package/dist/generator/watch-coordinator.d.ts +8 -0
  20. package/dist/generator/watch-coordinator.js +131 -53
  21. package/dist/index.js +8 -2
  22. package/dist/lib/layout.js +18 -10
  23. package/dist/lib/openapi-rendering.d.ts +17 -0
  24. package/dist/lib/openapi-rendering.js +193 -0
  25. package/dist/lib/openapi.d.ts +1 -7
  26. package/dist/lib/openapi.js +2 -192
  27. package/dist/lib/output-safety.js +10 -3
  28. package/dist/lib/structures.js +4 -0
  29. package/dist/lib/utils.d.ts +14 -0
  30. package/dist/lib/utils.js +30 -8
  31. package/dist/mdx-to-nextjs-generator.d.ts +7 -65
  32. package/dist/mdx-to-nextjs-generator.js +94 -783
  33. package/dist/templates/components/Chat.d.ts +1 -1
  34. package/dist/templates/components/Chat.js +20 -691
  35. package/dist/templates/components/ChatStyles.d.ts +1 -0
  36. package/dist/templates/components/ChatStyles.js +695 -0
  37. package/dist/templates/components/layout/ApiPlayground.d.ts +1 -1
  38. package/dist/templates/components/layout/ApiPlayground.js +14 -148
  39. package/dist/templates/mdx/platform/analytics.mdx.d.ts +1 -1
  40. package/dist/templates/mdx/platform/analytics.mdx.js +13 -0
  41. package/dist/templates/mdx/platform/fonts-settings.mdx.d.ts +1 -1
  42. package/dist/templates/mdx/platform/fonts-settings.mdx.js +16 -0
  43. package/dist/templates/mdx/platform/publishing.mdx.d.ts +1 -1
  44. package/dist/templates/mdx/platform/publishing.mdx.js +16 -1
  45. package/dist/templates/mdx/platform/self-updating-docs.mdx.d.ts +1 -1
  46. package/dist/templates/mdx/platform/self-updating-docs.mdx.js +17 -5
  47. package/dist/templates/package.js +3 -2
  48. package/dist/templates/prettierignore.d.ts +1 -1
  49. package/dist/templates/prettierignore.js +11 -0
  50. package/dist/templates/utils/apiPlayground.d.ts +1 -0
  51. package/dist/templates/utils/apiPlayground.js +149 -0
  52. package/dist/templates/utils/orderNavItems.d.ts +1 -1
  53. package/dist/templates/utils/orderNavItems.js +1 -1
  54. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- import { CHAT_WIDTH } from "../app/theme.js";
2
1
  export const chatTemplate = `"use client";
3
2
  import React, {
4
3
  createContext,
@@ -10,26 +9,34 @@ import React, {
10
9
  useState,
11
10
  useSyncExternalStore,
12
11
  } from "react";
13
- import styled, { css, keyframes } from "styled-components";
14
- import { Button, IconButton } from "cherry-styled-components";
12
+ import { IconButton } from "cherry-styled-components";
15
13
  import { ArrowUp, LoaderPinwheel, RotateCcw, Sparkles, X } from "lucide-react";
16
14
  import remarkGfm from "remark-gfm";
17
15
  import rehypeHighlight from "rehype-highlight";
18
16
  import { MDXRemote, MDXRemoteSerializeResult } from "next-mdx-remote";
19
17
  import { serialize } from "next-mdx-remote/serialize";
20
- import Link from "next/link";
21
- import { mq, theme, Theme } from "@/app/theme";
18
+ import { theme } from "@/app/theme";
19
+ import {
20
+ StyledAnswer,
21
+ StyledChat,
22
+ StyledChatForm,
23
+ StyledChatSurface,
24
+ StyledChatTitle,
25
+ StyledChatTitleIconWrapper,
26
+ StyledError,
27
+ StyledGlowSmallButton,
28
+ StyledLoading,
29
+ StyledRainbowButton,
30
+ StyledRainbowInput,
31
+ StyledRainbowInputWrapper,
32
+ StyledSourceLink,
33
+ StyledSources,
34
+ StyledSparkle,
35
+ StyledSparkleContainer,
36
+ } from "@/components/ChatStyles";
22
37
  import { Callout } from "@/components/layout/Callout";
23
38
  import { useLockBodyScroll } from "@/components/LockBodyScroll";
24
39
  import { useMDXComponents as getMDXComponents } from "@/components/MDXComponents";
25
- import {
26
- styledAnchor,
27
- styledTable,
28
- stylesLists,
29
- StyledSmallButton,
30
- interactiveStyles,
31
- thinScrollbar,
32
- } from "@/components/layout/SharedStyled";
33
40
 
34
41
  const mdxComponents = getMDXComponents({});
35
42
 
@@ -53,684 +60,6 @@ function useIsMobileChat() {
53
60
  );
54
61
  }
55
62
 
56
- const styledText = css<{ theme: Theme }>\`
57
- font-size: \${({ theme }) => theme.fontSizes.text.xs};
58
- line-height: \${({ theme }) => theme.lineHeights.text.xs};
59
-
60
- \${mq("lg")} {
61
- font-size: \${({ theme }) => theme.fontSizes.small.lg};
62
- line-height: \${({ theme }) => theme.lineHeights.small.lg};
63
- }
64
- \`;
65
-
66
- const StyledChatSurface = styled.div<{ $isVisible: boolean }>\`
67
- position: fixed;
68
- inset: 0;
69
- z-index: 1000;
70
- pointer-events: none;
71
-
72
- & > * {
73
- pointer-events: auto;
74
- }
75
-
76
- \${({ $isVisible }) =>
77
- !$isVisible &&
78
- css\`
79
- visibility: hidden;
80
-
81
- & > * {
82
- pointer-events: none;
83
- }
84
- \`}
85
- \`;
86
-
87
- const StyledChat = styled.div<{ theme: Theme; $isVisible: boolean }>\`
88
- margin: 0;
89
- position: fixed;
90
- top: 0;
91
- right: 0;
92
- width: 100%;
93
- height: calc(100dvh - 90px);
94
- overflow-y: scroll;
95
- overflow-x: hidden;
96
- z-index: 1000;
97
- padding: 0 20px;
98
- /* See StyledChatForm: visibility snaps open and is delayed on close, so the
99
- panel is focusable as soon as it opens. */
100
- transition:
101
- transform 0.3s ease,
102
- opacity 0.3s ease,
103
- visibility 0s linear 0s;
104
- transform: translateX(0);
105
- background: \${({ theme }) => theme.colors.light};
106
- -webkit-overflow-scrolling: touch;
107
- opacity: 1;
108
- visibility: visible;
109
-
110
- &::-webkit-scrollbar {
111
- display: none;
112
- }
113
-
114
- \${({ $isVisible }) =>
115
- !$isVisible &&
116
- css\`
117
- transform: translateX(100%);
118
- opacity: 0;
119
- visibility: hidden;
120
- transition-delay: 0s, 0s, 0.3s;
121
- \`}
122
-
123
- @media (prefers-reduced-motion: reduce) {
124
- transition: none;
125
- }
126
-
127
- \${mq("lg")} {
128
- width: ${CHAT_WIDTH}px;
129
- border-left: solid 1px \${({ theme }) => theme.colors.grayLight};
130
- }
131
- \`;
132
-
133
- const loadingAnimation = keyframes\`
134
- 0% {
135
- transform: rotate(0deg);
136
- }
137
- 100% {
138
- transform: rotate(360deg);
139
- }
140
- \`;
141
-
142
- const rotateGradient = keyframes\`
143
- 0% {
144
- --gradient-angle: 0deg;
145
- }
146
- 100% {
147
- --gradient-angle: 360deg;
148
- }
149
- \`;
150
-
151
- const pulseGlow = keyframes\`
152
- 0%, 100% {
153
- opacity: 0.5;
154
- filter: blur(16px);
155
- }
156
- 50% {
157
- opacity: 1;
158
- filter: blur(22px);
159
- }
160
- \`;
161
-
162
- const sparkleFloat = keyframes\`
163
- 0%, 100% {
164
- opacity: 0;
165
- transform: translateY(0) scale(0);
166
- }
167
- 50% {
168
- opacity: 0.9;
169
- transform: translateY(-20px) scale(1);
170
- }
171
- \`;
172
-
173
- const shimmer = keyframes\`
174
- 0% {
175
- background-position: 0% center;
176
- }
177
- 50% {
178
- background-position: 100% center;
179
- }
180
- 100% {
181
- background-position: 0% center;
182
- }
183
- \`;
184
-
185
- const StyledRainbowInputWrapper = styled.div<{
186
- theme: Theme;
187
- $isActive: boolean;
188
- }>\`
189
- @property --gradient-angle {
190
- syntax: "<angle>";
191
- initial-value: 0deg;
192
- inherits: false;
193
- }
194
-
195
- position: relative;
196
- flex: 1;
197
-
198
- &::before {
199
- content: "";
200
- position: absolute;
201
- inset: -2px;
202
- border-radius: 14px;
203
- background: conic-gradient(
204
- from var(--gradient-angle),
205
- #cc5555,
206
- #d9a745,
207
- #3ab0cc,
208
- #cc7fc2,
209
- #4380cc,
210
- #4c1fa3,
211
- #cc5555
212
- );
213
- opacity: 0;
214
- transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
215
- animation: \${rotateGradient} 3s linear infinite;
216
- z-index: 0;
217
- }
218
-
219
- &::after {
220
- content: "";
221
- position: absolute;
222
- inset: -10px;
223
- border-radius: 20px;
224
- background: conic-gradient(
225
- from var(--gradient-angle),
226
- #ff6b6b66,
227
- #feca5766,
228
- #48dbfb66,
229
- #ff9ff366,
230
- #54a0ff66,
231
- #5f27cd66,
232
- #ff6b6b66
233
- );
234
- opacity: 0;
235
- transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
236
- animation:
237
- \${rotateGradient} 3s linear infinite,
238
- \${pulseGlow} 2s ease-in-out infinite;
239
- z-index: -1;
240
- pointer-events: none;
241
- }
242
-
243
- &:hover::before,
244
- &:focus-within::before {
245
- opacity: 1;
246
- }
247
-
248
- &:hover::after,
249
- &:focus-within::after {
250
- opacity: 1;
251
- }
252
-
253
- \${({ $isActive }) =>
254
- $isActive &&
255
- css\`
256
- &::before {
257
- opacity: 1;
258
- }
259
- &::after {
260
- opacity: 1;
261
- }
262
- \`}
263
- \`;
264
-
265
- const StyledSparkleContainer = styled.div<{ $isActive: boolean }>\`
266
- position: absolute;
267
- inset: -30px;
268
- pointer-events: none;
269
- overflow: hidden;
270
- border-radius: 30px;
271
- z-index: -2;
272
- opacity: 0;
273
- transition: opacity 0.4s ease;
274
-
275
- \${({ $isActive }) =>
276
- $isActive &&
277
- css\`
278
- opacity: 1;
279
- \`}
280
- \`;
281
-
282
- const StyledSparkle = styled.div<{
283
- $color: string;
284
- $left: number;
285
- $top: number;
286
- $delay: number;
287
- }>\`
288
- position: absolute;
289
- width: 4px;
290
- height: 4px;
291
- border-radius: 50%;
292
- background: \${({ $color }) => $color};
293
- box-shadow: 0 0 6px \${({ $color }) => $color};
294
- left: \${({ $left }) => $left}%;
295
- top: \${({ $top }) => $top}%;
296
- animation: \${sparkleFloat} 2s ease-in-out infinite;
297
- animation-delay: \${({ $delay }) => $delay}s;
298
- \`;
299
-
300
- const StyledRainbowInput = styled.input<{ theme: Theme }>\`
301
- position: relative;
302
- z-index: 1;
303
- width: 100%;
304
- background: \${({ theme }) => theme.colors.light};
305
- border: 1px solid \${({ theme }) => theme.colors.grayLight};
306
- border-radius: 12px;
307
- padding: 12px 18px;
308
- font-size: \${({ theme }) => theme.fontSizes.text.lg};
309
- font-family: inherit;
310
- color: \${({ theme }) => theme.colors.dark};
311
- outline: none;
312
- transition:
313
- border-color 0.3s ease,
314
- box-shadow 0.3s ease;
315
-
316
- \${mq("lg")} {
317
- font-size: \${({ theme }) => theme.fontSizes.small.lg};
318
- }
319
-
320
- &::placeholder {
321
- color: \${({ theme }) =>
322
- \`color-mix(in srgb, \${theme.colors.dark} 40%, transparent)\`};
323
- transition: color 0.3s ease;
324
- }
325
-
326
- &:focus::placeholder {
327
- color: \${({ theme }) =>
328
- \`color-mix(in srgb, \${theme.colors.dark} 60%, transparent)\`};
329
- }
330
-
331
- &:focus {
332
- border-color: transparent;
333
- }
334
- \`;
335
-
336
- const StyledRainbowButton = styled(Button)<{
337
- theme: Theme;
338
- $hasContent: boolean;
339
- }>\`
340
- padding-top: 10px;
341
- padding-bottom: 10px;
342
- position: relative;
343
- overflow: hidden;
344
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
345
- color: \${({ theme }) => theme.colors.surface};
346
-
347
- &::before {
348
- content: "";
349
- position: absolute;
350
- inset: 0;
351
- background: linear-gradient(
352
- 135deg,
353
- #ff6b6b,
354
- #feca57,
355
- #48dbfb,
356
- #ff9ff3,
357
- #54a0ff
358
- );
359
- background-size: 300% 300%;
360
- opacity: 0;
361
- transition: opacity 0.3s ease;
362
- z-index: 0;
363
- animation: \${shimmer} 3s linear infinite;
364
- width: 200%;
365
- }
366
-
367
- \${({ $hasContent }) =>
368
- $hasContent &&
369
- css\`
370
- &::before {
371
- opacity: 1;
372
- }
373
- \`}
374
-
375
- &:hover::before {
376
- opacity: 1;
377
- }
378
-
379
- &:hover {
380
- transform: scale(1.05);
381
- }
382
-
383
- &:active {
384
- transform: scale(0.95);
385
- }
386
-
387
- & svg {
388
- position: relative;
389
- z-index: 1;
390
- transition: transform 0.3s ease;
391
- }
392
-
393
- &:disabled,
394
- &:disabled:hover {
395
- background: \${({ theme }) => theme.colors.primaryDark};
396
- transform: none;
397
- box-shadow: none;
398
-
399
- &::before {
400
- opacity: 0;
401
- }
402
- }
403
- \`;
404
-
405
- const StyledChatForm = styled.form<{ theme: Theme; $isVisible: boolean }>\`
406
- display: flex;
407
- gap: 10px;
408
- justify-content: center;
409
- align-items: center;
410
- background: \${({ theme }) => theme.colors.light};
411
- padding: 20px;
412
- position: fixed;
413
- bottom: 0;
414
- right: 0;
415
- z-index: 1000;
416
- width: 100%;
417
- border-top: solid 1px \${({ theme }) => theme.colors.grayLight};
418
- /* visibility is animatable, so transitioning "all" keeps this hidden for the
419
- whole slide-in - long enough for the focus() that follows opening to be a
420
- silent no-op. Snap it on open (transition-delay below) and delay it on
421
- close so the slide-out stays visible while it animates. */
422
- transition:
423
- transform 0.3s ease,
424
- opacity 0.3s ease,
425
- visibility 0s linear 0.3s;
426
- transform: translateX(100%);
427
- opacity: 0;
428
- visibility: hidden;
429
-
430
- \${mq("lg")} {
431
- width: ${CHAT_WIDTH}px;
432
- border-left: solid 1px \${({ theme }) => theme.colors.grayLight};
433
- }
434
-
435
- \${({ $isVisible }) =>
436
- $isVisible &&
437
- css\`
438
- opacity: 1;
439
- transform: translateX(0);
440
- visibility: visible;
441
- transition-delay: 0s;
442
- \`}
443
-
444
- @media (prefers-reduced-motion: reduce) {
445
- transition: none;
446
- }
447
-
448
- & .loading {
449
- animation: \${loadingAnimation} 1s linear infinite;
450
- }
451
- \`;
452
-
453
- const StyledGlowSmallButton = styled(StyledSmallButton)<{
454
- theme: Theme;
455
- $hasContent: boolean;
456
- }>\`
457
- @property --gradient-angle {
458
- syntax: "<angle>";
459
- initial-value: 0deg;
460
- inherits: false;
461
- }
462
-
463
- position: relative;
464
- isolation: isolate;
465
- margin-right: 0;
466
- background: \${({ theme }) => theme.colors.light};
467
- padding: 0;
468
-
469
- &::before {
470
- content: "";
471
- inset: -2px;
472
- border-radius: 8px;
473
- background: conic-gradient(
474
- from var(--gradient-angle),
475
- #cc5555,
476
- #d9a745,
477
- #3ab0cc,
478
- #cc7fc2,
479
- #4380cc,
480
- #4c1fa3,
481
- #cc5555
482
- );
483
- opacity: 0;
484
- transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
485
- animation: \${rotateGradient} 3s linear infinite;
486
- z-index: -1;
487
- position: absolute;
488
- top: -2px;
489
- left: -2px;
490
- width: calc(100% + 4px);
491
- height: calc(100% + 4px);
492
- }
493
-
494
- &::after {
495
- content: "";
496
- position: absolute;
497
- inset: -8px;
498
- border-radius: 14px;
499
- background: conic-gradient(
500
- from var(--gradient-angle),
501
- #ff6b6b66,
502
- #feca5766,
503
- #48dbfb66,
504
- #ff9ff366,
505
- #54a0ff66,
506
- #5f27cd66,
507
- #ff6b6b66
508
- );
509
- opacity: 0;
510
- transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
511
- animation:
512
- \${rotateGradient} 3s linear infinite,
513
- \${pulseGlow} 2s ease-in-out infinite;
514
- z-index: -2;
515
- pointer-events: none;
516
- }
517
-
518
- &:hover::before,
519
- &:hover::after {
520
- opacity: 1;
521
- }
522
-
523
- & span {
524
- padding: 6px 8px;
525
- display: flex;
526
- background: \${({ theme }) => theme.colors.light};
527
- border-radius: \${({ theme }) => theme.spacing.radius.xs};
528
- gap: 6px;
529
- }
530
-
531
- \${({ $hasContent }) =>
532
- $hasContent &&
533
- css\`
534
- &::before {
535
- opacity: 1;
536
- }
537
- &::after {
538
- opacity: 1;
539
- }
540
- \`}
541
- \`;
542
-
543
- const StyledError = styled.div\`
544
- margin: 20px 0;
545
- width: 100%;
546
- \`;
547
-
548
- const loadingDotAnimation = keyframes\`
549
- 0% {
550
- opacity: 0;
551
- }
552
- 50% {
553
- opacity: 1;
554
- }
555
- 100% {
556
- opacity: 0;
557
- }
558
- \`;
559
-
560
- const StyledLoading = styled.div<{ theme: Theme }>\`
561
- overflow-x: auto;
562
- \${thinScrollbar};
563
- margin: 20px 0;
564
- width: 100%;
565
- font-weight: 600;
566
- \${styledText};
567
- color: \${({ theme }) => theme.colors.dark};
568
-
569
- & span {
570
- &:nth-child(1) {
571
- animation: \${loadingDotAnimation} 1s ease infinite;
572
- }
573
- &:nth-child(2) {
574
- animation: \${loadingDotAnimation} 1s ease infinite;
575
- animation-delay: 0.2s;
576
- }
577
- &:nth-child(3) {
578
- animation: \${loadingDotAnimation} 1s ease infinite;
579
- animation-delay: 0.4s;
580
- }
581
- }
582
- \`;
583
-
584
- const StyledAnswer = styled.div<{ theme: Theme; $isAnswer: boolean }>\`
585
- overflow-x: auto;
586
- \${thinScrollbar};
587
- background: \${({ theme }) => theme.colors.primary};
588
- color: \${({ theme }) => theme.colors.surface};
589
- padding: 9px 14px;
590
- border-radius: 16px 16px 4px 16px;
591
- margin: 20px 0 20px auto;
592
- width: fit-content;
593
- max-width: min(560px, 88%);
594
- font-weight: 500;
595
- white-space: pre-wrap;
596
- overflow-wrap: anywhere;
597
- \${styledText};
598
-
599
- & p {
600
- \${styledText};
601
- }
602
-
603
- \${({ $isAnswer }) =>
604
- $isAnswer &&
605
- css\`
606
- background: transparent;
607
- color: \${({ theme }) => theme.colors.dark};
608
- padding: 0;
609
- width: 100%;
610
- max-width: 100%;
611
- margin: 20px 0;
612
- border-radius: 0;
613
- font-weight: inherit;
614
- white-space: normal;
615
- \`}
616
-
617
- & code:not([class]) {
618
- background: \${({ theme }) =>
619
- \`color-mix(in srgb, \${theme.colors.primaryLight} 20%, transparent)\`};
620
- color: \${({ theme }) => theme.colors.dark};
621
- padding: 2px 4px;
622
- border-radius: \${({ theme }) => theme.spacing.radius.xs};
623
- white-space: pre;
624
- }
625
-
626
- \${styledAnchor};
627
- \${stylesLists};
628
- \${styledTable};
629
-
630
- & pre,
631
- & .hljs {
632
- margin: 10px 0;
633
- }
634
-
635
- & .code-wrapper pre {
636
- margin: 0;
637
- \${styledText};
638
- }
639
-
640
- & > *:first-child {
641
- margin-top: 0;
642
- }
643
-
644
- & > *:last-child {
645
- margin-bottom: 0;
646
-
647
- & > *:last-child {
648
- margin-bottom: 0;
649
- }
650
- }
651
-
652
- & ul,
653
- & ol {
654
- & li {
655
- \${styledText};
656
- }
657
- }
658
-
659
- & img,
660
- & video,
661
- & iframe {
662
- max-width: 100%;
663
- border-radius: \${({ theme }) => theme.spacing.radius.lg};
664
- margin: 10px 0;
665
- display: block;
666
- }
667
-
668
- & h1,
669
- & h2,
670
- & h3,
671
- & h4,
672
- & h5,
673
- & h6 {
674
- margin: 10px 0;
675
- padding: 0;
676
- }
677
- \`;
678
-
679
- const StyledSources = styled.div\`
680
- display: flex;
681
- gap: 16px;
682
- flex-wrap: wrap;
683
- margin: -5px 0 20px;
684
- \`;
685
-
686
- const StyledSourceLink = styled(Link)<{ theme: Theme }>\`
687
- position: relative;
688
- text-decoration: none;
689
- font-size: \${({ theme }) => theme.fontSizes.small.lg};
690
- line-height: 1;
691
- color: \${({ theme }) => theme.colors.primary};
692
- display: flex;
693
- gap: 6px;
694
- transition: all 0.3s ease;
695
- font-weight: 600;
696
- white-space: nowrap;
697
- min-width: fit-content;
698
- background: \${({ theme }) =>
699
- \`color-mix(in srgb, \${theme.colors.primaryLight} 10%, transparent)\`};
700
- padding: 6px 8px;
701
- border-radius: \${({ theme }) => theme.spacing.radius.xs};
702
- \${interactiveStyles};
703
-
704
- & * {
705
- margin: auto 0;
706
- }
707
-
708
- &:hover {
709
- color: \${({ theme }) => theme.colors.accent};
710
- }
711
- \`;
712
-
713
- const StyledChatTitle = styled.div<{ theme: Theme }>\`
714
- display: flex;
715
- flex-wrap: nowrap;
716
- justify-content: space-between;
717
- position: sticky;
718
- margin: 0 -20px;
719
- padding: 16px 20px;
720
- height: 62px;
721
- top: 0;
722
- background: \${({ theme }) => theme.colors.light};
723
- border-bottom: solid 1px \${({ theme }) => theme.colors.grayLight};
724
- z-index: 1000;
725
- \`;
726
-
727
- const StyledChatTitleIconWrapper = styled.span<{ theme: Theme }>\`
728
- display: flex;
729
- align-items: center;
730
- gap: 12px;
731
- color: \${({ theme }) => theme.colors.dark};
732
- \`;
733
-
734
63
  type Source = {
735
64
  id: string;
736
65
  path: string;