@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/README.md +18 -18
- package/dist/cli.cjs +2 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/runtime.cjs +3 -0
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +3 -0
- package/dist/runtime.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3508,7 +3508,7 @@ function createLogger(options = {}) {
|
|
|
3508
3508
|
const baseConfig = {
|
|
3509
3509
|
level,
|
|
3510
3510
|
base: {
|
|
3511
|
-
name: "@
|
|
3511
|
+
name: "@lolyjs/core",
|
|
3512
3512
|
env: process.env.NODE_ENV || "development"
|
|
3513
3513
|
},
|
|
3514
3514
|
timestamp: import_pino.default.stdTimeFunctions.isoTime,
|
|
@@ -4868,7 +4868,7 @@ async function renderStaticRoute(projectRoot, ssgOutDir, route, urlPath, params)
|
|
|
4868
4868
|
initialData,
|
|
4869
4869
|
meta: loaderResult.metadata,
|
|
4870
4870
|
titleFallback: "My Framework Dev",
|
|
4871
|
-
descriptionFallback: "Static page generated by @
|
|
4871
|
+
descriptionFallback: "Static page generated by @lolyjs/core.",
|
|
4872
4872
|
chunkHref,
|
|
4873
4873
|
clientJsPath,
|
|
4874
4874
|
clientCssPath
|
|
@@ -5504,6 +5504,9 @@ function createClickHandler(navigate2) {
|
|
|
5504
5504
|
if (ev.metaKey || ev.ctrlKey || ev.shiftKey || ev.altKey) return;
|
|
5505
5505
|
const target = ev.target;
|
|
5506
5506
|
if (!target) return;
|
|
5507
|
+
const tagName = target.tagName.toLowerCase();
|
|
5508
|
+
const isInteractiveElement = tagName === "input" || tagName === "textarea" || tagName === "button" || tagName === "select" || target.isContentEditable || target.closest("input, textarea, button, select, [contenteditable]");
|
|
5509
|
+
if (isInteractiveElement) return;
|
|
5507
5510
|
const anchor = target.closest("a[href]");
|
|
5508
5511
|
if (!anchor) return;
|
|
5509
5512
|
const href = anchor.getAttribute("href");
|