@almadar/ui 2.0.1 → 2.0.3
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/components/index.css +9 -11
- package/dist/components/index.js +3 -3
- package/dist/providers/index.css +9 -11
- package/dist/providers/index.js +2 -2
- package/package.json +2 -2
- package/dist/components/atoms/Avatar.d.ts +0 -58
- package/dist/components/atoms/Badge.d.ts +0 -8
- package/dist/components/atoms/Box.d.ts +0 -57
- package/dist/components/atoms/Button.d.ts +0 -24
- package/dist/components/atoms/Card.d.ts +0 -18
- package/dist/components/atoms/Center.d.ts +0 -33
- package/dist/components/atoms/Checkbox.d.ts +0 -5
- package/dist/components/atoms/ConditionalWrapper.d.ts +0 -68
- package/dist/components/atoms/Divider.d.ts +0 -29
- package/dist/components/atoms/Icon.d.ts +0 -38
- package/dist/components/atoms/Input.d.ts +0 -26
- package/dist/components/atoms/Label.d.ts +0 -5
- package/dist/components/atoms/LawReferenceTooltip.d.ts +0 -48
- package/dist/components/atoms/Overlay.d.ts +0 -16
- package/dist/components/atoms/ProgressBar.d.ts +0 -63
- package/dist/components/atoms/Radio.d.ts +0 -26
- package/dist/components/atoms/Select.d.ts +0 -12
- package/dist/components/atoms/Spacer.d.ts +0 -25
- package/dist/components/atoms/Spinner.d.ts +0 -6
- package/dist/components/atoms/Stack.d.ts +0 -64
- package/dist/components/atoms/Switch.d.ts +0 -12
- package/dist/components/atoms/TextHighlight.d.ts +0 -53
- package/dist/components/atoms/Textarea.d.ts +0 -5
- package/dist/components/atoms/ThemeSelector.d.ts +0 -21
- package/dist/components/atoms/ThemeToggle.d.ts +0 -33
- package/dist/components/atoms/Typography.d.ts +0 -57
- package/dist/components/atoms/game/ControlButton.d.ts +0 -31
- package/dist/components/atoms/game/HealthBar.d.ts +0 -18
- package/dist/components/atoms/game/ScoreDisplay.d.ts +0 -21
- package/dist/components/atoms/game/Sprite.d.ts +0 -63
- package/dist/components/atoms/game/StateIndicator.d.ts +0 -31
- package/dist/components/atoms/game/index.d.ts +0 -12
- package/dist/components/atoms/index.d.ts +0 -27
- package/dist/components/index.d.ts +0 -6
- package/dist/components/molecules/Accordion.d.ts +0 -67
- package/dist/components/molecules/Alert.d.ts +0 -24
- package/dist/components/molecules/Breadcrumb.d.ts +0 -55
- package/dist/components/molecules/ButtonGroup.d.ts +0 -67
- package/dist/components/molecules/Card.d.ts +0 -44
- package/dist/components/molecules/Container.d.ts +0 -30
- package/dist/components/molecules/Drawer.d.ts +0 -46
- package/dist/components/molecules/EmptyState.d.ts +0 -25
- package/dist/components/molecules/ErrorBoundary.d.ts +0 -55
- package/dist/components/molecules/ErrorState.d.ts +0 -13
- package/dist/components/molecules/FilterGroup.d.ts +0 -54
- package/dist/components/molecules/Flex.d.ts +0 -43
- package/dist/components/molecules/FloatingActionButton.d.ts +0 -69
- package/dist/components/molecules/FormField.d.ts +0 -16
- package/dist/components/molecules/FormSectionHeader.d.ts +0 -30
- package/dist/components/molecules/Grid.d.ts +0 -54
- package/dist/components/molecules/InputGroup.d.ts +0 -24
- package/dist/components/molecules/LoadingState.d.ts +0 -7
- package/dist/components/molecules/Menu.d.ts +0 -40
- package/dist/components/molecules/Modal.d.ts +0 -26
- package/dist/components/molecules/Pagination.d.ts +0 -66
- package/dist/components/molecules/Popover.d.ts +0 -39
- package/dist/components/molecules/QuizBlock.d.ts +0 -20
- package/dist/components/molecules/RelationSelect.d.ts +0 -48
- package/dist/components/molecules/RepeatableFormSection.d.ts +0 -58
- package/dist/components/molecules/ScaledDiagram.d.ts +0 -20
- package/dist/components/molecules/SearchInput.d.ts +0 -60
- package/dist/components/molecules/SidePanel.d.ts +0 -47
- package/dist/components/molecules/SimpleGrid.d.ts +0 -27
- package/dist/components/molecules/Skeleton.d.ts +0 -35
- package/dist/components/molecules/Tabs.d.ts +0 -45
- package/dist/components/molecules/Toast.d.ts +0 -35
- package/dist/components/molecules/Tooltip.d.ts +0 -25
- package/dist/components/molecules/ViolationAlert.d.ts +0 -49
- package/dist/components/molecules/WizardNavigation.d.ts +0 -51
- package/dist/components/molecules/WizardProgress.d.ts +0 -42
- package/dist/components/molecules/game/StatBadge.d.ts +0 -27
- package/dist/components/molecules/index.d.ts +0 -38
- package/dist/components/molecules/markdown/CodeBlock.d.ts +0 -25
- package/dist/components/molecules/markdown/MarkdownContent.d.ts +0 -26
- package/dist/components/organisms/CardGrid.d.ts +0 -72
- package/dist/components/organisms/Chart.d.ts +0 -59
- package/dist/components/organisms/CodeViewer.d.ts +0 -67
- package/dist/components/organisms/ComponentPatterns.d.ts +0 -441
- package/dist/components/organisms/ConfirmDialog.d.ts +0 -50
- package/dist/components/organisms/ContentRenderer.d.ts +0 -23
- package/dist/components/organisms/CustomPattern.d.ts +0 -104
- package/dist/components/organisms/DataTable.d.ts +0 -63
- package/dist/components/organisms/DetailPanel.d.ts +0 -71
- package/dist/components/organisms/DocumentViewer.d.ts +0 -60
- package/dist/components/organisms/DrawerSlot.d.ts +0 -39
- package/dist/components/organisms/Form.d.ts +0 -203
- package/dist/components/organisms/FormSection.d.ts +0 -59
- package/dist/components/organisms/GraphCanvas.d.ts +0 -69
- package/dist/components/organisms/Header.d.ts +0 -110
- package/dist/components/organisms/JazariStateMachine.d.ts +0 -60
- package/dist/components/organisms/LayoutPatterns.d.ts +0 -181
- package/dist/components/organisms/List.d.ts +0 -76
- package/dist/components/organisms/MasterDetail.d.ts +0 -43
- package/dist/components/organisms/MediaGallery.d.ts +0 -66
- package/dist/components/organisms/Meter.d.ts +0 -58
- package/dist/components/organisms/ModalSlot.d.ts +0 -35
- package/dist/components/organisms/Navigation.d.ts +0 -68
- package/dist/components/organisms/OrbitalVisualization.d.ts +0 -48
- package/dist/components/organisms/PageHeader.d.ts +0 -59
- package/dist/components/organisms/Section.d.ts +0 -44
- package/dist/components/organisms/Sidebar.d.ts +0 -65
- package/dist/components/organisms/SignaturePad.d.ts +0 -44
- package/dist/components/organisms/Split.d.ts +0 -42
- package/dist/components/organisms/StatCard.d.ts +0 -66
- package/dist/components/organisms/StateMachineView.d.ts +0 -36
- package/dist/components/organisms/Table.d.ts +0 -99
- package/dist/components/organisms/Timeline.d.ts +0 -58
- package/dist/components/organisms/ToastSlot.d.ts +0 -38
- package/dist/components/organisms/UISlotRenderer.d.ts +0 -112
- package/dist/components/organisms/WizardContainer.d.ts +0 -160
- package/dist/components/organisms/book/BookChapterView.d.ts +0 -17
- package/dist/components/organisms/book/BookCoverPage.d.ts +0 -19
- package/dist/components/organisms/book/BookNavBar.d.ts +0 -18
- package/dist/components/organisms/book/BookTableOfContents.d.ts +0 -18
- package/dist/components/organisms/book/BookViewer.d.ts +0 -28
- package/dist/components/organisms/book/index.d.ts +0 -7
- package/dist/components/organisms/book/types.d.ts +0 -77
- package/dist/components/organisms/game/BattleBoard.d.ts +0 -167
- package/dist/components/organisms/game/CanvasEffect.d.ts +0 -68
- package/dist/components/organisms/game/CastleBoard.d.ts +0 -85
- package/dist/components/organisms/game/DialogueBox.d.ts +0 -73
- package/dist/components/organisms/game/GameAudioProvider.d.ts +0 -47
- package/dist/components/organisms/game/GameAudioToggle.d.ts +0 -28
- package/dist/components/organisms/game/GameHud.d.ts +0 -40
- package/dist/components/organisms/game/GameMenu.d.ts +0 -43
- package/dist/components/organisms/game/GameOverScreen.d.ts +0 -56
- package/dist/components/organisms/game/InventoryPanel.d.ts +0 -67
- package/dist/components/organisms/game/IsometricCanvas.d.ts +0 -123
- package/dist/components/organisms/game/TraitSlot.d.ts +0 -86
- package/dist/components/organisms/game/TraitStateViewer.d.ts +0 -53
- package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +0 -26
- package/dist/components/organisms/game/WorldMapBoard.d.ts +0 -147
- package/dist/components/organisms/game/editor/editorUtils.d.ts +0 -109
- package/dist/components/organisms/game/editor/index.d.ts +0 -9
- package/dist/components/organisms/game/hooks/useBattleState.d.ts +0 -35
- package/dist/components/organisms/game/hooks/useCamera.d.ts +0 -41
- package/dist/components/organisms/game/hooks/useGameAudio.d.ts +0 -47
- package/dist/components/organisms/game/hooks/useImageCache.d.ts +0 -16
- package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +0 -45
- package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +0 -43
- package/dist/components/organisms/game/index.d.ts +0 -36
- package/dist/components/organisms/game/managers/PhysicsManager.d.ts +0 -103
- package/dist/components/organisms/game/types/effects.d.ts +0 -253
- package/dist/components/organisms/game/types/isometric.d.ts +0 -109
- package/dist/components/organisms/game/types/spriteAnimation.d.ts +0 -73
- package/dist/components/organisms/game/utils/canvasEffects.d.ts +0 -50
- package/dist/components/organisms/game/utils/combatPresets.d.ts +0 -15
- package/dist/components/organisms/game/utils/isometric.d.ts +0 -61
- package/dist/components/organisms/game/utils/spriteAnimation.d.ts +0 -57
- package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +0 -16
- package/dist/components/organisms/index.d.ts +0 -37
- package/dist/components/organisms/layout/DashboardGrid.d.ts +0 -34
- package/dist/components/organisms/layout/MasterDetail.d.ts +0 -32
- package/dist/components/organisms/layout/SplitPane.d.ts +0 -34
- package/dist/components/organisms/layout/TabbedContainer.d.ts +0 -42
- package/dist/components/organisms/layout/index.d.ts +0 -9
- package/dist/components/organisms/types.d.ts +0 -65
- package/dist/components/templates/AuthLayout.d.ts +0 -14
- package/dist/components/templates/BattleTemplate.d.ts +0 -25
- package/dist/components/templates/CastleTemplate.d.ts +0 -23
- package/dist/components/templates/CounterTemplate.d.ts +0 -44
- package/dist/components/templates/DashboardLayout.d.ts +0 -32
- package/dist/components/templates/GameShell.d.ts +0 -33
- package/dist/components/templates/GameTemplate.d.ts +0 -36
- package/dist/components/templates/GenericAppTemplate.d.ts +0 -30
- package/dist/components/templates/WorldMapTemplate.d.ts +0 -29
- package/dist/components/templates/index.d.ts +0 -10
- package/dist/components/templates/types.d.ts +0 -17
- package/dist/context/DesignThemeContext.d.ts +0 -21
- package/dist/context/ThemeContext.d.ts +0 -104
- package/dist/context/UISlotContext.d.ts +0 -75
- package/dist/context/UserContext.d.ts +0 -111
- package/dist/context/index.d.ts +0 -8
- package/dist/hooks/event-bus-types.d.ts +0 -71
- package/dist/hooks/index.d.ts +0 -25
- package/dist/hooks/useAgentChat.d.ts +0 -104
- package/dist/hooks/useAuthContext.d.ts +0 -25
- package/dist/hooks/useCompile.d.ts +0 -22
- package/dist/hooks/useDeepAgentGeneration.d.ts +0 -46
- package/dist/hooks/useEntities.d.ts +0 -52
- package/dist/hooks/useEntityData.d.ts +0 -155
- package/dist/hooks/useEntityMutations.d.ts +0 -80
- package/dist/hooks/useEventBus.d.ts +0 -96
- package/dist/hooks/useExtensions.d.ts +0 -32
- package/dist/hooks/useFileEditor.d.ts +0 -32
- package/dist/hooks/useFileSystem.d.ts +0 -40
- package/dist/hooks/useGitHub.d.ts +0 -58
- package/dist/hooks/useOrbitalHistory.d.ts +0 -39
- package/dist/hooks/useOrbitalMutations.d.ts +0 -95
- package/dist/hooks/usePreview.d.ts +0 -57
- package/dist/hooks/useQuerySingleton.d.ts +0 -78
- package/dist/hooks/useResolvedEntity.d.ts +0 -32
- package/dist/hooks/useTranslate.d.ts +0 -35
- package/dist/hooks/useUIEvents.d.ts +0 -35
- package/dist/hooks/useUISlots.d.ts +0 -84
- package/dist/hooks/useValidation.d.ts +0 -46
- package/dist/lib/api-client.d.ts +0 -42
- package/dist/lib/cn.d.ts +0 -6
- package/dist/lib/debug.d.ts +0 -43
- package/dist/lib/debugRegistry.d.ts +0 -29
- package/dist/lib/debugUtils.d.ts +0 -27
- package/dist/lib/entityDebug.d.ts +0 -38
- package/dist/lib/getNestedValue.d.ts +0 -33
- package/dist/lib/guardRegistry.d.ts +0 -32
- package/dist/lib/index.d.ts +0 -18
- package/dist/lib/jazari/svg-paths.d.ts +0 -61
- package/dist/lib/parseContentSegments.d.ts +0 -41
- package/dist/lib/tickRegistry.d.ts +0 -40
- package/dist/lib/traitRegistry.d.ts +0 -34
- package/dist/lib/verificationRegistry.d.ts +0 -107
- package/dist/lib/visualizer/index.d.ts +0 -143
- package/dist/locales/index.d.ts +0 -20
- package/dist/providers/EventBusProvider.d.ts +0 -60
- package/dist/providers/FetchedDataProvider.d.ts +0 -105
- package/dist/providers/OfflineModeProvider.d.ts +0 -79
- package/dist/providers/OrbitalProvider.d.ts +0 -101
- package/dist/providers/SelectionProvider.d.ts +0 -81
- package/dist/providers/VerificationProvider.d.ts +0 -63
- package/dist/providers/index.d.ts +0 -17
- package/dist/renderer/client-effect-executor.d.ts +0 -68
- package/dist/renderer/data-resolver.d.ts +0 -68
- package/dist/renderer/index.d.ts +0 -28
- package/dist/renderer/init.d.ts +0 -14
- package/dist/renderer/navigation.d.ts +0 -142
- package/dist/renderer/offline-executor.d.ts +0 -238
- package/dist/renderer/pattern-resolver.d.ts +0 -91
- package/dist/renderer/slot-definitions.d.ts +0 -45
- package/dist/renderer/types.d.ts +0 -160
- package/dist/renderer/useClientEffects.d.ts +0 -88
- package/dist/stores/entityStore.d.ts +0 -99
- package/dist/stores/filtering.d.ts +0 -51
- package/dist/stores/index.d.ts +0 -7
- package/dist/{chunk-RIZ76XRF.js → chunk-X3IKFHFT.js} +1 -1
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Content Segment Parsing Utilities
|
|
3
|
-
*
|
|
4
|
-
* Parses rich content with code blocks and quiz tags into structured
|
|
5
|
-
* segments for rendering. Detects orbital schemas in JSON code blocks
|
|
6
|
-
* and marks them for JazariStateMachine rendering.
|
|
7
|
-
*/
|
|
8
|
-
/** Segment types for content rendering */
|
|
9
|
-
export type ContentSegment = {
|
|
10
|
-
type: 'markdown';
|
|
11
|
-
content: string;
|
|
12
|
-
} | {
|
|
13
|
-
type: 'code';
|
|
14
|
-
language: string;
|
|
15
|
-
content: string;
|
|
16
|
-
} | {
|
|
17
|
-
type: 'orbital';
|
|
18
|
-
language: string;
|
|
19
|
-
content: string;
|
|
20
|
-
schema: unknown;
|
|
21
|
-
} | {
|
|
22
|
-
type: 'quiz';
|
|
23
|
-
question: string;
|
|
24
|
-
answer: string;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Parse markdown content to extract code blocks.
|
|
28
|
-
*
|
|
29
|
-
* Splits markdown into segments of plain markdown and fenced code blocks.
|
|
30
|
-
* JSON/orb code blocks containing orbital schemas are tagged as 'orbital'.
|
|
31
|
-
*/
|
|
32
|
-
export declare function parseMarkdownWithCodeBlocks(content: string | undefined | null): ContentSegment[];
|
|
33
|
-
/**
|
|
34
|
-
* Parse content to extract all segments including quiz tags and code blocks.
|
|
35
|
-
*
|
|
36
|
-
* Supported tags:
|
|
37
|
-
* - <question>q</question><answer>a</answer> — Quiz Q&A
|
|
38
|
-
*
|
|
39
|
-
* Also handles fenced code blocks (```language...```) with orbital detection.
|
|
40
|
-
*/
|
|
41
|
-
export declare function parseContentSegments(content: string | undefined | null): ContentSegment[];
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tick Registry - Tracks scheduled tick executions for debugging
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
export interface TickExecution {
|
|
7
|
-
id: string;
|
|
8
|
-
traitName: string;
|
|
9
|
-
/** Tick name (display name) */
|
|
10
|
-
name: string;
|
|
11
|
-
/** Tick identifier */
|
|
12
|
-
tickName: string;
|
|
13
|
-
interval: number;
|
|
14
|
-
/** Last execution timestamp */
|
|
15
|
-
lastRun: number;
|
|
16
|
-
lastExecuted: number | null;
|
|
17
|
-
nextExecution: number | null;
|
|
18
|
-
/** Number of times this tick has run */
|
|
19
|
-
runCount: number;
|
|
20
|
-
executionCount: number;
|
|
21
|
-
/** Average execution time in ms */
|
|
22
|
-
executionTime: number;
|
|
23
|
-
/** Whether the tick is currently active */
|
|
24
|
-
active: boolean;
|
|
25
|
-
isActive: boolean;
|
|
26
|
-
/** Guard name if this tick has a guard */
|
|
27
|
-
guardName?: string;
|
|
28
|
-
/** Whether the guard passed on last evaluation */
|
|
29
|
-
guardPassed?: boolean;
|
|
30
|
-
}
|
|
31
|
-
type ChangeListener = () => void;
|
|
32
|
-
export declare function registerTick(tick: TickExecution): void;
|
|
33
|
-
export declare function updateTickExecution(id: string, timestamp: number): void;
|
|
34
|
-
export declare function setTickActive(id: string, isActive: boolean): void;
|
|
35
|
-
export declare function unregisterTick(id: string): void;
|
|
36
|
-
export declare function getAllTicks(): TickExecution[];
|
|
37
|
-
export declare function getTick(id: string): TickExecution | undefined;
|
|
38
|
-
export declare function subscribeToTickChanges(listener: ChangeListener): () => void;
|
|
39
|
-
export declare function clearTicks(): void;
|
|
40
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Trait Registry - Tracks active traits and their state machines for debugging
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
export interface TraitTransition {
|
|
7
|
-
from: string;
|
|
8
|
-
to: string;
|
|
9
|
-
event: string;
|
|
10
|
-
guard?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface TraitGuard {
|
|
13
|
-
name: string;
|
|
14
|
-
lastResult?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface TraitDebugInfo {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
currentState: string;
|
|
20
|
-
states: string[];
|
|
21
|
-
transitions: TraitTransition[];
|
|
22
|
-
guards: TraitGuard[];
|
|
23
|
-
transitionCount: number;
|
|
24
|
-
}
|
|
25
|
-
type ChangeListener = () => void;
|
|
26
|
-
export declare function registerTrait(info: TraitDebugInfo): void;
|
|
27
|
-
export declare function updateTraitState(id: string, newState: string): void;
|
|
28
|
-
export declare function updateGuardResult(traitId: string, guardName: string, result: boolean): void;
|
|
29
|
-
export declare function unregisterTrait(id: string): void;
|
|
30
|
-
export declare function getAllTraits(): TraitDebugInfo[];
|
|
31
|
-
export declare function getTrait(id: string): TraitDebugInfo | undefined;
|
|
32
|
-
export declare function subscribeToTraitChanges(listener: ChangeListener): () => void;
|
|
33
|
-
export declare function clearTraits(): void;
|
|
34
|
-
export {};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Verification Registry - Tracks runtime verification checks and transition traces
|
|
3
|
-
*
|
|
4
|
-
* Provides:
|
|
5
|
-
* 1. A checklist of pass/fail checks (INIT has fetch, bridge connected, etc.)
|
|
6
|
-
* 2. A full transition timeline with effect execution results
|
|
7
|
-
* 3. ServerBridge health snapshot
|
|
8
|
-
* 4. window.__orbitalVerification for Playwright/automation
|
|
9
|
-
*
|
|
10
|
-
* @packageDocumentation
|
|
11
|
-
*/
|
|
12
|
-
export type CheckStatus = "pass" | "fail" | "pending" | "warn";
|
|
13
|
-
export interface VerificationCheck {
|
|
14
|
-
id: string;
|
|
15
|
-
label: string;
|
|
16
|
-
status: CheckStatus;
|
|
17
|
-
details?: string;
|
|
18
|
-
/** Timestamp when status last changed */
|
|
19
|
-
updatedAt: number;
|
|
20
|
-
}
|
|
21
|
-
export interface EffectTrace {
|
|
22
|
-
type: string;
|
|
23
|
-
args: unknown[];
|
|
24
|
-
status: "executed" | "failed" | "skipped";
|
|
25
|
-
error?: string;
|
|
26
|
-
durationMs?: number;
|
|
27
|
-
}
|
|
28
|
-
export interface TransitionTrace {
|
|
29
|
-
id: string;
|
|
30
|
-
traitName: string;
|
|
31
|
-
from: string;
|
|
32
|
-
to: string;
|
|
33
|
-
event: string;
|
|
34
|
-
guardExpression?: string;
|
|
35
|
-
guardResult?: boolean;
|
|
36
|
-
effects: EffectTrace[];
|
|
37
|
-
timestamp: number;
|
|
38
|
-
}
|
|
39
|
-
export interface BridgeHealth {
|
|
40
|
-
connected: boolean;
|
|
41
|
-
eventsForwarded: number;
|
|
42
|
-
eventsReceived: number;
|
|
43
|
-
lastError?: string;
|
|
44
|
-
lastHeartbeat: number;
|
|
45
|
-
}
|
|
46
|
-
export interface VerificationSummary {
|
|
47
|
-
totalChecks: number;
|
|
48
|
-
passed: number;
|
|
49
|
-
failed: number;
|
|
50
|
-
warnings: number;
|
|
51
|
-
pending: number;
|
|
52
|
-
}
|
|
53
|
-
export interface VerificationSnapshot {
|
|
54
|
-
checks: VerificationCheck[];
|
|
55
|
-
transitions: TransitionTrace[];
|
|
56
|
-
bridge: BridgeHealth | null;
|
|
57
|
-
summary: VerificationSummary;
|
|
58
|
-
}
|
|
59
|
-
type ChangeListener = () => void;
|
|
60
|
-
export declare function registerCheck(id: string, label: string, status?: CheckStatus, details?: string): void;
|
|
61
|
-
export declare function updateCheck(id: string, status: CheckStatus, details?: string): void;
|
|
62
|
-
export declare function getAllChecks(): VerificationCheck[];
|
|
63
|
-
export declare function recordTransition(trace: Omit<TransitionTrace, "id">): void;
|
|
64
|
-
export declare function getTransitions(): TransitionTrace[];
|
|
65
|
-
export declare function getTransitionsForTrait(traitName: string): TransitionTrace[];
|
|
66
|
-
export declare function updateBridgeHealth(health: BridgeHealth): void;
|
|
67
|
-
export declare function getBridgeHealth(): BridgeHealth | null;
|
|
68
|
-
export declare function getSummary(): VerificationSummary;
|
|
69
|
-
export declare function getSnapshot(): VerificationSnapshot;
|
|
70
|
-
export declare function subscribeToVerification(listener: ChangeListener): () => void;
|
|
71
|
-
/** Exposed on window for Playwright to query */
|
|
72
|
-
interface OrbitalVerificationAPI {
|
|
73
|
-
getSnapshot: () => VerificationSnapshot;
|
|
74
|
-
getChecks: () => VerificationCheck[];
|
|
75
|
-
getTransitions: () => TransitionTrace[];
|
|
76
|
-
getBridge: () => BridgeHealth | null;
|
|
77
|
-
getSummary: () => VerificationSummary;
|
|
78
|
-
/** Wait for a specific event to be processed */
|
|
79
|
-
waitForTransition: (event: string, timeoutMs?: number) => Promise<TransitionTrace | null>;
|
|
80
|
-
/** Send an event into the runtime (requires eventBus binding) */
|
|
81
|
-
sendEvent?: (event: string, payload?: Record<string, unknown>) => void;
|
|
82
|
-
/** Get current trait state */
|
|
83
|
-
getTraitState?: (traitName: string) => string | undefined;
|
|
84
|
-
}
|
|
85
|
-
declare global {
|
|
86
|
-
interface Window {
|
|
87
|
-
__orbitalVerification?: OrbitalVerificationAPI;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Wait for a transition matching the given event to appear.
|
|
92
|
-
* Returns the trace or null on timeout.
|
|
93
|
-
*/
|
|
94
|
-
export declare function waitForTransition(event: string, timeoutMs?: number): Promise<TransitionTrace | null>;
|
|
95
|
-
/**
|
|
96
|
-
* Bind the EventBus so automation can send events.
|
|
97
|
-
* Call this during app initialization.
|
|
98
|
-
*/
|
|
99
|
-
export declare function bindEventBus(eventBus: {
|
|
100
|
-
emit: (type: string, payload?: Record<string, unknown>) => void;
|
|
101
|
-
}): void;
|
|
102
|
-
/**
|
|
103
|
-
* Bind a trait state getter so automation can query current states.
|
|
104
|
-
*/
|
|
105
|
-
export declare function bindTraitStateGetter(getter: (traitName: string) => string | undefined): void;
|
|
106
|
-
export declare function clearVerification(): void;
|
|
107
|
-
export {};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Orbital State Machine Visualizer
|
|
3
|
-
*
|
|
4
|
-
* Renders SVG diagrams from Orbital schemas and Trait definitions.
|
|
5
|
-
* Can be used in documentation, IDE previews, and other tools.
|
|
6
|
-
*/
|
|
7
|
-
export interface VisualizerConfig {
|
|
8
|
-
nodeRadius: number;
|
|
9
|
-
nodeSpacing: number;
|
|
10
|
-
initialIndicatorOffset: number;
|
|
11
|
-
arrowSize: number;
|
|
12
|
-
colors: {
|
|
13
|
-
background: string;
|
|
14
|
-
node: string;
|
|
15
|
-
nodeBorder: string;
|
|
16
|
-
nodeText: string;
|
|
17
|
-
initialNode: string;
|
|
18
|
-
finalNode: string;
|
|
19
|
-
arrow: string;
|
|
20
|
-
arrowText: string;
|
|
21
|
-
effectText: string;
|
|
22
|
-
guardText: string;
|
|
23
|
-
initial: string;
|
|
24
|
-
};
|
|
25
|
-
fonts: {
|
|
26
|
-
node: string;
|
|
27
|
-
event: string;
|
|
28
|
-
effect: string;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export interface StateDefinition {
|
|
32
|
-
name: string;
|
|
33
|
-
isInitial?: boolean;
|
|
34
|
-
isFinal?: boolean;
|
|
35
|
-
description?: string;
|
|
36
|
-
}
|
|
37
|
-
export interface TransitionDefinition {
|
|
38
|
-
from: string;
|
|
39
|
-
to: string;
|
|
40
|
-
event: string;
|
|
41
|
-
guard?: unknown;
|
|
42
|
-
effects?: unknown[];
|
|
43
|
-
}
|
|
44
|
-
export interface StateMachineDefinition {
|
|
45
|
-
states: StateDefinition[];
|
|
46
|
-
transitions: TransitionDefinition[];
|
|
47
|
-
}
|
|
48
|
-
export interface EntityDefinition {
|
|
49
|
-
name: string;
|
|
50
|
-
fields?: (string | {
|
|
51
|
-
name: string;
|
|
52
|
-
})[];
|
|
53
|
-
}
|
|
54
|
-
export interface RenderOptions {
|
|
55
|
-
title?: string;
|
|
56
|
-
entity?: EntityDefinition;
|
|
57
|
-
}
|
|
58
|
-
/** Position data for a state node in DOM layout */
|
|
59
|
-
export interface DomStateNode {
|
|
60
|
-
id: string;
|
|
61
|
-
name: string;
|
|
62
|
-
x: number;
|
|
63
|
-
y: number;
|
|
64
|
-
radius: number;
|
|
65
|
-
isInitial: boolean;
|
|
66
|
-
isFinal: boolean;
|
|
67
|
-
description?: string;
|
|
68
|
-
}
|
|
69
|
-
/** Position data for a transition arrow */
|
|
70
|
-
export interface DomTransitionPath {
|
|
71
|
-
id: string;
|
|
72
|
-
from: string;
|
|
73
|
-
to: string;
|
|
74
|
-
/** SVG path data for the curved arrow */
|
|
75
|
-
pathData: string;
|
|
76
|
-
/** Midpoint for label positioning */
|
|
77
|
-
labelX: number;
|
|
78
|
-
labelY: number;
|
|
79
|
-
}
|
|
80
|
-
/** Position data for a transition label with guard/effect details */
|
|
81
|
-
export interface DomTransitionLabel {
|
|
82
|
-
id: string;
|
|
83
|
-
from: string;
|
|
84
|
-
to: string;
|
|
85
|
-
event: string;
|
|
86
|
-
x: number;
|
|
87
|
-
y: number;
|
|
88
|
-
/** Human-readable guard text (e.g., "if amount > 100") */
|
|
89
|
-
guardText?: string;
|
|
90
|
-
/** Human-readable effect texts */
|
|
91
|
-
effectTexts: string[];
|
|
92
|
-
/** Whether this transition has details to show in tooltip */
|
|
93
|
-
hasDetails: boolean;
|
|
94
|
-
}
|
|
95
|
-
/** Entity input box data */
|
|
96
|
-
export interface DomEntityBox {
|
|
97
|
-
name: string;
|
|
98
|
-
fields: string[];
|
|
99
|
-
x: number;
|
|
100
|
-
y: number;
|
|
101
|
-
width: number;
|
|
102
|
-
height: number;
|
|
103
|
-
}
|
|
104
|
-
/** Output effects box data */
|
|
105
|
-
export interface DomOutputsBox {
|
|
106
|
-
outputs: string[];
|
|
107
|
-
x: number;
|
|
108
|
-
y: number;
|
|
109
|
-
width: number;
|
|
110
|
-
height: number;
|
|
111
|
-
}
|
|
112
|
-
/** Complete DOM layout data for rendering */
|
|
113
|
-
export interface DomLayoutData {
|
|
114
|
-
width: number;
|
|
115
|
-
height: number;
|
|
116
|
-
title?: string;
|
|
117
|
-
states: DomStateNode[];
|
|
118
|
-
paths: DomTransitionPath[];
|
|
119
|
-
labels: DomTransitionLabel[];
|
|
120
|
-
entity?: DomEntityBox;
|
|
121
|
-
outputs?: DomOutputsBox;
|
|
122
|
-
config: VisualizerConfig;
|
|
123
|
-
}
|
|
124
|
-
export declare const DEFAULT_CONFIG: VisualizerConfig;
|
|
125
|
-
declare function formatGuard(guard: unknown): string;
|
|
126
|
-
export declare function getEffectSummary(effects: unknown[]): string;
|
|
127
|
-
declare function extractOutputsFromTransitions(transitions: TransitionDefinition[]): string[];
|
|
128
|
-
/**
|
|
129
|
-
* Render a state machine to an SVG string.
|
|
130
|
-
* Works in both browser and Node.js environments.
|
|
131
|
-
*/
|
|
132
|
-
export declare function renderStateMachineToSvg(stateMachine: StateMachineDefinition, options?: RenderOptions, config?: VisualizerConfig): string;
|
|
133
|
-
/**
|
|
134
|
-
* Extract state machine from various data formats (Trait, Orbital, or raw)
|
|
135
|
-
*/
|
|
136
|
-
export declare function extractStateMachine(data: unknown): StateMachineDefinition | null;
|
|
137
|
-
/**
|
|
138
|
-
* Render a state machine to DOM layout data.
|
|
139
|
-
* This is used by the DOM-based visualizer component for hybrid SVG/DOM rendering.
|
|
140
|
-
* Unlike renderStateMachineToSvg, this returns structured data instead of an SVG string.
|
|
141
|
-
*/
|
|
142
|
-
export declare function renderStateMachineToDomData(stateMachine: StateMachineDefinition, options?: RenderOptions, config?: VisualizerConfig): DomLayoutData;
|
|
143
|
-
export { formatGuard, extractOutputsFromTransitions };
|
package/dist/locales/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core locale loader for @almadar/ui.
|
|
3
|
-
*
|
|
4
|
-
* Exports message maps for en/ar/sl and a helper to merge
|
|
5
|
-
* project-specific messages on top of core.
|
|
6
|
-
*/
|
|
7
|
-
export type SupportedLocale = 'en' | 'ar' | 'sl';
|
|
8
|
-
export interface LocaleMeta {
|
|
9
|
-
locale: string;
|
|
10
|
-
direction: 'ltr' | 'rtl';
|
|
11
|
-
}
|
|
12
|
-
/** Core messages keyed by locale */
|
|
13
|
-
export declare const coreMessages: Record<SupportedLocale, Record<string, string>>;
|
|
14
|
-
/** Locale metadata */
|
|
15
|
-
export declare const localeMeta: Record<SupportedLocale, LocaleMeta>;
|
|
16
|
-
/**
|
|
17
|
-
* Merge core messages with project-specific messages.
|
|
18
|
-
* Project keys override core keys.
|
|
19
|
-
*/
|
|
20
|
-
export declare function mergeMessages(locale: SupportedLocale, projectMessages: Record<string, string>): Record<string, string>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EventBusProvider - React context provider for the event bus
|
|
3
|
-
*
|
|
4
|
-
* Provides a page-scoped event bus for trait communication.
|
|
5
|
-
* Each page has its own event bus instance.
|
|
6
|
-
*
|
|
7
|
-
* NOTE: Selection state has been moved to SelectionProvider.
|
|
8
|
-
* Use SelectionProvider for tracking selected entities.
|
|
9
|
-
*
|
|
10
|
-
* @packageDocumentation
|
|
11
|
-
*/
|
|
12
|
-
import React, { type ReactNode } from 'react';
|
|
13
|
-
import type { EventBusContextType } from '../hooks/event-bus-types';
|
|
14
|
-
/**
|
|
15
|
-
* Extended context type for backward compatibility.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated getSelectedEntity and clearSelectedEntity are deprecated.
|
|
18
|
-
* Use SelectionProvider and useSelection hook instead.
|
|
19
|
-
*/
|
|
20
|
-
export interface EventBusContextTypeExtended extends EventBusContextType {
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Use useSelection from SelectionProvider instead.
|
|
23
|
-
* This method now returns null - selection state moved to SelectionProvider.
|
|
24
|
-
*/
|
|
25
|
-
getSelectedEntity: () => unknown | null;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use useSelection from SelectionProvider instead.
|
|
28
|
-
* This method is now a no-op - selection state moved to SelectionProvider.
|
|
29
|
-
*/
|
|
30
|
-
clearSelectedEntity: () => void;
|
|
31
|
-
}
|
|
32
|
-
export declare const EventBusContext: React.Context<EventBusContextTypeExtended | null>;
|
|
33
|
-
interface EventBusProviderProps {
|
|
34
|
-
children: ReactNode;
|
|
35
|
-
/** Enable debug logging in development */
|
|
36
|
-
debug?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Provider component for the page event bus.
|
|
40
|
-
*
|
|
41
|
-
* This is a pure pub/sub event bus. For selection state,
|
|
42
|
-
* use SelectionProvider which listens to events and maintains state.
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```tsx
|
|
46
|
-
* function TaskDetailPage() {
|
|
47
|
-
* return (
|
|
48
|
-
* <EventBusProvider debug={process.env.NODE_ENV === 'development'}>
|
|
49
|
-
* <SelectionProvider>
|
|
50
|
-
* <TaskHeader />
|
|
51
|
-
* <TaskForm />
|
|
52
|
-
* <TaskActions />
|
|
53
|
-
* </SelectionProvider>
|
|
54
|
-
* </EventBusProvider>
|
|
55
|
-
* );
|
|
56
|
-
* }
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
export declare function EventBusProvider({ children, debug }: EventBusProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
60
|
-
export type { EventBusContextType };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FetchedDataProvider
|
|
3
|
-
*
|
|
4
|
-
* Provides server-fetched entity data to the client runtime.
|
|
5
|
-
* This context stores data returned from compiled event handlers
|
|
6
|
-
* via the `data` field in EventResponse.
|
|
7
|
-
*
|
|
8
|
-
* Data Flow:
|
|
9
|
-
* 1. Client sends event to server
|
|
10
|
-
* 2. Server executes compiled handler with fetch effects
|
|
11
|
-
* 3. Server returns { data: { EntityName: [...records] }, clientEffects: [...] }
|
|
12
|
-
* 4. Provider stores data in this context
|
|
13
|
-
* 5. Pattern components access data via useFetchedData hook
|
|
14
|
-
*
|
|
15
|
-
* Used by both Builder preview and compiled shell.
|
|
16
|
-
*
|
|
17
|
-
* @packageDocumentation
|
|
18
|
-
*/
|
|
19
|
-
import React from 'react';
|
|
20
|
-
export interface EntityRecord {
|
|
21
|
-
id: string;
|
|
22
|
-
[key: string]: unknown;
|
|
23
|
-
}
|
|
24
|
-
export interface FetchedDataState {
|
|
25
|
-
/** Entity data by entity name (e.g., { Task: [...], User: [...] }) */
|
|
26
|
-
data: Record<string, EntityRecord[]>;
|
|
27
|
-
/** Timestamp of last fetch per entity */
|
|
28
|
-
fetchedAt: Record<string, number>;
|
|
29
|
-
/** Whether data is currently being fetched */
|
|
30
|
-
loading: boolean;
|
|
31
|
-
/** Last error message */
|
|
32
|
-
error: string | null;
|
|
33
|
-
}
|
|
34
|
-
export interface FetchedDataContextValue {
|
|
35
|
-
/** Get all records for an entity */
|
|
36
|
-
getData: (entityName: string) => EntityRecord[];
|
|
37
|
-
/** Get a single record by ID */
|
|
38
|
-
getById: (entityName: string, id: string) => EntityRecord | undefined;
|
|
39
|
-
/** Check if entity data exists */
|
|
40
|
-
hasData: (entityName: string) => boolean;
|
|
41
|
-
/** Get fetch timestamp for entity */
|
|
42
|
-
getFetchedAt: (entityName: string) => number | undefined;
|
|
43
|
-
/** Update data from server response */
|
|
44
|
-
setData: (data: Record<string, unknown[]>) => void;
|
|
45
|
-
/** Clear all fetched data */
|
|
46
|
-
clearData: () => void;
|
|
47
|
-
/** Clear data for specific entity */
|
|
48
|
-
clearEntity: (entityName: string) => void;
|
|
49
|
-
/** Current loading state */
|
|
50
|
-
loading: boolean;
|
|
51
|
-
/** Set loading state */
|
|
52
|
-
setLoading: (loading: boolean) => void;
|
|
53
|
-
/** Current error */
|
|
54
|
-
error: string | null;
|
|
55
|
-
/** Set error */
|
|
56
|
-
setError: (error: string | null) => void;
|
|
57
|
-
}
|
|
58
|
-
export declare const FetchedDataContext: React.Context<FetchedDataContextValue | null>;
|
|
59
|
-
export interface FetchedDataProviderProps {
|
|
60
|
-
/** Initial data (optional) */
|
|
61
|
-
initialData?: Record<string, unknown[]>;
|
|
62
|
-
/** Children */
|
|
63
|
-
children: React.ReactNode;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* FetchedDataProvider - Provides server-fetched entity data
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```tsx
|
|
70
|
-
* <FetchedDataProvider>
|
|
71
|
-
* <OrbitalProvider>
|
|
72
|
-
* <App />
|
|
73
|
-
* </OrbitalProvider>
|
|
74
|
-
* </FetchedDataProvider>
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
export declare function FetchedDataProvider({ initialData, children, }: FetchedDataProviderProps): React.ReactElement;
|
|
78
|
-
/**
|
|
79
|
-
* Access the fetched data context.
|
|
80
|
-
* Returns null if not within a FetchedDataProvider.
|
|
81
|
-
*/
|
|
82
|
-
export declare function useFetchedDataContext(): FetchedDataContextValue | null;
|
|
83
|
-
/**
|
|
84
|
-
* Access fetched data with fallback behavior.
|
|
85
|
-
* If not in a provider, returns empty data.
|
|
86
|
-
*/
|
|
87
|
-
export declare function useFetchedData(): FetchedDataContextValue;
|
|
88
|
-
/**
|
|
89
|
-
* Access fetched data for a specific entity.
|
|
90
|
-
* Provides a convenient API for entity-specific operations.
|
|
91
|
-
*/
|
|
92
|
-
export declare function useFetchedEntity(entityName: string): {
|
|
93
|
-
/** All fetched records for this entity */
|
|
94
|
-
records: EntityRecord[];
|
|
95
|
-
/** Get a record by ID */
|
|
96
|
-
getById: (id: string) => EntityRecord | undefined;
|
|
97
|
-
/** Whether data has been fetched for this entity */
|
|
98
|
-
hasData: boolean;
|
|
99
|
-
/** When data was last fetched */
|
|
100
|
-
fetchedAt: number | undefined;
|
|
101
|
-
/** Whether data is loading */
|
|
102
|
-
loading: boolean;
|
|
103
|
-
/** Current error */
|
|
104
|
-
error: string | null;
|
|
105
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OfflineModeProvider
|
|
3
|
-
*
|
|
4
|
-
* Context provider that wraps useOfflineExecutor with force-offline toggle support.
|
|
5
|
-
* Enables testing offline behavior without actually disconnecting.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import { type UseOfflineExecutorOptions, type UseOfflineExecutorResult } from '../renderer/offline-executor';
|
|
11
|
-
export interface OfflineModeContextValue extends UseOfflineExecutorResult {
|
|
12
|
-
/** Force offline mode for testing */
|
|
13
|
-
forceOffline: boolean;
|
|
14
|
-
/** Toggle force offline mode */
|
|
15
|
-
setForceOffline: (value: boolean) => void;
|
|
16
|
-
/** Whether effectively offline (real or forced) */
|
|
17
|
-
effectivelyOffline: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface OfflineModeProviderProps extends UseOfflineExecutorOptions {
|
|
20
|
-
children: React.ReactNode;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* OfflineModeProvider - Wraps offline executor with force-offline support.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```tsx
|
|
27
|
-
* function App() {
|
|
28
|
-
* return (
|
|
29
|
-
* <OfflineModeProvider
|
|
30
|
-
* serverUrl="/api/orbitals"
|
|
31
|
-
* authToken={token}
|
|
32
|
-
* autoSync={true}
|
|
33
|
-
* renderToSlot={slotManager.render}
|
|
34
|
-
* navigate={router.push}
|
|
35
|
-
* notify={toast.show}
|
|
36
|
-
* eventBus={{ emit: bus.emit }}
|
|
37
|
-
* >
|
|
38
|
-
* <PreviewPage />
|
|
39
|
-
* </OfflineModeProvider>
|
|
40
|
-
* );
|
|
41
|
-
* }
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare function OfflineModeProvider({ children, ...executorOptions }: OfflineModeProviderProps): React.ReactElement;
|
|
45
|
-
/**
|
|
46
|
-
* Access offline mode context.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```tsx
|
|
50
|
-
* function OfflineToggle() {
|
|
51
|
-
* const {
|
|
52
|
-
* effectivelyOffline,
|
|
53
|
-
* forceOffline,
|
|
54
|
-
* setForceOffline,
|
|
55
|
-
* pendingCount,
|
|
56
|
-
* sync,
|
|
57
|
-
* } = useOfflineMode();
|
|
58
|
-
*
|
|
59
|
-
* return (
|
|
60
|
-
* <div>
|
|
61
|
-
* <Toggle
|
|
62
|
-
* checked={forceOffline}
|
|
63
|
-
* onChange={setForceOffline}
|
|
64
|
-
* >
|
|
65
|
-
* Test Offline
|
|
66
|
-
* </Toggle>
|
|
67
|
-
* {pendingCount > 0 && <Badge>{pendingCount} pending</Badge>}
|
|
68
|
-
* <Button onClick={sync}>Sync Now</Button>
|
|
69
|
-
* </div>
|
|
70
|
-
* );
|
|
71
|
-
* }
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
export declare function useOfflineMode(): OfflineModeContextValue;
|
|
75
|
-
/**
|
|
76
|
-
* Check if offline mode provider is available (optional usage).
|
|
77
|
-
*/
|
|
78
|
-
export declare function useOptionalOfflineMode(): OfflineModeContextValue | null;
|
|
79
|
-
export default OfflineModeProvider;
|