impact-chatbot 2.0.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/README.md +321 -0
- package/dist/components/ChatFooter.d.ts +55 -0
- package/dist/components/ChatInput.d.ts +27 -0
- package/dist/components/ChatLayout.d.ts +44 -0
- package/dist/components/ChatPlaceholder.d.ts +3 -0
- package/dist/components/HighlightedRenderer.d.ts +14 -0
- package/dist/components/LinkRenderer.d.ts +4 -0
- package/dist/components/LoadingOverlay.d.ts +2 -0
- package/dist/components/ModuleSelection.d.ts +28 -0
- package/dist/components/RedirectLink.d.ts +5 -0
- package/dist/components/SavedChat.d.ts +2 -0
- package/dist/components/SelectedModule.d.ts +7 -0
- package/dist/components/TextRenderer.d.ts +7 -0
- package/dist/components/chatbot-input/components/FilterValueInput.d.ts +15 -0
- package/dist/components/chatbot-input/hooks/useMentionState.d.ts +33 -0
- package/dist/components/chatbot-input/index.d.ts +3 -0
- package/dist/components/chatbot-input/index_new.d.ts +3 -0
- package/dist/components/chatbot-input/index_old_backup.d.ts +3 -0
- package/dist/components/chatbot-input/utils/apiHelpers.d.ts +50 -0
- package/dist/components/chatbot-input/utils/domHelpers.d.ts +82 -0
- package/dist/components/chatbot-input/utils/mentionHelpers.d.ts +48 -0
- package/dist/components/memory-modal/components/Memories.d.ts +2 -0
- package/dist/components/memory-modal/index.d.ts +2 -0
- package/dist/components/memory-modal/service.d.ts +3 -0
- package/dist/components/memory-modal/styling.d.ts +1 -0
- package/dist/components/message-template/components/message-actions/LikeDislikeActions.d.ts +7 -0
- package/dist/components/message-template/components/message-content/ButtonContent.d.ts +4 -0
- package/dist/components/message-template/components/message-content/CheckboxContent.d.ts +4 -0
- package/dist/components/message-template/components/message-content/ChipsContent.d.ts +5 -0
- package/dist/components/message-template/components/message-content/CombinedContent.d.ts +5 -0
- package/dist/components/message-template/components/message-content/DatePickerContent.d.ts +4 -0
- package/dist/components/message-template/components/message-content/GraphContent.d.ts +4 -0
- package/dist/components/message-template/components/message-content/InputContent.d.ts +4 -0
- package/dist/components/message-template/components/message-content/QuestionsContent.d.ts +5 -0
- package/dist/components/message-template/components/message-content/RadioContent.d.ts +4 -0
- package/dist/components/message-template/components/message-content/SelectContent.d.ts +4 -0
- package/dist/components/message-template/components/message-content/SelectableChips.d.ts +7 -0
- package/dist/components/message-template/components/message-content/SliderContent.d.ts +4 -0
- package/dist/components/message-template/components/message-content/TableContent.d.ts +4 -0
- package/dist/components/message-template/components/message-content/TextContent.d.ts +5 -0
- package/dist/components/message-template/components/message-content/tabular-content/components/AgentResponse.d.ts +4 -0
- package/dist/components/message-template/components/message-content/tabular-content/components/Steps.d.ts +4 -0
- package/dist/components/message-template/components/message-content/tabular-content/index.d.ts +6 -0
- package/dist/components/message-template/components/message-types/BotMessage.d.ts +7 -0
- package/dist/components/message-template/components/message-types/LoaderMessage.d.ts +4 -0
- package/dist/components/message-template/components/message-types/UserMessage.d.ts +4 -0
- package/dist/components/message-template/components/message-types/streamed-content/AxiosEventSource.d.ts +17 -0
- package/dist/components/message-template/components/message-types/streamed-content/StreamedContent.d.ts +16 -0
- package/dist/components/message-template/components/message-types/streamed-content/ThinkinHeaderInfo.d.ts +2 -0
- package/dist/components/message-template/components/message-types/streamed-content/ThinkingIndicator.d.ts +9 -0
- package/dist/components/message-template/components/message-types/streamed-content/steps-response-tab/StepsResponseTab.d.ts +2 -0
- package/dist/components/message-template/components/message-types/streamed-content/steps-response-tab/components/AgentResponse.d.ts +2 -0
- package/dist/components/message-template/components/message-types/streamed-content/steps-response-tab/components/Steps.d.ts +12 -0
- package/dist/components/message-template/components/message-types/streamed-content/styling.d.ts +1 -0
- package/dist/components/message-template/index.d.ts +2 -0
- package/dist/components/message-template/reference.d.ts +2 -0
- package/dist/components/message-template/utils.d.ts +4 -0
- package/dist/components/upload-modal/index.d.ts +2 -0
- package/dist/constants.d.ts +17 -0
- package/dist/core/constants/index.d.ts +5 -0
- package/dist/core/styles/colours.d.ts +213 -0
- package/dist/core/styles/globalStyles.d.ts +2 -0
- package/dist/core/utils/functions.d.ts +7 -0
- package/dist/core/utils/replaceSpecialCharacter.d.ts +1 -0
- package/dist/hooks/useAgentFlow.d.ts +5 -0
- package/dist/hooks/useBotConfiguration.d.ts +5 -0
- package/dist/hooks/useChatFlow.d.ts +16 -0
- package/dist/hooks/useChatSession.d.ts +8 -0
- package/dist/hooks/useChatState.d.ts +134 -0
- package/dist/hooks/useConversationManagement.d.ts +10 -0
- package/dist/hooks/useDragAndDrop.d.ts +6 -0
- package/dist/impact-ui-components/ConfirmationDialog/index.d.ts +24 -0
- package/dist/index.cjs.css +360 -0
- package/dist/index.cjs.js +9950 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.css +360 -0
- package/dist/index.esm.js +9928 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/services/chatbot-services.d.ts +14 -0
- package/dist/services/conversation-service.d.ts +6 -0
- package/dist/styling.d.ts +2 -0
- package/dist/temp.d.ts +65 -0
- package/dist/utils/coreUtils.d.ts +25 -0
- package/dist/utlis.d.ts +56 -0
- package/package.json +68 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get plain text content from contenteditable element
|
|
3
|
+
* @param {HTMLElement} editorRef - Editor element
|
|
4
|
+
* @returns {string} Plain text content
|
|
5
|
+
*/
|
|
6
|
+
export declare const getTextContent: (editorRef: any) => any;
|
|
7
|
+
/**
|
|
8
|
+
* Get cursor position in contenteditable element
|
|
9
|
+
* @param {HTMLElement} editorRef - Editor element
|
|
10
|
+
* @returns {number} Cursor position as character offset
|
|
11
|
+
*/
|
|
12
|
+
export declare const getCursorPosition: (editorRef: any) => number;
|
|
13
|
+
/**
|
|
14
|
+
* Set cursor position in contenteditable element
|
|
15
|
+
* @param {HTMLElement} editorRef - Editor element
|
|
16
|
+
* @param {number} pos - Position to set cursor
|
|
17
|
+
*/
|
|
18
|
+
export declare const setCursorPosition: (editorRef: any, pos: any) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Find text node and offset for a given position
|
|
21
|
+
* @param {HTMLElement} editorRef - Editor element
|
|
22
|
+
* @param {number} position - Character position
|
|
23
|
+
* @returns {Object} { node, offset }
|
|
24
|
+
*/
|
|
25
|
+
export declare const findTextNodeAtPosition: (editorRef: any, position: any) => {
|
|
26
|
+
node: any;
|
|
27
|
+
offset: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Create a mention span element
|
|
31
|
+
* @param {string} text - Mention text to display
|
|
32
|
+
* @param {string} filterName - Filter name
|
|
33
|
+
* @param {Array} values - Selected values
|
|
34
|
+
* @param {string} groupId - Unique group ID
|
|
35
|
+
* @param {boolean} isStage1 - Whether this is stage 1 (filter only) or stage 2 (with values)
|
|
36
|
+
* @returns {HTMLSpanElement} Mention span element
|
|
37
|
+
*/
|
|
38
|
+
export declare const createMentionSpan: (text: any, filterName: any, values: any, groupId: any, isStage1?: boolean) => HTMLSpanElement;
|
|
39
|
+
/**
|
|
40
|
+
* Create +N count badge
|
|
41
|
+
* @param {number} count - Hidden count
|
|
42
|
+
* @param {Array} hiddenValues - Array of hidden value labels
|
|
43
|
+
* @param {string} groupId - Unique group ID
|
|
44
|
+
* @returns {HTMLSpanElement} Count badge element
|
|
45
|
+
*/
|
|
46
|
+
export declare const createCountBadge: (count: any, hiddenValues: any, groupId: any) => HTMLSpanElement;
|
|
47
|
+
/**
|
|
48
|
+
* Delete text range in contenteditable
|
|
49
|
+
* @param {Object} textNodeInfo - { node, offset }
|
|
50
|
+
* @param {number} length - Length of text to delete
|
|
51
|
+
*/
|
|
52
|
+
export declare const deleteTextRange: (textNodeInfo: any, length: any) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Insert element at position and set cursor after it
|
|
55
|
+
* @param {HTMLElement} element - Element to insert
|
|
56
|
+
* @param {Object} textNodeInfo - { node, offset }
|
|
57
|
+
* @param {HTMLElement} editorRef - Editor element
|
|
58
|
+
*/
|
|
59
|
+
export declare const insertElementAtPosition: (element: any, textNodeInfo: any, editorRef: any) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Get all mention elements from editor
|
|
62
|
+
* @param {HTMLElement} editorRef - Editor element
|
|
63
|
+
* @returns {Array} Array of mention objects
|
|
64
|
+
*/
|
|
65
|
+
export declare const getAllMentions: (editorRef: any) => {
|
|
66
|
+
element: unknown;
|
|
67
|
+
groupId: any;
|
|
68
|
+
filterName: any;
|
|
69
|
+
stage: any;
|
|
70
|
+
values: any;
|
|
71
|
+
text: any;
|
|
72
|
+
}[];
|
|
73
|
+
/**
|
|
74
|
+
* Remove mention elements by group ID
|
|
75
|
+
* @param {HTMLElement} editorRef - Editor element
|
|
76
|
+
* @param {string} groupId - Group ID to remove
|
|
77
|
+
*/
|
|
78
|
+
export declare const removeMentionByGroupId: (editorRef: any, groupId: any) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Clean up all tooltips
|
|
81
|
+
*/
|
|
82
|
+
export declare const cleanupTooltips: () => void;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse mention text to extract filter and values
|
|
3
|
+
* @param {string} mentionText - Text like "@Brand::Value1,Value2"
|
|
4
|
+
* @returns {Object} { filterName, values }
|
|
5
|
+
*/
|
|
6
|
+
export declare const parseMentionText: (mentionText: any) => {
|
|
7
|
+
filterName: any;
|
|
8
|
+
values: any;
|
|
9
|
+
isComplete: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Format mention for display in editor
|
|
13
|
+
* @param {string} filterName - Name of the filter
|
|
14
|
+
* @param {Array} values - Selected values
|
|
15
|
+
* @param {number} maxVisible - Maximum visible values before +N
|
|
16
|
+
* @returns {string} Formatted mention text like "@Brand::Value1,Value2,+3"
|
|
17
|
+
*/
|
|
18
|
+
export declare const formatMentionDisplay: (filterName: any, values: any, maxVisible?: number) => string;
|
|
19
|
+
/**
|
|
20
|
+
* Format mention for sending (remove @ and ::, keep comma-separated values)
|
|
21
|
+
* @param {string} filterName - Name of the filter
|
|
22
|
+
* @param {Array} values - Selected values
|
|
23
|
+
* @returns {string} Formatted text like "Brand: Value1, Value2, Value3"
|
|
24
|
+
*/
|
|
25
|
+
export declare const formatMentionForSending: (filterName: any, values: any) => any;
|
|
26
|
+
/**
|
|
27
|
+
* Extract all complete mentions from text
|
|
28
|
+
* @param {string} text - Full text content
|
|
29
|
+
* @returns {Array} Array of mention objects
|
|
30
|
+
*/
|
|
31
|
+
export declare const extractMentionsFromText: (text: any) => any;
|
|
32
|
+
/**
|
|
33
|
+
* Check if mention is at stage 1 (filter selected, waiting for values)
|
|
34
|
+
* @param {string} mentionText - Mention text
|
|
35
|
+
* @returns {boolean}
|
|
36
|
+
*/
|
|
37
|
+
export declare const isMentionAwaitingValues: (mentionText: any) => any;
|
|
38
|
+
/**
|
|
39
|
+
* Generate unique group ID for mention
|
|
40
|
+
* @returns {string} Unique ID
|
|
41
|
+
*/
|
|
42
|
+
export declare const generateMentionGroupId: () => string;
|
|
43
|
+
/**
|
|
44
|
+
* Remove duplicates from array of options by value
|
|
45
|
+
* @param {Array} options - Array of {label, value} objects
|
|
46
|
+
* @returns {Array} Deduplicated array
|
|
47
|
+
*/
|
|
48
|
+
export declare const deduplicateOptions: (options: any) => any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStyles: any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Processes a Server-Sent Events (SSE) message and converts it to a MessageEvent
|
|
3
|
+
* @param {string} message - The raw SSE message to process
|
|
4
|
+
* @param {React.MutableRefObject} messageToStoreRef - Reference to store the processed message
|
|
5
|
+
* @returns {MessageEvent} A new MessageEvent containing the processed data
|
|
6
|
+
*/
|
|
7
|
+
export declare const sseevent: (message: any, messageToStoreRef: any) => MessageEvent<any>;
|
|
8
|
+
/**
|
|
9
|
+
* Creates an EventTarget-based SSE client using Axios for streaming responses
|
|
10
|
+
* This implementation provides a custom EventSource-like functionality using Axios
|
|
11
|
+
*
|
|
12
|
+
* @param {string} url - The endpoint URL to connect to
|
|
13
|
+
* @param {Object} opts - Configuration options for the request
|
|
14
|
+
* @param {React.MutableRefObject} messageToStoreRef - Reference to store streaming messages
|
|
15
|
+
* @returns {EventTarget} An EventTarget instance with custom SSE handling
|
|
16
|
+
*/
|
|
17
|
+
export declare const AxiosSource: (url: any, opts: any, messageToStoreRef: any) => EventTarget;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StreamedContent Component
|
|
3
|
+
* Handles real-time streaming of chat messages with a typing-like effect
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} botData - Contains conversation data and utility objects
|
|
6
|
+
* @param {Object} botData.utilityObject - Contains refs and IDs for chat management
|
|
7
|
+
* @param {string} botData.utilityObject.activeConversationId - Current conversation ID
|
|
8
|
+
* @param {string} botData.utilityObject.currentMode - Current chat mode
|
|
9
|
+
* @param {React.RefObject} botData.utilityObject.chatDataRef - Ref to chat data
|
|
10
|
+
* @param {React.RefObject} botData.utilityObject.chatBodyRef - Ref to chat body element
|
|
11
|
+
* @param {Function} botData.utilityObject.setChatDataState - Function to update chat data state
|
|
12
|
+
*/
|
|
13
|
+
declare const StreamedContent: ({ botData }: {
|
|
14
|
+
botData: any;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default StreamedContent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ThinkingIndicator Component
|
|
3
|
+
* Displays "Planning next moves" indicator while AI is thinking
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} props - Component props
|
|
6
|
+
* @param {string} props.thinkingContent - Current thinking content being streamed
|
|
7
|
+
*/
|
|
8
|
+
declare const ThinkingIndicator: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default ThinkingIndicator;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const Steps: ({ steps, setSteps, done, setTabValue, setDone, finalStepDone, setFinalStepDone, stepChange, currentMode, }: {
|
|
2
|
+
steps: any;
|
|
3
|
+
setSteps: any;
|
|
4
|
+
done: any;
|
|
5
|
+
setTabValue: any;
|
|
6
|
+
setDone: any;
|
|
7
|
+
finalStepDone: any;
|
|
8
|
+
setFinalStepDone: any;
|
|
9
|
+
stepChange: any;
|
|
10
|
+
currentMode: any;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default Steps;
|
package/dist/components/message-template/components/message-types/streamed-content/styling.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStyles: any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const SPECIAL_CHARACTER_MAPPING: Record<string, string>;
|
|
2
|
+
export declare const navigationOptions: {
|
|
3
|
+
link: string;
|
|
4
|
+
screen_name: string;
|
|
5
|
+
flow_type: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const insightsOptions: {
|
|
8
|
+
link: string;
|
|
9
|
+
screen_name: string;
|
|
10
|
+
flow_type: string;
|
|
11
|
+
}[];
|
|
12
|
+
export declare const screenOptions: {
|
|
13
|
+
link: string;
|
|
14
|
+
screen_name: string;
|
|
15
|
+
filterCongfigurationName: string;
|
|
16
|
+
}[];
|
|
17
|
+
export declare const toBoldUnicode: (text: any) => any;
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
export default colours;
|
|
2
|
+
declare namespace colours {
|
|
3
|
+
let fireFly: string;
|
|
4
|
+
let fireFlyLight: string;
|
|
5
|
+
let kashmirBlue: string;
|
|
6
|
+
let shipCove: string;
|
|
7
|
+
let spindle: string;
|
|
8
|
+
let lightGrey: string;
|
|
9
|
+
let ceruleanBlue: string;
|
|
10
|
+
let bubbles: string;
|
|
11
|
+
let royalBlue: string;
|
|
12
|
+
let cornflowerBlue: string;
|
|
13
|
+
let periwinkle: string;
|
|
14
|
+
let zumthor: string;
|
|
15
|
+
let zircon: string;
|
|
16
|
+
let emerald: string;
|
|
17
|
+
let pastelGreen: string;
|
|
18
|
+
let magicMint: string;
|
|
19
|
+
let selectiveYellow: string;
|
|
20
|
+
let dandelion: string;
|
|
21
|
+
let newOrleans: string;
|
|
22
|
+
let jaffa: string;
|
|
23
|
+
let atomicTangerine: string;
|
|
24
|
+
let apriocotPeach: string;
|
|
25
|
+
let froly: string;
|
|
26
|
+
let sweetPink: string;
|
|
27
|
+
let pink: string;
|
|
28
|
+
let java: string;
|
|
29
|
+
let spray: string;
|
|
30
|
+
let charlotte: string;
|
|
31
|
+
let valencia: string;
|
|
32
|
+
let roman: string;
|
|
33
|
+
let frolyLight: string;
|
|
34
|
+
let cornflowerLilac: string;
|
|
35
|
+
let pippin: string;
|
|
36
|
+
let buddhaGold: string;
|
|
37
|
+
let superNova: string;
|
|
38
|
+
let sunglow: string;
|
|
39
|
+
let kournikova: string;
|
|
40
|
+
let picasso: string;
|
|
41
|
+
let varden: string;
|
|
42
|
+
let salem: string;
|
|
43
|
+
let emeraldLight: string;
|
|
44
|
+
let algaeGreen: string;
|
|
45
|
+
let whiteIce: string;
|
|
46
|
+
let white: string;
|
|
47
|
+
let black: string;
|
|
48
|
+
let zirconLight: string;
|
|
49
|
+
let aircraftWhite: string;
|
|
50
|
+
let mirage: string;
|
|
51
|
+
let oxfordBlue: string;
|
|
52
|
+
let blueBayoux: string;
|
|
53
|
+
let slateGray: string;
|
|
54
|
+
let regentGray: string;
|
|
55
|
+
let gullGray: string;
|
|
56
|
+
let cadetBlue: string;
|
|
57
|
+
let botticelli: string;
|
|
58
|
+
let linkWaterLight: string;
|
|
59
|
+
let scorpion: string;
|
|
60
|
+
let doveGray: string;
|
|
61
|
+
let gray: string;
|
|
62
|
+
let lightGray: string;
|
|
63
|
+
let mercury: string;
|
|
64
|
+
let concrete: string;
|
|
65
|
+
let catskillWhiteDark: string;
|
|
66
|
+
let lightslategray: string;
|
|
67
|
+
let silver: string;
|
|
68
|
+
let aliceBlue: string;
|
|
69
|
+
let neutralBorder: string;
|
|
70
|
+
let softLightGrey: string;
|
|
71
|
+
let neutralGrey: string;
|
|
72
|
+
let menuBorder: string;
|
|
73
|
+
let greenVogue: string;
|
|
74
|
+
let endavour: string;
|
|
75
|
+
let cerulean: string;
|
|
76
|
+
let codGray: string;
|
|
77
|
+
let fiord: string;
|
|
78
|
+
let hoki: string;
|
|
79
|
+
let slateGrayLight: string;
|
|
80
|
+
let tiara: string;
|
|
81
|
+
let darkSilverChalice: string;
|
|
82
|
+
let eucalyptus: string;
|
|
83
|
+
let crusta: string;
|
|
84
|
+
let alizarinCrimson: string;
|
|
85
|
+
let trout: string;
|
|
86
|
+
let panache: string;
|
|
87
|
+
let seashellPeach: string;
|
|
88
|
+
let wispPink: string;
|
|
89
|
+
let linkWater: string;
|
|
90
|
+
let lavender: string;
|
|
91
|
+
let catskillWhite: string;
|
|
92
|
+
let selago: string;
|
|
93
|
+
let mystic: string;
|
|
94
|
+
let athensGray: string;
|
|
95
|
+
let princetonOrange: string;
|
|
96
|
+
let navajoWhite: string;
|
|
97
|
+
let alabaster: string;
|
|
98
|
+
let aluminium: string;
|
|
99
|
+
let linkWaterDark: string;
|
|
100
|
+
let gallery: string;
|
|
101
|
+
let darkSilver: string;
|
|
102
|
+
let alto: string;
|
|
103
|
+
let silverChalice: string;
|
|
104
|
+
let athensGrayLight: string;
|
|
105
|
+
let darkerGrayLock: string;
|
|
106
|
+
let poloBlue: string;
|
|
107
|
+
let periwinkleGrey: string;
|
|
108
|
+
let darkGreen: string;
|
|
109
|
+
let darkYellow: string;
|
|
110
|
+
let red: string;
|
|
111
|
+
let skyBlue: string;
|
|
112
|
+
let green: string;
|
|
113
|
+
let darkRed: string;
|
|
114
|
+
let lightRed: string;
|
|
115
|
+
let lightOrange: string;
|
|
116
|
+
let tradewind: string;
|
|
117
|
+
let jordyBlue: string;
|
|
118
|
+
let creamCan: string;
|
|
119
|
+
let ginfizz: string;
|
|
120
|
+
let apricot: string;
|
|
121
|
+
let fuchsiaPink: string;
|
|
122
|
+
let pinkLace: string;
|
|
123
|
+
let yellowGreen: string;
|
|
124
|
+
let mariner: string;
|
|
125
|
+
let deYork: string;
|
|
126
|
+
let danube: string;
|
|
127
|
+
let goldSand: string;
|
|
128
|
+
let neutralText: string;
|
|
129
|
+
let webOrange: string;
|
|
130
|
+
let bleachWhite: string;
|
|
131
|
+
let seaGreen: string;
|
|
132
|
+
let cobaltBlue: string;
|
|
133
|
+
let boulder: string;
|
|
134
|
+
let seagull: string;
|
|
135
|
+
let madison: string;
|
|
136
|
+
let chambray: string;
|
|
137
|
+
let athensGray1: string;
|
|
138
|
+
let linkWater1: string;
|
|
139
|
+
let whiteSmoke: string;
|
|
140
|
+
let textDark: string;
|
|
141
|
+
let brightRoyalBlue: string;
|
|
142
|
+
let forestGreen: string;
|
|
143
|
+
let boxShadow: string;
|
|
144
|
+
let boxShadowCard: string;
|
|
145
|
+
let panelShadow: string;
|
|
146
|
+
let pantone: string;
|
|
147
|
+
let lightMint: string;
|
|
148
|
+
let lightBlue: string;
|
|
149
|
+
let selectedBackground: string;
|
|
150
|
+
let defaultBackground: string;
|
|
151
|
+
let selectedColor: string;
|
|
152
|
+
let defaultColor: string;
|
|
153
|
+
let borderDarkGray: string;
|
|
154
|
+
let backgroundChat: string;
|
|
155
|
+
let darkBlack: string;
|
|
156
|
+
let timeColor: string;
|
|
157
|
+
let appBackground: string;
|
|
158
|
+
let separaterColor: string;
|
|
159
|
+
let lightPurple: string;
|
|
160
|
+
let placeholderGradientOrange: string;
|
|
161
|
+
let placeholderGradientPink: string;
|
|
162
|
+
let greyHelperText: string;
|
|
163
|
+
let boldHeadingBlue: string;
|
|
164
|
+
let cardGradientRed: string;
|
|
165
|
+
let cardGradientPink: string;
|
|
166
|
+
let cardGradientOrange: string;
|
|
167
|
+
let blueHeading: string;
|
|
168
|
+
let neutrals: string;
|
|
169
|
+
let errorRed: string;
|
|
170
|
+
let lighGrey: string;
|
|
171
|
+
let lightGreen: string;
|
|
172
|
+
let lightNeutrals: string;
|
|
173
|
+
let green500: string;
|
|
174
|
+
let lightGreyNew: string;
|
|
175
|
+
let darkGrey: string;
|
|
176
|
+
let icon: string;
|
|
177
|
+
let lighterGrey: string;
|
|
178
|
+
let newBlue: string;
|
|
179
|
+
let chips: string;
|
|
180
|
+
let darkBlue: string;
|
|
181
|
+
let lightPink: string;
|
|
182
|
+
let darkPink: string;
|
|
183
|
+
let disabled: string;
|
|
184
|
+
let surfaceYellow: string;
|
|
185
|
+
let cloudBurst: string;
|
|
186
|
+
let geyser: string;
|
|
187
|
+
let blue_01: string;
|
|
188
|
+
let lightPeach: string;
|
|
189
|
+
let successGreen: string;
|
|
190
|
+
let cornflowerBlueDark: string;
|
|
191
|
+
let titanWhite: string;
|
|
192
|
+
let mediumCarmine: string;
|
|
193
|
+
let hummingBird: string;
|
|
194
|
+
let easternBlue: string;
|
|
195
|
+
let whiteLilac: string;
|
|
196
|
+
let studio: string;
|
|
197
|
+
let provincialPink: string;
|
|
198
|
+
let cinnabar: string;
|
|
199
|
+
let oldLavender: string;
|
|
200
|
+
let eastSide: string;
|
|
201
|
+
let olive: string;
|
|
202
|
+
let doveGrayDark: string;
|
|
203
|
+
let palePurple: string;
|
|
204
|
+
let purple: string;
|
|
205
|
+
let zirconNew: string;
|
|
206
|
+
let perano: string;
|
|
207
|
+
let chablis: string;
|
|
208
|
+
let geraldine: string;
|
|
209
|
+
let panacheNew: string;
|
|
210
|
+
let oceanGreen: string;
|
|
211
|
+
let linen: string;
|
|
212
|
+
let greyishBlue: string;
|
|
213
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export function pxToRem(px: any): string;
|
|
2
|
+
export function getCurrentUserId(): any;
|
|
3
|
+
export function getUserName(): any;
|
|
4
|
+
export function fetchApplicationCode(): string;
|
|
5
|
+
export function fetchBaseUrl(): string;
|
|
6
|
+
export function getFormattedApplicationName(applicationURL: any): "application access management" | "AssortSmart" | "module configurator" | "InventorySmart" | "ADA" | "PlanSmart" | "ADAConfigurator" | "ItemSmart" | "ItemSmart-New" | "SourceSmart" | "PriceSmart Markdown" | "PriceSmart Promo" | "workflow input center";
|
|
7
|
+
export function fetchLegacyAgentScreen(): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function replaceSpecialCharacter(str: any): any;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const useAgentFlow: (dateFormat: any, chatDataRef: any, currentMode: any, setShowChatPlaceholder: any, setLoader: any, baseUrl?: string, setCurrentSessionId?: (params: any) => void, customChatConfig?: any, chatDataInfoRef?: any, utilityObjectData?: {}) => {
|
|
2
|
+
setAgentFlow: (payload: any, input?: string, baseUrlTemp?: string) => Promise<void>;
|
|
3
|
+
prepareDataAndSendToAgent: (data: any, init: boolean, utilityObjectData: any) => void;
|
|
4
|
+
processResponse: (response: any, payload: any, currentModeValue: any, customChatConfig: any, utilsObject: any) => Promise<void>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const useBotConfiguration: (setRefreshLoader: any, setEnableRefreshAction: any, dispatch: any) => {
|
|
2
|
+
refreshAndUpdateUserManual: () => Promise<void>;
|
|
3
|
+
configureBotActions: () => Promise<void>;
|
|
4
|
+
displaySnackMessages: (message: any, variant: any) => void;
|
|
5
|
+
};
|