@pubflow/react 0.4.10 → 0.4.12

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.
@@ -5,7 +5,7 @@
5
5
  * Following the same pattern as Next.js and React Native packages
6
6
  */
7
7
  import React from 'react';
8
- import { PubflowInstanceConfig, ApiClient, AuthService, TwoFactorService, User, type TwoFactorMethod, type TwoFactorVerifyResult, type TwoFactorStartResult } from '@pubflow/core';
8
+ import { PubflowInstanceConfig, ApiClient, AuthService, User } from '@pubflow/core';
9
9
  /**
10
10
  * Pubflow context value
11
11
  */
@@ -21,12 +21,9 @@ export interface PubflowInstance {
21
21
  config: PubflowInstanceConfig;
22
22
  apiClient: ApiClient;
23
23
  authService: AuthService;
24
- twoFactorService: TwoFactorService;
25
24
  user: User | null | undefined;
26
25
  isAuthenticated: boolean;
27
26
  isLoading: boolean;
28
- twoFactorPending: boolean;
29
- twoFactorMethods: TwoFactorMethod[];
30
27
  login: (credentials: {
31
28
  email?: string;
32
29
  userName?: string;
@@ -38,8 +35,6 @@ export interface PubflowInstance {
38
35
  expiresAt?: string;
39
36
  user?: User;
40
37
  }>;
41
- verifyTwoFactor: (methodId: string, code: string) => Promise<TwoFactorVerifyResult>;
42
- startTwoFactor: (methodId: string, method: string) => Promise<TwoFactorStartResult>;
43
38
  }
44
39
  /**
45
40
  * Create Pubflow context
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubflow/react",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "description": "React adapter for Pubflow framework with support for TanStack Router and SWR - Now with snake_case support",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.esm.js",
@@ -33,7 +33,7 @@
33
33
  "author": "Pubflow, Inc.",
34
34
  "license": "AGPL-3.0-or-later",
35
35
  "dependencies": {
36
- "@pubflow/core": "^0.4.4",
36
+ "@pubflow/core": "^0.4.5",
37
37
  "@hookform/resolvers": "^3.3.2",
38
38
  "react-hook-form": "^7.48.2",
39
39
  "swr": "^2.2.4"