@blumessage/react-chat 1.3.0 → 1.4.1

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.
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @license React
3
+ * react-dom.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ /**
12
+ * @license React
13
+ * react-jsx-runtime.production.min.js
14
+ *
15
+ * Copyright (c) Facebook, Inc. and its affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */
20
+
21
+ /**
22
+ * @license React
23
+ * react.production.min.js
24
+ *
25
+ * Copyright (c) Facebook, Inc. and its affiliates.
26
+ *
27
+ * This source code is licensed under the MIT license found in the
28
+ * LICENSE file in the root directory of this source tree.
29
+ */
30
+
31
+ /**
32
+ * @license React
33
+ * scheduler.production.min.js
34
+ *
35
+ * Copyright (c) Facebook, Inc. and its affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */
40
+
41
+ /**
42
+ * @license lucide-react v0.294.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */
@@ -41,6 +41,7 @@ export interface BlumessageChatProps {
41
41
  typingText?: string;
42
42
  emptyStateText?: string;
43
43
  markdown?: boolean;
44
+ disableAutoScroll?: boolean;
44
45
  floating?: boolean;
45
46
  buttonText?: string;
46
47
  buttonPosition?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
@@ -0,0 +1,4 @@
1
+ import { BlumessageChat } from './BlumessageChat';
2
+ import type { BlumessageChatProps, BlumessageChatRef, Message, BlumessageApiResponse } from './BlumessageChat';
3
+ export default BlumessageChat;
4
+ export { BlumessageChat, type BlumessageChatProps, type BlumessageChatRef, type Message, type BlumessageApiResponse };
@@ -0,0 +1,6 @@
1
+ import { BlumessageChat } from './BlumessageChat';
2
+ import type { BlumessageChatProps, BlumessageChatRef, Message, BlumessageApiResponse } from './BlumessageChat';
3
+ export default BlumessageChat;
4
+ export { BlumessageChat, type BlumessageChatProps, type BlumessageChatRef, type Message, type BlumessageApiResponse };
5
+ export { default as React } from 'react';
6
+ export { default as ReactDOM } from 'react-dom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blumessage/react-chat",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "description": "A React TypeScript chat widget component with floating button, theming, and Blumessage API integration",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Blumessage <contact@blumessage.com>",
@@ -28,13 +28,25 @@
28
28
  "types": "./dist/types/src/index.d.ts",
29
29
  "import": "./dist/index.js",
30
30
  "require": "./dist/index.js"
31
+ },
32
+ "./browser": {
33
+ "types": "./dist/types/src/index.d.ts",
34
+ "import": "./dist/blumessage-chat.browser.js",
35
+ "require": "./dist/blumessage-chat.browser.js"
36
+ },
37
+ "./commonjs": {
38
+ "types": "./dist/types/src/index.d.ts",
39
+ "import": "./dist/index.js",
40
+ "require": "./dist/index.js"
31
41
  }
32
42
  },
33
43
  "scripts": {
34
44
  "build": "tsc",
45
+ "build:browser": "webpack --config webpack.browser.config.js",
46
+ "build:commonjs": "webpack --config webpack.commonjs.config.js",
35
47
  "dev": "webpack serve --config webpack.config.js",
36
48
  "test:build": "webpack --config webpack.config.js",
37
- "prepublishOnly": "npm run build"
49
+ "prepublishOnly": "npm run build && npm run build:browser && npm run build:commonjs"
38
50
  },
39
51
  "peerDependencies": {
40
52
  "react": ">=18.0.0",