@deepdesk/deepdesk-sdk 11.5.5-beta.0 → 11.5.5-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/dialogs.css +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.d.mts +35 -14
- package/dist/index.d.ts +35 -14
- package/dist/index.esm.js +8 -8
- package/dist/index.iife.js +16 -16
- package/input.css +1 -1
- package/package.json +1 -1
- 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;
|
|
@@ -1921,7 +1939,8 @@ type State = {
|
|
|
1921
1939
|
floatingMenu: boolean;
|
|
1922
1940
|
adminUrl?: string;
|
|
1923
1941
|
productName: string;
|
|
1924
|
-
|
|
1942
|
+
enableSuggestionFeedback: boolean;
|
|
1943
|
+
enableFeedbackForm: boolean;
|
|
1925
1944
|
};
|
|
1926
1945
|
declare const set: _reduxjs_toolkit.ActionCreatorWithPayload<Partial<State>, "settings/set">;
|
|
1927
1946
|
|
|
@@ -2071,7 +2090,8 @@ declare class DeepdeskSDK {
|
|
|
2071
2090
|
floatingMenu: boolean;
|
|
2072
2091
|
adminUrl?: string | undefined;
|
|
2073
2092
|
productName: string;
|
|
2074
|
-
|
|
2093
|
+
enableSuggestionFeedback: boolean;
|
|
2094
|
+
enableFeedbackForm: boolean;
|
|
2075
2095
|
};
|
|
2076
2096
|
profile: State$5;
|
|
2077
2097
|
search: State$4;
|
|
@@ -2115,7 +2135,8 @@ declare class DeepdeskSDK {
|
|
|
2115
2135
|
floatingMenu: boolean;
|
|
2116
2136
|
adminUrl?: string | undefined;
|
|
2117
2137
|
productName: string;
|
|
2118
|
-
|
|
2138
|
+
enableSuggestionFeedback: boolean;
|
|
2139
|
+
enableFeedbackForm: boolean;
|
|
2119
2140
|
};
|
|
2120
2141
|
get selectedTextSuggestion(): TextSuggestion;
|
|
2121
2142
|
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;
|
|
@@ -1921,7 +1939,8 @@ type State = {
|
|
|
1921
1939
|
floatingMenu: boolean;
|
|
1922
1940
|
adminUrl?: string;
|
|
1923
1941
|
productName: string;
|
|
1924
|
-
|
|
1942
|
+
enableSuggestionFeedback: boolean;
|
|
1943
|
+
enableFeedbackForm: boolean;
|
|
1925
1944
|
};
|
|
1926
1945
|
declare const set: _reduxjs_toolkit.ActionCreatorWithPayload<Partial<State>, "settings/set">;
|
|
1927
1946
|
|
|
@@ -2071,7 +2090,8 @@ declare class DeepdeskSDK {
|
|
|
2071
2090
|
floatingMenu: boolean;
|
|
2072
2091
|
adminUrl?: string | undefined;
|
|
2073
2092
|
productName: string;
|
|
2074
|
-
|
|
2093
|
+
enableSuggestionFeedback: boolean;
|
|
2094
|
+
enableFeedbackForm: boolean;
|
|
2075
2095
|
};
|
|
2076
2096
|
profile: State$5;
|
|
2077
2097
|
search: State$4;
|
|
@@ -2115,7 +2135,8 @@ declare class DeepdeskSDK {
|
|
|
2115
2135
|
floatingMenu: boolean;
|
|
2116
2136
|
adminUrl?: string | undefined;
|
|
2117
2137
|
productName: string;
|
|
2118
|
-
|
|
2138
|
+
enableSuggestionFeedback: boolean;
|
|
2139
|
+
enableFeedbackForm: boolean;
|
|
2119
2140
|
};
|
|
2120
2141
|
get selectedTextSuggestion(): TextSuggestion;
|
|
2121
2142
|
hasConversation(): boolean;
|