This repository has been archived by the owner on Jul 11, 2022. It is now read-only.
Releases: openlattice/lattice-fabricate
Releases · openlattice/lattice-fabricate
v0.19.0
What's Changed
- update dependencies and switch to >= peer dependencies by @UnsungHero97 in #1102
- Bump webpack from 5.54.0 to 5.55.0 by @dependabot in #1103
- 2021-09-28 release by @UnsungHero97 in #1104
Full Changelog: v0.18.0...v0.19.0
v0.18.0
- Add MarkdownEditorWidget
- Resolve CSS issue for
.grid-container
- bump dependencies
v0.17.0
- Update dependencies
- Adds AttachmentsField
- object type schemas with
attachment=true
render AttachmentsField and attach_id
properties to their appropriate section of formData- this randomly generated 10 character alphanumberic id is used to identify/match which field uploaded attachments should be assigned to.
// can place attachments property on any object type field
const schema = {
type: 'object',
attachments: true,
...
};
// accepted mime types can be applied using field specific ui:options
const uiSchema = {
'ui:options': {
accept: 'application/pdf, image/*',
},
};
newly generated formData example
const formData = {
section: {
firstName: 'Testy' // form field value
_id: asdfg12345 // field id
}
};
attachments uploaded through an `AttachmentsField` should carry the matching `_id` so that they may be displayed in their appropriate sections
New required formContext
properties:
const formContext = {
attachmentDestinationId, // i.e. EKID of access-request
onDrop,
onDeleteAttachment,
attachments,
formRef,
};
type OnDrop = (
file :Object,
attachmentDestinationId :UUID,
fieldId :string,
formData :Object,
) => void;
type OnDeleteAttachment = (
attachment :Object,
formData :Object
) => void;
type Attachment = {
date :string;
fieldId :string; // id of attachments field to inform render target
href :string;
id :UUID; // entity key id of file
name :string;
type :string;
};
type Attachments = {
[fieldId :string] :Attachment[];
}
release v0.16.0
release v0.16.0
- upgrade
package-lock.json
to new format for npm v7 - upgrade to webpack v5
- upgrade to latest babel + core-js v3
- use
webpack-node-externals
to reduce bundle size
release v0.15.1
release v0.15.1
- added
rowsMax
prop toTextareaWidget
release v0.15.0
release v0.15.0
- upgrading to
storybook
v6 - upgrading to
styled-components
v5
v0.14.4
- Add
otherText
toOtherRadioWidget
v0.14.3
Expose setPage
prop in Paged
render prop