@almadar/std 16.9.2 → 16.10.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 (36) hide show
  1. package/behaviors/registry/core/atoms/std-calendar.orb +121 -58
  2. package/behaviors/registry/core-variations/atoms/std-board-kanban-classic.orb +58 -58
  3. package/behaviors/registry/core-variations/atoms/std-board-swim-lanes.orb +58 -58
  4. package/behaviors/registry/core-variations/atoms/std-board-timeline-roadmap.orb +94 -88
  5. package/behaviors/registry/core-variations/atoms/std-browse-dense.orb +54 -61
  6. package/behaviors/registry/core-variations/atoms/std-browse-feed.orb +52 -51
  7. package/behaviors/registry/core-variations/atoms/std-browse-gallery.orb +53 -53
  8. package/behaviors/registry/core-variations/atoms/std-browse-triage.orb +66 -86
  9. package/behaviors/registry/core-variations/atoms/std-calendar-agenda-list.orb +56 -50
  10. package/behaviors/registry/core-variations/atoms/std-calendar-week-timeline.orb +37 -31
  11. package/behaviors/registry/core-variations/atoms/std-thread-chat-bubbles.orb +57 -45
  12. package/dist/behaviors/behaviors-registry.json +8 -3
  13. package/dist/behaviors/registry/core/atoms/std-calendar.orb +121 -58
  14. package/dist/behaviors/registry/core-variations/atoms/std-board-kanban-classic.orb +58 -58
  15. package/dist/behaviors/registry/core-variations/atoms/std-board-swim-lanes.orb +58 -58
  16. package/dist/behaviors/registry/core-variations/atoms/std-board-timeline-roadmap.orb +94 -88
  17. package/dist/behaviors/registry/core-variations/atoms/std-browse-dense.orb +54 -61
  18. package/dist/behaviors/registry/core-variations/atoms/std-browse-feed.orb +52 -51
  19. package/dist/behaviors/registry/core-variations/atoms/std-browse-gallery.orb +53 -53
  20. package/dist/behaviors/registry/core-variations/atoms/std-browse-triage.orb +66 -86
  21. package/dist/behaviors/registry/core-variations/atoms/std-calendar-agenda-list.orb +56 -50
  22. package/dist/behaviors/registry/core-variations/atoms/std-calendar-week-timeline.orb +37 -31
  23. package/dist/behaviors/registry/core-variations/atoms/std-thread-chat-bubbles.orb +57 -45
  24. package/dist/behaviors-registry.json +8 -3
  25. package/dist/registry/core/atoms/std-calendar.orb +121 -58
  26. package/dist/registry/core-variations/atoms/std-board-kanban-classic.orb +58 -58
  27. package/dist/registry/core-variations/atoms/std-board-swim-lanes.orb +58 -58
  28. package/dist/registry/core-variations/atoms/std-board-timeline-roadmap.orb +94 -88
  29. package/dist/registry/core-variations/atoms/std-browse-dense.orb +54 -61
  30. package/dist/registry/core-variations/atoms/std-browse-feed.orb +52 -51
  31. package/dist/registry/core-variations/atoms/std-browse-gallery.orb +53 -53
  32. package/dist/registry/core-variations/atoms/std-browse-triage.orb +66 -86
  33. package/dist/registry/core-variations/atoms/std-calendar-agenda-list.orb +56 -50
  34. package/dist/registry/core-variations/atoms/std-calendar-week-timeline.orb +37 -31
  35. package/dist/registry/core-variations/atoms/std-thread-chat-bubbles.orb +57 -45
  36. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "std-thread-chat-bubbles",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Chat-bubbles thread — iMessage/WhatsApp DM style: two-party back-and-forth with sender-vs-receiver bubble alignment and tint.",
5
5
  "orbitals": [
6
6
  {
@@ -33,7 +33,11 @@
33
33
  {
34
34
  "name": "authorId",
35
35
  "type": "string",
36
- "required": true
36
+ "default": "them",
37
+ "values": [
38
+ "me",
39
+ "them"
40
+ ]
37
41
  },
38
42
  {
39
43
  "name": "authorName",
@@ -62,6 +66,14 @@
62
66
  "name": "replyCount",
63
67
  "type": "number",
64
68
  "default": 0.0
69
+ },
70
+ {
71
+ "name": "replies",
72
+ "type": "relation",
73
+ "relation": {
74
+ "entity": "ChatBubblesPost",
75
+ "cardinality": "many"
76
+ }
65
77
  }
66
78
  ]
67
79
  },
@@ -72,122 +84,122 @@
72
84
  "linkedEntity": "ChatBubblesPost",
73
85
  "config": {
74
86
  "bodyContent": {
87
+ "className": "max-w-2xl mx-auto px-card-md py-section h-full",
75
88
  "direction": "vertical",
89
+ "type": "stack",
76
90
  "children": [
77
91
  {
78
92
  "direction": "horizontal",
79
93
  "align": "center",
94
+ "gap": "sm",
80
95
  "type": "stack",
81
96
  "className": "pb-md border-b border-[var(--color-border)]",
82
- "gap": "sm",
83
97
  "children": [
84
98
  {
85
- "name": "Alex Rivera",
86
99
  "type": "avatar",
100
+ "name": "Alex Rivera",
87
101
  "size": "md"
88
102
  },
89
103
  {
90
- "direction": "vertical",
91
- "className": "flex-1",
92
- "type": "stack",
93
104
  "gap": "xs",
105
+ "className": "flex-1",
94
106
  "children": [
95
107
  {
96
- "content": "Alex Rivera",
97
- "variant": "body",
108
+ "type": "typography",
98
109
  "weight": "medium",
99
- "type": "typography"
110
+ "content": "Alex Rivera",
111
+ "variant": "body"
100
112
  },
101
113
  {
102
- "content": "Active now",
103
114
  "variant": "caption",
115
+ "content": "Active now",
104
116
  "color": "muted",
105
117
  "type": "typography"
106
118
  }
107
- ]
119
+ ],
120
+ "direction": "vertical",
121
+ "type": "stack"
108
122
  }
109
123
  ]
110
124
  },
111
125
  {
112
126
  "variant": "message",
113
- "senderField": "authorId",
114
- "currentUser": "me",
115
- "type": "data-list",
127
+ "entity": "@payload.data",
128
+ "className": "flex-1 overflow-y-auto py-md",
116
129
  "renderItem": [
117
130
  "fn",
118
131
  "item",
119
132
  {
120
- "type": "stack",
121
- "gap": "sm",
122
- "direction": "horizontal",
123
133
  "align": "end",
134
+ "gap": "sm",
135
+ "type": "stack",
124
136
  "className": "@item.isMe ? 'w-full flex-row-reverse' : 'w-full flex-row'",
125
137
  "children": [
126
138
  {
127
- "className": "@item.isMe ? 'invisible' : 'visible'",
128
139
  "size": "sm",
129
- "type": "avatar",
130
- "name": "@item.authorName"
140
+ "className": "@item.isMe ? 'invisible' : 'visible'",
141
+ "name": "@item.authorName",
142
+ "type": "avatar"
131
143
  },
132
144
  {
133
- "className": "@item.isMe ? 'max-w-[70%] items-end' : 'max-w-[70%] items-start'",
134
145
  "type": "stack",
135
146
  "direction": "vertical",
136
- "gap": "xs",
137
147
  "children": [
138
148
  {
149
+ "type": "card",
150
+ "padding": "sm",
139
151
  "children": {
140
- "content": "@item.content",
152
+ "variant": "body",
141
153
  "type": "typography",
142
- "variant": "body"
154
+ "content": "@item.content"
143
155
  },
144
156
  "look": "@item.isMe ? 'filled' : 'flat-bordered'",
145
- "type": "card",
146
- "padding": "sm",
147
157
  "className": "@item.isMe ? 'rounded-lg rounded-br-sm bg-[var(--color-primary)] text-[var(--color-primary-foreground)] shadow-sm' : 'rounded-lg rounded-bl-sm bg-[var(--color-muted)] text-[var(--color-foreground)] shadow-sm'"
148
158
  },
149
159
  {
150
160
  "variant": "caption",
151
161
  "type": "typography",
152
- "color": "muted",
153
- "content": "@item.createdAt"
162
+ "content": "@item.createdAt",
163
+ "color": "muted"
154
164
  }
155
- ]
165
+ ],
166
+ "className": "@item.isMe ? 'max-w-[70%] items-end' : 'max-w-[70%] items-start'",
167
+ "gap": "xs"
156
168
  }
157
- ]
169
+ ],
170
+ "direction": "horizontal"
158
171
  }
159
172
  ],
173
+ "senderField": "authorId",
174
+ "type": "data-list",
175
+ "gap": "sm",
160
176
  "fields": [],
161
- "entity": "@payload.data",
162
- "className": "flex-1 overflow-y-auto py-md",
163
- "gap": "sm"
177
+ "currentUser": "me"
164
178
  },
165
179
  {
180
+ "type": "stack",
166
181
  "direction": "horizontal",
182
+ "align": "center",
167
183
  "gap": "sm",
168
184
  "className": "mt-md border-t border-[var(--color-border)] pt-md",
169
185
  "children": [
170
186
  {
171
- "type": "input",
172
- "placeholder": "Message…",
187
+ "inputType": "text",
173
188
  "action": "EDIT_REPLY",
174
- "inputType": "text"
189
+ "placeholder": "Message…",
190
+ "type": "input"
175
191
  },
176
192
  {
177
193
  "action": "SUBMIT_REPLY",
178
194
  "icon": "send",
195
+ "type": "button",
179
196
  "label": "Send",
180
- "variant": "primary",
181
- "type": "button"
197
+ "variant": "primary"
182
198
  }
183
- ],
184
- "type": "stack",
185
- "align": "center"
199
+ ]
186
200
  }
187
201
  ],
188
- "type": "stack",
189
- "gap": "none",
190
- "className": "max-w-2xl mx-auto px-card-md py-section h-full"
202
+ "gap": "none"
191
203
  }
192
204
  }
193
205
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/std",
3
- "version": "16.9.2",
3
+ "version": "16.10.1",
4
4
  "description": "Standard library operators for Almadar (math, string, array, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",