@hanzo/ui 3.8.27 → 3.8.28
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.
|
@@ -75,6 +75,7 @@ const ImageBlockComponent: React.FC<BlockComponentProps & {
|
|
|
75
75
|
</div>
|
|
76
76
|
)
|
|
77
77
|
}
|
|
78
|
+
// TODO use constraint
|
|
78
79
|
else if (!specified('mobile-no-scale')) {
|
|
79
80
|
if (props?.style?.width === 'auto' && typeof props.style.height === 'number' ) {
|
|
80
81
|
props.style.height = props.style.height *.75
|
package/blocks/def/card-block.ts
CHANGED
package/package.json
CHANGED
package/primitives/image.tsx
CHANGED
|
@@ -67,7 +67,6 @@ const Image: React.FC<{
|
|
|
67
67
|
return (fullWidth) ? (
|
|
68
68
|
<div className='relative flex flex-col items-center justify-center w-full'>
|
|
69
69
|
<NextImage
|
|
70
|
-
data-vaul-no-drag
|
|
71
70
|
src={src}
|
|
72
71
|
alt={alt}
|
|
73
72
|
{...toSpread}
|
|
@@ -80,7 +79,6 @@ const Image: React.FC<{
|
|
|
80
79
|
<NextImage
|
|
81
80
|
src={src}
|
|
82
81
|
alt={alt}
|
|
83
|
-
data-vaul-no-drag
|
|
84
82
|
{...toSpread}
|
|
85
83
|
priority={preload}
|
|
86
84
|
loading={preload ? 'eager' : 'lazy'}
|
|
@@ -12,7 +12,7 @@ const VideoPlayer = React.forwardRef<HTMLVideoElement, VideoProps>(
|
|
|
12
12
|
}, ref) => {
|
|
13
13
|
|
|
14
14
|
return (
|
|
15
|
-
<video ref={ref} {...rest}
|
|
15
|
+
<video ref={ref} {...rest} >
|
|
16
16
|
{sources.map((source, index) => (
|
|
17
17
|
<source key={index} src={source} />
|
|
18
18
|
))}
|
package/types/media-stack-def.ts
CHANGED
|
@@ -18,6 +18,11 @@ interface MediaStackDef {
|
|
|
18
18
|
video?: VideoDef
|
|
19
19
|
animation?: AnimationDef
|
|
20
20
|
mediaTransform?: MediaTransform
|
|
21
|
+
/** prefered order of precedence.
|
|
22
|
+
* If an type is missing, it will not be used.
|
|
23
|
+
* default (inMediaStack component): ['a', 'v', 'i']
|
|
24
|
+
* */
|
|
25
|
+
order?: ('a' | 'v' | 'i')[]
|
|
21
26
|
}
|
|
22
27
|
|
|
23
28
|
export type {
|