@unimicro/plugin-host
v0.4.1
Published
The Unimicro plugin runtime: discovery, gating, mounting, isolation and the Plugin Host API, for any front end that hosts plugins.
Keywords
Readme
@unimicro/plugin-host
The Unimicro plugin runtime, for any front end that hosts plugins: discovery, gating, mounting, isolation and the Plugin Host API that plugin views are handed.
npm install @unimicro/plugin-hostThe main entry point is framework-free. @unimicro/plugin-host/angular adds a routed container, a
slot outlet (panels and tabs; table cells mount through mountColumnCell) and the DI wiring; Angular
is an optional peer dependency.
The package also ships the document that isolated views run in, under shell/, which a host
application serves from its own output.
The shell loads the design system itself — the same package, version, element registration and theme
stylesheets a host application loads for its native views — so a view sees the same components and
custom properties in either model and can move between them without a code change.
@unimicro/design-system 0.1.0-next.6 is pinned as a development dependency and copied into
shell/v1/ by the package build; bumping it is a version bump here and a rebuild, and the Developer
API's allowlist of shell files has to name every file the shell document imports, whether the copy
produced it or not.
How to wire it into an application is documented in Confluence under Plugin Views :: Plugin Host Package.
