@almadar/std 6.5.1 → 7.0.0

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/atoms/std-agent-memory.orb +164 -7
  2. package/behaviors/registry/atoms/std-browse.orb +39 -2
  3. package/behaviors/registry/atoms/std-confirmation.orb +84 -9
  4. package/behaviors/registry/atoms/std-filter.orb +2 -1
  5. package/behaviors/registry/atoms/std-modal.orb +73 -8
  6. package/behaviors/registry/atoms/std-push.orb +5 -4
  7. package/behaviors/registry/atoms/std-related.orb +44 -3
  8. package/behaviors/registry/atoms/std-search.orb +2 -1
  9. package/behaviors/registry/molecules/std-cart.orb +91 -14
  10. package/behaviors/registry/molecules/std-detail.orb +3 -3
  11. package/behaviors/registry/molecules/std-drawer-master-list.orb +2 -1
  12. package/behaviors/registry/molecules/std-filtered-list.orb +2 -1
  13. package/behaviors/registry/molecules/std-wizard-form.orb +2 -1
  14. package/dist/behaviors/registry/atoms/std-agent-memory.orb +164 -7
  15. package/dist/behaviors/registry/atoms/std-browse.orb +39 -2
  16. package/dist/behaviors/registry/atoms/std-confirmation.orb +84 -9
  17. package/dist/behaviors/registry/atoms/std-filter.orb +2 -1
  18. package/dist/behaviors/registry/atoms/std-modal.orb +73 -8
  19. package/dist/behaviors/registry/atoms/std-push.orb +5 -4
  20. package/dist/behaviors/registry/atoms/std-related.orb +44 -3
  21. package/dist/behaviors/registry/atoms/std-search.orb +2 -1
  22. package/dist/behaviors/registry/molecules/std-cart.orb +91 -14
  23. package/dist/behaviors/registry/molecules/std-detail.orb +3 -3
  24. package/dist/behaviors/registry/molecules/std-drawer-master-list.orb +2 -1
  25. package/dist/behaviors/registry/molecules/std-filtered-list.orb +2 -1
  26. package/dist/behaviors/registry/molecules/std-wizard-form.orb +2 -1
  27. package/package.json +2 -2
@@ -46,6 +46,44 @@
46
46
  {
47
47
  "event": "SAVE",
48
48
  "scope": "external"
49
+ },
50
+ {
51
+ "event": "ModalRecordLoaded",
52
+ "scope": "internal",
53
+ "description": "Fired when ModalRecord finishes loading",
54
+ "payload": [
55
+ {
56
+ "name": "id",
57
+ "type": "string"
58
+ },
59
+ {
60
+ "name": "name",
61
+ "type": "string"
62
+ },
63
+ {
64
+ "name": "description",
65
+ "type": "string"
66
+ },
67
+ {
68
+ "name": "status",
69
+ "type": "string"
70
+ },
71
+ {
72
+ "name": "createdAt",
73
+ "type": "string"
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "event": "ModalRecordLoadFailed",
79
+ "scope": "internal",
80
+ "description": "Fired when ModalRecord fails to load",
81
+ "payload": [
82
+ {
83
+ "name": "message",
84
+ "type": "string"
85
+ }
86
+ ]
49
87
  }
50
88
  ],
51
89
  "stateMachine": {
@@ -87,6 +125,14 @@
87
125
  "required": true
88
126
  }
89
127
  ]
128
+ },
129
+ {
130
+ "key": "ModalRecordLoaded",
131
+ "name": "ModalRecord loaded"
132
+ },
133
+ {
134
+ "key": "ModalRecordLoadFailed",
135
+ "name": "ModalRecord load failed"
90
136
  }
91
137
  ],
92
138
  "transitions": [
@@ -96,8 +142,14 @@
96
142
  "event": "INIT",
97
143
  "effects": [
98
144
  [
99
- "ref",
100
- "ModalRecord"
145
+ "fetch",
146
+ "ModalRecord",
147
+ {
148
+ "emit": {
149
+ "success": "ModalRecordLoaded",
150
+ "failure": "ModalRecordLoadFailed"
151
+ }
152
+ }
101
153
  ],
102
154
  [
103
155
  "render-ui",
@@ -283,8 +335,14 @@
283
335
  "info"
284
336
  ],
285
337
  [
286
- "ref",
287
- "ModalRecord"
338
+ "fetch",
339
+ "ModalRecord",
340
+ {
341
+ "emit": {
342
+ "success": "ModalRecordLoaded",
343
+ "failure": "ModalRecordLoadFailed"
344
+ }
345
+ }
288
346
  ],
289
347
  [
290
348
  "render-ui",
@@ -351,8 +409,14 @@
351
409
  null
352
410
  ],
353
411
  [
354
- "ref",
355
- "ModalRecord"
412
+ "fetch",
413
+ "ModalRecord",
414
+ {
415
+ "emit": {
416
+ "success": "ModalRecordLoaded",
417
+ "failure": "ModalRecordLoadFailed"
418
+ }
419
+ }
356
420
  ],
357
421
  [
358
422
  "render-ui",
@@ -409,7 +473,8 @@
409
473
  ]
410
474
  }
411
475
  ]
412
- }
476
+ },
477
+ "scope": "instance"
413
478
  }
414
479
  ],
415
480
  "pages": [
@@ -425,4 +490,4 @@
425
490
  ]
426
491
  }
427
492
  ]
428
- }
493
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-push",
3
3
  "version": "1.0.0",
4
- "description": "External-event subscription atom. Wraps os/watch-http with a lifecycle state machine (idle subscribed reconnecting) using emit: config to turn incoming messages + failures into closed-circuit events.",
4
+ "description": "External-event subscription atom. Wraps os/watch-http with a lifecycle state machine (idle \u2192 subscribed \u2194 reconnecting) using emit: config to turn incoming messages + failures into closed-circuit events.",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "PushSubscriberOrbital",
@@ -89,7 +89,7 @@
89
89
  {
90
90
  "type": "typography",
91
91
  "variant": "caption",
92
- "content": "Connecting"
92
+ "content": "Connecting\u2026"
93
93
  }
94
94
  ],
95
95
  "gap": "sm"
@@ -157,7 +157,7 @@
157
157
  {
158
158
  "type": "typography",
159
159
  "variant": "caption",
160
- "content": "Reconnecting"
160
+ "content": "Reconnecting\u2026"
161
161
  }
162
162
  ],
163
163
  "type": "stack",
@@ -233,7 +233,8 @@
233
233
  ]
234
234
  }
235
235
  ]
236
- }
236
+ },
237
+ "scope": "instance"
237
238
  }
238
239
  ],
239
240
  "pages": [
@@ -29,6 +29,32 @@
29
29
  "emits": [
30
30
  {
31
31
  "event": "SELECT_RELATED"
32
+ },
33
+ {
34
+ "event": "RelatedItemLoaded",
35
+ "scope": "internal",
36
+ "description": "Fired when RelatedItem finishes loading",
37
+ "payload": [
38
+ {
39
+ "name": "id",
40
+ "type": "string"
41
+ },
42
+ {
43
+ "name": "name",
44
+ "type": "string"
45
+ }
46
+ ]
47
+ },
48
+ {
49
+ "event": "RelatedItemLoadFailed",
50
+ "scope": "internal",
51
+ "description": "Fired when RelatedItem fails to load",
52
+ "payload": [
53
+ {
54
+ "name": "message",
55
+ "type": "string"
56
+ }
57
+ ]
32
58
  }
33
59
  ],
34
60
  "stateMachine": {
@@ -41,6 +67,14 @@
41
67
  "events": [
42
68
  {
43
69
  "key": "INIT"
70
+ },
71
+ {
72
+ "key": "RelatedItemLoaded",
73
+ "name": "RelatedItem loaded"
74
+ },
75
+ {
76
+ "key": "RelatedItemLoadFailed",
77
+ "name": "RelatedItem load failed"
44
78
  }
45
79
  ],
46
80
  "transitions": [
@@ -50,8 +84,14 @@
50
84
  "event": "INIT",
51
85
  "effects": [
52
86
  [
53
- "ref",
54
- "RelatedItem"
87
+ "fetch",
88
+ "RelatedItem",
89
+ {
90
+ "emit": {
91
+ "success": "RelatedItemLoaded",
92
+ "failure": "RelatedItemLoadFailed"
93
+ }
94
+ }
55
95
  ],
56
96
  [
57
97
  "render-ui",
@@ -111,7 +151,8 @@
111
151
  ]
112
152
  }
113
153
  ]
114
- }
154
+ },
155
+ "scope": "collection"
115
156
  }
116
157
  ],
117
158
  "pages": [
@@ -371,7 +371,8 @@
371
371
  ]
372
372
  }
373
373
  ]
374
- }
374
+ },
375
+ "scope": "collection"
375
376
  }
376
377
  ],
377
378
  "pages": [
@@ -99,6 +99,14 @@
99
99
  {
100
100
  "key": "CONFIRM_ORDER",
101
101
  "name": "Confirm Order"
102
+ },
103
+ {
104
+ "key": "CART_ITEM_LOADED",
105
+ "name": "CartItem loaded"
106
+ },
107
+ {
108
+ "key": "CART_ITEM_LOAD_FAILED",
109
+ "name": "CartItem load failed"
102
110
  }
103
111
  ],
104
112
  "transitions": [
@@ -108,8 +116,14 @@
108
116
  "event": "INIT",
109
117
  "effects": [
110
118
  [
111
- "ref",
112
- "CartItem"
119
+ "fetch",
120
+ "CartItem",
121
+ {
122
+ "emit": {
123
+ "success": "CART_ITEM_LOADED",
124
+ "failure": "CART_ITEM_LOAD_FAILED"
125
+ }
126
+ }
113
127
  ],
114
128
  [
115
129
  "render-ui",
@@ -242,8 +256,14 @@
242
256
  "event": "PROCEED_CHECKOUT",
243
257
  "effects": [
244
258
  [
245
- "ref",
246
- "CartItem"
259
+ "fetch",
260
+ "CartItem",
261
+ {
262
+ "emit": {
263
+ "success": "CART_ITEM_LOADED",
264
+ "failure": "CART_ITEM_LOAD_FAILED"
265
+ }
266
+ }
247
267
  ],
248
268
  [
249
269
  "render-ui",
@@ -340,8 +360,14 @@
340
360
  "event": "BACK_TO_CART",
341
361
  "effects": [
342
362
  [
343
- "ref",
344
- "CartItem"
363
+ "fetch",
364
+ "CartItem",
365
+ {
366
+ "emit": {
367
+ "success": "CART_ITEM_LOADED",
368
+ "failure": "CART_ITEM_LOAD_FAILED"
369
+ }
370
+ }
345
371
  ]
346
372
  ]
347
373
  },
@@ -351,8 +377,14 @@
351
377
  "event": "CONFIRM_ORDER",
352
378
  "effects": [
353
379
  [
354
- "ref",
355
- "CartItem"
380
+ "fetch",
381
+ "CartItem",
382
+ {
383
+ "emit": {
384
+ "success": "CART_ITEM_LOADED",
385
+ "failure": "CART_ITEM_LOAD_FAILED"
386
+ }
387
+ }
356
388
  ],
357
389
  [
358
390
  "render-ui",
@@ -390,7 +422,52 @@
390
422
  ]
391
423
  }
392
424
  ]
393
- }
425
+ },
426
+ "scope": "collection",
427
+ "emits": [
428
+ {
429
+ "event": "CART_ITEM_LOADED",
430
+ "scope": "internal",
431
+ "description": "Fired when CartItem finishes loading",
432
+ "payload": [
433
+ {
434
+ "name": "id",
435
+ "type": "string"
436
+ },
437
+ {
438
+ "name": "name",
439
+ "type": "string"
440
+ },
441
+ {
442
+ "name": "description",
443
+ "type": "string"
444
+ },
445
+ {
446
+ "name": "status",
447
+ "type": "string"
448
+ },
449
+ {
450
+ "name": "createdAt",
451
+ "type": "string"
452
+ },
453
+ {
454
+ "name": "pendingId",
455
+ "type": "string"
456
+ }
457
+ ]
458
+ },
459
+ {
460
+ "event": "CART_ITEM_LOAD_FAILED",
461
+ "scope": "internal",
462
+ "description": "Fired when CartItem fails to load",
463
+ "payload": [
464
+ {
465
+ "name": "message",
466
+ "type": "string"
467
+ }
468
+ ]
469
+ }
470
+ ]
394
471
  },
395
472
  {
396
473
  "ref": "Modal.traits.ModalRecordModal",
@@ -402,7 +479,7 @@
402
479
  "effects": {
403
480
  "INIT": [
404
481
  [
405
- "ref",
482
+ "fetch",
406
483
  "CartItem"
407
484
  ]
408
485
  ],
@@ -493,7 +570,7 @@
493
570
  "effects": {
494
571
  "INIT": [
495
572
  [
496
- "ref",
573
+ "fetch",
497
574
  "CartItem"
498
575
  ]
499
576
  ],
@@ -582,7 +659,7 @@
582
659
  null
583
660
  ],
584
661
  [
585
- "ref",
662
+ "fetch",
586
663
  "CartItem"
587
664
  ]
588
665
  ],
@@ -593,7 +670,7 @@
593
670
  null
594
671
  ],
595
672
  [
596
- "ref",
673
+ "fetch",
597
674
  "CartItem"
598
675
  ]
599
676
  ],
@@ -604,7 +681,7 @@
604
681
  null
605
682
  ],
606
683
  [
607
- "ref",
684
+ "fetch",
608
685
  "CartItem"
609
686
  ]
610
687
  ]
@@ -56,7 +56,7 @@
56
56
  "effects": {
57
57
  "INIT": [
58
58
  [
59
- "ref",
59
+ "fetch",
60
60
  "DetailRecord"
61
61
  ],
62
62
  [
@@ -175,7 +175,7 @@
175
175
  "effects": {
176
176
  "INIT": [
177
177
  [
178
- "ref",
178
+ "fetch",
179
179
  "DetailRecord"
180
180
  ]
181
181
  ],
@@ -265,7 +265,7 @@
265
265
  "effects": {
266
266
  "INIT": [
267
267
  [
268
- "ref",
268
+ "fetch",
269
269
  "DetailRecord"
270
270
  ]
271
271
  ],
@@ -104,7 +104,8 @@
104
104
  ]
105
105
  }
106
106
  ]
107
- }
107
+ },
108
+ "scope": "collection"
108
109
  }
109
110
  ],
110
111
  "pages": [
@@ -116,7 +116,8 @@
116
116
  ]
117
117
  }
118
118
  ]
119
- }
119
+ },
120
+ "scope": "collection"
120
121
  }
121
122
  ],
122
123
  "pages": [
@@ -96,7 +96,8 @@
96
96
  ]
97
97
  }
98
98
  ]
99
- }
99
+ },
100
+ "scope": "instance"
100
101
  }
101
102
  ],
102
103
  "pages": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/std",
3
- "version": "6.5.1",
3
+ "version": "7.0.0",
4
4
  "description": "Standard library operators for Almadar (math, string, array, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -41,7 +41,7 @@
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "@almadar/core": ">=4.8.2"
44
+ "@almadar/core": ">=5.0.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@almadar/eslint-plugin": ">=2.3.0",