@mindly/ui-components 7.4.0 → 7.4.2

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,6 +1,6 @@
1
1
  import React from 'react';
2
- import { SpecialistReview } from '../../shared';
3
2
  import { WithTranslation } from 'react-i18next';
3
+ import { SpecialistReview } from '../../shared';
4
4
  type Props = {
5
5
  className?: string;
6
6
  list?: SpecialistReview[];
@@ -11,9 +11,13 @@ type Props = {
11
11
  onLoadMore?(): void;
12
12
  presentingElement?: HTMLElement;
13
13
  onEditSpecialistReview?: (review: Pick<SpecialistReview, 'id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
14
+ onCreateSpecialistReview?: (review: Pick<SpecialistReview, 'client_id' | 'specialist_id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
14
15
  specialistName: string;
15
16
  specialistAvatar: string;
17
+ specialistId?: string;
18
+ clientId?: string;
16
19
  onMoreClick?(): void;
20
+ canLeaveReview?: boolean;
17
21
  };
18
22
  export interface ReviewListFeatureRef {
19
23
  openModalReviews: () => void;
@@ -1,9 +1,11 @@
1
+ /// <reference types="react" />
1
2
  import { WithTranslation } from 'react-i18next';
2
3
  import { TypographyProps } from '../../shared/ui/Typography/types';
3
4
  export interface Props extends Omit<TypographyProps, 'children'> {
4
5
  className?: string;
5
6
  text: string;
6
7
  title?: string;
8
+ titleIcon?: React.ReactNode;
7
9
  countLines?: number;
8
10
  expandType?: 'inline' | 'modal';
9
11
  classNameTitle?: string;
@@ -13,13 +13,15 @@ export type SpecialistDetailWithTabsWidgetProps = {
13
13
  onLoadMoreReviews?(): void;
14
14
  currentUser?: UserType;
15
15
  presentingElement?: HTMLElement;
16
- onEditSpecialistReview?: (review: Pick<SpecialistReview, 'id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
17
16
  areasOfWorkByClientProblem: {
18
17
  names: string[];
19
18
  label: string;
20
19
  };
21
20
  isLoadingAreasOfWorkByClientProblem?: boolean;
22
21
  videoDisplayVariant?: 'default' | 'without_video_cover' | 'without_video';
22
+ canLeaveReview?: boolean;
23
+ onEditSpecialistReview?: (review: Pick<SpecialistReview, 'id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
24
+ onCreateSpecialistReview?: (review: Pick<SpecialistReview, 'client_id' | 'specialist_id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
23
25
  events: {
24
26
  onOpenSuperSpecialistArticle?(): void;
25
27
  onOpenNewSpecialistArticle?(): void;