@wistia/vhs 2.60.1-beta.bd464903.5c6d81e → 2.60.1-beta.d11cdb14.a07e7fe
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/components/Avatar/Avatar.d.ts +5 -5
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Thumbnail/Thumbnail.d.ts +1 -1
- package/dist/index.cjs +390 -390
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +409 -409
- package/dist/index.mjs.map +3 -3
- package/package.json +1 -1
|
@@ -2,23 +2,23 @@ import type { JSX, ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
export type AvatarInstanceType = 'image' | 'initials';
|
|
3
3
|
export type AvatarProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* The height and width of the avatar
|
|
6
6
|
*/
|
|
7
7
|
heightAndWidth?: number;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The URL of the image to display
|
|
10
10
|
*/
|
|
11
11
|
imageUrl?: string | null;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Initials to display if no image is provided
|
|
14
14
|
*/
|
|
15
15
|
initials?: string | null;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* A string that will deterministicly set the background color of the avatar
|
|
18
18
|
*/
|
|
19
19
|
name?: string | null;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* A callback that is invoked after the image has loaded or failed to load
|
|
22
22
|
*/
|
|
23
23
|
onImageLoad?: (avatarType: AvatarInstanceType) => void;
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAO3D,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,UAAU,CAAC;AAatD,MAAM,MAAM,WAAW,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC1D;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACxD,CAAC;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAO3D,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,UAAU,CAAC;AAatD,MAAM,MAAM,WAAW,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC1D;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACxD,CAAC;AAgEF,eAAO,MAAM,MAAM;+EAOhB,WAAW,GAAG,GAAG,CAAC,OAAO;;CAiD3B,CAAC"}
|
|
@@ -11,7 +11,7 @@ type IconThumbnailProps = {
|
|
|
11
11
|
*/
|
|
12
12
|
thumbnailUrl?: never;
|
|
13
13
|
/**
|
|
14
|
-
* The type of {@link https://wistia.github.io/vhs/?path=/docs/components-icon--docs
|
|
14
|
+
* The type of {@link https://wistia.github.io/vhs/?path=/docs/components-icon--docs Icon} to use in place of a thumbnail image
|
|
15
15
|
*/
|
|
16
16
|
icon: IconNameType;
|
|
17
17
|
/**
|