@chatbotkit/react 1.25.0 → 1.26.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.
@@ -56,6 +56,7 @@ export type OnFinishHandler = (arg0: {
56
56
  }) => any;
57
57
  export type Options = Omit<any, "messages" | "functions"> & {
58
58
  client: import("@chatbotkit/sdk").ConversationClient;
59
+ backstory?: string;
59
60
  messages: InputMessage[];
60
61
  functions?: (InputFunction | (() => InputFunction | Promise<InputFunction>))[];
61
62
  maxRecursion?: number;
@@ -56,6 +56,7 @@ export type OnFinishHandler = (arg0: {
56
56
  }) => any;
57
57
  export type Options = Omit<import("@chatbotkit/sdk/conversation/v1.js").ConversationCompleteRequest, "messages" | "functions"> & {
58
58
  client: import("@chatbotkit/sdk").ConversationClient;
59
+ backstory?: string;
59
60
  messages: InputMessage[];
60
61
  functions?: (InputFunction | (() => InputFunction | Promise<InputFunction>))[];
61
62
  maxRecursion?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatbotkit/react",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
4
4
  "description": "The fastest way to build advanced AI chat bots",
5
5
  "license": "ISC",
6
6
  "engines": {
@@ -458,28 +458,6 @@
458
458
  },
459
459
  "./package.json": "./package.json"
460
460
  },
461
- "types": "./dist/cjs/index.d.ts",
462
- "dependencies": {
463
- "tslib": "^2.6.2",
464
- "@chatbotkit/sdk": "1.25.0",
465
- "@chatbotkit/widget": "1.25.0"
466
- },
467
- "peerDependencies": {
468
- "react": ">=18.0.0",
469
- "react-dom": ">=18.0.0",
470
- "react-markdown": "^8.0.4"
471
- },
472
- "devDependencies": {
473
- "npm-run-all": "^4.1.5",
474
- "typedoc": "^0.28.14",
475
- "typedoc-plugin-markdown": "^4.9.0",
476
- "typedoc-plugin-mdn-links": "^5.0.10",
477
- "typescript": "^5.9",
478
- "@types/react": "^18.2.0"
479
- },
480
- "files": [
481
- "dist/**"
482
- ],
483
461
  "scripts": {
484
462
  "build": "run-s build:*",
485
463
  "build:01-cjs": "tsc -p tsconfig.cjs.json",
@@ -498,6 +476,31 @@
498
476
  "clean:node_modules": "rimraf node_modules",
499
477
  "clean:types": "rimraf types",
500
478
  "lint": "eslint .",
479
+ "postpack": "node ../../scripts/create-standard-exports.js",
480
+ "prepack": "node ../../scripts/create-dist-exports.js",
501
481
  "test": "true"
502
- }
503
- }
482
+ },
483
+ "types": "./dist/cjs/index.d.ts",
484
+ "dependencies": {
485
+ "@chatbotkit/sdk": "workspace:*",
486
+ "@chatbotkit/widget": "workspace:*",
487
+ "tslib": "^2.6.2"
488
+ },
489
+ "peerDependencies": {
490
+ "react": ">=18.0.0",
491
+ "react-dom": ">=18.0.0",
492
+ "react-markdown": "^8.0.4"
493
+ },
494
+ "devDependencies": {
495
+ "@types/react": "^18.2.0",
496
+ "npm-run-all": "^4.1.5",
497
+ "react-markdown": "^10.1.0",
498
+ "typedoc": "^0.28.14",
499
+ "typedoc-plugin-markdown": "^4.9.0",
500
+ "typedoc-plugin-mdn-links": "^5.0.10",
501
+ "typescript": "^5.9"
502
+ },
503
+ "files": [
504
+ "dist/**"
505
+ ]
506
+ }