Apostrophe 3.18.0: Image cropping, document versions, and much more #3746
agilbert
announced in
Release Notes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
This is our biggest release announcement in quite some time. After taking some extra time in April baking everything, today we are very excited to share several major new Apostrophe features with you. Let's dive right in.
Image cropping
Image cropping has been a key Apostrophe feature for a long time, and we wanted to make sure we improved the editing experience when adding it to Apostrophe 3. With the cropping and focal point tools now released in Apostrophe 3.18, you can:
image-cropping.mov
With this new foundation laid, we have more image editing capabilities on the roadmap that we're looking forward to shipping. In the meantime, you can learn more about how to configure your image widgets via our core image widget documentation. Or just give cropping a try in our public demo and let us know what you think.
Document versions
Another important tool for editors is the ability to roll back your documents to previous versions. In A2, this was sometimes a bit messy because of how frequently documents were auto-saved while editing in context. In A3, we've simplified things to create a snapshot of a document version anytime it is published. Editors can then pull up a list of all of the published document versions, quickly preview the differences in the editor modal, and revert your draft state to an earlier snapshot.
document-versions.mov
Document Versions is currently only available with an Apostrophe Assembly subscription – please get in touch if you'd like to learn more about this feature or any of our other commercial solutions.
Observability with OpenTelemetry
Sometimes developers need insight into performance issues with their websites. OpenTelemetry is a widely adopted, open source solution for collecting performance "traces" that provide insight into where the time is going when a website responds to a request.
In Apostrophe 3.18, we've added optional OpenTelemetry support in the core. If you follow our cookbook recipe to install and enable OpenTelemetry in your Apostrophe project, you'll quickly be able to start posting detailed performance traces to your preferred back-end such as Jaeger or NewRelic.
Give it a try and let us know how we can make this even better at helping you deliver the best performing Apostrophe experiences.
More in-context editing support
Most custom widgets in Apostrophe are edited in a dialog box when the user clicks on the edit button. But there is another possibility: in-context editing on the page. The standard rich text widget is an example of this. The user types text directly on the page.
Following our new documentation for editing custom widgets in context, it's now easier to deliver a more intuitive editing experience for even the most complex custom widgets. There is some amazing potential here – we'd love to see what you come up with using this technique, drop in and share in our Discord.
As always, the full release notes are below 🙌 🙇
Apostrophe 3.18.0
Adds
@apostrophecms/image
widget for a sample implementation of the necessary styles.aspectRatio
option for image widgets. When set to[ w, h ]
(a ratio of width to height), images are automatically cropped to this aspect ratio when chosen for that particular widget. If the user does not crop manually, then cropping happens automatically.minSize
option for image widgets. This ensures that the images chosen are at least the given size[ width, height ]
, and also ensures the user cannot choose something smaller than that when cropping.components
option as browser data, so that individual widget type modules that support contextual editing can be implemented more conveniently.focused
prop which is helpful in deciding when to display additional UI.beforeExit
async handler.apostrophe:run
event are now able to send an exit code to the Apostrophe bootstrap routine.localhost
will now successfully find a typical dev MongoDB server bound only to127.0.0.1
, Apostrophe can generate valid ipv6 URLs pointing back to itself, andwebpack
andvue-loader
have been updated to address incompatibilities.apos.doc.addContextOperation()
).AposSchema
component now supports an optionalgeneration
prop which may be used to force a refresh when the value of the object changes externally. This is a compromise to avoid the performance hit of checking numerous subfields for possible changes every time thevalue
prop changes in response to aninput
event.@apostrophecms/doc:afterAllModesDeleted
fired after all modes of a given document are purged.Fixes
self.email
method of modules now correctly accepts a defaultfrom
address configured for a specific module via thefrom
subproperty of theemail
option to that module. Thanks tochmdebeer
for pointing out the issue and the fix._urls
not added on attachment fields when pieces API index is requested (Regression : the_urls
field is not given in the JSON response after API call on a piece #3643)0
.nestedModuleSubdirs
feature no longer throws an error and interrupts startup if a project contains both@apostrophecms/asset
andasset
, which should be considered separate module names.Apostrophe 3.x modules
document-versions 1.0.0
Apostrophe 2.x modules
apostrophe-forms
apostrophe-workflow
forceExportExistingRelatedDocuments
: by default, when force exporting, a choice is also offered to force export related documents even if they already exist in the target locale, overwriting the document in the target locale. If this option is explicitly set tofalse
, this choice is not offered.Beta Was this translation helpful? Give feedback.
All reactions