mnfst 0.5.296 → 0.5.297

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.296';
5
+ const MANIFEST_BUILD_VERSION = '0.5.297';
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.296';
5
+ const MANIFEST_BUILD_VERSION = '0.5.297';
6
6
 
7
7
  /* Manifest Data Sources - Configuration */
8
8
 
@@ -11,25 +11,36 @@ const MANIFEST_BUILD_VERSION = '0.5.296';
11
11
  // doing `window.__manifestLoaded.foo = …` before the loader populates it (or in a
12
12
  // no-loader setup) can leave a stub without `data`/`components`, which would otherwise
13
13
  // mask every data source. Fall through to fetching the real manifest in that case.
14
- async function ensureManifest() {
15
- const looksComplete = (m) => m && typeof m === 'object' &&
16
- (m.data || m.components || m.preloadedComponents || m.appwrite || m.render);
14
+ const looksComplete = (m) => m && typeof m === 'object' &&
15
+ (m.data || m.components || m.preloadedComponents || m.appwrite || m.render);
16
+ let resolvedManifest = null;
17
+
18
+ // Synchronous accessor: the manifest if already loaded, else null
19
+ function getManifest() {
17
20
  if (looksComplete(window.ManifestComponentsRegistry?.manifest)) {
18
21
  return window.ManifestComponentsRegistry.manifest;
19
22
  }
20
23
  if (looksComplete(window.__manifestLoaded)) {
21
24
  return window.__manifestLoaded;
22
25
  }
26
+ return resolvedManifest;
27
+ }
28
+
29
+ async function ensureManifest() {
30
+ const loaded = getManifest();
31
+ if (loaded) return loaded;
23
32
 
24
33
  // One request per boot, shared with the loader and the other plugins (window.__manifestPromise)
25
34
  if (window.__manifestPromise) {
26
35
  const shared = await window.__manifestPromise.catch(() => null);
27
- if (looksComplete(shared)) return shared;
36
+ if (looksComplete(shared)) return (resolvedManifest = shared);
28
37
  }
29
38
  try {
30
39
  const manifestUrl = (document.querySelector('link[rel="manifest"]')?.getAttribute('href')) || '/manifest.json';
31
40
  window.__manifestPromise = fetch(manifestUrl).then(r => r.json()).then(m => { interpolateManifest(m); return m; });
32
- return await window.__manifestPromise;
41
+ const fetched = await window.__manifestPromise;
42
+ if (looksComplete(fetched)) resolvedManifest = fetched;
43
+ return fetched;
33
44
  } catch (error) {
34
45
  console.error('[Manifest Data] Failed to load manifest:', error);
35
46
  return null;
@@ -259,6 +270,7 @@ function getQueries(dataSource) {
259
270
  // Export functions to window for use by other subscripts
260
271
  window.ManifestDataConfig = {
261
272
  ensureManifest,
273
+ getManifest,
262
274
  interpolateEnvVars,
263
275
  interpolateManifest,
264
276
  getNestedValue,
@@ -7074,7 +7086,6 @@ function createReactiveFileManager(tableName, entryId, bucketName, columnName) {
7074
7086
  throw new Error(`[Manifest Data] Table "${tableName}" not found`);
7075
7087
  }
7076
7088
 
7077
- // Parse storage config directly; parseStorageConfig's getManifest() may be null here
7078
7089
  const storageConfigObj = tableDataSource?.storage;
7079
7090
  if (!storageConfigObj || typeof storageConfigObj !== 'object') {
7080
7091
  throw new Error(`[Manifest Data] Storage bucket "${bucketName}" not configured for table "${tableName}"`);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest.appwrite.auth.js": "sha384-gWLSeVPqCLMiUZB8MU7GqMg3x2yULFUsp8nTTZrPp/9Dlkix42rBn9yIimvwrHqZ",
3
- "manifest.appwrite.data.js": "sha384-vdb9hvvueWGiqC3UvTLSPbDbAsBLJQrsw7DPYNSEPQaBUsQWj6JeFDYgGcomjmOo",
3
+ "manifest.appwrite.data.js": "sha384-+C9+NUQGnYQqXCYt+fb97/J0b13Vx7eLsBlBlYsG+6/Q8bfHUR2TBtOsG7+s/4OD",
4
4
  "manifest.appwrite.presences.js": "sha384-LINPhIPTCK+rA8zd+HPUzMSEgH6Sl2vQMEyItT97bnEE2FYGYKqjXX+CWdt6nl9z",
5
5
  "manifest.bindings.js": "sha384-lPtMf8Ykaic9gNVZKq8Scia1881ZeMAyxer3WCIkUNwwrgzGBWto1OXADUwjvORF",
6
6
  "manifest.charts.js": "sha384-cf1N+ssSR5IL2qufv8noB5QOJrSvL7J0sLKgbJmyTDl1HodQ/Bkyf/QntO6Iynvi",
@@ -11,7 +11,7 @@
11
11
  "manifest.combobox.js": "sha384-/lJo6vaxKjgnBSRs/dzkhK1dzGk3GBw8FISoNJZB70mwAVwu1k5veZyBXjOb4keS",
12
12
  "manifest.components.js": "sha384-7lu4Nw2GqpAUn63c3gYEvgfM58PYsdoPv3wzqPQfZ5bravqOY/lfE8HFKHsKflQj",
13
13
  "manifest.computed.js": "sha384-GYML/e81gQfN+iDbqhPUgny8bINCyL+SrbTofoGk4hlCnLLjv51mCv42JMqq+ku5",
14
- "manifest.data.js": "sha384-DQak77AJpDsrzpFYz5RhzM6xlKu7GvqVqd1BDjlEjc5V3zC3OzNE9y1u/R34AY09",
14
+ "manifest.data.js": "sha384-a94NfFVv/07ZCMAbhGEuftFHrYqSP/VcI/2LUrtp17kRTQm4diiM4Fazu0iMG6M6",
15
15
  "manifest.datepicker.js": "sha384-EzlMwvIxlla/0BuyhAEqxN0M8TGcWIWgEIg840V0akKQQK1uY648wPWMkobvtq/o",
16
16
  "manifest.defer.js": "sha384-PRp7+dCZHnnl55rX2xrHutLrQnszHo7o5o9Tq28M/yjLZPuXDzcwQNxCdvbtCYSz",
17
17
  "manifest.device.js": "sha384-YeQaS56L8IILqrQNBSeAOLwIh5DuAOrE60cYLK1+46qJtUrXlAvqGe2j5mbV4Vq7",
@@ -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-Ycob/D+vbscUJxYPlrhHm/E/Ig4h16w074LlBskWgWYJB0WwHA8G8yEkrTXQMPSX",
32
+ "manifest.sw.js": "sha384-ZE4beB999SQ8tMqo9NrmqYs1sAynIYThfc6qv8JxQG2gCJavrYLa4xITK6npUgah",
33
33
  "manifest.tabs.js": "sha384-otU09H7jnawVKQdLAYpMCd3jx00tgyPVr42D2hLIBzN5dG4se505YesavdnMqEi1",
34
34
  "manifest.tailwind.js": "sha384-yuP3LEvWU+QVjxjkZ0YhErtC9RrGmhOmHjjFjhS9obqZbp5/KTIEnSR0CXDvHE0B",
35
35
  "manifest.toasts.js": "sha384-UpOz9fAdGeGUhL0NamBg5iPepEfIy73p9HYdcxfOQC5b7CVsl7Our0skdZzaLNcC",
@@ -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.296';
19
+ const BUILD_VERSION = '0.5.297';
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.296",
3
+ "version": "0.5.297",
4
4
  "private": false,
5
5
  "workspaces": [
6
6
  "templates/starter",