Plugin API
- New React Hooks
usePromise
- Helper to run promises in a context of React view
- Returns
AsyncState
object which containsisLoading
,error
anddata
properties
useStorage
- Helper to store data between entrypoint, plugin and application runs
- Follows API similar to
useState
built-in React Hook - Uses
localStorage
internally
useCache
- Helper to store data between entrypoint runs but will be reset when plugin or application is restarted
- Follows API similar to
useState
built-in React Hook - Uses
sessionStorage
internally
useCachedPromise
- Helper to run promises with caching done automatically
- Follows
stale-while-revalidate
caching strategy - Uses
usePromise
anduseCache
Hooks internally
useFetch
- Helper to run
fetch()
with caching done automatically - Follows
stale-while-revalidate
caching strategy - Uses
useCachedPromise
Hook internally
- Helper to run
- Add
isLoading
property on<Detail/>
,<Form/>
,<Grid/>
and<List/>
- If passed
true
the loading indicator will be shown above view content
- If passed
- BREAKING CHANGE: To use
Clipboard
api, new permissionpermissions.clipboard
is required to be specified in plugin manifestpermissions.clipboard
manifest property accepts a list that can include one or multiple of"read"
,"write"
or"clear"
values
- BREAKING CHANGE: To use plugin entrypoint of type
inline-view
, new permissionpermissions.main_search_bar
is required to be specified in plugin manifestpermissions.main_search_bar
manifest property accepts a list that can include"read"
value
- BREAKING CHANGE: Plugin and Entrypoint Preference
name
properties in plugin manifest was split into 2 propertiespreferences.name
is split intopreferences.name
andpreferences.id
entrypoint.preferences.name
is split intoentrypoint.preferences.name
andentrypoint.preferences.id
- To preserve value set by user in settings please set the previous value of
name
toid
- BREAKING CHANGE: Replaced
onSelectionChange
andid
properties on<Grid/>
and<List/>
withonClick
on<Grid.Item/>
and<List.Item/>
UI/UX Improvements
- Added ALT + K (OPT + K on macOS) label to Action Panel button in bottom panel in plugin views
- Refined styling to accommodate this change
- BREAKING CHANGE: Current color theme version increased to
2
- BREAKING CHANGE: Current everything theme version increased to
2
Applications
plugin
- Add macOS System settings items like Sound, Network, etc
- Both pre- and post-Ventura macOS settings are supported
- Fixed macOS applications, that are nested more than one directory level deep in
Applications
directory, not being added
Calculator
plugin
- Updated
numbat
dependency to 1.13.0 - Enabled currency exchange rate module
Fixes
- Fix application crash when refreshing plugin via
npm run dev
from tools - Fix plugin runtime shutting down when exception is thrown inside a promise handler