@patternfly/chatbot 2.2.0-prerelease.25 → 2.2.0-prerelease.26
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/MessageBar/MessageBar.d.ts +5 -1
- package/dist/cjs/MessageBar/MicrophoneButton.d.ts +1 -1
- package/dist/esm/MessageBar/MessageBar.d.ts +5 -1
- package/dist/esm/MessageBar/MicrophoneButton.d.ts +1 -1
- package/package.json +1 -1
- package/src/MessageBar/MessageBar.tsx +10 -4
- package/src/MessageBar/MicrophoneButton.tsx +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { ButtonProps, DropEvent, TextAreaProps } from '@patternfly/react-core';
|
2
|
+
import { ButtonProps, DropEvent, TextAreaProps, TooltipProps } from '@patternfly/react-core';
|
3
3
|
import { ChatbotDisplayMode } from '../Chatbot';
|
4
4
|
export interface MessageBarWithAttachMenuProps {
|
5
5
|
/** Flag to enable whether attach menu is open */
|
@@ -48,14 +48,17 @@ export interface MessageBarProps extends TextAreaProps {
|
|
48
48
|
tooltipContent?: string;
|
49
49
|
props?: ButtonProps;
|
50
50
|
inputTestId?: string;
|
51
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
51
52
|
};
|
52
53
|
stop?: {
|
53
54
|
tooltipContent?: string;
|
54
55
|
props?: ButtonProps;
|
56
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
55
57
|
};
|
56
58
|
send?: {
|
57
59
|
tooltipContent?: string;
|
58
60
|
props?: ButtonProps;
|
61
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
59
62
|
};
|
60
63
|
microphone?: {
|
61
64
|
tooltipContent?: {
|
@@ -64,6 +67,7 @@ export interface MessageBarProps extends TextAreaProps {
|
|
64
67
|
};
|
65
68
|
language?: string;
|
66
69
|
props?: ButtonProps;
|
70
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
67
71
|
};
|
68
72
|
};
|
69
73
|
/** A callback for when the text area value changes. */
|
@@ -10,7 +10,7 @@ export interface MicrophoneButtonProps extends ButtonProps {
|
|
10
10
|
/** Callback to update the message value once speech recognition is complete */
|
11
11
|
onSpeechRecognition: React.Dispatch<React.SetStateAction<string>>;
|
12
12
|
/** Props to control the PF Tooltip component */
|
13
|
-
tooltipProps?: TooltipProps
|
13
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
14
14
|
/** English text "Use microphone" and "Stop listening" used in the tooltip */
|
15
15
|
tooltipContent?: {
|
16
16
|
active?: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { ButtonProps, DropEvent, TextAreaProps } from '@patternfly/react-core';
|
2
|
+
import { ButtonProps, DropEvent, TextAreaProps, TooltipProps } from '@patternfly/react-core';
|
3
3
|
import { ChatbotDisplayMode } from '../Chatbot';
|
4
4
|
export interface MessageBarWithAttachMenuProps {
|
5
5
|
/** Flag to enable whether attach menu is open */
|
@@ -48,14 +48,17 @@ export interface MessageBarProps extends TextAreaProps {
|
|
48
48
|
tooltipContent?: string;
|
49
49
|
props?: ButtonProps;
|
50
50
|
inputTestId?: string;
|
51
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
51
52
|
};
|
52
53
|
stop?: {
|
53
54
|
tooltipContent?: string;
|
54
55
|
props?: ButtonProps;
|
56
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
55
57
|
};
|
56
58
|
send?: {
|
57
59
|
tooltipContent?: string;
|
58
60
|
props?: ButtonProps;
|
61
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
59
62
|
};
|
60
63
|
microphone?: {
|
61
64
|
tooltipContent?: {
|
@@ -64,6 +67,7 @@ export interface MessageBarProps extends TextAreaProps {
|
|
64
67
|
};
|
65
68
|
language?: string;
|
66
69
|
props?: ButtonProps;
|
70
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
67
71
|
};
|
68
72
|
};
|
69
73
|
/** A callback for when the text area value changes. */
|
@@ -10,7 +10,7 @@ export interface MicrophoneButtonProps extends ButtonProps {
|
|
10
10
|
/** Callback to update the message value once speech recognition is complete */
|
11
11
|
onSpeechRecognition: React.Dispatch<React.SetStateAction<string>>;
|
12
12
|
/** Props to control the PF Tooltip component */
|
13
|
-
tooltipProps?: TooltipProps
|
13
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
14
14
|
/** English text "Use microphone" and "Stop listening" used in the tooltip */
|
15
15
|
tooltipContent?: {
|
16
16
|
active?: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@patternfly/chatbot",
|
3
|
-
"version": "2.2.0-prerelease.
|
3
|
+
"version": "2.2.0-prerelease.26",
|
4
4
|
"description": "This library provides React components based on PatternFly 6 that can be used to build chatbots.",
|
5
5
|
"main": "dist/cjs/index.js",
|
6
6
|
"module": "dist/esm/index.js",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { ButtonProps, DropEvent, TextArea, TextAreaProps } from '@patternfly/react-core';
|
2
|
+
import { ButtonProps, DropEvent, TextArea, TextAreaProps, TooltipProps } from '@patternfly/react-core';
|
3
3
|
|
4
4
|
// Import Chatbot components
|
5
5
|
import SendButton from './SendButton';
|
@@ -53,13 +53,19 @@ export interface MessageBarProps extends TextAreaProps {
|
|
53
53
|
isSendButtonDisabled?: boolean;
|
54
54
|
/** Prop to allow passage of additional props to buttons */
|
55
55
|
buttonProps?: {
|
56
|
-
attach?: {
|
57
|
-
|
58
|
-
|
56
|
+
attach?: {
|
57
|
+
tooltipContent?: string;
|
58
|
+
props?: ButtonProps;
|
59
|
+
inputTestId?: string;
|
60
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
61
|
+
};
|
62
|
+
stop?: { tooltipContent?: string; props?: ButtonProps; tooltipProps?: Omit<TooltipProps, 'content'> };
|
63
|
+
send?: { tooltipContent?: string; props?: ButtonProps; tooltipProps?: Omit<TooltipProps, 'content'> };
|
59
64
|
microphone?: {
|
60
65
|
tooltipContent?: { active?: string; inactive?: string };
|
61
66
|
language?: string;
|
62
67
|
props?: ButtonProps;
|
68
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
63
69
|
};
|
64
70
|
};
|
65
71
|
/** A callback for when the text area value changes. */
|
@@ -19,7 +19,7 @@ export interface MicrophoneButtonProps extends ButtonProps {
|
|
19
19
|
/** Callback to update the message value once speech recognition is complete */
|
20
20
|
onSpeechRecognition: React.Dispatch<React.SetStateAction<string>>;
|
21
21
|
/** Props to control the PF Tooltip component */
|
22
|
-
tooltipProps?: TooltipProps
|
22
|
+
tooltipProps?: Omit<TooltipProps, 'content'>;
|
23
23
|
/** English text "Use microphone" and "Stop listening" used in the tooltip */
|
24
24
|
tooltipContent?: { active?: string; inactive?: string };
|
25
25
|
/** Locale code for language speech recognition is conducted in. This should be in the format 'en-US', a.k.a. the ISO 639-1 code, a dash, and the ISO_3166-1 code. */
|