@nlxai/touchpoint-ui 1.1.1 → 1.1.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/index.html +44 -1
- package/lib/components/Ripple.d.ts +2 -1
- package/lib/components/ui/LaunchButton.d.ts +5 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +2113 -2088
- package/lib/index.umd.js +30 -30
- package/lib/types.d.ts +14 -1
- package/package.json +2 -2
package/lib/types.d.ts
CHANGED
|
@@ -156,6 +156,19 @@ export interface Theme {
|
|
|
156
156
|
* @param context - context set via TouchpointConfiguration.initialContext
|
|
157
157
|
*/
|
|
158
158
|
export type InitializeConversation = (handler: ConversationHandler, context?: Context) => void;
|
|
159
|
+
/**
|
|
160
|
+
* Fully custom launch icon
|
|
161
|
+
*/
|
|
162
|
+
export type CustomLaunchButton = ComponentType<{
|
|
163
|
+
/**
|
|
164
|
+
* Class name injected into the component mainly to take care of positioning and z-index. Can be combined with more presentational and sizing-related class names.
|
|
165
|
+
*/
|
|
166
|
+
className?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Click handler that expands Touchpoint, without the caller having to implement this based on Touchpoint instance methods.
|
|
169
|
+
*/
|
|
170
|
+
onClick?: () => void;
|
|
171
|
+
}>;
|
|
159
172
|
/**
|
|
160
173
|
* Input type for the experience
|
|
161
174
|
*/
|
|
@@ -185,7 +198,7 @@ export interface TouchpointConfiguration {
|
|
|
185
198
|
*
|
|
186
199
|
* When set to `false`, no launch button is shown at all. When not set or set to `true`, the default launch icon is rendered.
|
|
187
200
|
*/
|
|
188
|
-
launchIcon?: string | boolean;
|
|
201
|
+
launchIcon?: string | boolean | CustomLaunchButton;
|
|
189
202
|
/**
|
|
190
203
|
* Specifies whether the user message has bubbles or not
|
|
191
204
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlxai/touchpoint-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Web UI for Touchpoint",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "17c1d6c70de4fc15cf4a0bb5cbab42a16a47dc5f"
|
|
62
62
|
}
|