@enclave-vm/react 2.9.2 → 2.10.1

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/esm/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // libs/enclavejs-react/src/EnclaveProvider.tsx
1
+ // libs/react/src/EnclaveProvider.tsx
2
2
  import { createContext, useContext, useMemo, useRef } from "react";
3
3
  import { EnclaveClient } from "@enclave-vm/client";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -41,7 +41,7 @@ function useEnclaveClient() {
41
41
  return client;
42
42
  }
43
43
 
44
- // libs/enclavejs-react/src/useEnclaveSession.ts
44
+ // libs/react/src/useEnclaveSession.ts
45
45
  import { useState, useCallback, useRef as useRef2 } from "react";
46
46
  function useEnclaveSession(options = {}) {
47
47
  const client = useEnclaveClient();
package/index.js CHANGED
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
- // libs/enclavejs-react/src/index.ts
20
+ // libs/react/src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  EnclaveProvider: () => EnclaveProvider,
@@ -27,7 +27,7 @@ __export(index_exports, {
27
27
  });
28
28
  module.exports = __toCommonJS(index_exports);
29
29
 
30
- // libs/enclavejs-react/src/EnclaveProvider.tsx
30
+ // libs/react/src/EnclaveProvider.tsx
31
31
  var import_react = require("react");
32
32
  var import_client = require("@enclave-vm/client");
33
33
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -70,7 +70,7 @@ function useEnclaveClient() {
70
70
  return client;
71
71
  }
72
72
 
73
- // libs/enclavejs-react/src/useEnclaveSession.ts
73
+ // libs/react/src/useEnclaveSession.ts
74
74
  var import_react2 = require("react");
75
75
  function useEnclaveSession(options = {}) {
76
76
  const client = useEnclaveClient();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enclave-vm/react",
3
- "version": "2.9.2",
3
+ "version": "2.10.1",
4
4
  "description": "React hooks and components for the EnclaveJS streaming runtime",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "homepage": "https://github.com/agentfront/enclave",
@@ -33,9 +33,9 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@enclave-vm/client": "2.9.2"
36
+ "@enclave-vm/client": "2.10.1"
37
37
  },
38
38
  "peerDependencies": {
39
- "react": ">=17.0.0"
39
+ "react": ">=18.0.0"
40
40
  }
41
41
  }