@almadar/ui 6.15.0 → 6.17.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,8 +5,8 @@ import * as _almadar_runtime from '@almadar/runtime';
5
5
  import { TraitState, EffectHandlers } from '@almadar/runtime';
6
6
  import { K as KeyCaptureTable } from '../useKeyboardRouter-CVn8lfiX.cjs';
7
7
  import { c as useUISlots } from '../UISlotContext-BlRDbHDy.cjs';
8
- import { a as EntityBindingSource, h as ServerBridgeTransport, A as AccessTokenProvider } from '../EntityBindingContext-EJoTtuTR.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-EJoTtuTR.cjs';
8
+ import { a as EntityBindingSource, h as ServerBridgeTransport, A as AccessTokenProvider } from '../EntityBindingContext-Dglbi9ks.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-Dglbi9ks.cjs';
10
10
  import '../verificationRegistry-DTrKDRoa.cjs';
11
11
  export { PERF_NAMESPACE, PerfEntry, PreparedPreviewSchema, adjustSchemaForMockData, buildMockData, clearPerf, perfEnd, perfStart, perfTime, prepareSchemaForPreview, wrapCallbackForEvent } from '@almadar/runtime/ui';
12
12
  import React__default, { ReactNode } from 'react';
@@ -52,7 +52,9 @@ interface UseTraitStateMachineOptions {
52
52
  * local state). `sourceTrait` is the emitting trait, for the
53
53
  * server relay's BusEventSource.
54
54
  */
55
- tick?: string, sourceTrait?: string) => void | Promise<void>;
55
+ tick?: string, sourceTrait?: string,
56
+ /** Every event name this dispatch's local effect execution emitted, one entry per emit (multiplicity matters — see `stampLocallyDeliveredEchoes`). */
57
+ locallyEmitted?: readonly string[]) => void | Promise<void>;
56
58
  /** Router navigate function for navigate effects. `crumb` labels the
57
59
  * target page's navigation-stack entry (from the effect's options). */
58
60
  navigate?: (path: string, params?: Record<string, string>, crumb?: string) => void;
@@ -220,6 +222,8 @@ interface CreateClientEffectHandlersOptions {
220
222
  * it (the hook always binds one for `(set @entity.X)`).
221
223
  */
222
224
  persistDelegated?: boolean;
225
+ /** Same bridge-mode delegation as `persistDelegated`, for `(call-service …)`: set when no consumer `callService` is wired, so the executor skips the mock fallback below and the server's cascade carries the result. */
226
+ callServiceDelegated?: boolean;
223
227
  /**
224
228
  * Optional consumer-supplied call-service handler. When set, it runs
225
229
  * instead of the default mock fallback — use to wire the playground
@@ -289,6 +293,12 @@ interface OrbPreviewProps {
289
293
  * Default false (standalone previews own the global bridge).
290
294
  */
291
295
  isolated?: boolean;
296
+ /**
297
+ * Scale the rendered content down (never up) so it fits the container
298
+ * without scrollbars. For fixed-intrinsic-size content (game canvases);
299
+ * leave off for flow layouts, which should keep their internal scroll.
300
+ */
301
+ fit?: boolean;
292
302
  }
293
303
  /**
294
304
  * Renders a live preview of an Orbital schema.
@@ -303,7 +313,7 @@ interface OrbPreviewProps {
303
313
  * <OrbPreview schema={schema} serverUrl="/api/orbitals" />
304
314
  * ```
305
315
  */
306
- declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, getAccessToken, initialPagePath, isolated, user, }: OrbPreviewProps): React__default.ReactElement;
316
+ declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, getAccessToken, initialPagePath, isolated, fit, user, }: OrbPreviewProps): React__default.ReactElement;
307
317
  declare namespace OrbPreview {
308
318
  var displayName: string;
309
319
  }
@@ -340,8 +350,10 @@ interface BrowserPlaygroundProps {
340
350
  className?: string;
341
351
  /** Pause the in-process runtime's tick scheduler. Default: undefined (running, same as today). */
342
352
  paused?: boolean;
353
+ /** Scale content down (never up) to fit the container without scrollbars — for fixed-size content like game canvases. Forwarded to OrbPreview. */
354
+ fit?: boolean;
343
355
  }
344
- declare function BrowserPlayground({ schema, mode, initialPagePath, height, className, paused, }: BrowserPlaygroundProps): React__default.ReactElement;
356
+ declare function BrowserPlayground({ schema, mode, initialPagePath, height, className, paused, fit, }: BrowserPlaygroundProps): React__default.ReactElement;
345
357
 
346
358
  /**
347
359
  * OrbitalPluginHost — runs an ordinary behavior headless against the
@@ -5,8 +5,8 @@ import * as _almadar_runtime from '@almadar/runtime';
5
5
  import { TraitState, EffectHandlers } from '@almadar/runtime';
6
6
  import { K as KeyCaptureTable } from '../useKeyboardRouter-B1pIi9jo.js';
7
7
  import { c as useUISlots } from '../UISlotContext-CB89mv7N.js';
8
- import { a as EntityBindingSource, h as ServerBridgeTransport, A as AccessTokenProvider } from '../EntityBindingContext-EJoTtuTR.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-EJoTtuTR.js';
8
+ import { a as EntityBindingSource, h as ServerBridgeTransport, A as AccessTokenProvider } from '../EntityBindingContext-Dglbi9ks.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-Dglbi9ks.js';
10
10
  import '../verificationRegistry-Cwa52VyK.js';
11
11
  export { PERF_NAMESPACE, PerfEntry, PreparedPreviewSchema, adjustSchemaForMockData, buildMockData, clearPerf, perfEnd, perfStart, perfTime, prepareSchemaForPreview, wrapCallbackForEvent } from '@almadar/runtime/ui';
12
12
  import React__default, { ReactNode } from 'react';
@@ -52,7 +52,9 @@ interface UseTraitStateMachineOptions {
52
52
  * local state). `sourceTrait` is the emitting trait, for the
53
53
  * server relay's BusEventSource.
54
54
  */
55
- tick?: string, sourceTrait?: string) => void | Promise<void>;
55
+ tick?: string, sourceTrait?: string,
56
+ /** Every event name this dispatch's local effect execution emitted, one entry per emit (multiplicity matters — see `stampLocallyDeliveredEchoes`). */
57
+ locallyEmitted?: readonly string[]) => void | Promise<void>;
56
58
  /** Router navigate function for navigate effects. `crumb` labels the
57
59
  * target page's navigation-stack entry (from the effect's options). */
58
60
  navigate?: (path: string, params?: Record<string, string>, crumb?: string) => void;
@@ -220,6 +222,8 @@ interface CreateClientEffectHandlersOptions {
220
222
  * it (the hook always binds one for `(set @entity.X)`).
221
223
  */
222
224
  persistDelegated?: boolean;
225
+ /** Same bridge-mode delegation as `persistDelegated`, for `(call-service …)`: set when no consumer `callService` is wired, so the executor skips the mock fallback below and the server's cascade carries the result. */
226
+ callServiceDelegated?: boolean;
223
227
  /**
224
228
  * Optional consumer-supplied call-service handler. When set, it runs
225
229
  * instead of the default mock fallback — use to wire the playground
@@ -289,6 +293,12 @@ interface OrbPreviewProps {
289
293
  * Default false (standalone previews own the global bridge).
290
294
  */
291
295
  isolated?: boolean;
296
+ /**
297
+ * Scale the rendered content down (never up) so it fits the container
298
+ * without scrollbars. For fixed-intrinsic-size content (game canvases);
299
+ * leave off for flow layouts, which should keep their internal scroll.
300
+ */
301
+ fit?: boolean;
292
302
  }
293
303
  /**
294
304
  * Renders a live preview of an Orbital schema.
@@ -303,7 +313,7 @@ interface OrbPreviewProps {
303
313
  * <OrbPreview schema={schema} serverUrl="/api/orbitals" />
304
314
  * ```
305
315
  */
306
- declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, getAccessToken, initialPagePath, isolated, user, }: OrbPreviewProps): React__default.ReactElement;
316
+ declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, getAccessToken, initialPagePath, isolated, fit, user, }: OrbPreviewProps): React__default.ReactElement;
307
317
  declare namespace OrbPreview {
308
318
  var displayName: string;
309
319
  }
@@ -340,8 +350,10 @@ interface BrowserPlaygroundProps {
340
350
  className?: string;
341
351
  /** Pause the in-process runtime's tick scheduler. Default: undefined (running, same as today). */
342
352
  paused?: boolean;
353
+ /** Scale content down (never up) to fit the container without scrollbars — for fixed-size content like game canvases. Forwarded to OrbPreview. */
354
+ fit?: boolean;
343
355
  }
344
- declare function BrowserPlayground({ schema, mode, initialPagePath, height, className, paused, }: BrowserPlaygroundProps): React__default.ReactElement;
356
+ declare function BrowserPlayground({ schema, mode, initialPagePath, height, className, paused, fit, }: BrowserPlaygroundProps): React__default.ReactElement;
345
357
 
346
358
  /**
347
359
  * OrbitalPluginHost — runs an ordinary behavior headless against the