@backmatter/next 0.0.75 → 0.0.77

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backmatter/next",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "description": "Experimental Next.js adapter for Backmatter. APIs will break. Not ready for production.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -48,10 +48,10 @@
48
48
  "test": "bun test"
49
49
  },
50
50
  "dependencies": {
51
- "@backmatter/core": "^0.0.57",
51
+ "@backmatter/core": "^0.0.59",
52
52
  "@mdx-js/mdx": "^3.1.1",
53
53
  "remark-gfm": "^4.0.1",
54
- "@backmatter/studio": "^0.0.52"
54
+ "@backmatter/studio": "^0.0.54"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "next": ">=16.3.0",
@@ -223,6 +223,8 @@ export function PreviewClient({
223
223
  onEdit: (edit) => session.edit(edit),
224
224
  onModeChange: (on) => session?.editMode(on),
225
225
  onHistory: (step) => session.editHistory(step),
226
+ // On the site itself edit mode stays on. In the dashboard's frame the editor's toggle owns it.
227
+ locked: window.top === window.self,
226
228
  // The document's own content. The host's header and footer links keep navigating.
227
229
  content: "[data-backmatter-preview]",
228
230
  onIdle: () => {