workpeg 0.97.1__tar.gz → 0.97.2__tar.gz

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.
Files changed (74) hide show
  1. {workpeg-0.97.1/src/workpeg.egg-info → workpeg-0.97.2}/PKG-INFO +1 -1
  2. {workpeg-0.97.1 → workpeg-0.97.2}/pyproject.toml +1 -1
  3. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/runtime/scaffold.js +22 -0
  4. {workpeg-0.97.1 → workpeg-0.97.2/src/workpeg.egg-info}/PKG-INFO +1 -1
  5. {workpeg-0.97.1 → workpeg-0.97.2}/LICENSE +0 -0
  6. {workpeg-0.97.1 → workpeg-0.97.2}/MANIFEST.in +0 -0
  7. {workpeg-0.97.1 → workpeg-0.97.2}/README.md +0 -0
  8. {workpeg-0.97.1 → workpeg-0.97.2}/setup.cfg +0 -0
  9. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/__init__.py +0 -0
  10. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/build.py +0 -0
  11. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/cdn.py +0 -0
  12. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/cli.py +0 -0
  13. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/config.py +0 -0
  14. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/context.py +0 -0
  15. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/create_new.py +0 -0
  16. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/run.py +0 -0
  17. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/runtime.py +0 -0
  18. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/submit.py +0 -0
  19. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/templates/__init__.py +0 -0
  20. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/templates/functions/Dockerfile +0 -0
  21. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/templates/functions/LICENSE +0 -0
  22. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/templates/functions/README.md +0 -0
  23. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/templates/functions/app/__init__.py +0 -0
  24. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/templates/functions/app/main.py +0 -0
  25. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/templates/functions/requirements.txt +0 -0
  26. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/__init__.py +0 -0
  27. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/actions.py +0 -0
  28. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/app.py +0 -0
  29. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/build.py +0 -0
  30. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/compiler/__init__.py +0 -0
  31. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/compiler/ast_parser.py +0 -0
  32. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/compiler/ir.py +0 -0
  33. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/compiler/js_generator.py +0 -0
  34. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/create.py +0 -0
  35. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/fake_cloud.py +0 -0
  36. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/minify.py +0 -0
  37. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/runtime/ai.js +0 -0
  38. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/runtime/pegment.css +0 -0
  39. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/runtime/workpeg-runtime.js +0 -0
  40. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/scaffold.py +0 -0
  41. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/serve.py +0 -0
  42. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/state.py +0 -0
  43. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/validators.py +0 -0
  44. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/watcher.py +0 -0
  45. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/widgets/__init__.py +0 -0
  46. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/widgets/base.py +0 -0
  47. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/widgets/canvas.py +0 -0
  48. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/widgets/display.py +0 -0
  49. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/widgets/forms.py +0 -0
  50. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/widgets/futures.py +0 -0
  51. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/widgets/gestures.py +0 -0
  52. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/widgets/interactive.py +0 -0
  53. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/ui/widgets/layout.py +0 -0
  54. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg/utils.py +0 -0
  55. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg.egg-info/SOURCES.txt +0 -0
  56. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg.egg-info/dependency_links.txt +0 -0
  57. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg.egg-info/entry_points.txt +0 -0
  58. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg.egg-info/requires.txt +0 -0
  59. {workpeg-0.97.1 → workpeg-0.97.2}/src/workpeg.egg-info/top_level.txt +0 -0
  60. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_build.py +0 -0
  61. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_cdn.py +0 -0
  62. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_cdn_publish.py +0 -0
  63. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_changelog.py +0 -0
  64. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_changelog_guard.py +0 -0
  65. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_cli.py +0 -0
  66. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_config.py +0 -0
  67. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_context.py +0 -0
  68. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_create_new.py +0 -0
  69. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_release_script.py +0 -0
  70. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_run.py +0 -0
  71. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_runtime.py +0 -0
  72. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_submit.py +0 -0
  73. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_utils.py +0 -0
  74. {workpeg-0.97.1 → workpeg-0.97.2}/tests/test_watch_pipeline.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: workpeg
3
- Version: 0.97.1
3
+ Version: 0.97.2
4
4
  Summary: Workpeg function runtime and SDK
5
5
  Author-email: Workpeg <support@workpeg.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "workpeg"
7
- version = "0.97.1"
7
+ version = "0.97.2"
8
8
  description = "Workpeg function runtime and SDK"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -409,12 +409,26 @@
409
409
  return row;
410
410
  }
411
411
 
412
+ // A full-screen "Signing out…" cover, shown the instant Log out is clicked so
413
+ // the DELETE round-trip + redirect never reads as an unresponsive pause. It
414
+ // stays until the redirect navigates away, so there's nothing to remove.
415
+ function showLogoutOverlay() {
416
+ if (typeof document === "undefined" || !document.body) return;
417
+ if (document.getElementById("wps-logout-overlay")) return; // idempotent
418
+ var ov = el("div", "wps-logout-overlay", { attrs: {
419
+ id: "wps-logout-overlay", role: "status", "aria-label": "Signing out" } });
420
+ ov.appendChild(el("div", "wps-spin"));
421
+ ov.appendChild(el("div", "wps-logout-label", { text: "Signing out…" }));
422
+ document.body.appendChild(ov);
423
+ }
424
+
412
425
  // Log out — mirrors space's handlelogOut: DELETE the token (the server drops
413
426
  // the HttpOnly access/refresh cookies), wipe the readable auth cookies, then
414
427
  // bounce to the accounts login (the same redirect the auth gate uses). A
415
428
  // direct credentialed fetch — the workpeg.* client's allowlist (tables /
416
429
  // rows / CDN) intentionally won't reach /users/token/.
417
430
  function logout() {
431
+ showLogoutOverlay(); // immediate feedback before the async pause
418
432
  var api = String(WP().apiBase || "https://api.workpeg.com")
419
433
  .replace(/\/+$/, "");
420
434
  var finish = function () {
@@ -904,6 +918,14 @@
904
918
  "border-top-color:var(--color-text-tertiary);",
905
919
  "animation:wps-spin 0.8s linear infinite}",
906
920
  "@keyframes wps-spin{to{transform:rotate(360deg)}}",
921
+ /* the "Signing out…" cover — an instant full-screen loader on Log out */
922
+ ".wps-logout-overlay{position:fixed;inset:0;z-index:2147483000;",
923
+ "display:flex;flex-direction:column;align-items:center;",
924
+ "justify-content:center;gap:14px;background:var(--color-bg-default);",
925
+ "animation:wps-logout-fade 0.12s ease}",
926
+ ".wps-logout-overlay .wps-spin{width:28px;height:28px;border-width:3px}",
927
+ ".wps-logout-label{color:var(--color-text-secondary);font-size:14px}",
928
+ "@keyframes wps-logout-fade{from{opacity:0}to{opacity:1}}",
907
929
 
908
930
  /* the user / business switcher */
909
931
  ".wps-user{display:flex;align-items:center;width:100%;",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: workpeg
3
- Version: 0.97.1
3
+ Version: 0.97.2
4
4
  Summary: Workpeg function runtime and SDK
5
5
  Author-email: Workpeg <support@workpeg.com>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes