@almadar/shell-web 0.0.0-stage → 0.1.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/bundling.d.mts +18 -0
- package/bundling.mjs +28 -0
- package/dist/ArbitraryClassCompiler-Mzabq-UB.d.ts +100 -0
- package/dist/AvlGlyph-JKJOAH23.js +6 -0
- package/dist/AvlStateMachine-PI4YGREK.js +8 -0
- package/dist/AvlTransitionDetail-ZH7V24UG.js +12 -0
- package/dist/AvlTransitionExplainer-ZSRT7L6Y.js +13 -0
- package/dist/BehaviorValueFrame-6RUJXT4A.js +29 -0
- package/dist/BehaviorValueFrame-SSEMEBTG.css +1756 -0
- package/dist/BehaviorView-RFEE5J6E.js +10 -0
- package/dist/Canvas3DHost-_Y-5uLM_.d.ts +552 -0
- package/dist/EventBusProvider-CVwjkV_2.d.ts +284 -0
- package/dist/FileTree-BCFnBEuQ.d.ts +254 -0
- package/dist/FlowCanvas-3JRMNJLV.css +1756 -0
- package/dist/FlowCanvas-STDC4OWK.js +27 -0
- package/dist/GameAudioProvider-Cm9BnvmP.d.ts +93 -0
- package/dist/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
- package/dist/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
- package/dist/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
- package/dist/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
- package/dist/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
- package/dist/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
- package/dist/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
- package/dist/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
- package/dist/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
- package/dist/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
- package/dist/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
- package/dist/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
- package/dist/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
- package/dist/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
- package/dist/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
- package/dist/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
- package/dist/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
- package/dist/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
- package/dist/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
- package/dist/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
- package/dist/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
- package/dist/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
- package/dist/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
- package/dist/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
- package/dist/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
- package/dist/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
- package/dist/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
- package/dist/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
- package/dist/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
- package/dist/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
- package/dist/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
- package/dist/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
- package/dist/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
- package/dist/KernelEngineContext-BOCQoFwk.d.ts +43 -0
- package/dist/LayersPanel-BBQ54IVG.js +7 -0
- package/dist/ModuleCard-3TT2X7IW.js +7 -0
- package/dist/OrbInspector-K6T6O7GI.js +27 -0
- package/dist/OrbInspector-MHLJ6OEE.css +1756 -0
- package/dist/Select-mDZIwNqN.d.ts +199 -0
- package/dist/ServerBridge-Cm1On51b.d.ts +233 -0
- package/dist/ThemeContext-DJmO59xd.d.ts +147 -0
- package/dist/TraitValueFrame-2PJGLLVI.js +28 -0
- package/dist/TraitValueFrame-4G3KOUBR.css +1756 -0
- package/dist/UISlotContext-Dl_ewwCI.d.ts +79 -0
- package/dist/UISlotRenderer-JKFSX24W.js +27 -0
- package/dist/UISlotRenderer-KVFO6J7R.css +1756 -0
- package/dist/UserContext-DqWeZkUZ.d.ts +100 -0
- package/dist/auth/browser/index.d.ts +2 -0
- package/dist/auth/browser/index.js +1 -0
- package/dist/auth/react/index.d.ts +49 -0
- package/dist/auth/react/index.js +119 -0
- package/dist/avl/index.css +1756 -0
- package/dist/avl/index.d.ts +2238 -0
- package/dist/avl/index.js +2693 -0
- package/dist/avl-3d-context-BIRKWpaL.d.ts +204 -0
- package/dist/avl-schema-parser-CtJxJ9KU.d.ts +132 -0
- package/dist/avl-zoom-state-CKMVuBFg.d.ts +17 -0
- package/dist/chunk-2PY54Z44.js +227 -0
- package/dist/chunk-2QOH2HWM.js +95 -0
- package/dist/chunk-3BBUBJFF.js +339 -0
- package/dist/chunk-42FY4RYA.js +191 -0
- package/dist/chunk-5QTYQTPS.js +15 -0
- package/dist/chunk-6P3MWXYE.js +440 -0
- package/dist/chunk-73SRAB4P.js +1053 -0
- package/dist/chunk-A2LR6VQQ.js +349 -0
- package/dist/chunk-AILY3XPS.js +562 -0
- package/dist/chunk-B4BU77LT.js +432 -0
- package/dist/chunk-DFNZUYX4.js +378 -0
- package/dist/chunk-DJ433ET5.js +1327 -0
- package/dist/chunk-DLZF4PVE.js +24 -0
- package/dist/chunk-DYEKAA4L.js +787 -0
- package/dist/chunk-DZ42OJQC.js +176 -0
- package/dist/chunk-EOWMARUB.js +16 -0
- package/dist/chunk-EQAMU2ZC.js +14 -0
- package/dist/chunk-FAJDTHWC.js +98 -0
- package/dist/chunk-FIW6WN23.js +508 -0
- package/dist/chunk-FP3WIKTC.js +303 -0
- package/dist/chunk-G7DCAZ22.js +19 -0
- package/dist/chunk-GAR5TQ5B.js +199 -0
- package/dist/chunk-GKIFONTE.js +131 -0
- package/dist/chunk-GYTPOFVC.js +47155 -0
- package/dist/chunk-KVQS4GXU.js +328 -0
- package/dist/chunk-L2DEKY4J.js +97 -0
- package/dist/chunk-L677XGY3.js +701 -0
- package/dist/chunk-MBQAMMSE.js +11877 -0
- package/dist/chunk-P4LNHAFI.js +1051 -0
- package/dist/chunk-P4ZFUQFF.js +93 -0
- package/dist/chunk-PC7K4SK7.js +1384 -0
- package/dist/chunk-R5O5AUPI.js +573 -0
- package/dist/chunk-SGM3FASH.js +672 -0
- package/dist/chunk-SJGJJKBY.js +502 -0
- package/dist/chunk-TESBIVUA.js +11 -0
- package/dist/chunk-TZZBINQY.js +82 -0
- package/dist/chunk-U6QRZASX.js +280 -0
- package/dist/chunk-VFF5OO47.js +319 -0
- package/dist/chunk-YDNJLLG6.js +516 -0
- package/dist/chunk-YHMRX6YA.js +455 -0
- package/dist/chunk-ZO6MXAS3.js +69 -0
- package/dist/components/index.css +1756 -0
- package/dist/components/index.d.ts +11093 -0
- package/dist/components/index.js +1110 -0
- package/dist/context/index.d.ts +9 -0
- package/dist/context/index.js +7 -0
- package/dist/core.d.ts +2523 -0
- package/dist/core.js +2 -0
- package/dist/design-classes/index.cjs +429 -0
- package/dist/design-classes/index.d.cts +165 -0
- package/dist/design-classes/index.d.ts +165 -0
- package/dist/design-classes/index.js +397 -0
- package/dist/emojiItems-QGSNAABW.js +20 -0
- package/dist/fx-CmQjnHmT.d.ts +371 -0
- package/dist/hooks/index.d.ts +936 -0
- package/dist/hooks/index.js +7 -0
- package/dist/index.d.ts +486 -0
- package/dist/index.js +38 -0
- package/dist/katexPlugin-FA7NX4PE.css +1161 -0
- package/dist/katexPlugin-NCDKOOQY.js +2 -0
- package/dist/kernel-client-ZH4PSMCN.js +367 -0
- package/dist/kernel-wire-B4S8pnP3.d.ts +65 -0
- package/dist/lib/index.d.ts +602 -0
- package/dist/lib/index.js +1288 -0
- package/dist/paintDispatch-ChW5mVuK.d.ts +698 -0
- package/dist/parseLessonSegments-GpCeMrb2.d.ts +334 -0
- package/dist/perf-CKiBKbkw.d.ts +22 -0
- package/dist/perf-Dr28-AgT.d.ts +57 -0
- package/dist/prism-AIWGN2X5.js +134 -0
- package/dist/providers/index.css +1756 -0
- package/dist/providers/index.d.ts +340 -0
- package/dist/providers/index.js +30 -0
- package/dist/renderer/index.d.ts +467 -0
- package/dist/renderer/index.js +3 -0
- package/dist/runtime/index.css +1756 -0
- package/dist/runtime/index.d.ts +440 -0
- package/dist/runtime/index.js +31 -0
- package/dist/slot-host-CPzrxLo9.d.ts +48 -0
- package/dist/ssr/index.cjs +7631 -0
- package/dist/ssr/index.d.cts +487 -0
- package/dist/ssr/index.d.ts +487 -0
- package/dist/ssr/index.js +7599 -0
- package/dist/storage/browser/index.d.ts +1 -0
- package/dist/storage/browser/index.js +1 -0
- package/dist/test-support.d.ts +35 -0
- package/dist/test-support.js +114 -0
- package/dist/themeTokens-CRd8AEDF.d.ts +125 -0
- package/dist/three/index.css +503 -0
- package/dist/three/index.d.ts +1185 -0
- package/dist/three/index.js +3896 -0
- package/dist/useKeyboardRouter-Dsq553Ur.d.ts +42 -0
- package/dist/useUISlots-CiobNFGb.d.ts +211 -0
- package/dist/verification-C5pTeMJv.d.ts +66 -0
- package/dist/verificationRegistry-CabxhfTv.d.ts +122 -0
- package/dist/wrapCallbackForEvent-B9QLbhxX.d.ts +19 -0
- package/index.css +199 -0
- package/package.json +269 -3
- package/src/core/locales/ar.json +1263 -0
- package/src/core/locales/en.json +1263 -0
- package/src/core/locales/index.ts +54 -0
- package/src/core/locales/sl.json +1263 -0
- package/src/core/tokens/native-tokens.json +369 -0
- package/tailwind-compile.cjs +29 -0
- package/tailwind-preset.cjs +991 -0
- package/themes/_base.css +451 -0
- package/themes/_contract.md +307 -0
- package/themes/_fonts-kenney.css +11 -0
- package/themes/_fonts.css +12 -0
- package/themes/_foundation.css +105 -0
- package/themes/_head.css +22 -0
- package/themes/_presets.css +67 -0
- package/themes/almadar-heritage.css +455 -0
- package/themes/almadar-website.css +269 -0
- package/themes/almadar.css +269 -0
- package/themes/aqua.css +455 -0
- package/themes/arabesque.css +459 -0
- package/themes/art-deco.css +457 -0
- package/themes/art-nouveau.css +459 -0
- package/themes/atelier.css +463 -0
- package/themes/bauhaus.css +461 -0
- package/themes/bloomberg-dense.css +463 -0
- package/themes/blueprint.css +457 -0
- package/themes/clay.css +449 -0
- package/themes/comic.css +453 -0
- package/themes/constructivist.css +457 -0
- package/themes/corporate.css +449 -0
- package/themes/cyberpunk.css +453 -0
- package/themes/frutiger-aero.css +458 -0
- package/themes/game-adventure.css +201 -0
- package/themes/game-rpg.css +203 -0
- package/themes/game-sci-fi.css +201 -0
- package/themes/game-ui-pack.css +200 -0
- package/themes/gazette.css +449 -0
- package/themes/glass.css +457 -0
- package/themes/gothic.css +453 -0
- package/themes/index.css +21 -0
- package/themes/ink-wash.css +459 -0
- package/themes/kawaii.css +459 -0
- package/themes/kflow.css +310 -0
- package/themes/kiosk.css +449 -0
- package/themes/linear-clean.css +463 -0
- package/themes/luxury.css +451 -0
- package/themes/mac-classic.css +455 -0
- package/themes/material.css +463 -0
- package/themes/memphis.css +453 -0
- package/themes/mid-century.css +455 -0
- package/themes/minimalist.css +449 -0
- package/themes/mudcloth.css +459 -0
- package/themes/nata.css +310 -0
- package/themes/neon.css +453 -0
- package/themes/neumorphic.css +451 -0
- package/themes/newsprint.css +455 -0
- package/themes/notion-editorial.css +463 -0
- package/themes/orb.css +465 -0
- package/themes/pixel.css +449 -0
- package/themes/prism.css +309 -0
- package/themes/rawi.css +310 -0
- package/themes/retro.css +452 -0
- package/themes/risograph.css +463 -0
- package/themes/scandi.css +469 -0
- package/themes/sketch.css +455 -0
- package/themes/solarpunk.css +469 -0
- package/themes/steampunk.css +451 -0
- package/themes/swiss.css +455 -0
- package/themes/terminal.css +466 -0
- package/themes/trait-wars.css +487 -0
- package/themes/ukiyo-e.css +459 -0
- package/themes/vaporwave.css +455 -0
- package/themes/victorian.css +453 -0
- package/themes/wabi-sabi.css +459 -0
- package/themes/win95.css +455 -0
- package/themes/wireframe.css +439 -0
- package/themes/zine.css +455 -0
- package/README.md +0 -3
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import React__default, { ReactNode } from 'react';
|
|
2
|
+
import { EntityRow, EventPayload, EffectTrace, PageAccess, ViewerAuthority, RowSetRef } from '@almadar/core';
|
|
3
|
+
export { ANONYMOUS_USER } from '@almadar/core';
|
|
4
|
+
import '../EventBusProvider-CVwjkV_2.js';
|
|
5
|
+
import { UIThemeDefinition } from '../core.js';
|
|
6
|
+
import { b as UserData } from '../UserContext-DqWeZkUZ.js';
|
|
7
|
+
export { U as UserContext, a as UserContextValue, c as UserProvider, d as UserProviderProps, u as useHasPermission, e as useHasRole, f as useUser, g as useUserForEvaluation } from '../UserContext-DqWeZkUZ.js';
|
|
8
|
+
export { A as ARBITRARY_CLASS_STYLE_ID, a as ArbitraryClassCompiler, b as ArbitraryClassCompilerProvider, c as ArbitraryClassCompilerProviderProps, C as CurrentPagePathContext, d as CurrentPagePathProvider, e as CurrentPagePathProviderProps, D as DesignThemeProvider, O as OrbitalThemeProvider, f as OrbitalThemeProviderProps, r as resetArbitraryClassStyles, u as useArbitraryClassStyles, g as useCurrentPagePath, h as useDesignTheme } from '../ArbitraryClassCompiler-Mzabq-UB.js';
|
|
9
|
+
export { n as AwaitingSkeletonContext, A as AwaitingSkeletonSource, o as EntityBindingContext, E as EntityBindingSource, a as EntitySchemaContextValue, b as EntitySchemaProvider, c as EntitySchemaProviderProps, d as ServerBridgeContextValue, e as ServerBridgeProvider, p as ServerBridgeProviderProps, S as ServerBridgeTransport, T as TraitContext, f as TraitContextValue, g as TraitInstance, h as TraitProvider, i as TraitProviderProps, q as useAwaitingSkeleton, r as useEntityBindingSnapshot, u as useEntitySchema, j as useEntitySchemaOptional, k as useServerBridge, l as useTrait, m as useTraitContext } from '../ServerBridge-Cm1On51b.js';
|
|
10
|
+
export { a as KernelEngineContext, b as KernelEngineProvider, c as KernelEngineProviderProps, K as KernelEngineValue, d as KernelLoaderMissingError, L as LanguageLoaderMissingError, S as SeedProgramLoaderMissingError, u as useKernelEngine } from '../KernelEngineContext-BOCQoFwk.js';
|
|
11
|
+
export { b as KernelInstance, a as KernelLoader, K as KernelModule, L as LanguageLoader, S as SeedProgramLoader } from '../kernel-wire-B4S8pnP3.js';
|
|
12
|
+
import '../verificationRegistry-CabxhfTv.js';
|
|
13
|
+
export { G as GameAudioContext, a as GameAudioContextValue, b as GameAudioProvider, c as GameAudioProviderProps, u as useGameAudioContext, d as useGameAudioContextOptional } from '../GameAudioProvider-Cm9BnvmP.js';
|
|
14
|
+
export { A as Avl3DConfig, a as Avl3DContext, b as Avl3DModelOverrides, u as useAvl3DConfig, c as useAvl3DPalette } from '../avl-3d-context-BIRKWpaL.js';
|
|
15
|
+
export { AccessTokenProvider } from '@almadar/shell-runtime/client/EventTransport';
|
|
16
|
+
import '../verification-C5pTeMJv.js';
|
|
17
|
+
import '@almadar/shell-runtime/kernel/wire';
|
|
18
|
+
import '../paintDispatch-ChW5mVuK.js';
|
|
19
|
+
import '../fx-CmQjnHmT.js';
|
|
20
|
+
import 'lucide-react';
|
|
21
|
+
import 'three';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* SelectionProvider - Manages selected entity state
|
|
25
|
+
*
|
|
26
|
+
* Separates selection state from the EventBusProvider to maintain
|
|
27
|
+
* clean architecture (event bus stays pure pub/sub).
|
|
28
|
+
*
|
|
29
|
+
* This provider:
|
|
30
|
+
* - Listens to UI:VIEW and UI:SELECT events to track selected entity
|
|
31
|
+
* - Listens to UI:CLOSE, UI:DESELECT, UI:CANCEL to clear selection
|
|
32
|
+
* - Provides the selected entity to any component that needs it
|
|
33
|
+
*
|
|
34
|
+
* @packageDocumentation
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
interface SelectionContextType<T = EntityRow> {
|
|
38
|
+
/** The currently selected entity */
|
|
39
|
+
selected: T | null;
|
|
40
|
+
/** Manually set the selected entity */
|
|
41
|
+
setSelected: (entity: T | null) => void;
|
|
42
|
+
/** Clear the selection */
|
|
43
|
+
clearSelection: () => void;
|
|
44
|
+
/** Check if an entity is selected */
|
|
45
|
+
isSelected: (entity: T) => boolean;
|
|
46
|
+
}
|
|
47
|
+
declare const SelectionContext: React__default.Context<SelectionContextType<EntityRow> | null>;
|
|
48
|
+
interface SelectionProviderProps {
|
|
49
|
+
children: ReactNode;
|
|
50
|
+
/** Enable debug logging */
|
|
51
|
+
debug?: boolean;
|
|
52
|
+
/** Custom comparison function for isSelected */
|
|
53
|
+
compareEntities?: (a: EntityRow, b: EntityRow) => boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Provider component for selection state.
|
|
57
|
+
*
|
|
58
|
+
* Must be used within an EventBusProvider.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```tsx
|
|
62
|
+
* function OrderListPage() {
|
|
63
|
+
* return (
|
|
64
|
+
* <EventBusProvider>
|
|
65
|
+
* <SelectionProvider debug={process.env.NODE_ENV === 'development'}>
|
|
66
|
+
* <OrderTable />
|
|
67
|
+
* <OrderDetailDrawer />
|
|
68
|
+
* </SelectionProvider>
|
|
69
|
+
* </EventBusProvider>
|
|
70
|
+
* );
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
declare function SelectionProvider({ children, debug, compareEntities, }: SelectionProviderProps): React__default.JSX.Element;
|
|
75
|
+
/**
|
|
76
|
+
* Hook to access selection state.
|
|
77
|
+
*
|
|
78
|
+
* @throws Error if used outside SelectionProvider
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```tsx
|
|
82
|
+
* function OrderDetailDrawer() {
|
|
83
|
+
* const { selected, clearSelection } = useSelection<Order>();
|
|
84
|
+
*
|
|
85
|
+
* if (!selected) return null;
|
|
86
|
+
*
|
|
87
|
+
* return (
|
|
88
|
+
* <Drawer onClose={clearSelection}>
|
|
89
|
+
* <OrderDetail order={selected} />
|
|
90
|
+
* </Drawer>
|
|
91
|
+
* );
|
|
92
|
+
* }
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
declare function useSelection<T = EntityRow>(): SelectionContextType<T>;
|
|
96
|
+
/**
|
|
97
|
+
* Hook to access selection state with fallback for components
|
|
98
|
+
* that may be used outside SelectionProvider.
|
|
99
|
+
*
|
|
100
|
+
* Returns null if no SelectionProvider is found.
|
|
101
|
+
*/
|
|
102
|
+
declare function useSelectionOptional<T = EntityRow>(): SelectionContextType<T> | null;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* OrbitalProvider
|
|
106
|
+
*
|
|
107
|
+
* Unified provider that combines all required contexts for Orbital applications.
|
|
108
|
+
* Provides a single import for both Builder preview and compiled shell.
|
|
109
|
+
*
|
|
110
|
+
* Combines:
|
|
111
|
+
* - ThemeProvider - Theme and color mode management
|
|
112
|
+
* - EventBusProvider - Page-scoped event pub/sub
|
|
113
|
+
* - SelectionProvider - Selected entity tracking
|
|
114
|
+
* - UserProvider - the viewer `@user.x` bindings resolve against
|
|
115
|
+
*
|
|
116
|
+
* Entity data flows through props (via enrichFromResponse in ServerBridge),
|
|
117
|
+
* not through context. FetchedDataProvider has been removed.
|
|
118
|
+
*
|
|
119
|
+
* @packageDocumentation
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
interface OrbitalProviderProps {
|
|
123
|
+
children: ReactNode;
|
|
124
|
+
/** Custom themes (merged with built-in themes) */
|
|
125
|
+
themes?: UIThemeDefinition[];
|
|
126
|
+
/** Default theme name */
|
|
127
|
+
defaultTheme?: string;
|
|
128
|
+
/** Default color mode */
|
|
129
|
+
defaultMode?: 'light' | 'dark' | 'system';
|
|
130
|
+
/** Optional target element ref for scoped theme application */
|
|
131
|
+
targetRef?: React__default.RefObject<HTMLElement>;
|
|
132
|
+
/** Skip ThemeProvider (use when already inside a themed container like shadow DOM) */
|
|
133
|
+
skipTheme?: boolean;
|
|
134
|
+
/** Enable debug logging for all providers */
|
|
135
|
+
debug?: boolean;
|
|
136
|
+
/** Initial fetched data */
|
|
137
|
+
/** @deprecated No longer used. Entity data flows through server response props. */
|
|
138
|
+
initialData?: Record<string, EntityRow[]>;
|
|
139
|
+
/**
|
|
140
|
+
* Enable Suspense mode. When true, UISlotRenderer wraps each slot in
|
|
141
|
+
* `<ErrorBoundary><Suspense>` with Skeleton fallbacks.
|
|
142
|
+
* Opt-in — existing isLoading prop pattern still works when false/absent.
|
|
143
|
+
*/
|
|
144
|
+
suspense?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Enable verification wiring for visual testing.
|
|
147
|
+
* When true, lifecycle events are recorded and exposed via
|
|
148
|
+
* `window.__orbitalVerification` for Playwright/automation.
|
|
149
|
+
* Default: true in development, false in production.
|
|
150
|
+
*/
|
|
151
|
+
verification?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Sandbox mode: the event bus stays context-local and does NOT register as
|
|
154
|
+
* the global bus. Set for studio previews embedded in a host app (so the
|
|
155
|
+
* preview's events don't clobber the host's global bus). Default false.
|
|
156
|
+
*/
|
|
157
|
+
isolated?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* The signed-in viewer. Generated trait hooks read `@user.x` through
|
|
160
|
+
* `useUser()`, so without this every role gate takes its negative branch and
|
|
161
|
+
* every ownership-scoped list renders empty — silently, since `useUser()`
|
|
162
|
+
* falls back to anonymous rather than throwing
|
|
163
|
+
* (U-USERPROVIDER-MOUNTED-NOWHERE). Mounting the provider here means every
|
|
164
|
+
* host that already wraps its app in OrbitalProvider only has to pass the user.
|
|
165
|
+
*/
|
|
166
|
+
user?: UserData | null;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* OrbitalProvider - Unified context provider for Orbital applications
|
|
170
|
+
*
|
|
171
|
+
* Wraps your application with all required providers in the correct order.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```tsx
|
|
175
|
+
* // Basic usage
|
|
176
|
+
* function App() {
|
|
177
|
+
* return (
|
|
178
|
+
* <OrbitalProvider>
|
|
179
|
+
* <Router>
|
|
180
|
+
* <Routes />
|
|
181
|
+
* </Router>
|
|
182
|
+
* </OrbitalProvider>
|
|
183
|
+
* );
|
|
184
|
+
* }
|
|
185
|
+
*
|
|
186
|
+
* // With configuration
|
|
187
|
+
* function App() {
|
|
188
|
+
* return (
|
|
189
|
+
* <OrbitalProvider
|
|
190
|
+
* defaultTheme="minimalist"
|
|
191
|
+
* defaultMode="dark"
|
|
192
|
+
* debug={process.env.NODE_ENV === 'development'}
|
|
193
|
+
* >
|
|
194
|
+
* <Router>
|
|
195
|
+
* <Routes />
|
|
196
|
+
* </Router>
|
|
197
|
+
* </OrbitalProvider>
|
|
198
|
+
* );
|
|
199
|
+
* }
|
|
200
|
+
*
|
|
201
|
+
* // With custom themes from schema
|
|
202
|
+
* import { THEMES } from './generated/theme-manifest';
|
|
203
|
+
*
|
|
204
|
+
* function App() {
|
|
205
|
+
* return (
|
|
206
|
+
* <OrbitalProvider themes={THEMES} defaultTheme="glass">
|
|
207
|
+
* <Router>
|
|
208
|
+
* <Routes />
|
|
209
|
+
* </Router>
|
|
210
|
+
* </OrbitalProvider>
|
|
211
|
+
* );
|
|
212
|
+
* }
|
|
213
|
+
* ```
|
|
214
|
+
*/
|
|
215
|
+
declare function OrbitalProvider({ children, themes, defaultTheme, defaultMode, targetRef, skipTheme, debug, initialData, suspense, verification, isolated, user, }: OrbitalProviderProps): React__default.ReactElement;
|
|
216
|
+
declare namespace OrbitalProvider {
|
|
217
|
+
var displayName: string;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* RenderSlotContext — which UI slot the current subtree is rendering into.
|
|
222
|
+
*
|
|
223
|
+
* Default is 'main': a compiled app's page body renders patterns directly
|
|
224
|
+
* (no UISlotRenderer), so the absence of a provider IS the main slot. The
|
|
225
|
+
* exceptional hosts declare themselves: the runtime path's UISlotComponent
|
|
226
|
+
* provides its slot name per subtree; the compiled path's ModalSlot /
|
|
227
|
+
* DrawerSlot provide 'modal' / 'drawer'.
|
|
228
|
+
*
|
|
229
|
+
* Consumers gate slot-sensitive behavior on it — e.g. DetailPanel only
|
|
230
|
+
* feeds the loaded record's title into the nav-stack crumb from the routed
|
|
231
|
+
* 'main' slot (a modal or drawer must not relabel the page's crumb).
|
|
232
|
+
*/
|
|
233
|
+
|
|
234
|
+
interface RenderSlotProviderProps {
|
|
235
|
+
slot: string;
|
|
236
|
+
children: React__default.ReactNode;
|
|
237
|
+
}
|
|
238
|
+
declare const RenderSlotProvider: React__default.FC<RenderSlotProviderProps>;
|
|
239
|
+
/** The slot name the calling component is rendering inside ('main' by default). */
|
|
240
|
+
declare function useRenderSlot(): string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* VerificationProvider
|
|
244
|
+
*
|
|
245
|
+
* Wires the verification registry to the event bus: intercepts the lifecycle events
|
|
246
|
+
* (`{traitName}:DISPATCH`, `{traitName}:{event}:SUCCESS`, `{traitName}:{event}:ERROR`) and records
|
|
247
|
+
* transitions via `recordTransition()`, then calls `bindEventBus()` and `bindTraitStateGetter()` to populate
|
|
248
|
+
* `window.__orbitalVerification` for Playwright/automation.
|
|
249
|
+
*
|
|
250
|
+
* @packageDocumentation
|
|
251
|
+
*/
|
|
252
|
+
|
|
253
|
+
interface VerificationProviderProps {
|
|
254
|
+
children: ReactNode;
|
|
255
|
+
/** Enable verification wiring (default: true in dev, false in prod) */
|
|
256
|
+
enabled?: boolean;
|
|
257
|
+
/** Optional trait state getter for compiled apps (maps traitName → currentState) */
|
|
258
|
+
traitStateGetter?: (traitName: string) => string | undefined;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Map the compiled path's raw `effectResults` bus payload (persist / fetch /
|
|
262
|
+
* call-service outcomes forwarded from the server) onto `EffectTrace[]`.
|
|
263
|
+
* Exported for unit testing — pure, no React/event-bus dependency.
|
|
264
|
+
*
|
|
265
|
+
* The server's `EffectResult` (`OrbitalServerRuntime.ts`) writes
|
|
266
|
+
* `entityType` — not `entity` — plus `action` / `data.id` / `success` /
|
|
267
|
+
* `denied`; reading only `er['entity']` (never populated) dropped all of
|
|
268
|
+
* that, so a denied or failed persist read back here as a plain 'executed'
|
|
269
|
+
* effect with no entity name.
|
|
270
|
+
*/
|
|
271
|
+
declare function mapServerEffectResults(effectResults: ReadonlyArray<EventPayload>): EffectTrace[];
|
|
272
|
+
/**
|
|
273
|
+
* VerificationProvider — wires the verification registry to the event bus. Renders children unchanged.
|
|
274
|
+
*/
|
|
275
|
+
declare function VerificationProvider({ children, enabled, traitStateGetter, }: VerificationProviderProps): React__default.ReactElement;
|
|
276
|
+
declare namespace VerificationProvider {
|
|
277
|
+
var displayName: string;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* The page's declared `access`, enforced at the page boundary on both
|
|
282
|
+
* execution paths: an `access: authenticated` page's subtree (its whole trait
|
|
283
|
+
* circuit) mounts only once the host's auth provider has resolved an
|
|
284
|
+
* authenticated viewer, and is keyed by that viewer so a different user never
|
|
285
|
+
* inherits the previous user's circuit. Any other resolved authority sends the
|
|
286
|
+
* viewer to the app's declared `signIn` route. Public and undeclared pages pass
|
|
287
|
+
* straight through — no auth wait, no gate.
|
|
288
|
+
*
|
|
289
|
+
* @packageDocumentation
|
|
290
|
+
*/
|
|
291
|
+
|
|
292
|
+
interface PageAccessHostProps {
|
|
293
|
+
/** The page's declared `access:` modifier; absent = no gate. */
|
|
294
|
+
access?: PageAccess;
|
|
295
|
+
/** What the host's auth provider has resolved the viewer to be. */
|
|
296
|
+
authority: ViewerAuthority;
|
|
297
|
+
/** The admitted viewer's identity; a change remounts the page subtree. */
|
|
298
|
+
viewerId?: string;
|
|
299
|
+
/** The app's `signIn:` route. */
|
|
300
|
+
signIn?: string;
|
|
301
|
+
/** The concrete path being opened — handed to `onDenied` as the return path. */
|
|
302
|
+
path: string;
|
|
303
|
+
/** Navigate a non-admitted viewer to `signIn`, carrying `returnTo`. */
|
|
304
|
+
onDenied: (signIn: string, returnTo: string) => void;
|
|
305
|
+
children: React__default.ReactNode;
|
|
306
|
+
}
|
|
307
|
+
declare function PageAccessHost({ access, authority, viewerId, signIn, path, onDenied, children, }: PageAccessHostProps): React__default.ReactElement | null;
|
|
308
|
+
declare namespace PageAccessHost {
|
|
309
|
+
var displayName: string;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
interface RowSetResolution {
|
|
313
|
+
rows: EntityRow[];
|
|
314
|
+
total: number;
|
|
315
|
+
/** No answer yet for the current data (first resolve, or a refresh in flight). */
|
|
316
|
+
loading: boolean;
|
|
317
|
+
}
|
|
318
|
+
interface RowSetResolver {
|
|
319
|
+
resolve(ref: RowSetRef): RowSetResolution;
|
|
320
|
+
/** A write to `entityType` happened: re-resolve every held ref of that type. */
|
|
321
|
+
rowsChanged(entityType: string): void;
|
|
322
|
+
subscribe(listener: () => void): () => void;
|
|
323
|
+
/** Bumps whenever any resolution changes; render caches key on it. */
|
|
324
|
+
epoch(): number;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare function RowSetResolverProvider({ resolver, children }: {
|
|
328
|
+
resolver: RowSetResolver;
|
|
329
|
+
children?: ReactNode;
|
|
330
|
+
}): React.ReactElement;
|
|
331
|
+
/** The resolver alone, without subscribing to its epoch: for writers (the repaint signal), not painters. */
|
|
332
|
+
declare function useRowSetResolverHandle(): RowSetResolver | undefined;
|
|
333
|
+
/** The resolver (or undefined) and its epoch; re-renders the caller when any resolution changes. */
|
|
334
|
+
declare function useRowSetResolver(): {
|
|
335
|
+
resolver: RowSetResolver | undefined;
|
|
336
|
+
epoch: number;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
export { OrbitalProvider, PageAccessHost, RenderSlotProvider, RowSetResolverProvider, SelectionContext, SelectionProvider, UserData, VerificationProvider, mapServerEffectResults, useRenderSlot, useRowSetResolver, useRowSetResolverHandle, useSelection, useSelectionOptional };
|
|
340
|
+
export type { OrbitalProviderProps, PageAccessHostProps, RenderSlotProviderProps, SelectionContextType, VerificationProviderProps };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export { TraitContext, TraitProvider, useTrait, useTraitContext } from '../chunk-ZO6MXAS3.js';
|
|
2
|
+
export { Avl3DContext, useAvl3DConfig, useAvl3DPalette } from '../chunk-EOWMARUB.js';
|
|
3
|
+
export { AwaitingSkeletonContext, EntityBindingContext, EntitySchemaProvider, GameAudioContext, GameAudioProvider, KernelEngineContext, KernelEngineProvider, KernelLoaderMissingError, LanguageLoaderMissingError, OrbitalProvider, PageAccessHost, RenderSlotProvider, RowSetResolverProvider, SeedProgramLoaderMissingError, SelectionContext, SelectionProvider, ServerBridgeProvider, VerificationProvider, mapServerEffectResults, useAwaitingSkeleton, useEntityBindingSnapshot, useEntitySchema, useEntitySchemaOptional, useGameAudioContext, useGameAudioContextOptional, useKernelEngine, useRenderSlot, useRowSetResolver, useRowSetResolverHandle, useSelection, useSelectionOptional, useServerBridge } from '../chunk-GYTPOFVC.js';
|
|
4
|
+
import '../chunk-YDNJLLG6.js';
|
|
5
|
+
import '../chunk-KVQS4GXU.js';
|
|
6
|
+
import '../chunk-L677XGY3.js';
|
|
7
|
+
import '../chunk-FP3WIKTC.js';
|
|
8
|
+
import '../chunk-42FY4RYA.js';
|
|
9
|
+
import '../chunk-FAJDTHWC.js';
|
|
10
|
+
import '../chunk-GAR5TQ5B.js';
|
|
11
|
+
import '../chunk-SJGJJKBY.js';
|
|
12
|
+
import '../chunk-DZ42OJQC.js';
|
|
13
|
+
import '../chunk-P4LNHAFI.js';
|
|
14
|
+
import '../chunk-TZZBINQY.js';
|
|
15
|
+
import '../chunk-PC7K4SK7.js';
|
|
16
|
+
import '../chunk-VFF5OO47.js';
|
|
17
|
+
import '../chunk-DFNZUYX4.js';
|
|
18
|
+
import '../chunk-B4BU77LT.js';
|
|
19
|
+
import '../chunk-6P3MWXYE.js';
|
|
20
|
+
import '../chunk-DYEKAA4L.js';
|
|
21
|
+
import '../chunk-R5O5AUPI.js';
|
|
22
|
+
import '../chunk-L2DEKY4J.js';
|
|
23
|
+
export { DesignThemeProvider, useDesignTheme } from '../chunk-EQAMU2ZC.js';
|
|
24
|
+
export { ANONYMOUS_USER, ARBITRARY_CLASS_STYLE_ID, ArbitraryClassCompilerProvider, CurrentPagePathContext, CurrentPagePathProvider, OrbitalThemeProvider, UserContext, UserProvider, resetArbitraryClassStyles, useArbitraryClassStyles, useCurrentPagePath, useHasPermission, useHasRole, useUser, useUserForEvaluation } from '../chunk-AILY3XPS.js';
|
|
25
|
+
import '../chunk-3BBUBJFF.js';
|
|
26
|
+
import '../chunk-YHMRX6YA.js';
|
|
27
|
+
import '../chunk-MBQAMMSE.js';
|
|
28
|
+
import '../chunk-A2LR6VQQ.js';
|
|
29
|
+
import '../chunk-P4ZFUQFF.js';
|
|
30
|
+
import '../chunk-G7DCAZ22.js';
|