@contenify/chatbot 0.1.4 → 1.0.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.
package/README.md CHANGED
@@ -40,8 +40,9 @@ import '@contenify/chatbot/styles.css'
40
40
 
41
41
  ```tsx
42
42
  <ContenifyChatBot
43
- onNavigate={(path) => router.push(path)}
44
- onLogout={() => signOut()}
43
+ apiUrl="https://api.example.com/api"
44
+ apiKey="your-api-key"
45
+ domain="example.com"
45
46
  />
46
47
  ```
47
48
 
package/dist/index.d.mts CHANGED
@@ -71,10 +71,18 @@ interface CreateContentPayload {
71
71
  };
72
72
  }
73
73
 
74
+ declare function setConfig(config: {
75
+ apiUrl?: string;
76
+ apiKey?: string;
77
+ domain?: string;
78
+ }): void;
79
+
74
80
  interface ContenifyChatBotProps {
75
- onNavigate?: (path: string) => void;
76
- onLogout?: () => void;
81
+ apiUrl?: string;
82
+ apiKey?: string;
83
+ domain?: string;
84
+ onPost?: (content: string, keywords: string[]) => void;
77
85
  }
78
- declare function ContenifyChatBot({ onNavigate, onLogout }: ContenifyChatBotProps): react_jsx_runtime.JSX.Element;
86
+ declare function ContenifyChatBot({ apiUrl, apiKey, domain, onPost }: ContenifyChatBotProps): react_jsx_runtime.JSX.Element;
79
87
 
80
- export { type AnalyzeInputResponse, type AppearancePreferences, type ChatbotPreferences, ContenifyChatBot, type ContenifyChatBotProps, type ContentOption, type ContentPreferences, type CreateContentPayload, type LocalizationPreferences, type Preferences, type RecreateSettings, ContenifyChatBot as default };
88
+ export { type AnalyzeInputResponse, type AppearancePreferences, type ChatbotPreferences, ContenifyChatBot, type ContenifyChatBotProps, type ContentOption, type ContentPreferences, type CreateContentPayload, type LocalizationPreferences, type Preferences, type RecreateSettings, ContenifyChatBot as default, setConfig };
package/dist/index.d.ts CHANGED
@@ -71,10 +71,18 @@ interface CreateContentPayload {
71
71
  };
72
72
  }
73
73
 
74
+ declare function setConfig(config: {
75
+ apiUrl?: string;
76
+ apiKey?: string;
77
+ domain?: string;
78
+ }): void;
79
+
74
80
  interface ContenifyChatBotProps {
75
- onNavigate?: (path: string) => void;
76
- onLogout?: () => void;
81
+ apiUrl?: string;
82
+ apiKey?: string;
83
+ domain?: string;
84
+ onPost?: (content: string, keywords: string[]) => void;
77
85
  }
78
- declare function ContenifyChatBot({ onNavigate, onLogout }: ContenifyChatBotProps): react_jsx_runtime.JSX.Element;
86
+ declare function ContenifyChatBot({ apiUrl, apiKey, domain, onPost }: ContenifyChatBotProps): react_jsx_runtime.JSX.Element;
79
87
 
80
- export { type AnalyzeInputResponse, type AppearancePreferences, type ChatbotPreferences, ContenifyChatBot, type ContenifyChatBotProps, type ContentOption, type ContentPreferences, type CreateContentPayload, type LocalizationPreferences, type Preferences, type RecreateSettings, ContenifyChatBot as default };
88
+ export { type AnalyzeInputResponse, type AppearancePreferences, type ChatbotPreferences, ContenifyChatBot, type ContenifyChatBotProps, type ContentOption, type ContentPreferences, type CreateContentPayload, type LocalizationPreferences, type Preferences, type RecreateSettings, ContenifyChatBot as default, setConfig };