@alexgorbatchev/shadcn 0.0.95 → 0.0.97
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/{chunk-bdsdkjcq.js → chunk-1vqyxxma.js} +1 -1
- package/dist/{chunk-j2tm6kjm.js → chunk-20ebs5z7.js} +1 -1
- package/dist/{chunk-25g7d9m7.js → chunk-22ybn8qf.js} +1 -1
- package/dist/chunk-2jsgsjas.js +27 -0
- package/dist/{chunk-q0qa9d0w.js → chunk-59emaywr.js} +1 -1
- package/dist/{chunk-fnqdw884.js → chunk-5xkfbnap.js} +1 -1
- package/dist/{chunk-afegpa2s.js → chunk-6s630syb.js} +1 -1
- package/dist/{chunk-fkxhe17e.js → chunk-6z6qn9zr.js} +1 -1
- package/dist/{chunk-tz7zjkw3.js → chunk-b2sn56jy.js} +1 -1
- package/dist/{chunk-w67bf59k.js → chunk-cjbh4fp5.js} +1 -1
- package/dist/{chunk-r73tntkx.js → chunk-h3a6hmnb.js} +1 -1
- package/dist/{chunk-kt1ra60a.js → chunk-j62723nh.js} +1 -1
- package/dist/{chunk-fg1h007n.js → chunk-m7rs4v5x.js} +4 -3
- package/dist/{chunk-6fj02yzp.js → chunk-paswgbzy.js} +3 -3
- package/dist/{chunk-s8qhybtb.js → chunk-pj739h1d.js} +1 -1
- package/dist/{chunk-k1428vt3.js → chunk-q6ay6f5f.js} +1 -1
- package/dist/{chunk-2sx5jnyv.js → chunk-qs48ad08.js} +1 -1
- package/dist/{chunk-4p4vggpr.js → chunk-r3yp5xm2.js} +1 -1
- package/dist/{chunk-5rzhnmv6.js → chunk-r63yrdr2.js} +1 -1
- package/dist/{chunk-mjxhvwgg.js → chunk-tzf47swm.js} +4 -4
- package/dist/{chunk-hyhr09xy.js → chunk-v3ep6b3p.js} +1 -1
- package/dist/{chunk-77zbd22x.js → chunk-w9mmcpfj.js} +2 -2
- package/dist/{chunk-wrm689qy.js → chunk-wgvpxw3p.js} +8 -8
- package/dist/{chunk-kq3348h4.js → chunk-xfx55ter.js} +2 -2
- package/dist/{chunk-t6gbcj27.js → chunk-xyttc32e.js} +2 -1
- package/dist/{chunk-nssz3p32.js → chunk-zz3egmv4.js} +1 -1
- package/dist/components/Breadcrumb.d.ts +9 -2
- package/dist/components/assistant-ui/elements/CommandPalette.js +3 -3
- package/dist/components/assistant-ui/elements/GenerativeUi.js +4 -4
- package/dist/components/assistant-ui/elements/Image.js +2 -2
- package/dist/components/assistant-ui/elements/ImageGallery.js +2 -2
- package/dist/components/assistant-ui/elements/MermaidDiagram.js +3 -3
- package/dist/components/assistant-ui/elements/MermaidZoom.js +2 -2
- package/dist/components/assistant-ui/elements/ModelSelector.js +9 -9
- package/dist/components/assistant-ui/elements/ModelSelectorContent.js +8 -8
- package/dist/components/assistant-ui/elements/ModelSelectorEmpty.js +3 -3
- package/dist/components/assistant-ui/elements/ModelSelectorFocusAnchor.js +3 -3
- package/dist/components/assistant-ui/elements/ModelSelectorGroup.js +3 -3
- package/dist/components/assistant-ui/elements/ModelSelectorItem.js +3 -3
- package/dist/components/assistant-ui/elements/ModelSelectorList.js +5 -5
- package/dist/components/assistant-ui/elements/ModelSelectorSearch.js +3 -3
- package/dist/components/assistant-ui/elements/ModelSelectorSeparator.js +3 -3
- package/dist/components/assistant-ui/index.js +17 -17
- package/dist/components/assistant-ui/native/AssistantModal.js +5 -5
- package/dist/components/assistant-ui/native/AssistantSidebar.js +5 -5
- package/dist/components/assistant-ui/native/AttachmentPreview.js +2 -2
- package/dist/components/assistant-ui/native/McpConfigDialog.js +2 -2
- package/dist/components/assistant-ui/native/MermaidDiagram.js +4 -4
- package/dist/components/assistant-ui/native/ModelSelector.js +11 -11
- package/dist/components/assistant-ui/native/Thread.js +4 -4
- package/dist/components/assistant-ui/native/index.js +20 -20
- package/dist/components/command/index.js +2 -2
- package/dist/components/image-viewer/FramedImage.d.ts +16 -0
- package/dist/components/image-viewer/ImageRegionSelect.d.ts +12 -0
- package/dist/components/image-viewer/ImageViewer.d.ts +32 -7
- package/dist/components/image-viewer/ImageViewport.d.ts +20 -5
- package/dist/components/image-viewer/ImageZoomControl.d.ts +18 -0
- package/dist/components/image-viewer/ImageZoomToggle.d.ts +1 -1
- package/dist/components/image-viewer/getImageStageSize.d.ts +2 -1
- package/dist/components/image-viewer/imageZoom.d.ts +26 -0
- package/dist/components/image-viewer/index.d.ts +9 -2
- package/dist/components/image-viewer/index.js +637 -185
- package/dist/components/image-viewer/types.d.ts +13 -2
- package/dist/components/json-render/index.js +7 -5
- package/dist/index.js +2 -2
- package/dist/prototype.js +1 -1
- package/dist/theme.css +5 -0
- package/llms/components/data-display/FramedImage.md +66 -0
- package/llms/components/data-display/ImageComparison.md +3 -3
- package/llms/components/data-display/ImageViewer.md +28 -9
- package/llms/components/data-display/ImageZoomToggle.md +3 -3
- package/llms/components/navigation/Breadcrumb.md +26 -0
- package/llms/components/overlays/Dialog.md +17 -0
- package/llms.txt +4 -3
- package/package.json +1 -1
|
@@ -85,12 +85,12 @@ import {
|
|
|
85
85
|
import {
|
|
86
86
|
CodeRunner2
|
|
87
87
|
} from "../../chunk-r1qyx0ke.js";
|
|
88
|
-
import"../../chunk-
|
|
89
|
-
import"../../chunk-
|
|
88
|
+
import"../../chunk-xyttc32e.js";
|
|
89
|
+
import"../../chunk-20ebs5z7.js";
|
|
90
90
|
import"../../chunk-7vnpp3ya.js";
|
|
91
91
|
import {
|
|
92
92
|
CommandPalette2
|
|
93
|
-
} from "../../chunk-
|
|
93
|
+
} from "../../chunk-cjbh4fp5.js";
|
|
94
94
|
import {
|
|
95
95
|
ComparisonCard2
|
|
96
96
|
} from "../../chunk-d93zpy8g.js";
|
|
@@ -312,10 +312,10 @@ import {
|
|
|
312
312
|
ImageRegenerateButton2,
|
|
313
313
|
ImageActions2,
|
|
314
314
|
Image2
|
|
315
|
-
} from "../../chunk-
|
|
315
|
+
} from "../../chunk-j62723nh.js";
|
|
316
316
|
import {
|
|
317
317
|
ImageGallery2
|
|
318
|
-
} from "../../chunk-
|
|
318
|
+
} from "../../chunk-q6ay6f5f.js";
|
|
319
319
|
import {
|
|
320
320
|
ImageGeneration2
|
|
321
321
|
} from "../../chunk-d1vxr8ek.js";
|
|
@@ -387,34 +387,34 @@ import {
|
|
|
387
387
|
} from "../../chunk-gb16cwpw.js";
|
|
388
388
|
import {
|
|
389
389
|
ModelSelectorFocusAnchor2
|
|
390
|
-
} from "../../chunk-
|
|
390
|
+
} from "../../chunk-5xkfbnap.js";
|
|
391
391
|
import {
|
|
392
392
|
ModelSelectorSearch2
|
|
393
|
-
} from "../../chunk-
|
|
393
|
+
} from "../../chunk-pj739h1d.js";
|
|
394
394
|
import {
|
|
395
395
|
ModelSelectorEmpty2
|
|
396
|
-
} from "../../chunk-
|
|
396
|
+
} from "../../chunk-6s630syb.js";
|
|
397
397
|
import {
|
|
398
398
|
ModelSelectorItem2
|
|
399
|
-
} from "../../chunk-
|
|
399
|
+
} from "../../chunk-b2sn56jy.js";
|
|
400
400
|
import {
|
|
401
401
|
ModelSelectorList2
|
|
402
|
-
} from "../../chunk-
|
|
402
|
+
} from "../../chunk-paswgbzy.js";
|
|
403
403
|
import {
|
|
404
404
|
ModelSelectorEffort2
|
|
405
405
|
} from "../../chunk-pzr1f2tz.js";
|
|
406
406
|
import {
|
|
407
407
|
ModelSelectorContent2
|
|
408
|
-
} from "../../chunk-
|
|
408
|
+
} from "../../chunk-tzf47swm.js";
|
|
409
409
|
import {
|
|
410
410
|
ModelSelector2
|
|
411
|
-
} from "../../chunk-
|
|
411
|
+
} from "../../chunk-v3ep6b3p.js";
|
|
412
412
|
import {
|
|
413
413
|
ModelSelectorGroup2
|
|
414
|
-
} from "../../chunk-
|
|
414
|
+
} from "../../chunk-1vqyxxma.js";
|
|
415
415
|
import {
|
|
416
416
|
ModelSelectorSeparator2
|
|
417
|
-
} from "../../chunk-
|
|
417
|
+
} from "../../chunk-6z6qn9zr.js";
|
|
418
418
|
import {
|
|
419
419
|
NumberRoll2
|
|
420
420
|
} from "../../chunk-wtf2qczs.js";
|
|
@@ -537,12 +537,12 @@ import {
|
|
|
537
537
|
import"../../chunk-1fzwfn11.js";
|
|
538
538
|
import {
|
|
539
539
|
MermaidZoom2
|
|
540
|
-
} from "../../chunk-
|
|
541
|
-
import"../../chunk-
|
|
540
|
+
} from "../../chunk-59emaywr.js";
|
|
541
|
+
import"../../chunk-22ybn8qf.js";
|
|
542
542
|
import {
|
|
543
543
|
styledGenerativeUILibrary2,
|
|
544
544
|
GenerativeUi2
|
|
545
|
-
} from "../../chunk-
|
|
545
|
+
} from "../../chunk-r63yrdr2.js";
|
|
546
546
|
import {
|
|
547
547
|
Sub2
|
|
548
548
|
} from "../../chunk-f1mdtq5p.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AssistantModal2
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-h3a6hmnb.js";
|
|
4
4
|
import"../../../chunk-ybnwwsvj.js";
|
|
5
|
-
import"../../../chunk-
|
|
5
|
+
import"../../../chunk-w9mmcpfj.js";
|
|
6
6
|
import"../../../chunk-t75anqyy.js";
|
|
7
7
|
import"../../../chunk-j2n8684w.js";
|
|
8
8
|
import"../../../chunk-6wqp7xn4.js";
|
|
9
9
|
import"../../../chunk-9t5h5ps3.js";
|
|
10
|
-
import"../../../chunk-
|
|
10
|
+
import"../../../chunk-zz3egmv4.js";
|
|
11
11
|
import"../../../chunk-a1c1yrkz.js";
|
|
12
12
|
import"../../../chunk-vh5r4agk.js";
|
|
13
13
|
import"../../../chunk-6synj4j9.js";
|
|
14
14
|
import"../../../chunk-jhqb6z35.js";
|
|
15
15
|
import"../../../chunk-x0p3g392.js";
|
|
16
16
|
import"../../../chunk-zyxzn7xf.js";
|
|
17
|
-
import"../../../chunk-
|
|
17
|
+
import"../../../chunk-j62723nh.js";
|
|
18
18
|
import"../../../chunk-f2p7w894.js";
|
|
19
19
|
import"../../../chunk-qa0j0v26.js";
|
|
20
20
|
import"../../../chunk-m0kavf2m.js";
|
|
@@ -29,7 +29,7 @@ import"../../../chunk-1fzwfn11.js";
|
|
|
29
29
|
import"../../../chunk-m4geb1s5.js";
|
|
30
30
|
import"../../../chunk-fw86vanx.js";
|
|
31
31
|
import"../../../chunk-tcefvfr8.js";
|
|
32
|
-
import"../../../chunk-
|
|
32
|
+
import"../../../chunk-xyttc32e.js";
|
|
33
33
|
import"../../../chunk-er6e5fj8.js";
|
|
34
34
|
import"../../../chunk-7vg045gd.js";
|
|
35
35
|
import"../../../chunk-7jpsybag.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AssistantSidebar2
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import"../../../chunk-
|
|
3
|
+
} from "../../../chunk-qs48ad08.js";
|
|
4
|
+
import"../../../chunk-w9mmcpfj.js";
|
|
5
5
|
import"../../../chunk-t75anqyy.js";
|
|
6
6
|
import"../../../chunk-j2n8684w.js";
|
|
7
7
|
import"../../../chunk-6wqp7xn4.js";
|
|
8
8
|
import"../../../chunk-9t5h5ps3.js";
|
|
9
|
-
import"../../../chunk-
|
|
9
|
+
import"../../../chunk-zz3egmv4.js";
|
|
10
10
|
import"../../../chunk-a1c1yrkz.js";
|
|
11
11
|
import"../../../chunk-vh5r4agk.js";
|
|
12
12
|
import"../../../chunk-6synj4j9.js";
|
|
13
13
|
import"../../../chunk-jhqb6z35.js";
|
|
14
14
|
import"../../../chunk-x0p3g392.js";
|
|
15
15
|
import"../../../chunk-zyxzn7xf.js";
|
|
16
|
-
import"../../../chunk-
|
|
16
|
+
import"../../../chunk-j62723nh.js";
|
|
17
17
|
import"../../../chunk-f2p7w894.js";
|
|
18
18
|
import"../../../chunk-qa0j0v26.js";
|
|
19
19
|
import"../../../chunk-m0kavf2m.js";
|
|
@@ -28,7 +28,7 @@ import"../../../chunk-1fzwfn11.js";
|
|
|
28
28
|
import"../../../chunk-m4geb1s5.js";
|
|
29
29
|
import"../../../chunk-fw86vanx.js";
|
|
30
30
|
import"../../../chunk-tcefvfr8.js";
|
|
31
|
-
import"../../../chunk-
|
|
31
|
+
import"../../../chunk-xyttc32e.js";
|
|
32
32
|
import"../../../chunk-er6e5fj8.js";
|
|
33
33
|
import"../../../chunk-7jpsybag.js";
|
|
34
34
|
import"../../../chunk-5jgfh8t9.js";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
UserMessageAttachments2,
|
|
3
3
|
ComposerAttachments3,
|
|
4
4
|
ComposerAddAttachment2
|
|
5
|
-
} from "../../../chunk-
|
|
5
|
+
} from "../../../chunk-zz3egmv4.js";
|
|
6
6
|
import"../../../chunk-jhqb6z35.js";
|
|
7
7
|
import"../../../chunk-0hq6rg7w.js";
|
|
8
8
|
import"../../../chunk-tcefvfr8.js";
|
|
9
|
-
import"../../../chunk-
|
|
9
|
+
import"../../../chunk-xyttc32e.js";
|
|
10
10
|
import"../../../chunk-32t5kc0y.js";
|
|
11
11
|
import"../../../chunk-x90xmrba.js";
|
|
12
12
|
import"../../../chunk-jpvw9xqy.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
McpConfigDialog2
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-r3yp5xm2.js";
|
|
4
4
|
import"../../../chunk-m4geb1s5.js";
|
|
5
5
|
import"../../../chunk-9t530p75.js";
|
|
6
6
|
import"../../../chunk-m32ptxf3.js";
|
|
7
7
|
import"../../../chunk-tcefvfr8.js";
|
|
8
8
|
import"../../../chunk-p6z2m3zp.js";
|
|
9
|
-
import"../../../chunk-
|
|
9
|
+
import"../../../chunk-xyttc32e.js";
|
|
10
10
|
import"../../../chunk-7vg045gd.js";
|
|
11
11
|
import"../../../chunk-7jpsybag.js";
|
|
12
12
|
import"../../../chunk-52aadmkc.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MermaidDiagram2
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import"../../../chunk-
|
|
5
|
-
import"../../../chunk-
|
|
3
|
+
} from "../../../chunk-xfx55ter.js";
|
|
4
|
+
import"../../../chunk-22ybn8qf.js";
|
|
5
|
+
import"../../../chunk-59emaywr.js";
|
|
6
6
|
import"../../../chunk-1fzwfn11.js";
|
|
7
|
-
import"../../../chunk-
|
|
7
|
+
import"../../../chunk-xyttc32e.js";
|
|
8
8
|
import"../../../chunk-32t5kc0y.js";
|
|
9
9
|
import"../../../chunk-x90xmrba.js";
|
|
10
10
|
import"../../../chunk-jpvw9xqy.js";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ModelSelector3
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-wgvpxw3p.js";
|
|
4
4
|
import"../../../chunk-k2t9ey7z.js";
|
|
5
5
|
import"../../../chunk-gb16cwpw.js";
|
|
6
|
-
import"../../../chunk-
|
|
7
|
-
import"../../../chunk-
|
|
8
|
-
import"../../../chunk-
|
|
9
|
-
import"../../../chunk-
|
|
6
|
+
import"../../../chunk-1vqyxxma.js";
|
|
7
|
+
import"../../../chunk-6z6qn9zr.js";
|
|
8
|
+
import"../../../chunk-tzf47swm.js";
|
|
9
|
+
import"../../../chunk-paswgbzy.js";
|
|
10
10
|
import"../../../chunk-pzr1f2tz.js";
|
|
11
|
-
import"../../../chunk-
|
|
12
|
-
import"../../../chunk-
|
|
13
|
-
import"../../../chunk-
|
|
14
|
-
import"../../../chunk-
|
|
11
|
+
import"../../../chunk-6s630syb.js";
|
|
12
|
+
import"../../../chunk-5xkfbnap.js";
|
|
13
|
+
import"../../../chunk-pj739h1d.js";
|
|
14
|
+
import"../../../chunk-b2sn56jy.js";
|
|
15
15
|
import"../../../chunk-0qkdp68h.js";
|
|
16
16
|
import"../../../chunk-ydfx8r6d.js";
|
|
17
17
|
import"../../../chunk-kp3jgjng.js";
|
|
18
18
|
import"../../../chunk-tcefvfr8.js";
|
|
19
19
|
import"../../../chunk-bf8kbj33.js";
|
|
20
|
-
import"../../../chunk-
|
|
21
|
-
import"../../../chunk-
|
|
20
|
+
import"../../../chunk-20ebs5z7.js";
|
|
21
|
+
import"../../../chunk-xyttc32e.js";
|
|
22
22
|
import"../../../chunk-4j3fsft3.js";
|
|
23
23
|
import"../../../chunk-er6e5fj8.js";
|
|
24
24
|
import"../../../chunk-7vg045gd.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Thread2
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-w9mmcpfj.js";
|
|
4
4
|
import"../../../chunk-t75anqyy.js";
|
|
5
5
|
import"../../../chunk-j2n8684w.js";
|
|
6
6
|
import"../../../chunk-6wqp7xn4.js";
|
|
7
7
|
import"../../../chunk-9t5h5ps3.js";
|
|
8
|
-
import"../../../chunk-
|
|
8
|
+
import"../../../chunk-zz3egmv4.js";
|
|
9
9
|
import"../../../chunk-a1c1yrkz.js";
|
|
10
10
|
import"../../../chunk-vh5r4agk.js";
|
|
11
11
|
import"../../../chunk-6synj4j9.js";
|
|
12
12
|
import"../../../chunk-jhqb6z35.js";
|
|
13
13
|
import"../../../chunk-x0p3g392.js";
|
|
14
14
|
import"../../../chunk-zyxzn7xf.js";
|
|
15
|
-
import"../../../chunk-
|
|
15
|
+
import"../../../chunk-j62723nh.js";
|
|
16
16
|
import"../../../chunk-f2p7w894.js";
|
|
17
17
|
import"../../../chunk-qa0j0v26.js";
|
|
18
18
|
import"../../../chunk-m0kavf2m.js";
|
|
@@ -27,7 +27,7 @@ import"../../../chunk-1fzwfn11.js";
|
|
|
27
27
|
import"../../../chunk-m4geb1s5.js";
|
|
28
28
|
import"../../../chunk-fw86vanx.js";
|
|
29
29
|
import"../../../chunk-tcefvfr8.js";
|
|
30
|
-
import"../../../chunk-
|
|
30
|
+
import"../../../chunk-xyttc32e.js";
|
|
31
31
|
import"../../../chunk-er6e5fj8.js";
|
|
32
32
|
import"../../../chunk-7jpsybag.js";
|
|
33
33
|
import"../../../chunk-32t5kc0y.js";
|
|
@@ -14,17 +14,17 @@ import"../../../chunk-e6hk39ev.js";
|
|
|
14
14
|
import"../../../chunk-7jpsybag.js";
|
|
15
15
|
import {
|
|
16
16
|
Thread2
|
|
17
|
-
} from "../../../chunk-
|
|
17
|
+
} from "../../../chunk-w9mmcpfj.js";
|
|
18
18
|
import"../../../chunk-jpvw9xqy.js";
|
|
19
19
|
import"../../../chunk-32t5kc0y.js";
|
|
20
|
-
import"../../../chunk-
|
|
20
|
+
import"../../../chunk-xyttc32e.js";
|
|
21
21
|
import"../../../chunk-0hq6rg7w.js";
|
|
22
22
|
import"../../../chunk-jhqb6z35.js";
|
|
23
23
|
import {
|
|
24
24
|
UserMessageAttachments2,
|
|
25
25
|
ComposerAttachments3,
|
|
26
26
|
ComposerAddAttachment2
|
|
27
|
-
} from "../../../chunk-
|
|
27
|
+
} from "../../../chunk-zz3egmv4.js";
|
|
28
28
|
import"../../../chunk-m4geb1s5.js";
|
|
29
29
|
import"../../../chunk-qa0j0v26.js";
|
|
30
30
|
import"../../../chunk-kqtsvprx.js";
|
|
@@ -33,7 +33,7 @@ import"../../../chunk-wrvxzfdb.js";
|
|
|
33
33
|
import {
|
|
34
34
|
ThreadFollowupSuggestions2
|
|
35
35
|
} from "../../../chunk-j2n8684w.js";
|
|
36
|
-
import"../../../chunk-
|
|
36
|
+
import"../../../chunk-j62723nh.js";
|
|
37
37
|
import"../../../chunk-6synj4j9.js";
|
|
38
38
|
import"../../../chunk-vh5r4agk.js";
|
|
39
39
|
import"../../../chunk-f8zc8ceg.js";
|
|
@@ -81,11 +81,11 @@ import {
|
|
|
81
81
|
import"../../../chunk-7vg045gd.js";
|
|
82
82
|
import {
|
|
83
83
|
AssistantModal2
|
|
84
|
-
} from "../../../chunk-
|
|
84
|
+
} from "../../../chunk-h3a6hmnb.js";
|
|
85
85
|
import"../../../chunk-5jgfh8t9.js";
|
|
86
86
|
import {
|
|
87
87
|
AssistantSidebar2
|
|
88
|
-
} from "../../../chunk-
|
|
88
|
+
} from "../../../chunk-qs48ad08.js";
|
|
89
89
|
import {
|
|
90
90
|
ComposerQuotePreviewRoot2,
|
|
91
91
|
ComposerQuotePreviewIcon2,
|
|
@@ -138,12 +138,12 @@ import"../../../chunk-m32ptxf3.js";
|
|
|
138
138
|
import"../../../chunk-52aadmkc.js";
|
|
139
139
|
import {
|
|
140
140
|
McpConfigDialog2
|
|
141
|
-
} from "../../../chunk-
|
|
142
|
-
import"../../../chunk-
|
|
143
|
-
import"../../../chunk-
|
|
141
|
+
} from "../../../chunk-r3yp5xm2.js";
|
|
142
|
+
import"../../../chunk-59emaywr.js";
|
|
143
|
+
import"../../../chunk-22ybn8qf.js";
|
|
144
144
|
import {
|
|
145
145
|
MermaidDiagram2
|
|
146
|
-
} from "../../../chunk-
|
|
146
|
+
} from "../../../chunk-xfx55ter.js";
|
|
147
147
|
import {
|
|
148
148
|
MessageTiming3
|
|
149
149
|
} from "../../../chunk-zk8enn91.js";
|
|
@@ -153,19 +153,19 @@ import"../../../chunk-k2t9ey7z.js";
|
|
|
153
153
|
import"../../../chunk-0qkdp68h.js";
|
|
154
154
|
import"../../../chunk-gb16cwpw.js";
|
|
155
155
|
import"../../../chunk-4j3fsft3.js";
|
|
156
|
-
import"../../../chunk-
|
|
157
|
-
import"../../../chunk-
|
|
158
|
-
import"../../../chunk-
|
|
159
|
-
import"../../../chunk-
|
|
160
|
-
import"../../../chunk-
|
|
161
|
-
import"../../../chunk-
|
|
156
|
+
import"../../../chunk-20ebs5z7.js";
|
|
157
|
+
import"../../../chunk-5xkfbnap.js";
|
|
158
|
+
import"../../../chunk-pj739h1d.js";
|
|
159
|
+
import"../../../chunk-6s630syb.js";
|
|
160
|
+
import"../../../chunk-b2sn56jy.js";
|
|
161
|
+
import"../../../chunk-paswgbzy.js";
|
|
162
162
|
import"../../../chunk-pzr1f2tz.js";
|
|
163
|
-
import"../../../chunk-
|
|
164
|
-
import"../../../chunk-
|
|
165
|
-
import"../../../chunk-
|
|
163
|
+
import"../../../chunk-tzf47swm.js";
|
|
164
|
+
import"../../../chunk-1vqyxxma.js";
|
|
165
|
+
import"../../../chunk-6z6qn9zr.js";
|
|
166
166
|
import {
|
|
167
167
|
ModelSelector3
|
|
168
|
-
} from "../../../chunk-
|
|
168
|
+
} from "../../../chunk-wgvpxw3p.js";
|
|
169
169
|
import {
|
|
170
170
|
QuoteBlockRoot2,
|
|
171
171
|
QuoteBlockIcon2,
|
|
@@ -5,7 +5,7 @@ import"../../chunk-e6hk39ev.js";
|
|
|
5
5
|
import"../../chunk-x90xmrba.js";
|
|
6
6
|
import"../../chunk-jpvw9xqy.js";
|
|
7
7
|
import"../../chunk-32t5kc0y.js";
|
|
8
|
-
import"../../chunk-
|
|
8
|
+
import"../../chunk-xyttc32e.js";
|
|
9
9
|
import"../../chunk-7jpsybag.js";
|
|
10
10
|
import"../../chunk-7vg045gd.js";
|
|
11
11
|
import"../../chunk-er6e5fj8.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
CommandSeparator2,
|
|
21
21
|
CommandItem2,
|
|
22
22
|
CommandShortcut2
|
|
23
|
-
} from "../../chunk-
|
|
23
|
+
} from "../../chunk-20ebs5z7.js";
|
|
24
24
|
import"../../chunk-5mydsjp3.js";
|
|
25
25
|
export {
|
|
26
26
|
Command2 as Command,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ComponentProps, ReactElement } from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const framedImageVariants: (props?: ({
|
|
4
|
+
size?: "fill" | "intrinsic" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export type FramedImageSize = NonNullable<VariantProps<typeof framedImageVariants>["size"]>;
|
|
7
|
+
export interface IFramedImageProps extends ComponentProps<"img"> {
|
|
8
|
+
/** `intrinsic` (the default) keeps the image's own size within the column and 70% of the viewport height. */
|
|
9
|
+
size?: FramedImageSize;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* An agent-supplied or user-supplied image framed as evidence: a visible edge in both themes and a height cap so a
|
|
13
|
+
* tall capture never pushes the rest of the page a screen down.
|
|
14
|
+
*/
|
|
15
|
+
export declare function FramedImage({ size, className, alt, ...props }: IFramedImageProps): ReactElement;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import type { IImageRect } from "./types.js";
|
|
3
|
+
export interface IImageRegionSelectProps {
|
|
4
|
+
/** Receives the drawn region in normalized image coordinates, each value from 0 to 1. */
|
|
5
|
+
onSelect: (region: IImageRect) => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Region tool for an `ImageViewer` overlay: a drag with one pointer draws a region and reports it in normalized image
|
|
9
|
+
* coordinates. Render it only while the person has turned a region tool on, so pans and pinches stay navigation
|
|
10
|
+
* otherwise. Its pointer is kept from panning the stage; a second finger cancels the drawing and pinch-zooms instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare function ImageRegionSelect({ onSelect }: IImageRegionSelectProps): ReactElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactElement, type ReactNode, type Ref, type SyntheticEvent } from "react";
|
|
1
|
+
import { type KeyboardEvent, type ReactElement, type ReactNode, type Ref, type SyntheticEvent } from "react";
|
|
2
2
|
import type { IDensityProps } from "../../density/types.js";
|
|
3
3
|
import type { ImageZoom } from "./types.js";
|
|
4
4
|
export interface IImageViewerProps extends IDensityProps {
|
|
@@ -8,11 +8,24 @@ export interface IImageViewerProps extends IDensityProps {
|
|
|
8
8
|
crossOrigin?: "anonymous" | "use-credentials";
|
|
9
9
|
/** Controlled zoom. */
|
|
10
10
|
zoom?: ImageZoom;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Initial zoom when uncontrolled. Defaults to the opening zoom: `fit`, or `fit-width` for an image taller than the
|
|
13
|
+
* viewport, and never narrower than `openingWidth`.
|
|
14
|
+
*/
|
|
12
15
|
defaultZoom?: ImageZoom;
|
|
13
16
|
onZoomChange?: (zoom: ImageZoom) => void;
|
|
14
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Width in CSS pixels the image had where it was opened from, such as a page thumbnail. Without a controlled or
|
|
19
|
+
* default zoom, the viewer opens no narrower than this.
|
|
20
|
+
*/
|
|
21
|
+
openingWidth?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Shows the zoom bar (Fit, Fit width, zoom out, percent, zoom in) in a toolbar row above the image. Place
|
|
24
|
+
* `ImageZoomToggle` yourself instead to put a simpler control in a header.
|
|
25
|
+
*/
|
|
15
26
|
showZoomControl?: boolean;
|
|
27
|
+
/** Further controls in the toolbar row after the zoom bar, such as comment actions. Renders the row on its own too. */
|
|
28
|
+
toolbar?: ReactNode;
|
|
16
29
|
/**
|
|
17
30
|
* Content sized and positioned exactly over the rendered image at every zoom level, such as region selections or
|
|
18
31
|
* markers. Position children in percentages, and normalize pointer positions with `getNormalizedImagePoint`.
|
|
@@ -22,13 +35,25 @@ export interface IImageViewerProps extends IDensityProps {
|
|
|
22
35
|
imageRef?: Ref<HTMLImageElement>;
|
|
23
36
|
/** The overlay box, rendered only when `overlay` is provided. */
|
|
24
37
|
overlayRef?: Ref<HTMLDivElement>;
|
|
25
|
-
/**
|
|
38
|
+
/** The focusable stage that scrolls the image. */
|
|
39
|
+
stageRef?: Ref<HTMLDivElement>;
|
|
40
|
+
/** Accessible name of the stage, followed by the zoom percent. Defaults to `alt`. */
|
|
26
41
|
label?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Runs for keys pressed while the stage has focus, before its own zoom and pan keys; call `preventDefault()` to
|
|
44
|
+
* replace one. Declare the keys it handles in `stageKeyShortcuts`.
|
|
45
|
+
*/
|
|
46
|
+
onStageKeyDown?: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
47
|
+
/** Further `aria-keyshortcuts` of the stage, such as "R". */
|
|
48
|
+
stageKeyShortcuts?: string;
|
|
27
49
|
onLoad?: (event: SyntheticEvent<HTMLImageElement>) => void;
|
|
28
50
|
onError?: (event: SyntheticEvent<HTMLImageElement>) => void;
|
|
29
51
|
}
|
|
30
52
|
/**
|
|
31
|
-
* Shows one image inside a native scroll viewport that fills its container
|
|
32
|
-
*
|
|
53
|
+
* Shows one image inside a native scroll viewport that fills its container, framed so its edge shows in both themes.
|
|
54
|
+
* `fit` scales the image down to show all of it; `fit-width` fills the width and scrolls vertically; numeric zooms run
|
|
55
|
+
* up to 400% and keep the viewed center. Drag pans, pinch and Mod+wheel zoom, and the focused stage takes +, −, 0, 1
|
|
56
|
+
* and arrow keys. Touch gestures never reach overlay content unless it handles them itself, such as
|
|
57
|
+
* `ImageRegionSelect` while a region tool is on.
|
|
33
58
|
*/
|
|
34
|
-
export declare function ImageViewer({ src, alt, crossOrigin, zoom: zoomProp, defaultZoom, onZoomChange, showZoomControl, overlay, imageRef, overlayRef, label, onLoad, onError, density, }: IImageViewerProps): ReactElement;
|
|
59
|
+
export declare function ImageViewer({ src, alt, crossOrigin, zoom: zoomProp, defaultZoom, onZoomChange, openingWidth, showZoomControl, toolbar, overlay, imageRef, overlayRef, stageRef, label, onStageKeyDown, stageKeyShortcuts, onLoad, onError, density, }: IImageViewerProps): ReactElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ReactElement, type ReactNode, type Ref, type RefObject } from "react";
|
|
1
|
+
import { type KeyboardEvent, type ReactElement, type ReactNode, type Ref, type RefObject } from "react";
|
|
2
2
|
import type { IImageSize, INormalizedImagePoint, ImageZoom } from "./types.js";
|
|
3
3
|
interface IImageViewportProps {
|
|
4
|
-
/** Accessible name of the
|
|
4
|
+
/** Accessible name of the stage; the current zoom percent is appended, as in "Dashboard screenshot, 150%". */
|
|
5
5
|
label: string;
|
|
6
6
|
zoom: ImageZoom;
|
|
7
7
|
/** Natural size of the image box; the stage stays empty until it is known. */
|
|
@@ -14,10 +14,25 @@ interface IImageViewportProps {
|
|
|
14
14
|
fallback?: ReactNode;
|
|
15
15
|
viewportRef?: Ref<HTMLDivElement>;
|
|
16
16
|
onViewportScroll?: (viewport: HTMLDivElement) => void;
|
|
17
|
+
/** Enables zooming by stage keys, Mod+wheel and pinch. */
|
|
18
|
+
onZoomChange?: (zoom: ImageZoom) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Runs before the stage keys while the stage itself has focus; call `preventDefault()` to replace a stage key, such
|
|
21
|
+
* as arrows that move a placed region instead of panning.
|
|
22
|
+
*/
|
|
23
|
+
onStageKeyDown?: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
24
|
+
/** Further `aria-keyshortcuts` the stage handles through `onStageKeyDown`, such as "R". */
|
|
25
|
+
stageKeyShortcuts?: string;
|
|
17
26
|
}
|
|
18
27
|
/**
|
|
19
|
-
* Native scroll viewport that centers an image box. Fit zoom never scrolls;
|
|
20
|
-
*
|
|
28
|
+
* Native scroll viewport that centers an image box. Fit zoom never scrolls; larger zooms scroll on any axis where the
|
|
29
|
+
* image is larger than the viewport. Auto margins center a smaller box without clipping a larger one's start edge.
|
|
30
|
+
*
|
|
31
|
+
* The stage owns its gestures, so a touch never scrolls the page or zooms the browser: a drag with one pointer pans,
|
|
32
|
+
* two fingers pinch-zoom, Mod+wheel (and a trackpad pinch) zooms around the pointer, and while the stage has focus
|
|
33
|
+
* + or = zooms in, − zooms out, 0 fits, 1 shows 100% and arrows pan while the image is larger than the stage. Overlay
|
|
34
|
+
* content that handles a pointer itself, such as a region tool, calls `preventDefault()` on its `pointerdown`, which
|
|
35
|
+
* keeps that pointer from panning while a second finger still pinches.
|
|
21
36
|
*/
|
|
22
|
-
export declare function ImageViewport({ label, zoom, naturalSize, center, children, fallback, viewportRef, onViewportScroll, }: IImageViewportProps): ReactElement;
|
|
37
|
+
export declare function ImageViewport({ label, zoom, naturalSize, center, children, fallback, viewportRef, onViewportScroll, onZoomChange, onStageKeyDown, stageKeyShortcuts, }: IImageViewportProps): ReactElement;
|
|
23
38
|
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { IDensityProps } from "../../density/types.js";
|
|
3
|
+
import type { IImageZoomScales, ImageZoom } from "./types.js";
|
|
4
|
+
export interface IImageZoomControlProps extends IDensityProps {
|
|
5
|
+
zoom: ImageZoom;
|
|
6
|
+
/** The scale `zoom` resolves to; undefined until the image and its viewport are measured. */
|
|
7
|
+
scale: number | undefined;
|
|
8
|
+
/** The fitted scales, which bound zooming out; undefined until measured. */
|
|
9
|
+
scales: IImageZoomScales | undefined;
|
|
10
|
+
onZoomChange: (zoom: ImageZoom) => void;
|
|
11
|
+
/** Accessible name of the control group. Defaults to "Zoom". */
|
|
12
|
+
label?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Zoom bar for ImageViewer: Fit and Fit width as pressed-state toggles, then zoom out, the current percent and zoom in.
|
|
16
|
+
* Zoom in steps up to 400% and stops; zoom out steps down to Fit.
|
|
17
|
+
*/
|
|
18
|
+
export declare function ImageZoomControl({ zoom, scale, scales, onZoomChange, label, density, }: IImageZoomControlProps): ReactElement;
|
|
@@ -13,7 +13,7 @@ export interface IImageZoomToggleProps extends IDensityProps {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Two-state zoom selection for ImageViewer and ImageComparison: Fit to screen or Original size (100%). Each option is a pressed-state toggle with a constant visible
|
|
17
17
|
* name, so assistive technology announces the active zoom without relabelling a single button.
|
|
18
18
|
*/
|
|
19
19
|
export declare function ImageZoomToggle({ zoom, onZoomChange, label, size, orientation, layout, disabled, density, }: IImageZoomToggleProps): ReactElement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IImageSize, IImageStageSize, ImageZoom } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Sizes the rendered image box. `fit` scales the image proportionally to fit both viewport dimensions without
|
|
4
|
-
* upscaling it past its natural size; `
|
|
4
|
+
* upscaling it past its natural size; `fit-width` fills the viewport's width; a number is the scale itself, clamped to
|
|
5
|
+
* the zoom range.
|
|
5
6
|
*/
|
|
6
7
|
export declare function getImageStageSize(natural: IImageSize, viewport: IImageSize, zoom: ImageZoom): IImageStageSize;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { IImageSize, IImageZoomScales, ImageZoom } from "./types.js";
|
|
2
|
+
/** Largest zoom, as a scale: 4 rendered CSS pixels per natural image pixel. */
|
|
3
|
+
export declare const MAX_IMAGE_ZOOM = 4;
|
|
4
|
+
/** Scales that zoom in and zoom out step through, beyond the fitted scales. */
|
|
5
|
+
export declare const IMAGE_ZOOM_STEPS: readonly number[];
|
|
6
|
+
/**
|
|
7
|
+
* The fitted scales of an image inside a viewport. `fit` shows the whole image without upscaling it; `fitWidth` fills
|
|
8
|
+
* the viewport's width, upscaling narrow images up to `MAX_IMAGE_ZOOM`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getImageZoomScales(natural: IImageSize, viewport: IImageSize): IImageZoomScales;
|
|
11
|
+
/** Resolves a zoom to its scale. Numeric zooms clamp between the fitted scale and `MAX_IMAGE_ZOOM`. */
|
|
12
|
+
export declare function resolveImageZoomScale(zoom: ImageZoom, scales: IImageZoomScales): number;
|
|
13
|
+
/** Clamps a free scale, such as one from a pinch or wheel, to the zoom range. */
|
|
14
|
+
export declare function clampImageZoomScale(scale: number, scales: IImageZoomScales): number;
|
|
15
|
+
/** The next larger zoom step after `scale`, stopping at `MAX_IMAGE_ZOOM`. */
|
|
16
|
+
export declare function getNextImageZoom(scale: number): number;
|
|
17
|
+
/** The next smaller zoom step before `scale`; below the fitted scale it is `fit`. */
|
|
18
|
+
export declare function getPreviousImageZoom(scale: number, scales: IImageZoomScales): ImageZoom;
|
|
19
|
+
/**
|
|
20
|
+
* The zoom an image opens at: `fit`, or `fit-width` when the image is taller than the viewport and fitting it would
|
|
21
|
+
* leave more than a fifth of the width empty, so tall captures open readable and scroll vertically. It never opens narrower than `minimumWidth`, the width the image had where it was
|
|
22
|
+
* opened from.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getOpeningImageZoom(natural: IImageSize, viewport: IImageSize, minimumWidth?: number): ImageZoom;
|
|
25
|
+
/** Formats a scale as a whole percent, such as "150%". */
|
|
26
|
+
export declare function formatImageZoom(scale: number): string;
|
|
@@ -2,10 +2,17 @@ export { ImageViewer } from "./ImageViewer.js";
|
|
|
2
2
|
export type { IImageViewerProps } from "./ImageViewer.js";
|
|
3
3
|
export { ImageZoomToggle } from "./ImageZoomToggle.js";
|
|
4
4
|
export type { IImageZoomToggleProps } from "./ImageZoomToggle.js";
|
|
5
|
+
export { ImageZoomControl } from "./ImageZoomControl.js";
|
|
6
|
+
export type { IImageZoomControlProps } from "./ImageZoomControl.js";
|
|
7
|
+
export { ImageRegionSelect } from "./ImageRegionSelect.js";
|
|
8
|
+
export type { IImageRegionSelectProps } from "./ImageRegionSelect.js";
|
|
9
|
+
export { FramedImage } from "./FramedImage.js";
|
|
10
|
+
export type { FramedImageSize, IFramedImageProps } from "./FramedImage.js";
|
|
5
11
|
export { ImageComparison } from "./ImageComparison.js";
|
|
6
12
|
export type { IImageComparisonProps } from "./ImageComparison.js";
|
|
7
13
|
export { computeImageDiff } from "./computeImageDiff.js";
|
|
8
14
|
export { getNormalizedImagePoint } from "./getNormalizedImagePoint.js";
|
|
9
|
-
export
|
|
15
|
+
export { IMAGE_ZOOM_STEPS, MAX_IMAGE_ZOOM, formatImageZoom, getImageZoomScales, getNextImageZoom, getOpeningImageZoom, getPreviousImageZoom, resolveImageZoomScale, } from "./imageZoom.js";
|
|
16
|
+
export type { IImageComparisonSource, IImageDiff, IImageDiffOptions, IImageDiffRegion, IImagePixels, IImageRect, IImageSize, IImageZoomScales, INormalizedImagePoint, ImageComparisonMode, ImageComparisonOrientation, ImageZoom, } from "./types.js";
|
|
10
17
|
export { ImageRegionMarker, ImageRegionMarkerBadge } from "./ImageRegionMarker.js";
|
|
11
|
-
export type { IImageRegionBadgePosition, IImageRegionBox,
|
|
18
|
+
export type { IImageRegionBadgePosition, IImageRegionBox, IImageRegionMarkerProps, IImageRegionMarkerBadgeProps, ImageRegionLength, ImageRegionMarkerVariant, } from "./ImageRegionMarker.js";
|