@almadar/ui 2.36.0 → 2.37.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/avl/index.cjs +359 -131
- package/dist/avl/index.d.cts +33 -1
- package/dist/avl/index.d.ts +1 -0
- package/dist/avl/index.js +342 -131
- package/dist/components/atoms/Input.d.ts +1 -1
- package/dist/components/index.cjs +122 -6
- package/dist/components/index.js +106 -6
- package/dist/components/organisms/avl/FlowCanvas.d.ts +4 -0
- package/dist/components/organisms/avl/OrbInspector.d.ts +29 -0
- package/dist/components/organisms/avl/index.d.ts +1 -0
- package/dist/providers/index.cjs +82 -2
- package/dist/providers/index.js +66 -2
- package/dist/runtime/index.cjs +122 -6
- package/dist/runtime/index.js +106 -6
- package/package.json +4 -4
- package/dist/components/organisms/avl/TransitionPanel.d.ts +0 -20
package/dist/avl/index.d.cts
CHANGED
|
@@ -980,6 +980,34 @@ declare const OrbPreviewNode: React__default.NamedExoticComponent<NodeProps>;
|
|
|
980
980
|
|
|
981
981
|
declare const EventFlowEdge: React__default.NamedExoticComponent<EdgeProps>;
|
|
982
982
|
|
|
983
|
+
/**
|
|
984
|
+
* OrbInspector
|
|
985
|
+
*
|
|
986
|
+
* Universal contextual inspector for .orb programs. Built into FlowCanvas.
|
|
987
|
+
* Two tabs: Inspector (contextual sections) and Code (.orb syntax view).
|
|
988
|
+
*
|
|
989
|
+
* Inspector shows different sections based on what was clicked:
|
|
990
|
+
* - Orbital header → entity fields, traits, pages
|
|
991
|
+
* - Pattern element → pattern props, entity (if entity-aware), transition (if fires event)
|
|
992
|
+
* - Transition node → state diagram, guard, effects, render-ui source
|
|
993
|
+
*
|
|
994
|
+
* Code tab shows the .orb representation of the selected context.
|
|
995
|
+
*
|
|
996
|
+
* When `editable` is true, inspector fields become inputs.
|
|
997
|
+
*/
|
|
998
|
+
|
|
999
|
+
interface OrbInspectorProps {
|
|
1000
|
+
node: PreviewNodeData;
|
|
1001
|
+
schema: OrbitalSchema;
|
|
1002
|
+
editable?: boolean;
|
|
1003
|
+
onSchemaChange?: (schema: OrbitalSchema) => void;
|
|
1004
|
+
onClose: () => void;
|
|
1005
|
+
}
|
|
1006
|
+
declare function OrbInspector({ node, schema, editable, onSchemaChange, onClose }: OrbInspectorProps): React__default.ReactElement;
|
|
1007
|
+
declare namespace OrbInspector {
|
|
1008
|
+
var displayName: string;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
983
1011
|
/**
|
|
984
1012
|
* FlowCanvas — V3 UI Projection Canvas
|
|
985
1013
|
*
|
|
@@ -1008,6 +1036,10 @@ interface FlowCanvasProps {
|
|
|
1008
1036
|
}) => void;
|
|
1009
1037
|
onLevelChange?: (level: ViewLevel, orbital?: string) => void;
|
|
1010
1038
|
initialOrbital?: string;
|
|
1039
|
+
/** Enable editing in the inspector. When true, fields become inputs. */
|
|
1040
|
+
editable?: boolean;
|
|
1041
|
+
/** Called when the user edits the schema via the inspector. */
|
|
1042
|
+
onSchemaChange?: (schema: OrbitalSchema) => void;
|
|
1011
1043
|
/** @deprecated Use onNodeClick instead. Kept for AvlCosmicZoom compat. */
|
|
1012
1044
|
onZoomChange?: (level: string, context: Record<string, string | undefined>) => void;
|
|
1013
1045
|
/** @deprecated Not used in V3. */
|
|
@@ -1164,4 +1196,4 @@ interface AvlClickTargetProps {
|
|
|
1164
1196
|
}
|
|
1165
1197
|
declare const AvlClickTarget: React__default.FC<AvlClickTargetProps>;
|
|
1166
1198
|
|
|
1167
|
-
export { AVL_FIELD_TYPE_SHAPES, AVL_OPERATOR_COLORS, type ApplicationLevelData, AvlApplication, type AvlApplicationProps, AvlBackwardEdge, type AvlBaseProps, AvlBehaviorGlyph, type AvlBehaviorGlyphProps, AvlBinding, AvlBindingEdge, type AvlBindingProps, AvlBindingRef, type AvlBindingRefProps, AvlClickTarget, type AvlClickTargetProps, AvlClosedCircuit, type AvlClosedCircuitProps, type AvlClosedCircuitState, type AvlClosedCircuitTransition, AvlCosmicZoom, type AvlCosmicZoomProps, type AvlEdgeData, AvlEffect, type AvlEffectProps, type AvlEffectType, AvlEmitListen, type AvlEmitListenProps, AvlEntity, type AvlEntityProps, AvlEvent, type AvlEventProps, AvlEventWireEdge, type AvlEventWireEdgeData, AvlExprTree, type AvlExprTreeNode, type AvlExprTreeProps, AvlField, type AvlFieldProps, AvlFieldType, type AvlFieldTypeKind, type AvlFieldTypeProps, AvlGuard, type AvlGuardProps, AvlLiteral, type AvlLiteralProps, type AvlNodeData, AvlOperator, type AvlOperatorNamespace, type AvlOperatorProps, AvlOrbital, AvlOrbitalNode, type AvlOrbitalProps, AvlOrbitalUnit, type AvlOrbitalUnitPage, type AvlOrbitalUnitProps, type AvlOrbitalUnitTrait, AvlPage, AvlPageEdge, type AvlPageProps, AvlPersistence, type AvlPersistenceKind, type AvlPersistenceProps, AvlSExpr, type AvlSExprProps, AvlSlotMap, type AvlSlotMapProps, type AvlSlotMapSlot, AvlState, AvlStateMachine, type AvlStateMachineProps, type AvlStateMachineState, type AvlStateMachineTransition, type AvlStateProps, AvlSwimLane, type AvlSwimLaneProps, AvlTrait, type AvlTraitProps, AvlTraitScene, type AvlTraitSceneProps, AvlTransition, AvlTransitionEdge, type AvlTransitionEdgeData, AvlTransitionLane, type AvlTransitionLaneProps, type AvlTransitionProps, AvlTransitionScene, type AvlTransitionSceneProps, type BehaviorGlyphChild, type BehaviorGlyphConnection, type BehaviorLevel, BehaviorView, CONNECTION_COLORS, type CrossLink, DOMAIN_COLORS, DetailView, EFFECT_CATEGORY_COLORS, EFFECT_TYPE_TO_CATEGORY, type EffectCategory, type ElkLayout, type EventEdgeData, EventFlowEdge, FlowCanvas, type FlowCanvasProps, type GlyphSize, type LayoutEdge, type LayoutNode, MiniStateMachine, ModuleCard, OrbPreviewNode, type OrbitalLevelData, type PatternEventSource, type PreviewNodeData, type RenderUIEntry, STATE_COLORS, type StateRole, SystemNode, type TraitLevelData, type TransitionLevelData, type ViewLevel, ZOOM_BAND_THRESHOLDS, type ZoomBand, ZoomBandContext, ZoomBreadcrumb, type ZoomBreadcrumbProps, ZoomLegend, type ZoomLegendProps, type ZoomLevel, arcPath, computeTraitLayout, computeZoomBand, curveControlPoint, edgePath, getStateRole, gridPositions, orbitalToExpandedGraph, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, radialPositions, ringPositions, schemaToFlowGraph, schemaToOverviewGraph, useZoomBand, zoomProgress };
|
|
1199
|
+
export { AVL_FIELD_TYPE_SHAPES, AVL_OPERATOR_COLORS, type ApplicationLevelData, AvlApplication, type AvlApplicationProps, AvlBackwardEdge, type AvlBaseProps, AvlBehaviorGlyph, type AvlBehaviorGlyphProps, AvlBinding, AvlBindingEdge, type AvlBindingProps, AvlBindingRef, type AvlBindingRefProps, AvlClickTarget, type AvlClickTargetProps, AvlClosedCircuit, type AvlClosedCircuitProps, type AvlClosedCircuitState, type AvlClosedCircuitTransition, AvlCosmicZoom, type AvlCosmicZoomProps, type AvlEdgeData, AvlEffect, type AvlEffectProps, type AvlEffectType, AvlEmitListen, type AvlEmitListenProps, AvlEntity, type AvlEntityProps, AvlEvent, type AvlEventProps, AvlEventWireEdge, type AvlEventWireEdgeData, AvlExprTree, type AvlExprTreeNode, type AvlExprTreeProps, AvlField, type AvlFieldProps, AvlFieldType, type AvlFieldTypeKind, type AvlFieldTypeProps, AvlGuard, type AvlGuardProps, AvlLiteral, type AvlLiteralProps, type AvlNodeData, AvlOperator, type AvlOperatorNamespace, type AvlOperatorProps, AvlOrbital, AvlOrbitalNode, type AvlOrbitalProps, AvlOrbitalUnit, type AvlOrbitalUnitPage, type AvlOrbitalUnitProps, type AvlOrbitalUnitTrait, AvlPage, AvlPageEdge, type AvlPageProps, AvlPersistence, type AvlPersistenceKind, type AvlPersistenceProps, AvlSExpr, type AvlSExprProps, AvlSlotMap, type AvlSlotMapProps, type AvlSlotMapSlot, AvlState, AvlStateMachine, type AvlStateMachineProps, type AvlStateMachineState, type AvlStateMachineTransition, type AvlStateProps, AvlSwimLane, type AvlSwimLaneProps, AvlTrait, type AvlTraitProps, AvlTraitScene, type AvlTraitSceneProps, AvlTransition, AvlTransitionEdge, type AvlTransitionEdgeData, AvlTransitionLane, type AvlTransitionLaneProps, type AvlTransitionProps, AvlTransitionScene, type AvlTransitionSceneProps, type BehaviorGlyphChild, type BehaviorGlyphConnection, type BehaviorLevel, BehaviorView, CONNECTION_COLORS, type CrossLink, DOMAIN_COLORS, DetailView, EFFECT_CATEGORY_COLORS, EFFECT_TYPE_TO_CATEGORY, type EffectCategory, type ElkLayout, type EventEdgeData, EventFlowEdge, FlowCanvas, type FlowCanvasProps, type GlyphSize, type LayoutEdge, type LayoutNode, MiniStateMachine, ModuleCard, OrbInspector, type OrbInspectorProps, OrbPreviewNode, type OrbitalLevelData, type PatternEventSource, type PreviewNodeData, type RenderUIEntry, STATE_COLORS, type StateRole, SystemNode, type TraitLevelData, type TransitionLevelData, type ViewLevel, ZOOM_BAND_THRESHOLDS, type ZoomBand, ZoomBandContext, ZoomBreadcrumb, type ZoomBreadcrumbProps, ZoomLegend, type ZoomLegendProps, type ZoomLevel, arcPath, computeTraitLayout, computeZoomBand, curveControlPoint, edgePath, getStateRole, gridPositions, orbitalToExpandedGraph, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, radialPositions, ringPositions, schemaToFlowGraph, schemaToOverviewGraph, useZoomBand, zoomProgress };
|
package/dist/avl/index.d.ts
CHANGED
|
@@ -55,4 +55,5 @@ export { type ViewLevel, type PreviewNodeData, type EventEdgeData, type PatternE
|
|
|
55
55
|
export { schemaToOverviewGraph, orbitalToExpandedGraph } from '../components/molecules/avl/avl-preview-converter';
|
|
56
56
|
export { OrbPreviewNode } from '../components/molecules/avl/OrbPreviewNode';
|
|
57
57
|
export { EventFlowEdge } from '../components/molecules/avl/EventFlowEdge';
|
|
58
|
+
export { OrbInspector, type OrbInspectorProps } from '../components/organisms/avl/OrbInspector';
|
|
58
59
|
export { FlowCanvas, type FlowCanvasProps, ZoomBreadcrumb, type ZoomBreadcrumbProps, ZoomLegend, type ZoomLegendProps, AvlCosmicZoom, type AvlCosmicZoomProps, AvlTraitScene, type AvlTraitSceneProps, AvlTransitionScene, type AvlTransitionSceneProps, AvlClickTarget, type AvlClickTargetProps, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, type ApplicationLevelData, type OrbitalLevelData, type TraitLevelData, type TransitionLevelData, type CrossLink, type ZoomLevel, } from '../components/organisms/avl';
|