@deepdesk/deepdesk-sdk 18.2.1-beta.0 → 18.2.1-beta.10
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 +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.esm.js +8 -8
- package/dist/index.iife.js +71 -72
- package/input.css +1 -1
- package/package.json +33 -70
- package/styles/index.js +1 -1
- package/styles.css +1 -1
- package/widget.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -100,6 +100,8 @@ declare const styles$n: {
|
|
|
100
100
|
readonly "actionsIsFixed": string;
|
|
101
101
|
readonly "button": string;
|
|
102
102
|
readonly "buttonDisabled": string;
|
|
103
|
+
readonly "buttonPrimary": string;
|
|
104
|
+
readonly "buttonSecondary": string;
|
|
103
105
|
readonly "buttonWithIcon": string;
|
|
104
106
|
readonly "buttonsContainer": string;
|
|
105
107
|
readonly "dropdownButton": string;
|
|
@@ -125,8 +127,9 @@ interface ButtonProps<T extends React.ElementType> {
|
|
|
125
127
|
title?: string;
|
|
126
128
|
icon?: ReactNode;
|
|
127
129
|
disabled?: boolean;
|
|
130
|
+
variant?: 'primary' | 'secondary';
|
|
128
131
|
}
|
|
129
|
-
declare function Button<T extends React.ElementType = 'button'>({ as, className, icon, title, children, disabled, ...restProps }: ButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ButtonProps<T>>): react_jsx_runtime.JSX.Element;
|
|
132
|
+
declare function Button<T extends React.ElementType = 'button'>({ as, className, icon, title, children, disabled, variant, ...restProps }: ButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ButtonProps<T>>): react_jsx_runtime.JSX.Element;
|
|
130
133
|
declare const ButtonsContainer: React.FC<{
|
|
131
134
|
children: React.ReactNode;
|
|
132
135
|
}>;
|
|
@@ -379,7 +382,7 @@ type VariableMapping = Record<string, string>;
|
|
|
379
382
|
type CustomDataSchema = Array<{
|
|
380
383
|
path: string;
|
|
381
384
|
label: string;
|
|
382
|
-
type: 'string' | 'number';
|
|
385
|
+
type: 'string' | 'number' | 'array';
|
|
383
386
|
} | {
|
|
384
387
|
path: string;
|
|
385
388
|
label: string;
|
|
@@ -3553,7 +3556,13 @@ declare function waitForElementVisibilityChange(element: HTMLElement, callback:
|
|
|
3553
3556
|
isVisible: boolean;
|
|
3554
3557
|
}) => void, interval?: number): Cancelable;
|
|
3555
3558
|
|
|
3559
|
+
type LogEvent<T extends keyof SendEventArgumentMap, P extends T = T> = {
|
|
3560
|
+
name: T;
|
|
3561
|
+
data: SendEventArgumentMap[P]['data'];
|
|
3562
|
+
};
|
|
3563
|
+
declare function logEvent<T extends keyof SendEventArgumentMap>(event: LogEvent<T>): _reduxjs_toolkit.AsyncThunkAction<void, LogEvent<T, T>, _reduxjs_toolkit.AsyncThunkConfig>;
|
|
3564
|
+
|
|
3556
3565
|
type CSSModule = Record<string, string>;
|
|
3557
3566
|
declare function useStyles<TStyles extends CSSModule>(componentName: string, defaultStyles: TStyles): TStyles;
|
|
3558
3567
|
|
|
3559
|
-
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 };
|
|
3568
|
+
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
|
@@ -100,6 +100,8 @@ declare const styles$n: {
|
|
|
100
100
|
readonly "actionsIsFixed": string;
|
|
101
101
|
readonly "button": string;
|
|
102
102
|
readonly "buttonDisabled": string;
|
|
103
|
+
readonly "buttonPrimary": string;
|
|
104
|
+
readonly "buttonSecondary": string;
|
|
103
105
|
readonly "buttonWithIcon": string;
|
|
104
106
|
readonly "buttonsContainer": string;
|
|
105
107
|
readonly "dropdownButton": string;
|
|
@@ -125,8 +127,9 @@ interface ButtonProps<T extends React.ElementType> {
|
|
|
125
127
|
title?: string;
|
|
126
128
|
icon?: ReactNode;
|
|
127
129
|
disabled?: boolean;
|
|
130
|
+
variant?: 'primary' | 'secondary';
|
|
128
131
|
}
|
|
129
|
-
declare function Button<T extends React.ElementType = 'button'>({ as, className, icon, title, children, disabled, ...restProps }: ButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ButtonProps<T>>): react_jsx_runtime.JSX.Element;
|
|
132
|
+
declare function Button<T extends React.ElementType = 'button'>({ as, className, icon, title, children, disabled, variant, ...restProps }: ButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ButtonProps<T>>): react_jsx_runtime.JSX.Element;
|
|
130
133
|
declare const ButtonsContainer: React.FC<{
|
|
131
134
|
children: React.ReactNode;
|
|
132
135
|
}>;
|
|
@@ -379,7 +382,7 @@ type VariableMapping = Record<string, string>;
|
|
|
379
382
|
type CustomDataSchema = Array<{
|
|
380
383
|
path: string;
|
|
381
384
|
label: string;
|
|
382
|
-
type: 'string' | 'number';
|
|
385
|
+
type: 'string' | 'number' | 'array';
|
|
383
386
|
} | {
|
|
384
387
|
path: string;
|
|
385
388
|
label: string;
|
|
@@ -3553,7 +3556,13 @@ declare function waitForElementVisibilityChange(element: HTMLElement, callback:
|
|
|
3553
3556
|
isVisible: boolean;
|
|
3554
3557
|
}) => void, interval?: number): Cancelable;
|
|
3555
3558
|
|
|
3559
|
+
type LogEvent<T extends keyof SendEventArgumentMap, P extends T = T> = {
|
|
3560
|
+
name: T;
|
|
3561
|
+
data: SendEventArgumentMap[P]['data'];
|
|
3562
|
+
};
|
|
3563
|
+
declare function logEvent<T extends keyof SendEventArgumentMap>(event: LogEvent<T>): _reduxjs_toolkit.AsyncThunkAction<void, LogEvent<T, T>, _reduxjs_toolkit.AsyncThunkConfig>;
|
|
3564
|
+
|
|
3556
3565
|
type CSSModule = Record<string, string>;
|
|
3557
3566
|
declare function useStyles<TStyles extends CSSModule>(componentName: string, defaultStyles: TStyles): TStyles;
|
|
3558
3567
|
|
|
3559
|
-
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 };
|
|
3568
|
+
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 };
|