@deepdesk/deepdesk-sdk 17.0.0-rc.7 → 17.0.0-rc.8
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 +7 -7
- package/dist/index.d.mts +32 -28
- package/dist/index.d.ts +32 -28
- package/dist/index.esm.js +8 -8
- package/dist/index.iife.js +71 -107
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { FC, HTMLAttributes, ForwardRefExoticComponent, RefAttributes, ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
4
|
+
import { Middleware, Tuple } from '@reduxjs/toolkit';
|
|
3
5
|
import * as redux from 'redux';
|
|
4
6
|
import { Unsubscribe } from 'redux';
|
|
5
|
-
import * as _reduxjs_toolkit_dist_configureStore from '@reduxjs/toolkit/dist/configureStore';
|
|
6
|
-
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
7
|
-
import { Middleware } from '@reduxjs/toolkit';
|
|
8
7
|
|
|
9
8
|
declare const styles$t: {
|
|
10
9
|
readonly "content": string;
|
|
@@ -24,11 +23,13 @@ type ContentProps = {
|
|
|
24
23
|
cropText?: boolean;
|
|
25
24
|
className?: string;
|
|
26
25
|
lineClamp?: boolean;
|
|
26
|
+
children: React.ReactNode;
|
|
27
27
|
};
|
|
28
28
|
interface TitleProps extends React.HTMLProps<HTMLHeadingElement> {
|
|
29
29
|
cropText?: boolean;
|
|
30
30
|
className?: string;
|
|
31
31
|
as?: string;
|
|
32
|
+
children: React.ReactNode;
|
|
32
33
|
}
|
|
33
34
|
interface CardComposition {
|
|
34
35
|
Image: FC<ImageProps>;
|
|
@@ -36,7 +37,9 @@ interface CardComposition {
|
|
|
36
37
|
Title: FC<TitleProps>;
|
|
37
38
|
}
|
|
38
39
|
type CardStyles = typeof styles$t;
|
|
39
|
-
declare const Card: FC
|
|
40
|
+
declare const Card: FC<{
|
|
41
|
+
children: React.ReactNode;
|
|
42
|
+
}> & CardComposition;
|
|
40
43
|
|
|
41
44
|
declare const styles$s: {
|
|
42
45
|
readonly "root": string;
|
|
@@ -167,6 +170,7 @@ declare const styles$n: {
|
|
|
167
170
|
type SuggestionListStyles = typeof styles$n;
|
|
168
171
|
interface Props$1 {
|
|
169
172
|
withDivider?: boolean;
|
|
173
|
+
children: React.ReactNode;
|
|
170
174
|
}
|
|
171
175
|
declare const SuggestionList: React.FC<Props$1>;
|
|
172
176
|
|
|
@@ -1409,7 +1413,7 @@ interface StoreConfig {
|
|
|
1409
1413
|
middleware?: Middleware[];
|
|
1410
1414
|
preloadedState?: any;
|
|
1411
1415
|
}
|
|
1412
|
-
declare const reducers: redux.Reducer<
|
|
1416
|
+
declare const reducers: redux.Reducer<{
|
|
1413
1417
|
assistants: State$2;
|
|
1414
1418
|
auth: State$3;
|
|
1415
1419
|
conversation: State$4;
|
|
@@ -1469,15 +1473,14 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
1469
1473
|
overlayCollapsedUserOverwrite: boolean;
|
|
1470
1474
|
};
|
|
1471
1475
|
textSuggestions: TextSuggestionState;
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
handlingTime: State$7;
|
|
1476
|
+
}, redux.UnknownAction, Partial<{
|
|
1477
|
+
assistants: State$2 | undefined;
|
|
1478
|
+
auth: State$3 | undefined;
|
|
1479
|
+
conversation: State$4 | undefined;
|
|
1480
|
+
contentTypes: State$5 | undefined;
|
|
1481
|
+
passwordlessToken: State$6 | undefined;
|
|
1482
|
+
entities: State$1 | undefined;
|
|
1483
|
+
handlingTime: State$7 | undefined;
|
|
1481
1484
|
info: {
|
|
1482
1485
|
agentInfo?: AgentInfo;
|
|
1483
1486
|
agentSettings: unknown;
|
|
@@ -1485,8 +1488,8 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
1485
1488
|
customData?: CustomData;
|
|
1486
1489
|
platformVariables?: VariableMapping;
|
|
1487
1490
|
fetchState: FetchState;
|
|
1488
|
-
};
|
|
1489
|
-
input: State$8;
|
|
1491
|
+
} | undefined;
|
|
1492
|
+
input: State$8 | undefined;
|
|
1490
1493
|
settings: {
|
|
1491
1494
|
locale: Locale;
|
|
1492
1495
|
deanonymize: boolean;
|
|
@@ -1518,19 +1521,20 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
1518
1521
|
enableSuggestionFeedback: boolean;
|
|
1519
1522
|
enableFeedbackForm: boolean;
|
|
1520
1523
|
hasKeyboardInput: boolean;
|
|
1521
|
-
};
|
|
1522
|
-
profile: State$9;
|
|
1523
|
-
search: State$b;
|
|
1524
|
-
styleSuggestions: State$a;
|
|
1524
|
+
} | undefined;
|
|
1525
|
+
profile: State$9 | undefined;
|
|
1526
|
+
search: State$b | undefined;
|
|
1527
|
+
styleSuggestions: State$a | undefined;
|
|
1525
1528
|
ui: {
|
|
1526
1529
|
showTabHint: boolean;
|
|
1527
1530
|
inputHasFocus: boolean;
|
|
1528
1531
|
overlayCollapsed: boolean;
|
|
1529
1532
|
openOverlayWhenTyping: boolean;
|
|
1530
1533
|
overlayCollapsedUserOverwrite: boolean;
|
|
1531
|
-
};
|
|
1532
|
-
textSuggestions: TextSuggestionState;
|
|
1533
|
-
}
|
|
1534
|
+
} | undefined;
|
|
1535
|
+
textSuggestions: TextSuggestionState | undefined;
|
|
1536
|
+
}>>;
|
|
1537
|
+
declare function createStore(config: StoreConfig): _reduxjs_toolkit.EnhancedStore<{
|
|
1534
1538
|
assistants: State$2;
|
|
1535
1539
|
auth: State$3;
|
|
1536
1540
|
conversation: State$4;
|
|
@@ -1590,10 +1594,9 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
1590
1594
|
overlayCollapsedUserOverwrite: boolean;
|
|
1591
1595
|
};
|
|
1592
1596
|
textSuggestions: TextSuggestionState;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
}>[]>;
|
|
1597
|
+
}, redux.UnknownAction, Tuple<[redux.StoreEnhancer<{
|
|
1598
|
+
dispatch: {};
|
|
1599
|
+
}>, redux.StoreEnhancer]>>;
|
|
1597
1600
|
type RootState = ReturnType<typeof reducers>;
|
|
1598
1601
|
type Store = ReturnType<typeof createStore>;
|
|
1599
1602
|
|
|
@@ -2082,6 +2085,7 @@ declare class DeepdeskSDK {
|
|
|
2082
2085
|
private inlineSuggestions;
|
|
2083
2086
|
private aboveSuggestions;
|
|
2084
2087
|
private floatingMenu;
|
|
2088
|
+
private widgetElement;
|
|
2085
2089
|
private widgetRoot;
|
|
2086
2090
|
private dynamicThunkObject;
|
|
2087
2091
|
isMounted: boolean;
|
|
@@ -2089,7 +2093,7 @@ declare class DeepdeskSDK {
|
|
|
2089
2093
|
private shouldRender;
|
|
2090
2094
|
store: Store;
|
|
2091
2095
|
constructor({ deepdeskUrl, version, locale, token, fetch, productName, createCustomChannel, }: SDKOptions);
|
|
2092
|
-
get state():
|
|
2096
|
+
get state(): {
|
|
2093
2097
|
assistants: State$2;
|
|
2094
2098
|
auth: State$3;
|
|
2095
2099
|
conversation: State$4;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { FC, HTMLAttributes, ForwardRefExoticComponent, RefAttributes, ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
4
|
+
import { Middleware, Tuple } from '@reduxjs/toolkit';
|
|
3
5
|
import * as redux from 'redux';
|
|
4
6
|
import { Unsubscribe } from 'redux';
|
|
5
|
-
import * as _reduxjs_toolkit_dist_configureStore from '@reduxjs/toolkit/dist/configureStore';
|
|
6
|
-
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
7
|
-
import { Middleware } from '@reduxjs/toolkit';
|
|
8
7
|
|
|
9
8
|
declare const styles$t: {
|
|
10
9
|
readonly "content": string;
|
|
@@ -24,11 +23,13 @@ type ContentProps = {
|
|
|
24
23
|
cropText?: boolean;
|
|
25
24
|
className?: string;
|
|
26
25
|
lineClamp?: boolean;
|
|
26
|
+
children: React.ReactNode;
|
|
27
27
|
};
|
|
28
28
|
interface TitleProps extends React.HTMLProps<HTMLHeadingElement> {
|
|
29
29
|
cropText?: boolean;
|
|
30
30
|
className?: string;
|
|
31
31
|
as?: string;
|
|
32
|
+
children: React.ReactNode;
|
|
32
33
|
}
|
|
33
34
|
interface CardComposition {
|
|
34
35
|
Image: FC<ImageProps>;
|
|
@@ -36,7 +37,9 @@ interface CardComposition {
|
|
|
36
37
|
Title: FC<TitleProps>;
|
|
37
38
|
}
|
|
38
39
|
type CardStyles = typeof styles$t;
|
|
39
|
-
declare const Card: FC
|
|
40
|
+
declare const Card: FC<{
|
|
41
|
+
children: React.ReactNode;
|
|
42
|
+
}> & CardComposition;
|
|
40
43
|
|
|
41
44
|
declare const styles$s: {
|
|
42
45
|
readonly "root": string;
|
|
@@ -167,6 +170,7 @@ declare const styles$n: {
|
|
|
167
170
|
type SuggestionListStyles = typeof styles$n;
|
|
168
171
|
interface Props$1 {
|
|
169
172
|
withDivider?: boolean;
|
|
173
|
+
children: React.ReactNode;
|
|
170
174
|
}
|
|
171
175
|
declare const SuggestionList: React.FC<Props$1>;
|
|
172
176
|
|
|
@@ -1409,7 +1413,7 @@ interface StoreConfig {
|
|
|
1409
1413
|
middleware?: Middleware[];
|
|
1410
1414
|
preloadedState?: any;
|
|
1411
1415
|
}
|
|
1412
|
-
declare const reducers: redux.Reducer<
|
|
1416
|
+
declare const reducers: redux.Reducer<{
|
|
1413
1417
|
assistants: State$2;
|
|
1414
1418
|
auth: State$3;
|
|
1415
1419
|
conversation: State$4;
|
|
@@ -1469,15 +1473,14 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
1469
1473
|
overlayCollapsedUserOverwrite: boolean;
|
|
1470
1474
|
};
|
|
1471
1475
|
textSuggestions: TextSuggestionState;
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
handlingTime: State$7;
|
|
1476
|
+
}, redux.UnknownAction, Partial<{
|
|
1477
|
+
assistants: State$2 | undefined;
|
|
1478
|
+
auth: State$3 | undefined;
|
|
1479
|
+
conversation: State$4 | undefined;
|
|
1480
|
+
contentTypes: State$5 | undefined;
|
|
1481
|
+
passwordlessToken: State$6 | undefined;
|
|
1482
|
+
entities: State$1 | undefined;
|
|
1483
|
+
handlingTime: State$7 | undefined;
|
|
1481
1484
|
info: {
|
|
1482
1485
|
agentInfo?: AgentInfo;
|
|
1483
1486
|
agentSettings: unknown;
|
|
@@ -1485,8 +1488,8 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
1485
1488
|
customData?: CustomData;
|
|
1486
1489
|
platformVariables?: VariableMapping;
|
|
1487
1490
|
fetchState: FetchState;
|
|
1488
|
-
};
|
|
1489
|
-
input: State$8;
|
|
1491
|
+
} | undefined;
|
|
1492
|
+
input: State$8 | undefined;
|
|
1490
1493
|
settings: {
|
|
1491
1494
|
locale: Locale;
|
|
1492
1495
|
deanonymize: boolean;
|
|
@@ -1518,19 +1521,20 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
1518
1521
|
enableSuggestionFeedback: boolean;
|
|
1519
1522
|
enableFeedbackForm: boolean;
|
|
1520
1523
|
hasKeyboardInput: boolean;
|
|
1521
|
-
};
|
|
1522
|
-
profile: State$9;
|
|
1523
|
-
search: State$b;
|
|
1524
|
-
styleSuggestions: State$a;
|
|
1524
|
+
} | undefined;
|
|
1525
|
+
profile: State$9 | undefined;
|
|
1526
|
+
search: State$b | undefined;
|
|
1527
|
+
styleSuggestions: State$a | undefined;
|
|
1525
1528
|
ui: {
|
|
1526
1529
|
showTabHint: boolean;
|
|
1527
1530
|
inputHasFocus: boolean;
|
|
1528
1531
|
overlayCollapsed: boolean;
|
|
1529
1532
|
openOverlayWhenTyping: boolean;
|
|
1530
1533
|
overlayCollapsedUserOverwrite: boolean;
|
|
1531
|
-
};
|
|
1532
|
-
textSuggestions: TextSuggestionState;
|
|
1533
|
-
}
|
|
1534
|
+
} | undefined;
|
|
1535
|
+
textSuggestions: TextSuggestionState | undefined;
|
|
1536
|
+
}>>;
|
|
1537
|
+
declare function createStore(config: StoreConfig): _reduxjs_toolkit.EnhancedStore<{
|
|
1534
1538
|
assistants: State$2;
|
|
1535
1539
|
auth: State$3;
|
|
1536
1540
|
conversation: State$4;
|
|
@@ -1590,10 +1594,9 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
1590
1594
|
overlayCollapsedUserOverwrite: boolean;
|
|
1591
1595
|
};
|
|
1592
1596
|
textSuggestions: TextSuggestionState;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
}>[]>;
|
|
1597
|
+
}, redux.UnknownAction, Tuple<[redux.StoreEnhancer<{
|
|
1598
|
+
dispatch: {};
|
|
1599
|
+
}>, redux.StoreEnhancer]>>;
|
|
1597
1600
|
type RootState = ReturnType<typeof reducers>;
|
|
1598
1601
|
type Store = ReturnType<typeof createStore>;
|
|
1599
1602
|
|
|
@@ -2082,6 +2085,7 @@ declare class DeepdeskSDK {
|
|
|
2082
2085
|
private inlineSuggestions;
|
|
2083
2086
|
private aboveSuggestions;
|
|
2084
2087
|
private floatingMenu;
|
|
2088
|
+
private widgetElement;
|
|
2085
2089
|
private widgetRoot;
|
|
2086
2090
|
private dynamicThunkObject;
|
|
2087
2091
|
isMounted: boolean;
|
|
@@ -2089,7 +2093,7 @@ declare class DeepdeskSDK {
|
|
|
2089
2093
|
private shouldRender;
|
|
2090
2094
|
store: Store;
|
|
2091
2095
|
constructor({ deepdeskUrl, version, locale, token, fetch, productName, createCustomChannel, }: SDKOptions);
|
|
2092
|
-
get state():
|
|
2096
|
+
get state(): {
|
|
2093
2097
|
assistants: State$2;
|
|
2094
2098
|
auth: State$3;
|
|
2095
2099
|
conversation: State$4;
|