@almadar/std 8.4.0 → 8.4.2

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.
@@ -314,38 +314,37 @@
314
314
  "render-ui",
315
315
  "main",
316
316
  {
317
- "gap": "lg",
318
317
  "children": [
319
318
  {
320
- "justify": "between",
321
319
  "gap": "md",
320
+ "type": "stack",
321
+ "justify": "between",
322
+ "direction": "horizontal",
322
323
  "children": [
323
324
  {
325
+ "direction": "horizontal",
324
326
  "type": "stack",
327
+ "gap": "md",
325
328
  "children": [
326
329
  {
327
- "type": "icon",
328
- "name": "tag"
330
+ "name": "tag",
331
+ "type": "icon"
329
332
  },
330
333
  {
334
+ "variant": "h2",
331
335
  "type": "typography",
332
- "content": "AgentClassifier",
333
- "variant": "h2"
336
+ "content": "AgentClassifier"
334
337
  }
335
- ],
336
- "direction": "horizontal",
337
- "gap": "md"
338
+ ]
338
339
  },
339
340
  {
340
341
  "action": "CLASSIFY",
341
342
  "label": "Open",
342
- "icon": "tag",
343
343
  "variant": "primary",
344
- "type": "button"
344
+ "type": "button",
345
+ "icon": "tag"
345
346
  }
346
- ],
347
- "type": "stack",
348
- "direction": "horizontal"
347
+ ]
349
348
  },
350
349
  {
351
350
  "type": "divider"
@@ -353,12 +352,13 @@
353
352
  {
354
353
  "type": "empty-state",
355
354
  "icon": "tag",
356
- "title": "Nothing open",
357
- "description": "Click Open to view details in a modal overlay."
355
+ "description": "Click Open to view details in a modal overlay.",
356
+ "title": "Nothing open"
358
357
  }
359
358
  ],
360
- "direction": "vertical",
361
- "type": "stack"
359
+ "gap": "lg",
360
+ "type": "stack",
361
+ "direction": "vertical"
362
362
  }
363
363
  ]
364
364
  ]
@@ -372,66 +372,66 @@
372
372
  "render-ui",
373
373
  "modal",
374
374
  {
375
- "gap": "md",
376
- "direction": "vertical",
377
375
  "type": "stack",
378
376
  "children": [
379
377
  {
380
- "type": "stack",
378
+ "gap": "sm",
379
+ "direction": "horizontal",
381
380
  "children": [
382
381
  {
383
382
  "type": "icon",
384
383
  "name": "tag"
385
384
  },
386
385
  {
387
- "content": "AgentClassifier",
388
386
  "variant": "h3",
387
+ "content": "AgentClassifier",
389
388
  "type": "typography"
390
389
  }
391
390
  ],
392
- "direction": "horizontal",
393
- "gap": "sm"
391
+ "type": "stack"
394
392
  },
395
393
  {
396
394
  "type": "divider"
397
395
  },
398
396
  {
397
+ "direction": "horizontal",
398
+ "gap": "sm",
399
399
  "children": [
400
400
  {
401
- "type": "typography",
402
401
  "variant": "caption",
402
+ "type": "typography",
403
403
  "content": "Categories:"
404
404
  },
405
405
  {
406
- "variant": "secondary",
407
406
  "type": "badge",
407
+ "variant": "secondary",
408
408
  "label": "positive"
409
409
  },
410
410
  {
411
411
  "label": "negative",
412
- "variant": "secondary",
413
- "type": "badge"
412
+ "type": "badge",
413
+ "variant": "secondary"
414
414
  },
415
415
  {
416
- "type": "badge",
417
416
  "variant": "secondary",
417
+ "type": "badge",
418
418
  "label": "neutral"
419
419
  }
420
420
  ],
421
- "direction": "horizontal",
422
- "type": "stack",
423
- "gap": "sm"
421
+ "type": "stack"
424
422
  },
425
423
  {
426
- "cancelEvent": "CLOSE",
427
424
  "mode": "create",
428
- "type": "form-section",
429
425
  "submitEvent": "SAVE",
426
+ "cancelEvent": "CLOSE",
427
+ "type": "form-section",
430
428
  "fields": [
431
429
  "input"
432
430
  ]
433
431
  }
434
- ]
432
+ ],
433
+ "direction": "vertical",
434
+ "gap": "md"
435
435
  }
436
436
  ]
437
437
  ]
@@ -459,35 +459,36 @@
459
459
  "render-ui",
460
460
  "main",
461
461
  {
462
+ "direction": "vertical",
462
463
  "children": [
463
464
  {
464
- "type": "stack",
465
465
  "direction": "horizontal",
466
466
  "children": [
467
467
  {
468
468
  "type": "stack",
469
- "direction": "horizontal",
470
- "gap": "md",
471
469
  "children": [
472
470
  {
473
- "name": "tag",
474
- "type": "icon"
471
+ "type": "icon",
472
+ "name": "tag"
475
473
  },
476
474
  {
475
+ "content": "AgentClassifier",
477
476
  "variant": "h2",
478
- "type": "typography",
479
- "content": "AgentClassifier"
477
+ "type": "typography"
480
478
  }
481
- ]
479
+ ],
480
+ "direction": "horizontal",
481
+ "gap": "md"
482
482
  },
483
483
  {
484
- "action": "CLASSIFY",
485
- "label": "Open",
486
484
  "icon": "tag",
485
+ "label": "Open",
486
+ "action": "CLASSIFY",
487
487
  "type": "button",
488
488
  "variant": "primary"
489
489
  }
490
490
  ],
491
+ "type": "stack",
491
492
  "justify": "between",
492
493
  "gap": "md"
493
494
  },
@@ -496,13 +497,12 @@
496
497
  },
497
498
  {
498
499
  "description": "Click Open to view details in a modal overlay.",
499
- "icon": "tag",
500
500
  "type": "empty-state",
501
+ "icon": "tag",
501
502
  "title": "Nothing open"
502
503
  }
503
504
  ],
504
505
  "type": "stack",
505
- "direction": "vertical",
506
506
  "gap": "lg"
507
507
  }
508
508
  ]
@@ -520,8 +520,8 @@
520
520
  "@payload.data",
521
521
  {
522
522
  "emit": {
523
- "failure": "AgentClassifierSaveFailed",
524
- "success": "AgentClassifierSaved"
523
+ "success": "AgentClassifierSaved",
524
+ "failure": "AgentClassifierSaveFailed"
525
525
  }
526
526
  }
527
527
  ],
@@ -542,39 +542,38 @@
542
542
  "render-ui",
543
543
  "main",
544
544
  {
545
- "direction": "vertical",
546
- "gap": "lg",
547
545
  "type": "stack",
546
+ "direction": "vertical",
548
547
  "children": [
549
548
  {
550
- "gap": "md",
551
- "direction": "horizontal",
552
- "justify": "between",
553
549
  "children": [
554
550
  {
555
551
  "direction": "horizontal",
552
+ "type": "stack",
553
+ "gap": "md",
556
554
  "children": [
557
555
  {
558
- "name": "tag",
559
- "type": "icon"
556
+ "type": "icon",
557
+ "name": "tag"
560
558
  },
561
559
  {
562
- "type": "typography",
560
+ "variant": "h2",
563
561
  "content": "AgentClassifier",
564
- "variant": "h2"
562
+ "type": "typography"
565
563
  }
566
- ],
567
- "type": "stack",
568
- "gap": "md"
564
+ ]
569
565
  },
570
566
  {
571
567
  "type": "button",
568
+ "icon": "tag",
572
569
  "action": "CLASSIFY",
573
570
  "label": "Open",
574
- "icon": "tag",
575
571
  "variant": "primary"
576
572
  }
577
573
  ],
574
+ "gap": "md",
575
+ "direction": "horizontal",
576
+ "justify": "between",
578
577
  "type": "stack"
579
578
  },
580
579
  {
@@ -583,10 +582,11 @@
583
582
  {
584
583
  "description": "Click Open to view details in a modal overlay.",
585
584
  "title": "Nothing open",
586
- "icon": "tag",
587
- "type": "empty-state"
585
+ "type": "empty-state",
586
+ "icon": "tag"
588
587
  }
589
- ]
588
+ ],
589
+ "gap": "lg"
590
590
  }
591
591
  ]
592
592
  ]
@@ -769,8 +769,8 @@
769
769
  "AgentClassifier",
770
770
  {
771
771
  "emit": {
772
- "failure": "AgentClassifierLoadFailed",
773
- "success": "AgentClassifierLoaded"
772
+ "success": "AgentClassifierLoaded",
773
+ "failure": "AgentClassifierLoadFailed"
774
774
  }
775
775
  }
776
776
  ]
@@ -795,15 +795,17 @@
795
795
  "render-ui",
796
796
  "main",
797
797
  {
798
+ "direction": "vertical",
798
799
  "gap": "lg",
799
800
  "type": "stack",
800
- "direction": "vertical",
801
801
  "children": [
802
802
  {
803
+ "align": "center",
804
+ "gap": "md",
805
+ "justify": "between",
803
806
  "children": [
804
807
  {
805
- "direction": "horizontal",
806
- "gap": "md",
808
+ "align": "center",
807
809
  "children": [
808
810
  {
809
811
  "type": "icon",
@@ -816,37 +818,35 @@
816
818
  }
817
819
  ],
818
820
  "type": "stack",
819
- "align": "center"
821
+ "direction": "horizontal",
822
+ "gap": "md"
820
823
  },
821
824
  {
822
- "label": "Dismiss",
823
825
  "variant": "ghost",
824
826
  "type": "button",
825
827
  "action": "HIDE",
828
+ "label": "Dismiss",
826
829
  "icon": "x"
827
830
  }
828
831
  ],
829
832
  "type": "stack",
830
- "direction": "horizontal",
831
- "gap": "md",
832
- "align": "center",
833
- "justify": "between"
833
+ "direction": "horizontal"
834
834
  },
835
835
  {
836
836
  "type": "divider"
837
837
  },
838
838
  {
839
839
  "type": "alert",
840
- "variant": "@entity.notificationType",
841
- "message": "@entity.message"
840
+ "message": "@entity.message",
841
+ "variant": "@entity.notificationType"
842
842
  },
843
843
  {
844
844
  "type": "toast-slot"
845
845
  },
846
846
  {
847
- "message": "@entity.message",
847
+ "type": "alert",
848
848
  "variant": "warning",
849
- "type": "alert"
849
+ "message": "@entity.message"
850
850
  }
851
851
  ]
852
852
  }
@@ -872,50 +872,49 @@
872
872
  "render-ui",
873
873
  "main",
874
874
  {
875
- "direction": "vertical",
876
875
  "gap": "lg",
877
- "type": "stack",
876
+ "direction": "vertical",
878
877
  "children": [
879
878
  {
880
- "type": "stack",
879
+ "gap": "md",
880
+ "align": "center",
881
881
  "justify": "between",
882
- "direction": "horizontal",
883
882
  "children": [
884
883
  {
884
+ "gap": "md",
885
+ "direction": "horizontal",
886
+ "type": "stack",
887
+ "align": "center",
885
888
  "children": [
886
889
  {
887
- "name": "tag",
888
- "type": "icon"
890
+ "type": "icon",
891
+ "name": "tag"
889
892
  },
890
893
  {
891
894
  "content": "AgentClassifier Result",
892
895
  "variant": "h2",
893
896
  "type": "typography"
894
897
  }
895
- ],
896
- "direction": "horizontal",
897
- "align": "center",
898
- "type": "stack",
899
- "gap": "md"
898
+ ]
900
899
  },
901
900
  {
902
- "variant": "ghost",
903
901
  "action": "HIDE",
902
+ "variant": "ghost",
904
903
  "label": "Dismiss",
905
- "type": "button",
906
- "icon": "x"
904
+ "icon": "x",
905
+ "type": "button"
907
906
  }
908
907
  ],
909
- "gap": "md",
910
- "align": "center"
908
+ "direction": "horizontal",
909
+ "type": "stack"
911
910
  },
912
911
  {
913
912
  "type": "divider"
914
913
  },
915
914
  {
916
915
  "variant": "@entity.notificationType",
917
- "type": "alert",
918
- "message": "@entity.message"
916
+ "message": "@entity.message",
917
+ "type": "alert"
919
918
  },
920
919
  {
921
920
  "type": "toast-slot"
@@ -925,7 +924,8 @@
925
924
  "type": "alert",
926
925
  "variant": "warning"
927
926
  }
928
- ]
927
+ ],
928
+ "type": "stack"
929
929
  }
930
930
  ]
931
931
  ]
@@ -956,12 +956,13 @@
956
956
  "scope": "internal",
957
957
  "payload": [
958
958
  {
959
- "name": "category",
960
- "type": "string"
959
+ "name": "message",
960
+ "type": "string",
961
+ "required": true
961
962
  },
962
963
  {
963
- "name": "confidence",
964
- "type": "number"
964
+ "name": "notificationType",
965
+ "type": "string"
965
966
  }
966
967
  ]
967
968
  },
@@ -1160,10 +1161,10 @@
1160
1161
  "render-ui",
1161
1162
  "main",
1162
1163
  {
1163
- "icon": "tag",
1164
1164
  "title": "Classifier",
1165
+ "description": "Classifier is ready",
1165
1166
  "type": "empty-state",
1166
- "description": "Classifier is ready"
1167
+ "icon": "tag"
1167
1168
  }
1168
1169
  ]
1169
1170
  ]
@@ -1216,7 +1217,11 @@
1216
1217
  ],
1217
1218
  [
1218
1219
  "emit",
1219
- "SHOW"
1220
+ "SHOW",
1221
+ {
1222
+ "notificationType": "success",
1223
+ "message": "Classification complete"
1224
+ }
1220
1225
  ]
1221
1226
  ]
1222
1227
  },