@leadertechie/personal-site-kit 0.1.0-alpha.24 → 0.1.0-alpha.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.
@@ -199,6 +199,7 @@ class Router {
199
199
  ];
200
200
  }
201
201
  init(appElementId = "app") {
202
+ console.log("[Router] Initializing");
202
203
  this.appElement = document.getElementById(appElementId);
203
204
  if (!this.appElement) {
204
205
  console.error(`App element with id ${appElementId} not found`);
@@ -214,8 +215,9 @@ class Router {
214
215
  (el) => el instanceof HTMLElement && el.tagName === "A" && el.getAttribute("href") !== null
215
216
  );
216
217
  if (target) {
217
- event.preventDefault();
218
218
  const route = target.getAttribute("href");
219
+ console.log(`[Router] navigating to ${route}`);
220
+ event.preventDefault();
219
221
  if (route && route !== window.location.pathname) {
220
222
  window.history.pushState({}, "", route);
221
223
  this.navigate(route);
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { A, B, M, R, W, c, a, g, b, d, h, e, r, s, v } from "./chunks/website-ap
2
2
  import { WebsitePrerender } from "./prerender.js";
3
3
  import { A as A2, a as a2, b as b2, c as c2, d as d2, e as e2, f, g as g2, h as h2, i, B as B2, F, M as M2, j, S, k } from "./chunks/index-DsRjL9Uy.js";
4
4
  import { S as S2, g as g3, i as i2, r as r2 } from "./chunks/site-store-CGV9c2DI.js";
5
- import { R as R2, T, W as W2, b as b3, c as c3, g as g4, r as r3 } from "./chunks/template-Btd9N81U.js";
5
+ import { R as R2, T, W as W2, b as b3, c as c3, g as g4, r as r3 } from "./chunks/template-B7ea0o8q.js";
6
6
  export {
7
7
  A as AUTH_KV,
8
8
  A2 as AdminAboutMeSection,
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/shared/router.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBAAa,MAAM;IAML,OAAO,CAAC,EAAE;IALtB,OAAO,CAAC,MAAM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@@ -1,5 +1,5 @@
1
1
  import { S, g, i, r } from "./chunks/site-store-CGV9c2DI.js";
2
- import { R, T, W, b, c, g as g2, r as r2 } from "./chunks/template-Btd9N81U.js";
2
+ import { R, T, W, b, c, g as g2, r as r2 } from "./chunks/template-B7ea0o8q.js";
3
3
  export {
4
4
  R as Router,
5
5
  S as SiteStore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leadertechie/personal-site-kit",
3
- "version": "0.1.0-alpha.24",
3
+ "version": "0.1.0-alpha.25",
4
4
  "type": "module",
5
5
  "description": "A high-performance personal website engine for Cloudflare Workers and R2",
6
6
  "repository": {