@bodhiapp/bodhi-js-react-ext 0.0.33 → 0.0.35
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-ext/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 @@
|
|
|
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 { ExtUIClient, type ExtUIClientParams, BodhiExtClient } from '@bodhiapp/bodhi-js-ext';
|
|
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
|
|
9
|
+
export { BodhiReactContext, useBodhi, type BodhiContext, type SetupState, type SetupModalVariant, 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_EXT_BUILD_MODE } from './build-info';
|
|
11
11
|
export { EXT_BUILD_MODE } from '@bodhiapp/bodhi-js-ext';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bodhiapp/bodhi-js-react-ext",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"description": "React bindings for Bodhi Browser SDK with ExtUIClient preset (Chrome Extension)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/bodhi-react-ext.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,10 +62,11 @@
|
|
|
52
62
|
"typecheck": "tsc --noEmit"
|
|
53
63
|
},
|
|
54
64
|
"dependencies": {
|
|
55
|
-
"@bodhiapp/bodhi-browser-types": "0.0.
|
|
56
|
-
"@bodhiapp/setup-modal-types": "0.0.
|
|
57
|
-
"@bodhiapp/
|
|
58
|
-
"@bodhiapp/bodhi-js-
|
|
65
|
+
"@bodhiapp/bodhi-browser-types": "0.0.35",
|
|
66
|
+
"@bodhiapp/setup-modal-types": "0.0.35",
|
|
67
|
+
"@bodhiapp/setup-modal-v2-types": "0.0.35",
|
|
68
|
+
"@bodhiapp/bodhi-js-react-core": "0.0.35",
|
|
69
|
+
"@bodhiapp/bodhi-js-ext": "0.0.35"
|
|
59
70
|
},
|
|
60
71
|
"peerDependencies": {
|
|
61
72
|
"react": "^18.3.0 || ^19.0.0"
|