@happyvertical/smrt-chat 0.37.2 → 0.37.3

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.
@@ -1,166 +1,149 @@
1
1
  import { CHAT_MODULE_META } from "./ui.js";
2
- const noop = () => {
3
- };
4
- const sampleRooms = [
5
- {
6
- id: "room-editorial",
7
- name: "Editorial Ops",
8
- description: "Daily coordination room",
9
- roomType: "public",
10
- topic: "Launch readiness and governance",
11
- participantCount: 8,
12
- unreadCount: 4,
13
- lastMessageAt: "2026-03-21T16:08:00.000Z",
14
- lastMessage: {
15
- id: "room-editorial-last",
16
- roomId: "room-editorial",
17
- senderProfileId: "profile-taylor",
18
- senderName: "Taylor Rowan",
19
- content: "Content QA is clear for tonight’s rollout.",
20
- messageType: "text",
21
- role: "user",
22
- isEdited: false,
23
- isDeleted: false,
24
- reactions: [],
25
- attachments: [],
26
- createdAt: "2026-03-21T16:08:00.000Z"
27
- }
28
- },
29
- {
30
- id: "room-governance",
31
- name: "Governance",
32
- description: "Policy review",
33
- roomType: "agent",
34
- topic: "Publication profile monitoring",
35
- participantCount: 3,
36
- unreadCount: 1,
37
- isPinned: true,
38
- lastMessageAt: "2026-03-21T15:55:00.000Z"
39
- },
40
- {
41
- id: "room-jordan",
42
- name: "Jordan Lee",
43
- description: "Direct message",
44
- roomType: "dm",
45
- topic: "",
46
- participantCount: 2,
47
- unreadCount: 0,
48
- lastMessageAt: "2026-03-21T14:12:00.000Z"
49
- }
50
- ];
51
- const sampleMessages = [
52
- {
53
- id: "chat-message-1",
54
- roomId: "room-editorial",
55
- senderProfileId: "profile-taylor",
56
- senderName: "Taylor Rowan",
57
- content: "The root playground is showing the content previews correctly now.",
58
- messageType: "text",
59
- role: "user",
60
- isEdited: false,
61
- isDeleted: false,
62
- replyTo: null,
63
- reactions: [
64
- {
65
- emoji: "✅",
66
- count: 2,
67
- reacted: true,
68
- profileIds: ["profile-taylor", "profile-jordan"]
69
- }
70
- ],
71
- attachments: [],
72
- createdAt: "2026-03-21T15:52:00.000Z"
73
- },
74
- {
75
- id: "chat-message-2",
76
- roomId: "room-editorial",
77
- senderProfileId: "profile-jordan",
78
- senderName: "Jordan Lee",
79
- content: "Next up is broadening the package rollout from the content reference implementation.",
80
- messageType: "text",
81
- role: "user",
82
- isEdited: false,
83
- isDeleted: false,
84
- replyTo: {
85
- id: "chat-message-1",
86
- senderName: "Taylor Rowan",
87
- content: "The root playground is showing the content previews correctly now."
88
- },
89
- reactions: [],
90
- attachments: [],
91
- createdAt: "2026-03-21T15:58:00.000Z"
92
- }
2
+ //#region src/svelte/playground.ts
3
+ var noop = () => {};
4
+ var sampleRooms = [
5
+ {
6
+ id: "room-editorial",
7
+ name: "Editorial Ops",
8
+ description: "Daily coordination room",
9
+ roomType: "public",
10
+ topic: "Launch readiness and governance",
11
+ participantCount: 8,
12
+ unreadCount: 4,
13
+ lastMessageAt: "2026-03-21T16:08:00.000Z",
14
+ lastMessage: {
15
+ id: "room-editorial-last",
16
+ roomId: "room-editorial",
17
+ senderProfileId: "profile-taylor",
18
+ senderName: "Taylor Rowan",
19
+ content: "Content QA is clear for tonight’s rollout.",
20
+ messageType: "text",
21
+ role: "user",
22
+ isEdited: false,
23
+ isDeleted: false,
24
+ reactions: [],
25
+ attachments: [],
26
+ createdAt: "2026-03-21T16:08:00.000Z"
27
+ }
28
+ },
29
+ {
30
+ id: "room-governance",
31
+ name: "Governance",
32
+ description: "Policy review",
33
+ roomType: "agent",
34
+ topic: "Publication profile monitoring",
35
+ participantCount: 3,
36
+ unreadCount: 1,
37
+ isPinned: true,
38
+ lastMessageAt: "2026-03-21T15:55:00.000Z"
39
+ },
40
+ {
41
+ id: "room-jordan",
42
+ name: "Jordan Lee",
43
+ description: "Direct message",
44
+ roomType: "dm",
45
+ topic: "",
46
+ participantCount: 2,
47
+ unreadCount: 0,
48
+ lastMessageAt: "2026-03-21T14:12:00.000Z"
49
+ }
93
50
  ];
94
- const loadMessageInput = () => import("./svelte/components/messages/MessageInput.svelte");
95
- const loadMessageList = () => import("./svelte/components/messages/MessageList.svelte");
96
- const loadRoomList = () => import("./svelte/components/layout/RoomList.svelte");
97
- const playground = {
98
- packageName: "@happyvertical/smrt-chat",
99
- displayName: CHAT_MODULE_META.displayName,
100
- description: CHAT_MODULE_META.description,
101
- moduleMeta: CHAT_MODULE_META,
102
- entries: [
103
- {
104
- id: "room-list",
105
- title: "Room List",
106
- description: "Sidebar navigation for rooms, DMs, and agent conversations with unread state.",
107
- loadComponent: loadRoomList,
108
- order: 1,
109
- props: {
110
- rooms: sampleRooms,
111
- currentRoomId: "room-editorial",
112
- onselectroom: noop,
113
- oncreateroom: noop
114
- },
115
- modes: {
116
- mock: {
117
- label: "Mock"
118
- }
119
- }
120
- },
121
- {
122
- id: "message-list",
123
- title: "Message List",
124
- description: "Grouped chat transcript with replies and reactions for a conversation thread.",
125
- loadComponent: loadMessageList,
126
- order: 2,
127
- props: {
128
- messages: sampleMessages,
129
- currentProfileId: "profile-taylor",
130
- onreply: noop,
131
- onreact: noop
132
- },
133
- modes: {
134
- mock: {
135
- label: "Mock"
136
- }
137
- }
138
- },
139
- {
140
- id: "message-input",
141
- title: "Message Input",
142
- description: "Chat composer with reply context and keyboard send affordance.",
143
- loadComponent: loadMessageInput,
144
- order: 3,
145
- props: {
146
- onsend: noop,
147
- placeholder: "Reply to the rollout thread…",
148
- replyTo: {
149
- id: "chat-message-1",
150
- senderName: "Taylor Rowan",
151
- content: "The root playground is showing the content previews correctly now."
152
- },
153
- oncancelreply: noop
154
- },
155
- modes: {
156
- mock: {
157
- label: "Mock"
158
- }
159
- }
160
- }
161
- ]
162
- };
163
- export {
164
- playground as default
51
+ var sampleMessages = [{
52
+ id: "chat-message-1",
53
+ roomId: "room-editorial",
54
+ senderProfileId: "profile-taylor",
55
+ senderName: "Taylor Rowan",
56
+ content: "The root playground is showing the content previews correctly now.",
57
+ messageType: "text",
58
+ role: "user",
59
+ isEdited: false,
60
+ isDeleted: false,
61
+ replyTo: null,
62
+ reactions: [{
63
+ emoji: "",
64
+ count: 2,
65
+ reacted: true,
66
+ profileIds: ["profile-taylor", "profile-jordan"]
67
+ }],
68
+ attachments: [],
69
+ createdAt: "2026-03-21T15:52:00.000Z"
70
+ }, {
71
+ id: "chat-message-2",
72
+ roomId: "room-editorial",
73
+ senderProfileId: "profile-jordan",
74
+ senderName: "Jordan Lee",
75
+ content: "Next up is broadening the package rollout from the content reference implementation.",
76
+ messageType: "text",
77
+ role: "user",
78
+ isEdited: false,
79
+ isDeleted: false,
80
+ replyTo: {
81
+ id: "chat-message-1",
82
+ senderName: "Taylor Rowan",
83
+ content: "The root playground is showing the content previews correctly now."
84
+ },
85
+ reactions: [],
86
+ attachments: [],
87
+ createdAt: "2026-03-21T15:58:00.000Z"
88
+ }];
89
+ var loadMessageInput = () => import("./svelte/components/messages/MessageInput.svelte");
90
+ var loadMessageList = () => import("./svelte/components/messages/MessageList.svelte");
91
+ var loadRoomList = () => import("./svelte/components/layout/RoomList.svelte");
92
+ var playground_default = {
93
+ packageName: "@happyvertical/smrt-chat",
94
+ displayName: CHAT_MODULE_META.displayName,
95
+ description: CHAT_MODULE_META.description,
96
+ moduleMeta: CHAT_MODULE_META,
97
+ entries: [
98
+ {
99
+ id: "room-list",
100
+ title: "Room List",
101
+ description: "Sidebar navigation for rooms, DMs, and agent conversations with unread state.",
102
+ loadComponent: loadRoomList,
103
+ order: 1,
104
+ props: {
105
+ rooms: sampleRooms,
106
+ currentRoomId: "room-editorial",
107
+ onselectroom: noop,
108
+ oncreateroom: noop
109
+ },
110
+ modes: { mock: { label: "Mock" } }
111
+ },
112
+ {
113
+ id: "message-list",
114
+ title: "Message List",
115
+ description: "Grouped chat transcript with replies and reactions for a conversation thread.",
116
+ loadComponent: loadMessageList,
117
+ order: 2,
118
+ props: {
119
+ messages: sampleMessages,
120
+ currentProfileId: "profile-taylor",
121
+ onreply: noop,
122
+ onreact: noop
123
+ },
124
+ modes: { mock: { label: "Mock" } }
125
+ },
126
+ {
127
+ id: "message-input",
128
+ title: "Message Input",
129
+ description: "Chat composer with reply context and keyboard send affordance.",
130
+ loadComponent: loadMessageInput,
131
+ order: 3,
132
+ props: {
133
+ onsend: noop,
134
+ placeholder: "Reply to the rollout thread…",
135
+ replyTo: {
136
+ id: "chat-message-1",
137
+ senderName: "Taylor Rowan",
138
+ content: "The root playground is showing the content previews correctly now."
139
+ },
140
+ oncancelreply: noop
141
+ },
142
+ modes: { mock: { label: "Mock" } }
143
+ }
144
+ ]
165
145
  };
166
- //# sourceMappingURL=playground.js.map
146
+ //#endregion
147
+ export { playground_default as default };
148
+
149
+ //# sourceMappingURL=playground.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"playground.js","sources":["../src/svelte/playground.ts"],"sourcesContent":["import { CHAT_MODULE_META } from '../ui.js';\n\nconst noop = () => {};\n\nconst sampleRooms = [\n {\n id: 'room-editorial',\n name: 'Editorial Ops',\n description: 'Daily coordination room',\n roomType: 'public',\n topic: 'Launch readiness and governance',\n participantCount: 8,\n unreadCount: 4,\n lastMessageAt: '2026-03-21T16:08:00.000Z',\n lastMessage: {\n id: 'room-editorial-last',\n roomId: 'room-editorial',\n senderProfileId: 'profile-taylor',\n senderName: 'Taylor Rowan',\n content: 'Content QA is clear for tonight’s rollout.',\n messageType: 'text',\n role: 'user',\n isEdited: false,\n isDeleted: false,\n reactions: [],\n attachments: [],\n createdAt: '2026-03-21T16:08:00.000Z',\n },\n },\n {\n id: 'room-governance',\n name: 'Governance',\n description: 'Policy review',\n roomType: 'agent',\n topic: 'Publication profile monitoring',\n participantCount: 3,\n unreadCount: 1,\n isPinned: true,\n lastMessageAt: '2026-03-21T15:55:00.000Z',\n },\n {\n id: 'room-jordan',\n name: 'Jordan Lee',\n description: 'Direct message',\n roomType: 'dm',\n topic: '',\n participantCount: 2,\n unreadCount: 0,\n lastMessageAt: '2026-03-21T14:12:00.000Z',\n },\n];\n\nconst sampleMessages = [\n {\n id: 'chat-message-1',\n roomId: 'room-editorial',\n senderProfileId: 'profile-taylor',\n senderName: 'Taylor Rowan',\n content:\n 'The root playground is showing the content previews correctly now.',\n messageType: 'text',\n role: 'user',\n isEdited: false,\n isDeleted: false,\n replyTo: null,\n reactions: [\n {\n emoji: '✅',\n count: 2,\n reacted: true,\n profileIds: ['profile-taylor', 'profile-jordan'],\n },\n ],\n attachments: [],\n createdAt: '2026-03-21T15:52:00.000Z',\n },\n {\n id: 'chat-message-2',\n roomId: 'room-editorial',\n senderProfileId: 'profile-jordan',\n senderName: 'Jordan Lee',\n content:\n 'Next up is broadening the package rollout from the content reference implementation.',\n messageType: 'text',\n role: 'user',\n isEdited: false,\n isDeleted: false,\n replyTo: {\n id: 'chat-message-1',\n senderName: 'Taylor Rowan',\n content:\n 'The root playground is showing the content previews correctly now.',\n },\n reactions: [],\n attachments: [],\n createdAt: '2026-03-21T15:58:00.000Z',\n },\n];\n\nconst loadMessageInput = () =>\n import('./components/messages/MessageInput.svelte');\nconst loadMessageList = () =>\n import('./components/messages/MessageList.svelte');\nconst loadRoomList = () => import('./components/layout/RoomList.svelte');\n\nexport default {\n packageName: '@happyvertical/smrt-chat',\n displayName: CHAT_MODULE_META.displayName,\n description: CHAT_MODULE_META.description,\n moduleMeta: CHAT_MODULE_META,\n entries: [\n {\n id: 'room-list',\n title: 'Room List',\n description:\n 'Sidebar navigation for rooms, DMs, and agent conversations with unread state.',\n loadComponent: loadRoomList,\n order: 1,\n props: {\n rooms: sampleRooms,\n currentRoomId: 'room-editorial',\n onselectroom: noop,\n oncreateroom: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'message-list',\n title: 'Message List',\n description:\n 'Grouped chat transcript with replies and reactions for a conversation thread.',\n loadComponent: loadMessageList,\n order: 2,\n props: {\n messages: sampleMessages,\n currentProfileId: 'profile-taylor',\n onreply: noop,\n onreact: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'message-input',\n title: 'Message Input',\n description:\n 'Chat composer with reply context and keyboard send affordance.',\n loadComponent: loadMessageInput,\n order: 3,\n props: {\n onsend: noop,\n placeholder: 'Reply to the rollout thread…',\n replyTo: {\n id: 'chat-message-1',\n senderName: 'Taylor Rowan',\n content:\n 'The root playground is showing the content previews correctly now.',\n },\n oncancelreply: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n ],\n};\n"],"names":[],"mappings":";AAEA,MAAM,OAAO,MAAM;AAAC;AAEpB,MAAM,cAAc;AAAA,EAClB;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aAAa;AAAA,IACb,UAAU;AAAA,IACV,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,aAAa;AAAA,IACb,eAAe;AAAA,IACf,aAAa;AAAA,MACX,IAAI;AAAA,MACJ,QAAQ;AAAA,MACR,iBAAiB;AAAA,MACjB,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,aAAa;AAAA,MACb,MAAM;AAAA,MACN,UAAU;AAAA,MACV,WAAW;AAAA,MACX,WAAW,CAAA;AAAA,MACX,aAAa,CAAA;AAAA,MACb,WAAW;AAAA,IAAA;AAAA,EACb;AAAA,EAEF;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aAAa;AAAA,IACb,UAAU;AAAA,IACV,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,aAAa;AAAA,IACb,UAAU;AAAA,IACV,eAAe;AAAA,EAAA;AAAA,EAEjB;AAAA,IACE,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,aAAa;AAAA,IACb,UAAU;AAAA,IACV,OAAO;AAAA,IACP,kBAAkB;AAAA,IAClB,aAAa;AAAA,IACb,eAAe;AAAA,EAAA;AAEnB;AAEA,MAAM,iBAAiB;AAAA,EACrB;AAAA,IACE,IAAI;AAAA,IACJ,QAAQ;AAAA,IACR,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,SACE;AAAA,IACF,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,WAAW;AAAA,IACX,SAAS;AAAA,IACT,WAAW;AAAA,MACT;AAAA,QACE,OAAO;AAAA,QACP,OAAO;AAAA,QACP,SAAS;AAAA,QACT,YAAY,CAAC,kBAAkB,gBAAgB;AAAA,MAAA;AAAA,IACjD;AAAA,IAEF,aAAa,CAAA;AAAA,IACb,WAAW;AAAA,EAAA;AAAA,EAEb;AAAA,IACE,IAAI;AAAA,IACJ,QAAQ;AAAA,IACR,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,SACE;AAAA,IACF,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,WAAW;AAAA,IACX,SAAS;AAAA,MACP,IAAI;AAAA,MACJ,YAAY;AAAA,MACZ,SACE;AAAA,IAAA;AAAA,IAEJ,WAAW,CAAA;AAAA,IACX,aAAa,CAAA;AAAA,IACb,WAAW;AAAA,EAAA;AAEf;AAEA,MAAM,mBAAmB,MACvB,OAAO,kDAA2C;AACpD,MAAM,kBAAkB,MACtB,OAAO,iDAA0C;AACnD,MAAM,eAAe,MAAM,OAAO,4CAAqC;AAEvE,MAAA,aAAe;AAAA,EACb,aAAa;AAAA,EACb,aAAa,iBAAiB;AAAA,EAC9B,aAAa,iBAAiB;AAAA,EAC9B,YAAY;AAAA,EACZ,SAAS;AAAA,IACP;AAAA,MACE,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,aACE;AAAA,MACF,eAAe;AAAA,MACf,OAAO;AAAA,MACP,OAAO;AAAA,QACL,OAAO;AAAA,QACP,eAAe;AAAA,QACf,cAAc;AAAA,QACd,cAAc;AAAA,MAAA;AAAA,MAEhB,OAAO;AAAA,QACL,MAAM;AAAA,UACJ,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IACF;AAAA,IAEF;AAAA,MACE,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,aACE;AAAA,MACF,eAAe;AAAA,MACf,OAAO;AAAA,MACP,OAAO;AAAA,QACL,UAAU;AAAA,QACV,kBAAkB;AAAA,QAClB,SAAS;AAAA,QACT,SAAS;AAAA,MAAA;AAAA,MAEX,OAAO;AAAA,QACL,MAAM;AAAA,UACJ,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IACF;AAAA,IAEF;AAAA,MACE,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,aACE;AAAA,MACF,eAAe;AAAA,MACf,OAAO;AAAA,MACP,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,aAAa;AAAA,QACb,SAAS;AAAA,UACP,IAAI;AAAA,UACJ,YAAY;AAAA,UACZ,SACE;AAAA,QAAA;AAAA,QAEJ,eAAe;AAAA,MAAA;AAAA,MAEjB,OAAO;AAAA,QACL,MAAM;AAAA,UACJ,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAEJ;"}
1
+ {"version":3,"file":"playground.js","names":[],"sources":["../src/svelte/playground.ts"],"sourcesContent":["import { CHAT_MODULE_META } from '../ui.js';\n\nconst noop = () => {};\n\nconst sampleRooms = [\n {\n id: 'room-editorial',\n name: 'Editorial Ops',\n description: 'Daily coordination room',\n roomType: 'public',\n topic: 'Launch readiness and governance',\n participantCount: 8,\n unreadCount: 4,\n lastMessageAt: '2026-03-21T16:08:00.000Z',\n lastMessage: {\n id: 'room-editorial-last',\n roomId: 'room-editorial',\n senderProfileId: 'profile-taylor',\n senderName: 'Taylor Rowan',\n content: 'Content QA is clear for tonight’s rollout.',\n messageType: 'text',\n role: 'user',\n isEdited: false,\n isDeleted: false,\n reactions: [],\n attachments: [],\n createdAt: '2026-03-21T16:08:00.000Z',\n },\n },\n {\n id: 'room-governance',\n name: 'Governance',\n description: 'Policy review',\n roomType: 'agent',\n topic: 'Publication profile monitoring',\n participantCount: 3,\n unreadCount: 1,\n isPinned: true,\n lastMessageAt: '2026-03-21T15:55:00.000Z',\n },\n {\n id: 'room-jordan',\n name: 'Jordan Lee',\n description: 'Direct message',\n roomType: 'dm',\n topic: '',\n participantCount: 2,\n unreadCount: 0,\n lastMessageAt: '2026-03-21T14:12:00.000Z',\n },\n];\n\nconst sampleMessages = [\n {\n id: 'chat-message-1',\n roomId: 'room-editorial',\n senderProfileId: 'profile-taylor',\n senderName: 'Taylor Rowan',\n content:\n 'The root playground is showing the content previews correctly now.',\n messageType: 'text',\n role: 'user',\n isEdited: false,\n isDeleted: false,\n replyTo: null,\n reactions: [\n {\n emoji: '✅',\n count: 2,\n reacted: true,\n profileIds: ['profile-taylor', 'profile-jordan'],\n },\n ],\n attachments: [],\n createdAt: '2026-03-21T15:52:00.000Z',\n },\n {\n id: 'chat-message-2',\n roomId: 'room-editorial',\n senderProfileId: 'profile-jordan',\n senderName: 'Jordan Lee',\n content:\n 'Next up is broadening the package rollout from the content reference implementation.',\n messageType: 'text',\n role: 'user',\n isEdited: false,\n isDeleted: false,\n replyTo: {\n id: 'chat-message-1',\n senderName: 'Taylor Rowan',\n content:\n 'The root playground is showing the content previews correctly now.',\n },\n reactions: [],\n attachments: [],\n createdAt: '2026-03-21T15:58:00.000Z',\n },\n];\n\nconst loadMessageInput = () =>\n import('./components/messages/MessageInput.svelte');\nconst loadMessageList = () =>\n import('./components/messages/MessageList.svelte');\nconst loadRoomList = () => import('./components/layout/RoomList.svelte');\n\nexport default {\n packageName: '@happyvertical/smrt-chat',\n displayName: CHAT_MODULE_META.displayName,\n description: CHAT_MODULE_META.description,\n moduleMeta: CHAT_MODULE_META,\n entries: [\n {\n id: 'room-list',\n title: 'Room List',\n description:\n 'Sidebar navigation for rooms, DMs, and agent conversations with unread state.',\n loadComponent: loadRoomList,\n order: 1,\n props: {\n rooms: sampleRooms,\n currentRoomId: 'room-editorial',\n onselectroom: noop,\n oncreateroom: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'message-list',\n title: 'Message List',\n description:\n 'Grouped chat transcript with replies and reactions for a conversation thread.',\n loadComponent: loadMessageList,\n order: 2,\n props: {\n messages: sampleMessages,\n currentProfileId: 'profile-taylor',\n onreply: noop,\n onreact: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'message-input',\n title: 'Message Input',\n description:\n 'Chat composer with reply context and keyboard send affordance.',\n loadComponent: loadMessageInput,\n order: 3,\n props: {\n onsend: noop,\n placeholder: 'Reply to the rollout thread…',\n replyTo: {\n id: 'chat-message-1',\n senderName: 'Taylor Rowan',\n content:\n 'The root playground is showing the content previews correctly now.',\n },\n oncancelreply: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n ],\n};\n"],"mappings":";;AAEA,IAAM,aAAa,CAAC;AAEpB,IAAM,cAAc;CAClB;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;EACV,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,eAAe;EACf,aAAa;GACX,IAAI;GACJ,QAAQ;GACR,iBAAiB;GACjB,YAAY;GACZ,SAAS;GACT,aAAa;GACb,MAAM;GACN,UAAU;GACV,WAAW;GACX,WAAW,CAAC;GACZ,aAAa,CAAC;GACd,WAAW;EACb;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;EACV,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,UAAU;EACV,eAAe;CACjB;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;EACV,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,eAAe;CACjB;AACF;AAEA,IAAM,iBAAiB,CACrB;CACE,IAAI;CACJ,QAAQ;CACR,iBAAiB;CACjB,YAAY;CACZ,SACE;CACF,aAAa;CACb,MAAM;CACN,UAAU;CACV,WAAW;CACX,SAAS;CACT,WAAW,CACT;EACE,OAAO;EACP,OAAO;EACP,SAAS;EACT,YAAY,CAAC,kBAAkB,gBAAgB;CACjD,CACF;CACA,aAAa,CAAC;CACd,WAAW;AACb,GACA;CACE,IAAI;CACJ,QAAQ;CACR,iBAAiB;CACjB,YAAY;CACZ,SACE;CACF,aAAa;CACb,MAAM;CACN,UAAU;CACV,WAAW;CACX,SAAS;EACP,IAAI;EACJ,YAAY;EACZ,SACE;CACJ;CACA,WAAW,CAAC;CACZ,aAAa,CAAC;CACd,WAAW;AACb,CACF;AAEA,IAAM,yBACJ,OAAO;AACT,IAAM,wBACJ,OAAO;AACT,IAAM,qBAAqB,OAAO;AAElC,IAAA,qBAAe;CACb,aAAa;CACb,aAAa,iBAAiB;CAC9B,aAAa,iBAAiB;CAC9B,YAAY;CACZ,SAAS;EACP;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,OAAO;IACP,eAAe;IACf,cAAc;IACd,cAAc;GAChB;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;EACA;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,UAAU;IACV,kBAAkB;IAClB,SAAS;IACT,SAAS;GACX;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;EACA;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,QAAQ;IACR,aAAa;IACb,SAAS;KACP,IAAI;KACJ,YAAY;KACZ,SACE;IACJ;IACA,eAAe;GACjB;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;CACF;AACF"}
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-07-01T02:36:25.566Z",
3
+ "generatedAt": "2026-07-01T20:05:00.231Z",
4
4
  "packageName": "@happyvertical/smrt-chat",
5
- "packageVersion": "0.37.2",
5
+ "packageVersion": "0.37.3",
6
6
  "sourceManifestPath": "dist/manifest.json",
7
7
  "agentDocPath": "AGENTS.md",
8
8
  "sourceHashes": {
9
- "manifest": "d7587bf32ddbe9fa9298036000bf5c9eb6959ebf14682dfa682fcbc269901d5c",
10
- "packageJson": "0bd285a1b7f6041418b98b21802b5e486bd5647d25acf81670e4e73455236bfd",
9
+ "manifest": "3f4de8278c01bd8ae3aad5a44a892e5488620ea2cbdc735cc81a93cb844f9c28",
10
+ "packageJson": "6b9c96e956c5eb479f8ff8c6d2b2647575b44969e0497bcfc0231cbc47295309",
11
11
  "agents": "e0a8c6788fbd48c2619a353295d4538e9ff6863d483bcd354af522fb7c6a31bc"
12
12
  },
13
13
  "exports": [
@@ -27,15 +27,15 @@
27
27
  "@happyvertical/smrt-agents": "workspace:*",
28
28
  "@happyvertical/smrt-profiles": "workspace:*",
29
29
  "@happyvertical/smrt-vitest": "workspace:*",
30
- "@sveltejs/package": "^2.5.7",
31
- "@sveltejs/vite-plugin-svelte": "^6.2.4",
32
- "@types/node": "25.0.9",
30
+ "@sveltejs/package": "^2.5.8",
31
+ "@sveltejs/vite-plugin-svelte": "^7.1.2",
32
+ "@types/node": "24.13.2",
33
33
  "fast-glob": "^3.3.3",
34
- "svelte": "^5.18.0",
35
- "svelte-check": "^4.3.5",
34
+ "svelte": "^5.56.4",
35
+ "svelte-check": "^4.7.1",
36
36
  "typescript": "^5.9.3",
37
- "vite": "^7.3.6",
38
- "vitest": "^4.0.17"
37
+ "vite": "^8.1.2",
38
+ "vitest": "^4.1.9"
39
39
  },
40
40
  "smrtDependencies": [
41
41
  "@happyvertical/smrt-agents",
package/dist/types.js CHANGED
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.js.map
package/dist/ui.js CHANGED
@@ -1,92 +1,92 @@
1
- const CHAT_UI_SLOTS = {
2
- "chat-layout": {
3
- id: "chat-layout",
4
- label: "Chat Layout",
5
- description: "Discord/Slack-style chat layout with sidebar",
6
- icon: "message-square",
7
- category: "display",
8
- order: 1,
9
- propsInterface: "ChatLayoutProps"
10
- },
11
- "room-list": {
12
- id: "room-list",
13
- label: "Room List",
14
- description: "Sidebar room navigation with unread badges",
15
- icon: "list",
16
- category: "list",
17
- order: 2,
18
- propsInterface: "RoomListProps"
19
- },
20
- "message-list": {
21
- id: "message-list",
22
- label: "Message List",
23
- description: "Scrollable chat message feed",
24
- icon: "message-circle",
25
- category: "list",
26
- order: 3,
27
- propsInterface: "MessageListProps"
28
- },
29
- "message-input": {
30
- id: "message-input",
31
- label: "Message Input",
32
- description: "Chat message input with attachments",
33
- icon: "edit-2",
34
- category: "form",
35
- order: 4,
36
- propsInterface: "MessageInputProps"
37
- },
38
- "chat-tabs": {
39
- id: "chat-tabs",
40
- label: "Chat Tabs",
41
- description: "Facebook-style expandable chat tabs",
42
- icon: "columns",
43
- category: "display",
44
- order: 5,
45
- propsInterface: "ChatTabsProps"
46
- },
47
- "agent-chat": {
48
- id: "agent-chat",
49
- label: "Agent Chat",
50
- description: "Full agent conversation interface",
51
- icon: "bot",
52
- category: "display",
53
- order: 6,
54
- propsInterface: "AgentChatProps"
55
- },
56
- "thread-panel": {
57
- id: "thread-panel",
58
- label: "Thread Panel",
59
- description: "Threaded conversation side panel",
60
- icon: "git-branch",
61
- category: "display",
62
- order: 7,
63
- propsInterface: "ThreadPanelProps"
64
- }
1
+ //#region src/ui.ts
2
+ var CHAT_UI_SLOTS = {
3
+ "chat-layout": {
4
+ id: "chat-layout",
5
+ label: "Chat Layout",
6
+ description: "Discord/Slack-style chat layout with sidebar",
7
+ icon: "message-square",
8
+ category: "display",
9
+ order: 1,
10
+ propsInterface: "ChatLayoutProps"
11
+ },
12
+ "room-list": {
13
+ id: "room-list",
14
+ label: "Room List",
15
+ description: "Sidebar room navigation with unread badges",
16
+ icon: "list",
17
+ category: "list",
18
+ order: 2,
19
+ propsInterface: "RoomListProps"
20
+ },
21
+ "message-list": {
22
+ id: "message-list",
23
+ label: "Message List",
24
+ description: "Scrollable chat message feed",
25
+ icon: "message-circle",
26
+ category: "list",
27
+ order: 3,
28
+ propsInterface: "MessageListProps"
29
+ },
30
+ "message-input": {
31
+ id: "message-input",
32
+ label: "Message Input",
33
+ description: "Chat message input with attachments",
34
+ icon: "edit-2",
35
+ category: "form",
36
+ order: 4,
37
+ propsInterface: "MessageInputProps"
38
+ },
39
+ "chat-tabs": {
40
+ id: "chat-tabs",
41
+ label: "Chat Tabs",
42
+ description: "Facebook-style expandable chat tabs",
43
+ icon: "columns",
44
+ category: "display",
45
+ order: 5,
46
+ propsInterface: "ChatTabsProps"
47
+ },
48
+ "agent-chat": {
49
+ id: "agent-chat",
50
+ label: "Agent Chat",
51
+ description: "Full agent conversation interface",
52
+ icon: "bot",
53
+ category: "display",
54
+ order: 6,
55
+ propsInterface: "AgentChatProps"
56
+ },
57
+ "thread-panel": {
58
+ id: "thread-panel",
59
+ label: "Thread Panel",
60
+ description: "Threaded conversation side panel",
61
+ icon: "git-branch",
62
+ category: "display",
63
+ order: 7,
64
+ propsInterface: "ThreadPanelProps"
65
+ }
65
66
  };
66
- const CHAT_MODULE_META = {
67
- name: "@happyvertical/smrt-chat",
68
- displayName: "Chat",
69
- description: "Real-time chat rooms, DMs, threads, and agent conversations",
70
- uiSlots: CHAT_UI_SLOTS,
71
- models: [
72
- "ChatRoom",
73
- "ChatThread",
74
- "ChatMessage",
75
- "ChatParticipant",
76
- "ChatReaction",
77
- "AgentSession"
78
- ],
79
- collections: [
80
- "ChatRoomCollection",
81
- "ChatThreadCollection",
82
- "ChatMessageCollection",
83
- "ChatParticipantCollection",
84
- "ChatReactionCollection",
85
- "AgentSessionCollection"
86
- ]
67
+ var CHAT_MODULE_META = {
68
+ name: "@happyvertical/smrt-chat",
69
+ displayName: "Chat",
70
+ description: "Real-time chat rooms, DMs, threads, and agent conversations",
71
+ uiSlots: CHAT_UI_SLOTS,
72
+ models: [
73
+ "ChatRoom",
74
+ "ChatThread",
75
+ "ChatMessage",
76
+ "ChatParticipant",
77
+ "ChatReaction",
78
+ "AgentSession"
79
+ ],
80
+ collections: [
81
+ "ChatRoomCollection",
82
+ "ChatThreadCollection",
83
+ "ChatMessageCollection",
84
+ "ChatParticipantCollection",
85
+ "ChatReactionCollection",
86
+ "AgentSessionCollection"
87
+ ]
87
88
  };
88
- export {
89
- CHAT_MODULE_META,
90
- CHAT_UI_SLOTS
91
- };
92
- //# sourceMappingURL=ui.js.map
89
+ //#endregion
90
+ export { CHAT_MODULE_META, CHAT_UI_SLOTS };
91
+
92
+ //# sourceMappingURL=ui.js.map
package/dist/ui.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","sources":["../src/ui.ts"],"sourcesContent":["import type { ModuleUISlot, SmrtModuleMeta } from '@happyvertical/smrt-types';\n\nexport const CHAT_UI_SLOTS: Record<string, ModuleUISlot> = {\n 'chat-layout': {\n id: 'chat-layout',\n label: 'Chat Layout',\n description: 'Discord/Slack-style chat layout with sidebar',\n icon: 'message-square',\n category: 'display',\n order: 1,\n propsInterface: 'ChatLayoutProps',\n },\n 'room-list': {\n id: 'room-list',\n label: 'Room List',\n description: 'Sidebar room navigation with unread badges',\n icon: 'list',\n category: 'list',\n order: 2,\n propsInterface: 'RoomListProps',\n },\n 'message-list': {\n id: 'message-list',\n label: 'Message List',\n description: 'Scrollable chat message feed',\n icon: 'message-circle',\n category: 'list',\n order: 3,\n propsInterface: 'MessageListProps',\n },\n 'message-input': {\n id: 'message-input',\n label: 'Message Input',\n description: 'Chat message input with attachments',\n icon: 'edit-2',\n category: 'form',\n order: 4,\n propsInterface: 'MessageInputProps',\n },\n 'chat-tabs': {\n id: 'chat-tabs',\n label: 'Chat Tabs',\n description: 'Facebook-style expandable chat tabs',\n icon: 'columns',\n category: 'display',\n order: 5,\n propsInterface: 'ChatTabsProps',\n },\n 'agent-chat': {\n id: 'agent-chat',\n label: 'Agent Chat',\n description: 'Full agent conversation interface',\n icon: 'bot',\n category: 'display',\n order: 6,\n propsInterface: 'AgentChatProps',\n },\n 'thread-panel': {\n id: 'thread-panel',\n label: 'Thread Panel',\n description: 'Threaded conversation side panel',\n icon: 'git-branch',\n category: 'display',\n order: 7,\n propsInterface: 'ThreadPanelProps',\n },\n};\n\nexport const CHAT_MODULE_META: SmrtModuleMeta = {\n name: '@happyvertical/smrt-chat',\n displayName: 'Chat',\n description: 'Real-time chat rooms, DMs, threads, and agent conversations',\n uiSlots: CHAT_UI_SLOTS,\n models: [\n 'ChatRoom',\n 'ChatThread',\n 'ChatMessage',\n 'ChatParticipant',\n 'ChatReaction',\n 'AgentSession',\n ],\n collections: [\n 'ChatRoomCollection',\n 'ChatThreadCollection',\n 'ChatMessageCollection',\n 'ChatParticipantCollection',\n 'ChatReactionCollection',\n 'AgentSessionCollection',\n ],\n};\n"],"names":[],"mappings":"AAEO,MAAM,gBAA8C;AAAA,EACzD,eAAe;AAAA,IACb,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAAA,EAElB,aAAa;AAAA,IACX,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAAA,EAElB,gBAAgB;AAAA,IACd,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAAA,EAElB,iBAAiB;AAAA,IACf,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAAA,EAElB,aAAa;AAAA,IACX,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAAA,EAElB,cAAc;AAAA,IACZ,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAAA,EAElB,gBAAgB;AAAA,IACd,IAAI;AAAA,IACJ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,OAAO;AAAA,IACP,gBAAgB;AAAA,EAAA;AAEpB;AAEO,MAAM,mBAAmC;AAAA,EAC9C,MAAM;AAAA,EACN,aAAa;AAAA,EACb,aAAa;AAAA,EACb,SAAS;AAAA,EACT,QAAQ;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAEF,aAAa;AAAA,IACX;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEJ;"}
1
+ {"version":3,"file":"ui.js","names":[],"sources":["../src/ui.ts"],"sourcesContent":["import type { ModuleUISlot, SmrtModuleMeta } from '@happyvertical/smrt-types';\n\nexport const CHAT_UI_SLOTS: Record<string, ModuleUISlot> = {\n 'chat-layout': {\n id: 'chat-layout',\n label: 'Chat Layout',\n description: 'Discord/Slack-style chat layout with sidebar',\n icon: 'message-square',\n category: 'display',\n order: 1,\n propsInterface: 'ChatLayoutProps',\n },\n 'room-list': {\n id: 'room-list',\n label: 'Room List',\n description: 'Sidebar room navigation with unread badges',\n icon: 'list',\n category: 'list',\n order: 2,\n propsInterface: 'RoomListProps',\n },\n 'message-list': {\n id: 'message-list',\n label: 'Message List',\n description: 'Scrollable chat message feed',\n icon: 'message-circle',\n category: 'list',\n order: 3,\n propsInterface: 'MessageListProps',\n },\n 'message-input': {\n id: 'message-input',\n label: 'Message Input',\n description: 'Chat message input with attachments',\n icon: 'edit-2',\n category: 'form',\n order: 4,\n propsInterface: 'MessageInputProps',\n },\n 'chat-tabs': {\n id: 'chat-tabs',\n label: 'Chat Tabs',\n description: 'Facebook-style expandable chat tabs',\n icon: 'columns',\n category: 'display',\n order: 5,\n propsInterface: 'ChatTabsProps',\n },\n 'agent-chat': {\n id: 'agent-chat',\n label: 'Agent Chat',\n description: 'Full agent conversation interface',\n icon: 'bot',\n category: 'display',\n order: 6,\n propsInterface: 'AgentChatProps',\n },\n 'thread-panel': {\n id: 'thread-panel',\n label: 'Thread Panel',\n description: 'Threaded conversation side panel',\n icon: 'git-branch',\n category: 'display',\n order: 7,\n propsInterface: 'ThreadPanelProps',\n },\n};\n\nexport const CHAT_MODULE_META: SmrtModuleMeta = {\n name: '@happyvertical/smrt-chat',\n displayName: 'Chat',\n description: 'Real-time chat rooms, DMs, threads, and agent conversations',\n uiSlots: CHAT_UI_SLOTS,\n models: [\n 'ChatRoom',\n 'ChatThread',\n 'ChatMessage',\n 'ChatParticipant',\n 'ChatReaction',\n 'AgentSession',\n ],\n collections: [\n 'ChatRoomCollection',\n 'ChatThreadCollection',\n 'ChatMessageCollection',\n 'ChatParticipantCollection',\n 'ChatReactionCollection',\n 'AgentSessionCollection',\n ],\n};\n"],"mappings":";AAEO,IAAM,gBAA8C;CACzD,eAAe;EACb,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,aAAa;EACX,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,gBAAgB;EACd,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,iBAAiB;EACf,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,aAAa;EACX,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,cAAc;EACZ,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;CACA,gBAAgB;EACd,IAAI;EACJ,OAAO;EACP,aAAa;EACb,MAAM;EACN,UAAU;EACV,OAAO;EACP,gBAAgB;CAClB;AACF;AAEO,IAAM,mBAAmC;CAC9C,MAAM;CACN,aAAa;CACb,aAAa;CACb,SAAS;CACT,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;CACF;CACA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}