apostrophe
Advanced tools
Changelog
3.48.0 (2023-05-26)
apos.modules['piece-type']getManagerApiProjection
method to reduce the amount of data returned in the manager
modal. The projection will contain the fields returned in the method in addition to the existing manager modal
columns.apos.schema.getRelationshipQueryBuilderChoicesProjection
method to set the projection used in
apos.schema.relationshipQueryBuilderChoices
.alt
attribute from the original image from the Media Library.stripPlaceholderBrs
and restorePlaceholderBrs
from AposRichTextWidgetEditor.vue
component.Gapcursor
display to use a vertical blinking cursor instead of an horizontal cursor, which allow users to add text before and after inline images and tables.max-width
on .apos-rich-text-toolbar__inner
to define the width of the rich-text toolbar. It will now
flow on multiple lines if needed.utilityRail
prop of AposSchema
now defaults to false
, removing
the need to explicitly pass it in almost all contexts.apos.modules['doc-type']
methods getAutocompleteTitle
, getAutocompleteProjection
and autocomplete
as
deprecated. Our admin UI does not use them, it uses the autocomplete('...')
query builder.
More info at https://v3.docs.apostrophecms.org/reference/query-builders.html#autocomplete'.index.js
file contains
no module.exports
object (often due to a typo), or it is empty.type
. Thanks to NuktukDev for this contribution.Changelog
3.47.0 (2023-05-05)
jsdom
22 is incompatible with Node 14. Node 16 and Node 18 are both
still supported. However, because Node 16 reaches its
end-of-life date quite soon (September), testing and upgrading directly
to Node 18 is strongly recommended.sluggo
to version 1.0.0.jsdom
to version 22.0.0
to address an installation warning about the word-wrap
module.extendQueries
to use super pattern for every function in builders and methods (and override properties that are not functions).Changelog
3.46.0 (2023-05-03)
@apostrophecms/ai-helper
module, and also helps in other situations.e.doc
exists when handling content-changed
event.uploadfs
version with no dependency warnings.following: '<parentField'
syntax, where the starting <
indicates the parent level. For example <parentField
follows a field in the parent level, <<grandParentField
follows a field in the grandparent level, etc. The change is fully backward compatible with the current syntax for following fields from the same schema level.Changelog
3.45.1 (2023-04-28)
html-to-text
package to the latest major version.Changelog
3.45.0 (2023-04-27)
insert
option, an array
which currently may contain the strings image
and table
in order to add a
convenient "insert menu" that pops up when the slash key is pressed.
This provides a better user experience for rich text features that shouldn't
require that the user select existing text before using them.width: max-content
in the admin UI.apos-refreshing
Apostrophe bus event can be used to prevent
Apostrophe from refreshing the main content zone of the page when images
and pieces are edited, by clearing the refresh
property of the object
passed to the event.apos.modal.onTopOf(el1, el2)
function is now
available to check whether an element is considered to be "on top of" another element in
the modal stack.v-click-outside-element
Vue directive now understands that modals "on top of"
an element should be considered to be "inside" the element, e.g. clicks on them
shouldn't close the link dialog etc.null
choice to select fields that do not have a default value (required or not) and to the ones configured with dynamic choices.oembed
field where the value was kept in memory after cancelling the widget editor, which resulted in saving the value if the widget was nested and the parent widget was saved.
Also improve the oembed
field UX by setting the input as readonly
rather than disabled
when fetching the video metadata, in order to avoid losing its focus when typing.Changelog
3.44.0 (2023-04-13)
checkboxes
fields now support a new style: 'combobox'
option for a better multiple-select experience when there
are many choices.guestApiAccess
option is set to true
for a piece type or for @apostrophecms/page
,
Apostrophe will allow all logged-in users to access the GET-method REST APIs of that
module, not just users with editing privileges, even if publicApiProjection
is not set.
This is useful when the goal is to allow REST API access to "guest" users who have
project-specific reasons to fetch access content via REST APIs.test-lib/utils.js
has new createUser
and loginAs
methods for the convenience of
those writing mocha tests of Apostrophe modules.batchOperations
permissions: if a permission
property is added to any entry in the batchOperations
cascade of a piece-type module, this permission will be checked for every user. See batchOperations
configuration in modules/@apostrophecms/piece-type/index.js
. The check function checkBatchOperationsPermissions
can be extended. Please note that this permission is checked only to determine whether to offer the operation.Changelog
3.43.0 (2023-03-29)
itemLabel
option of an array
field.touch
task for every piece type. This task invokes update
on each piece, which will execute all of the same event handlers that normally execute when a piece of that type is updated. Example usage: node app article:touch
.relationship
field has no sub-fields
configured.includes
for a simpler, safer test that should be more cross-platform.