reflex/reflex/components/el/elements/scripts.py
Elijah Ahianyo 34bf25071a
[REF-2821]Improve Dynamic Imports (#3345)
* Improve import times

* add lazy loading to rx.el

* add lazy loading to reflex core components

* minor refactor

* Get imports working with reflex web

* get imports to work with all reflex examples

* refactor to define imports only in the root.

* lint

* deadcode remove

* update poetry deps

* unit tests fix

* app_harness fix

* app_harness fix

* pyi file generate

* pyi file generate

* sort pyi order

* fix pyi

* fix docker ci

* rework pyi-generator

* generate pyi for __init__ files

* test pyright

* test pyright ci

* partial pyright fix

* more pyright fix

* pyright fix

* fix pyi_generator

* add rx.serializer and others

* add future annotation import which fixes container CI, then also load recharts lazily

* add new pyi files

* pyright fix

* minor fixes for reflex-web and flexdown

* forward references for py38

* ruff fix

* pyi fix

* unit tests fix

* reduce coverage to 68%

* reduce coverage to 67%

* reduce coverage to 66%as a workaround to coverage's rounding issue

* reduce coverage to 66%as a workaround to coverage's rounding issue

* exclude lazy_loader dependency review checks.

* its lazy-loader

* Add docstrings and regenerate pyi files

* add link

* address Pr comments

* CI fix

* partially address PR comments.

* edit docstrings and fix integration tests

* fix typo in docstring

* pyi fix
2024-05-31 16:43:10 +00:00

58 lines
1.4 KiB
Python

"""Element classes. This is an auto-generated file. Do not edit. See ../generate.py."""
from typing import Union
from reflex.vars import Var as Var
from .base import BaseHTML
class Canvas(BaseHTML):
"""Display the canvas element."""
tag = "canvas"
class Noscript(BaseHTML):
"""Display the noscript element."""
tag = "noscript"
# No unique attributes, only common ones are inherited
class Script(BaseHTML):
"""Display the script element."""
tag = "script"
# Indicates that the script should be executed asynchronously
async_: Var[Union[str, int, bool]]
# Character encoding of the external script
char_set: Var[Union[str, int, bool]]
# Configures the CORS requests for the script
cross_origin: Var[Union[str, int, bool]]
# Indicates that the script should be executed after the page has finished parsing
defer: Var[Union[str, int, bool]]
# Security feature allowing browsers to verify what they fetch
integrity: Var[Union[str, int, bool]]
# Specifies the scripting language used in the type attribute
language: Var[Union[str, int, bool]]
# Specifies which referrer information to send when fetching the script
referrer_policy: Var[Union[str, int, bool]]
# URL of an external script
src: Var[Union[str, int, bool]]
# Specifies the MIME type of the script
type: Var[Union[str, int, bool]]
canvas = Canvas.create
noscript = Noscript.create
script = Script.create