@almadar/ui 5.157.0 → 5.159.0

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.
@@ -145,7 +145,7 @@ interface SendEventResult {
145
145
  }
146
146
  interface ServerBridgeContextValue {
147
147
  connected: boolean;
148
- sendEvent: (orbitalName: string, event: string, payload?: EventPayload) => Promise<SendEventResult>;
148
+ sendEvent: (orbitalName: string, event: string, payload?: EventPayload, tick?: string, sourceTrait?: string) => Promise<SendEventResult>;
149
149
  }
150
150
  /**
151
151
  * Transport adapter for ServerBridgeProvider. Decouples the bridge's
@@ -168,8 +168,12 @@ interface ServerBridgeTransport {
168
168
  * `clientId` (Almadar_Live_Push.md) is the per-tab id stamped on every
169
169
  * dispatch so the server's push broadcast can exclude the origin tab
170
170
  * (it already got this cascade in-response).
171
+ *
172
+ * `tick`/`sourceTrait` (T6, docs/Almadar_Tick_Loop.md §3a) mark a
173
+ * tick-originated latest-state broadcast: the server coalesces these
174
+ * newest-per-key and relays them to other tabs at snapshot rate.
171
175
  */
172
- sendEvent: (orbitalName: string, event: string, payload?: EventPayload, clientId?: string) => Promise<OrbitalEventResponse>;
176
+ sendEvent: (orbitalName: string, event: string, payload?: EventPayload, clientId?: string, tick?: string, sourceTrait?: string) => Promise<OrbitalEventResponse>;
173
177
  }
174
178
  /**
175
179
  * Access the server bridge. Returns a no-op stub when outside the provider.
@@ -268,4 +272,4 @@ declare function useEntityBindingSnapshot(traitName: string | undefined): {
268
272
  state: string;
269
273
  };
270
274
 
271
- export { EntityBindingContext as E, type SendEventResult as S, TraitContext as T, type EntityBindingSource as a, type EntitySchemaContextValue as b, EntitySchemaProvider as c, type EntitySchemaProviderProps as d, type ServerBridgeContextValue as e, ServerBridgeProvider as f, type ServerBridgeProviderProps as g, type ServerBridgeTransport as h, type ServerClientEffect as i, type ServerResponseMeta as j, type TraitContextValue as k, type TraitInstance as l, TraitProvider as m, type TraitProviderProps as n, useEntitySchema as o, useEntitySchemaOptional as p, useServerBridge as q, useTrait as r, useTraitContext as s, useEntityBindingSnapshot as u };
275
+ export { type EntityBindingSource as E, type ServerBridgeTransport as S, TraitContext as T, type EntitySchemaContextValue as a, EntitySchemaProvider as b, type EntitySchemaProviderProps as c, type ServerBridgeContextValue as d, ServerBridgeProvider as e, type ServerClientEffect as f, type TraitContextValue as g, type TraitInstance as h, TraitProvider as i, type TraitProviderProps as j, useEntitySchemaOptional as k, useServerBridge as l, useTrait as m, useTraitContext as n, EntityBindingContext as o, type SendEventResult as p, type ServerBridgeProviderProps as q, type ServerResponseMeta as r, useEntityBindingSnapshot as s, useEntitySchema as u };
@@ -145,7 +145,7 @@ interface SendEventResult {
145
145
  }
146
146
  interface ServerBridgeContextValue {
147
147
  connected: boolean;
148
- sendEvent: (orbitalName: string, event: string, payload?: EventPayload) => Promise<SendEventResult>;
148
+ sendEvent: (orbitalName: string, event: string, payload?: EventPayload, tick?: string, sourceTrait?: string) => Promise<SendEventResult>;
149
149
  }
150
150
  /**
151
151
  * Transport adapter for ServerBridgeProvider. Decouples the bridge's
@@ -168,8 +168,12 @@ interface ServerBridgeTransport {
168
168
  * `clientId` (Almadar_Live_Push.md) is the per-tab id stamped on every
169
169
  * dispatch so the server's push broadcast can exclude the origin tab
170
170
  * (it already got this cascade in-response).
171
+ *
172
+ * `tick`/`sourceTrait` (T6, docs/Almadar_Tick_Loop.md §3a) mark a
173
+ * tick-originated latest-state broadcast: the server coalesces these
174
+ * newest-per-key and relays them to other tabs at snapshot rate.
171
175
  */
172
- sendEvent: (orbitalName: string, event: string, payload?: EventPayload, clientId?: string) => Promise<OrbitalEventResponse>;
176
+ sendEvent: (orbitalName: string, event: string, payload?: EventPayload, clientId?: string, tick?: string, sourceTrait?: string) => Promise<OrbitalEventResponse>;
173
177
  }
174
178
  /**
175
179
  * Access the server bridge. Returns a no-op stub when outside the provider.
@@ -268,4 +272,4 @@ declare function useEntityBindingSnapshot(traitName: string | undefined): {
268
272
  state: string;
269
273
  };
270
274
 
271
- export { EntityBindingContext as E, type SendEventResult as S, TraitContext as T, type EntityBindingSource as a, type EntitySchemaContextValue as b, EntitySchemaProvider as c, type EntitySchemaProviderProps as d, type ServerBridgeContextValue as e, ServerBridgeProvider as f, type ServerBridgeProviderProps as g, type ServerBridgeTransport as h, type ServerClientEffect as i, type ServerResponseMeta as j, type TraitContextValue as k, type TraitInstance as l, TraitProvider as m, type TraitProviderProps as n, useEntitySchema as o, useEntitySchemaOptional as p, useServerBridge as q, useTrait as r, useTraitContext as s, useEntityBindingSnapshot as u };
275
+ export { type EntityBindingSource as E, type ServerBridgeTransport as S, TraitContext as T, type EntitySchemaContextValue as a, EntitySchemaProvider as b, type EntitySchemaProviderProps as c, type ServerBridgeContextValue as d, ServerBridgeProvider as e, type ServerClientEffect as f, type TraitContextValue as g, type TraitInstance as h, TraitProvider as i, type TraitProviderProps as j, useEntitySchemaOptional as k, useServerBridge as l, useTrait as m, useTraitContext as n, EntityBindingContext as o, type SendEventResult as p, type ServerBridgeProviderProps as q, type ServerResponseMeta as r, useEntityBindingSnapshot as s, useEntitySchema as u };