@almadar/ui 5.110.0 → 5.112.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 +126 -29
- package/dist/avl/index.js +128 -31
- package/dist/avl-schema-parser-DKRm-nyh.d.cts +611 -0
- package/dist/avl-schema-parser-DKRm-nyh.d.ts +611 -0
- package/dist/cn-BbPvQLHt.d.cts +294 -0
- package/dist/cn-BbPvQLHt.d.ts +294 -0
- package/dist/components/index.cjs +56 -18
- package/dist/components/index.d.cts +11224 -0
- package/dist/components/index.d.ts +11224 -6
- package/dist/components/index.js +56 -18
- 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 +317 -178
- package/dist/lib/drawable/three/index.d.cts +1484 -0
- package/dist/lib/drawable/three/index.d.ts +1483 -38
- package/dist/lib/drawable/three/index.js +161 -22
- package/dist/lib/index.cjs +8 -0
- package/dist/lib/index.d.cts +504 -0
- package/dist/lib/index.d.ts +503 -18
- package/dist/lib/index.js +8 -1
- 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/providers/index.cjs +56 -18
- package/dist/providers/index.d.cts +428 -0
- package/dist/providers/index.d.ts +427 -26
- package/dist/providers/index.js +56 -18
- 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 +126 -29
- package/dist/runtime/index.d.cts +426 -0
- package/dist/runtime/index.d.ts +421 -16
- package/dist/runtime/index.js +128 -31
- 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 +13 -13
- 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 -91
- 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
package/dist/components/index.js
CHANGED
|
@@ -42,7 +42,7 @@ import { DndContext, useSensors, useSensor, PointerSensor, KeyboardSensor, useDr
|
|
|
42
42
|
import { useSortable, arrayMove, sortableKeyboardCoordinates, SortableContext, rectSortingStrategy, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
|
43
43
|
import { CSS } from '@dnd-kit/utilities';
|
|
44
44
|
import { useNodeId, ReactFlowProvider, Handle, Position } from '@xyflow/react';
|
|
45
|
-
import { getPatternDefinition as getPatternDefinition$1, getComponentForPattern as getComponentForPattern$1 } from '@almadar/patterns';
|
|
45
|
+
import { isDrawHostPattern, getPatternDefinition as getPatternDefinition$1, getComponentForPattern as getComponentForPattern$1 } from '@almadar/core/patterns';
|
|
46
46
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
47
47
|
|
|
48
48
|
var __defProp = Object.defineProperty;
|
|
@@ -15258,6 +15258,13 @@ function bindCanvasCapture(captureFn) {
|
|
|
15258
15258
|
window.__orbitalVerification.captureFrame = captureFn;
|
|
15259
15259
|
}
|
|
15260
15260
|
}
|
|
15261
|
+
function bindLastDrawables(getDrawables) {
|
|
15262
|
+
if (typeof window === "undefined") return;
|
|
15263
|
+
exposeOnWindow();
|
|
15264
|
+
if (window.__orbitalVerification) {
|
|
15265
|
+
window.__orbitalVerification.getLastDrawables = getDrawables;
|
|
15266
|
+
}
|
|
15267
|
+
}
|
|
15261
15268
|
function updateAssetStatus(url, status) {
|
|
15262
15269
|
if (typeof window === "undefined") return;
|
|
15263
15270
|
exposeOnWindow();
|
|
@@ -15319,8 +15326,12 @@ var init_useImageCache = __esm({
|
|
|
15319
15326
|
init_verificationRegistry();
|
|
15320
15327
|
}
|
|
15321
15328
|
});
|
|
15322
|
-
function useCamera() {
|
|
15323
|
-
const cameraRef = useRef({
|
|
15329
|
+
function useCamera(initial) {
|
|
15330
|
+
const cameraRef = useRef({
|
|
15331
|
+
x: initial?.x ?? 0,
|
|
15332
|
+
y: initial?.y ?? 0,
|
|
15333
|
+
zoom: initial?.zoom ?? 1
|
|
15334
|
+
});
|
|
15324
15335
|
const targetCameraRef = useRef(null);
|
|
15325
15336
|
const isDraggingRef = useRef(false);
|
|
15326
15337
|
const dragDistanceRef = useRef(0);
|
|
@@ -15820,8 +15831,9 @@ var init_DrawSprite = __esm({
|
|
|
15820
15831
|
if (!r) return;
|
|
15821
15832
|
src = { x: r.sx, y: r.sy, w: r.sw, h: r.sh };
|
|
15822
15833
|
}
|
|
15823
|
-
const
|
|
15824
|
-
const
|
|
15834
|
+
const tw = dctx.projector.tileWidth;
|
|
15835
|
+
const w = node.width !== void 0 ? node.width * tw : src ? src.w : tex.width;
|
|
15836
|
+
const h = node.height !== void 0 ? node.height * tw : src ? src.h : tex.height;
|
|
15825
15837
|
const anchor = node.anchor ?? "top-left";
|
|
15826
15838
|
const p = dctx.projector.anchorPoint(node.position, anchor);
|
|
15827
15839
|
const dx = anchor === "top-left" ? p.x : p.x - w / 2;
|
|
@@ -15868,27 +15880,30 @@ var init_DrawShape = __esm({
|
|
|
15868
15880
|
}
|
|
15869
15881
|
case "rect": {
|
|
15870
15882
|
const p = dctx.projector.anchorPoint(node.position, node.anchor ?? "top-left");
|
|
15871
|
-
const
|
|
15872
|
-
const
|
|
15873
|
-
const
|
|
15874
|
-
const
|
|
15883
|
+
const tw = dctx.projector.tileWidth;
|
|
15884
|
+
const x = p.x + (node.offsetX ?? 0) * tw;
|
|
15885
|
+
const y = p.y + (node.offsetY ?? 0) * tw;
|
|
15886
|
+
const w = (node.width ?? 0) * tw;
|
|
15887
|
+
const h = (node.height ?? 0) * tw;
|
|
15875
15888
|
if (node.fill) painter.fillRect(x, y, w, h, node.fill);
|
|
15876
15889
|
if (node.stroke) painter.strokeRect(x, y, w, h, node.stroke, node.strokeWidth ?? 1);
|
|
15877
15890
|
break;
|
|
15878
15891
|
}
|
|
15879
15892
|
case "ellipse": {
|
|
15880
15893
|
const p = dctx.projector.anchorPoint(node.position, node.anchor ?? "ground");
|
|
15881
|
-
const
|
|
15882
|
-
const
|
|
15883
|
-
const
|
|
15884
|
-
const
|
|
15894
|
+
const tw = dctx.projector.tileWidth;
|
|
15895
|
+
const cx = p.x + (node.offsetX ?? 0) * tw;
|
|
15896
|
+
const cy = p.y + (node.offsetY ?? 0) * tw;
|
|
15897
|
+
const rx = (node.radiusX ?? 0) * tw;
|
|
15898
|
+
const ry = (node.radiusY ?? rx) * tw;
|
|
15885
15899
|
if (node.fill) painter.fillEllipse(cx, cy, rx, ry, node.fill);
|
|
15886
15900
|
if (node.stroke) painter.strokeEllipse(cx, cy, rx, ry, node.stroke, node.strokeWidth ?? 1);
|
|
15887
15901
|
break;
|
|
15888
15902
|
}
|
|
15889
15903
|
case "poly": {
|
|
15890
15904
|
const base = dctx.projector.project(node.position);
|
|
15891
|
-
const
|
|
15905
|
+
const tw = dctx.projector.tileWidth;
|
|
15906
|
+
const pts = (node.points ?? []).map((pt) => ({ x: base.x + pt.x * tw, y: base.y + pt.y * tw }));
|
|
15892
15907
|
if (node.fill) painter.fillPoly(pts, node.fill);
|
|
15893
15908
|
if (node.stroke) painter.strokePoly(pts, node.stroke, node.strokeWidth ?? 1, true);
|
|
15894
15909
|
break;
|
|
@@ -16054,9 +16069,17 @@ function Canvas2D({
|
|
|
16054
16069
|
scale = 0.4,
|
|
16055
16070
|
showMinimap = true,
|
|
16056
16071
|
followTarget,
|
|
16072
|
+
cameraPos,
|
|
16057
16073
|
bgColor
|
|
16058
16074
|
}) {
|
|
16075
|
+
const layerSummaries = drawables?.map((d) => {
|
|
16076
|
+
if (!d || typeof d !== "object") return d;
|
|
16077
|
+
const rec = d;
|
|
16078
|
+
return { type: rec.type, itemsLen: Array.isArray(rec.items) ? rec.items.length : void 0, firstItem: Array.isArray(rec.items) ? rec.items[0] : void 0 };
|
|
16079
|
+
});
|
|
16080
|
+
console.error("[debug:Canvas2D] " + JSON.stringify({ projection, scale, cameraMode: camera, cameraPos, drawablesCount: drawables?.length, layerSummaries }));
|
|
16059
16081
|
const backgroundImage = normalizeBackdrop(backgroundImageRaw);
|
|
16082
|
+
const instanceId = useMemo(() => Math.random().toString(36).slice(2, 8), []);
|
|
16060
16083
|
const isFree = projection === "free";
|
|
16061
16084
|
const squareGrid = projection === "flat" || isFree || projection === "side";
|
|
16062
16085
|
const layout = projection === "side" ? "free" : projection;
|
|
@@ -16119,10 +16142,12 @@ function Canvas2D({
|
|
|
16119
16142
|
const canvas = canvasRef.current;
|
|
16120
16143
|
if (!canvas) return;
|
|
16121
16144
|
bindCanvasCapture(() => canvas.toDataURL("image/png"));
|
|
16145
|
+
bindLastDrawables(() => drawables ?? null);
|
|
16122
16146
|
return () => {
|
|
16123
16147
|
bindCanvasCapture(() => null);
|
|
16148
|
+
bindLastDrawables(() => null);
|
|
16124
16149
|
};
|
|
16125
|
-
}, []);
|
|
16150
|
+
}, [drawables]);
|
|
16126
16151
|
const enableCamera = camera === "pan-zoom";
|
|
16127
16152
|
const {
|
|
16128
16153
|
cameraRef,
|
|
@@ -16136,8 +16161,8 @@ function Canvas2D({
|
|
|
16136
16161
|
zoomAtPoint,
|
|
16137
16162
|
screenToWorld,
|
|
16138
16163
|
lerpToTarget
|
|
16139
|
-
} = useCamera();
|
|
16140
|
-
const [, setAtlasVersion] = useState(0);
|
|
16164
|
+
} = useCamera({ zoom: scale });
|
|
16165
|
+
const [atlasVersion, setAtlasVersion] = useState(0);
|
|
16141
16166
|
const bumpAtlas = useCallback(() => setAtlasVersion((v) => v + 1), []);
|
|
16142
16167
|
const miniMapTiles = useMemo(() => {
|
|
16143
16168
|
if (!showMinimap) return [];
|
|
@@ -16182,6 +16207,14 @@ function Canvas2D({
|
|
|
16182
16207
|
}
|
|
16183
16208
|
if (!drawables || drawables.length === 0) return;
|
|
16184
16209
|
const cam = cameraRef.current;
|
|
16210
|
+
if (cameraPos && dragDistance() === 0) {
|
|
16211
|
+
const p = projector.anchorPoint(cameraPos, "center");
|
|
16212
|
+
cam.x = p.x - viewportSize.width / 2;
|
|
16213
|
+
cam.y = p.y - viewportSize.height / 2;
|
|
16214
|
+
}
|
|
16215
|
+
const containerRect = containerRef.current?.getBoundingClientRect();
|
|
16216
|
+
const canvasRect = canvas.getBoundingClientRect();
|
|
16217
|
+
console.error("[debug:Canvas2D:draw:" + instanceId + "] " + JSON.stringify({ viewportSize, baseOffsetX, cam: { x: cam.x, y: cam.y, zoom: cam.zoom }, cameraPos, containerRect: containerRect ? { width: containerRect.width, height: containerRect.height } : null, canvasRect: canvasRect ? { width: canvasRect.width, height: canvasRect.height } : null }));
|
|
16185
16218
|
const painter = createWebPainter(ctx, bumpAtlas);
|
|
16186
16219
|
painter.save();
|
|
16187
16220
|
painter.translate(viewportSize.width / 2, viewportSize.height / 2);
|
|
@@ -16205,6 +16238,9 @@ function Canvas2D({
|
|
|
16205
16238
|
useEffect(() => {
|
|
16206
16239
|
draw();
|
|
16207
16240
|
}, [_imagePendingCount, draw]);
|
|
16241
|
+
useEffect(() => {
|
|
16242
|
+
draw();
|
|
16243
|
+
}, [atlasVersion, draw]);
|
|
16208
16244
|
useEffect(() => {
|
|
16209
16245
|
if (camera !== "follow" || !followTarget) return;
|
|
16210
16246
|
let running = true;
|
|
@@ -16449,6 +16485,7 @@ function Canvas({
|
|
|
16449
16485
|
keyMap,
|
|
16450
16486
|
keyUpMap
|
|
16451
16487
|
}) {
|
|
16488
|
+
console.error("[debug:Canvas] " + JSON.stringify({ mode, drawablesCount: drawables?.length, projection, camera }));
|
|
16452
16489
|
const zoom = camera?.zoom;
|
|
16453
16490
|
if (mode === "3d") {
|
|
16454
16491
|
const props3d = {
|
|
@@ -16488,6 +16525,7 @@ function Canvas({
|
|
|
16488
16525
|
camera: to2DCamera(camera?.mode),
|
|
16489
16526
|
...zoom !== void 0 ? { scale: zoom } : {},
|
|
16490
16527
|
...camera?.target !== void 0 ? { followTarget: camera.target } : {},
|
|
16528
|
+
...camera?.pos !== void 0 ? { cameraPos: camera.pos } : {},
|
|
16491
16529
|
showMinimap,
|
|
16492
16530
|
backgroundImage,
|
|
16493
16531
|
...backgroundColor !== void 0 ? { bgColor: backgroundColor } : {},
|
|
@@ -45728,7 +45766,7 @@ function SlotContentRenderer({
|
|
|
45728
45766
|
const childrenConfig = content.props.children;
|
|
45729
45767
|
const isSingleChild = typeof childrenConfig === "string" || typeof childrenConfig === "object" && childrenConfig !== null && !Array.isArray(childrenConfig) && "type" in childrenConfig;
|
|
45730
45768
|
const hasChildren = PATTERNS_WITH_CHILDREN.has(content.pattern) || Array.isArray(childrenConfig) && childrenConfig.length > 0 || isSingleChild;
|
|
45731
|
-
const isDrawHost =
|
|
45769
|
+
const isDrawHost = isDrawHostPattern(content.pattern);
|
|
45732
45770
|
const myPath = patternPath ?? "root";
|
|
45733
45771
|
const renderedChildren = hasChildren && !isDrawHost ? renderPatternChildren(childrenConfig, onDismiss, content.id, myPath, content.sourceTrait, {
|
|
45734
45772
|
slot: content.slot,
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export { U as UISlotContext, a as UISlotProvider, u as useSlotContent, b as useSlotHasContent, c as useUISlots } from '../UISlotContext-D8_SoDsD.cjs';
|
|
2
|
+
export { A as ANONYMOUS_USER, B as BUILT_IN_THEMES, C as ColorMode, a as CurrentPagePathContext, b as CurrentPagePathProvider, c as CurrentPagePathProviderProps, D as DesignTheme, d as DesignThemeProvider, O as OrbitalThemeProvider, e as OrbitalThemeProviderProps, R as ResolvedMode, T as ThemeContext, f as ThemeProvider, g as ThemeProviderProps, U as UIThemeDefinition, h as UserContext, i as UserContextValue, j as UserData, k as UserProvider, l as UserProviderProps, u as useCurrentPagePath, m as useDesignTheme, n as useHasPermission, o as useHasRole, p as useTheme, q as useUser, r as useUserForEvaluation } from '../UserContext-bziZwgFL.cjs';
|
|
3
|
+
import { ThemeRef, ThemeDefinition, ThemeTokens, ThemeVariant } from '@almadar/core';
|
|
4
|
+
export { UISlot } from '@almadar/core';
|
|
5
|
+
export { S as SlotAnimation, a as SlotChangeCallback, b as SlotContent, c as SlotRenderConfig, U as UISlotManager } from '../useUISlots-BesZYMks.cjs';
|
|
6
|
+
import 'react';
|
|
7
|
+
|
|
1
8
|
/**
|
|
2
9
|
* themeTokens — runtime mirror of the orbital compiler's theme codegen.
|
|
3
10
|
*
|
|
@@ -24,9 +31,9 @@
|
|
|
24
31
|
*
|
|
25
32
|
* @packageDocumentation
|
|
26
33
|
*/
|
|
27
|
-
|
|
34
|
+
|
|
28
35
|
/** Resolved color mode. Mirrors `ThemeContext.resolvedMode`. */
|
|
29
|
-
|
|
36
|
+
type ThemeMode = 'light' | 'dark';
|
|
30
37
|
/**
|
|
31
38
|
* Convert `ThemeTokens` (+ optional dark variant) into a CSS custom-property
|
|
32
39
|
* map keyed by variable name (e.g. `--color-primary`).
|
|
@@ -44,7 +51,7 @@ export type ThemeMode = 'light' | 'dark';
|
|
|
44
51
|
* (`generate_tokens_css_dark`). Categories not present in `darkVariant` fall
|
|
45
52
|
* back to the base tokens.
|
|
46
53
|
*/
|
|
47
|
-
|
|
54
|
+
declare function themeTokensToCssVars(tokens: ThemeTokens, mode?: ThemeMode, darkVariant?: ThemeVariant): Record<string, string>;
|
|
48
55
|
/**
|
|
49
56
|
* `ThemeRef` is `ThemeDefinition | string`. When it's a string, it's an
|
|
50
57
|
* unresolved import reference (e.g. `"Ocean.theme"`) that should have been
|
|
@@ -52,4 +59,6 @@ export declare function themeTokensToCssVars(tokens: ThemeTokens, mode?: ThemeMo
|
|
|
52
59
|
* string here, the upstream resolution path didn't run — return `undefined`
|
|
53
60
|
* rather than guess. `OrbitalThemeProvider` falls through to passthrough.
|
|
54
61
|
*/
|
|
55
|
-
|
|
62
|
+
declare function resolveThemeForRuntime(theme: ThemeRef | undefined): ThemeDefinition | undefined;
|
|
63
|
+
|
|
64
|
+
export { type ThemeMode, resolveThemeForRuntime, themeTokensToCssVars };
|
package/dist/context/index.d.ts
CHANGED
|
@@ -1,11 +1,64 @@
|
|
|
1
|
+
export { U as UISlotContext, a as UISlotProvider, u as useSlotContent, b as useSlotHasContent, c as useUISlots } from '../UISlotContext-C1FsU9GB.js';
|
|
2
|
+
export { A as ANONYMOUS_USER, B as BUILT_IN_THEMES, C as ColorMode, a as CurrentPagePathContext, b as CurrentPagePathProvider, c as CurrentPagePathProviderProps, D as DesignTheme, d as DesignThemeProvider, O as OrbitalThemeProvider, e as OrbitalThemeProviderProps, R as ResolvedMode, T as ThemeContext, f as ThemeProvider, g as ThemeProviderProps, U as UIThemeDefinition, h as UserContext, i as UserContextValue, j as UserData, k as UserProvider, l as UserProviderProps, u as useCurrentPagePath, m as useDesignTheme, n as useHasPermission, o as useHasRole, p as useTheme, q as useUser, r as useUserForEvaluation } from '../UserContext-bziZwgFL.js';
|
|
3
|
+
import { ThemeRef, ThemeDefinition, ThemeTokens, ThemeVariant } from '@almadar/core';
|
|
4
|
+
export { UISlot } from '@almadar/core';
|
|
5
|
+
export { S as SlotAnimation, a as SlotChangeCallback, b as SlotContent, c as SlotRenderConfig, U as UISlotManager } from '../useUISlots-BesZYMks.js';
|
|
6
|
+
import 'react';
|
|
7
|
+
|
|
1
8
|
/**
|
|
2
|
-
*
|
|
9
|
+
* themeTokens — runtime mirror of the orbital compiler's theme codegen.
|
|
10
|
+
*
|
|
11
|
+
* The compile path (orbital-rust/crates/orbital-shell-typescript/src/codegen/theme.rs)
|
|
12
|
+
* reads `OrbitalDefinition.theme.tokens` and emits CSS custom-property
|
|
13
|
+
* declarations into a `[data-theme="<name>-<mode>"]` block. The runtime
|
|
14
|
+
* does not parse compiled CSS — it reads the same `tokens` object directly
|
|
15
|
+
* and produces the same `{ '--color-primary': '…', '--radius-md': '…' }` map
|
|
16
|
+
* that the compiler emits.
|
|
17
|
+
*
|
|
18
|
+
* Keeping the two paths byte-identical at the variable level is the contract:
|
|
19
|
+
* editing tokens via the Studio Design System tab must produce the exact
|
|
20
|
+
* same rendered result as editing them in source and running `orbital
|
|
21
|
+
* compile`. The mapping rules here mirror `generate_tokens_css` /
|
|
22
|
+
* `generate_tokens_css_dark` (theme.rs:122–351).
|
|
23
|
+
*
|
|
24
|
+
* Compile vs runtime difference (intentional):
|
|
25
|
+
* - Compile emits the FULL set: schema overrides on top of defaults. This is
|
|
26
|
+
* needed because the compiled CSS replaces the theme entirely.
|
|
27
|
+
* - Runtime emits ONLY the keys present in `tokens` (and `variants.dark`).
|
|
28
|
+
* Missing keys cascade from the parent `[data-theme]` rule on the document
|
|
29
|
+
* element. The provider scopes overrides to an orbital subtree without
|
|
30
|
+
* shadowing inherited defaults.
|
|
31
|
+
*
|
|
32
|
+
* @packageDocumentation
|
|
3
33
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
34
|
+
|
|
35
|
+
/** Resolved color mode. Mirrors `ThemeContext.resolvedMode`. */
|
|
36
|
+
type ThemeMode = 'light' | 'dark';
|
|
37
|
+
/**
|
|
38
|
+
* Convert `ThemeTokens` (+ optional dark variant) into a CSS custom-property
|
|
39
|
+
* map keyed by variable name (e.g. `--color-primary`).
|
|
40
|
+
*
|
|
41
|
+
* Mapping rules (mirror theme.rs):
|
|
42
|
+
* - `tokens.colors.<k>` → `--color-<k>`
|
|
43
|
+
* - `tokens.radii.<k>` → `--radius-<k>`
|
|
44
|
+
* - `tokens.spacing.<k>` → `--space-<k>`
|
|
45
|
+
* - `tokens.typography.<k>` → `--<k>` (keys already include their `font-`/
|
|
46
|
+
* `letter-`/`line-` prefix)
|
|
47
|
+
* - `tokens.shadows.<k>` → `--shadow-<k>` (schema key has no prefix)
|
|
48
|
+
*
|
|
49
|
+
* In `'dark'` mode, the `darkVariant` overrides are merged on top of the
|
|
50
|
+
* base tokens per category — same precedence the Rust compiler uses
|
|
51
|
+
* (`generate_tokens_css_dark`). Categories not present in `darkVariant` fall
|
|
52
|
+
* back to the base tokens.
|
|
53
|
+
*/
|
|
54
|
+
declare function themeTokensToCssVars(tokens: ThemeTokens, mode?: ThemeMode, darkVariant?: ThemeVariant): Record<string, string>;
|
|
55
|
+
/**
|
|
56
|
+
* `ThemeRef` is `ThemeDefinition | string`. When it's a string, it's an
|
|
57
|
+
* unresolved import reference (e.g. `"Ocean.theme"`) that should have been
|
|
58
|
+
* inlined by the compiler's import phase before runtime. If we still see a
|
|
59
|
+
* string here, the upstream resolution path didn't run — return `undefined`
|
|
60
|
+
* rather than guess. `OrbitalThemeProvider` falls through to passthrough.
|
|
61
|
+
*/
|
|
62
|
+
declare function resolveThemeForRuntime(theme: ThemeRef | undefined): ThemeDefinition | undefined;
|
|
63
|
+
|
|
64
|
+
export { type ThemeMode, resolveThemeForRuntime, themeTokensToCssVars };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { EventPayload, BusEventSource, BusEventListener, Unsubscribe } from '@almadar/core';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Event Bus Types
|
|
3
5
|
*
|
|
@@ -7,21 +9,18 @@
|
|
|
7
9
|
*
|
|
8
10
|
* @packageDocumentation
|
|
9
11
|
*/
|
|
10
|
-
|
|
11
|
-
export type { BusEvent, BusEventSource, BusEventListener, EventPayload, Unsubscribe };
|
|
12
|
-
/** @deprecated Use BusEventListener from @almadar/core directly. */
|
|
13
|
-
export type EventListener = BusEventListener;
|
|
12
|
+
|
|
14
13
|
/**
|
|
15
14
|
* Event bus context type.
|
|
16
15
|
*
|
|
17
16
|
* `emit` accepts `EventPayload` from `@almadar/core` — the canonical
|
|
18
17
|
* object shape (index signature over `EventPayloadValue`) that the bus
|
|
19
18
|
* envelope stores and listeners consume. Pattern-specific payload types
|
|
20
|
-
* from `@almadar/patterns` (`ItemActionPayload`, `SelectionChangePayload`,
|
|
19
|
+
* from `@almadar/core/patterns` (`ItemActionPayload`, `SelectionChangePayload`,
|
|
21
20
|
* `FormSubmitPayload`, ...) are structural subtypes of `EventPayload`,
|
|
22
21
|
* so components can pass them in without casts.
|
|
23
22
|
*/
|
|
24
|
-
|
|
23
|
+
interface EventBusContextType {
|
|
25
24
|
/**
|
|
26
25
|
* Emit an event to all listeners.
|
|
27
26
|
*
|
|
@@ -62,3 +61,5 @@ export interface EventBusContextType {
|
|
|
62
61
|
*/
|
|
63
62
|
onAny?: (listener: BusEventListener) => Unsubscribe;
|
|
64
63
|
}
|
|
64
|
+
|
|
65
|
+
export type { EventBusContextType as E };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { EventPayload, BusEventSource, BusEventListener, Unsubscribe } from '@almadar/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Event Bus Types
|
|
5
|
+
*
|
|
6
|
+
* Re-exports from @almadar/core so every package agrees on the same
|
|
7
|
+
* bus event envelope. @almadar/ui no longer owns its own KFlowEvent —
|
|
8
|
+
* that type was folded into core's BusEvent.
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Event bus context type.
|
|
15
|
+
*
|
|
16
|
+
* `emit` accepts `EventPayload` from `@almadar/core` — the canonical
|
|
17
|
+
* object shape (index signature over `EventPayloadValue`) that the bus
|
|
18
|
+
* envelope stores and listeners consume. Pattern-specific payload types
|
|
19
|
+
* from `@almadar/core/patterns` (`ItemActionPayload`, `SelectionChangePayload`,
|
|
20
|
+
* `FormSubmitPayload`, ...) are structural subtypes of `EventPayload`,
|
|
21
|
+
* so components can pass them in without casts.
|
|
22
|
+
*/
|
|
23
|
+
interface EventBusContextType {
|
|
24
|
+
/**
|
|
25
|
+
* Emit an event to all listeners.
|
|
26
|
+
*
|
|
27
|
+
* @param type - Event type identifier
|
|
28
|
+
* @param payload - Optional payload data (shape matches {@link EventPayload})
|
|
29
|
+
* @param source - Optional origin info (orbital/trait/...)
|
|
30
|
+
*/
|
|
31
|
+
emit: (type: string, payload?: EventPayload, source?: BusEventSource) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Subscribe to an event type.
|
|
34
|
+
*
|
|
35
|
+
* @param type - Event type to listen for
|
|
36
|
+
* @param listener - Callback function
|
|
37
|
+
* @returns Unsubscribe function
|
|
38
|
+
*/
|
|
39
|
+
on: (type: string, listener: BusEventListener) => Unsubscribe;
|
|
40
|
+
/**
|
|
41
|
+
* Subscribe to an event type, but only fire once.
|
|
42
|
+
*
|
|
43
|
+
* @param type - Event type to listen for
|
|
44
|
+
* @param listener - Callback function
|
|
45
|
+
* @returns Unsubscribe function
|
|
46
|
+
*/
|
|
47
|
+
once: (type: string, listener: BusEventListener) => Unsubscribe;
|
|
48
|
+
/**
|
|
49
|
+
* Check if there are any listeners for an event type.
|
|
50
|
+
*
|
|
51
|
+
* @param type - Event type to check
|
|
52
|
+
* @returns True if there are listeners
|
|
53
|
+
*/
|
|
54
|
+
hasListeners: (type: string) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Subscribe to ALL events regardless of type.
|
|
57
|
+
* Useful for verification, debugging, and analytics.
|
|
58
|
+
*
|
|
59
|
+
* @param listener - Callback function invoked for every emitted event
|
|
60
|
+
* @returns Unsubscribe function
|
|
61
|
+
*/
|
|
62
|
+
onAny?: (listener: BusEventListener) => Unsubscribe;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type { EventBusContextType as E };
|