Get locking information for note and add GitHub action for automatic deploying #4
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.

This PR does the following things:
gh-pagesbranch.Editor.tsxso that we can disable our editor if the note is locked. See the following video.standardnotes-template-screencast.mp4
I had a hard time figuring out how to implement the second feature because there is little documentation. I think other people will find this feature useful while implementing their own editor.
To achieve the second feature, there are a few changes:
@standardnotes/editor-kitto the latest version.@standardnotes/modelsversion to use the latest version, which is hard-coded in the dependencies for@standardnotes/editor-kit.yarn.lockand usenpminstead. We can also useyarnbut we need to useyarn install --ignore-enginesinstead, which is cumbersome. Ifyarnis needed, we must change theoverridesfield inpackage.jsontoresolutions. See https://stackoverflow.com/questions/40226639/how-do-i-override-nested-dependencies-with-yarn for details. But I think the better solution is not to hardcode@standardnotes/modelsversion in this file https://github.com/standardnotes/editor-kit/blob/c554d9f41423b9d4e8bfda847f541554d9aaf3d2/package.json