@wistia/vhs 2.60.1-beta.b79e3edb.831bc76 → 2.60.1-beta.bd464903.5c6d81e
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 +29 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/generateContactAvatarColors.d.ts +14 -0
- package/dist/components/Avatar/generateContactAvatarColors.d.ts.map +1 -0
- package/dist/components/Avatar/index.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/index.cjs +585 -540
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +578 -533
- package/dist/index.mjs.map +4 -4
- package/package.json +29 -28
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { JSX, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export type AvatarInstanceType = 'image' | 'initials';
|
|
3
|
+
export type AvatarProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
|
+
/**
|
|
5
|
+
* TODO: add a jsdoc description for this prop
|
|
6
|
+
*/
|
|
7
|
+
heightAndWidth?: number;
|
|
8
|
+
/**
|
|
9
|
+
* TODO: add a jsdoc description for this prop
|
|
10
|
+
*/
|
|
11
|
+
imageUrl?: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* TODO: add a jsdoc description for this prop
|
|
14
|
+
*/
|
|
15
|
+
initials?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* TODO: add a jsdoc description for this prop
|
|
18
|
+
*/
|
|
19
|
+
name?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* TODO: add a jsdoc description for this prop
|
|
22
|
+
*/
|
|
23
|
+
onImageLoad?: (avatarType: AvatarInstanceType) => void;
|
|
24
|
+
};
|
|
25
|
+
export declare const Avatar: {
|
|
26
|
+
({ imageUrl, heightAndWidth, initials, name, onImageLoad, ...otherProps }: AvatarProps): JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +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;AAuDF,eAAO,MAAM,MAAM;+EAOhB,WAAW,GAAG,GAAG,CAAC,OAAO;;CAsD3B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Given an ID this function will return a semi-random color from AVATAR_COLORS
|
|
3
|
+
* that will persist across page loads if given the same ID value
|
|
4
|
+
*
|
|
5
|
+
* Logic for generating a random number from the ID value adapted from:
|
|
6
|
+
* https://gist.github.com/hyamamoto/fd435505d29ebfa3d9716fd2be8d42f0
|
|
7
|
+
*/
|
|
8
|
+
type UseContactAvatarColorProps = {
|
|
9
|
+
seed: string;
|
|
10
|
+
themeColors: Record<string, string>;
|
|
11
|
+
};
|
|
12
|
+
export declare const generateContactAvatarColors: ({ seed, themeColors, }: UseContactAvatarColorProps) => string[];
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=generateContactAvatarColors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateContactAvatarColors.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/generateContactAvatarColors.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC,CAAC;AAiBF,eAAO,MAAM,2BAA2B,2BAGrC,0BAA0B,KAAG,MAAM,EAOrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|