@lolyjs/core 0.1.0-alpha.1 → 0.1.0-alpha.3

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.
package/dist/index.js CHANGED
@@ -3466,7 +3466,7 @@ function createLogger(options = {}) {
3466
3466
  const baseConfig = {
3467
3467
  level,
3468
3468
  base: {
3469
- name: "@loly/core",
3469
+ name: "@lolyjs/core",
3470
3470
  env: process.env.NODE_ENV || "development"
3471
3471
  },
3472
3472
  timestamp: pino.stdTimeFunctions.isoTime,
@@ -4826,7 +4826,7 @@ async function renderStaticRoute(projectRoot, ssgOutDir, route, urlPath, params)
4826
4826
  initialData,
4827
4827
  meta: loaderResult.metadata,
4828
4828
  titleFallback: "My Framework Dev",
4829
- descriptionFallback: "Static page generated by @loly/core.",
4829
+ descriptionFallback: "Static page generated by @lolyjs/core.",
4830
4830
  chunkHref,
4831
4831
  clientJsPath,
4832
4832
  clientCssPath
@@ -5462,6 +5462,9 @@ function createClickHandler(navigate2) {
5462
5462
  if (ev.metaKey || ev.ctrlKey || ev.shiftKey || ev.altKey) return;
5463
5463
  const target = ev.target;
5464
5464
  if (!target) return;
5465
+ const tagName = target.tagName.toLowerCase();
5466
+ const isInteractiveElement = tagName === "input" || tagName === "textarea" || tagName === "button" || tagName === "select" || target.isContentEditable || target.closest("input, textarea, button, select, [contenteditable]");
5467
+ if (isInteractiveElement) return;
5465
5468
  const anchor = target.closest("a[href]");
5466
5469
  if (!anchor) return;
5467
5470
  const href = anchor.getAttribute("href");