@almadar/std 14.4.0 → 14.5.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.
Files changed (27) hide show
  1. package/behaviors/registry/app/organisms/std-ecommerce.orb +2583 -3921
  2. package/behaviors/registry/core/atoms/std-browse.orb +180 -45
  3. package/behaviors/registry/core/molecules/std-app-layout.orb +21 -16
  4. package/behaviors/registry/service/atoms/std-service-custom-bearer.orb +87 -133
  5. package/behaviors/registry/service/atoms/std-service-email.orb +101 -147
  6. package/behaviors/registry/service/atoms/std-service-github.orb +92 -143
  7. package/behaviors/registry/service/atoms/std-service-llm.orb +118 -157
  8. package/behaviors/registry/service/atoms/std-service-oauth.orb +128 -171
  9. package/behaviors/registry/service/atoms/std-service-redis.orb +92 -134
  10. package/behaviors/registry/service/atoms/std-service-storage.orb +120 -166
  11. package/behaviors/registry/service/atoms/std-service-stripe.orb +235 -193
  12. package/behaviors/registry/service/atoms/std-service-twilio.orb +127 -169
  13. package/behaviors/registry/service/atoms/std-service-youtube.orb +108 -151
  14. package/dist/behaviors/registry/app/organisms/std-ecommerce.orb +2583 -3921
  15. package/dist/behaviors/registry/core/atoms/std-browse.orb +180 -45
  16. package/dist/behaviors/registry/core/molecules/std-app-layout.orb +21 -16
  17. package/dist/behaviors/registry/service/atoms/std-service-custom-bearer.orb +87 -133
  18. package/dist/behaviors/registry/service/atoms/std-service-email.orb +101 -147
  19. package/dist/behaviors/registry/service/atoms/std-service-github.orb +92 -143
  20. package/dist/behaviors/registry/service/atoms/std-service-llm.orb +118 -157
  21. package/dist/behaviors/registry/service/atoms/std-service-oauth.orb +128 -171
  22. package/dist/behaviors/registry/service/atoms/std-service-redis.orb +92 -134
  23. package/dist/behaviors/registry/service/atoms/std-service-storage.orb +120 -166
  24. package/dist/behaviors/registry/service/atoms/std-service-stripe.orb +235 -193
  25. package/dist/behaviors/registry/service/atoms/std-service-twilio.orb +127 -169
  26. package/dist/behaviors/registry/service/atoms/std-service-youtube.orb +108 -151
  27. package/package.json +1 -1
@@ -75,63 +75,17 @@
75
75
  "emits": [
76
76
  {
77
77
  "event": "ServiceStorageLoaded",
78
- "description": "Fired when ServiceStorage finishes loading",
79
- "scope": "internal",
78
+ "scope": "external",
80
79
  "payloadSchema": [
81
80
  {
82
81
  "name": "id",
83
82
  "type": "string"
84
- },
85
- {
86
- "name": "name",
87
- "type": "string"
88
- },
89
- {
90
- "name": "description",
91
- "type": "string"
92
- },
93
- {
94
- "name": "status",
95
- "type": "string"
96
- },
97
- {
98
- "name": "createdAt",
99
- "type": "string"
100
- },
101
- {
102
- "name": "bucket",
103
- "type": "string"
104
- },
105
- {
106
- "name": "fileKey",
107
- "type": "string"
108
- },
109
- {
110
- "name": "prefix",
111
- "type": "string"
112
- },
113
- {
114
- "name": "content",
115
- "type": "string"
116
- },
117
- {
118
- "name": "storageStatus",
119
- "type": "string"
120
- },
121
- {
122
- "name": "result",
123
- "type": "string"
124
- },
125
- {
126
- "name": "error",
127
- "type": "string"
128
83
  }
129
84
  ]
130
85
  },
131
86
  {
132
87
  "event": "ServiceStorageLoadFailed",
133
- "description": "Fired when ServiceStorage fails to load",
134
- "scope": "internal",
88
+ "scope": "external",
135
89
  "payloadSchema": [
136
90
  {
137
91
  "name": "message",
@@ -141,7 +95,7 @@
141
95
  },
142
96
  {
143
97
  "event": "ServiceStorageStorageCompleted",
144
- "scope": "internal",
98
+ "scope": "external",
145
99
  "payloadSchema": [
146
100
  {
147
101
  "name": "result",
@@ -151,7 +105,7 @@
151
105
  },
152
106
  {
153
107
  "event": "ServiceStorageStorageFailed",
154
- "scope": "internal",
108
+ "scope": "external",
155
109
  "payloadSchema": [
156
110
  {
157
111
  "name": "error",
@@ -356,14 +310,12 @@
356
310
  "render-ui",
357
311
  "main",
358
312
  {
359
- "align": "stretch",
360
- "type": "stack",
313
+ "gap": "lg",
361
314
  "direction": "vertical",
315
+ "type": "stack",
362
316
  "children": [
363
317
  {
364
- "type": "stack",
365
318
  "gap": "md",
366
- "direction": "horizontal",
367
319
  "align": "center",
368
320
  "children": [
369
321
  {
@@ -375,7 +327,9 @@
375
327
  "type": "typography",
376
328
  "content": "ServiceStorage Storage"
377
329
  }
378
- ]
330
+ ],
331
+ "type": "stack",
332
+ "direction": "horizontal"
379
333
  },
380
334
  {
381
335
  "type": "divider"
@@ -385,55 +339,55 @@
385
339
  "type": "input"
386
340
  },
387
341
  {
388
- "type": "input",
389
- "placeholder": "path/to/file.txt"
342
+ "placeholder": "path/to/file.txt",
343
+ "type": "input"
390
344
  },
391
345
  {
392
- "type": "input",
393
- "placeholder": "path/prefix/"
346
+ "placeholder": "path/prefix/",
347
+ "type": "input"
394
348
  },
395
349
  {
396
- "placeholder": "File content...",
397
- "type": "textarea"
350
+ "type": "textarea",
351
+ "placeholder": "File content..."
398
352
  },
399
353
  {
354
+ "justify": "center",
400
355
  "children": [
401
356
  {
402
- "type": "button",
403
- "variant": "primary",
404
- "label": "Upload",
405
357
  "action": "UPLOAD_FILE",
406
- "icon": "upload"
358
+ "label": "Upload",
359
+ "variant": "primary",
360
+ "icon": "upload",
361
+ "type": "button"
407
362
  },
408
363
  {
364
+ "icon": "download",
365
+ "label": "Download",
409
366
  "action": "DOWNLOAD_FILE",
410
- "type": "button",
411
367
  "variant": "secondary",
412
- "icon": "download",
413
- "label": "Download"
368
+ "type": "button"
414
369
  },
415
370
  {
371
+ "label": "List",
416
372
  "variant": "secondary",
373
+ "action": "LIST_FILES",
417
374
  "icon": "list",
418
- "type": "button",
419
- "label": "List",
420
- "action": "LIST_FILES"
375
+ "type": "button"
421
376
  },
422
377
  {
423
378
  "type": "button",
424
379
  "variant": "danger",
380
+ "action": "DELETE_FILE",
425
381
  "icon": "trash-2",
426
- "label": "Delete",
427
- "action": "DELETE_FILE"
382
+ "label": "Delete"
428
383
  }
429
384
  ],
430
- "justify": "center",
431
385
  "type": "stack",
432
- "gap": "sm",
433
- "direction": "horizontal"
386
+ "direction": "horizontal",
387
+ "gap": "sm"
434
388
  }
435
389
  ],
436
- "gap": "lg"
390
+ "align": "stretch"
437
391
  }
438
392
  ]
439
393
  ]
@@ -447,9 +401,9 @@
447
401
  "render-ui",
448
402
  "main",
449
403
  {
450
- "message": "Executing storage operation on servicestorage...",
404
+ "type": "loading-state",
451
405
  "title": "Processing...",
452
- "type": "loading-state"
406
+ "message": "Executing storage operation on servicestorage..."
453
407
  }
454
408
  ],
455
409
  [
@@ -457,14 +411,14 @@
457
411
  "storage",
458
412
  "upload",
459
413
  {
414
+ "bucket": "@entity.bucket",
460
415
  "content": "@entity.content",
461
- "key": "@entity.fileKey",
462
- "bucket": "@entity.bucket"
416
+ "key": "@entity.fileKey"
463
417
  },
464
418
  {
465
419
  "emit": {
466
- "failure": "ServiceStorageStorageFailed",
467
- "success": "ServiceStorageStorageCompleted"
420
+ "success": "ServiceStorageStorageCompleted",
421
+ "failure": "ServiceStorageStorageFailed"
468
422
  }
469
423
  }
470
424
  ]
@@ -479,9 +433,9 @@
479
433
  "render-ui",
480
434
  "main",
481
435
  {
436
+ "title": "Processing...",
482
437
  "message": "Executing storage operation on servicestorage...",
483
- "type": "loading-state",
484
- "title": "Processing..."
438
+ "type": "loading-state"
485
439
  }
486
440
  ],
487
441
  [
@@ -489,8 +443,8 @@
489
443
  "storage",
490
444
  "download",
491
445
  {
492
- "bucket": "@entity.bucket",
493
- "key": "@entity.fileKey"
446
+ "key": "@entity.fileKey",
447
+ "bucket": "@entity.bucket"
494
448
  },
495
449
  {
496
450
  "emit": {
@@ -510,9 +464,9 @@
510
464
  "render-ui",
511
465
  "main",
512
466
  {
513
- "message": "Executing storage operation on servicestorage...",
514
467
  "title": "Processing...",
515
- "type": "loading-state"
468
+ "type": "loading-state",
469
+ "message": "Executing storage operation on servicestorage..."
516
470
  }
517
471
  ],
518
472
  [
@@ -520,13 +474,13 @@
520
474
  "storage",
521
475
  "list",
522
476
  {
523
- "bucket": "@entity.bucket",
524
- "prefix": "@entity.prefix"
477
+ "prefix": "@entity.prefix",
478
+ "bucket": "@entity.bucket"
525
479
  },
526
480
  {
527
481
  "emit": {
528
- "success": "ServiceStorageStorageCompleted",
529
- "failure": "ServiceStorageStorageFailed"
482
+ "failure": "ServiceStorageStorageFailed",
483
+ "success": "ServiceStorageStorageCompleted"
530
484
  }
531
485
  }
532
486
  ]
@@ -542,8 +496,8 @@
542
496
  "main",
543
497
  {
544
498
  "title": "Processing...",
545
- "type": "loading-state",
546
- "message": "Executing storage operation on servicestorage..."
499
+ "message": "Executing storage operation on servicestorage...",
500
+ "type": "loading-state"
547
501
  }
548
502
  ],
549
503
  [
@@ -556,8 +510,8 @@
556
510
  },
557
511
  {
558
512
  "emit": {
559
- "failure": "ServiceStorageStorageFailed",
560
- "success": "ServiceStorageStorageCompleted"
513
+ "success": "ServiceStorageStorageCompleted",
514
+ "failure": "ServiceStorageStorageFailed"
561
515
  }
562
516
  }
563
517
  ]
@@ -582,32 +536,32 @@
582
536
  "render-ui",
583
537
  "main",
584
538
  {
585
- "gap": "lg",
539
+ "align": "center",
586
540
  "type": "stack",
541
+ "gap": "lg",
587
542
  "direction": "vertical",
588
- "align": "center",
589
543
  "children": [
590
544
  {
591
- "type": "icon",
592
- "name": "check-circle"
545
+ "name": "check-circle",
546
+ "type": "icon"
593
547
  },
594
548
  {
549
+ "variant": "success",
595
550
  "message": "Operation completed successfully",
596
- "type": "alert",
597
- "variant": "success"
551
+ "type": "alert"
598
552
  },
599
553
  {
600
554
  "content": "@entity.result",
601
- "color": "muted",
602
555
  "type": "typography",
603
- "variant": "body"
556
+ "variant": "body",
557
+ "color": "muted"
604
558
  },
605
559
  {
560
+ "variant": "ghost",
606
561
  "action": "RESET",
607
562
  "icon": "rotate-ccw",
608
563
  "type": "button",
609
- "label": "Back",
610
- "variant": "ghost"
564
+ "label": "Back"
611
565
  }
612
566
  ]
613
567
  }
@@ -633,24 +587,24 @@
633
587
  "render-ui",
634
588
  "main",
635
589
  {
636
- "direction": "vertical",
590
+ "type": "stack",
637
591
  "children": [
638
592
  {
639
- "title": "Operation Failed",
640
593
  "message": "@entity.error",
594
+ "title": "Operation Failed",
641
595
  "type": "error-state"
642
596
  },
643
597
  {
644
- "label": "Back",
645
598
  "variant": "ghost",
646
- "icon": "rotate-ccw",
599
+ "action": "RESET",
647
600
  "type": "button",
648
- "action": "RESET"
601
+ "label": "Back",
602
+ "icon": "rotate-ccw"
649
603
  }
650
604
  ],
651
- "type": "stack",
652
- "gap": "lg",
653
- "align": "center"
605
+ "direction": "vertical",
606
+ "align": "center",
607
+ "gap": "lg"
654
608
  }
655
609
  ]
656
610
  ]
@@ -670,31 +624,30 @@
670
624
  "main",
671
625
  {
672
626
  "direction": "vertical",
673
- "type": "stack",
674
627
  "children": [
675
628
  {
629
+ "direction": "horizontal",
676
630
  "children": [
677
631
  {
678
632
  "type": "icon",
679
633
  "name": "hard-drive"
680
634
  },
681
635
  {
682
- "content": "ServiceStorage Storage",
683
636
  "type": "typography",
637
+ "content": "ServiceStorage Storage",
684
638
  "variant": "h2"
685
639
  }
686
640
  ],
687
641
  "gap": "md",
688
- "direction": "horizontal",
689
- "type": "stack",
690
- "align": "center"
642
+ "align": "center",
643
+ "type": "stack"
691
644
  },
692
645
  {
693
646
  "type": "divider"
694
647
  },
695
648
  {
696
- "type": "input",
697
- "placeholder": "bucket-name"
649
+ "placeholder": "bucket-name",
650
+ "type": "input"
698
651
  },
699
652
  {
700
653
  "type": "input",
@@ -705,48 +658,49 @@
705
658
  "placeholder": "path/prefix/"
706
659
  },
707
660
  {
708
- "type": "textarea",
709
- "placeholder": "File content..."
661
+ "placeholder": "File content...",
662
+ "type": "textarea"
710
663
  },
711
664
  {
712
665
  "direction": "horizontal",
713
- "justify": "center",
666
+ "gap": "sm",
714
667
  "children": [
715
668
  {
669
+ "type": "button",
716
670
  "action": "UPLOAD_FILE",
717
- "icon": "upload",
718
671
  "label": "Upload",
719
- "type": "button",
720
- "variant": "primary"
672
+ "variant": "primary",
673
+ "icon": "upload"
721
674
  },
722
675
  {
723
- "type": "button",
724
- "label": "Download",
725
- "action": "DOWNLOAD_FILE",
726
676
  "variant": "secondary",
727
- "icon": "download"
677
+ "icon": "download",
678
+ "action": "DOWNLOAD_FILE",
679
+ "type": "button",
680
+ "label": "Download"
728
681
  },
729
682
  {
730
683
  "action": "LIST_FILES",
731
- "type": "button",
732
684
  "variant": "secondary",
733
- "icon": "list",
734
- "label": "List"
685
+ "label": "List",
686
+ "type": "button",
687
+ "icon": "list"
735
688
  },
736
689
  {
737
- "label": "Delete",
690
+ "type": "button",
738
691
  "icon": "trash-2",
739
692
  "action": "DELETE_FILE",
740
- "type": "button",
741
- "variant": "danger"
693
+ "variant": "danger",
694
+ "label": "Delete"
742
695
  }
743
696
  ],
744
- "type": "stack",
745
- "gap": "sm"
697
+ "justify": "center",
698
+ "type": "stack"
746
699
  }
747
700
  ],
748
- "align": "stretch",
749
- "gap": "lg"
701
+ "type": "stack",
702
+ "gap": "lg",
703
+ "align": "stretch"
750
704
  }
751
705
  ]
752
706
  ]
@@ -766,6 +720,8 @@
766
720
  "main",
767
721
  {
768
722
  "direction": "vertical",
723
+ "type": "stack",
724
+ "align": "stretch",
769
725
  "children": [
770
726
  {
771
727
  "direction": "horizontal",
@@ -774,13 +730,13 @@
774
730
  "align": "center",
775
731
  "children": [
776
732
  {
777
- "name": "hard-drive",
778
- "type": "icon"
733
+ "type": "icon",
734
+ "name": "hard-drive"
779
735
  },
780
736
  {
781
737
  "variant": "h2",
782
- "type": "typography",
783
- "content": "ServiceStorage Storage"
738
+ "content": "ServiceStorage Storage",
739
+ "type": "typography"
784
740
  }
785
741
  ]
786
742
  },
@@ -788,12 +744,12 @@
788
744
  "type": "divider"
789
745
  },
790
746
  {
791
- "placeholder": "bucket-name",
792
- "type": "input"
747
+ "type": "input",
748
+ "placeholder": "bucket-name"
793
749
  },
794
750
  {
795
- "placeholder": "path/to/file.txt",
796
- "type": "input"
751
+ "type": "input",
752
+ "placeholder": "path/to/file.txt"
797
753
  },
798
754
  {
799
755
  "placeholder": "path/prefix/",
@@ -804,45 +760,43 @@
804
760
  "type": "textarea"
805
761
  },
806
762
  {
807
- "type": "stack",
808
763
  "justify": "center",
809
764
  "gap": "sm",
765
+ "type": "stack",
766
+ "direction": "horizontal",
810
767
  "children": [
811
768
  {
769
+ "type": "button",
770
+ "label": "Upload",
812
771
  "action": "UPLOAD_FILE",
813
772
  "variant": "primary",
814
- "icon": "upload",
815
- "type": "button",
816
- "label": "Upload"
773
+ "icon": "upload"
817
774
  },
818
775
  {
776
+ "action": "DOWNLOAD_FILE",
819
777
  "variant": "secondary",
778
+ "type": "button",
820
779
  "label": "Download",
821
- "icon": "download",
822
- "action": "DOWNLOAD_FILE",
823
- "type": "button"
780
+ "icon": "download"
824
781
  },
825
782
  {
783
+ "action": "LIST_FILES",
826
784
  "type": "button",
827
785
  "label": "List",
828
- "action": "LIST_FILES",
829
786
  "variant": "secondary",
830
787
  "icon": "list"
831
788
  },
832
789
  {
833
- "variant": "danger",
834
790
  "icon": "trash-2",
791
+ "action": "DELETE_FILE",
835
792
  "type": "button",
836
- "label": "Delete",
837
- "action": "DELETE_FILE"
793
+ "variant": "danger",
794
+ "label": "Delete"
838
795
  }
839
- ],
840
- "direction": "horizontal"
796
+ ]
841
797
  }
842
798
  ],
843
- "type": "stack",
844
- "gap": "lg",
845
- "align": "stretch"
799
+ "gap": "lg"
846
800
  }
847
801
  ]
848
802
  ]