@deepdesk/deepdesk-sdk 11.5.5-beta.1 → 11.5.5-beta.3
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/dialogs.css +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.d.mts +36 -14
- package/dist/index.d.ts +36 -14
- package/dist/index.esm.js +8 -8
- package/dist/index.iife.js +16 -16
- package/input.css +1 -1
- package/package.json +2 -2
- package/styles/index.js +1 -1
- package/styles.css +1 -1
- package/widget.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC, HTMLAttributes, ForwardRefExoticComponent, RefAttributes,
|
|
1
|
+
import React, { FC, HTMLAttributes, ForwardRefExoticComponent, RefAttributes, ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import * as redux from 'redux';
|
|
3
3
|
import * as _reduxjs_toolkit_dist_configureStore from '@reduxjs/toolkit/dist/configureStore';
|
|
4
4
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
@@ -105,38 +105,53 @@ declare const styles$k: {
|
|
|
105
105
|
readonly "label": string;
|
|
106
106
|
readonly "iconButtons": string;
|
|
107
107
|
readonly "iconButton": string;
|
|
108
|
+
readonly "iconButtonDisabled": string;
|
|
108
109
|
};
|
|
109
110
|
|
|
110
111
|
interface ActionsProps extends HTMLAttributes<HTMLElement> {
|
|
111
112
|
fixed?: boolean;
|
|
112
113
|
}
|
|
113
|
-
|
|
114
|
+
declare const Actions: FC<ActionsProps>;
|
|
115
|
+
interface IconButtonProps<T extends React.ElementType> {
|
|
116
|
+
as?: T;
|
|
117
|
+
className?: string;
|
|
118
|
+
title?: string;
|
|
114
119
|
icon?: ReactNode;
|
|
120
|
+
disabled?: boolean;
|
|
115
121
|
}
|
|
122
|
+
declare function IconButton<T extends React.ElementType = 'button'>({ as, className, icon, title, disabled, ...restProps }: IconButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof IconButtonProps<T>>): JSX.Element;
|
|
123
|
+
declare const IconButtonContainer: React.FC<{
|
|
124
|
+
children: React.ReactNode;
|
|
125
|
+
}>;
|
|
116
126
|
interface ActionButtonProps extends HTMLAttributes<HTMLElement> {
|
|
117
127
|
primary?: boolean;
|
|
118
128
|
disabled?: boolean;
|
|
119
129
|
label: ReactNode;
|
|
120
130
|
}
|
|
131
|
+
declare const DropdownButton: FC<ActionButtonProps>;
|
|
121
132
|
interface DropdownItemProps extends HTMLAttributes<HTMLElement> {
|
|
122
133
|
index: number;
|
|
123
134
|
label: ReactNode;
|
|
124
135
|
onClick?(event: SyntheticEvent<any>): void;
|
|
125
136
|
}
|
|
137
|
+
declare const DropdownItem: FC<DropdownItemProps>;
|
|
138
|
+
declare const ActionButton: FC<ActionButtonProps>;
|
|
126
139
|
interface LabelProps {
|
|
127
140
|
labels: string[];
|
|
128
141
|
}
|
|
142
|
+
declare const Labels: React.FC<LabelProps>;
|
|
129
143
|
type Props$2 = HTMLAttributes<HTMLElement> & {
|
|
130
144
|
selected?: boolean;
|
|
131
145
|
as?: 'div' | 'button';
|
|
132
146
|
};
|
|
133
147
|
interface SuggestionComposition {
|
|
134
|
-
Actions:
|
|
135
|
-
ActionButton:
|
|
136
|
-
DropdownButton:
|
|
137
|
-
DropdownItem:
|
|
138
|
-
Labels:
|
|
139
|
-
IconButton:
|
|
148
|
+
Actions: typeof Actions;
|
|
149
|
+
ActionButton: typeof ActionButton;
|
|
150
|
+
DropdownButton: typeof DropdownButton;
|
|
151
|
+
DropdownItem: typeof DropdownItem;
|
|
152
|
+
Labels: typeof Labels;
|
|
153
|
+
IconButton: typeof IconButton;
|
|
154
|
+
IconButtonContainer: typeof IconButtonContainer;
|
|
140
155
|
}
|
|
141
156
|
type SuggestionStyles = typeof styles$k;
|
|
142
157
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
@@ -501,7 +516,8 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
501
516
|
floatingMenu: boolean;
|
|
502
517
|
adminUrl?: string | undefined;
|
|
503
518
|
productName: string;
|
|
504
|
-
|
|
519
|
+
enableSuggestionFeedback: boolean;
|
|
520
|
+
enableFeedbackForm: boolean;
|
|
505
521
|
};
|
|
506
522
|
profile: State$5;
|
|
507
523
|
search: State$4;
|
|
@@ -564,7 +580,8 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
564
580
|
floatingMenu: boolean;
|
|
565
581
|
adminUrl?: string | undefined;
|
|
566
582
|
productName: string;
|
|
567
|
-
|
|
583
|
+
enableSuggestionFeedback: boolean;
|
|
584
|
+
enableFeedbackForm: boolean;
|
|
568
585
|
};
|
|
569
586
|
profile: State$5;
|
|
570
587
|
search: State$4;
|
|
@@ -626,7 +643,8 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
626
643
|
floatingMenu: boolean;
|
|
627
644
|
adminUrl?: string | undefined;
|
|
628
645
|
productName: string;
|
|
629
|
-
|
|
646
|
+
enableSuggestionFeedback: boolean;
|
|
647
|
+
enableFeedbackForm: boolean;
|
|
630
648
|
};
|
|
631
649
|
profile: State$5;
|
|
632
650
|
search: State$4;
|
|
@@ -1639,6 +1657,7 @@ declare const styles$g: {
|
|
|
1639
1657
|
readonly "sources": string;
|
|
1640
1658
|
readonly "sourcesTitle": string;
|
|
1641
1659
|
readonly "source": string;
|
|
1660
|
+
readonly "sourceShowMore": string;
|
|
1642
1661
|
readonly "icon": string;
|
|
1643
1662
|
readonly "searchIcon": string;
|
|
1644
1663
|
readonly "searchInputWrapper": string;
|
|
@@ -1921,7 +1940,8 @@ type State = {
|
|
|
1921
1940
|
floatingMenu: boolean;
|
|
1922
1941
|
adminUrl?: string;
|
|
1923
1942
|
productName: string;
|
|
1924
|
-
|
|
1943
|
+
enableSuggestionFeedback: boolean;
|
|
1944
|
+
enableFeedbackForm: boolean;
|
|
1925
1945
|
};
|
|
1926
1946
|
declare const set: _reduxjs_toolkit.ActionCreatorWithPayload<Partial<State>, "settings/set">;
|
|
1927
1947
|
|
|
@@ -2071,7 +2091,8 @@ declare class DeepdeskSDK {
|
|
|
2071
2091
|
floatingMenu: boolean;
|
|
2072
2092
|
adminUrl?: string | undefined;
|
|
2073
2093
|
productName: string;
|
|
2074
|
-
|
|
2094
|
+
enableSuggestionFeedback: boolean;
|
|
2095
|
+
enableFeedbackForm: boolean;
|
|
2075
2096
|
};
|
|
2076
2097
|
profile: State$5;
|
|
2077
2098
|
search: State$4;
|
|
@@ -2115,7 +2136,8 @@ declare class DeepdeskSDK {
|
|
|
2115
2136
|
floatingMenu: boolean;
|
|
2116
2137
|
adminUrl?: string | undefined;
|
|
2117
2138
|
productName: string;
|
|
2118
|
-
|
|
2139
|
+
enableSuggestionFeedback: boolean;
|
|
2140
|
+
enableFeedbackForm: boolean;
|
|
2119
2141
|
};
|
|
2120
2142
|
get selectedTextSuggestion(): TextSuggestion;
|
|
2121
2143
|
hasConversation(): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { FC, HTMLAttributes, ForwardRefExoticComponent, RefAttributes,
|
|
1
|
+
import React, { FC, HTMLAttributes, ForwardRefExoticComponent, RefAttributes, ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import * as redux from 'redux';
|
|
3
3
|
import * as _reduxjs_toolkit_dist_configureStore from '@reduxjs/toolkit/dist/configureStore';
|
|
4
4
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
@@ -105,38 +105,53 @@ declare const styles$k: {
|
|
|
105
105
|
readonly "label": string;
|
|
106
106
|
readonly "iconButtons": string;
|
|
107
107
|
readonly "iconButton": string;
|
|
108
|
+
readonly "iconButtonDisabled": string;
|
|
108
109
|
};
|
|
109
110
|
|
|
110
111
|
interface ActionsProps extends HTMLAttributes<HTMLElement> {
|
|
111
112
|
fixed?: boolean;
|
|
112
113
|
}
|
|
113
|
-
|
|
114
|
+
declare const Actions: FC<ActionsProps>;
|
|
115
|
+
interface IconButtonProps<T extends React.ElementType> {
|
|
116
|
+
as?: T;
|
|
117
|
+
className?: string;
|
|
118
|
+
title?: string;
|
|
114
119
|
icon?: ReactNode;
|
|
120
|
+
disabled?: boolean;
|
|
115
121
|
}
|
|
122
|
+
declare function IconButton<T extends React.ElementType = 'button'>({ as, className, icon, title, disabled, ...restProps }: IconButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof IconButtonProps<T>>): JSX.Element;
|
|
123
|
+
declare const IconButtonContainer: React.FC<{
|
|
124
|
+
children: React.ReactNode;
|
|
125
|
+
}>;
|
|
116
126
|
interface ActionButtonProps extends HTMLAttributes<HTMLElement> {
|
|
117
127
|
primary?: boolean;
|
|
118
128
|
disabled?: boolean;
|
|
119
129
|
label: ReactNode;
|
|
120
130
|
}
|
|
131
|
+
declare const DropdownButton: FC<ActionButtonProps>;
|
|
121
132
|
interface DropdownItemProps extends HTMLAttributes<HTMLElement> {
|
|
122
133
|
index: number;
|
|
123
134
|
label: ReactNode;
|
|
124
135
|
onClick?(event: SyntheticEvent<any>): void;
|
|
125
136
|
}
|
|
137
|
+
declare const DropdownItem: FC<DropdownItemProps>;
|
|
138
|
+
declare const ActionButton: FC<ActionButtonProps>;
|
|
126
139
|
interface LabelProps {
|
|
127
140
|
labels: string[];
|
|
128
141
|
}
|
|
142
|
+
declare const Labels: React.FC<LabelProps>;
|
|
129
143
|
type Props$2 = HTMLAttributes<HTMLElement> & {
|
|
130
144
|
selected?: boolean;
|
|
131
145
|
as?: 'div' | 'button';
|
|
132
146
|
};
|
|
133
147
|
interface SuggestionComposition {
|
|
134
|
-
Actions:
|
|
135
|
-
ActionButton:
|
|
136
|
-
DropdownButton:
|
|
137
|
-
DropdownItem:
|
|
138
|
-
Labels:
|
|
139
|
-
IconButton:
|
|
148
|
+
Actions: typeof Actions;
|
|
149
|
+
ActionButton: typeof ActionButton;
|
|
150
|
+
DropdownButton: typeof DropdownButton;
|
|
151
|
+
DropdownItem: typeof DropdownItem;
|
|
152
|
+
Labels: typeof Labels;
|
|
153
|
+
IconButton: typeof IconButton;
|
|
154
|
+
IconButtonContainer: typeof IconButtonContainer;
|
|
140
155
|
}
|
|
141
156
|
type SuggestionStyles = typeof styles$k;
|
|
142
157
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
@@ -501,7 +516,8 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
501
516
|
floatingMenu: boolean;
|
|
502
517
|
adminUrl?: string | undefined;
|
|
503
518
|
productName: string;
|
|
504
|
-
|
|
519
|
+
enableSuggestionFeedback: boolean;
|
|
520
|
+
enableFeedbackForm: boolean;
|
|
505
521
|
};
|
|
506
522
|
profile: State$5;
|
|
507
523
|
search: State$4;
|
|
@@ -564,7 +580,8 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
564
580
|
floatingMenu: boolean;
|
|
565
581
|
adminUrl?: string | undefined;
|
|
566
582
|
productName: string;
|
|
567
|
-
|
|
583
|
+
enableSuggestionFeedback: boolean;
|
|
584
|
+
enableFeedbackForm: boolean;
|
|
568
585
|
};
|
|
569
586
|
profile: State$5;
|
|
570
587
|
search: State$4;
|
|
@@ -626,7 +643,8 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
626
643
|
floatingMenu: boolean;
|
|
627
644
|
adminUrl?: string | undefined;
|
|
628
645
|
productName: string;
|
|
629
|
-
|
|
646
|
+
enableSuggestionFeedback: boolean;
|
|
647
|
+
enableFeedbackForm: boolean;
|
|
630
648
|
};
|
|
631
649
|
profile: State$5;
|
|
632
650
|
search: State$4;
|
|
@@ -1639,6 +1657,7 @@ declare const styles$g: {
|
|
|
1639
1657
|
readonly "sources": string;
|
|
1640
1658
|
readonly "sourcesTitle": string;
|
|
1641
1659
|
readonly "source": string;
|
|
1660
|
+
readonly "sourceShowMore": string;
|
|
1642
1661
|
readonly "icon": string;
|
|
1643
1662
|
readonly "searchIcon": string;
|
|
1644
1663
|
readonly "searchInputWrapper": string;
|
|
@@ -1921,7 +1940,8 @@ type State = {
|
|
|
1921
1940
|
floatingMenu: boolean;
|
|
1922
1941
|
adminUrl?: string;
|
|
1923
1942
|
productName: string;
|
|
1924
|
-
|
|
1943
|
+
enableSuggestionFeedback: boolean;
|
|
1944
|
+
enableFeedbackForm: boolean;
|
|
1925
1945
|
};
|
|
1926
1946
|
declare const set: _reduxjs_toolkit.ActionCreatorWithPayload<Partial<State>, "settings/set">;
|
|
1927
1947
|
|
|
@@ -2071,7 +2091,8 @@ declare class DeepdeskSDK {
|
|
|
2071
2091
|
floatingMenu: boolean;
|
|
2072
2092
|
adminUrl?: string | undefined;
|
|
2073
2093
|
productName: string;
|
|
2074
|
-
|
|
2094
|
+
enableSuggestionFeedback: boolean;
|
|
2095
|
+
enableFeedbackForm: boolean;
|
|
2075
2096
|
};
|
|
2076
2097
|
profile: State$5;
|
|
2077
2098
|
search: State$4;
|
|
@@ -2115,7 +2136,8 @@ declare class DeepdeskSDK {
|
|
|
2115
2136
|
floatingMenu: boolean;
|
|
2116
2137
|
adminUrl?: string | undefined;
|
|
2117
2138
|
productName: string;
|
|
2118
|
-
|
|
2139
|
+
enableSuggestionFeedback: boolean;
|
|
2140
|
+
enableFeedbackForm: boolean;
|
|
2119
2141
|
};
|
|
2120
2142
|
get selectedTextSuggestion(): TextSuggestion;
|
|
2121
2143
|
hasConversation(): boolean;
|