@debales/ai 1.1.24 → 1.1.25-canary.0

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.
@@ -12,6 +12,7 @@ interface AnimatedSuggestionProps {
12
12
  isHighlighted?: boolean;
13
13
  onClick?: (message: string) => void;
14
14
  onClose?: () => void;
15
+ isLeft?: boolean;
15
16
  }
16
17
  declare const AnimatedSuggestion: React.FC<AnimatedSuggestionProps>;
17
18
  export default AnimatedSuggestion;
@@ -0,0 +1,13 @@
1
+ import { default as React, InputHTMLAttributes } from 'react';
2
+ export interface FormError {
3
+ field: "name" | "email" | "phone";
4
+ message: string;
5
+ }
6
+ interface FloatingFormFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChange"> {
7
+ label: string;
8
+ FieldError: FormError | null;
9
+ value: string;
10
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
11
+ }
12
+ declare const FloatingFormField: React.FC<FloatingFormFieldProps>;
13
+ export default FloatingFormField;
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+ interface FloatingLabelInputProps {
3
+ label: string;
4
+ type?: string;
5
+ name: string;
6
+ value: string;
7
+ onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
8
+ placeholder?: string;
9
+ required?: boolean;
10
+ error?: string;
11
+ isCollectiveBot?: boolean;
12
+ }
13
+ interface FloatingLabelTextareaProps {
14
+ label: string;
15
+ name: string;
16
+ value: string;
17
+ onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
18
+ placeholder?: string;
19
+ required?: boolean;
20
+ error?: string;
21
+ rows?: number;
22
+ isCollectiveBot?: boolean;
23
+ }
24
+ export declare const FloatingLabelInput: React.FC<FloatingLabelInputProps>;
25
+ export declare const FloatingLabelTextarea: React.FC<FloatingLabelTextareaProps>;
26
+ export {};
@@ -17,7 +17,7 @@ export interface DebalesContextType {
17
17
  input: string;
18
18
  pendingQuestion: SuggestedQuestionAnswer | null;
19
19
  isFormClosedByUser: boolean;
20
- onSendMessage: (message: string, answer?: string, products?: Product[], fromKlaviyo?: boolean, leading_queries?: string[], followUpQuestion?: string) => Promise<void>;
20
+ onSendMessage: (message: string, answer?: string, products?: Product[], fromKlaviyo?: boolean, leading_queries?: string[], followUpQuestion?: string, messType?: string) => Promise<void>;
21
21
  setIsKlaviyoMessage: React.Dispatch<React.SetStateAction<boolean>>;
22
22
  setShowUserInfoModel: React.Dispatch<React.SetStateAction<boolean>>;
23
23
  setPendingBulkItems: React.Dispatch<React.SetStateAction<VariantQuantity[]>>;
@@ -51,4 +51,5 @@ export interface WebsocketMessageEvent extends MessageEvent {
51
51
  answer?: string;
52
52
  products?: Product[];
53
53
  followUpQuestion?: string;
54
+ messType?: string;
54
55
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@debales/ai",
3
3
  "private": false,
4
4
  "access": "public",
5
- "version": "1.1.24",
5
+ "version": "1.1.25-canary.0",
6
6
  "type": "module",
7
7
  "main": "./dist/module/ai.js",
8
8
  "types": "./dist/module/index.d.ts",