@almadar/std 14.15.1 → 14.16.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.
@@ -549,8 +549,8 @@
549
549
  "InvoiceRecord",
550
550
  {
551
551
  "emit": {
552
- "success": "InvoiceLoaded",
553
- "failure": "InvoiceLoadFailed"
552
+ "failure": "InvoiceLoadFailed",
553
+ "success": "InvoiceLoaded"
554
554
  }
555
555
  }
556
556
  ],
@@ -559,20 +559,20 @@
559
559
  "main",
560
560
  {
561
561
  "direction": "vertical",
562
+ "className": "py-12",
563
+ "align": "center",
564
+ "gap": "md",
562
565
  "children": [
563
566
  {
564
567
  "type": "spinner"
565
568
  },
566
569
  {
567
- "variant": "caption",
570
+ "content": "Loading invoices…",
568
571
  "color": "muted",
569
- "type": "typography",
570
- "content": "Loading invoices…"
572
+ "variant": "caption",
573
+ "type": "typography"
571
574
  }
572
575
  ],
573
- "align": "center",
574
- "className": "py-12",
575
- "gap": "md",
576
576
  "type": "stack"
577
577
  }
578
578
  ]
@@ -587,81 +587,48 @@
587
587
  "render-ui",
588
588
  "main",
589
589
  {
590
+ "type": "stack",
590
591
  "children": [
591
592
  {
592
593
  "gap": "sm",
594
+ "type": "stack",
593
595
  "children": [
594
596
  {
595
- "type": "icon",
596
- "name": "receipt"
597
+ "name": "receipt",
598
+ "type": "icon"
597
599
  },
598
600
  {
599
601
  "variant": "h3",
600
- "content": "@config.title",
601
- "type": "typography"
602
+ "type": "typography",
603
+ "content": "@config.title"
602
604
  }
603
605
  ],
604
- "type": "stack",
605
606
  "direction": "horizontal"
606
607
  },
607
608
  {
608
609
  "type": "divider"
609
610
  },
610
611
  {
611
- "itemActions": [
612
- {
613
- "label": "View",
614
- "event": "VIEW",
615
- "variant": "secondary",
616
- "icon": "eye"
617
- },
618
- {
619
- "label": "Send",
620
- "event": "SEND",
621
- "icon": "send",
622
- "variant": "primary"
623
- },
624
- {
625
- "icon": "check",
626
- "event": "MARK_PAID",
627
- "label": "Mark Paid",
628
- "variant": "primary"
629
- },
630
- {
631
- "event": "VOID",
632
- "icon": "x",
633
- "variant": "destructive",
634
- "label": "Void"
635
- },
636
- {
637
- "event": "REFUND",
638
- "label": "Refund",
639
- "variant": "destructive",
640
- "icon": "rotate-ccw"
641
- }
642
- ],
643
- "cols": 1.0,
644
- "type": "data-grid",
645
612
  "gap": "sm",
646
613
  "fields": [
647
614
  {
648
615
  "name": "invoiceNumber",
649
- "variant": "caption",
650
- "label": "Invoice #"
616
+ "label": "Invoice #",
617
+ "variant": "caption"
651
618
  },
652
619
  {
653
620
  "name": "customerId",
654
- "variant": "caption",
655
- "label": "Customer"
621
+ "label": "Customer",
622
+ "variant": "caption"
656
623
  },
657
624
  {
658
- "name": "status",
659
625
  "label": "Status",
626
+ "name": "status",
660
627
  "variant": "badge"
661
628
  },
662
629
  {
663
- "name": "total",
664
630
  "label": "Total",
631
+ "name": "total",
665
632
  "variant": "caption"
666
633
  },
667
634
  {
@@ -670,17 +637,50 @@
670
637
  "label": "Currency"
671
638
  },
672
639
  {
673
- "variant": "caption",
674
640
  "name": "dueAt",
675
- "label": "Due"
641
+ "label": "Due",
642
+ "variant": "caption"
676
643
  }
677
644
  ],
678
- "entity": "@payload.data"
645
+ "entity": "@payload.data",
646
+ "type": "data-grid",
647
+ "cols": 1.0,
648
+ "itemActions": [
649
+ {
650
+ "event": "VIEW",
651
+ "label": "View",
652
+ "variant": "secondary",
653
+ "icon": "eye"
654
+ },
655
+ {
656
+ "variant": "primary",
657
+ "icon": "send",
658
+ "label": "Send",
659
+ "event": "SEND"
660
+ },
661
+ {
662
+ "event": "MARK_PAID",
663
+ "label": "Mark Paid",
664
+ "icon": "check",
665
+ "variant": "primary"
666
+ },
667
+ {
668
+ "variant": "danger",
669
+ "icon": "x",
670
+ "label": "Void",
671
+ "event": "VOID"
672
+ },
673
+ {
674
+ "label": "Refund",
675
+ "event": "REFUND",
676
+ "variant": "danger",
677
+ "icon": "rotate-ccw"
678
+ }
679
+ ]
679
680
  }
680
681
  ],
681
- "type": "stack",
682
- "direction": "vertical",
683
- "gap": "md"
682
+ "gap": "md",
683
+ "direction": "vertical"
684
684
  }
685
685
  ]
686
686
  ]
@@ -750,20 +750,148 @@
750
750
  "render-ui",
751
751
  "main",
752
752
  {
753
- "dueAt": "@entity.dueAt",
754
- "from": {
755
- "name": "Your Company"
756
- },
757
- "notes": "@entity.notes",
758
- "issuedAt": "@entity.issuedAt",
759
- "status": "@entity.status",
760
- "items": [],
761
- "currency": "@entity.currency",
762
- "invoiceNumber": "@entity.invoiceNumber",
763
- "to": {
764
- "id": "@entity.customerId"
765
- },
766
- "type": "invoice"
753
+ "gap": "md",
754
+ "type": "stack",
755
+ "direction": "vertical",
756
+ "children": [
757
+ {
758
+ "gap": "sm",
759
+ "direction": "horizontal",
760
+ "type": "stack",
761
+ "children": [
762
+ {
763
+ "name": "receipt",
764
+ "type": "icon"
765
+ },
766
+ {
767
+ "type": "typography",
768
+ "variant": "h3",
769
+ "content": "@entity.invoiceNumber"
770
+ },
771
+ {
772
+ "label": "@entity.status",
773
+ "variant": "secondary",
774
+ "type": "badge"
775
+ }
776
+ ]
777
+ },
778
+ {
779
+ "type": "divider"
780
+ },
781
+ {
782
+ "type": "stack",
783
+ "direction": "horizontal",
784
+ "children": [
785
+ {
786
+ "gap": "xs",
787
+ "children": [
788
+ {
789
+ "type": "typography",
790
+ "color": "muted",
791
+ "content": "Issued",
792
+ "variant": "caption"
793
+ },
794
+ {
795
+ "type": "typography",
796
+ "variant": "body2",
797
+ "content": "@entity.issuedAt"
798
+ }
799
+ ],
800
+ "type": "stack",
801
+ "direction": "vertical"
802
+ },
803
+ {
804
+ "direction": "vertical",
805
+ "children": [
806
+ {
807
+ "content": "Due",
808
+ "type": "typography",
809
+ "color": "muted",
810
+ "variant": "caption"
811
+ },
812
+ {
813
+ "content": "@entity.dueAt",
814
+ "variant": "body2",
815
+ "type": "typography"
816
+ }
817
+ ],
818
+ "gap": "xs",
819
+ "type": "stack"
820
+ },
821
+ {
822
+ "direction": "vertical",
823
+ "type": "stack",
824
+ "gap": "xs",
825
+ "children": [
826
+ {
827
+ "content": "Currency",
828
+ "color": "muted",
829
+ "variant": "caption",
830
+ "type": "typography"
831
+ },
832
+ {
833
+ "content": "@entity.currency",
834
+ "variant": "body2",
835
+ "type": "typography"
836
+ }
837
+ ]
838
+ }
839
+ ],
840
+ "gap": "lg"
841
+ },
842
+ {
843
+ "type": "divider"
844
+ },
845
+ {
846
+ "content": "@entity.notes",
847
+ "variant": "body2",
848
+ "color": "muted",
849
+ "type": "typography"
850
+ },
851
+ {
852
+ "gap": "sm",
853
+ "children": [
854
+ {
855
+ "icon": "send",
856
+ "label": "Send",
857
+ "type": "button",
858
+ "action": "SEND",
859
+ "variant": "primary"
860
+ },
861
+ {
862
+ "label": "Mark Paid",
863
+ "action": "MARK_PAID",
864
+ "variant": "primary",
865
+ "type": "button",
866
+ "icon": "check"
867
+ },
868
+ {
869
+ "icon": "x",
870
+ "variant": "danger",
871
+ "action": "VOID",
872
+ "type": "button",
873
+ "label": "Void"
874
+ },
875
+ {
876
+ "icon": "rotate-ccw",
877
+ "action": "REFUND",
878
+ "label": "Refund",
879
+ "type": "button",
880
+ "variant": "danger"
881
+ },
882
+ {
883
+ "label": "Back",
884
+ "action": "INIT",
885
+ "variant": "secondary",
886
+ "type": "button",
887
+ "icon": "arrow-left"
888
+ }
889
+ ],
890
+ "direction": "horizontal",
891
+ "type": "stack",
892
+ "justify": "end"
893
+ }
894
+ ]
767
895
  }
768
896
  ]
769
897
  ]
@@ -843,8 +971,8 @@
843
971
  "@entity",
844
972
  {
845
973
  "emit": {
846
- "failure": "InvoiceUpdateFailed",
847
- "success": "InvoiceUpdated"
974
+ "success": "InvoiceUpdated",
975
+ "failure": "InvoiceUpdateFailed"
848
976
  }
849
977
  }
850
978
  ]
@@ -872,8 +1000,8 @@
872
1000
  "@entity",
873
1001
  {
874
1002
  "emit": {
875
- "failure": "InvoiceUpdateFailed",
876
- "success": "InvoiceUpdated"
1003
+ "success": "InvoiceUpdated",
1004
+ "failure": "InvoiceUpdateFailed"
877
1005
  }
878
1006
  }
879
1007
  ]
@@ -894,13 +1022,13 @@
894
1022
  "stripe",
895
1023
  "refund",
896
1024
  {
897
- "invoiceId": "@payload.invoiceId",
898
- "amount": "@payload.amount"
1025
+ "amount": "@payload.amount",
1026
+ "invoiceId": "@payload.invoiceId"
899
1027
  },
900
1028
  {
901
1029
  "emit": {
902
- "failure": "InvoiceRefundFailed",
903
- "success": "InvoiceRefunded"
1030
+ "success": "InvoiceRefunded",
1031
+ "failure": "InvoiceRefundFailed"
904
1032
  }
905
1033
  }
906
1034
  ]
@@ -932,9 +1060,9 @@
932
1060
  "render-ui",
933
1061
  "main",
934
1062
  {
935
- "message": "@payload.error",
936
1063
  "type": "alert",
937
- "variant": "error"
1064
+ "variant": "error",
1065
+ "message": "@payload.error"
938
1066
  }
939
1067
  ]
940
1068
  ]
@@ -949,8 +1077,8 @@
949
1077
  "InvoiceRecord",
950
1078
  {
951
1079
  "emit": {
952
- "success": "InvoiceLoaded",
953
- "failure": "InvoiceLoadFailed"
1080
+ "failure": "InvoiceLoadFailed",
1081
+ "success": "InvoiceLoaded"
954
1082
  }
955
1083
  }
956
1084
  ]
@@ -965,9 +1093,9 @@
965
1093
  "render-ui",
966
1094
  "main",
967
1095
  {
968
- "variant": "error",
1096
+ "type": "alert",
969
1097
  "message": "@payload.error",
970
- "type": "alert"
1098
+ "variant": "error"
971
1099
  }
972
1100
  ]
973
1101
  ]
@@ -982,8 +1110,8 @@
982
1110
  "InvoiceRecord",
983
1111
  {
984
1112
  "emit": {
985
- "success": "InvoiceLoaded",
986
- "failure": "InvoiceLoadFailed"
1113
+ "failure": "InvoiceLoadFailed",
1114
+ "success": "InvoiceLoaded"
987
1115
  }
988
1116
  }
989
1117
  ]
@@ -999,8 +1127,8 @@
999
1127
  "InvoiceRecord",
1000
1128
  {
1001
1129
  "emit": {
1002
- "failure": "InvoiceLoadFailed",
1003
- "success": "InvoiceLoaded"
1130
+ "success": "InvoiceLoaded",
1131
+ "failure": "InvoiceLoadFailed"
1004
1132
  }
1005
1133
  }
1006
1134
  ]
@@ -390,22 +390,22 @@
390
390
  "render-ui",
391
391
  "main",
392
392
  {
393
- "gap": "md",
394
- "align": "center",
395
393
  "className": "py-12",
394
+ "gap": "md",
396
395
  "direction": "vertical",
397
- "type": "stack",
398
396
  "children": [
399
397
  {
400
398
  "type": "spinner"
401
399
  },
402
400
  {
403
- "color": "muted",
404
401
  "type": "typography",
405
402
  "variant": "caption",
403
+ "color": "muted",
406
404
  "content": "Loading floor plan…"
407
405
  }
408
- ]
406
+ ],
407
+ "type": "stack",
408
+ "align": "center"
409
409
  }
410
410
  ]
411
411
  ]
@@ -419,61 +419,61 @@
419
419
  "render-ui",
420
420
  "main",
421
421
  {
422
- "type": "stack",
423
- "direction": "vertical",
424
422
  "children": [
425
423
  {
426
424
  "gap": "sm",
427
- "type": "stack",
428
425
  "children": [
429
426
  {
430
427
  "name": "layout-grid",
431
428
  "type": "icon"
432
429
  },
433
430
  {
434
- "type": "typography",
431
+ "variant": "h3",
435
432
  "content": "@config.title",
436
- "variant": "h3"
433
+ "type": "typography"
437
434
  }
438
435
  ],
439
- "direction": "horizontal"
436
+ "direction": "horizontal",
437
+ "type": "stack"
440
438
  },
441
439
  {
442
440
  "type": "divider"
443
441
  },
444
442
  {
445
- "height": "@config.canvasHeight",
446
- "onMove": "MOVE_TABLE",
447
- "onSelect": "SELECT_TABLE",
448
443
  "selectedId": "@entity.id",
449
- "width": "@config.canvasWidth",
444
+ "height": "@config.canvasHeight",
450
445
  "editable": true,
451
- "tables": "@payload.data",
452
- "type": "table-floor-plan"
446
+ "width": "@config.canvasWidth",
447
+ "type": "positioned-canvas",
448
+ "onSelect": "SELECT_TABLE",
449
+ "items": "@payload.data",
450
+ "onMove": "MOVE_TABLE"
453
451
  },
454
452
  {
455
- "gap": "sm",
456
- "justify": "end",
457
- "type": "stack",
458
- "direction": "horizontal",
459
453
  "children": [
460
454
  {
455
+ "type": "button",
461
456
  "label": "Seat Party",
457
+ "variant": "primary",
462
458
  "action": "SEAT",
463
- "type": "button",
464
- "icon": "users",
465
- "variant": "primary"
459
+ "icon": "users"
466
460
  },
467
461
  {
468
- "action": "CLEAR_TABLE",
469
462
  "type": "button",
463
+ "action": "CLEAR_TABLE",
470
464
  "icon": "eraser",
471
- "variant": "secondary",
472
- "label": "Clear Table"
465
+ "label": "Clear Table",
466
+ "variant": "secondary"
473
467
  }
474
- ]
468
+ ],
469
+ "gap": "sm",
470
+ "type": "stack",
471
+ "justify": "end",
472
+ "direction": "horizontal"
475
473
  }
476
474
  ],
475
+ "direction": "vertical",
476
+ "type": "stack",
477
477
  "gap": "md"
478
478
  }
479
479
  ]
@@ -539,14 +539,14 @@
539
539
  "update",
540
540
  "TableNode",
541
541
  {
542
- "y": "@payload.y",
543
542
  "x": "@payload.x",
543
+ "y": "@payload.y",
544
544
  "id": "@payload.id"
545
545
  },
546
546
  {
547
547
  "emit": {
548
- "success": "TableUpdated",
549
- "failure": "TableWriteFailed"
548
+ "failure": "TableWriteFailed",
549
+ "success": "TableUpdated"
550
550
  }
551
551
  }
552
552
  ]
@@ -582,10 +582,10 @@
582
582
  "update",
583
583
  "TableNode",
584
584
  {
585
- "id": "@payload.id",
585
+ "serverName": "@payload.serverName",
586
586
  "status": "seated",
587
587
  "partySize": "@payload.partySize",
588
- "serverName": "@payload.serverName"
588
+ "id": "@payload.id"
589
589
  },
590
590
  {
591
591
  "emit": {
@@ -621,8 +621,8 @@
621
621
  "update",
622
622
  "TableNode",
623
623
  {
624
- "id": "@payload.id",
625
624
  "status": "empty",
625
+ "id": "@payload.id",
626
626
  "partySize": 0.0
627
627
  },
628
628
  {
@@ -672,9 +672,9 @@
672
672
  "render-ui",
673
673
  "main",
674
674
  {
675
+ "variant": "error",
675
676
  "message": "@payload.error",
676
- "type": "alert",
677
- "variant": "error"
677
+ "type": "alert"
678
678
  }
679
679
  ]
680
680
  ]
@@ -707,10 +707,6 @@
707
707
  ]
708
708
  },
709
709
  "config": {
710
- "canvasWidth": {
711
- "type": "number",
712
- "default": 800.0
713
- },
714
710
  "canvasHeight": {
715
711
  "type": "number",
716
712
  "default": 600.0
@@ -718,6 +714,10 @@
718
714
  "title": {
719
715
  "type": "string",
720
716
  "default": "Floor Plan"
717
+ },
718
+ "canvasWidth": {
719
+ "type": "number",
720
+ "default": 800.0
721
721
  }
722
722
  },
723
723
  "scope": "collection"
@@ -1,5 +1,5 @@
1
1
  {
2
- "$generated": "2026-05-09T18:45:25.012Z",
2
+ "$generated": "2026-05-10T00:58:05.132Z",
3
3
  "$source": "tools/behavior-registry-sync",
4
4
  "totalBehaviors": 148,
5
5
  "atoms": 87,