gitlab fvtt-modules-lab/quick-insert v2.1.0

latest releases: 3.7.5, 3.7.4, 3.7.3...
5 years ago

Fixes and refactoring.

Changed

  • Targeted JavaScript version is now ES2020. If this breaks anything for users,
    let me know and I'll look at reverting.
  • See API changes below.

Fixed

  • Search filters with folders now apply recursively (correctly including items
    in subfolders)
  • Minor search focus UX behaviours
  • Attempt to mitigate Error: ENOENT: no such file or directory ... happening
    when multiple modules try to fetch compendium indexes simultaneously (The
    error will still happen some times, but Quick Insert should no longer break.
    It will detect the error and retry every 2 seconds, for a maximum of 5
    attempts)
  • Avoid doubled search buttons in Tidy5e Sheet (appeared in Foundry 7.x)
  • dnd5e character sheet search will only show "Item" type entities, as anything
    else would be silly

API Changes

See API usage added to the README!

  • Major refactor of Quick Insert structure - now available as an importable
    singleton object instead of polluting the ui object
  • Added optional fields to contexts (all fields on context are optional)
    • classes - a list of classes that will be added to the search app
    • restrictTypes - a list of entity types that the current context is
      restricted to (e.g. restrictType: ["Item"] to ensure that only Items will
      show up)
  • Modularised system intergation. Using dynamic import() so that we only load
    code for the current system. System integrations are not bundled in the main
    quick-insert.js, so they can be imported directly by other modules.

Don't miss a new quick-insert release

NewReleases is sending notifications on new releases.