@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
package/dist/runtime/index.d.cts
CHANGED
|
@@ -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 {
|
|
9
|
-
export {
|
|
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
|
|
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
|
|
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 };
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -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 {
|
|
9
|
-
export {
|
|
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
|
|
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
|
|
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 };
|