@almadar/shell-web 0.1.0 → 1.0.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/{ArbitraryClassCompiler-Mzabq-UB.d.ts → ArbitraryClassCompiler-CO_iASBn.d.ts} +99 -4
- package/dist/AvlGlyph-EPJKFEO3.js +6 -0
- package/dist/AvlStateMachine-RKZIKNGC.js +9 -0
- package/dist/AvlTransitionDetail-63SD6GZF.js +11 -0
- package/dist/AvlTransitionExplainer-ZBTLOM3T.js +12 -0
- package/dist/BehaviorView-YS5G4GNB.js +11 -0
- package/dist/{Canvas3DHost-_Y-5uLM_.d.ts → Canvas3DHost-BkZQB5l2.d.ts} +1 -1
- package/dist/{EventBusProvider-CVwjkV_2.d.ts → EventBusProvider-BFFHfN4O.d.ts} +12 -0
- package/dist/FlowCanvas-AUMTWMNG.js +26 -0
- package/dist/{GameAudioProvider-Cm9BnvmP.d.ts → GameAudioProvider-ceM_n0ey.d.ts} +4 -7
- package/dist/KernelEngineContext-CcxGYtlr.d.ts +33 -0
- package/dist/LayersPanel-M2LHWUFF.js +6 -0
- package/dist/ModuleCard-QHDGK5XK.js +7 -0
- package/dist/OrbInspector-QCPEPUPH.js +26 -0
- package/dist/{Select-mDZIwNqN.d.ts → Select-B-iDdnvE.d.ts} +16 -30
- package/dist/ServerBridge-Bqsj-lOU.d.ts +124 -0
- package/dist/UISlotRenderer-C7WWOK43.js +26 -0
- package/dist/auth/browser/index.js +1 -0
- package/dist/auth/react/index.d.ts +8 -1
- package/dist/auth/react/index.js +40 -2
- package/dist/avl/index.d.ts +89 -79
- package/dist/avl/index.js +38 -38
- package/dist/{avl-3d-context-BIRKWpaL.d.ts → avl-3d-context-BycmO6tG.d.ts} +9 -12
- package/dist/{chunk-GKIFONTE.js → chunk-3S54FWRC.js} +2 -2
- package/dist/{chunk-DYEKAA4L.js → chunk-3VZ36ZKO.js} +240 -252
- package/dist/{chunk-PC7K4SK7.js → chunk-4T3P43NS.js} +18 -269
- package/dist/{chunk-MBQAMMSE.js → chunk-4YXBKHHM.js} +269 -658
- package/dist/{chunk-YDNJLLG6.js → chunk-57DC34LY.js} +19 -10
- package/dist/{chunk-SJGJJKBY.js → chunk-AB3X7QTE.js} +6 -3
- package/dist/{chunk-AILY3XPS.js → chunk-AE7VCQB6.js} +5 -6
- package/dist/{chunk-FAJDTHWC.js → chunk-AGXD77SL.js} +2 -2
- package/dist/chunk-AU7O65OX.js +66 -0
- package/dist/{chunk-L677XGY3.js → chunk-CPLN6NBQ.js} +5 -5
- package/dist/{chunk-DZ42OJQC.js → chunk-DZBQA2OW.js} +1 -1
- package/dist/{chunk-2PY54Z44.js → chunk-E6KA4J6N.js} +5 -5
- package/dist/{chunk-DJ433ET5.js → chunk-GFXCPUMX.js} +11 -4
- package/dist/{chunk-FP3WIKTC.js → chunk-HH5KSMH5.js} +9 -1
- package/dist/{chunk-U6QRZASX.js → chunk-ILQXJ2AR.js} +1 -1
- package/dist/{chunk-B4BU77LT.js → chunk-ILZ7ORX7.js} +1 -1
- package/dist/{chunk-SGM3FASH.js → chunk-K4MOPSEL.js} +14 -12
- package/dist/{chunk-GYTPOFVC.js → chunk-LHP2TK7O.js} +7402 -6970
- package/dist/{chunk-VFF5OO47.js → chunk-PCR37T3U.js} +15 -38
- package/dist/{chunk-R5O5AUPI.js → chunk-PRXQGGCO.js} +93 -86
- package/dist/{chunk-42FY4RYA.js → chunk-REXYVBUO.js} +2 -2
- package/dist/{chunk-DLZF4PVE.js → chunk-ROICKAU7.js} +3 -3
- package/dist/{chunk-KVQS4GXU.js → chunk-SP5CDJ6K.js} +18 -8
- package/dist/{chunk-P4LNHAFI.js → chunk-TUPZWTRE.js} +2 -2
- package/dist/chunk-TXAUOLWZ.js +490 -0
- package/dist/{chunk-EQAMU2ZC.js → chunk-UTDC2NEA.js} +1 -1
- package/dist/{chunk-73SRAB4P.js → chunk-UU57VNS2.js} +2 -2
- package/dist/{chunk-DFNZUYX4.js → chunk-UXLE3IPR.js} +70 -27
- package/dist/{chunk-L2DEKY4J.js → chunk-VO2TTLS5.js} +3 -6
- package/dist/{chunk-TESBIVUA.js → chunk-X3DMMX27.js} +2 -2
- package/dist/components/index.d.ts +331 -125
- package/dist/components/index.js +28 -28
- package/dist/context/index.d.ts +2 -3
- package/dist/context/index.js +4 -3
- package/dist/core.d.ts +93 -17
- package/dist/core.js +2 -1
- package/dist/design-classes/index.cjs +3 -1
- package/dist/design-classes/index.js +3 -1
- package/dist/hooks/index.d.ts +40 -5
- package/dist/hooks/index.js +5 -4
- package/dist/index.d.ts +36 -114
- package/dist/index.js +174 -34
- package/dist/kernel-client-TZKGHJRY.js +516 -0
- package/dist/kernel-wire-wNdAPfhJ.d.ts +88 -0
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +5 -4
- package/dist/{paintDispatch-ChW5mVuK.d.ts → paintDispatch-CuJLsr9Y.d.ts} +5 -15
- package/dist/{prism-AIWGN2X5.js → prism-X5YWKXO5.js} +5 -3
- package/dist/providers/index.d.ts +42 -27
- package/dist/providers/index.js +22 -23
- package/dist/renderer/index.d.ts +0 -2
- package/dist/renderer/index.js +1 -0
- package/dist/runtime/index.d.ts +52 -253
- package/dist/runtime/index.js +21 -24
- package/dist/ssr/index.cjs +2643 -535
- package/dist/ssr/index.d.cts +0 -23
- package/dist/ssr/index.d.ts +0 -23
- package/dist/ssr/index.js +2639 -535
- package/dist/storage/browser/index.js +1 -0
- package/dist/test-support.d.ts +15 -8
- package/dist/test-support.js +91 -24
- package/dist/three/index.d.ts +6 -6
- package/dist/three/index.js +49 -37
- package/dist/{verificationRegistry-CabxhfTv.d.ts → verificationRegistry-CVrcxG1s.d.ts} +3 -3
- package/package.json +13 -9
- package/src/core/lib/band-shapes.json +7 -0
- package/src/core/locales/ar.json +18 -5
- package/src/core/locales/en.json +18 -5
- package/src/core/locales/sl.json +18 -5
- package/tailwind-preset.cjs +30 -1
- package/dist/AvlGlyph-JKJOAH23.js +0 -6
- package/dist/AvlStateMachine-PI4YGREK.js +0 -8
- package/dist/AvlTransitionDetail-ZH7V24UG.js +0 -12
- package/dist/AvlTransitionExplainer-ZSRT7L6Y.js +0 -13
- package/dist/BehaviorValueFrame-6RUJXT4A.js +0 -29
- package/dist/BehaviorValueFrame-SSEMEBTG.css +0 -1756
- package/dist/BehaviorView-RFEE5J6E.js +0 -10
- package/dist/FlowCanvas-STDC4OWK.js +0 -27
- package/dist/KernelEngineContext-BOCQoFwk.d.ts +0 -43
- package/dist/LayersPanel-BBQ54IVG.js +0 -7
- package/dist/ModuleCard-3TT2X7IW.js +0 -7
- package/dist/OrbInspector-K6T6O7GI.js +0 -27
- package/dist/ServerBridge-Cm1On51b.d.ts +0 -233
- package/dist/TraitValueFrame-2PJGLLVI.js +0 -28
- package/dist/TraitValueFrame-4G3KOUBR.css +0 -1756
- package/dist/UISlotRenderer-JKFSX24W.js +0 -27
- package/dist/UserContext-DqWeZkUZ.d.ts +0 -100
- package/dist/chunk-2QOH2HWM.js +0 -95
- package/dist/chunk-6P3MWXYE.js +0 -440
- package/dist/chunk-FIW6WN23.js +0 -508
- package/dist/chunk-GAR5TQ5B.js +0 -199
- package/dist/chunk-ZO6MXAS3.js +0 -69
- package/dist/kernel-client-ZH4PSMCN.js +0 -367
- package/dist/kernel-wire-B4S8pnP3.d.ts +0 -65
- package/dist/useKeyboardRouter-Dsq553Ur.d.ts +0 -42
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { OrbitalSchema } from '@almadar/core';
|
|
2
|
-
import { KernelModule as KernelModule$1 } from '@almadar/shell-runtime/kernel/wire';
|
|
3
|
-
import './verification-C5pTeMJv.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The `Kernel` class surface of `@almadar/kernel` (JSON strings in, JSON strings out). The wire data it
|
|
7
|
-
* speaks (`DispatchWire`, `AppliedWire`, `FrameWire`, ...) is imported from `@almadar/core/kernel-wire`.
|
|
8
|
-
*
|
|
9
|
-
* @packageDocumentation
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/** The `Kernel` class `@almadar/kernel` exports: JSON strings in, JSON strings out. */
|
|
13
|
-
interface KernelInstance {
|
|
14
|
-
dispatch(traitName: string, entityId: string | undefined, event: string, payloadJson?: string): string;
|
|
15
|
-
applyServerResponse(responseJson: string, alreadyDeliveredJson?: string, baseJson?: string): string;
|
|
16
|
-
/** The rows a posted leg's answer is folded against; `undefined` when the leg carried none. */
|
|
17
|
-
/** The leg as a host that holds the circuit state takes it: only the `[shared]` frame rows its traits read. */
|
|
18
|
-
statefulLeg(legJson: string): string;
|
|
19
|
-
foldBase(carriedJson: string | undefined, seededJson: string, entityId?: string): string | undefined;
|
|
20
|
-
dispatchMount(seedsJson: string, entityId?: string, payloadJson?: string): string;
|
|
21
|
-
restore(traitName: string, entityId: string | undefined, snapshotJson: string): string;
|
|
22
|
-
tick(traitName: string, tickName: string, entityId?: string): string;
|
|
23
|
-
frame(nowMs: number): string | undefined;
|
|
24
|
-
framePause(): void;
|
|
25
|
-
frameResume(): void;
|
|
26
|
-
tickCount(): number;
|
|
27
|
-
/** The kernel's dispatch mode for a registered trait (`DispatchMode` as JSON text); throws for an unregistered one. */
|
|
28
|
-
dispatchMode(traitName: string): string;
|
|
29
|
-
/** The config the kernel binds as `@config` for a registered trait (JSON text); throws for an unregistered one. */
|
|
30
|
-
traitConfig(traitName: string): string;
|
|
31
|
-
getState(traitName: string, entityId?: string): string;
|
|
32
|
-
setCurrentUser(userJson: string): void;
|
|
33
|
-
/** The viewer's locales (`string[]`, the first is painted) and their catalogs (`{ [locale]: { [key]: text } }`) for `i18n/t`. */
|
|
34
|
-
setMessages(localesJson: string, catalogsJson: string): void;
|
|
35
|
-
/** The host runs the listeners of every emit it marks `dispatched` (the JS runtime, `orbital-server`). */
|
|
36
|
-
setHostFansOut(fansOut: boolean): void;
|
|
37
|
-
/** Carry each hop's `@entity` before and after it on the dispatch's transitions, for a verifier (EXEC-STEP-10). */
|
|
38
|
-
setRecordEntityAfter(record: boolean): void;
|
|
39
|
-
/** The kernel's mounts for a host start on `side` (`client|server|process|start`): `MountSeed[]` as JSON. */
|
|
40
|
-
bootMounts(side: string): string;
|
|
41
|
-
/** The kernel's mounts for a client opening `routePath`: `MountSeed[]` as JSON. */
|
|
42
|
-
routeMounts(routePath: string): string;
|
|
43
|
-
mount(traitsJson: string): void;
|
|
44
|
-
remount(traitsJson: string): void;
|
|
45
|
-
unmount(traitsJson: string): void;
|
|
46
|
-
/** The host's report of whether a trait's rendered output is on screen; gates its `[visible]` ticks. */
|
|
47
|
-
setTraitOnScreen(traitName: string, onScreen: boolean): void;
|
|
48
|
-
seed(entityType: string, rowsJson: string): void;
|
|
49
|
-
free(): void;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* What a host's loader resolves: the `@almadar/kernel` module with its WebAssembly already
|
|
53
|
-
* initialised (`await init()` in a browser, `initSync` in Node). `@almadar/ui` never imports the
|
|
54
|
-
* package itself, so the default bundle carries none of it.
|
|
55
|
-
*/
|
|
56
|
-
interface KernelModule extends KernelModule$1 {
|
|
57
|
-
Kernel: new (resolvedSchemaJson: string, clientId: string) => KernelInstance;
|
|
58
|
-
}
|
|
59
|
-
type KernelLoader = () => Promise<KernelModule>;
|
|
60
|
-
/** Resolves the language bundle (`@almadar/core/language-data` `LanguageBundle`) as JSON text, for a kernel a browser opens over a local store. */
|
|
61
|
-
type LanguageLoader = () => Promise<string>;
|
|
62
|
-
/** Resolves the std `std-mock-seed` program (an already-resolved schema) that seeds a mock or browser store. */
|
|
63
|
-
type SeedProgramLoader = () => Promise<OrbitalSchema>;
|
|
64
|
-
|
|
65
|
-
export type { KernelModule as K, LanguageLoader as L, SeedProgramLoader as S, KernelLoader as a, KernelInstance as b };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
interface KeyCaptureEntry {
|
|
2
|
-
mode: string;
|
|
3
|
-
keys: ReadonlySet<string>;
|
|
4
|
-
}
|
|
5
|
-
/** keyed by editorId, or the literal 'shell' for chrome-level bindings */
|
|
6
|
-
type KeyCaptureTable = Readonly<Record<string, KeyCaptureEntry>>;
|
|
7
|
-
interface EditorKeyEvent {
|
|
8
|
-
editorId: string;
|
|
9
|
-
key: string;
|
|
10
|
-
code: string;
|
|
11
|
-
ctrl: boolean;
|
|
12
|
-
alt: boolean;
|
|
13
|
-
shift: boolean;
|
|
14
|
-
meta: boolean;
|
|
15
|
-
repeat: boolean;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Merges several plugins' capture tables into one, per target: keys UNION
|
|
19
|
-
* across every table that declares the target; `mode` is `'any'` if any
|
|
20
|
-
* input says so, else the shared mode when every input agrees, else the
|
|
21
|
-
* distinct modes sorted and `|`-joined. A target present in only one table
|
|
22
|
-
* passes through unchanged. Pure, deterministic — no heuristics.
|
|
23
|
-
*/
|
|
24
|
-
declare function mergeCaptureTables(tables: readonly KeyCaptureTable[]): KeyCaptureTable;
|
|
25
|
-
/** `"Control+Shift+P"`-style spelling of a keydown: modifiers in the fixed order Control, Alt, Shift, Meta, then `event.key`. */
|
|
26
|
-
declare function keyChord(event: Pick<KeyboardEvent, 'key' | 'ctrlKey' | 'altKey' | 'shiftKey' | 'metaKey'>): string;
|
|
27
|
-
interface UseKeyboardRouterOptions {
|
|
28
|
-
/** declared data; caller owns it; re-read on every keydown (kept in a ref) */
|
|
29
|
-
captureTable: KeyCaptureTable;
|
|
30
|
-
/** default 'EDITOR_FOCUS' -> subscribes UI:EDITOR_FOCUS {editorId} */
|
|
31
|
-
editorFocusEvent?: string;
|
|
32
|
-
/** default 'EDITOR_BLUR' */
|
|
33
|
-
editorBlurEvent?: string;
|
|
34
|
-
/** default 'KEY' -> emits UI:KEY */
|
|
35
|
-
keyEvent?: string;
|
|
36
|
-
/** default true */
|
|
37
|
-
enabled?: boolean;
|
|
38
|
-
}
|
|
39
|
-
declare function useKeyboardRouter(options: UseKeyboardRouterOptions): void;
|
|
40
|
-
|
|
41
|
-
export { keyChord as k, mergeCaptureTables as m, useKeyboardRouter as u };
|
|
42
|
-
export type { EditorKeyEvent as E, KeyCaptureTable as K, UseKeyboardRouterOptions as U, KeyCaptureEntry as a };
|