@almadar/std 6.5.2 → 7.2.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.
- package/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
- package/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
- package/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
- package/behaviors/registry/atoms/std-agent-completion.orb +404 -141
- package/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
- package/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
- package/behaviors/registry/atoms/std-agent-memory.orb +584 -150
- package/behaviors/registry/atoms/std-agent-provider.orb +431 -174
- package/behaviors/registry/atoms/std-agent-search.orb +217 -61
- package/behaviors/registry/atoms/std-agent-session.orb +406 -159
- package/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
- package/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
- package/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
- package/behaviors/registry/atoms/std-async.orb +147 -86
- package/behaviors/registry/atoms/std-autoregressive.orb +64 -73
- package/behaviors/registry/atoms/std-browse.orb +260 -126
- package/behaviors/registry/atoms/std-cache-aside.orb +358 -259
- package/behaviors/registry/atoms/std-calendar.orb +280 -215
- package/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
- package/behaviors/registry/atoms/std-collision.orb +136 -135
- package/behaviors/registry/atoms/std-combat-log.orb +108 -90
- package/behaviors/registry/atoms/std-combat.orb +171 -98
- package/behaviors/registry/atoms/std-confirmation.orb +28 -300
- package/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
- package/behaviors/registry/atoms/std-display.orb +491 -587
- package/behaviors/registry/atoms/std-drawer.orb +194 -121
- package/behaviors/registry/atoms/std-filter.orb +311 -326
- package/behaviors/registry/atoms/std-flip-card.orb +223 -177
- package/behaviors/registry/atoms/std-gallery.orb +130 -151
- package/behaviors/registry/atoms/std-game-audio.orb +133 -72
- package/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
- package/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
- package/behaviors/registry/atoms/std-game-hud.orb +87 -20
- package/behaviors/registry/atoms/std-game-menu.orb +32 -32
- package/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
- package/behaviors/registry/atoms/std-gameflow.orb +147 -80
- package/behaviors/registry/atoms/std-input.orb +128 -393
- package/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
- package/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
- package/behaviors/registry/atoms/std-loading.orb +127 -126
- package/behaviors/registry/atoms/std-modal.orb +30 -267
- package/behaviors/registry/atoms/std-movement.orb +391 -292
- package/behaviors/registry/atoms/std-notification.orb +133 -75
- package/behaviors/registry/atoms/std-overworld.orb +194 -121
- package/behaviors/registry/atoms/std-pagination.orb +120 -53
- package/behaviors/registry/atoms/std-physics2d.orb +94 -93
- package/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
- package/behaviors/registry/atoms/std-push.orb +172 -36
- package/behaviors/registry/atoms/std-quest.orb +552 -449
- package/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
- package/behaviors/registry/atoms/std-rating.orb +123 -65
- package/behaviors/registry/atoms/std-related.orb +202 -26
- package/behaviors/registry/atoms/std-score-board.orb +109 -28
- package/behaviors/registry/atoms/std-score.orb +210 -146
- package/behaviors/registry/atoms/std-search.orb +265 -138
- package/behaviors/registry/atoms/std-selection.orb +311 -220
- package/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
- package/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
- package/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
- package/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
- package/behaviors/registry/atoms/std-service-email.orb +195 -107
- package/behaviors/registry/atoms/std-service-github.orb +216 -122
- package/behaviors/registry/atoms/std-service-llm.orb +204 -122
- package/behaviors/registry/atoms/std-service-oauth.orb +290 -204
- package/behaviors/registry/atoms/std-service-redis.orb +177 -92
- package/behaviors/registry/atoms/std-service-storage.orb +211 -122
- package/behaviors/registry/atoms/std-service-stripe.orb +236 -154
- package/behaviors/registry/atoms/std-service-twilio.orb +221 -137
- package/behaviors/registry/atoms/std-service-youtube.orb +327 -241
- package/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
- package/behaviors/registry/atoms/std-sort.orb +284 -207
- package/behaviors/registry/atoms/std-sprite.orb +150 -74
- package/behaviors/registry/atoms/std-tabs.orb +129 -62
- package/behaviors/registry/atoms/std-text-effects.orb +251 -190
- package/behaviors/registry/atoms/std-theme.orb +193 -135
- package/behaviors/registry/atoms/std-timer.orb +320 -344
- package/behaviors/registry/atoms/std-undo.orb +278 -199
- package/behaviors/registry/atoms/std-upload.orb +112 -111
- package/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
- package/behaviors/registry/atoms/std-wizard.orb +445 -336
- package/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
- package/behaviors/registry/molecules/std-agent-learner.orb +635 -654
- package/behaviors/registry/molecules/std-agent-planner.orb +581 -548
- package/behaviors/registry/molecules/std-agent-rag.orb +414 -410
- package/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
- package/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
- package/behaviors/registry/molecules/std-builder-game.orb +86 -28
- package/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
- package/behaviors/registry/molecules/std-cart.orb +347 -406
- package/behaviors/registry/molecules/std-classifier-game.orb +95 -37
- package/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
- package/behaviors/registry/molecules/std-debugger-game.orb +95 -37
- package/behaviors/registry/molecules/std-detail.orb +133 -138
- package/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
- package/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
- package/behaviors/registry/molecules/std-filtered-list.orb +14 -8
- package/behaviors/registry/molecules/std-form-advanced.orb +242 -153
- package/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
- package/behaviors/registry/molecules/std-geospatial.orb +175 -122
- package/behaviors/registry/molecules/std-inventory.orb +216 -170
- package/behaviors/registry/molecules/std-list.orb +280 -205
- package/behaviors/registry/molecules/std-messaging.orb +146 -99
- package/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
- package/behaviors/registry/molecules/std-platformer-game.orb +300 -171
- package/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
- package/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
- package/behaviors/registry/molecules/std-quiz.orb +322 -263
- package/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
- package/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
- package/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
- package/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
- package/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
- package/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
- package/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
- package/behaviors/registry/molecules/std-simulator-game.orb +96 -38
- package/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
- package/behaviors/registry/molecules/std-wizard-form.orb +60 -9
- package/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
- package/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
- package/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
- package/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
- package/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
- package/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
- package/behaviors/registry/organisms/std-arcade-game.orb +488 -231
- package/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
- package/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
- package/behaviors/registry/organisms/std-cms.orb +1549 -566
- package/behaviors/registry/organisms/std-coding-academy.orb +744 -495
- package/behaviors/registry/organisms/std-crm.orb +1997 -1014
- package/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
- package/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
- package/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
- package/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
- package/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
- package/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
- package/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
- package/behaviors/registry/organisms/std-lms.orb +1629 -1046
- package/behaviors/registry/organisms/std-logic-training.orb +321 -134
- package/behaviors/registry/organisms/std-platformer-app.orb +855 -417
- package/behaviors/registry/organisms/std-project-manager.orb +1795 -877
- package/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
- package/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
- package/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
- package/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
- package/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
- package/behaviors/registry/organisms/std-social-feed.orb +612 -252
- package/behaviors/registry/organisms/std-stem-lab.orb +642 -450
- package/behaviors/registry/organisms/std-strategy-game.orb +893 -650
- package/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
- package/dist/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
- package/dist/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
- package/dist/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
- package/dist/behaviors/registry/atoms/std-agent-completion.orb +404 -141
- package/dist/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
- package/dist/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
- package/dist/behaviors/registry/atoms/std-agent-memory.orb +584 -150
- package/dist/behaviors/registry/atoms/std-agent-provider.orb +431 -174
- package/dist/behaviors/registry/atoms/std-agent-search.orb +217 -61
- package/dist/behaviors/registry/atoms/std-agent-session.orb +406 -159
- package/dist/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
- package/dist/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
- package/dist/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
- package/dist/behaviors/registry/atoms/std-async.orb +147 -86
- package/dist/behaviors/registry/atoms/std-autoregressive.orb +64 -73
- package/dist/behaviors/registry/atoms/std-browse.orb +260 -126
- package/dist/behaviors/registry/atoms/std-cache-aside.orb +358 -259
- package/dist/behaviors/registry/atoms/std-calendar.orb +280 -215
- package/dist/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
- package/dist/behaviors/registry/atoms/std-collision.orb +136 -135
- package/dist/behaviors/registry/atoms/std-combat-log.orb +108 -90
- package/dist/behaviors/registry/atoms/std-combat.orb +171 -98
- package/dist/behaviors/registry/atoms/std-confirmation.orb +28 -300
- package/dist/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
- package/dist/behaviors/registry/atoms/std-display.orb +491 -587
- package/dist/behaviors/registry/atoms/std-drawer.orb +194 -121
- package/dist/behaviors/registry/atoms/std-filter.orb +311 -326
- package/dist/behaviors/registry/atoms/std-flip-card.orb +223 -177
- package/dist/behaviors/registry/atoms/std-gallery.orb +130 -151
- package/dist/behaviors/registry/atoms/std-game-audio.orb +133 -72
- package/dist/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
- package/dist/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
- package/dist/behaviors/registry/atoms/std-game-hud.orb +87 -20
- package/dist/behaviors/registry/atoms/std-game-menu.orb +32 -32
- package/dist/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
- package/dist/behaviors/registry/atoms/std-gameflow.orb +147 -80
- package/dist/behaviors/registry/atoms/std-input.orb +128 -393
- package/dist/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
- package/dist/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
- package/dist/behaviors/registry/atoms/std-loading.orb +127 -126
- package/dist/behaviors/registry/atoms/std-modal.orb +30 -267
- package/dist/behaviors/registry/atoms/std-movement.orb +391 -292
- package/dist/behaviors/registry/atoms/std-notification.orb +133 -75
- package/dist/behaviors/registry/atoms/std-overworld.orb +194 -121
- package/dist/behaviors/registry/atoms/std-pagination.orb +120 -53
- package/dist/behaviors/registry/atoms/std-physics2d.orb +94 -93
- package/dist/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
- package/dist/behaviors/registry/atoms/std-push.orb +172 -36
- package/dist/behaviors/registry/atoms/std-quest.orb +552 -449
- package/dist/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
- package/dist/behaviors/registry/atoms/std-rating.orb +123 -65
- package/dist/behaviors/registry/atoms/std-related.orb +202 -26
- package/dist/behaviors/registry/atoms/std-score-board.orb +109 -28
- package/dist/behaviors/registry/atoms/std-score.orb +210 -146
- package/dist/behaviors/registry/atoms/std-search.orb +265 -138
- package/dist/behaviors/registry/atoms/std-selection.orb +311 -220
- package/dist/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
- package/dist/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
- package/dist/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
- package/dist/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
- package/dist/behaviors/registry/atoms/std-service-email.orb +195 -107
- package/dist/behaviors/registry/atoms/std-service-github.orb +216 -122
- package/dist/behaviors/registry/atoms/std-service-llm.orb +204 -122
- package/dist/behaviors/registry/atoms/std-service-oauth.orb +290 -204
- package/dist/behaviors/registry/atoms/std-service-redis.orb +177 -92
- package/dist/behaviors/registry/atoms/std-service-storage.orb +211 -122
- package/dist/behaviors/registry/atoms/std-service-stripe.orb +236 -154
- package/dist/behaviors/registry/atoms/std-service-twilio.orb +221 -137
- package/dist/behaviors/registry/atoms/std-service-youtube.orb +327 -241
- package/dist/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
- package/dist/behaviors/registry/atoms/std-sort.orb +284 -207
- package/dist/behaviors/registry/atoms/std-sprite.orb +150 -74
- package/dist/behaviors/registry/atoms/std-tabs.orb +129 -62
- package/dist/behaviors/registry/atoms/std-text-effects.orb +251 -190
- package/dist/behaviors/registry/atoms/std-theme.orb +193 -135
- package/dist/behaviors/registry/atoms/std-timer.orb +320 -344
- package/dist/behaviors/registry/atoms/std-undo.orb +278 -199
- package/dist/behaviors/registry/atoms/std-upload.orb +112 -111
- package/dist/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
- package/dist/behaviors/registry/atoms/std-wizard.orb +445 -336
- package/dist/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
- package/dist/behaviors/registry/molecules/std-agent-learner.orb +635 -654
- package/dist/behaviors/registry/molecules/std-agent-planner.orb +581 -548
- package/dist/behaviors/registry/molecules/std-agent-rag.orb +414 -410
- package/dist/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
- package/dist/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
- package/dist/behaviors/registry/molecules/std-builder-game.orb +86 -28
- package/dist/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
- package/dist/behaviors/registry/molecules/std-cart.orb +347 -406
- package/dist/behaviors/registry/molecules/std-classifier-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
- package/dist/behaviors/registry/molecules/std-debugger-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-detail.orb +133 -138
- package/dist/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
- package/dist/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
- package/dist/behaviors/registry/molecules/std-filtered-list.orb +14 -8
- package/dist/behaviors/registry/molecules/std-form-advanced.orb +242 -153
- package/dist/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
- package/dist/behaviors/registry/molecules/std-geospatial.orb +175 -122
- package/dist/behaviors/registry/molecules/std-inventory.orb +216 -170
- package/dist/behaviors/registry/molecules/std-list.orb +280 -205
- package/dist/behaviors/registry/molecules/std-messaging.orb +146 -99
- package/dist/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-platformer-game.orb +300 -171
- package/dist/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
- package/dist/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
- package/dist/behaviors/registry/molecules/std-quiz.orb +322 -263
- package/dist/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
- package/dist/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
- package/dist/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
- package/dist/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
- package/dist/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
- package/dist/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
- package/dist/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
- package/dist/behaviors/registry/molecules/std-simulator-game.orb +96 -38
- package/dist/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
- package/dist/behaviors/registry/molecules/std-wizard-form.orb +60 -9
- package/dist/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
- package/dist/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
- package/dist/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
- package/dist/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
- package/dist/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
- package/dist/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
- package/dist/behaviors/registry/organisms/std-arcade-game.orb +488 -231
- package/dist/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
- package/dist/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
- package/dist/behaviors/registry/organisms/std-cms.orb +1549 -566
- package/dist/behaviors/registry/organisms/std-coding-academy.orb +744 -495
- package/dist/behaviors/registry/organisms/std-crm.orb +1997 -1014
- package/dist/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
- package/dist/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
- package/dist/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
- package/dist/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
- package/dist/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
- package/dist/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
- package/dist/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
- package/dist/behaviors/registry/organisms/std-lms.orb +1629 -1046
- package/dist/behaviors/registry/organisms/std-logic-training.orb +321 -134
- package/dist/behaviors/registry/organisms/std-platformer-app.orb +855 -417
- package/dist/behaviors/registry/organisms/std-project-manager.orb +1795 -877
- package/dist/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
- package/dist/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
- package/dist/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
- package/dist/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
- package/dist/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
- package/dist/behaviors/registry/organisms/std-social-feed.orb +612 -252
- package/dist/behaviors/registry/organisms/std-stem-lab.orb +642 -450
- package/dist/behaviors/registry/organisms/std-strategy-game.orb +893 -650
- package/dist/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/dist/modules/core.js +16 -4
- package/dist/modules/core.js.map +1 -1
- package/dist/modules/index.js +16 -4
- package/dist/modules/index.js.map +1 -1
- package/dist/registry.js +16 -4
- package/dist/registry.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "std-cart",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "std-cart as a Function",
|
|
5
5
|
"orbitals": [
|
|
6
6
|
{
|
|
7
7
|
"name": "CartItemOrbital",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
],
|
|
18
18
|
"entity": {
|
|
19
19
|
"name": "CartItem",
|
|
20
|
-
"persistence": "persistent",
|
|
21
20
|
"collection": "cartitems",
|
|
21
|
+
"persistence": "persistent",
|
|
22
22
|
"fields": [
|
|
23
23
|
{
|
|
24
24
|
"name": "id",
|
|
@@ -56,16 +56,81 @@
|
|
|
56
56
|
"traits": [
|
|
57
57
|
{
|
|
58
58
|
"name": "CartItemCartBrowse",
|
|
59
|
-
"linkedEntity": "CartItem",
|
|
60
59
|
"category": "interaction",
|
|
60
|
+
"linkedEntity": "CartItem",
|
|
61
|
+
"emits": [
|
|
62
|
+
{
|
|
63
|
+
"event": "CartItemLoaded",
|
|
64
|
+
"description": "Fired when the cart collection finishes loading",
|
|
65
|
+
"scope": "internal",
|
|
66
|
+
"payload": [
|
|
67
|
+
{
|
|
68
|
+
"name": "id",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "name",
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "description",
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "status",
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "createdAt",
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "pendingId",
|
|
89
|
+
"type": "string"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"event": "CartItemLoadFailed",
|
|
95
|
+
"description": "Fired when the cart collection fails to load",
|
|
96
|
+
"scope": "internal",
|
|
97
|
+
"payload": [
|
|
98
|
+
{
|
|
99
|
+
"name": "message",
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"listens": [
|
|
106
|
+
{
|
|
107
|
+
"event": "ITEM_CREATED",
|
|
108
|
+
"triggers": "INIT",
|
|
109
|
+
"source": {
|
|
110
|
+
"kind": "trait",
|
|
111
|
+
"trait": "CartItemPersistor"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"event": "ITEM_DELETED",
|
|
116
|
+
"triggers": "INIT",
|
|
117
|
+
"source": {
|
|
118
|
+
"kind": "trait",
|
|
119
|
+
"trait": "CartItemPersistor"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
],
|
|
61
123
|
"stateMachine": {
|
|
62
124
|
"states": [
|
|
63
125
|
{
|
|
64
|
-
"name": "
|
|
126
|
+
"name": "loading",
|
|
65
127
|
"isInitial": true
|
|
66
128
|
},
|
|
67
129
|
{
|
|
68
|
-
"name": "
|
|
130
|
+
"name": "browsing"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "error"
|
|
69
134
|
}
|
|
70
135
|
],
|
|
71
136
|
"events": [
|
|
@@ -74,49 +139,72 @@
|
|
|
74
139
|
"name": "Initialize"
|
|
75
140
|
},
|
|
76
141
|
{
|
|
77
|
-
"key": "
|
|
78
|
-
"name": "
|
|
142
|
+
"key": "CartItemLoaded",
|
|
143
|
+
"name": "CartItem loaded"
|
|
79
144
|
},
|
|
80
145
|
{
|
|
81
|
-
"key": "
|
|
82
|
-
"name": "
|
|
146
|
+
"key": "CartItemLoadFailed",
|
|
147
|
+
"name": "CartItem load failed",
|
|
83
148
|
"payload": [
|
|
84
149
|
{
|
|
85
|
-
"name": "
|
|
86
|
-
"type": "string"
|
|
87
|
-
"required": true
|
|
150
|
+
"name": "message",
|
|
151
|
+
"type": "string"
|
|
88
152
|
}
|
|
89
153
|
]
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"key": "PROCEED_CHECKOUT",
|
|
93
|
-
"name": "Proceed to Checkout"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"key": "BACK_TO_CART",
|
|
97
|
-
"name": "Back to Cart"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"key": "CONFIRM_ORDER",
|
|
101
|
-
"name": "Confirm Order"
|
|
102
154
|
}
|
|
103
155
|
],
|
|
104
156
|
"transitions": [
|
|
105
157
|
{
|
|
106
|
-
"from": "
|
|
107
|
-
"to": "
|
|
158
|
+
"from": "loading",
|
|
159
|
+
"to": "loading",
|
|
108
160
|
"event": "INIT",
|
|
109
161
|
"effects": [
|
|
110
162
|
[
|
|
111
|
-
"
|
|
112
|
-
"CartItem"
|
|
163
|
+
"fetch",
|
|
164
|
+
"CartItem",
|
|
165
|
+
{
|
|
166
|
+
"emit": {
|
|
167
|
+
"failure": "CartItemLoadFailed",
|
|
168
|
+
"success": "CartItemLoaded"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
113
171
|
],
|
|
114
172
|
[
|
|
115
173
|
"render-ui",
|
|
116
174
|
"main",
|
|
117
175
|
{
|
|
176
|
+
"direction": "vertical",
|
|
177
|
+
"className": "py-12",
|
|
178
|
+
"gap": "md",
|
|
179
|
+
"children": [
|
|
180
|
+
{
|
|
181
|
+
"type": "spinner",
|
|
182
|
+
"size": "lg"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"variant": "caption",
|
|
186
|
+
"color": "muted",
|
|
187
|
+
"content": "Loading cart…",
|
|
188
|
+
"type": "typography"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
118
191
|
"type": "stack",
|
|
192
|
+
"align": "center"
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"from": "loading",
|
|
199
|
+
"to": "browsing",
|
|
200
|
+
"event": "CartItemLoaded",
|
|
201
|
+
"effects": [
|
|
202
|
+
[
|
|
203
|
+
"render-ui",
|
|
204
|
+
"main",
|
|
205
|
+
{
|
|
119
206
|
"direction": "vertical",
|
|
207
|
+
"type": "stack",
|
|
120
208
|
"gap": "lg",
|
|
121
209
|
"children": [
|
|
122
210
|
{
|
|
@@ -126,26 +214,26 @@
|
|
|
126
214
|
"justify": "space-between",
|
|
127
215
|
"children": [
|
|
128
216
|
{
|
|
129
|
-
"type": "stack",
|
|
130
|
-
"direction": "horizontal",
|
|
131
217
|
"gap": "md",
|
|
132
218
|
"children": [
|
|
133
219
|
{
|
|
134
220
|
"type": "icon",
|
|
135
|
-
"
|
|
136
|
-
"
|
|
221
|
+
"size": "lg",
|
|
222
|
+
"name": "shopping-cart"
|
|
137
223
|
},
|
|
138
224
|
{
|
|
139
|
-
"
|
|
225
|
+
"variant": "h2",
|
|
140
226
|
"content": "Shopping Cart",
|
|
141
|
-
"
|
|
227
|
+
"type": "typography"
|
|
142
228
|
}
|
|
143
|
-
]
|
|
229
|
+
],
|
|
230
|
+
"direction": "horizontal",
|
|
231
|
+
"type": "stack"
|
|
144
232
|
},
|
|
145
233
|
{
|
|
146
|
-
"type": "button",
|
|
147
234
|
"label": "Add Item",
|
|
148
235
|
"event": "ADD_ITEM",
|
|
236
|
+
"type": "button",
|
|
149
237
|
"variant": "primary",
|
|
150
238
|
"icon": "plus"
|
|
151
239
|
}
|
|
@@ -155,81 +243,37 @@
|
|
|
155
243
|
"type": "divider"
|
|
156
244
|
},
|
|
157
245
|
{
|
|
158
|
-
"type": "simple-grid",
|
|
159
|
-
"columns": 3,
|
|
160
|
-
"children": [
|
|
161
|
-
{
|
|
162
|
-
"type": "stat-display",
|
|
163
|
-
"label": "Items",
|
|
164
|
-
"value": [
|
|
165
|
-
"array/len",
|
|
166
|
-
"@entity"
|
|
167
|
-
],
|
|
168
|
-
"icon": "package"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"type": "stat-display",
|
|
172
|
-
"label": "Subtotal",
|
|
173
|
-
"value": [
|
|
174
|
-
"array/len",
|
|
175
|
-
"@entity"
|
|
176
|
-
],
|
|
177
|
-
"icon": "dollar-sign"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"type": "stat-display",
|
|
181
|
-
"label": "Total",
|
|
182
|
-
"value": [
|
|
183
|
-
"array/len",
|
|
184
|
-
"@entity"
|
|
185
|
-
],
|
|
186
|
-
"icon": "receipt"
|
|
187
|
-
}
|
|
188
|
-
]
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"type": "divider"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"type": "data-grid",
|
|
195
|
-
"entity": "CartItem",
|
|
196
|
-
"emptyIcon": "inbox",
|
|
197
|
-
"emptyTitle": "Your cart is empty",
|
|
198
246
|
"emptyDescription": "Add items to get started.",
|
|
199
247
|
"itemActions": [
|
|
200
248
|
{
|
|
201
249
|
"label": "Remove",
|
|
202
|
-
"event": "REQUEST_REMOVE",
|
|
203
250
|
"variant": "danger",
|
|
204
|
-
"size": "sm"
|
|
251
|
+
"size": "sm",
|
|
252
|
+
"event": "REQUEST_REMOVE"
|
|
205
253
|
}
|
|
206
254
|
],
|
|
255
|
+
"type": "data-grid",
|
|
256
|
+
"emptyTitle": "Your cart is empty",
|
|
257
|
+
"entity": "CartItem",
|
|
207
258
|
"columns": [
|
|
208
259
|
{
|
|
209
260
|
"name": "name",
|
|
261
|
+
"icon": "shopping-cart",
|
|
210
262
|
"label": "Name",
|
|
211
|
-
"variant": "h4"
|
|
212
|
-
"icon": "shopping-cart"
|
|
263
|
+
"variant": "h4"
|
|
213
264
|
},
|
|
214
265
|
{
|
|
215
|
-
"name": "description",
|
|
216
266
|
"label": "Description",
|
|
217
|
-
"
|
|
218
|
-
"
|
|
267
|
+
"name": "description",
|
|
268
|
+
"variant": "caption"
|
|
219
269
|
},
|
|
220
270
|
{
|
|
221
|
-
"name": "status",
|
|
222
271
|
"label": "Status",
|
|
272
|
+
"name": "status",
|
|
223
273
|
"variant": "badge"
|
|
224
274
|
}
|
|
225
|
-
]
|
|
226
|
-
|
|
227
|
-
{
|
|
228
|
-
"type": "button",
|
|
229
|
-
"label": "Proceed to Checkout",
|
|
230
|
-
"event": "PROCEED_CHECKOUT",
|
|
231
|
-
"variant": "primary",
|
|
232
|
-
"icon": "arrow-right"
|
|
275
|
+
],
|
|
276
|
+
"emptyIcon": "inbox"
|
|
233
277
|
}
|
|
234
278
|
]
|
|
235
279
|
}
|
|
@@ -237,378 +281,272 @@
|
|
|
237
281
|
]
|
|
238
282
|
},
|
|
239
283
|
{
|
|
240
|
-
"from": "
|
|
241
|
-
"to": "
|
|
242
|
-
"event": "
|
|
284
|
+
"from": "loading",
|
|
285
|
+
"to": "error",
|
|
286
|
+
"event": "CartItemLoadFailed",
|
|
243
287
|
"effects": [
|
|
244
|
-
[
|
|
245
|
-
"ref",
|
|
246
|
-
"CartItem"
|
|
247
|
-
],
|
|
248
288
|
[
|
|
249
289
|
"render-ui",
|
|
250
290
|
"main",
|
|
251
291
|
{
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
"gap": "
|
|
292
|
+
"align": "center",
|
|
293
|
+
"className": "py-12",
|
|
294
|
+
"gap": "md",
|
|
255
295
|
"children": [
|
|
256
296
|
{
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"
|
|
260
|
-
"
|
|
261
|
-
{
|
|
262
|
-
"type": "icon",
|
|
263
|
-
"name": "clipboard",
|
|
264
|
-
"size": "lg"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"type": "typography",
|
|
268
|
-
"content": "Checkout",
|
|
269
|
-
"variant": "h2"
|
|
270
|
-
}
|
|
271
|
-
]
|
|
297
|
+
"size": "xl",
|
|
298
|
+
"name": "alert-triangle",
|
|
299
|
+
"color": "destructive",
|
|
300
|
+
"type": "icon"
|
|
272
301
|
},
|
|
273
302
|
{
|
|
274
|
-
"
|
|
303
|
+
"content": "Failed to load cart",
|
|
304
|
+
"type": "typography",
|
|
305
|
+
"variant": "h3"
|
|
275
306
|
},
|
|
276
307
|
{
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"emptyDescription": "Add items to get started.",
|
|
282
|
-
"itemActions": [
|
|
283
|
-
{
|
|
284
|
-
"label": "Remove",
|
|
285
|
-
"event": "REQUEST_REMOVE",
|
|
286
|
-
"variant": "danger",
|
|
287
|
-
"size": "sm"
|
|
288
|
-
}
|
|
289
|
-
],
|
|
290
|
-
"columns": [
|
|
291
|
-
{
|
|
292
|
-
"name": "name",
|
|
293
|
-
"label": "Name",
|
|
294
|
-
"variant": "h4",
|
|
295
|
-
"icon": "shopping-cart"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
"name": "description",
|
|
299
|
-
"label": "Description",
|
|
300
|
-
"variant": "caption",
|
|
301
|
-
"format": "currency"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"name": "status",
|
|
305
|
-
"label": "Status",
|
|
306
|
-
"variant": "badge"
|
|
307
|
-
}
|
|
308
|
-
]
|
|
308
|
+
"color": "muted",
|
|
309
|
+
"content": "@payload.message",
|
|
310
|
+
"type": "typography",
|
|
311
|
+
"variant": "body"
|
|
309
312
|
},
|
|
310
313
|
{
|
|
311
|
-
"
|
|
312
|
-
"
|
|
313
|
-
"
|
|
314
|
-
"
|
|
315
|
-
"
|
|
316
|
-
{
|
|
317
|
-
"type": "button",
|
|
318
|
-
"label": "Back to Cart",
|
|
319
|
-
"event": "BACK_TO_CART",
|
|
320
|
-
"variant": "ghost",
|
|
321
|
-
"icon": "arrow-left"
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
"type": "button",
|
|
325
|
-
"label": "Confirm Order",
|
|
326
|
-
"event": "CONFIRM_ORDER",
|
|
327
|
-
"variant": "primary",
|
|
328
|
-
"icon": "check"
|
|
329
|
-
}
|
|
330
|
-
]
|
|
314
|
+
"variant": "primary",
|
|
315
|
+
"label": "Retry",
|
|
316
|
+
"icon": "rotate-ccw",
|
|
317
|
+
"type": "button",
|
|
318
|
+
"event": "INIT"
|
|
331
319
|
}
|
|
332
|
-
]
|
|
320
|
+
],
|
|
321
|
+
"type": "stack",
|
|
322
|
+
"direction": "vertical"
|
|
333
323
|
}
|
|
334
324
|
]
|
|
335
325
|
]
|
|
336
326
|
},
|
|
337
327
|
{
|
|
338
|
-
"from": "
|
|
339
|
-
"to": "
|
|
340
|
-
"event": "
|
|
328
|
+
"from": "browsing",
|
|
329
|
+
"to": "loading",
|
|
330
|
+
"event": "INIT",
|
|
341
331
|
"effects": [
|
|
342
332
|
[
|
|
343
|
-
"
|
|
344
|
-
"CartItem"
|
|
333
|
+
"fetch",
|
|
334
|
+
"CartItem",
|
|
335
|
+
{
|
|
336
|
+
"emit": {
|
|
337
|
+
"success": "CartItemLoaded",
|
|
338
|
+
"failure": "CartItemLoadFailed"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
[
|
|
343
|
+
"render-ui",
|
|
344
|
+
"main",
|
|
345
|
+
{
|
|
346
|
+
"type": "spinner",
|
|
347
|
+
"size": "lg"
|
|
348
|
+
}
|
|
345
349
|
]
|
|
346
350
|
]
|
|
347
351
|
},
|
|
348
352
|
{
|
|
349
|
-
"from": "
|
|
350
|
-
"to": "
|
|
351
|
-
"event": "
|
|
353
|
+
"from": "error",
|
|
354
|
+
"to": "loading",
|
|
355
|
+
"event": "INIT",
|
|
352
356
|
"effects": [
|
|
353
357
|
[
|
|
354
|
-
"
|
|
355
|
-
"CartItem"
|
|
358
|
+
"fetch",
|
|
359
|
+
"CartItem",
|
|
360
|
+
{
|
|
361
|
+
"emit": {
|
|
362
|
+
"failure": "CartItemLoadFailed",
|
|
363
|
+
"success": "CartItemLoaded"
|
|
364
|
+
}
|
|
365
|
+
}
|
|
356
366
|
],
|
|
357
367
|
[
|
|
358
368
|
"render-ui",
|
|
359
369
|
"main",
|
|
360
370
|
{
|
|
361
|
-
"type": "
|
|
362
|
-
"
|
|
363
|
-
"gap": "lg",
|
|
364
|
-
"align": "center",
|
|
365
|
-
"children": [
|
|
366
|
-
{
|
|
367
|
-
"type": "icon",
|
|
368
|
-
"name": "check-circle",
|
|
369
|
-
"size": "lg"
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"type": "typography",
|
|
373
|
-
"content": "Order Confirmed",
|
|
374
|
-
"variant": "h2"
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
"type": "typography",
|
|
378
|
-
"content": "Your order has been placed successfully.",
|
|
379
|
-
"variant": "body"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
"type": "button",
|
|
383
|
-
"label": "Continue Shopping",
|
|
384
|
-
"event": "INIT",
|
|
385
|
-
"variant": "primary"
|
|
386
|
-
}
|
|
387
|
-
]
|
|
371
|
+
"type": "spinner",
|
|
372
|
+
"size": "lg"
|
|
388
373
|
}
|
|
389
374
|
]
|
|
390
375
|
]
|
|
391
376
|
}
|
|
392
377
|
]
|
|
393
|
-
}
|
|
378
|
+
},
|
|
379
|
+
"scope": "collection"
|
|
394
380
|
},
|
|
395
381
|
{
|
|
396
382
|
"ref": "Modal.traits.ModalRecordModal",
|
|
397
383
|
"name": "CartItemAddItem",
|
|
398
384
|
"linkedEntity": "CartItem",
|
|
385
|
+
"config": {
|
|
386
|
+
"mode": "create",
|
|
387
|
+
"icon": "plus-circle",
|
|
388
|
+
"title": "Add Item",
|
|
389
|
+
"openButtonLabel": "Add Item",
|
|
390
|
+
"fields": [
|
|
391
|
+
"name",
|
|
392
|
+
"description",
|
|
393
|
+
"status"
|
|
394
|
+
]
|
|
395
|
+
},
|
|
399
396
|
"events": {
|
|
400
397
|
"OPEN": "ADD_ITEM"
|
|
401
|
-
},
|
|
402
|
-
"effects": {
|
|
403
|
-
"INIT": [
|
|
404
|
-
[
|
|
405
|
-
"ref",
|
|
406
|
-
"CartItem"
|
|
407
|
-
]
|
|
408
|
-
],
|
|
409
|
-
"ADD_ITEM": [
|
|
410
|
-
[
|
|
411
|
-
"fetch",
|
|
412
|
-
"CartItem"
|
|
413
|
-
],
|
|
414
|
-
[
|
|
415
|
-
"render-ui",
|
|
416
|
-
"modal",
|
|
417
|
-
{
|
|
418
|
-
"type": "stack",
|
|
419
|
-
"direction": "vertical",
|
|
420
|
-
"gap": "md",
|
|
421
|
-
"children": [
|
|
422
|
-
{
|
|
423
|
-
"type": "stack",
|
|
424
|
-
"direction": "horizontal",
|
|
425
|
-
"gap": "sm",
|
|
426
|
-
"children": [
|
|
427
|
-
{
|
|
428
|
-
"type": "icon",
|
|
429
|
-
"name": "plus-circle",
|
|
430
|
-
"size": "md"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"type": "typography",
|
|
434
|
-
"content": "Add Item",
|
|
435
|
-
"variant": "h3"
|
|
436
|
-
}
|
|
437
|
-
]
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"type": "divider"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"type": "form-section",
|
|
444
|
-
"entity": "CartItem",
|
|
445
|
-
"mode": "create",
|
|
446
|
-
"submitEvent": "SAVE",
|
|
447
|
-
"cancelEvent": "CLOSE",
|
|
448
|
-
"fields": [
|
|
449
|
-
"name",
|
|
450
|
-
"description",
|
|
451
|
-
"status"
|
|
452
|
-
]
|
|
453
|
-
}
|
|
454
|
-
]
|
|
455
|
-
}
|
|
456
|
-
]
|
|
457
|
-
],
|
|
458
|
-
"CLOSE": [
|
|
459
|
-
[
|
|
460
|
-
"render-ui",
|
|
461
|
-
"modal",
|
|
462
|
-
null
|
|
463
|
-
],
|
|
464
|
-
[
|
|
465
|
-
"notify",
|
|
466
|
-
"Cancelled",
|
|
467
|
-
"info"
|
|
468
|
-
]
|
|
469
|
-
],
|
|
470
|
-
"SAVE": [
|
|
471
|
-
[
|
|
472
|
-
"persist",
|
|
473
|
-
"create",
|
|
474
|
-
"CartItem",
|
|
475
|
-
"@payload.data"
|
|
476
|
-
],
|
|
477
|
-
[
|
|
478
|
-
"render-ui",
|
|
479
|
-
"modal",
|
|
480
|
-
null
|
|
481
|
-
]
|
|
482
|
-
]
|
|
483
398
|
}
|
|
484
399
|
},
|
|
485
400
|
{
|
|
486
401
|
"ref": "Confirmation.traits.ConfirmActionConfirmation",
|
|
487
402
|
"name": "CartItemRemoveConfirm",
|
|
488
403
|
"linkedEntity": "CartItem",
|
|
489
|
-
"
|
|
490
|
-
"
|
|
491
|
-
"
|
|
404
|
+
"config": {
|
|
405
|
+
"icon": "alert-triangle",
|
|
406
|
+
"title": "Remove Item",
|
|
407
|
+
"confirmLabel": "Remove",
|
|
408
|
+
"alertMessage": "Are you sure you want to remove this item from your cart?"
|
|
492
409
|
},
|
|
493
|
-
"
|
|
494
|
-
"
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
[
|
|
507
|
-
"fetch",
|
|
508
|
-
"CartItem",
|
|
410
|
+
"events": {
|
|
411
|
+
"CONFIRM": "CONFIRM_REMOVE",
|
|
412
|
+
"REQUEST": "REQUEST_REMOVE"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "CartItemPersistor",
|
|
417
|
+
"category": "lifecycle",
|
|
418
|
+
"linkedEntity": "CartItem",
|
|
419
|
+
"emits": [
|
|
420
|
+
{
|
|
421
|
+
"event": "ITEM_CREATED",
|
|
422
|
+
"scope": "external",
|
|
423
|
+
"payload": [
|
|
509
424
|
{
|
|
510
|
-
"
|
|
425
|
+
"name": "id",
|
|
426
|
+
"type": "string"
|
|
511
427
|
}
|
|
512
|
-
]
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
428
|
+
]
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"event": "ITEM_DELETED",
|
|
432
|
+
"scope": "external",
|
|
433
|
+
"payload": [
|
|
516
434
|
{
|
|
517
|
-
"
|
|
518
|
-
"
|
|
519
|
-
"gap": "md",
|
|
520
|
-
"children": [
|
|
521
|
-
{
|
|
522
|
-
"type": "stack",
|
|
523
|
-
"direction": "horizontal",
|
|
524
|
-
"gap": "sm",
|
|
525
|
-
"align": "center",
|
|
526
|
-
"children": [
|
|
527
|
-
{
|
|
528
|
-
"type": "icon",
|
|
529
|
-
"name": "alert-triangle",
|
|
530
|
-
"size": "md"
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
"type": "typography",
|
|
534
|
-
"content": "Remove Item",
|
|
535
|
-
"variant": "h3"
|
|
536
|
-
}
|
|
537
|
-
]
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"type": "divider"
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"type": "alert",
|
|
544
|
-
"variant": "danger",
|
|
545
|
-
"message": "Are you sure you want to remove this item from your cart?"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
"type": "stack",
|
|
549
|
-
"direction": "horizontal",
|
|
550
|
-
"gap": "sm",
|
|
551
|
-
"justify": "end",
|
|
552
|
-
"children": [
|
|
553
|
-
{
|
|
554
|
-
"type": "button",
|
|
555
|
-
"label": "Cancel",
|
|
556
|
-
"event": "CANCEL",
|
|
557
|
-
"variant": "ghost"
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"type": "button",
|
|
561
|
-
"label": "Remove",
|
|
562
|
-
"event": "CONFIRM_REMOVE",
|
|
563
|
-
"variant": "danger",
|
|
564
|
-
"icon": "check"
|
|
565
|
-
}
|
|
566
|
-
]
|
|
567
|
-
}
|
|
568
|
-
]
|
|
435
|
+
"name": "id",
|
|
436
|
+
"type": "string"
|
|
569
437
|
}
|
|
570
438
|
]
|
|
439
|
+
}
|
|
440
|
+
],
|
|
441
|
+
"listens": [
|
|
442
|
+
{
|
|
443
|
+
"event": "SAVE",
|
|
444
|
+
"triggers": "DO_CREATE",
|
|
445
|
+
"source": {
|
|
446
|
+
"kind": "trait",
|
|
447
|
+
"trait": "CartItemAddItem"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"event": "CONFIRM_REMOVE",
|
|
452
|
+
"triggers": "DO_DELETE",
|
|
453
|
+
"source": {
|
|
454
|
+
"kind": "trait",
|
|
455
|
+
"trait": "CartItemRemoveConfirm"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"stateMachine": {
|
|
460
|
+
"states": [
|
|
461
|
+
{
|
|
462
|
+
"name": "idle",
|
|
463
|
+
"isInitial": true
|
|
464
|
+
}
|
|
571
465
|
],
|
|
572
|
-
"
|
|
573
|
-
|
|
574
|
-
"
|
|
575
|
-
"
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
"
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
"
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
466
|
+
"events": [
|
|
467
|
+
{
|
|
468
|
+
"key": "INIT",
|
|
469
|
+
"name": "Initialize"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"key": "DO_CREATE",
|
|
473
|
+
"name": "Do Create",
|
|
474
|
+
"payload": [
|
|
475
|
+
{
|
|
476
|
+
"name": "data",
|
|
477
|
+
"type": "object",
|
|
478
|
+
"required": true
|
|
479
|
+
}
|
|
480
|
+
]
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"key": "DO_DELETE",
|
|
484
|
+
"name": "Do Delete",
|
|
485
|
+
"payload": [
|
|
486
|
+
{
|
|
487
|
+
"name": "id",
|
|
488
|
+
"type": "string"
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"key": "ITEM_CREATED",
|
|
494
|
+
"name": "Item Created"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"key": "ITEM_DELETED",
|
|
498
|
+
"name": "Item Deleted"
|
|
499
|
+
}
|
|
599
500
|
],
|
|
600
|
-
"
|
|
601
|
-
|
|
602
|
-
"
|
|
603
|
-
"
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
"
|
|
608
|
-
"
|
|
609
|
-
|
|
501
|
+
"transitions": [
|
|
502
|
+
{
|
|
503
|
+
"from": "idle",
|
|
504
|
+
"to": "idle",
|
|
505
|
+
"event": "INIT"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"from": "idle",
|
|
509
|
+
"to": "idle",
|
|
510
|
+
"event": "DO_CREATE",
|
|
511
|
+
"effects": [
|
|
512
|
+
[
|
|
513
|
+
"persist",
|
|
514
|
+
"create",
|
|
515
|
+
"CartItem",
|
|
516
|
+
"@payload.data"
|
|
517
|
+
],
|
|
518
|
+
[
|
|
519
|
+
"emit",
|
|
520
|
+
"ITEM_CREATED",
|
|
521
|
+
{
|
|
522
|
+
"id": "@payload.data.id"
|
|
523
|
+
}
|
|
524
|
+
]
|
|
525
|
+
]
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"from": "idle",
|
|
529
|
+
"to": "idle",
|
|
530
|
+
"event": "DO_DELETE",
|
|
531
|
+
"effects": [
|
|
532
|
+
[
|
|
533
|
+
"persist",
|
|
534
|
+
"delete",
|
|
535
|
+
"CartItem",
|
|
536
|
+
"@entity.pendingId"
|
|
537
|
+
],
|
|
538
|
+
[
|
|
539
|
+
"emit",
|
|
540
|
+
"ITEM_DELETED",
|
|
541
|
+
{
|
|
542
|
+
"id": "@entity.pendingId"
|
|
543
|
+
}
|
|
544
|
+
]
|
|
545
|
+
]
|
|
546
|
+
}
|
|
610
547
|
]
|
|
611
|
-
}
|
|
548
|
+
},
|
|
549
|
+
"scope": "instance"
|
|
612
550
|
}
|
|
613
551
|
],
|
|
614
552
|
"pages": [
|
|
@@ -624,10 +562,13 @@
|
|
|
624
562
|
},
|
|
625
563
|
{
|
|
626
564
|
"ref": "CartItemRemoveConfirm"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"ref": "CartItemPersistor"
|
|
627
568
|
}
|
|
628
569
|
]
|
|
629
570
|
}
|
|
630
571
|
]
|
|
631
572
|
}
|
|
632
573
|
]
|
|
633
|
-
}
|
|
574
|
+
}
|