Releases: clay/clay-kiln
v8.15.0
Release's Pull Request
Improvements
Fixes
- Change regular function to arrow function - Magic button - moreMagic #1482
Dependency bump
v8.14.1 8.14.1
Feature: Adding disable input capabilities
- Adds support to disable Kiln inputs by passing a
disabled
prop in the schema or setting it inkiln.js
Feature: Subsite Support
- Added support to be able to syndicate to/from subsites.
- Updated queries to look for subsites, allowing pages to be filtered by site & subsite
v8.12.0
Bugfix: Adds archive event to metadata history
Bugfixes:
- Adds a new property to determined when the archive/unarchive events are triggered
v8.7.0
1) Add keypress functionality to simple-list-input
Now we have the possibility to receive the event object through emitting the keypress
function from inside the simple-list-input
. This allows us to add any type of rule to the value that is been added.
2) Custom global validators #1369
This opens the possibility to add custom metadata validators to all the pages.
To enable this include scope: metadata
in object and on type indicate if is error
or warning
.
e.g.
'use strict';
module.exports = {
label: 'Lorem Ipsum',
description: 'Lorem ipsum dolor sit amet, consectetur...',
type: 'error',
scope: 'metadata',
validate(metadata) {
if (metadata.authors.length < 1) {
return [{
preview: 'Validation message'
}];
}
return [];
}
};
- Custom Metadata validation for specific page: This allows validations for specific pages taking in count the
uri
used.
To use it include scope: 'metadata' in object and include uri:<URI>
e.g.
'use strict';
module.exports = {
label: 'Lorem ipsum',
description: 'Lorem ipsum dolor sit amet, consectetur...',
type: 'error',
scope: 'metadata',
uri: 'cjp2sl6c50000cyv2gt73xbwt',
validate(metadata) {
if (metadata.authors.length < 1) {
return [{
preview: 'Blah blah'
}];
}
return [];
}
};
Export UiAlert component
Now UiAlert component is available in window.kiln.utils.components
Deep-linking
Left and Right Nav Drawers are now deep-linkable. When opening drawers, hashes are appended to the url so that any section of the nav ui can be bookmarked or shared via url, and not just the nav elements in the left drawer. Any kiln plugins can also be deep-linked to, and will automatically be so, if they use the openDrawer/toggleDrawer functions.
Also includes converting drag n drop functionality from dragula to sortablejs to allow better mobile drag and dropping experience. And a version upgrade of keen-ui to remove calendar bug, as well as some tweaks to the way keen-ui css is included in the project to prevent duplication.