@simmalugnt-se/payload-visual-editing 0.2.0 → 0.2.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
- A preview click right after the page loads no longer lands on the wrong tab: Payload restores the
|
|
6
|
+
editor's last tab once preferences load, and now leaves it alone because the bridge always clicks
|
|
7
|
+
the tab it needs.
|
|
8
|
+
|
|
3
9
|
## 0.2.0
|
|
4
10
|
|
|
5
11
|
- A click in the preview dispatches `visual-editing:select` on Admin's `window` with the form path,
|
|
@@ -232,9 +232,9 @@ async function openSteps(steps, root, current) {
|
|
|
232
232
|
if (!tabs || !button) {
|
|
233
233
|
return null;
|
|
234
234
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
235
|
+
// Click even the active tab: Payload restores the editor's last tab from preferences once they
|
|
236
|
+
// load, unless a tab was clicked first. A click right after the page loads would lose to it.
|
|
237
|
+
button.click();
|
|
238
238
|
const content = await waitFor(() => button.classList.contains("tabs-field__tab-button--active")
|
|
239
239
|
? tabs.querySelector(":scope > .tabs-field__content-wrap")
|
|
240
240
|
: null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simmalugnt-se/payload-visual-editing",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Click a block in Payload Live Preview to open its fields in the edit form",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"payload",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"react-dom": "^19.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@payloadcms/ui": "3.
|
|
54
|
+
"@payloadcms/ui": "3.90.2",
|
|
55
55
|
"@types/node": "^22",
|
|
56
56
|
"@types/react": "^19.2.18",
|
|
57
57
|
"@types/react-dom": "^19.2.4",
|
|
58
|
-
"payload": "3.
|
|
58
|
+
"payload": "3.90.2",
|
|
59
59
|
"react": "19.2.8",
|
|
60
60
|
"react-dom": "19.2.8",
|
|
61
61
|
"tsx": "^4.21.0",
|