@almadar/std 14.27.0 → 14.28.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 (25) hide show
  1. package/behaviors/registry/app/atoms/std-approval-chain.orb +106 -0
  2. package/behaviors/registry/app/atoms/std-multi-party-transaction.orb +130 -0
  3. package/behaviors/registry/app/atoms/std-pipeline.orb +139 -0
  4. package/behaviors/registry/app/atoms/std-recurring-schedule.orb +94 -0
  5. package/behaviors/registry/app/atoms/std-timeline.orb +108 -0
  6. package/behaviors/registry/app/atoms/std-wizard-branching.orb +129 -0
  7. package/behaviors/registry/core/atoms/std-board.orb +1367 -0
  8. package/behaviors/registry/core/atoms/std-event-log.orb +777 -0
  9. package/behaviors/registry/core/atoms/std-multi-party-flow.orb +1313 -0
  10. package/behaviors/registry/core/atoms/std-recurrence.orb +937 -0
  11. package/behaviors/registry/core/atoms/std-step-flow.orb +1155 -0
  12. package/behaviors/registry/core/atoms/std-wizard.orb +1085 -0
  13. package/dist/behaviors/registry/app/atoms/std-approval-chain.orb +106 -0
  14. package/dist/behaviors/registry/app/atoms/std-multi-party-transaction.orb +130 -0
  15. package/dist/behaviors/registry/app/atoms/std-pipeline.orb +139 -0
  16. package/dist/behaviors/registry/app/atoms/std-recurring-schedule.orb +94 -0
  17. package/dist/behaviors/registry/app/atoms/std-timeline.orb +108 -0
  18. package/dist/behaviors/registry/app/atoms/std-wizard-branching.orb +129 -0
  19. package/dist/behaviors/registry/core/atoms/std-board.orb +1367 -0
  20. package/dist/behaviors/registry/core/atoms/std-event-log.orb +777 -0
  21. package/dist/behaviors/registry/core/atoms/std-multi-party-flow.orb +1313 -0
  22. package/dist/behaviors/registry/core/atoms/std-recurrence.orb +937 -0
  23. package/dist/behaviors/registry/core/atoms/std-step-flow.orb +1155 -0
  24. package/dist/behaviors/registry/core/atoms/std-wizard.orb +1085 -0
  25. package/package.json +1 -1
@@ -0,0 +1,106 @@
1
+ {
2
+ "name": "std-approval-chain",
3
+ "version": "2.0.0",
4
+ "description": "std-approval-chain — domain-specific N-step approval workflow. Composes std-step-flow with persisted ApprovalRequest entity carrying domain fields (requestType, amount, requester). Lights up std-legal-case, std-ap-bill, std-change-order, std-application (hr-portal) — each rebinds std-step-flow + sets its own `config.steps` array.",
5
+ "orbitals": [
6
+ {
7
+ "name": "ApprovalChainOrbital",
8
+ "uses": [
9
+ {
10
+ "from": "std/behaviors/std-step-flow",
11
+ "as": "Flow"
12
+ }
13
+ ],
14
+ "entity": {
15
+ "name": "ApprovalRequest",
16
+ "collection": "approval_requests",
17
+ "persistence": "persistent",
18
+ "fields": [
19
+ {
20
+ "name": "id",
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ {
25
+ "name": "title",
26
+ "type": "string",
27
+ "required": true
28
+ },
29
+ {
30
+ "name": "description",
31
+ "type": "string",
32
+ "default": ""
33
+ },
34
+ {
35
+ "name": "requestType",
36
+ "type": "string",
37
+ "default": "expense",
38
+ "values": [
39
+ "expense",
40
+ "purchase",
41
+ "leave",
42
+ "policy",
43
+ "contract"
44
+ ]
45
+ },
46
+ {
47
+ "name": "amount",
48
+ "type": "number",
49
+ "default": 0.0
50
+ },
51
+ {
52
+ "name": "requester",
53
+ "type": "string",
54
+ "default": ""
55
+ },
56
+ {
57
+ "name": "submittedAt",
58
+ "type": "string",
59
+ "default": ""
60
+ }
61
+ ]
62
+ },
63
+ "traits": [
64
+ {
65
+ "ref": "Flow.traits.StepFlowReview",
66
+ "name": "ApprovalReview",
67
+ "linkedEntity": "ApprovalRequest",
68
+ "config": {
69
+ "steps": [
70
+ {
71
+ "description": "Direct manager reviews the request and verifies budget impact",
72
+ "key": "manager",
73
+ "label": "Manager Review",
74
+ "icon": "user-check"
75
+ },
76
+ {
77
+ "label": "Finance Approval",
78
+ "key": "finance",
79
+ "icon": "calculator",
80
+ "description": "Finance team checks compliance with company policy"
81
+ },
82
+ {
83
+ "label": "Executive Sign-off",
84
+ "description": "Final executive approval before commitment",
85
+ "key": "executive",
86
+ "icon": "shield-check"
87
+ }
88
+ ],
89
+ "title": "Approval Request"
90
+ }
91
+ }
92
+ ],
93
+ "pages": [
94
+ {
95
+ "name": "ApprovalChainPage",
96
+ "path": "/approval-chain",
97
+ "traits": [
98
+ {
99
+ "ref": "ApprovalReview"
100
+ }
101
+ ]
102
+ }
103
+ ]
104
+ }
105
+ ]
106
+ }
@@ -0,0 +1,130 @@
1
+ {
2
+ "name": "std-multi-party-transaction",
3
+ "version": "2.0.0",
4
+ "description": "std-multi-party-transaction — domain-specific N-party escrow flow. Composes std-multi-party-flow with persisted MarketTransaction entity (amount, currency, ids per role, listingId). Lights up std-marketplace, std-ecommerce checkout, std-listings offer+accept; configure `config.parties` for any number of stakeholders.",
5
+ "orbitals": [
6
+ {
7
+ "name": "MultiPartyTransactionOrbital",
8
+ "uses": [
9
+ {
10
+ "from": "std/behaviors/std-multi-party-flow",
11
+ "as": "Flow"
12
+ }
13
+ ],
14
+ "entity": {
15
+ "name": "MarketTransaction",
16
+ "collection": "market_transactions",
17
+ "persistence": "persistent",
18
+ "fields": [
19
+ {
20
+ "name": "id",
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ {
25
+ "name": "title",
26
+ "type": "string",
27
+ "required": true
28
+ },
29
+ {
30
+ "name": "amount",
31
+ "type": "number",
32
+ "default": 0.0
33
+ },
34
+ {
35
+ "name": "currency",
36
+ "type": "string",
37
+ "default": "USD",
38
+ "values": [
39
+ "USD",
40
+ "EUR",
41
+ "GBP",
42
+ "SAR",
43
+ "AED"
44
+ ]
45
+ },
46
+ {
47
+ "name": "buyerId",
48
+ "type": "string",
49
+ "default": ""
50
+ },
51
+ {
52
+ "name": "sellerId",
53
+ "type": "string",
54
+ "default": ""
55
+ },
56
+ {
57
+ "name": "listingId",
58
+ "type": "string",
59
+ "default": ""
60
+ },
61
+ {
62
+ "name": "action",
63
+ "type": "string",
64
+ "default": ""
65
+ },
66
+ {
67
+ "name": "actor",
68
+ "type": "string",
69
+ "default": ""
70
+ },
71
+ {
72
+ "name": "notes",
73
+ "type": "string",
74
+ "default": ""
75
+ },
76
+ {
77
+ "name": "createdAt",
78
+ "type": "string",
79
+ "default": ""
80
+ }
81
+ ]
82
+ },
83
+ "traits": [
84
+ {
85
+ "ref": "Flow.traits.MultiPartyTransaction",
86
+ "name": "MarketEscrow",
87
+ "linkedEntity": "MarketTransaction",
88
+ "config": {
89
+ "title": "Marketplace Transaction",
90
+ "cancelIcon": "x",
91
+ "parties": [
92
+ {
93
+ "actionIcon": "credit-card",
94
+ "key": "buyer",
95
+ "label": "Buyer",
96
+ "description": "Funds the escrow",
97
+ "icon": "shopping-cart",
98
+ "actionLabel": "Fund Escrow"
99
+ },
100
+ {
101
+ "icon": "package",
102
+ "key": "seller",
103
+ "actionLabel": "Ship Item",
104
+ "label": "Seller",
105
+ "actionIcon": "truck",
106
+ "description": "Ships the item"
107
+ }
108
+ ],
109
+ "releaseLabel": "Release Funds",
110
+ "disputeIcon": "alert-triangle",
111
+ "releaseIcon": "unlock",
112
+ "cancelLabel": "Cancel Transaction",
113
+ "disputeLabel": "Open Dispute"
114
+ }
115
+ }
116
+ ],
117
+ "pages": [
118
+ {
119
+ "name": "MultiPartyTransactionPage",
120
+ "path": "/multi-party-transaction",
121
+ "traits": [
122
+ {
123
+ "ref": "MarketEscrow"
124
+ }
125
+ ]
126
+ }
127
+ ]
128
+ }
129
+ ]
130
+ }
@@ -0,0 +1,139 @@
1
+ {
2
+ "name": "std-pipeline",
3
+ "version": "1.0.0",
4
+ "description": "std-pipeline — pipeline-of-work specialization of std-board. Inherits the three-column board topology + state machine from std-board, adds pipeline-domain fields (priority, assignee, dueDate) to the persisted entity, and ships pipeline-flavored column defaults (`To Do / In Progress / Done`). The composition: `uses Board from std-board`, declare a `PipelineItem` entity that extends BoardItem's shape with the domain fields, and rebind the BoardView trait to PipelineItem so its internal fetches + persists target the pipeline collection. State-machine topology stays atom-owned by std-board (locking in the loading / viewing_board / viewing_card / adding / error shape that's structurally distinct from the cookie-cutter CRUD shape).",
5
+ "orbitals": [
6
+ {
7
+ "name": "PipelineOrbital",
8
+ "uses": [
9
+ {
10
+ "from": "std/behaviors/std-board",
11
+ "as": "Board"
12
+ }
13
+ ],
14
+ "entity": {
15
+ "name": "PipelineItem",
16
+ "collection": "pipeline_items",
17
+ "persistence": "persistent",
18
+ "fields": [
19
+ {
20
+ "name": "id",
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ {
25
+ "name": "title",
26
+ "type": "string",
27
+ "required": true
28
+ },
29
+ {
30
+ "name": "description",
31
+ "type": "string",
32
+ "default": ""
33
+ },
34
+ {
35
+ "name": "stage",
36
+ "type": "string",
37
+ "default": "todo",
38
+ "values": [
39
+ "backlog",
40
+ "todo",
41
+ "doing",
42
+ "review",
43
+ "done"
44
+ ]
45
+ },
46
+ {
47
+ "name": "notes",
48
+ "type": "string",
49
+ "default": ""
50
+ },
51
+ {
52
+ "name": "priority",
53
+ "type": "string",
54
+ "default": "medium",
55
+ "values": [
56
+ "low",
57
+ "medium",
58
+ "high",
59
+ "urgent"
60
+ ]
61
+ },
62
+ {
63
+ "name": "assignee",
64
+ "type": "string",
65
+ "default": ""
66
+ },
67
+ {
68
+ "name": "dueDate",
69
+ "type": "string",
70
+ "default": ""
71
+ }
72
+ ]
73
+ },
74
+ "traits": [
75
+ {
76
+ "ref": "Board.traits.BoardItemBoard",
77
+ "name": "PipelineBoard",
78
+ "linkedEntity": "PipelineItem",
79
+ "config": {
80
+ "gridCols": 5.0,
81
+ "title": "Pipeline",
82
+ "formFields": [
83
+ "title",
84
+ "description",
85
+ "stage",
86
+ "priority",
87
+ "assignee",
88
+ "dueDate",
89
+ "notes"
90
+ ],
91
+ "columns": [
92
+ {
93
+ "label": "Backlog",
94
+ "key": "backlog",
95
+ "icon": "inbox",
96
+ "variant": "default"
97
+ },
98
+ {
99
+ "icon": "circle",
100
+ "key": "todo",
101
+ "variant": "default",
102
+ "label": "To Do"
103
+ },
104
+ {
105
+ "label": "In Progress",
106
+ "variant": "primary",
107
+ "icon": "circle-dot",
108
+ "key": "doing"
109
+ },
110
+ {
111
+ "variant": "warning",
112
+ "key": "review",
113
+ "label": "In Review",
114
+ "icon": "eye"
115
+ },
116
+ {
117
+ "icon": "check-circle",
118
+ "variant": "success",
119
+ "key": "done",
120
+ "label": "Done"
121
+ }
122
+ ]
123
+ }
124
+ }
125
+ ],
126
+ "pages": [
127
+ {
128
+ "name": "PipelinePage",
129
+ "path": "/pipeline",
130
+ "traits": [
131
+ {
132
+ "ref": "PipelineBoard"
133
+ }
134
+ ]
135
+ }
136
+ ]
137
+ }
138
+ ]
139
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "std-recurring-schedule",
3
+ "version": "1.0.0",
4
+ "description": "std-recurring-schedule — domain-specific recurring schedule for subscription billing / class sessions / drip campaigns / lease renewals. Composes std-recurrence with persisted ScheduleOccurrence entity carrying domain fields (amount, channel, attendees).",
5
+ "orbitals": [
6
+ {
7
+ "name": "RecurringScheduleOrbital",
8
+ "uses": [
9
+ {
10
+ "from": "std/behaviors/std-recurrence",
11
+ "as": "Recurrence"
12
+ }
13
+ ],
14
+ "entity": {
15
+ "name": "ScheduleOccurrence",
16
+ "collection": "schedule_occurrences",
17
+ "persistence": "persistent",
18
+ "fields": [
19
+ {
20
+ "name": "id",
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ {
25
+ "name": "label",
26
+ "type": "string",
27
+ "required": true
28
+ },
29
+ {
30
+ "name": "date",
31
+ "type": "string",
32
+ "required": true
33
+ },
34
+ {
35
+ "name": "notes",
36
+ "type": "string",
37
+ "default": ""
38
+ },
39
+ {
40
+ "name": "amount",
41
+ "type": "number",
42
+ "default": 0.0
43
+ },
44
+ {
45
+ "name": "kind",
46
+ "type": "string",
47
+ "default": "billing",
48
+ "values": [
49
+ "billing",
50
+ "class",
51
+ "campaign",
52
+ "renewal",
53
+ "appointment"
54
+ ]
55
+ },
56
+ {
57
+ "name": "channel",
58
+ "type": "string",
59
+ "default": ""
60
+ }
61
+ ]
62
+ },
63
+ "traits": [
64
+ {
65
+ "ref": "Recurrence.traits.RecurrenceEditor",
66
+ "name": "ScheduleManager",
67
+ "linkedEntity": "ScheduleOccurrence",
68
+ "config": {
69
+ "formFields": [
70
+ "frequency",
71
+ "interval",
72
+ "startDate",
73
+ "endDate",
74
+ "endAfterCount"
75
+ ],
76
+ "title": "Recurring Schedule",
77
+ "itemLabelField": "label"
78
+ }
79
+ }
80
+ ],
81
+ "pages": [
82
+ {
83
+ "name": "RecurringSchedulePage",
84
+ "path": "/recurring-schedule",
85
+ "traits": [
86
+ {
87
+ "ref": "ScheduleManager"
88
+ }
89
+ ]
90
+ }
91
+ ]
92
+ }
93
+ ]
94
+ }
@@ -0,0 +1,108 @@
1
+ {
2
+ "name": "std-timeline",
3
+ "version": "1.0.0",
4
+ "description": "std-timeline — domain-specific chronological audit/activity feed. Composes std-event-log with persisted TimelineEntry entity carrying actor/action/target/metadata. Lights up std-document-mgmt (revision history), std-project-manager (activity), std-customer-success (touchpoint log), audit views in any app organism.",
5
+ "orbitals": [
6
+ {
7
+ "name": "TimelineOrbital",
8
+ "uses": [
9
+ {
10
+ "from": "std/behaviors/std-event-log",
11
+ "as": "Log"
12
+ }
13
+ ],
14
+ "entity": {
15
+ "name": "TimelineEntry",
16
+ "collection": "timeline_entries",
17
+ "persistence": "persistent",
18
+ "fields": [
19
+ {
20
+ "name": "id",
21
+ "type": "string",
22
+ "required": true
23
+ },
24
+ {
25
+ "name": "title",
26
+ "type": "string",
27
+ "required": true
28
+ },
29
+ {
30
+ "name": "description",
31
+ "type": "string",
32
+ "default": ""
33
+ },
34
+ {
35
+ "name": "kind",
36
+ "type": "string",
37
+ "default": "update",
38
+ "values": [
39
+ "create",
40
+ "update",
41
+ "delete",
42
+ "view",
43
+ "comment",
44
+ "approval",
45
+ "milestone"
46
+ ]
47
+ },
48
+ {
49
+ "name": "actor",
50
+ "type": "string",
51
+ "default": ""
52
+ },
53
+ {
54
+ "name": "target",
55
+ "type": "string",
56
+ "default": ""
57
+ },
58
+ {
59
+ "name": "metadata",
60
+ "type": "string",
61
+ "default": ""
62
+ },
63
+ {
64
+ "name": "createdAt",
65
+ "type": "string",
66
+ "default": ""
67
+ }
68
+ ]
69
+ },
70
+ "traits": [
71
+ {
72
+ "ref": "Log.traits.EventLogTimeline",
73
+ "name": "TimelineFeed",
74
+ "linkedEntity": "TimelineEntry",
75
+ "config": {
76
+ "itemIcon": "clock",
77
+ "bodyField": "description",
78
+ "kindField": "kind",
79
+ "title": "Activity Timeline",
80
+ "itemStatus": "info",
81
+ "dateField": "createdAt",
82
+ "formFields": [
83
+ "title",
84
+ "description",
85
+ "kind",
86
+ "actor",
87
+ "target",
88
+ "metadata",
89
+ "createdAt"
90
+ ],
91
+ "titleField": "title"
92
+ }
93
+ }
94
+ ],
95
+ "pages": [
96
+ {
97
+ "name": "TimelinePage",
98
+ "path": "/timeline",
99
+ "traits": [
100
+ {
101
+ "ref": "TimelineFeed"
102
+ }
103
+ ]
104
+ }
105
+ ]
106
+ }
107
+ ]
108
+ }