@nlxai/touchpoint-ui 1.0.4-alpha.3 → 1.0.4

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.
@@ -0,0 +1,10 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { ColorMode, Theme } from './types';
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const Container: FC<{
7
+ children: ReactNode;
8
+ mode: ColorMode;
9
+ theme: Partial<Theme>;
10
+ }>;
package/lib/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BotMessage } from '@nlxai/chat-core';
1
+ import { BotMessage, ConversationHandler } from '@nlxai/chat-core';
2
2
  import { FC } from 'react';
3
3
  /**
4
4
  * Window size configuration
@@ -34,6 +34,10 @@ export type CustomModalityComponent<Data> = FC<{
34
34
  * The payload of the Custom Modality. The schema is defined in Dialog Studio settings.
35
35
  */
36
36
  data: Data;
37
+ /**
38
+ * Conversation handler instance
39
+ */
40
+ conversationHandler: ConversationHandler;
37
41
  }>;
38
42
  /**
39
43
  * The full theme expressed as CSS custom properties
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nlxai/touchpoint-ui",
3
- "version": "1.0.4-alpha.3",
3
+ "version": "1.0.4",
4
4
  "description": "Web UI for Touchpoint",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -24,7 +24,7 @@
24
24
  "tsc": "tsc"
25
25
  },
26
26
  "dependencies": {
27
- "@nlxai/chat-core": "^1.0.4-alpha.0",
27
+ "@nlxai/chat-core": "^1.0.4",
28
28
  "@react-hookz/web": "^25.0.1",
29
29
  "@react-input/mask": "^2.0.4",
30
30
  "clsx": "^2.1.1",
@@ -50,11 +50,11 @@
50
50
  "postcss": "^8.4.38",
51
51
  "tailwindcss": "^3.4.3",
52
52
  "typescript": "^5.4.5",
53
- "vite": "^5.2.11",
53
+ "vite": "^4.5.6",
54
54
  "vite-plugin-dts": "^4.5.0"
55
55
  },
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "gitHead": "cb23bacfa67ca5522b9e7943217a7b9c9005f791"
59
+ "gitHead": "27ff05880575d5e4656c5d22dd85d29e9490d9d2"
60
60
  }
package/lib/context.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { ConversationHandler } from '@nlxai/chat-core';
2
- export interface ContextValue {
3
- handler: ConversationHandler | null;
4
- }
5
- export declare const Context: import('react').Context<ContextValue>;
6
- export declare const useTouchpointContext: () => ContextValue;