@wistia/ui 0.6.43 → 0.6.45-beta.cdb67e81.9dbf4c3

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/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
- import react__default, { ReactNode, LegacyRef, MutableRefObject, RefCallback, Dispatch, SetStateAction, RefObject, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, InputHTMLAttributes, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from 'react';
3
+ import react__default, { ReactNode, LegacyRef, MutableRefObject, RefCallback, Dispatch, SetStateAction, RefObject, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, SyntheticEvent, InputHTMLAttributes, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from 'react';
4
4
  export * from 'use-file-picker/types';
5
5
  export { useFilePicker, useImperativeFilePicker } from 'use-file-picker';
6
6
  export { FileAmountLimitValidator, FileSizeValidator, FileTypeValidator, ImageDimensionsValidator, PersistentFileAmountLimitValidator } from 'use-file-picker/validators';
@@ -124,7 +124,7 @@ declare const useMq: () => MediaQueryBooleans;
124
124
  type MediaQueryLabels = keyof MediaQueryBooleans;
125
125
  declare const useActiveMq: () => MediaQueryLabels[];
126
126
 
127
- declare const colorSchemeOptions: readonly ["inherit", "default", "info", "success", "warning", "error", "blue", "green", "orange", "pink", "purple", "yellow", "vendor-hubspot", "vendor-marketo", "vendor-pardot"];
127
+ declare const colorSchemeOptions: readonly ["default", "inherit", "error", "info", "success", "warning", "blue", "green", "orange", "pink", "purple", "yellow", "vendor-hubspot", "vendor-marketo", "vendor-pardot"];
128
128
  type ColorSchemeTypes = (typeof colorSchemeOptions)[number];
129
129
  type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
130
130
  /**
@@ -510,7 +510,7 @@ type AvatarProps = ComponentPropsWithoutRef<'div'> & {
510
510
  onImageLoad?: (avatarStatus: AvatarStatus) => void;
511
511
  };
512
512
  /**
513
- * An avatar uses a photo, initials or icon to represent an entity
513
+ * An avatar uses a photo or initials to represent an identity.
514
514
  */
515
515
  declare const Avatar: {
516
516
  ({ imageUrl, heightAndWidth, name, size, onImageLoad, ...props }: AvatarProps): JSX.Element;
@@ -1701,9 +1701,17 @@ type ImageProps = ComponentPropsWithoutRef<'img'> & {
1701
1701
  * URL to image file
1702
1702
  */
1703
1703
  src: string;
1704
+ /**
1705
+ * A callback that is invoked after the image has loaded
1706
+ */
1707
+ onLoad?: (event?: SyntheticEvent<HTMLImageElement>) => void;
1708
+ /**
1709
+ * A callback that is invoked after the image has failed to load
1710
+ */
1711
+ onError?: (event?: SyntheticEvent<HTMLImageElement>) => void;
1704
1712
  };
1705
1713
  declare const Image: {
1706
- ({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, ...props }: ImageProps): JSX.Element;
1714
+ ({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, onLoad, onError, ...props }: ImageProps): JSX.Element;
1707
1715
  displayName: string;
1708
1716
  };
1709
1717
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
- import react__default, { ReactNode, LegacyRef, MutableRefObject, RefCallback, Dispatch, SetStateAction, RefObject, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, InputHTMLAttributes, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from 'react';
3
+ import react__default, { ReactNode, LegacyRef, MutableRefObject, RefCallback, Dispatch, SetStateAction, RefObject, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, SyntheticEvent, InputHTMLAttributes, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from 'react';
4
4
  export * from 'use-file-picker/types';
5
5
  export { useFilePicker, useImperativeFilePicker } from 'use-file-picker';
6
6
  export { FileAmountLimitValidator, FileSizeValidator, FileTypeValidator, ImageDimensionsValidator, PersistentFileAmountLimitValidator } from 'use-file-picker/validators';
@@ -124,7 +124,7 @@ declare const useMq: () => MediaQueryBooleans;
124
124
  type MediaQueryLabels = keyof MediaQueryBooleans;
125
125
  declare const useActiveMq: () => MediaQueryLabels[];
126
126
 
127
- declare const colorSchemeOptions: readonly ["inherit", "default", "info", "success", "warning", "error", "blue", "green", "orange", "pink", "purple", "yellow", "vendor-hubspot", "vendor-marketo", "vendor-pardot"];
127
+ declare const colorSchemeOptions: readonly ["default", "inherit", "error", "info", "success", "warning", "blue", "green", "orange", "pink", "purple", "yellow", "vendor-hubspot", "vendor-marketo", "vendor-pardot"];
128
128
  type ColorSchemeTypes = (typeof colorSchemeOptions)[number];
129
129
  type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
130
130
  /**
@@ -510,7 +510,7 @@ type AvatarProps = ComponentPropsWithoutRef<'div'> & {
510
510
  onImageLoad?: (avatarStatus: AvatarStatus) => void;
511
511
  };
512
512
  /**
513
- * An avatar uses a photo, initials or icon to represent an entity
513
+ * An avatar uses a photo or initials to represent an identity.
514
514
  */
515
515
  declare const Avatar: {
516
516
  ({ imageUrl, heightAndWidth, name, size, onImageLoad, ...props }: AvatarProps): JSX.Element;
@@ -1701,9 +1701,17 @@ type ImageProps = ComponentPropsWithoutRef<'img'> & {
1701
1701
  * URL to image file
1702
1702
  */
1703
1703
  src: string;
1704
+ /**
1705
+ * A callback that is invoked after the image has loaded
1706
+ */
1707
+ onLoad?: (event?: SyntheticEvent<HTMLImageElement>) => void;
1708
+ /**
1709
+ * A callback that is invoked after the image has failed to load
1710
+ */
1711
+ onError?: (event?: SyntheticEvent<HTMLImageElement>) => void;
1704
1712
  };
1705
1713
  declare const Image: {
1706
- ({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, ...props }: ImageProps): JSX.Element;
1714
+ ({ src, alt, borderRadius, fill: fillContainer, fit: objFit, loading, position: objPosition, onLoad, onError, ...props }: ImageProps): JSX.Element;
1707
1715
  displayName: string;
1708
1716
  };
1709
1717