@almadar/ui 6.55.0 → 6.57.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.
Files changed (59) hide show
  1. package/dist/{ArbitraryClassCompiler-DvzdeHxc.d.ts → ArbitraryClassCompiler-tChQ3nVq.d.ts} +15 -1
  2. package/dist/{FileTree-DUi7e7Z8.d.ts → FileTree-BSfgp-HH.d.ts} +29 -2
  3. package/dist/Typography-LZTP72Y4.js +5 -0
  4. package/dist/{UISlotRenderer-QTHFT6Z4.js → UISlotRenderer-NCGDIXN4.js} +8 -8
  5. package/dist/avl/index.cjs +4832 -4212
  6. package/dist/avl/index.d.ts +74 -5
  7. package/dist/avl/index.js +68 -711
  8. package/dist/{avl-schema-parser-C0wnAp5x.d.ts → avl-schema-parser-CH1QoZw1.d.ts} +1 -1
  9. package/dist/{chunk-HCSJHRC4.js → chunk-4ZGXIW3B.js} +1 -1
  10. package/dist/{chunk-RNY5LJXJ.js → chunk-723MJUU3.js} +1 -1
  11. package/dist/{chunk-6EV3OEBQ.js → chunk-CHNC4UYE.js} +3 -2
  12. package/dist/{chunk-SGJHVPHC.js → chunk-GZGDBS4S.js} +2 -2
  13. package/dist/{chunk-Y53Q55H5.js → chunk-HA7CJWQX.js} +1123 -1121
  14. package/dist/{chunk-JRW33U35.js → chunk-I5QOYW2Z.js} +1 -1
  15. package/dist/{chunk-KQXXO42S.js → chunk-KJGVLXEN.js} +78 -1
  16. package/dist/{chunk-HRCR53OW.js → chunk-LZRW6GXG.js} +18 -3
  17. package/dist/{chunk-2LFBQ4IS.js → chunk-MZIDOJMD.js} +2 -2
  18. package/dist/{chunk-QGH4NAQO.js → chunk-N7JIG57B.js} +9 -4
  19. package/dist/{chunk-XZKGRSIO.js → chunk-PYJ2UQWM.js} +2487 -1156
  20. package/dist/{chunk-FQM37C56.js → chunk-RHP5WL55.js} +61 -55
  21. package/dist/chunk-YYYHH5BA.js +2519 -0
  22. package/dist/{cn-ClXGlIOY.d.ts → cn-DIql5232.d.ts} +152 -24
  23. package/dist/components/index.cjs +6876 -3072
  24. package/dist/components/index.d.ts +45 -94
  25. package/dist/components/index.js +14 -16
  26. package/dist/context/index.cjs +23 -0
  27. package/dist/context/index.d.ts +2 -2
  28. package/dist/context/index.js +20 -1
  29. package/dist/hooks/index.cjs +2544 -7
  30. package/dist/hooks/index.d.ts +4 -1
  31. package/dist/hooks/index.js +7 -6
  32. package/dist/lib/drawable/three/index.cjs +22 -6
  33. package/dist/lib/drawable/three/index.d.ts +1 -1
  34. package/dist/lib/drawable/three/index.js +7 -7
  35. package/dist/lib/index.cjs +18 -3
  36. package/dist/lib/index.d.ts +1 -1
  37. package/dist/lib/index.js +3 -4
  38. package/dist/locales/index.cjs +54 -9
  39. package/dist/locales/index.js +2 -2489
  40. package/dist/providers/index.cjs +4035 -2382
  41. package/dist/providers/index.d.ts +2 -2
  42. package/dist/providers/index.js +24 -13
  43. package/dist/runtime/index.cjs +4092 -2447
  44. package/dist/runtime/index.d.ts +0 -13
  45. package/dist/runtime/index.js +11 -10
  46. package/dist/ssr/index.cjs +23 -6
  47. package/dist/ssr/index.js +23 -6
  48. package/dist/{useEventBus-JUAH3EFW.js → useEventBus-SWRN475O.js} +1 -1
  49. package/locales/ar.json +18 -3
  50. package/locales/en.json +18 -3
  51. package/locales/sl.json +18 -3
  52. package/package.json +6 -6
  53. package/tailwind-preset.cjs +6 -0
  54. package/themes/_fonts.css +1 -1
  55. package/themes/_presets.css +1 -0
  56. package/themes/kflow.css +299 -0
  57. package/dist/Typography-7PDT62PG.js +0 -5
  58. package/dist/chunk-F4ZTPKZL.js +0 -284
  59. package/dist/chunk-OKWD7LPO.js +0 -80
@@ -2,10 +2,10 @@ import { OperatorCategory } from '@almadar/std';
2
2
  import * as React$1 from 'react';
3
3
  import React__default from 'react';
4
4
  import { FieldType, EntityPersistence, SExpr, EvalTrace, A11yProps, EventEmit, Expression, UISlot, OrbitalSchema, EntityData, EditFocus, EventPayload, AriaRole, DomainQuestion, DomainQuestionAnswer, ThemeDefinition, CircuitStepResult, GuardEvaluation, EffectTrace } from '@almadar/core';
5
- import { A as AvlNodeData, F as FileTreeItem } from '../FileTree-DUi7e7Z8.js';
6
- export { a as AvlEdgeData, b as AvlStateMachine, c as AvlStateMachineProps, B as BehaviorView, M as ModuleCard, s as schemaToFlowGraph } from '../FileTree-DUi7e7Z8.js';
7
- import { T as TraitLevelData, d as TraitTransitionInfo, c as TransitionLevelData } from '../avl-schema-parser-C0wnAp5x.js';
8
- export { A as ApplicationLevelData, C as CrossLink, b as OrbitalLevelData, p as parseApplicationLevel, e as parseOrbitalLevel, f as parseTraitLevel, g as parseTransitionLevel, t as traitLevelFromTrait } from '../avl-schema-parser-C0wnAp5x.js';
5
+ import { A as AvlAnnotations, a as AvlNodeData, F as FileTreeItem, b as AvlNote } from '../FileTree-BSfgp-HH.js';
6
+ export { c as AvlEdgeData, d as AvlStateMachine, e as AvlStateMachineProps, B as BehaviorView, M as ModuleCard, s as schemaToFlowGraph } from '../FileTree-BSfgp-HH.js';
7
+ import { T as TraitLevelData, d as TraitTransitionInfo, c as TransitionLevelData, S as SerializedEffect } from '../avl-schema-parser-CH1QoZw1.js';
8
+ export { A as ApplicationLevelData, C as CrossLink, b as OrbitalLevelData, p as parseApplicationLevel, e as parseOrbitalLevel, f as parseTraitLevel, g as parseTransitionLevel, t as traitLevelFromTrait } from '../avl-schema-parser-CH1QoZw1.js';
9
9
  import { NodeProps, EdgeProps, Edge, Node, NodeTypes, ReactFlowProps } from '@xyflow/react';
10
10
  import { AnyPatternConfig } from '@almadar/core/patterns';
11
11
  import { useDraggable } from '@dnd-kit/core';
@@ -620,6 +620,8 @@ declare const DependencyColumnNode: React__default.NamedExoticComponent<NodeProp
620
620
 
621
621
  interface MiniStateMachineProps {
622
622
  data: TraitLevelData;
623
+ /** Author notes, shown in a popover on hover of a state or an effect. */
624
+ annotations?: AvlAnnotations;
623
625
  className?: string;
624
626
  }
625
627
  declare const MiniStateMachine: React__default.FC<MiniStateMachineProps>;
@@ -1959,10 +1961,25 @@ declare const AvlClickTarget: React__default.FC<AvlClickTargetProps>;
1959
1961
  * transition.
1960
1962
  */
1961
1963
 
1964
+ /**
1965
+ * One transition explained: from-state, event and to-state, the guard that
1966
+ * must hold, and each effect it runs in order, drawn as circuit boards.
1967
+ *
1968
+ * @capabilities transition explainer, event guard effects walkthrough, state machine step detail
1969
+ */
1962
1970
  interface AvlTransitionDetailProps {
1971
+ /** Orbital the transition belongs to. */
1963
1972
  orbital: string;
1973
+ /** Trait the transition belongs to. */
1964
1974
  trait: string;
1975
+ /** The transition to explain.
1976
+ * @example {"from":"pending","to":"paid","event":"PAY","guard":[">","@payload.amount",0],"effects":[{"type":"set","args":["@entity.total","@payload.amount"]},{"type":"persist","args":["update","Order","@entity"]}],"index":0}
1977
+ */
1965
1978
  transition: TraitTransitionInfo;
1979
+ /** Author explanations shown in a popover on hover: the transition's event note and per-effect-type notes.
1980
+ * @example {"transitions":{"PAY":{"title":"Paying","body":"The customer pays the order total."}},"effects":{"persist":{"body":"Saves the order."}}}
1981
+ */
1982
+ annotations?: AvlAnnotations;
1966
1983
  /** The latest played run of this transition (see `transitionPlayback`). */
1967
1984
  playback?: AvlTransitionPlayback;
1968
1985
  /** Emits UI:{stepEvent} with an {@link AvlStepRequest} when Step is pressed. */
@@ -1971,6 +1988,58 @@ interface AvlTransitionDetailProps {
1971
1988
  }
1972
1989
  declare const AvlTransitionDetail: React__default.FC<AvlTransitionDetailProps>;
1973
1990
 
1991
+ /**
1992
+ * AvlTransitionExplainer — the render-ui face of {@link AvlTransitionDetail}:
1993
+ * one transition explained (from, event, to, the guard that must hold, each
1994
+ * effect in order) with optional author notes. Playing a transition is a host
1995
+ * capability and stays on AvlTransitionDetail.
1996
+ */
1997
+
1998
+ /** A transition as `.lolo` data hands it over: `guard` is omitted when there is none. */
1999
+ interface ExplainedTransition {
2000
+ from: string;
2001
+ to: string;
2002
+ event: string;
2003
+ guard?: SExpr;
2004
+ effects: SerializedEffect[];
2005
+ index: number;
2006
+ }
2007
+ /**
2008
+ * One transition explained step by step: from-state, event and to-state, the
2009
+ * guard that must hold, and each effect it runs in order.
2010
+ *
2011
+ * @capabilities transition explainer, event guard effects walkthrough, what happens when an event fires
2012
+ */
2013
+ interface AvlTransitionExplainerProps extends A11yProps {
2014
+ /** Orbital the transition belongs to. */
2015
+ orbitalName: string;
2016
+ /** Trait the transition belongs to. */
2017
+ traitName: string;
2018
+ /** The transition to explain.
2019
+ * @example {"from":"pending","to":"paid","event":"PAY","effects":[{"type":"set","args":[]},{"type":"persist","args":[]}],"index":0}
2020
+ */
2021
+ transition: ExplainedTransition;
2022
+ /** Author explanations shown in a popover on hover: the event's note and per-effect-type notes.
2023
+ * @example {"transitions":{"PAY":{"title":"Paying","body":"The customer pays the order total."}},"effects":{"persist":{"body":"Saves the order."}}}
2024
+ */
2025
+ annotations?: AvlAnnotations;
2026
+ className?: string;
2027
+ }
2028
+ declare const AvlTransitionExplainer: React__default.FC<AvlTransitionExplainerProps>;
2029
+
2030
+ /**
2031
+ * AvlEffectChip — one effect glyph that names itself: its operator, the
2032
+ * plain-language category, and the std registry description, on hover/focus.
2033
+ */
2034
+
2035
+ interface AvlEffectChipProps {
2036
+ effectType: string;
2037
+ /** Glyph box in px. @default 16 */
2038
+ size?: number;
2039
+ note?: AvlNote;
2040
+ }
2041
+ declare const AvlEffectChip: React__default.FC<AvlEffectChipProps>;
2042
+
1974
2043
  /**
1975
2044
  * AVL layered graph: labelled columns of pills, left to right, with edges between pills.
1976
2045
  * The one layout behind the app's dependencies, one orbital's trait flow and a deployment's
@@ -2105,4 +2174,4 @@ declare namespace KnobSettingRow {
2105
2174
  var displayName: string;
2106
2175
  }
2107
2176
 
2108
- export { AVL_GLYPH_KINDS, AVL_GRAPH_NODE_TYPES, AvlApplication, type AvlApplicationProps, AvlBackwardEdge, type AvlBaseProps, AvlBehaviorGlyph, type AvlBehaviorGlyphProps, AvlBinding, AvlBindingEdge, type AvlBindingProps, AvlBindingRef, type AvlBindingRefProps, AvlCircuit, type AvlCircuitProps, AvlClickTarget, type AvlClickTargetProps, AvlClosedCircuit, type AvlClosedCircuitProps, type AvlClosedCircuitState, type AvlClosedCircuitTransition, AvlCosmicZoom, type AvlCosmicZoomProps, AvlEffect, type AvlEffectProps, AvlEmitListen, type AvlEmitListenProps, AvlEntity, type AvlEntityProps, AvlEvent, type AvlEventProps, AvlEventWireEdge, type AvlEventWireEdgeData, AvlExprTree, type AvlExprTreeNode, type AvlExprTreeProps, AvlField, type AvlFieldProps, AvlFieldType, type AvlFieldTypeProps, AvlGlyph, type AvlGlyphKind, type AvlGlyphProps, AvlGraphCanvas, type AvlGraphCanvasProps, AvlGuard, type AvlGuardProps, AvlLiteral, type AvlLiteralProps, AvlNodeData, AvlOperator, type AvlOperatorProps, AvlOrbital, type AvlOrbitalProps, AvlOrbitalUnit, type AvlOrbitalUnitPage, type AvlOrbitalUnitProps, type AvlOrbitalUnitTrait, AvlOrbitalsCosmicZoom, type AvlOrbitalsCosmicZoomProps, AvlPage, AvlPageEdge, type AvlPageProps, AvlPersistence, type AvlPersistenceProps, type AvlPlayStep, AvlSExpr, type AvlSExprProps, AvlSlotMap, type AvlSlotMapProps, type AvlSlotMapSlot, AvlState, type AvlStateMachinePlayback, type AvlStateProps, type AvlStepRequest, AvlSwimLane, type AvlSwimLaneProps, AvlTrait, type AvlTraitProps, AvlTraitScene, type AvlTraitSceneProps, AvlTransition, AvlTransitionDetail, type AvlTransitionDetailProps, AvlTransitionEdge, type AvlTransitionEdgeData, AvlTransitionLane, type AvlTransitionLaneProps, type AvlTransitionPlayback, type AvlTransitionProps, AvlTransitionScene, type AvlTransitionSceneProps, type BehaviorGlyphChild, type BehaviorGlyphConnection, type BehaviorLevel, CANVAS_TOOLS, CONNECTION_COLORS, type CanvasContainerNode, CanvasDndProvider, type CanvasDndProviderProps, type CanvasDragKind, type CanvasDragPayload, type CanvasDropEvent, type CanvasDropTarget, type CanvasFocusChange, type CanvasResolvedDrop, type CanvasScope, type CanvasStateGroup, type CanvasStateOption, type CanvasStateOptions, type CanvasStateView, type CanvasTool, type CanvasVerify, CanvasVerifyContext, type CanvasViewOptions, type CardVerdict, DEPLOYMENT_ROW, DOMAIN_COLORS, DependencyColumnNode, type DependencyLayer, DependencyNode, DetailView, EDITABLE, EFFECT_CATEGORY_COLORS, type EffectCategory, type ElementEditAccess, ElementEditAccessContext, type ElementEditAccessResolver, type ElementKnob, type ElementPropAccess, type ElementSettings, type ElkLayout, type EventEdgeData, EventFlowEdge, FIELD_TYPE_SHAPES, type FieldTypeShape, FlowCanvas, type FlowCanvasProps, type GlyphSize, type InlineTextEditOptions, KnobField, type KnobFieldProps, KnobSettingRow, type KnobSettingRowProps, LIVE_STATE, type LayerIdParts, type LayeredColumn, type LayeredColumnId, type LayeredEdge, type LayeredGraphInput, type LayeredRow, type LayeredUnit, LayersPanel, type LayersPanelProps, type LayoutEdge, type LayoutNode, MiniStateMachine, OPERATOR_CATEGORY_COLORS, OrbInspector, type OrbInspectorProps, OrbPreviewNode, type PatternEventSource, type PlayedStep, type PreviewNodeData, type RenderUIEntry, STATE_COLORS, type SelectedPattern, type StateRole, SystemBandNode, type SystemDependencies, SystemMapContext, type SystemMapContextValue, SystemNode, type TraitFlowEdge, type TraitFlowUnit, TraitLevelData, TraitTransitionInfo, type TraitView, TransitionLevelData, type UseCanvasDraggableArgs, type UseCanvasDraggableResult, type UseCanvasDroppableArgs, type UseCanvasDroppableResult, type ViewLevel, ZOOM_BAND_THRESHOLDS, type ZoomBand, ZoomBandContext, ZoomBreadcrumb, type ZoomBreadcrumbProps, ZoomLegend, type ZoomLegendProps, ZoomLevel, arcPath, armPosition, armsOf, canvasViewGraph, computeTraitLayout, computeZoomBand, curveControlPoint, dependencyReach, deploymentGraph, deriveEditFocusFromElement, dropBusEvent, edgePath, effectCategoryOf, firedTransition, flowNeighbors, getStateRole, gridPositions, hasCanvasTool, initialStateOf, layeredGraph, optionForPlayedStep, parseLayerId, propAccessAt, radialPositions, ringPositions, schemaToDependencyGraph, schemaToLayerItems, schemaToOverviewGraph, stateMachinePlayback, stateOptionsOf, traitFlowGraph, transitionPlayback, useCanvasDraggable, useCanvasDroppable, useInlineTextEdit, useZoomBand, zoomProgress };
2177
+ export { AVL_GLYPH_KINDS, AVL_GRAPH_NODE_TYPES, AvlAnnotations, AvlApplication, type AvlApplicationProps, AvlBackwardEdge, type AvlBaseProps, AvlBehaviorGlyph, type AvlBehaviorGlyphProps, AvlBinding, AvlBindingEdge, type AvlBindingProps, AvlBindingRef, type AvlBindingRefProps, AvlCircuit, type AvlCircuitProps, AvlClickTarget, type AvlClickTargetProps, AvlClosedCircuit, type AvlClosedCircuitProps, type AvlClosedCircuitState, type AvlClosedCircuitTransition, AvlCosmicZoom, type AvlCosmicZoomProps, AvlEffect, AvlEffectChip, type AvlEffectChipProps, type AvlEffectProps, AvlEmitListen, type AvlEmitListenProps, AvlEntity, type AvlEntityProps, AvlEvent, type AvlEventProps, AvlEventWireEdge, type AvlEventWireEdgeData, AvlExprTree, type AvlExprTreeNode, type AvlExprTreeProps, AvlField, type AvlFieldProps, AvlFieldType, type AvlFieldTypeProps, AvlGlyph, type AvlGlyphKind, type AvlGlyphProps, AvlGraphCanvas, type AvlGraphCanvasProps, AvlGuard, type AvlGuardProps, AvlLiteral, type AvlLiteralProps, AvlNodeData, AvlNote, AvlOperator, type AvlOperatorProps, AvlOrbital, type AvlOrbitalProps, AvlOrbitalUnit, type AvlOrbitalUnitPage, type AvlOrbitalUnitProps, type AvlOrbitalUnitTrait, AvlOrbitalsCosmicZoom, type AvlOrbitalsCosmicZoomProps, AvlPage, AvlPageEdge, type AvlPageProps, AvlPersistence, type AvlPersistenceProps, type AvlPlayStep, AvlSExpr, type AvlSExprProps, AvlSlotMap, type AvlSlotMapProps, type AvlSlotMapSlot, AvlState, type AvlStateMachinePlayback, type AvlStateProps, type AvlStepRequest, AvlSwimLane, type AvlSwimLaneProps, AvlTrait, type AvlTraitProps, AvlTraitScene, type AvlTraitSceneProps, AvlTransition, AvlTransitionDetail, type AvlTransitionDetailProps, AvlTransitionEdge, type AvlTransitionEdgeData, AvlTransitionExplainer, type AvlTransitionExplainerProps, AvlTransitionLane, type AvlTransitionLaneProps, type AvlTransitionPlayback, type AvlTransitionProps, AvlTransitionScene, type AvlTransitionSceneProps, type BehaviorGlyphChild, type BehaviorGlyphConnection, type BehaviorLevel, CANVAS_TOOLS, CONNECTION_COLORS, type CanvasContainerNode, CanvasDndProvider, type CanvasDndProviderProps, type CanvasDragKind, type CanvasDragPayload, type CanvasDropEvent, type CanvasDropTarget, type CanvasFocusChange, type CanvasResolvedDrop, type CanvasScope, type CanvasStateGroup, type CanvasStateOption, type CanvasStateOptions, type CanvasStateView, type CanvasTool, type CanvasVerify, CanvasVerifyContext, type CanvasViewOptions, type CardVerdict, DEPLOYMENT_ROW, DOMAIN_COLORS, DependencyColumnNode, type DependencyLayer, DependencyNode, DetailView, EDITABLE, EFFECT_CATEGORY_COLORS, type EffectCategory, type ElementEditAccess, ElementEditAccessContext, type ElementEditAccessResolver, type ElementKnob, type ElementPropAccess, type ElementSettings, type ElkLayout, type EventEdgeData, EventFlowEdge, FIELD_TYPE_SHAPES, type FieldTypeShape, FlowCanvas, type FlowCanvasProps, type GlyphSize, type InlineTextEditOptions, KnobField, type KnobFieldProps, KnobSettingRow, type KnobSettingRowProps, LIVE_STATE, type LayerIdParts, type LayeredColumn, type LayeredColumnId, type LayeredEdge, type LayeredGraphInput, type LayeredRow, type LayeredUnit, LayersPanel, type LayersPanelProps, type LayoutEdge, type LayoutNode, MiniStateMachine, OPERATOR_CATEGORY_COLORS, OrbInspector, type OrbInspectorProps, OrbPreviewNode, type PatternEventSource, type PlayedStep, type PreviewNodeData, type RenderUIEntry, STATE_COLORS, type SelectedPattern, type StateRole, SystemBandNode, type SystemDependencies, SystemMapContext, type SystemMapContextValue, SystemNode, type TraitFlowEdge, type TraitFlowUnit, TraitLevelData, TraitTransitionInfo, type TraitView, TransitionLevelData, type UseCanvasDraggableArgs, type UseCanvasDraggableResult, type UseCanvasDroppableArgs, type UseCanvasDroppableResult, type ViewLevel, ZOOM_BAND_THRESHOLDS, type ZoomBand, ZoomBandContext, ZoomBreadcrumb, type ZoomBreadcrumbProps, ZoomLegend, type ZoomLegendProps, ZoomLevel, arcPath, armPosition, armsOf, canvasViewGraph, computeTraitLayout, computeZoomBand, curveControlPoint, dependencyReach, deploymentGraph, deriveEditFocusFromElement, dropBusEvent, edgePath, effectCategoryOf, firedTransition, flowNeighbors, getStateRole, gridPositions, hasCanvasTool, initialStateOf, layeredGraph, optionForPlayedStep, parseLayerId, propAccessAt, radialPositions, ringPositions, schemaToDependencyGraph, schemaToLayerItems, schemaToOverviewGraph, stateMachinePlayback, stateOptionsOf, traitFlowGraph, transitionPlayback, useCanvasDraggable, useCanvasDroppable, useInlineTextEdit, useZoomBand, zoomProgress };