@almadar/ui 6.52.0 → 6.53.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 (64) hide show
  1. package/dist/{EntityBindingContext-BbxrwSb9.d.ts → AwaitingSkeletonContext-Bh399p1x.d.ts} +17 -2
  2. package/dist/{Canvas3DHost-CWO0tswb.d.ts → Canvas3DHost-B-y2TNij.d.ts} +1 -1
  3. package/dist/{GameAudioProvider-_hPzjqp-.d.ts → GameAudioProvider-DyBvYP2c.d.ts} +1 -1
  4. package/dist/Typography-JGSDH4JP.js +5 -0
  5. package/dist/{UISlotRenderer-CR7SCAMR.js → UISlotRenderer-JT34I3O7.js} +9 -9
  6. package/dist/avl/index.cjs +39792 -40170
  7. package/dist/avl/index.d.ts +5 -2
  8. package/dist/avl/index.js +25 -17
  9. package/dist/{chunk-XUSSAWKL.js → chunk-2LFBQ4IS.js} +1 -1
  10. package/dist/{chunk-EERAGPBW.js → chunk-3EF5SDIJ.js} +31499 -32794
  11. package/dist/{chunk-V5AGW2JN.js → chunk-4OZDHCZV.js} +1 -1
  12. package/dist/{chunk-MSBMVG3B.js → chunk-6O37FCX4.js} +1 -0
  13. package/dist/{chunk-BHZG4PDZ.js → chunk-7LM6I3NA.js} +629 -626
  14. package/dist/chunk-CBIJP5PL.js +284 -0
  15. package/dist/{chunk-CLSLVFSP.js → chunk-GMDMOYXD.js} +2 -2
  16. package/dist/{chunk-NCNP2RKZ.js → chunk-GODZKHAL.js} +2 -2
  17. package/dist/{chunk-QWDKMVLX.js → chunk-IKULQIDX.js} +141 -82
  18. package/dist/{chunk-TWHYH25Q.js → chunk-JRW33U35.js} +80 -80
  19. package/dist/{chunk-G4GMXYMY.js → chunk-KQXXO42S.js} +93 -171
  20. package/dist/chunk-OKWD7LPO.js +80 -0
  21. package/dist/{chunk-YHY5K2Y7.js → chunk-PEST66PN.js} +6 -0
  22. package/dist/{chunk-WB2A6V3I.js → chunk-UGHAADU5.js} +47 -1
  23. package/dist/{chunk-2QB2PXOO.js → chunk-VHTJRS2N.js} +3 -5
  24. package/dist/{chunk-5GCI6C7J.js → chunk-WPNM2KC6.js} +2 -2
  25. package/dist/components/index.cjs +42017 -42467
  26. package/dist/components/index.d.ts +182 -319
  27. package/dist/components/index.js +621 -13
  28. package/dist/context/index.cjs +8 -3
  29. package/dist/context/index.js +3 -3
  30. package/dist/hooks/index.cjs +54 -4
  31. package/dist/hooks/index.js +7 -7
  32. package/dist/lib/drawable/three/index.cjs +47 -1
  33. package/dist/lib/drawable/three/index.d.ts +5 -5
  34. package/dist/lib/drawable/three/index.js +7 -7
  35. package/dist/lib/index.cjs +48 -1
  36. package/dist/lib/index.d.ts +2 -2
  37. package/dist/lib/index.js +6 -5
  38. package/dist/locales/index.cjs +141 -3
  39. package/dist/locales/index.js +95 -3
  40. package/dist/{paintDispatch-DHo3WhaU.d.ts → paintDispatch-_6EhJCiL.d.ts} +3 -3
  41. package/dist/providers/index.cjs +34611 -35020
  42. package/dist/providers/index.d.ts +33 -8
  43. package/dist/providers/index.js +36 -12
  44. package/dist/renderer/index.cjs +6 -0
  45. package/dist/renderer/index.d.ts +1 -1
  46. package/dist/renderer/index.js +1 -1
  47. package/dist/runtime/index.cjs +41106 -41488
  48. package/dist/runtime/index.d.ts +4 -2
  49. package/dist/runtime/index.js +11 -11
  50. package/dist/ssr/index.cjs +375 -137
  51. package/dist/ssr/index.d.cts +5 -1
  52. package/dist/ssr/index.d.ts +5 -1
  53. package/dist/ssr/index.js +311 -73
  54. package/dist/{verificationRegistry-BYD3cVhS.d.ts → verificationRegistry-CD7Xb40L.d.ts} +1 -1
  55. package/locales/ar.json +47 -1
  56. package/locales/en.json +47 -1
  57. package/locales/sl.json +47 -1
  58. package/package.json +6 -6
  59. package/tailwind-preset.cjs +13 -0
  60. package/themes/_base.css +28 -8
  61. package/themes/_contract.md +5 -0
  62. package/dist/Typography-7FRZOS2H.js +0 -5
  63. package/dist/{avl-3d-context-DLteNEwu.d.ts → avl-3d-context-MAt_NuU9.d.ts} +3 -3
  64. package/dist/{chunk-IN3BVW2Z.js → chunk-64WACXM7.js} +14 -14
@@ -1,7 +1,7 @@
1
1
  import { OperatorCategory } from '@almadar/std';
2
2
  import * as React$1 from 'react';
3
3
  import React__default from 'react';
4
- import { FieldType, EntityPersistence, SExpr, EvalTrace, A11yProps, EventEmit, Expression, UISlot, OrbitalSchema, EntityData, EditFocus, EventPayload, DomainQuestion, DomainQuestionAnswer, ThemeDefinition, CircuitStepResult, GuardEvaluation, EffectTrace } from '@almadar/core';
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
5
  import { A as AvlNodeData, F as FileTreeItem } from '../FileTree-DUi7e7Z8.js';
6
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
7
  import { T as TraitLevelData, d as TraitTransitionInfo, c as TransitionLevelData } from '../avl-schema-parser-C0wnAp5x.js';
@@ -1213,7 +1213,10 @@ interface UseCanvasDraggableArgs {
1213
1213
  }
1214
1214
  interface UseCanvasDraggableResult {
1215
1215
  setNodeRef: (node: HTMLElement | null) => void;
1216
- attributes: ReturnType<typeof useDraggable>['attributes'];
1216
+ /** dnd-kit's attributes, with `role` narrowed to a declared ARIA role so they spread onto a core `Box`. */
1217
+ attributes: Omit<ReturnType<typeof useDraggable>['attributes'], 'role'> & {
1218
+ role?: AriaRole;
1219
+ };
1217
1220
  listeners: ReturnType<typeof useDraggable>['listeners'];
1218
1221
  isDragging: boolean;
1219
1222
  /** Spread on the tile — live transform + grab cursor + touch-action. */
package/dist/avl/index.js CHANGED
@@ -1,28 +1,29 @@
1
- import { BrowserPlayground, collectEmbeddedTraits } from '../chunk-QWDKMVLX.js';
2
- import { zoomReducer, initialZoomState, getBreadcrumbs } from '../chunk-5GCI6C7J.js';
3
- import { useTranslate as useTranslate$1 } from '../chunk-NCNP2RKZ.js';
1
+ import { BrowserPlayground, collectEmbeddedTraits } from '../chunk-IKULQIDX.js';
2
+ import { zoomReducer, initialZoomState, getBreadcrumbs } from '../chunk-WPNM2KC6.js';
3
+ import { JsonTreeEditor } from '../chunk-CBIJP5PL.js';
4
+ import { useTranslate as useTranslate$1 } from '../chunk-GODZKHAL.js';
4
5
  import '../chunk-DQTV6QVS.js';
5
- import '../chunk-2QB2PXOO.js';
6
+ import '../chunk-VHTJRS2N.js';
6
7
  import { spacingTokenOf, positionOf, withPosition, snapToSpacingStep, defaultSpacingStepPx, spacingOf, withSizing, withSpacing, layoutOf, withLayout, sizingOf, DESIGN_COLOR_TOKENS, DESIGN_RADIUS_TOKENS, DESIGN_SPACING_SCALE, sizeLimitOf, withSizeLimit, isArbitraryClass, tokenOfDesignClass } from '../chunk-ERXIHZW3.js';
7
- import { Popover, Button, Icon, Select, Badge, IconButton, AvlStateMachine, Input, AvlFieldType, AvlEffect, AvlState, AvlPage, AvlEntity, useContainerWidth, useAlmadarDndSensors, almadarDndCollisionDetection, TagInput, Checkbox, Switch, CodeBlock, FileTree, Card, JsonTreeEditor, Accordion, RangeSlider, computeTraitLayout, edgePath, FormField, Radio, useCompactLayout, ButtonGroup, roundedEdgePath } from '../chunk-EERAGPBW.js';
8
- export { AvlEffect, AvlEntity, AvlFieldType, AvlPage, AvlState, AvlStateMachine, BehaviorView, FIELD_TYPE_SHAPES, MiniStateMachine, ModuleCard, computeTraitLayout, edgePath } from '../chunk-EERAGPBW.js';
9
- import { avlSeries, STATE_COLORS, Box, HStack, VStack, avlTint, CONNECTION_COLORS, parseTraitLevel, OPERATOR_CATEGORY_COLORS, AVL_INK, AVL_FONT, parseApplicationLevel, parseOrbitalLevel, getStateRole, effectCategoryOf, EFFECT_CATEGORY_COLORS, pressableProps, traitTransitionRenderUi, traitEventWires, effectZoneOf, avlBlend } from '../chunk-BHZG4PDZ.js';
10
- export { CONNECTION_COLORS, EFFECT_CATEGORY_COLORS, OPERATOR_CATEGORY_COLORS, STATE_COLORS, effectCategoryOf, getStateRole, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, traitLevelFromTrait } from '../chunk-BHZG4PDZ.js';
11
- import { Typography, INLINE_TEXT_ATTR } from '../chunk-CLSLVFSP.js';
12
- import { usePrefersReducedMotion, useMediaQuery } from '../chunk-TWHYH25Q.js';
8
+ import { Popover, Button, Icon, Select, Badge, IconButton, AvlStateMachine, Input, AvlFieldType, AvlEffect, AvlState, AvlPage, AvlEntity, useContainerWidth, useAlmadarDndSensors, almadarDndCollisionDetection, TagInput, Checkbox, Switch, CodeBlock, FileTree, Card, Accordion, RangeSlider, computeTraitLayout, edgePath, FormField, Radio, useCompactLayout, ButtonGroup, roundedEdgePath } from '../chunk-3EF5SDIJ.js';
9
+ export { AvlEffect, AvlEntity, AvlFieldType, AvlPage, AvlState, AvlStateMachine, BehaviorView, FIELD_TYPE_SHAPES, MiniStateMachine, ModuleCard, computeTraitLayout, edgePath } from '../chunk-3EF5SDIJ.js';
10
+ import { avlSeries, STATE_COLORS, Box, HStack, VStack, avlTint, CONNECTION_COLORS, parseTraitLevel, OPERATOR_CATEGORY_COLORS, AVL_INK, AVL_FONT, parseApplicationLevel, parseOrbitalLevel, getStateRole, effectCategoryOf, EFFECT_CATEGORY_COLORS, pressableProps, traitTransitionRenderUi, traitEventWires, effectZoneOf, avlBlend } from '../chunk-7LM6I3NA.js';
11
+ export { CONNECTION_COLORS, EFFECT_CATEGORY_COLORS, OPERATOR_CATEGORY_COLORS, STATE_COLORS, effectCategoryOf, getStateRole, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, traitLevelFromTrait } from '../chunk-7LM6I3NA.js';
12
+ import { Typography, INLINE_TEXT_ATTR } from '../chunk-GMDMOYXD.js';
13
+ import { usePrefersReducedMotion, useMediaQuery } from '../chunk-JRW33U35.js';
13
14
  import '../chunk-XJTHMW4G.js';
14
15
  import { useEventBus } from '../chunk-6EV3OEBQ.js';
15
- import { profilerOnRender, perfStart, perfEnd } from '../chunk-G4GMXYMY.js';
16
+ import { profilerOnRender, perfStart, perfEnd } from '../chunk-KQXXO42S.js';
16
17
  import { isEditableTarget } from '../chunk-O7OLVVBR.js';
17
- import { domPassthrough, cn } from '../chunk-IN3BVW2Z.js';
18
- import '../chunk-V5AGW2JN.js';
19
- import '../chunk-WB2A6V3I.js';
18
+ import { domPassthrough, cn } from '../chunk-64WACXM7.js';
19
+ import '../chunk-4OZDHCZV.js';
20
+ import '../chunk-UGHAADU5.js';
20
21
  import '../chunk-PQKU62LK.js';
21
- import '../chunk-YHY5K2Y7.js';
22
+ import '../chunk-PEST66PN.js';
22
23
  import '../chunk-QPXIAUJD.js';
23
24
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
24
25
  import React19, { createContext, useContext, useState, useRef, useCallback, useMemo, useEffect, useLayoutEffect, Profiler, useReducer } from 'react';
25
- import { FieldTypeSchema, EFFECT_OPERATORS, isInlineTrait, isPageReference, navigatePatternPath, formatSExpr, answerToMutations, isBinding } from '@almadar/core';
26
+ import { FieldTypeSchema, EFFECT_OPERATORS, isInlineTrait, isPageReference, navigatePatternPath, isAriaRole, formatSExpr, answerToMutations, isBinding } from '@almadar/core';
26
27
  import { operatorVisualForm, getStdOperatorMeta } from '@almadar/std/registry';
27
28
  import { useTranslate } from '@almadar/ui/hooks';
28
29
  import { MarkerType, Handle, Position, useReactFlow, NodeResizeControl, ResizeControlVariant, getBezierPath, EdgeLabelRenderer, BaseEdge, ReactFlow, Controls, Background, BackgroundVariant, ReactFlowProvider, useNodesState, useEdgesState, useNodesInitialized } from '@xyflow/react';
@@ -4516,7 +4517,14 @@ function useCanvasDraggable({
4516
4517
  opacity: isDragging ? 0.5 : 1,
4517
4518
  touchAction: "none"
4518
4519
  };
4519
- return { setNodeRef, attributes, listeners, isDragging, style };
4520
+ const { role, ...ariaAttributes } = attributes;
4521
+ return {
4522
+ setNodeRef,
4523
+ attributes: { ...ariaAttributes, ...isAriaRole(role) ? { role } : {} },
4524
+ listeners,
4525
+ isDragging,
4526
+ style
4527
+ };
4520
4528
  }
4521
4529
  var DEFAULT_ACCEPTS = ["pattern", "behavior"];
4522
4530
  function useCanvasDroppable({
@@ -1,4 +1,4 @@
1
- import { beginPending, endPending } from './chunk-TWHYH25Q.js';
1
+ import { beginPending, endPending } from './chunk-JRW33U35.js';
2
2
  import { useEventBus } from './chunk-6EV3OEBQ.js';
3
3
  import { useState, useCallback, useEffect, useMemo, useRef } from 'react';
4
4
  import { createLogger } from '@almadar/logger';