pulse-framework 0.1.54__py3-none-any.whl → 0.1.55__py3-none-any.whl
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.
- pulse/code_analysis.py +38 -0
- pulse/codegen/codegen.py +18 -50
- pulse/codegen/templates/route.py +100 -56
- pulse/component.py +24 -6
- pulse/js/__init__.py +1 -1
- pulse/js/react.py +114 -7
- pulse/transpiler/__init__.py +13 -0
- pulse/transpiler/assets.py +66 -0
- pulse/transpiler/dynamic_import.py +131 -0
- pulse/transpiler/emit_context.py +49 -0
- pulse/transpiler/function.py +6 -2
- pulse/transpiler/imports.py +33 -27
- pulse/transpiler/js_module.py +64 -8
- pulse/transpiler/react_component.py +4 -11
- pulse/transpiler/transpiler.py +4 -0
- {pulse_framework-0.1.54.dist-info → pulse_framework-0.1.55.dist-info}/METADATA +1 -1
- {pulse_framework-0.1.54.dist-info → pulse_framework-0.1.55.dist-info}/RECORD +19 -16
- pulse/js/react_dom.py +0 -30
- {pulse_framework-0.1.54.dist-info → pulse_framework-0.1.55.dist-info}/WHEEL +0 -0
- {pulse_framework-0.1.54.dist-info → pulse_framework-0.1.55.dist-info}/entry_points.txt +0 -0
|
@@ -13,15 +13,16 @@ pulse/cli/packages.py,sha256=DSnhxz61AoLVvBre3c0dnVYSpiKPI0rKFq4YmgM_VlA,7220
|
|
|
13
13
|
pulse/cli/processes.py,sha256=BFSKTRoNlCTAi3lDAjKHsKN1c-S032eol0tFd84pdVQ,7566
|
|
14
14
|
pulse/cli/secrets.py,sha256=dNfQe6AzSYhZuWveesjCRHIbvaPd3-F9lEJ-kZA7ROw,921
|
|
15
15
|
pulse/cli/uvicorn_log_config.py,sha256=f7ikDc5foXh3TmFMrnfnW8yev48ZAdlo8F4F_aMVoVk,2391
|
|
16
|
+
pulse/code_analysis.py,sha256=NBba_7VtOxZYMyfku_p-bWkG0O_1pi1AxcaNyVM1nmY,1024
|
|
16
17
|
pulse/codegen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
|
-
pulse/codegen/codegen.py,sha256=
|
|
18
|
+
pulse/codegen/codegen.py,sha256=Etr_0UpZY7EKE-SjcMiuGENDKuEZbyPWuFfccaQcdAs,9260
|
|
18
19
|
pulse/codegen/js.py,sha256=fm2aL3RdnL7KlgrXDkKbM0E6BkXYBkID0XlKTDAX26c,1521
|
|
19
20
|
pulse/codegen/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
21
|
pulse/codegen/templates/layout.py,sha256=nmWPQcO9SRXc3mCCVLCmykreSF96TqQfdDY7dvUBxRg,4737
|
|
21
|
-
pulse/codegen/templates/route.py,sha256=
|
|
22
|
+
pulse/codegen/templates/route.py,sha256=UjBrb3e_8tMkd1OjBjEsnYmK6PCQqOYZBWDuU59FcrI,9234
|
|
22
23
|
pulse/codegen/templates/routes_ts.py,sha256=nPgKCvU0gzue2k6KlOL1TJgrBqqRLmyy7K_qKAI8zAE,1129
|
|
23
24
|
pulse/codegen/utils.py,sha256=QoXcV-h-DLLmq_t03hDNUePS0fNnofUQLoR-TXzDFCY,539
|
|
24
|
-
pulse/component.py,sha256=
|
|
25
|
+
pulse/component.py,sha256=QiIFNtYraljwDmTCCjYiuGT9BlOjO8VgHpFCj1GO2i0,3543
|
|
25
26
|
pulse/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
27
|
pulse/components/for_.py,sha256=OF7hso4hg0_X_FDwEzto6CoMcZ_fJho7TIp2ag0F_N0,1784
|
|
27
28
|
pulse/components/if_.py,sha256=jXOrZ6sbSA-qgjJg-_-buppjS1wDDfRnKRF4Y7pQNTc,1636
|
|
@@ -47,7 +48,7 @@ pulse/hooks/runtime.py,sha256=61CGZ9B0ScwCx8bwUrXIWYPAJIZtGCp3GcdBqa33dgo,5145
|
|
|
47
48
|
pulse/hooks/setup.py,sha256=c_uVi0S0HPioEvjdWUaSdAGT9M3Cxpw8J-llvtmDOGo,4496
|
|
48
49
|
pulse/hooks/stable.py,sha256=mLNS6WyA4tC-65gNybPOE0DLEz1YlxOCddD9odElArU,1772
|
|
49
50
|
pulse/hooks/state.py,sha256=2EX_N0YO_Jycx7CGE4xQEm3DjlPk97gaNYwhXPkfVJ8,2827
|
|
50
|
-
pulse/js/__init__.py,sha256=
|
|
51
|
+
pulse/js/__init__.py,sha256=bl6RVTTrA_JInHcFtPDuUoYDYFeymkixrGXT24ZiisQ,3644
|
|
51
52
|
pulse/js/__init__.pyi,sha256=WN22WsJB-XFk6auL9zklwG2Kof3zeOsc56A56dJ3MWg,3097
|
|
52
53
|
pulse/js/_types.py,sha256=F4Go2JtJ2dbxq1fXpc2ablG_nyvhvHzOlZLlEv0VmyU,7421
|
|
53
54
|
pulse/js/array.py,sha256=fMs0ykV7PwJawGN4lugtTe_yxBFfBRgjm1ley1IA_no,8892
|
|
@@ -64,8 +65,7 @@ pulse/js/obj.py,sha256=sxOve2ny8mm40iBxLO6QxY0OmcBZheIkoqUimfBks8E,2078
|
|
|
64
65
|
pulse/js/object.py,sha256=wMULUSjTPNRalnDkmmYjzeplm1N7ClVgMt7VoKQjzsI,4442
|
|
65
66
|
pulse/js/promise.py,sha256=ipJTLXef5ub5tqexQY69M9AwxW-JyEhXg8DiSgo7OtA,4676
|
|
66
67
|
pulse/js/pulse.py,sha256=onWrfsagiXQk0VAIHAWj1pdPb17VchDgNVyuIMx9GKA,3027
|
|
67
|
-
pulse/js/react.py,sha256=
|
|
68
|
-
pulse/js/react_dom.py,sha256=4Rgl32t4XGUKkHQpCJiNcRGuojgx4BFL_rf1oOd40j4,818
|
|
68
|
+
pulse/js/react.py,sha256=0O4lENAQlHHVJ8zWZjJsEed3At5XvN-wz2ZjA-EOwII,11931
|
|
69
69
|
pulse/js/regexp.py,sha256=5gpfDDe72uoOu2-uC8LvOPqrQH1HF6G-u77kPmIohbQ,1056
|
|
70
70
|
pulse/js/set.py,sha256=nKSIxe0W4ZfA4NQ_-Jd401GTDfnQWRqMxag7eadoP70,3022
|
|
71
71
|
pulse/js/string.py,sha256=VMjHDEF260-AVRqUBDKR0FXShmCU06y9IMAMpxVCc0E,822
|
|
@@ -95,13 +95,16 @@ pulse/request.py,sha256=sPsSRWi5KvReSPBLIs_kzqomn1wlRk1BTLZ5s0chQr4,4979
|
|
|
95
95
|
pulse/routing.py,sha256=BObgI9cRPCXy24Gir-KeOdMh-Yxnh88hET2qddC0Fss,12847
|
|
96
96
|
pulse/serializer.py,sha256=SQaoUsYLj2hkSleAJ5ML1BzSKt04lwGKlCAw15_MaOA,5838
|
|
97
97
|
pulse/state.py,sha256=ikQbK4R8PieV96qd4uWREUvs0jXo9sCapawY7i6oCYo,10776
|
|
98
|
-
pulse/transpiler/__init__.py,sha256=
|
|
98
|
+
pulse/transpiler/__init__.py,sha256=BKemf-3llEAuiN0DID8gmz03qlC0T9GxvPZC19W3DGY,4840
|
|
99
|
+
pulse/transpiler/assets.py,sha256=FHielogI5NrFwst5H94E49YWYFX7Tp1rwJHCcowT3P0,1974
|
|
99
100
|
pulse/transpiler/builtins.py,sha256=QZrow7XJ2wxGMAE-mgZmaUD03egOnXCbikOg8yMx9vQ,30807
|
|
101
|
+
pulse/transpiler/dynamic_import.py,sha256=wyIA-QzRi2-1cdzxGuFJleVKyVp5dEud6M-eP9SA_EY,3464
|
|
102
|
+
pulse/transpiler/emit_context.py,sha256=GyK6VdsBSTVIewQRhBagaV0hlqLTlPZ1i8EAZGi8SaY,1321
|
|
100
103
|
pulse/transpiler/errors.py,sha256=LSBjLBnMglbl2D94p9JR4y-3jDefk6iHSlUVBaBOTu4,2823
|
|
101
|
-
pulse/transpiler/function.py,sha256=
|
|
104
|
+
pulse/transpiler/function.py,sha256=Pf5eoyzKHpn3d2EvCCYtARMnn_ixpAl7IZmY1fhmDIk,17036
|
|
102
105
|
pulse/transpiler/id.py,sha256=CdgA1NndBpZjv0Hp4XiYbKn7wi-x4zWsFSjEiViKxVk,434
|
|
103
|
-
pulse/transpiler/imports.py,sha256=
|
|
104
|
-
pulse/transpiler/js_module.py,sha256=
|
|
106
|
+
pulse/transpiler/imports.py,sha256=2pxKZzjmMyAMgkfs_gBc01mxbAv8euyW8FTBBy5GaNw,9420
|
|
107
|
+
pulse/transpiler/js_module.py,sha256=EWX8ZZ248H6kMQs9u6zsve3SPLy4lzf9F1cNEDdY1bA,11193
|
|
105
108
|
pulse/transpiler/modules/__init__.py,sha256=JGi3CuZoF4sug4dNhQg3MFhpEQqnXec4xRJM2cHNP3c,1184
|
|
106
109
|
pulse/transpiler/modules/asyncio.py,sha256=kWMuFU2vZbqutCM_EXJMvy5SdlB66XiT0czs8lELj_o,1584
|
|
107
110
|
pulse/transpiler/modules/json.py,sha256=Zxe8dsaQ0Eoq3yHUiJeKEx6ibiN36HCT61ScFkLFCeY,676
|
|
@@ -111,14 +114,14 @@ pulse/transpiler/modules/pulse/tags.py,sha256=YFodKrhmt4DH7QtjTBdVvK5J6Qq2ntfhzb
|
|
|
111
114
|
pulse/transpiler/modules/typing.py,sha256=hMGff6gBscFJE2GPV9xUFNfLuff2QCMIbMJUs3f24BY,1771
|
|
112
115
|
pulse/transpiler/nodes.py,sha256=PvTHSLlau4xaf35UjI24FV_L4jhT2BwiIRmCtGowQ8A,50392
|
|
113
116
|
pulse/transpiler/py_module.py,sha256=z971TX958GEai8bP--4fnsMvE8ZhTWfWkIImUQwRpSo,4628
|
|
114
|
-
pulse/transpiler/react_component.py,sha256=
|
|
115
|
-
pulse/transpiler/transpiler.py,sha256=
|
|
117
|
+
pulse/transpiler/react_component.py,sha256=GnATqqnDu55W6QbfHAXwhoE-B5k1CVA5t8FVdd7jBWc,1350
|
|
118
|
+
pulse/transpiler/transpiler.py,sha256=28diEp1yZTs3RsUEJZZdCv1DfzgO9WyOGI-xSHe7y_4,32562
|
|
116
119
|
pulse/transpiler/vdom.py,sha256=l4CKQlt-wSSFJ7j7cF4dVwqYHWyAT1uAmbgsx0Kk4Jc,6310
|
|
117
120
|
pulse/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
118
121
|
pulse/types/event_handler.py,sha256=psQCydj-WEtBcFU5JU4mDwvyzkW8V2O0g_VFRU2EOHI,1618
|
|
119
122
|
pulse/user_session.py,sha256=1xVui3jjom4mtECqGLbIbQyPNsDVKquqq1NECI6yRa0,8129
|
|
120
123
|
pulse/version.py,sha256=711vaM1jVIQPgkisGgKZqwmw019qZIsc_QTae75K2pg,1895
|
|
121
|
-
pulse_framework-0.1.
|
|
122
|
-
pulse_framework-0.1.
|
|
123
|
-
pulse_framework-0.1.
|
|
124
|
-
pulse_framework-0.1.
|
|
124
|
+
pulse_framework-0.1.55.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
|
|
125
|
+
pulse_framework-0.1.55.dist-info/entry_points.txt,sha256=i7aohd3QaPu5IcuGKKvsQQEiMYMe5HcF56QEsaLVO64,46
|
|
126
|
+
pulse_framework-0.1.55.dist-info/METADATA,sha256=MO26KPIrV8TuADZl8JaGkGVPqlquzRLwydm66XiEXfY,8176
|
|
127
|
+
pulse_framework-0.1.55.dist-info/RECORD,,
|
pulse/js/react_dom.py
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
JavaScript ReactDOM module.
|
|
3
|
-
|
|
4
|
-
Usage:
|
|
5
|
-
from pulse.js.react_dom import createPortal
|
|
6
|
-
createPortal(children, container) # -> createPortal(children, container)
|
|
7
|
-
|
|
8
|
-
# Also available as namespace:
|
|
9
|
-
import pulse.js.react_dom as ReactDOM
|
|
10
|
-
ReactDOM.createPortal(children, container)
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
from typing import Any as _Any
|
|
14
|
-
|
|
15
|
-
# Import types from react module for consistency
|
|
16
|
-
from pulse.js.react import ReactNode as ReactNode
|
|
17
|
-
from pulse.transpiler.js_module import JsModule
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
def createPortal(
|
|
21
|
-
children: ReactNode, container: _Any, key: str | None = None
|
|
22
|
-
) -> ReactNode:
|
|
23
|
-
"""Creates a portal to render children into a different DOM subtree."""
|
|
24
|
-
...
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
# ReactDOM is a namespace module where each export is a named import
|
|
28
|
-
JsModule.register(
|
|
29
|
-
name="ReactDOM", src="react-dom", kind="namespace", values="named_import"
|
|
30
|
-
)
|
|
File without changes
|
|
File without changes
|