Overview of sdk-ui-pluggable-host
Home > @gooddata/sdk-ui-pluggable-host
sdk-ui-pluggable-host package
Functions
|
Function |
Description |
|---|---|
|
(ALPHA) Dispatches a notification into the currently mounted host UI module. | |
|
(ALPHA) | |
|
(ALPHA) Installs a window listener for Idempotent: calling more than once registers the listener only once. | |
|
(ALPHA) Periodically polls the COMMITHASH file and fires Idempotent: calling more than once is a no-op after the first invocation. | |
|
(ALPHA) Registers app lifecycle callbacks used by the loader (e.g. for preload telemetry). Called by the host or harness at startup. | |
|
(ALPHA) Registers the local application loaders map. Called by the host or harness before any app loading occurs. | |
|
(ALPHA) Registers the local pluggable applications manifest. Called by the host or harness before rendering. | |
|
(ALPHA) Registers the host's platform-context lifecycle callbacks. Must be called once at host boot before | |
|
(ALPHA) Triggers a hard page reload once, guarded against loops by sessionStorage. If the same COMMITHASH already triggered a reload within the last 30 seconds, the call is a no-op so the user is not stuck reloading a broken build. | |
|
(ALPHA) | |
|
(ALPHA) Registers a pricing extension that the default host chrome will consume to render trial-upgrade affordances. Optional — when no extension is registered, the chrome shows no upsell button and no pricing dialog. | |
|
(ALPHA) Sets the package name reported to the backend for telemetry. Must be called before the first backend request (i.e., before Root renders). | |
|
(ALPHA) Registers a listener invoked synchronously just before a stale-chunk hard reload, intended for telemetry. Called only when the reload actually happens — skipped reloads (loop-guard hits) do not fire the listener. |
Interfaces
|
Interface |
Description |
|---|---|
|
(ALPHA) | |
|
(ALPHA) Shape returned by a pricing extension hook. Provides the trial-info derived from entitlements + a dialog element so the host chrome can wire the upsell affordances on | |
|
(ALPHA) | |
|
(ALPHA) | |
|
(ALPHA) Optional callback invoked synchronously immediately before a stale-chunk hard reload. Gives the host app a chance to record telemetry before navigation cancels in-flight requests. | |
|
(ALPHA) Options for installVersionWatcher(). |
Variables
|
Variable |
Description |
|---|---|
|
(ALPHA) Query-string parameter appended to the URL on a stale-chunk reload. The value is a timestamp; its only purpose is to make the navigation target a URL the browser has never seen before, defeating any cached HTML/remoteEntry that might otherwise replay the stale module graph. Exported so callers and tests can recognise (and strip) the marker if needed. |
Type Aliases
|
Type Alias |
Description |
|---|---|
|
(ALPHA) | |
|
(ALPHA) | |
|
(ALPHA) A host pricing extension. The |