Interface: IClientPluginContext
Defined in: Plugin/PluginTypes.ts:131
Capabilities available to client-side plugins. The concrete implementation lives in @bible/web (or @bible/desktop).
Extends
Properties
hooks
hooks:
HookRegistry<any,any>
Defined in: Plugin/PluginTypes.ts:134
Hook registry for client-side filter and action hooks
log
log:
PluginLogger
Defined in: Plugin/PluginTypes.ts:90
Scoped logger that prefixes output with the plugin ID
Inherited from
pluginId
pluginId:
string
Defined in: Plugin/PluginTypes.ts:87
The plugin's unique ID
Inherited from
storage
storage:
PluginStorage
Defined in: Plugin/PluginTypes.ts:140
Scoped persistent key-value storage (localStorage under plugin namespace)
Methods
fetch()
fetch(
path,options?):Promise<Response>
Defined in: Plugin/PluginTypes.ts:137
Scoped fetch: requests go to /api/plugins/
Parameters
path
string
options?
RequestInit
Returns
Promise<Response>