reflex 0.8.10a1__py3-none-any.whl → 0.8.11__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.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/.templates/web/utils/helpers/upload.js +170 -0
- reflex/.templates/web/utils/state.js +5 -158
- reflex/app.py +15 -6
- reflex/compiler/compiler.py +4 -4
- reflex/compiler/templates.py +3 -2
- reflex/components/component.py +10 -28
- reflex/components/core/upload.py +2 -2
- reflex/components/datadisplay/code.py +2 -2
- reflex/components/datadisplay/code.pyi +6 -2
- reflex/components/field.py +5 -1
- reflex/components/lucide/icon.py +2 -1
- reflex/components/lucide/icon.pyi +2 -1
- reflex/components/props.py +15 -0
- reflex/components/recharts/recharts.py +2 -2
- reflex/constants/installer.py +2 -2
- reflex/constants/state.py +1 -0
- reflex/environment.py +1 -1
- reflex/event.py +34 -0
- reflex/plugins/tailwind_v4.py +2 -2
- {reflex-0.8.10a1.dist-info → reflex-0.8.11.dist-info}/METADATA +1 -1
- {reflex-0.8.10a1.dist-info → reflex-0.8.11.dist-info}/RECORD +24 -23
- {reflex-0.8.10a1.dist-info → reflex-0.8.11.dist-info}/WHEEL +0 -0
- {reflex-0.8.10a1.dist-info → reflex-0.8.11.dist-info}/entry_points.txt +0 -0
- {reflex-0.8.10a1.dist-info → reflex-0.8.11.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import JSON5 from "json5";
|
|
2
|
+
import env from "$/env.json";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Upload files to the server.
|
|
6
|
+
*
|
|
7
|
+
* @param state The state to apply the delta to.
|
|
8
|
+
* @param handler The handler to use.
|
|
9
|
+
* @param upload_id The upload id to use.
|
|
10
|
+
* @param on_upload_progress The function to call on upload progress.
|
|
11
|
+
* @param socket the websocket connection
|
|
12
|
+
* @param extra_headers Extra headers to send with the request.
|
|
13
|
+
* @param refs The refs object to store the abort controller in.
|
|
14
|
+
* @param getBackendURL Function to get the backend URL.
|
|
15
|
+
* @param getToken Function to get the Reflex token.
|
|
16
|
+
*
|
|
17
|
+
* @returns The response from posting to the UPLOADURL endpoint.
|
|
18
|
+
*/
|
|
19
|
+
export const uploadFiles = async (
|
|
20
|
+
handler,
|
|
21
|
+
files,
|
|
22
|
+
upload_id,
|
|
23
|
+
on_upload_progress,
|
|
24
|
+
extra_headers,
|
|
25
|
+
socket,
|
|
26
|
+
refs,
|
|
27
|
+
getBackendURL,
|
|
28
|
+
getToken,
|
|
29
|
+
) => {
|
|
30
|
+
// return if there's no file to upload
|
|
31
|
+
if (files === undefined || files.length === 0) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const upload_ref_name = `__upload_controllers_${upload_id}`;
|
|
36
|
+
|
|
37
|
+
if (refs[upload_ref_name]) {
|
|
38
|
+
console.log("Upload already in progress for ", upload_id);
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Track how many partial updates have been processed for this upload.
|
|
43
|
+
let resp_idx = 0;
|
|
44
|
+
const eventHandler = (progressEvent) => {
|
|
45
|
+
const event_callbacks = socket._callbacks.$event;
|
|
46
|
+
// Whenever called, responseText will contain the entire response so far.
|
|
47
|
+
const chunks = progressEvent.event.target.responseText.trim().split("\n");
|
|
48
|
+
// So only process _new_ chunks beyond resp_idx.
|
|
49
|
+
chunks.slice(resp_idx).map((chunk_json) => {
|
|
50
|
+
try {
|
|
51
|
+
const chunk = JSON5.parse(chunk_json);
|
|
52
|
+
event_callbacks.map((f, ix) => {
|
|
53
|
+
f(chunk)
|
|
54
|
+
.then(() => {
|
|
55
|
+
if (ix === event_callbacks.length - 1) {
|
|
56
|
+
// Mark this chunk as processed.
|
|
57
|
+
resp_idx += 1;
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
.catch((e) => {
|
|
61
|
+
if (progressEvent.progress === 1) {
|
|
62
|
+
// Chunk may be incomplete, so only report errors when full response is available.
|
|
63
|
+
console.log("Error processing chunk", chunk, e);
|
|
64
|
+
}
|
|
65
|
+
return;
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
} catch (e) {
|
|
69
|
+
if (progressEvent.progress === 1) {
|
|
70
|
+
console.log("Error parsing chunk", chunk_json, e);
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const controller = new AbortController();
|
|
78
|
+
const formdata = new FormData();
|
|
79
|
+
|
|
80
|
+
// Add the token and handler to the file name.
|
|
81
|
+
files.forEach((file) => {
|
|
82
|
+
formdata.append("files", file, file.path || file.name);
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
// Send the file to the server.
|
|
86
|
+
refs[upload_ref_name] = controller;
|
|
87
|
+
|
|
88
|
+
return new Promise((resolve, reject) => {
|
|
89
|
+
const xhr = new XMLHttpRequest();
|
|
90
|
+
|
|
91
|
+
// Set up event handlers
|
|
92
|
+
xhr.onload = function () {
|
|
93
|
+
if (xhr.status >= 200 && xhr.status < 300) {
|
|
94
|
+
resolve({
|
|
95
|
+
data: xhr.responseText,
|
|
96
|
+
status: xhr.status,
|
|
97
|
+
statusText: xhr.statusText,
|
|
98
|
+
headers: {
|
|
99
|
+
get: (name) => xhr.getResponseHeader(name),
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
} else {
|
|
103
|
+
reject(new Error(`HTTP error! status: ${xhr.status}`));
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
xhr.onerror = function () {
|
|
108
|
+
reject(new Error("Network error"));
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
xhr.onabort = function () {
|
|
112
|
+
reject(new Error("Upload aborted"));
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
// Handle upload progress
|
|
116
|
+
if (on_upload_progress) {
|
|
117
|
+
xhr.upload.onprogress = function (event) {
|
|
118
|
+
if (event.lengthComputable) {
|
|
119
|
+
const progressEvent = {
|
|
120
|
+
loaded: event.loaded,
|
|
121
|
+
total: event.total,
|
|
122
|
+
progress: event.loaded / event.total,
|
|
123
|
+
};
|
|
124
|
+
on_upload_progress(progressEvent);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Handle download progress with streaming response parsing
|
|
130
|
+
xhr.onprogress = function (event) {
|
|
131
|
+
if (eventHandler) {
|
|
132
|
+
const progressEvent = {
|
|
133
|
+
event: {
|
|
134
|
+
target: {
|
|
135
|
+
responseText: xhr.responseText,
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
progress: event.lengthComputable ? event.loaded / event.total : 0,
|
|
139
|
+
};
|
|
140
|
+
eventHandler(progressEvent);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
// Handle abort controller
|
|
145
|
+
controller.signal.addEventListener("abort", () => {
|
|
146
|
+
xhr.abort();
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// Configure and send request
|
|
150
|
+
xhr.open("POST", getBackendURL(env.UPLOAD));
|
|
151
|
+
xhr.setRequestHeader("Reflex-Client-Token", getToken());
|
|
152
|
+
xhr.setRequestHeader("Reflex-Event-Handler", handler);
|
|
153
|
+
for (const [key, value] of Object.entries(extra_headers || {})) {
|
|
154
|
+
xhr.setRequestHeader(key, value);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
try {
|
|
158
|
+
xhr.send(formdata);
|
|
159
|
+
} catch (error) {
|
|
160
|
+
reject(error);
|
|
161
|
+
}
|
|
162
|
+
})
|
|
163
|
+
.catch((error) => {
|
|
164
|
+
console.log("Upload error:", error.message);
|
|
165
|
+
return false;
|
|
166
|
+
})
|
|
167
|
+
.finally(() => {
|
|
168
|
+
delete refs[upload_ref_name];
|
|
169
|
+
});
|
|
170
|
+
};
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
} from "$/utils/context";
|
|
21
21
|
import debounce from "$/utils/helpers/debounce";
|
|
22
22
|
import throttle from "$/utils/helpers/throttle";
|
|
23
|
+
import { uploadFiles } from "$/utils/helpers/upload";
|
|
23
24
|
|
|
24
25
|
// Endpoint URLs.
|
|
25
26
|
const EVENTURL = env.EVENT;
|
|
26
|
-
const UPLOADURL = env.UPLOAD;
|
|
27
27
|
|
|
28
28
|
// These hostnames indicate that the backend and frontend are reachable via the same domain.
|
|
29
29
|
const SAME_DOMAIN_HOSTNAMES = ["localhost", "0.0.0.0", "::", "0:0:0:0:0:0:0:0"];
|
|
@@ -432,7 +432,11 @@ export const applyRestEvent = async (event, socket, navigate, params) => {
|
|
|
432
432
|
event.payload.files,
|
|
433
433
|
event.payload.upload_id,
|
|
434
434
|
event.payload.on_upload_progress,
|
|
435
|
+
event.payload.extra_headers,
|
|
435
436
|
socket,
|
|
437
|
+
refs,
|
|
438
|
+
getBackendURL,
|
|
439
|
+
getToken,
|
|
436
440
|
);
|
|
437
441
|
return false;
|
|
438
442
|
}
|
|
@@ -614,163 +618,6 @@ export const connect = async (
|
|
|
614
618
|
document.addEventListener("visibilitychange", checkVisibility);
|
|
615
619
|
};
|
|
616
620
|
|
|
617
|
-
/**
|
|
618
|
-
* Upload files to the server.
|
|
619
|
-
*
|
|
620
|
-
* @param state The state to apply the delta to.
|
|
621
|
-
* @param handler The handler to use.
|
|
622
|
-
* @param upload_id The upload id to use.
|
|
623
|
-
* @param on_upload_progress The function to call on upload progress.
|
|
624
|
-
* @param socket the websocket connection
|
|
625
|
-
*
|
|
626
|
-
* @returns The response from posting to the UPLOADURL endpoint.
|
|
627
|
-
*/
|
|
628
|
-
export const uploadFiles = async (
|
|
629
|
-
handler,
|
|
630
|
-
files,
|
|
631
|
-
upload_id,
|
|
632
|
-
on_upload_progress,
|
|
633
|
-
socket,
|
|
634
|
-
) => {
|
|
635
|
-
// return if there's no file to upload
|
|
636
|
-
if (files === undefined || files.length === 0) {
|
|
637
|
-
return false;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
const upload_ref_name = `__upload_controllers_${upload_id}`;
|
|
641
|
-
|
|
642
|
-
if (refs[upload_ref_name]) {
|
|
643
|
-
console.log("Upload already in progress for ", upload_id);
|
|
644
|
-
return false;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
// Track how many partial updates have been processed for this upload.
|
|
648
|
-
let resp_idx = 0;
|
|
649
|
-
const eventHandler = (progressEvent) => {
|
|
650
|
-
const event_callbacks = socket._callbacks.$event;
|
|
651
|
-
// Whenever called, responseText will contain the entire response so far.
|
|
652
|
-
const chunks = progressEvent.event.target.responseText.trim().split("\n");
|
|
653
|
-
// So only process _new_ chunks beyond resp_idx.
|
|
654
|
-
chunks.slice(resp_idx).map((chunk_json) => {
|
|
655
|
-
try {
|
|
656
|
-
const chunk = JSON5.parse(chunk_json);
|
|
657
|
-
event_callbacks.map((f, ix) => {
|
|
658
|
-
f(chunk)
|
|
659
|
-
.then(() => {
|
|
660
|
-
if (ix === event_callbacks.length - 1) {
|
|
661
|
-
// Mark this chunk as processed.
|
|
662
|
-
resp_idx += 1;
|
|
663
|
-
}
|
|
664
|
-
})
|
|
665
|
-
.catch((e) => {
|
|
666
|
-
if (progressEvent.progress === 1) {
|
|
667
|
-
// Chunk may be incomplete, so only report errors when full response is available.
|
|
668
|
-
console.log("Error processing chunk", chunk, e);
|
|
669
|
-
}
|
|
670
|
-
return;
|
|
671
|
-
});
|
|
672
|
-
});
|
|
673
|
-
} catch (e) {
|
|
674
|
-
if (progressEvent.progress === 1) {
|
|
675
|
-
console.log("Error parsing chunk", chunk_json, e);
|
|
676
|
-
}
|
|
677
|
-
return;
|
|
678
|
-
}
|
|
679
|
-
});
|
|
680
|
-
};
|
|
681
|
-
|
|
682
|
-
const controller = new AbortController();
|
|
683
|
-
const formdata = new FormData();
|
|
684
|
-
|
|
685
|
-
// Add the token and handler to the file name.
|
|
686
|
-
files.forEach((file) => {
|
|
687
|
-
formdata.append("files", file, file.path || file.name);
|
|
688
|
-
});
|
|
689
|
-
|
|
690
|
-
// Send the file to the server.
|
|
691
|
-
refs[upload_ref_name] = controller;
|
|
692
|
-
|
|
693
|
-
return new Promise((resolve, reject) => {
|
|
694
|
-
const xhr = new XMLHttpRequest();
|
|
695
|
-
|
|
696
|
-
// Set up event handlers
|
|
697
|
-
xhr.onload = function () {
|
|
698
|
-
if (xhr.status >= 200 && xhr.status < 300) {
|
|
699
|
-
resolve({
|
|
700
|
-
data: xhr.responseText,
|
|
701
|
-
status: xhr.status,
|
|
702
|
-
statusText: xhr.statusText,
|
|
703
|
-
headers: {
|
|
704
|
-
get: (name) => xhr.getResponseHeader(name),
|
|
705
|
-
},
|
|
706
|
-
});
|
|
707
|
-
} else {
|
|
708
|
-
reject(new Error(`HTTP error! status: ${xhr.status}`));
|
|
709
|
-
}
|
|
710
|
-
};
|
|
711
|
-
|
|
712
|
-
xhr.onerror = function () {
|
|
713
|
-
reject(new Error("Network error"));
|
|
714
|
-
};
|
|
715
|
-
|
|
716
|
-
xhr.onabort = function () {
|
|
717
|
-
reject(new Error("Upload aborted"));
|
|
718
|
-
};
|
|
719
|
-
|
|
720
|
-
// Handle upload progress
|
|
721
|
-
if (on_upload_progress) {
|
|
722
|
-
xhr.upload.onprogress = function (event) {
|
|
723
|
-
if (event.lengthComputable) {
|
|
724
|
-
const progressEvent = {
|
|
725
|
-
loaded: event.loaded,
|
|
726
|
-
total: event.total,
|
|
727
|
-
progress: event.loaded / event.total,
|
|
728
|
-
};
|
|
729
|
-
on_upload_progress(progressEvent);
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
// Handle download progress with streaming response parsing
|
|
735
|
-
xhr.onprogress = function (event) {
|
|
736
|
-
if (eventHandler) {
|
|
737
|
-
const progressEvent = {
|
|
738
|
-
event: {
|
|
739
|
-
target: {
|
|
740
|
-
responseText: xhr.responseText,
|
|
741
|
-
},
|
|
742
|
-
},
|
|
743
|
-
progress: event.lengthComputable ? event.loaded / event.total : 0,
|
|
744
|
-
};
|
|
745
|
-
eventHandler(progressEvent);
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
|
|
749
|
-
// Handle abort controller
|
|
750
|
-
controller.signal.addEventListener("abort", () => {
|
|
751
|
-
xhr.abort();
|
|
752
|
-
});
|
|
753
|
-
|
|
754
|
-
// Configure and send request
|
|
755
|
-
xhr.open("POST", getBackendURL(UPLOADURL));
|
|
756
|
-
xhr.setRequestHeader("Reflex-Client-Token", getToken());
|
|
757
|
-
xhr.setRequestHeader("Reflex-Event-Handler", handler);
|
|
758
|
-
|
|
759
|
-
try {
|
|
760
|
-
xhr.send(formdata);
|
|
761
|
-
} catch (error) {
|
|
762
|
-
reject(error);
|
|
763
|
-
}
|
|
764
|
-
})
|
|
765
|
-
.catch((error) => {
|
|
766
|
-
console.log("Upload error:", error.message);
|
|
767
|
-
return false;
|
|
768
|
-
})
|
|
769
|
-
.finally(() => {
|
|
770
|
-
delete refs[upload_ref_name];
|
|
771
|
-
});
|
|
772
|
-
};
|
|
773
|
-
|
|
774
621
|
/**
|
|
775
622
|
* Create an event object.
|
|
776
623
|
* @param {string} name The name of the event.
|
reflex/app.py
CHANGED
|
@@ -258,6 +258,15 @@ class UploadFile(StarletteUploadFile):
|
|
|
258
258
|
|
|
259
259
|
headers: Headers = dataclasses.field(default_factory=Headers)
|
|
260
260
|
|
|
261
|
+
@property
|
|
262
|
+
def filename(self) -> str | None:
|
|
263
|
+
"""Get the name of the uploaded file.
|
|
264
|
+
|
|
265
|
+
Returns:
|
|
266
|
+
The name of the uploaded file.
|
|
267
|
+
"""
|
|
268
|
+
return self.name
|
|
269
|
+
|
|
261
270
|
@property
|
|
262
271
|
def name(self) -> str | None:
|
|
263
272
|
"""Get the name of the uploaded file.
|
|
@@ -1272,12 +1281,12 @@ class App(MiddlewareMixin, LifespanMixin):
|
|
|
1272
1281
|
|
|
1273
1282
|
# Compile custom components.
|
|
1274
1283
|
(
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
) = compiler.
|
|
1279
|
-
compile_results.append((
|
|
1280
|
-
all_imports.update(
|
|
1284
|
+
memo_components_output,
|
|
1285
|
+
memo_components_result,
|
|
1286
|
+
memo_components_imports,
|
|
1287
|
+
) = compiler.compile_memo_components(dict.fromkeys(CUSTOM_COMPONENTS.values()))
|
|
1288
|
+
compile_results.append((memo_components_output, memo_components_result))
|
|
1289
|
+
all_imports.update(memo_components_imports)
|
|
1281
1290
|
progress.advance(task)
|
|
1282
1291
|
|
|
1283
1292
|
with console.timing("Collect all imports and app wraps"):
|
reflex/compiler/compiler.py
CHANGED
|
@@ -336,7 +336,7 @@ def _compile_component(component: Component | StatefulComponent) -> str:
|
|
|
336
336
|
return templates.component_template(component=component)
|
|
337
337
|
|
|
338
338
|
|
|
339
|
-
def
|
|
339
|
+
def _compile_memo_components(
|
|
340
340
|
components: Iterable[CustomComponent],
|
|
341
341
|
) -> tuple[str, dict[str, list[ImportVar]]]:
|
|
342
342
|
"""Compile the components.
|
|
@@ -376,7 +376,7 @@ def _compile_components(
|
|
|
376
376
|
|
|
377
377
|
# Compile the components page.
|
|
378
378
|
return (
|
|
379
|
-
templates.
|
|
379
|
+
templates.memo_components_template(
|
|
380
380
|
imports=utils.compile_imports(imports),
|
|
381
381
|
components=component_renders,
|
|
382
382
|
dynamic_imports=sorted(dynamic_imports),
|
|
@@ -565,7 +565,7 @@ def compile_page(path: str, component: BaseComponent) -> tuple[str, str]:
|
|
|
565
565
|
return output_path, code
|
|
566
566
|
|
|
567
567
|
|
|
568
|
-
def
|
|
568
|
+
def compile_memo_components(
|
|
569
569
|
components: Iterable[CustomComponent],
|
|
570
570
|
) -> tuple[str, str, dict[str, list[ImportVar]]]:
|
|
571
571
|
"""Compile the custom components.
|
|
@@ -580,7 +580,7 @@ def compile_components(
|
|
|
580
580
|
output_path = utils.get_components_path()
|
|
581
581
|
|
|
582
582
|
# Compile the components.
|
|
583
|
-
code, imports =
|
|
583
|
+
code, imports = _compile_memo_components(components)
|
|
584
584
|
return output_path, code, imports
|
|
585
585
|
|
|
586
586
|
|
reflex/compiler/templates.py
CHANGED
|
@@ -8,6 +8,7 @@ from typing import TYPE_CHECKING, Any
|
|
|
8
8
|
|
|
9
9
|
from reflex import constants
|
|
10
10
|
from reflex.constants import Hooks
|
|
11
|
+
from reflex.constants.state import CAMEL_CASE_MEMO_MARKER
|
|
11
12
|
from reflex.utils.format import format_state_name, json_dumps
|
|
12
13
|
from reflex.vars.base import VarData
|
|
13
14
|
|
|
@@ -637,7 +638,7 @@ def stateful_components_template(imports: list[_ImportDict], memoized_code: str)
|
|
|
637
638
|
return f"{imports_str}\n{memoized_code}"
|
|
638
639
|
|
|
639
640
|
|
|
640
|
-
def
|
|
641
|
+
def memo_components_template(
|
|
641
642
|
imports: list[_ImportDict],
|
|
642
643
|
components: list[dict[str, Any]],
|
|
643
644
|
dynamic_imports: Iterable[str],
|
|
@@ -661,7 +662,7 @@ def custom_component_template(
|
|
|
661
662
|
components_code = ""
|
|
662
663
|
for component in components:
|
|
663
664
|
components_code += f"""
|
|
664
|
-
export const {component["name"]} = memo(({{ {",
|
|
665
|
+
export const {component["name"]} = memo(({{ {",".join([f"{prop}:{prop}{CAMEL_CASE_MEMO_MARKER}" for prop in component.get("props", [])])} }}) => {{
|
|
665
666
|
{_render_hooks(component.get("hooks", {}))}
|
|
666
667
|
return(
|
|
667
668
|
{_RenderUtils.render(component["render"])}
|
reflex/components/component.py
CHANGED
|
@@ -37,12 +37,13 @@ from reflex.constants import (
|
|
|
37
37
|
PageNames,
|
|
38
38
|
)
|
|
39
39
|
from reflex.constants.compiler import SpecialAttributes
|
|
40
|
-
from reflex.constants.state import
|
|
40
|
+
from reflex.constants.state import CAMEL_CASE_MEMO_MARKER, FRONTEND_EVENT_STATE
|
|
41
41
|
from reflex.event import (
|
|
42
42
|
EventCallback,
|
|
43
43
|
EventChain,
|
|
44
44
|
EventHandler,
|
|
45
45
|
EventSpec,
|
|
46
|
+
args_specs_from_fields,
|
|
46
47
|
no_args_event_spec,
|
|
47
48
|
parse_args_spec,
|
|
48
49
|
pointer_event_spec,
|
|
@@ -143,14 +144,6 @@ class BaseComponentMeta(FieldBasedMeta, ABCMeta):
|
|
|
143
144
|
_fields: Mapping[str, ComponentField]
|
|
144
145
|
_js_fields: Mapping[str, ComponentField]
|
|
145
146
|
|
|
146
|
-
@classmethod
|
|
147
|
-
def _resolve_annotations(
|
|
148
|
-
cls, namespace: dict[str, Any], name: str
|
|
149
|
-
) -> dict[str, Any]:
|
|
150
|
-
return types.resolve_annotations(
|
|
151
|
-
namespace.get("__annotations__", {}), namespace["__module__"]
|
|
152
|
-
)
|
|
153
|
-
|
|
154
147
|
@classmethod
|
|
155
148
|
def _process_annotated_fields(
|
|
156
149
|
cls,
|
|
@@ -909,18 +902,7 @@ class Component(BaseComponent, ABC):
|
|
|
909
902
|
"""
|
|
910
903
|
# Look for component specific triggers,
|
|
911
904
|
# e.g. variable declared as EventHandler types.
|
|
912
|
-
return DEFAULT_TRIGGERS |
|
|
913
|
-
name: (
|
|
914
|
-
metadata[0]
|
|
915
|
-
if (
|
|
916
|
-
(metadata := getattr(field.annotated_type, "__metadata__", None))
|
|
917
|
-
is not None
|
|
918
|
-
)
|
|
919
|
-
else no_args_event_spec
|
|
920
|
-
)
|
|
921
|
-
for name, field in cls.get_fields().items()
|
|
922
|
-
if field.type_origin is EventHandler
|
|
923
|
-
} # pyright: ignore [reportOperatorIssue]
|
|
905
|
+
return DEFAULT_TRIGGERS | args_specs_from_fields(cls.get_fields()) # pyright: ignore [reportOperatorIssue]
|
|
924
906
|
|
|
925
907
|
def __repr__(self) -> str:
|
|
926
908
|
"""Represent the component in React.
|
|
@@ -1983,7 +1965,7 @@ class CustomComponent(Component):
|
|
|
1983
1965
|
|
|
1984
1966
|
super()._post_init(
|
|
1985
1967
|
event_triggers={
|
|
1986
|
-
key
|
|
1968
|
+
key: EventChain.create(
|
|
1987
1969
|
value=props[key],
|
|
1988
1970
|
args_spec=get_args_spec(key),
|
|
1989
1971
|
key=key,
|
|
@@ -1994,9 +1976,7 @@ class CustomComponent(Component):
|
|
|
1994
1976
|
)
|
|
1995
1977
|
|
|
1996
1978
|
to_camel_cased_props = {
|
|
1997
|
-
format.to_camel_case(key
|
|
1998
|
-
for key in props
|
|
1999
|
-
if key not in event_types
|
|
1979
|
+
format.to_camel_case(key): None for key in props if key not in event_types
|
|
2000
1980
|
}
|
|
2001
1981
|
self.get_props = lambda: to_camel_cased_props # pyright: ignore [reportIncompatibleVariableOverride]
|
|
2002
1982
|
|
|
@@ -2011,7 +1991,7 @@ class CustomComponent(Component):
|
|
|
2011
1991
|
if key not in props_types:
|
|
2012
1992
|
continue
|
|
2013
1993
|
|
|
2014
|
-
camel_cased_key = format.to_camel_case(key
|
|
1994
|
+
camel_cased_key = format.to_camel_case(key)
|
|
2015
1995
|
|
|
2016
1996
|
# Get the type based on the annotation.
|
|
2017
1997
|
type_ = props_types[key]
|
|
@@ -2101,11 +2081,13 @@ class CustomComponent(Component):
|
|
|
2101
2081
|
"""
|
|
2102
2082
|
return [
|
|
2103
2083
|
Var(
|
|
2104
|
-
_js_expr=name,
|
|
2084
|
+
_js_expr=name + CAMEL_CASE_MEMO_MARKER,
|
|
2105
2085
|
_var_type=(prop._var_type if isinstance(prop, Var) else type(prop)),
|
|
2106
2086
|
).guess_type()
|
|
2107
2087
|
if isinstance(prop, Var) or not isinstance(prop, EventChain)
|
|
2108
|
-
else CustomComponent._get_event_spec_from_args_spec(
|
|
2088
|
+
else CustomComponent._get_event_spec_from_args_spec(
|
|
2089
|
+
name + CAMEL_CASE_MEMO_MARKER, prop
|
|
2090
|
+
)
|
|
2109
2091
|
for name, prop in self.props.items()
|
|
2110
2092
|
]
|
|
2111
2093
|
|
reflex/components/core/upload.py
CHANGED
|
@@ -35,6 +35,7 @@ from reflex.utils import format
|
|
|
35
35
|
from reflex.utils.imports import ImportVar
|
|
36
36
|
from reflex.vars import VarData
|
|
37
37
|
from reflex.vars.base import Var, get_unique_variable_name
|
|
38
|
+
from reflex.vars.function import FunctionVar
|
|
38
39
|
from reflex.vars.sequence import LiteralStringVar
|
|
39
40
|
|
|
40
41
|
DEFAULT_UPLOAD_ID: str = "default"
|
|
@@ -111,8 +112,7 @@ def clear_selected_files(id_: str = DEFAULT_UPLOAD_ID) -> EventSpec:
|
|
|
111
112
|
# UploadFilesProvider assigns a special function to clear selected files
|
|
112
113
|
# into the shared global refs object to make it accessible outside a React
|
|
113
114
|
# component via `run_script` (otherwise backend could never clear files).
|
|
114
|
-
|
|
115
|
-
return run_script(f"{func}({id_!r})")
|
|
115
|
+
return run_script(Var("__clear_selected_files")._as_ref().to(FunctionVar).call(id_))
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
def cancel_upload(upload_id: str) -> EventSpec:
|
|
@@ -382,7 +382,7 @@ for theme_name in dir(Theme):
|
|
|
382
382
|
class CodeBlock(Component, MarkdownComponentMap):
|
|
383
383
|
"""A code block."""
|
|
384
384
|
|
|
385
|
-
library = "react-syntax-highlighter@15.6.
|
|
385
|
+
library = "react-syntax-highlighter@15.6.6"
|
|
386
386
|
|
|
387
387
|
tag = "PrismAsyncLight"
|
|
388
388
|
|
|
@@ -412,7 +412,7 @@ class CodeBlock(Component, MarkdownComponentMap):
|
|
|
412
412
|
)
|
|
413
413
|
|
|
414
414
|
# Props passed down to the code tag.
|
|
415
|
-
code_tag_props: Var[dict[str, str]]
|
|
415
|
+
code_tag_props: Var[dict[str, str | dict[str, str]]]
|
|
416
416
|
|
|
417
417
|
# Whether a copy button should appear.
|
|
418
418
|
can_copy: bool | None = field(
|
|
@@ -926,7 +926,9 @@ class CodeBlock(Component, MarkdownComponentMap):
|
|
|
926
926
|
starting_line_number: Var[int] | int | None = None,
|
|
927
927
|
wrap_long_lines: Var[bool] | bool | None = None,
|
|
928
928
|
custom_style: dict[str, str | Var | Color] | None = None,
|
|
929
|
-
code_tag_props: Var[dict[str,
|
|
929
|
+
code_tag_props: Var[dict[str, dict[str, str] | str]]
|
|
930
|
+
| dict[str, dict[str, str] | str]
|
|
931
|
+
| None = None,
|
|
930
932
|
can_copy: bool | None = None,
|
|
931
933
|
copy_button: Component | bool | None = None,
|
|
932
934
|
style: Sequence[Mapping[str, Any]]
|
|
@@ -1562,7 +1564,9 @@ class CodeblockNamespace(ComponentNamespace):
|
|
|
1562
1564
|
starting_line_number: Var[int] | int | None = None,
|
|
1563
1565
|
wrap_long_lines: Var[bool] | bool | None = None,
|
|
1564
1566
|
custom_style: dict[str, str | Var | Color] | None = None,
|
|
1565
|
-
code_tag_props: Var[dict[str,
|
|
1567
|
+
code_tag_props: Var[dict[str, dict[str, str] | str]]
|
|
1568
|
+
| dict[str, dict[str, str] | str]
|
|
1569
|
+
| None = None,
|
|
1566
1570
|
can_copy: bool | None = None,
|
|
1567
1571
|
copy_button: Component | bool | None = None,
|
|
1568
1572
|
style: Sequence[Mapping[str, Any]]
|
reflex/components/field.py
CHANGED
|
@@ -6,6 +6,8 @@ from collections.abc import Callable
|
|
|
6
6
|
from dataclasses import _MISSING_TYPE, MISSING
|
|
7
7
|
from typing import Annotated, Any, Generic, TypeVar, get_origin
|
|
8
8
|
|
|
9
|
+
from reflex.utils import types
|
|
10
|
+
|
|
9
11
|
FIELD_TYPE = TypeVar("FIELD_TYPE")
|
|
10
12
|
|
|
11
13
|
|
|
@@ -114,7 +116,9 @@ class FieldBasedMeta(type):
|
|
|
114
116
|
def _resolve_annotations(
|
|
115
117
|
cls, namespace: dict[str, Any], name: str
|
|
116
118
|
) -> dict[str, Any]:
|
|
117
|
-
return
|
|
119
|
+
return types.resolve_annotations(
|
|
120
|
+
namespace.get("__annotations__", {}), namespace["__module__"]
|
|
121
|
+
)
|
|
118
122
|
|
|
119
123
|
@classmethod
|
|
120
124
|
def _process_field_overrides(
|
reflex/components/lucide/icon.py
CHANGED
|
@@ -6,7 +6,7 @@ from reflex.utils.imports import ImportVar
|
|
|
6
6
|
from reflex.vars.base import LiteralVar, Var
|
|
7
7
|
from reflex.vars.sequence import LiteralStringVar, StringVar
|
|
8
8
|
|
|
9
|
-
LUCIDE_LIBRARY = "lucide-react@0.
|
|
9
|
+
LUCIDE_LIBRARY = "lucide-react@0.543.0"
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class LucideIconComponent(Component):
|
|
@@ -921,6 +921,7 @@ LUCIDE_ICON_LIST = [
|
|
|
921
921
|
"hospital",
|
|
922
922
|
"hotel",
|
|
923
923
|
"hourglass",
|
|
924
|
+
"house_heart",
|
|
924
925
|
"house_plug",
|
|
925
926
|
"house_plus",
|
|
926
927
|
"house_wifi",
|
|
@@ -11,7 +11,7 @@ from reflex.components.core.breakpoints import Breakpoints
|
|
|
11
11
|
from reflex.event import EventType, PointerEventInfo
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
|
-
LUCIDE_LIBRARY = "lucide-react@0.
|
|
14
|
+
LUCIDE_LIBRARY = "lucide-react@0.543.0"
|
|
15
15
|
|
|
16
16
|
class LucideIconComponent(Component):
|
|
17
17
|
@classmethod
|
|
@@ -986,6 +986,7 @@ LUCIDE_ICON_LIST = [
|
|
|
986
986
|
"hospital",
|
|
987
987
|
"hotel",
|
|
988
988
|
"hourglass",
|
|
989
|
+
"house_heart",
|
|
989
990
|
"house_plug",
|
|
990
991
|
"house_plus",
|
|
991
992
|
"house_wifi",
|
reflex/components/props.py
CHANGED
|
@@ -9,6 +9,7 @@ from typing import Any, TypeVar, get_args, get_origin
|
|
|
9
9
|
from typing_extensions import dataclass_transform
|
|
10
10
|
|
|
11
11
|
from reflex.components.field import BaseField, FieldBasedMeta
|
|
12
|
+
from reflex.event import EventChain, args_specs_from_fields
|
|
12
13
|
from reflex.utils import format
|
|
13
14
|
from reflex.utils.exceptions import InvalidPropValueError
|
|
14
15
|
from reflex.utils.serializers import serializer
|
|
@@ -267,6 +268,20 @@ class PropsBase(metaclass=PropsBaseMeta):
|
|
|
267
268
|
setattr(self, field_name, field.default_factory())
|
|
268
269
|
# Note: Fields with no default and no factory remain unset (required fields)
|
|
269
270
|
|
|
271
|
+
# Convert EventHandler to EventChain
|
|
272
|
+
args_specs = args_specs_from_fields(self.get_fields())
|
|
273
|
+
for handler_name, args_spec in args_specs.items():
|
|
274
|
+
if (handler := getattr(self, handler_name, None)) is not None:
|
|
275
|
+
setattr(
|
|
276
|
+
self,
|
|
277
|
+
handler_name,
|
|
278
|
+
EventChain.create(
|
|
279
|
+
value=handler,
|
|
280
|
+
args_spec=args_spec,
|
|
281
|
+
key=handler_name,
|
|
282
|
+
),
|
|
283
|
+
)
|
|
284
|
+
|
|
270
285
|
@classmethod
|
|
271
286
|
def get_fields(cls) -> dict[str, Any]:
|
|
272
287
|
"""Get the fields of the object.
|
|
@@ -8,7 +8,7 @@ from reflex.components.component import Component, MemoizationLeaf, NoSSRCompone
|
|
|
8
8
|
class Recharts(Component):
|
|
9
9
|
"""A component that wraps a recharts lib."""
|
|
10
10
|
|
|
11
|
-
library = "recharts@3.
|
|
11
|
+
library = "recharts@3.2.0"
|
|
12
12
|
|
|
13
13
|
def _get_style(self) -> dict:
|
|
14
14
|
return {"wrapperStyle": self.style}
|
|
@@ -17,7 +17,7 @@ class Recharts(Component):
|
|
|
17
17
|
class RechartsCharts(NoSSRComponent, MemoizationLeaf):
|
|
18
18
|
"""A component that wraps a recharts lib."""
|
|
19
19
|
|
|
20
|
-
library = "recharts@3.
|
|
20
|
+
library = "recharts@3.2.0"
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
LiteralAnimationEasing = Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]
|
reflex/constants/installer.py
CHANGED
|
@@ -143,11 +143,11 @@ class PackageJson(SimpleNamespace):
|
|
|
143
143
|
"postcss-import": "16.1.1",
|
|
144
144
|
"@react-router/dev": _react_router_version,
|
|
145
145
|
"@react-router/fs-routes": _react_router_version,
|
|
146
|
-
"vite": "npm:rolldown-vite@7.1.
|
|
146
|
+
"vite": "npm:rolldown-vite@7.1.8",
|
|
147
147
|
}
|
|
148
148
|
OVERRIDES = {
|
|
149
149
|
# This should always match the `react` version in DEPENDENCIES for recharts compatibility.
|
|
150
150
|
"react-is": _react_version,
|
|
151
151
|
"cookie": "1.0.2",
|
|
152
|
-
"vite": "npm:rolldown-vite@7.1.
|
|
152
|
+
"vite": "npm:rolldown-vite@7.1.8",
|
|
153
153
|
}
|
reflex/constants/state.py
CHANGED
reflex/environment.py
CHANGED
reflex/event.py
CHANGED
|
@@ -26,6 +26,7 @@ from typing import (
|
|
|
26
26
|
from typing_extensions import Self, TypeAliasType, TypedDict, TypeVarTuple, Unpack
|
|
27
27
|
|
|
28
28
|
from reflex import constants
|
|
29
|
+
from reflex.components.field import BaseField
|
|
29
30
|
from reflex.constants.compiler import CompileVars, Hooks, Imports
|
|
30
31
|
from reflex.constants.state import FRONTEND_EVENT_STATE
|
|
31
32
|
from reflex.utils import format
|
|
@@ -846,6 +847,7 @@ class FileUpload:
|
|
|
846
847
|
|
|
847
848
|
upload_id: str | None = None
|
|
848
849
|
on_upload_progress: EventHandler | Callable | None = None
|
|
850
|
+
extra_headers: dict[str, str] | None = None
|
|
849
851
|
|
|
850
852
|
@staticmethod
|
|
851
853
|
def on_upload_progress_args_spec(_prog: Var[dict[str, int | float | bool]]):
|
|
@@ -887,6 +889,12 @@ class FileUpload:
|
|
|
887
889
|
Var(_js_expr="upload_id"),
|
|
888
890
|
LiteralVar.create(upload_id),
|
|
889
891
|
),
|
|
892
|
+
(
|
|
893
|
+
Var(_js_expr="extra_headers"),
|
|
894
|
+
LiteralVar.create(
|
|
895
|
+
self.extra_headers if self.extra_headers is not None else {}
|
|
896
|
+
),
|
|
897
|
+
),
|
|
890
898
|
]
|
|
891
899
|
if self.on_upload_progress is not None:
|
|
892
900
|
on_upload_progress = self.on_upload_progress
|
|
@@ -1677,6 +1685,31 @@ def parse_args_spec(arg_spec: ArgsSpec | Sequence[ArgsSpec]):
|
|
|
1677
1685
|
), annotations
|
|
1678
1686
|
|
|
1679
1687
|
|
|
1688
|
+
def args_specs_from_fields(
|
|
1689
|
+
fields_dict: Mapping[str, BaseField],
|
|
1690
|
+
) -> dict[str, ArgsSpec | Sequence[ArgsSpec]]:
|
|
1691
|
+
"""Get the event triggers and arg specs from the given fields.
|
|
1692
|
+
|
|
1693
|
+
Args:
|
|
1694
|
+
fields_dict: The fields, keyed by name
|
|
1695
|
+
|
|
1696
|
+
Returns:
|
|
1697
|
+
The args spec for any field annotated as EventHandler.
|
|
1698
|
+
"""
|
|
1699
|
+
return {
|
|
1700
|
+
name: (
|
|
1701
|
+
metadata[0]
|
|
1702
|
+
if (
|
|
1703
|
+
(metadata := getattr(field.annotated_type, "__metadata__", None))
|
|
1704
|
+
is not None
|
|
1705
|
+
)
|
|
1706
|
+
else no_args_event_spec
|
|
1707
|
+
)
|
|
1708
|
+
for name, field in fields_dict.items()
|
|
1709
|
+
if field.type_origin is EventHandler
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
|
|
1680
1713
|
def check_fn_match_arg_spec(
|
|
1681
1714
|
user_func: Callable,
|
|
1682
1715
|
user_func_parameters: Mapping[str, inspect.Parameter],
|
|
@@ -2429,6 +2462,7 @@ class EventNamespace:
|
|
|
2429
2462
|
check_fn_match_arg_spec = staticmethod(check_fn_match_arg_spec)
|
|
2430
2463
|
resolve_annotation = staticmethod(resolve_annotation)
|
|
2431
2464
|
parse_args_spec = staticmethod(parse_args_spec)
|
|
2465
|
+
args_specs_from_fields = staticmethod(args_specs_from_fields)
|
|
2432
2466
|
unwrap_var_annotation = staticmethod(unwrap_var_annotation)
|
|
2433
2467
|
get_fn_signature = staticmethod(get_fn_signature)
|
|
2434
2468
|
|
reflex/plugins/tailwind_v4.py
CHANGED
|
@@ -17,7 +17,7 @@ class Constants(SimpleNamespace):
|
|
|
17
17
|
"""Tailwind constants."""
|
|
18
18
|
|
|
19
19
|
# The Tailwindcss version
|
|
20
|
-
VERSION = "tailwindcss@4.1.
|
|
20
|
+
VERSION = "tailwindcss@4.1.13"
|
|
21
21
|
# The Tailwind config.
|
|
22
22
|
CONFIG = "tailwind.config.js"
|
|
23
23
|
# Default Tailwind content paths
|
|
@@ -156,7 +156,7 @@ class TailwindV4Plugin(TailwindPlugin):
|
|
|
156
156
|
return [
|
|
157
157
|
*super().get_frontend_development_dependencies(**context),
|
|
158
158
|
Constants.VERSION,
|
|
159
|
-
"@tailwindcss/postcss@4.1.
|
|
159
|
+
"@tailwindcss/postcss@4.1.13",
|
|
160
160
|
]
|
|
161
161
|
|
|
162
162
|
def pre_compile(self, **context):
|
|
@@ -2,12 +2,12 @@ reflex/__init__.py,sha256=_1PVYjDeA6_JyfXvL6OuKjjO6AX2oMiNcAq8AEHf6xw,10161
|
|
|
2
2
|
reflex/__init__.pyi,sha256=0D46kHVUJPE_kgYL-BjraERu-MXNCPsQTZQShrijmeQ,10148
|
|
3
3
|
reflex/__main__.py,sha256=6cVrGEyT3j3tEvlEVUatpaYfbB5EF3UVY-6vc_Z7-hw,108
|
|
4
4
|
reflex/admin.py,sha256=Nbc38y-M8iaRBvh1W6DQu_D3kEhO8JFvxrog4q2cB_E,434
|
|
5
|
-
reflex/app.py,sha256=
|
|
5
|
+
reflex/app.py,sha256=6twI1PM0obKXFylomi-AXqr1zdaK9aZzYH3yh6zO2M8,78122
|
|
6
6
|
reflex/assets.py,sha256=l5O_mlrTprC0lF7Rc_McOe3a0OtSLnRdNl_PqCpDCBA,3431
|
|
7
7
|
reflex/base.py,sha256=Oh664QL3fZEHErhUasFqP7fE4olYf1y-9Oj6uZI2FCU,1173
|
|
8
8
|
reflex/config.py,sha256=LsHAtdH4nkSn3q_Ie-KNdOGdflLXrFICUQov29oFjVk,21229
|
|
9
|
-
reflex/environment.py,sha256=
|
|
10
|
-
reflex/event.py,sha256=
|
|
9
|
+
reflex/environment.py,sha256=BRIePrhFKTZajYlyl-KhjGsqR4_hc7KxfNCoape6Jjw,23590
|
|
10
|
+
reflex/event.py,sha256=C4b_gj8FLQx5HKWp_G5nFsCO-H0z08tx_LYc-e3vwlo,76239
|
|
11
11
|
reflex/model.py,sha256=2QhU1TJlcDeRA23pv8usLjyDaA6FhbQRYdzsjOHzvUI,19665
|
|
12
12
|
reflex/page.py,sha256=ssCbMVFuIy60vH-YhJUzN0OxzUwXFCCD3ej56dVjp3g,3525
|
|
13
13
|
reflex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -30,27 +30,28 @@ reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js,sha2
|
|
|
30
30
|
reflex/.templates/web/components/shiki/code.js,sha256=4Es1pxsr-lX4hTQ5mglrwwC6O_SI-z-O60k03z8VFzQ,1144
|
|
31
31
|
reflex/.templates/web/styles/__reflex_style_reset.css,sha256=qbC6JIT643YEsvSQ0D7xBmWE5vXy94JGrKNihRuEjnA,8913
|
|
32
32
|
reflex/.templates/web/utils/react-theme.js,sha256=Aa-RND3ooGCXW6Zavzitc-v0ciKlcQDTFlDtE4mPkFI,2713
|
|
33
|
-
reflex/.templates/web/utils/state.js,sha256=
|
|
33
|
+
reflex/.templates/web/utils/state.js,sha256=sf8v15y5FXGeuQg1spDRe88pl3Kdv7n4_338tqu_xkY,31894
|
|
34
34
|
reflex/.templates/web/utils/helpers/dataeditor.js,sha256=pG6MgsHuStDR7-qPipzfiK32j9bKDBa-4hZ0JSUo4JM,1623
|
|
35
35
|
reflex/.templates/web/utils/helpers/debounce.js,sha256=xGhtTRtS_xIcaeqnYVvYJNseLgQVk-DW-eFiHJYO9As,528
|
|
36
36
|
reflex/.templates/web/utils/helpers/paste.js,sha256=ef30HsR83jRzzvZnl8yV79yqFP8TC_u8SlN99cCS_OM,1799
|
|
37
37
|
reflex/.templates/web/utils/helpers/range.js,sha256=Bjr7Ex1Mghpsopjfrcp__IVFw8F8AsMiP-0nE20ZZwk,1091
|
|
38
38
|
reflex/.templates/web/utils/helpers/throttle.js,sha256=qxeyaEojaTeX36FPGftzVWrzDsRQU4iqg3U9RJz9Vj4,566
|
|
39
|
+
reflex/.templates/web/utils/helpers/upload.js,sha256=YiAv-KC-LijTsEmzG_o6YxUprgSN7Pbyd__xu8HTX6s,4814
|
|
39
40
|
reflex/app_mixins/__init__.py,sha256=Oegz3-gZLP9p2OAN5ALNbsgxuNQfS6lGZgQA8cc-9mQ,137
|
|
40
41
|
reflex/app_mixins/lifespan.py,sha256=a156ZUYVo2bN1Tv-4WmWSjojo90PP_2-V12BX0q8YNw,3543
|
|
41
42
|
reflex/app_mixins/middleware.py,sha256=BKhe0jUFO1_TylEC48LUZyaeYyPmAYW-NV4H5Rw221k,2848
|
|
42
43
|
reflex/app_mixins/mixin.py,sha256=R1YncalqDrbdPZvpKVbm72ZKmQZxYAWfuFq9JknzTqQ,305
|
|
43
44
|
reflex/compiler/__init__.py,sha256=r8jqmDSFf09iV2lHlNhfc9XrTLjNxfDNwPYlxS4cmHE,27
|
|
44
|
-
reflex/compiler/compiler.py,sha256=
|
|
45
|
-
reflex/compiler/templates.py,sha256=
|
|
45
|
+
reflex/compiler/compiler.py,sha256=rE0aMl_xwq-qvPd6fgvUV_F4qaMiNKo_82LfCKbX258,29114
|
|
46
|
+
reflex/compiler/templates.py,sha256=k4Z-vftCk1W_dBweQtHt7UExPkS-jgaBhUtbMhzg02w,20518
|
|
46
47
|
reflex/compiler/utils.py,sha256=RmeUoZMHdIfnqPl-p0ToPgwd0FEFO5u0Xbb-J20UYdQ,19621
|
|
47
48
|
reflex/components/__init__.py,sha256=eWpgWFbSQDj2TpGp6StEbxU7roQgzY7ZM0XIcIc5RE8,588
|
|
48
49
|
reflex/components/__init__.pyi,sha256=7VFHtJGIjvGtD3IiPk848IPWYSCcPRT1EyPGljLhYlU,736
|
|
49
|
-
reflex/components/component.py,sha256=
|
|
50
|
+
reflex/components/component.py,sha256=FpKwvwszkxZAP3NIAdJTQxo5wd4cMiRwY9FSXlzw8qI,97637
|
|
50
51
|
reflex/components/dynamic.py,sha256=M3Waonox1lMCs9db_0iz4VtmBLuETpzZvvJ8m4iNAhE,7384
|
|
51
|
-
reflex/components/field.py,sha256=
|
|
52
|
+
reflex/components/field.py,sha256=9GiK8_nnVE4k6fCOfMycz0IaxK2bzNf_JrspPnHBqcY,5851
|
|
52
53
|
reflex/components/literals.py,sha256=hogLnwTJxFJODIvqihg-GD9kFZVsEBDoYzaRit56Nuk,501
|
|
53
|
-
reflex/components/props.py,sha256=
|
|
54
|
+
reflex/components/props.py,sha256=NrDGIBmBJZID4-m_mtVLUpKUdVUC2_oZz7vNlJ0bxGs,14972
|
|
54
55
|
reflex/components/base/__init__.py,sha256=6DzVn2oVZqmsXYq3r9AN8Q40R0NAsyRpSyVzBDZndz0,690
|
|
55
56
|
reflex/components/base/__init__.pyi,sha256=CoM0dGGkZSKLNHe6KBS4Zgc6sRpRGM5dZ_EuVmZ2qkA,883
|
|
56
57
|
reflex/components/base/app_wrap.py,sha256=5K_myvYvHPeAJbm3BdEX17tKvdNEj6SV9RYahbIQBAQ,514
|
|
@@ -94,15 +95,15 @@ reflex/components/core/match.py,sha256=xBB9vtWgVlotPHq6ssng8lzxwXDDQLp9k6Ew5RPPd
|
|
|
94
95
|
reflex/components/core/responsive.py,sha256=ACZdtJ4a4F8B3dm1k8h6J2_UJx0Z5LDB7XHQ2ty4wAc,1911
|
|
95
96
|
reflex/components/core/sticky.py,sha256=2B3TxrwG2Rtp_lv1VkMOIF2bqSiT7qYGbqbiZiMKxKY,3856
|
|
96
97
|
reflex/components/core/sticky.pyi,sha256=5D-yT0LYs0ewOlUlInU7KCpuz49yKK7dirysUs1C2VI,32908
|
|
97
|
-
reflex/components/core/upload.py,sha256=
|
|
98
|
+
reflex/components/core/upload.py,sha256=OEjXq4O06YSoRlJvYs-hyFJgo7GzQJByO9RqPI1RUzc,13585
|
|
98
99
|
reflex/components/core/upload.pyi,sha256=UqfcPGUs8xmnKHKuvqYV7CtOXeF_D1s9ooRe49w6C3E,15757
|
|
99
100
|
reflex/components/core/window_events.py,sha256=opbuO20zVxt252kQLk49V7cltb_Um2oh7iePeGNJ538,3355
|
|
100
101
|
reflex/components/core/window_events.pyi,sha256=aTkBiAy-e9LqkQm6_apRsXXfJRdawA11cE1tQQSIy3c,3206
|
|
101
102
|
reflex/components/core/layout/__init__.py,sha256=znldZaj_NGt8qCZDG70GMwjMTskcvCf_2N_EjCAHwdc,30
|
|
102
103
|
reflex/components/datadisplay/__init__.py,sha256=L8pWWKNHWdUD2fbZRoEKjd_8c_hpDdGYO463hwkoIi4,438
|
|
103
104
|
reflex/components/datadisplay/__init__.pyi,sha256=H3LZkWdrw3RTv_csaIT8qoClgAJTonlGZ5ZMeGMV0Bs,551
|
|
104
|
-
reflex/components/datadisplay/code.py,sha256
|
|
105
|
-
reflex/components/datadisplay/code.pyi,sha256
|
|
105
|
+
reflex/components/datadisplay/code.py,sha256=DQjferNi6QD2tNZdA28mMRu5KhqejAePxmD23vpcl9Y,12605
|
|
106
|
+
reflex/components/datadisplay/code.pyi,sha256=QCWqxWCsbFqS4CcfgN5P1u12JU7sBcUEEjekZnWSDeU,41375
|
|
106
107
|
reflex/components/datadisplay/dataeditor.py,sha256=cGwAKPYknoHMwVhBowHKFtG2Nxr5q-8hIptnf98U7x0,13574
|
|
107
108
|
reflex/components/datadisplay/dataeditor.pyi,sha256=eDI6w6ZrJRXQsThXu3vS-dfI-aKPMntLN5RmGkJOYCQ,12511
|
|
108
109
|
reflex/components/datadisplay/logo.py,sha256=xvg5TRVRSi2IKn7Kg4oYzWcaFMHfXxUaCp0cQmuKSn0,1993
|
|
@@ -138,8 +139,8 @@ reflex/components/gridjs/__init__.py,sha256=xJwDm1AZ70L5-t9LLqZwGUtDpijbf1KuMYDT
|
|
|
138
139
|
reflex/components/gridjs/datatable.py,sha256=7JKrRw1zkpFB0_wwoaIhrVrldsm7-dyi3PASgqLq8Hc,4224
|
|
139
140
|
reflex/components/gridjs/datatable.pyi,sha256=kFgv82vCgfdWZaUq4bZ73G8X3mkw6ecvSRkZ9G9-28E,5185
|
|
140
141
|
reflex/components/lucide/__init__.py,sha256=EggTK2MuQKQeOBLKW-mF0VaDK9zdWBImu1HO2dvHZbE,73
|
|
141
|
-
reflex/components/lucide/icon.py,sha256=
|
|
142
|
-
reflex/components/lucide/icon.pyi,sha256=
|
|
142
|
+
reflex/components/lucide/icon.py,sha256=GYF1VPrKjXU8RQxBe0CZaM209Br6uw1Z2sc79bvdj3U,35340
|
|
143
|
+
reflex/components/lucide/icon.pyi,sha256=MjWdRIf7t5hcWoUaxor5Lzh4yuWcES75cEUjLOXvmP8,38134
|
|
143
144
|
reflex/components/markdown/__init__.py,sha256=Dfl1At5uYoY7H4ufZU_RY2KOGQDLtj75dsZ2BTqqAns,87
|
|
144
145
|
reflex/components/markdown/markdown.py,sha256=kzvO2VnfCbxV7AcIMBJbxLtAlQ6U5T_QB_JTh8l-HJ4,15450
|
|
145
146
|
reflex/components/markdown/markdown.pyi,sha256=oOlXZItHB0TPWsFz1Qjvr3KzG8sssthBp40UO_KkRIA,4322
|
|
@@ -298,7 +299,7 @@ reflex/components/recharts/general.py,sha256=DuPDfccUWWehc40ji7_JSYHX_AoJyGn_-4y
|
|
|
298
299
|
reflex/components/recharts/general.pyi,sha256=e77vGL8lo-t1jI79h0O12qSK5e9wbjerPslCxQQgSBw,23462
|
|
299
300
|
reflex/components/recharts/polar.py,sha256=zocHpwWQ0lbg4BTnEBwQ6J9SSJsOYRwZGf9UPzxoNKs,15682
|
|
300
301
|
reflex/components/recharts/polar.pyi,sha256=8ShEcGK9KJyu0FN6KPys1kgAYrzOZ6wtiRuytHJ--38,26937
|
|
301
|
-
reflex/components/recharts/recharts.py,sha256=
|
|
302
|
+
reflex/components/recharts/recharts.py,sha256=rAboy3XFOeSWJK-T4UMeiDBpjxKr8mZl_rRu01_-wWM,3221
|
|
302
303
|
reflex/components/recharts/recharts.pyi,sha256=9j8cVSMqyBkkOBBrx9pzDpP1clnbM9kD0TTViTUGDYc,7084
|
|
303
304
|
reflex/components/sonner/__init__.py,sha256=L_mdRIy7-ccRGSz5VK6J8O-c-e-D1p9xWw29_ErrvGg,68
|
|
304
305
|
reflex/components/sonner/toast.py,sha256=sJ9E60VaMBwoev4aBrKr42ygN7e0jajNTooa5o5wYPQ,12505
|
|
@@ -316,9 +317,9 @@ reflex/constants/compiler.py,sha256=1FXPYQNotaSrTwWcOspA1gCVmEdoiWkNMbbrz_qU0YU,
|
|
|
316
317
|
reflex/constants/config.py,sha256=8OIjiBdZZJrRVHsNBheMwopE9AwBFFzau0SXqXKcrPg,1715
|
|
317
318
|
reflex/constants/custom_components.py,sha256=joJt4CEt1yKy7wsBH6vYo7_QRW0O_fWXrrTf0VY2q14,1317
|
|
318
319
|
reflex/constants/event.py,sha256=tgoynWQi2L0_Kqc3XhXo7XXL76A-OKhJGHRrNjm7gFw,2885
|
|
319
|
-
reflex/constants/installer.py,sha256=
|
|
320
|
+
reflex/constants/installer.py,sha256=VC20iXTYue0GXqwlJIAwDuFrNM-eSzhHs3CsM_KQMwA,4191
|
|
320
321
|
reflex/constants/route.py,sha256=UBjqaAOxiUxlDZCSY4O2JJChKvA4MZrhUU0E5rNvKbM,2682
|
|
321
|
-
reflex/constants/state.py,sha256=
|
|
322
|
+
reflex/constants/state.py,sha256=VrEeYxXfE9ss8RmOHIXD4T6EGsV9PDqbtMCQMmZxW3I,383
|
|
322
323
|
reflex/constants/utils.py,sha256=e1ChEvbHfmE_V2UJvCSUhD_qTVAIhEGPpRJSqdSd6PA,780
|
|
323
324
|
reflex/custom_components/__init__.py,sha256=R4zsvOi4dfPmHc18KEphohXnQFBPnUCb50cMR5hSLDE,36
|
|
324
325
|
reflex/custom_components/custom_components.py,sha256=QfSEiPQY7Z7ZdYDsxJOgtD7EZopIdGw2ERpt_dMcPCs,25500
|
|
@@ -341,7 +342,7 @@ reflex/plugins/base.py,sha256=5BgzCM7boj9kJ6FGzVzVlgQk-crJuVmOLCl1PXvv4-E,3372
|
|
|
341
342
|
reflex/plugins/shared_tailwind.py,sha256=Zx1TDAjpXGI5aEjpB8NWS__xYRSNu_SEMTB6Z3ub120,7305
|
|
342
343
|
reflex/plugins/sitemap.py,sha256=X_CtH5B1w3CZno-gdPj1rp63WjOuNjFnX4B3fx_-VFQ,6135
|
|
343
344
|
reflex/plugins/tailwind_v3.py,sha256=jCEZ5UYdr706Mw48L-WSHOUB6O55o1C3uG6AMwXqZoI,4810
|
|
344
|
-
reflex/plugins/tailwind_v4.py,sha256=
|
|
345
|
+
reflex/plugins/tailwind_v4.py,sha256=fcNaFtikSIu1LhF94DcBs1xR2CjbQRB5o1_KYeThUF0,5230
|
|
345
346
|
reflex/utils/__init__.py,sha256=y-AHKiRQAhk2oAkvn7W8cRVTZVK625ff8tTwvZtO7S4,24
|
|
346
347
|
reflex/utils/build.py,sha256=GLT2ycqgAe1cw__MFbfdlYrkzcTnY1oJ8cAv80jEcnQ,8641
|
|
347
348
|
reflex/utils/codespaces.py,sha256=kEQ-j-jclTukFpXDlYgNp95kYMGDrQmP3VNEoYGZ1u4,3052
|
|
@@ -380,8 +381,8 @@ reflex/vars/number.py,sha256=tO7pnvFaBsedq1HWT4skytnSqHWMluGEhUbjAUMx8XQ,28190
|
|
|
380
381
|
reflex/vars/object.py,sha256=YblDxQYMajR19a7qjavXcM7-9A6MweAH1giw5fjPci4,17349
|
|
381
382
|
reflex/vars/sequence.py,sha256=1kBrqihspyjyQ1XDqFPC8OpVGtZs_EVkOdIKBro5ilA,55249
|
|
382
383
|
scripts/hatch_build.py,sha256=-4pxcLSFmirmujGpQX9UUxjhIC03tQ_fIQwVbHu9kc0,1861
|
|
383
|
-
reflex-0.8.
|
|
384
|
-
reflex-0.8.
|
|
385
|
-
reflex-0.8.
|
|
386
|
-
reflex-0.8.
|
|
387
|
-
reflex-0.8.
|
|
384
|
+
reflex-0.8.11.dist-info/METADATA,sha256=GmzTfJHUNWTweW9Rn_wvSW48OaRJ92p4pRd6IpLjL6k,12334
|
|
385
|
+
reflex-0.8.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
386
|
+
reflex-0.8.11.dist-info/entry_points.txt,sha256=Rxt4dXc7MLBNt5CSHTehVPuSe9Xqow4HLX55nD9tQQ0,45
|
|
387
|
+
reflex-0.8.11.dist-info/licenses/LICENSE,sha256=dw3zLrp9f5ObD7kqS32vWfhcImfO52PMmRqvtxq_YEE,11358
|
|
388
|
+
reflex-0.8.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|