Plugin API
- New React Hooks
usePromise- Helper to run promises in a context of React view
- Returns
AsyncStateobject which containsisLoading,erroranddataproperties
useStorage- Helper to store data between entrypoint, plugin and application runs
- Follows API similar to
useStatebuilt-in React Hook - Uses
localStorageinternally
useCache- Helper to store data between entrypoint runs but will be reset when plugin or application is restarted
- Follows API similar to
useStatebuilt-in React Hook - Uses
sessionStorageinternally
useCachedPromise- Helper to run promises with caching done automatically
- Follows
stale-while-revalidatecaching strategy - Uses
usePromiseanduseCacheHooks internally
useFetch- Helper to run
fetch()with caching done automatically - Follows
stale-while-revalidatecaching strategy - Uses
useCachedPromiseHook internally
- Helper to run
- Add
isLoadingproperty on<Detail/>,<Form/>,<Grid/>and<List/>- If passed
truethe loading indicator will be shown above view content
- If passed
- BREAKING CHANGE: To use
Clipboardapi, new permissionpermissions.clipboardis required to be specified in plugin manifestpermissions.clipboardmanifest 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_baris required to be specified in plugin manifestpermissions.main_search_barmanifest property accepts a list that can include"read"value
- BREAKING CHANGE: Plugin and Entrypoint Preference
nameproperties in plugin manifest was split into 2 propertiespreferences.nameis split intopreferences.nameandpreferences.identrypoint.preferences.nameis split intoentrypoint.preferences.nameandentrypoint.preferences.id- To preserve value set by user in settings please set the previous value of
nametoid
- BREAKING CHANGE: Replaced
onSelectionChangeandidproperties on<Grid/>and<List/>withonClickon<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
Applicationsdirectory, not being added
Calculator plugin
- Updated
numbatdependency to 1.13.0 - Enabled currency exchange rate module
Fixes
- Fix application crash when refreshing plugin via
npm run devfrom tools - Fix plugin runtime shutting down when exception is thrown inside a promise handler