@contenify/chatbot 0.1.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 ADDED
@@ -0,0 +1,36 @@
1
+ This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2
+
3
+ ## Getting Started
4
+
5
+ First, run the development server:
6
+
7
+ ```bash
8
+ npm run dev
9
+ # or
10
+ yarn dev
11
+ # or
12
+ pnpm dev
13
+ # or
14
+ bun dev
15
+ ```
16
+
17
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
+
19
+ You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20
+
21
+ This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22
+
23
+ ## Learn More
24
+
25
+ To learn more about Next.js, take a look at the following resources:
26
+
27
+ - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28
+ - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29
+
30
+ You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31
+
32
+ ## Deploy on Vercel
33
+
34
+ The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35
+
36
+ Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
@@ -0,0 +1,80 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface ChatbotPreferences {
4
+ name: string;
5
+ logoUrl?: string;
6
+ primaryColor: string;
7
+ secondaryColor: string;
8
+ theme: 'light' | 'dark' | 'system';
9
+ }
10
+ interface LocalizationPreferences {
11
+ country: string;
12
+ state: string;
13
+ cities: string[];
14
+ language: string;
15
+ locale: string;
16
+ timezone: string;
17
+ }
18
+ interface AppearancePreferences {
19
+ showSidebar: boolean;
20
+ showHeader: boolean;
21
+ activeThemePreset: string | null;
22
+ showNewsPanel: boolean;
23
+ }
24
+ interface ContentPreferences {
25
+ tone: 'formal' | 'casual' | 'engaging' | 'professional';
26
+ style: 'news' | 'blog' | 'editorial' | 'summary';
27
+ wordCount: 'short' | 'medium' | 'long';
28
+ includeQuotes: boolean;
29
+ includeFAQ: boolean;
30
+ targetAudience: string;
31
+ }
32
+ interface Preferences {
33
+ chatbot: ChatbotPreferences;
34
+ localization: LocalizationPreferences;
35
+ appearance: AppearancePreferences;
36
+ content: ContentPreferences;
37
+ _id?: string;
38
+ user?: string;
39
+ isActive?: boolean;
40
+ createdAt?: string;
41
+ updatedAt?: string;
42
+ }
43
+
44
+ interface ContentOption {
45
+ id: string;
46
+ name: string;
47
+ description?: string;
48
+ icon?: string;
49
+ }
50
+ interface RecreateSettings {
51
+ tones: string[];
52
+ styles: string[];
53
+ wordCounts?: string[];
54
+ }
55
+ interface AnalyzeInputResponse {
56
+ hasUrl: boolean;
57
+ url?: string;
58
+ content?: string;
59
+ wordCount?: number;
60
+ options: ContentOption[];
61
+ recreateSettings?: RecreateSettings;
62
+ }
63
+ interface CreateContentPayload {
64
+ url: string;
65
+ content: string;
66
+ actionId: string;
67
+ settings?: {
68
+ tone?: string;
69
+ style?: string;
70
+ wordCount?: string;
71
+ };
72
+ }
73
+
74
+ interface ContenifyChatBotProps {
75
+ onNavigate?: (path: string) => void;
76
+ onLogout?: () => void;
77
+ }
78
+ declare function ContenifyChatBot({ onNavigate, onLogout }: ContenifyChatBotProps): react_jsx_runtime.JSX.Element;
79
+
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 };
@@ -0,0 +1,80 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface ChatbotPreferences {
4
+ name: string;
5
+ logoUrl?: string;
6
+ primaryColor: string;
7
+ secondaryColor: string;
8
+ theme: 'light' | 'dark' | 'system';
9
+ }
10
+ interface LocalizationPreferences {
11
+ country: string;
12
+ state: string;
13
+ cities: string[];
14
+ language: string;
15
+ locale: string;
16
+ timezone: string;
17
+ }
18
+ interface AppearancePreferences {
19
+ showSidebar: boolean;
20
+ showHeader: boolean;
21
+ activeThemePreset: string | null;
22
+ showNewsPanel: boolean;
23
+ }
24
+ interface ContentPreferences {
25
+ tone: 'formal' | 'casual' | 'engaging' | 'professional';
26
+ style: 'news' | 'blog' | 'editorial' | 'summary';
27
+ wordCount: 'short' | 'medium' | 'long';
28
+ includeQuotes: boolean;
29
+ includeFAQ: boolean;
30
+ targetAudience: string;
31
+ }
32
+ interface Preferences {
33
+ chatbot: ChatbotPreferences;
34
+ localization: LocalizationPreferences;
35
+ appearance: AppearancePreferences;
36
+ content: ContentPreferences;
37
+ _id?: string;
38
+ user?: string;
39
+ isActive?: boolean;
40
+ createdAt?: string;
41
+ updatedAt?: string;
42
+ }
43
+
44
+ interface ContentOption {
45
+ id: string;
46
+ name: string;
47
+ description?: string;
48
+ icon?: string;
49
+ }
50
+ interface RecreateSettings {
51
+ tones: string[];
52
+ styles: string[];
53
+ wordCounts?: string[];
54
+ }
55
+ interface AnalyzeInputResponse {
56
+ hasUrl: boolean;
57
+ url?: string;
58
+ content?: string;
59
+ wordCount?: number;
60
+ options: ContentOption[];
61
+ recreateSettings?: RecreateSettings;
62
+ }
63
+ interface CreateContentPayload {
64
+ url: string;
65
+ content: string;
66
+ actionId: string;
67
+ settings?: {
68
+ tone?: string;
69
+ style?: string;
70
+ wordCount?: string;
71
+ };
72
+ }
73
+
74
+ interface ContenifyChatBotProps {
75
+ onNavigate?: (path: string) => void;
76
+ onLogout?: () => void;
77
+ }
78
+ declare function ContenifyChatBot({ onNavigate, onLogout }: ContenifyChatBotProps): react_jsx_runtime.JSX.Element;
79
+
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 };