mnfst 0.5.307 → 0.5.308

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  (function () {
4
4
 
5
- const MANIFEST_BUILD_VERSION = '0.5.307';
5
+ const MANIFEST_BUILD_VERSION = '0.5.308';
6
6
 
7
7
  /* Manifest Data Sources - Appwrite Integration */
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  (function () {
4
4
 
5
- const MANIFEST_BUILD_VERSION = '0.5.307';
5
+ const MANIFEST_BUILD_VERSION = '0.5.308';
6
6
 
7
7
  /* Manifest Data Sources - Configuration */
8
8
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest.appwrite.auth.js": "sha384-n+Fohtui5o2h3HpM7ifnop9YsAdlTj0uHYfzljQMghLJeDkODC6OXop6ds6OTZha",
3
- "manifest.appwrite.data.js": "sha384-shHW4TELqrKNvs4SPLSZXalrfvjGOb07bIgQDQmJzYh9C3tevkFZ21Gj1DJXPY9X",
3
+ "manifest.appwrite.data.js": "sha384-XSxyRIRvbozYCbyLguHoIdT1hEg6VoTVf4GuE6B91PCXbcQH8lkXAWoG573qROjL",
4
4
  "manifest.appwrite.presences.js": "sha384-O3EedwV2QTzd4YotjvGPsDHbxaGbtRaZuNopC7/Cfoo5uYPo8ZHYkCPCWurXpA2/",
5
5
  "manifest.bindings.js": "sha384-lPtMf8Ykaic9gNVZKq8Scia1881ZeMAyxer3WCIkUNwwrgzGBWto1OXADUwjvORF",
6
6
  "manifest.charts.js": "sha384-BnTxO3ncLxg82aV+64tQMS3ssN+RKZ69Dic6Oruz0pw+/UIK2MAZicg8+ooHF2ZA",
@@ -11,7 +11,7 @@
11
11
  "manifest.combobox.js": "sha384-/lJo6vaxKjgnBSRs/dzkhK1dzGk3GBw8FISoNJZB70mwAVwu1k5veZyBXjOb4keS",
12
12
  "manifest.components.js": "sha384-t2qgBbcGPMoTYpMffOHW2dM07UWIq3pU3PYqLGrS6QP2hzCer4ofgaIKA+7hW558",
13
13
  "manifest.computed.js": "sha384-GYML/e81gQfN+iDbqhPUgny8bINCyL+SrbTofoGk4hlCnLLjv51mCv42JMqq+ku5",
14
- "manifest.data.js": "sha384-XAjBF3BiFfuCw1Sljw5xWz9b893wMtJ67+smTu3nT/vJzybHtm9T9yUuNIZxttT8",
14
+ "manifest.data.js": "sha384-wXQen+fvYv9AhYp+w1sjyTTqBB+hVczQhSFXiLxTyrddAtHdrr7stTQZIBYTcB33",
15
15
  "manifest.datepicker.js": "sha384-pZUQhUK6u5cl6g0myBXND/Wtrs1RTovYmy/ETQLUV0JujvTvUdRNc/XjPpVhtK16",
16
16
  "manifest.defer.js": "sha384-PRp7+dCZHnnl55rX2xrHutLrQnszHo7o5o9Tq28M/yjLZPuXDzcwQNxCdvbtCYSz",
17
17
  "manifest.device.js": "sha384-YeQaS56L8IILqrQNBSeAOLwIh5DuAOrE60cYLK1+46qJtUrXlAvqGe2j5mbV4Vq7",
@@ -20,7 +20,7 @@
20
20
  "manifest.export.js": "sha384-C4W5LrGQFnSILRWoWOCliajUK6rAzNW+EliogRx72vD1cUOYScSdfzHNbjSWv5XU",
21
21
  "manifest.icons.js": "sha384-kKOINpX70YzNO3FvkV6umrmO3f0KIu0DNbwB+ej55a7y/lhU7v/myQtXL0bwCTbt",
22
22
  "manifest.localization.js": "sha384-9EDAqnI7MNCZp4Vas0RMZgceCuz9EJUi/OARm8iI+Hi4S8HF//yyVOhhhhQ+XcLq",
23
- "manifest.markdown.js": "sha384-icbpHC8dIijEJSaW3CODo4Ft7dBQz53pUh/2OYVBEFrLQbrFs370D+eMygJx5cW8",
23
+ "manifest.markdown.js": "sha384-3JV3oL++aTqJQqHfi+YXT/qzT7cRLTE0erVCHlGjxOdZliJ3/vy6GlZRvZdQtroS",
24
24
  "manifest.native.js": "sha384-YeQaS56L8IILqrQNBSeAOLwIh5DuAOrE60cYLK1+46qJtUrXlAvqGe2j5mbV4Vq7",
25
25
  "manifest.payments.js": "sha384-p10n6EHBWFKVW9KhI2A+RpkwqrwD068D+wvOJ7D3Gklz1MvmIlqv1lLG1R0cUqbw",
26
26
  "manifest.rich.text.js": "sha384-ZBV9jXmu2nmprEHicddRE/m7nR4RPZtVc969Jte0+EJYBcVph7itkjcgN/61PyeC",
@@ -29,7 +29,7 @@
29
29
  "manifest.status.js": "sha384-ofu7nBnVIGZ1U1o2R9d2H3V8aEMPUCVbl5FO3gIToXqi0oa36fTviEdh5UU7Kitw",
30
30
  "manifest.submissions.js": "sha384-v9eS47ytAfTGIKAyVnbd0QWegucVS7yduvigqfsxxoqXmbaEoy0M2y+BiI4xeZBd",
31
31
  "manifest.svg.js": "sha384-qr/8H9+2cIhSXNbRWRtIdrDlTOxKlNJqwEefHvCYoiBNW/kKhPTFa109Orv/EBnb",
32
- "manifest.sw.js": "sha384-TSRtiRTLIduflsBdi2ojvyNrO5su/eUrfrRyatBvAT7d6PWCXckMY3Bq+9RDTWZt",
32
+ "manifest.sw.js": "sha384-eaaLgwSznm0huoFPlocHyeI9g52QaAmHPMVphW2ToXGG79Cnq9GhJrwSghsaAHjB",
33
33
  "manifest.tabs.js": "sha384-otU09H7jnawVKQdLAYpMCd3jx00tgyPVr42D2hLIBzN5dG4se505YesavdnMqEi1",
34
34
  "manifest.tailwind.js": "sha384-yuP3LEvWU+QVjxjkZ0YhErtC9RrGmhOmHjjFjhS9obqZbp5/KTIEnSR0CXDvHE0B",
35
35
  "manifest.toasts.js": "sha384-UpOz9fAdGeGUhL0NamBg5iPepEfIy73p9HYdcxfOQC5b7CVsl7Our0skdZzaLNcC",
@@ -461,7 +461,7 @@ async function initializeMarkdownPlugin() {
461
461
  });
462
462
 
463
463
  // Check if there are any elements with x-markdown already on the page
464
- const existingMarkdownElements = document.querySelectorAll('[x-markdown]');
464
+ const existingMarkdownElements = findMarkdownElements();
465
465
 
466
466
  // Prerendered pages arrive with x-markdown content already rendered —
467
467
  // don't hide on init or the user sees a flash of empty content.
@@ -840,10 +840,10 @@ async function initializeMarkdownPlugin() {
840
840
  if (existingMarkdownElements.length > 0) {
841
841
 
842
842
  existingMarkdownElements.forEach(el => {
843
- const expression = el.getAttribute('x-markdown');
844
-
845
843
  // Modifiers live in the attribute name in this pre-registration path.
846
- const safe = el.getAttributeNames().some(n => n.startsWith('x-markdown.') && n.split('.').includes('safe'));
844
+ const attrName = el.getAttributeNames().find(isMarkdownAttr);
845
+ const expression = el.getAttribute(attrName);
846
+ const safe = attrName.split('.').includes('safe');
847
847
 
848
848
  // Create a temporary Alpine component context for this element
849
849
  const tempComponent = Alpine.$data(el) || {};
@@ -940,10 +940,10 @@ async function initializeMarkdownPlugin() {
940
940
  // Complex expressions: remove + re-add the attribute to force
941
941
  // Alpine to re-process once the directive is registered.
942
942
  const originalExpression = expression;
943
- el.removeAttribute('x-markdown');
943
+ el.removeAttribute(attrName);
944
944
 
945
945
  setTimeout(() => {
946
- el.setAttribute('x-markdown', originalExpression);
946
+ el.setAttribute(attrName, originalExpression);
947
947
  }, 50);
948
948
  }
949
949
  });
@@ -954,6 +954,12 @@ async function initializeMarkdownPlugin() {
954
954
  }
955
955
  }
956
956
 
957
+ // [x-markdown] misses modifier forms (x-markdown.safe); match by attribute name
958
+ const isMarkdownAttr = (n) => n === 'x-markdown' || n.startsWith('x-markdown.');
959
+ function findMarkdownElements() {
960
+ return [...document.querySelectorAll('*')].filter(el => el.getAttributeNames().some(isMarkdownAttr));
961
+ }
962
+
957
963
  // Track initialization to prevent duplicates
958
964
  let markdownPluginInitialized = false;
959
965
 
@@ -975,7 +981,7 @@ async function ensureMarkdownPluginInitialized() {
975
981
  // Only walk existing subtrees ourselves when Alpine already finished its boot
976
982
  // walk (late load). Walking during boot would drop nested plugin content.
977
983
  if (markdownAlpineHasWalked && typeof window.Alpine.initTree === 'function') {
978
- const existingMarkdownElements = document.querySelectorAll('[x-markdown]');
984
+ const existingMarkdownElements = findMarkdownElements();
979
985
  existingMarkdownElements.forEach(el => {
980
986
  if (!el.__x) {
981
987
  window.Alpine.initTree(el);
@@ -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.307';
19
+ const BUILD_VERSION = '0.5.308';
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.307",
3
+ "version": "0.5.308",
4
4
  "private": false,
5
5
  "workspaces": [
6
6
  "templates/starter",
@@ -49,6 +49,7 @@
49
49
  "test:e2e:settle": "node tests/e2e/render-settle.e2e.mjs",
50
50
  "test:e2e:magic": "node tests/e2e/magic-one-arg.e2e.mjs",
51
51
  "test:e2e:markdown-safe": "node tests/e2e/markdown-safe.e2e.mjs",
52
+ "test:e2e:markdown-boot": "node tests/e2e/markdown-boot.e2e.mjs",
52
53
  "test:e2e:upload": "node tests/e2e/upload-first-load.e2e.mjs",
53
54
  "test:e2e:test-kit": "node tests/e2e/test-kit-journeys.e2e.mjs",
54
55
  "test:e2e:submissions": "node tests/e2e/submissions.e2e.mjs",