@almadar/ui 6.12.0 → 6.14.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/{UserContext-g_LcDiGN.d.cts → CurrentPagePathContext-J1lqjvAq.d.cts} +2 -97
- package/dist/{UserContext-g_LcDiGN.d.ts → CurrentPagePathContext-J1lqjvAq.d.ts} +2 -97
- package/dist/{EntityBindingContext-D5lRu6p1.d.cts → EntityBindingContext-BMz9xiBa.d.cts} +2 -3
- package/dist/{EntityBindingContext-D5lRu6p1.d.ts → EntityBindingContext-BMz9xiBa.d.ts} +2 -3
- package/dist/{GameAudioProvider-D8GynTNq.d.cts → GameAudioProvider-Cpw_lMPY.d.cts} +1 -1
- package/dist/{GameAudioProvider-Dozqx4sL.d.ts → GameAudioProvider-DIjFiy70.d.ts} +1 -1
- package/dist/UserContext-D566nfWA.d.cts +99 -0
- package/dist/UserContext-D566nfWA.d.ts +99 -0
- package/dist/avl/index.cjs +571 -70
- package/dist/avl/index.d.cts +1 -1
- package/dist/avl/index.d.ts +1 -1
- package/dist/avl/index.js +573 -72
- package/dist/{avl-schema-parser-PVu8rgsy.d.cts → avl-schema-parser-B25PL-a8.d.cts} +1 -1
- package/dist/{avl-schema-parser-DX-aVCCm.d.ts → avl-schema-parser-CM0pQo8E.d.ts} +1 -1
- package/dist/components/index.cjs +564 -117
- package/dist/components/index.d.cts +8 -24
- package/dist/components/index.d.ts +8 -24
- package/dist/components/index.js +566 -118
- package/dist/context/index.d.cts +2 -1
- package/dist/context/index.d.ts +2 -1
- package/dist/lib/drawable/three/index.cjs +126 -3
- package/dist/lib/drawable/three/index.d.cts +3 -3
- package/dist/lib/drawable/three/index.d.ts +3 -3
- package/dist/lib/drawable/three/index.js +126 -3
- package/dist/lib/index.cjs +1 -4
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +1 -4
- package/dist/{offline-executor-QUdKOj7f.d.cts → offline-executor-DdV2o0Zu.d.cts} +4 -19
- package/dist/{offline-executor-QUdKOj7f.d.ts → offline-executor-DdV2o0Zu.d.ts} +4 -19
- package/dist/{paintDispatch-CK5uwYEq.d.cts → paintDispatch-Dh1pgljl.d.cts} +79 -1
- package/dist/{paintDispatch-CK5uwYEq.d.ts → paintDispatch-Dh1pgljl.d.ts} +79 -1
- package/dist/providers/index.cjs +558 -62
- package/dist/providers/index.d.cts +10 -9
- package/dist/providers/index.d.ts +10 -9
- package/dist/providers/index.js +559 -63
- package/dist/renderer/index.cjs +0 -15
- package/dist/renderer/index.d.cts +4 -9
- package/dist/renderer/index.d.ts +4 -9
- package/dist/renderer/index.js +1 -15
- package/dist/runtime/index.cjs +573 -81
- package/dist/runtime/index.d.cts +14 -11
- package/dist/runtime/index.d.ts +14 -11
- package/dist/runtime/index.js +575 -83
- package/dist/{verificationRegistry-D8bHWD8Q.d.ts → verificationRegistry-Cwa52VyK.d.ts} +1 -1
- package/dist/{verificationRegistry-BLsjb1oU.d.cts → verificationRegistry-DTrKDRoa.d.cts} +1 -1
- package/package.json +4 -4
package/dist/runtime/index.d.cts
CHANGED
|
@@ -5,17 +5,18 @@ 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-
|
|
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-
|
|
10
|
-
import '../verificationRegistry-
|
|
8
|
+
import { a as EntityBindingSource, h as ServerBridgeTransport, A as AccessTokenProvider } from '../EntityBindingContext-BMz9xiBa.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-BMz9xiBa.cjs';
|
|
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';
|
|
13
|
+
import { b as UserData } from '../UserContext-D566nfWA.cjs';
|
|
13
14
|
export { S as SlotHostManifest, a as SlotHostRegion, b as assertUniqueSlotsPerHost } from '../slot-host-Czc2JAxo.cjs';
|
|
14
15
|
export { p as profilerOnRender, u as usePerfBuffer } from '../perf-DaVdsbU0.cjs';
|
|
15
16
|
import '../event-bus-types-Bl78kokd.cjs';
|
|
16
17
|
import '../useUISlots-GNwGLlW2.cjs';
|
|
17
18
|
import '@almadar/core/patterns';
|
|
18
|
-
import '../paintDispatch-
|
|
19
|
+
import '../paintDispatch-Dh1pgljl.cjs';
|
|
19
20
|
|
|
20
21
|
interface TraitStateMachineResult {
|
|
21
22
|
/** Current state for each trait */
|
|
@@ -59,8 +60,6 @@ interface UseTraitStateMachineOptions {
|
|
|
59
60
|
navigateBack?: () => void;
|
|
60
61
|
/** Payload merged into the mount-time lifecycle INIT (route params from a parameterized page path). */
|
|
61
62
|
initPayload?: EventPayload;
|
|
62
|
-
/** Notification function for notify effects */
|
|
63
|
-
notify?: (message: string, type?: 'success' | 'error' | 'warning' | 'info') => void;
|
|
64
63
|
/**
|
|
65
64
|
* Offline-preview persistence layer. When set, the client runtime merges
|
|
66
65
|
* `@almadar/runtime` `createServerEffectHandlers` on top of the default
|
|
@@ -199,7 +198,6 @@ interface CreateClientEffectHandlersOptions {
|
|
|
199
198
|
navigate?: (path: string, params?: Record<string, string>, crumb?: string) => void;
|
|
200
199
|
/** Pop the orbital-scoped navigation stack (navigate-back effect). */
|
|
201
200
|
navigateBack?: () => void;
|
|
202
|
-
notify?: (message: string, type: 'success' | 'error' | 'warning' | 'info') => void;
|
|
203
201
|
/**
|
|
204
202
|
* Live client-entity write target for `[runtime]` entities. `(set
|
|
205
203
|
* @entity.<field> value)` runs entirely in the browser for in-memory
|
|
@@ -278,6 +276,12 @@ interface OrbPreviewProps {
|
|
|
278
276
|
* to walk DealCreate, NoteCompose, etc. on their owning pages.
|
|
279
277
|
*/
|
|
280
278
|
initialPagePath?: string;
|
|
279
|
+
/**
|
|
280
|
+
* The signed-in viewer — forwarded to `OrbitalProvider`'s `UserProvider` so
|
|
281
|
+
* `@user.x` resolves in client-side guard and effect evaluation exactly as
|
|
282
|
+
* it does on the server. Omitted → anonymous.
|
|
283
|
+
*/
|
|
284
|
+
user?: UserData | null;
|
|
281
285
|
/**
|
|
282
286
|
* Sandbox mode: the preview's event bus stays context-local and does NOT
|
|
283
287
|
* register as the global bus. Set when embedded inside a host app (e.g. the
|
|
@@ -299,7 +303,7 @@ interface OrbPreviewProps {
|
|
|
299
303
|
* <OrbPreview schema={schema} serverUrl="/api/orbitals" />
|
|
300
304
|
* ```
|
|
301
305
|
*/
|
|
302
|
-
declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, getAccessToken, initialPagePath, isolated, }: OrbPreviewProps): React__default.ReactElement;
|
|
306
|
+
declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, getAccessToken, initialPagePath, isolated, user, }: OrbPreviewProps): React__default.ReactElement;
|
|
303
307
|
declare namespace OrbPreview {
|
|
304
308
|
var displayName: string;
|
|
305
309
|
}
|
|
@@ -384,7 +388,7 @@ declare function BrowserPlayground({ schema, mode, initialPagePath, height, clas
|
|
|
384
388
|
|
|
385
389
|
/** Verbs a host may deny. Never includes `emit` — the runtime's own emit
|
|
386
390
|
* handler drives the internal `listens` cascade and must never be replaced. */
|
|
387
|
-
type PluginHostDenyVerb = 'persist' | 'call-service' | 'navigate'
|
|
391
|
+
type PluginHostDenyVerb = 'persist' | 'call-service' | 'navigate';
|
|
388
392
|
/** One bus-event → orbital-event wiring: `UI:<busEvent>` dispatches `trigger` at `orbital`/`trait`. */
|
|
389
393
|
interface PluginHostInbound {
|
|
390
394
|
busEvent: string;
|
|
@@ -407,7 +411,6 @@ interface OrbitalPluginHostProps {
|
|
|
407
411
|
/** OPTIONAL policy: verbs listed here are denied with a logged warning, never a throw. Default: none denied. */
|
|
408
412
|
deny?: PluginHostDenyVerb[];
|
|
409
413
|
navigate?: (path: string) => void;
|
|
410
|
-
notify?: (message: string, type?: string) => void;
|
|
411
414
|
onTransition?: (pluginId: string, orbital: string, trait: string, state: string) => void;
|
|
412
415
|
children?: ReactNode;
|
|
413
416
|
}
|
|
@@ -440,6 +443,6 @@ declare function useOrbitalPluginHost(): {
|
|
|
440
443
|
* `children` passthrough — MUST be mounted inside `EventBusProvider` +
|
|
441
444
|
* `UISlotProvider`.
|
|
442
445
|
*/
|
|
443
|
-
declare function OrbitalPluginHost({ plugins, mode, transport, deny, navigate,
|
|
446
|
+
declare function OrbitalPluginHost({ plugins, mode, transport, deny, navigate, onTransition, children, }: OrbitalPluginHostProps): React__default.ReactElement;
|
|
444
447
|
|
|
445
448
|
export { AccessTokenProvider, BrowserPlayground, type BrowserPlaygroundProps, type ClientEventBus, type CreateClientEffectHandlersOptions, OrbPreview, type OrbPreviewProps, OrbitalPluginHost, type OrbitalPluginHostProps, type PluginHostDenyVerb, type PluginHostInbound, type PluginHostPlugin, type ResolvedSchemaResult, ServerBridgeTransport, type SlotPatternEntry, type SlotSetter, type SlotSource, type TraitStateMachineResult, type UseTraitStateMachineOptions, clearSchemaCache, createClientEffectHandlers, useDeclaredCaptureTable, useOrbitalPluginHost, useResolvedSchema, useTraitStateMachine };
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -5,17 +5,18 @@ 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-
|
|
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-
|
|
10
|
-
import '../verificationRegistry-
|
|
8
|
+
import { a as EntityBindingSource, h as ServerBridgeTransport, A as AccessTokenProvider } from '../EntityBindingContext-BMz9xiBa.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-BMz9xiBa.js';
|
|
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';
|
|
13
|
+
import { b as UserData } from '../UserContext-D566nfWA.js';
|
|
13
14
|
export { S as SlotHostManifest, a as SlotHostRegion, b as assertUniqueSlotsPerHost } from '../slot-host-Czc2JAxo.js';
|
|
14
15
|
export { p as profilerOnRender, u as usePerfBuffer } from '../perf-DaVdsbU0.js';
|
|
15
16
|
import '../event-bus-types-Bl78kokd.js';
|
|
16
17
|
import '../useUISlots-GNwGLlW2.js';
|
|
17
18
|
import '@almadar/core/patterns';
|
|
18
|
-
import '../paintDispatch-
|
|
19
|
+
import '../paintDispatch-Dh1pgljl.js';
|
|
19
20
|
|
|
20
21
|
interface TraitStateMachineResult {
|
|
21
22
|
/** Current state for each trait */
|
|
@@ -59,8 +60,6 @@ interface UseTraitStateMachineOptions {
|
|
|
59
60
|
navigateBack?: () => void;
|
|
60
61
|
/** Payload merged into the mount-time lifecycle INIT (route params from a parameterized page path). */
|
|
61
62
|
initPayload?: EventPayload;
|
|
62
|
-
/** Notification function for notify effects */
|
|
63
|
-
notify?: (message: string, type?: 'success' | 'error' | 'warning' | 'info') => void;
|
|
64
63
|
/**
|
|
65
64
|
* Offline-preview persistence layer. When set, the client runtime merges
|
|
66
65
|
* `@almadar/runtime` `createServerEffectHandlers` on top of the default
|
|
@@ -199,7 +198,6 @@ interface CreateClientEffectHandlersOptions {
|
|
|
199
198
|
navigate?: (path: string, params?: Record<string, string>, crumb?: string) => void;
|
|
200
199
|
/** Pop the orbital-scoped navigation stack (navigate-back effect). */
|
|
201
200
|
navigateBack?: () => void;
|
|
202
|
-
notify?: (message: string, type: 'success' | 'error' | 'warning' | 'info') => void;
|
|
203
201
|
/**
|
|
204
202
|
* Live client-entity write target for `[runtime]` entities. `(set
|
|
205
203
|
* @entity.<field> value)` runs entirely in the browser for in-memory
|
|
@@ -278,6 +276,12 @@ interface OrbPreviewProps {
|
|
|
278
276
|
* to walk DealCreate, NoteCompose, etc. on their owning pages.
|
|
279
277
|
*/
|
|
280
278
|
initialPagePath?: string;
|
|
279
|
+
/**
|
|
280
|
+
* The signed-in viewer — forwarded to `OrbitalProvider`'s `UserProvider` so
|
|
281
|
+
* `@user.x` resolves in client-side guard and effect evaluation exactly as
|
|
282
|
+
* it does on the server. Omitted → anonymous.
|
|
283
|
+
*/
|
|
284
|
+
user?: UserData | null;
|
|
281
285
|
/**
|
|
282
286
|
* Sandbox mode: the preview's event bus stays context-local and does NOT
|
|
283
287
|
* register as the global bus. Set when embedded inside a host app (e.g. the
|
|
@@ -299,7 +303,7 @@ interface OrbPreviewProps {
|
|
|
299
303
|
* <OrbPreview schema={schema} serverUrl="/api/orbitals" />
|
|
300
304
|
* ```
|
|
301
305
|
*/
|
|
302
|
-
declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, getAccessToken, initialPagePath, isolated, }: OrbPreviewProps): React__default.ReactElement;
|
|
306
|
+
declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, getAccessToken, initialPagePath, isolated, user, }: OrbPreviewProps): React__default.ReactElement;
|
|
303
307
|
declare namespace OrbPreview {
|
|
304
308
|
var displayName: string;
|
|
305
309
|
}
|
|
@@ -384,7 +388,7 @@ declare function BrowserPlayground({ schema, mode, initialPagePath, height, clas
|
|
|
384
388
|
|
|
385
389
|
/** Verbs a host may deny. Never includes `emit` — the runtime's own emit
|
|
386
390
|
* handler drives the internal `listens` cascade and must never be replaced. */
|
|
387
|
-
type PluginHostDenyVerb = 'persist' | 'call-service' | 'navigate'
|
|
391
|
+
type PluginHostDenyVerb = 'persist' | 'call-service' | 'navigate';
|
|
388
392
|
/** One bus-event → orbital-event wiring: `UI:<busEvent>` dispatches `trigger` at `orbital`/`trait`. */
|
|
389
393
|
interface PluginHostInbound {
|
|
390
394
|
busEvent: string;
|
|
@@ -407,7 +411,6 @@ interface OrbitalPluginHostProps {
|
|
|
407
411
|
/** OPTIONAL policy: verbs listed here are denied with a logged warning, never a throw. Default: none denied. */
|
|
408
412
|
deny?: PluginHostDenyVerb[];
|
|
409
413
|
navigate?: (path: string) => void;
|
|
410
|
-
notify?: (message: string, type?: string) => void;
|
|
411
414
|
onTransition?: (pluginId: string, orbital: string, trait: string, state: string) => void;
|
|
412
415
|
children?: ReactNode;
|
|
413
416
|
}
|
|
@@ -440,6 +443,6 @@ declare function useOrbitalPluginHost(): {
|
|
|
440
443
|
* `children` passthrough — MUST be mounted inside `EventBusProvider` +
|
|
441
444
|
* `UISlotProvider`.
|
|
442
445
|
*/
|
|
443
|
-
declare function OrbitalPluginHost({ plugins, mode, transport, deny, navigate,
|
|
446
|
+
declare function OrbitalPluginHost({ plugins, mode, transport, deny, navigate, onTransition, children, }: OrbitalPluginHostProps): React__default.ReactElement;
|
|
444
447
|
|
|
445
448
|
export { AccessTokenProvider, BrowserPlayground, type BrowserPlaygroundProps, type ClientEventBus, type CreateClientEffectHandlersOptions, OrbPreview, type OrbPreviewProps, OrbitalPluginHost, type OrbitalPluginHostProps, type PluginHostDenyVerb, type PluginHostInbound, type PluginHostPlugin, type ResolvedSchemaResult, ServerBridgeTransport, type SlotPatternEntry, type SlotSetter, type SlotSource, type TraitStateMachineResult, type UseTraitStateMachineOptions, clearSchemaCache, createClientEffectHandlers, useDeclaredCaptureTable, useOrbitalPluginHost, useResolvedSchema, useTraitStateMachine };
|