@mindly/ui-components 8.6.16 → 8.7.0
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/SessionReviewsFeature/ReviewAiSessionFeature/ReviewAiSessionFeature.d.ts +23 -0
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewAiSessionFeature/constants.d.ts +14 -0
- package/dist/cjs/lib2/features/SessionReviewsFeature/ReviewAiSessionFeature/index.d.ts +2 -0
- package/dist/cjs/lib2/features/SessionReviewsFeature/components/TagsList.d.ts +1 -0
- package/dist/cjs/lib2/features/SessionReviewsFeature/index.d.ts +2 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewAiSessionFeature/ReviewAiSessionFeature.d.ts +23 -0
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewAiSessionFeature/constants.d.ts +14 -0
- package/dist/esm/lib2/features/SessionReviewsFeature/ReviewAiSessionFeature/index.d.ts +2 -0
- package/dist/esm/lib2/features/SessionReviewsFeature/components/TagsList.d.ts +1 -0
- package/dist/esm/lib2/features/SessionReviewsFeature/index.d.ts +2 -0
- package/dist/index.d.ts +22 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithTranslation } from 'react-i18next';
|
|
3
|
+
export type ReviewAiSessionFeatureProps = {
|
|
4
|
+
avatar?: string;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
showAudioModeTags?: boolean;
|
|
7
|
+
sparklingStarsIcon: string;
|
|
8
|
+
onModalAppeared?: () => void;
|
|
9
|
+
onStarsClick?: (rate: number) => void;
|
|
10
|
+
onReasonClick?: (rate: number, reasons: string[]) => void;
|
|
11
|
+
onCommentBlur?: (rate: number, reasons: string[], comment: string) => void;
|
|
12
|
+
onContinueClick?: (rate: number, reasons: string[], comment: string) => void;
|
|
13
|
+
onSubmit: (data: {
|
|
14
|
+
rate: number;
|
|
15
|
+
reasons: string[];
|
|
16
|
+
comment?: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
onCloseClick?: () => void;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
t?: WithTranslation['t'];
|
|
21
|
+
};
|
|
22
|
+
declare const ReviewAiSessionFeature: React.FC<ReviewAiSessionFeatureProps>;
|
|
23
|
+
export default ReviewAiSessionFeature;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WithTranslation } from 'react-i18next';
|
|
2
|
+
export type Tag = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
type TagsOptions = {
|
|
7
|
+
t?: WithTranslation['t'];
|
|
8
|
+
showVoiceTags?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const TAGS_LIST_1_2_AI: ({ t, showVoiceTags }?: TagsOptions) => Tag[];
|
|
11
|
+
export declare const TAGS_LIST_3_AI: ({ t, showVoiceTags }?: TagsOptions) => Tag[];
|
|
12
|
+
export declare const TAGS_LIST_4_5_AI: ({ t, showVoiceTags }?: TagsOptions) => Tag[];
|
|
13
|
+
export declare const TAGS_BY_RATING_AI: (t?: WithTranslation["t"], showVoiceTags?: boolean) => Record<number, Tag[]>;
|
|
14
|
+
export {};
|
|
@@ -2,3 +2,5 @@ export { ReviewTrialSessionFeature } from './ReviewTrialSessionFeature';
|
|
|
2
2
|
export { ReviewSubscriptionSessionFeature } from './ReviewSubscriptionSessionFeature';
|
|
3
3
|
export type { ReviewTrialSessionFeatureProps } from './ReviewTrialSessionFeature';
|
|
4
4
|
export type { ReviewSubscriptionSessionFeatureProps } from './ReviewSubscriptionSessionFeature';
|
|
5
|
+
export { ReviewAiSessionFeature } from './ReviewAiSessionFeature';
|
|
6
|
+
export type { ReviewAiSessionFeatureProps } from './ReviewAiSessionFeature';
|