@hexclave/tanstack-start 1.0.24 → 1.0.25

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 (70) hide show
  1. package/dist/components/elements/sidebar-layout.js +1 -1
  2. package/dist/dev-tool/dev-tool-core.d.ts.map +1 -1
  3. package/dist/dev-tool/dev-tool-core.js +3 -67
  4. package/dist/dev-tool/dev-tool-core.js.map +1 -1
  5. package/dist/esm/components/elements/sidebar-layout.js +1 -1
  6. package/dist/esm/dev-tool/dev-tool-core.d.ts.map +1 -1
  7. package/dist/esm/dev-tool/dev-tool-core.js +3 -67
  8. package/dist/esm/dev-tool/dev-tool-core.js.map +1 -1
  9. package/dist/esm/generated/quetzal-translations.d.ts +2 -2
  10. package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts.map +1 -1
  11. package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.js +2 -0
  12. package/dist/esm/lib/hexclave-app/apps/implementations/admin-app-impl.js.map +1 -1
  13. package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.d.ts.map +1 -1
  14. package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.js +9 -3
  15. package/dist/esm/lib/hexclave-app/apps/implementations/client-app-impl.js.map +1 -1
  16. package/dist/esm/lib/hexclave-app/apps/implementations/common.js +1 -1
  17. package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.d.ts.map +1 -1
  18. package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.js +2 -1
  19. package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.js.map +1 -1
  20. package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.test.js +26 -0
  21. package/dist/esm/lib/hexclave-app/apps/implementations/event-tracker.test.js.map +1 -1
  22. package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.d.ts +7 -1
  23. package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.d.ts.map +1 -1
  24. package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.js +11 -1
  25. package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.js.map +1 -1
  26. package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.test.js +43 -0
  27. package/dist/esm/lib/hexclave-app/apps/implementations/session-replay.test.js.map +1 -1
  28. package/dist/esm/lib/hexclave-app/projects/index.d.ts +6 -0
  29. package/dist/esm/lib/hexclave-app/projects/index.d.ts.map +1 -1
  30. package/dist/esm/lib/hexclave-app/projects/index.js.map +1 -1
  31. package/dist/esm/pushed-config-error-overlay/index.d.ts +7 -0
  32. package/dist/esm/pushed-config-error-overlay/index.d.ts.map +1 -0
  33. package/dist/esm/pushed-config-error-overlay/index.js +464 -0
  34. package/dist/esm/pushed-config-error-overlay/index.js.map +1 -0
  35. package/dist/generated/quetzal-translations.d.ts +2 -2
  36. package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.d.ts.map +1 -1
  37. package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.js +2 -0
  38. package/dist/lib/hexclave-app/apps/implementations/admin-app-impl.js.map +1 -1
  39. package/dist/lib/hexclave-app/apps/implementations/client-app-impl.d.ts.map +1 -1
  40. package/dist/lib/hexclave-app/apps/implementations/client-app-impl.js +9 -3
  41. package/dist/lib/hexclave-app/apps/implementations/client-app-impl.js.map +1 -1
  42. package/dist/lib/hexclave-app/apps/implementations/common.js +1 -1
  43. package/dist/lib/hexclave-app/apps/implementations/event-tracker.d.ts.map +1 -1
  44. package/dist/lib/hexclave-app/apps/implementations/event-tracker.js +1 -0
  45. package/dist/lib/hexclave-app/apps/implementations/event-tracker.js.map +1 -1
  46. package/dist/lib/hexclave-app/apps/implementations/event-tracker.test.js +26 -0
  47. package/dist/lib/hexclave-app/apps/implementations/event-tracker.test.js.map +1 -1
  48. package/dist/lib/hexclave-app/apps/implementations/session-replay.d.ts +7 -1
  49. package/dist/lib/hexclave-app/apps/implementations/session-replay.d.ts.map +1 -1
  50. package/dist/lib/hexclave-app/apps/implementations/session-replay.js +11 -0
  51. package/dist/lib/hexclave-app/apps/implementations/session-replay.js.map +1 -1
  52. package/dist/lib/hexclave-app/apps/implementations/session-replay.test.js +43 -0
  53. package/dist/lib/hexclave-app/apps/implementations/session-replay.test.js.map +1 -1
  54. package/dist/lib/hexclave-app/projects/index.d.ts +6 -0
  55. package/dist/lib/hexclave-app/projects/index.d.ts.map +1 -1
  56. package/dist/lib/hexclave-app/projects/index.js.map +1 -1
  57. package/dist/pushed-config-error-overlay/index.d.ts +7 -0
  58. package/dist/pushed-config-error-overlay/index.d.ts.map +1 -0
  59. package/dist/pushed-config-error-overlay/index.js +466 -0
  60. package/dist/pushed-config-error-overlay/index.js.map +1 -0
  61. package/package.json +3 -3
  62. package/src/dev-tool/dev-tool-core.ts +4 -58
  63. package/src/lib/hexclave-app/apps/implementations/admin-app-impl.ts +6 -0
  64. package/src/lib/hexclave-app/apps/implementations/client-app-impl.ts +11 -3
  65. package/src/lib/hexclave-app/apps/implementations/event-tracker.test.ts +33 -0
  66. package/src/lib/hexclave-app/apps/implementations/event-tracker.ts +6 -1
  67. package/src/lib/hexclave-app/apps/implementations/session-replay.test.ts +52 -0
  68. package/src/lib/hexclave-app/apps/implementations/session-replay.ts +20 -0
  69. package/src/lib/hexclave-app/projects/index.ts +2 -0
  70. package/src/pushed-config-error-overlay/index.ts +548 -0
@@ -7,8 +7,8 @@ let react = require("react");
7
7
  react = require_chunk.__toESM(react);
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
9
  let lucide_react = require("lucide-react");
10
- let ______index_js = require("../../index.js");
11
10
  let _hexclave_shared_dist_hooks_use_hash = require("@hexclave/shared/dist/hooks/use-hash");
11
+ let ______index_js = require("../../index.js");
12
12
 
13
13
  //#region src/components/elements/sidebar-layout.tsx
14
14
  function SidebarLayout(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"dev-tool-core.d.ts","names":[],"sources":["../../src/dev-tool/dev-tool-core.ts"],"mappings":";;;iBAkxEgB,aAAA,CAAc,GAAA,EAAK,cAAA"}
1
+ {"version":3,"file":"dev-tool-core.d.ts","names":[],"sources":["../../src/dev-tool/dev-tool-core.ts"],"mappings":";;;iBA4tEgB,aAAA,CAAc,GAAA,EAAK,cAAA"}
@@ -504,14 +504,6 @@ function createOverviewTab(app) {
504
504
  className: "sdt-ov-toast",
505
505
  style: { display: "none" }
506
506
  });
507
- const emailRow = (0, ___in_page_ui_dom_js.h)("div", { className: "sdt-ov-email-input" });
508
- const emailInput = (0, ___in_page_ui_dom_js.h)("input", {
509
- type: "email",
510
- placeholder: "Sign in as email…"
511
- });
512
- const emailBtn = (0, ___in_page_ui_dom_js.h)("button", null);
513
- (0, ___in_page_ui_dom_js.setHtml)(emailBtn, "<svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"/><polyline points=\"12 5 19 12 12 19\"/></svg>");
514
- emailRow.append(emailInput, emailBtn);
515
507
  function isBestEffortOverviewError(error) {
516
508
  if (error instanceof DOMException && error.name === "AbortError") return true;
517
509
  if (error instanceof TypeError) return true;
@@ -563,15 +555,13 @@ function createOverviewTab(app) {
563
555
  });
564
556
  actions.append(signOutBtn, randomBtn);
565
557
  } else {
566
- const quickBtn = (0, ___in_page_ui_dom_js.h)("button", { className: "sdt-ov-btn sdt-ov-btn-primary sdt-ov-btn-wide" }, loading ? "Working…" : "Quick Sign In");
558
+ const quickBtn = (0, ___in_page_ui_dom_js.h)("button", { className: "sdt-ov-btn sdt-ov-btn-primary sdt-ov-btn-wide" }, loading ? "Working…" : "Quick Sign Up");
567
559
  quickBtn.disabled = loading;
568
560
  quickBtn.addEventListener("click", () => {
569
561
  (0, _hexclave_shared_dist_utils_promises.runAsynchronously)(doQuickSignIn());
570
562
  });
571
563
  actions.appendChild(quickBtn);
572
564
  }
573
- emailInput.placeholder = currentUser ? "Switch to email…" : "Sign in as email…";
574
- actions.appendChild(emailRow);
575
565
  }
576
566
  async function doQuickSignIn() {
577
567
  if (!(0, _hexclave_shared_dist_utils_urls.isLocalhost)(window.location.href)) {
@@ -606,60 +596,6 @@ function createOverviewTab(app) {
606
596
  loading = false;
607
597
  await refreshUser();
608
598
  }
609
- async function doSignInAs(targetEmail) {
610
- if (!targetEmail.trim()) return;
611
- if (!(0, _hexclave_shared_dist_utils_urls.isLocalhost)(window.location.href)) {
612
- showToast("Quick sign-in is only available on localhost", "error");
613
- return;
614
- }
615
- loading = true;
616
- rebuildActions();
617
- const trimmed = targetEmail.trim();
618
- try {
619
- if ((await app.signInWithCredential({
620
- email: trimmed,
621
- password: trimmed,
622
- noRedirect: true
623
- })).status === "ok") {
624
- showToast(`Signed in as ${trimmed}`, "success");
625
- emailInput.value = "";
626
- loading = false;
627
- await refreshUser();
628
- return;
629
- }
630
- const signUpResult = await app.signUpWithCredential({
631
- email: trimmed,
632
- password: trimmed,
633
- noRedirect: true
634
- });
635
- if (signUpResult.status === "error") {
636
- showToast(`Failed: ${signUpResult.error.message}`, "error");
637
- loading = false;
638
- rebuildActions();
639
- return;
640
- }
641
- const retryResult = await app.signInWithCredential({
642
- email: trimmed,
643
- password: trimmed,
644
- noRedirect: true
645
- });
646
- if (retryResult.status === "error") showToast(`Sign in failed: ${retryResult.error.message}`, "error");
647
- else {
648
- showToast(`Signed in as ${trimmed}`, "success");
649
- emailInput.value = "";
650
- }
651
- } catch (e) {
652
- showToast(e.message || "Unknown error", "error");
653
- }
654
- loading = false;
655
- await refreshUser();
656
- }
657
- emailBtn.addEventListener("click", () => {
658
- (0, _hexclave_shared_dist_utils_promises.runAsynchronously)(doSignInAs(emailInput.value));
659
- });
660
- emailInput.addEventListener("keydown", (e) => {
661
- if (e.key === "Enter") (0, _hexclave_shared_dist_utils_promises.runAsynchronously)(doSignInAs(emailInput.value));
662
- });
663
599
  heroCard.append(actions, toast);
664
600
  const methodsCard = (0, ___in_page_ui_dom_js.h)("div", { className: "sdt-ov-card sdt-ov-card-auth" });
665
601
  methodsCard.appendChild((0, ___in_page_ui_dom_js.h)("div", { className: "sdt-ov-label" }, "Auth Methods"));
@@ -730,7 +666,7 @@ function createOverviewTab(app) {
730
666
  hasPersistentTokenStore ? {
731
667
  ok: !!currentUser,
732
668
  label: "Sign in a test user",
733
- hint: "Use “Quick Sign In” above →"
669
+ hint: "Use “Quick Sign Up” above →"
734
670
  } : {
735
671
  ok: true,
736
672
  label: "Current-user tools unavailable",
@@ -792,7 +728,7 @@ function createOverviewTab(app) {
792
728
  avatar.className = "sdt-ov-avatar sdt-ov-avatar-active";
793
729
  if (currentUser.profileImageUrl) avatar.innerHTML = `<img src="${escapeHtml(currentUser.profileImageUrl)}" alt="" />`;
794
730
  else avatar.textContent = initials;
795
- userName.textContent = currentUser.displayName || "Anonymous";
731
+ userName.textContent = currentUser.displayName || "(No display name)";
796
732
  userEmail.textContent = currentUser.primaryEmail || "No email";
797
733
  authIndicator.style.display = "";
798
734
  } else {