@lastbrain/ai-ui-react 1.0.5 → 1.0.6

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/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from "./types";
2
- import "./styles.css";
3
2
  export * from "./context/AiProvider";
4
3
  export * from "./hooks/useAiClient";
5
4
  export * from "./hooks/useAiModels";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,OAAO,cAAc,CAAC;AAGtB,cAAc,sBAAsB,CAAC;AAGrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,cAAc,sBAAsB,CAAC;AAGrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,5 @@
1
1
  // Types
2
2
  export * from "./types";
3
- // Styles
4
- import "./styles.css";
5
3
  // Context
6
4
  export * from "./context/AiProvider";
7
5
  // Hooks
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Import this file in your app entry point to load the default styles
3
+ *
4
+ * Example (Next.js app/layout.tsx):
5
+ * import "@lastbrain/ai-ui-react/styles.css"
6
+ *
7
+ * Example (Vite/React main.tsx):
8
+ * import "@lastbrain/ai-ui-react/styles.css"
9
+ *
10
+ * Example (Create React App App.tsx):
11
+ * import "@lastbrain/ai-ui-react/styles.css"
12
+ */
13
+
14
+ // This file helps with IDE autocomplete for the CSS import
15
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lastbrain/ai-ui-react",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Headless React components for LastBrain AI UI Kit",
5
5
  "private": false,
6
6
  "type": "module",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "scripts": {
60
60
  "dev": "tsc -p tsconfig.json --watch",
61
- "build": "tsc -p tsconfig.json && cp src/styles.css dist/styles.css",
61
+ "build": "tsc -p tsconfig.json && cp src/styles.css dist/styles.css && cp styles.d.ts dist/styles.d.ts",
62
62
  "lint": "eslint ."
63
63
  }
64
64
  }
package/src/index.ts CHANGED
@@ -1,9 +1,6 @@
1
1
  // Types
2
2
  export * from "./types";
3
3
 
4
- // Styles
5
- import "./styles.css";
6
-
7
4
  // Context
8
5
  export * from "./context/AiProvider";
9
6