@almadar/ui 6.8.0 → 6.10.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-Bn3ePJQC.d.cts → EntityBindingContext-Y4zXyNJZ.d.cts} +14 -2
- package/dist/{EntityBindingContext-Bn3ePJQC.d.ts → EntityBindingContext-Y4zXyNJZ.d.ts} +14 -2
- package/dist/avl/index.cjs +531 -48
- package/dist/avl/index.js +531 -48
- package/dist/{cn-sgpqpN0U.d.ts → cn-C7fvp9gH.d.ts} +37 -10
- package/dist/{cn-CCjFspAo.d.cts → cn-DnLYahyL.d.cts} +37 -10
- package/dist/components/index.cjs +557 -47
- package/dist/components/index.d.cts +6 -4
- package/dist/components/index.d.ts +6 -4
- package/dist/components/index.js +556 -48
- package/dist/hooks/index.cjs +30 -1
- package/dist/hooks/index.d.cts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +29 -2
- package/dist/lib/drawable/three/index.cjs +21 -2
- package/dist/lib/drawable/three/index.js +21 -2
- package/dist/lib/index.cjs +238 -9
- package/dist/lib/index.d.cts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +234 -10
- package/dist/marketing/index.cjs +12 -3
- package/dist/marketing/index.js +12 -3
- package/dist/providers/index.cjs +556 -56
- package/dist/providers/index.d.cts +1 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +556 -56
- package/dist/runtime/index.cjs +545 -52
- package/dist/runtime/index.d.cts +13 -6
- package/dist/runtime/index.d.ts +13 -6
- package/dist/runtime/index.js +545 -52
- package/dist/{useKeyboardRouter-D84cNWmA.d.ts → useKeyboardRouter-B1pIi9jo.d.ts} +11 -1
- package/dist/{useKeyboardRouter-DQEE_9mq.d.cts → useKeyboardRouter-CVn8lfiX.d.cts} +11 -1
- package/package.json +3 -3
package/dist/runtime/index.d.cts
CHANGED
|
@@ -3,10 +3,10 @@ import { EventPayload, ServiceParams, ResolvedTraitBinding, ResolvedPage, Resolv
|
|
|
3
3
|
export { ResolvedEntity, ResolvedIR, ResolvedPage, ResolvedTrait, ResolvedTraitBinding } from '@almadar/core';
|
|
4
4
|
import * as _almadar_runtime from '@almadar/runtime';
|
|
5
5
|
import { TraitState, EffectHandlers } from '@almadar/runtime';
|
|
6
|
-
import { K as KeyCaptureTable } from '../useKeyboardRouter-
|
|
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 } 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-
|
|
8
|
+
import { a as EntityBindingSource, h as ServerBridgeTransport, A as AccessTokenProvider } from '../EntityBindingContext-Y4zXyNJZ.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-Y4zXyNJZ.cjs';
|
|
10
10
|
export { PERF_NAMESPACE, PerfEntry, PreparedPreviewSchema, adjustSchemaForMockData, buildMockData, clearPerf, perfEnd, perfStart, perfTime, prepareSchemaForPreview, wrapCallbackForEvent } from '@almadar/runtime/ui';
|
|
11
11
|
import React__default, { ReactNode } from 'react';
|
|
12
12
|
export { S as SlotHostManifest, a as SlotHostRegion, b as assertUniqueSlotsPerHost } from '../slot-host-Czc2JAxo.cjs';
|
|
@@ -246,6 +246,8 @@ interface OrbPreviewProps {
|
|
|
246
246
|
* `OrbitalServerRuntime.processOrbitalEvent` directly without HTTP.
|
|
247
247
|
*/
|
|
248
248
|
transport?: ServerBridgeTransport;
|
|
249
|
+
/** Bearer token for `serverUrl` requests (see `ServerBridgeProviderProps.getAccessToken`). */
|
|
250
|
+
getAccessToken?: AccessTokenProvider;
|
|
249
251
|
/**
|
|
250
252
|
* Initial page path to render (e.g. `/deals`). Resolves against the
|
|
251
253
|
* schema's `pages[]` to seed `currentPage` so the right orbital's traits
|
|
@@ -275,7 +277,7 @@ interface OrbPreviewProps {
|
|
|
275
277
|
* <OrbPreview schema={schema} serverUrl="/api/orbitals" />
|
|
276
278
|
* ```
|
|
277
279
|
*/
|
|
278
|
-
declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, initialPagePath, isolated, }: OrbPreviewProps): React__default.ReactElement;
|
|
280
|
+
declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, getAccessToken, initialPagePath, isolated, }: OrbPreviewProps): React__default.ReactElement;
|
|
279
281
|
declare namespace OrbPreview {
|
|
280
282
|
var displayName: string;
|
|
281
283
|
}
|
|
@@ -392,13 +394,18 @@ interface OrbitalPluginHostProps {
|
|
|
392
394
|
* live `currentState`, so `useKeyboardRouter`'s capture table always follows
|
|
393
395
|
* the trait's actual mode. Re-derives whenever the host records a new
|
|
394
396
|
* transition (the context's `tick`).
|
|
397
|
+
*
|
|
398
|
+
* `target` accepts either one target string (default `'shell'`) or a list of
|
|
399
|
+
* targets — the SAME derived entry (mode + keys) is repeated under every
|
|
400
|
+
* target, for a caller keying its table by several editor ids at once (e.g.
|
|
401
|
+
* one plugin's mode capturing keys for both `'schema'` and `'file:a.md'`).
|
|
395
402
|
*/
|
|
396
403
|
declare function useDeclaredCaptureTable(opts: {
|
|
397
404
|
pluginId: string;
|
|
398
405
|
orbital: string;
|
|
399
406
|
trait: string;
|
|
400
407
|
keymapKnob?: string;
|
|
401
|
-
target?: string;
|
|
408
|
+
target?: string | readonly string[];
|
|
402
409
|
}): KeyCaptureTable;
|
|
403
410
|
declare function useOrbitalPluginHost(): {
|
|
404
411
|
getState: (pluginId: string, orbital: string, trait: string) => TraitState | undefined;
|
|
@@ -413,4 +420,4 @@ declare function useOrbitalPluginHost(): {
|
|
|
413
420
|
*/
|
|
414
421
|
declare function OrbitalPluginHost({ plugins, mode, transport, deny, navigate, notify, onTransition, children, }: OrbitalPluginHostProps): React__default.ReactElement;
|
|
415
422
|
|
|
416
|
-
export { 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 };
|
|
423
|
+
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
|
@@ -3,10 +3,10 @@ import { EventPayload, ServiceParams, ResolvedTraitBinding, ResolvedPage, Resolv
|
|
|
3
3
|
export { ResolvedEntity, ResolvedIR, ResolvedPage, ResolvedTrait, ResolvedTraitBinding } from '@almadar/core';
|
|
4
4
|
import * as _almadar_runtime from '@almadar/runtime';
|
|
5
5
|
import { TraitState, EffectHandlers } from '@almadar/runtime';
|
|
6
|
-
import { K as KeyCaptureTable } from '../useKeyboardRouter-
|
|
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 } 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-
|
|
8
|
+
import { a as EntityBindingSource, h as ServerBridgeTransport, A as AccessTokenProvider } from '../EntityBindingContext-Y4zXyNJZ.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-Y4zXyNJZ.js';
|
|
10
10
|
export { PERF_NAMESPACE, PerfEntry, PreparedPreviewSchema, adjustSchemaForMockData, buildMockData, clearPerf, perfEnd, perfStart, perfTime, prepareSchemaForPreview, wrapCallbackForEvent } from '@almadar/runtime/ui';
|
|
11
11
|
import React__default, { ReactNode } from 'react';
|
|
12
12
|
export { S as SlotHostManifest, a as SlotHostRegion, b as assertUniqueSlotsPerHost } from '../slot-host-Czc2JAxo.js';
|
|
@@ -246,6 +246,8 @@ interface OrbPreviewProps {
|
|
|
246
246
|
* `OrbitalServerRuntime.processOrbitalEvent` directly without HTTP.
|
|
247
247
|
*/
|
|
248
248
|
transport?: ServerBridgeTransport;
|
|
249
|
+
/** Bearer token for `serverUrl` requests (see `ServerBridgeProviderProps.getAccessToken`). */
|
|
250
|
+
getAccessToken?: AccessTokenProvider;
|
|
249
251
|
/**
|
|
250
252
|
* Initial page path to render (e.g. `/deals`). Resolves against the
|
|
251
253
|
* schema's `pages[]` to seed `currentPage` so the right orbital's traits
|
|
@@ -275,7 +277,7 @@ interface OrbPreviewProps {
|
|
|
275
277
|
* <OrbPreview schema={schema} serverUrl="/api/orbitals" />
|
|
276
278
|
* ```
|
|
277
279
|
*/
|
|
278
|
-
declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, initialPagePath, isolated, }: OrbPreviewProps): React__default.ReactElement;
|
|
280
|
+
declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, getAccessToken, initialPagePath, isolated, }: OrbPreviewProps): React__default.ReactElement;
|
|
279
281
|
declare namespace OrbPreview {
|
|
280
282
|
var displayName: string;
|
|
281
283
|
}
|
|
@@ -392,13 +394,18 @@ interface OrbitalPluginHostProps {
|
|
|
392
394
|
* live `currentState`, so `useKeyboardRouter`'s capture table always follows
|
|
393
395
|
* the trait's actual mode. Re-derives whenever the host records a new
|
|
394
396
|
* transition (the context's `tick`).
|
|
397
|
+
*
|
|
398
|
+
* `target` accepts either one target string (default `'shell'`) or a list of
|
|
399
|
+
* targets — the SAME derived entry (mode + keys) is repeated under every
|
|
400
|
+
* target, for a caller keying its table by several editor ids at once (e.g.
|
|
401
|
+
* one plugin's mode capturing keys for both `'schema'` and `'file:a.md'`).
|
|
395
402
|
*/
|
|
396
403
|
declare function useDeclaredCaptureTable(opts: {
|
|
397
404
|
pluginId: string;
|
|
398
405
|
orbital: string;
|
|
399
406
|
trait: string;
|
|
400
407
|
keymapKnob?: string;
|
|
401
|
-
target?: string;
|
|
408
|
+
target?: string | readonly string[];
|
|
402
409
|
}): KeyCaptureTable;
|
|
403
410
|
declare function useOrbitalPluginHost(): {
|
|
404
411
|
getState: (pluginId: string, orbital: string, trait: string) => TraitState | undefined;
|
|
@@ -413,4 +420,4 @@ declare function useOrbitalPluginHost(): {
|
|
|
413
420
|
*/
|
|
414
421
|
declare function OrbitalPluginHost({ plugins, mode, transport, deny, navigate, notify, onTransition, children, }: OrbitalPluginHostProps): React__default.ReactElement;
|
|
415
422
|
|
|
416
|
-
export { 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 };
|
|
423
|
+
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 };
|