@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.
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/lib2/features/ReviewListFeature/ReviewListFeature.d.ts +5 -1
- package/dist/cjs/lib2/features/TextWithClampFeature/types.d.ts +2 -0
- package/dist/cjs/lib2/widgets/SpecialistDetailWithTabsWidget/types.d.ts +3 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/lib2/features/ReviewListFeature/ReviewListFeature.d.ts +5 -1
- package/dist/esm/lib2/features/TextWithClampFeature/types.d.ts +2 -0
- package/dist/esm/lib2/widgets/SpecialistDetailWithTabsWidget/types.d.ts +3 -1
- package/dist/index.d.ts +8 -1
- package/package.json +1 -1
|
@@ -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;
|
package/dist/index.d.ts
CHANGED
|
@@ -3116,6 +3116,7 @@ interface Props$2 extends Omit<TypographyProps, 'children'> {
|
|
|
3116
3116
|
className?: string;
|
|
3117
3117
|
text: string;
|
|
3118
3118
|
title?: string;
|
|
3119
|
+
titleIcon?: React.ReactNode;
|
|
3119
3120
|
countLines?: number;
|
|
3120
3121
|
expandType?: 'inline' | 'modal';
|
|
3121
3122
|
classNameTitle?: string;
|
|
@@ -3139,9 +3140,13 @@ type Props$1 = {
|
|
|
3139
3140
|
onLoadMore?(): void;
|
|
3140
3141
|
presentingElement?: HTMLElement;
|
|
3141
3142
|
onEditSpecialistReview?: (review: Pick<SpecialistReview$1, 'id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
|
|
3143
|
+
onCreateSpecialistReview?: (review: Pick<SpecialistReview$1, 'client_id' | 'specialist_id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
|
|
3142
3144
|
specialistName: string;
|
|
3143
3145
|
specialistAvatar: string;
|
|
3146
|
+
specialistId?: string;
|
|
3147
|
+
clientId?: string;
|
|
3144
3148
|
onMoreClick?(): void;
|
|
3149
|
+
canLeaveReview?: boolean;
|
|
3145
3150
|
};
|
|
3146
3151
|
interface ReviewListFeatureRef {
|
|
3147
3152
|
openModalReviews: () => void;
|
|
@@ -4001,13 +4006,15 @@ type SpecialistDetailWithTabsWidgetProps = {
|
|
|
4001
4006
|
onLoadMoreReviews?(): void;
|
|
4002
4007
|
currentUser?: UserType;
|
|
4003
4008
|
presentingElement?: HTMLElement;
|
|
4004
|
-
onEditSpecialistReview?: (review: Pick<SpecialistReview$1, 'id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
|
|
4005
4009
|
areasOfWorkByClientProblem: {
|
|
4006
4010
|
names: string[];
|
|
4007
4011
|
label: string;
|
|
4008
4012
|
};
|
|
4009
4013
|
isLoadingAreasOfWorkByClientProblem?: boolean;
|
|
4010
4014
|
videoDisplayVariant?: 'default' | 'without_video_cover' | 'without_video';
|
|
4015
|
+
canLeaveReview?: boolean;
|
|
4016
|
+
onEditSpecialistReview?: (review: Pick<SpecialistReview$1, 'id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
|
|
4017
|
+
onCreateSpecialistReview?: (review: Pick<SpecialistReview$1, 'client_id' | 'specialist_id' | 'review_rating' | 'text_of_review'>) => Promise<void>;
|
|
4011
4018
|
events: {
|
|
4012
4019
|
onOpenSuperSpecialistArticle?(): void;
|
|
4013
4020
|
onOpenNewSpecialistArticle?(): void;
|