@almadar/ui 6.53.0 → 6.53.1

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 (35) hide show
  1. package/dist/Typography-7QEWUTW3.js +5 -0
  2. package/dist/{UISlotRenderer-JT34I3O7.js → UISlotRenderer-P7A4SZSK.js} +6 -6
  3. package/dist/avl/index.cjs +894 -317
  4. package/dist/avl/index.js +19 -14
  5. package/dist/{chunk-IKULQIDX.js → chunk-53VTY5CC.js} +4 -4
  6. package/dist/{chunk-UGHAADU5.js → chunk-7KSLPY56.js} +3 -1
  7. package/dist/{chunk-GODZKHAL.js → chunk-E37BYSXY.js} +2 -2
  8. package/dist/{chunk-WPNM2KC6.js → chunk-FUQASYEW.js} +1 -1
  9. package/dist/{chunk-GMDMOYXD.js → chunk-HB4C27KU.js} +1 -1
  10. package/dist/{chunk-3EF5SDIJ.js → chunk-HUG25TT3.js} +889 -320
  11. package/dist/{chunk-4OZDHCZV.js → chunk-QVXLKFUQ.js} +1 -1
  12. package/dist/{chunk-CBIJP5PL.js → chunk-UOTYAPV5.js} +2 -2
  13. package/dist/components/index.cjs +887 -315
  14. package/dist/components/index.js +13 -13
  15. package/dist/context/index.js +1 -1
  16. package/dist/hooks/index.cjs +3 -1
  17. package/dist/hooks/index.js +3 -3
  18. package/dist/lib/drawable/three/index.cjs +3 -1
  19. package/dist/lib/drawable/three/index.js +5 -5
  20. package/dist/lib/index.cjs +3 -1
  21. package/dist/lib/index.js +3 -3
  22. package/dist/locales/index.cjs +9 -3
  23. package/dist/locales/index.js +7 -3
  24. package/dist/providers/index.cjs +887 -315
  25. package/dist/providers/index.js +7 -7
  26. package/dist/runtime/index.cjs +887 -315
  27. package/dist/runtime/index.js +7 -7
  28. package/dist/ssr/index.cjs +3 -1
  29. package/dist/ssr/index.js +3 -1
  30. package/locales/ar.json +3 -1
  31. package/locales/en.json +3 -1
  32. package/locales/sl.json +3 -1
  33. package/package.json +1 -1
  34. package/tailwind-preset.cjs +10 -0
  35. package/dist/Typography-JGSDH4JP.js +0 -5
package/dist/avl/index.js CHANGED
@@ -1,25 +1,25 @@
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';
1
+ import { zoomReducer, initialZoomState, getBreadcrumbs } from '../chunk-FUQASYEW.js';
2
+ import { JsonTreeEditor } from '../chunk-UOTYAPV5.js';
3
+ import { useTranslate as useTranslate$1 } from '../chunk-E37BYSXY.js';
4
+ 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';
5
+ import { BrowserPlayground, collectEmbeddedTraits } from '../chunk-53VTY5CC.js';
5
6
  import '../chunk-DQTV6QVS.js';
6
7
  import '../chunk-VHTJRS2N.js';
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';
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';
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-HUG25TT3.js';
9
+ export { AvlEffect, AvlEntity, AvlFieldType, AvlPage, AvlState, AvlStateMachine, BehaviorView, FIELD_TYPE_SHAPES, MiniStateMachine, ModuleCard, computeTraitLayout, edgePath } from '../chunk-HUG25TT3.js';
10
+ import '../chunk-PQKU62LK.js';
10
11
  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
12
  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 { Typography, INLINE_TEXT_ATTR } from '../chunk-HB4C27KU.js';
13
14
  import { usePrefersReducedMotion, useMediaQuery } from '../chunk-JRW33U35.js';
14
15
  import '../chunk-XJTHMW4G.js';
15
16
  import { useEventBus } from '../chunk-6EV3OEBQ.js';
17
+ import '../chunk-PEST66PN.js';
16
18
  import { profilerOnRender, perfStart, perfEnd } from '../chunk-KQXXO42S.js';
17
19
  import { isEditableTarget } from '../chunk-O7OLVVBR.js';
18
20
  import { domPassthrough, cn } from '../chunk-64WACXM7.js';
19
- import '../chunk-4OZDHCZV.js';
20
- import '../chunk-UGHAADU5.js';
21
- import '../chunk-PQKU62LK.js';
22
- import '../chunk-PEST66PN.js';
21
+ import '../chunk-QVXLKFUQ.js';
22
+ import '../chunk-7KSLPY56.js';
23
23
  import '../chunk-QPXIAUJD.js';
24
24
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
25
25
  import React19, { createContext, useContext, useState, useRef, useCallback, useMemo, useEffect, useLayoutEffect, Profiler, useReducer } from 'react';
@@ -3476,13 +3476,18 @@ function stateOptionsFor(schema, orbitalName, entityName, transitions, view, moc
3476
3476
  const key = `${s.entry.traitName}|${s.entry.transition.to}`;
3477
3477
  stateUses.set(key, (stateUses.get(key) ?? 0) + 1);
3478
3478
  }
3479
+ const armsSeen = /* @__PURE__ */ new Map();
3479
3480
  return screens.map(({ entry, enteredBy }) => {
3480
3481
  const t = entry.transition;
3481
3482
  const from = String(t.from);
3482
3483
  const state = view === "screens" ? (stateUses.get(`${entry.traitName}|${t.to}`) ?? 0) > 1 ? `${t.to} \xB7 ${t.event}` : t.to : `${t.event}: ${from} \u2192 ${t.to}`;
3483
- const label = manyTraits ? `${entry.traitName} \xB7 ${state}` : state;
3484
+ const baseId = `${entry.traitName}:${t.event}:${from}:${t.to}`;
3485
+ const arm = (armsSeen.get(baseId) ?? 0) + 1;
3486
+ armsSeen.set(baseId, arm);
3487
+ const named = manyTraits ? `${entry.traitName} \xB7 ${state}` : state;
3488
+ const label = arm > 1 ? `${named} (guard ${arm})` : named;
3484
3489
  return {
3485
- id: `${entry.traitName}:${t.event}:${from}:${t.to}`,
3490
+ id: arm > 1 ? `${baseId}#${arm}` : baseId,
3486
3491
  label,
3487
3492
  hint: view === "screens" ? enteredBy.join(" \xB7 ") : entry.traitName,
3488
3493
  data: {
@@ -1,13 +1,13 @@
1
1
  import { runTickFrame } from './chunk-DQTV6QVS.js';
2
2
  import { ALL_SLOTS } from './chunk-VHTJRS2N.js';
3
- import { UISlotRenderer } from './chunk-3EF5SDIJ.js';
3
+ import { UISlotRenderer } from './chunk-HUG25TT3.js';
4
4
  import { Box } from './chunk-7LM6I3NA.js';
5
- import { Typography } from './chunk-GMDMOYXD.js';
5
+ import { Typography } from './chunk-HB4C27KU.js';
6
6
  import { beginPending, endPending } from './chunk-JRW33U35.js';
7
7
  import { useEventBus } from './chunk-6EV3OEBQ.js';
8
+ import { isNotificationSlot } from './chunk-PEST66PN.js';
8
9
  import { registerTrait, unregisterTrait, perfTimeAsync } from './chunk-KQXXO42S.js';
9
10
  import { bindTraitStateGetter, registerTraitSnapshot, recordTransition, recordingTransport, recordServerResponse } from './chunk-O7OLVVBR.js';
10
- import { isNotificationSlot } from './chunk-PEST66PN.js';
11
11
  import React, { useState, useMemo, useEffect, useRef, useCallback, useSyncExternalStore } from 'react';
12
12
  import { schemaToIR, getPage, clearSchemaCache as clearSchemaCache$1, applyListenPayloadMapping, buildResolvedTraitConfigs, collectCallsiteCaptureChildren, walkSExpr, isRenderBindingMarker, containsEntityBinding, isSExpr, isEventPayloadValue, RENDER_BINDING_MARKER } from '@almadar/core';
13
13
  import { createLogger } from '@almadar/logger';
@@ -498,7 +498,7 @@ function resolveLambdaBindings(body, params, item, index) {
498
498
  return body;
499
499
  }
500
500
  var LazySlotContentRenderer = React.lazy(
501
- () => import('./UISlotRenderer-JT34I3O7.js').then((m) => ({ default: m.SlotContentRenderer }))
501
+ () => import('./UISlotRenderer-P7A4SZSK.js').then((m) => ({ default: m.SlotContentRenderer }))
502
502
  );
503
503
  function deferLambdaEntityExprs(value) {
504
504
  if (typeof value === "string") {
@@ -1227,7 +1227,9 @@ var en_default = {
1227
1227
  "agentActivity.llmToolCalls": "Tool calls",
1228
1228
  "agentActivity.showRawLlm": "Raw LLM",
1229
1229
  "agentActivity.earlierConversations": "Earlier conversations ({{count}})",
1230
- "agentActivity.earlierActivity": "Earlier activity"
1230
+ "agentActivity.earlierActivity": "Earlier activity",
1231
+ "tabs.scrollStart": "Scroll tabs back",
1232
+ "tabs.scrollEnd": "Scroll tabs forward"
1231
1233
  };
1232
1234
 
1233
1235
  export { en_default };
@@ -1,5 +1,5 @@
1
- import { DEFAULT_CURRENCY } from './chunk-4OZDHCZV.js';
2
- import { en_default } from './chunk-UGHAADU5.js';
1
+ import { DEFAULT_CURRENCY } from './chunk-QVXLKFUQ.js';
2
+ import { en_default } from './chunk-7KSLPY56.js';
3
3
  import React, { createContext, useEffect, useContext, useMemo } from 'react';
4
4
 
5
5
  var { $meta: _meta, ...coreMessages } = en_default;
@@ -1,5 +1,5 @@
1
1
  import { avlBlend, AVL_INK, EFFECT_CATEGORY_COLORS, OPERATOR_CATEGORY_COLORS, avlTint, Box, VStack, effectCategoryOf } from './chunk-7LM6I3NA.js';
2
- import { Typography } from './chunk-GMDMOYXD.js';
2
+ import { Typography } from './chunk-HB4C27KU.js';
3
3
  import { Vector3, QuadraticBezierCurve3, MathUtils, Quaternion } from 'three';
4
4
  import { EntityPersistenceSchema } from '@almadar/core';
5
5
  import { getStdOperatorMeta } from '@almadar/std/registry';
@@ -1,5 +1,5 @@
1
1
  import { cn, domPassthrough } from './chunk-64WACXM7.js';
2
- import { formatValue } from './chunk-4OZDHCZV.js';
2
+ import { formatValue } from './chunk-QVXLKFUQ.js';
3
3
  import React from 'react';
4
4
  import { useFormatContext } from '@almadar/ui/hooks';
5
5