@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
@@ -71,59 +71,17 @@
71
71
  "emits": [
72
72
  {
73
73
  "event": "ServiceTwilioLoaded",
74
- "description": "Fired when ServiceTwilio finishes loading",
75
- "scope": "internal",
74
+ "scope": "external",
76
75
  "payloadSchema": [
77
76
  {
78
77
  "name": "id",
79
78
  "type": "string"
80
- },
81
- {
82
- "name": "name",
83
- "type": "string"
84
- },
85
- {
86
- "name": "description",
87
- "type": "string"
88
- },
89
- {
90
- "name": "status",
91
- "type": "string"
92
- },
93
- {
94
- "name": "createdAt",
95
- "type": "string"
96
- },
97
- {
98
- "name": "to",
99
- "type": "string"
100
- },
101
- {
102
- "name": "messageBody",
103
- "type": "string"
104
- },
105
- {
106
- "name": "channel",
107
- "type": "string"
108
- },
109
- {
110
- "name": "messageSid",
111
- "type": "string"
112
- },
113
- {
114
- "name": "sendStatus",
115
- "type": "string"
116
- },
117
- {
118
- "name": "error",
119
- "type": "string"
120
79
  }
121
80
  ]
122
81
  },
123
82
  {
124
83
  "event": "ServiceTwilioLoadFailed",
125
- "description": "Fired when ServiceTwilio fails to load",
126
- "scope": "internal",
84
+ "scope": "external",
127
85
  "payloadSchema": [
128
86
  {
129
87
  "name": "message",
@@ -133,7 +91,7 @@
133
91
  },
134
92
  {
135
93
  "event": "ServiceTwilioTwilioCompleted",
136
- "scope": "internal",
94
+ "scope": "external",
137
95
  "payloadSchema": [
138
96
  {
139
97
  "name": "result",
@@ -143,7 +101,7 @@
143
101
  },
144
102
  {
145
103
  "event": "ServiceTwilioTwilioFailed",
146
- "scope": "internal",
104
+ "scope": "external",
147
105
  "payloadSchema": [
148
106
  {
149
107
  "name": "error",
@@ -320,8 +278,8 @@
320
278
  "ServiceTwilio",
321
279
  {
322
280
  "emit": {
323
- "success": "ServiceTwilioLoaded",
324
- "failure": "ServiceTwilioLoadFailed"
281
+ "failure": "ServiceTwilioLoadFailed",
282
+ "success": "ServiceTwilioLoaded"
325
283
  }
326
284
  }
327
285
  ],
@@ -329,62 +287,62 @@
329
287
  "render-ui",
330
288
  "main",
331
289
  {
332
- "type": "stack",
333
- "align": "stretch",
290
+ "direction": "vertical",
291
+ "gap": "lg",
334
292
  "children": [
335
293
  {
294
+ "align": "center",
295
+ "type": "stack",
336
296
  "children": [
337
297
  {
338
- "type": "icon",
339
- "name": "message-circle"
298
+ "name": "message-circle",
299
+ "type": "icon"
340
300
  },
341
301
  {
342
- "content": "ServiceTwilio Messaging",
343
302
  "variant": "h2",
344
- "type": "typography"
303
+ "type": "typography",
304
+ "content": "ServiceTwilio Messaging"
345
305
  }
346
306
  ],
347
- "type": "stack",
348
- "direction": "horizontal",
349
- "align": "center",
350
- "gap": "md"
307
+ "gap": "md",
308
+ "direction": "horizontal"
351
309
  },
352
310
  {
353
311
  "type": "divider"
354
312
  },
355
313
  {
356
- "placeholder": "+1234567890",
357
- "type": "input"
314
+ "type": "input",
315
+ "placeholder": "+1234567890"
358
316
  },
359
317
  {
360
- "placeholder": "Write your message...",
361
- "type": "textarea"
318
+ "type": "textarea",
319
+ "placeholder": "Write your message..."
362
320
  },
363
321
  {
364
- "gap": "sm",
365
- "type": "stack",
366
322
  "justify": "center",
323
+ "direction": "horizontal",
367
324
  "children": [
368
325
  {
369
- "type": "button",
370
- "icon": "message-circle",
371
326
  "action": "SEND_SMS",
372
327
  "label": "Send SMS",
373
- "variant": "primary"
328
+ "variant": "primary",
329
+ "icon": "message-circle",
330
+ "type": "button"
374
331
  },
375
332
  {
376
- "icon": "phone",
377
- "label": "Send WhatsApp",
378
- "variant": "secondary",
379
333
  "action": "SEND_WHATSAPP",
380
- "type": "button"
334
+ "type": "button",
335
+ "variant": "secondary",
336
+ "icon": "phone",
337
+ "label": "Send WhatsApp"
381
338
  }
382
339
  ],
383
- "direction": "horizontal"
340
+ "type": "stack",
341
+ "gap": "sm"
384
342
  }
385
343
  ],
386
- "gap": "lg",
387
- "direction": "vertical"
344
+ "align": "stretch",
345
+ "type": "stack"
388
346
  }
389
347
  ]
390
348
  ]
@@ -398,9 +356,9 @@
398
356
  "render-ui",
399
357
  "main",
400
358
  {
359
+ "message": "Delivering servicetwilio message...",
401
360
  "title": "Sending message...",
402
- "type": "loading-state",
403
- "message": "Delivering servicetwilio message..."
361
+ "type": "loading-state"
404
362
  }
405
363
  ],
406
364
  [
@@ -408,13 +366,13 @@
408
366
  "twilio",
409
367
  "sendSMS",
410
368
  {
411
- "to": "@entity.to",
412
- "body": "@entity.messageBody"
369
+ "body": "@entity.messageBody",
370
+ "to": "@entity.to"
413
371
  },
414
372
  {
415
373
  "emit": {
416
- "success": "ServiceTwilioTwilioCompleted",
417
- "failure": "ServiceTwilioTwilioFailed"
374
+ "failure": "ServiceTwilioTwilioFailed",
375
+ "success": "ServiceTwilioTwilioCompleted"
418
376
  }
419
377
  }
420
378
  ]
@@ -429,9 +387,9 @@
429
387
  "render-ui",
430
388
  "main",
431
389
  {
432
- "type": "loading-state",
390
+ "title": "Sending message...",
433
391
  "message": "Delivering servicetwilio message...",
434
- "title": "Sending message..."
392
+ "type": "loading-state"
435
393
  }
436
394
  ],
437
395
  [
@@ -439,8 +397,8 @@
439
397
  "twilio",
440
398
  "sendWhatsApp",
441
399
  {
442
- "body": "@entity.messageBody",
443
- "to": "@entity.to"
400
+ "to": "@entity.to",
401
+ "body": "@entity.messageBody"
444
402
  },
445
403
  {
446
404
  "emit": {
@@ -471,27 +429,27 @@
471
429
  "main",
472
430
  {
473
431
  "type": "stack",
432
+ "direction": "vertical",
433
+ "gap": "lg",
434
+ "align": "center",
474
435
  "children": [
475
436
  {
476
437
  "name": "check-circle",
477
438
  "type": "icon"
478
439
  },
479
440
  {
480
- "message": "Message sent successfully",
481
441
  "type": "alert",
482
- "variant": "success"
442
+ "variant": "success",
443
+ "message": "Message sent successfully"
483
444
  },
484
445
  {
485
- "label": "Send Another",
486
- "type": "button",
446
+ "icon": "rotate-ccw",
487
447
  "action": "RESET",
488
- "variant": "ghost",
489
- "icon": "rotate-ccw"
448
+ "type": "button",
449
+ "label": "Send Another",
450
+ "variant": "ghost"
490
451
  }
491
- ],
492
- "direction": "vertical",
493
- "align": "center",
494
- "gap": "lg"
452
+ ]
495
453
  }
496
454
  ]
497
455
  ]
@@ -515,40 +473,40 @@
515
473
  "render-ui",
516
474
  "main",
517
475
  {
518
- "direction": "vertical",
519
- "align": "center",
520
- "type": "stack",
476
+ "gap": "lg",
521
477
  "children": [
522
478
  {
523
479
  "type": "error-state",
480
+ "title": "Send Failed",
524
481
  "message": "Could not deliver the message.",
525
- "onRetry": "RETRY",
526
- "title": "Send Failed"
482
+ "onRetry": "RETRY"
527
483
  },
528
484
  {
529
- "type": "stack",
530
- "direction": "horizontal",
531
485
  "children": [
532
486
  {
533
- "icon": "refresh-cw",
487
+ "type": "button",
488
+ "label": "Retry",
534
489
  "action": "RETRY",
535
490
  "variant": "primary",
536
- "type": "button",
537
- "label": "Retry"
491
+ "icon": "refresh-cw"
538
492
  },
539
493
  {
540
- "label": "Reset",
541
494
  "type": "button",
542
- "variant": "ghost",
543
495
  "action": "RESET",
496
+ "label": "Reset",
497
+ "variant": "ghost",
544
498
  "icon": "rotate-ccw"
545
499
  }
546
500
  ],
501
+ "type": "stack",
547
502
  "gap": "sm",
503
+ "direction": "horizontal",
548
504
  "justify": "center"
549
505
  }
550
506
  ],
551
- "gap": "lg"
507
+ "align": "center",
508
+ "direction": "vertical",
509
+ "type": "stack"
552
510
  }
553
511
  ]
554
512
  ]
@@ -567,62 +525,62 @@
567
525
  "render-ui",
568
526
  "main",
569
527
  {
570
- "type": "stack",
571
- "align": "stretch",
528
+ "gap": "lg",
529
+ "direction": "vertical",
572
530
  "children": [
573
531
  {
574
532
  "gap": "md",
533
+ "direction": "horizontal",
534
+ "align": "center",
575
535
  "children": [
576
536
  {
577
- "name": "message-circle",
578
- "type": "icon"
537
+ "type": "icon",
538
+ "name": "message-circle"
579
539
  },
580
540
  {
581
- "content": "ServiceTwilio Messaging",
582
541
  "variant": "h2",
583
- "type": "typography"
542
+ "type": "typography",
543
+ "content": "ServiceTwilio Messaging"
584
544
  }
585
545
  ],
586
- "direction": "horizontal",
587
- "align": "center",
588
546
  "type": "stack"
589
547
  },
590
548
  {
591
549
  "type": "divider"
592
550
  },
593
551
  {
594
- "type": "input",
595
- "placeholder": "+1234567890"
552
+ "placeholder": "+1234567890",
553
+ "type": "input"
596
554
  },
597
555
  {
598
- "type": "textarea",
599
- "placeholder": "Write your message..."
556
+ "placeholder": "Write your message...",
557
+ "type": "textarea"
600
558
  },
601
559
  {
560
+ "type": "stack",
561
+ "gap": "sm",
562
+ "direction": "horizontal",
602
563
  "children": [
603
564
  {
604
- "label": "Send SMS",
605
565
  "icon": "message-circle",
606
566
  "action": "SEND_SMS",
567
+ "variant": "primary",
607
568
  "type": "button",
608
- "variant": "primary"
569
+ "label": "Send SMS"
609
570
  },
610
571
  {
611
- "type": "button",
612
- "icon": "phone",
613
572
  "action": "SEND_WHATSAPP",
573
+ "variant": "secondary",
574
+ "type": "button",
614
575
  "label": "Send WhatsApp",
615
- "variant": "secondary"
576
+ "icon": "phone"
616
577
  }
617
578
  ],
618
- "justify": "center",
619
- "gap": "sm",
620
- "type": "stack",
621
- "direction": "horizontal"
579
+ "justify": "center"
622
580
  }
623
581
  ],
624
- "gap": "lg",
625
- "direction": "vertical"
582
+ "align": "stretch",
583
+ "type": "stack"
626
584
  }
627
585
  ]
628
586
  ]
@@ -636,61 +594,61 @@
636
594
  "render-ui",
637
595
  "main",
638
596
  {
597
+ "type": "stack",
639
598
  "children": [
640
599
  {
600
+ "direction": "horizontal",
641
601
  "gap": "md",
602
+ "align": "center",
642
603
  "type": "stack",
643
604
  "children": [
644
605
  {
645
- "type": "icon",
646
- "name": "message-circle"
606
+ "name": "message-circle",
607
+ "type": "icon"
647
608
  },
648
609
  {
649
- "variant": "h2",
650
610
  "content": "ServiceTwilio Messaging",
611
+ "variant": "h2",
651
612
  "type": "typography"
652
613
  }
653
- ],
654
- "direction": "horizontal",
655
- "align": "center"
614
+ ]
656
615
  },
657
616
  {
658
617
  "type": "divider"
659
618
  },
660
619
  {
661
- "type": "input",
662
- "placeholder": "+1234567890"
620
+ "placeholder": "+1234567890",
621
+ "type": "input"
663
622
  },
664
623
  {
665
624
  "placeholder": "Write your message...",
666
625
  "type": "textarea"
667
626
  },
668
627
  {
628
+ "type": "stack",
629
+ "justify": "center",
669
630
  "children": [
670
631
  {
632
+ "icon": "message-circle",
633
+ "label": "Send SMS",
671
634
  "action": "SEND_SMS",
672
635
  "variant": "primary",
673
- "type": "button",
674
- "label": "Send SMS",
675
- "icon": "message-circle"
636
+ "type": "button"
676
637
  },
677
638
  {
678
- "label": "Send WhatsApp",
679
639
  "type": "button",
680
- "icon": "phone",
681
640
  "action": "SEND_WHATSAPP",
682
- "variant": "secondary"
641
+ "variant": "secondary",
642
+ "icon": "phone",
643
+ "label": "Send WhatsApp"
683
644
  }
684
645
  ],
685
- "direction": "horizontal",
686
- "type": "stack",
687
646
  "gap": "sm",
688
- "justify": "center"
647
+ "direction": "horizontal"
689
648
  }
690
649
  ],
691
- "align": "stretch",
692
- "type": "stack",
693
650
  "direction": "vertical",
651
+ "align": "stretch",
694
652
  "gap": "lg"
695
653
  }
696
654
  ]
@@ -710,12 +668,9 @@
710
668
  "render-ui",
711
669
  "main",
712
670
  {
713
- "align": "stretch",
714
- "direction": "vertical",
715
671
  "children": [
716
672
  {
717
- "direction": "horizontal",
718
- "align": "center",
673
+ "gap": "md",
719
674
  "type": "stack",
720
675
  "children": [
721
676
  {
@@ -723,49 +678,52 @@
723
678
  "type": "icon"
724
679
  },
725
680
  {
726
- "content": "ServiceTwilio Messaging",
727
681
  "variant": "h2",
728
- "type": "typography"
682
+ "type": "typography",
683
+ "content": "ServiceTwilio Messaging"
729
684
  }
730
685
  ],
731
- "gap": "md"
686
+ "direction": "horizontal",
687
+ "align": "center"
732
688
  },
733
689
  {
734
690
  "type": "divider"
735
691
  },
736
692
  {
737
- "type": "input",
738
- "placeholder": "+1234567890"
693
+ "placeholder": "+1234567890",
694
+ "type": "input"
739
695
  },
740
696
  {
741
697
  "type": "textarea",
742
698
  "placeholder": "Write your message..."
743
699
  },
744
700
  {
701
+ "justify": "center",
702
+ "type": "stack",
703
+ "gap": "sm",
745
704
  "children": [
746
705
  {
747
- "label": "Send SMS",
748
706
  "type": "button",
707
+ "icon": "message-circle",
749
708
  "action": "SEND_SMS",
750
- "variant": "primary",
751
- "icon": "message-circle"
709
+ "label": "Send SMS",
710
+ "variant": "primary"
752
711
  },
753
712
  {
754
- "icon": "phone",
755
- "type": "button",
756
713
  "action": "SEND_WHATSAPP",
714
+ "variant": "secondary",
715
+ "type": "button",
757
716
  "label": "Send WhatsApp",
758
- "variant": "secondary"
717
+ "icon": "phone"
759
718
  }
760
719
  ],
761
- "type": "stack",
762
- "gap": "sm",
763
- "direction": "horizontal",
764
- "justify": "center"
720
+ "direction": "horizontal"
765
721
  }
766
722
  ],
767
723
  "gap": "lg",
768
- "type": "stack"
724
+ "align": "stretch",
725
+ "type": "stack",
726
+ "direction": "vertical"
769
727
  }
770
728
  ]
771
729
  ]