@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.
- package/dist/{EntityBindingContext-BfZGeDfX.d.cts → EntityBindingContext-0Evn_LcT.d.cts} +7 -3
- package/dist/{EntityBindingContext-BfZGeDfX.d.ts → EntityBindingContext-0Evn_LcT.d.ts} +7 -3
- package/dist/avl/index.cjs +379 -50
- package/dist/avl/index.js +380 -51
- package/dist/components/index.cjs +394 -17
- package/dist/components/index.d.cts +48 -6
- package/dist/components/index.d.ts +48 -6
- package/dist/components/index.js +395 -18
- package/dist/context/index.cjs +134 -39
- package/dist/context/index.js +92 -1
- package/dist/hooks/index.cjs +328 -233
- package/dist/hooks/index.js +93 -2
- package/dist/lib/index.cjs +92 -0
- package/dist/lib/index.d.cts +58 -1
- package/dist/lib/index.d.ts +58 -1
- package/dist/lib/index.js +62 -1
- package/dist/locales/index.cjs +3 -0
- package/dist/locales/index.js +3 -0
- package/dist/perf-DaVdsbU0.d.cts +21 -0
- package/dist/perf-DaVdsbU0.d.ts +21 -0
- package/dist/providers/index.cjs +461 -106
- package/dist/providers/index.d.cts +1 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +462 -107
- package/dist/runtime/index.cjs +387 -55
- package/dist/runtime/index.d.cts +15 -23
- package/dist/runtime/index.d.ts +15 -23
- package/dist/runtime/index.js +389 -56
- package/locales/ar.json +1 -0
- package/locales/en.json +1 -0
- package/locales/sl.json +1 -0
- package/package.json +5 -5
|
@@ -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 {
|
|
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 {
|
|
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 };
|