github decaf-dev/obsidian-dataloom 5.0.0

latest releases: 8.16.1, 8.16.0, 8.15.12...
2 years ago

Data

  • Now using a flat data structure - cells[] instead of cells[], tags[], headers[]
  • Refactored the table state
    • We now use TableModel which is a serializable instance of the table markdown and TableSettings which contains all the settings of the table that aren't needed for data serialization and only for display
  • The content field on cells were replaced with markdown and html
  • Table will now show "Loading..." on initial load

Live Preview

  • Added support for live preview
    • MarkdownPostProcessor replaced with MarkCodeBlockProcessor
      • Table id is always available for the live preview element
    • Fixed: Table no longer reloads upon every change
    • Markdown is loaded from a separate file called table-id-<my-specifier> in the _notion-like-tables directory

Menu System

  • Completely reworked the menu system by using Redux
  • DOM events were moved from React directly into the plugin to make sure menu's update position and close on resize/scroll

Tag System

  • Fixed: the tag system for the new table model
  • Added: support for changing between column types of tag or multi-tag

Cell Resizing

The resizing system for cells was overhauled. We are now using just regular html tables

Other Small Fixes

  • Added: ability to check a checkbox cell by clicking on the cell itself
  • Fixed: reduced min-column-size of a cell to match that of a checkbox
  • Fixed: allow auto width on all cells
  • Added: Stack + Wrap components for handling spacing between components
  • Refactored: removed IconText and IconButton replaced with Icon and Button with support for icons
  • Fixed: hover on buttons that overlay a selectable component
  • Added: remove button to the OptionBar sort filter

Sorting

  • Added: support for default sort
    • Added a rows key to TableSettings that accept RowSettings
    • Added a creationDate key to the RowSettings object

Links

  • Added support for links with alias
    • Fixed: escaping of the pipe character

Migration

  • Added a migration tool that generates NLT codeblocks + create the necessary table definition file

Other Changes

Minor refactoring of functions/variable names

Don't miss a new obsidian-dataloom release

NewReleases is sending notifications on new releases.