@blumessage/react-chat 1.8.0 → 1.8.2

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.
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import './styles.css';
2
3
  export interface Message {
3
4
  id: string;
4
5
  role: 'user' | 'assistant';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blumessage/react-chat",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
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>",
@@ -21,13 +21,13 @@
21
21
  "package.json"
22
22
  ],
23
23
  "type": "commonjs",
24
- "main": "dist/BlumessageChat.js",
24
+ "main": "dist/blumessage-chat.npm.js",
25
25
  "types": "dist/types/src/index.d.ts",
26
26
  "exports": {
27
27
  ".": {
28
28
  "types": "./dist/types/src/index.d.ts",
29
- "import": "./dist/BlumessageChat.js",
30
- "require": "./dist/BlumessageChat.js"
29
+ "import": "./dist/blumessage-chat.npm.js",
30
+ "require": "./dist/blumessage-chat.npm.js"
31
31
  },
32
32
  "./browser": {
33
33
  "types": "./dist/types/src/index.d.ts",
@@ -42,11 +42,12 @@
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsc",
45
+ "build:npm": "webpack --config webpack.npm.config.js",
45
46
  "build:browser": "webpack --config webpack.browser.config.js",
46
47
  "build:commonjs": "webpack --config webpack.commonjs.config.js",
47
48
  "dev": "webpack serve --config webpack.config.js",
48
49
  "test:build": "webpack --config webpack.config.js",
49
- "prepublishOnly": "npm run build && npm run build:browser && npm run build:commonjs"
50
+ "prepublishOnly": "npm run build && npm run build:npm && npm run build:browser && npm run build:commonjs"
50
51
  },
51
52
  "peerDependencies": {
52
53
  "react": ">=18.0.0",