mnfst 0.5.291 → 0.5.293
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 +166 -113
- package/lib/manifest.data.js +1 -1
- package/lib/manifest.integrity.json +5 -5
- package/lib/manifest.router.js +11 -8
- package/lib/manifest.sw.js +1 -1
- package/package.json +3 -1
|
@@ -610,6 +610,140 @@ window.ManifestComponentsProcessor = {
|
|
|
610
610
|
}
|
|
611
611
|
};
|
|
612
612
|
|
|
613
|
+
// Components routing gate
|
|
614
|
+
// The router may load before or after this plugin; never capture it once.
|
|
615
|
+
window.ManifestComponentsRouting = (function () {
|
|
616
|
+
const ROUTER_SRC = /(^|\/)manifest\.router(\.min)?\.js(\?|#|$)/;
|
|
617
|
+
const LATE_MS = 10000;
|
|
618
|
+
let givenUp = false;
|
|
619
|
+
let settled = null;
|
|
620
|
+
let rerunQueued = false;
|
|
621
|
+
|
|
622
|
+
function routerScripts() {
|
|
623
|
+
return Array.from(document.querySelectorAll('script[src]')).filter(s => ROUTER_SRC.test(s.getAttribute('src') || ''));
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
// No router yet, but a router script is still to run
|
|
627
|
+
function pending() {
|
|
628
|
+
if (window.ManifestRouting || givenUp) return false;
|
|
629
|
+
return routerScripts().some(s => !s.hasAttribute('data-mnfst-loaded'));
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
// Resolves once the router has arrived or is known not to be coming
|
|
633
|
+
function whenSettled() {
|
|
634
|
+
if (!pending()) return Promise.resolve();
|
|
635
|
+
if (settled) return settled;
|
|
636
|
+
settled = new Promise(resolve => {
|
|
637
|
+
const watched = new WeakSet();
|
|
638
|
+
let done = false;
|
|
639
|
+
const finish = () => {
|
|
640
|
+
if (done) return;
|
|
641
|
+
done = true;
|
|
642
|
+
window.removeEventListener('manifest:routing-ready', check);
|
|
643
|
+
window.removeEventListener('load', onLoad);
|
|
644
|
+
settled = null;
|
|
645
|
+
resolve();
|
|
646
|
+
};
|
|
647
|
+
const watch = () => routerScripts().forEach(s => {
|
|
648
|
+
if (watched.has(s)) return;
|
|
649
|
+
watched.add(s);
|
|
650
|
+
s.addEventListener('load', check);
|
|
651
|
+
s.addEventListener('error', check);
|
|
652
|
+
});
|
|
653
|
+
// A failed CDN tag is swapped for the next one: re-scan a tick later
|
|
654
|
+
function check() { setTimeout(() => { if (pending()) watch(); else finish(); }, 0); }
|
|
655
|
+
// Window load waits for in-flight scripts: a router not here by then isn't coming
|
|
656
|
+
function onLoad() { setTimeout(() => { if (done) return; if (pending()) givenUp = true; finish(); }, 0); }
|
|
657
|
+
watch();
|
|
658
|
+
window.addEventListener('manifest:routing-ready', check);
|
|
659
|
+
// Inserted after load (Manifest.loadPlugin): its own load/error decides, bounded
|
|
660
|
+
if (document.readyState === 'complete') setTimeout(onLoad, LATE_MS);
|
|
661
|
+
else window.addEventListener('load', onLoad);
|
|
662
|
+
});
|
|
663
|
+
return settled;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
// The router's own element matcher; memo is per pass (path fixed)
|
|
667
|
+
function pass(path) {
|
|
668
|
+
const vis = window.ManifestRoutingVisibility;
|
|
669
|
+
const memo = new Map();
|
|
670
|
+
let defined;
|
|
671
|
+
const definedFor = () => {
|
|
672
|
+
if (defined === undefined) defined = vis.routesDefined ? !!vis.routesDefined(path) : undefined;
|
|
673
|
+
return defined;
|
|
674
|
+
};
|
|
675
|
+
return function active(el) {
|
|
676
|
+
let hit = memo.get(el);
|
|
677
|
+
if (hit !== undefined) return hit;
|
|
678
|
+
if (vis && vis.routeMatches) {
|
|
679
|
+
const cond = el.getAttribute('x-route') || '';
|
|
680
|
+
hit = vis.routeMatches(el, path, cond.includes('!*') ? definedFor() : undefined) !== false;
|
|
681
|
+
} else {
|
|
682
|
+
// Router predating the export: its condition matcher, comma list and ! only
|
|
683
|
+
const routing = window.ManifestRouting;
|
|
684
|
+
const conds = (el.getAttribute('x-route') || '').split(',').map(c => c.trim()).filter(Boolean);
|
|
685
|
+
const pos = conds.filter(c => !c.startsWith('!'));
|
|
686
|
+
hit = !conds.some(c => c.startsWith('!') && routing.matchesCondition(path, c.slice(1))) &&
|
|
687
|
+
(pos.length === 0 || pos.some(c => routing.matchesCondition(path, c)));
|
|
688
|
+
}
|
|
689
|
+
memo.set(el, hit);
|
|
690
|
+
return hit;
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
// A route string checked as if on an element (reverts know only the string)
|
|
695
|
+
function matches(xRoute, path) {
|
|
696
|
+
if (!xRoute || !window.ManifestRouting) return true;
|
|
697
|
+
const probe = document.createElement('div');
|
|
698
|
+
probe.setAttribute('x-route', xRoute);
|
|
699
|
+
return pass(path)(probe);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
// One swapping pass once the router settles, for every placeholder deferred meanwhile
|
|
703
|
+
function rerunWhenSettled() {
|
|
704
|
+
if (rerunQueued) return;
|
|
705
|
+
rerunQueued = true;
|
|
706
|
+
whenSettled().then(() => {
|
|
707
|
+
rerunQueued = false;
|
|
708
|
+
const swapping = window.ManifestComponentsSwapping;
|
|
709
|
+
return swapping && swapping.processAll().then(() => {
|
|
710
|
+
window.dispatchEvent(new CustomEvent('manifest:components-processed'));
|
|
711
|
+
});
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
// Logical route (router base stripped), as route visibility reads it
|
|
716
|
+
function currentPath() {
|
|
717
|
+
const p = window.ManifestRoutingNavigation?.getCurrentRoute?.() ?? window.location.pathname;
|
|
718
|
+
return p === '/' ? '/' : p.replace(/^\/+|\/+$/g, '');
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
// 'swap' | 'skip' | 'defer': own x-route and every x-route ancestor must be active.
|
|
722
|
+
// Reuse one gate(path) across a pass so ancestors are matched once.
|
|
723
|
+
function gate(path) {
|
|
724
|
+
let active = null;
|
|
725
|
+
return function decide(el) {
|
|
726
|
+
let n = el.closest('[x-route]');
|
|
727
|
+
if (!n) return 'swap';
|
|
728
|
+
if (!window.ManifestRouting) {
|
|
729
|
+
if (!pending()) return 'swap';
|
|
730
|
+
rerunWhenSettled();
|
|
731
|
+
return 'defer';
|
|
732
|
+
}
|
|
733
|
+
if (!active) active = pass(path ?? currentPath());
|
|
734
|
+
for (; n; n = n.parentElement && n.parentElement.closest('[x-route]')) {
|
|
735
|
+
if (!active(n)) return 'skip';
|
|
736
|
+
}
|
|
737
|
+
return 'swap';
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
const decide = (el, path) => gate(path)(el);
|
|
742
|
+
|
|
743
|
+
return { pending, whenSettled, matches, gate, decide, currentPath };
|
|
744
|
+
})();
|
|
745
|
+
|
|
746
|
+
|
|
613
747
|
// Components swapping
|
|
614
748
|
(function () {
|
|
615
749
|
// Never reset — ids must stay unique for the life of the page so overlapping
|
|
@@ -733,16 +867,10 @@ window.ManifestComponentsProcessor = {
|
|
|
733
867
|
console.debug('[Manifest Components] skipped processAll: registry unavailable');
|
|
734
868
|
return;
|
|
735
869
|
}
|
|
736
|
-
const
|
|
870
|
+
const gate = window.ManifestComponentsRouting;
|
|
737
871
|
|
|
738
|
-
//
|
|
739
|
-
|
|
740
|
-
if (normalizedPathFromEvent !== null) {
|
|
741
|
-
normalizedPath = normalizedPathFromEvent;
|
|
742
|
-
} else {
|
|
743
|
-
const currentPath = window.location.pathname;
|
|
744
|
-
normalizedPath = currentPath === '/' ? '/' : currentPath.replace(/^\/|\/$/g, '');
|
|
745
|
-
}
|
|
872
|
+
// Event path, or null: the gate reads the router's route when it decides (the router may land mid-pass)
|
|
873
|
+
const eventPath = normalizedPathFromEvent ?? undefined;
|
|
746
874
|
|
|
747
875
|
const placeholders = Array.from(document.querySelectorAll('*')).filter(el =>
|
|
748
876
|
el.tagName.toLowerCase().startsWith('x-') &&
|
|
@@ -750,34 +878,14 @@ window.ManifestComponentsProcessor = {
|
|
|
750
878
|
!el.hasAttribute('data-processed')
|
|
751
879
|
);
|
|
752
880
|
// First pass: revert any swapped-in instances that no longer match
|
|
753
|
-
if (
|
|
881
|
+
if (window.ManifestRouting) {
|
|
754
882
|
for (const instanceId of Array.from(swappedInstances)) {
|
|
755
883
|
const xRoute = instanceRouteMap.get(instanceId);
|
|
756
|
-
if (!xRoute)
|
|
757
|
-
// No route condition means always visible, don't revert
|
|
758
|
-
continue;
|
|
759
|
-
}
|
|
760
|
-
// Parse route conditions the same way as route visibility
|
|
761
|
-
const conditions = xRoute.split(',').map(cond => cond.trim());
|
|
762
|
-
const positiveConditions = conditions.filter(cond => !cond.startsWith('!'));
|
|
763
|
-
const negativeConditions = conditions
|
|
764
|
-
.filter(cond => cond.startsWith('!'))
|
|
765
|
-
.map(cond => cond.slice(1));
|
|
766
|
-
|
|
767
|
-
const hasNegativeMatch = negativeConditions.some(cond =>
|
|
768
|
-
window.ManifestRouting.matchesCondition(normalizedPath, cond)
|
|
769
|
-
);
|
|
770
|
-
const hasPositiveMatch = positiveConditions.length === 0 || positiveConditions.some(cond =>
|
|
771
|
-
window.ManifestRouting.matchesCondition(normalizedPath, cond)
|
|
772
|
-
);
|
|
773
|
-
|
|
774
|
-
const matches = hasPositiveMatch && !hasNegativeMatch;
|
|
775
|
-
if (!matches) {
|
|
776
|
-
this.revert(instanceId);
|
|
777
|
-
}
|
|
884
|
+
if (xRoute && !gate.matches(xRoute, eventPath ?? gate.currentPath())) this.revert(instanceId);
|
|
778
885
|
}
|
|
779
886
|
}
|
|
780
|
-
|
|
887
|
+
const decide = gate.gate(eventPath);
|
|
888
|
+
// Second pass: swap in matches. Routing is read per placeholder: it may arrive mid-pass.
|
|
781
889
|
for (const placeholder of placeholders) {
|
|
782
890
|
const name = placeholder.tagName.toLowerCase().replace('x-', '');
|
|
783
891
|
let instanceId = placeholder.getAttribute('data-component');
|
|
@@ -785,38 +893,8 @@ window.ManifestComponentsProcessor = {
|
|
|
785
893
|
instanceId = getComponentInstanceId(name);
|
|
786
894
|
placeholder.setAttribute('data-component', instanceId);
|
|
787
895
|
}
|
|
788
|
-
|
|
789
|
-
if (
|
|
790
|
-
// No routing: always swap in
|
|
791
|
-
await this.swapIn(placeholder);
|
|
792
|
-
} else {
|
|
793
|
-
// Routing present: check route using same logic as route visibility
|
|
794
|
-
// Handle comma-separated route conditions (e.g., "/,page-1,page-2")
|
|
795
|
-
let matches = !xRoute;
|
|
796
|
-
if (xRoute) {
|
|
797
|
-
const conditions = xRoute.split(',').map(cond => cond.trim());
|
|
798
|
-
const positiveConditions = conditions.filter(cond => !cond.startsWith('!'));
|
|
799
|
-
const negativeConditions = conditions
|
|
800
|
-
.filter(cond => cond.startsWith('!'))
|
|
801
|
-
.map(cond => cond.slice(1));
|
|
802
|
-
|
|
803
|
-
// Check negative conditions first
|
|
804
|
-
const hasNegativeMatch = negativeConditions.some(cond =>
|
|
805
|
-
window.ManifestRouting.matchesCondition(normalizedPath, cond)
|
|
806
|
-
);
|
|
807
|
-
|
|
808
|
-
// Check positive conditions
|
|
809
|
-
const hasPositiveMatch = positiveConditions.length === 0 || positiveConditions.some(cond =>
|
|
810
|
-
window.ManifestRouting.matchesCondition(normalizedPath, cond)
|
|
811
|
-
);
|
|
812
|
-
|
|
813
|
-
matches = hasPositiveMatch && !hasNegativeMatch;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
if (matches) {
|
|
817
|
-
await this.swapIn(placeholder);
|
|
818
|
-
}
|
|
819
|
-
}
|
|
896
|
+
// 'defer' queues a re-run for when the router settles
|
|
897
|
+
if (decide(placeholder) === 'swap') await this.swapIn(placeholder);
|
|
820
898
|
}
|
|
821
899
|
},
|
|
822
900
|
// Public entry point. Coalesces overlapping calls: while a run is active,
|
|
@@ -859,83 +937,57 @@ window.ManifestComponentsProcessor = {
|
|
|
859
937
|
// Dispatch event when components are fully processed
|
|
860
938
|
window.dispatchEvent(new CustomEvent('manifest:components-processed'));
|
|
861
939
|
});
|
|
862
|
-
//
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
this.processAll(normalizedPath).then(() => {
|
|
868
|
-
// Dispatch event when components are fully processed after route change
|
|
869
|
-
window.dispatchEvent(new CustomEvent('manifest:components-processed'));
|
|
870
|
-
});
|
|
940
|
+
// Only the router dispatches route changes, whenever it arrives
|
|
941
|
+
window.addEventListener('manifest:route-change', (event) => {
|
|
942
|
+
const normalizedPath = event.detail?.normalizedPath || null;
|
|
943
|
+
this.processAll(normalizedPath).then(() => {
|
|
944
|
+
window.dispatchEvent(new CustomEvent('manifest:components-processed'));
|
|
871
945
|
});
|
|
872
|
-
}
|
|
946
|
+
});
|
|
873
947
|
}
|
|
874
948
|
};
|
|
875
949
|
})();
|
|
876
950
|
|
|
877
951
|
// Components mutation observer
|
|
952
|
+
// Deferred placeholders are left for swapping's post-router pass.
|
|
878
953
|
window.ManifestComponentsMutation = {
|
|
879
954
|
async processAllPlaceholders() {
|
|
880
955
|
const processor = window.ManifestComponentsProcessor;
|
|
881
|
-
const
|
|
956
|
+
const gate = window.ManifestComponentsRouting;
|
|
882
957
|
if (!processor) return;
|
|
883
958
|
const placeholders = Array.from(document.querySelectorAll('*')).filter(el =>
|
|
884
959
|
el.tagName.toLowerCase().startsWith('x-') &&
|
|
885
960
|
!el.hasAttribute('data-pre-rendered') &&
|
|
886
961
|
!el.hasAttribute('data-processed')
|
|
887
962
|
);
|
|
963
|
+
const decide = gate.gate();
|
|
888
964
|
for (const el of placeholders) {
|
|
889
|
-
if (
|
|
890
|
-
// Only process if route matches
|
|
891
|
-
const xRoute = el.getAttribute('x-route');
|
|
892
|
-
const currentPath = window.location.pathname;
|
|
893
|
-
const normalizedPath = currentPath === '/' ? '/' : currentPath.replace(/^\/+|\/+$/g, '');
|
|
894
|
-
const matches = !xRoute || window.ManifestRouting.matchesCondition(normalizedPath, xRoute);
|
|
895
|
-
if (!matches) continue;
|
|
896
|
-
}
|
|
965
|
+
if (decide(el) !== 'swap') continue;
|
|
897
966
|
await processor.processComponent(el);
|
|
898
967
|
}
|
|
899
968
|
},
|
|
900
969
|
initialize() {
|
|
901
970
|
const processor = window.ManifestComponentsProcessor;
|
|
902
|
-
const
|
|
971
|
+
const gate = window.ManifestComponentsRouting;
|
|
903
972
|
if (!processor) return;
|
|
904
973
|
// Initial scan
|
|
905
974
|
this.processAllPlaceholders();
|
|
975
|
+
const isPlaceholder = el => el.tagName.toLowerCase().startsWith('x-') &&
|
|
976
|
+
!el.hasAttribute('data-pre-rendered') && !el.hasAttribute('data-processed');
|
|
906
977
|
// Mutation observer for new placeholders
|
|
907
978
|
const observer = new MutationObserver(async mutations => {
|
|
979
|
+
const decide = gate.gate();
|
|
908
980
|
for (const mutation of mutations) {
|
|
909
981
|
for (const node of mutation.addedNodes) {
|
|
910
|
-
if (node.nodeType
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
const xRoute = node.getAttribute('x-route');
|
|
914
|
-
const currentPath = window.location.pathname;
|
|
915
|
-
const normalizedPath = currentPath === '/' ? '/' : currentPath.replace(/^\/+|\/+$/g, '');
|
|
916
|
-
const matches = !xRoute || window.ManifestRouting.matchesCondition(normalizedPath, xRoute);
|
|
917
|
-
if (!matches) continue;
|
|
918
|
-
}
|
|
919
|
-
await processor.processComponent(node);
|
|
920
|
-
}
|
|
982
|
+
if (node.nodeType !== 1) continue;
|
|
983
|
+
if (isPlaceholder(node) && decide(node) === 'swap') {
|
|
984
|
+
await processor.processComponent(node);
|
|
921
985
|
}
|
|
922
986
|
// Also check for any <x-*> descendants
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
!el.hasAttribute('data-processed')
|
|
928
|
-
);
|
|
929
|
-
for (const el of descendants) {
|
|
930
|
-
if (routing) {
|
|
931
|
-
const xRoute = el.getAttribute('x-route');
|
|
932
|
-
const currentPath = window.location.pathname;
|
|
933
|
-
const normalizedPath = currentPath === '/' ? '/' : currentPath.replace(/^\/+|\/+$/g, '');
|
|
934
|
-
const matches = !xRoute || window.ManifestRouting.matchesCondition(normalizedPath, xRoute);
|
|
935
|
-
if (!matches) continue;
|
|
936
|
-
}
|
|
937
|
-
await processor.processComponent(el);
|
|
938
|
-
}
|
|
987
|
+
const descendants = Array.from(node.querySelectorAll('*')).filter(isPlaceholder);
|
|
988
|
+
for (const el of descendants) {
|
|
989
|
+
if (decide(el) !== 'swap') continue;
|
|
990
|
+
await processor.processComponent(el);
|
|
939
991
|
}
|
|
940
992
|
}
|
|
941
993
|
}
|
|
@@ -951,7 +1003,8 @@ window.ManifestComponentsMutation = {
|
|
|
951
1003
|
});
|
|
952
1004
|
}
|
|
953
1005
|
}
|
|
954
|
-
};
|
|
1006
|
+
};
|
|
1007
|
+
|
|
955
1008
|
|
|
956
1009
|
/* Manifest Components — route-level prefetch (batch on route change + on hover) */
|
|
957
1010
|
|
package/lib/manifest.data.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest.appwrite.auth.js": "sha384-gWLSeVPqCLMiUZB8MU7GqMg3x2yULFUsp8nTTZrPp/9Dlkix42rBn9yIimvwrHqZ",
|
|
3
|
-
"manifest.appwrite.data.js": "sha384-
|
|
3
|
+
"manifest.appwrite.data.js": "sha384-0E/Yzi22qXISJBiU9WW1T221NbxCR5FZCNcvG4G71gAe2xWgf+ArI+bvGgS0B/mv",
|
|
4
4
|
"manifest.appwrite.presences.js": "sha384-LINPhIPTCK+rA8zd+HPUzMSEgH6Sl2vQMEyItT97bnEE2FYGYKqjXX+CWdt6nl9z",
|
|
5
5
|
"manifest.bindings.js": "sha384-lPtMf8Ykaic9gNVZKq8Scia1881ZeMAyxer3WCIkUNwwrgzGBWto1OXADUwjvORF",
|
|
6
6
|
"manifest.charts.js": "sha384-AFbP7mQnigy7DU1s+YE30yKTeQAKfgNazhbfSNbfd9ZpLgeulZKaPi/fAq3gJHDO",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"manifest.color.js": "sha384-tLmmr7KwPIjznXr2tJfJtuAOV9pohdr+Ojj4L4BaOZ8WngCNOPUp27Dfz47YqU2R",
|
|
10
10
|
"manifest.colorpicker.js": "sha384-P+Zx0QzhMGfku8s3yEskTte4/iXCGVX3zdhu42IGNfFcSmhOW+nqVK7w+uczWRGY",
|
|
11
11
|
"manifest.combobox.js": "sha384-/lJo6vaxKjgnBSRs/dzkhK1dzGk3GBw8FISoNJZB70mwAVwu1k5veZyBXjOb4keS",
|
|
12
|
-
"manifest.components.js": "sha384-
|
|
12
|
+
"manifest.components.js": "sha384-7lu4Nw2GqpAUn63c3gYEvgfM58PYsdoPv3wzqPQfZ5bravqOY/lfE8HFKHsKflQj",
|
|
13
13
|
"manifest.computed.js": "sha384-GYML/e81gQfN+iDbqhPUgny8bINCyL+SrbTofoGk4hlCnLLjv51mCv42JMqq+ku5",
|
|
14
|
-
"manifest.data.js": "sha384-
|
|
14
|
+
"manifest.data.js": "sha384-C56SScwt4+3951hiFRRlPZyrCYcNs7kDPNVgFQzf5+LZJ7ze3gl1ODNYQwFahHNY",
|
|
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",
|
|
@@ -24,12 +24,12 @@
|
|
|
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",
|
|
27
|
-
"manifest.router.js": "sha384-
|
|
27
|
+
"manifest.router.js": "sha384-Em8/J9eY7KCqYilu85zgfhtkExWBMn51+P9HnIRYG4/g6FM0e99gRzFEOn4ngwIa",
|
|
28
28
|
"manifest.slides.js": "sha384-3uRTkyK9XPLmnxI2+igZlpi4EyPlU/7IHj5j3BZJJ2KN455vXyk99fiXV3feO/XY",
|
|
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-
|
|
32
|
+
"manifest.sw.js": "sha384-p8Rlt/o2cOPzgeSnTbLKyh3iC9VHw+CwkiTn4pcmuIsQV3yyncLd9NmWAju4fEkr",
|
|
33
33
|
"manifest.tabs.js": "sha384-otU09H7jnawVKQdLAYpMCd3jx00tgyPVr42D2hLIBzN5dG4se505YesavdnMqEi1",
|
|
34
34
|
"manifest.tailwind.js": "sha384-yuP3LEvWU+QVjxjkZ0YhErtC9RrGmhOmHjjFjhS9obqZbp5/KTIEnSR0CXDvHE0B",
|
|
35
35
|
"manifest.toasts.js": "sha384-UpOz9fAdGeGUhL0NamBg5iPepEfIy73p9HYdcxfOQC5b7CVsl7Our0skdZzaLNcC",
|
package/lib/manifest.router.js
CHANGED
|
@@ -13,13 +13,6 @@ function initializeRouting() {
|
|
|
13
13
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
// Start initialization when DOM is ready
|
|
17
|
-
if (document.readyState === 'loading') {
|
|
18
|
-
document.addEventListener('DOMContentLoaded', initializeRouting);
|
|
19
|
-
} else {
|
|
20
|
-
initializeRouting();
|
|
21
|
-
}
|
|
22
|
-
|
|
23
16
|
// Export main routing interface
|
|
24
17
|
window.ManifestRouting = {
|
|
25
18
|
initialize: initializeRouting,
|
|
@@ -89,6 +82,13 @@ window.ManifestRouting = {
|
|
|
89
82
|
}
|
|
90
83
|
};
|
|
91
84
|
|
|
85
|
+
// Start when DOM is ready; after the export so routing-ready listeners can read ManifestRouting
|
|
86
|
+
if (document.readyState === 'loading') {
|
|
87
|
+
document.addEventListener('DOMContentLoaded', initializeRouting);
|
|
88
|
+
} else {
|
|
89
|
+
initializeRouting();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
92
|
|
|
93
93
|
// Router position
|
|
94
94
|
|
|
@@ -898,7 +898,10 @@ window.ManifestRoutingVisibility = {
|
|
|
898
898
|
initialize: initializeVisibility,
|
|
899
899
|
processRouteVisibility,
|
|
900
900
|
isRouteActive,
|
|
901
|
-
isPrerenderedStaticMPA
|
|
901
|
+
isPrerenderedStaticMPA,
|
|
902
|
+
// Raw match for other plugins (components gate): no static-MPA shortcut
|
|
903
|
+
routeMatches,
|
|
904
|
+
routesDefined: (normalizedPath) => isRouteDefined(normalizedPath, collectDefinedRoutes())
|
|
902
905
|
};
|
|
903
906
|
|
|
904
907
|
|
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.293';
|
|
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.293",
|
|
4
4
|
"private": false,
|
|
5
5
|
"workspaces": [
|
|
6
6
|
"templates/starter",
|
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
"test:e2e:data-paging": "node tests/e2e/data-paging.e2e.mjs",
|
|
56
56
|
"test:e2e:modules": "node tests/e2e/modules.e2e.mjs",
|
|
57
57
|
"test:e2e:router-xshow": "node tests/e2e/router-xshow.e2e.mjs",
|
|
58
|
+
"test:e2e:components-router-race": "node tests/e2e/components-router-race.e2e.mjs",
|
|
59
|
+
"test:e2e:components-ancestor-gate": "node tests/e2e/components-ancestor-gate.e2e.mjs",
|
|
58
60
|
"test:e2e:route-head": "node tests/e2e/route-head.e2e.mjs",
|
|
59
61
|
"test:e2e:prerender-patch": "node tests/e2e/utilities-prerender-patch.e2e.mjs",
|
|
60
62
|
"test:e2e:hidden-responsive": "node tests/e2e/utilities-hidden-responsive.e2e.mjs",
|