@almadar/runtime 6.53.0 → 6.54.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.
|
@@ -1152,6 +1152,11 @@ declare class OrbitalServerRuntime {
|
|
|
1152
1152
|
private substrateHandlers;
|
|
1153
1153
|
private substrateHandlersPromise;
|
|
1154
1154
|
private resolvedSchema;
|
|
1155
|
+
/** App-level theme key from the schema's `theme "<key>"` header — the
|
|
1156
|
+
* `@currentTheme` fallback between an orbital's own `theme` and
|
|
1157
|
+
* `DEFAULT_THEME_KEY`. Set at registration, before the orbital loops
|
|
1158
|
+
* (`resolvedSchema` is assigned only after them). */
|
|
1159
|
+
private appThemeKey;
|
|
1155
1160
|
/** Wired by the hosting server (e.g. the playground SSE endpoint) via `setLiveBroadcastSink`. */
|
|
1156
1161
|
private liveBroadcastSink;
|
|
1157
1162
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'express';
|
|
2
|
-
export { F as ClientEffectTuple, G as ClientNavigateTuple, H as ClientNotifyTuple, J as ClientRenderUITuple, K as EffectResult, e as InMemoryPersistence, M as LiveBroadcastItem, N as LoaderConfig, O as OrbitalEventRequest, f as OrbitalEventResponse, Q as OrbitalServerRuntime, g as OrbitalServerRuntimeConfig, P as PersistenceAdapter, R as RegisteredOrbital, l as RuntimeOrbital, m as RuntimeOrbitalSchema, n as RuntimeTrait, T as RuntimeTraitTick, p as collectDeclaredConfigDefaults, V as createOrbitalServerRuntime } from './OrbitalServerRuntime-
|
|
2
|
+
export { F as ClientEffectTuple, G as ClientNavigateTuple, H as ClientNotifyTuple, J as ClientRenderUITuple, K as EffectResult, e as InMemoryPersistence, M as LiveBroadcastItem, N as LoaderConfig, O as OrbitalEventRequest, f as OrbitalEventResponse, Q as OrbitalServerRuntime, g as OrbitalServerRuntimeConfig, P as PersistenceAdapter, R as RegisteredOrbital, l as RuntimeOrbital, m as RuntimeOrbitalSchema, n as RuntimeTrait, T as RuntimeTraitTick, p as collectDeclaredConfigDefaults, V as createOrbitalServerRuntime } from './OrbitalServerRuntime-Cz5MiWKB.js';
|
|
3
3
|
import './types-BcPORH_x.js';
|
|
4
4
|
import '@almadar/core';
|
|
@@ -129,6 +129,11 @@ var OrbitalServerRuntime = class {
|
|
|
129
129
|
substrateHandlers = null;
|
|
130
130
|
substrateHandlersPromise = null;
|
|
131
131
|
resolvedSchema = null;
|
|
132
|
+
/** App-level theme key from the schema's `theme "<key>"` header — the
|
|
133
|
+
* `@currentTheme` fallback between an orbital's own `theme` and
|
|
134
|
+
* `DEFAULT_THEME_KEY`. Set at registration, before the orbital loops
|
|
135
|
+
* (`resolvedSchema` is assigned only after them). */
|
|
136
|
+
appThemeKey;
|
|
132
137
|
/** Wired by the hosting server (e.g. the playground SSE endpoint) via `setLiveBroadcastSink`. */
|
|
133
138
|
liveBroadcastSink = null;
|
|
134
139
|
/**
|
|
@@ -301,6 +306,7 @@ var OrbitalServerRuntime = class {
|
|
|
301
306
|
if (this.config.debug) {
|
|
302
307
|
registerLog.debug("register:schema", { name: schema.name });
|
|
303
308
|
}
|
|
309
|
+
this.appThemeKey = themeDataKey(schema.theme) || void 0;
|
|
304
310
|
if (needsPreprocessing(schema)) {
|
|
305
311
|
await this.ensureLoader();
|
|
306
312
|
if (this.loader) {
|
|
@@ -367,6 +373,7 @@ var OrbitalServerRuntime = class {
|
|
|
367
373
|
if (this.config.debug) {
|
|
368
374
|
registerLog.debug("register:schema-sync", { name: schema.name });
|
|
369
375
|
}
|
|
376
|
+
this.appThemeKey = themeDataKey(schema.theme) || void 0;
|
|
370
377
|
this.applyIdentityOwnerFields(schema);
|
|
371
378
|
for (const orbital of schema.orbitals) {
|
|
372
379
|
this.registerOrbital(orbital);
|
|
@@ -1741,7 +1748,7 @@ var OrbitalServerRuntime = class {
|
|
|
1741
1748
|
if (sigilPages.length > 0) {
|
|
1742
1749
|
bindings.pages = sigilPages;
|
|
1743
1750
|
}
|
|
1744
|
-
const sigilTheme = themeDataKey(registered.schema.theme) || DEFAULT_THEME_KEY;
|
|
1751
|
+
const sigilTheme = themeDataKey(registered.schema.theme) || this.appThemeKey || DEFAULT_THEME_KEY;
|
|
1745
1752
|
bindings.currentTheme = sigilTheme;
|
|
1746
1753
|
const entityFieldDefaults = collectDeclaredEntityDefaults(registered.entity);
|
|
1747
1754
|
const traitFieldState = registered.traitFieldStates.get(this.sharedFieldKey(registered, traitName));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as RuntimePatternValue, B as BindingContext, f as EvaluationContextExtensions, P as PatternProps, E as EffectHandlers, h as EffectContext, i as ExecutionEnvironment, j as EffectResult, T as TraitDefinition } from './types-BcPORH_x.js';
|
|
2
2
|
export { k as BrowserFileMeta, l as BrowserFilePickerOptions, m as BrowserGeolocationOptions, n as BrowserGeolocationPosition, C as ConfigContext, o as Effect, a as EventListener, H as HANDLER_MANIFEST, I as IEventBus, b as RuntimeConfig, R as RuntimeEvent, d as TraitState, c as TransitionObserver, e as TransitionResult, U as Unsubscribe } from './types-BcPORH_x.js';
|
|
3
|
-
import { U as UnifiedLoaderOptions, S as SchemaLoader, I as ImportChainLike, L as LoadResult, a as LoadedSchema, b as LoadedOrbital, P as PersistenceAdapter } from './OrbitalServerRuntime-
|
|
4
|
-
export { E as EntitySharingMap, c as EventBus, d as EventNamespaceMap, e as InMemoryPersistence, O as OrbitalEventRequest, f as OrbitalEventResponse, g as OrbitalServerRuntimeConfig, h as PreprocessOptions, i as PreprocessResult, j as PreprocessedSchema, k as ProcessEventOptions, R as RegisteredOrbital, l as RuntimeOrbital, m as RuntimeOrbitalSchema, n as RuntimeTrait, o as StateMachineManager, p as collectDeclaredConfigDefaults, q as collectDeclaredEntityDefaults, r as createInitialTraitState, s as findInitialState, t as findTransition, u as getIsolatedCollectionName, v as getNamespacedEvent, w as isBrowser, x as isElectron, y as isNamespacedEvent, z as isNode, A as normalizeEventKey, B as parseNamespacedEvent, C as preprocessSchema, D as processEvent } from './OrbitalServerRuntime-
|
|
3
|
+
import { U as UnifiedLoaderOptions, S as SchemaLoader, I as ImportChainLike, L as LoadResult, a as LoadedSchema, b as LoadedOrbital, P as PersistenceAdapter } from './OrbitalServerRuntime-Cz5MiWKB.js';
|
|
4
|
+
export { E as EntitySharingMap, c as EventBus, d as EventNamespaceMap, e as InMemoryPersistence, O as OrbitalEventRequest, f as OrbitalEventResponse, g as OrbitalServerRuntimeConfig, h as PreprocessOptions, i as PreprocessResult, j as PreprocessedSchema, k as ProcessEventOptions, R as RegisteredOrbital, l as RuntimeOrbital, m as RuntimeOrbitalSchema, n as RuntimeTrait, o as StateMachineManager, p as collectDeclaredConfigDefaults, q as collectDeclaredEntityDefaults, r as createInitialTraitState, s as findInitialState, t as findTransition, u as getIsolatedCollectionName, v as getNamespacedEvent, w as isBrowser, x as isElectron, y as isNamespacedEvent, z as isNode, A as normalizeEventKey, B as parseNamespacedEvent, C as preprocessSchema, D as processEvent } from './OrbitalServerRuntime-Cz5MiWKB.js';
|
|
5
5
|
import { EvaluationContext, SExpressionEvaluator } from '@almadar/evaluator';
|
|
6
6
|
export { EvaluationContext, createMinimalContext } from '@almadar/evaluator';
|
|
7
7
|
import { RenderBindingMarker, SExpr, TraitConfigObject, EventPayload, PatternConfig, EntityId, EntityField, EntityRow, EntityPersistence, ServiceParams, EntityAccessPolicies, PayloadField, OrbitalDefinition, OrbitalSchema } from '@almadar/core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/runtime",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.54.0",
|
|
4
4
|
"description": "Interpreted runtime for Almadar orbital applications (OrbitalServerRuntime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@almadar/core": "^10.
|
|
61
|
-
"@almadar/evaluator": "^2.
|
|
60
|
+
"@almadar/core": "^10.61.0",
|
|
61
|
+
"@almadar/evaluator": "^2.41.0",
|
|
62
62
|
"@almadar/logger": "^1.11.0",
|
|
63
63
|
"@almadar/server": "^2.34.0",
|
|
64
|
-
"@almadar/std": "^16.
|
|
64
|
+
"@almadar/std": "^16.176.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"express": "^5.0.0"
|