@mentra/react 2.0.1 → 2.0.2

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,4 +1,4 @@
1
1
  export { MentraAuthProvider } from './AuthProvider';
2
- export { UseMentraAuth } from './useMentraAuth';
2
+ export { useMentraAuth } from './useMentraAuth';
3
3
  export type { AuthState } from './lib/authCore';
4
4
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // react-sdk/src/index.ts
2
2
  export { MentraAuthProvider } from './AuthProvider';
3
- export { UseMentraAuth } from './useMentraAuth';
3
+ export { useMentraAuth } from './useMentraAuth';
4
4
  //# sourceMappingURL=index.js.map
@@ -12,5 +12,5 @@ import { MentraAuthContextType } from './AuthProvider';
12
12
  * const { userId, isAuthenticated, logout, isLoading } = UseMentraAuth();
13
13
  * ```
14
14
  */
15
- export declare const UseMentraAuth: () => MentraAuthContextType;
15
+ export declare const useMentraAuth: () => MentraAuthContextType;
16
16
  //# sourceMappingURL=useMentraAuth.d.ts.map
@@ -14,7 +14,7 @@ import { MentraAuthContext } from './AuthProvider';
14
14
  * const { userId, isAuthenticated, logout, isLoading } = UseMentraAuth();
15
15
  * ```
16
16
  */
17
- export const UseMentraAuth = () => {
17
+ export const useMentraAuth = () => {
18
18
  const context = useContext(MentraAuthContext);
19
19
  if (context === undefined) {
20
20
  throw new Error('UseMentraAuth must be used within an MentraAuthProvider');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mentra/react",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "React hooks and providers for MentraOS webviews, allowing you to create frontends for smartglasses apps.",
5
5
  "author": "Mentra Labs",
6
6
  "license": "MIT",