Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Releases: openlattice/lattice-fabricate

v0.19.0

29 Oct 18:07
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.18.0...v0.19.0

v0.18.0

01 Jul 23:15
Compare
Choose a tag to compare
  • Add MarkdownEditorWidget
  • Resolve CSS issue for .grid-container
  • bump dependencies

v0.17.0

01 Jul 23:16
Compare
Choose a tag to compare
  • 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

01 Apr 23:08
Compare
Choose a tag to compare

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

02 Apr 00:46
Compare
Choose a tag to compare

release v0.15.1

  • added rowsMax prop to TextareaWidget

release v0.15.0

02 Apr 00:48
Compare
Choose a tag to compare

release v0.15.0

  • upgrading to storybook v6
  • upgrading to styled-components v5

v0.14.4

03 Aug 19:53
912db03
Compare
Choose a tag to compare
  • Add otherText to OtherRadioWidget

v0.14.3

29 Jul 23:51
77f1171
Compare
Choose a tag to compare

Expose setPage prop in Paged render prop