@alexgorbatchev/shadcn 0.0.94 → 0.0.96
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-fg1h007n.js → chunk-d2nyvsjc.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-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/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/ImageRegionMarker.d.ts +33 -8
- 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 +638 -171
- 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/ImageRegionMarker.md +19 -3
- package/llms/components/data-display/ImageViewer.md +28 -9
- package/llms/components/data-display/ImageZoomToggle.md +3 -3
- package/llms/components/overlays/Dialog.md +17 -0
- package/llms.txt +5 -4
- package/package.json +1 -1
|
@@ -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 {
|
|
18
|
+
export type { IImageRegionBadgePosition, IImageRegionBox, IImageRegionMarkerProps, IImageRegionMarkerBadgeProps, ImageRegionLength, ImageRegionMarkerVariant, } from "./ImageRegionMarker.js";
|