@deepdesk/deepdesk-sdk 18.2.0 → 18.2.1-beta.1
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/index.cjs.js +8 -8
- package/dist/index.d.mts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.esm.js +8 -8
- package/dist/index.iife.js +25 -25
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
|
4
4
|
import { Middleware, Tuple } from '@reduxjs/toolkit';
|
|
5
5
|
import * as redux from 'redux';
|
|
6
6
|
import { Unsubscribe } from 'redux';
|
|
7
|
+
import * as redux_thunk from 'redux-thunk';
|
|
7
8
|
|
|
8
9
|
declare const styles$s: {
|
|
9
10
|
readonly "content": string;
|
|
@@ -971,6 +972,15 @@ type SendEventArgumentMap = {
|
|
|
971
972
|
'entities found': Event$1<{
|
|
972
973
|
entities: Entity[];
|
|
973
974
|
}>;
|
|
975
|
+
'entity copied': Event$1<{
|
|
976
|
+
entity: Entity;
|
|
977
|
+
type: 'copy';
|
|
978
|
+
}>;
|
|
979
|
+
'suggestion feedback': Event$1<{
|
|
980
|
+
text: string;
|
|
981
|
+
source: string;
|
|
982
|
+
context?: string;
|
|
983
|
+
}>;
|
|
974
984
|
'style suggested': Event$1<{
|
|
975
985
|
keywordMatches: {
|
|
976
986
|
keyword: string;
|
|
@@ -3544,7 +3554,22 @@ declare function waitForElementVisibilityChange(element: HTMLElement, callback:
|
|
|
3544
3554
|
isVisible: boolean;
|
|
3545
3555
|
}) => void, interval?: number): Cancelable;
|
|
3546
3556
|
|
|
3557
|
+
type LogEvent<T extends keyof SendEventArgumentMap, P extends T = T> = {
|
|
3558
|
+
name: T;
|
|
3559
|
+
data: SendEventArgumentMap[P]['data'];
|
|
3560
|
+
};
|
|
3561
|
+
declare function logEvent<T extends keyof SendEventArgumentMap>(event: LogEvent<T>): _reduxjs_toolkit.AsyncThunkAction<void, LogEvent<T, T>, {
|
|
3562
|
+
state?: unknown;
|
|
3563
|
+
dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
|
|
3564
|
+
extra?: unknown;
|
|
3565
|
+
rejectValue?: unknown;
|
|
3566
|
+
serializedErrorType?: unknown;
|
|
3567
|
+
pendingMeta?: unknown;
|
|
3568
|
+
fulfilledMeta?: unknown;
|
|
3569
|
+
rejectedMeta?: unknown;
|
|
3570
|
+
}>;
|
|
3571
|
+
|
|
3547
3572
|
type CSSModule = Record<string, string>;
|
|
3548
3573
|
declare function useStyles<TStyles extends CSSModule>(componentName: string, defaultStyles: TStyles): TStyles;
|
|
3549
3574
|
|
|
3550
|
-
export { type AgentInfo, Card, ContentEditableInput, type Conversation, type ConversationMessage, DeepdeskAPI, DeepdeskSDK, HTTPClient, InputMediator, type InputOverlayCustomStyles, InputType, KeyboardHint, Label, Locale, type Logger, type MountOptions, type PinnedMessage, type PlatformConfig, type RootState, Section, SectionList, type SelectionRange, Sources, Suggestion, type SuggestionEventMetrics, SuggestionList, type SuggestionMetrics, TextAreaInput, type TextSuggestion, ToggleButton, type UrlSuggestion, type VisitorInfo, type WidgetCustomStyles, type WidgetOptions, attachFile, authenticateWithKey, createFullRange, createOverlayContainer, createRangeFromOffsets, escapeHTML, formatTextMarkup, getRangeOffsets, getRangeText, insertCKEditor, isHTML, isSupportedInputElement, updateContentEditable, updateTextArea, useClickOutsideRoot, useStyles, waitForElementVisibilityChange };
|
|
3575
|
+
export { type AgentInfo, Card, ContentEditableInput, type Conversation, type ConversationMessage, DeepdeskAPI, DeepdeskSDK, HTTPClient, InputMediator, type InputOverlayCustomStyles, InputType, KeyboardHint, Label, Locale, type Logger, type MountOptions, type PinnedMessage, type PlatformConfig, type RootState, Section, SectionList, type SelectionRange, Sources, Suggestion, type SuggestionEventMetrics, SuggestionList, type SuggestionMetrics, TextAreaInput, type TextSuggestion, ToggleButton, type UrlSuggestion, type VisitorInfo, type WidgetCustomStyles, type WidgetOptions, attachFile, authenticateWithKey, createFullRange, createOverlayContainer, createRangeFromOffsets, escapeHTML, formatTextMarkup, getRangeOffsets, getRangeText, insertCKEditor, isHTML, isSupportedInputElement, logEvent, updateContentEditable, updateTextArea, useClickOutsideRoot, useStyles, waitForElementVisibilityChange };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
|
4
4
|
import { Middleware, Tuple } from '@reduxjs/toolkit';
|
|
5
5
|
import * as redux from 'redux';
|
|
6
6
|
import { Unsubscribe } from 'redux';
|
|
7
|
+
import * as redux_thunk from 'redux-thunk';
|
|
7
8
|
|
|
8
9
|
declare const styles$s: {
|
|
9
10
|
readonly "content": string;
|
|
@@ -971,6 +972,15 @@ type SendEventArgumentMap = {
|
|
|
971
972
|
'entities found': Event$1<{
|
|
972
973
|
entities: Entity[];
|
|
973
974
|
}>;
|
|
975
|
+
'entity copied': Event$1<{
|
|
976
|
+
entity: Entity;
|
|
977
|
+
type: 'copy';
|
|
978
|
+
}>;
|
|
979
|
+
'suggestion feedback': Event$1<{
|
|
980
|
+
text: string;
|
|
981
|
+
source: string;
|
|
982
|
+
context?: string;
|
|
983
|
+
}>;
|
|
974
984
|
'style suggested': Event$1<{
|
|
975
985
|
keywordMatches: {
|
|
976
986
|
keyword: string;
|
|
@@ -3544,7 +3554,22 @@ declare function waitForElementVisibilityChange(element: HTMLElement, callback:
|
|
|
3544
3554
|
isVisible: boolean;
|
|
3545
3555
|
}) => void, interval?: number): Cancelable;
|
|
3546
3556
|
|
|
3557
|
+
type LogEvent<T extends keyof SendEventArgumentMap, P extends T = T> = {
|
|
3558
|
+
name: T;
|
|
3559
|
+
data: SendEventArgumentMap[P]['data'];
|
|
3560
|
+
};
|
|
3561
|
+
declare function logEvent<T extends keyof SendEventArgumentMap>(event: LogEvent<T>): _reduxjs_toolkit.AsyncThunkAction<void, LogEvent<T, T>, {
|
|
3562
|
+
state?: unknown;
|
|
3563
|
+
dispatch?: redux_thunk.ThunkDispatch<unknown, unknown, redux.UnknownAction>;
|
|
3564
|
+
extra?: unknown;
|
|
3565
|
+
rejectValue?: unknown;
|
|
3566
|
+
serializedErrorType?: unknown;
|
|
3567
|
+
pendingMeta?: unknown;
|
|
3568
|
+
fulfilledMeta?: unknown;
|
|
3569
|
+
rejectedMeta?: unknown;
|
|
3570
|
+
}>;
|
|
3571
|
+
|
|
3547
3572
|
type CSSModule = Record<string, string>;
|
|
3548
3573
|
declare function useStyles<TStyles extends CSSModule>(componentName: string, defaultStyles: TStyles): TStyles;
|
|
3549
3574
|
|
|
3550
|
-
export { type AgentInfo, Card, ContentEditableInput, type Conversation, type ConversationMessage, DeepdeskAPI, DeepdeskSDK, HTTPClient, InputMediator, type InputOverlayCustomStyles, InputType, KeyboardHint, Label, Locale, type Logger, type MountOptions, type PinnedMessage, type PlatformConfig, type RootState, Section, SectionList, type SelectionRange, Sources, Suggestion, type SuggestionEventMetrics, SuggestionList, type SuggestionMetrics, TextAreaInput, type TextSuggestion, ToggleButton, type UrlSuggestion, type VisitorInfo, type WidgetCustomStyles, type WidgetOptions, attachFile, authenticateWithKey, createFullRange, createOverlayContainer, createRangeFromOffsets, escapeHTML, formatTextMarkup, getRangeOffsets, getRangeText, insertCKEditor, isHTML, isSupportedInputElement, updateContentEditable, updateTextArea, useClickOutsideRoot, useStyles, waitForElementVisibilityChange };
|
|
3575
|
+
export { type AgentInfo, Card, ContentEditableInput, type Conversation, type ConversationMessage, DeepdeskAPI, DeepdeskSDK, HTTPClient, InputMediator, type InputOverlayCustomStyles, InputType, KeyboardHint, Label, Locale, type Logger, type MountOptions, type PinnedMessage, type PlatformConfig, type RootState, Section, SectionList, type SelectionRange, Sources, Suggestion, type SuggestionEventMetrics, SuggestionList, type SuggestionMetrics, TextAreaInput, type TextSuggestion, ToggleButton, type UrlSuggestion, type VisitorInfo, type WidgetCustomStyles, type WidgetOptions, attachFile, authenticateWithKey, createFullRange, createOverlayContainer, createRangeFromOffsets, escapeHTML, formatTextMarkup, getRangeOffsets, getRangeText, insertCKEditor, isHTML, isSupportedInputElement, logEvent, updateContentEditable, updateTextArea, useClickOutsideRoot, useStyles, waitForElementVisibilityChange };
|