flet-web 0.70.0.dev5463__py3-none-any.whl → 0.70.0.dev5490__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 flet-web might be problematic. Click here for more details.
- flet_web/fastapi/flet_app.py +7 -8
- flet_web/version.py +1 -1
- flet_web/web/flutter_bootstrap.js +1 -1
- flet_web/web/flutter_service_worker.js +4 -4
- flet_web/web/main.dart.js +22732 -22731
- flet_web/web/main.dart.mjs +3 -1
- flet_web/web/main.dart.wasm +0 -0
- flet_web/web/pyodide/micropip-0.8.0-py3-none-any.whl +2 -2
- {flet_web-0.70.0.dev5463.dist-info → flet_web-0.70.0.dev5490.dist-info}/METADATA +2 -2
- {flet_web-0.70.0.dev5463.dist-info → flet_web-0.70.0.dev5490.dist-info}/RECORD +12 -12
- {flet_web-0.70.0.dev5463.dist-info → flet_web-0.70.0.dev5490.dist-info}/WHEEL +0 -0
- {flet_web-0.70.0.dev5463.dist-info → flet_web-0.70.0.dev5490.dist-info}/top_level.txt +0 -0
flet_web/fastapi/flet_app.py
CHANGED
|
@@ -10,10 +10,11 @@ from typing import Any, Optional
|
|
|
10
10
|
|
|
11
11
|
import msgpack
|
|
12
12
|
from fastapi import WebSocket, WebSocketDisconnect
|
|
13
|
+
|
|
14
|
+
import flet_web.fastapi as flet_fastapi
|
|
13
15
|
from flet.controls.base_control import BaseControl
|
|
14
|
-
from flet.controls.context import _context_page
|
|
16
|
+
from flet.controls.context import _context_page, context
|
|
15
17
|
from flet.controls.exceptions import FletPageDisconnectedException
|
|
16
|
-
from flet.controls.update_behavior import UpdateBehavior
|
|
17
18
|
from flet.messaging.connection import Connection
|
|
18
19
|
from flet.messaging.protocol import (
|
|
19
20
|
ClientAction,
|
|
@@ -28,8 +29,6 @@ from flet.messaging.protocol import (
|
|
|
28
29
|
)
|
|
29
30
|
from flet.messaging.session import Session
|
|
30
31
|
from flet.utils import random_string, sha1
|
|
31
|
-
|
|
32
|
-
import flet_web.fastapi as flet_fastapi
|
|
33
32
|
from flet_web.fastapi.flet_app_manager import app_manager
|
|
34
33
|
from flet_web.fastapi.oauth_state import OAuthState
|
|
35
34
|
from flet_web.uploads import build_upload_url
|
|
@@ -140,24 +139,24 @@ class FletApp(Connection):
|
|
|
140
139
|
try:
|
|
141
140
|
assert self.__main is not None
|
|
142
141
|
_context_page.set(self.__session.page)
|
|
143
|
-
|
|
142
|
+
context.reset_auto_update()
|
|
144
143
|
|
|
145
144
|
if asyncio.iscoroutinefunction(self.__main):
|
|
146
145
|
await self.__main(self.__session.page)
|
|
147
146
|
|
|
148
147
|
elif inspect.isasyncgenfunction(self.__main):
|
|
149
148
|
async for _ in self.__main(self.__session.page):
|
|
150
|
-
if
|
|
149
|
+
if context.auto_update_enabled():
|
|
151
150
|
await self.__session.auto_update(self.__session.page)
|
|
152
151
|
|
|
153
152
|
elif inspect.isgeneratorfunction(self.__main):
|
|
154
153
|
for _ in self.__main(self.__session.page):
|
|
155
|
-
if
|
|
154
|
+
if context.auto_update_enabled():
|
|
156
155
|
await self.__session.auto_update(self.__session.page)
|
|
157
156
|
else:
|
|
158
157
|
self.__main(self.__session.page)
|
|
159
158
|
|
|
160
|
-
if
|
|
159
|
+
if context.auto_update_enabled():
|
|
161
160
|
await self.__session.auto_update(self.__session.page)
|
|
162
161
|
except FletPageDisconnectedException:
|
|
163
162
|
logger.debug(
|
flet_web/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "0.70.0.
|
|
1
|
+
version = "0.70.0.dev5490"
|
|
@@ -54,7 +54,7 @@ if (flet.noCdn) {
|
|
|
54
54
|
_flutter.loader.load({
|
|
55
55
|
config: flutterConfig,
|
|
56
56
|
serviceWorkerSettings: {
|
|
57
|
-
serviceWorkerVersion: "
|
|
57
|
+
serviceWorkerVersion: "1148639520",
|
|
58
58
|
},
|
|
59
59
|
onEntrypointLoaded: async function (engineInitializer) {
|
|
60
60
|
loading.classList.add('main_done');
|
|
@@ -3,7 +3,7 @@ const MANIFEST = 'flutter-app-manifest';
|
|
|
3
3
|
const TEMP = 'flutter-temp-cache';
|
|
4
4
|
const CACHE_NAME = 'flutter-app-cache';
|
|
5
5
|
|
|
6
|
-
const RESOURCES = {"main.dart.js": "
|
|
6
|
+
const RESOURCES = {"main.dart.js": "235ecbd8193ecd999eaf64c210dd995d",
|
|
7
7
|
"manifest.json": "58765f937ba0d0c40a3a714c5c1adb87",
|
|
8
8
|
"python-worker.js": "26eb131f3acb5ce232fea72da957e8ce",
|
|
9
9
|
"canvaskit/skwasm.wasm": "39dd80367a4e71582d234948adc521c0",
|
|
@@ -15,8 +15,8 @@ const RESOURCES = {"main.dart.js": "a7bd032ddf021f1e67c223328fc505f4",
|
|
|
15
15
|
"canvaskit/skwasm.js.symbols": "e72c79950c8a8483d826a7f0560573a1",
|
|
16
16
|
"canvaskit/canvaskit.js": "728b2d477d9b8c14593d4f9b82b484f3",
|
|
17
17
|
"canvaskit/canvaskit.wasm": "7a3f4ae7d65fc1de6a6e7ddd3224bc93",
|
|
18
|
-
"flutter_bootstrap.js": "
|
|
19
|
-
"main.dart.wasm": "
|
|
18
|
+
"flutter_bootstrap.js": "0a4957a882457fae7106094e6ad77583",
|
|
19
|
+
"main.dart.wasm": "7a151657b512e650ad2b5a1cd033830d",
|
|
20
20
|
"favicon.png": "302ac04c14db027d016d1fe74c6a80a0",
|
|
21
21
|
"flutter.js": "83d881c1dbb6d6bcd6b42e274605b69c",
|
|
22
22
|
"index.html": "55e4a5140b3c5f98b694331a15299630",
|
|
@@ -41,7 +41,7 @@ const RESOURCES = {"main.dart.js": "a7bd032ddf021f1e67c223328fc505f4",
|
|
|
41
41
|
"icons/icon-maskable-192.png": "c1c2210feeb444cf800a5ce0d06eff16",
|
|
42
42
|
"icons/loading-animation.png": "41a96047dbd2463a50c46ad3bf6ff158",
|
|
43
43
|
"icons/icon-maskable-512.png": "aa798e6d780ff109da17c3a98d5f2619",
|
|
44
|
-
"main.dart.mjs": "
|
|
44
|
+
"main.dart.mjs": "c6451e36348b3511fc4329a809032b7a",
|
|
45
45
|
"python.js": "352c5261eadd3cc73ac082984266c0fc",
|
|
46
46
|
"version.json": "3fea9d9c7b4ca6955aa03e762e0d2e13"};
|
|
47
47
|
// The application shell files that are downloaded before a service worker can
|