@almadar/patterns 2.10.0 → 2.11.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/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/patterns-registry.json
2
2
  var patterns_registry_default = {
3
3
  version: "1.0.0",
4
- exportedAt: "2026-03-28T13:39:00.733Z",
4
+ exportedAt: "2026-04-03T05:25:58.152Z",
5
5
  patterns: {
6
6
  "entity-table": {
7
7
  type: "entity-table",
@@ -2786,6 +2786,18 @@ var patterns_registry_default = {
2786
2786
  "string"
2787
2787
  ],
2788
2788
  description: "Declarative hover event \u2014 emits UI:{hoverEvent} with { hovered: true/false } on mouseEnter/mouseLeave"
2789
+ },
2790
+ maxWidth: {
2791
+ types: [
2792
+ "string"
2793
+ ],
2794
+ description: 'Maximum width (CSS value, e.g., "550px", "80rem")'
2795
+ },
2796
+ children: {
2797
+ types: [
2798
+ "node"
2799
+ ],
2800
+ description: "Children elements"
2789
2801
  }
2790
2802
  }
2791
2803
  },
@@ -10622,6 +10634,12 @@ var patterns_registry_default = {
10622
10634
  ],
10623
10635
  description: "Maximum height before scrolling"
10624
10636
  },
10637
+ foldable: {
10638
+ types: [
10639
+ "boolean"
10640
+ ],
10641
+ description: "Enable JSON-style code folding (default: true for json/orb)"
10642
+ },
10625
10643
  className: {
10626
10644
  types: [
10627
10645
  "string"
@@ -13205,6 +13223,12 @@ var patterns_registry_default = {
13205
13223
  ],
13206
13224
  description: "Render prop for custom per-item content. When provided, `fields` and `itemActions` are ignored."
13207
13225
  },
13226
+ renderItem: {
13227
+ types: [
13228
+ "function"
13229
+ ],
13230
+ description: 'Per-item render function (schema-level alias for children render prop). In .orb schemas: ["fn", "item", { pattern tree with @item.field bindings }] The compiler converts this to the children render prop. @deprecated Use children render prop in React code. This prop exists for pattern registry sync.'
13231
+ },
13208
13232
  pageSize: {
13209
13233
  types: [
13210
13234
  "number"
@@ -13365,6 +13389,12 @@ var patterns_registry_default = {
13365
13389
  ],
13366
13390
  description: "Render prop for custom per-item content. When provided, `fields` and `itemActions` are ignored."
13367
13391
  },
13392
+ renderItem: {
13393
+ types: [
13394
+ "function"
13395
+ ],
13396
+ description: 'Per-item render function (schema-level alias for children render prop). In .orb schemas: ["fn", "item", { pattern tree with @item.field bindings }] The compiler converts this to the children render prop. @deprecated Use children render prop in React code. This prop exists for pattern registry sync.'
13397
+ },
13368
13398
  pageSize: {
13369
13399
  types: [
13370
13400
  "number"
@@ -20510,23 +20540,17 @@ var patterns_registry_default = {
20510
20540
  description: "schema prop",
20511
20541
  required: true
20512
20542
  },
20513
- className: {
20543
+ mockData: {
20514
20544
  types: [
20515
- "string"
20545
+ "object"
20516
20546
  ],
20517
- description: "className prop"
20547
+ description: "mockData prop"
20518
20548
  },
20519
- color: {
20549
+ className: {
20520
20550
  types: [
20521
20551
  "string"
20522
20552
  ],
20523
- description: "color prop"
20524
- },
20525
- animated: {
20526
- types: [
20527
- "boolean"
20528
- ],
20529
- description: "animated prop"
20553
+ description: "className prop"
20530
20554
  },
20531
20555
  width: {
20532
20556
  types: [
@@ -20542,35 +20566,131 @@ var patterns_registry_default = {
20542
20566
  ],
20543
20567
  description: "height prop"
20544
20568
  },
20569
+ onNodeClick: {
20570
+ types: [
20571
+ "function"
20572
+ ],
20573
+ description: "onNodeClick prop"
20574
+ },
20575
+ onLevelChange: {
20576
+ types: [
20577
+ "function"
20578
+ ],
20579
+ description: "onLevelChange prop"
20580
+ },
20581
+ initialOrbital: {
20582
+ types: [
20583
+ "string"
20584
+ ],
20585
+ description: "initialOrbital prop"
20586
+ },
20587
+ initialLevel: {
20588
+ types: [
20589
+ "object"
20590
+ ],
20591
+ description: "Start at Level 2 (expanded) when initialOrbital is set. Default: 'overview'."
20592
+ },
20593
+ initialSelectedNode: {
20594
+ types: [
20595
+ "object"
20596
+ ],
20597
+ description: "Pre-select a node on mount (opens OrbInspector)."
20598
+ },
20599
+ editable: {
20600
+ types: [
20601
+ "boolean"
20602
+ ],
20603
+ description: "Enable editing in the inspector. When true, fields become inputs."
20604
+ },
20605
+ onSchemaChange: {
20606
+ types: [
20607
+ "function"
20608
+ ],
20609
+ description: "Called when the user edits the schema via the inspector."
20610
+ },
20611
+ onPatternDelete: {
20612
+ types: [
20613
+ "function"
20614
+ ],
20615
+ description: "Called when the user presses Delete/Backspace with a pattern selected."
20616
+ },
20617
+ onEventWire: {
20618
+ types: [
20619
+ "function"
20620
+ ],
20621
+ description: "Called when the user drags from a source handle to a target handle (event wiring)."
20622
+ },
20623
+ behaviorMeta: {
20624
+ types: [
20625
+ "object"
20626
+ ],
20627
+ description: "Behavior layer metadata for node styling (layer color bands)."
20628
+ },
20629
+ layoutHint: {
20630
+ types: [
20631
+ "string"
20632
+ ],
20633
+ description: "Layout hint: 'pipeline' renders nodes left-to-right, 'grid' (default) uses sqrt-based grid."
20634
+ },
20635
+ onNodeSelect: {
20636
+ types: [
20637
+ "function"
20638
+ ],
20639
+ description: "Called when the user clicks a node in overview level (for composition hints)."
20640
+ },
20641
+ composeLevel: {
20642
+ types: [
20643
+ "object"
20644
+ ],
20645
+ description: "When 'behavior', shows behavior-level glyph nodes instead of orbital previews."
20646
+ },
20647
+ behaviorEntries: {
20648
+ types: [
20649
+ "array"
20650
+ ],
20651
+ description: "Behavior entries for compose mode (only when composeLevel='behavior')."
20652
+ },
20653
+ behaviorWires: {
20654
+ types: [
20655
+ "array"
20656
+ ],
20657
+ description: "Event wires between behaviors (only when composeLevel='behavior')."
20658
+ },
20545
20659
  onZoomChange: {
20546
20660
  types: [
20547
20661
  "function"
20548
20662
  ],
20549
- description: "onZoomChange prop"
20663
+ description: "@deprecated Use onNodeClick instead. Kept for AvlCosmicZoom compat."
20550
20664
  },
20551
20665
  focusTarget: {
20552
20666
  types: [
20553
20667
  "object"
20554
20668
  ],
20555
- description: "focusTarget prop"
20669
+ description: "@deprecated Not used in V3."
20556
20670
  },
20557
- initialOrbital: {
20671
+ color: {
20558
20672
  types: [
20559
20673
  "string"
20560
20674
  ],
20561
- description: "initialOrbital prop"
20675
+ description: "@deprecated Not used in V3."
20676
+ },
20677
+ animated: {
20678
+ types: [
20679
+ "boolean"
20680
+ ],
20681
+ description: "@deprecated Not used in V3."
20562
20682
  },
20563
20683
  initialTrait: {
20564
20684
  types: [
20565
20685
  "string"
20566
20686
  ],
20567
- description: "initialTrait prop"
20687
+ description: "@deprecated Not used in V3."
20568
20688
  },
20569
20689
  stateCoverage: {
20570
20690
  types: [
20571
20691
  "object"
20572
20692
  ],
20573
- description: "stateCoverage prop"
20693
+ description: "@deprecated Not used in V3."
20574
20694
  }
20575
20695
  }
20576
20696
  },
@@ -22624,6 +22744,52 @@ var patterns_registry_default = {
22624
22744
  }
22625
22745
  }
22626
22746
  },
22747
+ "orb-inspector": {
22748
+ type: "orb-inspector",
22749
+ category: "debug",
22750
+ description: "OrbInspector component",
22751
+ suggestedFor: [
22752
+ "orb",
22753
+ "inspector",
22754
+ "orb inspector"
22755
+ ],
22756
+ typicalSize: "large",
22757
+ propsSchema: {
22758
+ node: {
22759
+ types: [
22760
+ "object"
22761
+ ],
22762
+ description: "node prop",
22763
+ required: true
22764
+ },
22765
+ schema: {
22766
+ types: [
22767
+ "object"
22768
+ ],
22769
+ description: "schema prop",
22770
+ required: true
22771
+ },
22772
+ editable: {
22773
+ types: [
22774
+ "boolean"
22775
+ ],
22776
+ description: "editable prop"
22777
+ },
22778
+ onSchemaChange: {
22779
+ types: [
22780
+ "function"
22781
+ ],
22782
+ description: "onSchemaChange prop"
22783
+ },
22784
+ onClose: {
22785
+ types: [
22786
+ "function"
22787
+ ],
22788
+ description: "onClose prop",
22789
+ required: true
22790
+ }
22791
+ }
22792
+ },
22627
22793
  heading: {
22628
22794
  type: "heading",
22629
22795
  category: "component",
@@ -23440,7 +23606,7 @@ var integrators_registry_default = {
23440
23606
  // src/component-mapping.json
23441
23607
  var component_mapping_default = {
23442
23608
  version: "1.0.0",
23443
- exportedAt: "2026-03-28T13:39:00.733Z",
23609
+ exportedAt: "2026-04-03T05:25:58.152Z",
23444
23610
  mappings: {
23445
23611
  "page-header": {
23446
23612
  component: "PageHeader",
@@ -25215,6 +25381,11 @@ var component_mapping_default = {
25215
25381
  importPath: "@/components/templates/GameCanvas3DWorldMapTemplate",
25216
25382
  category: "template"
25217
25383
  },
25384
+ "orb-inspector": {
25385
+ component: "OrbInspector",
25386
+ importPath: "@/components/organisms/OrbInspector",
25387
+ category: "debug"
25388
+ },
25218
25389
  heading: {
25219
25390
  component: "Typography",
25220
25391
  importPath: "@/components/atoms/Typography",
@@ -25231,7 +25402,7 @@ var component_mapping_default = {
25231
25402
  // src/event-contracts.json
25232
25403
  var event_contracts_default = {
25233
25404
  version: "1.0.0",
25234
- exportedAt: "2026-03-28T13:39:00.733Z",
25405
+ exportedAt: "2026-04-03T05:25:58.152Z",
25235
25406
  contracts: {
25236
25407
  form: {
25237
25408
  emits: [
@@ -26458,6 +26629,81 @@ var event_contracts_default = {
26458
26629
  ],
26459
26630
  requires: [],
26460
26631
  entityAware: true
26632
+ },
26633
+ "flow-canvas": {
26634
+ emits: [
26635
+ {
26636
+ event: "WIRE_VALIDATION_WARNING",
26637
+ trigger: "action",
26638
+ payload: {
26639
+ type: "object"
26640
+ }
26641
+ }
26642
+ ],
26643
+ requires: [],
26644
+ entityAware: false
26645
+ },
26646
+ "orb-inspector": {
26647
+ emits: [
26648
+ {
26649
+ event: "PROP_CHANGE",
26650
+ trigger: "action",
26651
+ payload: {
26652
+ type: "object"
26653
+ }
26654
+ },
26655
+ {
26656
+ event: "ADD_FIELD",
26657
+ trigger: "action",
26658
+ payload: {
26659
+ type: "object"
26660
+ }
26661
+ },
26662
+ {
26663
+ event: "UPDATE_FIELD",
26664
+ trigger: "action",
26665
+ payload: {
26666
+ type: "object"
26667
+ }
26668
+ },
26669
+ {
26670
+ event: "REMOVE_FIELD",
26671
+ trigger: "action",
26672
+ payload: {
26673
+ type: "object"
26674
+ }
26675
+ },
26676
+ {
26677
+ event: "GUARD_CHANGE",
26678
+ trigger: "action",
26679
+ payload: {
26680
+ type: "object"
26681
+ }
26682
+ },
26683
+ {
26684
+ event: "ADD_EFFECT",
26685
+ trigger: "action",
26686
+ payload: {
26687
+ type: "object"
26688
+ }
26689
+ },
26690
+ {
26691
+ event: "REMOVE_EFFECT",
26692
+ trigger: "action",
26693
+ payload: {
26694
+ type: "object"
26695
+ }
26696
+ },
26697
+ {
26698
+ event: "SERVICE_MODE_TOGGLE",
26699
+ trigger: "action",
26700
+ payload: {
26701
+ type: "object"
26702
+ }
26703
+ }
26704
+ ],
26705
+ requires: [],
26706
+ entityAware: false
26461
26707
  }
26462
26708
  }
26463
26709
  };