@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
@@ -76,60 +76,17 @@
76
76
  "emits": [
77
77
  {
78
78
  "event": "ServiceOauthLoaded",
79
- "description": "Fired when ServiceOauth finishes loading",
80
- "scope": "internal",
79
+ "scope": "external",
81
80
  "payloadSchema": [
82
81
  {
83
82
  "name": "id",
84
- "type": "string",
85
- "required": true
86
- },
87
- {
88
- "name": "provider",
89
- "type": "string"
90
- },
91
- {
92
- "name": "authUrl",
93
- "type": "string"
94
- },
95
- {
96
- "name": "accessToken",
97
- "type": "string"
98
- },
99
- {
100
- "name": "refreshToken",
101
- "type": "string"
102
- },
103
- {
104
- "name": "authStatus",
105
- "type": "string"
106
- },
107
- {
108
- "name": "error",
109
- "type": "string"
110
- },
111
- {
112
- "name": "name",
113
- "type": "string"
114
- },
115
- {
116
- "name": "description",
117
- "type": "string"
118
- },
119
- {
120
- "name": "status",
121
- "type": "string"
122
- },
123
- {
124
- "name": "createdAt",
125
83
  "type": "string"
126
84
  }
127
85
  ]
128
86
  },
129
87
  {
130
88
  "event": "ServiceOauthLoadFailed",
131
- "description": "Fired when ServiceOauth fails to load",
132
- "scope": "internal",
89
+ "scope": "external",
133
90
  "payloadSchema": [
134
91
  {
135
92
  "name": "message",
@@ -139,7 +96,7 @@
139
96
  },
140
97
  {
141
98
  "event": "ServiceOauthOauthCompleted",
142
- "scope": "internal",
99
+ "scope": "external",
143
100
  "payloadSchema": [
144
101
  {
145
102
  "name": "result",
@@ -149,7 +106,7 @@
149
106
  },
150
107
  {
151
108
  "event": "ServiceOauthOauthFailed",
152
- "scope": "internal",
109
+ "scope": "external",
153
110
  "payloadSchema": [
154
111
  {
155
112
  "name": "error",
@@ -374,25 +331,23 @@
374
331
  "main",
375
332
  {
376
333
  "type": "stack",
377
- "align": "center",
378
- "gap": "lg",
379
334
  "children": [
380
335
  {
381
- "direction": "horizontal",
382
- "gap": "md",
383
336
  "type": "stack",
384
337
  "children": [
385
338
  {
386
- "type": "icon",
387
- "name": "lock"
339
+ "name": "lock",
340
+ "type": "icon"
388
341
  },
389
342
  {
390
- "type": "typography",
391
343
  "content": "Sign In",
392
- "variant": "h2"
344
+ "variant": "h2",
345
+ "type": "typography"
393
346
  }
394
347
  ],
395
- "align": "center"
348
+ "gap": "md",
349
+ "align": "center",
350
+ "direction": "horizontal"
396
351
  },
397
352
  {
398
353
  "type": "divider"
@@ -401,28 +356,30 @@
401
356
  "type": "select",
402
357
  "options": [
403
358
  {
404
- "value": "google",
405
- "label": "Google"
359
+ "label": "Google",
360
+ "value": "google"
406
361
  },
407
362
  {
408
363
  "value": "github",
409
364
  "label": "GitHub"
410
365
  },
411
366
  {
412
- "value": "microsoft",
413
- "label": "Microsoft"
367
+ "label": "Microsoft",
368
+ "value": "microsoft"
414
369
  }
415
370
  ]
416
371
  },
417
372
  {
373
+ "action": "LOGIN",
418
374
  "type": "button",
375
+ "variant": "primary",
419
376
  "label": "Login",
420
- "action": "LOGIN",
421
- "icon": "log-in",
422
- "variant": "primary"
377
+ "icon": "log-in"
423
378
  }
424
379
  ],
425
- "direction": "vertical"
380
+ "gap": "lg",
381
+ "direction": "vertical",
382
+ "align": "center"
426
383
  }
427
384
  ]
428
385
  ]
@@ -436,9 +393,9 @@
436
393
  "render-ui",
437
394
  "main",
438
395
  {
396
+ "type": "loading-state",
439
397
  "title": "Authorizing...",
440
- "message": "Redirecting to provider for authorization.",
441
- "type": "loading-state"
398
+ "message": "Redirecting to provider for authorization."
442
399
  }
443
400
  ],
444
401
  [
@@ -475,9 +432,6 @@
475
432
  "render-ui",
476
433
  "main",
477
434
  {
478
- "direction": "vertical",
479
- "gap": "lg",
480
- "type": "stack",
481
435
  "align": "center",
482
436
  "children": [
483
437
  {
@@ -490,23 +444,26 @@
490
444
  "content": "Authorization Required"
491
445
  },
492
446
  {
493
- "type": "typography",
494
447
  "variant": "body",
495
448
  "color": "muted",
449
+ "type": "typography",
496
450
  "content": "@entity.authUrl"
497
451
  },
498
452
  {
499
- "type": "input",
500
- "placeholder": "Paste authorization code here"
453
+ "placeholder": "Paste authorization code here",
454
+ "type": "input"
501
455
  },
502
456
  {
503
- "action": "CALLBACK",
504
457
  "type": "button",
505
- "icon": "check",
506
458
  "label": "Submit",
507
- "variant": "primary"
459
+ "variant": "primary",
460
+ "icon": "check",
461
+ "action": "CALLBACK"
508
462
  }
509
- ]
463
+ ],
464
+ "type": "stack",
465
+ "gap": "lg",
466
+ "direction": "vertical"
510
467
  }
511
468
  ]
512
469
  ]
@@ -525,8 +482,8 @@
525
482
  },
526
483
  {
527
484
  "emit": {
528
- "failure": "ServiceOauthOauthFailed",
529
- "success": "ServiceOauthOauthCompleted"
485
+ "success": "ServiceOauthOauthCompleted",
486
+ "failure": "ServiceOauthOauthFailed"
530
487
  }
531
488
  }
532
489
  ],
@@ -534,43 +491,43 @@
534
491
  "render-ui",
535
492
  "main",
536
493
  {
537
- "direction": "vertical",
538
494
  "align": "center",
539
- "gap": "lg",
495
+ "direction": "vertical",
540
496
  "children": [
541
497
  {
542
498
  "name": "check-circle",
543
499
  "type": "icon"
544
500
  },
545
501
  {
546
- "type": "alert",
547
502
  "variant": "success",
548
- "message": "Authenticated successfully"
503
+ "message": "Authenticated successfully",
504
+ "type": "alert"
549
505
  },
550
506
  {
551
507
  "justify": "center",
552
- "gap": "sm",
553
508
  "direction": "horizontal",
509
+ "gap": "sm",
554
510
  "type": "stack",
555
511
  "children": [
556
512
  {
557
- "icon": "refresh-cw",
513
+ "label": "Refresh Token",
558
514
  "type": "button",
559
- "action": "REFRESH",
560
515
  "variant": "ghost",
561
- "label": "Refresh Token"
516
+ "action": "REFRESH",
517
+ "icon": "refresh-cw"
562
518
  },
563
519
  {
520
+ "action": "LOGOUT",
564
521
  "variant": "ghost",
565
- "icon": "log-out",
566
- "label": "Logout",
567
522
  "type": "button",
568
- "action": "LOGOUT"
523
+ "label": "Logout",
524
+ "icon": "log-out"
569
525
  }
570
526
  ]
571
527
  }
572
528
  ],
573
- "type": "stack"
529
+ "type": "stack",
530
+ "gap": "lg"
574
531
  }
575
532
  ]
576
533
  ]
@@ -589,25 +546,25 @@
589
546
  "render-ui",
590
547
  "main",
591
548
  {
592
- "align": "center",
593
549
  "direction": "vertical",
594
- "type": "stack",
595
550
  "children": [
596
551
  {
597
- "type": "error-state",
598
552
  "title": "Authentication Failed",
553
+ "onRetry": "RETRY",
599
554
  "message": "@entity.error",
600
- "onRetry": "RETRY"
555
+ "type": "error-state"
601
556
  },
602
557
  {
603
- "action": "RETRY",
604
- "label": "Try Again",
605
- "type": "button",
606
558
  "variant": "primary",
607
- "icon": "rotate-ccw"
559
+ "icon": "rotate-ccw",
560
+ "type": "button",
561
+ "action": "RETRY",
562
+ "label": "Try Again"
608
563
  }
609
564
  ],
610
- "gap": "lg"
565
+ "type": "stack",
566
+ "gap": "lg",
567
+ "align": "center"
611
568
  }
612
569
  ]
613
570
  ]
@@ -637,41 +594,41 @@
637
594
  "main",
638
595
  {
639
596
  "type": "stack",
640
- "direction": "vertical",
641
- "align": "center",
642
597
  "children": [
643
598
  {
644
- "name": "check-circle",
645
- "type": "icon"
599
+ "type": "icon",
600
+ "name": "check-circle"
646
601
  },
647
602
  {
648
- "type": "alert",
649
603
  "message": "Authenticated successfully",
650
- "variant": "success"
604
+ "variant": "success",
605
+ "type": "alert"
651
606
  },
652
607
  {
608
+ "direction": "horizontal",
609
+ "type": "stack",
610
+ "justify": "center",
653
611
  "children": [
654
612
  {
655
- "type": "button",
656
- "label": "Refresh Token",
657
613
  "variant": "ghost",
658
614
  "action": "REFRESH",
659
- "icon": "refresh-cw"
615
+ "type": "button",
616
+ "icon": "refresh-cw",
617
+ "label": "Refresh Token"
660
618
  },
661
619
  {
662
- "variant": "ghost",
663
- "type": "button",
664
- "icon": "log-out",
665
620
  "action": "LOGOUT",
666
- "label": "Logout"
621
+ "type": "button",
622
+ "variant": "ghost",
623
+ "label": "Logout",
624
+ "icon": "log-out"
667
625
  }
668
626
  ],
669
- "type": "stack",
670
- "direction": "horizontal",
671
- "gap": "sm",
672
- "justify": "center"
627
+ "gap": "sm"
673
628
  }
674
629
  ],
630
+ "direction": "vertical",
631
+ "align": "center",
675
632
  "gap": "lg"
676
633
  }
677
634
  ]
@@ -686,9 +643,9 @@
686
643
  "render-ui",
687
644
  "main",
688
645
  {
646
+ "message": "Obtaining a new access token.",
689
647
  "type": "loading-state",
690
- "title": "Refreshing token...",
691
- "message": "Obtaining a new access token."
648
+ "title": "Refreshing token..."
692
649
  }
693
650
  ],
694
651
  [
@@ -700,8 +657,8 @@
700
657
  },
701
658
  {
702
659
  "emit": {
703
- "success": "ServiceOauthOauthCompleted",
704
- "failure": "ServiceOauthOauthFailed"
660
+ "failure": "ServiceOauthOauthFailed",
661
+ "success": "ServiceOauthOauthCompleted"
705
662
  }
706
663
  }
707
664
  ]
@@ -721,12 +678,13 @@
721
678
  "render-ui",
722
679
  "main",
723
680
  {
681
+ "gap": "lg",
682
+ "align": "center",
683
+ "type": "stack",
684
+ "direction": "vertical",
724
685
  "children": [
725
686
  {
726
- "gap": "md",
727
687
  "type": "stack",
728
- "direction": "horizontal",
729
- "align": "center",
730
688
  "children": [
731
689
  {
732
690
  "type": "icon",
@@ -737,40 +695,39 @@
737
695
  "variant": "h2",
738
696
  "type": "typography"
739
697
  }
740
- ]
698
+ ],
699
+ "direction": "horizontal",
700
+ "gap": "md",
701
+ "align": "center"
741
702
  },
742
703
  {
743
704
  "type": "divider"
744
705
  },
745
706
  {
746
- "type": "select",
747
707
  "options": [
748
708
  {
749
- "label": "Google",
750
- "value": "google"
709
+ "value": "google",
710
+ "label": "Google"
751
711
  },
752
712
  {
753
713
  "value": "github",
754
714
  "label": "GitHub"
755
715
  },
756
716
  {
757
- "value": "microsoft",
758
- "label": "Microsoft"
717
+ "label": "Microsoft",
718
+ "value": "microsoft"
759
719
  }
760
- ]
720
+ ],
721
+ "type": "select"
761
722
  },
762
723
  {
763
724
  "type": "button",
764
- "icon": "log-in",
765
- "action": "LOGIN",
766
725
  "label": "Login",
767
- "variant": "primary"
726
+ "variant": "primary",
727
+ "action": "LOGIN",
728
+ "icon": "log-in"
768
729
  }
769
- ],
770
- "direction": "vertical",
771
- "type": "stack",
772
- "gap": "lg",
773
- "align": "center"
730
+ ]
774
731
  }
775
732
  ]
776
733
  ]
@@ -789,11 +746,11 @@
789
746
  "render-ui",
790
747
  "main",
791
748
  {
792
- "align": "center",
749
+ "direction": "vertical",
793
750
  "children": [
794
751
  {
795
- "type": "icon",
796
- "name": "check-circle"
752
+ "name": "check-circle",
753
+ "type": "icon"
797
754
  },
798
755
  {
799
756
  "variant": "success",
@@ -801,31 +758,31 @@
801
758
  "type": "alert"
802
759
  },
803
760
  {
804
- "gap": "sm",
805
761
  "justify": "center",
762
+ "gap": "sm",
806
763
  "type": "stack",
807
764
  "children": [
808
765
  {
766
+ "label": "Refresh Token",
767
+ "type": "button",
809
768
  "action": "REFRESH",
810
769
  "variant": "ghost",
811
- "icon": "refresh-cw",
812
- "label": "Refresh Token",
813
- "type": "button"
770
+ "icon": "refresh-cw"
814
771
  },
815
772
  {
816
- "variant": "ghost",
817
773
  "type": "button",
818
- "label": "Logout",
774
+ "icon": "log-out",
819
775
  "action": "LOGOUT",
820
- "icon": "log-out"
776
+ "label": "Logout",
777
+ "variant": "ghost"
821
778
  }
822
779
  ],
823
780
  "direction": "horizontal"
824
781
  }
825
782
  ],
826
783
  "type": "stack",
827
- "direction": "vertical",
828
- "gap": "lg"
784
+ "gap": "lg",
785
+ "align": "center"
829
786
  }
830
787
  ]
831
788
  ]
@@ -844,25 +801,25 @@
844
801
  "render-ui",
845
802
  "main",
846
803
  {
847
- "type": "stack",
848
- "direction": "vertical",
849
- "gap": "lg",
850
- "align": "center",
851
804
  "children": [
852
805
  {
806
+ "type": "error-state",
853
807
  "message": "@entity.error",
854
808
  "title": "Authentication Failed",
855
- "onRetry": "RETRY",
856
- "type": "error-state"
809
+ "onRetry": "RETRY"
857
810
  },
858
811
  {
859
- "type": "button",
860
- "variant": "primary",
861
- "icon": "rotate-ccw",
862
812
  "action": "RETRY",
863
- "label": "Try Again"
813
+ "label": "Try Again",
814
+ "variant": "primary",
815
+ "type": "button",
816
+ "icon": "rotate-ccw"
864
817
  }
865
- ]
818
+ ],
819
+ "align": "center",
820
+ "gap": "lg",
821
+ "direction": "vertical",
822
+ "type": "stack"
866
823
  }
867
824
  ]
868
825
  ]
@@ -877,16 +834,15 @@
877
834
  "main",
878
835
  {
879
836
  "gap": "lg",
837
+ "type": "stack",
880
838
  "direction": "vertical",
881
839
  "align": "center",
882
840
  "children": [
883
841
  {
884
- "gap": "md",
885
- "align": "center",
886
842
  "children": [
887
843
  {
888
- "type": "icon",
889
- "name": "lock"
844
+ "name": "lock",
845
+ "type": "icon"
890
846
  },
891
847
  {
892
848
  "type": "typography",
@@ -895,6 +851,8 @@
895
851
  }
896
852
  ],
897
853
  "direction": "horizontal",
854
+ "gap": "md",
855
+ "align": "center",
898
856
  "type": "stack"
899
857
  },
900
858
  {
@@ -911,21 +869,20 @@
911
869
  "value": "github"
912
870
  },
913
871
  {
914
- "label": "Microsoft",
915
- "value": "microsoft"
872
+ "value": "microsoft",
873
+ "label": "Microsoft"
916
874
  }
917
875
  ],
918
876
  "type": "select"
919
877
  },
920
878
  {
921
879
  "type": "button",
922
- "action": "LOGIN",
923
880
  "icon": "log-in",
881
+ "variant": "primary",
924
882
  "label": "Login",
925
- "variant": "primary"
883
+ "action": "LOGIN"
926
884
  }
927
- ],
928
- "type": "stack"
885
+ ]
929
886
  }
930
887
  ]
931
888
  ]