@mindly/ui-components 5.91.0 → 5.91.1

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.
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import React from 'react';
2
2
  import { SpecialistReview } from '../../shared';
3
3
  import { WithTranslation } from 'react-i18next';
4
4
  type Props = {
@@ -10,5 +10,8 @@ type Props = {
10
10
  t?: WithTranslation['t'];
11
11
  onLoadMore?(): void;
12
12
  };
13
- declare const ReviewListFeature: FC<Props>;
13
+ export interface ReviewListFeatureRef {
14
+ openModalReviews: () => void;
15
+ }
16
+ declare const ReviewListFeature: React.ForwardRefExoticComponent<Props & React.RefAttributes<ReviewListFeatureRef>>;
14
17
  export default ReviewListFeature;
@@ -15,6 +15,7 @@ export type SpecialistShortInfoItemFeatureProps = {
15
15
  rating?: number;
16
16
  isSpecialistUnAvailable?: boolean;
17
17
  isAuth?: boolean;
18
+ onClickReview?(): void;
18
19
  };
19
20
  declare const SpecialistShortInfoItemFeature: FC<SpecialistShortInfoItemFeatureProps>;
20
21
  export default SpecialistShortInfoItemFeature;
@@ -7,6 +7,7 @@ export type AvatarProps = {
7
7
  src?: string;
8
8
  alt?: string;
9
9
  showSkeleton?: boolean;
10
+ onClick?(): void;
10
11
  };
11
12
  declare const _default: React.NamedExoticComponent<AvatarProps>;
12
13
  export default _default;
@@ -9,7 +9,11 @@ export type VideoProps = {
9
9
  onMuteToggle?: () => void;
10
10
  onPlay?(src: string): void;
11
11
  };
12
+ export type VideoMethods = {
13
+ play(): void;
14
+ };
15
+ export type VideoRef = HTMLVideoElement | VideoMethods;
12
16
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<VideoProps & {
13
17
  children?: React.ReactNode;
14
- } & React.RefAttributes<HTMLVideoElement>>>;
18
+ } & React.RefAttributes<VideoRef>>>;
15
19
  export default _default;
package/dist/index.d.ts CHANGED
@@ -1503,6 +1503,7 @@ type AvatarProps = {
1503
1503
  src?: string;
1504
1504
  alt?: string;
1505
1505
  showSkeleton?: boolean;
1506
+ onClick?(): void;
1506
1507
  };
1507
1508
  declare const _default$G: React__default.NamedExoticComponent<AvatarProps>;
1508
1509
 
@@ -2244,9 +2245,13 @@ type VideoProps = {
2244
2245
  onMuteToggle?: () => void;
2245
2246
  onPlay?(src: string): void;
2246
2247
  };
2248
+ type VideoMethods = {
2249
+ play(): void;
2250
+ };
2251
+ type VideoRef = HTMLVideoElement | VideoMethods;
2247
2252
  declare const _default$t: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<VideoProps & {
2248
2253
  children?: React__default.ReactNode;
2249
- } & React__default.RefAttributes<HTMLVideoElement>>>;
2254
+ } & React__default.RefAttributes<VideoRef>>>;
2250
2255
 
2251
2256
  type UlLiProps = {
2252
2257
  list: string[];
@@ -2925,6 +2930,7 @@ type SpecialistShortInfoItemFeatureProps = {
2925
2930
  rating?: number;
2926
2931
  isSpecialistUnAvailable?: boolean;
2927
2932
  isAuth?: boolean;
2933
+ onClickReview?(): void;
2928
2934
  };
2929
2935
  declare const SpecialistShortInfoItemFeature: FC<SpecialistShortInfoItemFeatureProps>;
2930
2936
 
@@ -3266,7 +3272,10 @@ type Props$1 = {
3266
3272
  t?: WithTranslation['t'];
3267
3273
  onLoadMore?(): void;
3268
3274
  };
3269
- declare const ReviewListFeature: FC<Props$1>;
3275
+ interface ReviewListFeatureRef {
3276
+ openModalReviews: () => void;
3277
+ }
3278
+ declare const ReviewListFeature: React__default.ForwardRefExoticComponent<Props$1 & React__default.RefAttributes<ReviewListFeatureRef>>;
3270
3279
 
3271
3280
  type Props = {
3272
3281
  list: SpecialistEducation[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "5.91.0",
3
+ "version": "5.91.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",