mnfst 0.5.207 → 0.5.208
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.combobox.js
CHANGED
|
@@ -84,6 +84,9 @@ function initializeComboboxPlugin() {
|
|
|
84
84
|
// Read options from a source element (datalist/select → option, menu → li)
|
|
85
85
|
function readOptions(src) {
|
|
86
86
|
if (!src) return [];
|
|
87
|
+
// Deferred source (x-for not hydrated yet) — render before reading its rows.
|
|
88
|
+
// Deeper fix: resolve labels from the $x data collection instead of DOM rows.
|
|
89
|
+
if (window.ManifestDefer?.isPending(src)) window.ManifestDefer.render(src);
|
|
87
90
|
if (src.tagName === 'MENU') {
|
|
88
91
|
return Array.from(src.querySelectorAll('li')).map(li => {
|
|
89
92
|
const copy = stripClone(li.cloneNode(true));
|
|
@@ -454,6 +457,8 @@ function initializeComboboxPlugin() {
|
|
|
454
457
|
|
|
455
458
|
function openMenu() {
|
|
456
459
|
if (!menu || menu.matches(':popover-open') || atCap()) return;
|
|
460
|
+
// Re-stashed since build (x-defer.discard) — re-hydrate before showing.
|
|
461
|
+
if (src && window.ManifestDefer?.isPending(src)) { options = readOptions(src); setOptions(options); }
|
|
457
462
|
menu.style.minWidth = wrap.offsetWidth + 'px';
|
|
458
463
|
menu.showPopover();
|
|
459
464
|
el.setAttribute('aria-expanded', 'true');
|
package/lib/manifest.data.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
(function () {
|
|
4
4
|
|
|
5
|
-
const MANIFEST_BUILD_VERSION = '0.5.
|
|
5
|
+
const MANIFEST_BUILD_VERSION = '0.5.208';
|
|
6
6
|
|
|
7
7
|
/* Manifest Data Sources - Configuration */
|
|
8
8
|
|
|
@@ -5834,6 +5834,32 @@ if (typeof window !== 'undefined') {
|
|
|
5834
5834
|
/* Manifest Data Sources - Route Proxy Creation */
|
|
5835
5835
|
// Creates proxies for route-specific data lookups ($route() method)
|
|
5836
5836
|
|
|
5837
|
+
// Shared revision, read (transparently) by every $route() proxy's get/has trap.
|
|
5838
|
+
// Alpine 3.x scheduler bug: queueJob dedupes by reference against the current
|
|
5839
|
+
// flush's queue array (cleared only at flush end), so if a sibling effect
|
|
5840
|
+
// (e.g. an x-if that also reads a plain store flag) already ran earlier in
|
|
5841
|
+
// the SAME flush, this proxy's own updateReactiveTarget() write later in that
|
|
5842
|
+
// flush can't re-queue it — the re-trigger is silently dropped and the
|
|
5843
|
+
// directive is stranded on stale (often empty) data forever, even though
|
|
5844
|
+
// later reads (e.g. a header's x-text) see the correct value. Bumping this
|
|
5845
|
+
// counter on a fresh macrotask after the proxy settles re-arms anything
|
|
5846
|
+
// dropped, mirroring the data store's bumpAllVersions() post-settle hammer —
|
|
5847
|
+
// but scoped to the $route() reactive graph, which bumpAllVersions() never
|
|
5848
|
+
// touches (it only bumps store._v[source]).
|
|
5849
|
+
let routeProxyVersion = null;
|
|
5850
|
+
function getRouteProxyVersion() {
|
|
5851
|
+
if (!routeProxyVersion) routeProxyVersion = Alpine.reactive ? Alpine.reactive({ n: 0 }) : { n: 0 };
|
|
5852
|
+
return routeProxyVersion;
|
|
5853
|
+
}
|
|
5854
|
+
let routeProxyVersionBumpTimer = null;
|
|
5855
|
+
function scheduleRouteProxyVersionBump() {
|
|
5856
|
+
if (routeProxyVersionBumpTimer) return;
|
|
5857
|
+
routeProxyVersionBumpTimer = setTimeout(() => {
|
|
5858
|
+
routeProxyVersionBumpTimer = null;
|
|
5859
|
+
getRouteProxyVersion().n++;
|
|
5860
|
+
}, 0);
|
|
5861
|
+
}
|
|
5862
|
+
|
|
5837
5863
|
// Global debounce mechanism shared across all route proxies
|
|
5838
5864
|
if (!window.ManifestDataRouteProxyUpdateQueue) {
|
|
5839
5865
|
window.ManifestDataRouteProxyUpdateQueue = {
|
|
@@ -5994,6 +6020,11 @@ function createRouteProxy(dataSourceData, pathKey, dataSourceName) {
|
|
|
5994
6020
|
|
|
5995
6021
|
// Remove timestamp immediately after (it's just to trigger reactivity)
|
|
5996
6022
|
delete reactiveTarget._timestamp;
|
|
6023
|
+
|
|
6024
|
+
// Post-settle hammer (see getRouteProxyVersion above): a sibling
|
|
6025
|
+
// effect sharing this same flush may have already run before this
|
|
6026
|
+
// write and had its re-trigger dropped by Alpine's scheduler.
|
|
6027
|
+
scheduleRouteProxyVersionBump();
|
|
5997
6028
|
}
|
|
5998
6029
|
|
|
5999
6030
|
// Initial update to populate reactiveTarget immediately
|
|
@@ -6043,6 +6074,11 @@ function createRouteProxy(dataSourceData, pathKey, dataSourceName) {
|
|
|
6043
6074
|
const proxy = new Proxy(reactiveTarget, {
|
|
6044
6075
|
get(target, prop) {
|
|
6045
6076
|
try {
|
|
6077
|
+
// Transparent dependency on the shared post-settle revision (see
|
|
6078
|
+
// getRouteProxyVersion above) — every reader of this proxy
|
|
6079
|
+
// implicitly re-arms on a bump, no `void` pin required in markup.
|
|
6080
|
+
void getRouteProxyVersion().n;
|
|
6081
|
+
|
|
6046
6082
|
// CRITICAL: Return value from reactiveTarget, not computed synchronously
|
|
6047
6083
|
// Alpine tracks property access on reactiveTarget, so when reactiveTarget[prop]
|
|
6048
6084
|
// changes (via Alpine.effect() updating it), Alpine re-evaluates expressions.
|
|
@@ -6066,6 +6102,9 @@ function createRouteProxy(dataSourceData, pathKey, dataSourceName) {
|
|
|
6066
6102
|
},
|
|
6067
6103
|
// Add has trap to help Alpine track property existence
|
|
6068
6104
|
has(target, prop) {
|
|
6105
|
+
// Same transparent dependency as get() — see getRouteProxyVersion above.
|
|
6106
|
+
void getRouteProxyVersion().n;
|
|
6107
|
+
|
|
6069
6108
|
// Check reactiveTarget first (which Alpine tracks)
|
|
6070
6109
|
// This ensures consistency with the get trap
|
|
6071
6110
|
if (prop in target) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest.appwrite.auth.js": "sha384-HMJmRXnvdDBWyuteXL+DTxWM2llSCdjl4EDamEI7iHNAVlqeOCE4GDTm8ZHipPRj",
|
|
3
|
-
"manifest.appwrite.data.js": "sha384
|
|
3
|
+
"manifest.appwrite.data.js": "sha384-thWjsEQ6dGC4VT58G7CPD3bLFBVlGc3oDB0yq02y47nFvQgcntv7en0HJ7rrexZ/",
|
|
4
4
|
"manifest.appwrite.presences.js": "sha384-JyVDWFT69b7Svq8J8p9tNWe2v9PZNQBY5UyhtOl1vnuHFAX0CRQ3MA9SiKq5wzNh",
|
|
5
5
|
"manifest.bindings.js": "sha384-lPtMf8Ykaic9gNVZKq8Scia1881ZeMAyxer3WCIkUNwwrgzGBWto1OXADUwjvORF",
|
|
6
6
|
"manifest.charts.js": "sha384-qQrjhWkIDi4oU5uQrpy8DdlMjY+gfiivBuX6mssNiFdkawgkVBvKneGgp+nd3PYJ",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"manifest.code.js": "sha384-aoQ4E26vrhNe/+tL7K0h90c8/0ies7e8oIR6Ay92he2X3dnWZ+OPcn2Dna8fmc+c",
|
|
9
9
|
"manifest.color.js": "sha384-6Rv3LxyTcZNjrhtayQfqRdCx0uSZ4BiEbgEI98I62eTvp8Aw7LBIoNJ0Je1oktwL",
|
|
10
10
|
"manifest.colorpicker.js": "sha384-1+ZV5Hhjf7WnGP7b71Cqa5h3BKW8UgGT5V14i8Q+aF5zH8Xxwowt/ibSUVsiIHSm",
|
|
11
|
-
"manifest.combobox.js": "sha384-
|
|
11
|
+
"manifest.combobox.js": "sha384-9/wrX1kOe/8/ESSM6k45SjkM/YNZyGySrR9XxQCw1nRdBstYM33TyPGs2bN5QHn5",
|
|
12
12
|
"manifest.components.js": "sha384-DLGSqCbnGkS87AWJ8GpKoAFP4nCosgC5SFSg6C10hH/nWu/MxI+0ntHlnFEfs++u",
|
|
13
13
|
"manifest.computed.js": "sha384-GYML/e81gQfN+iDbqhPUgny8bINCyL+SrbTofoGk4hlCnLLjv51mCv42JMqq+ku5",
|
|
14
|
-
"manifest.data.js": "sha384-
|
|
14
|
+
"manifest.data.js": "sha384-wD+/0DfyBzpM/4SzA6JirXgINqOuQLysEvYJqz84i+gugP/EDyu8nHG3k1H9kHCt",
|
|
15
15
|
"manifest.datepicker.js": "sha384-8vTJYkLqqvgXgm1w1becuaRR/jUEpiLBjBJ6RsRbUr+ZkypvspD6EsssuDrX4SQq",
|
|
16
16
|
"manifest.defer.js": "sha384-wXa60M2OHigi5rBurXQ7Oa8eyr5WTKs7EUn2GOru62KMdfs/LDyNegxCc9MNJFSe",
|
|
17
17
|
"manifest.device.js": "sha384-g+txmrEszYtuOvRelTp/c1wSNR2AtllVI9rx5NPPD7DzhVUnMNughonZykv2xlBW",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"manifest.slides.js": "sha384-3uRTkyK9XPLmnxI2+igZlpi4EyPlU/7IHj5j3BZJJ2KN455vXyk99fiXV3feO/XY",
|
|
29
29
|
"manifest.status.js": "sha384-nwvUSbT+gpRMqhYx6MeBYswUMH72rY92mjgxv0vrSG7Ht7l83XYpEB6fCTbXjjfK",
|
|
30
30
|
"manifest.svg.js": "sha384-qr/8H9+2cIhSXNbRWRtIdrDlTOxKlNJqwEefHvCYoiBNW/kKhPTFa109Orv/EBnb",
|
|
31
|
-
"manifest.sw.js": "sha384
|
|
31
|
+
"manifest.sw.js": "sha384-+hD/KjRLCTRpOQ2FYepewamzFVPst9mkMoLPB0n7pV8DI/o3OPirEcCSkWimMAuJ",
|
|
32
32
|
"manifest.tabs.js": "sha384-OIIcyaQnGS0eNYk4zgAFEDboNYect7THvUd9D0V6nqCeDOxQcoiqLrBEmmWVTTet",
|
|
33
33
|
"manifest.tailwind.js": "sha384-r/Jvqb+Piz21jUts10BbVAJoKkShOdJRVFpywyi4HPIi/OfOJq5CtPyWAPbdkMgt",
|
|
34
34
|
"manifest.text.edit.js": "sha384-pfhc4IPKNJokj6ldlgD+KwGLN4UoM21CNeVf2sVq/34X1Un2PUhEuyTg5itmtsXS",
|
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.208';
|
|
20
20
|
const CACHE_PREFIX = 'mnfst-sw:';
|
|
21
21
|
const META_CACHE = CACHE_PREFIX + 'meta';
|
|
22
22
|
const SWR_CAP = 200;
|