@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-browse",
3
- "version": "1.0.0",
4
- "description": "std-browse as a Function — single primitive: data-grid",
3
+ "version": "2.0.0",
4
+ "description": "std-browse as a Function — single primitive: data-grid. Owns the fetch + REFETCH (query/filter/page) state machine. Consumers configure fields/imageField/itemActions/cols/gap/variant; the atom renders the grid.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "BrowseItemOrbital",
@@ -74,6 +74,105 @@
74
74
  "type": "string"
75
75
  }
76
76
  ]
77
+ },
78
+ {
79
+ "event": "VIEW",
80
+ "scope": "external",
81
+ "payloadSchema": [
82
+ {
83
+ "name": "id",
84
+ "type": "string",
85
+ "required": true
86
+ },
87
+ {
88
+ "name": "row.id",
89
+ "type": "string",
90
+ "required": true
91
+ },
92
+ {
93
+ "name": "row.name",
94
+ "type": "string",
95
+ "required": true
96
+ },
97
+ {
98
+ "name": "row.description",
99
+ "type": "string"
100
+ },
101
+ {
102
+ "name": "row.status",
103
+ "type": "string"
104
+ },
105
+ {
106
+ "name": "row.createdAt",
107
+ "type": "string"
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "event": "EDIT",
113
+ "scope": "external",
114
+ "payloadSchema": [
115
+ {
116
+ "name": "id",
117
+ "type": "string",
118
+ "required": true
119
+ },
120
+ {
121
+ "name": "row.id",
122
+ "type": "string",
123
+ "required": true
124
+ },
125
+ {
126
+ "name": "row.name",
127
+ "type": "string",
128
+ "required": true
129
+ },
130
+ {
131
+ "name": "row.description",
132
+ "type": "string"
133
+ },
134
+ {
135
+ "name": "row.status",
136
+ "type": "string"
137
+ },
138
+ {
139
+ "name": "row.createdAt",
140
+ "type": "string"
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "event": "DELETE",
146
+ "scope": "external",
147
+ "payloadSchema": [
148
+ {
149
+ "name": "id",
150
+ "type": "string",
151
+ "required": true
152
+ },
153
+ {
154
+ "name": "row.id",
155
+ "type": "string",
156
+ "required": true
157
+ },
158
+ {
159
+ "name": "row.name",
160
+ "type": "string",
161
+ "required": true
162
+ },
163
+ {
164
+ "name": "row.description",
165
+ "type": "string"
166
+ },
167
+ {
168
+ "name": "row.status",
169
+ "type": "string"
170
+ },
171
+ {
172
+ "name": "row.createdAt",
173
+ "type": "string"
174
+ }
175
+ ]
77
176
  }
78
177
  ],
79
178
  "stateMachine": {
@@ -159,6 +258,18 @@
159
258
  "required": true
160
259
  }
161
260
  ]
261
+ },
262
+ {
263
+ "key": "VIEW",
264
+ "name": "View"
265
+ },
266
+ {
267
+ "key": "EDIT",
268
+ "name": "Edit"
269
+ },
270
+ {
271
+ "key": "DELETE",
272
+ "name": "Delete"
162
273
  }
163
274
  ],
164
275
  "transitions": [
@@ -171,12 +282,12 @@
171
282
  "fetch",
172
283
  "BrowseItem",
173
284
  {
174
- "limit": "@config.pageSize",
175
285
  "emit": {
176
- "success": "BrowseItemLoaded",
177
- "failure": "BrowseItemLoadFailed"
286
+ "failure": "BrowseItemLoadFailed",
287
+ "success": "BrowseItemLoaded"
178
288
  },
179
- "offset": 0.0
289
+ "offset": 0.0,
290
+ "limit": "@config.pageSize"
180
291
  }
181
292
  ],
182
293
  [
@@ -198,16 +309,20 @@
198
309
  "render-ui",
199
310
  "main",
200
311
  {
201
- "type": "stack",
202
312
  "direction": "vertical",
203
313
  "children": [
204
314
  {
315
+ "gap": "@config.gap",
316
+ "entity": "@payload.data",
317
+ "fields": "@config.fields",
318
+ "cols": "@config.cols",
205
319
  "pageSize": "@config.displayPageSize",
206
320
  "type": "data-grid",
207
- "fields": "@config.fields",
208
- "entity": "@payload.data"
321
+ "imageField": "@config.imageField",
322
+ "itemActions": "@config.itemActions"
209
323
  }
210
- ]
324
+ ],
325
+ "type": "stack"
211
326
  }
212
327
  ]
213
328
  ]
@@ -223,8 +338,8 @@
223
338
  {
224
339
  "variant": "caption",
225
340
  "content": "@payload.error",
226
- "type": "typography",
227
- "color": "error"
341
+ "color": "error",
342
+ "type": "typography"
228
343
  }
229
344
  ]
230
345
  ]
@@ -238,12 +353,12 @@
238
353
  "fetch",
239
354
  "BrowseItem",
240
355
  {
241
- "limit": "@config.pageSize",
242
- "offset": 0.0,
243
356
  "emit": {
244
357
  "failure": "BrowseItemLoadFailed",
245
358
  "success": "BrowseItemLoaded"
246
- }
359
+ },
360
+ "offset": 0.0,
361
+ "limit": "@config.pageSize"
247
362
  }
248
363
  ],
249
364
  [
@@ -284,8 +399,8 @@
284
399
  ]
285
400
  ],
286
401
  "emit": {
287
- "success": "BrowseItemLoaded",
288
- "failure": "BrowseItemLoadFailed"
402
+ "failure": "BrowseItemLoadFailed",
403
+ "success": "BrowseItemLoaded"
289
404
  },
290
405
  "limit": "@config.pageSize"
291
406
  }
@@ -301,12 +416,6 @@
301
416
  "fetch",
302
417
  "BrowseItem",
303
418
  {
304
- "emit": {
305
- "failure": "BrowseItemLoadFailed",
306
- "success": "BrowseItemLoaded"
307
- },
308
- "limit": "@config.pageSize",
309
- "offset": 0.0,
310
419
  "filter": [
311
420
  "or",
312
421
  [
@@ -323,7 +432,13 @@
323
432
  ],
324
433
  "@payload.value"
325
434
  ]
326
- ]
435
+ ],
436
+ "limit": "@config.pageSize",
437
+ "emit": {
438
+ "failure": "BrowseItemLoadFailed",
439
+ "success": "BrowseItemLoaded"
440
+ },
441
+ "offset": 0.0
327
442
  }
328
443
  ]
329
444
  ]
@@ -337,10 +452,9 @@
337
452
  "fetch",
338
453
  "BrowseItem",
339
454
  {
340
- "limit": "@config.pageSize",
341
455
  "emit": {
342
- "failure": "BrowseItemLoadFailed",
343
- "success": "BrowseItemLoaded"
456
+ "success": "BrowseItemLoaded",
457
+ "failure": "BrowseItemLoadFailed"
344
458
  },
345
459
  "offset": [
346
460
  "*",
@@ -350,7 +464,8 @@
350
464
  1.0
351
465
  ],
352
466
  "@config.pageSize"
353
- ]
467
+ ],
468
+ "limit": "@config.pageSize"
354
469
  }
355
470
  ]
356
471
  ]
@@ -364,16 +479,20 @@
364
479
  "render-ui",
365
480
  "main",
366
481
  {
367
- "type": "stack",
368
- "direction": "vertical",
369
482
  "children": [
370
483
  {
484
+ "imageField": "@config.imageField",
371
485
  "entity": "@payload.data",
486
+ "fields": "@config.fields",
487
+ "cols": "@config.cols",
372
488
  "pageSize": "@config.displayPageSize",
373
489
  "type": "data-grid",
374
- "fields": "@config.fields"
490
+ "itemActions": "@config.itemActions",
491
+ "gap": "@config.gap"
375
492
  }
376
- ]
493
+ ],
494
+ "direction": "vertical",
495
+ "type": "stack"
377
496
  }
378
497
  ]
379
498
  ]
@@ -387,12 +506,12 @@
387
506
  "fetch",
388
507
  "BrowseItem",
389
508
  {
390
- "limit": "@config.pageSize",
391
- "offset": 0.0,
392
509
  "emit": {
393
- "failure": "BrowseItemLoadFailed",
394
- "success": "BrowseItemLoaded"
395
- }
510
+ "success": "BrowseItemLoaded",
511
+ "failure": "BrowseItemLoadFailed"
512
+ },
513
+ "offset": 0.0,
514
+ "limit": "@config.pageSize"
396
515
  }
397
516
  ],
398
517
  [
@@ -408,6 +527,22 @@
408
527
  ]
409
528
  },
410
529
  "config": {
530
+ "imageField": {
531
+ "type": "string",
532
+ "default": ""
533
+ },
534
+ "cols": {
535
+ "type": "number",
536
+ "default": 1.0
537
+ },
538
+ "pageSize": {
539
+ "type": "number",
540
+ "default": 10.0
541
+ },
542
+ "gap": {
543
+ "type": "string",
544
+ "default": "md"
545
+ },
411
546
  "displayPageSize": {
412
547
  "type": "number",
413
548
  "default": 10.0
@@ -416,25 +551,25 @@
416
551
  "type": "[object]",
417
552
  "default": [
418
553
  {
419
- "variant": "h4",
420
554
  "name": "name",
555
+ "variant": "h4",
421
556
  "label": "Name"
422
557
  },
423
558
  {
559
+ "label": "Description",
424
560
  "variant": "caption",
425
- "name": "description",
426
- "label": "Description"
561
+ "name": "description"
427
562
  },
428
563
  {
429
- "label": "Status",
430
564
  "name": "status",
431
- "variant": "badge"
565
+ "variant": "badge",
566
+ "label": "Status"
432
567
  }
433
568
  ]
434
569
  },
435
- "pageSize": {
436
- "type": "number",
437
- "default": 10.0
570
+ "itemActions": {
571
+ "type": "[object]",
572
+ "default": []
438
573
  }
439
574
  },
440
575
  "scope": "collection"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-app-layout",
3
- "version": "1.1.0",
4
- "description": "std-app-layout — dashboard-layout chrome (sidebar nav + top bar with optional search and notifications) wrapping a single contentTrait slot. Use for list-style apps (CMS / helpdesk / CRM): the chrome stays stable while the consumer's content trait renders the data.",
3
+ "version": "1.2.0",
4
+ "description": "std-app-layout — dashboard-layout chrome (sidebar nav + top bar with search + topBarActions + notifications) wrapping a single contentTrait slot. Use for list-style apps (CMS / helpdesk / CRM): the chrome stays stable while the consumer's content trait renders the data, and the consumer can add domain icons (cart / profile / help) via topBarActions.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "AppLayoutOrbital",
@@ -73,23 +73,24 @@
73
73
  "render-ui",
74
74
  "main",
75
75
  {
76
- "notificationClickEvent": "@config.notificationClickEvent",
76
+ "notifications": "@config.notifications",
77
+ "searchEvent": "@config.searchEvent",
78
+ "appName": "@config.appName",
79
+ "topBarActions": "@config.topBarActions",
80
+ "navItems": "@config.navItems",
77
81
  "type": "dashboard-layout",
78
82
  "children": [
79
83
  {
80
84
  "type": "stack",
85
+ "className": "max-w-5xl mx-auto w-full",
81
86
  "direction": "vertical",
82
- "gap": "lg",
83
87
  "children": [
84
88
  "@config.contentTrait"
85
89
  ],
86
- "className": "max-w-5xl mx-auto w-full"
90
+ "gap": "lg"
87
91
  }
88
92
  ],
89
- "searchEvent": "@config.searchEvent",
90
- "notifications": "@config.notifications",
91
- "appName": "@config.appName",
92
- "navItems": "@config.navItems"
93
+ "notificationClickEvent": "@config.notificationClickEvent"
93
94
  }
94
95
  ]
95
96
  ]
@@ -107,26 +108,30 @@
107
108
  ]
108
109
  },
109
110
  "config": {
110
- "navItems": {
111
- "type": "[object]",
112
- "default": []
111
+ "contentTrait": {
112
+ "type": "trait"
113
113
  },
114
114
  "appName": {
115
115
  "type": "string",
116
116
  "default": "App"
117
117
  },
118
+ "notifications": {
119
+ "type": "[object]",
120
+ "default": []
121
+ },
122
+ "topBarActions": {
123
+ "type": "[object]",
124
+ "default": []
125
+ },
118
126
  "searchEvent": {
119
127
  "type": "string",
120
128
  "default": "SEARCH"
121
129
  },
122
- "contentTrait": {
123
- "type": "trait"
124
- },
125
130
  "notificationClickEvent": {
126
131
  "type": "string",
127
132
  "default": "NOTIFY_CLICK"
128
133
  },
129
- "notifications": {
134
+ "navItems": {
130
135
  "type": "[object]",
131
136
  "default": []
132
137
  }