@almadar/ui 1.0.34 → 2.0.1
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/LICENSE +21 -72
- package/dist/components/atoms/Avatar.d.ts +58 -0
- package/dist/components/atoms/Badge.d.ts +8 -0
- package/dist/components/atoms/Box.d.ts +57 -0
- package/dist/components/atoms/Button.d.ts +24 -0
- package/dist/components/atoms/Card.d.ts +18 -0
- package/dist/components/atoms/Center.d.ts +33 -0
- package/dist/components/atoms/Checkbox.d.ts +5 -0
- package/dist/components/atoms/ConditionalWrapper.d.ts +68 -0
- package/dist/components/atoms/Divider.d.ts +29 -0
- package/dist/components/atoms/Icon.d.ts +38 -0
- package/dist/components/atoms/Input.d.ts +26 -0
- package/dist/components/atoms/Label.d.ts +5 -0
- package/dist/components/atoms/LawReferenceTooltip.d.ts +48 -0
- package/dist/components/atoms/Overlay.d.ts +16 -0
- package/dist/components/atoms/ProgressBar.d.ts +63 -0
- package/dist/components/atoms/Radio.d.ts +26 -0
- package/dist/components/atoms/Select.d.ts +12 -0
- package/dist/components/atoms/Spacer.d.ts +25 -0
- package/dist/components/atoms/Spinner.d.ts +6 -0
- package/dist/components/atoms/Stack.d.ts +64 -0
- package/dist/components/atoms/Switch.d.ts +12 -0
- package/dist/components/atoms/TextHighlight.d.ts +53 -0
- package/dist/components/atoms/Textarea.d.ts +5 -0
- package/dist/components/atoms/ThemeSelector.d.ts +21 -0
- package/dist/components/atoms/ThemeToggle.d.ts +33 -0
- package/dist/components/atoms/Typography.d.ts +57 -0
- package/dist/components/atoms/game/ControlButton.d.ts +31 -0
- package/dist/components/atoms/game/HealthBar.d.ts +18 -0
- package/dist/components/atoms/game/ScoreDisplay.d.ts +21 -0
- package/dist/components/atoms/game/Sprite.d.ts +63 -0
- package/dist/components/atoms/game/StateIndicator.d.ts +31 -0
- package/dist/components/atoms/game/index.d.ts +12 -0
- package/dist/components/atoms/index.d.ts +27 -0
- package/dist/components/index.css +11 -9
- package/dist/components/index.d.ts +6 -6951
- package/dist/components/index.js +5 -5
- package/dist/components/molecules/Accordion.d.ts +67 -0
- package/dist/components/molecules/Alert.d.ts +24 -0
- package/dist/components/molecules/Breadcrumb.d.ts +55 -0
- package/dist/components/molecules/ButtonGroup.d.ts +67 -0
- package/dist/components/molecules/Card.d.ts +44 -0
- package/dist/components/molecules/Container.d.ts +30 -0
- package/dist/components/molecules/Drawer.d.ts +46 -0
- package/dist/components/molecules/EmptyState.d.ts +25 -0
- package/dist/components/molecules/ErrorBoundary.d.ts +55 -0
- package/dist/components/molecules/ErrorState.d.ts +13 -0
- package/dist/components/molecules/FilterGroup.d.ts +54 -0
- package/dist/components/molecules/Flex.d.ts +43 -0
- package/dist/components/molecules/FloatingActionButton.d.ts +69 -0
- package/dist/components/molecules/FormField.d.ts +16 -0
- package/dist/components/molecules/FormSectionHeader.d.ts +30 -0
- package/dist/components/molecules/Grid.d.ts +54 -0
- package/dist/components/molecules/InputGroup.d.ts +24 -0
- package/dist/components/molecules/LoadingState.d.ts +7 -0
- package/dist/components/molecules/Menu.d.ts +40 -0
- package/dist/components/molecules/Modal.d.ts +26 -0
- package/dist/components/molecules/Pagination.d.ts +66 -0
- package/dist/components/molecules/Popover.d.ts +39 -0
- package/dist/components/molecules/QuizBlock.d.ts +20 -0
- package/dist/components/molecules/RelationSelect.d.ts +48 -0
- package/dist/components/molecules/RepeatableFormSection.d.ts +58 -0
- package/dist/components/molecules/ScaledDiagram.d.ts +20 -0
- package/dist/components/molecules/SearchInput.d.ts +60 -0
- package/dist/components/molecules/SidePanel.d.ts +47 -0
- package/dist/components/molecules/SimpleGrid.d.ts +27 -0
- package/dist/components/molecules/Skeleton.d.ts +35 -0
- package/dist/components/molecules/Tabs.d.ts +45 -0
- package/dist/components/molecules/Toast.d.ts +35 -0
- package/dist/components/molecules/Tooltip.d.ts +25 -0
- package/dist/components/molecules/ViolationAlert.d.ts +49 -0
- package/dist/components/molecules/WizardNavigation.d.ts +51 -0
- package/dist/components/molecules/WizardProgress.d.ts +42 -0
- package/dist/components/molecules/game/StatBadge.d.ts +27 -0
- package/dist/components/molecules/index.d.ts +38 -0
- package/dist/components/molecules/markdown/CodeBlock.d.ts +25 -0
- package/dist/components/molecules/markdown/MarkdownContent.d.ts +26 -0
- package/dist/components/organisms/CardGrid.d.ts +72 -0
- package/dist/components/organisms/Chart.d.ts +59 -0
- package/dist/components/organisms/CodeViewer.d.ts +67 -0
- package/dist/components/organisms/ComponentPatterns.d.ts +441 -0
- package/dist/components/organisms/ConfirmDialog.d.ts +50 -0
- package/dist/components/organisms/ContentRenderer.d.ts +23 -0
- package/dist/components/organisms/CustomPattern.d.ts +104 -0
- package/dist/components/organisms/DataTable.d.ts +63 -0
- package/dist/components/organisms/DetailPanel.d.ts +71 -0
- package/dist/components/organisms/DocumentViewer.d.ts +60 -0
- package/dist/components/organisms/DrawerSlot.d.ts +39 -0
- package/dist/components/organisms/Form.d.ts +203 -0
- package/dist/components/organisms/FormSection.d.ts +59 -0
- package/dist/components/organisms/GraphCanvas.d.ts +69 -0
- package/dist/components/organisms/Header.d.ts +110 -0
- package/dist/components/organisms/JazariStateMachine.d.ts +60 -0
- package/dist/components/organisms/LayoutPatterns.d.ts +181 -0
- package/dist/components/organisms/List.d.ts +76 -0
- package/dist/components/organisms/MasterDetail.d.ts +43 -0
- package/dist/components/organisms/MediaGallery.d.ts +66 -0
- package/dist/components/organisms/Meter.d.ts +58 -0
- package/dist/components/organisms/ModalSlot.d.ts +35 -0
- package/dist/components/organisms/Navigation.d.ts +68 -0
- package/dist/components/organisms/OrbitalVisualization.d.ts +48 -0
- package/dist/components/organisms/PageHeader.d.ts +59 -0
- package/dist/components/organisms/Section.d.ts +44 -0
- package/dist/components/organisms/Sidebar.d.ts +65 -0
- package/dist/components/organisms/SignaturePad.d.ts +44 -0
- package/dist/components/organisms/Split.d.ts +42 -0
- package/dist/components/organisms/StatCard.d.ts +66 -0
- package/dist/components/organisms/StateMachineView.d.ts +36 -0
- package/dist/components/organisms/Table.d.ts +99 -0
- package/dist/components/organisms/Timeline.d.ts +58 -0
- package/dist/components/organisms/ToastSlot.d.ts +38 -0
- package/dist/components/organisms/UISlotRenderer.d.ts +112 -0
- package/dist/components/organisms/WizardContainer.d.ts +160 -0
- package/dist/components/organisms/book/BookChapterView.d.ts +17 -0
- package/dist/components/organisms/book/BookCoverPage.d.ts +19 -0
- package/dist/components/organisms/book/BookNavBar.d.ts +18 -0
- package/dist/components/organisms/book/BookTableOfContents.d.ts +18 -0
- package/dist/components/organisms/book/BookViewer.d.ts +28 -0
- package/dist/components/organisms/book/index.d.ts +7 -0
- package/dist/components/organisms/book/types.d.ts +77 -0
- package/dist/components/organisms/game/BattleBoard.d.ts +167 -0
- package/dist/components/organisms/game/CanvasEffect.d.ts +68 -0
- package/dist/components/organisms/game/CastleBoard.d.ts +85 -0
- package/dist/components/organisms/game/DialogueBox.d.ts +73 -0
- package/dist/components/organisms/game/GameAudioProvider.d.ts +47 -0
- package/dist/components/organisms/game/GameAudioToggle.d.ts +28 -0
- package/dist/components/organisms/game/GameHud.d.ts +40 -0
- package/dist/components/organisms/game/GameMenu.d.ts +43 -0
- package/dist/components/organisms/game/GameOverScreen.d.ts +56 -0
- package/dist/components/organisms/game/InventoryPanel.d.ts +67 -0
- package/dist/components/organisms/game/IsometricCanvas.d.ts +123 -0
- package/dist/components/organisms/game/TraitSlot.d.ts +86 -0
- package/dist/components/organisms/game/TraitStateViewer.d.ts +53 -0
- package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +26 -0
- package/dist/components/organisms/game/WorldMapBoard.d.ts +147 -0
- package/dist/components/organisms/game/editor/editorUtils.d.ts +109 -0
- package/dist/components/organisms/game/editor/index.d.ts +9 -0
- package/dist/components/organisms/game/hooks/useBattleState.d.ts +35 -0
- package/dist/components/organisms/game/hooks/useCamera.d.ts +41 -0
- package/dist/components/organisms/game/hooks/useGameAudio.d.ts +47 -0
- package/dist/components/organisms/game/hooks/useImageCache.d.ts +16 -0
- package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +45 -0
- package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +43 -0
- package/dist/components/organisms/game/index.d.ts +36 -0
- package/dist/components/organisms/game/managers/PhysicsManager.d.ts +103 -0
- package/dist/components/organisms/game/types/effects.d.ts +253 -0
- package/dist/{isometric-ynNHVPZx.d.ts → components/organisms/game/types/isometric.d.ts} +4 -6
- package/dist/components/organisms/game/types/spriteAnimation.d.ts +73 -0
- package/dist/components/organisms/game/utils/canvasEffects.d.ts +50 -0
- package/dist/components/organisms/game/utils/combatPresets.d.ts +15 -0
- package/dist/components/organisms/game/utils/isometric.d.ts +61 -0
- package/dist/components/organisms/game/utils/spriteAnimation.d.ts +57 -0
- package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +16 -0
- package/dist/components/organisms/index.d.ts +37 -0
- package/dist/components/organisms/layout/DashboardGrid.d.ts +34 -0
- package/dist/components/organisms/layout/MasterDetail.d.ts +32 -0
- package/dist/components/organisms/layout/SplitPane.d.ts +34 -0
- package/dist/components/organisms/layout/TabbedContainer.d.ts +42 -0
- package/dist/components/organisms/layout/index.d.ts +9 -0
- package/dist/components/organisms/types.d.ts +65 -0
- package/dist/components/templates/AuthLayout.d.ts +14 -0
- package/dist/components/templates/BattleTemplate.d.ts +25 -0
- package/dist/components/templates/CastleTemplate.d.ts +23 -0
- package/dist/components/templates/CounterTemplate.d.ts +44 -0
- package/dist/components/templates/DashboardLayout.d.ts +32 -0
- package/dist/components/templates/GameShell.d.ts +33 -0
- package/dist/components/templates/GameTemplate.d.ts +36 -0
- package/dist/components/templates/GenericAppTemplate.d.ts +30 -0
- package/dist/components/templates/WorldMapTemplate.d.ts +29 -0
- package/dist/components/templates/index.d.ts +10 -0
- package/dist/components/templates/types.d.ts +17 -0
- package/dist/context/DesignThemeContext.d.ts +21 -0
- package/dist/{ThemeContext-D9xUORq5.d.ts → context/ThemeContext.d.ts} +15 -16
- package/dist/context/UISlotContext.d.ts +75 -0
- package/dist/context/UserContext.d.ts +111 -0
- package/dist/context/index.d.ts +6 -206
- package/dist/{event-bus-types-CjJduURa.d.ts → hooks/event-bus-types.d.ts} +4 -6
- package/dist/hooks/index.d.ts +24 -1090
- package/dist/hooks/useAgentChat.d.ts +104 -0
- package/dist/hooks/useAuthContext.d.ts +25 -0
- package/dist/hooks/useCompile.d.ts +22 -0
- package/dist/hooks/useDeepAgentGeneration.d.ts +46 -0
- package/dist/hooks/useEntities.d.ts +52 -0
- package/dist/hooks/useEntityData.d.ts +155 -0
- package/dist/hooks/useEntityMutations.d.ts +80 -0
- package/dist/hooks/useEventBus.d.ts +96 -0
- package/dist/hooks/useExtensions.d.ts +32 -0
- package/dist/hooks/useFileEditor.d.ts +32 -0
- package/dist/hooks/useFileSystem.d.ts +40 -0
- package/dist/hooks/useGitHub.d.ts +58 -0
- package/dist/hooks/useOrbitalHistory.d.ts +39 -0
- package/dist/hooks/useOrbitalMutations.d.ts +95 -0
- package/dist/hooks/usePreview.d.ts +57 -0
- package/dist/hooks/useQuerySingleton.d.ts +78 -0
- package/dist/hooks/useResolvedEntity.d.ts +32 -0
- package/dist/hooks/useTranslate.d.ts +35 -0
- package/dist/hooks/useUIEvents.d.ts +35 -0
- package/dist/{useUISlots-D0mttBSP.d.ts → hooks/useUISlots.d.ts} +8 -9
- package/dist/hooks/useValidation.d.ts +46 -0
- package/dist/lib/api-client.d.ts +42 -0
- package/dist/lib/cn.d.ts +6 -0
- package/dist/lib/debug.d.ts +43 -0
- package/dist/lib/debugRegistry.d.ts +29 -0
- package/dist/lib/debugUtils.d.ts +27 -0
- package/dist/lib/entityDebug.d.ts +38 -0
- package/dist/lib/getNestedValue.d.ts +33 -0
- package/dist/lib/guardRegistry.d.ts +32 -0
- package/dist/lib/index.d.ts +17 -426
- package/dist/lib/jazari/svg-paths.d.ts +61 -0
- package/dist/lib/parseContentSegments.d.ts +41 -0
- package/dist/lib/tickRegistry.d.ts +40 -0
- package/dist/lib/traitRegistry.d.ts +34 -0
- package/dist/lib/verificationRegistry.d.ts +107 -0
- package/dist/{cn-BoBXsxuX.d.ts → lib/visualizer/index.d.ts} +18 -69
- package/dist/locales/index.d.ts +5 -7
- package/dist/providers/EventBusProvider.d.ts +60 -0
- package/dist/providers/FetchedDataProvider.d.ts +105 -0
- package/dist/providers/OfflineModeProvider.d.ts +79 -0
- package/dist/providers/OrbitalProvider.d.ts +101 -0
- package/dist/providers/SelectionProvider.d.ts +81 -0
- package/dist/providers/VerificationProvider.d.ts +63 -0
- package/dist/providers/index.css +11 -9
- package/dist/providers/index.d.ts +16 -464
- package/dist/providers/index.js +3 -3
- package/dist/renderer/client-effect-executor.d.ts +68 -0
- package/dist/renderer/data-resolver.d.ts +68 -0
- package/dist/renderer/index.d.ts +22 -519
- package/dist/renderer/index.js +1 -1
- package/dist/renderer/init.d.ts +14 -0
- package/dist/renderer/navigation.d.ts +142 -0
- package/dist/{offline-executor-CHr4uAhf.d.ts → renderer/offline-executor.d.ts} +9 -172
- package/dist/renderer/pattern-resolver.d.ts +91 -0
- package/dist/renderer/slot-definitions.d.ts +45 -0
- package/dist/renderer/types.d.ts +160 -0
- package/dist/renderer/useClientEffects.d.ts +88 -0
- package/dist/stores/entityStore.d.ts +99 -0
- package/dist/stores/filtering.d.ts +51 -0
- package/dist/stores/index.d.ts +4 -148
- package/package.json +12 -10
- package/dist/components/organisms/game/three/index.d.ts +0 -1162
- package/dist/{chunk-FZJ73RDM.js → chunk-RIZ76XRF.js} +1 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SelectionProvider - Manages selected entity state
|
|
3
|
+
*
|
|
4
|
+
* Separates selection state from the EventBusProvider to maintain
|
|
5
|
+
* clean architecture (event bus stays pure pub/sub).
|
|
6
|
+
*
|
|
7
|
+
* This provider:
|
|
8
|
+
* - Listens to UI:VIEW and UI:SELECT events to track selected entity
|
|
9
|
+
* - Listens to UI:CLOSE, UI:DESELECT, UI:CANCEL to clear selection
|
|
10
|
+
* - Provides the selected entity to any component that needs it
|
|
11
|
+
*
|
|
12
|
+
* @packageDocumentation
|
|
13
|
+
*/
|
|
14
|
+
import React, { type ReactNode } from 'react';
|
|
15
|
+
export interface SelectionContextType<T = unknown> {
|
|
16
|
+
/** The currently selected entity */
|
|
17
|
+
selected: T | null;
|
|
18
|
+
/** Manually set the selected entity */
|
|
19
|
+
setSelected: (entity: T | null) => void;
|
|
20
|
+
/** Clear the selection */
|
|
21
|
+
clearSelection: () => void;
|
|
22
|
+
/** Check if an entity is selected */
|
|
23
|
+
isSelected: (entity: T) => boolean;
|
|
24
|
+
}
|
|
25
|
+
declare const SelectionContext: React.Context<SelectionContextType<unknown> | null>;
|
|
26
|
+
interface SelectionProviderProps {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
/** Enable debug logging */
|
|
29
|
+
debug?: boolean;
|
|
30
|
+
/** Custom comparison function for isSelected */
|
|
31
|
+
compareEntities?: (a: unknown, b: unknown) => boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Provider component for selection state.
|
|
35
|
+
*
|
|
36
|
+
* Must be used within an EventBusProvider.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* function OrderListPage() {
|
|
41
|
+
* return (
|
|
42
|
+
* <EventBusProvider>
|
|
43
|
+
* <SelectionProvider debug={process.env.NODE_ENV === 'development'}>
|
|
44
|
+
* <OrderTable />
|
|
45
|
+
* <OrderDetailDrawer />
|
|
46
|
+
* </SelectionProvider>
|
|
47
|
+
* </EventBusProvider>
|
|
48
|
+
* );
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare function SelectionProvider({ children, debug, compareEntities, }: SelectionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
/**
|
|
54
|
+
* Hook to access selection state.
|
|
55
|
+
*
|
|
56
|
+
* @throws Error if used outside SelectionProvider
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```tsx
|
|
60
|
+
* function OrderDetailDrawer() {
|
|
61
|
+
* const { selected, clearSelection } = useSelection<Order>();
|
|
62
|
+
*
|
|
63
|
+
* if (!selected) return null;
|
|
64
|
+
*
|
|
65
|
+
* return (
|
|
66
|
+
* <Drawer onClose={clearSelection}>
|
|
67
|
+
* <OrderDetail order={selected} />
|
|
68
|
+
* </Drawer>
|
|
69
|
+
* );
|
|
70
|
+
* }
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function useSelection<T = unknown>(): SelectionContextType<T>;
|
|
74
|
+
/**
|
|
75
|
+
* Hook to access selection state with fallback for components
|
|
76
|
+
* that may be used outside SelectionProvider.
|
|
77
|
+
*
|
|
78
|
+
* Returns null if no SelectionProvider is found.
|
|
79
|
+
*/
|
|
80
|
+
export declare function useSelectionOptional<T = unknown>(): SelectionContextType<T> | null;
|
|
81
|
+
export { SelectionContext };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VerificationProvider
|
|
3
|
+
*
|
|
4
|
+
* Wires the verification registry to both compiled and runtime execution paths.
|
|
5
|
+
*
|
|
6
|
+
* **Compiled apps**: Intercepts event bus lifecycle events
|
|
7
|
+
* (`{traitName}:DISPATCH`, `{traitName}:{event}:SUCCESS`, `{traitName}:{event}:ERROR`)
|
|
8
|
+
* emitted by `useOrbitalBridge` and records transitions via `recordTransition()`.
|
|
9
|
+
*
|
|
10
|
+
* **Runtime apps**: Accepts an optional `StateMachineManager` and wires its
|
|
11
|
+
* `TransitionObserver` to `recordTransition()`.
|
|
12
|
+
*
|
|
13
|
+
* **Both**: Calls `bindEventBus()` and `bindTraitStateGetter()` to populate
|
|
14
|
+
* `window.__orbitalVerification` for Playwright/automation.
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
import React, { type ReactNode } from 'react';
|
|
19
|
+
/**
|
|
20
|
+
* Observer interface compatible with `StateMachineManager.setObserver()`.
|
|
21
|
+
* Defined locally to avoid hard dependency on `@almadar/runtime`.
|
|
22
|
+
*/
|
|
23
|
+
interface TransitionObserver {
|
|
24
|
+
onTransition(trace: {
|
|
25
|
+
traitName: string;
|
|
26
|
+
from: string;
|
|
27
|
+
to: string;
|
|
28
|
+
event: string;
|
|
29
|
+
guardResult?: boolean;
|
|
30
|
+
effects: Array<{
|
|
31
|
+
type: string;
|
|
32
|
+
args: unknown[];
|
|
33
|
+
status: 'executed' | 'failed' | 'skipped';
|
|
34
|
+
error?: string;
|
|
35
|
+
durationMs?: number;
|
|
36
|
+
}>;
|
|
37
|
+
}): void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Minimal interface for StateMachineManager — avoids importing the full runtime.
|
|
41
|
+
*/
|
|
42
|
+
interface StateMachineManagerLike {
|
|
43
|
+
setObserver(observer: TransitionObserver): void;
|
|
44
|
+
getState?(traitName: string): string | undefined;
|
|
45
|
+
}
|
|
46
|
+
export interface VerificationProviderProps {
|
|
47
|
+
children: ReactNode;
|
|
48
|
+
/** Enable verification wiring (default: true in dev, false in prod) */
|
|
49
|
+
enabled?: boolean;
|
|
50
|
+
/** Optional runtime StateMachineManager for interpreted mode */
|
|
51
|
+
runtimeManager?: StateMachineManagerLike;
|
|
52
|
+
/** Optional trait state getter for compiled apps (maps traitName → currentState) */
|
|
53
|
+
traitStateGetter?: (traitName: string) => string | undefined;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* VerificationProvider — wires the verification registry to the event bus
|
|
57
|
+
* and optional runtime manager. Renders children unchanged.
|
|
58
|
+
*/
|
|
59
|
+
export declare function VerificationProvider({ children, enabled, runtimeManager, traitStateGetter, }: VerificationProviderProps): React.ReactElement;
|
|
60
|
+
export declare namespace VerificationProvider {
|
|
61
|
+
var displayName: string;
|
|
62
|
+
}
|
|
63
|
+
export {};
|
package/dist/providers/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* node_modules/.pnpm/katex@0.16.33/node_modules/katex/dist/katex.min.css */
|
|
2
2
|
@font-face {
|
|
3
3
|
font-display: block;
|
|
4
4
|
font-family: KaTeX_AMS;
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
border-color: currentColor;
|
|
214
214
|
}
|
|
215
215
|
.katex .katex-version:after {
|
|
216
|
-
content: "0.16.
|
|
216
|
+
content: "0.16.33";
|
|
217
217
|
}
|
|
218
218
|
.katex .katex-mathml {
|
|
219
219
|
clip: rect(1px, 1px, 1px, 1px);
|
|
@@ -988,6 +988,15 @@
|
|
|
988
988
|
.katex svg {
|
|
989
989
|
fill: currentColor;
|
|
990
990
|
stroke: currentColor;
|
|
991
|
+
display: block;
|
|
992
|
+
height: inherit;
|
|
993
|
+
position: absolute;
|
|
994
|
+
width: 100%;
|
|
995
|
+
}
|
|
996
|
+
.katex svg path {
|
|
997
|
+
stroke: none;
|
|
998
|
+
}
|
|
999
|
+
.katex svg {
|
|
991
1000
|
fill-rule: nonzero;
|
|
992
1001
|
fill-opacity: 1;
|
|
993
1002
|
stroke-width: 1;
|
|
@@ -997,13 +1006,6 @@
|
|
|
997
1006
|
stroke-dasharray: none;
|
|
998
1007
|
stroke-dashoffset: 0;
|
|
999
1008
|
stroke-opacity: 1;
|
|
1000
|
-
display: block;
|
|
1001
|
-
height: inherit;
|
|
1002
|
-
position: absolute;
|
|
1003
|
-
width: 100%;
|
|
1004
|
-
}
|
|
1005
|
-
.katex svg path {
|
|
1006
|
-
stroke: none;
|
|
1007
1009
|
}
|
|
1008
1010
|
.katex img {
|
|
1009
1011
|
border-style: none;
|
|
@@ -1,465 +1,17 @@
|
|
|
1
|
-
import React__default, { ReactNode } from 'react';
|
|
2
|
-
import { b as ThemeDefinition } from '../ThemeContext-D9xUORq5.js';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { E as EventBusContextType } from '../event-bus-types-CjJduURa.js';
|
|
5
|
-
import { U as UseOfflineExecutorResult, a as UseOfflineExecutorOptions } from '../offline-executor-CHr4uAhf.js';
|
|
6
|
-
|
|
7
1
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* Use
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
declare const EventBusContext: React__default.Context<EventBusContextTypeExtended | null>;
|
|
26
|
-
interface EventBusProviderProps {
|
|
27
|
-
children: ReactNode;
|
|
28
|
-
/** Enable debug logging in development */
|
|
29
|
-
debug?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Provider component for the page event bus.
|
|
33
|
-
*
|
|
34
|
-
* This is a pure pub/sub event bus. For selection state,
|
|
35
|
-
* use SelectionProvider which listens to events and maintains state.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```tsx
|
|
39
|
-
* function TaskDetailPage() {
|
|
40
|
-
* return (
|
|
41
|
-
* <EventBusProvider debug={process.env.NODE_ENV === 'development'}>
|
|
42
|
-
* <SelectionProvider>
|
|
43
|
-
* <TaskHeader />
|
|
44
|
-
* <TaskForm />
|
|
45
|
-
* <TaskActions />
|
|
46
|
-
* </SelectionProvider>
|
|
47
|
-
* </EventBusProvider>
|
|
48
|
-
* );
|
|
49
|
-
* }
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
declare function EventBusProvider({ children, debug }: EventBusProviderProps): react_jsx_runtime.JSX.Element;
|
|
53
|
-
|
|
54
|
-
interface SelectionContextType<T = unknown> {
|
|
55
|
-
/** The currently selected entity */
|
|
56
|
-
selected: T | null;
|
|
57
|
-
/** Manually set the selected entity */
|
|
58
|
-
setSelected: (entity: T | null) => void;
|
|
59
|
-
/** Clear the selection */
|
|
60
|
-
clearSelection: () => void;
|
|
61
|
-
/** Check if an entity is selected */
|
|
62
|
-
isSelected: (entity: T) => boolean;
|
|
63
|
-
}
|
|
64
|
-
declare const SelectionContext: React__default.Context<SelectionContextType<unknown> | null>;
|
|
65
|
-
interface SelectionProviderProps {
|
|
66
|
-
children: ReactNode;
|
|
67
|
-
/** Enable debug logging */
|
|
68
|
-
debug?: boolean;
|
|
69
|
-
/** Custom comparison function for isSelected */
|
|
70
|
-
compareEntities?: (a: unknown, b: unknown) => boolean;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Provider component for selection state.
|
|
74
|
-
*
|
|
75
|
-
* Must be used within an EventBusProvider.
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```tsx
|
|
79
|
-
* function OrderListPage() {
|
|
80
|
-
* return (
|
|
81
|
-
* <EventBusProvider>
|
|
82
|
-
* <SelectionProvider debug={process.env.NODE_ENV === 'development'}>
|
|
83
|
-
* <OrderTable />
|
|
84
|
-
* <OrderDetailDrawer />
|
|
85
|
-
* </SelectionProvider>
|
|
86
|
-
* </EventBusProvider>
|
|
87
|
-
* );
|
|
88
|
-
* }
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
|
-
declare function SelectionProvider({ children, debug, compareEntities, }: SelectionProviderProps): react_jsx_runtime.JSX.Element;
|
|
92
|
-
/**
|
|
93
|
-
* Hook to access selection state.
|
|
94
|
-
*
|
|
95
|
-
* @throws Error if used outside SelectionProvider
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* ```tsx
|
|
99
|
-
* function OrderDetailDrawer() {
|
|
100
|
-
* const { selected, clearSelection } = useSelection<Order>();
|
|
101
|
-
*
|
|
102
|
-
* if (!selected) return null;
|
|
103
|
-
*
|
|
104
|
-
* return (
|
|
105
|
-
* <Drawer onClose={clearSelection}>
|
|
106
|
-
* <OrderDetail order={selected} />
|
|
107
|
-
* </Drawer>
|
|
108
|
-
* );
|
|
109
|
-
* }
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
declare function useSelection<T = unknown>(): SelectionContextType<T>;
|
|
113
|
-
/**
|
|
114
|
-
* Hook to access selection state with fallback for components
|
|
115
|
-
* that may be used outside SelectionProvider.
|
|
116
|
-
*
|
|
117
|
-
* Returns null if no SelectionProvider is found.
|
|
118
|
-
*/
|
|
119
|
-
declare function useSelectionOptional<T = unknown>(): SelectionContextType<T> | null;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* FetchedDataProvider
|
|
123
|
-
*
|
|
124
|
-
* Provides server-fetched entity data to the client runtime.
|
|
125
|
-
* This context stores data returned from compiled event handlers
|
|
126
|
-
* via the `data` field in EventResponse.
|
|
127
|
-
*
|
|
128
|
-
* Data Flow:
|
|
129
|
-
* 1. Client sends event to server
|
|
130
|
-
* 2. Server executes compiled handler with fetch effects
|
|
131
|
-
* 3. Server returns { data: { EntityName: [...records] }, clientEffects: [...] }
|
|
132
|
-
* 4. Provider stores data in this context
|
|
133
|
-
* 5. Pattern components access data via useFetchedData hook
|
|
134
|
-
*
|
|
135
|
-
* Used by both Builder preview and compiled shell.
|
|
136
|
-
*
|
|
137
|
-
* @packageDocumentation
|
|
138
|
-
*/
|
|
139
|
-
|
|
140
|
-
interface EntityRecord {
|
|
141
|
-
id: string;
|
|
142
|
-
[key: string]: unknown;
|
|
143
|
-
}
|
|
144
|
-
interface FetchedDataState {
|
|
145
|
-
/** Entity data by entity name (e.g., { Task: [...], User: [...] }) */
|
|
146
|
-
data: Record<string, EntityRecord[]>;
|
|
147
|
-
/** Timestamp of last fetch per entity */
|
|
148
|
-
fetchedAt: Record<string, number>;
|
|
149
|
-
/** Whether data is currently being fetched */
|
|
150
|
-
loading: boolean;
|
|
151
|
-
/** Last error message */
|
|
152
|
-
error: string | null;
|
|
153
|
-
}
|
|
154
|
-
interface FetchedDataContextValue {
|
|
155
|
-
/** Get all records for an entity */
|
|
156
|
-
getData: (entityName: string) => EntityRecord[];
|
|
157
|
-
/** Get a single record by ID */
|
|
158
|
-
getById: (entityName: string, id: string) => EntityRecord | undefined;
|
|
159
|
-
/** Check if entity data exists */
|
|
160
|
-
hasData: (entityName: string) => boolean;
|
|
161
|
-
/** Get fetch timestamp for entity */
|
|
162
|
-
getFetchedAt: (entityName: string) => number | undefined;
|
|
163
|
-
/** Update data from server response */
|
|
164
|
-
setData: (data: Record<string, unknown[]>) => void;
|
|
165
|
-
/** Clear all fetched data */
|
|
166
|
-
clearData: () => void;
|
|
167
|
-
/** Clear data for specific entity */
|
|
168
|
-
clearEntity: (entityName: string) => void;
|
|
169
|
-
/** Current loading state */
|
|
170
|
-
loading: boolean;
|
|
171
|
-
/** Set loading state */
|
|
172
|
-
setLoading: (loading: boolean) => void;
|
|
173
|
-
/** Current error */
|
|
174
|
-
error: string | null;
|
|
175
|
-
/** Set error */
|
|
176
|
-
setError: (error: string | null) => void;
|
|
177
|
-
}
|
|
178
|
-
declare const FetchedDataContext: React__default.Context<FetchedDataContextValue | null>;
|
|
179
|
-
interface FetchedDataProviderProps {
|
|
180
|
-
/** Initial data (optional) */
|
|
181
|
-
initialData?: Record<string, unknown[]>;
|
|
182
|
-
/** Children */
|
|
183
|
-
children: React__default.ReactNode;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* FetchedDataProvider - Provides server-fetched entity data
|
|
187
|
-
*
|
|
188
|
-
* @example
|
|
189
|
-
* ```tsx
|
|
190
|
-
* <FetchedDataProvider>
|
|
191
|
-
* <OrbitalProvider>
|
|
192
|
-
* <App />
|
|
193
|
-
* </OrbitalProvider>
|
|
194
|
-
* </FetchedDataProvider>
|
|
195
|
-
* ```
|
|
196
|
-
*/
|
|
197
|
-
declare function FetchedDataProvider({ initialData, children, }: FetchedDataProviderProps): React__default.ReactElement;
|
|
198
|
-
/**
|
|
199
|
-
* Access the fetched data context.
|
|
200
|
-
* Returns null if not within a FetchedDataProvider.
|
|
201
|
-
*/
|
|
202
|
-
declare function useFetchedDataContext(): FetchedDataContextValue | null;
|
|
203
|
-
/**
|
|
204
|
-
* Access fetched data with fallback behavior.
|
|
205
|
-
* If not in a provider, returns empty data.
|
|
206
|
-
*/
|
|
207
|
-
declare function useFetchedData(): FetchedDataContextValue;
|
|
208
|
-
/**
|
|
209
|
-
* Access fetched data for a specific entity.
|
|
210
|
-
* Provides a convenient API for entity-specific operations.
|
|
211
|
-
*/
|
|
212
|
-
declare function useFetchedEntity(entityName: string): {
|
|
213
|
-
/** All fetched records for this entity */
|
|
214
|
-
records: EntityRecord[];
|
|
215
|
-
/** Get a record by ID */
|
|
216
|
-
getById: (id: string) => EntityRecord | undefined;
|
|
217
|
-
/** Whether data has been fetched for this entity */
|
|
218
|
-
hasData: boolean;
|
|
219
|
-
/** When data was last fetched */
|
|
220
|
-
fetchedAt: number | undefined;
|
|
221
|
-
/** Whether data is loading */
|
|
222
|
-
loading: boolean;
|
|
223
|
-
/** Current error */
|
|
224
|
-
error: string | null;
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* OrbitalProvider
|
|
229
|
-
*
|
|
230
|
-
* Unified provider that combines all required contexts for Orbital applications.
|
|
231
|
-
* Provides a single import for both Builder preview and compiled shell.
|
|
232
|
-
*
|
|
233
|
-
* Combines:
|
|
234
|
-
* - ThemeProvider - Theme and color mode management
|
|
235
|
-
* - EventBusProvider - Page-scoped event pub/sub
|
|
236
|
-
* - SelectionProvider - Selected entity tracking
|
|
237
|
-
* - FetchedDataProvider - Server-fetched entity data
|
|
238
|
-
*
|
|
239
|
-
* @packageDocumentation
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
|
-
interface OrbitalProviderProps {
|
|
243
|
-
children: ReactNode;
|
|
244
|
-
/** Custom themes (merged with built-in themes) */
|
|
245
|
-
themes?: ThemeDefinition[];
|
|
246
|
-
/** Default theme name */
|
|
247
|
-
defaultTheme?: string;
|
|
248
|
-
/** Default color mode */
|
|
249
|
-
defaultMode?: 'light' | 'dark' | 'system';
|
|
250
|
-
/** Optional target element ref for scoped theme application */
|
|
251
|
-
targetRef?: React__default.RefObject<HTMLElement>;
|
|
252
|
-
/** Skip ThemeProvider (use when already inside a themed container like shadow DOM) */
|
|
253
|
-
skipTheme?: boolean;
|
|
254
|
-
/** Enable debug logging for all providers */
|
|
255
|
-
debug?: boolean;
|
|
256
|
-
/** Initial fetched data */
|
|
257
|
-
initialData?: Record<string, unknown[]>;
|
|
258
|
-
/**
|
|
259
|
-
* Enable Suspense mode. When true, UISlotRenderer wraps each slot in
|
|
260
|
-
* `<ErrorBoundary><Suspense>` with Skeleton fallbacks.
|
|
261
|
-
* Opt-in — existing isLoading prop pattern still works when false/absent.
|
|
262
|
-
*/
|
|
263
|
-
suspense?: boolean;
|
|
264
|
-
/**
|
|
265
|
-
* Enable verification wiring for visual testing.
|
|
266
|
-
* When true, lifecycle events are recorded and exposed via
|
|
267
|
-
* `window.__orbitalVerification` for Playwright/automation.
|
|
268
|
-
* Default: true in development, false in production.
|
|
269
|
-
*/
|
|
270
|
-
verification?: boolean;
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* OrbitalProvider - Unified context provider for Orbital applications
|
|
274
|
-
*
|
|
275
|
-
* Wraps your application with all required providers in the correct order.
|
|
276
|
-
*
|
|
277
|
-
* @example
|
|
278
|
-
* ```tsx
|
|
279
|
-
* // Basic usage
|
|
280
|
-
* function App() {
|
|
281
|
-
* return (
|
|
282
|
-
* <OrbitalProvider>
|
|
283
|
-
* <Router>
|
|
284
|
-
* <Routes />
|
|
285
|
-
* </Router>
|
|
286
|
-
* </OrbitalProvider>
|
|
287
|
-
* );
|
|
288
|
-
* }
|
|
289
|
-
*
|
|
290
|
-
* // With configuration
|
|
291
|
-
* function App() {
|
|
292
|
-
* return (
|
|
293
|
-
* <OrbitalProvider
|
|
294
|
-
* defaultTheme="minimalist"
|
|
295
|
-
* defaultMode="dark"
|
|
296
|
-
* debug={process.env.NODE_ENV === 'development'}
|
|
297
|
-
* >
|
|
298
|
-
* <Router>
|
|
299
|
-
* <Routes />
|
|
300
|
-
* </Router>
|
|
301
|
-
* </OrbitalProvider>
|
|
302
|
-
* );
|
|
303
|
-
* }
|
|
304
|
-
*
|
|
305
|
-
* // With custom themes from schema
|
|
306
|
-
* import { THEMES } from './generated/theme-manifest';
|
|
307
|
-
*
|
|
308
|
-
* function App() {
|
|
309
|
-
* return (
|
|
310
|
-
* <OrbitalProvider themes={THEMES} defaultTheme="ocean">
|
|
311
|
-
* <Router>
|
|
312
|
-
* <Routes />
|
|
313
|
-
* </Router>
|
|
314
|
-
* </OrbitalProvider>
|
|
315
|
-
* );
|
|
316
|
-
* }
|
|
317
|
-
* ```
|
|
318
|
-
*/
|
|
319
|
-
declare function OrbitalProvider({ children, themes, defaultTheme, defaultMode, targetRef, skipTheme, debug, initialData, suspense, verification, }: OrbitalProviderProps): React__default.ReactElement;
|
|
320
|
-
declare namespace OrbitalProvider {
|
|
321
|
-
var displayName: string;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* VerificationProvider
|
|
326
|
-
*
|
|
327
|
-
* Wires the verification registry to both compiled and runtime execution paths.
|
|
328
|
-
*
|
|
329
|
-
* **Compiled apps**: Intercepts event bus lifecycle events
|
|
330
|
-
* (`{traitName}:DISPATCH`, `{traitName}:{event}:SUCCESS`, `{traitName}:{event}:ERROR`)
|
|
331
|
-
* emitted by `useOrbitalBridge` and records transitions via `recordTransition()`.
|
|
332
|
-
*
|
|
333
|
-
* **Runtime apps**: Accepts an optional `StateMachineManager` and wires its
|
|
334
|
-
* `TransitionObserver` to `recordTransition()`.
|
|
335
|
-
*
|
|
336
|
-
* **Both**: Calls `bindEventBus()` and `bindTraitStateGetter()` to populate
|
|
337
|
-
* `window.__orbitalVerification` for Playwright/automation.
|
|
338
|
-
*
|
|
339
|
-
* @packageDocumentation
|
|
340
|
-
*/
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Observer interface compatible with `StateMachineManager.setObserver()`.
|
|
344
|
-
* Defined locally to avoid hard dependency on `@almadar/runtime`.
|
|
345
|
-
*/
|
|
346
|
-
interface TransitionObserver {
|
|
347
|
-
onTransition(trace: {
|
|
348
|
-
traitName: string;
|
|
349
|
-
from: string;
|
|
350
|
-
to: string;
|
|
351
|
-
event: string;
|
|
352
|
-
guardResult?: boolean;
|
|
353
|
-
effects: Array<{
|
|
354
|
-
type: string;
|
|
355
|
-
args: unknown[];
|
|
356
|
-
status: 'executed' | 'failed' | 'skipped';
|
|
357
|
-
error?: string;
|
|
358
|
-
durationMs?: number;
|
|
359
|
-
}>;
|
|
360
|
-
}): void;
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* Minimal interface for StateMachineManager — avoids importing the full runtime.
|
|
364
|
-
*/
|
|
365
|
-
interface StateMachineManagerLike {
|
|
366
|
-
setObserver(observer: TransitionObserver): void;
|
|
367
|
-
getState?(traitName: string): string | undefined;
|
|
368
|
-
}
|
|
369
|
-
interface VerificationProviderProps {
|
|
370
|
-
children: ReactNode;
|
|
371
|
-
/** Enable verification wiring (default: true in dev, false in prod) */
|
|
372
|
-
enabled?: boolean;
|
|
373
|
-
/** Optional runtime StateMachineManager for interpreted mode */
|
|
374
|
-
runtimeManager?: StateMachineManagerLike;
|
|
375
|
-
/** Optional trait state getter for compiled apps (maps traitName → currentState) */
|
|
376
|
-
traitStateGetter?: (traitName: string) => string | undefined;
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* VerificationProvider — wires the verification registry to the event bus
|
|
380
|
-
* and optional runtime manager. Renders children unchanged.
|
|
381
|
-
*/
|
|
382
|
-
declare function VerificationProvider({ children, enabled, runtimeManager, traitStateGetter, }: VerificationProviderProps): React__default.ReactElement;
|
|
383
|
-
declare namespace VerificationProvider {
|
|
384
|
-
var displayName: string;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* OfflineModeProvider
|
|
389
|
-
*
|
|
390
|
-
* Context provider that wraps useOfflineExecutor with force-offline toggle support.
|
|
391
|
-
* Enables testing offline behavior without actually disconnecting.
|
|
392
|
-
*
|
|
393
|
-
* @packageDocumentation
|
|
394
|
-
*/
|
|
395
|
-
|
|
396
|
-
interface OfflineModeContextValue extends UseOfflineExecutorResult {
|
|
397
|
-
/** Force offline mode for testing */
|
|
398
|
-
forceOffline: boolean;
|
|
399
|
-
/** Toggle force offline mode */
|
|
400
|
-
setForceOffline: (value: boolean) => void;
|
|
401
|
-
/** Whether effectively offline (real or forced) */
|
|
402
|
-
effectivelyOffline: boolean;
|
|
403
|
-
}
|
|
404
|
-
interface OfflineModeProviderProps extends UseOfflineExecutorOptions {
|
|
405
|
-
children: React__default.ReactNode;
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* OfflineModeProvider - Wraps offline executor with force-offline support.
|
|
409
|
-
*
|
|
410
|
-
* @example
|
|
411
|
-
* ```tsx
|
|
412
|
-
* function App() {
|
|
413
|
-
* return (
|
|
414
|
-
* <OfflineModeProvider
|
|
415
|
-
* serverUrl="/api/orbitals"
|
|
416
|
-
* authToken={token}
|
|
417
|
-
* autoSync={true}
|
|
418
|
-
* renderToSlot={slotManager.render}
|
|
419
|
-
* navigate={router.push}
|
|
420
|
-
* notify={toast.show}
|
|
421
|
-
* eventBus={{ emit: bus.emit }}
|
|
422
|
-
* >
|
|
423
|
-
* <PreviewPage />
|
|
424
|
-
* </OfflineModeProvider>
|
|
425
|
-
* );
|
|
426
|
-
* }
|
|
427
|
-
* ```
|
|
428
|
-
*/
|
|
429
|
-
declare function OfflineModeProvider({ children, ...executorOptions }: OfflineModeProviderProps): React__default.ReactElement;
|
|
430
|
-
/**
|
|
431
|
-
* Access offline mode context.
|
|
432
|
-
*
|
|
433
|
-
* @example
|
|
434
|
-
* ```tsx
|
|
435
|
-
* function OfflineToggle() {
|
|
436
|
-
* const {
|
|
437
|
-
* effectivelyOffline,
|
|
438
|
-
* forceOffline,
|
|
439
|
-
* setForceOffline,
|
|
440
|
-
* pendingCount,
|
|
441
|
-
* sync,
|
|
442
|
-
* } = useOfflineMode();
|
|
443
|
-
*
|
|
444
|
-
* return (
|
|
445
|
-
* <div>
|
|
446
|
-
* <Toggle
|
|
447
|
-
* checked={forceOffline}
|
|
448
|
-
* onChange={setForceOffline}
|
|
449
|
-
* >
|
|
450
|
-
* Test Offline
|
|
451
|
-
* </Toggle>
|
|
452
|
-
* {pendingCount > 0 && <Badge>{pendingCount} pending</Badge>}
|
|
453
|
-
* <Button onClick={sync}>Sync Now</Button>
|
|
454
|
-
* </div>
|
|
455
|
-
* );
|
|
456
|
-
* }
|
|
457
|
-
* ```
|
|
458
|
-
*/
|
|
459
|
-
declare function useOfflineMode(): OfflineModeContextValue;
|
|
460
|
-
/**
|
|
461
|
-
* Check if offline mode provider is available (optional usage).
|
|
462
|
-
*/
|
|
463
|
-
declare function useOptionalOfflineMode(): OfflineModeContextValue | null;
|
|
464
|
-
|
|
465
|
-
export { type EntityRecord, EventBusContext, EventBusProvider, FetchedDataContext, type FetchedDataContextValue, FetchedDataProvider, type FetchedDataProviderProps, type FetchedDataState, type OfflineModeContextValue, OfflineModeProvider, type OfflineModeProviderProps, OrbitalProvider, type OrbitalProviderProps, SelectionContext, type SelectionContextType, SelectionProvider, ThemeDefinition, VerificationProvider, type VerificationProviderProps, useFetchedData, useFetchedDataContext, useFetchedEntity, useOfflineMode, useOptionalOfflineMode, useSelection, useSelectionOptional };
|
|
2
|
+
* Providers barrel export
|
|
3
|
+
*
|
|
4
|
+
* Unified providers for Orbital applications.
|
|
5
|
+
* Use OrbitalProvider for most cases - it combines all required providers.
|
|
6
|
+
*/
|
|
7
|
+
export { OrbitalProvider, type OrbitalProviderProps } from './OrbitalProvider';
|
|
8
|
+
export type { ThemeDefinition } from '../context/ThemeContext';
|
|
9
|
+
export { EventBusProvider, EventBusContext } from './EventBusProvider';
|
|
10
|
+
export { SelectionProvider, SelectionContext, useSelection, useSelectionOptional } from './SelectionProvider';
|
|
11
|
+
export type { SelectionContextType } from './SelectionProvider';
|
|
12
|
+
export { FetchedDataProvider, FetchedDataContext, useFetchedDataContext, useFetchedData, useFetchedEntity, } from './FetchedDataProvider';
|
|
13
|
+
export type { FetchedDataProviderProps, FetchedDataContextValue, FetchedDataState, EntityRecord, } from './FetchedDataProvider';
|
|
14
|
+
export { VerificationProvider } from './VerificationProvider';
|
|
15
|
+
export type { VerificationProviderProps } from './VerificationProvider';
|
|
16
|
+
export { OfflineModeProvider, useOfflineMode, useOptionalOfflineMode, } from './OfflineModeProvider';
|
|
17
|
+
export type { OfflineModeContextValue, OfflineModeProviderProps, } from './OfflineModeProvider';
|
package/dist/providers/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SuspenseConfigProvider } from '../chunk-
|
|
1
|
+
import { SuspenseConfigProvider } from '../chunk-RIZ76XRF.js';
|
|
2
|
+
import { recordTransition, registerCheck, bindEventBus, bindTraitStateGetter } from '../chunk-45CTDYBT.js';
|
|
3
|
+
import '../chunk-KKCVDUK7.js';
|
|
2
4
|
import { ThemeProvider } from '../chunk-BTXQJGFB.js';
|
|
3
5
|
import { SelectionProvider, EntityDataProvider } from '../chunk-PE2H3NAW.js';
|
|
4
6
|
export { SelectionContext, SelectionProvider, useSelection, useSelectionOptional } from '../chunk-PE2H3NAW.js';
|
|
5
7
|
import { useEventBus, EventBusProvider } from '../chunk-YXZM3WCF.js';
|
|
6
8
|
export { EventBusContext, EventBusProvider } from '../chunk-YXZM3WCF.js';
|
|
7
9
|
import '../chunk-7NEWMNNU.js';
|
|
8
|
-
import { recordTransition, registerCheck, bindEventBus, bindTraitStateGetter } from '../chunk-45CTDYBT.js';
|
|
9
|
-
import '../chunk-KKCVDUK7.js';
|
|
10
10
|
import { useOfflineExecutor } from '../chunk-PL7MD6GF.js';
|
|
11
11
|
import '../chunk-PKBMQBKP.js';
|
|
12
12
|
import { createContext, useState, useCallback, useMemo, useContext, useRef, useEffect } from 'react';
|