@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.
- package/dist/{EntityBindingContext-BbxrwSb9.d.ts → AwaitingSkeletonContext-Bh399p1x.d.ts} +17 -2
- package/dist/{Canvas3DHost-CWO0tswb.d.ts → Canvas3DHost-B-y2TNij.d.ts} +1 -1
- package/dist/{GameAudioProvider-_hPzjqp-.d.ts → GameAudioProvider-DyBvYP2c.d.ts} +1 -1
- package/dist/Typography-JGSDH4JP.js +5 -0
- package/dist/{UISlotRenderer-CR7SCAMR.js → UISlotRenderer-JT34I3O7.js} +9 -9
- package/dist/avl/index.cjs +39792 -40170
- package/dist/avl/index.d.ts +5 -2
- package/dist/avl/index.js +25 -17
- package/dist/{chunk-XUSSAWKL.js → chunk-2LFBQ4IS.js} +1 -1
- package/dist/{chunk-EERAGPBW.js → chunk-3EF5SDIJ.js} +31499 -32794
- package/dist/{chunk-V5AGW2JN.js → chunk-4OZDHCZV.js} +1 -1
- package/dist/{chunk-MSBMVG3B.js → chunk-6O37FCX4.js} +1 -0
- package/dist/{chunk-BHZG4PDZ.js → chunk-7LM6I3NA.js} +629 -626
- package/dist/chunk-CBIJP5PL.js +284 -0
- package/dist/{chunk-CLSLVFSP.js → chunk-GMDMOYXD.js} +2 -2
- package/dist/{chunk-NCNP2RKZ.js → chunk-GODZKHAL.js} +2 -2
- package/dist/{chunk-QWDKMVLX.js → chunk-IKULQIDX.js} +141 -82
- package/dist/{chunk-TWHYH25Q.js → chunk-JRW33U35.js} +80 -80
- package/dist/{chunk-G4GMXYMY.js → chunk-KQXXO42S.js} +93 -171
- package/dist/chunk-OKWD7LPO.js +80 -0
- package/dist/{chunk-YHY5K2Y7.js → chunk-PEST66PN.js} +6 -0
- package/dist/{chunk-WB2A6V3I.js → chunk-UGHAADU5.js} +47 -1
- package/dist/{chunk-2QB2PXOO.js → chunk-VHTJRS2N.js} +3 -5
- package/dist/{chunk-5GCI6C7J.js → chunk-WPNM2KC6.js} +2 -2
- package/dist/components/index.cjs +42017 -42467
- package/dist/components/index.d.ts +182 -319
- package/dist/components/index.js +621 -13
- package/dist/context/index.cjs +8 -3
- package/dist/context/index.js +3 -3
- package/dist/hooks/index.cjs +54 -4
- package/dist/hooks/index.js +7 -7
- package/dist/lib/drawable/three/index.cjs +47 -1
- package/dist/lib/drawable/three/index.d.ts +5 -5
- package/dist/lib/drawable/three/index.js +7 -7
- package/dist/lib/index.cjs +48 -1
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +6 -5
- package/dist/locales/index.cjs +141 -3
- package/dist/locales/index.js +95 -3
- package/dist/{paintDispatch-DHo3WhaU.d.ts → paintDispatch-_6EhJCiL.d.ts} +3 -3
- package/dist/providers/index.cjs +34611 -35020
- package/dist/providers/index.d.ts +33 -8
- package/dist/providers/index.js +36 -12
- package/dist/renderer/index.cjs +6 -0
- package/dist/renderer/index.d.ts +1 -1
- package/dist/renderer/index.js +1 -1
- package/dist/runtime/index.cjs +41106 -41488
- package/dist/runtime/index.d.ts +4 -2
- package/dist/runtime/index.js +11 -11
- package/dist/ssr/index.cjs +375 -137
- package/dist/ssr/index.d.cts +5 -1
- package/dist/ssr/index.d.ts +5 -1
- package/dist/ssr/index.js +311 -73
- package/dist/{verificationRegistry-BYD3cVhS.d.ts → verificationRegistry-CD7Xb40L.d.ts} +1 -1
- package/locales/ar.json +47 -1
- package/locales/en.json +47 -1
- package/locales/sl.json +47 -1
- package/package.json +6 -6
- package/tailwind-preset.cjs +13 -0
- package/themes/_base.css +28 -8
- package/themes/_contract.md +5 -0
- package/dist/Typography-7FRZOS2H.js +0 -5
- package/dist/{avl-3d-context-DLteNEwu.d.ts → avl-3d-context-MAt_NuU9.d.ts} +3 -3
- package/dist/{chunk-IN3BVW2Z.js → chunk-64WACXM7.js} +14 -14
package/dist/avl/index.d.ts
CHANGED
|
@@ -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
|
|
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-
|
|
2
|
-
import { zoomReducer, initialZoomState, getBreadcrumbs } from '../chunk-
|
|
3
|
-
import {
|
|
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-
|
|
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,
|
|
8
|
-
export { AvlEffect, AvlEntity, AvlFieldType, AvlPage, AvlState, AvlStateMachine, BehaviorView, FIELD_TYPE_SHAPES, MiniStateMachine, ModuleCard, computeTraitLayout, edgePath } from '../chunk-
|
|
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-
|
|
10
|
-
export { CONNECTION_COLORS, EFFECT_CATEGORY_COLORS, OPERATOR_CATEGORY_COLORS, STATE_COLORS, effectCategoryOf, getStateRole, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, traitLevelFromTrait } from '../chunk-
|
|
11
|
-
import { Typography, INLINE_TEXT_ATTR } from '../chunk-
|
|
12
|
-
import { usePrefersReducedMotion, useMediaQuery } from '../chunk-
|
|
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-
|
|
16
|
+
import { profilerOnRender, perfStart, perfEnd } from '../chunk-KQXXO42S.js';
|
|
16
17
|
import { isEditableTarget } from '../chunk-O7OLVVBR.js';
|
|
17
|
-
import { domPassthrough, cn } from '../chunk-
|
|
18
|
-
import '../chunk-
|
|
19
|
-
import '../chunk-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
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';
|