@namiruai/react 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Namiru.ai
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,66 @@
1
+ # @namiru/react
2
+
3
+ React wrapper for the [Namiru.ai](https://namiru.ai) chat widget -- add AI customer support to your React app.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @namiru/react
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### Floating Button (default)
14
+
15
+ ```tsx
16
+ import { NamiruChat } from '@namiru/react';
17
+
18
+ function App() {
19
+ return (
20
+ <NamiruChat
21
+ agentId="your-agent-id"
22
+ position="bottom-right"
23
+ />
24
+ );
25
+ }
26
+ ```
27
+
28
+ ### Inline Mode
29
+
30
+ ```tsx
31
+ import { NamiruChat } from '@namiru/react';
32
+
33
+ function App() {
34
+ return (
35
+ <div style={{ width: '400px', height: '600px' }}>
36
+ <NamiruChat
37
+ agentId="your-agent-id"
38
+ mode="inline"
39
+ width="100%"
40
+ height="100%"
41
+ />
42
+ </div>
43
+ );
44
+ }
45
+ ```
46
+
47
+ ### Props
48
+
49
+ | Prop | Type | Description |
50
+ |------|------|-------------|
51
+ | `agentId` | `string` | **Required.** Your Namiru agent ID. |
52
+ | `serverUrl` | `string` | Custom server URL (defaults to Namiru cloud). |
53
+ | `mode` | `'button' \| 'inline'` | Display mode. Default: `'button'`. |
54
+ | `position` | `'bottom-left' \| 'bottom-right'` | Button position. Default: `'bottom-right'`. |
55
+ | `width` | `string` | Width for inline mode. |
56
+ | `height` | `string` | Height for inline mode. |
57
+ | `onLeadCapture` | `(lead) => void` | Callback when a lead is captured. |
58
+ | `onSessionStart` | `(sessionId) => void` | Callback when a chat session starts. |
59
+
60
+ ## Documentation
61
+
62
+ For full documentation, visit [namiru.ai](https://namiru.ai).
63
+
64
+ ## License
65
+
66
+ MIT
@@ -0,0 +1,19 @@
1
+ import type { LeadCaptureData, PreChatCustomConfig } from "@namiruai/chat";
2
+ export interface NamiruChatProps {
3
+ agentId: string;
4
+ serverUrl?: string;
5
+ mode?: "button" | "inline";
6
+ position?: "bottom-left" | "bottom-right";
7
+ preChatEnabled?: boolean;
8
+ preChatTemplate?: "ecommerce" | "saas" | "services" | "custom" | null;
9
+ preChatCustom?: PreChatCustomConfig;
10
+ greetingDelay?: number;
11
+ width?: string;
12
+ height?: string;
13
+ onLeadCapture?: (lead: LeadCaptureData) => void;
14
+ onFeedback?: (rating: "up" | "down") => void;
15
+ onSessionStart?: (sessionId: string) => void;
16
+ onSessionEnd?: (sessionId: string) => void;
17
+ }
18
+ export declare function NamiruChat(props: NamiruChatProps): import("react/jsx-runtime").JSX.Element;
19
+ export type { NamiruChatConfig, NamiruChatInstance, LeadCaptureData } from "@namiruai/chat";
@@ -0,0 +1,2 @@
1
+ import{useRef as a,useEffect as d}from"react";import{jsx as o}from"react/jsx-runtime";function m(e){let t=a(null),n=a(null),i=a(e.agentId);return d(()=>{let r=!1;async function u(){let{init:h}=await import("@namiruai/chat");if(r||!t.current)return;let C={agentId:e.agentId,serverUrl:e.serverUrl,mode:e.mode,position:e.position,container:e.mode==="inline"?t.current:void 0,preChatEnabled:e.preChatEnabled,preChatTemplate:e.preChatTemplate,preChatCustom:e.preChatCustom,greetingDelay:e.greetingDelay,width:e.width,height:e.height,onLeadCapture:e.onLeadCapture,onFeedback:e.onFeedback,onSessionStart:e.onSessionStart,onSessionEnd:e.onSessionEnd};n.current=h(C)}return u(),()=>{r=!0,n.current?.destroy(),n.current=null}},[e.agentId]),d(()=>{if(i.current!==e.agentId){i.current=e.agentId;return}n.current?.updateConfig({serverUrl:e.serverUrl,mode:e.mode,position:e.position,preChatEnabled:e.preChatEnabled,preChatTemplate:e.preChatTemplate,preChatCustom:e.preChatCustom,greetingDelay:e.greetingDelay,width:e.width,height:e.height,onLeadCapture:e.onLeadCapture,onFeedback:e.onFeedback,onSessionStart:e.onSessionStart,onSessionEnd:e.onSessionEnd})},[e.serverUrl,e.mode,e.position,e.preChatEnabled,e.preChatTemplate,e.preChatCustom,e.greetingDelay,e.width,e.height,e.onLeadCapture,e.onFeedback,e.onSessionStart,e.onSessionEnd]),e.mode==="inline"?o("div",{ref:t,style:{width:"100%",height:"100%"}}):o("div",{ref:t})}export{m as NamiruChat};
2
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.tsx"],
4
+ "sourcesContent": ["import { useRef, useEffect } from \"react\";\nimport type {\n NamiruChatConfig,\n NamiruChatInstance,\n LeadCaptureData,\n PreChatCustomConfig,\n} from \"@namiruai/chat\";\n\nexport interface NamiruChatProps {\n agentId: string;\n serverUrl?: string;\n mode?: \"button\" | \"inline\";\n position?: \"bottom-left\" | \"bottom-right\";\n preChatEnabled?: boolean;\n preChatTemplate?: \"ecommerce\" | \"saas\" | \"services\" | \"custom\" | null;\n preChatCustom?: PreChatCustomConfig;\n greetingDelay?: number;\n width?: string;\n height?: string;\n onLeadCapture?: (lead: LeadCaptureData) => void;\n onFeedback?: (rating: \"up\" | \"down\") => void;\n onSessionStart?: (sessionId: string) => void;\n onSessionEnd?: (sessionId: string) => void;\n}\n\nexport function NamiruChat(props: NamiruChatProps) {\n const containerRef = useRef<HTMLDivElement>(null);\n const instanceRef = useRef<NamiruChatInstance | null>(null);\n const prevAgentIdRef = useRef<string>(props.agentId);\n\n useEffect(() => {\n let destroyed = false;\n\n async function initialize() {\n const { init } = await import(\"@namiruai/chat\");\n\n if (destroyed || !containerRef.current) return;\n\n const config: NamiruChatConfig = {\n agentId: props.agentId,\n serverUrl: props.serverUrl,\n mode: props.mode,\n position: props.position,\n container: props.mode === \"inline\" ? containerRef.current : undefined,\n preChatEnabled: props.preChatEnabled,\n preChatTemplate: props.preChatTemplate,\n preChatCustom: props.preChatCustom,\n greetingDelay: props.greetingDelay,\n width: props.width,\n height: props.height,\n onLeadCapture: props.onLeadCapture,\n onFeedback: props.onFeedback,\n onSessionStart: props.onSessionStart,\n onSessionEnd: props.onSessionEnd,\n };\n\n instanceRef.current = init(config);\n }\n\n initialize();\n\n return () => {\n destroyed = true;\n instanceRef.current?.destroy();\n instanceRef.current = null;\n };\n }, [props.agentId]);\n\n // Update config on prop changes (except agentId which triggers re-init)\n useEffect(() => {\n if (prevAgentIdRef.current !== props.agentId) {\n prevAgentIdRef.current = props.agentId;\n return;\n }\n\n instanceRef.current?.updateConfig({\n serverUrl: props.serverUrl,\n mode: props.mode,\n position: props.position,\n preChatEnabled: props.preChatEnabled,\n preChatTemplate: props.preChatTemplate,\n preChatCustom: props.preChatCustom,\n greetingDelay: props.greetingDelay,\n width: props.width,\n height: props.height,\n onLeadCapture: props.onLeadCapture,\n onFeedback: props.onFeedback,\n onSessionStart: props.onSessionStart,\n onSessionEnd: props.onSessionEnd,\n });\n }, [\n props.serverUrl,\n props.mode,\n props.position,\n props.preChatEnabled,\n props.preChatTemplate,\n props.preChatCustom,\n props.greetingDelay,\n props.width,\n props.height,\n props.onLeadCapture,\n props.onFeedback,\n props.onSessionStart,\n props.onSessionEnd,\n ]);\n\n if (props.mode === \"inline\") {\n return <div ref={containerRef} style={{ width: \"100%\", height: \"100%\" }} />;\n }\n\n return <div ref={containerRef} />;\n}\n\nexport type { NamiruChatConfig, NamiruChatInstance, LeadCaptureData } from \"@namiruai/chat\";\n"],
5
+ "mappings": "AAAA,OAAS,UAAAA,EAAQ,aAAAC,MAAiB,QA2GvB,cAAAC,MAAA,oBAlFJ,SAASC,EAAWC,EAAwB,CACjD,IAAMC,EAAeL,EAAuB,IAAI,EAC1CM,EAAcN,EAAkC,IAAI,EACpDO,EAAiBP,EAAeI,EAAM,OAAO,EA8EnD,OA5EAH,EAAU,IAAM,CACd,IAAIO,EAAY,GAEhB,eAAeC,GAAa,CAC1B,GAAM,CAAE,KAAAC,CAAK,EAAI,KAAM,QAAO,gBAAgB,EAE9C,GAAIF,GAAa,CAACH,EAAa,QAAS,OAExC,IAAMM,EAA2B,CAC/B,QAASP,EAAM,QACf,UAAWA,EAAM,UACjB,KAAMA,EAAM,KACZ,SAAUA,EAAM,SAChB,UAAWA,EAAM,OAAS,SAAWC,EAAa,QAAU,OAC5D,eAAgBD,EAAM,eACtB,gBAAiBA,EAAM,gBACvB,cAAeA,EAAM,cACrB,cAAeA,EAAM,cACrB,MAAOA,EAAM,MACb,OAAQA,EAAM,OACd,cAAeA,EAAM,cACrB,WAAYA,EAAM,WAClB,eAAgBA,EAAM,eACtB,aAAcA,EAAM,YACtB,EAEAE,EAAY,QAAUI,EAAKC,CAAM,CACnC,CAEA,OAAAF,EAAW,EAEJ,IAAM,CACXD,EAAY,GACZF,EAAY,SAAS,QAAQ,EAC7BA,EAAY,QAAU,IACxB,CACF,EAAG,CAACF,EAAM,OAAO,CAAC,EAGlBH,EAAU,IAAM,CACd,GAAIM,EAAe,UAAYH,EAAM,QAAS,CAC5CG,EAAe,QAAUH,EAAM,QAC/B,MACF,CAEAE,EAAY,SAAS,aAAa,CAChC,UAAWF,EAAM,UACjB,KAAMA,EAAM,KACZ,SAAUA,EAAM,SAChB,eAAgBA,EAAM,eACtB,gBAAiBA,EAAM,gBACvB,cAAeA,EAAM,cACrB,cAAeA,EAAM,cACrB,MAAOA,EAAM,MACb,OAAQA,EAAM,OACd,cAAeA,EAAM,cACrB,WAAYA,EAAM,WAClB,eAAgBA,EAAM,eACtB,aAAcA,EAAM,YACtB,CAAC,CACH,EAAG,CACDA,EAAM,UACNA,EAAM,KACNA,EAAM,SACNA,EAAM,eACNA,EAAM,gBACNA,EAAM,cACNA,EAAM,cACNA,EAAM,MACNA,EAAM,OACNA,EAAM,cACNA,EAAM,WACNA,EAAM,eACNA,EAAM,YACR,CAAC,EAEGA,EAAM,OAAS,SACVF,EAAC,OAAI,IAAKG,EAAc,MAAO,CAAE,MAAO,OAAQ,OAAQ,MAAO,EAAG,EAGpEH,EAAC,OAAI,IAAKG,EAAc,CACjC",
6
+ "names": ["useRef", "useEffect", "jsx", "NamiruChat", "props", "containerRef", "instanceRef", "prevAgentIdRef", "destroyed", "initialize", "init", "config"]
7
+ }
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";var m=Object.create;var d=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var s=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var S=(e,t)=>{for(var n in t)d(e,n,{get:t[n],enumerable:!0})},u=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of c(t))!f.call(e,a)&&a!==n&&d(e,a,{get:()=>t[a],enumerable:!(r=g(t,a))||r.enumerable});return e};var b=(e,t,n)=>(n=e!=null?m(s(e)):{},u(t||!e||!e.__esModule?d(n,"default",{value:e,enumerable:!0}):n,e)),v=e=>u(d({},"__esModule",{value:!0}),e);var I={};S(I,{NamiruChat:()=>E});module.exports=v(I);var i=require("react"),o=require("react/jsx-runtime");function E(e){let t=(0,i.useRef)(null),n=(0,i.useRef)(null),r=(0,i.useRef)(e.agentId);return(0,i.useEffect)(()=>{let a=!1;async function h(){let{init:C}=await import("@namiruai/chat");if(a||!t.current)return;let l={agentId:e.agentId,serverUrl:e.serverUrl,mode:e.mode,position:e.position,container:e.mode==="inline"?t.current:void 0,preChatEnabled:e.preChatEnabled,preChatTemplate:e.preChatTemplate,preChatCustom:e.preChatCustom,greetingDelay:e.greetingDelay,width:e.width,height:e.height,onLeadCapture:e.onLeadCapture,onFeedback:e.onFeedback,onSessionStart:e.onSessionStart,onSessionEnd:e.onSessionEnd};n.current=C(l)}return h(),()=>{a=!0,n.current?.destroy(),n.current=null}},[e.agentId]),(0,i.useEffect)(()=>{if(r.current!==e.agentId){r.current=e.agentId;return}n.current?.updateConfig({serverUrl:e.serverUrl,mode:e.mode,position:e.position,preChatEnabled:e.preChatEnabled,preChatTemplate:e.preChatTemplate,preChatCustom:e.preChatCustom,greetingDelay:e.greetingDelay,width:e.width,height:e.height,onLeadCapture:e.onLeadCapture,onFeedback:e.onFeedback,onSessionStart:e.onSessionStart,onSessionEnd:e.onSessionEnd})},[e.serverUrl,e.mode,e.position,e.preChatEnabled,e.preChatTemplate,e.preChatCustom,e.greetingDelay,e.width,e.height,e.onLeadCapture,e.onFeedback,e.onSessionStart,e.onSessionEnd]),e.mode==="inline"?(0,o.jsx)("div",{ref:t,style:{width:"100%",height:"100%"}}):(0,o.jsx)("div",{ref:t})}
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.tsx"],
4
+ "sourcesContent": ["import { useRef, useEffect } from \"react\";\nimport type {\n NamiruChatConfig,\n NamiruChatInstance,\n LeadCaptureData,\n PreChatCustomConfig,\n} from \"@namiruai/chat\";\n\nexport interface NamiruChatProps {\n agentId: string;\n serverUrl?: string;\n mode?: \"button\" | \"inline\";\n position?: \"bottom-left\" | \"bottom-right\";\n preChatEnabled?: boolean;\n preChatTemplate?: \"ecommerce\" | \"saas\" | \"services\" | \"custom\" | null;\n preChatCustom?: PreChatCustomConfig;\n greetingDelay?: number;\n width?: string;\n height?: string;\n onLeadCapture?: (lead: LeadCaptureData) => void;\n onFeedback?: (rating: \"up\" | \"down\") => void;\n onSessionStart?: (sessionId: string) => void;\n onSessionEnd?: (sessionId: string) => void;\n}\n\nexport function NamiruChat(props: NamiruChatProps) {\n const containerRef = useRef<HTMLDivElement>(null);\n const instanceRef = useRef<NamiruChatInstance | null>(null);\n const prevAgentIdRef = useRef<string>(props.agentId);\n\n useEffect(() => {\n let destroyed = false;\n\n async function initialize() {\n const { init } = await import(\"@namiruai/chat\");\n\n if (destroyed || !containerRef.current) return;\n\n const config: NamiruChatConfig = {\n agentId: props.agentId,\n serverUrl: props.serverUrl,\n mode: props.mode,\n position: props.position,\n container: props.mode === \"inline\" ? containerRef.current : undefined,\n preChatEnabled: props.preChatEnabled,\n preChatTemplate: props.preChatTemplate,\n preChatCustom: props.preChatCustom,\n greetingDelay: props.greetingDelay,\n width: props.width,\n height: props.height,\n onLeadCapture: props.onLeadCapture,\n onFeedback: props.onFeedback,\n onSessionStart: props.onSessionStart,\n onSessionEnd: props.onSessionEnd,\n };\n\n instanceRef.current = init(config);\n }\n\n initialize();\n\n return () => {\n destroyed = true;\n instanceRef.current?.destroy();\n instanceRef.current = null;\n };\n }, [props.agentId]);\n\n // Update config on prop changes (except agentId which triggers re-init)\n useEffect(() => {\n if (prevAgentIdRef.current !== props.agentId) {\n prevAgentIdRef.current = props.agentId;\n return;\n }\n\n instanceRef.current?.updateConfig({\n serverUrl: props.serverUrl,\n mode: props.mode,\n position: props.position,\n preChatEnabled: props.preChatEnabled,\n preChatTemplate: props.preChatTemplate,\n preChatCustom: props.preChatCustom,\n greetingDelay: props.greetingDelay,\n width: props.width,\n height: props.height,\n onLeadCapture: props.onLeadCapture,\n onFeedback: props.onFeedback,\n onSessionStart: props.onSessionStart,\n onSessionEnd: props.onSessionEnd,\n });\n }, [\n props.serverUrl,\n props.mode,\n props.position,\n props.preChatEnabled,\n props.preChatTemplate,\n props.preChatCustom,\n props.greetingDelay,\n props.width,\n props.height,\n props.onLeadCapture,\n props.onFeedback,\n props.onSessionStart,\n props.onSessionEnd,\n ]);\n\n if (props.mode === \"inline\") {\n return <div ref={containerRef} style={{ width: \"100%\", height: \"100%\" }} />;\n }\n\n return <div ref={containerRef} />;\n}\n\nexport type { NamiruChatConfig, NamiruChatInstance, LeadCaptureData } from \"@namiruai/chat\";\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAkC,iBA2GvBC,EAAA,6BAlFJ,SAASH,EAAWI,EAAwB,CACjD,IAAMC,KAAe,UAAuB,IAAI,EAC1CC,KAAc,UAAkC,IAAI,EACpDC,KAAiB,UAAeH,EAAM,OAAO,EA8EnD,SA5EA,aAAU,IAAM,CACd,IAAII,EAAY,GAEhB,eAAeC,GAAa,CAC1B,GAAM,CAAE,KAAAC,CAAK,EAAI,KAAM,QAAO,gBAAgB,EAE9C,GAAIF,GAAa,CAACH,EAAa,QAAS,OAExC,IAAMM,EAA2B,CAC/B,QAASP,EAAM,QACf,UAAWA,EAAM,UACjB,KAAMA,EAAM,KACZ,SAAUA,EAAM,SAChB,UAAWA,EAAM,OAAS,SAAWC,EAAa,QAAU,OAC5D,eAAgBD,EAAM,eACtB,gBAAiBA,EAAM,gBACvB,cAAeA,EAAM,cACrB,cAAeA,EAAM,cACrB,MAAOA,EAAM,MACb,OAAQA,EAAM,OACd,cAAeA,EAAM,cACrB,WAAYA,EAAM,WAClB,eAAgBA,EAAM,eACtB,aAAcA,EAAM,YACtB,EAEAE,EAAY,QAAUI,EAAKC,CAAM,CACnC,CAEA,OAAAF,EAAW,EAEJ,IAAM,CACXD,EAAY,GACZF,EAAY,SAAS,QAAQ,EAC7BA,EAAY,QAAU,IACxB,CACF,EAAG,CAACF,EAAM,OAAO,CAAC,KAGlB,aAAU,IAAM,CACd,GAAIG,EAAe,UAAYH,EAAM,QAAS,CAC5CG,EAAe,QAAUH,EAAM,QAC/B,MACF,CAEAE,EAAY,SAAS,aAAa,CAChC,UAAWF,EAAM,UACjB,KAAMA,EAAM,KACZ,SAAUA,EAAM,SAChB,eAAgBA,EAAM,eACtB,gBAAiBA,EAAM,gBACvB,cAAeA,EAAM,cACrB,cAAeA,EAAM,cACrB,MAAOA,EAAM,MACb,OAAQA,EAAM,OACd,cAAeA,EAAM,cACrB,WAAYA,EAAM,WAClB,eAAgBA,EAAM,eACtB,aAAcA,EAAM,YACtB,CAAC,CACH,EAAG,CACDA,EAAM,UACNA,EAAM,KACNA,EAAM,SACNA,EAAM,eACNA,EAAM,gBACNA,EAAM,cACNA,EAAM,cACNA,EAAM,MACNA,EAAM,OACNA,EAAM,cACNA,EAAM,WACNA,EAAM,eACNA,EAAM,YACR,CAAC,EAEGA,EAAM,OAAS,YACV,OAAC,OAAI,IAAKC,EAAc,MAAO,CAAE,MAAO,OAAQ,OAAQ,MAAO,EAAG,KAGpE,OAAC,OAAI,IAAKA,EAAc,CACjC",
6
+ "names": ["src_exports", "__export", "NamiruChat", "__toCommonJS", "import_react", "import_jsx_runtime", "props", "containerRef", "instanceRef", "prevAgentIdRef", "destroyed", "initialize", "init", "config"]
7
+ }
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@namiruai/react",
3
+ "version": "1.0.0",
4
+ "description": "React wrapper for Namiru AI chat widget",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.esm.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.esm.js",
11
+ "require": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
+ }
14
+ },
15
+ "files": ["dist", "LICENSE", "README.md"],
16
+ "sideEffects": false,
17
+ "license": "MIT",
18
+ "author": "Namiru <hello@namiru.ai>",
19
+ "homepage": "https://namiru.ai",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/namiru-ai/namiru"
23
+ },
24
+ "keywords": ["react", "chat", "widget", "ai", "customer-support", "chatbot", "namiru"],
25
+ "scripts": {
26
+ "build": "node build.js",
27
+ "dev": "node build.js --watch"
28
+ },
29
+ "peerDependencies": {
30
+ "react": ">=17.0.0",
31
+ "react-dom": ">=17.0.0",
32
+ "@namiruai/chat": "^1.0.0"
33
+ },
34
+ "devDependencies": {
35
+ "@types/react": "^18.2.0",
36
+ "esbuild": "^0.20.0",
37
+ "react": "^18.2.0",
38
+ "typescript": "^5.3.0"
39
+ }
40
+ }