Skip to content

Commit

Permalink
[plugins] turns out we weren't exposing the plugin ID for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowsink committed Dec 1, 2024
1 parent 0ee9648 commit eece1b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/shelter-docs/docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,14 @@ function flushStore(): void

If you deeply modify something in the store, where it will not be automatically picked up (e.g. `store.foo.bar = "baz"`), you may call `flushStore()` to force a save.

### `shelter.plugin.id`

```ts
id: string
```

The ID for this plugin, used by `shelter.plugins` APIs.

### `shelter.plugin.manifest`

`manifest` contains the manifest object for your plugin.
Expand Down
1 change: 1 addition & 0 deletions packages/shelter/src/plugins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function createPluginApi(pluginId: string, { manifest, injectorIntegration }: St
return {
store,
flushStore,
id: pluginId,
manifest,
showSettings: () =>
openModal((mprops) => (
Expand Down

0 comments on commit eece1b6

Please sign in to comment.