@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.
@@ -5,11 +5,11 @@ import * as _almadar_runtime from '@almadar/runtime';
5
5
  import { TraitState, EffectHandlers } from '@almadar/runtime';
6
6
  import '../useEventBus-Ckr4wqW3.cjs';
7
7
  import { c as useUISlots } from '../UISlotContext-BlRDbHDy.cjs';
8
- import { a as EntityBindingSource, h as ServerBridgeTransport } from '../EntityBindingContext-BfZGeDfX.cjs';
9
- export { b as EntitySchemaContextValue, c as EntitySchemaProvider, d as EntitySchemaProviderProps, e as ServerBridgeContextValue, f as ServerBridgeProvider, i as ServerClientEffect, T as TraitContext, k as TraitContextValue, l as TraitInstance, m as TraitProvider, n as TraitProviderProps, o as useEntitySchema, p as useEntitySchemaOptional, q as useServerBridge, r as useTrait, s as useTraitContext } from '../EntityBindingContext-BfZGeDfX.cjs';
10
- import { PerfEntry } from '@almadar/runtime/ui';
8
+ import { E as EntityBindingSource, S as ServerBridgeTransport } from '../EntityBindingContext-0Evn_LcT.cjs';
9
+ export { a as EntitySchemaContextValue, b as EntitySchemaProvider, c as EntitySchemaProviderProps, d as ServerBridgeContextValue, e as ServerBridgeProvider, f as ServerClientEffect, T as TraitContext, g as TraitContextValue, h as TraitInstance, i as TraitProvider, j as TraitProviderProps, u as useEntitySchema, k as useEntitySchemaOptional, l as useServerBridge, m as useTrait, n as useTraitContext } from '../EntityBindingContext-0Evn_LcT.cjs';
11
10
  export { PERF_NAMESPACE, PerfEntry, PreparedPreviewSchema, adjustSchemaForMockData, buildMockData, clearPerf, perfEnd, perfStart, perfTime, prepareSchemaForPreview, wrapCallbackForEvent } from '@almadar/runtime/ui';
12
- import React__default, { ProfilerOnRenderCallback } from 'react';
11
+ import React__default from 'react';
12
+ export { p as profilerOnRender, u as usePerfBuffer } from '../perf-DaVdsbU0.cjs';
13
13
  import '../event-bus-types-Bl78kokd.cjs';
14
14
  import '../useUISlots-GNwGLlW2.cjs';
15
15
  import '@almadar/core/patterns';
@@ -39,7 +39,16 @@ interface UseTraitStateMachineOptions {
39
39
  * set means no local transition matched — leave the legacy fallback to
40
40
  * the consumer.
41
41
  */
42
- onEventProcessed?: (eventKey: string, payload?: EventPayload, dispatchedOrbitals?: Set<string>) => void | Promise<void>;
42
+ onEventProcessed?: (eventKey: string, payload?: EventPayload, dispatchedOrbitals?: Set<string>,
43
+ /**
44
+ * Broadcast-class marker (T6): when set, the entry is a tick's
45
+ * latest-state broadcast — the drain does NOT await the server
46
+ * fan-out, and the bridge discards the response (nobody reads a
47
+ * broadcast response; applying a stale one would clobber newer
48
+ * local state). `sourceTrait` is the emitting trait, for the
49
+ * server relay's BusEventSource.
50
+ */
51
+ tick?: string, sourceTrait?: string) => void | Promise<void>;
43
52
  /** Router navigate function for navigate effects. `crumb` labels the
44
53
  * target page's navigation-stack entry (from the effect's options). */
45
54
  navigate?: (path: string, params?: Record<string, string>, crumb?: string) => void;
@@ -303,21 +312,4 @@ interface BrowserPlaygroundProps {
303
312
  }
304
313
  declare function BrowserPlayground({ schema, mode, initialPagePath, height, className, }: BrowserPlaygroundProps): React__default.ReactElement;
305
314
 
306
- /**
307
- * @almadar/ui/runtime — perf instrumentation
308
- *
309
- * React-specific consumption layer on top of the renderer-agnostic perf ring
310
- * now living in `@almadar/runtime/ui/perf`. Re-exports the framework-free
311
- * timing primitives and adds `useSyncExternalStore` / `React.Profiler` hooks.
312
- */
313
-
314
- /**
315
- * React hook: returns the current perf ring snapshot, re-renders on push.
316
- */
317
- declare function usePerfBuffer(): readonly PerfEntry[];
318
- /**
319
- * React.Profiler `onRender` callback. Records `actualDuration` per commit.
320
- */
321
- declare const profilerOnRender: ProfilerOnRenderCallback;
322
-
323
- export { BrowserPlayground, type BrowserPlaygroundProps, type ClientEventBus, type CreateClientEffectHandlersOptions, OrbPreview, type OrbPreviewProps, type ResolvedSchemaResult, ServerBridgeTransport, type SlotPatternEntry, type SlotSetter, type SlotSource, type TraitStateMachineResult, type UseTraitStateMachineOptions, clearSchemaCache, createClientEffectHandlers, profilerOnRender, usePerfBuffer, useResolvedSchema, useTraitStateMachine };
315
+ export { BrowserPlayground, type BrowserPlaygroundProps, type ClientEventBus, type CreateClientEffectHandlersOptions, OrbPreview, type OrbPreviewProps, type ResolvedSchemaResult, ServerBridgeTransport, type SlotPatternEntry, type SlotSetter, type SlotSource, type TraitStateMachineResult, type UseTraitStateMachineOptions, clearSchemaCache, createClientEffectHandlers, useResolvedSchema, useTraitStateMachine };
@@ -5,11 +5,11 @@ import * as _almadar_runtime from '@almadar/runtime';
5
5
  import { TraitState, EffectHandlers } from '@almadar/runtime';
6
6
  import '../useEventBus-CQWyAWpK.js';
7
7
  import { c as useUISlots } from '../UISlotContext-CB89mv7N.js';
8
- import { a as EntityBindingSource, h as ServerBridgeTransport } from '../EntityBindingContext-BfZGeDfX.js';
9
- export { b as EntitySchemaContextValue, c as EntitySchemaProvider, d as EntitySchemaProviderProps, e as ServerBridgeContextValue, f as ServerBridgeProvider, i as ServerClientEffect, T as TraitContext, k as TraitContextValue, l as TraitInstance, m as TraitProvider, n as TraitProviderProps, o as useEntitySchema, p as useEntitySchemaOptional, q as useServerBridge, r as useTrait, s as useTraitContext } from '../EntityBindingContext-BfZGeDfX.js';
10
- import { PerfEntry } from '@almadar/runtime/ui';
8
+ import { E as EntityBindingSource, S as ServerBridgeTransport } from '../EntityBindingContext-0Evn_LcT.js';
9
+ export { a as EntitySchemaContextValue, b as EntitySchemaProvider, c as EntitySchemaProviderProps, d as ServerBridgeContextValue, e as ServerBridgeProvider, f as ServerClientEffect, T as TraitContext, g as TraitContextValue, h as TraitInstance, i as TraitProvider, j as TraitProviderProps, u as useEntitySchema, k as useEntitySchemaOptional, l as useServerBridge, m as useTrait, n as useTraitContext } from '../EntityBindingContext-0Evn_LcT.js';
11
10
  export { PERF_NAMESPACE, PerfEntry, PreparedPreviewSchema, adjustSchemaForMockData, buildMockData, clearPerf, perfEnd, perfStart, perfTime, prepareSchemaForPreview, wrapCallbackForEvent } from '@almadar/runtime/ui';
12
- import React__default, { ProfilerOnRenderCallback } from 'react';
11
+ import React__default from 'react';
12
+ export { p as profilerOnRender, u as usePerfBuffer } from '../perf-DaVdsbU0.js';
13
13
  import '../event-bus-types-Bl78kokd.js';
14
14
  import '../useUISlots-GNwGLlW2.js';
15
15
  import '@almadar/core/patterns';
@@ -39,7 +39,16 @@ interface UseTraitStateMachineOptions {
39
39
  * set means no local transition matched — leave the legacy fallback to
40
40
  * the consumer.
41
41
  */
42
- onEventProcessed?: (eventKey: string, payload?: EventPayload, dispatchedOrbitals?: Set<string>) => void | Promise<void>;
42
+ onEventProcessed?: (eventKey: string, payload?: EventPayload, dispatchedOrbitals?: Set<string>,
43
+ /**
44
+ * Broadcast-class marker (T6): when set, the entry is a tick's
45
+ * latest-state broadcast — the drain does NOT await the server
46
+ * fan-out, and the bridge discards the response (nobody reads a
47
+ * broadcast response; applying a stale one would clobber newer
48
+ * local state). `sourceTrait` is the emitting trait, for the
49
+ * server relay's BusEventSource.
50
+ */
51
+ tick?: string, sourceTrait?: string) => void | Promise<void>;
43
52
  /** Router navigate function for navigate effects. `crumb` labels the
44
53
  * target page's navigation-stack entry (from the effect's options). */
45
54
  navigate?: (path: string, params?: Record<string, string>, crumb?: string) => void;
@@ -303,21 +312,4 @@ interface BrowserPlaygroundProps {
303
312
  }
304
313
  declare function BrowserPlayground({ schema, mode, initialPagePath, height, className, }: BrowserPlaygroundProps): React__default.ReactElement;
305
314
 
306
- /**
307
- * @almadar/ui/runtime — perf instrumentation
308
- *
309
- * React-specific consumption layer on top of the renderer-agnostic perf ring
310
- * now living in `@almadar/runtime/ui/perf`. Re-exports the framework-free
311
- * timing primitives and adds `useSyncExternalStore` / `React.Profiler` hooks.
312
- */
313
-
314
- /**
315
- * React hook: returns the current perf ring snapshot, re-renders on push.
316
- */
317
- declare function usePerfBuffer(): readonly PerfEntry[];
318
- /**
319
- * React.Profiler `onRender` callback. Records `actualDuration` per commit.
320
- */
321
- declare const profilerOnRender: ProfilerOnRenderCallback;
322
-
323
- export { BrowserPlayground, type BrowserPlaygroundProps, type ClientEventBus, type CreateClientEffectHandlersOptions, OrbPreview, type OrbPreviewProps, type ResolvedSchemaResult, ServerBridgeTransport, type SlotPatternEntry, type SlotSetter, type SlotSource, type TraitStateMachineResult, type UseTraitStateMachineOptions, clearSchemaCache, createClientEffectHandlers, profilerOnRender, usePerfBuffer, useResolvedSchema, useTraitStateMachine };
315
+ export { BrowserPlayground, type BrowserPlaygroundProps, type ClientEventBus, type CreateClientEffectHandlersOptions, OrbPreview, type OrbPreviewProps, type ResolvedSchemaResult, ServerBridgeTransport, type SlotPatternEntry, type SlotSetter, type SlotSource, type TraitStateMachineResult, type UseTraitStateMachineOptions, clearSchemaCache, createClientEffectHandlers, useResolvedSchema, useTraitStateMachine };