@almadar/ui 5.111.0 → 5.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GameAudioProvider-CPGwD49P.d.cts +151 -0
- package/dist/GameAudioProvider-CPGwD49P.d.ts +151 -0
- package/dist/TraitProvider-YkK6tXDw.d.cts +236 -0
- package/dist/TraitProvider-YkK6tXDw.d.ts +236 -0
- package/dist/{providers/UISlotContext.d.ts → UISlotContext-C1FsU9GB.d.ts} +14 -10
- package/dist/UISlotContext-D8_SoDsD.d.cts +79 -0
- package/dist/UserContext-bziZwgFL.d.cts +278 -0
- package/dist/UserContext-bziZwgFL.d.ts +278 -0
- package/dist/avl/index.cjs +137 -18
- package/dist/avl/index.js +139 -20
- package/dist/avl-schema-parser-B8Onmfsu.d.cts +393 -0
- package/dist/avl-schema-parser-B8Onmfsu.d.ts +393 -0
- package/dist/cn-BkQrMR01.d.cts +295 -0
- package/dist/cn-CTEFm9PC.d.ts +295 -0
- package/dist/components/index.cjs +33 -6
- package/dist/components/index.d.cts +11225 -0
- package/dist/components/index.d.ts +11225 -6
- package/dist/components/index.js +33 -6
- package/dist/{lib/themeTokens.d.ts → context/index.d.cts} +13 -4
- package/dist/context/index.d.ts +62 -9
- package/dist/{types/event-bus-types.d.ts → event-bus-types-Bl78kokd.d.cts} +7 -6
- package/dist/event-bus-types-Bl78kokd.d.ts +65 -0
- package/dist/hooks/index.d.cts +995 -0
- package/dist/hooks/index.d.ts +994 -32
- package/dist/lib/drawable/three/index.cjs +11 -24
- package/dist/lib/drawable/three/index.d.cts +1485 -0
- package/dist/lib/drawable/three/index.d.ts +1484 -38
- package/dist/lib/drawable/three/index.js +11 -24
- package/dist/lib/index.d.cts +505 -0
- package/dist/lib/index.d.ts +504 -18
- package/dist/locales/index.d.cts +22 -0
- package/dist/locales/index.d.ts +7 -5
- package/dist/offline-executor-aRuNznZx.d.cts +520 -0
- package/dist/offline-executor-aRuNznZx.d.ts +520 -0
- package/dist/paintDispatch-DR942knx.d.cts +221 -0
- package/dist/paintDispatch-DR942knx.d.ts +221 -0
- package/dist/providers/index.cjs +33 -6
- package/dist/providers/index.d.cts +428 -0
- package/dist/providers/index.d.ts +427 -26
- package/dist/providers/index.js +33 -6
- package/dist/renderer/index.cjs +1 -1
- package/dist/renderer/index.d.cts +343 -0
- package/dist/renderer/index.d.ts +337 -22
- package/dist/renderer/index.js +1 -1
- package/dist/runtime/index.cjs +137 -18
- package/dist/runtime/index.d.cts +426 -0
- package/dist/runtime/index.d.ts +421 -16
- package/dist/runtime/index.js +139 -20
- package/dist/useEventBus-CQWyAWpK.d.ts +65 -0
- package/dist/useEventBus-Ckr4wqW3.d.cts +65 -0
- package/dist/{hooks/useUISlots.d.ts → useUISlots-BesZYMks.d.cts} +16 -14
- package/dist/useUISlots-BesZYMks.d.ts +216 -0
- package/package.json +11 -11
- package/dist/avl/index.d.cts +0 -1853
- package/dist/avl/index.d.ts +0 -64
- package/dist/components/avl/atoms/Avl3DLabel.d.ts +0 -23
- package/dist/components/avl/atoms/Avl3DTooltip.d.ts +0 -25
- package/dist/components/avl/atoms/AvlApplication.d.ts +0 -8
- package/dist/components/avl/atoms/AvlBinding.d.ts +0 -12
- package/dist/components/avl/atoms/AvlBindingRef.d.ts +0 -7
- package/dist/components/avl/atoms/AvlEffect.d.ts +0 -10
- package/dist/components/avl/atoms/AvlEntity.d.ts +0 -9
- package/dist/components/avl/atoms/AvlEvent.d.ts +0 -7
- package/dist/components/avl/atoms/AvlField.d.ts +0 -10
- package/dist/components/avl/atoms/AvlFieldType.d.ts +0 -8
- package/dist/components/avl/atoms/AvlGuard.d.ts +0 -7
- package/dist/components/avl/atoms/AvlLiteral.d.ts +0 -7
- package/dist/components/avl/atoms/AvlOperator.d.ts +0 -8
- package/dist/components/avl/atoms/AvlOrbital.d.ts +0 -11
- package/dist/components/avl/atoms/AvlPage.d.ts +0 -7
- package/dist/components/avl/atoms/AvlPersistence.d.ts +0 -8
- package/dist/components/avl/atoms/AvlSExpr.d.ts +0 -8
- package/dist/components/avl/atoms/AvlState.d.ts +0 -15
- package/dist/components/avl/atoms/AvlTrait.d.ts +0 -13
- package/dist/components/avl/atoms/AvlTransition.d.ts +0 -18
- package/dist/components/avl/atoms/index.d.ts +0 -24
- package/dist/components/avl/hooks/useCanvasDnd.d.ts +0 -155
- package/dist/components/avl/lib/avl-3d-layout.d.ts +0 -116
- package/dist/components/avl/lib/avl-behavior-compose-converter.d.ts +0 -55
- package/dist/components/avl/lib/avl-elk-layout.d.ts +0 -55
- package/dist/components/avl/lib/avl-flow-converter.d.ts +0 -17
- package/dist/components/avl/lib/avl-layout.d.ts +0 -32
- package/dist/components/avl/lib/avl-preview-converter.d.ts +0 -71
- package/dist/components/avl/lib/avl-schema-parser.d.ts +0 -128
- package/dist/components/avl/lib/avl-story-schemas.d.ts +0 -34
- package/dist/components/avl/lib/avl-zoom-band.d.ts +0 -19
- package/dist/components/avl/lib/avl-zoom-state.d.ts +0 -72
- package/dist/components/avl/lib/derive-edit-focus.d.ts +0 -8
- package/dist/components/avl/lib/wire-validation.d.ts +0 -30
- package/dist/components/avl/molecules/Avl3DCrossWire.d.ts +0 -22
- package/dist/components/avl/molecules/Avl3DEntityCore.d.ts +0 -26
- package/dist/components/avl/molecules/Avl3DExprTree.d.ts +0 -21
- package/dist/components/avl/molecules/Avl3DOrbitalNode.d.ts +0 -29
- package/dist/components/avl/molecules/Avl3DStateNode.d.ts +0 -34
- package/dist/components/avl/molecules/Avl3DTransitionArc.d.ts +0 -38
- package/dist/components/avl/molecules/AvlBackwardEdge.d.ts +0 -8
- package/dist/components/avl/molecules/AvlBehaviorGlyph.d.ts +0 -61
- package/dist/components/avl/molecules/AvlBindingEdge.d.ts +0 -9
- package/dist/components/avl/molecules/AvlClosedCircuit.d.ts +0 -20
- package/dist/components/avl/molecules/AvlEmitListen.d.ts +0 -16
- package/dist/components/avl/molecules/AvlEventWireEdge.d.ts +0 -15
- package/dist/components/avl/molecules/AvlExprTree.d.ts +0 -13
- package/dist/components/avl/molecules/AvlOrbitalNode.d.ts +0 -12
- package/dist/components/avl/molecules/AvlOrbitalUnit.d.ts +0 -20
- package/dist/components/avl/molecules/AvlPageEdge.d.ts +0 -8
- package/dist/components/avl/molecules/AvlSlotMap.d.ts +0 -18
- package/dist/components/avl/molecules/AvlStateMachine.d.ts +0 -22
- package/dist/components/avl/molecules/AvlSwimLane.d.ts +0 -10
- package/dist/components/avl/molecules/AvlTransitionEdge.d.ts +0 -17
- package/dist/components/avl/molecules/AvlTransitionLane.d.ts +0 -18
- package/dist/components/avl/molecules/BehaviorComposeNode.d.ts +0 -13
- package/dist/components/avl/molecules/BehaviorView.d.ts +0 -12
- package/dist/components/avl/molecules/DetailView.d.ts +0 -13
- package/dist/components/avl/molecules/EventFlowEdge.d.ts +0 -13
- package/dist/components/avl/molecules/MiniStateMachine.d.ts +0 -14
- package/dist/components/avl/molecules/ModuleCard.d.ts +0 -22
- package/dist/components/avl/molecules/OrbPreviewNode.d.ts +0 -38
- package/dist/components/avl/molecules/SystemNode.d.ts +0 -12
- package/dist/components/avl/molecules/TraitCardNode.d.ts +0 -33
- package/dist/components/avl/molecules/index.d.ts +0 -38
- package/dist/components/avl/organisms/Avl3DApplicationScene.d.ts +0 -19
- package/dist/components/avl/organisms/Avl3DEffects.d.ts +0 -18
- package/dist/components/avl/organisms/Avl3DOrbitalScene.d.ts +0 -23
- package/dist/components/avl/organisms/Avl3DTraitScene.d.ts +0 -19
- package/dist/components/avl/organisms/Avl3DTransitionScene.d.ts +0 -17
- package/dist/components/avl/organisms/Avl3DViewer.d.ts +0 -40
- package/dist/components/avl/organisms/AvlClickTarget.d.ts +0 -31
- package/dist/components/avl/organisms/AvlCosmicZoom.d.ts +0 -41
- package/dist/components/avl/organisms/AvlLegend.d.ts +0 -15
- package/dist/components/avl/organisms/AvlOrbitalsCosmicZoom.d.ts +0 -54
- package/dist/components/avl/organisms/AvlTraitScene.d.ts +0 -17
- package/dist/components/avl/organisms/AvlTransitionDetail.d.ts +0 -20
- package/dist/components/avl/organisms/AvlTransitionScene.d.ts +0 -13
- package/dist/components/avl/organisms/FlowCanvas.d.ts +0 -134
- package/dist/components/avl/organisms/OrbInspector.d.ts +0 -45
- package/dist/components/avl/organisms/ZoomBreadcrumb.d.ts +0 -16
- package/dist/components/avl/organisms/ZoomLegend.d.ts +0 -10
- package/dist/components/avl/organisms/index.d.ts +0 -19
- package/dist/components/avl/providers/avl-3d-context.d.ts +0 -32
- package/dist/components/avl/types/avl-atom-types.d.ts +0 -53
- package/dist/components/avl/types/avl-behavior-compose-types.d.ts +0 -120
- package/dist/components/avl/types/avl-canvas-types.d.ts +0 -39
- package/dist/components/avl/types/avl-preview-types.d.ts +0 -240
- package/dist/components/core/atoms/Aside.d.ts +0 -15
- package/dist/components/core/atoms/AtlasImage.d.ts +0 -58
- package/dist/components/core/atoms/Avatar.d.ts +0 -61
- package/dist/components/core/atoms/Badge.d.ts +0 -29
- package/dist/components/core/atoms/Box.d.ts +0 -68
- package/dist/components/core/atoms/Button.d.ts +0 -33
- package/dist/components/core/atoms/Card.d.ts +0 -34
- package/dist/components/core/atoms/Center.d.ts +0 -33
- package/dist/components/core/atoms/Checkbox.d.ts +0 -14
- package/dist/components/core/atoms/ConditionalWrapper.d.ts +0 -69
- package/dist/components/core/atoms/ConfettiEffect.d.ts +0 -19
- package/dist/components/core/atoms/DayCell.d.ts +0 -22
- package/dist/components/core/atoms/Dialog.d.ts +0 -18
- package/dist/components/core/atoms/Divider.d.ts +0 -29
- package/dist/components/core/atoms/FilterPill.d.ts +0 -30
- package/dist/components/core/atoms/FlipContainer.d.ts +0 -21
- package/dist/components/core/atoms/GameIcon.d.ts +0 -19
- package/dist/components/core/atoms/Icon.d.ts +0 -57
- package/dist/components/core/atoms/InfiniteScrollSentinel.d.ts +0 -24
- package/dist/components/core/atoms/Input.d.ts +0 -39
- package/dist/components/core/atoms/Label.d.ts +0 -12
- package/dist/components/core/atoms/LawReferenceTooltip.d.ts +0 -48
- package/dist/components/core/atoms/Overlay.d.ts +0 -17
- package/dist/components/core/atoms/ProgressBar.d.ts +0 -63
- package/dist/components/core/atoms/Radio.d.ts +0 -35
- package/dist/components/core/atoms/RangeSlider.d.ts +0 -34
- package/dist/components/core/atoms/SectionHeader.d.ts +0 -14
- package/dist/components/core/atoms/Select.d.ts +0 -49
- package/dist/components/core/atoms/Spacer.d.ts +0 -25
- package/dist/components/core/atoms/Sparkline.d.ts +0 -30
- package/dist/components/core/atoms/Spinner.d.ts +0 -10
- package/dist/components/core/atoms/Stack.d.ts +0 -67
- package/dist/components/core/atoms/StatusDot.d.ts +0 -16
- package/dist/components/core/atoms/Switch.d.ts +0 -12
- package/dist/components/core/atoms/TextHighlight.d.ts +0 -54
- package/dist/components/core/atoms/Textarea.d.ts +0 -17
- package/dist/components/core/atoms/ThemeToggle.d.ts +0 -33
- package/dist/components/core/atoms/TimeSlotCell.d.ts +0 -23
- package/dist/components/core/atoms/TraitFrame.d.ts +0 -54
- package/dist/components/core/atoms/TrendIndicator.d.ts +0 -20
- package/dist/components/core/atoms/TypewriterText.d.ts +0 -20
- package/dist/components/core/atoms/Typography.d.ts +0 -39
- package/dist/components/core/atoms/index.d.ts +0 -52
- package/dist/components/core/atoms/svg/SvgBranch.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgConnection.d.ts +0 -17
- package/dist/components/core/atoms/svg/SvgFlow.d.ts +0 -14
- package/dist/components/core/atoms/svg/SvgGrid.d.ts +0 -18
- package/dist/components/core/atoms/svg/SvgLobe.d.ts +0 -17
- package/dist/components/core/atoms/svg/SvgMesh.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgMorph.d.ts +0 -15
- package/dist/components/core/atoms/svg/SvgNode.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgPulse.d.ts +0 -16
- package/dist/components/core/atoms/svg/SvgRing.d.ts +0 -17
- package/dist/components/core/atoms/svg/SvgShield.d.ts +0 -15
- package/dist/components/core/atoms/svg/SvgStack.d.ts +0 -17
- package/dist/components/core/atoms/svg/index.d.ts +0 -12
- package/dist/components/core/atoms/types.d.ts +0 -47
- package/dist/components/core/molecules/Accordion.d.ts +0 -71
- package/dist/components/core/molecules/ActivationBlock.d.ts +0 -22
- package/dist/components/core/molecules/Alert.d.ts +0 -25
- package/dist/components/core/molecules/AnimatedCounter.d.ts +0 -18
- package/dist/components/core/molecules/AssetPicker.d.ts +0 -21
- package/dist/components/core/molecules/BloomQuizBlock.d.ts +0 -25
- package/dist/components/core/molecules/BranchingLogicBuilder.d.ts +0 -33
- package/dist/components/core/molecules/Breadcrumb.d.ts +0 -55
- package/dist/components/core/molecules/ButtonGroup.d.ts +0 -77
- package/dist/components/core/molecules/CalendarGrid.d.ts +0 -61
- package/dist/components/core/molecules/Card.d.ts +0 -58
- package/dist/components/core/molecules/Carousel.d.ts +0 -42
- package/dist/components/core/molecules/Chart.d.ts +0 -106
- package/dist/components/core/molecules/ChartLegend.d.ts +0 -20
- package/dist/components/core/molecules/Coachmark.d.ts +0 -47
- package/dist/components/core/molecules/ConfirmDialog.d.ts +0 -49
- package/dist/components/core/molecules/ConnectionBlock.d.ts +0 -18
- package/dist/components/core/molecules/Container.d.ts +0 -30
- package/dist/components/core/molecules/ContentRenderer.d.ts +0 -23
- package/dist/components/core/molecules/DataGrid.d.ts +0 -117
- package/dist/components/core/molecules/DataList.d.ts +0 -129
- package/dist/components/core/molecules/DateRangePicker.d.ts +0 -56
- package/dist/components/core/molecules/DateRangeSelector.d.ts +0 -21
- package/dist/components/core/molecules/DocBreadcrumb.d.ts +0 -20
- package/dist/components/core/molecules/DocPagination.d.ts +0 -21
- package/dist/components/core/molecules/DocSearch.d.ts +0 -22
- package/dist/components/core/molecules/DocSidebar.d.ts +0 -24
- package/dist/components/core/molecules/DocTOC.d.ts +0 -24
- package/dist/components/core/molecules/DocumentViewer.d.ts +0 -61
- package/dist/components/core/molecules/Drawer.d.ts +0 -47
- package/dist/components/core/molecules/EdgeDecoration.d.ts +0 -36
- package/dist/components/core/molecules/EmptyState.d.ts +0 -29
- package/dist/components/core/molecules/ErrorBoundary.d.ts +0 -54
- package/dist/components/core/molecules/ErrorState.d.ts +0 -14
- package/dist/components/core/molecules/FeatureGrid.d.ts +0 -19
- package/dist/components/core/molecules/FileTree.d.ts +0 -37
- package/dist/components/core/molecules/FilterGroup.d.ts +0 -61
- package/dist/components/core/molecules/Flex.d.ts +0 -43
- package/dist/components/core/molecules/FlipCard.d.ts +0 -24
- package/dist/components/core/molecules/FloatingActionButton.d.ts +0 -83
- package/dist/components/core/molecules/FormField.d.ts +0 -16
- package/dist/components/core/molecules/FormSection.d.ts +0 -39
- package/dist/components/core/molecules/FormSectionHeader.d.ts +0 -31
- package/dist/components/core/molecules/GradientDivider.d.ts +0 -15
- package/dist/components/core/molecules/GraphCanvas.d.ts +0 -83
- package/dist/components/core/molecules/GraphView.d.ts +0 -45
- package/dist/components/core/molecules/Grid.d.ts +0 -54
- package/dist/components/core/molecules/GridPicker.d.ts +0 -44
- package/dist/components/core/molecules/Header.d.ts +0 -113
- package/dist/components/core/molecules/IconPicker.d.ts +0 -18
- package/dist/components/core/molecules/InputGroup.d.ts +0 -24
- package/dist/components/core/molecules/JazariStateMachine.d.ts +0 -34
- package/dist/components/core/molecules/JsonTreeEditor.d.ts +0 -13
- package/dist/components/core/molecules/Lightbox.d.ts +0 -26
- package/dist/components/core/molecules/LikertScale.d.ts +0 -34
- package/dist/components/core/molecules/LineChart.d.ts +0 -35
- package/dist/components/core/molecules/LoadingState.d.ts +0 -7
- package/dist/components/core/molecules/MapView.d.ts +0 -87
- package/dist/components/core/molecules/MatrixQuestion.d.ts +0 -35
- package/dist/components/core/molecules/Menu.d.ts +0 -44
- package/dist/components/core/molecules/Meter.d.ts +0 -52
- package/dist/components/core/molecules/Modal.d.ts +0 -36
- package/dist/components/core/molecules/Navigation.d.ts +0 -67
- package/dist/components/core/molecules/NodeSlotEditor.d.ts +0 -17
- package/dist/components/core/molecules/NumberStepper.d.ts +0 -28
- package/dist/components/core/molecules/OnboardingSpotlight.d.ts +0 -27
- package/dist/components/core/molecules/OptionConstraintGroup.d.ts +0 -44
- package/dist/components/core/molecules/OrbitalVisualization.d.ts +0 -48
- package/dist/components/core/molecules/PageHeader.d.ts +0 -60
- package/dist/components/core/molecules/Pagination.d.ts +0 -71
- package/dist/components/core/molecules/Popover.d.ts +0 -39
- package/dist/components/core/molecules/PositionedCanvas.d.ts +0 -40
- package/dist/components/core/molecules/ProgressDots.d.ts +0 -24
- package/dist/components/core/molecules/PropertyInspector.d.ts +0 -38
- package/dist/components/core/molecules/PullToRefresh.d.ts +0 -22
- package/dist/components/core/molecules/QrScanner.d.ts +0 -24
- package/dist/components/core/molecules/QuizBlock.d.ts +0 -20
- package/dist/components/core/molecules/ReflectionBlock.d.ts +0 -23
- package/dist/components/core/molecules/RelationSelect.d.ts +0 -48
- package/dist/components/core/molecules/RepeatableFormSection.d.ts +0 -60
- package/dist/components/core/molecules/ReplyTree.d.ts +0 -46
- package/dist/components/core/molecules/RichBlockEditor.d.ts +0 -43
- package/dist/components/core/molecules/ScaledDiagram.d.ts +0 -20
- package/dist/components/core/molecules/SearchInput.d.ts +0 -60
- package/dist/components/core/molecules/Section.d.ts +0 -43
- package/dist/components/core/molecules/SidePanel.d.ts +0 -53
- package/dist/components/core/molecules/Sidebar.d.ts +0 -72
- package/dist/components/core/molecules/SignaturePad.d.ts +0 -46
- package/dist/components/core/molecules/SimpleGrid.d.ts +0 -27
- package/dist/components/core/molecules/Skeleton.d.ts +0 -35
- package/dist/components/core/molecules/SocialProof.d.ts +0 -25
- package/dist/components/core/molecules/SortableList.d.ts +0 -19
- package/dist/components/core/molecules/Split.d.ts +0 -41
- package/dist/components/core/molecules/StarRating.d.ts +0 -27
- package/dist/components/core/molecules/StatDisplay.d.ts +0 -58
- package/dist/components/core/molecules/SwipeableRow.d.ts +0 -26
- package/dist/components/core/molecules/TableView.d.ts +0 -111
- package/dist/components/core/molecules/Tabs.d.ts +0 -60
- package/dist/components/core/molecules/TagInput.d.ts +0 -52
- package/dist/components/core/molecules/Toast.d.ts +0 -36
- package/dist/components/core/molecules/Tooltip.d.ts +0 -25
- package/dist/components/core/molecules/UploadDropZone.d.ts +0 -28
- package/dist/components/core/molecules/VersionDiff.d.ts +0 -62
- package/dist/components/core/molecules/ViolationAlert.d.ts +0 -46
- package/dist/components/core/molecules/VoteStack.d.ts +0 -35
- package/dist/components/core/molecules/WizardContainer.d.ts +0 -166
- package/dist/components/core/molecules/WizardNavigation.d.ts +0 -61
- package/dist/components/core/molecules/WizardProgress.d.ts +0 -45
- package/dist/components/core/molecules/index.d.ts +0 -138
- package/dist/components/core/molecules/lessonSegmentUtils.d.ts +0 -18
- package/dist/components/core/molecules/markdown/CodeBlock.d.ts +0 -108
- package/dist/components/core/molecules/markdown/MarkdownContent.d.ts +0 -26
- package/dist/components/core/molecules/markdown/index.d.ts +0 -2
- package/dist/components/core/molecules/parseLessonSegments.d.ts +0 -44
- package/dist/components/core/molecules/useDataDnd.d.ts +0 -63
- package/dist/components/core/organisms/CardGrid.d.ts +0 -84
- package/dist/components/core/organisms/ChatBar.d.ts +0 -31
- package/dist/components/core/organisms/CodeRunnerPanel.d.ts +0 -42
- package/dist/components/core/organisms/ComponentPatterns.d.ts +0 -185
- package/dist/components/core/organisms/CustomPattern.d.ts +0 -105
- package/dist/components/core/organisms/DataTable.d.ts +0 -79
- package/dist/components/core/organisms/DetailPanel.d.ts +0 -80
- package/dist/components/core/organisms/DrawerSlot.d.ts +0 -42
- package/dist/components/core/organisms/Form.d.ts +0 -214
- package/dist/components/core/organisms/LayoutPatterns.d.ts +0 -108
- package/dist/components/core/organisms/List.d.ts +0 -81
- package/dist/components/core/organisms/MasterDetail.d.ts +0 -35
- package/dist/components/core/organisms/MediaGallery.d.ts +0 -63
- package/dist/components/core/organisms/ModalSlot.d.ts +0 -38
- package/dist/components/core/organisms/NotifyListener.d.ts +0 -15
- package/dist/components/core/organisms/SegmentRenderer.d.ts +0 -38
- package/dist/components/core/organisms/StatCard.d.ts +0 -65
- package/dist/components/core/organisms/StateMachineView.d.ts +0 -45
- package/dist/components/core/organisms/SubagentTracePanel.d.ts +0 -50
- package/dist/components/core/organisms/Timeline.d.ts +0 -71
- package/dist/components/core/organisms/ToastSlot.d.ts +0 -41
- package/dist/components/core/organisms/UISlotRenderer.d.ts +0 -116
- package/dist/components/core/organisms/book/index.d.ts +0 -7
- package/dist/components/core/organisms/book/types.d.ts +0 -62
- package/dist/components/core/organisms/component-registry.generated.d.ts +0 -9
- package/dist/components/core/organisms/debug/RuntimeDebugger.d.ts +0 -29
- package/dist/components/core/organisms/debug/WalkMinimap.d.ts +0 -17
- package/dist/components/core/organisms/debug/hooks/useDebugData.d.ts +0 -25
- package/dist/components/core/organisms/debug/index.d.ts +0 -13
- package/dist/components/core/organisms/debug/tabs/EntitiesTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/EventDispatcherTab.d.ts +0 -18
- package/dist/components/core/organisms/debug/tabs/EventFlowTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/GuardsPanel.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/ServerBridgeTab.d.ts +0 -20
- package/dist/components/core/organisms/debug/tabs/TicksTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/TraitsTab.d.ts +0 -14
- package/dist/components/core/organisms/debug/tabs/TransitionTimeline.d.ts +0 -19
- package/dist/components/core/organisms/debug/tabs/VerificationTab.d.ts +0 -17
- package/dist/components/core/organisms/index.d.ts +0 -33
- package/dist/components/core/organisms/layout/DashboardGrid.d.ts +0 -33
- package/dist/components/core/organisms/layout/MasterDetailLayout.d.ts +0 -32
- package/dist/components/core/organisms/layout/SplitPane.d.ts +0 -34
- package/dist/components/core/organisms/layout/TabbedContainer.d.ts +0 -42
- package/dist/components/core/organisms/layout/index.d.ts +0 -9
- package/dist/components/core/organisms/marketing-types.d.ts +0 -8
- package/dist/components/core/organisms/trace-edit-focus.d.ts +0 -14
- package/dist/components/core/organisms/types.d.ts +0 -72
- package/dist/components/core/templates/CounterTemplate.d.ts +0 -51
- package/dist/components/core/templates/DashboardLayout.d.ts +0 -110
- package/dist/components/core/templates/GenericAppTemplate.d.ts +0 -24
- package/dist/components/core/templates/index.d.ts +0 -10
- package/dist/components/core/templates/types.d.ts +0 -35
- package/dist/components/game/atoms/ChoiceButton.d.ts +0 -29
- package/dist/components/game/atoms/ControlButton.d.ts +0 -35
- package/dist/components/game/atoms/DialogueBubble.d.ts +0 -26
- package/dist/components/game/atoms/DrawShape.d.ts +0 -50
- package/dist/components/game/atoms/DrawSprite.d.ts +0 -47
- package/dist/components/game/atoms/DrawText.d.ts +0 -31
- package/dist/components/game/atoms/GameAudioToggle.d.ts +0 -34
- package/dist/components/game/atoms/HealthBar.d.ts +0 -32
- package/dist/components/game/atoms/MiniMap.d.ts +0 -40
- package/dist/components/game/atoms/ScoreDisplay.d.ts +0 -25
- package/dist/components/game/atoms/StateIndicator.d.ts +0 -29
- package/dist/components/game/atoms/TimerDisplay.d.ts +0 -22
- package/dist/components/game/molecules/ActionPalette.d.ts +0 -34
- package/dist/components/game/molecules/ActionTile.d.ts +0 -30
- package/dist/components/game/molecules/Canvas.d.ts +0 -96
- package/dist/components/game/molecules/Canvas2D.d.ts +0 -120
- package/dist/components/game/molecules/ControlGrid.d.ts +0 -49
- package/dist/components/game/molecules/DrawShapeLayer.d.ts +0 -19
- package/dist/components/game/molecules/DrawSpriteLayer.d.ts +0 -21
- package/dist/components/game/molecules/DrawTextLayer.d.ts +0 -22
- package/dist/components/game/molecules/GameHud.d.ts +0 -52
- package/dist/components/game/molecules/GameMenu.d.ts +0 -42
- package/dist/components/game/molecules/SequenceBar.d.ts +0 -51
- package/dist/components/game/molecules/StatBadge.d.ts +0 -39
- package/dist/components/game/molecules/StateGraph.d.ts +0 -38
- package/dist/components/game/molecules/StateJsonView.d.ts +0 -37
- package/dist/components/game/molecules/StateNode.d.ts +0 -31
- package/dist/components/game/molecules/TraitSlot.d.ts +0 -99
- package/dist/components/game/molecules/TraitStateViewer.d.ts +0 -52
- package/dist/components/game/molecules/TransitionArrow.d.ts +0 -31
- package/dist/components/game/molecules/index.d.ts +0 -39
- package/dist/components/game/patterns.d.ts +0 -20
- package/dist/components/game/templates/GameShell.d.ts +0 -35
- package/dist/components/learning/atoms/LearningCanvas.d.ts +0 -80
- package/dist/components/learning/molecules/AlgorithmCanvas.d.ts +0 -58
- package/dist/components/learning/molecules/BiologyCanvas.d.ts +0 -47
- package/dist/components/learning/molecules/ChemistryCanvas.d.ts +0 -55
- package/dist/components/learning/molecules/MathCanvas.d.ts +0 -61
- package/dist/components/learning/molecules/PhysicsCanvas.d.ts +0 -54
- package/dist/components/marketing/atoms/AnimatedCounter.d.ts +0 -20
- package/dist/components/marketing/atoms/AnimatedGraphic.d.ts +0 -32
- package/dist/components/marketing/atoms/AnimatedReveal.d.ts +0 -26
- package/dist/components/marketing/atoms/ContentSection.d.ts +0 -16
- package/dist/components/marketing/atoms/MarketingStatCard.d.ts +0 -13
- package/dist/components/marketing/atoms/PatternTile.d.ts +0 -41
- package/dist/components/marketing/molecules/ArticleSection.d.ts +0 -18
- package/dist/components/marketing/molecules/CTABanner.d.ts +0 -26
- package/dist/components/marketing/molecules/CaseStudyCard.d.ts +0 -24
- package/dist/components/marketing/molecules/CommunityLinks.d.ts +0 -28
- package/dist/components/marketing/molecules/FeatureCard.d.ts +0 -26
- package/dist/components/marketing/molecules/GeometricPattern.d.ts +0 -33
- package/dist/components/marketing/molecules/HeroSection.d.ts +0 -28
- package/dist/components/marketing/molecules/InstallBox.d.ts +0 -16
- package/dist/components/marketing/molecules/MarketingFooter.d.ts +0 -29
- package/dist/components/marketing/molecules/PricingCard.d.ts +0 -19
- package/dist/components/marketing/molecules/PricingGrid.d.ts +0 -13
- package/dist/components/marketing/molecules/PullQuote.d.ts +0 -14
- package/dist/components/marketing/molecules/ServiceCatalog.d.ts +0 -19
- package/dist/components/marketing/molecules/ShowcaseCard.d.ts +0 -18
- package/dist/components/marketing/molecules/SplitSection.d.ts +0 -19
- package/dist/components/marketing/molecules/StatsGrid.d.ts +0 -18
- package/dist/components/marketing/molecules/StepFlow.d.ts +0 -21
- package/dist/components/marketing/molecules/TagCloud.d.ts +0 -18
- package/dist/components/marketing/molecules/TeamCard.d.ts +0 -19
- package/dist/components/marketing/organisms/CaseStudyOrganism.d.ts +0 -29
- package/dist/components/marketing/organisms/FeatureGridOrganism.d.ts +0 -30
- package/dist/components/marketing/organisms/HeroOrganism.d.ts +0 -42
- package/dist/components/marketing/organisms/PricingOrganism.d.ts +0 -33
- package/dist/components/marketing/organisms/ShowcaseOrganism.d.ts +0 -34
- package/dist/components/marketing/organisms/StatsOrganism.d.ts +0 -23
- package/dist/components/marketing/organisms/StepFlowOrganism.d.ts +0 -29
- package/dist/components/marketing/organisms/TeamOrganism.d.ts +0 -28
- package/dist/components/marketing/organisms/book/BookChapterView.d.ts +0 -21
- package/dist/components/marketing/organisms/book/BookCoverPage.d.ts +0 -21
- package/dist/components/marketing/organisms/book/BookNavBar.d.ts +0 -19
- package/dist/components/marketing/organisms/book/BookTableOfContents.d.ts +0 -20
- package/dist/components/marketing/organisms/book/BookViewer.d.ts +0 -31
- package/dist/components/marketing/templates/AboutPageTemplate.d.ts +0 -53
- package/dist/components/marketing/templates/AuthLayout.d.ts +0 -15
- package/dist/components/marketing/templates/FeatureDetailPageTemplate.d.ts +0 -37
- package/dist/components/marketing/templates/LandingPageTemplate.d.ts +0 -70
- package/dist/components/marketing/templates/PricingPageTemplate.d.ts +0 -44
- package/dist/hooks/useAgentChat.d.ts +0 -105
- package/dist/hooks/useAlmadarDndCollision.d.ts +0 -34
- package/dist/hooks/useAuthContext.d.ts +0 -25
- package/dist/hooks/useCamera.d.ts +0 -57
- package/dist/hooks/useCanvasGestures.d.ts +0 -44
- package/dist/hooks/useClientEffects.d.ts +0 -88
- package/dist/hooks/useCompile.d.ts +0 -18
- package/dist/hooks/useDeepAgentGeneration.d.ts +0 -46
- package/dist/hooks/useDragReorder.d.ts +0 -26
- package/dist/hooks/useDraggable.d.ts +0 -25
- package/dist/hooks/useDropZone.d.ts +0 -23
- package/dist/hooks/useEventBus.d.ts +0 -99
- package/dist/hooks/useExtensions.d.ts +0 -32
- package/dist/hooks/useFileEditor.d.ts +0 -32
- package/dist/hooks/useFileSystem.d.ts +0 -50
- package/dist/hooks/useGameAudio.d.ts +0 -47
- package/dist/hooks/useGitHub.d.ts +0 -58
- package/dist/hooks/useImageCache.d.ts +0 -16
- package/dist/hooks/useInfiniteScroll.d.ts +0 -13
- package/dist/hooks/useLongPress.d.ts +0 -16
- package/dist/hooks/useOrbitalHistory.d.ts +0 -39
- package/dist/hooks/usePreview.d.ts +0 -57
- package/dist/hooks/usePullToRefresh.d.ts +0 -25
- package/dist/hooks/useQuerySingleton.d.ts +0 -79
- package/dist/hooks/useRenderInterpolation.d.ts +0 -33
- package/dist/hooks/useResolvedSchema.d.ts +0 -45
- package/dist/hooks/useSharedEntityStore.d.ts +0 -53
- package/dist/hooks/useSwipeGesture.d.ts +0 -26
- package/dist/hooks/useTapReveal.d.ts +0 -32
- package/dist/hooks/useTraitStateMachine.d.ts +0 -136
- package/dist/hooks/useTranslate.d.ts +0 -35
- package/dist/hooks/useUIEvents.d.ts +0 -41
- package/dist/hooks/useUnitSpriteAtlas.d.ts +0 -24
- package/dist/hooks/useValidation.d.ts +0 -46
- package/dist/lib/api-client.d.ts +0 -43
- package/dist/lib/atlasSlice.d.ts +0 -58
- package/dist/lib/boardEntity.d.ts +0 -44
- package/dist/lib/client-effect-executor.d.ts +0 -57
- package/dist/lib/cn.d.ts +0 -6
- package/dist/lib/createClientEffectHandlers.d.ts +0 -42
- package/dist/lib/data-resolver.d.ts +0 -55
- package/dist/lib/debug.d.ts +0 -36
- package/dist/lib/debugRegistry.d.ts +0 -30
- package/dist/lib/debugUtils.d.ts +0 -27
- package/dist/lib/drawable/contract.d.ts +0 -68
- package/dist/lib/drawable/hitTest.d.ts +0 -23
- package/dist/lib/drawable/paintDispatch.d.ts +0 -22
- package/dist/lib/drawable/projector.d.ts +0 -14
- package/dist/lib/drawable/projector3d.d.ts +0 -20
- package/dist/lib/drawable/three/Camera3D.d.ts +0 -60
- package/dist/lib/drawable/three/Canvas3DErrorBoundary.d.ts +0 -51
- package/dist/lib/drawable/three/Canvas3DHost.d.ts +0 -178
- package/dist/lib/drawable/three/Canvas3DLoadingState.d.ts +0 -44
- package/dist/lib/drawable/three/Drawable3D.d.ts +0 -20
- package/dist/lib/drawable/three/GameCamera3D.d.ts +0 -16
- package/dist/lib/drawable/three/Lighting3D.d.ts +0 -55
- package/dist/lib/drawable/three/ModelLoader.d.ts +0 -52
- package/dist/lib/drawable/three/Scene3D.d.ts +0 -37
- package/dist/lib/drawable/three/game3dTheme.d.ts +0 -14
- package/dist/lib/drawable/three/hooks/useAssetLoader.d.ts +0 -58
- package/dist/lib/drawable/three/hooks/useGameCanvas3DEvents.d.ts +0 -124
- package/dist/lib/drawable/three/hooks/useRaycaster.d.ts +0 -86
- package/dist/lib/drawable/three/hooks/useSceneGraph.d.ts +0 -67
- package/dist/lib/drawable/three/hooks/useThree.d.ts +0 -58
- package/dist/lib/drawable/three/lib/AssetLoader.d.ts +0 -80
- package/dist/lib/drawable/three/lib/culling.d.ts +0 -134
- package/dist/lib/drawable/three/lib/grid3D.d.ts +0 -154
- package/dist/lib/drawable/three/mesh3d.d.ts +0 -28
- package/dist/lib/editorUtils.d.ts +0 -114
- package/dist/lib/embedded-traits.d.ts +0 -39
- package/dist/lib/entityDebug.d.ts +0 -39
- package/dist/lib/fn-form-lambda.d.ts +0 -27
- package/dist/lib/game.d.ts +0 -92
- package/dist/lib/gameShared.d.ts +0 -18
- package/dist/lib/getNestedValue.d.ts +0 -34
- package/dist/lib/guardRegistry.d.ts +0 -33
- package/dist/lib/iconFamily.d.ts +0 -41
- package/dist/lib/imageCache.d.ts +0 -9
- package/dist/lib/init.d.ts +0 -14
- package/dist/lib/isometric.d.ts +0 -121
- package/dist/lib/isometricTypes.d.ts +0 -141
- package/dist/lib/jazari/index.d.ts +0 -5
- package/dist/lib/jazari/layout.d.ts +0 -31
- package/dist/lib/jazari/svg-paths.d.ts +0 -61
- package/dist/lib/jazari/types.d.ts +0 -91
- package/dist/lib/makeAsset.d.ts +0 -5
- package/dist/lib/mechanics.d.ts +0 -4
- package/dist/lib/offline-executor.d.ts +0 -239
- package/dist/lib/orbitalsByTrait.d.ts +0 -34
- package/dist/lib/painter2d.d.ts +0 -81
- package/dist/lib/parseContentSegments.d.ts +0 -42
- package/dist/lib/pattern-resolver.d.ts +0 -88
- package/dist/lib/perf.d.ts +0 -32
- package/dist/lib/physicsPresets.d.ts +0 -4
- package/dist/lib/physicsTypes.d.ts +0 -43
- package/dist/lib/prepareSchemaForPreview.d.ts +0 -71
- package/dist/lib/puzzleObject.d.ts +0 -41
- package/dist/lib/slot-definitions.d.ts +0 -33
- package/dist/lib/spriteAnimation.d.ts +0 -85
- package/dist/lib/spriteAnimationTypes.d.ts +0 -72
- package/dist/lib/spriteSheetConstants.d.ts +0 -16
- package/dist/lib/tickRegistry.d.ts +0 -40
- package/dist/lib/trait-binding-resolver.d.ts +0 -57
- package/dist/lib/traitRegistry.d.ts +0 -34
- package/dist/lib/verificationRegistry.d.ts +0 -97
- package/dist/lib/visualizer/browser.d.ts +0 -48
- package/dist/lib/visualizer/index.d.ts +0 -144
- package/dist/lib/webPainter2d.d.ts +0 -7
- package/dist/lib/wrapCallbackForEvent.d.ts +0 -16
- package/dist/marketing/index.d.cts +0 -1067
- package/dist/marketing/index.d.ts +0 -72
- package/dist/providers/CurrentPagePathContext.d.ts +0 -9
- package/dist/providers/DesignThemeContext.d.ts +0 -21
- package/dist/providers/EntitySchemaContext.d.ts +0 -81
- package/dist/providers/EventBusProvider.d.ts +0 -47
- package/dist/providers/GameAudioProvider.d.ts +0 -53
- package/dist/providers/OfflineModeProvider.d.ts +0 -79
- package/dist/providers/OrbitalProvider.d.ts +0 -110
- package/dist/providers/OrbitalThemeProvider.d.ts +0 -37
- package/dist/providers/SelectionProvider.d.ts +0 -82
- package/dist/providers/ServerBridge.d.ts +0 -102
- package/dist/providers/ThemeContext.d.ts +0 -104
- package/dist/providers/TraitProvider.d.ts +0 -53
- package/dist/providers/TraitScopeProvider.d.ts +0 -43
- package/dist/providers/UserContext.d.ts +0 -112
- package/dist/providers/VerificationProvider.d.ts +0 -64
- package/dist/providers/navigation.d.ts +0 -142
- package/dist/runtime/BrowserPlayground.d.ts +0 -34
- package/dist/runtime/OrbPreview.d.ts +0 -84
- package/dist/scripts/audit-tailwind-safelist.d.ts +0 -27
- package/dist/scripts/generate-design-system.d.ts +0 -29
- package/dist/scripts/generate-theme-from-schema.d.ts +0 -10
- package/dist/scripts/generate.d.ts +0 -12
- package/dist/scripts/suggest-components.d.ts +0 -31
- package/dist/scripts/types.d.ts +0 -129
- package/dist/tsup.config.d.ts +0 -3
- package/dist/types/renderer-types.d.ts +0 -146
- package/dist/types/runtime-types.d.ts +0 -21
- package/dist/types/slot-types.d.ts +0 -49
- package/dist/vitest.config.d.ts +0 -2
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List Organism Component
|
|
3
|
-
*
|
|
4
|
-
* A beautifully designed, scannable list view.
|
|
5
|
-
*
|
|
6
|
-
* Design inspiration: Linear, Notion, Apple Reminders
|
|
7
|
-
* - Soft, harmonious color palette
|
|
8
|
-
* - Refined typography with proper hierarchy
|
|
9
|
-
* - Subtle shadows and depth
|
|
10
|
-
* - Delightful hover micro-interactions
|
|
11
|
-
* - Elegant status indicators
|
|
12
|
-
*
|
|
13
|
-
* Closed Circuit Compliance (Dumb Organism):
|
|
14
|
-
* - Receives ALL data via props (no internal fetch)
|
|
15
|
-
* - Emits events via useEventBus (UI:SELECT, UI:DESELECT, UI:VIEW)
|
|
16
|
-
* - Never listens to events — only emits
|
|
17
|
-
* - No internal search/filter state — trait provides filtered data
|
|
18
|
-
*/
|
|
19
|
-
import React from "react";
|
|
20
|
-
import type { AssetUrl, EventKey, FieldValue, EntityRow } from "@almadar/core";
|
|
21
|
-
import type { IconInput } from "../atoms/Icon";
|
|
22
|
-
import { type MenuItem } from "../molecules/Menu";
|
|
23
|
-
import type { DisplayStateProps } from "./types";
|
|
24
|
-
export type ListItem = {
|
|
25
|
-
id: string;
|
|
26
|
-
title?: string;
|
|
27
|
-
description?: string;
|
|
28
|
-
icon?: IconInput;
|
|
29
|
-
avatar?: {
|
|
30
|
-
src?: AssetUrl;
|
|
31
|
-
alt?: string;
|
|
32
|
-
initials?: string;
|
|
33
|
-
};
|
|
34
|
-
badge?: string | number;
|
|
35
|
-
metadata?: React.ReactNode;
|
|
36
|
-
onClick?: () => void;
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
completed?: boolean;
|
|
39
|
-
_fields?: Record<string, FieldValue | undefined>;
|
|
40
|
-
};
|
|
41
|
-
export interface SchemaItemAction {
|
|
42
|
-
label: string;
|
|
43
|
-
/** Event to dispatch on click */
|
|
44
|
-
event?: EventKey;
|
|
45
|
-
navigatesTo?: string;
|
|
46
|
-
/** Action placement - accepts all common placement values */
|
|
47
|
-
placement?: "row" | "bulk" | "card" | "footer" | string;
|
|
48
|
-
/** Alternate event-dispatch field (same semantics as `event`) — generated code emits `UI:{action}` on click */
|
|
49
|
-
action?: EventKey;
|
|
50
|
-
variant?: "primary" | "secondary" | "ghost" | "danger" | "default";
|
|
51
|
-
/** Click handler from generated code */
|
|
52
|
-
onClick?: (row: EntityRow) => void;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Field definition - can be a simple string or object with key/header or name/label
|
|
56
|
-
*/
|
|
57
|
-
export type FieldDef = string | {
|
|
58
|
-
key?: string;
|
|
59
|
-
header?: string;
|
|
60
|
-
name?: string;
|
|
61
|
-
label?: string;
|
|
62
|
-
};
|
|
63
|
-
export interface ListProps extends DisplayStateProps {
|
|
64
|
-
/** Entity data (single record or collection). */
|
|
65
|
-
entity?: EntityRow | readonly EntityRow[];
|
|
66
|
-
/** Entity type name for display */
|
|
67
|
-
entityType?: string;
|
|
68
|
-
selectable?: boolean;
|
|
69
|
-
/** Item actions - schema-driven or function-based */
|
|
70
|
-
itemActions?: ((item: ListItem) => MenuItem[]) | readonly SchemaItemAction[];
|
|
71
|
-
showDividers?: boolean;
|
|
72
|
-
variant?: "default" | "card";
|
|
73
|
-
emptyMessage?: string;
|
|
74
|
-
renderItem?: (item: ListItem, index: number) => React.ReactNode;
|
|
75
|
-
children?: React.ReactNode;
|
|
76
|
-
/** Fields to display - accepts string[] or {key, header}[] for unified interface */
|
|
77
|
-
fields: readonly FieldDef[];
|
|
78
|
-
/** Alias for fields - backwards compatibility */
|
|
79
|
-
fieldNames?: readonly string[];
|
|
80
|
-
}
|
|
81
|
-
export declare const List: React.FC<ListProps>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MasterDetail Component
|
|
3
|
-
*
|
|
4
|
-
* A layout pattern that shows a list/table of entities.
|
|
5
|
-
* This is a thin wrapper around DataTable that accepts master-detail specific props.
|
|
6
|
-
*
|
|
7
|
-
* The `entity` prop carries the data array (injected by the runtime).
|
|
8
|
-
* The "detail" part is typically rendered separately via another render_ui effect
|
|
9
|
-
* to a sidebar or detail panel when an item is selected.
|
|
10
|
-
*/
|
|
11
|
-
import React from 'react';
|
|
12
|
-
import type { DisplayStateProps } from './types';
|
|
13
|
-
import type { EntityRow } from '@almadar/core';
|
|
14
|
-
export interface MasterDetailProps<T extends EntityRow & {
|
|
15
|
-
id: string | number;
|
|
16
|
-
} = EntityRow & {
|
|
17
|
-
id: string | number;
|
|
18
|
-
}> extends DisplayStateProps {
|
|
19
|
-
/** Entity rows to display in the master list (collection cardinality). */
|
|
20
|
-
entity?: readonly EntityRow[];
|
|
21
|
-
/** Fields to show in the master list (maps to DataTable columns) */
|
|
22
|
-
masterFields: readonly string[];
|
|
23
|
-
/** Fields for detail view (passed through but typically handled by separate render_ui) */
|
|
24
|
-
detailFields?: readonly string[];
|
|
25
|
-
/** Loading state (alias for isLoading) */
|
|
26
|
-
loading?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare function MasterDetail<T extends EntityRow & {
|
|
29
|
-
id: string | number;
|
|
30
|
-
}>({ entity, masterFields, detailFields: _detailFields, // Captured but not used here - detail handled separately
|
|
31
|
-
loading: externalLoading, isLoading: externalIsLoading, error: externalError, className, ...rest }: MasterDetailProps<T>): React.ReactElement;
|
|
32
|
-
export declare namespace MasterDetail {
|
|
33
|
-
var displayName: string;
|
|
34
|
-
}
|
|
35
|
-
export default MasterDetail;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MediaGallery Organism Component
|
|
3
|
-
*
|
|
4
|
-
* A gallery component for displaying images and media in a grid layout.
|
|
5
|
-
* Supports lightbox viewing, selection, and upload interactions.
|
|
6
|
-
*
|
|
7
|
-
* Orbital Component Interface Compliance:
|
|
8
|
-
* - Entity binding with auto-fetch when entity is a string
|
|
9
|
-
* - Event emission via useEventBus (UI:* events)
|
|
10
|
-
* - isLoading and error state props
|
|
11
|
-
* - className for external styling
|
|
12
|
-
*/
|
|
13
|
-
import React from "react";
|
|
14
|
-
import type { AssetUrl, EventEmit } from "@almadar/core";
|
|
15
|
-
import type { DisplayStateProps } from "./types";
|
|
16
|
-
import type { EntityRow } from "@almadar/core";
|
|
17
|
-
export type MediaItem = EntityRow & {
|
|
18
|
-
/** Unique identifier */
|
|
19
|
-
id: string;
|
|
20
|
-
/** Media URL */
|
|
21
|
-
src: AssetUrl;
|
|
22
|
-
/** Alt text */
|
|
23
|
-
alt?: string;
|
|
24
|
-
/** Thumbnail URL (defaults to src) */
|
|
25
|
-
thumbnail?: AssetUrl;
|
|
26
|
-
/** Media type */
|
|
27
|
-
mediaType?: "image" | "video";
|
|
28
|
-
/** Caption */
|
|
29
|
-
caption?: string;
|
|
30
|
-
/** File size */
|
|
31
|
-
fileSize?: string;
|
|
32
|
-
};
|
|
33
|
-
export interface MediaGalleryAction {
|
|
34
|
-
label: string;
|
|
35
|
-
event?: string;
|
|
36
|
-
navigatesTo?: string;
|
|
37
|
-
variant?: "primary" | "secondary" | "ghost";
|
|
38
|
-
}
|
|
39
|
-
export interface MediaGalleryProps extends DisplayStateProps {
|
|
40
|
-
/** Entity rows to display (collection cardinality). */
|
|
41
|
-
entity?: readonly EntityRow[];
|
|
42
|
-
/** Gallery title */
|
|
43
|
-
title?: string;
|
|
44
|
-
/** Media items */
|
|
45
|
-
items?: readonly MediaItem[];
|
|
46
|
-
/** Column count */
|
|
47
|
-
columns?: 2 | 3 | 4 | 5 | 6;
|
|
48
|
-
/** Enable item selection */
|
|
49
|
-
selectable?: boolean;
|
|
50
|
-
/** Selected item IDs */
|
|
51
|
-
selectedItems?: readonly string[];
|
|
52
|
-
/** Event name emitted when selection changes (emitted as UI:{selectionEvent}) */
|
|
53
|
-
selectionEvent?: EventEmit<{
|
|
54
|
-
selection: string[];
|
|
55
|
-
}>;
|
|
56
|
-
/** Show upload button */
|
|
57
|
-
showUpload?: boolean;
|
|
58
|
-
/** Actions */
|
|
59
|
-
actions?: readonly MediaGalleryAction[];
|
|
60
|
-
/** Aspect ratio for thumbnails */
|
|
61
|
-
aspectRatio?: "square" | "landscape" | "portrait";
|
|
62
|
-
}
|
|
63
|
-
export declare const MediaGallery: React.FC<MediaGalleryProps>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ModalSlot Component
|
|
3
|
-
*
|
|
4
|
-
* Wraps modal slot content in a proper Modal component.
|
|
5
|
-
* Used by trait-driven pages to display modal UI from render_ui effects.
|
|
6
|
-
*
|
|
7
|
-
* Handles:
|
|
8
|
-
* - Auto-open when content is present
|
|
9
|
-
* - Dispatches CLOSE/CANCEL events when closed
|
|
10
|
-
* - Extracts title from Form components
|
|
11
|
-
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import type { UiError } from '../atoms/types';
|
|
14
|
-
export interface ModalSlotProps {
|
|
15
|
-
/** Content to display in the modal */
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
/** Override modal title (extracted from children if not provided) */
|
|
18
|
-
title?: string;
|
|
19
|
-
/** Modal size */
|
|
20
|
-
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
21
|
-
/** Custom class name */
|
|
22
|
-
className?: string;
|
|
23
|
-
/** Loading state indicator */
|
|
24
|
-
isLoading?: boolean;
|
|
25
|
-
/** Error state */
|
|
26
|
-
error?: UiError | null;
|
|
27
|
-
/** Entity name for schema-driven auto-fetch */
|
|
28
|
-
entity?: string;
|
|
29
|
-
/** Source trait name for qualified event emission */
|
|
30
|
-
sourceTrait?: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* ModalSlot - Wrapper for modal slot content
|
|
34
|
-
*
|
|
35
|
-
* Automatically shows modal when children are present,
|
|
36
|
-
* and dispatches close events when modal is dismissed.
|
|
37
|
-
*/
|
|
38
|
-
export declare const ModalSlot: React.FC<ModalSlotProps>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NotifyListener Component
|
|
3
|
-
*
|
|
4
|
-
* Listens for UI:NOTIFY events on the event bus and renders toast notifications.
|
|
5
|
-
* Mount once at the app root level (inside EventBusProvider).
|
|
6
|
-
*
|
|
7
|
-
* The compiler transpiles `notify("message", severity)` effects into
|
|
8
|
-
* `eventBus.emit('UI:NOTIFY', { message, severity })` calls.
|
|
9
|
-
* This component picks those up and renders them as Toast overlays.
|
|
10
|
-
*/
|
|
11
|
-
import React from 'react';
|
|
12
|
-
export declare function NotifyListener(): React.ReactElement | null;
|
|
13
|
-
export declare namespace NotifyListener {
|
|
14
|
-
var displayName: string;
|
|
15
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SegmentRenderer Organism Component
|
|
3
|
-
*
|
|
4
|
-
* Renders a parsed array of LessonSegments — markdown, code, quizzes,
|
|
5
|
-
* activation prompts, connections, reflections, Bloom questions.
|
|
6
|
-
* The `visualization` segment type is passed through as a no-op unless the
|
|
7
|
-
* caller provides `onRenderVisualization` (future extensibility hook).
|
|
8
|
-
*
|
|
9
|
-
* Event Contract:
|
|
10
|
-
* - Delegates to child molecules: UI:SAVE_ACTIVATION, UI:SAVE_REFLECTION, UI:ANSWER_BLOOM
|
|
11
|
-
* - entityAware: false
|
|
12
|
-
*/
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import { type CodeSimulationOutput } from './CodeRunnerPanel';
|
|
15
|
-
import type { LessonSegment, LessonUserProgress, InteractiveOrbitalType } from '../molecules/parseLessonSegments';
|
|
16
|
-
export type { LessonSegment, LessonUserProgress, CodeSimulationOutput };
|
|
17
|
-
export interface SegmentRendererProps {
|
|
18
|
-
/** Parsed lesson segments (see `parseLessonSegments`) */
|
|
19
|
-
segments: LessonSegment[];
|
|
20
|
-
/** Additional CSS classes for the root container */
|
|
21
|
-
className?: string;
|
|
22
|
-
/** CSS classes for the outer wrapping div */
|
|
23
|
-
containerClassName?: string;
|
|
24
|
-
/** User progress for restoring activation/reflection state */
|
|
25
|
-
userProgress?: LessonUserProgress;
|
|
26
|
-
/**
|
|
27
|
-
* Simulate executing runnable code blocks. Omit to render runnable blocks
|
|
28
|
-
* as read-only. Real execution is a future track.
|
|
29
|
-
*/
|
|
30
|
-
onRunCodeSimulation?: (code: string, language: string) => Promise<CodeSimulationOutput>;
|
|
31
|
-
/**
|
|
32
|
-
* Optional render slot for `visualization` segment types. When not provided,
|
|
33
|
-
* visualization segments are silently skipped. Callers can wire this to any
|
|
34
|
-
* custom component or orbital generator.
|
|
35
|
-
*/
|
|
36
|
-
onRenderVisualization?: (type: InteractiveOrbitalType, description: string, index: number) => React.ReactNode;
|
|
37
|
-
}
|
|
38
|
-
export declare const SegmentRenderer: React.FC<SegmentRendererProps>;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { IconInput } from "../atoms/Icon";
|
|
3
|
-
import type { DisplayStateProps } from "./types";
|
|
4
|
-
import type { EntityRow } from "@almadar/core";
|
|
5
|
-
/**
|
|
6
|
-
* Schema metric definition
|
|
7
|
-
* Supports both computed metrics (with field) and static metrics (with value)
|
|
8
|
-
*/
|
|
9
|
-
export interface MetricDefinition {
|
|
10
|
-
/** Field name for computed metrics (optional if value is provided) */
|
|
11
|
-
field?: string;
|
|
12
|
-
/** Display label */
|
|
13
|
-
label: string;
|
|
14
|
-
/** Static value for display (alternative to field-based computation) */
|
|
15
|
-
value?: string | number;
|
|
16
|
-
/** Icon name or component for display */
|
|
17
|
-
icon?: IconInput;
|
|
18
|
-
/** Value format (e.g., 'currency', 'percent', 'number') */
|
|
19
|
-
format?: "currency" | "percent" | "number" | string;
|
|
20
|
-
}
|
|
21
|
-
export interface StatCardProps extends DisplayStateProps {
|
|
22
|
-
/** Entity data (single record or collection) used to compute metrics. */
|
|
23
|
-
entity?: EntityRow | readonly EntityRow[];
|
|
24
|
-
/** Main label */
|
|
25
|
-
label?: string;
|
|
26
|
-
/** Title (alias for label) */
|
|
27
|
-
title?: string;
|
|
28
|
-
/** Primary value - accepts array from generated code (will use first element or length) */
|
|
29
|
-
value?: string | number | (string | number | undefined)[];
|
|
30
|
-
/** Previous value for comparison */
|
|
31
|
-
previousValue?: number;
|
|
32
|
-
/** Current value as number for trend calculation */
|
|
33
|
-
currentValue?: number;
|
|
34
|
-
/** Manual trend percentage (overrides calculation) */
|
|
35
|
-
trend?: number;
|
|
36
|
-
/** Trend direction (overrides calculation) */
|
|
37
|
-
trendDirection?: "up" | "down" | "neutral";
|
|
38
|
-
/** Whether up is good (green) or bad (red) */
|
|
39
|
-
invertTrend?: boolean;
|
|
40
|
-
/** Icon to display (Lucide component or icon name string) */
|
|
41
|
-
icon?: IconInput;
|
|
42
|
-
/** Icon background color */
|
|
43
|
-
iconBg?: string;
|
|
44
|
-
/** Icon color */
|
|
45
|
-
iconColor?: string;
|
|
46
|
-
/** Subtitle or description */
|
|
47
|
-
subtitle?: string;
|
|
48
|
-
/** Action button */
|
|
49
|
-
action?: {
|
|
50
|
-
label: string;
|
|
51
|
-
/** Event to dispatch via event bus (for trait state machine integration) */
|
|
52
|
-
event?: string;
|
|
53
|
-
/** Navigation URL - supports template interpolation */
|
|
54
|
-
navigatesTo?: string;
|
|
55
|
-
/** Legacy onClick callback */
|
|
56
|
-
onClick?: () => void;
|
|
57
|
-
};
|
|
58
|
-
/** Metrics to display (schema format) - accepts readonly for compatibility with generated const arrays */
|
|
59
|
-
metrics?: readonly MetricDefinition[];
|
|
60
|
-
/** Compact display mode */
|
|
61
|
-
compact?: boolean;
|
|
62
|
-
/** Sparkline data points for an inline trend chart */
|
|
63
|
-
sparklineData?: readonly number[];
|
|
64
|
-
}
|
|
65
|
-
export declare const StatCard: React.FC<StatCardProps>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* StateMachineView - Reusable State Machine Visualizer
|
|
3
|
-
*
|
|
4
|
-
* A hybrid DOM/SVG component for visualizing state machines.
|
|
5
|
-
* Uses SVG for arrow paths, DOM for tooltips.
|
|
6
|
-
*
|
|
7
|
-
* Moved from projects/builder to @almadar/ui for reuse across projects.
|
|
8
|
-
*
|
|
9
|
-
* BUNDLING: When multiple transitions exist between the same states (same direction),
|
|
10
|
-
* they are bundled into a single arrow with a badge showing the count.
|
|
11
|
-
* Hovering shows all events and their effects in a detailed tooltip.
|
|
12
|
-
*
|
|
13
|
-
* Events Emitted:
|
|
14
|
-
* - UI:STATE_CLICK - When a state node is clicked
|
|
15
|
-
* - UI:TRANSITION_CLICK - When a transition bundle is clicked
|
|
16
|
-
*/
|
|
17
|
-
import React from 'react';
|
|
18
|
-
import type { DomLayoutData, DomStateNode, DomTransitionLabel, VisualizerConfig } from '../../../lib/visualizer/index.js';
|
|
19
|
-
import type { UiError } from '../atoms/types';
|
|
20
|
-
/** Bundled transitions between same from→to states */
|
|
21
|
-
export type TransitionBundle = {
|
|
22
|
-
id: string;
|
|
23
|
-
from: string;
|
|
24
|
-
to: string;
|
|
25
|
-
labels: DomTransitionLabel[];
|
|
26
|
-
isBidirectional: boolean;
|
|
27
|
-
isReverse: boolean;
|
|
28
|
-
};
|
|
29
|
-
export interface StateMachineViewProps {
|
|
30
|
-
/** Additional CSS classes */
|
|
31
|
-
className?: string;
|
|
32
|
-
/** Loading state indicator */
|
|
33
|
-
isLoading?: boolean;
|
|
34
|
-
/** Error state */
|
|
35
|
-
error?: UiError | null;
|
|
36
|
-
/** Pre-computed visualizer layout. Optional: when absent the view renders
|
|
37
|
-
* nothing (an author wires real layout via config; the generic factory
|
|
38
|
-
* can't synthesize a `DomLayoutData`). */
|
|
39
|
-
layoutData?: DomLayoutData;
|
|
40
|
-
/** Custom state node renderer — when provided, replaces the default circle nodes */
|
|
41
|
-
renderStateNode?: (state: DomStateNode, config: VisualizerConfig) => React.ReactNode;
|
|
42
|
-
}
|
|
43
|
-
export declare const StateMachineView: React.FC<StateMachineViewProps>;
|
|
44
|
-
export { StateMachineView as DomStateMachineVisualizer };
|
|
45
|
-
export { StateMachineView as OrbitalStateMachineView };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SubagentTracePanel — contextual side panel that surfaces subagent activity.
|
|
3
|
-
*
|
|
4
|
-
* Density adapts to disclosure level:
|
|
5
|
-
* - L1/L2 (builder/designer): compact mode — name + role badge + last message
|
|
6
|
-
* - L3/L4 (architect): full mode — rich per-subagent activity streams
|
|
7
|
-
*
|
|
8
|
-
* Atomic design: composes Box / VStack / HStack / Typography / Badge / Icon /
|
|
9
|
-
* Button / Modal / Accordion / CodeBlock / MarkdownContent from this package.
|
|
10
|
-
* It reads the agent-trace view-model from `@almadar/core` (Trace* types) and
|
|
11
|
-
* owns no transport — the consumer feeds it already-mapped view-model props.
|
|
12
|
-
*/
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import type { DisplayStateProps } from './types';
|
|
15
|
-
import type { TraceActivity, TraceSubagent, TraceChatMessage } from '@almadar/core';
|
|
16
|
-
/** Disclosure level driving panel density (builder=1 … architect=4). */
|
|
17
|
-
export type TraceDisclosureLevel = 1 | 2 | 3 | 4;
|
|
18
|
-
export interface SubagentTracePanelProps extends DisplayStateProps {
|
|
19
|
-
/** All known subagents from the runner. */
|
|
20
|
-
subagents: TraceSubagent[];
|
|
21
|
-
/** Current canvas focus orbital — only used by overlay mode. Tab mode ignores this. */
|
|
22
|
-
focusedOrbital?: string;
|
|
23
|
-
/** Drives density: 1-2 → compact, 3-4 → full activity embed (when mode='overlay'). */
|
|
24
|
-
disclosureLevel: TraceDisclosureLevel;
|
|
25
|
-
/** Whether the panel is visible. Typically auto-opens during generation in overlay mode. */
|
|
26
|
-
open: boolean;
|
|
27
|
-
/** Optional dismiss handler. */
|
|
28
|
-
onClose?: () => void;
|
|
29
|
-
/** Full coordinator activities (tool calls, results, messages, errors). */
|
|
30
|
-
coordinatorActivities?: TraceActivity[];
|
|
31
|
-
/**
|
|
32
|
-
* Canonical Coordinator conversation — same shape live and on reload. When
|
|
33
|
-
* present, takes precedence over `coordinatorActivities` for the Coordinator
|
|
34
|
-
* section.
|
|
35
|
-
*/
|
|
36
|
-
coordinatorMessages?: readonly TraceChatMessage[];
|
|
37
|
-
/**
|
|
38
|
-
* Rendering mode.
|
|
39
|
-
* - `'overlay'` (default): floating side panel positioned absolutely over the
|
|
40
|
-
* canvas. Density follows `disclosureLevel` (compact L1/L2, rich L3+). The
|
|
41
|
-
* `open` flag actually hides the panel when false.
|
|
42
|
-
* - `'tab'`: full-width content for a dedicated 'trace' supplemental tab.
|
|
43
|
-
* Always renders rich (regardless of disclosure level), always visible (the
|
|
44
|
-
* `open` flag is ignored), and includes an empty state when no subagents
|
|
45
|
-
* are present so users see the surface even before generation starts.
|
|
46
|
-
*/
|
|
47
|
-
mode?: 'overlay' | 'tab';
|
|
48
|
-
}
|
|
49
|
-
export declare const SubagentTracePanel: React.FC<SubagentTracePanelProps>;
|
|
50
|
-
export default SubagentTracePanel;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Timeline Organism Component
|
|
3
|
-
*
|
|
4
|
-
* A vertical timeline component for displaying chronological events.
|
|
5
|
-
* Composes atoms and molecules for layout, uses CSS variables for theming.
|
|
6
|
-
*
|
|
7
|
-
* Orbital Component Interface Compliance:
|
|
8
|
-
* - Entity binding with auto-fetch when entity is a string
|
|
9
|
-
* - Event emission via useEventBus (UI:* events)
|
|
10
|
-
* - isLoading and error state props
|
|
11
|
-
* - className for external styling
|
|
12
|
-
*/
|
|
13
|
-
import React from "react";
|
|
14
|
-
import type { EventKey } from "@almadar/core";
|
|
15
|
-
import type { EntityRow } from "@almadar/core";
|
|
16
|
-
import type { IconInput } from "../atoms/Icon";
|
|
17
|
-
import type { UiError } from '../atoms/types';
|
|
18
|
-
export type TimelineItemStatus = "complete" | "active" | "pending" | "error";
|
|
19
|
-
/**
|
|
20
|
-
* Layer 2 visual treatment for the timeline pattern — orthogonal to the
|
|
21
|
-
* semantic status conveyed by per-item style.
|
|
22
|
-
*/
|
|
23
|
-
export type TimelineLook = "vertical-compact" | "vertical-spacious" | "horizontal" | "swimlane";
|
|
24
|
-
export interface TimelineItem {
|
|
25
|
-
/** Unique identifier */
|
|
26
|
-
id: string;
|
|
27
|
-
/** Item title */
|
|
28
|
-
title: string;
|
|
29
|
-
/** Item description */
|
|
30
|
-
description?: string;
|
|
31
|
-
/** Timestamp string */
|
|
32
|
-
date?: string;
|
|
33
|
-
/** Status indicator */
|
|
34
|
-
status?: TimelineItemStatus;
|
|
35
|
-
/** Icon override */
|
|
36
|
-
icon?: IconInput;
|
|
37
|
-
/** Additional metadata tags */
|
|
38
|
-
tags?: readonly string[];
|
|
39
|
-
}
|
|
40
|
-
export interface TimelineAction {
|
|
41
|
-
label: string;
|
|
42
|
-
event?: EventKey;
|
|
43
|
-
navigatesTo?: string;
|
|
44
|
-
variant?: "primary" | "secondary" | "ghost";
|
|
45
|
-
}
|
|
46
|
-
export interface TimelineProps {
|
|
47
|
-
/** Additional CSS classes */
|
|
48
|
-
className?: string;
|
|
49
|
-
/** Loading state indicator */
|
|
50
|
-
isLoading?: boolean;
|
|
51
|
-
/** Error state */
|
|
52
|
-
error?: UiError | null;
|
|
53
|
-
/**
|
|
54
|
-
* Schema entity data typed against @almadar/core's EntityRow. Items from
|
|
55
|
-
* `entity` are normalised into `items` when `items` is omitted. UI-specific
|
|
56
|
-
* TimelineItem fields (`icon`, callbacks) cannot round-trip through the
|
|
57
|
-
* event bus, so decorative stories that need them pass `items` directly.
|
|
58
|
-
*/
|
|
59
|
-
entity?: readonly EntityRow[];
|
|
60
|
-
/** Timeline title */
|
|
61
|
-
title?: string;
|
|
62
|
-
/** Timeline items */
|
|
63
|
-
items?: readonly TimelineItem[];
|
|
64
|
-
/** Fields to display */
|
|
65
|
-
fields: readonly string[];
|
|
66
|
-
/** Actions per item */
|
|
67
|
-
itemActions?: readonly TimelineAction[];
|
|
68
|
-
/** Layer 2 visual treatment. */
|
|
69
|
-
look?: TimelineLook;
|
|
70
|
-
}
|
|
71
|
-
export declare const Timeline: React.FC<TimelineProps>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ToastSlot Component
|
|
3
|
-
*
|
|
4
|
-
* Wraps toast slot content in a proper Toast component with positioning.
|
|
5
|
-
* Used by trait-driven pages to display toast UI from render_ui effects.
|
|
6
|
-
*
|
|
7
|
-
* Handles:
|
|
8
|
-
* - Auto-show when content is present
|
|
9
|
-
* - Dispatches DISMISS event when dismissed
|
|
10
|
-
* - Fixed positioning in corner of screen
|
|
11
|
-
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { ToastVariant } from '../molecules/Toast';
|
|
14
|
-
import type { UiError } from '../atoms/types';
|
|
15
|
-
export interface ToastSlotProps {
|
|
16
|
-
/** Content to display in the toast (message or ReactNode) */
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
/** Toast variant */
|
|
19
|
-
variant?: ToastVariant;
|
|
20
|
-
/** Toast title */
|
|
21
|
-
title?: string;
|
|
22
|
-
/** Auto-dismiss duration in ms (0 = no auto-dismiss) */
|
|
23
|
-
duration?: number;
|
|
24
|
-
/** Custom class name */
|
|
25
|
-
className?: string;
|
|
26
|
-
/** Loading state indicator */
|
|
27
|
-
isLoading?: boolean;
|
|
28
|
-
/** Error state */
|
|
29
|
-
error?: UiError | null;
|
|
30
|
-
/** Entity name for schema-driven auto-fetch */
|
|
31
|
-
entity?: string;
|
|
32
|
-
/** Source trait name for qualified event emission */
|
|
33
|
-
sourceTrait?: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* ToastSlot - Wrapper for toast slot content
|
|
37
|
-
*
|
|
38
|
-
* Automatically shows toast when children are present,
|
|
39
|
-
* and dispatches dismiss events when toast is dismissed.
|
|
40
|
-
*/
|
|
41
|
-
export declare const ToastSlot: React.FC<ToastSlotProps>;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UISlotRenderer Component
|
|
3
|
-
*
|
|
4
|
-
* Renders all UI slots. This is the central component that displays
|
|
5
|
-
* content rendered by traits via render_ui effects.
|
|
6
|
-
*
|
|
7
|
-
* Slots are rendered as:
|
|
8
|
-
* - Layout slots: Inline in the page flow (main, sidebar)
|
|
9
|
-
* - Portal slots: Rendered via portals (modal, drawer, toast, etc.)
|
|
10
|
-
* - HUD slots: Fixed position overlays (hud-top, hud-bottom)
|
|
11
|
-
*
|
|
12
|
-
* @packageDocumentation
|
|
13
|
-
*/
|
|
14
|
-
import React from "react";
|
|
15
|
-
import { type UISlot, type SlotContent } from "../../../providers/UISlotContext";
|
|
16
|
-
export interface SuspenseConfig {
|
|
17
|
-
/** Enable Suspense boundaries around slot content */
|
|
18
|
-
enabled: boolean;
|
|
19
|
-
/** Custom fallback per slot, overrides default Skeleton variant */
|
|
20
|
-
slotFallbacks?: Partial<Record<UISlot, React.ReactNode>>;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Provider for Suspense configuration.
|
|
24
|
-
* When enabled, each UI slot is wrapped in `<ErrorBoundary><Suspense>`.
|
|
25
|
-
*/
|
|
26
|
-
export declare function SuspenseConfigProvider({ config, children, }: {
|
|
27
|
-
config: SuspenseConfig;
|
|
28
|
-
children: React.ReactNode;
|
|
29
|
-
}): React.FunctionComponentElement<React.ProviderProps<SuspenseConfig>>;
|
|
30
|
-
export declare namespace SuspenseConfigProvider {
|
|
31
|
-
var displayName: string;
|
|
32
|
-
}
|
|
33
|
-
import type { UiError } from '../atoms/types';
|
|
34
|
-
interface UISlotComponentProps {
|
|
35
|
-
slot: UISlot;
|
|
36
|
-
portal?: boolean;
|
|
37
|
-
position?: "left" | "right" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
38
|
-
className?: string;
|
|
39
|
-
draggable?: boolean;
|
|
40
|
-
isLoading?: boolean;
|
|
41
|
-
error?: UiError | null;
|
|
42
|
-
entity?: string;
|
|
43
|
-
/** Compiled mode: render children directly instead of resolving from context */
|
|
44
|
-
children?: React.ReactNode;
|
|
45
|
-
/** Pattern type for data-pattern attribute (compiled mode) */
|
|
46
|
-
pattern?: string;
|
|
47
|
-
/** Source trait name for data-source-trait attribute (compiled mode) */
|
|
48
|
-
sourceTrait?: string;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Individual slot renderer.
|
|
52
|
-
*
|
|
53
|
-
* Handles different slot types with appropriate wrappers.
|
|
54
|
-
*/
|
|
55
|
-
declare function UISlotComponent({ slot, portal, position, className, children, pattern, sourceTrait, }: UISlotComponentProps): React.ReactElement | null;
|
|
56
|
-
interface SlotContentRendererProps {
|
|
57
|
-
content: SlotContent;
|
|
58
|
-
onDismiss: () => void;
|
|
59
|
-
className?: string;
|
|
60
|
-
isLoading?: boolean;
|
|
61
|
-
error?: UiError | null;
|
|
62
|
-
entity?: string;
|
|
63
|
-
/** Schema-compatible path for WYSIWYG drop targeting (e.g., "root.children.0"). */
|
|
64
|
-
patternPath?: string;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Renders the actual content of a slot.
|
|
68
|
-
*
|
|
69
|
-
* Dynamically renders pattern components from the registry.
|
|
70
|
-
* For layout patterns with `hasChildren`, recursively renders nested patterns.
|
|
71
|
-
* For all patterns, named props containing pattern configs are also rendered.
|
|
72
|
-
*/
|
|
73
|
-
declare function SlotContentRenderer({ content, onDismiss, patternPath, }: SlotContentRendererProps): React.ReactElement;
|
|
74
|
-
export interface UISlotRendererProps {
|
|
75
|
-
/** Include HUD slots */
|
|
76
|
-
includeHud?: boolean;
|
|
77
|
-
/** HUD positioning mode: 'fixed' (default, viewport-relative) or 'inline' (container-relative, uses sticky) */
|
|
78
|
-
hudMode?: 'fixed' | 'inline';
|
|
79
|
-
/** Include floating slot */
|
|
80
|
-
includeFloating?: boolean;
|
|
81
|
-
/** Additional class name for the container */
|
|
82
|
-
className?: string;
|
|
83
|
-
/** Loading state indicator */
|
|
84
|
-
isLoading?: boolean;
|
|
85
|
-
/** Error state */
|
|
86
|
-
error?: UiError | null;
|
|
87
|
-
/** Entity name for schema-driven auto-fetch */
|
|
88
|
-
entity?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Enable Suspense boundaries around each slot.
|
|
91
|
-
* When true, each inline slot is wrapped in `<ErrorBoundary><Suspense>` with
|
|
92
|
-
* Skeleton fallbacks. Opt-in — existing isLoading prop pattern still works.
|
|
93
|
-
*/
|
|
94
|
-
suspense?: boolean | SuspenseConfig;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Main UI Slot Renderer component.
|
|
98
|
-
*
|
|
99
|
-
* Renders all slot containers. Place this in your page/layout component.
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```tsx
|
|
103
|
-
* function PageLayout() {
|
|
104
|
-
* return (
|
|
105
|
-
* <div className="page-layout">
|
|
106
|
-
* <UISlotRenderer />
|
|
107
|
-
* </div>
|
|
108
|
-
* );
|
|
109
|
-
* }
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
export declare function UISlotRenderer({ includeHud, hudMode, includeFloating, className, suspense, }: UISlotRendererProps): React.ReactElement;
|
|
113
|
-
export declare namespace UISlotRenderer {
|
|
114
|
-
var displayName: string;
|
|
115
|
-
}
|
|
116
|
-
export { UISlotComponent, SlotContentRenderer };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { BookViewer, type BookViewerProps } from '../../../marketing/organisms/book/BookViewer';
|
|
2
|
-
export { BookChapterView, type BookChapterViewProps } from '../../../marketing/organisms/book/BookChapterView';
|
|
3
|
-
export { BookCoverPage, type BookCoverPageProps } from '../../../marketing/organisms/book/BookCoverPage';
|
|
4
|
-
export { BookTableOfContents, type BookTableOfContentsProps } from '../../../marketing/organisms/book/BookTableOfContents';
|
|
5
|
-
export { BookNavBar, type BookNavBarProps } from '../../../marketing/organisms/book/BookNavBar';
|
|
6
|
-
export type { BookFieldMap } from './types';
|
|
7
|
-
export { mapBookData, resolveFieldMap, IDENTITY_BOOK_FIELDS, AR_BOOK_FIELDS } from './types';
|