reflex-google-auth 0.0.3__tar.gz → 0.0.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: reflex-google-auth
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: Reflex custom component google-auth
5
5
  Author-email: Masen Furer <m_github@0x26.net>
6
6
  License: Apache-2.0
@@ -9,7 +9,7 @@ Keywords: reflex,reflex-custom-components
9
9
  Classifier: Development Status :: 4 - Beta
10
10
  Requires-Python: >=3.8
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: reflex>=0.4.2
12
+ Requires-Dist: reflex>=0.4.6a
13
13
  Requires-Dist: google-auth[requests]
14
14
  Provides-Extra: dev
15
15
  Requires-Dist: build; extra == "dev"
@@ -22,8 +22,7 @@ class GoogleLogin(rx.Component):
22
22
  library = "@react-oauth/google"
23
23
  tag = "GoogleLogin"
24
24
 
25
- def get_event_triggers(self):
26
- return {"on_success": lambda data: [data]}
25
+ on_success: rx.EventHandler[lambda data: [data]]
27
26
 
28
27
  @classmethod
29
28
  def create(cls, **props) -> "GoogleLogin":
@@ -0,0 +1,24 @@
1
+ from typing import Any, Dict, Literal, Optional, Union, overload
2
+ from reflex.vars import Var, BaseVar, ComputedVar
3
+ from reflex.event import EventChain, EventHandler, EventSpec
4
+ from reflex.style import Style
5
+ import reflex as rx
6
+ from .state import GoogleAuthState
7
+
8
+ class GoogleOAuthProvider(rx.Component):
9
+
10
+ @overload
11
+ @classmethod
12
+ def create(cls, *children, client_id: Optional[Union[Var[str], str]]=None, style: Optional[Style]=None, key: Optional[Any]=None, id: Optional[Any]=None, class_name: Optional[Any]=None, autofocus: Optional[bool]=None, custom_attrs: Optional[Dict[str, Union[Var, str]]]=None, on_blur: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_click: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_context_menu: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_double_click: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_focus: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mount: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_down: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_move: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_out: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_over: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_up: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_scroll: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_unmount: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, **props) -> 'GoogleOAuthProvider':
13
+ """"""
14
+ ...
15
+ google_oauth_provider = GoogleOAuthProvider.create
16
+
17
+ class GoogleLogin(rx.Component):
18
+
19
+ @overload
20
+ @classmethod
21
+ def create(cls, *children, on_success: Optional[EventHandler[Any]]=None, style: Optional[Style]=None, key: Optional[Any]=None, id: Optional[Any]=None, class_name: Optional[Any]=None, autofocus: Optional[bool]=None, custom_attrs: Optional[Dict[str, Union[Var, str]]]=None, on_blur: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_click: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_context_menu: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_double_click: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_focus: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mount: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_down: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_move: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_out: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_over: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_mouse_up: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_scroll: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_success: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, on_unmount: Optional[Union[EventHandler, EventSpec, list, function, BaseVar]]=None, **props) -> 'GoogleLogin':
22
+ """"""
23
+ ...
24
+ google_login = GoogleLogin.create
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: reflex-google-auth
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: Reflex custom component google-auth
5
5
  Author-email: Masen Furer <m_github@0x26.net>
6
6
  License: Apache-2.0
@@ -9,7 +9,7 @@ Keywords: reflex,reflex-custom-components
9
9
  Classifier: Development Status :: 4 - Beta
10
10
  Requires-Python: >=3.8
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: reflex>=0.4.2
12
+ Requires-Dist: reflex>=0.4.6a
13
13
  Requires-Dist: google-auth[requests]
14
14
  Provides-Extra: dev
15
15
  Requires-Dist: build; extra == "dev"
@@ -3,6 +3,7 @@ pyproject.toml
3
3
  custom_components/reflex_google_auth/__init__.py
4
4
  custom_components/reflex_google_auth/decorator.py
5
5
  custom_components/reflex_google_auth/google_auth.py
6
+ custom_components/reflex_google_auth/google_auth.pyi
6
7
  custom_components/reflex_google_auth/state.py
7
8
  custom_components/reflex_google_auth.egg-info/PKG-INFO
8
9
  custom_components/reflex_google_auth.egg-info/SOURCES.txt
@@ -1,4 +1,4 @@
1
- reflex>=0.4.2
1
+ reflex>=0.4.6a
2
2
  google-auth[requests]
3
3
 
4
4
  [dev]
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "reflex-google-auth"
10
- version = "0.0.3"
10
+ version = "0.0.4"
11
11
  description = "Reflex custom component google-auth"
12
12
  readme = "README.md"
13
13
  license = { text = "Apache-2.0" }
@@ -18,7 +18,7 @@ keywords = [
18
18
  "reflex-custom-components"]
19
19
 
20
20
  dependencies = [
21
- "reflex>=0.4.2",
21
+ "reflex>=0.4.6a",
22
22
  "google-auth[requests]",
23
23
  ]
24
24