mnfst 0.5.230 → 0.5.232
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/lib/manifest.appwrite.data.js +1 -1
- package/lib/manifest.components.js +8 -0
- package/lib/manifest.css +343 -408
- package/lib/manifest.d.ts +170 -39
- package/lib/manifest.data.js +1 -1
- package/lib/manifest.defer.js +1 -1
- package/lib/manifest.dropdowns.js +2 -0
- package/lib/manifest.edit.css +89 -146
- package/lib/manifest.edit.js +2409 -1040
- package/lib/manifest.integrity.json +10 -10
- package/lib/manifest.js +119 -25
- package/lib/manifest.min.css +1 -1
- package/lib/{manifest.text.edit.css → manifest.rich.text.css} +62 -70
- package/lib/manifest.rich.text.js +2848 -0
- package/lib/manifest.router.js +8 -0
- package/lib/manifest.sw.js +1 -1
- package/package.json +2 -1
- package/lib/manifest.text.edit.js +0 -2234
package/lib/manifest.router.js
CHANGED
|
@@ -484,6 +484,8 @@ function installMpaStickyLocaleLinks() {
|
|
|
484
484
|
|
|
485
485
|
const link = event.target.closest('a');
|
|
486
486
|
if (!link || link.closest('[data-manifest-skip-locale-sticky]')) return;
|
|
487
|
+
const editable = link.closest('[contenteditable]');
|
|
488
|
+
if (link.isContentEditable || (editable && editable.getAttribute('contenteditable') !== 'false')) return; // content in editable text
|
|
487
489
|
if (link.hasAttribute('download')) return;
|
|
488
490
|
|
|
489
491
|
const hrefAttr = link.getAttribute('href');
|
|
@@ -526,9 +528,15 @@ function installMpaStickyLocaleLinks() {
|
|
|
526
528
|
function interceptLinkClicks() {
|
|
527
529
|
// Use capture phase to intercept before other handlers
|
|
528
530
|
document.addEventListener('click', (event) => {
|
|
531
|
+
if (event.defaultPrevented) return; // an editor (or the page) owns this click
|
|
529
532
|
const link = event.target.closest('a');
|
|
530
533
|
if (!link) return;
|
|
531
534
|
|
|
535
|
+
// A link inside editable text (x-rich-text, x-edit page text) is content: the click
|
|
536
|
+
// places the caret, as the browser does natively, and never navigates
|
|
537
|
+
const host = link.closest('[contenteditable]');
|
|
538
|
+
if (link.isContentEditable || (host && host.getAttribute('contenteditable') !== 'false')) return;
|
|
539
|
+
|
|
532
540
|
const href = link.getAttribute('href');
|
|
533
541
|
if (!href || href.startsWith('mailto:') || href.startsWith('tel:')) return;
|
|
534
542
|
|
package/lib/manifest.sw.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
// Build stamps the published version here; unstamped (dev) falls back to the
|
|
18
18
|
// registration URL's `v`, then 'dev'.
|
|
19
|
-
const BUILD_VERSION = '0.5.
|
|
19
|
+
const BUILD_VERSION = '0.5.232';
|
|
20
20
|
const CACHE_PREFIX = 'mnfst-sw:';
|
|
21
21
|
const META_CACHE = CACHE_PREFIX + 'meta';
|
|
22
22
|
// Sized to hold a full precache.json warm-up (PRECACHE_MAX_ENTRIES server-side)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mnfst",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.232",
|
|
4
4
|
"private": false,
|
|
5
5
|
"workspaces": [
|
|
6
6
|
"templates/starter",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@tailwindcss/cli": "^4.2.4",
|
|
58
58
|
"alpinejs": "^3.17.1",
|
|
59
59
|
"cssnano": "^7.1.1",
|
|
60
|
+
"entities": "4.5.0",
|
|
60
61
|
"glob": "^11.0.2",
|
|
61
62
|
"happy-dom": "^20.11.6",
|
|
62
63
|
"puppeteer": "^24.15.0",
|