Merged
Conversation
…oration Replace the mixin-based workspace initialization with publish-container-created and publish-container-destroyed events. Use the container's focusField/blurField methods and fieldFocus ref directly instead of emitting field:lock/field:unlock events and tracking focus state separately in the Pinia store. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- template at the bottom - import components and use StudlyCase tags - revert unlock event flow to how it was before. cms was missing pushed component event bindings.
Updating lastValues before setValues keeps the deep values watcher from firing a spurious 'updated' whisper for every field when a joining user applies the initial state payload.
Previously we added a new unload listener per publish container, which accumulated across SPA navigations and could double-destroy workspaces. A single module-level handler iterates whatever is live.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #109
Depends on statamic/cms#13974
Summary
Adds compatibility with Statamic 6, which moved the publish form to Vue 3 with the Composition API and Pinia.
Changes
vite.config.js,composer.jsonconstraints bumped for Statamic 6.fieldFocusref. The Workspace calls the container'sfocusField(handle, user)/blurField(handle, user)to update it, and watches it for local-user changes to broadcast focus/blur whispers.resources/js/store.jsso theStatusBarandWorkspacedon't redefine it.valuesandmetarefs viasetValues,setFieldValue,setMeta,setFieldMetainstead of dispatching to the Vuexpublishmodule. Meta is still cleaned throughcleanEntireMetaPayload/cleanMetaPayloadand merged on apply.debounceutil, status bar tweaks.Test plan