@almadar/ui 5.1.4 → 5.1.6

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/avl/index.js CHANGED
@@ -5909,108 +5909,315 @@ var init_iconFamily = __esm({
5909
5909
  };
5910
5910
  phosphorAliases = {
5911
5911
  // lucide name → phosphor PascalCase name
5912
- search: "MagnifyingGlass",
5912
+ // Actions
5913
+ plus: "Plus",
5914
+ minus: "Minus",
5915
+ x: "X",
5916
+ check: "Check",
5913
5917
  close: "X",
5914
- loader: "CircleNotch",
5918
+ edit: "PencilSimple",
5919
+ pencil: "PencilSimple",
5920
+ trash: "Trash",
5921
+ save: "FloppyDisk",
5922
+ copy: "Copy",
5923
+ share: "Share",
5924
+ send: "PaperPlaneRight",
5925
+ download: "DownloadSimple",
5926
+ upload: "UploadSimple",
5927
+ archive: "Archive",
5915
5928
  refresh: "ArrowsClockwise",
5916
- "sort-asc": "SortAscending",
5917
- "sort-desc": "SortDescending",
5929
+ loader: "CircleNotch",
5930
+ link: "Link",
5931
+ paperclip: "Paperclip",
5932
+ // Navigation
5918
5933
  "chevron-down": "CaretDown",
5919
5934
  "chevron-up": "CaretUp",
5920
5935
  "chevron-left": "CaretLeft",
5921
5936
  "chevron-right": "CaretRight",
5922
- "help-circle": "Question",
5923
- "alert-triangle": "Warning",
5937
+ "arrow-up": "ArrowUp",
5938
+ "arrow-down": "ArrowDown",
5939
+ "arrow-left": "ArrowLeft",
5940
+ "arrow-right": "ArrowRight",
5941
+ menu: "List",
5942
+ more: "DotsThree",
5943
+ "more-vertical": "DotsThreeVertical",
5944
+ "more-horizontal": "DotsThree",
5945
+ external: "ArrowSquareOut",
5946
+ "external-link": "ArrowSquareOut",
5947
+ // Files
5948
+ file: "File",
5949
+ "file-text": "FileText",
5950
+ "file-plus": "FilePlus",
5951
+ "file-minus": "FileMinus",
5952
+ folder: "Folder",
5953
+ "folder-open": "FolderOpen",
5954
+ document: "FileText",
5955
+ // Charts
5956
+ "bar-chart": "ChartBar",
5957
+ "bar-chart-2": "ChartBar",
5958
+ "bar-chart-3": "ChartBar",
5959
+ "line-chart": "ChartLine",
5960
+ "pie-chart": "ChartPie",
5961
+ activity: "Pulse",
5962
+ "trending-up": "TrendUp",
5963
+ "trending-down": "TrendDown",
5964
+ // Messages
5965
+ message: "ChatCircle",
5966
+ "message-circle": "ChatCircle",
5967
+ "message-square": "ChatText",
5968
+ "messages-square": "ChatsCircle",
5969
+ comment: "ChatCircle",
5970
+ comments: "ChatsCircle",
5971
+ inbox: "Tray",
5972
+ mail: "Envelope",
5973
+ envelope: "Envelope",
5974
+ // Status
5924
5975
  "alert-circle": "WarningCircle",
5976
+ "alert-triangle": "Warning",
5925
5977
  "check-circle": "CheckCircle",
5926
5978
  "x-circle": "XCircle",
5927
- edit: "PencilSimple",
5928
- pencil: "PencilSimple",
5929
- trash: "Trash",
5930
- send: "PaperPlaneRight",
5931
- external: "ArrowSquareOut",
5932
- "external-link": "ArrowSquareOut",
5933
- plus: "Plus",
5934
- minus: "Minus",
5935
- x: "X",
5936
- check: "Check",
5937
- star: "Star",
5938
- heart: "Heart",
5939
- home: "House",
5979
+ info: "Info",
5980
+ "help-circle": "Question",
5981
+ "life-buoy": "Lifebuoy",
5982
+ lifebuoy: "Lifebuoy",
5983
+ warning: "Warning",
5984
+ error: "WarningCircle",
5985
+ // Media
5986
+ image: "Image",
5987
+ video: "VideoCamera",
5988
+ film: "FilmStrip",
5989
+ camera: "Camera",
5990
+ music: "MusicNote",
5991
+ play: "Play",
5992
+ pause: "Pause",
5993
+ stop: "Stop",
5994
+ "skip-forward": "SkipForward",
5995
+ "skip-back": "SkipBack",
5996
+ volume: "SpeakerHigh",
5997
+ "volume-2": "SpeakerHigh",
5998
+ "volume-x": "SpeakerX",
5999
+ mic: "Microphone",
6000
+ "mic-off": "MicrophoneSlash",
6001
+ // People
5940
6002
  user: "User",
5941
6003
  users: "Users",
5942
- settings: "Gear",
5943
- menu: "List",
5944
- "arrow-up": "ArrowUp",
5945
- "arrow-down": "ArrowDown",
5946
- "arrow-left": "ArrowLeft",
5947
- "arrow-right": "ArrowRight",
5948
- copy: "Copy",
5949
- download: "DownloadSimple",
5950
- upload: "UploadSimple",
5951
- filter: "Funnel",
6004
+ "user-plus": "UserPlus",
6005
+ "user-check": "UserCheck",
6006
+ // Time
5952
6007
  calendar: "Calendar",
5953
6008
  clock: "Clock",
6009
+ timer: "Timer",
6010
+ // Location
6011
+ map: "MapTrifold",
6012
+ "map-pin": "MapPin",
6013
+ navigation: "NavigationArrow",
6014
+ compass: "Compass",
6015
+ globe: "Globe",
6016
+ target: "Target",
6017
+ // Project / layout
6018
+ kanban: "Kanban",
6019
+ list: "List",
6020
+ table: "Table",
6021
+ grid: "GridFour",
6022
+ layout: "Layout",
6023
+ columns: "Columns",
6024
+ rows: "Rows",
6025
+ // Misc
5954
6026
  bell: "Bell",
5955
- mail: "Envelope",
5956
- envelope: "Envelope",
5957
- lock: "Lock",
5958
- unlock: "LockOpen",
6027
+ bookmark: "Bookmark",
6028
+ briefcase: "Briefcase",
6029
+ flag: "Flag",
6030
+ tag: "Tag",
6031
+ tags: "Tag",
6032
+ star: "Star",
6033
+ heart: "Heart",
6034
+ home: "House",
6035
+ settings: "Gear",
5959
6036
  eye: "Eye",
5960
6037
  "eye-off": "EyeSlash",
5961
- more: "DotsThree",
5962
- "more-vertical": "DotsThreeVertical",
5963
- info: "Info",
5964
- warning: "Warning",
5965
- error: "WarningCircle"
6038
+ lock: "Lock",
6039
+ unlock: "LockOpen",
6040
+ key: "Key",
6041
+ shield: "Shield",
6042
+ search: "MagnifyingGlass",
6043
+ filter: "Funnel",
6044
+ "sort-asc": "SortAscending",
6045
+ "sort-desc": "SortDescending",
6046
+ zap: "Lightning",
6047
+ sparkles: "Sparkle",
6048
+ // Code
6049
+ code: "Code",
6050
+ terminal: "Terminal",
6051
+ database: "Database",
6052
+ server: "HardDrives",
6053
+ cloud: "Cloud",
6054
+ wifi: "WifiHigh",
6055
+ package: "Package",
6056
+ box: "Package",
6057
+ // Theme
6058
+ sun: "Sun",
6059
+ moon: "Moon",
6060
+ // Phone
6061
+ phone: "Phone",
6062
+ printer: "Printer",
6063
+ // Hierarchy
6064
+ tree: "Tree",
6065
+ network: "Network"
5966
6066
  };
5967
6067
  tablerAliases = {
5968
6068
  // lucide name → tabler suffix (after the `Icon` prefix)
5969
- search: "Search",
6069
+ // Actions
6070
+ plus: "Plus",
6071
+ minus: "Minus",
6072
+ x: "X",
6073
+ check: "Check",
5970
6074
  close: "X",
5971
- loader: "Loader2",
6075
+ edit: "Pencil",
6076
+ pencil: "Pencil",
6077
+ trash: "Trash",
6078
+ save: "DeviceFloppy",
6079
+ copy: "Copy",
6080
+ share: "Share",
6081
+ send: "Send",
6082
+ download: "Download",
6083
+ upload: "Upload",
6084
+ archive: "Archive",
5972
6085
  refresh: "Refresh",
5973
- "sort-asc": "SortAscending",
5974
- "sort-desc": "SortDescending",
6086
+ loader: "Loader2",
6087
+ link: "Link",
6088
+ paperclip: "Paperclip",
6089
+ external: "ExternalLink",
6090
+ "external-link": "ExternalLink",
6091
+ // Navigation
5975
6092
  "chevron-down": "ChevronDown",
5976
6093
  "chevron-up": "ChevronUp",
5977
6094
  "chevron-left": "ChevronLeft",
5978
6095
  "chevron-right": "ChevronRight",
5979
- "help-circle": "HelpCircle",
5980
- "alert-triangle": "AlertTriangle",
6096
+ "arrow-down": "ArrowDown",
6097
+ "arrow-up": "ArrowUp",
6098
+ "arrow-left": "ArrowLeft",
6099
+ "arrow-right": "ArrowRight",
6100
+ menu: "Menu2",
6101
+ more: "Dots",
6102
+ "more-vertical": "DotsVertical",
6103
+ // Files
6104
+ file: "File",
6105
+ "file-text": "FileText",
6106
+ "file-plus": "FilePlus",
6107
+ "file-check": "FileCheck",
6108
+ "file-minus": "FileMinus",
6109
+ folder: "Folder",
6110
+ "folder-open": "FolderOpen",
6111
+ document: "FileText",
6112
+ // Charts
6113
+ "bar-chart": "ChartBar",
6114
+ "bar-chart-2": "ChartBar",
6115
+ "bar-chart-3": "ChartBar",
6116
+ "line-chart": "ChartLine",
6117
+ "pie-chart": "ChartPie",
6118
+ activity: "Activity",
6119
+ "trending-up": "TrendingUp",
6120
+ "trending-down": "TrendingDown",
6121
+ // Messages
6122
+ message: "Message",
6123
+ "message-circle": "MessageCircle",
6124
+ "message-square": "Message2",
6125
+ "messages-square": "Messages",
6126
+ comment: "Message",
6127
+ comments: "Messages",
6128
+ inbox: "Inbox",
6129
+ mail: "Mail",
6130
+ envelope: "Mail",
6131
+ // Status
5981
6132
  "alert-circle": "AlertCircle",
6133
+ "alert-triangle": "AlertTriangle",
5982
6134
  "check-circle": "CircleCheck",
5983
6135
  "x-circle": "CircleX",
5984
- edit: "Pencil",
5985
- trash: "Trash",
5986
- send: "Send",
5987
- external: "ExternalLink",
5988
- plus: "Plus",
5989
- x: "X",
5990
- check: "Check",
5991
- star: "Star",
5992
- heart: "Heart",
5993
- home: "Home",
6136
+ info: "InfoCircle",
6137
+ "help-circle": "HelpCircle",
6138
+ "life-buoy": "Lifebuoy",
6139
+ warning: "AlertTriangle",
6140
+ error: "AlertOctagon",
6141
+ // Media
6142
+ image: "Photo",
6143
+ video: "Video",
6144
+ camera: "Camera",
6145
+ music: "Music",
6146
+ play: "PlayerPlay",
6147
+ pause: "PlayerPause",
6148
+ stop: "PlayerStop",
6149
+ "skip-forward": "PlayerSkipForward",
6150
+ "skip-back": "PlayerSkipBack",
6151
+ volume: "Volume",
6152
+ "volume-2": "Volume",
6153
+ "volume-x": "VolumeOff",
6154
+ mic: "Microphone",
6155
+ "mic-off": "MicrophoneOff",
6156
+ // People
5994
6157
  user: "User",
5995
6158
  users: "Users",
5996
- settings: "Settings",
5997
- menu: "Menu2",
5998
- copy: "Copy",
5999
- download: "Download",
6000
- upload: "Upload",
6001
- filter: "Filter",
6159
+ "user-plus": "UserPlus",
6160
+ "user-check": "UserCheck",
6161
+ // Time
6002
6162
  calendar: "Calendar",
6003
6163
  clock: "Clock",
6164
+ timer: "Hourglass",
6165
+ // Location
6166
+ map: "Map",
6167
+ "map-pin": "MapPin",
6168
+ navigation: "Navigation",
6169
+ compass: "Compass",
6170
+ globe: "World",
6171
+ target: "Target",
6172
+ // Project / layout
6173
+ kanban: "LayoutKanban",
6174
+ list: "List",
6175
+ table: "Table",
6176
+ grid: "LayoutGrid",
6177
+ layout: "Layout",
6178
+ columns: "LayoutColumns",
6179
+ rows: "LayoutRows",
6180
+ // Misc
6004
6181
  bell: "Bell",
6005
- mail: "Mail",
6006
- envelope: "Mail",
6007
- lock: "Lock",
6008
- unlock: "LockOpen",
6182
+ bookmark: "Bookmark",
6183
+ briefcase: "Briefcase",
6184
+ flag: "Flag",
6185
+ tag: "Tag",
6186
+ tags: "Tags",
6187
+ star: "Star",
6188
+ heart: "Heart",
6189
+ home: "Home",
6190
+ settings: "Settings",
6009
6191
  eye: "Eye",
6010
6192
  "eye-off": "EyeOff",
6011
- more: "Dots",
6012
- "more-vertical": "DotsVertical",
6013
- info: "InfoCircle"
6193
+ lock: "Lock",
6194
+ unlock: "LockOpen",
6195
+ key: "Key",
6196
+ shield: "Shield",
6197
+ search: "Search",
6198
+ filter: "Filter",
6199
+ "sort-asc": "SortAscending",
6200
+ "sort-desc": "SortDescending",
6201
+ zap: "Bolt",
6202
+ sparkles: "Sparkles",
6203
+ // Code / data
6204
+ code: "Code",
6205
+ terminal: "Terminal",
6206
+ database: "Database",
6207
+ server: "Server",
6208
+ cloud: "Cloud",
6209
+ wifi: "Wifi",
6210
+ package: "Package",
6211
+ box: "Box",
6212
+ // Theme
6213
+ sun: "Sun",
6214
+ moon: "Moon",
6215
+ // Phone
6216
+ phone: "Phone",
6217
+ printer: "Printer",
6218
+ // Hierarchy
6219
+ tree: "Hierarchy",
6220
+ network: "Network"
6014
6221
  };
6015
6222
  faAliases = {
6016
6223
  // lucide name → fa-solid suffix (after the `Fa` prefix).
@@ -6035,9 +6242,10 @@ var init_iconFamily = __esm({
6035
6242
  "check-circle": "CheckCircle",
6036
6243
  "x-circle": "TimesCircle",
6037
6244
  edit: "Edit",
6038
- pencil: "Pencil",
6245
+ pencil: "PencilAlt",
6039
6246
  trash: "Trash",
6040
6247
  send: "PaperPlane",
6248
+ share: "ShareAlt",
6041
6249
  external: "ExternalLinkAlt",
6042
6250
  plus: "Plus",
6043
6251
  minus: "Minus",
@@ -6047,6 +6255,8 @@ var init_iconFamily = __esm({
6047
6255
  home: "Home",
6048
6256
  user: "User",
6049
6257
  users: "Users",
6258
+ "user-plus": "UserPlus",
6259
+ "user-check": "UserCheck",
6050
6260
  settings: "Cog",
6051
6261
  menu: "Bars",
6052
6262
  "arrow-up": "ArrowUp",
@@ -6070,6 +6280,9 @@ var init_iconFamily = __esm({
6070
6280
  "more-vertical": "EllipsisV",
6071
6281
  info: "InfoCircle",
6072
6282
  warning: "ExclamationTriangle",
6283
+ error: "ExclamationCircle",
6284
+ // Time
6285
+ timer: "Hourglass",
6073
6286
  // Files (FA renamed FileText → FileAlt)
6074
6287
  file: "File",
6075
6288
  "file-text": "FileAlt",
@@ -6128,6 +6341,7 @@ var init_iconFamily = __esm({
6128
6341
  music: "Music",
6129
6342
  play: "Play",
6130
6343
  pause: "Pause",
6344
+ stop: "Stop",
6131
6345
  "skip-forward": "Forward",
6132
6346
  "skip-back": "Backward",
6133
6347
  volume: "VolumeUp",
@@ -6155,7 +6369,14 @@ var init_iconFamily = __esm({
6155
6369
  flag: "Flag",
6156
6370
  tag: "Tag",
6157
6371
  tags: "Tags",
6158
- zap: "Bolt"
6372
+ zap: "Bolt",
6373
+ sparkles: "Magic",
6374
+ // Theme
6375
+ sun: "Sun",
6376
+ moon: "Moon",
6377
+ // Hierarchy (FA has no Tree icon for hierarchies; Sitemap is the org-chart icon)
6378
+ tree: "Sitemap",
6379
+ network: "NetworkWired"
6159
6380
  };
6160
6381
  warned = /* @__PURE__ */ new Set();
6161
6382
  }
@@ -58112,9 +58333,25 @@ function detectScreenSize(viewportWidth) {
58112
58333
  }
58113
58334
 
58114
58335
  // components/molecules/avl/avl-preview-converter.ts
58115
- var OVERVIEW_SPACING = 900;
58116
- var EXPANDED_SPACING_X = 900;
58117
- var EXPANDED_SPACING_Y = 600;
58336
+ var OVERVIEW_GAP_X = 160;
58337
+ var OVERVIEW_GAP_Y = 240;
58338
+ var EXPANDED_GAP_X = 160;
58339
+ var EXPANDED_GAP_Y = 240;
58340
+ var CARD_CHROME_Y = 120;
58341
+ function computeSpacing(screenSize = "wide") {
58342
+ const preset = SCREEN_SIZE_PRESETS[screenSize];
58343
+ return {
58344
+ x: preset.width + OVERVIEW_GAP_X,
58345
+ y: preset.minHeight + CARD_CHROME_Y + OVERVIEW_GAP_Y
58346
+ };
58347
+ }
58348
+ function computeExpandedSpacing(screenSize = "wide") {
58349
+ const preset = SCREEN_SIZE_PRESETS[screenSize];
58350
+ return {
58351
+ x: preset.width + EXPANDED_GAP_X,
58352
+ y: preset.minHeight + CARD_CHROME_Y + EXPANDED_GAP_Y
58353
+ };
58354
+ }
58118
58355
  function getOrbitals(schema) {
58119
58356
  return schema.orbitals ?? [];
58120
58357
  }
@@ -58303,12 +58540,13 @@ function extractTraitWires(orbitals, scope) {
58303
58540
  function findCrossLinks(orbitals) {
58304
58541
  return extractTraitWires(orbitals, "cross-orbital");
58305
58542
  }
58306
- function schemaToOverviewGraph(schema, mockData, behaviorMeta, layoutHint, orbitalStatus) {
58543
+ function schemaToOverviewGraph(schema, mockData, behaviorMeta, layoutHint, orbitalStatus, screenSize) {
58307
58544
  const orbitals = getOrbitals(schema);
58308
58545
  const nodes = [];
58309
58546
  const edges = [];
58310
58547
  const count = orbitals.length;
58311
58548
  const cols = layoutHint === "pipeline" ? count : Math.ceil(Math.sqrt(count));
58549
+ const spacing = computeSpacing(screenSize);
58312
58550
  for (let i = 0; i < orbitals.length; i++) {
58313
58551
  const orb = orbitals[i];
58314
58552
  const entityInfo = getEntityInfo(orb);
@@ -58368,7 +58606,7 @@ function schemaToOverviewGraph(schema, mockData, behaviorMeta, layoutHint, orbit
58368
58606
  nodes.push({
58369
58607
  id: orb.name,
58370
58608
  type: "preview",
58371
- position: { x: col * OVERVIEW_SPACING, y: row * OVERVIEW_SPACING },
58609
+ position: { x: col * spacing.x, y: row * spacing.y },
58372
58610
  data: {
58373
58611
  orbitalName: orb.name,
58374
58612
  patterns: initPatterns,
@@ -58432,9 +58670,10 @@ function collectUITransitions(orbital, filter) {
58432
58670
  }
58433
58671
  return out;
58434
58672
  }
58435
- function buildScreenGraph(schema, orbitalName, entityName, transitions, groupedBehaviors, mockData) {
58673
+ function buildScreenGraph(schema, orbitalName, entityName, transitions, groupedBehaviors, mockData, screenSize) {
58436
58674
  const nodes = [];
58437
58675
  const edges = [];
58676
+ const spacing = computeExpandedSpacing(screenSize);
58438
58677
  const stateRepresentativeMap = /* @__PURE__ */ new Map();
58439
58678
  for (const entry of transitions) {
58440
58679
  const key = `${entry.traitName}:${entry.transition.to}`;
@@ -58460,7 +58699,7 @@ function buildScreenGraph(schema, orbitalName, entityName, transitions, groupedB
58460
58699
  nodes.push({
58461
58700
  id: nodeId,
58462
58701
  type: "preview",
58463
- position: { x: col * EXPANDED_SPACING_X, y: row * EXPANDED_SPACING_Y },
58702
+ position: { x: col * spacing.x, y: row * spacing.y },
58464
58703
  data: {
58465
58704
  orbitalName,
58466
58705
  traitName: entry.traitName,
@@ -58488,7 +58727,7 @@ function buildScreenGraph(schema, orbitalName, entityName, transitions, groupedB
58488
58727
  nodes.push({
58489
58728
  id: nodeId,
58490
58729
  type: "preview",
58491
- position: { x: col * EXPANDED_SPACING_X, y: row * EXPANDED_SPACING_Y },
58730
+ position: { x: col * spacing.x, y: row * spacing.y },
58492
58731
  data: {
58493
58732
  orbitalName,
58494
58733
  traitName: group.representative.traitName,
@@ -58543,7 +58782,7 @@ function buildScreenGraph(schema, orbitalName, entityName, transitions, groupedB
58543
58782
  }
58544
58783
  return { nodes, edges };
58545
58784
  }
58546
- function orbitalToExpandedGraph(schema, orbitalName, mockData) {
58785
+ function orbitalToExpandedGraph(schema, orbitalName, mockData, screenSize) {
58547
58786
  const orbital = getOrbitals(schema).find((o) => o.name === orbitalName);
58548
58787
  if (!orbital) return { nodes: [], edges: [] };
58549
58788
  const entityInfo = getEntityInfo(orbital);
@@ -58583,10 +58822,11 @@ function orbitalToExpandedGraph(schema, orbitalName, mockData) {
58583
58822
  entityInfo.name,
58584
58823
  organismTransitions,
58585
58824
  groupedBehaviors,
58586
- mockData
58825
+ mockData,
58826
+ screenSize
58587
58827
  );
58588
58828
  }
58589
- function orbitalAliasToExpandedGraph(schema, orbitalName, alias, mockData) {
58829
+ function orbitalAliasToExpandedGraph(schema, orbitalName, alias, mockData, screenSize) {
58590
58830
  const orbital = getOrbitals(schema).find((o) => o.name === orbitalName);
58591
58831
  if (!orbital) return { nodes: [], edges: [] };
58592
58832
  const entityInfo = getEntityInfo(orbital);
@@ -58600,7 +58840,8 @@ function orbitalAliasToExpandedGraph(schema, orbitalName, alias, mockData) {
58600
58840
  entityInfo.name,
58601
58841
  transitions,
58602
58842
  [],
58603
- mockData
58843
+ mockData,
58844
+ screenSize
58604
58845
  );
58605
58846
  }
58606
58847
  var TRAIT_CARD_SPACING_X = 480;
@@ -63219,9 +63460,9 @@ function FlowCanvasInner({
63219
63460
  const { composeNodes, composeEdges, overviewNodes, overviewEdges, expandedNodes, expandedEdges, behaviorExpandedNodes, behaviorExpandedEdges, traitExpandedNodes, traitExpandedEdges } = useMemo(() => {
63220
63461
  const t = perfStart("compose-graph");
63221
63462
  const compose = composeLevel === "behavior" && behaviorEntries?.length ? behaviorsToComposeGraph(behaviorEntries, behaviorWires ?? [], layoutHint) : { nodes: [], edges: [] };
63222
- const overview = schemaToOverviewGraph(parsedSchema, mockData, behaviorMeta, layoutHint, orbitalStatus);
63223
- const expanded = expandedOrbital ? orbitalToExpandedGraph(parsedSchema, expandedOrbital, mockData) : { nodes: [], edges: [] };
63224
- const behaviorExpanded = expandedOrbital && expandedBehaviorAlias ? orbitalAliasToExpandedGraph(parsedSchema, expandedOrbital, expandedBehaviorAlias, mockData) : { nodes: [], edges: [] };
63463
+ const overview = schemaToOverviewGraph(parsedSchema, mockData, behaviorMeta, layoutHint, orbitalStatus, screenSize);
63464
+ const expanded = expandedOrbital ? orbitalToExpandedGraph(parsedSchema, expandedOrbital, mockData, screenSize) : { nodes: [], edges: [] };
63465
+ const behaviorExpanded = expandedOrbital && expandedBehaviorAlias ? orbitalAliasToExpandedGraph(parsedSchema, expandedOrbital, expandedBehaviorAlias, mockData, screenSize) : { nodes: [], edges: [] };
63225
63466
  const traitExpanded = expandedOrbital ? orbitalToTraitGraph(parsedSchema, expandedOrbital) : { nodes: [], edges: [] };
63226
63467
  perfEnd("compose-graph", t, {
63227
63468
  composeNodes: compose.nodes.length,
@@ -63243,7 +63484,7 @@ function FlowCanvasInner({
63243
63484
  traitExpandedNodes: traitExpanded.nodes,
63244
63485
  traitExpandedEdges: traitExpanded.edges
63245
63486
  };
63246
- }, [parsedSchema, expandedOrbital, expandedBehaviorAlias, behaviorMeta, layoutHint, composeLevel, behaviorEntries, behaviorWires, mockData, orbitalStatus]);
63487
+ }, [parsedSchema, expandedOrbital, expandedBehaviorAlias, behaviorMeta, layoutHint, composeLevel, behaviorEntries, behaviorWires, mockData, orbitalStatus, screenSize]);
63247
63488
  const activeNodes = atBehaviorLevel && composeNodes.length > 0 ? composeNodes : level === "overview" ? overviewNodes : level === "behavior-expanded" ? behaviorExpandedNodes : level === "trait-expanded" ? traitExpandedNodes : expandedNodes;
63248
63489
  const activeEdges = atBehaviorLevel && composeEdges.length > 0 ? composeEdges : level === "overview" ? overviewEdges : level === "behavior-expanded" ? behaviorExpandedEdges : level === "trait-expanded" ? traitExpandedEdges : expandedEdges;
63249
63490
  const [nodes, setNodes, onNodesChange] = useNodesState(activeNodes);
@@ -63254,7 +63495,7 @@ function FlowCanvasInner({
63254
63495
  setNodes(activeNodes);
63255
63496
  setEdges(activeEdges);
63256
63497
  requestAnimationFrame(() => {
63257
- reactFlow.fitView({ duration: 300, padding: 0.15 });
63498
+ reactFlow.fitView({ duration: 300, padding: 0.25 });
63258
63499
  });
63259
63500
  }, [activeNodes, activeEdges, setNodes, setEdges, reactFlow]);
63260
63501
  const visibleEdges = useMemo(() => {
@@ -63435,7 +63676,7 @@ function FlowCanvasInner({
63435
63676
  minZoom: 0.1,
63436
63677
  maxZoom: 2,
63437
63678
  fitView: true,
63438
- fitViewOptions: { padding: 0.15 },
63679
+ fitViewOptions: { padding: 0.25 },
63439
63680
  nodesDraggable: true,
63440
63681
  elementsSelectable: true,
63441
63682
  proOptions: { hideAttribution: true },
@@ -63492,7 +63733,7 @@ function FlowCanvasInner({
63492
63733
  onClick: () => {
63493
63734
  pickScreenSize(size);
63494
63735
  requestAnimationFrame(() => {
63495
- reactFlow.fitView({ duration: 300, padding: 0.15 });
63736
+ reactFlow.fitView({ duration: 300, padding: 0.25 });
63496
63737
  });
63497
63738
  },
63498
63739
  className: `px-2 py-1 text-[11px] font-medium rounded cursor-pointer border-none transition-colors ${active ? "bg-primary text-primary-foreground" : "bg-transparent text-muted-foreground hover:text-foreground hover:bg-muted/50"}`,