@almadar/patterns 2.9.0 → 2.10.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-03-28T13:39:00.733Z",
3
+ "exportedAt": "2026-03-31T07:12:35.907Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -2785,6 +2785,18 @@
2785
2785
  "string"
2786
2786
  ],
2787
2787
  "description": "Declarative hover event — emits UI:{hoverEvent} with { hovered: true/false } on mouseEnter/mouseLeave"
2788
+ },
2789
+ "maxWidth": {
2790
+ "types": [
2791
+ "string"
2792
+ ],
2793
+ "description": "Maximum width (CSS value, e.g., \"550px\", \"80rem\")"
2794
+ },
2795
+ "children": {
2796
+ "types": [
2797
+ "node"
2798
+ ],
2799
+ "description": "Children elements"
2788
2800
  }
2789
2801
  }
2790
2802
  },
@@ -10621,6 +10633,12 @@
10621
10633
  ],
10622
10634
  "description": "Maximum height before scrolling"
10623
10635
  },
10636
+ "foldable": {
10637
+ "types": [
10638
+ "boolean"
10639
+ ],
10640
+ "description": "Enable JSON-style code folding (default: true for json/orb)"
10641
+ },
10624
10642
  "className": {
10625
10643
  "types": [
10626
10644
  "string"
@@ -20509,23 +20527,17 @@
20509
20527
  "description": "schema prop",
20510
20528
  "required": true
20511
20529
  },
20512
- "className": {
20530
+ "mockData": {
20513
20531
  "types": [
20514
- "string"
20532
+ "object"
20515
20533
  ],
20516
- "description": "className prop"
20534
+ "description": "mockData prop"
20517
20535
  },
20518
- "color": {
20536
+ "className": {
20519
20537
  "types": [
20520
20538
  "string"
20521
20539
  ],
20522
- "description": "color prop"
20523
- },
20524
- "animated": {
20525
- "types": [
20526
- "boolean"
20527
- ],
20528
- "description": "animated prop"
20540
+ "description": "className prop"
20529
20541
  },
20530
20542
  "width": {
20531
20543
  "types": [
@@ -20541,35 +20553,131 @@
20541
20553
  ],
20542
20554
  "description": "height prop"
20543
20555
  },
20556
+ "onNodeClick": {
20557
+ "types": [
20558
+ "function"
20559
+ ],
20560
+ "description": "onNodeClick prop"
20561
+ },
20562
+ "onLevelChange": {
20563
+ "types": [
20564
+ "function"
20565
+ ],
20566
+ "description": "onLevelChange prop"
20567
+ },
20568
+ "initialOrbital": {
20569
+ "types": [
20570
+ "string"
20571
+ ],
20572
+ "description": "initialOrbital prop"
20573
+ },
20574
+ "initialLevel": {
20575
+ "types": [
20576
+ "object"
20577
+ ],
20578
+ "description": "Start at Level 2 (expanded) when initialOrbital is set. Default: 'overview'."
20579
+ },
20580
+ "initialSelectedNode": {
20581
+ "types": [
20582
+ "object"
20583
+ ],
20584
+ "description": "Pre-select a node on mount (opens OrbInspector)."
20585
+ },
20586
+ "editable": {
20587
+ "types": [
20588
+ "boolean"
20589
+ ],
20590
+ "description": "Enable editing in the inspector. When true, fields become inputs."
20591
+ },
20592
+ "onSchemaChange": {
20593
+ "types": [
20594
+ "function"
20595
+ ],
20596
+ "description": "Called when the user edits the schema via the inspector."
20597
+ },
20598
+ "onPatternDelete": {
20599
+ "types": [
20600
+ "function"
20601
+ ],
20602
+ "description": "Called when the user presses Delete/Backspace with a pattern selected."
20603
+ },
20604
+ "onEventWire": {
20605
+ "types": [
20606
+ "function"
20607
+ ],
20608
+ "description": "Called when the user drags from a source handle to a target handle (event wiring)."
20609
+ },
20610
+ "behaviorMeta": {
20611
+ "types": [
20612
+ "object"
20613
+ ],
20614
+ "description": "Behavior layer metadata for node styling (layer color bands)."
20615
+ },
20616
+ "layoutHint": {
20617
+ "types": [
20618
+ "string"
20619
+ ],
20620
+ "description": "Layout hint: 'pipeline' renders nodes left-to-right, 'grid' (default) uses sqrt-based grid."
20621
+ },
20622
+ "onNodeSelect": {
20623
+ "types": [
20624
+ "function"
20625
+ ],
20626
+ "description": "Called when the user clicks a node in overview level (for composition hints)."
20627
+ },
20628
+ "composeLevel": {
20629
+ "types": [
20630
+ "object"
20631
+ ],
20632
+ "description": "When 'behavior', shows behavior-level glyph nodes instead of orbital previews."
20633
+ },
20634
+ "behaviorEntries": {
20635
+ "types": [
20636
+ "array"
20637
+ ],
20638
+ "description": "Behavior entries for compose mode (only when composeLevel='behavior')."
20639
+ },
20640
+ "behaviorWires": {
20641
+ "types": [
20642
+ "array"
20643
+ ],
20644
+ "description": "Event wires between behaviors (only when composeLevel='behavior')."
20645
+ },
20544
20646
  "onZoomChange": {
20545
20647
  "types": [
20546
20648
  "function"
20547
20649
  ],
20548
- "description": "onZoomChange prop"
20650
+ "description": "@deprecated Use onNodeClick instead. Kept for AvlCosmicZoom compat."
20549
20651
  },
20550
20652
  "focusTarget": {
20551
20653
  "types": [
20552
20654
  "object"
20553
20655
  ],
20554
- "description": "focusTarget prop"
20656
+ "description": "@deprecated Not used in V3."
20555
20657
  },
20556
- "initialOrbital": {
20658
+ "color": {
20557
20659
  "types": [
20558
20660
  "string"
20559
20661
  ],
20560
- "description": "initialOrbital prop"
20662
+ "description": "@deprecated Not used in V3."
20663
+ },
20664
+ "animated": {
20665
+ "types": [
20666
+ "boolean"
20667
+ ],
20668
+ "description": "@deprecated Not used in V3."
20561
20669
  },
20562
20670
  "initialTrait": {
20563
20671
  "types": [
20564
20672
  "string"
20565
20673
  ],
20566
- "description": "initialTrait prop"
20674
+ "description": "@deprecated Not used in V3."
20567
20675
  },
20568
20676
  "stateCoverage": {
20569
20677
  "types": [
20570
20678
  "object"
20571
20679
  ],
20572
- "description": "stateCoverage prop"
20680
+ "description": "@deprecated Not used in V3."
20573
20681
  }
20574
20682
  }
20575
20683
  },
@@ -22623,6 +22731,52 @@
22623
22731
  }
22624
22732
  }
22625
22733
  },
22734
+ "orb-inspector": {
22735
+ "type": "orb-inspector",
22736
+ "category": "debug",
22737
+ "description": "OrbInspector component",
22738
+ "suggestedFor": [
22739
+ "orb",
22740
+ "inspector",
22741
+ "orb inspector"
22742
+ ],
22743
+ "typicalSize": "large",
22744
+ "propsSchema": {
22745
+ "node": {
22746
+ "types": [
22747
+ "object"
22748
+ ],
22749
+ "description": "node prop",
22750
+ "required": true
22751
+ },
22752
+ "schema": {
22753
+ "types": [
22754
+ "object"
22755
+ ],
22756
+ "description": "schema prop",
22757
+ "required": true
22758
+ },
22759
+ "editable": {
22760
+ "types": [
22761
+ "boolean"
22762
+ ],
22763
+ "description": "editable prop"
22764
+ },
22765
+ "onSchemaChange": {
22766
+ "types": [
22767
+ "function"
22768
+ ],
22769
+ "description": "onSchemaChange prop"
22770
+ },
22771
+ "onClose": {
22772
+ "types": [
22773
+ "function"
22774
+ ],
22775
+ "description": "onClose prop",
22776
+ "required": true
22777
+ }
22778
+ }
22779
+ },
22626
22780
  "heading": {
22627
22781
  "type": "heading",
22628
22782
  "category": "component",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-03-28T13:39:00.733Z",
3
+ "exportedAt": "2026-03-31T07:12:35.907Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -2785,6 +2785,18 @@
2785
2785
  "string"
2786
2786
  ],
2787
2787
  "description": "Declarative hover event — emits UI:{hoverEvent} with { hovered: true/false } on mouseEnter/mouseLeave"
2788
+ },
2789
+ "maxWidth": {
2790
+ "types": [
2791
+ "string"
2792
+ ],
2793
+ "description": "Maximum width (CSS value, e.g., \"550px\", \"80rem\")"
2794
+ },
2795
+ "children": {
2796
+ "types": [
2797
+ "node"
2798
+ ],
2799
+ "description": "Children elements"
2788
2800
  }
2789
2801
  }
2790
2802
  },
@@ -10621,6 +10633,12 @@
10621
10633
  ],
10622
10634
  "description": "Maximum height before scrolling"
10623
10635
  },
10636
+ "foldable": {
10637
+ "types": [
10638
+ "boolean"
10639
+ ],
10640
+ "description": "Enable JSON-style code folding (default: true for json/orb)"
10641
+ },
10624
10642
  "className": {
10625
10643
  "types": [
10626
10644
  "string"
@@ -20509,23 +20527,17 @@
20509
20527
  "description": "schema prop",
20510
20528
  "required": true
20511
20529
  },
20512
- "className": {
20530
+ "mockData": {
20513
20531
  "types": [
20514
- "string"
20532
+ "object"
20515
20533
  ],
20516
- "description": "className prop"
20534
+ "description": "mockData prop"
20517
20535
  },
20518
- "color": {
20536
+ "className": {
20519
20537
  "types": [
20520
20538
  "string"
20521
20539
  ],
20522
- "description": "color prop"
20523
- },
20524
- "animated": {
20525
- "types": [
20526
- "boolean"
20527
- ],
20528
- "description": "animated prop"
20540
+ "description": "className prop"
20529
20541
  },
20530
20542
  "width": {
20531
20543
  "types": [
@@ -20541,35 +20553,131 @@
20541
20553
  ],
20542
20554
  "description": "height prop"
20543
20555
  },
20556
+ "onNodeClick": {
20557
+ "types": [
20558
+ "function"
20559
+ ],
20560
+ "description": "onNodeClick prop"
20561
+ },
20562
+ "onLevelChange": {
20563
+ "types": [
20564
+ "function"
20565
+ ],
20566
+ "description": "onLevelChange prop"
20567
+ },
20568
+ "initialOrbital": {
20569
+ "types": [
20570
+ "string"
20571
+ ],
20572
+ "description": "initialOrbital prop"
20573
+ },
20574
+ "initialLevel": {
20575
+ "types": [
20576
+ "object"
20577
+ ],
20578
+ "description": "Start at Level 2 (expanded) when initialOrbital is set. Default: 'overview'."
20579
+ },
20580
+ "initialSelectedNode": {
20581
+ "types": [
20582
+ "object"
20583
+ ],
20584
+ "description": "Pre-select a node on mount (opens OrbInspector)."
20585
+ },
20586
+ "editable": {
20587
+ "types": [
20588
+ "boolean"
20589
+ ],
20590
+ "description": "Enable editing in the inspector. When true, fields become inputs."
20591
+ },
20592
+ "onSchemaChange": {
20593
+ "types": [
20594
+ "function"
20595
+ ],
20596
+ "description": "Called when the user edits the schema via the inspector."
20597
+ },
20598
+ "onPatternDelete": {
20599
+ "types": [
20600
+ "function"
20601
+ ],
20602
+ "description": "Called when the user presses Delete/Backspace with a pattern selected."
20603
+ },
20604
+ "onEventWire": {
20605
+ "types": [
20606
+ "function"
20607
+ ],
20608
+ "description": "Called when the user drags from a source handle to a target handle (event wiring)."
20609
+ },
20610
+ "behaviorMeta": {
20611
+ "types": [
20612
+ "object"
20613
+ ],
20614
+ "description": "Behavior layer metadata for node styling (layer color bands)."
20615
+ },
20616
+ "layoutHint": {
20617
+ "types": [
20618
+ "string"
20619
+ ],
20620
+ "description": "Layout hint: 'pipeline' renders nodes left-to-right, 'grid' (default) uses sqrt-based grid."
20621
+ },
20622
+ "onNodeSelect": {
20623
+ "types": [
20624
+ "function"
20625
+ ],
20626
+ "description": "Called when the user clicks a node in overview level (for composition hints)."
20627
+ },
20628
+ "composeLevel": {
20629
+ "types": [
20630
+ "object"
20631
+ ],
20632
+ "description": "When 'behavior', shows behavior-level glyph nodes instead of orbital previews."
20633
+ },
20634
+ "behaviorEntries": {
20635
+ "types": [
20636
+ "array"
20637
+ ],
20638
+ "description": "Behavior entries for compose mode (only when composeLevel='behavior')."
20639
+ },
20640
+ "behaviorWires": {
20641
+ "types": [
20642
+ "array"
20643
+ ],
20644
+ "description": "Event wires between behaviors (only when composeLevel='behavior')."
20645
+ },
20544
20646
  "onZoomChange": {
20545
20647
  "types": [
20546
20648
  "function"
20547
20649
  ],
20548
- "description": "onZoomChange prop"
20650
+ "description": "@deprecated Use onNodeClick instead. Kept for AvlCosmicZoom compat."
20549
20651
  },
20550
20652
  "focusTarget": {
20551
20653
  "types": [
20552
20654
  "object"
20553
20655
  ],
20554
- "description": "focusTarget prop"
20656
+ "description": "@deprecated Not used in V3."
20555
20657
  },
20556
- "initialOrbital": {
20658
+ "color": {
20557
20659
  "types": [
20558
20660
  "string"
20559
20661
  ],
20560
- "description": "initialOrbital prop"
20662
+ "description": "@deprecated Not used in V3."
20663
+ },
20664
+ "animated": {
20665
+ "types": [
20666
+ "boolean"
20667
+ ],
20668
+ "description": "@deprecated Not used in V3."
20561
20669
  },
20562
20670
  "initialTrait": {
20563
20671
  "types": [
20564
20672
  "string"
20565
20673
  ],
20566
- "description": "initialTrait prop"
20674
+ "description": "@deprecated Not used in V3."
20567
20675
  },
20568
20676
  "stateCoverage": {
20569
20677
  "types": [
20570
20678
  "object"
20571
20679
  ],
20572
- "description": "stateCoverage prop"
20680
+ "description": "@deprecated Not used in V3."
20573
20681
  }
20574
20682
  }
20575
20683
  },
@@ -22623,6 +22731,52 @@
22623
22731
  }
22624
22732
  }
22625
22733
  },
22734
+ "orb-inspector": {
22735
+ "type": "orb-inspector",
22736
+ "category": "debug",
22737
+ "description": "OrbInspector component",
22738
+ "suggestedFor": [
22739
+ "orb",
22740
+ "inspector",
22741
+ "orb inspector"
22742
+ ],
22743
+ "typicalSize": "large",
22744
+ "propsSchema": {
22745
+ "node": {
22746
+ "types": [
22747
+ "object"
22748
+ ],
22749
+ "description": "node prop",
22750
+ "required": true
22751
+ },
22752
+ "schema": {
22753
+ "types": [
22754
+ "object"
22755
+ ],
22756
+ "description": "schema prop",
22757
+ "required": true
22758
+ },
22759
+ "editable": {
22760
+ "types": [
22761
+ "boolean"
22762
+ ],
22763
+ "description": "editable prop"
22764
+ },
22765
+ "onSchemaChange": {
22766
+ "types": [
22767
+ "function"
22768
+ ],
22769
+ "description": "onSchemaChange prop"
22770
+ },
22771
+ "onClose": {
22772
+ "types": [
22773
+ "function"
22774
+ ],
22775
+ "description": "onClose prop",
22776
+ "required": true
22777
+ }
22778
+ }
22779
+ },
22626
22780
  "heading": {
22627
22781
  "type": "heading",
22628
22782
  "category": "component",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/patterns",
3
- "version": "2.9.0",
3
+ "version": "2.10.1",
4
4
  "description": "Pattern registry and component mappings for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",