Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added event handler for paste #3078

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions reflex/components/base/app_wrap.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ class AppWrap(Fragment):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
3 changes: 3 additions & 0 deletions reflex/components/base/body.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class Body(Component):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
15 changes: 15 additions & 0 deletions reflex/components/base/document.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ class NextDocumentLib(Component):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -138,6 +141,9 @@ class Html(NextDocumentLib):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -214,6 +220,9 @@ class DocumentHead(NextDocumentLib):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -290,6 +299,9 @@ class Main(NextDocumentLib):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -366,6 +378,9 @@ class NextScript(NextDocumentLib):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
3 changes: 3 additions & 0 deletions reflex/components/base/fragment.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class Fragment(Component):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
6 changes: 6 additions & 0 deletions reflex/components/base/head.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class NextHeadLib(Component):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -136,6 +139,9 @@ class Head(NextHeadLib, MemoizationLeaf):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
6 changes: 6 additions & 0 deletions reflex/components/base/link.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ class RawLink(Component):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -148,6 +151,9 @@ class ScriptTag(Component):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
12 changes: 12 additions & 0 deletions reflex/components/base/meta.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ class Title(Component):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -144,6 +147,9 @@ class Meta(Component):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -230,6 +236,9 @@ class Description(Meta):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -316,6 +325,9 @@ class Image(Meta):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
3 changes: 3 additions & 0 deletions reflex/components/base/script.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ class Script(Component):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_ready: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
9 changes: 9 additions & 0 deletions reflex/components/chakra/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ class ChakraComponent(Component):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -141,6 +144,9 @@ class ChakraProvider(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -209,6 +215,9 @@ class ChakraColorModeProvider(Component):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
3 changes: 3 additions & 0 deletions reflex/components/chakra/datadisplay/badge.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ class Badge(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
3 changes: 3 additions & 0 deletions reflex/components/chakra/datadisplay/code.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class Code(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
3 changes: 3 additions & 0 deletions reflex/components/chakra/datadisplay/divider.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ class Divider(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
3 changes: 3 additions & 0 deletions reflex/components/chakra/datadisplay/keyboard_key.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class KeyboardKey(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
12 changes: 12 additions & 0 deletions reflex/components/chakra/datadisplay/list.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ class List(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -147,6 +150,9 @@ class ListItem(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -227,6 +233,9 @@ class OrderedList(List):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -311,6 +320,9 @@ class UnorderedList(List):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
18 changes: 18 additions & 0 deletions reflex/components/chakra/datadisplay/stat.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class Stat(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -146,6 +149,9 @@ class StatLabel(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -222,6 +228,9 @@ class StatNumber(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -298,6 +307,9 @@ class StatHelpText(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -375,6 +387,9 @@ class StatArrow(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down Expand Up @@ -452,6 +467,9 @@ class StatGroup(ChakraComponent):
on_mouse_up: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_paste: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
on_scroll: Optional[
Union[EventHandler, EventSpec, list, function, BaseVar]
] = None,
Expand Down
Loading
Loading