lumiverse-spindle-types 0.5.25 → 0.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/dom.ts +11 -0
package/package.json
CHANGED
package/src/dom.ts
CHANGED
|
@@ -810,6 +810,17 @@ export interface SpindleFrontendContext {
|
|
|
810
810
|
* ```
|
|
811
811
|
*/
|
|
812
812
|
getActiveChat(): { chatId: string | null; characterId: string | null };
|
|
813
|
+
/**
|
|
814
|
+
* Signal that the frontend is ready to receive any startup messages that
|
|
815
|
+
* were queued while the bundle was loading.
|
|
816
|
+
*/
|
|
817
|
+
ready(): void;
|
|
818
|
+
/**
|
|
819
|
+
* Opt out of legacy auto-ready behavior. Call during setup() before it
|
|
820
|
+
* returns if initialization continues asynchronously and startup messages
|
|
821
|
+
* should remain queued until a later `ready()` call.
|
|
822
|
+
*/
|
|
823
|
+
deferReady(): void;
|
|
813
824
|
sendToBackend(payload: unknown): void;
|
|
814
825
|
onBackendMessage(handler: (payload: unknown) => void): () => void;
|
|
815
826
|
/** Structured lifecycle hooks for backend-spawned frontend processes. */
|