@deepdesk/deepdesk-sdk 18.2.1-beta.0 → 18.2.1-beta.2

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.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;
@@ -379,7 +380,7 @@ type VariableMapping = Record<string, string>;
379
380
  type CustomDataSchema = Array<{
380
381
  path: string;
381
382
  label: string;
382
- type: 'string' | 'number';
383
+ type: 'string' | 'number' | 'array';
383
384
  } | {
384
385
  path: string;
385
386
  label: string;
@@ -3553,7 +3554,22 @@ declare function waitForElementVisibilityChange(element: HTMLElement, callback:
3553
3554
  isVisible: boolean;
3554
3555
  }) => void, interval?: number): Cancelable;
3555
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
+
3556
3572
  type CSSModule = Record<string, string>;
3557
3573
  declare function useStyles<TStyles extends CSSModule>(componentName: string, defaultStyles: TStyles): TStyles;
3558
3574
 
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 };
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;
@@ -379,7 +380,7 @@ type VariableMapping = Record<string, string>;
379
380
  type CustomDataSchema = Array<{
380
381
  path: string;
381
382
  label: string;
382
- type: 'string' | 'number';
383
+ type: 'string' | 'number' | 'array';
383
384
  } | {
384
385
  path: string;
385
386
  label: string;
@@ -3553,7 +3554,22 @@ declare function waitForElementVisibilityChange(element: HTMLElement, callback:
3553
3554
  isVisible: boolean;
3554
3555
  }) => void, interval?: number): Cancelable;
3555
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
+
3556
3572
  type CSSModule = Record<string, string>;
3557
3573
  declare function useStyles<TStyles extends CSSModule>(componentName: string, defaultStyles: TStyles): TStyles;
3558
3574
 
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 };
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 };