@bodhiapp/bodhi-js-react 0.0.33 → 0.0.34

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 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@bodhiapp/bodhi-js-core/api/anthropic");Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Re-export Anthropic-compatible API types from @bodhiapp/bodhi-js-core/api/anthropic.
3
+ *
4
+ * Usage:
5
+ * import type { CreateMessageRequest, Message } from '@bodhiapp/bodhi-js-react/api/anthropic';
6
+ */
7
+ export * from '@bodhiapp/bodhi-js-core/api/anthropic';
@@ -0,0 +1 @@
1
+ export * from "@bodhiapp/bodhi-js-core/api/anthropic";
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@bodhiapp/bodhi-js-core/api/gemini");Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Re-export Gemini-compatible API types from @bodhiapp/bodhi-js-core/api/gemini.
3
+ *
4
+ * Usage:
5
+ * import type { GenerateContentRequest, Content } from '@bodhiapp/bodhi-js-react/api/gemini';
6
+ */
7
+ export * from '@bodhiapp/bodhi-js-core/api/gemini';
@@ -0,0 +1 @@
1
+ export * from "@bodhiapp/bodhi-js-core/api/gemini";
package/dist/index.d.ts CHANGED
@@ -6,6 +6,6 @@
6
6
  */
7
7
  export { BodhiProvider, type BodhiProviderProps } from './BodhiProvider';
8
8
  export { WebUIClient, type WebUIClientParams, type IWebUIClient } from '@bodhiapp/bodhi-js';
9
- export { BodhiReactContext, useBodhi, type BodhiContext, type SetupState, type ClientContextState, type ClientContextStatus, INITIAL_CLIENT_CONTEXT_STATE, INITIALIZING_CLIENT_CONTEXT_STATE, ClientCtxState, clientStateToContextState, isClientCtxInitialized, isClientCtxInitializing, isClientCtxNotInitialized, isClientCtxReady, isOverallReady, type ClientState, type AuthState, type LoginOptions, type LoginProgressCallback, type LoginProgressStage, type UserScope, type FlowType, type RequestedResourcesV1, type UIClient, type LogLevel, type BodhiErrorCode, type ApiResponse, LoginOptionsBuilder, BodhiError, BodhiApiError, unwrapResponse, isDirectState, isExtensionState, isWebUIClient, isAuthError, isAuthLoading, isAuthenticated, isClientReady, createApiError, createOperationError, BodhiBadge, type BodhiBadgeProps, type BodhiBadgeSize, type BodhiBadgeVariant, InMemoryStorage, type IStorage, type InitialTokens, type StreamTextResult, } from '@bodhiapp/bodhi-js-react-core';
9
+ export { BodhiReactContext, useBodhi, type BodhiContext, type SetupState, type ClientContextState, type ClientContextStatus, INITIAL_CLIENT_CONTEXT_STATE, INITIALIZING_CLIENT_CONTEXT_STATE, ClientCtxState, clientStateToContextState, isClientCtxInitialized, isClientCtxInitializing, isClientCtxNotInitialized, isClientCtxReady, isOverallReady, type ClientState, type AuthState, type LoginOptions, type LoginProgressCallback, type LoginProgressStage, type UIClient, type LogLevel, type BodhiErrorCode, type ApiResponse, LoginOptionsBuilder, BodhiError, BodhiApiError, unwrapResponse, isDirectState, isExtensionState, isWebUIClient, isAuthError, isAuthLoading, isAuthenticated, isClientReady, createApiError, createOperationError, BodhiBadge, type BodhiBadgeProps, type BodhiBadgeSize, type BodhiBadgeVariant, InMemoryStorage, type IStorage, type InitialTokens, type StreamTextResult, } from '@bodhiapp/bodhi-js-react-core';
10
10
  export { BUILD_MODE as REACT_BUILD_MODE } from './build-info';
11
11
  export { WEB_BUILD_MODE } from '@bodhiapp/bodhi-js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bodhiapp/bodhi-js-react",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "React bindings for Bodhi Browser SDK with WebUIClient preset",
5
5
  "type": "module",
6
6
  "main": "dist/bodhi-react.cjs.js",
@@ -21,6 +21,16 @@
21
21
  "import": "./dist/api/openai.esm.js",
22
22
  "require": "./dist/api/openai.cjs.js"
23
23
  },
24
+ "./api/anthropic": {
25
+ "types": "./dist/api/anthropic.d.ts",
26
+ "import": "./dist/api/anthropic.esm.js",
27
+ "require": "./dist/api/anthropic.cjs.js"
28
+ },
29
+ "./api/gemini": {
30
+ "types": "./dist/api/gemini.d.ts",
31
+ "import": "./dist/api/gemini.esm.js",
32
+ "require": "./dist/api/gemini.cjs.js"
33
+ },
24
34
  "./mcp": {
25
35
  "types": "./dist/mcp.d.ts",
26
36
  "import": "./dist/mcp.esm.js",
@@ -52,11 +62,11 @@
52
62
  "typecheck": "tsc --noEmit"
53
63
  },
54
64
  "dependencies": {
55
- "@bodhiapp/bodhi-browser-types": "0.0.33",
56
- "@bodhiapp/setup-modal-types": "0.0.33",
57
- "@bodhiapp/bodhi-js-react-core": "0.0.33",
58
- "@bodhiapp/bodhi-js": "0.0.33",
59
- "@bodhiapp/bodhi-js-core": "0.0.33"
65
+ "@bodhiapp/bodhi-browser-types": "0.0.34",
66
+ "@bodhiapp/setup-modal-types": "0.0.34",
67
+ "@bodhiapp/bodhi-js-react-core": "0.0.34",
68
+ "@bodhiapp/bodhi-js": "0.0.34",
69
+ "@bodhiapp/bodhi-js-core": "0.0.34"
60
70
  },
61
71
  "peerDependencies": {
62
72
  "react": "^18.3.0 || ^19.0.0"