Skip to content

v3.0.0-rc.3 (09-13-2023)

Compare
Choose a tag to compare
@DevNatan DevNatan released this 14 Sep 01:30
· 64 commits to main since this release
ef81b9f

πŸŽ‰ New Features

  • Now components overlap each other based on rendering priorities, basically, two items can now be placed in the same slot and they will render properly based on visibility conditions like displayIf or onRender/rendered result (#433)
  • New displayIf with context as parameter to be able to use displayIf(booleanState::get) (#436)
  • Better Kotlin interop and extensions to kotlin.time package (#439)
  • New back() to navigate back to the previous view. Use onResume to catch when "back" is used. See Creating Flows with back() and onResume on Wiki (#443)
  • Apply default configuration to all views. See Default Configuration on Wiki (#444)
  • New item updateOnStateChange(State) (that's the same as watch but more explicit) (#447)
  • interactionDelay(Duration) allows set a interval between player interactions (#460)
  • Added context and index parameters to Pagination state (#456)
  • New hideIf (the opposite of displayIf) to hide items based on a condition (#467)
  • New computedPaginationState and lazyPaginationState (#458)

πŸ› Bug fixes

  • Inventory transition don't work in newer versions, now we close inventory before transitioning to others via open (#457)
  • Players being able to remove items from view inventory by clicking in their own inventory (#459)
  • Issues with pagination items updates also not being able to use displayIf or watch now fixed (#466)

πŸ“˜ Documentation

🧩 API changes

  • StateValue from API is now an interface also Pagination now extends StateValue (#434)
  • Better Kotlin interop & Bukkit platform View do not implement Bukkit's InventoryHolder anymore (#439)
  • New IndexSlotFunction<T> and IndexSlotConsumer<T> interfaces (#440)
  • ComponentBuilder's watch(State) is now deprecated and scheduled for removal in v3.1.0 (#447)
  • View's onInit(ViewConfigBuilder) moved to inventory-framework-platform module (#448)

πŸ› οΈ Internal changes

  • Move platform related code from API to inventory-framework-platform module (#445)
  • Errors while loading async pagination data sources are now propagated (#471)