@almadar/ui 6.61.0 → 6.62.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 (41) hide show
  1. package/dist/{BehaviorValueFrame-QTD7BWOI.js → BehaviorValueFrame-QYFJEMN5.js} +12 -12
  2. package/dist/{TraitValueFrame-WOXNLLMM.js → TraitValueFrame-X6IL3UST.js} +11 -11
  3. package/dist/Typography-KBATMU2V.js +5 -0
  4. package/dist/{UISlotRenderer-EEOXSJCI.js → UISlotRenderer-NZBV5BUI.js} +10 -10
  5. package/dist/avl/index.cjs +303 -261
  6. package/dist/avl/index.js +13 -13
  7. package/dist/{chunk-CB64IOYD.js → chunk-7JRWELUC.js} +4 -2
  8. package/dist/{chunk-6ZCU3BQN.js → chunk-CXQENFO2.js} +1 -1
  9. package/dist/{chunk-LUREMDI3.js → chunk-D4NAA2JW.js} +2 -2
  10. package/dist/{chunk-UTSDPJUP.js → chunk-DXPCAQJU.js} +3 -3
  11. package/dist/{chunk-MGN6B6OQ.js → chunk-EDPUQ2ZJ.js} +9 -0
  12. package/dist/{chunk-KZRAMPM6.js → chunk-ERDYADVZ.js} +1 -1
  13. package/dist/{chunk-7NIU5GDC.js → chunk-EZ5FSNOE.js} +2 -2
  14. package/dist/{chunk-6PV4LASE.js → chunk-G6EFTACU.js} +281 -206
  15. package/dist/{chunk-EIIQGOZW.js → chunk-GVQOTA7T.js} +1 -1
  16. package/dist/{chunk-FYX64CDL.js → chunk-QOV3TUAA.js} +2 -1
  17. package/dist/{chunk-F7NZ3KZQ.js → chunk-WBWXBA5H.js} +1 -1
  18. package/dist/components/index.cjs +414 -312
  19. package/dist/components/index.d.ts +40 -8
  20. package/dist/components/index.js +14 -14
  21. package/dist/hooks/index.cjs +6 -3
  22. package/dist/hooks/index.js +5 -5
  23. package/dist/lib/drawable/three/index.cjs +11 -1
  24. package/dist/lib/drawable/three/index.js +6 -6
  25. package/dist/lib/index.cjs +27 -1
  26. package/dist/lib/index.js +27 -2
  27. package/dist/locales/index.cjs +6 -3
  28. package/dist/locales/index.js +2 -2
  29. package/dist/providers/index.cjs +302 -260
  30. package/dist/providers/index.js +10 -10
  31. package/dist/runtime/index.cjs +302 -260
  32. package/dist/runtime/index.d.ts +6 -1
  33. package/dist/runtime/index.js +12 -12
  34. package/dist/ssr/index.cjs +2 -1
  35. package/dist/ssr/index.js +2 -1
  36. package/locales/ar.json +2 -1
  37. package/locales/en.json +2 -1
  38. package/locales/sl.json +2 -1
  39. package/package.json +6 -6
  40. package/themes/_base.css +27 -0
  41. package/dist/Typography-BY4A2NBY.js +0 -5
package/dist/avl/index.js CHANGED
@@ -1,21 +1,21 @@
1
- import { zoomReducer, initialZoomState, getBreadcrumbs } from '../chunk-7NIU5GDC.js';
2
- import { AvlOrbital, AvlTrait, AvlEntity, AvlPage, AvlEvent, AvlGuard, AvlEffect, AvlState, FlowCanvas, transitionPlayback, AvlTransitionDetail, Button, RangeSlider, computeTraitLayout, edgePath, layeredGraph } from '../chunk-6PV4LASE.js';
3
- export { AVL_GLYPH_KINDS, AVL_GRAPH_NODE_TYPES, AvlApplication, AvlBinding, AvlBindingRef, AvlCircuit, AvlEffect, AvlEffectChip, AvlEntity, AvlEvent, AvlField, AvlFieldType, AvlGlyph, AvlGraphCanvas, AvlGuard, AvlLiteral, AvlOperator, AvlOrbital, AvlPage, AvlPersistence, AvlSExpr, AvlState, AvlStateMachine, AvlTrait, AvlTransition, AvlTransitionDetail, AvlTransitionExplainer, BehaviorView, CANVAS_TOOLS, CanvasDndProvider, CanvasVerifyContext, DependencyColumnNode, DependencyNode, EDITABLE, ElementEditAccessContext, EventFlowEdge, FIELD_TYPE_SHAPES, FlowCanvas, KnobField, KnobSettingRow, LIVE_STATE, LayersPanel, MiniStateMachine, ModuleCard, OrbInspector, OrbPreviewNode, SystemBandNode, SystemMapContext, SystemNode, armPosition, armsOf, canvasViewGraph, computeTraitLayout, dependencyReach, deriveEditFocusFromElement, dropBusEvent, edgePath, firedTransition, flowNeighbors, hasCanvasTool, initialStateOf, layeredGraph, optionForPlayedStep, parseLayerId, propAccessAt, schemaToDependencyGraph, schemaToLayerItems, schemaToOverviewGraph, stateMachinePlayback, stateOptionsOf, traitFlowGraph, transitionPlayback, useCanvasDraggable, useCanvasDroppable, useInlineTextEdit } from '../chunk-6PV4LASE.js';
4
- import { avlSeries, CONNECTION_COLORS, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, getStateRole, avlTint, Box, HStack, pressableProps, STATE_COLORS, effectCategoryOf, EFFECT_CATEGORY_COLORS } from '../chunk-MGN6B6OQ.js';
5
- export { CONNECTION_COLORS, EFFECT_CATEGORY_COLORS, OPERATOR_CATEGORY_COLORS, STATE_COLORS, effectCategoryOf, getStateRole, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, traitLevelFromTrait } from '../chunk-MGN6B6OQ.js';
6
- import { Typography } from '../chunk-KZRAMPM6.js';
7
- import '../chunk-UTSDPJUP.js';
8
- import '../chunk-CB64IOYD.js';
1
+ import { zoomReducer, initialZoomState, getBreadcrumbs } from '../chunk-EZ5FSNOE.js';
2
+ import { AvlOrbital, AvlTrait, AvlEntity, AvlPage, AvlEvent, AvlGuard, AvlEffect, AvlState, FlowCanvas, transitionPlayback, AvlTransitionDetail, Button, RangeSlider, computeTraitLayout, edgePath, layeredGraph } from '../chunk-G6EFTACU.js';
3
+ export { AVL_GLYPH_KINDS, AVL_GRAPH_NODE_TYPES, AvlApplication, AvlBinding, AvlBindingRef, AvlCircuit, AvlEffect, AvlEffectChip, AvlEntity, AvlEvent, AvlField, AvlFieldType, AvlGlyph, AvlGraphCanvas, AvlGuard, AvlLiteral, AvlOperator, AvlOrbital, AvlPage, AvlPersistence, AvlSExpr, AvlState, AvlStateMachine, AvlTrait, AvlTransition, AvlTransitionDetail, AvlTransitionExplainer, BehaviorView, CANVAS_TOOLS, CanvasDndProvider, CanvasVerifyContext, DependencyColumnNode, DependencyNode, EDITABLE, ElementEditAccessContext, EventFlowEdge, FIELD_TYPE_SHAPES, FlowCanvas, KnobField, KnobSettingRow, LIVE_STATE, LayersPanel, MiniStateMachine, ModuleCard, OrbInspector, OrbPreviewNode, SystemBandNode, SystemMapContext, SystemNode, armPosition, armsOf, canvasViewGraph, computeTraitLayout, dependencyReach, deriveEditFocusFromElement, dropBusEvent, edgePath, firedTransition, flowNeighbors, hasCanvasTool, initialStateOf, layeredGraph, optionForPlayedStep, parseLayerId, propAccessAt, schemaToDependencyGraph, schemaToLayerItems, schemaToOverviewGraph, stateMachinePlayback, stateOptionsOf, traitFlowGraph, transitionPlayback, useCanvasDraggable, useCanvasDroppable, useInlineTextEdit } from '../chunk-G6EFTACU.js';
4
+ import '../chunk-PQKU62LK.js';
5
+ import { avlSeries, CONNECTION_COLORS, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, getStateRole, avlTint, Box, HStack, pressableProps, STATE_COLORS, effectCategoryOf, EFFECT_CATEGORY_COLORS } from '../chunk-EDPUQ2ZJ.js';
6
+ export { CONNECTION_COLORS, EFFECT_CATEGORY_COLORS, OPERATOR_CATEGORY_COLORS, STATE_COLORS, effectCategoryOf, getStateRole, parseApplicationLevel, parseOrbitalLevel, parseTraitLevel, parseTransitionLevel, traitLevelFromTrait } from '../chunk-EDPUQ2ZJ.js';
7
+ import { Typography } from '../chunk-ERDYADVZ.js';
8
+ import '../chunk-DXPCAQJU.js';
9
9
  import '../chunk-XJTHMW4G.js';
10
10
  import '../chunk-CHNC4UYE.js';
11
+ import '../chunk-L3MTZ3RH.js';
12
+ import '../chunk-PEST66PN.js';
13
+ import '../chunk-7JRWELUC.js';
11
14
  import '../chunk-N4IJS5DD.js';
12
15
  import '../chunk-N23SVGTH.js';
13
16
  import { cn } from '../chunk-64WACXM7.js';
14
- import '../chunk-6ZCU3BQN.js';
15
- import '../chunk-FYX64CDL.js';
16
- import '../chunk-L3MTZ3RH.js';
17
- import '../chunk-PQKU62LK.js';
18
- import '../chunk-PEST66PN.js';
17
+ import '../chunk-CXQENFO2.js';
18
+ import '../chunk-QOV3TUAA.js';
19
19
  import '../chunk-QPXIAUJD.js';
20
20
  import React4, { createContext, useMemo, useContext, useState, useReducer, useEffect, useCallback } from 'react';
21
21
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -1252,7 +1252,8 @@ var ar_default = {
1252
1252
  "avl.stateInitial": "\u0627\u0644\u0628\u062F\u0627\u064A\u0629",
1253
1253
  "avl.stateTerminal": "\u0627\u0644\u0646\u0647\u0627\u064A\u0629",
1254
1254
  "avl.guardCaption": "\u0644\u0627 \u064A\u062D\u062F\u062B \u0627\u0644\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0627 \u0639\u0646\u062F\u0645\u0627 \u064A\u0643\u0648\u0646 \u0647\u0630\u0627 \u0627\u0644\u0634\u0631\u0637 \u0635\u062D\u064A\u062D\u064B\u0627.",
1255
- "avl.effectsCaption": "\u0645\u0627 \u064A\u064F\u0646\u0641\u064E\u0651\u0630\u060C \u0628\u0627\u0644\u062A\u0631\u062A\u064A\u0628\u060C \u0639\u0646\u062F \u062D\u062F\u0648\u062B \u0627\u0644\u0627\u0646\u062A\u0642\u0627\u0644."
1255
+ "avl.effectsCaption": "\u0645\u0627 \u064A\u064F\u0646\u0641\u064E\u0651\u0630\u060C \u0628\u0627\u0644\u062A\u0631\u062A\u064A\u0628\u060C \u0639\u0646\u062F \u062D\u062F\u0648\u062B \u0627\u0644\u0627\u0646\u062A\u0642\u0627\u0644.",
1256
+ "aria.carousel": "\u0639\u0631\u0636 \u0634\u0631\u0627\u0626\u062D"
1256
1257
  };
1257
1258
 
1258
1259
  // locales/sl.json
@@ -2509,7 +2510,8 @@ var sl_default = {
2509
2510
  "avl.stateInitial": "za\u010Detek",
2510
2511
  "avl.stateTerminal": "konec",
2511
2512
  "avl.guardCaption": "Prehod se zgodi le, ko je ta pogoj izpolnjen.",
2512
- "avl.effectsCaption": "Kaj se izvede, po vrsti, ko se prehod zgodi."
2513
+ "avl.effectsCaption": "Kaj se izvede, po vrsti, ko se prehod zgodi.",
2514
+ "aria.carousel": "vrtiljak"
2513
2515
  };
2514
2516
 
2515
2517
  export { ar_default, sl_default };
@@ -1,4 +1,4 @@
1
- import { en_default } from './chunk-FYX64CDL.js';
1
+ import { en_default } from './chunk-QOV3TUAA.js';
2
2
 
3
3
  // lib/format.ts
4
4
  var { $meta: _meta, ...coreMessages } = en_default;
@@ -1,5 +1,5 @@
1
- import { TraitValueMountContext } from './chunk-F7NZ3KZQ.js';
2
- import { LoadingState, ErrorState, OrbPreview } from './chunk-6PV4LASE.js';
1
+ import { TraitValueMountContext } from './chunk-WBWXBA5H.js';
2
+ import { LoadingState, ErrorState, OrbPreview } from './chunk-G6EFTACU.js';
3
3
  import { useContext, useMemo, useRef, useState, useEffect } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,7 +1,7 @@
1
- import { ar_default, sl_default } from './chunk-CB64IOYD.js';
2
1
  import { useEventBus } from './chunk-CHNC4UYE.js';
3
- import { DEFAULT_CURRENCY } from './chunk-6ZCU3BQN.js';
4
- import { en_default } from './chunk-FYX64CDL.js';
2
+ import { ar_default, sl_default } from './chunk-7JRWELUC.js';
3
+ import { DEFAULT_CURRENCY } from './chunk-CXQENFO2.js';
4
+ import { en_default } from './chunk-QOV3TUAA.js';
5
5
  import React, { createContext, useCallback, useSyncExternalStore, useRef, useState, useContext, useEffect, useMemo } from 'react';
6
6
  import { mergeEntityFrame, resolvePageMeta } from '@almadar/core';
7
7
  import { createLogger } from '@almadar/logger';
@@ -2357,6 +2357,10 @@ function resolveCanvasTheme(scope) {
2357
2357
  const c = r.color(toneVar(tone));
2358
2358
  tones[tone] = c ? colorCss(c) : "currentColor";
2359
2359
  }
2360
+ const surface = (name) => {
2361
+ const c = r.color(name);
2362
+ return c ? colorCss(c) : "transparent";
2363
+ };
2360
2364
  const ground = r.color("--surface-diagram");
2361
2365
  const text = {};
2362
2366
  const TEXT_FALLBACK = { xs: 12, sm: 14, base: 16, lg: 18, xl: 20, "2xl": 24 };
@@ -2364,6 +2368,11 @@ function resolveCanvasTheme(scope) {
2364
2368
  const body = r.family("--font-family-body", r.family("--font-family", "system-ui, sans-serif"));
2365
2369
  return {
2366
2370
  ground: ground ? colorCss(ground) : "transparent",
2371
+ surfaces: {
2372
+ muted: surface("--color-muted"),
2373
+ card: surface("--color-card"),
2374
+ onPrimary: surface("--color-primary-foreground")
2375
+ },
2367
2376
  tones,
2368
2377
  series: SERIES_TONES.map((t) => tones[t]),
2369
2378
  strokes: {
@@ -1,5 +1,5 @@
1
1
  import { cn, domPassthrough } from './chunk-64WACXM7.js';
2
- import { formatValue } from './chunk-6ZCU3BQN.js';
2
+ import { formatValue } from './chunk-CXQENFO2.js';
3
3
  import React from 'react';
4
4
  import { useFormatContext } from '@almadar/ui/hooks';
5
5
 
@@ -1,5 +1,5 @@
1
- import { avlBlend, AVL_INK, EFFECT_CATEGORY_COLORS, OPERATOR_CATEGORY_COLORS, avlTint, Box, VStack, effectCategoryOf } from './chunk-MGN6B6OQ.js';
2
- import { Typography } from './chunk-KZRAMPM6.js';
1
+ import { avlBlend, AVL_INK, EFFECT_CATEGORY_COLORS, OPERATOR_CATEGORY_COLORS, avlTint, Box, VStack, effectCategoryOf } from './chunk-EDPUQ2ZJ.js';
2
+ import { Typography } from './chunk-ERDYADVZ.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';