@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/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/astro-cms"
15
15
  },
16
16
  "license": "Apache-2.0",
17
- "version": "0.22.4",
17
+ "version": "0.23.1",
18
18
  "module": "src/index.ts",
19
19
  "types": "src/index.ts",
20
20
  "type": "module",
@@ -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
- fetchManifest().then((manifest) => {
113
- signals.setManifest(manifest)
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)