@nuasite/cms 0.22.4 → 0.23.1
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/dist/editor.js +329 -331
- package/package.json +1 -1
- package/src/editor/index.tsx +2 -3
package/package.json
CHANGED
package/src/editor/index.tsx
CHANGED
|
@@ -109,9 +109,8 @@ const CmsUI = () => {
|
|
|
109
109
|
// Re-fetch manifest on View Transitions navigation (astro:after-swap)
|
|
110
110
|
useEffect(() => {
|
|
111
111
|
const onNavigation = () => {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}).catch(() => {})
|
|
112
|
+
postToParent({ type: 'cms-page-navigated', page: { pathname: window.location.pathname } })
|
|
113
|
+
fetchManifest().then((manifest) => signals.setManifest(manifest)).catch(() => {})
|
|
115
114
|
}
|
|
116
115
|
document.addEventListener('astro:after-swap', onNavigation)
|
|
117
116
|
return () => document.removeEventListener('astro:after-swap', onNavigation)
|