@daisy-plus/embed-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/README.md ADDED
@@ -0,0 +1,48 @@
1
+ <!-- markdownlint-disable MD030 -->
2
+
3
+ # Flowise Embed React
4
+
5
+ React library to display flowise chatbot on your website
6
+
7
+ ![Flowise](https://github.com/FlowiseAI/FlowiseChatEmbed/blob/main/images/ChatEmbed.gif?raw=true)
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ npm install flowise-embed flowise-embed-react
13
+ ```
14
+
15
+ or
16
+
17
+ ```bash
18
+ yarn add flowise-embed flowise-embed-react
19
+ ```
20
+
21
+ ## Import
22
+
23
+ Full Page Chat
24
+
25
+ ```tsx
26
+ import { FullPageChat } from "flowise-embed-react";
27
+
28
+ const App = () => {
29
+ return (
30
+ <FullPageChat
31
+ chatflowid="your-chatflow-id"
32
+ apiHost="http://localhost:3000"
33
+ />
34
+ );
35
+ };
36
+ ```
37
+
38
+ Popup Chat
39
+
40
+ ```tsx
41
+ import { BubbleChat } from "flowise-embed-react";
42
+
43
+ const App = () => {
44
+ return (
45
+ <BubbleChat chatflowid="your-chatflow-id" apiHost="http://localhost:3000" />
46
+ );
47
+ };
48
+ ```
package/base.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Default",
4
+ "compilerOptions": {
5
+ "composite": false,
6
+ "declaration": true,
7
+ "declarationMap": true,
8
+ "esModuleInterop": true,
9
+ "forceConsistentCasingInFileNames": true,
10
+ "inlineSources": false,
11
+ "isolatedModules": true,
12
+ "moduleResolution": "node",
13
+ "noUnusedLocals": false,
14
+ "noUnusedParameters": false,
15
+ "preserveWatchOutput": true,
16
+ "skipLibCheck": true,
17
+ "strict": true,
18
+ "downlevelIteration": true
19
+ },
20
+ "exclude": ["node_modules"]
21
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import type { BubbleProps } from '@daisy-plus/embed';
3
+ type Props = BubbleProps;
4
+ declare global {
5
+ namespace JSX {
6
+ interface IntrinsicElements {
7
+ 'daisy-interface': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
8
+ }
9
+ }
10
+ }
11
+ export declare const BubbleChat: (props: Props) => null;
12
+ export {};
13
+ //# sourceMappingURL=BubbleChat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BubbleChat.d.ts","sourceRoot":"","sources":["../src/BubbleChat.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,KAAK,KAAK,GAAG,WAAW,CAAA;AAExB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CACxC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,WAAW,CACZ,CAAA;SACF;KACF;CACF;AAID,eAAO,MAAM,UAAU,UAAW,KAAK,SAkCtC,CAAA"}
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import type { BotProps } from '@daisy-plus/embed';
3
+ type Props = BotProps & {
4
+ style?: React.CSSProperties;
5
+ className?: string;
6
+ };
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ 'daisy-fullinterface': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
11
+ class?: string;
12
+ };
13
+ }
14
+ }
15
+ }
16
+ export declare const FullPageChat: ({ style, className, ...assignableProps }: Props) => JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=FullPageChat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FullPageChat.d.ts","sourceRoot":"","sources":["../src/FullPageChat.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAEjD,KAAK,KAAK,GAAG,QAAQ,GAAG;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,qBAAqB,EAAE,KAAK,CAAC,iBAAiB,CAC5C,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EACjC,WAAW,CACZ,GAAG;gBAAE,KAAK,CAAC,EAAE,MAAM,CAAA;aAAE,CAAA;SACvB;KACF;CACF;AAID,eAAO,MAAM,YAAY,6CAA8C,KAAK,gBAe3E,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { FullPageChat } from './FullPageChat';
2
+ export { BubbleChat } from './BubbleChat';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}