Skip to content

v1.17-beta-15

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 26 Jan 21:26
· 81 commits to master since this release

Improvements 🚀

API UI components updates

Prompt: All options are now passed via an optional options object parameter, with defaults for each:

prompt(options?: {
  label?: string,  // shown above the text field, rendered as markdown; default none
  large?: boolean,  // set true if text box should be larger; default false
  placeholder?: string,  // text inside text field; defaults to message
  default?: string // default value for text field; default none
})

Suggester: Made function easier to use with optional keys (if not provided, returned value is the selected option), also via an optional options parameter:

suggester(
    values: string[] | ((value: T) => string), // renamed from text_items; rendered as markdown
    keys?: T[], // renamed from items; if not provided, values are returned on selection
    options?: {
      placeholder?: string, // shown in the input field; defaults to message
      limit?: number        // how many options to show; defaults to no limit 
    })

Also:

Other improvements

  • Code examples in What's New are now horizontally scrollable.

Fixes

  • Using the Create new note link was creating a note but with duplicate toolbars. (This may have been a 1.8.x issue, with the metadata event firing on note creation.)

Full Changelog: 1.17-beta-14...1.17-beta-15